/* Edgework splash — built on the Phoenix system tokens */
:root {
  --surface: #FBFBFB; --surface-raised: #FFFFFF; --surface-stage: #E9E8EF; --surface-inverse: #101010;
  --ink: #101010; --ink-muted: #53585D; --ink-faint: #ADB3B8; --on-inverse: #FFFFFF;
  --line: #DBD5E4; --line-strong: #E4E8E9;
  --brand: #FF2FB6; --brand-ink: #C41385; --on-brand: #101010; --brand-soft: #FFD7FE;
  --market-up: #9FFC95; --market-down: #FF2FB6;
  --font: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --pill: 999px;
  --shadow-raised: 0 8px 24px rgba(16,16,16,.08);
  --shadow-glow: 0 16px 40px rgba(255,47,182,.28);
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; font-family: var(--font); background: var(--surface); color: var(--ink); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--brand-ink); outline-offset: 2px; }

/* Layout: 5fr visual / 7fr panel */
.hero { display: grid; grid-template-columns: 5fr 7fr; min-height: 100vh; min-height: 100svh; }
.hero__visual { display: grid; grid-template-rows: 28px 1fr; min-height: 0; }
.hero__panel { display: grid; grid-template-rows: 28px auto 1fr; min-width: 0; }

/* Strips */
.announce { display: flex; align-items: center; justify-content: center; padding: 0 16px; background: var(--brand); color: var(--on-brand);
  font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; white-space: nowrap; overflow: hidden; }
.announce:hover { text-decoration: underline; text-underline-offset: 3px; }
.ticker { display: flex; align-items: center; overflow: hidden; background: var(--surface-inverse); color: var(--on-inverse);
  font-size: 11px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; font-variant-numeric: tabular-nums; }
.ticker__track { display: flex; flex: none; gap: 40px; padding-left: 24px; animation: marquee 60s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__item { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.ticker .sym { opacity: .6; }
.ticker { position: relative; padding-left: 96px; }
.ticker__label { position: absolute; left: 0; top: 0; bottom: 0; z-index: 1; width: 96px; box-sizing: border-box; display: flex; align-items: center; padding: 0 12px; white-space: nowrap;
  background: var(--surface-inverse); box-shadow: 8px 0 12px var(--surface-inverse); font-weight: 600; }
.ticker [data-metric] { display: inline-block; min-width: 4.5ch; text-align: right; }
.ticker .up { color: var(--market-up); }
.ticker .down { color: var(--market-down); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Visual */
.loop { position: relative; overflow: hidden; background: var(--surface-stage); }
.loop video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; }

/* Nav */
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 48px; }
.logo { position: relative; display: block; width: 169px; height: 22px; overflow: hidden; }
.logo video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }

