/* The Stage, for pages that name "stage" in their front matter: the home, /communities and /tiktok-shop. Lime holds the first
   screen, with ink words, one cobalt phrase and a lit press. The cobalt Stage follows it, then tiles on a soft ground. Dark
   follows the device. Lime is a ground or a fill with ink words, or words on blue or on dark. It is never words on white or a
   tint, a money figure, a legal line or the footer. */
:root[data-stage] {
  --lime: #D4FF24;
  --lime-lit: #E0FF5C;
  --on-lime: #14161B;
  --lit-word: #1A41B8;
  --hero-ground: var(--lime);
  --hero-ink: var(--on-lime);
  --lit-top: #3A63E8;
  --lit-mid: #2352E0;
  --lit-low: #1A41B8;
  --grain: url("/assets/brand/grain.svg");
  --page: #F5F6F8;
  --card: #FFFFFF;
  --tile-line: inset 0 0 0 1px var(--line);
  --stage-a: #1F4BCF;
  --stage-b: #1A41B8;
  --press-a: #3A63E8;
  --press-b: #2352E0;
  --press-c: #1A41B8;
  --press-on: #FFFFFF;
  --ghost: #14161B;
  --ghost-on: #FFFFFF;
  --field: #FFFFFF;
  --dock-ground: #1A41B8;
  --dock-press: #FFFFFF;
  --dock-press-on: #1A41B8;
}
@media (prefers-color-scheme: dark) {
  :root[data-stage] {
    --ink: #F2F4F7;
    --slate: #B9BFCA;
    --bg: #111318;
    --band: #15181E;
    --wash: #18244A;
    --wash-line: #2F3A5E;
    --line: #2F3440;
    --cobalt: #9DB7FF;
    --cobalt-dark: #C2D2FF;
    --hero-ground: #14161B;
    --hero-ink: #F2F4F7;
    --lit-word: var(--lime);
    --page: #111318;
    --card: #1A1D24;
    --stage-a: #18244A;
    --stage-b: #111318;
    --press-a: var(--lime-lit);
    --press-b: var(--lime);
    --press-c: var(--lime);
    --press-on: var(--on-lime);
    --ghost: #252932;
    --ghost-on: #F2F4F7;
    --field: #252932;
    --dock-ground: #252932;
    --dock-press: transparent;
    --dock-press-on: #FFFFFF;
  }
}

html[data-stage] body { background: var(--page); color: var(--ink); }
[data-stage] h1, [data-stage] h2 { letter-spacing: -0.03em; }
[data-stage] section { background: transparent; }

/* Presses */
[data-stage] .btn { border-radius: 12px; }
[data-stage] .btn-primary { background: linear-gradient(180deg, var(--press-a), var(--press-b) 55%, var(--press-c)); color: var(--press-on); box-shadow: inset 0 1px 0 rgba(255,255,255,.35), inset 0 -2px 0 rgba(0,0,0,.18); }
[data-stage] .btn-ghost { background: var(--card); color: var(--ink); border: 0; box-shadow: var(--tile-line); }
[data-stage] .btn-lime { background: linear-gradient(180deg, var(--lime-lit), var(--lime)); color: var(--on-lime); box-shadow: inset 0 1px 0 rgba(255,255,255,.55), inset 0 -2px 0 rgba(20,22,27,.16); }
[data-stage] .hero .btn-ghost { background: var(--ghost); color: var(--ghost-on); box-shadow: none; }

/* The first screen */
[data-stage] .hero { background: var(--hero-ground); color: var(--hero-ink); }
[data-stage] .hero .eyebrow, [data-stage] .hero h1, [data-stage] .hero p.lead, [data-stage] .hero p.fork, [data-stage] .hero .lead, [data-stage] .hero .step1 .fine, [data-stage] .ask-next { color: var(--hero-ink); }
@media (prefers-color-scheme: dark) { [data-stage] .hero .eyebrow, .stage-kick { color: var(--lime); } }
[data-stage] .hero p.fork { border-left-color: var(--hero-ink); }
[data-stage] .lit { color: var(--lit-word); }

