/* ==========================================================================
   THRYVO — Global Design System
   Premium minimalism · dark luxury · glassmorphism
   ========================================================================== */

:root {
  /* Brand tokens */
  --tv-navy: #0D0F1A;
  --tv-surface: #13162A;
  --tv-surface-2: #181C33;
  --tv-green: #00C896;
  --tv-mint: #00E5B0;
  --tv-orange: #FF6B35;
  --tv-muted: #8A8FA8;
  --tv-white: #FFFFFF;

  --tv-line: rgba(255, 255, 255, 0.08);
  --tv-line-strong: rgba(255, 255, 255, 0.14);
  --tv-glass: rgba(19, 22, 42, 0.72);
  --tv-glass-strong: rgba(19, 22, 42, 0.88);

  --tv-font-head: "Plus Jakarta Sans", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --tv-font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --tv-font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Consolas, monospace;

  --tv-radius-card: 20px;
  --tv-radius-control: 12px;
  --tv-radius-pill: 9999px;

  --tv-shadow-soft: 0 12px 40px rgba(0, 0, 0, 0.22);
  --tv-shadow-card: 0 18px 50px rgba(0, 0, 0, 0.28);

  --tv-header-height: 56px;
  --tv-header-offset: 20px;

  /* Spacing scale — one source of truth for vertical rhythm */
  --tv-space-section: clamp(44px, 5.5vw, 72px);
  --tv-space-section-tight: clamp(32px, 4vw, 48px);
  --tv-space-head: clamp(28px, 3.5vw, 44px);
  --tv-space-hero-top: clamp(16px, 3vw, 40px);

  --tv-ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  --tv-grad: linear-gradient(120deg, var(--tv-green), var(--tv-mint));
  --tv-grad-text: linear-gradient(100deg, #ffffff 20%, var(--tv-mint) 90%);
}

/* Visually hidden but screen-reader accessible */
.tv-visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Reset & base */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--tv-font-body);
  background: var(--tv-navy);
  color: var(--tv-white);
  line-height: 1.6;
  font-size: 16px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Ambient page background — 60% dark base, subtle accents */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(640px 420px at 12% -4%, rgba(0, 200, 150, 0.07), transparent 62%),
    radial-gradient(560px 400px at 92% 8%, rgba(0, 229, 176, 0.05), transparent 60%),
    radial-gradient(700px 520px at 78% 96%, rgba(255, 107, 53, 0.035), transparent 65%);
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }

h1, h2, h3, h4 {
  font-family: var(--tv-font-head);
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.35rem, 5.4vw, 3.9rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); font-weight: 700; }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); font-weight: 700; }

::selection { background: rgba(0, 200, 150, 0.35); color: var(--tv-white); }

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

/* Layout primitives */
.container {
  width: min(1240px, 100% - 40px);
  margin-inline: auto;
}
@media (max-width: 640px) {
  .container { width: min(1240px, 100% - 32px); }
}

.tv-section { padding: var(--tv-space-section) 0; position: relative; }
.tv-section-tight { padding: var(--tv-space-section-tight) 0; }

.tv-section-head {
  max-width: 680px;
  margin: 0 auto var(--tv-space-head);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.tv-section-head p { color: var(--tv-muted); font-size: 17px; max-width: 560px; }

.tv-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tv-green);
}
.tv-section-head .tv-eyebrow,
.tv-cta-band .tv-eyebrow { text-indent: 0.14em; }
.tv-eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--tv-green);
  box-shadow: 0 0 10px rgba(0, 200, 150, 0.7);
}

.tv-grad {
  background: linear-gradient(100deg, var(--tv-white) 30%, var(--tv-mint));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.tv-muted { color: var(--tv-muted); }
.tv-mono { font-family: var(--tv-font-mono); }

/* Buttons & badges */
.tv-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 26px;
  border-radius: var(--tv-radius-pill);
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  border: 1px solid transparent;
  background: var(--tv-orange);
  color: var(--tv-white);
  box-shadow: 0 10px 28px rgba(255, 107, 53, 0.26);
  transition: transform 0.18s var(--tv-ease), background 0.18s var(--tv-ease),
    border-color 0.18s var(--tv-ease), color 0.18s var(--tv-ease), box-shadow 0.18s var(--tv-ease);
  white-space: nowrap;
}
.tv-btn:hover { background: #ff8256; box-shadow: 0 12px 34px rgba(255, 107, 53, 0.36); }
.tv-btn:active { transform: translateY(1px) scale(0.99); }
.tv-btn svg { width: 16px; height: 16px; flex: none; }

.tv-btn-primary {
  background: var(--tv-orange);
  color: var(--tv-white);
  box-shadow: 0 10px 28px rgba(255, 107, 53, 0.28);
}
.tv-btn-primary:hover { background: #ff8256; box-shadow: 0 12px 34px rgba(255, 107, 53, 0.38); }

.tv-btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--tv-line-strong);
  color: var(--tv-white);
}
.tv-btn-ghost:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.22); }

.tv-btn-urgent {
  background: var(--tv-orange);
  color: var(--tv-navy);
  box-shadow: 0 10px 28px rgba(255, 107, 53, 0.26);
}
.tv-btn-urgent:hover { background: #ff8256; }

.tv-btn-block { width: 100%; }
.tv-btn[disabled] { opacity: 0.6; cursor: not-allowed; transform: none; }

/* FREE — FOREVER pill (canonical) */
.tv-free-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: var(--tv-radius-pill);
  background: rgba(0, 200, 150, 0.1);
  border: 1px solid rgba(0, 200, 150, 0.32);
  color: var(--tv-mint);
  font-size: 12px;
  font-weight: 700;
}

/* ==========================================================================
   Global header — minimal floating glass navigation
   ========================================================================== */
.tv-header {
  position: fixed;
  top: var(--tv-header-offset);
  left: 0;
  right: 0;
  z-index: 1000;
  pointer-events: none;
}
.tv-header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  pointer-events: none;
}
.tv-header-inner > * { pointer-events: auto; }

.tv-logo {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
}
.tv-logo-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--tv-green), var(--tv-mint));
  display: grid;
  place-items: center;
  box-shadow: 0 6px 18px rgba(0, 200, 150, 0.35);
  flex: none;
}
.tv-logo-icon svg { width: 18px; height: 18px; }
.tv-logo-word {
  font-family: var(--tv-font-head);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: 0.06em;
  color: var(--tv-white);
}
.tv-logo-word b { color: var(--tv-mint); font-weight: 800; }

.tv-navpill {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 2px;
  height: var(--tv-header-height);
  padding: 0 10px;
  border-radius: var(--tv-radius-pill);
  background: var(--tv-glass);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border: 1px solid var(--tv-line);
  box-shadow: var(--tv-shadow-soft), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: background 0.25s var(--tv-ease), border-color 0.25s var(--tv-ease);
}
.tv-header.scrolled .tv-navpill {
  background: var(--tv-glass-strong);
  border-color: var(--tv-line-strong);
}
.tv-navpill a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 40px;
  padding: 0 16px;
  border-radius: var(--tv-radius-pill);
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.82);
  transition: background 0.18s var(--tv-ease), color 0.18s var(--tv-ease);
  white-space: nowrap;
}
.tv-navpill a:hover { background: rgba(255, 255, 255, 0.06); color: var(--tv-white); }
.tv-navpill a[aria-current="page"] {
  background: rgba(255, 107, 53, 0.16);
  border: 1px solid rgba(255, 107, 53, 0.45);
  color: #FF8A5C;
}
.tv-nav-flag {
  padding: 2px 7px;
  border-radius: var(--tv-radius-pill);
  background: linear-gradient(100deg, var(--tv-green), var(--tv-mint));
  color: var(--tv-navy);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  animation: tv-flag-pulse 2.6s ease-in-out infinite;
}
@keyframes tv-flag-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 229, 176, 0.45); }
  50% { box-shadow: 0 0 0 6px rgba(0, 229, 176, 0); }
}

.tv-header-cta {
  justify-self: end;
  min-height: var(--tv-header-height);
  padding: 0 26px;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 10px 26px rgba(255, 107, 53, 0.35);
}

.tv-free-pill {
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.tv-progress {
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 2000;
  padding: 10px 18px;
  border-radius: var(--tv-radius-pill);
  background: var(--tv-green);
  color: var(--tv-navy);
  font-weight: 700;
  transition: top 0.2s var(--tv-ease);
}
.skip-link:focus { top: 12px; }


/* Mobile menu button */
.tv-menu-btn {
  display: none;
  justify-self: end;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--tv-glass);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border: 1px solid var(--tv-line);
  color: var(--tv-white);
  place-items: center;
  transition: background 0.2s var(--tv-ease);
}
.tv-menu-btn:hover { background: var(--tv-glass-strong); }
.tv-menu-btn svg { width: 20px; height: 20px; margin: auto; }
.tv-menu-btn .tv-icon-close { display: none; }
.tv-menu-btn[aria-expanded="true"] .tv-icon-close { display: block; }
.tv-menu-btn[aria-expanded="true"] .tv-icon-open { display: none; }

.tv-mobile-menu {
  display: none;
  margin: 12px auto 0;
  width: min(480px, calc(100% - 32px));
  padding: 14px;
  border-radius: 22px;
  background: var(--tv-glass-strong);
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
  border: 1px solid var(--tv-line-strong);
  box-shadow: var(--tv-shadow-card);
  pointer-events: auto;
}
.tv-mobile-menu.open { display: block; animation: tv-menu-in 0.22s var(--tv-ease); }
@keyframes tv-menu-in {
  from { opacity: 0; transform: translateY(-8px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
.tv-mobile-menu nav, .tv-mobile-menu .tv-menu-list, .tv-mobile-menu > div {
  display: flex;
  flex-direction: column;
}
.tv-mobile-menu > a,
.tv-mobile-menu nav a,
.tv-mobile-menu .tv-menu-list a,
.tv-mobile-menu > div > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 12px;
  font-size: 15.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
}
.tv-mobile-menu > a:hover,
.tv-mobile-menu > a:focus-visible,
.tv-mobile-menu nav a:hover,
.tv-mobile-menu nav a:focus-visible,
.tv-mobile-menu .tv-menu-list a:hover,
.tv-mobile-menu .tv-menu-list a:focus-visible,
.tv-mobile-menu > div > a:hover,
.tv-mobile-menu > div > a:focus-visible { background: rgba(255, 255, 255, 0.06); color: var(--tv-white); }
.tv-mobile-menu > a[aria-current="page"],
.tv-mobile-menu nav a[aria-current="page"],
.tv-mobile-menu .tv-menu-list a[aria-current="page"],
.tv-mobile-menu > div > a[aria-current="page"] { color: var(--tv-mint); background: rgba(0, 200, 150, 0.12); }
.tv-mobile-menu .tv-menu-divider { height: 1px; background: var(--tv-line); margin: 10px 4px; }
.tv-mobile-menu .tv-menu-secondary { display: flex; gap: 8px; }
.tv-mobile-menu .tv-menu-secondary a { min-height: 42px; font-size: 14px; color: var(--tv-muted); }
.tv-mobile-menu .tv-btn { margin-top: 12px; }
.tv-mobile-menu-note { margin-top: 12px; text-align: center; font-size: 12px; color: var(--tv-muted); }

body.tv-menu-locked { overflow: hidden; }

@media (max-width: 1023px) {
  .tv-navpill, .tv-header-cta { display: none; }
  .tv-menu-btn { display: grid; }
  .tv-header-inner { grid-template-columns: 1fr auto; }
}
@media (min-width: 1024px) {
  .tv-mobile-menu { display: none !important; }
}

/* Announcement strip (Thryvo Cal tester launch) */
.tv-announce {
  position: relative;
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 9px 44px 9px 16px;
  background: linear-gradient(100deg, rgba(0, 200, 150, 0.16), rgba(0, 229, 176, 0.08));
  border-bottom: 1px solid rgba(0, 200, 150, 0.25);
}

/* ==========================================================================
   Hero
   ========================================================================== */
.tv-hero {
  position: relative;
  padding: var(--tv-space-hero-top) 0 var(--tv-space-section);
  text-align: center;
  overflow: hidden;
}
.tv-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 229, 176, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 176, 0.045) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse 75% 65% at 50% 32%, black, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 32%, black, transparent 72%);
  pointer-events: none;
}
.tv-hero-inner { position: relative; max-width: 880px; margin: 0 auto; }
.tv-hero h1 { margin: 20px 0 22px; }
.tv-hero .tv-lead {
  max-width: 640px;
  margin: 0 auto;
  color: var(--tv-muted);
  font-size: clamp(16px, 2vw, 18.5px);
  line-height: 1.65;
}
.tv-hero-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 34px;
}
.tv-hero-status {
  margin-top: 26px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  color: var(--tv-muted);
  font-size: 13.5px;
}
.tv-hero-status .tv-status-dot {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.tv-hero-status .tv-status-dot::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--tv-green);
  box-shadow: 0 0 12px rgba(0, 200, 150, 0.9);
  animation: tv-status-blink 2.4s ease-in-out infinite;
}
@keyframes tv-status-blink { 50% { opacity: 0.45; } }

