/* ============================================================
   Cassius — landing page
   Design tokens
   ============================================================ */

/* ── Dark (default) ─────────────────────────────────────────
   Every colour lives here. Components reference tokens only,
   so the light theme below is a straight token swap.        */
:root,
:root[data-theme="dark"]{
  /* Surfaces — near-black, 1–2 shade deltas only */
  --bg:            #000000;
  --bg-soft:       #040404;
  --surface:       #0a0a0a;
  --surface-2:     #101010;

  /* Text */
  --text:          #ffffff;
  --text-body:     rgba(255,255,255,.72);
  --text-muted:    rgba(255,255,255,.42);
  --text-faint:    rgba(255,255,255,.26);
  --ink-strong:    rgba(255,255,255,.88);

  /* Lines */
  --line:          rgba(255,255,255,.08);
  --line-soft:     rgba(255,255,255,.05);
  --line-strong:   rgba(255,255,255,.14);
  --line-loud:     rgba(255,255,255,.34);

  /* Fills — inset rows, toggles, redacted lyric blocks */
  --fill-1:        rgba(255,255,255,.045);
  --fill-2:        rgba(255,255,255,.075);
  --fill-3:        rgba(255,255,255,.11);

  /* Inverse — primary buttons, Generate, selection */
  --inv-bg:        #ffffff;
  --inv-bg-hover:  rgba(255,255,255,.86);
  --inv-fg:        #000000;

  /* Chrome */
  --nav-bg:        rgba(0,0,0,.72);
  --sheet-bg:      rgba(0,0,0,.96);
  --glow:          rgba(255,255,255,.055);
  --focus:         #7cb0ff;

  /* One accent, used sparingly */
  --accent:        #e0a53c;
  --accent-on-inv: #8a6516;

  /* Section colours — carried over from the app, where they encode song structure */
  --sec-verse:     #5b8fd6;
  --sec-chorus:    #d8a33f;
  --sec-bridge:    #9182e8;
  --sec-intro:     #4fa37b;
  --sec-outro:     #c8604e;

  color-scheme: dark;
}

/* ── Light — matches the webapp's bright mode ───────────── */
:root[data-theme="light"]{
  --bg:            #f8f8f8;
  --bg-soft:       #fafafa;
  --surface:       #ffffff;
  --surface-2:     #f1f1f1;

  --text:          #000000;
  /* Black-on-white at low alpha reads far weaker than white-on-black at the
     same alpha, so the muted steps are pushed up rather than mirrored. */
  --text-body:     rgba(0,0,0,.68);
  --text-muted:    rgba(0,0,0,.60);
  --text-faint:    rgba(0,0,0,.52);
  --ink-strong:    rgba(0,0,0,.88);

  --line:          rgba(0,0,0,.11);
  --line-soft:     rgba(0,0,0,.07);
  --line-strong:   rgba(0,0,0,.18);
  --line-loud:     rgba(0,0,0,.38);

  --fill-1:        rgba(0,0,0,.05);
  --fill-2:        rgba(0,0,0,.075);
  --fill-3:        rgba(0,0,0,.12);

  --inv-bg:        #000000;
  --inv-bg-hover:  rgba(0,0,0,.84);
  --inv-fg:        #ffffff;

  --nav-bg:        rgba(248,248,248,.80);
  --sheet-bg:      rgba(250,250,250,.97);
  --glow:          rgba(0,0,0,.045);
  --focus:         #1a5fd0;

  --accent:        #a9761a;
  --accent-on-inv: #e8b652;

  /* Darkened so they hold contrast on a light ground */
  --sec-verse:     #2f66b8;
  --sec-chorus:    #866113;
  --sec-bridge:    #5f4ac0;
  --sec-intro:     #217750;
  --sec-outro:     #b03d29;

  color-scheme: light;
}