/* The Stage: the lit cobalt block after the first screen */
[data-stage] section.stage-band { padding: 52px 0 60px; background-color: var(--stage-a); background-image: var(--grain), linear-gradient(180deg, var(--stage-a), var(--stage-b)); background-blend-mode: soft-light, normal; color: #FFFFFF; }
.stage-two { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }
/* White here in the light look: lime on the lit blue reads 4.4 to 1, too little for words this small. */
.stage-kick { color: #FFFFFF; font-weight: 700; font-size: 12.5px; letter-spacing: .09em; text-transform: uppercase; }
.stage-band h2 { color: #FFFFFF; font-size: clamp(25px, 3.6vw, 36px); margin-top: 8px; font-weight: 800; line-height: 1.12; }
.stage-rows { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.stage-rows li { padding: 15px 16px; border-radius: 14px; background: var(--card); color: var(--ink); font-size: 15.5px; }
.stage-rows b { display: block; }
.stage-rows span { color: var(--slate); font-size: 14.5px; }
.stage-rows li.tile-lime { background: var(--lime); }
.stage-rows li.tile-lime b, .stage-rows li.tile-lime span { color: var(--on-lime); }
.stage-go { margin-top: 18px; }
.stand { position: relative; overflow: hidden; border-radius: 16px; background: #E4E2DD; }
.stand img { display: block; width: 100%; height: auto; }
.stand-tag { position: absolute; left: 10px; bottom: 10px; padding: 3px 8px; border-radius: 6px; background: #14161B; color: #FFFFFF; font-size: 11.5px; font-weight: 700; }
/* A community's own words, once they exist and are approved. No page carries this element until then. */
.community-words { grid-column: 1 / -1; padding: 22px; border-radius: 12px; background: var(--card); color: var(--ink); font-size: 15px; }
@media (max-width: 760px) {
  [data-stage] section.stage-band { padding: 38px 0 42px; }
  .stage-two { grid-template-columns: 1fr; gap: 24px; }
}

/* Tiles and panels */
[data-stage] .counter-panel { background-color: #1F4BCF; background-image: var(--grain), linear-gradient(180deg, #1F4BCF, #1A41B8); background-blend-mode: soft-light, normal; }
[data-stage] .counter-line { color: #F1F4FF; }
[data-stage] .counter-go { background: #FFFFFF; color: #1A41B8; }
[data-stage] section.ed-band { background: var(--night); border-radius: 24px; margin: 0 10px; }
[data-stage] .ed-band .kicker, [data-stage] .ed-rows b { color: var(--lime); }
[data-stage] .ed-rows li { border-top-color: rgba(255,255,255,.14); }
@media (min-width: 900px) { [data-stage] section.ed-band { max-width: calc(var(--maxw) - 48px); margin-left: auto; margin-right: auto; } }
[data-stage] .brands-tile, [data-stage] .session-tile { box-shadow: var(--tile-line); }
[data-stage] .casestudy .btn-ghost { background: transparent; color: #EDF0F7; box-shadow: inset 0 0 0 1px rgba(255,255,255,.34); }

/* /tiktok-shop's parts, the look only */
[data-stage] .doors { border-top: 0; border-radius: 16px; }
[data-stage] .faq { border-top: 0; }
[data-stage] .step { border-top-color: var(--line); }

/* The site's one short form: the email and one press, then an optional step under the same email */
.ask-form { max-width: 560px; }
.ask-form .ask-row { display: flex; gap: 10px; }
.ask-form .ask-row .btn { white-space: nowrap; }
.ask-form .fine { font-size: 13.5px; margin-top: 10px; color: var(--slate); }
.ask-form .fine a { text-decoration: underline; }
.ask-form .field { display: grid; gap: 6px; }
.ask-form .step2 { display: grid; gap: 12px; padding: 20px; border-radius: 12px; background: var(--card); color: var(--ink); }
.ask-form .step2[hidden] { display: none; }
.ask-form .step2 h3 { font-size: 21px; font-weight: 800; outline: none; }
.ask-form .step2 .fine { margin-top: 0; }
.ask-form .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ask-form .acts { display: flex; gap: 10px; }
.ask-form .form-success { background: var(--card); color: var(--ink); border: 0; border-radius: 12px; padding: 22px; }
.ask-form .form-success h3 { font-size: 21px; font-weight: 800; color: var(--ink); }
.ask-form .form-success p { margin-top: 6px; }
.contact .ask-form .step2, .contact .ask-form .form-success { box-shadow: var(--tile-line); }
@media (max-width: 760px) {
  .ask-form .ask-row { display: grid; }
  .ask-form .ask-row .btn { width: 100%; text-align: center; min-height: 48px; }
  .ask-form .pair { grid-template-columns: 1fr; }
}

/* The form on every Stage page */
[data-stage] input, [data-stage] textarea, [data-stage] select { background: var(--field); color: var(--ink); border-color: var(--line); }
[data-stage] .form-note a { color: var(--cobalt); }

/* The dock */
@media (max-width: 760px) {
  [data-stage] .actionbar { left: 10px; right: 10px; bottom: 10px; padding: 7px; gap: 7px; border: 0; border-radius: 18px; background: var(--dock-ground); box-shadow: 0 8px 24px rgba(20,22,27,.28); backdrop-filter: none; }
  [data-stage] .actionbar .btn { min-height: 44px; }
  [data-stage] .actionbar .btn-ghost { background: transparent; color: #FFFFFF; box-shadow: none; }
  [data-stage] .actionbar .btn-primary { background: var(--dock-press); color: var(--dock-press-on); box-shadow: none; }
  html[data-stage] body { padding-bottom: 72px; }
}
@media (max-width: 760px) and (prefers-color-scheme: dark) {
  [data-stage] .actionbar .btn-primary { box-shadow: inset 0 0 0 1px rgba(157,183,255,.7), 0 0 12px rgba(157,183,255,.35); }
}
