/* =========================================================
   Trainr landing — Carbon Signal
   Signature: single gym-floor HUD phone + staged product UI
   ========================================================= */

:root {
  --bg: #07090d;
  --bg-elevated: #0e1219;
  --bg-card: #111821;
  --bg-card-2: #151c27;
  --line: rgba(255, 255, 255, 0.07);
  --line-strong: rgba(255, 255, 255, 0.12);
  --text: #f3f1ea;
  --text-2: #a4adbe;
  --text-3: #737c90;
  --brand: #f0a14a;
  --brand-2: #ffc078;
  --brand-3: #c46a1a;
  --brand-ink: #1a1208;
  --brand-soft: rgba(240, 161, 74, 0.14);
  --brand-glow: rgba(240, 161, 74, 0.4);
  --ok: #5ed9a0;
  --err: #f07167;
  --macro-p: #6aa8f0;
  --macro-c: #e8c35a;
  --macro-f: #e07ab0;
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 28px;
  --r-full: 999px;
  --font: "Inter", system-ui, -apple-system, sans-serif;
  --max: 1120px;
  --header: 64px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-device:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 2px 4px rgba(0, 0, 0, 0.35),
    0 28px 56px -10px rgba(0, 0, 0, 0.75),
    0 0 80px -18px rgba(240, 161, 74, 0.28);
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
  color: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Atmosphere (copper only) ---------- */

.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 75% 50% at 50% 0%, #000 15%, transparent 70%);
}

.bg-glow {
  position: absolute;
  width: min(70vw, 720px);
  height: min(70vw, 720px);
  top: -18%;
  right: 8%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 161, 74, 0.26), transparent 68%);
  filter: blur(80px);
}

.bg-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 45% at 50% -5%, rgba(240, 161, 74, 0.07), transparent 50%),
    radial-gradient(ellipse at center, transparent 45%, rgba(0, 0, 0, 0.55) 100%);
}

/* ---------- Header ---------- */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header);
  background: rgba(7, 9, 13, 0.6);
  backdrop-filter: blur(18px) saturate(1.35);
  -webkit-backdrop-filter: blur(18px) saturate(1.35);
}

.header::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
}

.header-inner {
  max-width: var(--max);
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.2em;
}

.logo img {
  filter: drop-shadow(0 0 10px var(--brand-glow));
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.link-quiet {
  color: var(--text-2);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: var(--r-full);
  transition: color 0.15s ease, background 0.15s ease;
}

.link-quiet:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.lang {
  display: inline-flex;
  padding: 3px;
  border-radius: var(--r-full);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.lang button {
  border: 0;
  background: transparent;
  color: var(--text-3);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 6px 9px;
  border-radius: var(--r-full);
  cursor: pointer;
}

.lang button[aria-pressed="true"] {
  background: var(--brand);
  color: var(--brand-ink);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  line-height: 1;
  padding: 12px 18px;
  border-radius: var(--r-full);
  background: linear-gradient(180deg, var(--brand-2) 0%, var(--brand) 100%);
  color: var(--brand-ink);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.25) inset,
    0 8px 24px rgba(240, 161, 74, 0.3);
  transition: transform 0.15s var(--ease), filter 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}

.btn:hover {
  filter: brightness(1.05);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.3) inset,
    0 12px 32px rgba(240, 161, 74, 0.42);
}

.btn:active {
  transform: translateY(1px) scale(0.99);
}

.btn:disabled {
  opacity: 0.7;
  cursor: wait;
}

.btn-sm {
  padding: 9px 14px;
  font-size: 13px;
}

.btn-block {
  width: 100%;
  padding: 14px 18px;
  font-size: 15px;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  z-index: 1;
  padding: 40px 24px 56px;
}

.hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 28px 36px;
  align-items: center;
}

.hero-copy {
  max-width: 540px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  padding: 6px 12px 6px 10px;
  border-radius: var(--r-full);
  border: 1px solid rgba(240, 161, 74, 0.28);
  background: var(--brand-soft);
  color: var(--brand-2);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 0 rgba(240, 161, 74, 0.55);
  animation: pulse 2.2s ease-out infinite;
}

@keyframes pulse {
  70% {
    box-shadow: 0 0 0 10px rgba(240, 161, 74, 0);
  }
}

