/* Popcorn Orbit — site stylesheet.
   Tokens are the brand layer over the Organic design system: warm-neutral
   ground, #E4222B accent, #4F7FD9 second voice, Caprasimo over Figtree. */

/* ---------- fonts ---------- */

@font-face {
  font-family: "Caprasimo";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/static/font/caprasimo-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Caprasimo";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/static/font/caprasimo-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/static/font/figtree-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/static/font/figtree-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- tokens: light ---------- */

:root {
  --accent: #E4222B;
  --accent-600: #C31D25;
  --accent-2: #4F7FD9;
  --accent-2-800: #223B6B;

  --bg: #ffffff;
  --ink: #201e1d;
  --mut: #56514e;
  --kick: #A21820;

  --band1: #EAF0FB;
  --band2: #FDEAE9;
  --patch: #FCF1D4;

  --ring: rgba(79, 127, 217, 0.45);
  --kern-y: #F5C33B;
  --kern-r: #F4A09C;
  --kern-b: #ABC4EE;

  --done-bg: #EAF0FB;
  --done-ink: #223B6B;

  --field-border: rgba(32, 30, 29, 0.3);
  --logo-frame: #ffffff;
  --logo-sh: none;

  --btn-bg: #E4222B;
  --btn-bg-hover: #C31D25;
  --btn-ink: #ffffff;

  --radius-lg: 16px;
  --space-3: 12px;

  --shadow-sm: 0 1px 2px rgba(32, 30, 29, .06), 0 6px 16px -10px rgba(32, 30, 29, .18);
  --shadow-md: 0 2px 6px rgba(32, 30, 29, .07), 0 16px 36px -18px rgba(32, 30, 29, .24);

  --font-heading: "Caprasimo", Georgia, "Times New Roman", serif;
  --font-body: "Figtree", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ---------- tokens: dark ---------- */

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --accent: #F0554F;
    --accent-600: #F6B3AF;
    --accent-2: #7DA1E3;
    --accent-2-800: #B8CDF2;

    --bg: #17151C;
    --ink: #F4F1EA;
    --mut: #b0aaa2;
    --kick: #F4A09C;

    --band1: #1D2434;
    --band2: #2C1B1E;
    --patch: #2E2917;

    --ring: rgba(125, 161, 227, 0.40);
    --kern-y: #6E5716;
    --kern-r: #6E2A27;
    --kern-b: #2C4470;

    --done-bg: #223B6B;
    --done-ink: #D3E0F6;

    --field-border: rgba(244, 241, 234, 0.32);
    --logo-frame: #221f29;
    --logo-sh: 0 18px 44px rgba(0, 0, 0, .45);

    --btn-bg: #F0554F;
    --btn-bg-hover: #F6B3AF;
    --btn-ink: #17151C;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4), 0 6px 16px -10px rgba(0, 0, 0, .6);
    --shadow-md: 0 2px 6px rgba(0, 0, 0, .45), 0 16px 36px -18px rgba(0, 0, 0, .7);
  }
}

:root[data-theme="dark"] {
  --accent: #F0554F;
  --accent-600: #F6B3AF;
  --accent-2: #7DA1E3;
  --accent-2-800: #B8CDF2;

  --bg: #17151C;
  --ink: #F4F1EA;
  --mut: #b0aaa2;
  --kick: #F4A09C;

  --band1: #1D2434;
  --band2: #2C1B1E;
  --patch: #2E2917;

  --ring: rgba(125, 161, 227, 0.40);
  --kern-y: #6E5716;
  --kern-r: #6E2A27;
  --kern-b: #2C4470;

  --done-bg: #223B6B;
  --done-ink: #D3E0F6;

  --field-border: rgba(244, 241, 234, 0.32);
  --logo-frame: #221f29;
  --logo-sh: 0 18px 44px rgba(0, 0, 0, .45);

  --btn-bg: #F0554F;
  --btn-bg-hover: #F6B3AF;
  --btn-ink: #17151C;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4), 0 6px 16px -10px rgba(0, 0, 0, .6);
  --shadow-md: 0 2px 6px rgba(0, 0, 0, .45), 0 16px 36px -18px rgba(0, 0, 0, .7);
}

