/* ==========================================================================
   TheAgency Training — styles.css
   Built by Tryfon (VaultFN). © 2026 TheAgency Training. All rights reserved.
   ========================================================================== */

/* ---------- Design tokens ------------------------------------------------ */
:root {
  --ink:        #0C0E10;   /* brushed-charcoal base, matches the banner  */
  --ink-2:      #121619;
  --surface:    #191E23;
  --surface-2:  #222A31;
  --line:       #333C45;
  --text:       #F0F3F5;   /* 17.4:1 on --ink   */
  --muted:      #A9B4BD;   /*  8.7:1 on --ink   */
  --brand:      #7CE8BE;   /* 11.8:1 on --ink — the neon mint from the logo */
  --brand-ink:  #04140D;   /* 11.6:1 on --brand */
  --sky:        #8AD8F0;   /* 11.3:1 on --ink — the cyan from the wordmark  */
  --danger:     #FF9A8B;   /*  7.6:1 on --ink   */
  --ok:         #86E6B0;

  --radius:     14px;
  --radius-lg:  22px;
  --shell:      1180px;
  --bar:        76px;

  --font-display: "Oswald", "Haettenschweiler", "Arial Narrow", sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, sans-serif;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Reset -------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--bar) + 18px); }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; height: auto; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: .01em;
  margin: 0 0 .5em;
}

h1 { font-size: clamp(2.6rem, 7vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 4.2vw, 2.9rem); }
h3 { font-size: clamp(1.2rem, 2.4vw, 1.5rem); }

p { margin: 0 0 1.1em; max-width: 72ch; }

a { color: var(--sky); text-underline-offset: 3px; }
a:hover { color: var(--brand); }

/* ---------- Focus & skip link ------------------------------------------- */
:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 200;
  background: var(--brand);
  color: var(--brand-ink);
  padding: 12px 18px;
  border-radius: 0 0 10px 10px;
  font-weight: 600;
  text-decoration: none;
  transition: top .18s var(--ease);
}
.skip-link:focus { top: 0; color: var(--brand-ink); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* ---------- Layout helpers ---------------------------------------------- */
.shell { width: min(100% - 2.5rem, var(--shell)); margin-inline: auto; }

.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; position: relative; }
.section--alt { background: var(--ink-2); }
.section__intro { max-width: 62ch; margin-bottom: 2.5rem; }
.section__intro p { color: var(--muted); }

.eyebrow {
  font-family: var(--font-display);
  font-size: .95rem;
  letter-spacing: .16em;
  color: var(--brand);
  margin: 0 0 .6rem;
  display: flex;
  align-items: center;
  gap: .7rem;
}
.eyebrow::before {
  content: "";
  width: 34px; height: 2px;
  background: var(--brand);
  display: inline-block;
}

/* ---------- Buttons ------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 48px;
  padding: .75rem 1.5rem;
  border-radius: 999px;
  border: 2px solid transparent;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s var(--ease), background-color .18s var(--ease),
              border-color .18s var(--ease), color .18s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--brand { background: var(--brand); color: var(--brand-ink); }
.btn--brand:hover { background: #A2F2D3; color: var(--brand-ink); }

.btn--ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); }

.btn--discord { background: #5865F2; color: #FFFFFF; }
.btn--discord:hover { background: #7079F5; color: #FFFFFF; }
.btn--discord svg { width: 22px; height: 22px; fill: currentColor; flex: none; }

.btn--sm { min-height: 42px; padding: .5rem 1.1rem; font-size: .95rem; }

/* ---------- Header / navigation ----------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--bar);
  display: flex;
  align-items: center;
  background: rgba(12, 14, 16, .82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: background-color .25s var(--ease), border-color .25s var(--ease);
}
.site-header.is-scrolled { background: rgba(12, 14, 16, .97); }

.site-header .shell {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  width: min(100% - 1.6rem, 1320px);
}

.brand {
  display: flex;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
  color: var(--text);
  flex: none;
  padding: 4px;
  border-radius: 12px;
}
.brand img { width: 46px; height: 46px; border-radius: 11px; }
.brand span {
  font-family: var(--font-display);
  font-size: 1.28rem;
  letter-spacing: .02em;
  white-space: nowrap;
}
.brand:hover span { color: var(--brand); }

.nav { margin-left: auto; }
.nav ul {
  display: flex;
  align-items: center;
  gap: .25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav a {
  display: block;
  padding: .6rem .85rem;
  border-radius: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: .98rem;
  position: relative;
}
.nav a::after {
  content: "";
  position: absolute;
  left: .85rem; right: .85rem; bottom: .38rem;
  height: 2px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .22s var(--ease);
}
.nav a:hover::after, .nav a:focus-visible::after, .nav a[aria-current="true"]::after {
  transform: scaleX(1);
}
.nav a:hover { color: var(--brand); }


.nav-toggle {
  display: none;
  margin-left: auto;
  width: 48px; height: 48px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: currentColor;
  position: relative;
}
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0;
  width: 22px; height: 2px; background: currentColor;
  transition: transform .22s var(--ease), top .22s var(--ease);
}
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

/* ---------- Hero --------------------------------------------------------- */
.hero { padding: calc(var(--bar) + 2.4rem) 0 clamp(3rem, 7vw, 5rem); }

