/* ==========================================================================
   TextRad Hero V3 — production styles
   Restyled from the Claude Design "TextRad Hero" handoff (2026-06).

   Single-column "first-view" layout over the existing cinematic video.
   The hero is THEME-AWARE: it follows the site's global `body.light-mode`.
     - Dark mode  → BLUE accent  (#60a5fa), white text, dark left scrim.
     - Light mode → GREEN accent (#059669), dark text, light left scrim.
   The primary CTA stays blue (#2563eb) in both modes.

   All selectors are scoped under `.hero.v3`. Colors flow through CSS custom
   properties (--trv3-*) so the dark/light swap happens by overriding tokens on
   `body.light-mode .hero.v3` rather than per-element !important overrides.
   ========================================================================== */

.hero.v3 {
  /* ---- static tokens ---- */
  --trv3-radius-lg:         0.75rem;
  --trv3-radius-xl:         0.875rem;
  --trv3-radius-2xl:        1.125rem;
  --trv3-radius-pill:       9999px;

  --trv3-ease:              cubic-bezier(0.4, 0, 0.2, 1);
  --trv3-ease-out-soft:     cubic-bezier(0.22, 1, 0.36, 1);
  --trv3-dur-base:          300ms;

  --trv3-warning:           #f59e0b;
  --trv3-font-sans:         'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* ---- DARK-MODE THEME TOKENS (default) ---- */
  --accent:           #60a5fa;                 /* blue */
  --accent-2:         #3b82f6;
  --accent-glow:      rgba(96,165,250,0.45);
  --cta-bg:           rgba(37, 99, 235, 0.75); /* translucent blue */
  --cta-glow:         rgba(37, 99, 235, 0.34);

  --hf:               #ffffff;                 /* headline / strong */
  --hf-body:          rgba(241,245,249,0.92);  /* body copy */
  --hf-muted:         #8b95a7;                 /* muted meta */
  --eyebrow:          #9fb3c8;                 /* eyebrow kicker */
  --hf-shadow:        0 2px 24px rgba(0,0,0,0.32);
  --play-fg:          #04140f;                 /* glyph color on accent disc */

  --card-bg:          rgba(16, 23, 37, 0.30);
  --card-border:      rgba(96, 165, 250, 0.12);
  --card-shadow:      0 14px 38px rgba(0,0,0,0.44);

  --btn-sec-bg:       rgba(255,255,255,0.06);
  --btn-sec-border:   rgba(255,255,255,0.14);
  --btn-sec-fg:       #ffffff;

  --soft-accent-bg:     rgba(96,165,250,0.13);
  --soft-accent-border: rgba(96,165,250,0.26);

  /* ---- layout — fill the first viewport ---- */
  position: relative;
  overflow: hidden;
  font-family: var(--trv3-font-sans);
  letter-spacing: 0.01em;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;       /* iOS Safari respects the dynamic viewport */
  display: flex;
  flex-direction: column;
}

/* ---- LIGHT-MODE THEME TOKENS ----
   The hero stays dark + cinematic in BOTH modes (the dark video reads best
   that way). Light mode changes ONLY the accent: blue → emerald/green. The
   CTA stays blue. Everything else inherits the dark tokens above. */
body.light-mode .hero.v3 {
  --accent:           #10b981;                 /* emerald/green */
  --accent-2:         #059669;
  --accent-glow:      rgba(16,185,129,0.45);
  --play-fg:          #04140f;
  --soft-accent-bg:     rgba(16,185,129,0.12);
  --soft-accent-border: rgba(16,185,129,0.30);

  /* Light "frosted" cards + secondary buttons floating over the dark video.
     Kept highly translucent so the backdrop-blur shows through beautifully.
     Since the card background becomes dark due to the video showing through,
     its text is kept white in light mode (retaining legibility). */
  --card-bg:          rgba(255, 255, 255, 0.24);
  --card-border:      rgba(255,255,255,0.12);
  --card-shadow:      0 18px 44px rgba(0,0,0,0.34);
  --btn-sec-bg:       rgba(255, 255, 255, 0.14);
  --btn-sec-border:   rgba(255,255,255,0.12);
  --btn-sec-fg:       #ffffff;

  --cta-bg:           rgba(16, 185, 129, 0.92); /* vibrant semi-translucent emerald green */
  --cta-glow:         rgba(16, 185, 129, 0.45);
}
/* Richer frost in light mode: add saturation so the blurred video reads as
   colored glass rather than flat translucency. */