/* Hero media */
.tv-hero-media {
  margin: clamp(40px, 6vw, 64px) auto 0;
  max-width: 1020px;
  border-radius: 26px;
  border: 1px solid var(--tv-line-strong);
  overflow: hidden;
  box-shadow: 0 40px 110px rgba(0, 0, 0, 0.45), 0 0 80px rgba(0, 200, 150, 0.08);
}
.tv-hero-media img { width: 100%; }

/* ==========================================================================
   Cards & grids
   ========================================================================== */
.tv-card {
  background: linear-gradient(160deg, var(--tv-surface-2), var(--tv-surface));
  border: 1px solid var(--tv-line);
  border-radius: var(--tv-radius-card);
  padding: 28px;
  transition: transform 0.22s var(--tv-ease), border-color 0.22s var(--tv-ease), box-shadow 0.22s var(--tv-ease);
}
.tv-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 200, 150, 0.3);
  box-shadow: var(--tv-shadow-card);
}
.tv-card-icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: rgba(0, 200, 150, 0.12);
  border: 1px solid rgba(0, 200, 150, 0.25);
  color: var(--tv-mint);
  margin-bottom: 18px;
}
.tv-card-icon svg { width: 22px; height: 22px; }
.tv-card h3 { margin-bottom: 10px; }
.tv-card p { color: var(--tv-muted); font-size: 15px; }
.tv-card .tv-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  color: var(--tv-mint);
  font-weight: 600;
  font-size: 14px;
}
.tv-card .tv-card-link:hover { text-decoration: underline; text-underline-offset: 3px; }

.tv-grid { display: grid; gap: 22px; }
.tv-grid-2 { grid-template-columns: repeat(2, 1fr); }
.tv-grid-3 { grid-template-columns: repeat(3, 1fr); }
.tv-grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1023px) {
  .tv-grid-3, .tv-grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .tv-grid-2, .tv-grid-3, .tv-grid-4 { grid-template-columns: 1fr; }
}

/* Feature pills */
.tv-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.tv-pill {
  padding: 7px 14px;
}

/* ==========================================================================
   Thryvo Cal spotlight (tester launch highlight)
   ========================================================================== */
.tv-spotlight {
  position: relative;
  border-radius: 28px;
  border: 1px solid rgba(0, 200, 150, 0.3);
  background:
    radial-gradient(720px 340px at 18% 0%, rgba(0, 200, 150, 0.14), transparent 62%),
    linear-gradient(160deg, #141a30, #10131f);
  overflow: hidden;
  padding: clamp(32px, 5vw, 64px);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.4), 0 0 90px rgba(0, 200, 150, 0.07);
}
.tv-spotlight::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 229, 176, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 176, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(to bottom, black, transparent 88%);
  -webkit-mask-image: linear-gradient(to bottom, black, transparent 88%);
  pointer-events: none;
}
.tv-spotlight-copy { position: relative; }
.tv-spotlight-copy h2 { margin: 16px 0 16px; }
.tv-spotlight-copy > p { color: var(--tv-muted); font-size: 16.5px; max-width: 520px; }
.tv-spotlight-points {
  list-style: none;
  padding: 0;
  margin: 22px 0 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.tv-spotlight-points li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: rgba(255, 255, 255, 0.88);
  font-size: 15px;
}
.tv-spotlight-points svg {
  width: 19px;
  height: 19px;
  flex: none;
  margin-top: 2px;
  color: var(--tv-mint);
}
.tv-spotlight-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.tv-spotlight-visual {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--tv-line-strong);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}
.tv-spotlight-visual img { width: 100%; }
@media (max-width: 900px) {
  .tv-spotlight { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Steps (How it works)
   ========================================================================== */
.tv-steps { counter-reset: tv-step; list-style: none; padding-left: 0; }
.tv-step { position: relative; }
.tv-step-num {
  font-family: var(--tv-font-mono);
  font-size: 13px;
  color: var(--tv-green);
  letter-spacing: 0.1em;
  margin-bottom: 12px;
  display: block;
}

/* ==========================================================================
   Forms
   ========================================================================== */
.tv-form-card {
  background: linear-gradient(165deg, var(--tv-surface-2), var(--tv-surface));
  border: 1px solid var(--tv-line);
  border-radius: var(--tv-radius-card);
  padding: clamp(24px, 4vw, 36px);
}
.tv-field { margin-bottom: 18px; }
.tv-field label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.9);
}
.tv-field label .tv-req { color: var(--tv-mint); }
.tv-field .tv-optional { color: var(--tv-muted); font-weight: 400; font-size: 12.5px; }
.tv-input, .tv-select, .tv-textarea {
  width: 100%;
  min-height: 50px;
  padding: 0 16px;
  border-radius: var(--tv-radius-control);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--tv-line-strong);
  color: var(--tv-white);
  font-size: 16px;
  transition: border-color 0.16s var(--tv-ease), background 0.16s var(--tv-ease), box-shadow 0.16s var(--tv-ease);
}
.tv-textarea { padding: 14px 16px; min-height: 150px; resize: vertical; }
.tv-input::placeholder, .tv-textarea::placeholder { color: rgba(138, 143, 168, 0.65); }
.tv-input:focus, .tv-select:focus, .tv-textarea:focus {
  outline: none;
  border-color: var(--tv-green);
  background: rgba(0, 200, 150, 0.05);
  box-shadow: 0 0 0 3px rgba(0, 200, 150, 0.16);
}
.tv-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%238A8FA8' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 42px;
}
.tv-select option { background: var(--tv-surface); color: var(--tv-white); }
.tv-field.tv-invalid .tv-input,
.tv-field.tv-invalid .tv-select,
.tv-field.tv-invalid .tv-textarea { border-color: #ff7a7a; }
.tv-field-error {
  display: none;
  margin-top: 7px;
  font-size: 13px;
  color: #ff9c9c;
}
.tv-field.tv-invalid .tv-field-error { display: block; }
.tv-hint { font-size: 12.5px; color: var(--tv-muted); margin-top: 7px; }

/* Inline email capture (waitlist / testers) */
.tv-capture { display: flex; gap: 10px; max-width: 520px; margin: 0 auto; }
.tv-capture .tv-input { flex: 1; min-width: 0; border-radius: var(--tv-radius-pill); padding-left: 20px; }
.tv-capture .tv-btn { flex: none; }
@media (max-width: 560px) {
  .tv-capture { flex-direction: column; }
  .tv-capture .tv-btn { width: 100%; }
}

/* Form feedback states */
.tv-form-success, .tv-form-error-banner {
  display: none;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 14px;
  font-size: 14.5px;
  line-height: 1.5;
}
.tv-form-success {
  background: rgba(0, 200, 150, 0.1);
  border: 1px solid rgba(0, 200, 150, 0.35);
  color: var(--tv-mint);
}
.tv-form-error-banner {
  background: rgba(255, 107, 53, 0.09);
  border: 1px solid rgba(255, 107, 53, 0.4);
  color: #ffb59c;
}
.tv-form-success.show, .tv-form-error-banner.show { display: flex; }
.tv-form-success svg, .tv-form-error-banner svg { width: 18px; height: 18px; flex: none; margin-top: 2px; }

.tv-announce-icon {
  border-radius: var(--tv-radius-pill);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--tv-line);
  color: var(--tv-muted);
  font-size: 13px;
  font-weight: 500;
}

.tv-announce-icon svg { width: 16px; height: 16px; }

.tv-announce-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13.5px;
  text-align: center;
}
.tv-announce strong { color: var(--tv-mint); font-weight: 700; }
.tv-announce a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: var(--tv-white);
  border-bottom: 1px solid rgba(0, 229, 176, 0.5);
}
.tv-announce a:hover { color: var(--tv-mint); }
.tv-announce-close {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--tv-muted);
}
.tv-announce-close:hover { color: var(--tv-white); background: rgba(255, 255, 255, 0.07); }
.tv-announce-close svg { width: 15px; height: 15px; }
.tv-announce[hidden] { display: none; }

.tv-page { padding-top: calc(var(--tv-header-offset) + var(--tv-header-height) + 24px); }

.tv-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2.5px;
  width: 0;
  z-index: 1200;
  background: linear-gradient(90deg, var(--tv-green), var(--tv-mint));
  pointer-events: none;
}


/* ==========================================================================
   FAQ accordion (shared, data-driven)
   ========================================================================== */
.tv-faq { max-width: 780px; margin: 0 auto; }
.tv-faq-item {
  border: 1px solid var(--tv-line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.025);
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color 0.2s var(--tv-ease), background 0.2s var(--tv-ease);
}
.tv-faq-item.open { border-color: rgba(0, 200, 150, 0.35); background: rgba(0, 200, 150, 0.045); }
.tv-faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding: 16px 20px;
  text-align: left;
  font-weight: 600;
  font-size: 15.5px;
  color: var(--tv-white);
}
.tv-faq-q .tv-faq-chevron {
  width: 30px;
  height: 30px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: var(--tv-muted);
  transition: transform 0.24s var(--tv-ease), background 0.24s var(--tv-ease), color 0.24s var(--tv-ease);
}
.tv-faq-q .tv-faq-chevron svg { width: 15px; height: 15px; }
.tv-faq-item.open .tv-faq-chevron {
  transform: rotate(180deg);
  background: rgba(0, 200, 150, 0.16);
  color: var(--tv-mint);
}
.tv-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s var(--tv-ease);
}
.tv-faq-a-inner {
  padding: 0 20px 18px;
  color: var(--tv-muted);
  font-size: 14.5px;
  line-height: 1.7;
}
.tv-faq-a-inner a { color: var(--tv-mint); font-weight: 600; }
.tv-faq-a-inner a:hover { text-decoration: underline; }

.tv-faq-search {
  position: relative;
  max-width: 520px;
  margin: 0 auto 34px;
}
.tv-faq-search svg {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 17px;
  height: 17px;
  color: var(--tv-muted);
  pointer-events: none;
}
.tv-faq-search .tv-input { padding-left: 46px; border-radius: var(--tv-radius-pill); }
.tv-faq-empty { text-align: center; color: var(--tv-muted); padding: 28px 0; display: none; }
.tv-faq-empty.show { display: block; }
.tv-faq-cat {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tv-green);
  margin: 30px 0 14px;
}
.tv-faq-cat:first-of-type { margin-top: 0; }

