/* =============================================================================
   SOMO — design system
   Editorial / human aesthetic: white background, mint-green section blocks,
   one soft periwinkle-blue accent, near-black ink, strong headings, monospace
   labels/metadata, sharp 1px borders, bordered meta grids. Restrained motion.

   Typeface intent: Commissioner (navigation, buttons, headings, body, forms,
   cards) + Roboto Mono (dates, step numbers, small labels, compact metadata).
   Both carry Greek glyphs. Swap the families in :root and the <link> tags to
   change; recolour by editing the accent tokens in :root.
   ========================================================================== */

/* ------- Reset ------------------------------------------------------------ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
img, svg, video { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
ul, ol { list-style: none; }
/* Collapse empty elements so optional/blank fields never leave phantom gaps */
p:empty, ul:empty { display: none; }

/* ------- Tokens ----------------------------------------------------------- */
:root {
  /* Colour — white base, mint-green sections, electric-blue accent */
  --paper:        #FCFCFC;   /* default page background */
  --paper-2:      #E7F7E1;   /* soft mint tint (raised panels, explain box) */
  --paper-3:      #FFFFFF;   /* lifted card fill */
  --ink:          #171719;   /* dark neutral text (unchanged) */
  --ink-2:        #45454B;   /* secondary text (unchanged) */
  --muted:        #717078;   /* labels, meta (unchanged) */
  --line:         #D9DED6;   /* hairline border (neutral, a touch stronger) */
  --line-strong:  #BEC6BA;   /* stronger border on hover / dividers */
  --green:        #D5FACC;   /* playful section background */
  --accent:       #5A6CD0;   /* soft periwinkle accent (brand) */
  --accent-deep:  #45549F;   /* darker shade of the accent (hover) */
  --accent-soft:  var(--green); /* soft highlight / selection */
  /* Back-compat aliases: the system references --orange* throughout, so every
     former accent token and state now resolves to the electric-blue accent. */
  --orange:       var(--accent);
  --orange-deep:  var(--accent-deep);
  --on-orange:    #FCFCFC;   /* text on the accent / on blue */
  --footer-bg:    var(--green);   /* CTA bands + footer are mint-green sections */
  --footer-ink:   #171719;        /* dark text on green */
  --footer-muted: rgba(23,23,25,.62);
  --footer-line:  rgba(23,23,25,.14);
  --error:        #C62828;
  --ok:           #2E6B4F;

  /* Type */
  --font-sans: 'Commissioner', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-mono: 'Roboto Mono', ui-monospace, 'DejaVu Sans Mono', Menlo, Consolas, monospace;

  /* Layout */
  --maxw: 1280px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 3px;
  --header-h: 68px;

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

/* ------- Base ------------------------------------------------------------- */
html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
::selection { background: var(--accent-soft); color: var(--ink); }

a { text-decoration: none; }
strong, b { font-weight: 600; }

/* Visually hidden (accessible text) */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Skip link */
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--ink); color: var(--paper);
  padding: 10px 16px; border-radius: var(--radius);
  font-family: var(--font-mono); font-size: .78rem; letter-spacing: .08em;
  transition: top .18s var(--ease);
}
.skip-link:focus { top: 12px; }

/* Visible focus everywhere */
:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
  border-radius: 1px;
}

/* ------- Layout primitives ----------------------------------------------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(52px, 7vw, 100px); }
.section--tight { padding-block: clamp(40px, 4.5vw, 64px); }
.section--dark { background: var(--footer-bg); color: var(--footer-ink); }
.rule { border: 0; border-top: 1px solid var(--line); }
.section--dark .rule { border-color: var(--footer-line); }

/* Alternating section backgrounds — roughly 50/50 mint-green and white down the
   page. Sections strictly alternate (the <hr> rule dividers between them are not
   <section> elements, so they do not affect parity), and the first section on
   every page is the hero, which stays on paper. Within green sections the
   hairline and mint-panel tokens shift to a dark tint so borders and bordered
   grids stay visible against the green. Background only — no layout change. */
main > section:nth-of-type(even) {
  background: var(--green);
  --line: rgba(23,23,25,.14);
  --line-strong: rgba(23,23,25,.26);
  --paper-2: var(--paper-3);
}
.stack > * + * { margin-top: 1rem; }
.measure { max-width: 62ch; }
.measure-narrow { max-width: 46ch; }