body.light-mode .hero.v3 .demo-inlay,
body.light-mode .hero.v3 .hero-referral-card,
body.light-mode .hero.v3 .os-download,
body.light-mode .hero.v3 .h-btn--ghost {
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
}

.hero.v3 * { box-sizing: border-box; }

/* The HTML `hidden` attribute (display:none) loses to `.h-btn{display:inline-flex}`;
   re-assert it inside the hero so auth-state toggling actually hides buttons. */
.hero.v3 [hidden] { display: none !important; }

/* =========================================================================
   BACKGROUND SCRIM (theme-aware)
   The cinematic video (#hero-video) + .hero-video-overlay come from
   landing-theme.css and are dark. We layer a left-biased scrim so the
   left-column content stays legible while the subject shows through on the
   right. In light mode the scrim becomes a LIGHT wash so dark text reads.
   ========================================================================= */
.hero.v3 .v3-scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg,
      rgba(11,16,24,0.90) 0%,
      rgba(11,16,24,0.80) 40%,
      rgba(11,16,24,0.52) 72%,
      rgba(11,16,24,0.30) 100%),
    linear-gradient(180deg,
      rgba(11,16,24,0.32) 0%,
      rgba(11,16,24,0.00) 30%,
      rgba(11,16,24,0.28) 100%);
}
/* Scrim stays dark in both modes (cinematic video). No light-mode override. */

/* landing-theme.css forces `body.light-mode .hero-gradient h1 span` to white
   !important (legacy always-dark hero). Our section is also `.hero-gradient`,
   so re-assert the accent on the first headline line in light mode. */
body.light-mode .hero.v3 .v3-headline .line1 { color: var(--accent) !important; }

/* =========================================================================
   STACK — single column, left aligned
   ========================================================================= */
.hero.v3 .v3-stack {
  position: relative; z-index: 10;
  display: flex; flex-direction: column;
  justify-content: center;
  gap: clamp(2rem, 5vh, 3rem);
  width: 100%;
  max-width: 1280px;
  margin: 0;                 /* left-aligned (content left, video subject right) */
  align-self: flex-start;    /* override parent align-items: center */
  padding: clamp(2rem, 6vh, 3.5rem) clamp(1.4rem, 5vw, 4.5rem) clamp(3rem, 7vh, 5rem) clamp(1.6rem, 5.5vw, 5rem);
  flex: 1 1 auto;
  min-height: 0;
}

/* ---- FIRST VIEW (mobile fills the viewport): eyebrow + headline + sub + card --- */
.hero.v3 .v3-firstview {
  display: flex; flex-direction: column; justify-content: center;
}
.hero.v3 .v3-head {
  display: flex; flex-direction: column;
  gap: clamp(1.1rem, 2.4vw, 1.6rem);
  max-width: 660px;
}

/* =========================================================================
   EYEBROW — rule + animated sound bars + kicker
   ========================================================================= */