/* ---------- base ---------- */

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

/* The UA `[hidden]` rule does not reliably apply to inline <svg>, and any
   element rule for svg would out-specify it. Make it unambiguous. */
[hidden] { display: none !important; }

html, body { overflow-x: clip; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  text-wrap: pretty;
  -webkit-font-smoothing: antialiased;
}

/* `height: auto` is load-bearing: the width/height attributes on each <img>
   (there to reserve layout space) otherwise apply as a presentational height
   hint, which beats `aspect-ratio` and stretches the image. */
img { max-width: 100%; height: auto; display: block; }

::selection { background: rgba(79, 127, 217, .28); }

a { color: var(--kick); }
a:hover { color: var(--accent); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--bg);
  color: var(--ink);
  padding: 10px 18px;
  border-radius: 999px;
  z-index: 99;
  box-shadow: var(--shadow-md);
}
.skip:focus { left: 16px; }

/* Present to assistive tech, absent visually — for labels the design shows
   only as placeholder text. Not `display: none`, which removes it entirely. */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.wrap {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(24px, 4vh, 56px) clamp(20px, 5vw, 72px) clamp(48px, 7vh, 88px);
}

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 400;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(38px, 5.8vw, 76px); line-height: 1.08; margin-left: -0.028em; }
h2 { font-size: clamp(28px, 3.4vw, 42px); line-height: 1.15; }
h3 { font-size: 22px; line-height: 1.2; }

.lede { font-size: 17px; line-height: 28px; max-width: 54ch; margin: 28px 0 0; }
.body { font-size: 16px; line-height: 28px; max-width: 46ch; margin: 20px 0 0; color: var(--mut); }

.kicker {
  display: block;
  font-size: 13px;
  line-height: 1.1;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--kick);
  margin-bottom: 14px;
}

.accent { color: var(--accent); }

/* ---------- nav ---------- */

.nav {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px clamp(20px, 5vw, 72px);
}
.nav-brand {
  font-family: var(--font-heading);
  font-size: 20px;
  letter-spacing: -0.01em;
}
.nav-spacer { flex: 1; }

.tag {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .02em;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(228, 34, 43, .12);
  color: var(--kick);
  white-space: nowrap;
}

/* ---------- controls ---------- */

.btn {
  font: inherit;
  font-weight: 600;
  border: 0;
  border-radius: 999px;
  padding: 10px 24px;
  min-height: 42px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background-color .15s ease, color .15s ease;
}
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } }

.btn-primary { background: var(--btn-bg); color: var(--btn-ink); }
.btn-primary:hover { background: var(--btn-bg-hover); }

.btn-icon {
  background: transparent;
  color: var(--ink);
  padding: 0;
  width: 38px;
  height: 38px;
  min-height: 38px;
  border-radius: 999px;
}
.btn-icon:hover { background: rgba(128, 128, 128, .14); }

.input {
  font: inherit;
  color: var(--ink);
  background: transparent;
  border: 1.5px solid var(--field-border);
  border-radius: 999px;
  padding: 10px 20px;
  min-height: 42px;
}
.input::placeholder { color: var(--mut); opacity: .8; }
.input:hover { border-color: var(--accent); }

/* ---------- hero ---------- */

.hero { position: relative; background: var(--bg); }
.hero .wrap > .col { max-width: 820px; }

.signup {
  display: flex;
  gap: var(--space-3);
  align-items: stretch;
  max-width: 460px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.signup .input { flex: 1 1 220px; min-width: 0; }

.fineprint { font-size: 13px; line-height: 1.5; margin: 14px 0 0; color: var(--mut); }

.done {
  display: none;
  background: var(--done-bg);
  border-radius: 999px;
  padding: 12px 24px;
  margin-top: 28px;
  width: fit-content;
}
.done p { margin: 0; font-size: 15.5px; font-weight: 600; color: var(--done-ink); }

.form-error {
  margin: 12px 0 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--kick);
  min-height: 1.4em;
}

body.joined .signup,
body.joined .fineprint { display: none; }
body.joined .done { display: block; }