/* ==========================================================================
   Footer (shared)
   ========================================================================== */
.tv-footer {
  border-top: 1px solid var(--tv-line);
  background: linear-gradient(to bottom, transparent, rgba(19, 22, 42, 0.6));
  padding: clamp(48px, 6vw, 72px) 0 34px;
}

/* ==========================================================================
   Macro calculator
   ========================================================================== */
.tv-calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}
@media (max-width: 980px) { .tv-calc-grid { grid-template-columns: 1fr; } }

.tv-panel {
  background: linear-gradient(165deg, var(--tv-surface-2), var(--tv-surface));
  border: 1px solid var(--tv-line);
  border-radius: var(--tv-radius-card);
  padding: clamp(22px, 3.4vw, 32px);
}
.tv-panel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.tv-panel-title { font-family: var(--tv-font-head); font-weight: 700; font-size: 17px; }

.tv-unit-toggle {
  display: inline-flex;
  padding: 4px;
  border-radius: var(--tv-radius-pill);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--tv-line);
}
.tv-unit-toggle button {
  min-height: 34px;
  padding: 0 16px;
  border-radius: var(--tv-radius-pill);
  font-size: 13px;
  font-weight: 600;
  color: var(--tv-muted);
  transition: background 0.16s var(--tv-ease), color 0.16s var(--tv-ease);
}
.tv-unit-toggle button.active { background: var(--tv-green); color: var(--tv-navy); }

.tv-calc fieldset { border: 0; padding: 0; margin: 0 0 20px; }
.tv-calc legend {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 10px;
  padding: 0;
}
.tv-calc label { font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, 0.9); display: block; margin-bottom: 8px; }
.tv-input-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 20px; }
.tv-input-grid .full { grid-column: 1 / -1; }
.tv-imperial-height { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.tv-option-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tv-option-grid.two { grid-template-columns: repeat(2, 1fr); }
.tv-option-grid.five { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 640px) {
  .tv-option-grid, .tv-option-grid.five { grid-template-columns: repeat(2, 1fr); }
}
.tv-option {
  min-height: 54px;
  padding: 10px 12px;
  border-radius: 13px;
  border: 1px solid var(--tv-line-strong);
  background: rgba(255, 255, 255, 0.035);
  text-align: left;
  transition: border-color 0.15s var(--tv-ease), background 0.15s var(--tv-ease);
}
.tv-option strong { display: block; font-size: 13.5px; font-weight: 600; color: var(--tv-white); }
.tv-option small { display: block; font-size: 11.5px; color: var(--tv-muted); margin-top: 3px; }
.tv-option:hover { border-color: rgba(0, 200, 150, 0.4); }
.tv-option.active {
  border-color: var(--tv-green);
  background: rgba(0, 200, 150, 0.1);
  box-shadow: inset 0 0 0 1px var(--tv-green);
}

/* Results */
.tv-calories-hero {
  text-align: center;
  padding: clamp(24px, 4vw, 36px);
  border-radius: var(--tv-radius-card);
  border: 1px solid rgba(0, 200, 150, 0.35);
  background:
    radial-gradient(420px 200px at 50% 0%, rgba(0, 200, 150, 0.16), transparent 70%),
    linear-gradient(165deg, var(--tv-surface-2), var(--tv-surface));
  margin-bottom: 18px;
}
.tv-calories-hero .tv-cal-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--tv-mint);
}
.tv-calories-hero .tv-cal-value {
  font-family: var(--tv-font-head);
  font-weight: 800;
  font-size: clamp(46px, 7vw, 68px);
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-top: 8px;
}
.tv-calories-hero .tv-cal-value span {
  display: block;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--tv-muted);
}

.tv-macro-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 0 0 18px;
}
@media (max-width: 640px) { .tv-macro-grid { grid-template-columns: 1fr; } }
.tv-macro-card {
  border: 1px solid var(--tv-line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  padding: 18px;
}
.tv-macro-card dt {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}
.tv-macro-card dt svg { width: 16px; height: 16px; color: var(--tv-mint); }
.tv-macro-card dd {
  font-family: var(--tv-font-head);
  font-weight: 800;
  font-size: 30px;
  letter-spacing: -0.02em;
  margin: 10px 0 2px;
}
.tv-macro-card .tv-macro-sub { font-size: 12px; color: var(--tv-muted); margin-bottom: 12px; }
.tv-macro-bar { height: 6px; border-radius: 99px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.tv-macro-bar span { display: block; height: 100%; border-radius: 99px; width: 0; transition: width 0.5s var(--tv-ease); }
.tv-macro-bar.protein span { background: linear-gradient(90deg, var(--tv-green), var(--tv-mint)); }
.tv-macro-bar.carbs span { background: linear-gradient(90deg, #4f9dff, #7cc4ff); }
.tv-macro-bar.fat span { background: linear-gradient(90deg, var(--tv-orange), #ffa06b); }

.tv-metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
@media (max-width: 640px) { .tv-metric-grid { grid-template-columns: repeat(2, 1fr); } }
.tv-metric {
  border: 1px solid var(--tv-line);
  border-radius: 14px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.02);
}
.tv-metric span { display: block; font-size: 11.5px; color: var(--tv-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; }
.tv-metric b { display: block; font-family: var(--tv-font-mono); font-size: 16.5px; font-weight: 700; margin-top: 6px; color: var(--tv-white); }
.tv-metric b.tv-green { color: var(--tv-mint); }

.tv-note {
  font-size: 13px;
  color: var(--tv-muted);
  line-height: 1.65;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--tv-line);
}

/* ==========================================================================
   Blog
   ========================================================================== */
.tv-featured {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  border: 1px solid var(--tv-line);
  border-radius: 26px;
  overflow: hidden;
  background: linear-gradient(135deg, #171b32, #101321);
  transition: border-color 0.2s var(--tv-ease), transform 0.2s var(--tv-ease);
}
.tv-featured:hover { border-color: rgba(0, 200, 150, 0.35); transform: translateY(-2px); }
.tv-featured-visual {
  position: relative;
  min-height: 340px;
  background:
    radial-gradient(circle at 35% 40%, rgba(0, 229, 176, 0.22), transparent 30%),
    linear-gradient(145deg, #18283a, #0d0f1a);
  overflow: hidden;
}
.tv-featured-visual .tv-grid-art,
.tv-article-hero .tv-grid-art {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 229, 176, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 176, 0.08) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent);
  -webkit-mask-image: linear-gradient(to bottom, black, transparent);
}
.tv-featured-visual .tv-art-label,
.tv-article-hero .tv-art-label {
  position: absolute;
  left: 22px;
  bottom: 20px;
  font-family: var(--tv-font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--tv-mint);
}
.tv-featured-copy { padding: clamp(26px, 4vw, 48px); display: flex; flex-direction: column; justify-content: center; }
.tv-featured-copy h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); margin: 14px 0; }
.tv-featured-copy p { color: var(--tv-muted); font-size: 15.5px; }
@media (max-width: 860px) { .tv-featured { grid-template-columns: 1fr; } .tv-featured-visual { min-height: 220px; } }

.tv-tag {
  display: inline-flex;
  width: max-content;
  padding: 5px 11px;
  border-radius: var(--tv-radius-pill);
  background: rgba(0, 200, 150, 0.1);
  color: var(--tv-green);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}
.tv-meta { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; font-size: 12.5px; color: var(--tv-muted); margin-top: 18px; }
.tv-read-link { margin-top: 20px; color: var(--tv-mint); font-weight: 700; font-size: 14.5px; display: inline-flex; align-items: center; gap: 6px; }

.tv-article-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--tv-line);
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(165deg, var(--tv-surface-2), var(--tv-surface));
  transition: transform 0.2s var(--tv-ease), border-color 0.2s var(--tv-ease);
}
.tv-article-card:hover { transform: translateY(-3px); border-color: rgba(0, 200, 150, 0.32); }
.tv-article-art {
  height: 150px;
  position: relative;
  background:
    radial-gradient(circle at 30% 35%, rgba(0, 229, 176, 0.2), transparent 32%),
    linear-gradient(140deg, #17202f, #0e1220);
}
.tv-article-art.orange { background: radial-gradient(circle at 30% 35%, rgba(255, 107, 53, 0.18), transparent 32%), linear-gradient(140deg, #1f1826, #0e1220); }
.tv-article-art.mint { background: radial-gradient(circle at 70% 30%, rgba(0, 229, 176, 0.24), transparent 34%), linear-gradient(140deg, #122031, #0d1420); }
.tv-article-art .tv-art-label {
  position: absolute;
  left: 16px;
  bottom: 14px;
  font-family: var(--tv-font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.7);
}
.tv-article-body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.tv-article-body h3 { font-size: 17.5px; line-height: 1.3; }
.tv-article-body p { color: var(--tv-muted); font-size: 13.5px; flex: 1; }

.tv-filters { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-bottom: 30px; }
.tv-filter {
  min-height: 40px;
  padding: 0 18px;
  border-radius: var(--tv-radius-pill);
  border: 1px solid var(--tv-line-strong);
  color: var(--tv-muted);
  font-size: 13.5px;
  font-weight: 600;
  transition: all 0.16s var(--tv-ease);
}
.tv-filter:hover { color: var(--tv-white); border-color: rgba(255, 255, 255, 0.25); }
.tv-filter.active { background: rgba(0, 200, 150, 0.14); border-color: rgba(0, 200, 150, 0.4); color: var(--tv-mint); }

.tv-note strong { color: rgba(255, 255, 255, 0.9); }

.tv-articles {
  margin-top: 40px;
}
.tv-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 44px;
}
.tv-footer-brand p { color: var(--tv-muted); font-size: 14px; margin: 14px 0 16px; max-width: 300px; }
.tv-footer h4 {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 16px;
}
.tv-footer nav ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.tv-footer nav a { color: var(--tv-muted); font-size: 14px; transition: color 0.15s var(--tv-ease); }
.tv-footer nav a:hover { color: var(--tv-mint); }
.tv-footer-bottom {
  border-top: 1px solid var(--tv-line);
  padding-top: 24px;
}

/* Article page */
.tv-article-wrap { max-width: 740px; margin: 0 auto; }
.tv-article-wrap h2 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); margin: 42px 0 14px; scroll-margin-top: 120px; }
.tv-article-wrap p { color: rgba(255, 255, 255, 0.82); margin-bottom: 18px; line-height: 1.75; font-size: 16.5px; }
.tv-article-wrap ul { color: rgba(255, 255, 255, 0.82); margin: 0 0 18px 22px; line-height: 1.75; }
.tv-article-wrap li { margin-bottom: 8px; }
.tv-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--tv-muted);
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 26px;
}
.tv-breadcrumb:hover { color: var(--tv-mint); }
.tv-callout {
  border-left: 3px solid var(--tv-green);
  background: rgba(0, 200, 150, 0.07);
  border-radius: 0 14px 14px 0;
  padding: 18px 22px;
  margin: 28px 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 15.5px;
}
.tv-article-hero {
  height: clamp(240px, 40vw, 440px);
  border: 1px solid var(--tv-line);
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  background:
    radial-gradient(circle at 50% 47%, rgba(0, 229, 176, 0.18), transparent 26%),
    linear-gradient(135deg, #172738, #0d0f1a);
  margin: 34px 0 44px;
}

/* ==========================================================================
   Support categories / account-deletion states
   ========================================================================== */
.tv-support-cat {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
  text-align: left;
}
.tv-support-cat .tv-card-icon { margin-bottom: 6px; }
.tv-support-cat h3 { font-size: 16.5px; }
.tv-support-cat p { font-size: 13.5px; color: var(--tv-muted); flex: 1; }
.tv-support-cat .tv-card-link { margin-top: 6px; }

.tv-state-card {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  background: linear-gradient(165deg, var(--tv-surface-2), var(--tv-surface));
  border: 1px solid var(--tv-line);
  border-radius: 24px;
  padding: clamp(30px, 5vw, 48px);
}

/* ==========================================================================
   Legacy calculator hooks — the calculator JS toggles these exact classes
   (`.option`, `.unit-btn`, `.hidden`); keep in sync with markup/JS.
   ========================================================================== */
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
@media (max-width: 980px) { .calc-grid { grid-template-columns: 1fr; } }

.panel {
  background: linear-gradient(165deg, var(--tv-surface-2), var(--tv-surface));
  border: 1px solid var(--tv-line);
  border-radius: var(--tv-radius-card);
  padding: clamp(22px, 3.4vw, 32px);
}
.panel.results { position: sticky; top: 110px; }
@media (max-width: 980px) { .panel.results { position: static; } }
.panel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.panel-title { font-family: var(--tv-font-head); font-weight: 700; font-size: 17px; margin: 0; }

.unit-toggle {
  display: inline-flex;
  padding: 4px;
  border-radius: var(--tv-radius-pill);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--tv-line);
}
.unit-btn {
  min-height: 34px;
  padding: 0 16px;
  border-radius: var(--tv-radius-pill);
  font-size: 13px;
  font-weight: 600;
  color: var(--tv-muted);
  transition: background 0.16s var(--tv-ease), color 0.16s var(--tv-ease);
}
.unit-btn.active { background: var(--tv-green); color: var(--tv-navy); }

.form-space fieldset { border: 0; padding: 0; margin: 0 0 20px; }
.form-space legend {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 4px;
  padding: 0;
}
.form-space label {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  display: block;
  margin-bottom: 8px;
}
.input-grid { display: grid; gap: 16px; margin-bottom: 20px; }
@media (min-width: 640px) { .input-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.input-grid .full, .full { grid-column: 1 / -1; }
.imperial-height { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.input-grid input {
  width: 100%;
  min-height: 50px;
  padding: 0 16px;
  border-radius: var(--tv-radius-control);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--tv-line-strong);
  color: var(--tv-white);
  font-size: 16px;
  transition: border-color 0.16s var(--tv-ease), box-shadow 0.16s var(--tv-ease);
}
.input-grid input:focus {
  outline: none;
  border-color: var(--tv-green);
  box-shadow: 0 0 0 3px rgba(0, 200, 150, 0.16);
}
.input-grid input::-webkit-outer-spin-button,
.input-grid input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.option-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
@media (min-width: 640px) { .option-grid:not(.two) { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.option {
  min-height: 54px;
  padding: 10px 12px;
  border-radius: 13px;
  border: 1px solid var(--tv-line-strong);
  background: rgba(255, 255, 255, 0.035);
  text-align: left;
  color: var(--tv-muted);
  transition: border-color 0.15s var(--tv-ease), background 0.15s var(--tv-ease), color 0.15s var(--tv-ease);
}
.option:hover { color: var(--tv-white); border-color: rgba(0, 200, 150, 0.4); }
.option strong { display: block; font-size: 13.5px; font-weight: 600; color: var(--tv-white); }
.option small { display: block; margin-top: 3px; font-size: 11.5px; opacity: 0.75; }
.option.active {
  border-color: var(--tv-green);
  background: rgba(0, 200, 150, 0.1);
  color: var(--tv-white);
  box-shadow: inset 0 0 0 1px var(--tv-green);
}
.option.active strong { color: var(--tv-mint); }

.tv-state-icon {
  width: 62px;
  height: 62px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(0, 200, 150, 0.12);
  border: 1px solid rgba(0, 200, 150, 0.35);
  color: var(--tv-mint);
}
.tv-state-icon svg { width: 28px; height: 28px; }
.tv-state-icon.warn { background: rgba(255, 107, 53, 0.1); border-color: rgba(255, 107, 53, 0.4); color: var(--tv-orange); }
.tv-state-card h1, .tv-state-card h2 { font-size: clamp(1.6rem, 3.4vw, 2.1rem); margin-bottom: 12px; }
.tv-state-card p { color: var(--tv-muted); font-size: 15.5px; margin-bottom: 10px; }
.tv-state-card .tv-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }
.tv-state-card form { margin-top: 24px; text-align: left; }

/* CTA band */
.tv-cta-band {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: 28px;
  border: 1px solid rgba(0, 200, 150, 0.28);
  background:
    radial-gradient(600px 280px at 50% 0%, rgba(0, 200, 150, 0.13), transparent 66%),
    linear-gradient(160deg, #141a30, #10131f);
  padding: clamp(40px, 6vw, 72px) clamp(24px, 5vw, 64px);
}
.tv-cta-band h2 { margin: 14px 0 14px; }
.tv-cta-band p { color: var(--tv-muted); max-width: 520px; margin: 0 auto 28px; }

/* Screenshot strip */
.tv-shots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 1023px) { .tv-shots { grid-template-columns: repeat(2, 1fr); } }
.tv-shot {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--tv-line-strong);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s var(--tv-ease);
}
.tv-shot:hover { transform: translateY(-4px); }
.tv-shot img { width: 100%; aspect-ratio: 9 / 19; object-fit: cover; }

.tv-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--tv-muted);
  letter-spacing: 0.03em;
}
.tv-footer-disclaimer { flex-basis: 100%; font-size: 12px; color: rgba(138, 143, 168, 0.75); }
@media (max-width: 900px) {
  .tv-footer-grid { grid-template-columns: 1fr 1fr; }
  .tv-footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .tv-footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* ==========================================================================
   Reveal on scroll (respects reduced motion)
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s var(--tv-ease), transform 0.6s var(--tv-ease); }
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* Utility */
.hidden { display: none !important; }
.tv-center { text-align: center; }
.tv-mt-1 { margin-top: 10px; } .tv-mt-2 { margin-top: 20px; } .tv-mt-3 { margin-top: 32px; }