.hero__banner {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  margin-bottom: clamp(1.8rem, 4vw, 2.8rem);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .5);
}

.hero__title { max-width: 18ch; margin-bottom: .35em; }
.hero__lede {
  font-size: clamp(1.05rem, 2.1vw, 1.3rem);
  color: var(--muted);
  max-width: 54ch;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }
.hero__meta {
  margin: 2.4rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.6rem;
  color: var(--muted);
  font-size: .96rem;
}
.hero__meta li { list-style: none; }

/* one orchestrated page-load reveal */
.hero__banner, .hero__title, .hero__lede, .hero__actions, .hero__meta {
  animation: rise .8s var(--ease) both;
}
.hero__title   { animation-delay: .08s; }
.hero__lede    { animation-delay: .16s; }
.hero__actions { animation-delay: .24s; }
.hero__meta    { animation-delay: .32s; }

@keyframes rise {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- Scroll reveal ----------------------------------------------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Cards / grids ------------------------------------------------ */
.grid { display: grid; gap: 1.4rem; }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(285px, 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  transition: transform .25s var(--ease), border-color .25s var(--ease);
}
.card:hover { transform: translateY(-4px); border-color: var(--brand); }
.card h3 { margin-bottom: .45rem; }
.card p { color: var(--muted); margin-bottom: 0; }
.card__figure { margin: -1.6rem -1.6rem 1.3rem; border-radius: var(--radius-lg) var(--radius-lg) 0 0; overflow: hidden; }
.card__figure img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }

/* ---------- Pricing ------------------------------------------------------ */
.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(268px, 1fr));
  gap: 1.25rem;
  align-items: start;
}

.plan {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .28s var(--ease), border-color .28s var(--ease), box-shadow .28s var(--ease);
}
.plan:hover, .plan:focus-within {
  transform: scale(1.035);
  border-color: var(--brand);
  box-shadow: 0 18px 40px rgba(4, 8, 20, .55);
  z-index: 2;
}
.plan--featured { border-color: var(--brand); }

.plan__tag {
  display: inline-block;
  margin: 1.2rem 1.4rem 0;
  padding: .2rem .7rem;
  border-radius: 999px;
  background: rgba(124, 232, 190, .14);
  color: var(--brand);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .04em;
}

.plan__head {
  all: unset;
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 1.2rem 1.4rem 1.4rem;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
}
.plan__head:focus-visible { outline: 3px solid var(--brand); outline-offset: -3px; }

.plan__price {
  font-family: var(--font-display);
  font-size: 2.9rem;
  line-height: 1;
  color: var(--brand);
  display: block;
}
.plan__price small { font-size: .95rem; color: var(--muted); font-family: var(--font-body); }
.plan__name { display: block; font-family: var(--font-display); font-size: 1.24rem; line-height: 1.2; margin: .55rem 0 .25rem; }
.plan__short { display: block; color: var(--muted); font-size: .95rem; margin: 0; }

.plan__more {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin-top: 1rem;
  color: var(--sky);
  font-weight: 600;
  font-size: .95rem;
}
.plan__more::after {
  content: "";
  width: 9px; height: 9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform .25s var(--ease);
}
.plan__head[aria-expanded="true"] .plan__more::after { transform: rotate(-135deg) translateY(-2px); }