.hero h1 {
  margin: 0;
  font-family: var(--font);
  font-size: clamp(2.25rem, 4.5vw, 3.35rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.hero h1 span {
  display: block;
}

.hero h1 .grad {
  background: linear-gradient(105deg, var(--brand) 0%, #ffd7a0 45%, var(--brand-3) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lede {
  margin: 20px 0 0;
  max-width: 30rem;
  color: var(--text-2);
  font-size: 17px;
  line-height: 1.55;
}

/* Waitlist */

.waitlist {
  margin-top: 26px;
  max-width: 440px;
}

.waitlist-shell {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border-radius: var(--r-full);
  background: rgba(18, 24, 33, 0.92);
  border: 1px solid var(--line-strong);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.4),
    0 16px 40px rgba(0, 0, 0, 0.35);
}

.waitlist-shell:focus-within {
  border-color: rgba(240, 161, 74, 0.55);
  box-shadow:
    0 0 0 4px rgba(240, 161, 74, 0.12),
    0 16px 40px rgba(0, 0, 0, 0.35);
}

.waitlist-shell input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 12px 16px;
  color: var(--text);
}

.waitlist-shell input::placeholder {
  color: var(--text-3);
}

.waitlist-hint {
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--text-3);
}

.waitlist-status {
  margin: 12px 0 0;
  font-size: 14px;
  font-weight: 600;
}

.waitlist-status.is-success {
  color: var(--ok);
}

.waitlist-status.is-error {
  color: var(--err);
}

.waitlist-solid {
  max-width: none;
  margin: 0;
  padding: 24px;
  border-radius: var(--r-lg);
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--line);
}

.waitlist-solid .field-label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
}

.waitlist-solid input {
  width: 100%;
  margin-bottom: 12px;
  padding: 14px 16px;
  border-radius: var(--r-md);
  border: 1px solid var(--line-strong);
  background: var(--bg-elevated);
  outline: 0;
}

.waitlist-solid input:focus {
  border-color: rgba(240, 161, 74, 0.55);
  box-shadow: 0 0 0 3px rgba(240, 161, 74, 0.12);
}

/* Proof row — outcomes, not module names */

.proof-row {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 440px;
}

.proof-row li {
  padding: 12px 12px 11px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
}

.proof-row strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--brand-2);
  line-height: 1.15;
  margin-bottom: 3px;
}

.proof-row span {
  display: block;
  font-size: 12px;
  color: var(--text-3);
  line-height: 1.3;
}

/* ---------- HUD stage (signature) ---------- */

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  padding: 12px 0 24px;
}

.hud-stage {
  position: relative;
  width: min(100%, 380px);
  margin: 0 auto;
  /* size from the phone — no fixed height that clips children */
  display: grid;
  place-items: center;
  min-height: 480px;
  padding: 28px 36px 36px;
}

.stage-glow {
  position: absolute;
  left: 50%;
  top: 52%;
  width: 90%;
  height: 55%;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse, rgba(240, 161, 74, 0.32), transparent 68%);
  filter: blur(28px);
  z-index: 0;
  pointer-events: none;
}

.device {
  position: relative;
  z-index: 2;
}

.device-hero {
  position: relative;
  width: min(100%, 260px);
  z-index: 3;
  margin: 0 auto;
  animation: float 6.5s ease-in-out infinite;
}

.device-frame {
  position: relative;
  border-radius: 40px;
  overflow: hidden;
  background: #050608;
  box-shadow: var(--shadow-device);
  border: 3px solid #1c212b;
  padding: 3px;
}

.device-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  z-index: 5;
}

.device-island {
  position: absolute;
  top: 11px;
  left: 50%;
  transform: translateX(-50%);
  width: 32%;
  height: 22px;
  border-radius: 20px;
  background: #050608;
  z-index: 6;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.05);
}

/* Staged app screens — fixed height so bento tiles don't balloon */

.screen {
  aspect-ratio: 9 / 17.5;
  width: 100%;
  background: #0b0e14;
  color: var(--text);
  padding: 32px 14px 16px;
  font-size: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.screen strong,
.screen b {
  font-weight: 700;
}

/* Today screen */
.s-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.s-date {
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--text-3);
  font-weight: 600;
}

.s-ring {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 700;
  color: var(--brand-2);
  border: 2px solid rgba(240, 161, 74, 0.45);
  box-shadow: inset 0 0 0 3px rgba(240, 161, 74, 0.12);
}

.s-greet {
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.s-greet em {
  font-style: normal;
  color: var(--brand);
}

.s-week-card {
  padding: 10px 12px;
  border-radius: 14px;
  background: #141a24;
  border: 1px solid var(--line);
  margin-bottom: 14px;
}

.s-week-meta {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  letter-spacing: 0.08em;
  color: var(--text-3);
  font-weight: 700;
  margin-bottom: 4px;
}

.s-flame {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--brand);
}