/* Results panel (legacy class hooks) */
.panel .tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tv-mint);
  margin-bottom: 14px;
}
.panel .tag .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--tv-green);
  box-shadow: 0 0 12px rgba(0, 200, 150, 0.9);
  animation: tv-status-blink 2.4s ease-in-out infinite;
}
.calories {
  font-family: var(--tv-font-head);
  font-size: clamp(44px, 5vw, 58px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 4px 0 4px;
  background: var(--tv-grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.calories span {
  margin-left: 10px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  -webkit-text-fill-color: var(--tv-muted);
  color: var(--tv-muted);
}
.macro-grid { margin-top: 26px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 520px) { .macro-grid { grid-template-columns: 1fr; } }
.macro-card { border: 1px solid var(--tv-line); background: rgba(255, 255, 255, 0.03); border-radius: 16px; padding: 16px; }
.macro-head { display: flex; align-items: center; gap: 8px; }
.macro-head svg { width: 15px; height: 15px; color: var(--tv-mint); }
.macro-card dt { font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--tv-muted); font-weight: 700; }
.macro-card dd { margin: 6px 0 0; font-family: var(--tv-font-head); font-size: 24px; font-weight: 800; letter-spacing: -0.02em; }
.macro-card p { margin: 2px 0 0; font-size: 11px; color: var(--tv-muted); }
.bar { height: 6px; border-radius: 99px; background: rgba(255, 255, 255, 0.08); margin-top: 12px; overflow: hidden; }
.bar span { display: block; height: 100%; border-radius: 99px; width: 0; transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
.bar.green span { background: linear-gradient(90deg, var(--tv-green), var(--tv-mint)); }
.bar.blue span { background: linear-gradient(90deg, #6c8eff, #a78bfa); }
.bar.orange span { background: linear-gradient(90deg, var(--tv-orange), #ffa06b); }

.details { margin-top: 26px; font-size: 14px; border-top: 1px solid var(--tv-line); }
.details > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.details > div:last-child { border-bottom: none; }
.details span { color: var(--tv-muted); }
.details b { font-weight: 600; font-family: var(--tv-font-mono); font-size: 14.5px; }
.details b.green { color: var(--tv-mint); }

.note { margin-top: 22px; font-size: 12.5px; line-height: 1.7; color: var(--tv-muted); }

/* Save-targets form (Netlify) */
.save-btn {
  width: 100%;
  margin-top: 22px;
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: var(--tv-radius-pill);
  background: var(--tv-orange);
  color: var(--tv-white);
  font-weight: 700;
  font-size: 15px;
  box-shadow: 0 10px 30px rgba(255, 107, 53, 0.28);
  transition: transform 0.18s var(--tv-ease), box-shadow 0.18s var(--tv-ease), background 0.18s var(--tv-ease);
}
.save-btn:hover { transform: translateY(-2px); background: #ff8256; box-shadow: 0 16px 40px rgba(255, 107, 53, 0.4); }
.save-btn svg { width: 16px; height: 16px; }
.save-form { margin-top: 22px; }
.save-form-inner {
  border: 1px solid rgba(0, 200, 150, 0.3);
  background: rgba(0, 200, 150, 0.05);
  border-radius: 16px;
  padding: 18px;
}
.save-form-head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.save-form-head span { font-weight: 700; font-size: 14.5px; }
.save-form-head small { color: var(--tv-mint); font-family: var(--tv-font-mono); font-size: 12px; }
.save-form-row { display: flex; gap: 10px; }
.save-form-field { position: relative; flex: 1; }
.save-form-field .save-form-icon {
  position: absolute;
  left: 14px; top: 50%;
  transform: translateY(-50%);
  color: var(--tv-muted);
  display: grid; place-items: center;
}
.save-form-field .save-form-icon svg { width: 16px; height: 16px; }
.save-form-field input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px 0 40px;
  border-radius: var(--tv-radius-control);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--tv-line-strong);
  color: var(--tv-white);
  font-size: 15px;
}
.save-form-field input:focus { outline: none; border-color: var(--tv-green); box-shadow: 0 0 0 3px rgba(0, 200, 150, 0.16); }
.save-form-row button {
  min-height: 48px;
  padding: 0 20px;
  border-radius: var(--tv-radius-pill);
  background: var(--tv-orange);
  color: var(--tv-white);
  font-weight: 700;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  box-shadow: 0 10px 28px rgba(255, 107, 53, 0.28);
  transition: background 0.18s var(--tv-ease), box-shadow 0.18s var(--tv-ease);
}
.save-form-row button:hover { background: #ff8256; box-shadow: 0 12px 34px rgba(255, 107, 53, 0.38); }
.save-form-row button svg { width: 16px; height: 16px; }
.save-form-error { display: none; margin-top: 10px; font-size: 13px; color: #ff9c9c; }
.save-form-note { margin-top: 10px; font-size: 12px; color: var(--tv-muted); display: flex; align-items: center; gap: 6px; }
.save-form-note svg { width: 12px; height: 12px; }
.save-success {
  margin-top: 22px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  border: 1px solid rgba(0, 200, 150, 0.35);
  background: rgba(0, 200, 150, 0.08);
  border-radius: 16px;
  padding: 18px;
}
.save-success.hidden { display: none; }
.save-success-icon {
  width: 36px; height: 36px; flex: none;
  border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(0, 200, 150, 0.18);
  color: var(--tv-mint);
}
.save-success-icon svg { width: 18px; height: 18px; }
.save-success strong { display: block; margin-bottom: 2px; }
.save-success p { margin: 0; font-size: 13.5px; color: var(--tv-muted); }
@media (max-width: 520px) {
  .save-form-row { flex-direction: column; }
  .save-form-row button { justify-content: center; }
}

/* ==========================================================================
   Component completion — shared chrome & layout helpers
   ========================================================================== */
.tv-skip { position: absolute; left: 16px; top: -60px; z-index: 2000; padding: 10px 18px; border-radius: var(--tv-radius-pill); background: var(--tv-green); color: var(--tv-navy); font-weight: 700; transition: top 0.2s var(--tv-ease); }
.tv-skip:focus { top: 12px; }
.tv-announce .tv-announce-cta {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 13px; border-radius: var(--tv-radius-pill);
  background: var(--tv-orange); border: 1px solid var(--tv-orange);
  color: var(--tv-white); font-size: 13px; font-weight: 700;
  transition: background 0.16s var(--tv-ease);
}
.tv-announce .tv-announce-cta:hover { background: #ff8256; }
.tv-logo-mark {
  display: inline-grid; place-items: center; width: 34px; height: 34px;
  margin-right: 10px; border-radius: 10px;
  background: var(--tv-grad); color: var(--tv-navy);
  font-family: var(--tv-font-head); font-size: 13.5px; font-weight: 800; letter-spacing: 0.02em;
}
.tv-logo-mark--img {
  width: auto;
  height: 28px;
  margin-right: 0;
  background: none;
  box-shadow: none;
}
/* logo-mark.png is cropped to the glyph, so no transparent padding pushes the wordmark away */
.tv-logo-mark--img img { width: auto; height: 28px; display: block; }
.tv-logo-text { font-family: var(--tv-font-head); font-size: 15.5px; font-weight: 800; letter-spacing: 0.14em; color: var(--tv-white); line-height: 1; }
.tv-btn--sm { min-height: 40px; padding: 0 18px; font-size: 14px; }
.tv-btn--ghost { background: rgba(255, 255, 255, 0.04); border-color: var(--tv-line-strong); color: var(--tv-white); }
.tv-btn--ghost:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.3); }
.tv-orb {
  position: absolute; top: -150px; left: -170px; width: 440px; height: 440px;
  border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(0, 200, 150, 0.15), transparent 65%);
}
.tv-orb--right { top: auto; left: auto; right: -170px; bottom: -190px; background: radial-gradient(circle, rgba(255, 107, 53, 0.1), transparent 65%); }
.tv-container--narrow { max-width: 780px; margin-inline: auto; }
.tv-container--wide { width: min(1320px, 100% - 40px); max-width: none; }
.tv-hero-trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 28px; }
.tv-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: var(--tv-radius-pill);
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--tv-line);
  color: var(--tv-muted); font-size: 13px; font-weight: 600;
}
.tv-chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--tv-green); }
.tv-section--tint { background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.004)); }
.tv-cta-copy { max-width: 640px; margin-inline: auto; }
.tv-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 24px; }
.tv-footer-col { min-width: 0; }
.tv-footer-legal {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px;
  margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--tv-line);
  font-size: 12.5px; color: rgba(138, 143, 168, 0.85);
}

