/* Home Field — homefield.tv */
:root {
  --hf-blue-300: #7CC4F2;
  --hf-blue-400: #4FB0EE;
  --hf-blue-500: #2E93E8;
  --hf-blue-600: #2982E0;
  --hf-blue-700: #1F6BC4;
  --hf-blue-900: #0A345C;
  --hf-amber: #FEA644;
  --hf-secure: #35C48C;
  --hf-warn: #FFC24B;
  --hf-alert: #FF5D5D;
  --hf-gradient-btn: linear-gradient(180deg, #3D97ED, #2470D0);
  --font-brand: 'Quicksand', sans-serif;
  --font-body: 'Hanken Grotesk', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* dark theme (default) */
  --bg: #171C28;
  --surface-1: #1E2434;
  --surface-2: #222838;
  --surface-3: #2A3142;
  --line: #3D465B;
  --text: #F5F8FC;
  --muted: #A9B4C6;
  --dim: #6E7A90;
  --nav-bg: rgba(23, 28, 40, 0.72);
  --shadow: rgba(0, 0, 0, 0.5);
  --scene-deep: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(10, 52, 92, 0.55), transparent 70%);
  --scene-field: radial-gradient(ellipse 80% 70% at 50% 100%, rgba(31, 107, 196, 0.25), transparent 70%);
  --panel-grad: linear-gradient(155deg, #0A345C 0%, #1E2434 55%);
}
html[data-theme="light"] {
  --bg: #F2F5FA;
  --surface-1: #FFFFFF;
  --surface-2: #F7F9FC;
  --surface-3: #E9EEF6;
  --line: #D5DDE9;
  --text: #171C28;
  --muted: #4E5D74;
  --dim: #8593A8;
  --nav-bg: rgba(255, 255, 255, 0.78);
  --shadow: rgba(23, 28, 40, 0.18);
  --scene-deep: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(41, 130, 224, 0.12), transparent 70%);
  --scene-field: radial-gradient(ellipse 80% 70% at 50% 100%, rgba(41, 130, 224, 0.10), transparent 70%);
  --panel-grad: linear-gradient(155deg, #D8E7F9 0%, #FFFFFF 55%);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background 0.5s, color 0.5s;
}
::selection { background: var(--hf-blue-600); color: #fff; }
img { max-width: 100%; display: block; }
a { color: var(--hf-blue-400); text-decoration: none; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

.kicker {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--hf-blue-500); margin-bottom: 14px;
}
h1, h2, h3 { font-family: var(--font-brand); font-weight: 600; letter-spacing: -0.01em; }
.section { padding: 110px 0; position: relative; }
.section-head { max-width: 680px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(30px, 5vw, 46px); line-height: 1.08; margin-bottom: 14px; }
.section-head p { font-size: 17px; color: var(--muted); }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-brand); font-weight: 600; font-size: 15px;
  padding: 12px 24px; border-radius: 999px; cursor: pointer; border: none;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.btn-primary {
  color: #fff; background: var(--hf-gradient-btn);
  box-shadow: 0 6px 16px rgba(41, 130, 224, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(41, 130, 224, 0.5); }
.btn-ghost {
  color: var(--text); background: var(--surface-3);
  border: 1px solid var(--line);
}
.btn-ghost:hover { transform: translateY(-2px); }
.btn-light { color: #171C28; background: #F5F8FC; box-shadow: 0 6px 18px rgba(0,0,0,0.3); }
.btn-light:hover { transform: translateY(-2px); }
.btn-dark { color: #F5F8FC; background: rgba(23,28,40,0.65); border: 1px solid rgba(245,248,252,0.25); backdrop-filter: blur(8px); }
.btn-dark:hover { transform: translateY(-2px); }

/* ---------- Floating pill nav ---------- */
.pill-nav {
  position: fixed; top: -90px; left: 0; right: 0; z-index: 120;
  width: max-content; margin: 0 auto;
  display: flex; align-items: center; gap: 4px;
  background: var(--nav-bg);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 8px 6px 14px;
  box-shadow: 0 12px 40px var(--shadow);
  transition: top 0.5s cubic-bezier(0.22, 1, 0.36, 1), background 0.4s;
}
.pill-nav.show { top: 18px; }
.pill-nav img { width: 26px; height: 26px; border-radius: 6px; margin-right: 6px; }
.pill-nav a.link {
  font-family: var(--font-body); font-weight: 600; font-size: 14.5px;
  color: var(--muted); padding: 8px 13px; border-radius: 999px;
  transition: color 0.2s, background 0.2s;
}
.pill-nav a.link:hover, .pill-nav a.link.active { color: var(--text); }
.pill-nav a.link.active { background: var(--surface-3); }
.pill-nav .btn { padding: 9px 18px; font-size: 14px; margin-left: 4px; }

/* ---------- Mobile menu ---------- */
/* Desktop keeps the flat pill: the wrapper adds no box of its own. */
.nav-links { display: contents; }
.nav-toggle { display: none; }
.nav-toggle .bars,
.nav-toggle .bars::before,
.nav-toggle .bars::after {
  display: block; width: 18px; height: 2px; border-radius: 2px;
  background: var(--text); transition: transform 0.25s, opacity 0.2s;
}
.nav-toggle .bars::before, .nav-toggle .bars::after { content: ""; position: absolute; }
.nav-toggle .bars::before { transform: translateY(-6px); }
.nav-toggle .bars::after { transform: translateY(6px); }
.pill-nav.menu-open .nav-toggle .bars { background: transparent; }
.pill-nav.menu-open .nav-toggle .bars::before { transform: rotate(45deg); }
.pill-nav.menu-open .nav-toggle .bars::after { transform: rotate(-45deg); }

/* ---------- Theme toggle ---------- */
.theme-toggle {
  display: flex; align-items: center; gap: 2px;
  background: var(--nav-bg); backdrop-filter: blur(16px);
  border: 1px solid var(--line); border-radius: 999px; padding: 4px;
  box-shadow: 0 10px 30px var(--shadow);
}
body > .theme-toggle { position: fixed; top: 20px; right: 22px; z-index: 120; }
.nav-links .theme-toggle {
  position: static; align-self: flex-start;
  background: transparent; border: none; box-shadow: none;
  padding: 2px 10px; margin-top: 2px;
}
.theme-toggle button {
  width: 32px; height: 32px; border-radius: 50%; border: none; cursor: pointer;
  background: transparent; color: var(--dim); font-size: 15px; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background 0.2s, color 0.2s;
}
.theme-toggle button.active { background: var(--surface-3); color: var(--text); }

/* ---------- Hero (full-bleed) ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 120px 24px 90px;
  color: #F5F8FC;
  isolation: isolate;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -2;
  background-image: url('/assets/hero.jpg');
  background-size: cover; background-position: center 30%;
  transform: scale(1.06);
  animation: heroDrift 24s ease-in-out infinite alternate;
}
@keyframes heroDrift { from { transform: scale(1.06) translateY(0); } to { transform: scale(1.12) translateY(-14px); } }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(23,28,40,0.32) 0%, rgba(23,28,40,0.06) 42%, rgba(23,28,40,0.30) 78%, var(--bg) 97%),
    radial-gradient(ellipse 60% 45% at 50% 62%, rgba(10, 22, 40, 0.40), transparent 70%);
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--hf-amber);
  background: rgba(23, 28, 40, 0.5); border: 1px solid rgba(254, 166, 68, 0.4);
  backdrop-filter: blur(8px);
  border-radius: 999px; padding: 7px 16px; margin-bottom: 30px;
}
.hero h1 {
  font-size: clamp(44px, 7.5vw, 92px); font-weight: 700; line-height: 1.0;
  letter-spacing: -0.02em; max-width: 900px; margin: 0 auto 10px;
  text-shadow: 0 4px 40px rgba(0, 0, 0, 0.45);
}
.hero-sub {
  font-size: clamp(16px, 2.1vw, 20px); color: rgba(245, 248, 252, 0.85);
  max-width: 560px; margin: 18px auto 36px;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.5);
}
.hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 22px; }
.hero-note { font-family: var(--font-mono); font-size: 12px; color: rgba(245, 248, 252, 0.65); }
.hero-scroll {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  color: rgba(245, 248, 252, 0.6); font-size: 22px;
  animation: bob 2.2s ease-in-out infinite;
}
@keyframes bob { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }

/* ---------- Hero product links ---------- */
.hero-products {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  width: 100%; max-width: 1080px; margin: 4px auto 30px;
}
.hero-product {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 24px 22px 20px; border-radius: 20px;
  background: rgba(23, 28, 40, 0.55);
  border: 1px solid rgba(245, 248, 252, 0.16);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  color: #F5F8FC; text-align: center;
  transition: transform 0.25s, border-color 0.25s, background 0.25s;
}
.hero-product:hover { transform: translateY(-4px); border-color: rgba(79, 176, 238, 0.7); background: rgba(23, 28, 40, 0.7); }
.hero-product img { width: 168px; height: auto; }
.hero-product .hp-line { font-size: 15px; color: rgba(245, 248, 252, 0.82); max-width: 280px; }
.hero-product .hp-go { font-family: var(--font-brand); font-weight: 600; font-size: 14px; color: var(--hf-amber); }

/* ---------- Product sections ---------- */
.product { padding-top: 96px; }
.coyote-section { background-image: var(--scene-field); background-repeat: no-repeat; background-position: top; }
.product-head {
  display: grid; grid-template-columns: 260px 1fr; gap: 40px; align-items: center;
  /* ponytail: always dark — the product wordmarks are white-on-transparent */
  background: linear-gradient(155deg, #0A345C 0%, #1E2434 55%);
  border: 1px solid #3D465B; border-radius: 24px;
  padding: 40px; margin-bottom: 48px;
}
.product-logo { width: 100%; max-width: 240px; height: auto; }
.product-head h2 { font-size: clamp(28px, 4.2vw, 42px); line-height: 1.08; margin: 14px 0 12px; color: #F5F8FC; }
.product-head p { font-size: 16.5px; color: #A9B4C6; max-width: 620px; }
.product-head .path { font-family: var(--font-mono); font-size: 14px; color: var(--hf-blue-300); }
.ticks { list-style: none; margin-bottom: 28px; }
.product-price { font-family: var(--font-brand); font-weight: 700; font-size: 34px; line-height: 1; margin-bottom: 22px; }
.product-price small { font-family: var(--font-body); font-weight: 500; font-size: 14px; color: var(--dim); margin-left: 8px; }
.shot {
  border-radius: 16px; border: 1px solid var(--line);
  box-shadow: 0 24px 60px var(--shadow); width: 100%; height: auto;
}
.shot.wide { border-radius: 18px; }
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 60px; }
.shots figure {
  display: flex; flex-direction: column; gap: 14px;
  background: var(--surface-1); border: 1px solid var(--line);
  border-radius: 18px; padding: 18px;
}
/* ponytail: phone shots and wide crops share a row — cap height, let width follow */
.shots .shot {
  border: none; box-shadow: none; border-radius: 10px;
  max-height: 420px; width: auto; max-width: 100%; margin: auto;
}
.shots.shots-2 { grid-template-columns: repeat(2, 1fr); }
.shots figcaption { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.04em; color: var(--dim); text-align: center; }

.chip {
  display: inline-flex; align-items: center; gap: 7px;
  font-weight: 600; font-size: 13px; border-radius: 999px; padding: 6px 12px;
  border: 1px solid;
}
.chip .dot { width: 7px; height: 7px; border-radius: 50%; }
.chip-live { color: var(--hf-amber); background: rgba(254,166,68,0.14); border-color: rgba(254,166,68,0.35); }
.chip-live .dot { background: var(--hf-amber); animation: pulse 1.6s ease-in-out infinite; }
.chip-secure { color: var(--hf-secure); background: rgba(53,196,140,0.13); border-color: rgba(53,196,140,0.35); }
.chip-secure .dot { background: var(--hf-secure); }
.chip-warn { color: var(--hf-warn); background: rgba(255,194,75,0.13); border-color: rgba(255,194,75,0.35); }
.chip-warn .dot { background: var(--hf-warn); }
.chip-dim { color: var(--dim); background: rgba(110,122,144,0.13); border-color: rgba(110,122,144,0.35); }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

/* ---------- Demo panel ---------- */
.demo-section { background-image: var(--scene-deep); background-repeat: no-repeat; }
.demo-panel {
  background: var(--panel-grad);
  border: 1px solid var(--line); border-radius: 28px;
  padding: clamp(22px, 4vw, 48px);
  box-shadow: 0 40px 110px var(--shadow);
  position: relative; overflow: hidden;
}
.demo-head { text-align: center; margin-bottom: 30px; }
.demo-head h2 { font-size: clamp(26px, 4vw, 38px); margin-bottom: 8px; color: var(--text); }
.demo-head p { color: var(--muted); margin-bottom: 22px; }
#play-demo .play-ic { font-size: 12px; }

.tv-set { max-width: 940px; margin: 0 auto; text-align: center; }
.tv {
  /* the screen is always dark, whatever the page theme */
  --surface-1: #10141F;
  --surface-2: #171C28;
  --surface-3: #222838;
  --line: #2A3142;
  --text: #F5F8FC;
  --muted: #A9B4C6;
  --dim: #6E7A90;
  --shadow: rgba(0, 0, 0, 0.55);
  position: relative; text-align: left;
  background: #0C101A;
  border: 14px solid #05070D;
  border-radius: 24px; padding: 14px;
  box-shadow:
    0 0 0 1px #1a2030,
    0 0 90px rgba(41, 130, 224, 0.22),
    0 34px 90px rgba(0, 0, 0, 0.6);
}
.tv::before {
  content: ""; position: absolute; inset: 0; z-index: 6; pointer-events: none;
  border-radius: 10px;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.05) 0%, transparent 38%);
}
.tv::after {
  content: ""; position: absolute; left: 50%; bottom: -21px; transform: translateX(-50%);
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--hf-secure);
  box-shadow: 0 0 6px rgba(53, 196, 140, 0.9);
}
.tv-stand { position: relative; }
.tv-stand .neck {
  width: 76px; height: 30px; margin: 0 auto;
  background: linear-gradient(180deg, #05070D, #10141F);
  clip-path: polygon(18% 0, 82% 0, 100% 100%, 0 100%);
}
.tv-stand .base {
  width: 320px; max-width: 60%; height: 12px; margin: 0 auto;
  border-radius: 999px;
  background: linear-gradient(180deg, #1A2030, #05070D);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}
.tv-stand .floor-shadow {
  width: 70%; height: 26px; margin: 8px auto 0;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, var(--shadow), transparent 70%);
  filter: blur(6px);
}
.tv-status { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 4px 6px 14px; }
.tv-clock { margin-left: auto; font-family: var(--font-mono); font-size: 12px; color: var(--dim); }
.tv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cam {
  position: relative; border-radius: 14px; overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(160deg, rgba(41,130,224,0.10), transparent 55%),
    repeating-linear-gradient(45deg, var(--surface-3), var(--surface-3) 10px, rgba(46,54,72,0.9) 10px, rgba(46,54,72,0.9) 20px);
  transition: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.tv-grid.takeover .cam { opacity: 0.25; filter: saturate(0.4); }
.tv-grid.takeover .cam.hero-cam {
  opacity: 1; filter: none;
  grid-column: 1 / -1; grid-row: 1;
  aspect-ratio: 21 / 9;
  border-color: var(--hf-amber);
  box-shadow: 0 0 0 1px rgba(254,166,68,0.5), 0 18px 50px rgba(0,0,0,0.45);
}
.tv-grid.takeover .cam:not(.hero-cam) { display: none; }
.cam video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cam.has-video::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(23,28,40,0.18), transparent 32%, transparent 62%, rgba(23,28,40,0.5));
}
.cam.has-video::after { display: none; }
.cam::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(245,248,252,0.045) 45%, transparent 60%);
  transform: translateX(-100%);
  animation: sheen 5.5s ease-in-out infinite;
}
.cam:nth-child(2)::after { animation-delay: 1.3s; }
.cam:nth-child(3)::after { animation-delay: 2.6s; }
.cam:nth-child(4)::after { animation-delay: 3.9s; }
@keyframes sheen { 0% { transform: translateX(-100%); } 45%, 100% { transform: translateX(100%); } }
.cam-badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 700; font-size: 11px; color: #fff;
  background: rgba(254, 166, 68, 0.92); border-radius: 999px; padding: 4px 10px;
  opacity: 0; transition: opacity 0.3s;
}
.cam-badge.on { opacity: 1; }
.cam-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: pulse 1.6s infinite; }
.cam-time {
  position: absolute; bottom: 12px; right: 12px; z-index: 2;
  font-family: var(--font-mono); font-size: 11px; color: #F5F8FC;
  background: rgba(23, 28, 40, 0.7); padding: 3px 8px; border-radius: 6px;
}
.cam-name {
  position: absolute; bottom: 12px; left: 12px; z-index: 2;
  font-family: var(--font-brand); font-weight: 600; font-size: 14px; color: #F5F8FC;
  text-shadow: 0 1px 6px rgba(0,0,0,0.5);
}
.cam-caption {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  font-family: var(--font-mono); font-size: 11px; color: var(--hf-amber);
  background: rgba(23,28,40,0.8); border: 1px solid rgba(254,166,68,0.4);
  padding: 4px 10px; border-radius: 999px;
  opacity: 0; transition: opacity 0.3s;
}
.cam-caption.on { opacity: 1; }
.tv-footer { display: flex; justify-content: space-between; align-items: center; padding: 14px 6px 2px; flex-wrap: wrap; gap: 8px; }
.tv-footer .rec { font-family: var(--font-brand); font-weight: 600; font-size: 14px; color: var(--text); transition: color 0.3s; }
.tv-footer .rec.flash { color: var(--hf-amber); }
.tv-footer .meta { font-family: var(--font-mono); font-size: 11px; color: var(--dim); }