.s-week-card strong {
  font-size: 13px;
}

.s-plan-label {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  letter-spacing: 0.08em;
  color: var(--text-3);
  font-weight: 700;
}

.s-plan-title {
  margin: 4px 0 10px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.s-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 12px;
}

.s-days span {
  text-align: center;
  padding: 6px 0;
  border-radius: 10px;
  background: #141a24;
  border: 1px solid transparent;
  font-size: 9px;
  line-height: 1.25;
  color: var(--text-3);
  font-weight: 600;
}

.s-days .done {
  color: var(--text-2);
}

.s-days .done::after {
  content: "";
  display: block;
  width: 4px;
  height: 4px;
  margin: 3px auto 0;
  border-radius: 50%;
  background: var(--brand);
}

.s-days .active {
  background: #f4f2ec;
  color: #111;
  border-color: #f4f2ec;
}

.s-session {
  margin-top: auto;
  padding: 12px;
  border-radius: 16px;
  background: linear-gradient(165deg, #1a2130, #121722);
  border: 1px solid rgba(240, 161, 74, 0.2);
}

.s-tag {
  display: inline-block;
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--text-3);
  font-weight: 700;
  margin-bottom: 4px;
}

.s-session strong {
  display: block;
  font-size: 15px;
  margin-bottom: 2px;
}

.s-session p {
  margin: 0 0 10px;
  color: var(--text-3);
  font-size: 11px;
}

.s-session button,
.screen-session > button {
  width: 100%;
  border: 0;
  border-radius: 12px;
  padding: 11px;
  font-weight: 700;
  font-size: 13px;
  background: linear-gradient(180deg, var(--brand-2), var(--brand));
  color: var(--brand-ink);
  cursor: default;
}

/* Session screen */
.screen-session button {
  margin-top: auto;
}

.ss-head {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--brand);
  margin-bottom: 14px;
}

.ss-head strong {
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.screen-session h4 {
  margin: 0;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.ss-sub {
  margin: 4px 0 14px;
  color: var(--text-3);
  font-size: 11px;
}

.ss-sets {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
}

.ss-set {
  display: grid;
  grid-template-columns: 22px 1fr 18px;
  gap: 8px;
  align-items: center;
  padding: 9px 10px;
  border-radius: 12px;
  background: #141a24;
  border: 1px solid var(--line);
  font-size: 12px;
}

.ss-set span {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.06);
  font-size: 11px;
  font-weight: 700;
}

.ss-set.done {
  border-color: rgba(94, 217, 160, 0.25);
  color: var(--text-2);
}

.ss-set.done i {
  color: var(--ok);
  font-style: normal;
}

.ss-set.active {
  border-color: rgba(240, 161, 74, 0.45);
  background: rgba(240, 161, 74, 0.08);
}

.ss-set.active i {
  color: var(--brand);
  font-style: normal;
}

.ss-rest {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 10px 12px;
  margin-bottom: 10px;
  border-radius: 12px;
  background: rgba(240, 161, 74, 0.1);
  border: 1px solid rgba(240, 161, 74, 0.22);
}

.ss-rest small {
  font-size: 10px;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: var(--brand);
}

.ss-rest strong {
  font-size: 22px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

/* Coach screen */
.screen-coach {
  padding-top: 34px;
}

.sc-head {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
}

.sc-logo {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 14px;
}

.sc-head strong {
  display: block;
  font-size: 14px;
}

.sc-head small {
  color: var(--text-3);
  font-size: 10px;
}

.sc-chat {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
  justify-content: flex-start;
}

.sc-input {
  margin-top: auto;
}

.sc-msg {
  max-width: 92%;
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 11.5px;
  line-height: 1.4;
}

.sc-msg.me {
  align-self: flex-end;
  background: rgba(240, 161, 74, 0.16);
  border: 1px solid rgba(240, 161, 74, 0.25);
}

.sc-msg.bot {
  align-self: flex-start;
  background: #141a24;
  border: 1px solid var(--line);
  color: var(--text-2);
}

.sc-msg.bot b {
  color: var(--brand-2);
}

.sc-input {
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #0e1219;
  color: var(--text-3);
  font-size: 11px;
}

/* Nutrition screen */
.screen-nutrition .sn-meal {
  margin-top: auto;
}

.sn-label {
  font-size: 9px;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: var(--text-3);
}

.screen-nutrition h4 {
  margin: 2px 0 14px;
  font-size: 22px;
  letter-spacing: -0.03em;
}

.sn-cals {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding: 12px;
  border-radius: 16px;
  background: #141a24;
  border: 1px solid var(--line);
}

.sn-ring {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 800;
  color: var(--brand-2);
  border: 3px solid rgba(240, 161, 74, 0.5);
}

.sn-cals strong {
  font-size: 20px;
  letter-spacing: -0.03em;
  display: block;
  line-height: 1;
}

.sn-cals small {
  color: var(--text-3);
  font-size: 11px;
}

.sn-macros {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 12px;
}

.sn-macros > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
  border-radius: 12px;
  background: #141a24;
  border: 1px solid var(--line);
  font-size: 11px;
  position: relative;
}

.sn-macros b {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.sn-macros b.p { color: var(--macro-p); }
.sn-macros b.c { color: var(--macro-c); }
.sn-macros b.f { color: var(--macro-f); }

.sn-macros strong {
  font-size: 14px;
  letter-spacing: -0.02em;
}

.sn-macros small {
  color: var(--text-3);
  font-size: 10px;
}

.sn-macros i {
  display: block;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.08);
  margin-top: 2px;
}

.sn-macros i::after {
  content: "";
  display: block;
  height: 100%;
  width: var(--w);
  border-radius: inherit;
  background: var(--brand);
}

.sn-macros > div:nth-child(1) i::after { background: var(--macro-p); }
.sn-macros > div:nth-child(2) i::after { background: var(--macro-c); }
.sn-macros > div:nth-child(3) i::after { background: var(--macro-f); }

.sn-meal {
  padding: 12px;
  border-radius: 14px;
  background: #141a24;
  border: 1px solid var(--line);
}

.sn-meal-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
  font-size: 13px;
}