/* ==========================================================================
   Macro calculator page components
   ========================================================================== */
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; font-size: 14.5px; font-weight: 700; color: rgba(255, 255, 255, 0.92); }
.chip { display: inline-flex; align-items: center; padding: 4px 11px; border-radius: var(--tv-radius-pill); background: rgba(255, 255, 255, 0.05); border: 1px solid var(--tv-line); color: var(--tv-muted); font-family: var(--tv-font-mono); font-size: 12px; font-weight: 500; }
.field-group { margin-bottom: 18px; }
.label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, 0.9); }
.sex-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sex-btn {
  display: flex; align-items: center; justify-content: center;
  min-height: 46px; border-radius: var(--tv-radius-control);
  background: rgba(255, 255, 255, 0.045); border: 1px solid var(--tv-line-strong);
  color: var(--tv-white); font-size: 14.5px; font-weight: 600;
  transition: border-color 0.16s var(--tv-ease), background 0.16s var(--tv-ease);
}
.sex-btn:hover { background: rgba(255, 255, 255, 0.07); }
.option.selected, .sex-btn.selected { border-color: rgba(0, 229, 176, 0.55); background: rgba(0, 200, 150, 0.12); color: var(--tv-mint); }
.option.selected strong { color: var(--tv-white); }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.option-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.option-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.input-wrap { position: relative; }
.input-wrap input {
  width: 100%; min-height: 50px; padding: 0 58px 0 16px;
  border-radius: var(--tv-radius-control);
  background: rgba(255, 255, 255, 0.045); border: 1px solid var(--tv-line-strong);
  color: var(--tv-white); font-size: 16px; font-family: inherit;
  transition: border-color 0.16s var(--tv-ease), background 0.16s var(--tv-ease), box-shadow 0.16s var(--tv-ease);
}
.input-wrap input::placeholder { color: rgba(138, 143, 168, 0.6); }
.input-wrap input:focus { outline: none; border-color: var(--tv-green); background: rgba(0, 200, 150, 0.05); box-shadow: 0 0 0 3px rgba(0, 200, 150, 0.16); }
.input-wrap input::-webkit-outer-spin-button, .input-wrap input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.input-wrap input[type="number"] { -moz-appearance: textfield; appearance: textfield; }
.input-unit { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: 13px; font-weight: 600; color: var(--tv-muted); pointer-events: none; }
.helper { margin-top: 10px; font-size: 13px; color: #ff9c9c; }
.calories .num { font-family: var(--tv-font-head); font-size: clamp(2.6rem, 7vw, 3.4rem); font-weight: 800; line-height: 1; letter-spacing: -0.02em; }
.label-text { display: block; margin-top: 8px; font-size: 12.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--tv-muted); }
.metric-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.metric { padding: 12px 14px; border-radius: 12px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--tv-line); }
.metric span { display: block; font-size: 11.5px; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; color: var(--tv-muted); }
.metric b { display: block; margin-top: 6px; font-family: var(--tv-font-mono); font-size: 16.5px; font-weight: 700; color: var(--tv-white); }
.macro-card .icon { display: inline-grid; place-items: center; width: 34px; height: 34px; margin-bottom: 12px; border-radius: 10px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--tv-line); }
.amount { font-family: var(--tv-font-mono); font-size: 22px; font-weight: 700; color: var(--tv-white); }
.name { margin-top: 2px; font-size: 12.5px; font-weight: 600; color: var(--tv-muted); }
.pct { margin-top: 8px; text-align: right; font-family: var(--tv-font-mono); font-size: 12px; font-weight: 600; color: var(--tv-muted); }
.detail-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--tv-line); }
.detail-row:last-child { border-bottom: 0; }
.d-label { font-size: 13.5px; color: var(--tv-muted); }
.d-value { font-family: var(--tv-font-mono); font-size: 13.5px; font-weight: 700; color: var(--tv-white); }
.save-box { margin-top: 22px; padding: 20px; border-radius: 16px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--tv-line); }
.save-box h3 { font-size: 15.5px; font-weight: 700; }
.save-box > p { margin: 6px 0 14px; font-size: 13.5px; line-height: 1.55; color: var(--tv-muted); }
.save-row { display: flex; gap: 10px; }
.save-row input[type="email"] {
  flex: 1; min-width: 0; min-height: 50px; padding: 0 20px;
  border-radius: var(--tv-radius-pill);
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--tv-line-strong);
  color: var(--tv-white); font-size: 15px; font-family: inherit;
  transition: border-color 0.16s var(--tv-ease), box-shadow 0.16s var(--tv-ease);
}
.save-row input[type="email"]::placeholder { color: rgba(138, 143, 168, 0.6); }
.save-row input[type="email"]:focus { outline: none; border-color: var(--tv-green); box-shadow: 0 0 0 3px rgba(0, 200, 150, 0.16); }
.save-row .save-btn { width: auto; flex: none; margin-top: 0; padding: 0 22px; }
.save-form-error.show { display: block; }
@media (max-width: 560px) {
  .row-2, .option-grid, .option-grid.cols-3 { grid-template-columns: 1fr; }
  .save-row { flex-direction: column; }
  .save-row .save-btn { width: 100%; }
}

.tv-hero-logo { display: block; width: min(150px, 40vw); height: auto; margin: 0 auto 16px; }

/* ==========================================================================
   Component additions — hero imagery, photo CTA bands, image cards, logo asset
   ========================================================================== */

/* Portrait hero posters stay compact under centered hero copy */
.tv-hero .tv-hero-media { max-width: 520px; }
.tv-hero .tv-hero-media img { border-radius: 26px; }

/* Photo-backed CTA bands (mood background + dark overlay, per design mockups) */
.tv-cta-band--photo {
  position: relative;
  isolation: isolate;
  border-color: rgba(255, 255, 255, 0.12);
  background: none;
}
.tv-cta-band--photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(160deg, rgba(13, 15, 26, 0.84), rgba(13, 15, 26, 0.94)),
    url("../assets/img/gym-hero.jpg") center / cover no-repeat;
}
.tv-cta-band--photo > * { position: relative; }

/* Full-bleed image card (scan-modes poster etc.) */
.tv-image-card {
  margin: 0 auto;
  max-width: 980px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--tv-line-strong);
  box-shadow: var(--tv-shadow-card);
}
.tv-image-card img { width: 100%; display: block; }

/* Split hero (copy + visual) used on Thryvo Cal landing */
.tv-hero-split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  max-width: 1160px;
  text-align: left;
}
.tv-hero-split .tv-hero-media { margin: 0; max-width: none; }
.tv-hero-split .tv-lead { margin-inline: 0; }
.tv-hero-split .tv-hero-actions,
.tv-hero-split .tv-hero-status,
.tv-hero-split .tv-hero-trust { justify-content: flex-start; }
@media (max-width: 900px) {
  .tv-hero-split { grid-template-columns: 1fr; text-align: center; }
  .tv-hero-split .tv-lead { margin-inline: auto; }
  .tv-hero-split .tv-hero-actions,
  .tv-hero-split .tv-hero-status,
  .tv-hero-split .tv-hero-trust { justify-content: center; }
}

/* ==========================================================================
   Thryvo v2 design — dark cinematic landing (per landing page design refs)
   ========================================================================== */

/* ---------- Hero v2 ---------- */
.tv-hero-v2-grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}
.tv-hero--v2 {
  padding: var(--tv-space-hero-top) 0 var(--tv-space-section);
  overflow: hidden;
}
.tv-hero--v2::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 560px at 78% 30%, rgba(0, 229, 176, 0.14), transparent 60%),
    radial-gradient(700px 480px at 12% 12%, rgba(0, 200, 150, 0.1), transparent 62%),
    radial-gradient(800px 520px at 50% 108%, rgba(255, 107, 53, 0.05), transparent 66%);
  pointer-events: none;
}
.tv-hero-copy-v2 { position: relative; z-index: 1; text-align: left; }
.tv-hero-copy-v2 h1 {
  font-size: clamp(2.6rem, 5.6vw, 4.4rem);
  margin: 18px 0 20px;
}
.tv-hero-copy-v2 h1 .tv-grad {
  background: linear-gradient(100deg, #00e5b0 10%, #7ef7d2 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.tv-hero-copy-v2 .tv-lead {
  max-width: 560px;
  color: var(--tv-muted);
  font-size: clamp(16px, 1.8vw, 18px);
}
.tv-hero-visual {
  position: relative;
  z-index: 1;
}
.tv-hero-visual img {
  width: 100%;
  border-radius: 28px;
  border: 1px solid rgba(0, 229, 176, 0.22);
  box-shadow:
    0 40px 110px rgba(0, 0, 0, 0.55),
    0 0 110px rgba(0, 229, 176, 0.14);
}
.tv-hero--v2 .tv-hero-actions { justify-content: flex-start; }
.tv-hero--v2 .tv-hero-status { justify-content: flex-start; }

/* Store badges row */
.tv-store-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 26px;
  color: var(--tv-muted);
  font-size: 12.5px;
}
.tv-store-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 16px;
  border-radius: 12px;
  border: 1px solid var(--tv-line-strong);
  background: rgba(255, 255, 255, 0.04);
  color: var(--tv-white);
  font-size: 13px;
  font-weight: 600;
}
.tv-store-badge svg { width: 17px; height: 17px; }
.tv-store-badge small {
  display: block;
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--tv-muted);
  line-height: 1.2;
}