.plan__panel {
  border-top: 1px solid var(--line);
  padding: 1.2rem 1.4rem 1.5rem;
  background: var(--surface-2);
}
.plan__panel[hidden] { display: none; }
.plan__panel p { font-size: .97rem; color: var(--muted); }
.plan__panel ul { margin: 0 0 1.1rem; padding-left: 1.1rem; color: var(--muted); font-size: .95rem; }
.plan__panel li { margin-bottom: .35rem; }

/* ---------- People ------------------------------------------------------- */
.person {
  display: grid;
  grid-template-columns: 156px 1fr;
  gap: 1.4rem;
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: transform .25s var(--ease), border-color .25s var(--ease);
}
.person:hover { transform: translateY(-4px); border-color: var(--brand); }
.person img {
  width: 156px; height: 156px;
  object-fit: cover;
  border-radius: 18px;
  border: 2px solid var(--line);
  filter: grayscale(1) contrast(1.08);
  transition: filter .35s var(--ease);
}
.person:hover img { filter: grayscale(1) contrast(1.16) brightness(1.06); }
.person h2 { font-size: 1.6rem; margin-bottom: .15rem; }
.person__role { color: var(--brand); font-weight: 600; font-size: .95rem; margin: 0 0 .5rem; }
.person p { font-size: .97rem; color: var(--muted); margin-bottom: .7rem; }
.person a { word-break: break-word; }

.roster { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; }
.roster figure { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: transform .25s var(--ease), border-color .25s var(--ease); }
.roster figure:hover { transform: translateY(-5px); border-color: var(--brand); }
.roster img { aspect-ratio: 1 / 1; object-fit: cover; filter: grayscale(1) contrast(1.08); }
.roster figcaption { padding: 1rem 1.2rem 1.3rem; }
.roster h3 { margin-bottom: .15rem; }
.roster p { color: var(--muted); font-size: .95rem; margin: 0; }

/* ---------- Partners ----------------------------------------------------- */
.partners { display: grid; gap: 1.4rem; }
.partner {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 1.8rem;
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  transition: transform .25s var(--ease), border-color .25s var(--ease);
}
.partner:hover { transform: translateY(-4px); border-color: var(--brand); }
.partner__logo {
  width: 180px; height: 180px;
  object-fit: cover;
  border-radius: 18px;
  border: 2px solid var(--line);
}
.partner h2 { font-size: 1.9rem; margin-bottom: .15rem; }
.partner p { color: var(--muted); }
.partner .partner__role { color: var(--brand); font-weight: 600; font-size: .95rem; margin: 0 0 .8rem; }
.partner h3 { font-size: 1.15rem; margin: 1.4rem 0 .7rem; }
.partner__perks { list-style: none; margin: 0 0 1.6rem; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.partner__perks li {
  padding: .3rem .85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text);
  font-size: .92rem;
}

/* ---------- Payment methods --------------------------------------------- */
.pay-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1rem; margin-bottom: 1.6rem; }

.pay {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.1rem 1.1rem;
  background: var(--surface);
  overflow: hidden;
  transition: border-color .22s var(--ease), transform .22s var(--ease);
}
.pay:hover, .pay:focus-within { border-color: var(--brand); transform: translateY(-3px); }
.pay__mark {
  position: absolute;
  right: -6px; bottom: -18px;
  font-family: var(--font-display);
  font-size: 3.6rem;
  line-height: 1;
  opacity: .13;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}