.hero.v3 .accent-rule { display: flex; align-items: center; gap: 13px; }
.hero.v3 .accent-rule .bar {
  width: 34px; height: 2px; border-radius: 2px;
  background: var(--accent);
}
.hero.v3 .accent-rule .eq {
  display: inline-flex; align-items: flex-end; gap: 3px; height: 13px;
}
.hero.v3 .accent-rule .eq i {
  width: 2.5px; border-radius: 2px; background: var(--accent);
  transform-origin: bottom; display: block;
  animation: trBar 1.1s ease-in-out infinite;
}
.hero.v3 .accent-rule .eq i:nth-child(1) { height: 6px;  animation-delay: 0s;    }
.hero.v3 .accent-rule .eq i:nth-child(2) { height: 13px; animation-delay: .18s;  }
.hero.v3 .accent-rule .eq i:nth-child(3) { height: 9px;  animation-delay: .36s;  }
.hero.v3 .accent-rule .kick {
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--eyebrow);
  white-space: nowrap;
}
/* Mirrored eyebrow (dash + bars after the kicker) — only shown on mobile,
   where the eyebrow is centered with the animation on both sides. */
.hero.v3 .accent-rule .eq-right,
.hero.v3 .accent-rule .bar-right { display: none; }
@keyframes trBar { 0%,100% { transform: scaleY(0.32); } 50% { transform: scaleY(1); } }
@media (prefers-reduced-motion: reduce) { .hero.v3 .accent-rule .eq i { animation: none; transform: none; } }

/* =========================================================================
   HEADLINE
   ========================================================================= */
.hero.v3 .v3-headline {
  margin: 0;
  color: var(--hf);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.0;
  font-size: clamp(2.7rem, 6.6vw, 4.75rem);
  text-shadow: var(--hf-shadow);
}
.hero.v3 .v3-headline .line1 { display: block; color: var(--accent); text-shadow: none; }
.hero.v3 .v3-headline .line2 { display: block; }

/* =========================================================================
   SUB COPY
   ========================================================================= */
.hero.v3 .v3-sub {
  margin: 0;
  color: var(--hf-body);
  font-size: clamp(1.02rem, 1.4vw, 1.22rem);
  line-height: 1.55;
  max-width: 520px;
}
.hero.v3 .v3-sub strong { color: var(--hf); font-weight: 600; }
.hero.v3 .v3-sub em { color: var(--accent); font-style: italic; font-weight: 600; }

/* =========================================================================
   DEMO VIDEO CARD — compact card that expands into the 16:9 player
   (reuses #demo-inlay / .demo-inlay-trigger / #demo-inlay-player wiring)
   ========================================================================= */
.hero.v3 .demo-inlay {
  width: 100%;
  max-width: 480px;
  border-radius: 18px;
  overflow: hidden;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--card-shadow);
  transition: transform .35s var(--trv3-ease-out-soft),
              border-color var(--trv3-dur-base) var(--trv3-ease);
}
.hero.v3 .demo-inlay:hover { transform: translateY(-4px); }
.hero.v3 .demo-inlay-trigger {
  display: flex; align-items: center; gap: 15px;
  width: 100%; padding: clamp(1.1rem, 2.2vw, 1.5rem);
  background: transparent; border: 0; cursor: pointer;
  text-align: left; font-family: inherit; color: var(--hf);
}
.hero.v3 .demo-inlay-trigger .play-glyph {
  flex: none;
  width: 52px; height: 52px; border-radius: 9999px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent);
  color: var(--play-fg);
  font-size: 17px;
  animation: trPulse 2.8s ease-in-out infinite;
}
.hero.v3 .demo-inlay-trigger .play-glyph i { margin-left: 2px; }
.hero.v3 .demo-inlay.is-open .demo-inlay-trigger .play-glyph { animation: none; }
.hero.v3 .demo-card-copy { min-width: 0; display: flex; flex-direction: column; }
.hero.v3 .demo-card-overline {
  font-size: 11px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 3px;
}
.hero.v3 .demo-card-title {
  font-size: 17px; font-weight: 700; color: var(--hf); line-height: 1.2;
}
.hero.v3 .demo-card-arrow { margin-left: auto; flex: none; font-size: 16px; color: var(--hf-muted); }
@keyframes trPulse {
  0%,100% { box-shadow: 0 0 0 0 var(--accent-glow); }
  50%     { box-shadow: 0 0 0 11px rgba(52,211,153,0); }
}
@media (prefers-reduced-motion: reduce) { .hero.v3 .demo-inlay-trigger .play-glyph { animation: none; } }