/* ---------- Numbered feature cards (01-04) ---------- */
.tv-features-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: clamp(30px, 4vw, 48px);
}
.tv-features-head h2 { max-width: 560px; }
.tv-features-head p {
  max-width: 360px;
  color: var(--tv-muted);
  font-size: 15px;
}
.tv-feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.tv-feature-card {
  position: relative;
  border-radius: 22px;
  border: 1px solid var(--tv-line);
  background: linear-gradient(170deg, rgba(24, 28, 51, 0.85), rgba(16, 18, 32, 0.95));
  padding: 26px 22px;
  overflow: hidden;
  transition: transform 0.25s var(--tv-ease), border-color 0.25s var(--tv-ease), box-shadow 0.25s var(--tv-ease);
}
.tv-feature-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 229, 176, 0.4);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.45), 0 0 60px rgba(0, 229, 176, 0.07);
}
.tv-feature-num {
  font-family: var(--tv-font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--tv-mint);
}
.tv-feature-card h3 {
  margin: 10px 0 4px;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.tv-feature-card > p {
  color: var(--tv-muted);
  font-size: 13.5px;
  margin-bottom: 18px;
}
.tv-feature-visual {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--tv-line);
  aspect-ratio: 4 / 3;
  background: rgba(255, 255, 255, 0.02);
}
.tv-feature-visual img { width: 100%; height: 100%; object-fit: cover; }
.tv-feature-stat {
  position: absolute;
  right: 16px;
  bottom: 60px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(10, 12, 22, 0.82);
  border: 1px solid rgba(0, 229, 176, 0.35);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.tv-feature-stat b { display: block; font-size: 20px; color: var(--tv-mint); font-family: var(--tv-font-head); }
.tv-feature-stat span { font-size: 10.5px; color: var(--tv-muted); letter-spacing: 0.06em; text-transform: uppercase; }

/* Mini habit list (feature card 04) */
.tv-habit-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.tv-habit-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--tv-line);
  font-size: 13px;
  font-weight: 600;
}
.tv-habit-list .habit-check {
  width: 18px; height: 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: none;
  background: rgba(0, 200, 150, 0.2);
  color: var(--tv-mint);
}
.tv-habit-list .habit-check svg { width: 10px; height: 10px; }
.tv-habit-list .habit-check.todo { background: rgba(255, 255, 255, 0.08); color: transparent; border: 1px dashed var(--tv-line-strong); }

/* ---------- Split feature rows (posture / food scan) ---------- */
.tv-feature-row {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
  margin: 0;
}
.tv-feature-row + .tv-feature-row { margin-top: clamp(48px, 6vw, 80px); }
.tv-feature-row--flip { grid-template-columns: 0.92fr 1.08fr; }
.tv-feature-row-media {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid var(--tv-line-strong);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.5);
}
.tv-feature-row-media img { width: 100%; display: block; }
.tv-feature-row-copy h2 { margin-bottom: 14px; }
.tv-feature-row-copy > p { color: var(--tv-muted); max-width: 480px; }
.tv-feature-row-copy .tv-eyebrow { margin-bottom: 12px; }

/* Floating score chips over media */
.tv-float-chip {
  position: absolute;
  padding: 10px 16px;
  border-radius: 13px;
  background: rgba(10, 12, 22, 0.85);
  border: 1px solid rgba(0, 229, 176, 0.4);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
}
.tv-float-chip b { display: block; font-family: var(--tv-font-head); font-size: 21px; color: var(--tv-mint); line-height: 1.1; }
.tv-float-chip span { font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--tv-muted); }
.tv-float-chip--score { left: 22px; top: 22px; }
.tv-float-chip--angle { right: 22px; bottom: 22px; }

/* Metric trio card (FORM SCORE / ALIGNMENT / DEPTH) */
.tv-metric-trio {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: start;
  gap: clamp(18px, 3vw, 40px);
  margin-top: 26px;
  padding: 20px 26px;
  border-radius: 18px;
  border: 1px solid var(--tv-line);
  background: linear-gradient(170deg, rgba(24, 28, 51, 0.7), rgba(16, 18, 32, 0.85));
}
.tv-metric-trio span { display: block; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--tv-muted); margin-bottom: 5px; }
.tv-metric-trio b { font-family: var(--tv-font-head); font-size: 21px; color: var(--tv-white); }
.tv-metric-trio .good { color: var(--tv-mint); }

/* Macro result card (620 kcal / 42P 68C 18F) */
.tv-macro-result {
  margin-top: 26px;
  padding: 22px 26px;
  border-radius: 18px;
  border: 1px solid rgba(0, 229, 176, 0.28);
  background: linear-gradient(170deg, rgba(24, 28, 51, 0.7), rgba(16, 18, 32, 0.85));
}
.tv-macro-result .big {
  font-family: var(--tv-font-head);
  font-size: clamp(30px, 3.4vw, 40px);
  font-weight: 800;
  background: linear-gradient(100deg, #ffffff 30%, #00e5b0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.tv-macro-result .big small { font-size: 14px; font-weight: 600; color: var(--tv-muted); -webkit-text-fill-color: var(--tv-muted); margin-left: 6px; }
.tv-macro-result .macros { display: flex; gap: clamp(16px, 2.4vw, 32px); margin-top: 12px; flex-wrap: wrap; }
.tv-macro-result .macros b { font-family: var(--tv-font-mono); font-size: 15px; color: var(--tv-white); }
.tv-macro-result .macros span { font-size: 11.5px; color: var(--tv-muted); margin-left: 4px; }

/* ---------- Journey timeline ---------- */
.tv-journey {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--tv-line-strong);
  padding: clamp(36px, 5vw, 60px) clamp(24px, 5vw, 64px) clamp(48px, 6vw, 72px);
  isolation: isolate;
}
.tv-journey::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(13, 15, 26, 0.55), rgba(13, 15, 26, 0.9)),
    url("../img/journey-bg.jpg") center / cover no-repeat;
}
.tv-journey-copy { max-width: 420px; }
.tv-journey-copy h2 { margin-bottom: 12px; }
.tv-journey-copy p { color: rgba(255, 255, 255, 0.75); }
.tv-journey-track {
  position: relative;
  margin-top: clamp(36px, 5vw, 64px);
  height: 110px;
}
.tv-journey-line {
  position: absolute;
  left: 0;
  right: 0;
  top: 46px;
  height: 2px;
  background: linear-gradient(90deg, rgba(0, 229, 176, 0.25), rgba(0, 229, 176, 0.9));
}
.tv-journey-stop {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  text-align: center;
  width: 130px;
}
.tv-journey-stop .dot {
  width: 14px;
  height: 14px;
  margin: 39px auto 0;
  border-radius: 50%;
  background: var(--tv-mint);
  box-shadow: 0 0 0 5px rgba(0, 229, 176, 0.18), 0 0 18px rgba(0, 229, 176, 0.7);
}
.tv-journey-stop .kg { font-family: var(--tv-font-head); font-weight: 800; font-size: 17px; }
.tv-journey-stop .when { display: block; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--tv-muted); margin-bottom: 2px; }
.tv-journey-stop--target .dot { background: var(--tv-orange); box-shadow: 0 0 0 5px rgba(255, 107, 53, 0.2), 0 0 18px rgba(255, 107, 53, 0.7); }
.tv-journey-stop--target .kg { color: var(--tv-orange); }

/* ---------- Dashboard showcase ---------- */
.tv-dashboard {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(28px, 4vw, 60px);
  align-items: center;
}
.tv-dashboard-media {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(0, 229, 176, 0.25);
  box-shadow: 0 40px 110px rgba(0, 0, 0, 0.55), 0 0 90px rgba(0, 229, 176, 0.1);
}
.tv-dashboard-media img { width: 100%; display: block; }

/* ---------- Social proof stats band ---------- */
.tv-proof {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  padding: clamp(28px, 4vw, 44px) clamp(24px, 4vw, 48px);
  border-radius: 24px;
  border: 1px solid var(--tv-line);
  background: linear-gradient(170deg, rgba(24, 28, 51, 0.65), rgba(16, 18, 32, 0.9));
}
.tv-proof-num { font-family: var(--tv-font-head); font-size: clamp(38px, 5vw, 54px); font-weight: 800; color: var(--tv-mint); line-height: 1; }
.tv-proof-label { color: var(--tv-muted); font-size: 14px; margin-top: 8px; }
.tv-proof-quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tv-quote-card { padding: 16px; border-radius: 14px; border: 1px solid var(--tv-line); background: rgba(255, 255, 255, 0.03); }
.tv-quote-card p { font-size: 12.5px; line-height: 1.55; color: rgba(255, 255, 255, 0.85); }
.tv-quote-card footer { margin-top: 10px; font-size: 11.5px; color: var(--tv-muted); }

/* ---------- Final CTA ---------- */
.tv-final-cta {
  position: relative;
  text-align: center;
  padding: clamp(56px, 7vw, 88px) 20px;
  isolation: isolate;
  overflow: hidden;
}
.tv-final-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(13, 15, 26, 0.72), rgba(13, 15, 26, 0.94)),
    url("../img/cta-bg.jpg") center / cover no-repeat;
}
.tv-final-cta::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -2px;
  transform: translateX(-50%);
  width: min(760px, 90%);
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(0, 229, 176, 0.8), transparent);
  filter: blur(1px);
}
.tv-final-cta h2 { max-width: 640px; margin: 0 auto 12px; }
.tv-final-cta > p { color: rgba(255, 255, 255, 0.78); max-width: 460px; margin: 0 auto 28px; }

/* ---------- Phone screenshots strip ---------- */
.tv-phone-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  align-items: end;
}
.tv-phone-strip .tv-shot:nth-child(even) { transform: translateY(18px); }
.tv-phone-strip .tv-shot:nth-child(odd) { transform: translateY(-8px); }

/* ---------- Responsive ---------- */
@media (max-width: 1120px) {
  .tv-feature-grid { grid-template-columns: repeat(2, 1fr); }
  .tv-phone-strip { grid-template-columns: repeat(3, 1fr); }
  .tv-phone-strip .tv-shot:nth-child(n+4) { display: none; }
}
@media (max-width: 980px) {
  .tv-hero-v2-grid { grid-template-columns: 1fr !important; }
  .tv-hero-copy-v2 { text-align: center; }
  .tv-hero-copy-v2 .tv-lead { margin-inline: auto; }
  .tv-hero--v2 .tv-hero-actions,
  .tv-hero--v2 .tv-hero-status { justify-content: center; }
  .tv-hero-visual { max-width: 620px; margin: 0 auto; }
  .tv-feature-row, .tv-feature-row--flip { grid-template-columns: 1fr; }
  .tv-feature-row--flip .tv-feature-row-media { order: -1; }
  .tv-dashboard { grid-template-columns: 1fr; }
  .tv-dashboard-media { max-width: 640px; margin: 0 auto; }
  .tv-proof { grid-template-columns: 1fr; text-align: center; }
  .tv-proof-quotes { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .tv-journey-track { height: auto; }
  .tv-journey-line, .tv-journey-stop { display: none; }
  .tv-journey-stops-mobile { display: flex !important; }
}
@media (max-width: 640px) {
  .tv-feature-grid { grid-template-columns: 1fr; }
  .tv-phone-strip { grid-template-columns: repeat(2, 1fr); }
  .tv-phone-strip .tv-shot:nth-child(n+3) { display: none; }
  .tv-metric-trio { grid-template-columns: 1fr; gap: 14px; }
  .tv-store-row { justify-content: center; }
}

/* Mobile journey stops (stacked) */
.tv-journey-stops-mobile { display: none; flex-direction: column; gap: 14px; margin-top: 30px; }
.tv-journey-stops-mobile .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 16px;
  border-radius: 13px;
  border: 1px solid var(--tv-line);
  background: rgba(10, 12, 22, 0.6);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.tv-journey-stops-mobile .when { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--tv-muted); }