:root{
  /* Radii */
  --r-sm: 8px;
  --r:    14px;
  --r-lg: 20px;
  --r-pill: 999px;

  /* Rhythm */
  --pad:      clamp(24px, 4vw, 64px);
  --max:      920px;   /* centred prose */
  --max-wide: 1500px;  /* product visuals, grids, footer */
  --nav-max:  1760px;  /* nav runs wider still, so the logo sits at the page edge */
  --sect:     clamp(96px, 13vw, 180px);

  /* Motion */
  --e: cubic-bezier(.22,.61,.36,1);
  --t: 180ms var(--e);

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ============================================================
   Font — self-hosted, no third-party request
   ============================================================ */

@font-face{
  font-family:'Inter';
  font-style:normal;
  font-weight:300 700;          /* variable range, one file */
  font-display:swap;
  src:url('assets/fonts/inter-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;
}

/* ============================================================
   Base
   ============================================================ */

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

html{
  -webkit-text-size-adjust:100%;
  scroll-behavior:smooth;
  scroll-padding-top:96px;
}

body{
  margin:0;
  background:var(--bg);
  color:var(--text-body);
  font-family:var(--font);
  font-size:16px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  overflow-x:clip;   /* clip, not hidden — see .hero */
}

h1,h2,h3,h4,h5{
  margin:0;
  color:var(--text);
  font-weight:600;
  letter-spacing:-.03em;
  line-height:1.05;
}

p{ margin:0; }
a{ color:inherit; text-decoration:none; }
ul,ol{ margin:0; padding:0; list-style:none; }

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

::selection{ background:var(--text); color:var(--inv-fg); }

.sr,.skip{
  position:absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0;
}
.skip:focus{
  position:fixed; top:12px; left:12px; width:auto; height:auto; clip:auto;
  padding:10px 16px; background:var(--inv-bg); color:var(--inv-fg); border-radius:var(--r-pill); z-index:200;
}

/* ============================================================
   Keyboard focus

   Only :focus-visible, so it appears for keyboard/AT users and never
   on mouse click. Two-tone ring works on both light and dark grounds.
   ============================================================ */
:where(a, button, input, textarea, select, summary, [tabindex]):focus-visible{
  outline:2px solid var(--focus);
  outline-offset:3px;
  border-radius:var(--r-sm);
}
.btn:focus-visible,
.btn--pill:focus-visible,
.mobile__cta:focus-visible,
.billing__opt:focus-visible,
.themer:focus-visible,
.nav__toggle:focus-visible{ outline-offset:3px; border-radius:var(--r-pill); }

/* Contact fields keep their own shape when focused */
.field:focus-visible{ border-radius:var(--r-pill); }
.field--msg:focus-visible{ border-radius:var(--r); }

.wrap{
  width:100%;
  max-width:var(--max);
  margin:0 auto;
  padding-inline:var(--pad);
}
.wrap--wide{ max-width:var(--max-wide); }

/* ============================================================
   Nav
   ============================================================ */

.nav{
  position:fixed; inset:0 0 auto 0; z-index:100;
  transition:background 240ms var(--e), border-color 240ms var(--e), backdrop-filter 240ms var(--e);
  border-bottom:1px solid transparent;
}
.nav.is-stuck{
  background:var(--nav-bg);
  backdrop-filter:saturate(160%) blur(16px);
  -webkit-backdrop-filter:saturate(160%) blur(16px);
  border-bottom-color:var(--line-soft);
}

/* The marketing hero carries the identity and navigation. The fixed row is
   intentionally reduced to the two account actions. */
.nav__inner{
  max-width:var(--nav-max);
  margin:0 auto;
  padding:18px var(--pad);
  display:flex;
  justify-content:flex-end;
  align-items:center;
}

.logo{
  font-size:19px; font-weight:700; letter-spacing:-.045em;
  font-family:"Open Sans", Arial, sans-serif;
  color:var(--text); line-height:1;
}

.nav__right{ display:flex; align-items:center; gap:14px; }

/* Secondary entry point. Deliberately a text link, not a second button —
   one visual CTA in the nav, with a quiet way back in for existing users. */
.nav__login{
  font-size:13px; font-weight:500; letter-spacing:0;
  color:var(--text-muted); white-space:nowrap;
  transition:color var(--t);
}
.nav__login:hover{ color:var(--text); }

.nav__link{
  font-size:13px; font-weight:500; letter-spacing:0;
  color:var(--text-muted);
  transition:color var(--t);
}
.nav__link:hover,
.nav__link.is-active{ color:var(--text); }

/* TEMPORARY scheme switcher — delete with the button in index.html */
.themer{
  width:36px; height:36px; padding:0; flex:none;
  display:grid; place-items:center;
  background:none; border:1px solid var(--line); border-radius:var(--r-pill);
  color:var(--text-muted); cursor:pointer;
  transition:color var(--t), border-color var(--t);
}
.themer:hover{ color:var(--text); border-color:var(--line-strong); }
.themer svg{
  grid-area:1/1; width:16px; height:16px;
  fill:none; stroke:currentColor; stroke-width:1.5;
  stroke-linecap:round; stroke-linejoin:round;
}
/* Show the scheme you'd switch *to* */
.themer__sun{ display:none; }
[data-theme="light"] .themer__sun{ display:block; }
[data-theme="light"] .themer__moon{ display:none; }

.nav__toggle{
  display:none; width:38px; height:38px; padding:0;
  background:none; border:1px solid var(--line); border-radius:var(--r-pill);
  cursor:pointer; align-items:center; justify-content:center; flex-direction:column; gap:5px;
}
.nav__toggle span{
  display:block; width:14px; height:1.5px; background:var(--text);
  transition:transform var(--t), opacity var(--t);
}
.nav__toggle[aria-expanded="true"] span:first-child{ transform:translateY(3.25px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child{ transform:translateY(-3.25px) rotate(-45deg); }

/* Mobile sheet */
.mobile{
  position:fixed; inset:70px 0 auto 0; z-index:99;
  background:var(--sheet-bg);
  backdrop-filter:blur(20px); -webkit-backdrop-filter:blur(20px);
  border-bottom:1px solid var(--line);
  padding:14px var(--pad) 26px;
  display:flex; flex-direction:column; gap:2px;
  animation:sheet 220ms var(--e);
}
.mobile[hidden]{ display:none; }
.mobile a{
  padding:14px 0; font-size:17px; font-weight:500; color:var(--text);
  border-bottom:1px solid var(--line-soft);
}
.mobile__cta{
  margin-top:18px; border:0 !important; text-align:center;
  background:var(--inv-bg); color:var(--inv-fg) !important; border-radius:var(--r-pill);
  padding:14px 0 !important; font-weight:600;
}
@keyframes sheet{ from{ opacity:0; transform:translateY(-8px);} to{opacity:1;transform:none;} }

/* ============================================================
   Buttons
   ============================================================ */

.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  font-size:14px; font-weight:600; letter-spacing:-.01em;
  border-radius:var(--r-pill); cursor:pointer; white-space:nowrap;
  transition:transform var(--t), background var(--t), color var(--t), border-color var(--t), opacity var(--t);
  border:1px solid transparent;
}
.btn:active{ transform:scale(.975); }

.btn--primary{
  background:var(--inv-bg); color:var(--inv-fg); padding:13px 24px;
}
.btn--primary:hover{ background:var(--inv-bg-hover); }

/* Nav CTA — solid, so "Log in" reads as secondary next to it. */
.btn--pill{
  background:var(--inv-bg); color:var(--inv-fg);
  border-color:var(--inv-bg); padding:5px 13px; font-size:13px;
}
.btn--pill:hover{ background:var(--inv-bg-hover); border-color:var(--inv-bg-hover); }

.btn--ghost{
  background:transparent; color:var(--text-muted); padding:13px 6px;
}
.btn--ghost:hover{ color:var(--text); }

.btn--outline{
  background:transparent; color:var(--text);
  border-color:var(--line); padding:13px 24px;
}
.btn--outline:hover{ border-color:var(--line-loud); }

.arw{ display:inline-block; transition:transform var(--t); }
.btn:hover .arw,
.link:hover .arw{ transform:translateX(3px); }

.link{
  display:inline-flex; align-items:center; gap:7px;
  font-size:14px; font-weight:500; color:var(--text);
  padding-bottom:2px; border-bottom:1px solid var(--line);
  transition:border-color var(--t);
}
.link:hover{ border-bottom-color:var(--line-loud); }

/* ============================================================
   Hero
   ============================================================ */

.hero{
  position:relative;
  padding:clamp(92px,10vw,136px) 0 clamp(90px,11vw,132px);
  text-align:center;
  background:var(--surface);
  /* clip, not hidden: `hidden` creates a scroll container, and browsers
     scroll it when a child receives keyboard focus — which shifted the hero
     32px left on narrow viewports. `clip` cannot be scrolled. */
  overflow:clip;
}

.hero__glow{
  position:absolute; top:-20%; left:50%; transform:translateX(-50%);
  width:min(1100px,120vw); height:700px; pointer-events:none;
  background:radial-gradient(ellipse at center, var(--glow), transparent 62%);
}

/* The headline gets a wider track than the rest of the hero so it can run big
   without wrapping. Everything else in the hero stays narrow and centred. */
.hero__frame{
  position:relative;
  width:100%;
  max-width:var(--max-wide);
  min-height:clamp(540px,70vh,720px);
  margin:0 auto;
  padding:clamp(36px,5vw,72px);
  display:grid;
  grid-template-rows:1fr auto;
  align-items:center;
  background:var(--surface);
}

.hero__centre{ align-self:center; }

.hero__title{
  font-size:clamp(52px,7vw,96px);
  font-weight:500;
  font-family:"Open Sans", Arial, sans-serif;
  letter-spacing:-.045em;
  line-height:1;
  margin:0 auto;
}

.hero__sub{
  margin:24px auto 0;
  max-width:46ch;
  font-size:clamp(13px,1.2vw,16px);
  color:var(--text-muted);
  line-height:1.6;
}

.hero__cta{
  margin-top:30px;
  display:flex; align-items:center; justify-content:center; gap:18px; flex-wrap:wrap;
}

.hero__cta .btn--primary{ padding:7px 14px; }

.hero__links{
  align-self:end;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:clamp(24px,3vw,44px);
}

.hero__links .nav__link{
  font-size:11px;
  letter-spacing:0;
  text-transform:uppercase;
}

.hero__proof{
  margin-top:26px;
  font-size:13px; color:var(--text-muted); letter-spacing:-.005em;
}
.hero__proof strong{ color:var(--text); font-weight:600; }

/* ============================================================
   Product mock
   ============================================================ */

.app{
  margin-top:0;
  background:linear-gradient(180deg,var(--surface),var(--bg-soft));
  border:1px solid var(--line);
  border-radius:var(--r-lg);
  overflow:clip;
  text-align:left;
  box-shadow:0 1px 0 var(--line-soft) inset;
}

.hero__product{ margin-top:clamp(18px,2.4vw,36px); }

.app__bar{
  display:flex; align-items:center; gap:4px;
  padding:11px 14px;
  border-bottom:1px solid var(--line-soft);
}
.tool{
  width:28px; height:28px; border-radius:var(--r-sm);
  display:grid; place-items:center;
  color:var(--text-faint);
}
.tool svg{
  width:15px; height:15px;
  fill:none; stroke:currentColor; stroke-width:1.3;
  stroke-linecap:round; stroke-linejoin:round;
}
.tool.is-on{ background:var(--fill-2); color:var(--text-muted); }

.app__proj{
  margin-left:auto;
  display:flex; align-items:center; gap:5px;
  font-size:12.5px; color:var(--text-muted); letter-spacing:-.01em;
}
.app__proj svg{
  width:13px; height:13px; opacity:.6;
  fill:none; stroke:currentColor; stroke-width:1.4;
  stroke-linecap:round; stroke-linejoin:round;
}

.app__body{
  display:grid;
  grid-template-columns:56px 300px 1fr;
  height:700px;
}

/* ── icon rail ── */
.rail{
  display:flex; flex-direction:column; align-items:center; gap:4px;
  padding:14px 0;
  border-right:1px solid var(--line-soft);
}
.rail__ico{
  width:30px; height:30px; border-radius:var(--r-sm);
  display:grid; place-items:center;
  color:var(--text-faint);
}
.rail__ico svg{
  width:16px; height:16px;
  fill:none; stroke:currentColor; stroke-width:1.3;
  stroke-linecap:round; stroke-linejoin:round;
}
.rail__ico.is-on{ background:var(--fill-2); color:var(--text); }
.rail__gap{ height:22px; }

/* ── Genesis panel ── */
.gen{
  padding:16px 16px 18px;
  border-right:1px solid var(--line-soft);
  display:flex; flex-direction:column;
  overflow:hidden;
}
/* The panel scrolls in the app; here it just crops, so Generate stays pinned. */
.gen__body{
  flex:1; min-height:0; overflow:hidden;
  -webkit-mask-image:linear-gradient(#000 88%, transparent);
          mask-image:linear-gradient(#000 88%, transparent);
}
.gen__head{
  display:flex; align-items:center; justify-content:space-between;
  margin-bottom:22px;
}
.gen__head span:first-child{
  font-size:16px; font-weight:600; color:var(--text); letter-spacing:-.03em;
}
.gen__x{ color:var(--text-faint); font-size:15px; }

.fld__lbl,
.lbl{
  font-size:9.5px; font-weight:500; text-transform:uppercase; letter-spacing:0;
  color:var(--text-faint);
  margin:0 0 8px;
}
.lbl{ font-size:10px; margin-bottom:10px; }
.fld__lbl:not(:first-of-type){ margin-top:15px; }

.fld{
  display:flex; align-items:center; justify-content:space-between; gap:10px;
  background:var(--fill-1);
  border-radius:10px;
  padding:9px 12px; margin-bottom:4px;
  font-size:12.5px; color:var(--text-body);
  position:relative; overflow:hidden;
}
.fld em{ font-style:normal; color:var(--text-faint); }
.fld b{ font-weight:400; color:var(--text-body); font-variant-numeric:tabular-nums; }

/* Inactive Bridge controls stay present but silent, matching the product. */
.fld--locked{ color:var(--text-faint); opacity:.48; }

/* Dropdown rows carry a chevron, as in the app */
.fld__sel{ display:inline-flex; align-items:center; gap:7px; color:var(--text-faint); }
.fld__sel svg{
  width:11px; height:11px; opacity:.75;
  fill:none; stroke:currentColor; stroke-width:1.5;
  stroke-linecap:round; stroke-linejoin:round;
}

/* Text areas read as the same filled row as every other control —
   an outlined box next to filled ones is what made Bridge look untidy. */
.fld--area{
  display:block; min-height:52px;
  color:var(--text-faint); line-height:1.5;
  padding:11px 12px;
}

/* dotted measure track + cursor */
.fld--range::before{
  content:""; position:absolute; left:52px; right:38px; top:50%;
  height:1px; transform:translateY(-.5px);
  background:radial-gradient(circle, var(--text-faint) .8px, transparent .9px) 0 50%/13px 3px repeat-x;
  opacity:.65;
}
.fld--range::after{
  content:""; position:absolute; top:6px; bottom:6px; left:calc(52px + (var(--p) * .78));
  width:1.5px; border-radius:1px; background:var(--text-muted);
}
.fld--range span, .fld--range b{ position:relative; z-index:1; }

.sw{
  width:26px; height:15px; border-radius:var(--r-pill);
  background:var(--fill-3); position:relative; flex:none;
}
.sw::after{
  content:""; position:absolute; top:2.5px; left:2.5px;
  width:10px; height:10px; border-radius:50%; background:var(--text-muted);
  transition:transform var(--t), background var(--t);
}
.sw.is-on{ background:rgba(224,165,60,.35); }
.sw.is-on::after{ transform:translateX(11px); background:var(--accent); }

.gen__go{
  flex:none; margin-top:16px;
  display:block; text-align:center;
  background:var(--inv-bg); color:var(--inv-fg);
  font-size:13px; font-weight:600;
  border-radius:var(--r-pill); padding:12px;
}

/* ── lyric canvas ── */
.canvas{
  padding:28px 42px;
  -webkit-mask-image:linear-gradient(#000 68%, transparent 100%);
          mask-image:linear-gradient(#000 68%, transparent 100%);
}

.sec{
  font-size:9.5px; font-weight:500; text-transform:uppercase; letter-spacing:0;
  margin:0 0 14px;
}
.sec:not(:first-child){ margin-top:34px; }

.sec--none{   color:var(--text-faint); }
.sec--verse{  color:var(--sec-verse); }
.sec--chorus{ color:var(--sec-chorus); }
.sec--bridge{ color:var(--sec-bridge); }
.sec--intro{  color:var(--sec-intro); }
.sec--outro{  color:var(--sec-outro); }

.cl{
  font-size:14.5px; line-height:2; color:var(--ink-strong);
  letter-spacing:-.012em;
}

/* redacted line — shows structure, not lyrics */
.blk{
  display:block; height:8px; width:var(--w); max-width:100%;
  border-radius:var(--r-pill);
  background:var(--fill-3);
  margin-bottom:9px;
}

.caret{
  display:inline-block; width:1.5px; height:1.05em; margin-left:2px;
  background:var(--text); vertical-align:-2px;
  animation:blink 1.05s steps(1) infinite;
}
@keyframes blink{ 50%{ opacity:0; } }

/* ============================================================
   Sections
   ============================================================ */

.section{ padding:var(--sect) 0; }
.section--tight{ padding-top:0; }

/* Section eyebrow. No border — just the label, at full contrast.
   var(--text) is white on the dark theme and near-black on light, so it
   reads as "bright" either way instead of vanishing in light mode. */
.pill{
  display:inline-block;
  font-size:11px; font-weight:500; letter-spacing:0;
  color:var(--text);
  margin-bottom:26px;
}

.display{
  font-size:clamp(32px,4.8vw,54px);
  letter-spacing:-.042em; line-height:1.06;
  text-wrap:balance;
}
.display--lg{ font-size:clamp(38px,6vw,66px); }

.lede{
  margin-top:22px; max-width:60ch;
  font-size:clamp(15px,1.4vw,17px); color:var(--text-body); line-height:1.65;
  /* stops a single word being stranded on the last line */
  text-wrap:pretty;
}

#why,
#how > .wrap:first-child,
#creators > .wrap:first-child,
#pricing .wrap,
.join .wrap{ text-align:center; }

#why .lede, #creators .lede, #pricing .lede, .join .lede{ margin-inline:auto; }
.join .pill{ margin-inline:auto; }

/* ============================================================
   Feature rows
   ============================================================ */

.row{
  display:grid;
  grid-template-columns:1fr 1fr;
  align-items:center;
  gap:clamp(48px,7vw,110px);
  padding:clamp(64px,8vw,110px) 0;
  border-top:1px solid var(--line-soft);
}
.row:first-child{ border-top:0; }
.row--flip .row__copy{ order:2; }

.row__copy h3{
  font-size:clamp(25px,2.9vw,34px);
  letter-spacing:-.038em;
}
.row__copy p{
  margin:18px 0 26px;
  font-size:16px; color:var(--text-body); line-height:1.66; max-width:44ch;
  text-wrap:pretty;
}

.card{
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--r);
  padding:22px;
  transition:border-color 260ms var(--e), background 260ms var(--e);
}
.row:hover .card{ border-color:var(--line-strong); background:var(--surface-2); }

/* Genesis controls, lifted straight out of the app */
.card--gen{ padding:20px 18px 22px; }
.card--gen .fld__lbl:first-child{ margin-top:0; }
.card--genesis{
  width:70%;
  margin-inline:auto;
}

/* Bridge mirrors the current app: a Set up / Resolve switch, two stacked
   halves, then Anchor and Measure. The marketing illustration deliberately
   uses the same control species rather than maintaining the retired dropdown
   and separate Set up / Punchline groups. */
.bridge-mode{
  position:relative; isolation:isolate;
  display:grid; grid-template-columns:1fr 1fr;
  height:44px; padding:3px;
  border-radius:12px; background:var(--fill-1);
}
.bridge-mode__pill{
  position:absolute; z-index:0; inset:3px auto 3px 3px;
  width:calc(50% - 3px); border-radius:9px;
  background:var(--fill-3);
}
.bridge-mode span{
  position:relative; z-index:1; display:grid; place-items:center;
  font-size:13.5px; color:var(--text-faint);
}
.bridge-mode span.is-on{ color:var(--text); }

.bridge-halves{
  display:flex; flex-direction:column; gap:6px;
  margin:18px 0 20px;
}
.bridge-half{
  position:relative; min-height:58px;
  border-radius:10px; padding:11px 12px;
  background:var(--fill-1);
  font-size:12.5px; line-height:1.5; color:var(--text-faint);
}
.bridge-half em{
  position:absolute; top:9px; right:12px;
  font-size:10.5px; font-style:normal; letter-spacing:.03em;
  color:var(--text-faint);
}
.bridge-half--locked{ opacity:.4; }
.card--bridge{
  width:80%;
  margin-inline:auto;
}
.card--bridge .gen__go{ margin-top:16px; }

/* Tool name above each feature heading. Colour-coded like the song
   sections: Bridge reuses the app's own Bridge violet; Genesis takes the
   site accent, since it has no section colour of its own. */
.tool__tag{
  display:inline-block; margin-bottom:14px;
  font-size:10.5px; font-weight:600; letter-spacing:0; text-transform:uppercase;
  color:var(--text-faint);
}
.tool__tag--genesis{ color:var(--accent); }
.tool__tag--bridge{  color:var(--sec-bridge); }

/* Project shelf — full-bleed row, the one place colour gets the floor */
.row--shelf{
  grid-template-columns:1fr;
  gap:clamp(38px,4.5vw,58px);
}
.row--shelf .row__copy p{ max-width:54ch; }
/* Search sits top-right of the gallery, as it does in the app. */
.row--shelf .row__media{ display:flex; flex-direction:column; }
.shelf__search{ align-self:flex-end; }

.shelf__search{
  display:inline-flex; align-items:center; gap:8px;
  margin-bottom:26px;
  font-size:13px; color:var(--text-faint);
  background:var(--surface); border:1px solid var(--line-soft);
  border-radius:var(--r-pill); padding:9px 18px;
}
.shelf__search svg{
  width:13px; height:13px;
  fill:none; stroke:currentColor; stroke-width:1.4;
  stroke-linecap:round; stroke-linejoin:round;
}

.shelf{
  display:flex; align-items:center; gap:14px;
  padding:6px 0;
}

.shelf__dots{
  display:flex; justify-content:center; gap:7px;
  margin-top:30px;
}
.shelf__dots i{
  width:5px; height:5px; border-radius:50%;
  background:var(--line-strong);
}
.shelf__dots i.is-on{ background:var(--text-muted); }
.proj{
  flex:1 1 0; aspect-ratio:1;
  border-radius:26px;
  display:grid; place-items:center;
  font-size:15px; font-weight:500; color:#fff;
  transition:transform 320ms var(--e), box-shadow 320ms var(--e);
}
.proj b{ font-weight:500; }

.proj--1{ background:radial-gradient(circle at 50% 42%, #8dc63f, #2f6b32 62%, #17311c); }
.proj--2{ background:radial-gradient(circle at 50% 42%, #3b6fd4, #2a2a63 62%, #1d1436); }
.proj--3{ background:radial-gradient(circle at 50% 42%, #b23fc4, #7d3a5e 60%, #6b4526); }
.proj--4{ background:radial-gradient(circle at 50% 42%, #b7d942, #2f7c6b 64%, #17403c); }
.proj--5{ background:radial-gradient(circle at 50% 42%, #5b4bd6, #52277a 60%, #4a1f36); }

.proj--add{
  flex:0 0 34px; aspect-ratio:auto; height:34px;
  background:none; color:var(--text-faint); font-size:24px; font-weight:300;
}

.row:hover .proj--1{
  transform:translateY(-6px) scale(1.06);
  box-shadow:0 18px 40px rgba(0,0,0,.55);
}

/* ============================================================
   Steps
   ============================================================ */

.steps{
  display:grid; grid-template-columns:repeat(3,1fr);
  gap:1px; margin-top:clamp(56px,7vw,80px);
  background:var(--line-soft);
  border:1px solid var(--line-soft); border-radius:var(--r);
  overflow:hidden;
}
.step{
  background:var(--bg); padding:clamp(28px,3.4vw,40px);
  transition:background 260ms var(--e);
}
.step:hover{ background:var(--surface); }
.step__n{
  display:block; font-size:11px; letter-spacing:0;
  color:var(--text-faint); margin-bottom:26px;
}
.step__h{ font-size:19px; letter-spacing:-.03em; }
.step p{ margin-top:11px; font-size:14.5px; color:var(--text-muted); line-height:1.6; }

/* ============================================================
   Creator tiles
   ============================================================ */

.grid{
  display:grid; grid-template-columns:repeat(4,1fr); gap:14px;
  margin-top:clamp(56px,7vw,80px);
}
.tile{
  background:var(--surface); border:1px solid var(--line-soft);
  border-radius:var(--r); padding:26px 22px 30px;
  transition:border-color 260ms var(--e), transform 260ms var(--e), background 260ms var(--e);
}
.tile:hover{
  border-color:var(--line-strong);
  background:var(--surface-2);
  transform:translateY(-3px);
}
.tile__h{ font-size:16px; letter-spacing:-.025em; }
.tile p{ margin-top:10px; font-size:14px; color:var(--text-muted); line-height:1.55; }

/* ============================================================
   Pricing
   ============================================================ */

/* Monthly / yearly switch */
.billing{
  display:inline-flex; gap:4px;
  margin-top:34px; padding:4px;
  background:var(--surface); border:1px solid var(--line-soft);
  border-radius:var(--r-pill);
}
.billing__opt{
  display:inline-flex; align-items:center; gap:8px;
  font-family:var(--font); font-size:13px; font-weight:500;
  color:var(--text-muted); background:none; border:0; cursor:pointer;
  border-radius:var(--r-pill); padding:9px 20px;
  transition:background var(--t), color var(--t);
}
.billing__opt:hover{ color:var(--text); }
.billing__opt.is-on{ background:var(--inv-bg); color:var(--inv-fg); }
.billing__save{
  font-size:11px; font-weight:600; color:var(--accent); letter-spacing:0;
}
.billing__opt.is-on .billing__save{ color:var(--accent-on-inv); }

.plans{
  display:grid; grid-template-columns:repeat(2,1fr); gap:16px;
  margin-top:clamp(44px,5vw,60px);
  text-align:left;
}

/* One plan: centre it rather than leaving a half-width card adrift. */
.plans--single{
  grid-template-columns:minmax(0,420px);
  justify-content:center;
}

.plan{
  display:flex; flex-direction:column;
  background:var(--surface);
  border:1px solid var(--line-soft);
  border-radius:var(--r);
  padding:clamp(26px,3vw,34px);
  transition:border-color 260ms var(--e), background 260ms var(--e);
}
.plan:hover{ border-color:var(--line-strong); background:var(--surface-2); }
.plan--best{ border-color:var(--line-strong); }

.plan__name{
  display:flex; align-items:center; gap:10px;
  font-size:13px; font-weight:500; color:var(--text-muted);
  text-transform:uppercase; letter-spacing:0;
}
.plan__tag{
  font-size:10px; font-weight:500; letter-spacing:0; text-transform:none;
  color:var(--accent);
  border:1px solid rgba(224,165,60,.34); border-radius:var(--r-pill);
  padding:3px 9px;
}

.plan__price{
  margin-top:20px;
  font-size:clamp(40px,4.4vw,52px); font-weight:600;
  color:var(--text); letter-spacing:-.045em; line-height:1;
  font-variant-numeric:tabular-nums;
}
.plan__price b{ font-weight:600; }

/* Old price, shown struck through only on the yearly cycle */
.plan__was{
  display:none;
  margin-right:12px;
  font-size:.54em; font-weight:500;
  color:var(--text-faint);
  text-decoration-thickness:1.5px;
  vertical-align:.16em;
}
.plans.is-yearly .plan__was{ display:inline; }
.plan__price span{
  font-size:16px; font-weight:400; color:var(--text-muted); letter-spacing:-.01em;
}

.plan__note{ margin-top:10px; font-size:13.5px; color:var(--text-faint); }

.plan__list{
  margin:26px 0 30px;
  display:flex; flex-direction:column; gap:11px;
  padding-top:22px; border-top:1px solid var(--line-soft);
}
.plan__list li{
  position:relative; padding-left:24px;
  font-size:14.5px; color:var(--text-body); line-height:1.45;
}
.plan__list li::before{
  content:""; position:absolute; left:0; top:6px;
  width:11px; height:6px;
  border-left:1.5px solid var(--text-muted);
  border-bottom:1.5px solid var(--text-muted);
  transform:rotate(-45deg);
}

.plan .btn{ margin-top:auto; width:100%; }

.plans__foot{
  margin-top:22px; text-align:center;
  font-size:13px; color:var(--text-faint);
}

/* ============================================================
   Contact form
   ============================================================ */

.join{ border-top:1px solid var(--line-soft); }

.form{
  max-width:520px; margin:38px auto 0;
  display:flex; flex-direction:column; gap:10px;
  text-align:left;
}

.field{
  width:100%;
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--r-pill);
  padding:14px 20px;
  font-family:var(--font); font-size:14.5px; line-height:1.5;
  color:var(--text);
  transition:border-color var(--t);
}
.field::placeholder{ color:var(--text-faint); }
.field:hover{ border-color:var(--line-strong); }

/* The message box keeps the same skin, just squared off enough to hold
   several lines and made resizable vertically only. */
.field--msg{
  border-radius:var(--r);
  min-height:132px;
  resize:vertical;
  padding:15px 20px;
}

.form .btn{
  width:50%;
  margin-top:4px;
  padding-inline:12px;
  align-self:center;
}

.form__msg{
  min-height:20px; margin-top:4px;
  font-size:13px; color:var(--text-muted);
  text-align:center;
  opacity:0; transition:opacity var(--t);
}
.form__msg.is-on{ opacity:1; }
.form__msg.is-err{ color:var(--accent); }

.form__alt{
  margin-top:2px; font-size:13px; color:var(--text-faint);
  text-align:center;
}
.form__alt a{ color:var(--text-muted); border-bottom:1px solid var(--line); }
.form__alt a:hover{ color:var(--text); }

/* ============================================================
   Early access page
   ============================================================ */

.early-page{
  min-height:100vh;
  display:grid;
  grid-template-rows:auto 1fr auto;
  background:var(--surface);
}

.early-head{
  padding:28px var(--pad);
  display:flex;
  align-items:center;
  justify-content:space-between;
}

.early-head .logo{ font-size:17px; }

.early-back{
  font-size:13px;
  color:var(--text-muted);
  transition:color var(--t);
}
.early-back:hover{ color:var(--text); }

.early-main{
  width:100%;
  max-width:620px;
  margin:auto;
  padding:72px var(--pad) 96px;
  text-align:center;
}

.early-main h1{
  font-size:clamp(42px,7vw,72px);
  font-weight:500;
  letter-spacing:-.045em;
}

.early-intro{
  margin:22px auto 0;
  max-width:42ch;
  color:var(--text-muted);
  font-size:15px;
}

.early-form{
  margin:38px auto 0;
  display:grid;
  gap:10px;
  text-align:left;
}

.early-form .field{ min-width:0; }

.early-form select.field{
  appearance:none;
  -webkit-appearance:none;
  cursor:pointer;
  color:var(--text-muted);
  background-image:
    linear-gradient(45deg,transparent 50%,var(--text-faint) 50%),
    linear-gradient(135deg,var(--text-faint) 50%,transparent 50%);
  background-position:
    calc(100% - 20px) 50%,
    calc(100% - 15px) 50%;
  background-size:5px 5px,5px 5px;
  background-repeat:no-repeat;
  padding-right:42px;
}
.early-form select.field:valid{ color:var(--text); }

.early-form .btn{
  width:20%;
  min-width:84px;
  margin:6px auto 0;
  padding:10px 16px;
}

.early-note{
  margin-top:16px;
  text-align:center;
  color:var(--text-faint);
  font-size:12px;
}

.early-status{
  min-height:22px;
  margin-top:2px;
  text-align:center;
  color:var(--text-muted);
  font-size:13px;
}
.early-status.is-error{ color:var(--accent); }

.early-foot{
  padding:26px var(--pad);
  text-align:center;
  color:var(--text-faint);
  font-size:11px;
}

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

/* ============================================================
   Footer
   ============================================================ */

.footer{ border-top:1px solid var(--line-soft); padding-top:clamp(56px,7vw,80px); }

.footer__inner{
  display:flex; justify-content:space-between; gap:60px; flex-wrap:wrap;
  padding-bottom:clamp(56px,7vw,80px);
}
.footer__brand p{ margin-top:14px; font-size:14px; color:var(--text-muted); max-width:30ch; }

.footer__cols{ display:flex; gap:clamp(48px,7vw,96px); }
.footer__cols a{
  display:block; font-size:14px; color:var(--text-muted); padding:5px 0;
  transition:color var(--t);
}
.footer__cols a:hover{ color:var(--text); }

.footer__base{
  border-top:1px solid var(--line-soft);
  padding-top:26px; padding-bottom:34px;
  display:flex; align-items:center; justify-content:space-between; gap:20px;
}
.footer__base p{
  font-size:11px; letter-spacing:0; text-transform:uppercase; color:var(--text-faint);
}

/* ============================================================
   Reveal
   ============================================================ */

.js .reveal{
  opacity:0; transform:translateY(14px);
  transition:opacity 620ms var(--e), transform 620ms var(--e);
  transition-delay:calc(var(--d,0) * 80ms);
}
.js .reveal.is-in{ opacity:1; transform:none; }

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width:1040px){
  .app__body{ grid-template-columns:52px 260px 1fr; height:600px; }
  .canvas{ padding:22px 26px; }
  .grid{ grid-template-columns:repeat(2,1fr); }
}

@media (max-width:820px){
  /* Links collapse, so drop the 3-column grid or Join lands mid-row. */
  .nav__inner{ display:flex; justify-content:space-between; }
  .nav__login{ display:none; }   /* moves into the mobile sheet */
  .nav__toggle{ display:flex; }

  .steps{ grid-template-columns:1fr; }
  .step{ padding:26px 24px; }
  .step__n{ margin-bottom:18px; }

  .row{ grid-template-columns:1fr; gap:36px; }
  .row--flip .row__copy{ order:0; }
  .card--genesis,
  .card--bridge{ width:100%; }
  .proj{ border-radius:16px; font-size:12px; }
  .row__copy p{ max-width:none; }

  .hero__frame{
    width:100%;
    min-height:520px;
    padding:40px 20px 30px;
  }
  .hero__title{ max-width:none; font-size:clamp(46px,15vw,70px); }
  .hero__cta{ gap:10px; flex-direction:column; }
  .hero__cta .btn{ width:100%; max-width:320px; }
  .hero__links{ gap:18px; flex-wrap:wrap; }
  .hero__links .nav__link{ font-size:10px; }

  /* Keep Genesis — it's the product. Drop the icon rail and the canvas. */
  .app__body{ grid-template-columns:1fr; min-height:0; }
  .rail, .canvas{ display:none; }
  .gen{ border-right:0; padding:18px; }

  .shelf{ gap:8px; }
  .proj{ border-radius:14px; }
  .proj--add{ display:none; }

  .plans{ grid-template-columns:1fr; }


  .footer__inner{ flex-direction:column; gap:44px; }
  .footer__cols{ gap:44px; flex-wrap:wrap; }
}

@media (max-width:420px){
  .grid{ grid-template-columns:1fr; }
  .early-main{ padding-inline:24px; }
  .early-form .btn{ width:28%; }
}

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

/* ============================================================
   Document pages — privacy, terms, contact, 404
   Same identity as the landing page, simpler rhythm.
   ============================================================ */

.doc{ padding:clamp(140px,16vw,200px) 0 clamp(80px,10vw,120px); }
.doc__head{ margin-bottom:clamp(40px,5vw,60px); }
.doc h1{
  font-size:clamp(34px,5vw,58px); letter-spacing:-.045em; line-height:1.04;
  text-wrap:balance;
}
.doc__meta{ margin-top:18px; font-size:14px; color:var(--text-faint); }

.doc__body h2{
  font-size:clamp(20px,2.2vw,25px); letter-spacing:-.03em;
  margin:44px 0 14px;
}
.doc__body h2:first-child{ margin-top:0; }
.doc__body p{ margin-bottom:16px; color:var(--text-body); line-height:1.7; max-width:68ch; }
.doc__body ul{ margin:0 0 20px; padding-left:0; max-width:68ch; }
.doc__body li{
  position:relative; padding-left:20px; margin-bottom:9px;
  color:var(--text-body); line-height:1.6;
}
.doc__body li::before{
  content:""; position:absolute; left:2px; top:11px;
  width:5px; height:5px; border-radius:50%; background:var(--text-faint);
}
.doc__body a{ color:var(--text); border-bottom:1px solid var(--line-loud); }
.doc__body a:hover{ border-bottom-color:var(--text); }
.doc__body strong{ color:var(--text); font-weight:600; }

/* Clearly marks text the owner still has to supply. Deliberately visible —
   it must be impossible to ship this by accident. */
.doc__pending{
  margin:0 0 34px;
  padding:18px 20px;
  border:1px solid var(--accent);
  border-radius:var(--r);
  background:var(--fill-1);
  font-size:14.5px; line-height:1.6; color:var(--text-body);
}
.doc__pending strong{ color:var(--accent); }

.doc__back{
  display:inline-flex; align-items:center; gap:8px;
  margin-top:44px; font-size:14px; font-weight:500; color:var(--text);
  padding-bottom:2px; border-bottom:1px solid var(--line);
  transition:border-color var(--t);
}
.doc__back:hover{ border-bottom-color:var(--line-loud); }

/* 404 */
.nf{ min-height:70vh; display:grid; place-items:center; text-align:center; }
.nf__code{
  font-size:12px; font-weight:500; letter-spacing:0; text-transform:uppercase;
  color:var(--text-faint); margin-bottom:22px;
}
.nf h1{ font-size:clamp(32px,5vw,56px); letter-spacing:-.045em; text-wrap:balance; }
.nf p{ margin:20px auto 36px; max-width:44ch; color:var(--text-body); }
.nf__actions{ display:flex; gap:14px; justify-content:center; flex-wrap:wrap; }

/* ============================================================
   Very narrow phones (<=420px)

   The nav carries two entry points now; at 320px a wide CTA label
   the burger was pushed 10px past the viewport edge. Tighten the row
   rather than shrink the CTA.
   ============================================================ */
@media (max-width:420px){
  .nav__right{ gap:8px; }
  .btn--pill{ padding:5px 11px; }
}

@media (max-width:360px){
  /* The scheme switcher is a temporary control — it yields space to the
     CTA before anything functional does. Remove with the toggle. */
  .themer{ display:none; }
}