/* ------- Typography ------------------------------------------------------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .10em;
  text-transform: uppercase;
  color: var(--orange);
  font-weight: 500;
}
.eyebrow--muted { color: var(--muted); }
.label {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

.wordmark {
  font-weight: 800;
  letter-spacing: -.045em;
  line-height: .86;
  font-size: clamp(4.5rem, 17vw, 15rem);
  color: var(--ink);
}
.wordmark .dot { color: var(--orange); }

.display {
  font-weight: 750;
  letter-spacing: -.03em;
  line-height: 1.02;
  font-size: clamp(2.3rem, 5.6vw, 4.4rem);
}
h1, .h1 { font-weight: 750; letter-spacing: -.03em; line-height: 1.04; font-size: clamp(2.1rem, 4.8vw, 3.6rem); }
h2, .h2 { font-weight: 700; letter-spacing: -.022em; line-height: 1.08; font-size: clamp(1.8rem, 3.4vw, 2.75rem); }
h3, .h3 { font-weight: 650; letter-spacing: -.014em; line-height: 1.15; font-size: clamp(1.2rem, 2vw, 1.55rem); }
h4, .h4 { font-weight: 700; letter-spacing: -.01em; line-height: 1.2; font-size: 1.08rem; }

.lead { font-size: clamp(1.18rem, 2.2vw, 1.6rem); line-height: 1.45; font-weight: 400; color: var(--ink); letter-spacing: -.01em; }
.subhead { font-size: clamp(1.05rem, 1.5vw, 1.2rem); line-height: 1.55; color: var(--ink-2); }
p { color: var(--ink-2); }
p.tight { margin-top: .5rem; }
.muted { color: var(--muted); }

/* In-copy links */
.prose a, a.link {
  color: var(--ink);
  border-bottom: 1px solid var(--orange);
  padding-bottom: 1px;
  transition: color .15s var(--ease), border-color .15s var(--ease);
}
.prose a:hover, a.link:hover { color: var(--orange); }
.section--dark .prose a, .section--dark a.link { color: var(--footer-ink); border-bottom-color: var(--orange); }

.prose { max-width: 66ch; }
.prose p { margin-top: 1rem; color: var(--ink-2); }
.prose p:first-child { margin-top: 0; }
.prose ul { margin-top: 1rem; }
.prose ul li { position: relative; padding-left: 1.4em; margin-top: .5rem; color: var(--ink-2); }
.prose ul li::before {
  content: ""; position: absolute; left: .1em; top: .62em;
  width: 7px; height: 7px; background: var(--orange); border-radius: 1px;
}

/* ------- Buttons ---------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: .6em;
  font-family: var(--font-sans);
  font-size: .82rem; font-weight: 600; letter-spacing: .03em; text-transform: uppercase;
  line-height: 1;
  padding: 1.05em 1.5em;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background .16s var(--ease), color .16s var(--ease), border-color .16s var(--ease), transform .16s var(--ease);
  white-space: nowrap;
}
.btn .arrow { transition: transform .16s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--accent); color: var(--on-orange); border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-deep); border-color: var(--accent-deep); color: var(--on-orange); }

.btn-orange { background: var(--orange); color: var(--on-orange); border-color: var(--orange); }
.btn-orange:hover { background: var(--orange-deep); border-color: var(--orange-deep); }

.btn-secondary { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn-secondary:hover { background: var(--accent); color: var(--on-orange); }

.section--dark .btn-secondary { color: var(--accent); border-color: var(--accent); }
.section--dark .btn-secondary:hover { background: var(--accent); color: var(--on-orange); }

.btn-sm { padding: .8em 1.1em; font-size: .74rem; }
.btn-block { width: 100%; justify-content: center; }

/* Text link with arrow (secondary action) */
.textlink {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--font-sans); font-size: .82rem; letter-spacing: .03em;
  text-transform: uppercase; color: var(--ink); font-weight: 600;
  border-bottom: 1px solid transparent; padding-bottom: 2px;
}
.textlink .arrow { transition: transform .16s var(--ease); }
.textlink:hover { color: var(--orange); }
.textlink:hover .arrow { transform: translateX(3px); }
.section--dark .textlink { color: var(--footer-ink); }