.sn-meal p {
  margin: 0;
  color: var(--text-3);
  font-size: 11px;
}

/* HUD chips */

.hud-chip {
  position: absolute;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(14, 18, 25, 0.88);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(12px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.45);
  animation: float 5.8s ease-in-out infinite;
}

.hud-chip strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.hud-chip small {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: var(--text-3);
}

.hud-ico {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--brand);
  flex-shrink: 0;
}

.hud-chip-a {
  left: -4px;
  top: 42%;
  bottom: auto;
}

.hud-chip-b {
  right: -4px;
  top: 12%;
  animation-delay: 0.35s;
}

.hud-chip-c {
  right: -4px;
  bottom: 22%;
  animation-delay: 0.7s;
}

@keyframes float {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -10px;
  }
}

/* ---------- Product / Bento ---------- */

.product {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 72px 24px 32px;
}

.section-intro {
  max-width: 640px;
  margin-bottom: 36px;
}

.kicker {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
}

.section-intro h2,
.cta-left h2 {
  margin: 0;
  font-family: var(--font);
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.12;
}

.section-lede {
  margin: 14px 0 0;
  color: var(--text-2);
  font-size: 16px;
  max-width: 36rem;
}

.bento {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.tile {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-xl);
  border: 1px solid var(--line);
  background:
    radial-gradient(520px 220px at 0% 0%, rgba(240, 161, 74, 0.09), transparent 55%),
    linear-gradient(180deg, var(--bg-card-2), var(--bg-card));
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset;
  display: flex;
  flex-direction: column;
}

.tile-lg {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  min-height: 0;
}

.tile-wide {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  min-height: 280px;
}

.tile-copy {
  position: relative;
  z-index: 2;
  padding: 22px 22px 4px;
}