.pay--paypal  { border-left: 4px solid #009CDE; }
.pay--cashapp { border-left: 4px solid #00D64F; }
.pay--venmo   { border-left: 4px solid #3D95CE; }
.pay--zelle   { border-left: 4px solid #A579F2; }
.pay--paypal  .pay__mark { color: #009CDE; }
.pay--cashapp .pay__mark { color: #00D64F; }
.pay--venmo   .pay__mark { color: #3D95CE; }
.pay--zelle   .pay__mark { color: #A579F2; }
.pay h3 { font-size: 1.05rem; margin-bottom: .3rem; position: relative; }
.pay p { font-size: .92rem; color: var(--muted); margin: 0; position: relative; }


/* ---------- Page head (sub pages) --------------------------------------- */
.page-head {
  padding: calc(var(--bar) + 3.4rem) 0 2.2rem;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--ink-2), var(--ink));
}
.page-head h1 { font-size: clamp(2.1rem, 5.4vw, 3.4rem); margin-bottom: .3em; }
.page-head__lede { color: var(--muted); font-size: 1.08rem; max-width: 60ch; margin: 0; }
.page-head .updated { margin: 0; }
.page-head .eyebrow, .page-head h1, .page-head__lede { animation: rise .55s var(--ease) both; }
.page-head h1 { animation-delay: .06s; }
.page-head__lede { animation-delay: .12s; }

/* ---------- Hub cards (home page) --------------------------------------- */
.hub { display: grid; grid-template-columns: repeat(auto-fit, minmax(268px, 1fr)); gap: 1.1rem; }
.hub__card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.5rem 1.6rem;
  text-decoration: none;
  color: var(--text);
  position: relative;
  transition: transform .24s var(--ease), border-color .24s var(--ease), background-color .24s var(--ease);
}
.hub__card::after {
  content: "";
  position: absolute;
  right: 1.5rem; top: 1.85rem;
  width: 10px; height: 10px;
  border-right: 2px solid var(--brand);
  border-top: 2px solid var(--brand);
  transform: rotate(45deg);
  transition: transform .24s var(--ease);
}
.hub__card:hover, .hub__card:focus-visible {
  transform: translateY(-4px);
  border-color: var(--brand);
  background: var(--surface-2);
  color: var(--text);
}
.hub__card:hover::after { transform: rotate(45deg) translate(3px, -3px); }
.hub__card h3 { margin-bottom: .35rem; padding-right: 2rem; }
.hub__card p { color: var(--muted); font-size: .96rem; margin: 0; }
.hub__card--discord { border-color: #4551D6; }
.hub__card--discord::after { border-color: #8B94F7; }

/* ---------- Pager (click through to the next page) ---------------------- */
.pager { margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.pager__link {
  display: inline-flex;
  flex-direction: column;
  gap: .1rem;
  text-decoration: none;
  padding: .6rem .1rem;
  color: var(--text);
}
.pager__link span { color: var(--muted); font-size: .9rem; }
.pager__link strong {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--brand);
}
.pager__link strong::after {
  content: "";
  display: inline-block;
  margin-left: .6rem;
  width: 10px; height: 10px;
  border-right: 2px solid currentColor;
  border-top: 2px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  transition: transform .22s var(--ease);
}
.pager__link:hover strong::after { transform: rotate(45deg) translate(4px, -4px); }

/* ---------- Notice block ------------------------------------------------ */
.notice {
  border: 1px solid var(--brand);
  border-left-width: 5px;
  background: rgba(124, 232, 190, .07);
  border-radius: var(--radius);
  padding: 1.2rem 1.3rem;
  margin: 1.6rem 0 2rem;
}
.notice h3 { color: var(--brand); margin-bottom: .4rem; font-size: 1.15rem; }
.notice p { margin: 0; color: var(--text); }

/* ---------- Advert popups (centre of the screen, one at a time) --------- */
.adpop {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 26px;
}
.adpop[hidden] { display: none; }
.adpop__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 6, 8, .58);
  -webkit-backdrop-filter: blur(9px);
  backdrop-filter: blur(9px);
}
.adpop__box {
  position: relative;
  width: min(94vw, 600px, calc((100dvh - 96px) * .8));           /* the picture is 4:5, so keep it on screen */
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 70px rgba(0, 0, 0, .6);
  animation: adpopIn .3s var(--ease) both;
}
.adpop--discord .adpop__box { border-color: #4551D6; }
.adpop--staff .adpop__box { border-color: #5FD8AA; }
.adpop__box a { display: block; border-radius: inherit; overflow: hidden; }
.adpop__box img { display: block; width: 100%; height: auto; }
@keyframes adpopIn {
  from { opacity: 0; transform: translateY(14px) scale(.96); }
  to   { opacity: 1; transform: none; }
}
.adpop__close {
  position: absolute;
  top: -18px;
  left: -18px;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--text);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.adpop__close:hover { background: var(--brand); border-color: var(--brand); color: #04140D; }

/* ---------- Callout ------------------------------------------------------ */
.callout {
  background: linear-gradient(140deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 4vw, 2.6rem);
}
.callout h2 { margin-bottom: .4rem; }
.callout p { color: var(--muted); }
.callout__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.4rem; }

/* ---------- Footer ------------------------------------------------------- */
.site-footer {
  background: #08090B;
  border-top: 1px solid var(--line);
  padding: 3.2rem 0 2rem;
  font-size: .95rem;
}
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem; }
.site-footer h2 { font-size: 1.05rem; margin-bottom: .7rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .45rem; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--brand); text-decoration: underline; }
.site-footer p { color: var(--muted); }
.footer-bottom {
  margin-top: 2.4rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.4rem;
  justify-content: space-between;
  color: var(--muted);
}
.footer-bottom p { margin: 0; }

/* ---------- Cookie banner ------------------------------------------------ */
.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 150;
  width: min(100% - 2rem, 820px);
  background: var(--surface);
  border: 1px solid var(--brand);
  border-radius: var(--radius-lg);
  padding: 1.2rem 1.3rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .55);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner h2 { font-size: 1.15rem; margin-bottom: .4rem; }
.cookie-banner p { font-size: .94rem; color: var(--muted); margin-bottom: 1rem; }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: .7rem; }

/* ---------- Policy pages ------------------------------------------------- */
.page-head { padding: calc(var(--bar) + 3rem) 0 1rem; border-bottom: 1px solid var(--line); }
.prose { padding: 2.5rem 0 4rem; }
.prose h2 { font-size: 1.5rem; margin-top: 2.2rem; }
.prose h3 { font-size: 1.15rem; margin-top: 1.6rem; }
.prose ul { color: var(--muted); padding-left: 1.2rem; max-width: 72ch; }
.prose li { margin-bottom: .45rem; }
.prose p { color: var(--muted); }
.prose .lead { color: var(--text); font-size: 1.1rem; }
.updated { color: var(--muted); font-size: .92rem; }

.detail-list { list-style: none; padding: 0; max-width: 72ch; }
.detail-list li { display: grid; grid-template-columns: 190px 1fr; gap: 1rem; padding: .65rem 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.detail-list strong { color: var(--text); font-weight: 600; }

/* ---------- Responsive --------------------------------------------------- */
@media (max-width: 1180px) {
  .nav-toggle { display: inline-flex; }
  .header-cta { display: none; }

  .nav {
    position: fixed;
    inset: var(--bar) 0 auto 0;
    background: var(--ink-2);
    border-bottom: 1px solid var(--line);
    margin: 0;
    max-height: calc(100dvh - var(--bar));
    overflow-y: auto;
  }
  .nav[hidden] { display: none; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: .6rem 1rem 1.2rem; }
  .nav li { border-bottom: 1px solid var(--line); }
  .nav li:last-child { border-bottom: 0; padding-top: .8rem; }
  .nav a { padding: .95rem .6rem; font-size: 1.05rem; }
  .nav a::after { display: none; }
  .nav .btn { width: 100%; }
}

@media (max-width: 760px) {
  .adpop { padding: 16px; }
  .adpop__box { width: min(88vw, calc((100dvh - 76px) * .8)); }
  .adpop__close { top: -14px; left: -14px; }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .shell { width: min(100% - 1.8rem, var(--shell)); }
  .brand span { font-size: 1.1rem; }
  .brand img { width: 42px; height: 42px; }
  .hero__actions .btn { width: 100%; }
  .person { grid-template-columns: 1fr; text-align: left; }
  .person img { width: 128px; height: 128px; }
  .partner { grid-template-columns: 1fr; gap: 1.2rem; padding: 1.4rem; }
  .partner__logo { width: 128px; height: 128px; }
  .detail-list li { grid-template-columns: 1fr; gap: .1rem; }
  .card__figure { margin: -1.6rem -1.6rem 1.2rem; }
  .page-head { padding-top: calc(var(--bar) + 2.4rem); }
  .pager__link strong { font-size: 1.3rem; }
  .footer-bottom { flex-direction: column; }
}

/* ---------- Motion preferences ------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .adpop__box { animation: none; }
  .plan:hover, .card:hover, .person:hover, .partner:hover, .btn:hover, .roster figure:hover { transform: none; }
}

/* ---------- Print -------------------------------------------------------- */
@media print {
  .site-header, .cookie-banner, .adpop, .btn { display: none !important; }
  body { background: #fff; color: #000; }
}