/* ------- Announcement bar ------------------------------------------------- */
.announce {
  background: var(--orange); color: var(--on-orange);
  font-family: var(--font-mono);
}
.announce__row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 44px; padding-block: 8px;
}
.announce__msg {
  font-size: .74rem; letter-spacing: .12em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: .6em; font-weight: 500;
}
.announce__msg .spark { font-size: .9em; }
.announce__link {
  display: inline-flex; align-items: center; gap: .5em;
  font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 500;
  border: 1px solid rgba(255,255,255,.5); border-radius: 999px;
  padding: .5em 1em; transition: background .16s var(--ease), border-color .16s var(--ease);
  white-space: nowrap;
}
.announce__link:hover { background: rgba(255,255,255,.14); border-color: var(--on-orange); }
.announce__link .arrow { transition: transform .16s var(--ease); }
.announce__link:hover .arrow { transform: translateX(3px); }

/* ------- Header / nav ----------------------------------------------------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.1) blur(8px);
  -webkit-backdrop-filter: saturate(1.1) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header__row {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h); gap: 20px;
}
.brand {
  font-family: var(--font-mono);
  font-weight: 700; font-size: 1.15rem; letter-spacing: .02em;
  color: var(--ink); display: inline-flex; align-items: baseline; gap: 1px;
}
.brand .dot { color: var(--orange); }

.nav { display: flex; align-items: center; gap: 4px; }
.nav__list { display: flex; align-items: center; gap: 2px; }
.nav__link, .nav__toggle {
  font-family: var(--font-sans); font-size: .78rem; letter-spacing: .05em; text-transform: uppercase;
  color: var(--ink); font-weight: 600;
  padding: 10px 12px; border-radius: var(--radius);
  background: none; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; gap: .4em;
  transition: color .15s var(--ease), background .15s var(--ease);
}
.nav__link:hover, .nav__toggle:hover, .nav__link[aria-current="page"] { color: var(--orange); }
.nav__link[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }

/* Dropdown */
.nav__item { position: relative; }
.nav__toggle .caret { transition: transform .18s var(--ease); }
.nav__toggle[aria-expanded="true"] .caret { transform: rotate(180deg); }
.dropdown {
  position: absolute; top: calc(100% + 6px); left: 0; z-index: 60;
  min-width: 268px;
  background: var(--paper-3); border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 40px -20px rgba(23,19,13,.4);
  padding: 8px;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .16s var(--ease), transform .16s var(--ease), visibility .16s;
}
.nav__item:hover .dropdown,
.nav__item:focus-within .dropdown,
.dropdown.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown__link {
  display: flex; flex-direction: column; gap: 3px;
  padding: 11px 12px; border-radius: 2px;
  transition: background .14s var(--ease);
}
.dropdown__link:hover { background: var(--paper-2); }
.dropdown__name {
  font-weight: 600; font-size: .98rem; color: var(--ink);
  display: flex; align-items: center; gap: 8px; letter-spacing: -.01em;
}
.dropdown__desc { font-size: .82rem; color: var(--muted); line-height: 1.35; }

/* Small "coming soon" chip */
.chip {
  font-family: var(--font-mono); font-size: .58rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); border: 1px solid var(--line-strong);
  padding: .25em .5em; border-radius: 999px; font-weight: 500; line-height: 1;
}
.chip--orange { color: var(--orange); border-color: color-mix(in srgb, var(--orange) 45%, var(--line)); }

/* Language switch */
.langswitch { display: inline-flex; align-items: center; }
.langswitch a {
  font-family: var(--font-mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); font-weight: 500; padding: 8px 10px; border-radius: var(--radius);
  border: 1px solid var(--line); transition: color .15s var(--ease), border-color .15s var(--ease);
}
.langswitch a:hover { color: var(--ink); border-color: var(--line-strong); }

.nav__cta { margin-left: 6px; }