.tile-lg .tile-copy,
.tile-wide .tile-copy {
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.tile:not(.tile-lg):not(.tile-wide) .tile-copy {
  padding-bottom: 8px;
}

.tile-tag {
  display: inline-flex;
  align-self: flex-start;
  margin-bottom: 14px;
  padding: 5px 10px;
  border-radius: var(--r-full);
  background: var(--brand-soft);
  color: var(--brand-2);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tile h3 {
  margin: 0 0 10px;
  font-size: clamp(1.3rem, 2.1vw, 1.65rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.tile p {
  margin: 0;
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.5;
  max-width: 34ch;
}

.tile-points {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.tile-points li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-2);
  font-weight: 500;
}

.tile-points li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 10px var(--brand-glow);
  flex-shrink: 0;
}

.tile-media {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 16px 16px 20px;
  background: radial-gradient(ellipse 70% 55% at 50% 80%, rgba(240, 161, 74, 0.14), transparent 70%);
}

.device-embed {
  position: relative;
  width: min(100%, 200px);
  transform: none;
}

.tile-lg .device-embed {
  width: min(100%, 220px);
}

.device-embed .device-frame {
  border-radius: 32px;
}

.device-embed .device-island {
  height: 16px;
  top: 9px;
}

/* Progress stat board */

.tile-media-stats {
  align-items: center;
  padding: 28px;
  background: radial-gradient(ellipse 80% 70% at 70% 50%, rgba(240, 161, 74, 0.12), transparent 65%);
}

.stat-board {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.stat-card {
  padding: 16px;
  border-radius: 18px;
  background: rgba(10, 12, 18, 0.65);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(8px);
}

.stat-card small {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-3);
  margin-bottom: 6px;
}

.stat-card strong {
  display: block;
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.stat-card .up {
  display: inline-block;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ok);
}

.stat-wide {
  grid-column: 1 / -1;
}

.spark {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 40px;
  margin-top: 12px;
}

.spark i {
  flex: 1;
  height: var(--h);
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, var(--brand-2), var(--brand));
  opacity: 0.85;
}

/* ---------- CTA ---------- */

.cta {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 40px 24px 88px;
}

.cta-panel {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 32px;
  padding: 40px;
  border-radius: calc(var(--r-xl) + 4px);
  border: 1px solid rgba(240, 161, 74, 0.22);
  background:
    radial-gradient(500px 240px at 12% 0%, rgba(240, 161, 74, 0.18), transparent 55%),
    linear-gradient(145deg, #161018 0%, #10161f 50%, #0c121c 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.05) inset,
    0 30px 80px rgba(0, 0, 0, 0.45);
}

.cta-left p:not(.kicker) {
  margin: 12px 0 0;
  color: var(--text-2);
  max-width: 36ch;
}

.cta-list {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.cta-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-2);
  font-size: 14px;
  font-weight: 500;
}

.cta-list li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 12px var(--brand-glow);
  flex-shrink: 0;
}

/* ---------- Footer ---------- */

.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
  padding: 28px 24px 40px;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  color: var(--text-3);
  font-size: 13px;
}

.footer .logo {
  font-size: 11px;
  color: var(--text-2);
}

/* ---------- Motion ---------- */

.hero-copy > * {
  animation: rise 0.8s var(--ease) both;
}

.hero-copy > *:nth-child(1) { animation-delay: 0.04s; }
.hero-copy > *:nth-child(2) { animation-delay: 0.1s; }
.hero-copy > *:nth-child(3) { animation-delay: 0.16s; }
.hero-copy > *:nth-child(4) { animation-delay: 0.22s; }
.hero-copy > *:nth-child(5) { animation-delay: 0.28s; }

.hud-stage {
  animation: rise 0.9s var(--ease) 0.12s both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- Focus ---------- */

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

.waitlist-shell:focus-within {
  outline: none;
}

/* ---------- Responsive: form-first on mobile ---------- */

@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 28px;
  }

  /* Conversion first */
  .hero-copy {
    order: 1;
    max-width: none;
  }

  .hero-visual {
    order: 2;
    min-height: 480px;
  }

  .hud-stage {
    height: 480px;
    max-width: 340px;
  }

  .device-hero {
    width: 240px;
  }

  .link-quiet {
    display: none;
  }

  .tile-lg,
  .tile-wide {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .tile {
    min-height: 0;
  }

  .tile-lg .tile-media,
  .tile .tile-media {
    min-height: 300px;
  }

  .cta-panel {
    grid-template-columns: 1fr;
    padding: 28px 22px;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 20px 18px 28px;
  }

  .header-inner,
  .product,
  .cta {
    padding-left: 18px;
    padding-right: 18px;
  }

  .product {
    padding-top: 48px;
  }

  .hero h1 {
    font-size: clamp(2rem, 8.5vw, 2.6rem);
  }

  .waitlist {
    max-width: none;
  }

  .waitlist-shell {
    flex-direction: column;
    align-items: stretch;
    border-radius: var(--r-lg);
    padding: 8px;
  }

  .waitlist-shell .btn {
    width: 100%;
  }

  .proof-row {
    max-width: none;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .proof-row li {
    padding: 10px 8px;
  }

  .proof-row span {
    font-size: 11px;
  }

  .hud-chip-c {
    display: none;
  }

  .hud-chip-a {
    left: 0;
    bottom: 6%;
  }

  .hud-chip-b {
    right: 0;
    top: 6%;
  }

  .hud-stage {
    min-height: 0;
    padding: 20px 12px 28px;
  }

  .device-hero {
    width: min(100%, 220px);
  }

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

  .device-embed {
    width: min(100%, 200px);
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 400px) {
  .hud-chip-b {
    display: none;
  }

  .proof-row span {
    font-size: 10px;
  }
}