/* Body */
.body { display: flex; flex-direction: column; justify-content: space-between; gap: 48px; padding: 56px 48px 40px; }
.eyebrow { margin: 0; color: var(--ink-muted); font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
.headline span { display: block; }
.headline { margin: 24px 0 0; max-width: 12em; font-size: clamp(44px, 4.6vw, 72px); line-height: 1.02; font-weight: 300; letter-spacing: -.03em; }
.foot { display: flex; flex-direction: column; gap: 28px; }
.stats { display: flex; gap: 40px; margin: 0; }
.stats div { display: flex; flex-direction: column-reverse; gap: 6px; }
.stats dt { color: var(--ink-muted); font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
.stats dd { margin: 0; font-size: 36px; line-height: 1; font-weight: 300; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.support { margin: 0; max-width: 42ch; color: var(--ink-muted); font-size: 16px; line-height: 24px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.fine { margin: 0; color: var(--ink-muted); font-size: 11px; opacity: .8; }

/* Buttons: always pills, uppercase labels */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 28px; border-radius: var(--pill);
  border: 1px solid transparent; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; cursor: pointer; text-decoration: none;
  transition: box-shadow .2s, background-color .2s, transform .2s, color .2s; }
.btn--primary { background: var(--brand); color: var(--on-brand); }
.btn--primary:hover { box-shadow: var(--shadow-glow); transform: translateY(-1px); }
.btn--outline { background: transparent; color: var(--brand-ink); border-color: var(--brand-ink); }
.btn--outline:hover { background: var(--brand-soft); }
.btn--ghost { height: 40px; padding: 0 20px; background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; box-shadow: none; }

/* Form sheet */
.sheet { position: fixed; inset: 0; z-index: 50; }
.sheet[hidden], .sheet [hidden] { display: none !important; }
.sheet__scrim { position: absolute; inset: 0; background: rgba(16,16,16,.10); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); animation: fade .3s ease both; }
/* Frosted glass panel (desktop). Fields stay solid for legibility. */
.sheet__panel { position: absolute; top: 16px; right: 16px; bottom: 16px; width: min(560px, calc(100% - 32px)); overflow-y: auto;
  background: rgba(251,251,251,.66); backdrop-filter: blur(28px) saturate(1.5); -webkit-backdrop-filter: blur(28px) saturate(1.5);
  border: 1px solid rgba(255,255,255,.75); border-radius: 12px;
  box-shadow: 0 30px 80px rgba(16,16,16,.14), inset 0 1px 0 rgba(255,255,255,.8);
  padding: 20px 32px; animation: slide .45s cubic-bezier(.2,.7,.2,1) both; }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .sheet__panel { background: rgba(251,251,251,.97); } }
@keyframes fade { from { opacity: 0; } }
@keyframes slide { from { transform: translateX(40px); opacity: 0; } }
.sheet__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.close { width: 44px; height: 44px; border-radius: var(--pill); border: 1px solid rgba(16,16,16,.12); background: rgba(255,255,255,.7); color: var(--ink); cursor: pointer; display: grid; place-items: center; }
.close:hover { border-color: var(--ink); }
.form h2, .done h2 { margin: 0; font-size: 36px; line-height: 1.05; font-weight: 300; letter-spacing: -.025em; }
.form__lede { margin: 0; color: var(--ink-muted); font-size: 15px; line-height: 22px; }
.form { display: flex; flex-direction: column; gap: 12px; }
.form__step { display: flex; flex-direction: column; gap: 12px; }
.form__actions { display: flex; gap: 12px; }
.form__actions .btn--primary { flex: 1; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: var(--ink-muted); }
.field em { font-style: normal; opacity: .7; }
.field input, .field select, .field textarea { width: 100%; height: 48px; padding: 0 16px; border: 1px solid rgba(16,16,16,.12); border-radius: 6px; background: rgba(255,255,255,.94);
  color: var(--ink); font: inherit; font-size: 15px; transition: border-color .2s, background-color .2s; }
.field textarea { height: auto; padding: 12px 16px; resize: vertical; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2353585D' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand-ink); background: #fff; }
.field.invalid input, .field.invalid select { border-color: var(--brand-ink); }
.chips { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips legend { padding: 0; margin-bottom: 8px; font-size: 13px; color: var(--ink-muted); }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chips span { display: inline-flex; align-items: center; height: 36px; padding: 0 16px; border-radius: var(--pill); border: 1px solid var(--line);
  font-size: 13px; color: var(--ink-muted); cursor: pointer; transition: all .2s; background: rgba(255,255,255,.6); }
.chips input:checked + span { background: var(--surface-inverse); border-color: var(--surface-inverse); color: var(--on-inverse); }
.chips input:focus-visible + span { outline: 2px solid var(--brand-ink); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__error { margin: 0; color: var(--brand-ink); font-size: 13px; }
.form__fine { margin: 0; color: var(--ink-muted); font-size: 12px; text-align: center; }
.done { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding-top: 24px; }
.done p { margin: 0; color: var(--ink-muted); font-size: 15px; line-height: 22px; }

/* Tablet */
@media (max-width: 1080px) {
  .nav, .body { padding-left: 32px; padding-right: 32px; }
  .stats { gap: 28px; }
  .stats dd { font-size: 30px; }
}
/* Mobile: stack */
@media (max-width: 820px) {
  /* Everything fits in one screen: the video flexes to fill what's left */
  .hero { display: flex; flex-direction: column; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; }
  .hero__visual, .hero__panel { display: contents; }
  .announce { order: 0; height: 28px; flex: none; }
  .ticker { order: 1; height: 28px; flex: none; }
  .nav { order: 2; padding: 12px 20px; flex: none; }
  .nav .btn--ghost { height: 36px; padding: 0 16px; }
  .loop { order: 3; flex: 1 1 auto; min-height: 96px; }
  .body { order: 4; flex: none; padding: 20px 20px 16px; gap: 20px; justify-content: flex-start; }
  .headline { margin-top: 10px; font-size: 34px; line-height: 1.04; }
  .foot { gap: 14px; }
  .stats { gap: 20px; }
  .stats dd { font-size: 24px; }
  .stats dt { font-size: 10px; letter-spacing: .1em; }
  .support { font-size: 14px; line-height: 20px; }
  .actions .btn { width: 100%; }
  .fine { font-size: 10px; text-align: center; }
  .announce { font-size: 10px; letter-spacing: .1em; }
  .logo { width: 138px; height: 18px; }
  .sheet__panel { inset: 0; width: 100%; border-radius: 0; border: 0; background: var(--surface-raised); backdrop-filter: none; -webkit-backdrop-filter: none; padding: 12px 20px max(12px, env(safe-area-inset-bottom)); }
  .grid { grid-template-columns: 1fr; gap: 12px; }
  .grid--business { grid-template-columns: 1fr 1fr; }
  .field input, .field select, .field textarea { font-size: 16px; }
  .form__lede { font-size: 14px; line-height: 20px; }
  .field textarea { height: 72px; }
  .form h2, .done h2 { font-size: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .ticker__track, .sheet__scrim, .sheet__panel { animation: none; }
  .btn { transition: none; }
}