/* Hamburger */
.nav__burger {
  display: none; width: 44px; height: 44px; align-items: center; justify-content: center;
  background: none; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer;
}
.nav__burger span { display: block; width: 20px; height: 2px; background: var(--ink); position: relative; transition: background 0s .12s; }
.nav__burger span::before, .nav__burger span::after {
  content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: var(--ink);
  transition: transform .18s var(--ease), top .18s var(--ease);
}
.nav__burger span::before { top: -6px; }
.nav__burger span::after { top: 6px; }
body.menu-open .nav__burger span { background: transparent; }
body.menu-open .nav__burger span::before { top: 0; transform: rotate(45deg); }
body.menu-open .nav__burger span::after { top: 0; transform: rotate(-45deg); }

/* ------- Hero ------------------------------------------------------------- */
.hero { padding-top: clamp(40px, 6vw, 88px); padding-bottom: 0; }
.hero__inner { padding-bottom: clamp(40px, 6vw, 80px); }
.hero__eyebrow { margin-bottom: clamp(20px, 4vw, 40px); }
.hero__lead { margin-top: clamp(24px, 3vw, 40px); max-width: 20ch; }
.hero .lead { margin-top: clamp(22px, 3vw, 36px); max-width: min(46ch, 92%); }
.hero__loc { margin-top: clamp(22px, 3vw, 34px); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: clamp(26px, 3.5vw, 42px); }

/* Page hero (inner pages) */
.pagehero { padding-top: clamp(36px, 5vw, 72px); }
.pagehero .eyebrow { margin-bottom: 22px; }
.pagehero .lead { margin-top: 26px; }
.pagehero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 32px; }
.pagehero__note { margin-top: 20px; font-size: .95rem; color: var(--muted); max-width: 52ch; }

/* ------- Meta grid (bordered stats row) ---------------------------------- */
.metagrid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-strong);
}
.metagrid__cell { padding: 22px clamp(14px, 2vw, 26px) 26px; border-left: 1px solid var(--line); }
.metagrid__cell:first-child { border-left: 0; padding-left: 0; }
.metagrid__k { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.metagrid__v { margin-top: 10px; font-weight: 700; font-size: 1.02rem; letter-spacing: -.01em; color: var(--ink); }

/* ------- Generic bordered box / grid ------------------------------------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.section-head { display: flex; flex-direction: column; gap: 16px; margin-bottom: clamp(30px, 4vw, 52px); }
.section-head .eyebrow { order: -1; }
.section-head p { max-width: 60ch; }
.section-head--split { }
@media (min-width: 900px) {
  .section-head--split { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 40px; }
  .section-head--split .section-head__text { max-width: 60%; }
}

/* ------- Cards ------------------------------------------------------------ */
.card {
  display: flex; flex-direction: column;
  background: var(--paper-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(22px, 2.5vw, 30px);
  transition: border-color .18s var(--ease), transform .18s var(--ease), box-shadow .18s var(--ease);
}
.card:hover { border-color: var(--line-strong); }
a.card:hover, .card--link:hover { transform: translateY(-3px); box-shadow: 0 16px 34px -22px rgba(23,19,13,.45); }
.card__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card__cat { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--orange); font-weight: 500; }
.card__name { margin-top: 18px; font-weight: 700; font-size: 1.4rem; letter-spacing: -.02em; }
.card__name a { color: var(--ink); transition: color .15s var(--ease); }
.card__name a:hover { color: var(--orange); }
.card__desc { margin-top: 12px; color: var(--ink-2); font-size: 1rem; }
.card__foot { margin-top: auto; padding-top: 22px; }

/* Product card kind marker (therapeutic / movement / community) */
.kindtag {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--font-mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-2); font-weight: 500;
}
.kindtag .dot { width: 8px; height: 8px; border-radius: 999px; background: var(--accent); display: inline-block; }
.kindtag.k-move .dot { background: var(--accent-deep); }
.kindtag.k-community .dot { background: var(--muted); }