.tv-journey-stops-mobile .kg { font-family: var(--tv-font-head); font-weight: 800; }
.tv-journey-stops-mobile .target .kg { color: var(--tv-orange); }

/* ==========================================================================
   PREMIUM INTERACTIONS — hover states, micro-elevations, tactile feedback
   Pure CSS. Motion is fully neutralized for prefers-reduced-motion users.
   ========================================================================== */

/* Motion safety: respect users who disable animation */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Buttons: springy lift on hover, tactile press, clear focus ring */
.tv-btn {
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.22s ease,
    background-color 0.22s ease, border-color 0.22s ease, color 0.22s ease;
}
.tv-btn:hover { transform: translateY(-2px); }
.tv-btn:active { transform: translateY(0) scale(0.98); transition-duration: 0.08s; }
.tv-btn:focus-visible { outline: 2px solid var(--tv-mint); outline-offset: 3px; }
.tv-btn-primary:hover { box-shadow: 0 14px 34px rgba(0, 200, 150, 0.35), 0 4px 12px rgba(0, 0, 0, 0.3); }
.tv-btn--ghost:hover {
  border-color: var(--tv-green);
  color: var(--tv-mint);
  background: rgba(0, 200, 150, 0.08);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.25);
}

/* Primary nav: animated underline sweep on hover */
.tv-navpill a { position: relative; transition: color 0.2s ease; }
.tv-navpill a::after {
  content: "";
  position: absolute;
  left: 50%;
  right: 50%;
  bottom: -4px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--tv-green), var(--tv-mint));
  opacity: 0;
  transition: left 0.25s ease, right 0.25s ease, opacity 0.2s ease;
}
.tv-navpill a:hover::after { left: 8px; right: 8px; opacity: 1; }

/* Footer links: gentle nudge */
.tv-footer nav a {
  display: inline-block;
  transition: color 0.2s ease, transform 0.2s ease;
}
.tv-footer nav a:hover { color: var(--tv-mint); transform: translateX(3px); }

/* Logo + announcement CTA */
.tv-logo { transition: opacity 0.2s ease; }
.tv-logo:hover { opacity: 0.85; }
.tv-announce-cta { transition: transform 0.2s ease, box-shadow 0.2s ease; }
.tv-announce-cta:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(0, 200, 150, 0.3); }

/* FAQ: hover tint + smooth chevron rotation */
.tv-faq-q { transition: color 0.2s ease; }
.tv-faq-q:hover { color: var(--tv-mint); }
.tv-faq-chevron { transition: transform 0.3s ease; }
.tv-faq-item.open .tv-faq-chevron { transform: rotate(180deg); }

/* Form inputs: glow ring on focus */
.tv-input { transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.tv-input:focus {
  border-color: var(--tv-green);
  box-shadow: 0 0 0 3px rgba(0, 200, 150, 0.18);
}

/* Screenshot frames: straighten + zoom on hover */
.tvc-hero-media { transition: transform 0.4s ease, box-shadow 0.4s ease; }
.tvc-hero-media:hover {
  transform: rotate(0deg) scale(1.01);
  box-shadow: 0 40px 110px rgba(0, 0, 0, 0.55), 0 0 130px rgba(0, 200, 150, 0.3);
}
.tv-shot img,
.tvc-rail figure img { transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease; }
.tv-shot:hover img { transform: translateY(-6px) scale(1.02); box-shadow: 0 22px 54px rgba(0, 0, 0, 0.4); }
.tvc-rail figure:hover img { transform: translateY(-6px); border-color: rgba(0, 200, 150, 0.5); }

/* CTA band: lift + border light on hover */
.tv-cta-band { transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease; }
.tv-cta-band:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 229, 176, 0.35);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

/* ==========================================================================
   Unified Footer Enhancements
   ========================================================================== */
.tv-footer-socials {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.tv-footer-socials a {
  color: var(--tv-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--tv-line);
  transition: all 0.2s ease;
}
.tv-footer-socials a:hover {
  color: var(--tv-mint);
  border-color: rgba(0, 229, 176, 0.4);
  background: rgba(0, 229, 176, 0.1);
  transform: translateY(-2px);
}
.tv-footer-tagline {
  color: rgba(255, 255, 255, 0.75);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.02em;
}

/* ==========================================================================
   Premium Interactive Macro Calculator
   ========================================================================== */
.calc-premium-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  gap: clamp(24px, 4vw, 40px);
  align-items: start;
  margin-top: 24px;
}
@media (max-width: 980px) {
  .calc-premium-grid {
    grid-template-columns: 1fr;
  }
}

.calc-panel {
  background: linear-gradient(170deg, rgba(20, 25, 48, 0.95), rgba(13, 16, 28, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: clamp(20px, 3.5vw, 36px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
}

.calc-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(0, 229, 176, 0.6), transparent);
  pointer-events: none;
}

.calc-panel-sticky {
  position: sticky;
  top: 96px;
  z-index: 10;
}
@media (max-width: 980px) {
  .calc-panel-sticky {
    position: static;
  }
}

.calc-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tv-mint);
  margin-bottom: 8px;
}

.calc-panel-title {
  font-size: clamp(20px, 2.4vw, 24px);
  font-weight: 700;
  color: #fff;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Units Pill Toggle */
.calc-unit-pill {
  display: inline-flex;
  padding: 4px;
  background: rgba(13, 15, 26, 0.85);
  border: 1px solid var(--tv-line);
  border-radius: 999px;
  gap: 4px;
}
.calc-unit-btn {
  border: none;
  background: transparent;
  color: var(--tv-muted);
  font-size: 13px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.calc-unit-btn.active {
  background: var(--tv-mint);
  color: #070a12;
  box-shadow: 0 4px 14px rgba(0, 229, 176, 0.35);
}

/* Form Group & Slider Controls */
.calc-group {
  margin-bottom: 22px;
}
.calc-group-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.calc-group-label {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}
.calc-group-sublabel {
  font-size: 12px;
  color: var(--tv-muted);
  font-weight: 500;
}
.calc-val-badge {
  font-family: var(--tv-font-mono);
  font-size: 16px;
  font-weight: 700;
  color: var(--tv-mint);
  background: rgba(0, 229, 176, 0.1);
  border: 1px solid rgba(0, 229, 176, 0.25);
  padding: 4px 12px;
  border-radius: 8px;
  min-width: 70px;
  text-align: center;
}

.calc-slider-box {
  display: flex;
  align-items: center;
  gap: 16px;
}
.calc-range {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  outline: none;
  cursor: pointer;
}
.calc-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--tv-mint);
  cursor: pointer;
  box-shadow: 0 0 14px rgba(0, 229, 176, 0.8), 0 2px 6px rgba(0, 0, 0, 0.5);
  border: 2px solid #fff;
  transition: transform 0.15s ease;
}
.calc-range::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}
.calc-range::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--tv-mint);
  cursor: pointer;
  box-shadow: 0 0 14px rgba(0, 229, 176, 0.8), 0 2px 6px rgba(0, 0, 0, 0.5);
  border: 2px solid #fff;
  transition: transform 0.15s ease;
}

/* Sex Selector Cards */
.calc-cards-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.calc-cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
@media (max-width: 600px) {
  .calc-cards-3 {
    grid-template-columns: 1fr;
  }
}

.calc-choice-card {
  background: rgba(14, 18, 34, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 14px 16px;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--tv-muted);
  width: 100%;
  position: relative;
}
.calc-choice-card:hover {
  border-color: rgba(0, 229, 176, 0.35);
  background: rgba(18, 23, 44, 0.85);
  color: #fff;
}
.calc-choice-card.selected {
  border-color: var(--tv-mint);
  background: linear-gradient(145deg, rgba(0, 229, 176, 0.12), rgba(18, 23, 44, 0.95));
  box-shadow: 0 6px 20px rgba(0, 229, 176, 0.15);
  color: #fff;
}
.calc-choice-title {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 2px;
}
.calc-choice-desc {
  display: block;
  font-size: 12px;
  color: var(--tv-muted);
  line-height: 1.35;
}
.calc-choice-card.selected .calc-choice-desc {
  color: rgba(255, 255, 255, 0.8);
}
.calc-choice-card.selected .calc-choice-title {
  color: var(--tv-mint);
}

/* Activity Selector List */
.calc-activity-list {
  display: grid;
  gap: 9px;
}
.calc-act-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: rgba(14, 18, 34, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 11px 16px;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
}
.calc-act-btn:hover {
  border-color: rgba(0, 229, 176, 0.35);
  background: rgba(18, 23, 44, 0.85);
}
.calc-act-btn.selected {
  border-color: var(--tv-mint);
  background: linear-gradient(135deg, rgba(0, 229, 176, 0.12), rgba(18, 23, 44, 0.95));
  box-shadow: 0 4px 16px rgba(0, 229, 176, 0.14);
}
.calc-act-main {
  display: flex;
  align-items: center;
  gap: 12px;
}
.calc-act-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  display: grid;
  place-items: center;
  font-size: 16px;
  flex-shrink: 0;
}
.calc-act-btn.selected .calc-act-icon {
  background: rgba(0, 229, 176, 0.2);
  color: var(--tv-mint);
}
.calc-act-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #fff;
  display: block;
}
.calc-act-desc {
  font-size: 12px;
  color: var(--tv-muted);
  display: block;
}
.calc-act-multiplier {
  font-family: var(--tv-font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--tv-muted);
  background: rgba(255, 255, 255, 0.04);
  padding: 3px 8px;
  border-radius: 6px;
  flex-shrink: 0;
}
.calc-act-btn.selected .calc-act-multiplier {
  color: var(--tv-mint);
  background: rgba(0, 229, 176, 0.15);
}

/* Results Hero Card */
.calc-result-hero {
  background: radial-gradient(circle at 50% 0%, rgba(0, 229, 176, 0.18), transparent 70%),
              linear-gradient(160deg, #13182e, #0c0f1c);
  border: 1px solid rgba(0, 229, 176, 0.35);
  border-radius: 20px;
  padding: 24px;
  text-align: center;
  margin-bottom: 20px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4), 0 0 40px rgba(0, 229, 176, 0.1);
  position: relative;
}
.calc-result-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 229, 176, 0.14);
  border: 1px solid rgba(0, 229, 176, 0.3);
  color: var(--tv-mint);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.calc-result-cals {
  font-family: var(--tv-font-head);
  font-size: clamp(42px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1;
  background: linear-gradient(100deg, #fff 40%, var(--tv-mint));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 4px;
}
.calc-result-unit {
  font-size: 14px;
  font-weight: 600;
  color: var(--tv-muted);
}
.calc-result-subtitle {
  font-size: 13px;
  color: #fff;
  margin-top: 10px;
  font-weight: 500;
}

/* Macro Breakdown Cards */
.calc-macro-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
@media (max-width: 480px) {
  .calc-macro-row {
    grid-template-columns: 1fr;
  }
}

.calc-macro-box {
  background: rgba(14, 18, 34, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 16px 14px;
  text-align: center;
  transition: transform 0.2s ease, border-color 0.2s ease;
  position: relative;
  overflow: hidden;
}
.calc-macro-box:hover {
  transform: translateY(-2px);
}
.calc-macro-box--protein {
  border-color: rgba(0, 229, 176, 0.3);
}
.calc-macro-box--protein::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: #00E5B0;
}
.calc-macro-box--carbs {
  border-color: rgba(79, 157, 255, 0.3);
}
.calc-macro-box--carbs::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: #4F9DFF;
}
.calc-macro-box--fat {
  border-color: rgba(255, 160, 107, 0.3);
}
.calc-macro-box--fat::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: #FFA06B;
}