.hero.v3 .demo-inlay-player {
  position: relative; width: 100%;
  max-height: 0; overflow: hidden; background: #000;
  transition: max-height 380ms var(--trv3-ease-out-soft);
}
.hero.v3 .demo-inlay.is-open .demo-inlay-player { max-height: 320px; } /* 480×270 16:9 */
.hero.v3 .demo-inlay-player video { display: block; width: 100%; height: auto; background: #000; }
@media (prefers-reduced-motion: reduce) { .hero.v3 .demo-inlay-player { transition: none; } }

/* =========================================================================
   SCROLL CUE (mobile only — hidden ≥768px via the rule near the bottom)
   ========================================================================= */
.hero.v3 .v3-scrollcue {
  display: flex; justify-content: center;
  margin-top: clamp(1.6rem, 4vh, 2.4rem);
}
.hero.v3 .v3-scrollcue span {
  display: inline-flex; flex-direction: column; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--hf-muted);
}
.hero.v3 .v3-scrollcue svg { color: var(--accent); animation: trNudge 1.8s ease-in-out infinite; }
@keyframes trNudge {
  0%,100% { transform: translateY(0); opacity: 0.55; }
  50%     { transform: translateY(6px); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) { .hero.v3 .v3-scrollcue svg { animation: none; opacity: 1; } }

/* =========================================================================
   ACTIONS — revealed groups (reveal-on-scroll is mobile only; see bottom)
   ========================================================================= */
.hero.v3 .v3-actions-wrap {
  display: flex; flex-direction: column;
  gap: clamp(1.1rem, 2.4vw, 1.5rem);
  max-width: 760px;
}
.hero.v3 [data-reveal] {
  opacity: 0.35;
  transform: translateY(16px) scale(0.95);
  transition: opacity 0.85s cubic-bezier(0.21, 1.02, 0.43, 1.01),
              transform 0.85s cubic-bezier(0.21, 1.02, 0.43, 1.01);
}
.hero.v3 [data-reveal][data-shown="1"] {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.hero.v3 .act-row {
  display: flex; flex-wrap: wrap; align-items: stretch; gap: 12px;
}
.hero.v3 .act-secondary {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px;
}
.hero.v3 .os-alt {
  display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--hf-muted);
}
.hero.v3 .os-alt a { color: var(--hf-body); font-weight: 600; cursor: pointer; text-decoration: none; }
.hero.v3 .os-alt a:hover { color: var(--accent); }
.hero.v3 .os-alt .sep { opacity: 0.5; }

/* =========================================================================
   BUTTONS
   ========================================================================= */
.hero.v3 .h-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 17px 30px;
  border-radius: 14px;
  font-size: 16px; font-weight: 700; letter-spacing: 0.01em;
  cursor: pointer; border: none; white-space: nowrap; font-family: inherit;
  transition: transform var(--trv3-dur-base) var(--trv3-ease),
              box-shadow var(--trv3-dur-base) var(--trv3-ease),
              background var(--trv3-dur-base) var(--trv3-ease);
}
/* Primary CTA */
.hero.v3 .h-btn--primary {
  flex: 2 1 220px;
  color: #fff;
  background: var(--cta-bg);
  box-shadow: 0 6px 20px var(--cta-glow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.hero.v3 .h-btn--primary:hover { transform: translateY(-2px); box-shadow: 0 10px 28px var(--cta-glow); }
/* Ghost / secondary glass button */
.hero.v3 .h-btn--ghost {
  flex: 0 0 auto;
  color: var(--btn-sec-fg);
  background: var(--btn-sec-bg);
  border: 1px solid var(--btn-sec-border);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  font-size: 14px; padding: 11px 18px;
}
.hero.v3 .h-btn--ghost:hover { transform: translateY(-2px); }
/* Text link — accent underline */
.hero.v3 .h-btn--link {
  background: transparent; border: none; padding: 0 0 2px;
  font-size: 15px; font-weight: 600; color: var(--hf);
  display: inline-flex; align-items: center; gap: 8px;
  border-bottom: 1.5px solid var(--accent);
  border-radius: 0;
}
.hero.v3 .h-btn--link:hover { color: var(--accent); }

/* OS-aware download button — neutral glass with stacked label */
.hero.v3 .os-download {
  flex: 1 1 200px;
  display: inline-flex; align-items: center; gap: 11px;
  padding: 11px 20px; border-radius: 14px;
  cursor: pointer; white-space: nowrap; font-family: inherit;
  color: var(--btn-sec-fg);
  background: var(--btn-sec-bg);
  border: 1px solid var(--btn-sec-border);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  transition: transform var(--trv3-dur-base) var(--trv3-ease),
              background var(--trv3-dur-base) var(--trv3-ease);
}
.hero.v3 .os-download:hover { transform: translateY(-2px); }
.hero.v3 .os-download i { font-size: 22px; color: var(--btn-sec-fg); }
.hero.v3 .os-download .stk { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.1; }
.hero.v3 .os-download .stk .lead {
  font-size: 9px; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase;
  opacity: 0.6;
}
.hero.v3 .os-download .stk #hero-os-label { font-size: 15px; font-weight: 600; }

/* =========================================================================
   REFER & EARN CARD
   ========================================================================= */
.hero.v3 .hero-referral-card {
  width: 100%;
  display: flex; align-items: center; gap: 16px;
  padding: 18px 20px;
  text-align: left; font-family: inherit; cursor: pointer;
  color: var(--hf);
  border-radius: 16px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--card-shadow);
  transition: transform var(--trv3-dur-base) var(--trv3-ease),
              border-color var(--trv3-dur-base) var(--trv3-ease);
}
.hero.v3 .hero-referral-card:hover { transform: translateY(-2px); }
.hero.v3 .hero-referral-card.is-referred { border-color: var(--soft-accent-border); }
.hero.v3 .hero-referral-icon {
  width: 42px; height: 42px; flex: none;
  display: grid; place-items: center; border-radius: 12px;
  color: var(--accent);
  background: var(--soft-accent-bg);
  border: 1px solid var(--soft-accent-border);
}
.hero.v3 .hero-referral-copy { min-width: 0; flex: 1; display: grid; gap: 2px; }
.hero.v3 .hero-referral-copy strong { color: var(--hf); font-size: 14.5px; font-weight: 700; }
.hero.v3 .hero-referral-copy span { color: var(--hf-muted); font-size: 13px; line-height: 1.45; }
.hero.v3 .hero-referral-action {
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  color: var(--accent); font-size: 13.5px; font-weight: 600; white-space: nowrap;
}

/* =========================================================================
   TRUST CHIPS
   ========================================================================= */
.hero.v3 .trust-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 26px; }
.hero.v3 .trust-chip {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 500; color: var(--hf-body);
}
.hero.v3 .trust-chip i { font-size: 15px; }
.hero.v3 .trust-chip.g i,
.hero.v3 .trust-chip.p i { color: var(--accent); }
.hero.v3 .trust-chip.y i { color: var(--trv3-warning); }