/* Event card */
.eventcard {
  display: grid; grid-template-columns: 1fr auto; gap: 16px 24px; align-items: center;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--paper-3);
  padding: clamp(18px, 2vw, 24px) clamp(20px, 2.4vw, 28px);
  transition: border-color .18s var(--ease);
}
.eventcard:hover { border-color: var(--line-strong); }
.eventcard__meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 12px; }
.eventcard__meta span { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .04em; color: var(--muted); display: inline-flex; align-items: center; gap: .5em; }
.eventcard__name { font-weight: 700; font-size: 1.2rem; letter-spacing: -.015em; }
.eventcard__product { font-family: var(--font-mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--orange); }
.eventcard__cta { justify-self: end; }
.status { display: inline-flex; align-items: center; gap: .5em; font-family: var(--font-mono); font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; }
.status .dot { width: 8px; height: 8px; border-radius: 999px; background: var(--ok); }
.status.low .dot { background: var(--orange); }
.status.full .dot { background: var(--muted); }

/* Empty events fallback */
.events-empty {
  border: 1px dashed var(--line-strong); border-radius: var(--radius);
  padding: clamp(28px, 4vw, 44px); text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 18px;
}

/* ------- Numbered principle / step grids --------------------------------- */
.numgrid { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line-strong); }
.numgrid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.numgrid__cell { padding: clamp(22px,2.4vw,30px) clamp(16px,2vw,26px); border-left: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.numgrid__cell:nth-child(2n+1) { border-left: 0; padding-left: 0; }
/* 4-column numgrid: a divider before every column except the first of each row
   (the base :nth-child(2n+1) rule is for the 2-column layout and would drop the
   divider before column 3). */
@media (min-width: 761px) {
  .numgrid.cols-4 .numgrid__cell:nth-child(2n+1) { border-left: 1px solid var(--line); padding-left: clamp(16px,2vw,26px); }
  .numgrid.cols-4 .numgrid__cell:nth-child(4n+1) { border-left: 0; padding-left: 0; }
}
.numgrid__i { font-family: var(--font-mono); font-size: .8rem; letter-spacing: .08em; color: var(--orange); font-weight: 500; }
.numgrid__t { margin-top: 14px; font-weight: 700; font-size: 1.12rem; letter-spacing: -.01em; }
.numgrid__d { margin-top: 8px; color: var(--ink-2); font-size: .96rem; }

/* Step list (session sequence) */
.steps { border-top: 1px solid var(--line); }
.step { display: grid; grid-template-columns: 64px 1fr; gap: 8px 20px; padding: 22px 0; border-bottom: 1px solid var(--line); align-items: start; }
.step__n { font-family: var(--font-mono); font-size: .82rem; color: var(--orange); font-weight: 500; padding-top: .2em; }
.step__t { font-weight: 700; font-size: 1.1rem; letter-spacing: -.01em; }
.step__d { margin-top: 6px; color: var(--ink-2); font-size: .98rem; grid-column: 2; }

/* ------- "How to explain it" box ----------------------------------------- */
.explain {
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  background: var(--paper-2);
  padding: clamp(26px, 3vw, 40px);
  position: relative;
}
.explain__label { color: var(--orange); margin-bottom: 18px; }
.explain__q { font-size: clamp(1.15rem, 2vw, 1.5rem); line-height: 1.45; font-weight: 500; letter-spacing: -.01em; color: var(--ink); max-width: 60ch; }

/* Callout / "what it is not" list */
.notlist { display: grid; gap: 2px; }
.notlist li { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); align-items: baseline; }
.notlist li::before { content: ""; flex: 0 0 auto; width: 12px; height: 2px; background: var(--muted); transform: translateY(-4px); }
.notlist li:last-child { border-bottom: 0; }

/* Two-column comparison */
.compare { display: grid; gap: 20px; }
@media (min-width: 800px) { .compare { grid-template-columns: 1fr 1fr; } }
.compare__col { border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px,2.5vw,30px); background: var(--paper-3); }
.compare__col h3 { display: flex; align-items: center; gap: 10px; }
.compare__col ul { margin-top: 16px; }
.compare__col ul li { position: relative; padding-left: 1.4em; margin-top: .55rem; color: var(--ink-2); }
.compare__col ul li::before { content: ""; position: absolute; left: .1em; top: .62em; width: 7px; height: 7px; background: var(--orange); border-radius: 1px; }