.logo-frame {
  margin-top: clamp(36px, 6vh, 68px);
  border-radius: calc(2 * var(--radius-lg));
  overflow: hidden;
  background: var(--logo-frame);
  box-shadow: var(--logo-sh);
}
.logo-frame img { width: 100%; }

/* ---------- decorative ---------- */

.deco { position: absolute; pointer-events: none; user-select: none; }
/* The parallax wrapper must fill .deco, or a percentage-height child resolves
   against an auto height and collapses to its own border. */
.deco > [data-parallax] { width: 100%; height: 100%; }
.ring-o { width: 100%; height: 100%; border: 2.5px dashed var(--ring); border-radius: 50%; }
.kernel { color: var(--kern-b); }
.kernel.y { color: var(--kern-y); }
.kernel.r { color: var(--kern-r); }

.wave { background: var(--bg); }
.wave svg { display: block; width: 100%; height: clamp(48px, 7vw, 100px); }

/* ---------- content sections ---------- */

.band1 { background: var(--band1); position: relative; }
.band2 { background: var(--band2); position: relative; overflow: hidden; }
.plain { background: var(--bg); position: relative; }

.split {
  display: flex;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  flex-wrap: wrap;
}
.split.reverse { flex-wrap: wrap-reverse; }
.split > .col { flex: 1 1 320px; min-width: 0; }
.split > .col.wide { flex: 1 1 460px; }

.pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  position: relative;
}
.pair figure { margin: 0; }
.pair .shot {
  border-radius: calc(2 * var(--radius-lg));
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.pair img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.pair figcaption {
  font-size: 13px;
  line-height: 1.4;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--mut);
  margin-top: 14px;
}
.pair figcaption.on { color: var(--kick); }

.vs {
  position: absolute;
  left: 50%;
  top: 42%;
  transform: translate(-50%, -50%) rotate(-8deg);
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: #F5C33B;
  box-shadow: var(--shadow-md);
  display: grid;
  place-content: center;
  z-index: 2;
  font-family: var(--font-heading);
  font-size: 22px;
  color: #201e1d;
}

.offset-down { transform: translateY(18px); }
.offset-up { transform: translateY(-10px); }

/* ---------- steps ---------- */

.steps {
  display: flex;
  gap: clamp(24px, 4vw, 56px);
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-top: clamp(32px, 5vh, 56px);
}
.step { flex: 0 1 290px; min-width: 220px; text-align: center; }
.step:nth-child(2) { flex-basis: 320px; margin-top: clamp(0px, 4vh, 48px); }
.step:nth-child(3) { margin-top: clamp(0px, 2vh, 24px); }
.step .disc { position: relative; }
.step .disc > div {
  border-radius: 50%;
  overflow: hidden;
  aspect-ratio: 1;
  box-shadow: var(--shadow-md);
}
.step img { width: 100%; height: 100%; object-fit: cover; }
.step .n {
  position: absolute;
  left: 6%;
  top: 2%;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--accent-2);
  color: #fff;
  display: grid;
  place-content: center;
  font-family: var(--font-heading);
  font-size: 20px;
  box-shadow: var(--shadow-sm);
}
.step h3 { margin-top: 20px; }
.step p { font-size: 14.5px; line-height: 24px; margin: 10px 0 0; color: var(--mut); }

/* ---------- closing ---------- */

.closing .wrap { padding-bottom: 0; }
.card-patch {
  background: var(--patch);
  border-radius: calc(2.5 * var(--radius-lg));
  padding: clamp(28px, 5vh, 56px) clamp(24px, 4vw, 64px);
  display: flex;
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
  flex-wrap: wrap;
}
.card-patch > .col { flex: 1 1 320px; min-width: 0; }
.card-patch h3 { font-size: clamp(26px, 3vw, 38px); line-height: 1.15; }
.card-patch .disc {
  flex: 0 1 300px;
  min-width: 220px;
  border-radius: 50%;
  overflow: hidden;
  aspect-ratio: 1;
  box-shadow: var(--shadow-md);
}
.card-patch .disc img { width: 100%; height: 100%; object-fit: cover; }

footer {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px clamp(20px, 5vw, 72px) 56px;
  font-size: 13px;
  color: var(--mut);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .deco > * { transform: none !important; }
}