/* ---------- Modules ---------- */
.grid-4 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.card {
  background: var(--surface-1); border: 1px solid var(--line);
  border-radius: 18px; padding: 30px;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.card:hover { transform: translateY(-4px); border-color: rgba(41, 130, 224, 0.5); box-shadow: 0 18px 40px var(--shadow); }
.card .mod {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; margin-bottom: 16px; display: inline-flex;
  padding: 5px 11px; border-radius: 999px; border: 1px solid;
}
.mod-blue { color: var(--hf-blue-400); border-color: rgba(79,176,238,0.4); background: rgba(41,130,224,0.1); }
.mod-amber { color: var(--hf-amber); border-color: rgba(254,166,68,0.35); background: rgba(254,166,68,0.1); }
.mod-green { color: var(--hf-secure); border-color: rgba(53,196,140,0.35); background: rgba(53,196,140,0.1); }
.card h3 { font-size: 22px; margin-bottom: 10px; }
.card p { font-size: 15px; color: var(--muted); }
.mini-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 20px; }
.mini-grid.bs-minis { margin-top: 60px; }
.mini { background: var(--surface-1); border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.mini h4 { font-family: var(--font-brand); font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.mini p { font-size: 13px; color: var(--dim); line-height: 1.5; }

/* ---------- Splits ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split.reverse > .split-visual { order: -1; }
.split h2 { font-size: clamp(26px, 4vw, 38px); line-height: 1.1; margin-bottom: 14px; }
.split p { font-size: 16px; color: var(--muted); margin-bottom: 14px; }
.split ul { list-style: none; margin-top: 18px; }
.split li { display: flex; gap: 11px; align-items: flex-start; font-size: 15px; color: var(--muted); margin-bottom: 11px; }
.split li::before {
  content: "✓"; flex-shrink: 0; width: 20px; height: 20px; border-radius: 50%;
  background: rgba(53, 196, 140, 0.15); color: var(--hf-secure);
  font-size: 12px; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center; margin-top: 2px;
}
.panel {
  background: var(--surface-1); border: 1px solid var(--line);
  border-radius: 18px; padding: 22px;
  box-shadow: 0 24px 60px var(--shadow);
}
.file-row {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 12.5px; color: var(--muted);
  padding: 11px 12px; border-radius: 10px;
}
.file-row:nth-child(odd) { background: var(--surface-2); }
.file-row .ok { color: var(--hf-secure); flex-shrink: 0; }
.file-row .new { color: var(--hf-amber); flex-shrink: 0; }
.panel-head { display: flex; justify-content: space-between; align-items: center; padding: 2px 12px 14px; }
.panel-head .t { font-family: var(--font-brand); font-weight: 600; font-size: 15px; }
.panel-head .m { font-family: var(--font-mono); font-size: 11px; color: var(--dim); }
.recap-line { display: flex; gap: 12px; align-items: baseline; padding: 11px 12px; border-radius: 10px; }
.recap-line:nth-child(odd) { background: var(--surface-2); }
.recap-line .time { font-family: var(--font-mono); font-size: 12px; color: var(--dim); flex-shrink: 0; width: 72px; }
.recap-line .what { font-size: 14px; color: var(--muted); }
.recap-line .what b { color: var(--text); font-weight: 600; }

/* ---------- Field notes (card stack) ---------- */
.field-section { background-image: var(--scene-field); background-repeat: no-repeat; background-position: bottom; }
.field-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: center; }
.stack { position: relative; height: 380px; perspective: 1000px; }
.scard {
  position: absolute; inset: 0; margin: auto;
  max-width: 520px; height: 320px;
  background: var(--surface-1); border: 1px solid var(--line); border-radius: 20px;
  padding: 30px 34px;
  box-shadow: 0 30px 70px var(--shadow);
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s, filter 0.4s;
  display: flex; flex-direction: column;
}
.scard .who { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.scard .ava {
  width: 46px; height: 46px; border-radius: 50%; flex-shrink: 0;
  font-family: var(--font-brand); font-weight: 700; font-size: 18px; color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--hf-gradient-btn);
}
.scard .ava.amber { background: radial-gradient(circle at 40% 35%, #FFC17A, #F08A1D); }
.scard .ava.green { background: radial-gradient(circle at 40% 35%, #5FD9A9, #1F9B69); }
.scard .ava.deep { background: linear-gradient(160deg, #1F6BC4, #0A345C); }
.scard .who .n { font-family: var(--font-brand); font-weight: 600; font-size: 17px; }
.scard .who .r { font-size: 13px; color: var(--dim); }
.scard blockquote { font-size: 17.5px; line-height: 1.55; color: var(--muted); flex: 1; }
.scard .tag { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--hf-blue-400); margin-top: 16px; }
.scard[data-pos="0"] { transform: translateY(0) rotate(0deg); z-index: 4; opacity: 1; }
.scard[data-pos="1"] { transform: translateY(-16px) rotate(-2.5deg) scale(0.97); z-index: 3; opacity: 0.55; filter: blur(0.4px); }
.scard[data-pos="2"] { transform: translateY(-30px) rotate(2deg) scale(0.94); z-index: 2; opacity: 0.3; filter: blur(0.8px); }
.scard[data-pos="3"] { transform: translateY(-42px) rotate(-1deg) scale(0.91); z-index: 1; opacity: 0.15; filter: blur(1.2px); }

.persona-list h3 { font-family: var(--font-brand); font-size: 24px; margin-bottom: 4px; }
.persona-list .sub { font-size: 14px; color: var(--dim); margin-bottom: 22px; }
.persona {
  display: flex; align-items: center; gap: 14px; width: 100%;
  background: transparent; border: 1px solid transparent; border-radius: 14px;
  padding: 13px 16px; cursor: pointer; text-align: left;
  transition: background 0.25s, border-color 0.25s;
}
.persona:hover { background: var(--surface-2); }
.persona.active { background: var(--surface-1); border-color: var(--line); box-shadow: 0 10px 30px var(--shadow); }
.persona .pava {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  font-family: var(--font-brand); font-weight: 700; font-size: 15px; color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--hf-gradient-btn);
}
.persona .pava.amber { background: radial-gradient(circle at 40% 35%, #FFC17A, #F08A1D); }
.persona .pava.green { background: radial-gradient(circle at 40% 35%, #5FD9A9, #1F9B69); }
.persona .pava.deep { background: linear-gradient(160deg, #1F6BC4, #0A345C); }
.persona .pn { font-family: var(--font-brand); font-weight: 600; font-size: 15.5px; color: var(--text); }
.persona .pr { font-size: 13px; color: var(--dim); }
.field-note { font-family: var(--font-mono); font-size: 11.5px; color: var(--dim); margin-top: 20px; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { background: var(--surface-1); border: 1px solid var(--line); border-radius: 18px; padding: 30px; }
.step .n {
  font-family: var(--font-mono); font-size: 13px; color: var(--hf-blue-400);
  width: 34px; height: 34px; border-radius: 10px;
  background: rgba(41, 130, 224, 0.12); border: 1px solid rgba(79, 176, 238, 0.35);
  display: inline-flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.step h3 { font-size: 19px; margin-bottom: 8px; }
.step p { font-size: 14.5px; color: var(--muted); }

/* ---------- Pricing ---------- */
.pricing-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; max-width: 1240px; margin: 0 auto; }
.price-card {
  background: var(--surface-1); border: 1px solid var(--line);
  border-radius: 18px; padding: 34px; position: relative;
  display: flex; flex-direction: column;
}
.price-card.featured { border-color: var(--hf-blue-600); box-shadow: 0 0 0 1px var(--hf-blue-600), 0 24px 60px rgba(41,130,224,0.15); }
.price-badge {
  position: absolute; top: -13px; left: 30px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 999px;
}
.price-badge.now { background: var(--hf-blue-600); color: #fff; }
.price-badge.soon { background: var(--surface-3); color: var(--hf-amber); border: 1px solid rgba(254,166,68,0.35); }
.price-card h3 { font-size: 24px; margin-bottom: 4px; }
.price-card .for { font-size: 14px; color: var(--dim); margin-bottom: 20px; }
.price { font-family: var(--font-brand); font-weight: 700; font-size: 44px; line-height: 1; }
.price small { font-family: var(--font-body); font-weight: 500; font-size: 15px; color: var(--dim); }
.price-alt { font-family: var(--font-mono); font-size: 12px; color: var(--dim); margin: 6px 0 22px; }
.price-card ul { list-style: none; margin-bottom: 28px; flex: 1; }
.price-card li { display: flex; gap: 10px; font-size: 14.5px; color: var(--muted); margin-bottom: 10px; }
.price-card li::before { content: "✓"; color: var(--hf-secure); font-weight: 800; }
.pricing-note { text-align: center; font-family: var(--font-mono); font-size: 12px; color: var(--dim); margin-top: 26px; }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin: 0 auto; }
.faq details { background: var(--surface-1); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 12px; overflow: hidden; }
.faq summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 14px;
  font-family: var(--font-brand); font-weight: 600; font-size: 16.5px; padding: 20px 24px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; width: 9px; height: 9px; flex-shrink: 0; margin-top: -4px;
  border-right: 2px solid var(--dim); border-bottom: 2px solid var(--dim);
  transform: rotate(45deg);
  transition: transform 0.25s, border-color 0.25s;
}
.faq details[open] summary::after { transform: rotate(225deg); margin-top: 4px; border-color: var(--hf-blue-400); }
.faq details p { padding: 0 24px 22px; font-size: 15px; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--hf-blue-900), var(--surface-1));
  border: 1px solid var(--line); border-radius: 22px;
  padding: 60px 48px; text-align: center; position: relative; overflow: hidden;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 50% 120%, rgba(254, 166, 68, 0.14), transparent 55%);
}
.cta-band h2 { font-size: clamp(26px, 4vw, 38px); margin-bottom: 12px; color: #F5F8FC; }
.cta-band p { color: #A9B4C6; max-width: 520px; margin: 0 auto 28px; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line); background: var(--surface-1); padding: 64px 0 40px; margin-top: 96px; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.foot-brand img { width: 190px; margin-bottom: 14px; }
.foot-brand .logo-light { display: none; }
html[data-theme="light"] .foot-brand .logo-dark { display: none; }
html[data-theme="light"] .foot-brand .logo-light { display: block; }
.foot-brand p { font-size: 14px; color: var(--dim); max-width: 300px; }
.foot-col h5 {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--dim); margin-bottom: 16px; font-weight: 500;
}
.foot-col a { display: block; color: var(--muted); font-size: 14.5px; margin-bottom: 10px; transition: color 0.2s; }
.foot-col a:hover { color: var(--text); }
.foot-legal { border-top: 1px solid var(--surface-3); padding-top: 26px; font-size: 12.5px; color: var(--dim); line-height: 1.7; }
.foot-legal .copy { margin-top: 8px; font-family: var(--font-mono); font-size: 11.5px; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal.scale { transform: translateY(24px) scale(0.96); }
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-bg, .hero-scroll { animation: none; }
  .cam::after, .chip-live .dot, .cam-badge .dot { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Launch list signup ---------- */
.signup {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start;
  background: linear-gradient(155deg, #0A345C 0%, #1E2434 55%);
  border: 1px solid #3D465B; border-radius: 24px; padding: 48px;
}
.signup-copy h2 { font-size: clamp(26px, 4vw, 38px); line-height: 1.1; margin-bottom: 14px; color: #F5F8FC; }
.signup-copy p { font-size: 16px; color: #A9B4C6; margin-bottom: 22px; }
.signup-assure { list-style: none; }
.signup-assure li {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 14px; color: #A9B4C6; margin-bottom: 9px;
}
.signup-assure li::before {
  content: "✓"; color: var(--hf-secure); font-weight: 700; flex: none; line-height: 1.5;
}
.signup-form { display: flex; flex-direction: column; gap: 18px; }
.signup-form .field { display: flex; flex-direction: column; gap: 7px; border: 0; }
.signup-form .field > label, .signup-form legend {
  font-family: var(--font-brand); font-weight: 600; font-size: 14px; color: #F5F8FC; padding: 0;
}
.signup-form .opt { font-family: var(--font-body); font-weight: 400; font-size: 12px; color: #8593A8; margin-left: 6px; }
.signup-form input[type="email"], .signup-form select {
  font-family: var(--font-body); font-size: 15px; color: #F5F8FC;
  background: rgba(10, 14, 24, 0.55); border: 1px solid #3D465B; border-radius: 12px;
  padding: 12px 14px; width: 100%;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.signup-form select { appearance: none; cursor: pointer; padding-right: 38px;
  background-image: linear-gradient(45deg, transparent 50%, #8593A8 50%), linear-gradient(135deg, #8593A8 50%, transparent 50%);
  background-position: calc(100% - 20px) calc(50% + 2px), calc(100% - 14px) calc(50% + 2px);
  background-size: 6px 6px, 6px 6px; background-repeat: no-repeat;
}
.signup-form input[type="email"]::placeholder { color: #6E7A90; }
.signup-form input[type="email"]:focus-visible, .signup-form select:focus-visible {
  outline: none; border-color: var(--hf-blue-400); box-shadow: 0 0 0 3px rgba(79, 176, 238, 0.25);
}
.signup-form input[aria-invalid="true"] { border-color: #E5645C; }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.check {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  font-family: var(--font-body); font-weight: 500; font-size: 14px; color: #A9B4C6;
  background: rgba(10, 14, 24, 0.55); border: 1px solid #3D465B; border-radius: 999px;
  padding: 8px 14px; transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.check input { accent-color: var(--hf-blue-500); width: 15px; height: 15px; cursor: pointer; }
.check:has(input:checked) { border-color: var(--hf-blue-400); color: #F5F8FC; background: rgba(41, 130, 224, 0.16); }
.check:has(input:focus-visible) { box-shadow: 0 0 0 3px rgba(79, 176, 238, 0.25); }
.field-hint { font-size: 12.5px; color: #8593A8; }
.field-err { font-size: 12.5px; color: #E5645C; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.signup-form .btn { align-self: flex-start; }
.signup-form .btn[disabled] { opacity: 0.6; pointer-events: none; }
.signup-msg { font-size: 14px; line-height: 1.5; }
.signup-msg:empty { display: none; }
.signup-msg.ok { color: var(--hf-secure); }
.signup-msg.bad { color: #E5645C; }
.signup-fine { font-size: 12.5px; color: #6E7A90; }
.signup-fine a { color: var(--hf-blue-300); text-decoration: underline; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .signup { grid-template-columns: 1fr; gap: 32px; padding: 32px 26px; }
  .hero-product { padding: 20px 14px 16px; }
  .hero-product img { width: 128px; }
  .hero-product .hp-line { font-size: 14px; }
  .split, .field-grid { grid-template-columns: 1fr; gap: 36px; }
  .split.reverse > .split-visual { order: 0; }
  .steps { grid-template-columns: 1fr; }
  .mini-grid, .foot-grid { grid-template-columns: 1fr 1fr; }
  .pricing-grid, .grid-4 { grid-template-columns: 1fr; }
  .section { padding: 70px 0; }
  .product-head { grid-template-columns: 1fr; gap: 22px; padding: 30px 26px; text-align: center; }
  .product-logo { margin: 0 auto; max-width: 200px; }
  .product-head p { margin: 0 auto; }
  .shots { grid-template-columns: 1fr 1fr; gap: 18px; }
  .shots figure:last-child { display: none; }
  .shots.shots-2 figure:last-child { display: flex; }
  .scard { padding: 24px; }

  /* The pill grows into a menu card rather than hiding navigation entirely.
     Links stay in the DOM where they are, so the scroll-spy keeps working. */
  /* Shrink-to-fit plus flex-wrap made the closed pill wrap to 132px tall.
     A phone gets a bar pinned to both edges instead, so the header row has
     room and only the menu wraps below it. */
  .pill-nav {
    flex-wrap: wrap; left: 12px; right: 12px;
    width: auto; margin: 0; top: -110px;
  }
  .pill-nav.show { top: 18px; }
  .pill-nav.menu-open { border-radius: 22px; padding-bottom: 8px; }
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center; position: relative;
    width: 44px; height: 44px; margin-left: 2px; flex: none;
    background: transparent; border: none; border-radius: 50%; cursor: pointer;
  }
  .nav-links { display: none; order: 3; width: 100%; flex-direction: column; gap: 2px; }
  .pill-nav.menu-open .nav-links { display: flex; }
  .pill-nav.menu-open .nav-links::before {
    content: ""; display: block; height: 1px; background: var(--line); margin: 6px 4px 4px;
  }
  .pill-nav a.link {
    display: flex; align-items: center; min-height: 44px;
    padding: 0 14px; font-size: 15.5px;
  }
  .pill-nav .btn { min-height: 44px; display: inline-flex; align-items: center; margin-left: auto; }

  /* One floating control, not two stacked over the hero's own links. */
  /* Fallback spot for the no-JS case, where the nav never appears either. */
  body > .theme-toggle { top: 18px; left: 12px; right: auto; bottom: auto; }
  .theme-toggle button { width: 44px; height: 44px; font-size: 17px; }

  /* Footer links were 23px of tappable height. */
  .foot-col a { min-height: 44px; display: flex; align-items: center; }

  /* Nothing meant to be read should sit under 13px on a phone. */
  .hero-badge, .hero-note, .kicker, .pricing-note, .price-alt { font-size: 13px; }
  .shots figcaption, .field-note, .field-hint, .field-err,
  .signup-fine, .foot-legal { font-size: 13px; }
  .card .mod { font-size: 12px; }

  /* The hero ran to 1443px before a phone saw any content. */
  .hero { padding-top: 84px; }
  .hero-products { margin-bottom: 22px; }

  /* Card content ran past the fixed card height and clipped. */
  .stack { height: auto; min-height: 340px; }
  .scard { height: auto; min-height: 300px; }

  /* Every button a thumb has to hit clears 44px. Inline links inside a
     sentence are left alone: padding one out would break the line. */
  .btn { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
  .signup-form .check { min-height: 44px; }

  /* Labels people actually read, lifted off 11px. The numbers inside the TV
     mockup stay small on purpose: that is simulated device chrome, not copy. */
  .foot-col h5, .foot-legal .copy { font-size: 12.5px; }
  .scard .tag, .price-badge { font-size: 12px; }
}
@media (max-width: 640px) {
  .hero-products { grid-template-columns: 1fr; gap: 12px; }
  /* Three stacked 217px cards ate 682px of a 1404px hero before a phone
     reached a single call to action. Same three links, laid on their side. */
  .hero-product {
    display: grid; grid-template-columns: 84px 1fr;
    grid-template-areas: "logo line" "logo go";
    align-items: center; text-align: left; gap: 2px 14px; padding: 14px 16px;
  }
  .hero-product img { grid-area: logo; width: 84px; }
  .hero-product .hp-line { grid-area: line; max-width: none; font-size: 14px; }
  .hero-product .hp-go { grid-area: go; }
}
@media (max-width: 560px) {
  .shots, .shots.shots-2 { grid-template-columns: 1fr; }
  .shots figure:last-child { display: flex; }
}
@media (max-width: 560px) {
  .tv-grid { grid-template-columns: 1fr; }
  .mini-grid, .foot-grid { grid-template-columns: 1fr; }
}