/* ------- FAQ (accordion via <details>) ----------------------------------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 44px 22px 0; position: relative;
  font-weight: 600; font-size: 1.05rem; letter-spacing: -.01em; color: var(--ink);
  display: block;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 27px;
  width: 14px; height: 14px;
  background:
    linear-gradient(var(--orange),var(--orange)) center/14px 2px no-repeat,
    linear-gradient(var(--orange),var(--orange)) center/2px 14px no-repeat;
  transition: transform .2s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq__body { padding: 0 44px 24px 0; }
.faq__body p { color: var(--ink-2); }
.faq__body p + p { margin-top: .8rem; }

/* ------- Referral / split feature ---------------------------------------- */
.split { display: grid; gap: clamp(24px, 4vw, 56px); align-items: start; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } .split--wide-first { grid-template-columns: 1.1fr .9fr; } }

/* Founder / about media */
.founder { display: grid; gap: clamp(24px,4vw,48px); align-items: center; }
@media (min-width: 820px) {
  .founder { grid-template-columns: 300px 1fr; }
  /* Mirrored people block: photo on the right, text on the left. */
  .founder--reverse { grid-template-columns: 1fr 300px; }
  .founder--reverse .founder__photo { order: 2; }
}
.founder__photo { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--paper-2); }
.founder__photo img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/5; }
/* Two people blocks stacked in one section (About) */
.people { display: grid; gap: clamp(52px, 7vw, 100px); }

/* ------- CTA band --------------------------------------------------------- */
.ctaband { }
.ctaband__inner { display: flex; flex-direction: column; gap: 26px; align-items: flex-start; }
@media (min-width: 860px) {
  .ctaband__inner { flex-direction: row; align-items: center; justify-content: space-between; gap: 40px; }
  .ctaband__text { max-width: 60%; }
}
.ctaband .h2 { color: inherit; }

/* ------- Forms ------------------------------------------------------------ */
.form { display: grid; gap: 20px; }
.form__row { display: grid; gap: 20px; }
@media (min-width: 640px) { .form__row.cols-2 { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: 8px; }
.field > label {
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); font-weight: 500;
}
.field .req { color: var(--orange); }
.field .hint { font-size: .82rem; color: var(--muted); font-family: var(--font-sans); text-transform: none; letter-spacing: 0; }
.input, .select, .textarea {
  width: 100%; background: var(--paper-3); color: var(--ink);
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  padding: 13px 14px; font-size: 1rem; line-height: 1.4;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.textarea { min-height: 132px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px color-mix(in srgb, var(--orange) 18%, transparent); }
.field[data-invalid="true"] .input,
.field[data-invalid="true"] .select,
.field[data-invalid="true"] .textarea { border-color: var(--error); }
.field__err { font-size: .82rem; color: var(--error); font-family: var(--font-sans); min-height: 0; }
.checkfield { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; }
.checkfield input[type="checkbox"] { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--orange); }
.checkfield label { font-size: .95rem; color: var(--ink-2); font-family: var(--font-sans); text-transform: none; letter-spacing: 0; }
.form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 4px; }
.form__status { font-size: .95rem; }
.form__note { font-size: .86rem; color: var(--muted); }

/* Confirmation panel */
.confirm {
  border: 1px solid var(--ok); border-radius: var(--radius);
  background: color-mix(in srgb, var(--ok) 8%, var(--paper-3));
  padding: clamp(24px, 3vw, 36px);
}
.confirm h3 { color: var(--ink); }
.confirm p { margin-top: 10px; color: var(--ink-2); }
[hidden] { display: none !important; }