/* =========================================================================
   TRIAL TAGLINE
   ========================================================================= */
.hero.v3 .v3-trial-tagline {
  margin: 0; font-size: 13.5px; color: var(--hf-muted); letter-spacing: 0.01em;
}
.hero.v3 .v3-trial-tagline strong { color: var(--hf); font-weight: 600; }
.hero.v3 .v3-trial-tagline .arrow { color: var(--accent); font-weight: 700; }

/* =========================================================================
   PLATFORM SPOTLIGHT — pulse the matching card after scrolling from hero
   ========================================================================= */
[data-platform-card][data-spotlight] { position: relative; }
[data-platform-card][data-spotlight]::after {
  content: ""; position: absolute; inset: -8px; border-radius: 14px;
  border: 2px solid var(--accent, #06b6d4);
  box-shadow: 0 0 0 4px rgba(6,182,212,0.18), 0 0 32px rgba(6,182,212,0.45);
  pointer-events: none;
  animation: v3SpotlightPulse 1500ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes v3SpotlightPulse {
  0%   { opacity: 0; transform: scale(0.985); }
  18%  { opacity: 1; transform: scale(1.00);  }
  100% { opacity: 0; transform: scale(1.015); }
}
@media (prefers-reduced-motion: reduce) {
  [data-platform-card][data-spotlight]::after { animation: none; opacity: 1; }
}

/* =========================================================================
   ENTRANCE MOTION (first-view items, on load)
   ========================================================================= */
@keyframes v3Rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.hero.v3 .rise { opacity: 0; animation: v3Rise 0.75s var(--trv3-ease-out-soft) forwards; }
.hero.v3 .d1 { animation-delay: 0.08s; }
.hero.v3 .d2 { animation-delay: 0.18s; }
.hero.v3 .d3 { animation-delay: 0.28s; }
.hero.v3 .d4 { animation-delay: 0.38s; }
.hero.v3 .d5 { animation-delay: 0.48s; }
@media (prefers-reduced-motion: reduce) { .hero.v3 .rise { opacity: 1; animation: none; } }

/* =========================================================================
   FIRST-VIEW / REVEAL / SCROLL-CUE — desktop vs mobile
   Desktop (≥768px): everything shown immediately, no scroll behavior.
   Mobile  (≤767px): first view fills the viewport; actions reveal on scroll.
   ========================================================================= */
@media (min-width: 768px) {
  .hero.v3 [data-reveal]   { opacity: 1 !important; transform: none !important; }
  .hero.v3 [data-scrollcue]{ display: none !important; }
  .hero.v3 [data-firstview]{ min-height: 0 !important; }
}
@media (max-width: 767px) {
  .hero.v3 [data-firstview]{ min-height: calc(100svh - 11.5rem); }
}

/* =========================================================================
   RESPONSIVE TUNING
   ========================================================================= */

/* Tablet */
@media (max-width: 1024px) {
  .hero.v3 .v3-headline { font-size: clamp(2.5rem, 6.4vw, 4.2rem); }
}

/* Mobile (<=767px) — centered head, symmetric eyebrow, stacked centered CTAs */
@media (max-width: 767px) {
  .hero.v3 { min-height: 100vh; min-height: 100svh; }
  .hero.v3 .v3-stack {
    gap: 22px;
    margin: 0 auto;            /* re-center the whole stack on mobile */
    padding: 20px 20px 36px;
    padding-top: max(20px, env(safe-area-inset-top));
  }

  /* Center the eyebrow + headline + sub, and center the demo card */
  .hero.v3 .v3-head { align-items: center; text-align: center; }
  .hero.v3 .accent-rule { justify-content: center; }
  .hero.v3 .accent-rule .eq-right,
  .hero.v3 .accent-rule .bar-right { display: inline-flex; }
  .hero.v3 .accent-rule .bar-right { display: block; }
  .hero.v3 .v3-headline { text-align: center; }
  .hero.v3 .v3-sub { font-size: 15.5px; margin-left: auto; margin-right: auto; }
  .hero.v3 .demo-inlay { max-width: 100%; margin-left: auto; margin-right: auto; }
  .hero.v3 .demo-inlay-trigger { text-align: left; }
  .hero.v3 .demo-inlay.is-open .demo-inlay-player { max-height: 58vw; }

  /* Actions centered as a column; "Start Free Trial" is the full-width main
     button, with Download + Schedule stacked centered beneath it. */
  .hero.v3 .v3-actions-wrap { align-items: center; }
  .hero.v3 .act-row {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
  }
  .hero.v3 .act-row > * {
    width: 100%;
    max-width: 380px;
    flex: 0 0 auto;
  }
  .hero.v3 .h-btn--primary,
  .hero.v3 .h-btn--ghost { justify-content: center; }
  .hero.v3 .os-download { justify-content: center; padding: 12px 16px; }
  .hero.v3 .os-download .stk { align-items: center; }

  .hero.v3 .act-secondary { flex-direction: column; align-items: center; gap: 10px; text-align: center; }
  .hero.v3 .os-alt { justify-content: center; flex-wrap: wrap; }
  .hero.v3 .hero-referral-card { max-width: 480px; margin: 0 auto; }
  .hero.v3 .hero-referral-action { display: none; }
  .hero.v3 .trust-row { justify-content: center; }
  .hero.v3 .v3-trial-tagline { text-align: center; }
}

/* Very small phones (iPhone SE class) */
@media (max-width: 380px) {
  .hero.v3 .v3-headline { font-size: clamp(2rem, 10vw, 2.5rem); }
  .hero.v3 .v3-stack { padding: 16px 16px 30px; gap: 18px; }
}

/* Landscape phones — give the hero air instead of squeezing it */
@media (max-height: 560px) and (orientation: landscape) {
  .hero.v3 { min-height: auto; }
  .hero.v3 [data-firstview] { min-height: 0 !important; }
  .hero.v3 .v3-stack { padding-top: 88px; }
}

/* =========================================================================
   LIGHT MODE — keep the hero cinematic-dark, swap accent to green.
   landing-theme.css applies page-wide `body.light-mode p/span/li {color:#4b5563
   !important}` (for the light rest of the page). Our hero stays dark, so we
   re-assert its text colors here. Accent bits resolve to green via --accent.
   ========================================================================= */
body.light-mode .hero.v3 .accent-rule .kick { color: #ffffff !important; }
body.light-mode .hero.v3 .v3-headline .line2 { color: var(--hf) !important; }
body.light-mode .hero.v3 .v3-sub { color: var(--hf-body) !important; }
body.light-mode .hero.v3 .v3-sub strong { color: var(--hf) !important; }
body.light-mode .hero.v3 .v3-sub em { color: var(--accent) !important; }

body.light-mode .hero.v3 .demo-inlay-trigger,
body.light-mode .hero.v3 .demo-card-title,
body.light-mode .hero.v3 .demo-card-title b,
body.light-mode .hero.v3 .os-download,
body.light-mode .hero.v3 .os-download #hero-os-label,
body.light-mode .hero.v3 .hero-referral-copy strong,
body.light-mode .hero.v3 .h-btn--ghost {
  color: #ffffff !important;
}

body.light-mode .hero.v3 .demo-card-overline,
body.light-mode .hero.v3 .hero-referral-action,
body.light-mode .hero.v3 .hero-referral-action span,
body.light-mode .hero.v3 .os-alt a:hover {
  color: var(--accent) !important;
}

body.light-mode .hero.v3 .demo-card-arrow,
body.light-mode .hero.v3 .os-alt,
body.light-mode .hero.v3 .os-alt span {
  color: var(--hf-muted) !important;
}

body.light-mode .hero.v3 .os-download .stk .lead {
  color: rgba(255, 255, 255, 0.75) !important;
}

body.light-mode .hero.v3 .hero-referral-copy span {
  color: #ffffff !important;
}

body.light-mode .hero.v3 .os-alt a { color: var(--hf-body) !important; }

body.light-mode .hero.v3 .trust-chip { color: var(--hf-body) !important; }

body.light-mode .hero.v3 .v3-trial-tagline { color: #ffffff !important; }
body.light-mode .hero.v3 .v3-trial-tagline strong { color: var(--hf) !important; }
body.light-mode .hero.v3 .v3-trial-tagline .arrow { color: var(--accent) !important; }

body.light-mode .hero.v3 .v3-scrollcue span { color: #ffffff !important; }
body.light-mode .hero.v3 .h-btn--link { color: var(--hf) !important; }