.calc-macro-name {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--tv-muted);
  margin-bottom: 4px;
}
.calc-macro-box--protein .calc-macro-name { color: #00E5B0; }
.calc-macro-box--carbs .calc-macro-name { color: #4F9DFF; }
.calc-macro-box--fat .calc-macro-name { color: #FFA06B; }

.calc-macro-grams {
  font-family: var(--tv-font-mono);
  font-size: clamp(22px, 2.5vw, 26px);
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 2px;
}
.calc-macro-sub {
  font-size: 11px;
  color: var(--tv-muted);
  font-weight: 500;
}
.calc-macro-pct {
  display: inline-block;
  margin-top: 6px;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

/* Secondary Metrics Bar */
.calc-vitals-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  background: rgba(14, 18, 34, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 12px 10px;
  margin-bottom: 20px;
}
@media (max-width: 580px) {
  .calc-vitals-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}
.calc-vital-col {
  text-align: center;
}
.calc-vital-label {
  display: block;
  font-size: 11px;
  color: var(--tv-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}
.calc-vital-val {
  display: block;
  font-family: var(--tv-font-mono);
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

/* Conversion Action Hub */
.calc-convert-box {
  background: linear-gradient(135deg, rgba(0, 229, 176, 0.1), rgba(18, 23, 44, 0.9));
  border: 1px solid rgba(0, 229, 176, 0.35);
  border-radius: 16px;
  padding: 20px;
  margin-top: 18px;
  text-align: left;
}
.calc-convert-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.calc-convert-head svg {
  color: var(--tv-mint);
  flex-shrink: 0;
}
.calc-convert-head h4 {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin: 0;
}
.calc-convert-p {
  font-size: 13px;
  color: var(--tv-muted);
  line-height: 1.5;
  margin-bottom: 16px;
}
.calc-convert-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.calc-btn-row {
  display: flex;
  gap: 10px;
}
@media (max-width: 480px) {
  .calc-btn-row {
    flex-direction: column;
  }
}
.calc-copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}
.calc-copy-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
}

/* Toast Notification */
.tv-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: rgba(14, 18, 34, 0.95);
  border: 1px solid var(--tv-mint);
  color: #fff;
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 229, 176, 0.3);
  z-index: 9999;
  transform: translateY(100px);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  pointer-events: none;
}
.tv-toast.visible {
  transform: translateY(0);
  opacity: 1;
}

/* Reading Progress Bar & TOC Styles */
#tvProgressBar, .tv-reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3.5px;
  width: 0%;
  background: linear-gradient(90deg, var(--tv-green), var(--tv-mint), #4F9DFF);
  z-index: 99999;
  box-shadow: 0 0 14px rgba(0, 229, 176, 0.6);
  pointer-events: none;
  transition: width 0.08s linear;
}

.legal-article-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 780px);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
  margin-top: clamp(36px, 5vw, 56px);
}
@media (max-width: 900px) {
  .legal-article-layout {
    grid-template-columns: 1fr;
  }
  .legal-sidebar {
    display: none;
  }
}

.legal-sidebar {
  position: sticky;
  top: 96px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  scrollbar-width: thin;
  padding-right: 12px;
}
.legal-toc-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tv-muted);
  margin-bottom: 14px;
}
.legal-toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-left: 1px solid var(--tv-line);
}
.legal-toc-list a {
  display: block;
  padding: 6px 0 6px 16px;
  font-size: 13px;
  color: var(--tv-muted);
  line-height: 1.4;
  border-left: 2px solid transparent;
  margin-left: -1px;
  transition: all 0.15s ease;
}
.legal-toc-list a:hover {
  color: #fff;
}
.legal-toc-list a.active {
  color: var(--tv-mint);
  border-left-color: var(--tv-mint);
  font-weight: 700;
}

.legal-share-bar {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--tv-line);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.legal-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--tv-line);
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.legal-share-btn:hover {
  background: rgba(0, 229, 176, 0.1);
  border-color: rgba(0, 229, 176, 0.35);
  color: var(--tv-mint);
}


/* ==========================================================================
   Google Play closed testing — store badge link + join steps
   ========================================================================== */
a.tv-store-badge { transition: border-color 0.18s var(--tv-ease), background 0.18s var(--tv-ease), transform 0.18s var(--tv-ease); }
a.tv-store-badge:hover { border-color: rgba(0, 229, 176, 0.5); background: rgba(0, 229, 176, 0.08); }
.tv-store-badge--live { border-color: rgba(0, 229, 176, 0.45); background: rgba(0, 229, 176, 0.07); }
.tv-store-badge--live small { color: var(--tv-mint); }

.tv-test-steps {
  list-style: none;
  padding: 0;
  margin: 0 auto 28px;
  max-width: 560px;
  display: grid;
  gap: 12px;
  text-align: left;
  counter-reset: tv-test-step;
}
.tv-test-steps li {
  position: relative;
  padding: 14px 16px 14px 56px;
  border-radius: 14px;
  border: 1px solid var(--tv-line);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.86);
  font-size: 14.5px;
  line-height: 1.5;
  counter-increment: tv-test-step;
}
.tv-test-steps li::before {
  content: counter(tv-test-step);
  position: absolute;
  left: 16px;
  top: 13px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 800;
  color: var(--tv-mint);
  background: rgba(0, 229, 176, 0.12);
  border: 1px solid rgba(0, 229, 176, 0.4);
}
.tv-test-steps strong { color: var(--tv-white); }

/* ==========================================================================
   Responsive hardening — prevent horizontal overflow on small screens
   ========================================================================== */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  /* in-page anchors (#join-testers etc.) land below the fixed header */
  scroll-padding-top: calc(var(--tv-header-offset) + var(--tv-header-height) + 20px);
}

/* Grid/flex children must be allowed to shrink below their content width */
.calc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 980px) { .calc-grid { grid-template-columns: minmax(0, 1fr); } }
.panel, .tv-footer-grid > *, .tv-hero-copy-v2, .tv-feature-row-copy, .tv-dashboard > * { min-width: 0; }
.form-space fieldset { min-width: 0; }
.tv-hero-v2-grid > *, .tv-feature-row > *, .tv-proof > * { min-width: 0; }

/* Long words / URLs never push the layout wider than the screen */
h1, h2, h3, h4, p, li, td, th, blockquote, figcaption { overflow-wrap: break-word; }
table { max-width: 100%; }

@media (max-width: 480px) {
  .tv-free-pill { white-space: normal; letter-spacing: 0.08em; line-height: 1.4; }
  .tv-btn { white-space: normal; text-align: center; line-height: 1.25; padding-block: 12px; }
  .tv-hero-actions .tv-btn, .tv-cta-actions .tv-btn { width: 100%; }
  .tv-store-row { gap: 10px; }
  .tv-store-badge { flex: 1 1 140px; justify-content: center; }
  .tv-announce { padding-right: 40px; }
  .tv-announce-inner { gap: 8px; font-size: 13px; }
  .tv-section-head p { font-size: 16px; }
}

/* Touch devices: never leave cards stuck in a hover-lifted state */
@media (hover: none) {
  .tv-card:hover, .tvc-glass:hover { transform: none; }
}

/* ==========================================================================
   Mobile/tablet header + menu — menu is pinned under the header so it opens
   in view at any scroll position; header gets a backdrop once scrolled so the
   logo never sits on top of page content.
   ========================================================================== */
@media (max-width: 1023px) {
  .tv-header::before {
    content: "";
    position: absolute;
    inset: calc(-1 * var(--tv-header-offset)) 0 -10px;
    background: rgba(13, 15, 26, 0.82);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--tv-line);
    opacity: 0;
    transition: opacity 0.25s var(--tv-ease);
    pointer-events: none;
    z-index: -1;
  }
  .tv-header.scrolled::before,
  body.tv-menu-locked .tv-header::before { opacity: 1; }
  .tv-mobile-menu {
    position: fixed;
    top: calc(var(--tv-header-offset) + var(--tv-header-height) + 14px);
    left: 0;
    right: 0;
    z-index: 999;
    max-height: calc(100vh - var(--tv-header-offset) - var(--tv-header-height) - 30px);
    max-height: calc(100dvh - var(--tv-header-offset) - var(--tv-header-height) - 30px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
}
@media (max-width: 640px) {
  :root { --tv-header-offset: 12px; }
}

/* Tablet: hero is centered below 980px, so the store badges must be too */
@media (max-width: 980px) {
  .tv-hero--v2 .tv-store-row { justify-content: center; }
}

/* ==========================================================================
   Homepage hero — closed-testing signup + Google Play badge
   ========================================================================== */
.tv-hero-signup {
  margin-top: 28px;
  max-width: 540px;
  padding: 18px;
  border-radius: var(--tv-radius-card);
  border: 1px solid rgba(0, 229, 176, 0.22);
  background: linear-gradient(160deg, rgba(24, 28, 51, 0.82), rgba(19, 22, 42, 0.7));
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.tv-hero-signup-title { margin: 0 0 12px; font-size: 13.5px; font-weight: 700; color: var(--tv-mint); }
.tv-hero-signup-title .tv-status-dot { display: inline-flex; align-items: center; gap: 8px; }
.tv-hero-signup-title .tv-status-dot::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--tv-green); box-shadow: 0 0 12px rgba(0, 200, 150, 0.9);
}
.tv-hero-signup .tv-capture { max-width: none; margin: 0; }
.tv-hero-signup .tv-form-success, .tv-hero-signup .tv-form-error-banner { margin-top: 4px; }
.tv-hero-signup .tv-hint { margin-top: 10px; }
.tv-hero-signup .tv-hint a { color: var(--tv-mint); font-weight: 600; }
.tv-hero-signup .tv-hint a:hover { text-decoration: underline; text-underline-offset: 3px; }
.tv-hero--v2 .tv-store-row { margin-top: 18px; }
.tv-hero--v2 .tv-hero-status { margin-top: 16px; }
@media (max-width: 980px) {
  .tv-hero-signup { margin-inline: auto; text-align: left; }
}

/* Google Play badge: dark badge + multi-colour Play mark (aspect ratio locked) */
.tv-store-badge--play { background: #000; border-color: rgba(255, 255, 255, 0.32); }
.tv-store-badge--play:hover { border-color: rgba(255, 255, 255, 0.6); background: #0b0b0b; }
.tv-store-badge .tv-play-logo { width: 20px; height: 20px; flex: none; }
.tv-store-badge--play span { font-size: 15px; font-weight: 600; letter-spacing: 0.01em; }
.tv-store-badge--play small { color: rgba(255, 255, 255, 0.78); }

/* ==========================================================================
   Image sizing — media never outgrows its component
   ========================================================================== */
.tv-hero-visual { max-width: 520px; justify-self: end; width: 100%; }
.tv-feature-row-media { max-width: 480px; width: 100%; justify-self: center; }
.tv-dashboard-media { max-width: 560px; width: 100%; justify-self: end; }
.tv-feature-row-media img, .tv-dashboard-media img, .tv-hero-visual img {
  aspect-ratio: 1 / 1; height: auto; object-fit: cover;
}
@media (max-width: 980px) {
  .tv-hero-visual { max-width: 460px; justify-self: center; }
  .tv-feature-row-media { max-width: 440px; margin-inline: auto; }
  .tv-dashboard-media { max-width: 480px; justify-self: center; }
}
.tv-shot img, .tvc-rail img { aspect-ratio: 674 / 1200; object-fit: cover; }