/* ------- Footer ----------------------------------------------------------- */
.footer { background: var(--footer-bg); color: var(--footer-ink); border-top: 1px solid var(--footer-line); }
.footer__cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
  padding-block: clamp(36px, 5vw, 64px); border-bottom: 1px solid var(--footer-line);
}
.footer__cta .h3 { max-width: 22ch; }
.footer__main { display: grid; gap: 40px; padding-block: clamp(40px, 5vw, 64px); }
@media (min-width: 780px) { .footer__main { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer__brand .brand { color: var(--footer-ink); font-size: 1.3rem; }
.footer__brand p { color: var(--footer-muted); margin-top: 16px; max-width: 34ch; font-size: .95rem; }
.footer__col h4 { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--footer-muted); font-weight: 500; margin-bottom: 16px; }
.footer__col ul { display: grid; gap: 10px; }
.footer__col a { color: var(--footer-ink); font-size: .95rem; opacity: .85; transition: opacity .15s var(--ease), color .15s var(--ease); }
.footer__col a:hover { opacity: 1; color: var(--orange); }
.footer__bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  padding-block: 24px; border-top: 1px solid var(--footer-line);
}
.footer__legal { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.footer__legal a, .footer__copy { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .06em; color: var(--footer-muted); text-transform: uppercase; }
.footer__legal a:hover { color: var(--footer-ink); }
.footer .langswitch a { color: var(--footer-muted); border-color: var(--footer-line); }
.footer .langswitch a:hover { color: var(--footer-ink); border-color: rgba(23,23,25,.28); }
.footer__social { display: flex; gap: 10px; }
.footer__social a { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; border: 1px solid var(--footer-line); border-radius: var(--radius); opacity: .8; }
.footer__social a:hover { opacity: 1; border-color: rgba(23,23,25,.28); }

/* ------- Mobile menu panel ------------------------------------------------ */
.mobile-panel {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 90;
  background: var(--paper);
  padding: 24px var(--gutter) 48px;
  overflow-y: auto;
  transform: translateY(-8px); opacity: 0; visibility: hidden;
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
}
body.menu-open .mobile-panel { opacity: 1; visibility: visible; transform: translateY(0); }
.mobile-panel__list { display: grid; gap: 2px; }
.mobile-panel__list > li > a, .mobile-panel__acc-btn {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  font-family: var(--font-mono); font-size: .95rem; letter-spacing: .04em; text-transform: uppercase;
  padding: 16px 0; border-bottom: 1px solid var(--line); color: var(--ink); background: none; border-left: 0; border-right: 0; border-top: 0; cursor: pointer;
}
.mobile-panel__acc-btn .caret { transition: transform .18s var(--ease); }
.mobile-panel__acc-btn[aria-expanded="true"] .caret { transform: rotate(180deg); }
.mobile-panel__sub { display: none; padding: 6px 0 14px; }
.mobile-panel__sub.is-open { display: block; }
.mobile-panel__sub a { display: flex; flex-direction: column; gap: 2px; padding: 12px 0 12px 16px; border-left: 2px solid var(--line); }
.mobile-panel__sub .n { font-weight: 600; font-size: 1rem; text-transform: none; letter-spacing: -.01em; display: flex; align-items: center; gap: 8px; }
.mobile-panel__sub .d { font-size: .85rem; color: var(--muted); }
.mobile-panel__foot { margin-top: 28px; display: grid; gap: 16px; }
.mobile-panel__lang { display: flex; gap: 10px; }

.nav__desktop { display: contents; }

/* ------- Responsive ------------------------------------------------------- */
@media (max-width: 1000px) {
  .nav__desktop { display: none; }
  .nav__burger { display: inline-flex; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .announce__msg { display: none; }
  .announce__row { justify-content: center; }
  body { font-size: 16px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .metagrid { grid-template-columns: 1fr 1fr; }
  .metagrid__cell { border-left: 1px solid var(--line); }
  .metagrid__cell:nth-child(2n+1) { border-left: 0; padding-left: 0; }
  .numgrid, .numgrid.cols-4 { grid-template-columns: 1fr; }
  .numgrid__cell, .numgrid.cols-4 .numgrid__cell { border-left: 0; padding-left: 0; }
  .eventcard { grid-template-columns: 1fr; }
  .eventcard__cta { justify-self: start; }
  .step { grid-template-columns: 44px 1fr; }
  .btn-block-mobile { width: 100%; justify-content: center; }
}
@media (max-width: 420px) {
  .metagrid { grid-template-columns: 1fr; }
  .metagrid__cell { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); }
  .metagrid__cell:first-child { border-top: 0; }
}

/* ------- Motion / reveal --------------------------------------------------
   Content is visible by default. Only when JS is present (html.js) do sections
   start hidden and fade in, so no-JS users never lose content. */
.reveal { opacity: 1; }
html.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
html.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal, html.js .reveal { opacity: 1 !important; transform: none !important; }
}

/* Print */
@media print {
  .announce, .header, .footer__cta, .mobile-panel { display: none !important; }
  body { background: #fff; color: #000; }
}
