/* ==========================================================================
   CUECALC — Brand Design System
   Navy + Orange, derived from the CueCalc app icon gradient.
   ========================================================================== */

:root {
  /* Brand — dark navy (hero/footer) */
  --navy-950: #06091E;
  --navy-900: #0A0D28;
  --navy-850: #0D1230;
  --navy-800: #101A45;
  --navy-700: #1C2558;
  --navy-600: #1E2B68;

  /* Brand — orange accent (from icon gradient) */
  --orange-200: #FFDAB3;
  --orange-300: #FFC070;
  --orange-500: #FF7820;
  --orange-600: #E85808;
  --orange-700: #B84000;
  --orange-glow: rgba(255, 120, 32, 0.35);

  /* Light surfaces (content pages) */
  --bg-page: #F7F8FC;
  --bg-surface: #FFFFFF;
  --bg-secondary: #EFF2FC;
  --bg-tint: rgba(255, 120, 32, 0.06);

  /* Text on light */
  --text-primary: #14162B;
  --text-secondary: #52566E;
  --text-tertiary: #6E7290;

  /* Text on dark */
  --text-on-dark: #FFFFFF;
  --text-on-dark-soft: #C2C7E4;
  --text-on-dark-faint: #959BC4;

  --border-subtle: rgba(20, 22, 43, 0.08);
  --border-card: rgba(20, 22, 43, 0.06);
  --border-dark: rgba(255, 255, 255, 0.10);

  --success: #23B562;
  --danger: #E5484D;
  --info: #2F86EB;

  --shadow-card: 0 1px 2px rgba(20, 22, 43, 0.04), 0 8px 24px rgba(20, 22, 43, 0.06);
  --shadow-lift: 0 24px 56px rgba(20, 22, 43, 0.14), 0 8px 20px rgba(255, 120, 32, 0.06);
  --shadow-glow: 0 28px 72px rgba(255, 120, 32, 0.28), 0 0 0 1px rgba(255,255,255,0.06) inset;
  --shadow-device: 0 40px 80px rgba(6, 9, 30, 0.45), 0 16px 32px rgba(255, 120, 32, 0.12);

  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  --container: 1180px;
  --nav-h: 72px;

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

/* ==========================================================================
   RESET
   ========================================================================== */
* { box-sizing: border-box; }
html {
  scroll-padding-top: calc(var(--nav-h) + 12px); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background-color: var(--bg-page);
  /* Ambient depth layer — one quiet, fixed, centered light source (same language as
     the hero/page-hero/cta-band glows, just much fainter) so scrolling past a hero
     never hits a flat, dead-white expanse. Deliberately a single source, not several
     competing blobs — matches the "one aligned, centered light source" system used
     everywhere else on the site. */
  background-image: radial-gradient(70% 50% at 50% 0%, rgba(255,120,32,0.05) 0%, transparent 70%);
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4, h5 { margin: 0; letter-spacing: -0.02em; font-weight: 800; }
p { margin: 0 0 16px; }
a { text-decoration: none; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
svg { display: block; }
.brand .brand-mark { max-width: 34px; max-height: 34px; flex-shrink: 0; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* Consistent, visible keyboard focus ring across the site (buttons, links, form fields) */
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible,
.dropdown-item:focus-visible, .faq-q:focus-visible {
  outline: 2px solid var(--orange-500); outline-offset: 3px; border-radius: 4px;
}
.hero a:focus-visible, .hero button:focus-visible,
.cta-band a:focus-visible, .site-footer a:focus-visible,
.card-dark a:focus-visible, .card-dark button:focus-visible {
  outline-color: var(--orange-300);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* Branded selection + scrollbar — small, cheap touches that make the site feel finished */
::selection { background: var(--orange-200); color: var(--navy-950); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-page); }
::-webkit-scrollbar-thumb { background: var(--orange-300); border-radius: 999px; border: 2px solid var(--bg-page); }
::-webkit-scrollbar-thumb:hover { background: var(--orange-500); }

.font-rounded { font-family: ui-rounded, "SF Pro Rounded", -apple-system, sans-serif; }

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  background: rgba(255, 120, 32, 0.08);
  padding: 2px 7px; border-radius: 6px;
  font-size: 0.88em; color: var(--orange-600);
}

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 112px 0; position: relative; }
.section-tight { padding: 72px 0; }

@media (max-width: 768px) {
  .section { padding: 72px 0; }
  .section-tight { padding: 48px 0; }
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--orange-600);
  background: var(--bg-tint);
  padding: 6px 14px; border-radius: var(--radius-pill);
  margin-bottom: 20px;
  border: 1px solid rgba(255, 120, 32, 0.16);
}
.eyebrow::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex-shrink: 0;
  animation: pulseDot 2.2s ease-in-out infinite;
}
.eyebrow.on-dark { color: var(--orange-300); background: rgba(255, 120, 32, 0.14); border-color: rgba(255, 120, 32, 0.22); }
@keyframes pulseDot { 0%, 100% { opacity: 0.45; transform: scale(0.8); } 50% { opacity: 1; transform: scale(1); } }

.section-head { max-width: 720px; margin: 0 auto 64px; text-align: center; }
.section-head h2 {
  font-size: clamp(30px, 4.2vw, 44px);
  margin-bottom: 18px;
  letter-spacing: -0.03em;
  line-height: 1.12;
}
.section-head p { font-size: 18px; color: var(--text-secondary); margin-bottom: 0; line-height: 1.65; max-width: 560px; margin-left: auto; margin-right: auto; }

.text-gradient {
  background: linear-gradient(135deg, var(--orange-600) 0%, var(--orange-300) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 28px; border-radius: var(--radius-pill);
  font-size: 16px; font-weight: 700;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.2s;
  white-space: nowrap;
  position: relative;
}
.btn-primary {
  background: linear-gradient(135deg, var(--orange-500), var(--orange-700));
  color: #fff;
  box-shadow: 0 12px 28px rgba(232, 88, 8, 0.32);
  overflow: hidden;
  isolation: isolate;
}
.btn-primary::after {
  content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; z-index: -1;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.4), transparent);
  transform: skewX(-20deg); transition: left 0.65s ease;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(232, 88, 8, 0.4); }
.btn-primary:hover::after { left: 140%; }
.btn-secondary {
  background: var(--bg-surface); color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}
.btn-secondary:hover { background: var(--bg-secondary); transform: translateY(-2px); }
.btn-ghost-dark {
  background: rgba(255,255,255,0.08); color: #fff; border: 1px solid var(--border-dark);
}
.btn-ghost-dark:hover { background: rgba(255,255,255,0.14); transform: translateY(-2px); }
.btn-sm { padding: 10px 20px; font-size: 14px; }
.btn-block { width: 100%; }

/* App Store CTA icon */
.btn .appstore-icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-right: 2px;
}
.btn-sm .appstore-icon {
  width: 15px;
  height: 15px;
}
.btn-appstore {
  background: #000;
  color: #fff;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
  gap: 10px;
  overflow: hidden;
  isolation: isolate;
}
.btn-appstore:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.36);
  background: #111;
}
.btn-appstore .appstore-icon { width: 20px; height: 20px; }
.btn-appstore .appstore-label {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.05;
  text-align: left;
}
.btn-appstore .appstore-label small {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.02em;
  opacity: 0.85;
  text-transform: none;
}
.btn-appstore .appstore-label strong {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* Accessibility feature section */
.a11y-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 900px) {
  .a11y-grid { grid-template-columns: 1fr; }
}
.a11y-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-card);
}
.a11y-card h3 {
  font-size: 17px;
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.a11y-card p {
  font-size: 14.5px;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.55;
}
.a11y-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 120, 32, 0.12);
  color: var(--orange-600);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.a11y-icon svg { width: 18px; height: 18px; }


/* ==========================================================================
   NAVIGATION
   ========================================================================== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h);
  background: rgba(247, 248, 252, 0.78);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border-subtle);
}
.nav-inner {
  max-width: var(--container); margin: 0 auto; padding: 0 24px; height: 100%;
  display: flex; align-items: center; justify-content: space-between;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-size: 20px; font-weight: 800; color: var(--navy-900);
}
.brand .brand-mark { width: 34px; height: 34px; border-radius: 9px; }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links > li { position: relative; }
.nav-links a.nav-link {
  display: flex; align-items: center; gap: 4px;
  padding: 10px 16px; border-radius: var(--radius-pill);
  font-size: 15px; font-weight: 600; color: var(--text-secondary);
  transition: color 0.2s, background 0.2s;
}
.nav-links a.nav-link:hover, .nav-links a.nav-link.active { color: var(--navy-900); background: var(--bg-secondary); }
.nav-links a.nav-link svg.chev { width: 12px; height: 12px; transition: transform 0.2s; }

.nav-cta { display: flex; align-items: center; gap: 10px; }

/* Dropdown mega-menu */
.has-dropdown { }
/* .dropdown is an invisible hoverable bridge that starts flush against the nav link
   (no gap) so the mouse never leaves a hoverable element while moving from the link
   down into the menu. The visible card is the nested .dropdown-inner, offset from the
   top via padding rather than a margin/gap on the outer box. */
.dropdown {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  padding-top: 14px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.2s var(--ease), visibility 0s linear 0.2s;
  z-index: 50;
}
.dropdown-inner {
  min-width: 560px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lift);
  padding: 18px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
  transform: translateY(6px);
  transition: transform 0.2s var(--ease);
}
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown {
  opacity: 1; visibility: visible; pointer-events: auto;
  transition: opacity 0.2s var(--ease), visibility 0s linear 0s;
}
.has-dropdown:hover .dropdown-inner, .has-dropdown:focus-within .dropdown-inner {
  transform: translateY(0);
}
.has-dropdown:hover .chev { transform: rotate(180deg); }
.dropdown-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px; border-radius: var(--radius-sm);
  transition: background 0.15s;
}
.dropdown-item:hover { background: var(--bg-secondary); }
.dropdown-item .dd-icon {
  width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0;
  background: var(--bg-tint); color: var(--orange-600);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.3s var(--ease);
}
.dropdown-item:hover .dd-icon { transform: scale(1.08) rotate(-4deg); }
.dropdown-item .dd-icon svg { width: 18px; height: 18px; }
.dropdown-item strong { display: block; font-size: 14px; font-weight: 700; color: var(--text-primary); margin-bottom: 2px; }
.dropdown-item span { display: block; font-size: 12.5px; color: var(--text-tertiary); line-height: 1.4; }

/* Mobile menu */
.menu-toggle {
  display: none; width: 40px; height: 40px; border-radius: 10px;
  align-items: center; justify-content: center;
  background: var(--bg-secondary);
}
.menu-toggle svg { width: 20px; height: 20px; }

.mobile-menu {
  position: fixed; inset: 0; z-index: 1100;
  background: var(--bg-page);
  transform: translateX(100%);
  transition: transform 0.35s var(--ease);
  overflow-y: auto;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu-header {
  height: var(--nav-h); display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; border-bottom: 1px solid var(--border-subtle);
}
.mobile-menu-body { padding: 12px 24px 40px; }
.mobile-group { border-bottom: 1px solid var(--border-subtle); padding: 8px 0; }
.mobile-group-title {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 4px; font-size: 17px; font-weight: 700; color: var(--text-primary);
}
.mobile-group-title svg { width: 14px; height: 14px; transition: transform 0.25s; color: var(--text-tertiary); }
.mobile-group.open .mobile-group-title svg { transform: rotate(180deg); }
.mobile-submenu {
  max-height: 0; overflow: hidden; transition: max-height 0.3s var(--ease);
}
.mobile-group.open .mobile-submenu { max-height: 600px; }
.mobile-submenu a {
  display: block; padding: 10px 4px 10px 14px; font-size: 15px; color: var(--text-secondary);
  border-left: 2px solid var(--border-subtle); margin-left: 2px;
}
.mobile-menu-body > a.mobile-top-link {
  display: block; padding: 14px 4px; font-size: 17px; font-weight: 700; color: var(--text-primary);
  border-bottom: 1px solid var(--border-subtle);
}
.mobile-menu-body .btn { margin-top: 24px; }

body.menu-open { overflow: hidden; }

@media (max-width: 980px) {
  .nav-links, .nav-cta .btn-secondary { display: none; }
  .menu-toggle { display: flex; }
}

/* ==========================================================================
   HERO (dark navy + orange glow, matches app-icon gradient)
   ========================================================================== */
.hero {
  position: relative;
  padding: calc(var(--nav-h) + 72px) 0 88px;
  background: radial-gradient(120% 90% at 50% -10%, var(--navy-600) 0%, var(--navy-900) 55%, var(--navy-950) 100%);
  color: var(--text-on-dark);
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  /* One single, centered light source — not two competing off-axis blobs — so the
     glow reads as a deliberate design element rather than random background haze.
     The three-stop gradient gives it a crisp, designed falloff instead of a flat blur. */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 55% at 50% -12%, rgba(255,120,32,0.24) 0%, rgba(255,120,32,0.08) 45%, transparent 72%),
    radial-gradient(rgba(255,255,255,0.035) 1px, transparent 1.5px);
  background-size: auto, 28px 28px;
  background-position: center top, 0 0;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 65%, transparent 100%);
          mask-image: linear-gradient(180deg, #000 0%, #000 65%, transparent 100%);
}
.hero-inner { text-align: center; max-width: 820px; margin: 0 auto; position: relative; z-index: 1; }
.hero h1 {
  font-size: clamp(38px, 6.2vw, 64px);
  line-height: 1.04;
  margin-bottom: 20px;
  letter-spacing: -0.035em;
  font-weight: 800;
}
.hero p.lead {
  font-size: clamp(17px, 2.2vw, 20px);
  color: var(--text-on-dark-soft);
  max-width: 540px;
  margin: 0 auto 32px;
  line-height: 1.55;
}
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 16px; }
.hero-note { font-size: 13px; color: var(--text-on-dark-faint); letter-spacing: 0.01em; }

/* Product Hunt featured badge (hero + footer) — no ranking claims */
.hero-ph {
  display: flex;
  justify-content: center;
  margin: 0 0 14px;
}
.ph-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  line-height: 0;
  text-decoration: none;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.ph-badge img {
  display: block;
  width: min(250px, 78vw);
  height: auto;
  border-radius: 10px;
}
.ph-badge-dark {
  padding: 2px;
  border: 1px solid rgba(255, 120, 32, 0.28);
  background: rgba(13, 18, 48, 0.55);
  box-shadow: 0 10px 28px rgba(6, 9, 30, 0.35);
}
.ph-badge-dark:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 120, 32, 0.5);
  box-shadow: 0 14px 32px rgba(255, 120, 32, 0.18);
}
.ph-badge-dark:focus-visible {
  outline: 2px solid var(--orange-300);
  outline-offset: 3px;
}
.ph-badge-footer {
  margin-top: 16px;
  padding: 2px;
  border: 1px solid rgba(255, 120, 32, 0.22);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
}
.ph-badge-footer img {
  width: min(200px, 70vw);
}
.ph-badge-footer:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 120, 32, 0.4);
}
.ph-badge-footer:focus-visible {
  outline: 2px solid var(--orange-500);
  outline-offset: 3px;
}
.site-footer .ph-badge-footer {
  /* Footer is dark navy — keep dark embed */
}

.badge-row {
  display: flex; gap: 10px 18px; justify-content: center; flex-wrap: wrap;
  margin: 28px auto 0; max-width: 640px; opacity: 0.95;
}
.badge-row .badge-item {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12.5px; color: var(--text-on-dark-soft); font-weight: 600;
  padding: 7px 12px; border-radius: 999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(8px);
}
.badge-row svg { width: 14px; height: 14px; color: var(--orange-300); flex-shrink: 0; }

/* Device mockup (CSS iPhone frame) */
.device-frame {
  position: relative; width: 260px; height: 540px; margin: 48px auto 0;
  background: linear-gradient(160deg, #1f2548 0%, #0a0d1c 48%, #05060f 100%);
  border-radius: 46px; padding: 12px;
  box-shadow: var(--shadow-device);
  transition: transform 0.55s var(--ease), box-shadow 0.55s var(--ease);
  will-change: transform;
}
.device-frame::before {
  content: ""; position: absolute; inset: 0; border-radius: 46px; z-index: 6; pointer-events: none;
  background: linear-gradient(105deg, rgba(255,255,255,0.10) 2%, transparent 22%, transparent 78%, rgba(255,255,255,0.05) 98%);
}
.device-frame .screen {
  width: 100%; height: 100%; border-radius: 34px; overflow: hidden;
  background: var(--navy-900);
  display: flex; flex-direction: column;
  position: relative;
}
.device-frame .notch {
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  width: 90px; height: 22px; background: #05060f; border-radius: 12px; z-index: 5;
}

/* ==========================================================================
   IPAD FRAMES (real screenshot shells)
   ========================================================================== */
.device-frame.ipad, .device-frame.ipad-mini {
  position: relative; margin: 0 auto;
  background: linear-gradient(160deg, #1a1f3d, #05060f);
  box-shadow: var(--shadow-glow), 0 0 0 2px rgba(255,255,255,0.06) inset;
  transition: transform 0.5s var(--ease);
  will-change: transform;
}
.device-frame.ipad { width: 300px; height: 400px; border-radius: 32px; padding: 16px; }
.device-frame.ipad-mini { width: 250px; height: 366px; border-radius: 28px; padding: 13px; }
.device-frame.ipad .screen, .device-frame.ipad-mini .screen {
  width: 100%; height: 100%; border-radius: 16px; overflow: hidden; position: relative;
  background: #f0f2f8; display: flex; flex-direction: column;
}
.device-frame.ipad .cam-dot, .device-frame.ipad-mini .cam-dot {
  position: absolute; top: 7px; left: 50%; transform: translateX(-50%);
  width: 5px; height: 5px; border-radius: 50%; background: rgba(19,33,82,0.18); z-index: 5;
}

/* Real Ipad.PNG screenshot in both homepage tablet frames (2048×2732) */
.device-frame.ipad.device-shot,
.device-frame.ipad-mini.device-shot {
  box-sizing: border-box;
  /* Outer height = padding×2 + inner width × (2732/2048) so shot fills edge-to-edge */
}
.device-frame.ipad.device-shot {
  width: 300px;
  padding: 16px;
  height: calc(32px + (300px - 32px) * 2732 / 2048);
  border-radius: 32px;
}
.device-frame.ipad-mini.device-shot {
  width: 250px;
  padding: 13px;
  height: calc(26px + (250px - 26px) * 2732 / 2048);
  border-radius: 28px;
}
.device-frame.ipad.device-shot .cam-dot,
.device-frame.ipad-mini.device-shot .cam-dot {
  display: none; /* capture includes status bar */
}
.device-frame.ipad.device-shot .screen,
.device-frame.ipad-mini.device-shot .screen {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #f0f2f8;
  border-radius: 14px;
}
.device-frame.ipad-mini.device-shot .screen { border-radius: 12px; }
.device-frame.ipad.device-shot .screen picture,
.device-frame.ipad-mini.device-shot .screen picture {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.device-frame.ipad.device-shot .screen img,
.device-frame.ipad-mini.device-shot .screen img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: inherit;
  -webkit-user-drag: none;
  user-select: none;
  pointer-events: none;
}
@media (max-width: 640px) {
  .device-frame.ipad.device-shot {
    --ipad-w: min(300px, 92vw);
    width: var(--ipad-w);
    padding: 14px;
    height: calc(28px + (var(--ipad-w) - 28px) * 2732 / 2048);
  }
  .device-frame.ipad-mini.device-shot {
    --ipad-mini-w: min(250px, 80vw);
    width: var(--ipad-mini-w);
    padding: 12px;
    height: calc(24px + (var(--ipad-mini-w) - 24px) * 2732 / 2048);
  }
}

/* ==========================================================================
   MASCOT
   ========================================================================== */
.mascot {
  width: 72px;
  height: 72px;
  max-width: 72px;
  max-height: 72px;
  margin: 0 auto 22px;
  cursor: pointer;
  filter: drop-shadow(0 12px 24px rgba(0,0,0,0.32));
  flex-shrink: 0;
}
.svg-face {
  overflow: visible;
  width: 72px !important;
  height: 72px !important;
  max-width: 72px;
  max-height: 72px;
  display: block;
}
.face-base-svg { fill: rgba(255,120,32,0.10); stroke: rgba(255,120,32,0.75); stroke-width: 4.1; }
.face-fill { fill: var(--orange-500); }
.mouth-path { fill: none; stroke: var(--orange-500); stroke-width: 5.5; stroke-linecap: round; transition: d 0.4s cubic-bezier(.175,.885,.32,1.2); }
#brows, #eyes { transition: transform 0.15s cubic-bezier(.3,.7,.3,1); }
.eye-shine { transition: opacity 0.2s ease; }
#axiom-face.blink #eyes { transform: scaleY(0.08); }
#axiom-face.reaction { transform: scale(1.16); transition: transform 0.28s cubic-bezier(.3,.7,.3,1.2); }
#axiom-face.reaction #brow-left { transform: translateY(-11px) rotate(-11deg); }
#axiom-face.reaction #brow-right { transform: translateY(-11px) rotate(11deg); }
#axiom-face.reaction #eyes { transform: scaleY(0.4); }
#axiom-face.reaction .eye-shine { opacity: 1; }

/* ==========================================================================
   CARDS / GRIDS
   ========================================================================== */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-auto { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

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

.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: calc(var(--radius-md) + 2px);
  padding: 32px 30px;
  box-shadow: var(--shadow-card);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.35s var(--ease);
  position: relative;
  overflow: hidden;
}
.card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255,120,32,0.55), transparent);
  opacity: 0; transition: opacity 0.35s var(--ease);
}
.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lift);
  border-color: rgba(255, 120, 32, 0.22);
}
.card:hover::before { opacity: 1; }
.card h3 { font-size: 19px; margin-bottom: 10px; }
.card p { font-size: 15px; color: var(--text-secondary); margin: 0; }
.card p:last-child { margin-bottom: 0; }

.card-icon {
  width: 46px; height: 46px; border-radius: 13px;
  background: linear-gradient(135deg, var(--bg-tint), rgba(255,120,32,0.16));
  color: var(--orange-600);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
  transition: transform 0.35s var(--ease);
}
.card-icon svg { width: 22px; height: 22px; }
.card:hover .card-icon { transform: scale(1.08) rotate(-4deg); }

.card-dark {
  background: var(--navy-900); color: var(--text-on-dark); border: 1px solid var(--border-dark);
}
.card-dark h3 { color: #fff; }
.card-dark p { color: var(--text-on-dark-soft); }
.card-dark .card-icon { background: rgba(255,120,32,0.14); color: var(--orange-300); }

.pro-badge, .beta-badge {
  display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: 0.03em;
  padding: 2px 8px; border-radius: 999px; vertical-align: middle; margin-left: 2px;
}
.pro-badge { background: var(--bg-tint); color: var(--orange-600); }
.beta-badge { background: rgba(47, 134, 235, 0.12); color: var(--info); }
.card-dark .pro-badge { background: rgba(255,120,32,0.16); color: var(--orange-300); }
.card-dark .beta-badge { background: rgba(47,134,235,0.18); color: #6FB2FF; }

.info-box {
  display: flex; gap: 16px; align-items: flex-start;
  background: rgba(47, 134, 235, 0.08); border: 1px solid rgba(47, 134, 235, 0.2);
  padding: 22px; border-radius: var(--radius-md); margin-bottom: 32px;
}
.info-box.success { background: rgba(35, 181, 98, 0.08); border-color: rgba(35, 181, 98, 0.24); }
.info-box.warn { background: rgba(255, 120, 32, 0.08); border-color: rgba(255, 120, 32, 0.24); }
.info-box svg { width: 24px; flex-shrink: 0; margin-top: 2px; }
.info-box.success svg { color: var(--success); }
.info-box.warn svg { color: var(--orange-600); }
.info-box svg:not([class])  { color: var(--info); }
.info-box strong { display: block; margin-bottom: 6px; font-size: 15px; }
.info-box p { font-size: 14.5px; margin: 0; color: var(--text-secondary); }

/* Numbered step list (tutorials) */
.steps { counter-reset: step; }
.step {
  display: grid; grid-template-columns: 44px 1fr; gap: 20px;
  padding: 28px 0; border-bottom: 1px solid var(--border-subtle);
}
.step:last-child { border-bottom: none; }
.step-num {
  counter-increment: step;
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--orange-500), var(--orange-700));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 17px;
}
.step-num::before { content: counter(step); }
.step h4 { font-size: 17px; margin-bottom: 8px; }
.step p { color: var(--text-secondary); font-size: 15px; margin-bottom: 0; }

/* Tables */
.data-table { width: 100%; border-collapse: collapse; background: var(--bg-surface); border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--border-card); margin-bottom: 40px; box-shadow: var(--shadow-card); }
.data-table th, .data-table td { text-align: left; padding: 16px 22px; border-bottom: 1px solid var(--border-subtle); font-size: 14.5px; }
.data-table th { background: var(--bg-secondary); font-weight: 700; color: var(--text-secondary); font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; }
.data-table tr:last-child td { border-bottom: none; }
.data-table td:first-child { font-weight: 600; }
.data-table .yes { color: var(--success); font-weight: 800; }
.data-table .no { color: var(--text-tertiary); }

/* Tabs (mode switcher on Features page) */
.tabs-nav { display: flex; gap: 8px; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 4px; margin-bottom: 40px; scrollbar-width: none; }
.tabs-nav::-webkit-scrollbar { display: none; }
.tabs-nav button {
  flex-shrink: 0; padding: 12px 20px; border-radius: var(--radius-pill);
  font-size: 14.5px; font-weight: 700; color: var(--text-secondary);
  background: var(--bg-surface); border: 1px solid var(--border-subtle);
  transition: all 0.2s;
}
.tabs-nav button.active { background: var(--navy-900); color: #fff; border-color: var(--navy-900); }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeUp 0.4s var(--ease); }

@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }

/* Cascade: repeated items inside a revealed grid fade up one after another instead of
   all at once. Uses a separate `animation` (not `transition`) so it never fights with
   each card's own hover transition. */
@keyframes fadeUpStagger { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.reveal .card, .reveal .price-card, .reveal .step,
.reveal .export-card, .reveal .cue-category, .reveal .faq-item {
  opacity: 0;
}
.reveal.in .card, .reveal.in .price-card, .reveal.in .step,
.reveal.in .export-card, .reveal.in .cue-category, .reveal.in .faq-item {
  animation: fadeUpStagger 0.6s var(--ease) both;
}
.reveal.in :is(.card, .price-card, .step, .export-card, .cue-category, .faq-item):nth-child(1) { animation-delay: 0.02s; }
.reveal.in :is(.card, .price-card, .step, .export-card, .cue-category, .faq-item):nth-child(2) { animation-delay: 0.08s; }
.reveal.in :is(.card, .price-card, .step, .export-card, .cue-category, .faq-item):nth-child(3) { animation-delay: 0.14s; }
.reveal.in :is(.card, .price-card, .step, .export-card, .cue-category, .faq-item):nth-child(4) { animation-delay: 0.20s; }
.reveal.in :is(.card, .price-card, .step, .export-card, .cue-category, .faq-item):nth-child(5) { animation-delay: 0.26s; }
.reveal.in :is(.card, .price-card, .step, .export-card, .cue-category, .faq-item):nth-child(n+6) { animation-delay: 0.32s; }

/* FAQ accordion */
.faq-item { border-bottom: 1px solid var(--border-subtle); }
.faq-q {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 22px 4px; font-size: 16.5px; font-weight: 700; text-align: left; width: 100%;
}
.faq-q svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--text-tertiary); transition: transform 0.25s; }
.faq-item.open .faq-q svg { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s var(--ease); }
.faq-item.open .faq-a { max-height: 400px; }
.faq-a-inner { padding: 0 4px 22px; color: var(--text-secondary); font-size: 15px; }

/* Pricing */
.price-card {
  background: var(--bg-surface); border: 1px solid var(--border-card); border-radius: var(--radius-lg);
  padding: 36px 32px; display: flex; flex-direction: column; box-shadow: var(--shadow-card);
  position: relative; transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.price-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.price-card.featured { border: 2px solid var(--success); box-shadow: var(--shadow-lift); }
.price-card.featured:hover { transform: translateY(-6px); box-shadow: 0 28px 60px rgba(35,181,98,0.18); }
.price-card .badge-best {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--success); color: #06210f; padding: 5px 14px; border-radius: var(--radius-pill);
  font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em;
}
.price-card .plan-name { font-size: 15px; font-weight: 700; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.04em; }
.price-card .plan-price { font-size: 44px; font-weight: 800; font-family: ui-rounded, sans-serif; margin: 10px 0 2px; }
.price-card .plan-period { font-size: 14px; color: var(--text-tertiary); margin-bottom: 24px; }
.price-card ul { flex-grow: 1; margin-bottom: 28px; }
.price-card ul li { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; font-size: 14.5px; color: var(--text-secondary); }
.price-card ul li svg { width: 16px; flex-shrink: 0; margin-top: 3px; color: var(--success); }

/* Footer */
.site-footer { background: var(--navy-950); color: var(--text-on-dark-soft); padding: 72px 0 32px; position: relative; overflow: hidden; isolation: isolate; }
.site-footer::before {
  content: ""; position: absolute; top: -220px; left: 50%; transform: translateX(-50%); z-index: -1;
  width: 640px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,120,32,0.11) 0%, rgba(255,120,32,0.04) 45%, transparent 72%);
}
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 40px; margin-bottom: 56px; }
.footer-brand .brand { color: #fff; margin-bottom: 14px; }
.footer-brand p { font-size: 14px; max-width: 260px; }
.footer-col h5 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-on-dark-faint); margin-bottom: 18px; }
.footer-col a, .footer-col span { display: block; font-size: 14.5px; padding: 7px 0; color: var(--text-on-dark-soft); transition: color 0.2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px;
  padding-top: 28px; border-top: 1px solid var(--border-dark); font-size: 13px; color: var(--text-on-dark-faint);
}
.footer-bottom .legal-links { display: flex; gap: 20px; }
.footer-bottom a:hover { color: #fff; }
.footer-social { display: flex; gap: 12px; }
.footer-social a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.06); display: flex; align-items: center; justify-content: center; transition: all 0.25s var(--ease); }
.footer-social a:hover { background: rgba(255,255,255,0.12); transform: translateY(-2px); }
.footer-social svg { width: 16px; height: 16px; }

@media (max-width: 980px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* Page hero (non-home pages: lighter, shorter) */
.page-hero {
  padding: calc(var(--nav-h) + 64px) 0 64px;
  background: linear-gradient(180deg, var(--bg-secondary), var(--bg-page));
  text-align: center;
  position: relative; overflow: hidden; isolation: isolate;
}
.page-hero::before {
  /* Same centered light source as the hero, just quieter — this banner repeats on
     every inner page, so consistency here matters more than novelty. (Note: no
     dot-grid texture here on purpose — that was tried and deliberately removed
     earlier for feeling repetitive across pages; the grid stays exclusive to the
     homepage .hero.) Just a slightly stronger glow than before. */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(60% 65% at 50% -12%, rgba(255,120,32,0.14) 0%, rgba(255,120,32,0.045) 45%, transparent 72%);
}
.page-hero .eyebrow { margin-bottom: 18px; }
.page-hero h1 { font-size: clamp(32px, 5vw, 48px); margin-bottom: 16px; }
.page-hero p { font-size: 18px; color: var(--text-secondary); max-width: 620px; margin: 0 auto; }

/* Legal document styling (privacy/terms) */
.legal-doc { max-width: 820px; margin: 0 auto; }
.legal-doc .updated { font-size: 13.5px; color: var(--text-tertiary); margin-bottom: 40px; }
.legal-doc h2 { font-size: 24px; margin: 48px 0 16px; padding-top: 12px; }
.legal-doc h2:first-child { margin-top: 0; }
.legal-doc h3 { font-size: 18px; margin: 28px 0 12px; }
.legal-doc p, .legal-doc li { font-size: 15.5px; color: var(--text-secondary); }
.legal-doc li { padding: 6px 0; padding-left: 22px; position: relative; }
.legal-doc li::before { content: "—"; position: absolute; left: 0; color: var(--orange-500); }
.legal-toc {
  background: var(--bg-surface); border: 1px solid var(--border-card); border-radius: var(--radius-md);
  padding: 24px 28px; margin-bottom: 48px; box-shadow: var(--shadow-card);
}
.legal-toc h5 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-tertiary); margin-bottom: 12px; }
.legal-toc ol { list-style: none; columns: 2; column-gap: 32px; }
.legal-toc li { padding: 5px 0; break-inside: avoid; }
.legal-toc li::before { content: none; }
.legal-toc a { color: var(--text-primary); font-size: 14.5px; font-weight: 600; }
.legal-toc a:hover { color: var(--orange-600); }
@media (max-width: 640px) { .legal-toc ol { columns: 1; } }

.cta-band {
  background: radial-gradient(120% 140% at 50% 0%, var(--navy-600), var(--navy-950));
  color: #fff; text-align: center; padding: 80px 0; position: relative; overflow: hidden; isolation: isolate;
}
.cta-band::before {
  /* Moved from an off-center corner blob to a centered, bottom-anchored glow — mirrors
     the hero/page-hero treatment (same light source, different position in the page)
     instead of a stray highlight in one corner. */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(60% 70% at 50% 108%, rgba(255,120,32,0.22) 0%, rgba(255,120,32,0.07) 45%, transparent 75%);
}
.cta-band h2 { font-size: clamp(26px, 4vw, 38px); margin-bottom: 16px; position: relative; }
.cta-band p { color: var(--text-on-dark-soft); max-width: 520px; margin: 0 auto 32px; position: relative; }
.cta-band .hero-cta { position: relative; }

.anchor-offset { scroll-margin-top: calc(var(--nav-h) + 24px); }

/* ---------- Cue sub-navigation (jump links within the Cues panel) ---------- */
.subnav {
  display: flex; flex-wrap: wrap; gap: 8px; padding: 16px; margin-bottom: 36px;
  background: var(--bg-secondary); border-radius: var(--radius-md); border: 1px solid var(--border-subtle);
}
.subnav a {
  font-size: 13.5px; font-weight: 700; color: var(--text-secondary);
  background: var(--bg-surface); border: 1px solid var(--border-subtle);
  padding: 8px 14px; border-radius: var(--radius-pill); transition: all 0.2s;
}
.subnav a:hover { color: var(--orange-600); border-color: var(--orange-glow); }

/* ---------- Interpretation band chips + gauge bar ---------- */
.band-chip {
  display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700;
  padding: 4px 10px; border-radius: var(--radius-pill); margin: 2px 4px 2px 0;
}
.band-chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.band-chip.band-blue    { background: rgba(47,134,235,0.10); color: #2F86EB; }
.band-chip.band-green   { background: rgba(35,181,98,0.10);  color: #1E9C56; }
.band-chip.band-yellow  { background: rgba(230,178,15,0.12); color: #A67F00; }
.band-chip.band-orange  { background: rgba(255,120,32,0.12); color: var(--orange-600); }
.band-chip.band-red     { background: rgba(229,72,77,0.10);  color: var(--danger); }
.band-chip.band-neutral { background: var(--bg-secondary);   color: var(--text-secondary); }

.gauge-bar {
  display: flex; height: 14px; border-radius: var(--radius-pill); overflow: hidden;
  margin: 14px 0 10px; box-shadow: inset 0 0 0 1px var(--border-subtle);
}
.gauge-bar span { flex: 1 1 0; }
.gauge-bar .g-blue   { background: #2F86EB; }
.gauge-bar .g-green  { background: #23B562; }
.gauge-bar .g-yellow { background: #E6B20F; }
.gauge-bar .g-orange { background: var(--orange-500); }
.gauge-bar .g-red    { background: var(--danger); }
.gauge-legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; color: var(--text-secondary); margin-bottom: 32px; }
.gauge-legend span { display: inline-flex; align-items: center; gap: 6px; }
.gauge-legend i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }

/* ---------- Built-in Cue library (details/summary accordion) ---------- */
.cue-category {
  background: var(--bg-surface); border: 1px solid var(--border-card); border-radius: var(--radius-md);
  box-shadow: var(--shadow-card); margin-bottom: 18px; overflow: hidden;
}
.cue-category summary {
  cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; font-weight: 800; font-size: 16.5px; color: var(--text-primary);
}
.cue-category summary::-webkit-details-marker { display: none; }
.cue-category summary::after {
  content: "+"; font-size: 22px; font-weight: 400; color: var(--orange-600); transition: transform 0.2s;
}
.cue-category[open] summary::after { transform: rotate(45deg); }
.cue-category summary .cue-count { font-weight: 600; font-size: 13.5px; color: var(--text-tertiary); margin-left: 10px; }
.cue-category .cue-table-wrap {
  padding: 0 24px 24px; overflow-x: auto; -webkit-overflow-scrolling: touch;
}
.cue-table { width: 100%; min-width: 720px; border-collapse: collapse; }
.cue-table th, .cue-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border-subtle); font-size: 14px; vertical-align: top; }
.cue-table th { font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-tertiary); font-weight: 700; white-space: nowrap; }
.cue-table tr:last-child td { border-bottom: none; }
.cue-table td:first-child { font-weight: 700; min-width: 150px; }
.cue-table code { font-size: 12.5px; white-space: nowrap; }
.cue-table .tracker-tag {
  display: inline-block; font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.03em;
  background: var(--bg-tint); color: var(--orange-600); padding: 2px 7px; border-radius: 6px; margin-left: 6px;
}
.cue-scroll-hint { display: none; }
@media (max-width: 700px) {
  .cue-category .cue-table-wrap { padding: 0 0 20px; margin: 0 24px; }
  .cue-scroll-hint {
    display: flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700;
    color: var(--orange-600); margin: 16px 24px 8px; opacity: 0.9;
  }
  .cue-scroll-hint svg { width: 14px; height: 14px; }
}

/* ---------- CSV / PDF export mockups ---------- */
.export-mock { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 32px; }
@media (max-width: 860px) { .export-mock { grid-template-columns: 1fr; } }
.export-card {
  background: var(--bg-surface); border: 1px solid var(--border-card); border-radius: var(--radius-md);
  box-shadow: var(--shadow-card); overflow: hidden;
}
.export-card-head {
  display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--border-subtle);
  font-weight: 800; font-size: 13.5px;
}
.export-card-head .dot { width: 10px; height: 10px; border-radius: 50%; }
.export-card-head.csv .dot { background: #23B562; }
.export-card-head.pdf .dot { background: #E5484D; }
.export-mono {
  font-family: "SF Mono", "JetBrains Mono", ui-monospace, Menlo, monospace;
  font-size: 11.5px; line-height: 1.7; color: var(--text-secondary); padding: 16px 18px; overflow-x: auto; white-space: pre;
}
.export-pdf-body { padding: 16px 18px; }
.export-pdf-row {
  display: flex; justify-content: space-between; font-size: 13px; padding: 8px 0; border-bottom: 1px dashed var(--border-subtle);
}
.export-pdf-row:last-child { border-bottom: none; }
.export-pdf-row b { color: var(--text-primary); }
.export-pdf-section-title {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 800; color: var(--orange-600);
  margin: 14px 0 6px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; background: #fff; color: #000; padding: 12px 20px; z-index: 10000;
}
.skip-link:focus { left: 16px; top: 16px; }



/* ==========================================================================
   P1 — Official App Store badge
   ========================================================================== */
.badge-appstore {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px 10px 14px;
  border-radius: 12px;
  background: #000;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(0,0,0,0.28);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.2s;
  line-height: 1;
  white-space: nowrap;
}
.badge-appstore:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(0,0,0,0.36);
  background: #111;
  color: #fff;
}
.badge-appstore:focus-visible {
  outline: 2px solid var(--orange-500);
  outline-offset: 3px;
}
.badge-apple { flex-shrink: 0; width: 22px; height: 22px; }
.badge-appstore-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
}
.badge-appstore-top {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.01em;
  opacity: 0.9;
  line-height: 1.1;
}
.badge-appstore-bottom {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", system-ui, sans-serif;
}
.badge-appstore.badge-lg { padding: 12px 22px 12px 16px; border-radius: 14px; }
.badge-appstore.badge-lg .badge-apple { width: 26px; height: 26px; }
.badge-appstore.badge-lg .badge-appstore-top { font-size: 11px; }
.badge-appstore.badge-lg .badge-appstore-bottom { font-size: 20px; }
.badge-appstore.badge-sm { padding: 7px 14px 7px 11px; border-radius: 10px; gap: 8px; }
.badge-appstore.badge-sm .badge-apple { width: 16px; height: 16px; }
.badge-appstore.badge-sm .badge-appstore-top { font-size: 9px; }
.badge-appstore.badge-sm .badge-appstore-bottom { font-size: 14px; }
/* Full-width badge for mobile drawer / stacked CTAs */
.badge-appstore.badge-block {
  display: flex;
  width: 100%;
  justify-content: center;
  box-sizing: border-box;
  padding: 12px 18px 12px 16px;
  border-radius: 12px;
  gap: 10px;
}
.badge-appstore.badge-block .badge-apple { width: 22px; height: 22px; }
.badge-appstore.badge-block .badge-appstore-top { font-size: 10px; }
.badge-appstore.badge-block .badge-appstore-bottom { font-size: 17px; }
.mobile-menu-body .badge-appstore.badge-block { margin-top: 8px; }
/* Header nav: keep badge aligned with Contact */
.nav-cta .badge-appstore.badge-sm { flex-shrink: 0; }

/* On dark bands, keep pure black badge with subtle ring */
.cta-band .badge-appstore,
.hero .badge-appstore {
  box-shadow: 0 12px 32px rgba(0,0,0,0.45), 0 0 0 1px rgba(255,255,255,0.08);
}


/* ==========================================================================
   P2 — Sticky TOC, utilities, What's New, CWV
   ========================================================================== */

/* Sticky feature tabs under fixed header */
.tabs-sticky-host {
  position: sticky;
  top: var(--nav-h);
  z-index: 40;
  margin: 0 0 28px;
  padding: 12px 0 4px;
  background: linear-gradient(180deg, var(--bg-page) 60%, rgba(247,248,252,0));
}
body.content-page .tabs-sticky-host .tabs-nav {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  flex-wrap: nowrap;
  justify-content: flex-start;
}
body.content-page .tabs-sticky-host .tabs-nav button {
  flex: 0 0 auto;
}

/* Utility classes replacing repeated inline styles */
.section-tight-top { padding-top: 56px; }
.section-alt { background: var(--bg-secondary); }
.section-dark {
  background: var(--navy-950);
  color: #fff;
}
.grid-tutorial {
  align-items: start;
  gap: 56px;
}
.tutorial-title {
  font-size: 28px;
  margin-bottom: 24px;
}
.order-2 { order: 2; }
.order-1 { order: 1; }
@media (max-width: 900px) {
  .grid-tutorial { gap: 32px; }
  .order-2, .order-1 { order: unset; }
}

/* CWV helpers */
.shot-frame img,
img[width][height] {
  height: auto;
}
/* content-visibility removed from .reveal — caused scroll jumps / layout thrash on long pages */

/* What's New page */
.news-timeline {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  padding-left: 28px;
}
.news-timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--orange-500), rgba(255,120,32,0.08));
  border-radius: 2px;
}
.news-item {
  position: relative;
  margin-bottom: 28px;
  padding: 24px 26px;
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}
.news-item::before {
  content: "";
  position: absolute;
  left: -25px;
  top: 28px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--orange-500);
  box-shadow: 0 0 0 4px rgba(255,120,32,0.18);
}
.news-item:last-child { margin-bottom: 0; }
.news-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.news-version {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255,120,32,0.12);
  color: var(--orange-700);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.news-date {
  font-size: 13px;
  color: var(--text-tertiary);
  font-weight: 600;
}
.news-item h2 {
  font-size: 22px;
  margin: 0 0 10px;
}
.news-item p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0 0 12px;
}
.news-item ul {
  margin: 0;
  padding-left: 18px;
  color: var(--text-secondary);
  font-size: 14.5px;
  line-height: 1.55;
}
.news-item li { margin-bottom: 6px; }
.news-item li strong { color: var(--text-primary); }

/* Prefers reduced motion — already partially handled; reinforce */
@media (prefers-reduced-motion: reduce) {
  .shot-frame, .btn, .badge-appstore, .reveal {
    transition: none !important;
  }
  html { scroll-behavior: auto; }
}

.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;
}



/* ==========================================================================
   Tutorials — sticky horizontal chapter nav (in-flow, no overlay)
   ========================================================================== */
.tut-chapters {
  position: sticky;
  top: var(--nav-h);
  z-index: 40;
  background: rgba(247, 248, 252, 0.92);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-bottom: 1px solid var(--border-subtle);
  padding: 10px 0;
  /* Stable height helps scroll offset math stay accurate */
}
.tut-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 2px 0;
  scroll-snap-type: x proximity;
}
.tut-chips::-webkit-scrollbar { display: none; }
.tut-chip {
  flex: 0 0 auto;
  scroll-snap-align: start;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  white-space: nowrap;
  transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
  text-decoration: none;
}
.tut-chip:hover {
  color: var(--text-primary);
  border-color: rgba(255, 120, 32, 0.28);
  background: #fff;
}
.tut-chip.active {
  color: #fff;
  background: linear-gradient(135deg, var(--orange-500), var(--orange-700));
  border-color: transparent;
  box-shadow: 0 8px 18px rgba(232, 88, 8, 0.28);
}
/* Anchor targets clear sticky header + chapter bar */
body.content-page section[id],
body.content-page h2.tutorial-title {
  scroll-margin-top: calc(var(--nav-h) + 72px);
}
/* Features tabs manage scroll in JS — native scroll-margin on panels/empty
   anchors was stacking with scroll-padding and loading the page too low. */
.features-page .tab-panel,
.features-page .tab-panel h2,
.features-page .tab-panel [id] {
  scroll-margin-top: 0;
}
body.content-page:not(.features-page) .tab-panel,
body.content-page:not(.features-page) .tab-panel h2 {
  scroll-margin-top: calc(var(--nav-h) + 72px);
}
/* Short viewports: don't sticky-stack device mock under two bars */
@media (max-height: 720px) {
  .steps-sticky { position: static; top: auto; }
}

/* Real iPhone 16 Pro Max screenshot in device chrome (hero + tutorials) */
.device-frame.device-shot {
  width: 270px;
  /* Outer = bezel padding + INNER screen at Pro Max aspect (1320×2868).
     Using outer width here made the screen taller than the shot → black bar. */
  box-sizing: border-box;
  padding: 11px;
  height: calc(22px + (270px - 22px) * 2868 / 1320);
  border-radius: 48px;
  margin: 56px auto 0;
}
/* Tutorial sticky column: no hero top offset */
.steps-sticky .device-frame.device-shot {
  margin: 0 auto;
}
/* Homepage spotlight / grid mockups */
section:not(.hero) .device-frame.device-shot {
  margin: 0 auto;
}
.device-frame.device-shot .notch {
  display: none; /* capture already has Dynamic Island + status bar */
}
.device-frame.device-shot::before {
  border-radius: 48px;
}
.device-frame.device-shot .screen {
  width: 100%;
  height: 100%;
  border-radius: 38px;
  overflow: hidden;
  background: #0a0a0a;
  /* Override base flex layout so <picture> can fill edge-to-edge */
  display: block;
  position: relative;
}
.device-frame.device-shot .screen picture {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.device-frame.device-shot .screen img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: inherit;
  -webkit-user-drag: none;
  user-select: none;
  pointer-events: none;
}
@media (max-width: 640px) {
  .device-frame.device-shot {
    --shot-w: min(250px, 70vw);
    width: var(--shot-w);
    padding: 10px;
    height: calc(20px + (var(--shot-w) - 20px) * 2868 / 1320);
    margin-top: 40px;
    border-radius: 44px;
  }
  .device-frame.device-shot .screen { border-radius: 34px; }
}


/* Screenshot gallery */
.shots-section { padding-top: 72px; padding-bottom: 80px; overflow: hidden; }
.shots-section .section-head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.shots-section .section-head .lead { margin: 12px auto 0; color: var(--text-secondary); }
.shots-rail {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 12px 4px 28px;
  margin: 0 -4px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,120,32,0.35) transparent;
}
.shots-rail:focus-visible { outline: 2px solid var(--orange-500); outline-offset: 4px; border-radius: 12px; }
.shot-card {
  flex: 0 0 auto;
  width: min(240px, 68vw);
  scroll-snap-align: center;
  margin: 0;
}
.shot-frame {
  border-radius: 28px;
  overflow: hidden;
  background: #0a0d1f;
  box-shadow: 0 24px 48px rgba(20,22,43,0.16), 0 0 0 1px rgba(20,22,43,0.06);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.shot-card:hover .shot-frame {
  transform: translateY(-6px);
  box-shadow: 0 32px 56px rgba(20,22,43,0.22), 0 0 0 1px rgba(255,120,32,0.18);
}
.shot-frame img,
.shot-frame picture,
.shot-frame picture img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 297 / 649;
  object-fit: cover;
  object-position: center top; /* keep App Store marketing titles visible */
  background: #0a0d1f;
}
/* Full App Store marketing frames (title baked into image) */
.shot-frame-marketing img,
.shot-frame-marketing picture img {
  aspect-ratio: 480 / 1044;
  object-fit: contain;
  object-position: center center;
  background: #0a0d1f;
}
.shot-card figcaption { margin-top: 14px; text-align: center; padding: 0 6px; }
.shot-card figcaption strong {
  display: block; font-size: 14.5px; font-weight: 700; color: var(--text-primary); margin-bottom: 3px;
  letter-spacing: -0.01em; line-height: 1.3;
}
.shot-card figcaption span {
  display: block; font-size: 12.5px; color: var(--text-tertiary); line-height: 1.4;
}
.shots-actions {
  display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 8px;
}
.shots-nav {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--border-subtle); background: var(--bg-surface);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--text-primary); box-shadow: var(--shadow-card);
  transition: transform 0.2s var(--ease), background 0.2s, border-color 0.2s;
}
.shots-nav:hover {
  transform: translateY(-1px);
  border-color: rgba(255,120,32,0.35);
  background: #fff;
}
.shots-nav:focus-visible { outline: 2px solid var(--orange-500); outline-offset: 2px; }
@media (max-width: 640px) {
  .shots-section { padding-top: 56px; padding-bottom: 64px; }
  .shot-card { width: min(200px, 72vw); }
  .shot-frame { border-radius: 22px; }
}

/* ===== A11y polish (P2) ===== */
.skip-link:focus-visible {
  left: 16px;
  top: 16px;
  outline: 2px solid var(--orange-500);
  outline-offset: 3px;
  border-radius: 8px;
}
/* Slightly brighter secondary text on dark for WCAG on navy */
:root {
  --text-on-dark-soft: #B8BEDC;
  --text-on-dark-faint: #8B91B8;
}
/* FAQ: allow longer answers; clearer open state */
.faq-item.open .faq-a { max-height: 1200px; }
.faq-q {
  min-height: 48px; /* touch target */
}
.faq-q:focus-visible {
  outline: 2px solid var(--orange-500);
  outline-offset: 2px;
  border-radius: 8px;
}
/* Mobile menu focus + dismiss affordance */
.mobile-menu.open { outline: none; }
.menu-toggle[aria-expanded="true"] {
  color: var(--orange-600);
}
/* Nav dropdown keyboard: keep focus ring visible */
.nav-links .nav-link:focus-visible {
  outline: 2px solid var(--orange-500);
  outline-offset: 3px;
  border-radius: 8px;
}
/* Device shot: avoid layout shift when images load */
.device-frame.device-shot .screen {
  background: #0a0a0a;
}

/* ==========================================================================
   ELITE POLISH LAYER — sitewide 100/100 visual system
   ========================================================================== */

/* Header: quieter glass, stronger focus */
.site-header {
  background: rgba(247, 248, 252, 0.82);
  border-bottom-color: rgba(20, 22, 43, 0.06);
  transition: box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}
.site-header.is-scrolled,
.site-header[style*="box-shadow"] {
  background: rgba(247, 248, 252, 0.92);
}

/* Hero device pedestal */
.hero .device-frame.device-shot {
  margin: 40px auto 0;
  filter: drop-shadow(0 32px 48px rgba(0,0,0,0.35));
}
.hero .device-frame.device-shot::after {
  content: "";
  position: absolute;
  left: 50%; bottom: -28px; transform: translateX(-50%);
  width: 62%; height: 28px;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0.45) 0%, transparent 72%);
  z-index: -1;
  pointer-events: none;
}

/* Stats band */
.stats-band {
  position: relative;
  padding: 8px 0 8px;
}
.stats-band .card {
  text-align: center;
  padding: 36px 28px 32px;
  background: linear-gradient(180deg, #fff 0%, #fbfcff 100%);
}
.stats-band .card h3 {
  font-size: clamp(40px, 5vw, 52px);
  line-height: 1;
  margin-bottom: 14px;
  letter-spacing: -0.04em;
  font-family: ui-rounded, "SF Pro Rounded", -apple-system, sans-serif;
}
.stats-band .card p {
  font-size: 14.5px;
  line-height: 1.55;
  max-width: 260px;
  margin: 0 auto;
}

/* Feature / content dark spotlights */
.section.spotlight-dark,
section[style*="navy-950"] {
  position: relative;
  overflow: hidden;
}
section[style*="navy-950"]::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(55% 50% at 80% 20%, rgba(255,120,32,0.14) 0%, transparent 60%),
    radial-gradient(40% 40% at 10% 90%, rgba(30,43,104,0.5) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
section[style*="navy-950"] > .container {
  position: relative;
  z-index: 1;
}

/* iPad caption chips */
.device-caption {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-secondary);
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  box-shadow: var(--shadow-card);
}

/* Feature pills under iPad */
.feature-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 12px;
  margin-top: 48px;
  list-style: none;
  padding: 0;
}
.feature-pills li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  box-shadow: 0 1px 2px rgba(20,22,43,0.04);
  transition: transform 0.25s var(--ease), border-color 0.25s, box-shadow 0.25s;
}
.feature-pills li:hover {
  transform: translateY(-2px);
  border-color: rgba(255,120,32,0.22);
  box-shadow: var(--shadow-card);
}
.feature-pills li svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--orange-600);
}

/* Page heroes — all inner pages */
.page-hero {
  padding: calc(var(--nav-h) + 64px) 0 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(180deg, #fff 0%, var(--bg-page) 100%);
}
.page-hero::after {
  content: "";
  position: absolute;
  left: 50%; top: 0; transform: translateX(-50%);
  width: min(720px, 90vw);
  height: 280px;
  background: radial-gradient(ellipse at center top, rgba(255,120,32,0.10) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
}
.page-hero h1 {
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.page-hero p {
  line-height: 1.65;
}

/* Pricing cards elevation */
.price-card {
  border-radius: calc(var(--radius-lg) + 2px);
  padding: 40px 32px 32px;
  background: linear-gradient(180deg, #fff 0%, #fbfcff 100%);
}
.price-card.featured {
  background: linear-gradient(180deg, #fff 0%, #f4fff8 100%);
  transform: translateY(-4px);
}
.price-card .plan-price {
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.price-card.featured .plan-price {
  background: linear-gradient(135deg, #0a7a3e, var(--success));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* FAQ polish */
.faq-item {
  border-bottom: 1px solid var(--border-subtle);
  transition: background 0.2s ease;
}
.faq-item:hover { background: rgba(255,120,32,0.02); }
.faq-item.open { background: rgba(255,120,32,0.03); }
.faq-q {
  border-radius: 12px;
  padding: 22px 12px;
}
.faq-a-inner {
  padding: 0 12px 24px;
  line-height: 1.65;
}

/* Tutorial chips */
.tut-chip {
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s, color 0.2s;
}
.tut-chip:hover { transform: translateY(-1px); }
.tut-chip.active {
  box-shadow: 0 10px 22px rgba(232, 88, 8, 0.28);
}

/* Steps */
.step {
  transition: background 0.25s ease;
  border-radius: 16px;
  padding-left: 8px;
  padding-right: 8px;
  margin-left: -8px;
  margin-right: -8px;
}
.step:hover { background: rgba(255,120,32,0.03); }
.step-num {
  box-shadow: 0 10px 22px rgba(232, 88, 8, 0.28);
}

/* Data tables */
.data-table {
  border-radius: calc(var(--radius-md) + 2px);
  overflow: hidden;
}
.data-table th {
  letter-spacing: 0.05em;
}
.data-table tr:hover td {
  background: rgba(255,120,32,0.03);
}

/* News timeline */
.news-item {
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.news-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
}

/* CTA band */
.cta-band {
  padding: 96px 0;
}
.cta-band h2 {
  letter-spacing: -0.03em;
}

/* Footer */
.site-footer {
  padding: 80px 0 36px;
}
.footer-brand p {
  line-height: 1.6;
}

/* Shots gallery elevation */
.shots-section {
  background: linear-gradient(180deg, var(--bg-page) 0%, #fff 40%, var(--bg-page) 100%);
}
.shot-frame {
  box-shadow:
    0 28px 56px rgba(20,22,43,0.14),
    0 0 0 1px rgba(20,22,43,0.05);
}

/* Legal / content pages */
body.content-page .section .container {
  max-width: min(var(--container), 880px);
}
body.content-page .section h2 {
  letter-spacing: -0.025em;
  margin-top: 2.2em;
  margin-bottom: 0.7em;
}
body.content-page .section h2:first-of-type {
  margin-top: 0;
}
body.content-page .section p,
body.content-page .section li {
  line-height: 1.7;
  color: var(--text-secondary);
}
body.content-page .section strong {
  color: var(--text-primary);
}

/* Reveal polish */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* Device shot premium ring */
.device-frame.device-shot {
  box-shadow: var(--shadow-device);
}
.device-frame.device-shot:hover {
  box-shadow: 0 48px 90px rgba(6, 9, 30, 0.42), 0 18px 36px rgba(255, 120, 32, 0.14);
}

/* Nav CTA spacing */
.nav-cta {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Mobile */
@media (max-width: 640px) {
  .hero { padding: calc(var(--nav-h) + 56px) 0 64px; }
  .hero h1 { font-size: clamp(32px, 9vw, 42px); }
  .badge-row { gap: 8px; }
  .badge-row .badge-item { font-size: 11.5px; padding: 6px 10px; }
  .stats-band .card { padding: 28px 22px; }
  .feature-pills li { font-size: 12.5px; padding: 8px 12px; }
}

/* Selection on dark */
.hero ::selection,
.cta-band ::selection,
.site-footer ::selection {
  background: rgba(255,120,32,0.35);
  color: #fff;
}

/* ==========================================================================
   LOOPS 2–4 — Cinematic home → page drama → finishing craft
   ========================================================================== */

/* —— Loop 2: Cinematic atmosphere —— */
:root {
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hero {
  /* deeper cinematic depth */
  background:
    radial-gradient(90% 70% at 50% -20%, rgba(255,120,32,0.22) 0%, transparent 55%),
    radial-gradient(60% 50% at 20% 80%, rgba(30,43,104,0.55) 0%, transparent 60%),
    radial-gradient(50% 40% at 85% 60%, rgba(14,18,48,0.9) 0%, transparent 55%),
    linear-gradient(165deg, #121a4a 0%, #0A0D28 42%, #050714 100%);
  min-height: min(100vh, 980px);
  display: flex;
  align-items: center;
  padding-top: calc(var(--nav-h) + 48px);
  padding-bottom: 72px;
}
.hero::after {
  /* fine film grain — premium print feel */
  content: "";
  position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}
.hero-inner { z-index: 1; width: 100%; }

/* Staggered hero entrance */
@keyframes heroRise {
  from { opacity: 0; transform: translateY(28px) scale(0.98); filter: blur(4px); }
  to { opacity: 1; transform: none; filter: none; }
}
.hero .mascot,
.hero .eyebrow,
.hero h1,
.hero p.lead,
.hero .hero-cta,
.hero .hero-ph,
.hero .hero-note,
.hero .device-frame,
.hero .badge-row {
  animation: heroRise 0.9s var(--ease-out-expo) both;
}
.hero .mascot { animation-delay: 0.05s; }
.hero .eyebrow { animation-delay: 0.12s; }
.hero h1 { animation-delay: 0.18s; }
.hero p.lead { animation-delay: 0.26s; }
.hero .hero-cta { animation-delay: 0.34s; }
.hero .hero-ph { animation-delay: 0.38s; }
.hero .hero-note { animation-delay: 0.42s; }
.hero .device-frame { animation-delay: 0.48s; }
.hero .badge-row { animation-delay: 0.62s; }

@media (prefers-reduced-motion: reduce) {
  .hero .mascot,
  .hero .eyebrow,
  .hero h1,
  .hero p.lead,
  .hero .hero-cta,
  .hero .hero-note,
  .hero .device-frame,
  .hero .badge-row {
    animation: none !important;
  }
}

/* Device stage — floating phone */
.hero-device-stage {
  position: relative;
  margin: 36px auto 8px;
  width: fit-content;
  max-width: 100%;
}
.hero-device-stage .device-frame.device-shot {
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.hero-device-stage::before {
  /* soft orange halo behind phone */
  content: "";
  position: absolute;
  left: 50%; top: 42%;
  transform: translate(-50%, -50%);
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(255,120,32,0.35) 0%, rgba(255,120,32,0.08) 40%, transparent 70%);
  filter: blur(8px);
  z-index: 0;
  pointer-events: none;
  animation: haloPulse 5s ease-in-out infinite;
}
@keyframes haloPulse {
  0%, 100% { opacity: 0.7; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.08); }
}
.hero-device-stage::after {
  content: "";
  position: absolute;
  left: 50%; bottom: -18px;
  transform: translateX(-50%);
  width: 180px; height: 36px;
  background: radial-gradient(ellipse, rgba(0,0,0,0.55) 0%, transparent 70%);
  z-index: 1;
  pointer-events: none;
}

/* Gradient text shimmer on Intelligent */
.text-gradient {
  background-size: 200% 200%;
  animation: gradientShift 8s ease infinite;
}
@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* —— Loop 3: Page drama —— */

/* Section rhythm with hairline dividers */
.section + .section {
  border-top: 1px solid transparent;
}
.section-alt {
  background:
    radial-gradient(80% 60% at 50% 0%, rgba(255,120,32,0.04) 0%, transparent 55%),
    var(--bg-secondary);
}

/* Feature cards grid — magazine quality */
#features .card,
.section#features .card {
  padding: 34px 30px 30px;
}
#features .card h3 {
  font-size: 18px;
  letter-spacing: -0.02em;
}

/* Two-column spotlights */
.spotlight-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px 64px;
  align-items: center;
}
@media (max-width: 900px) {
  .spotlight-grid { grid-template-columns: 1fr; gap: 36px; }
  .spotlight-grid .order-device { order: -1; }
}

/* Dark sections: luxury copy measure */
section[style*="navy-950"] h2 {
  letter-spacing: -0.035em;
  line-height: 1.12;
}
section[style*="navy-950"] p {
  line-height: 1.65;
}
section[style*="navy-950"] .btn-ghost-dark {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Pricing: hero card pops */
.price-card.featured {
  box-shadow:
    0 32px 64px rgba(35,181,98,0.16),
    0 0 0 1px rgba(35,181,98,0.25);
  z-index: 1;
}
.price-card.featured .badge-best {
  box-shadow: 0 8px 20px rgba(35,181,98,0.35);
}

/* Tutorials: sticky phone presence */
.steps-sticky .device-frame.device-shot {
  box-shadow: var(--shadow-device);
}
.grid-tutorial .tutorial-title {
  font-size: clamp(26px, 3.5vw, 32px);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

/* Feature page tabs — glass strip */
body.content-page .tabs-sticky-host {
  background: linear-gradient(180deg, rgba(247,248,252,0.96) 0%, rgba(247,248,252,0.88) 70%, transparent 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(20,22,43,0.04);
  margin-bottom: 36px;
  padding-bottom: 10px;
}
body.content-page .tabs-nav button {
  border-radius: 999px;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.2s;
}
body.content-page .tabs-nav button.active {
  box-shadow: 0 8px 20px rgba(232,88,8,0.22);
}

/* —— Loop 4: Finishing craft —— */

/* Buttons: magnetic lift + press */
.btn:active { transform: translateY(0) scale(0.98) !important; }
.btn-primary {
  box-shadow:
    0 14px 32px rgba(232, 88, 8, 0.34),
    inset 0 1px 0 rgba(255,255,255,0.22);
}
.btn-ghost-dark {
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}

/* App Store badge: metal sheen */
.badge-appstore {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.badge-appstore::after {
  content: "";
  position: absolute;
  top: 0; left: -70%;
  width: 40%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.18), transparent);
  transform: skewX(-18deg);
  transition: left 0.7s ease;
  z-index: 1;
  pointer-events: none;
}
.badge-appstore:hover::after { left: 130%; }
.badge-appstore > * { position: relative; z-index: 2; }

/* Nav links: subtle fill */
.nav-links a.nav-link {
  position: relative;
}
.nav-links a.nav-link.active {
  color: var(--navy-900);
  background: rgba(255,120,32,0.08);
}

/* Footer luxury */
.site-footer {
  background:
    radial-gradient(50% 40% at 50% 0%, rgba(255,120,32,0.12) 0%, transparent 60%),
    var(--navy-950);
}
.footer-col a:hover {
  color: #fff;
  padding-left: 2px;
}

/* Shot cards: caption fade-in on hover */
.shot-card figcaption strong {
  transition: color 0.2s;
}
.shot-card:hover figcaption strong {
  color: var(--orange-600);
}

/* Page hero: stronger type */
.page-hero h1 {
  font-size: clamp(34px, 5.2vw, 52px);
  max-width: 16ch;
  margin-left: auto;
  margin-right: auto;
}
.page-hero p {
  max-width: 42ch;
}

/* Legal content measure */
body.content-page main .section {
  padding-top: 48px;
  padding-bottom: 72px;
}
body.content-page .page-hero + .section {
  padding-top: 24px;
}

/* What's new version pills */
.news-version {
  box-shadow: 0 4px 12px rgba(255,120,32,0.15);
}

/* CTA band: immersive */
.cta-band {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(70% 80% at 50% 120%, rgba(255,120,32,0.28) 0%, transparent 55%),
    radial-gradient(40% 50% at 10% 0%, rgba(30,43,104,0.6) 0%, transparent 50%),
    linear-gradient(160deg, #0d1230 0%, #06091E 100%);
  padding: 108px 0;
}
.cta-band h2 {
  font-size: clamp(30px, 4.5vw, 44px);
  max-width: 14ch;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.1;
}

/* Scroll progress bar (craft) */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  z-index: 2000;
  background: linear-gradient(90deg, var(--orange-500), var(--orange-300));
  box-shadow: 0 0 12px rgba(255,120,32,0.55);
  pointer-events: none;
  transition: width 0.05s linear;
}

/* Smooth card icon glow */
.card-icon {
  box-shadow: 0 8px 20px rgba(255,120,32,0.12);
}

/* Stats underline accent */
.stats-band .card h3 {
  position: relative;
  display: inline-block;
}
.stats-band .card h3::after {
  content: "";
  display: block;
  width: 36px;
  height: 3px;
  margin: 12px auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--orange-500), transparent);
  opacity: 0.7;
}

/* iPad pair: subtle scale hierarchy */
.device-frame.ipad.device-shot {
  filter: drop-shadow(0 28px 48px rgba(6,9,30,0.2));
}
.device-frame.ipad-mini.device-shot {
  filter: drop-shadow(0 22px 40px rgba(6,9,30,0.16));
  opacity: 0.98;
}

/* Mobile menu glass */
.mobile-menu {
  background: rgba(247,248,252,0.96);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
}

/* Container breathing */
.container {
  padding-left: clamp(20px, 4vw, 32px);
  padding-right: clamp(20px, 4vw, 32px);
}

/* Selection brand */
::selection {
  background: rgba(255, 120, 32, 0.28);
  color: var(--navy-950);
}

/* Final: hide broken orphan comment artifacts if any */

/* ==========================================================================
   SOCIAL PROOF — App Store ratings & reviews (responsive, professional)
   ========================================================================== */
.social-proof {
  --sp-star: #F5A623;
  --sp-star-soft: #F7C14B;
  position: relative;
  padding: clamp(56px, 9vw, 108px) 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(255,120,32,0.07) 0%, transparent 60%),
    linear-gradient(180deg, var(--bg-page) 0%, #FFFFFF 42%, var(--bg-page) 100%);
}
.social-proof-inner {
  position: relative;
  z-index: 1;
  max-width: 1080px;
}

/* Head */
.social-proof-head {
  text-align: center;
  max-width: 34rem;
  margin: 0 auto clamp(28px, 5vw, 40px);
  padding: 0 4px;
}
.social-proof-head .eyebrow {
  margin-bottom: 14px;
}
.social-proof-head h2 {
  margin: 0 0 12px;
  font-size: clamp(1.5rem, 1.1rem + 1.8vw, 2.5rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text-primary);
}
.social-proof-lead {
  margin: 0 auto;
  max-width: 28rem;
  font-size: clamp(0.9375rem, 0.9rem + 0.25vw, 1.0625rem);
  line-height: 1.55;
  color: var(--text-secondary);
}

/* Rating panel — centered, calm, App Store–like */
.social-rating-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  width: min(100%, 28rem);
  margin: 0 auto clamp(36px, 6vw, 52px);
  padding: clamp(28px, 5vw, 40px) clamp(20px, 4vw, 36px);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.95) 0%, #fff 100%);
  border: 1px solid var(--border-card);
  border-radius: clamp(20px, 3vw, 28px);
  box-shadow:
    0 1px 2px rgba(20,22,43,0.03),
    0 12px 32px rgba(20,22,43,0.05),
    0 0 0 1px rgba(255,255,255,0.8) inset;
}
.social-rating-score {
  font-size: clamp(3.25rem, 2.4rem + 3vw, 4.25rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.95;
  font-family: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, sans-serif;
  background: linear-gradient(160deg, var(--orange-600) 0%, var(--orange-500) 45%, var(--orange-300) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--orange-500); /* fallback */
}
.social-stars {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--sp-star);
  line-height: 1;
}
.star-icon {
  width: 15px;
  height: 15px;
  display: block;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 1px rgba(245,166,35,0.25));
}
.social-stars-lg {
  gap: 4px;
  margin: 2px 0 4px;
}
.social-stars-lg .star-icon {
  width: clamp(18px, 4vw, 22px);
  height: clamp(18px, 4vw, 22px);
}
.social-rating-meta {
  margin: 0;
  font-size: clamp(0.8125rem, 0.78rem + 0.2vw, 0.9375rem);
  line-height: 1.45;
  color: var(--text-tertiary);
  max-width: 22rem;
}
.social-rating-meta strong {
  color: var(--text-secondary);
  font-weight: 700;
}
.social-rating-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
  padding: 11px 18px;
  border-radius: 999px;
  background: var(--navy-900);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(10,13,40,0.22);
  transition: transform 0.25s var(--ease), background 0.2s, box-shadow 0.25s;
  min-height: 44px; /* touch target */
  -webkit-tap-highlight-color: transparent;
}
.social-rating-link:hover {
  transform: translateY(-2px);
  background: var(--navy-800);
  color: #fff;
  box-shadow: 0 12px 28px rgba(10,13,40,0.28);
}
.social-rating-link:active {
  transform: translateY(0);
}
.social-rating-link .badge-apple {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: 0.95;
}
.social-rating-chevron {
  flex-shrink: 0;
  opacity: 0.7;
  transition: transform 0.25s var(--ease), opacity 0.2s;
}
.social-rating-link:hover .social-rating-chevron {
  transform: translateX(2px);
  opacity: 1;
}

/* Reviews grid — 1 col on phone/tablet, equal 3-up on desktop (avoids 2+1 orphan) */
.reviews-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(14px, 2.2vw, 20px);
  align-items: stretch;
  width: 100%;
  max-width: 26rem;
  margin-inline: auto;
}
@media (min-width: 900px) {
  .reviews-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: none;
    margin-inline: 0;
  }
}

.review-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  min-height: 100%;
  padding: clamp(20px, 3vw, 28px);
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: clamp(18px, 2.5vw, 24px);
  box-shadow:
    0 1px 2px rgba(20,22,43,0.03),
    0 10px 28px rgba(20,22,43,0.04);
  transition:
    transform 0.35s var(--ease),
    box-shadow 0.35s var(--ease),
    border-color 0.25s;
  position: relative;
}
.review-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  border-radius: inherit;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  background: linear-gradient(90deg, transparent 5%, rgba(255,120,32,0.45) 50%, transparent 95%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
@media (hover: hover) and (pointer: fine) {
  .review-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 44px rgba(20,22,43,0.09);
    border-color: rgba(255,120,32,0.14);
  }
  .review-card:hover::before { opacity: 1; }
}

.review-card-stars {
  justify-content: flex-start;
  margin: 0;
}
.review-card-stars .star-icon {
  width: 14px;
  height: 14px;
}

.review-title {
  margin: 0;
  font-size: clamp(0.975rem, 0.94rem + 0.2vw, 1.0625rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--text-primary);
}

.review-body {
  margin: 0;
  flex: 1 1 auto;
  font-size: clamp(0.875rem, 0.85rem + 0.15vw, 0.9375rem);
  line-height: 1.62;
  color: var(--text-secondary);
}

.review-card-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 6px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}

.review-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9375rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--orange-700);
  background: linear-gradient(145deg, rgba(255,120,32,0.18), rgba(255,120,32,0.06));
  border: 1px solid rgba(255,120,32,0.16);
  flex-shrink: 0;
}

.review-who {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
}
.review-author {
  font-size: 0.875rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.review-via {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-tertiary);
}

.social-proof-note {
  margin: clamp(28px, 4.5vw, 36px) auto 0;
  max-width: 26rem;
  padding: 0 8px;
  text-align: center;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--text-tertiary);
}
.social-proof-note a {
  color: var(--orange-600);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgba(232,88,8,0.28);
  transition: border-color 0.2s;
}
.social-proof-note a:hover {
  border-bottom-color: var(--orange-600);
}

/* Narrow phones: slightly tighter panel, full-width link comfort */
@media (max-width: 380px) {
  .social-rating-panel {
    padding-inline: 16px;
    border-radius: 18px;
  }
  .social-rating-link {
    width: 100%;
  }
  .review-card {
    padding: 18px 16px 16px;
  }
}

/* Prefer reduced motion already handled globally; keep cards static on touch */
@media (prefers-reduced-motion: reduce) {
  .review-card,
  .social-rating-link,
  .social-rating-chevron {
    transition: none;
  }
}

/* ==========================================================================
   ELITE FINAL — section system, spotlights, checklists, secondary pages
   ========================================================================== */

/* Section surface variants */
.section-muted { background: var(--bg-secondary); }
.section-dark {
  background:
    radial-gradient(80% 60% at 50% 0%, rgba(255,120,32,0.12) 0%, transparent 55%),
    linear-gradient(180deg, var(--navy-950) 0%, var(--navy-900) 100%);
  color: #fff;
}
.section-dark .section-head h2,
.section-dark h2 { color: #fff; }
.section-dark .section-head p { color: var(--text-on-dark-soft); }

.section-tight.stats-band { padding-top: clamp(28px, 4vw, 40px); }

/* Layout helpers */
.grid-align-center { align-items: center; }
.grid-align-end { align-items: end; }
.grid-align-stretch { align-items: stretch; }
.grid-gap-lg { gap: clamp(32px, 5vw, 56px); }
.grid-gap-md { gap: 40px; }

.u-center { text-align: center; }
.u-mt-md { margin-top: 32px; }
.u-mt-sm { margin-top: 24px; }
.container-narrow { max-width: 820px; margin-inline: auto; }
.container-pricing { max-width: 1000px; margin-inline: auto; }

.stack-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.media-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Spotlight (dark feature band with device mock) */
.spotlight-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 56px);
  align-items: center;
}
@media (max-width: 900px) {
  .spotlight-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .spotlight-layout .spotlight-media { order: -1; }
  .spotlight-layout.is-media-first .spotlight-media { order: -1; }
  .spotlight-layout.is-media-first .spotlight-copy { order: 0; }
}
.spotlight-title {
  font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.5rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 18px;
  color: inherit;
}
.spotlight-lead {
  margin: 0 0 28px;
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.0625rem);
  line-height: 1.6;
  color: var(--text-on-dark-soft);
  max-width: 36rem;
}
.section-dark .spotlight-lead { color: var(--text-on-dark-soft); }
.section-muted .spotlight-lead,
.section:not(.section-dark) .spotlight-lead {
  color: var(--text-secondary);
}

/* Checklist with brand ticks */
.check-list {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-on-dark-soft);
}
.section:not(.section-dark) .check-list li { color: var(--text-secondary); }
.check-list li svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 1px;
  color: var(--orange-300);
}
.section:not(.section-dark) .check-list li svg { color: var(--orange-600); }
.check-list a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 600;
}
.section:not(.section-dark) .check-list a {
  color: var(--orange-600);
}

/* Soft light spotlight (breaks navy-on-navy rhythm) */
.section-spotlight-light {
  background:
    radial-gradient(70% 50% at 80% 20%, rgba(255,120,32,0.07) 0%, transparent 55%),
    var(--bg-secondary);
  color: var(--text-primary);
}
.section-spotlight-light .spotlight-title { color: var(--text-primary); }
.section-spotlight-light .spotlight-lead { color: var(--text-secondary); }
.section-spotlight-light .check-list li { color: var(--text-secondary); }
.section-spotlight-light .check-list li svg { color: var(--orange-600); }
.section-spotlight-light .check-list a {
  color: var(--orange-600);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* FAQ in-copy links */
.faq-a a,
.faq-a-inner a,
.prose-link {
  color: var(--orange-600);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(232,88,8,0.28);
  transition: border-color 0.2s;
}
.faq-a a:hover,
.faq-a-inner a:hover,
.prose-link:hover {
  border-bottom-color: var(--orange-600);
}

/* Pricing helpers */
.pricing-note {
  text-align: center;
  color: var(--text-secondary);
  font-size: 15px;
  max-width: 40rem;
  margin: 0 auto 32px;
  line-height: 1.55;
}
.pricing-legal {
  text-align: center;
  margin-top: 28px;
  font-size: 13px;
  color: var(--text-tertiary);
  line-height: 1.55;
  max-width: 48rem;
  margin-inline: auto;
}
.pricing-legal a { color: var(--orange-600); font-weight: 600; }
.info-box-centered {
  max-width: 820px;
  margin: 0 auto 56px;
}
.badge-popular {
  background: var(--orange-500) !important;
  color: #fff !important;
}
.section-pad-top { padding-top: 56px; }

/* Feature panels (secondary) */
.feature-panel-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}
.feature-panel-head .card-icon,
.feature-panel-icon {
  margin-bottom: 0;
  flex-shrink: 0;
}
.feature-panel-head h2 {
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 1.875rem);
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.feature-panel-lead {
  color: var(--text-secondary);
  font-size: clamp(1rem, 0.95rem + 0.2vw, 1.0625rem);
  margin: 0 0 32px;
  line-height: 1.6;
  max-width: 42rem;
}

/* Content-page polish */
body.content-page .tabs-sticky-host {
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(247, 248, 252, 0.88);
}
body.content-page .tabs-nav button {
  transition: color 0.2s, background 0.2s, box-shadow 0.2s;
}
body.content-page .tabs-nav button:hover {
  color: var(--text-primary);
  background: rgba(255,120,32,0.06);
}
body.content-page .tab-panel {
  padding-block: 8px 28px;
}
body.content-page .tab-panel .grid {
  margin-top: 4px;
}
body.content-page .card {
  height: 100%;
}
body.content-page .data-table {
  margin-top: 28px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
body.content-page .page-hero {
  padding-bottom: clamp(40px, 6vw, 56px);
}
body.content-page .section {
  padding-block: clamp(56px, 8vw, 88px);
}
body.content-page .page-hero + .section {
  padding-top: clamp(40px, 5vw, 56px);
}

/* Price cards equal height on teaser */
.price-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}
.price-card .btn,
.price-card a.btn {
  margin-top: auto;
}

/* Soft separator between stacked dark→light */
.section-dark + .section-spotlight-light,
.section-dark + .section-muted {
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

/* Mobile menu close already styled; ensure consistent */
.mobile-menu-close {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Dropdown width utility */
.dropdown-wide .dropdown-inner { min-width: min(460px, 92vw); }

/* Stats cards — number hierarchy */
.stats-band .card h3 {
  font-size: clamp(2rem, 1.5rem + 2vw, 2.75rem);
  margin-bottom: 10px;
  line-height: 1;
}
.stats-band .card p {
  font-size: 14.5px;
  line-height: 1.5;
}

.feature-library-title {
  font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.375rem);
  margin: 0 0 6px;
  letter-spacing: -0.02em;
}
.pricing-trial-note {
  font-size: 13px;
  color: var(--text-tertiary);
  margin-top: -16px;
  margin-bottom: 0;
  text-align: center;
  line-height: 1.5;
}

/* Content typography helpers */
.h3-tight { font-size: 19px; margin-bottom: 16px; }
.h3-spaced { font-size: 20px; margin: 32px 0 16px; }
.h2-section { font-size: 22px; margin-bottom: 18px; letter-spacing: -0.02em; }
.feature-panel-head-title { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 1.875rem); margin-bottom: 10px; }
.feature-panel-h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 1.875rem); margin: 0; }
.text-muted { color: var(--text-secondary); font-size: 15.5px; line-height: 1.6; }
.text-muted-lg { color: var(--text-secondary); font-size: 17px; line-height: 1.6; }
.text-muted-sm { color: var(--text-secondary); font-size: 14.5px; line-height: 1.55; }
.mb-0 { margin-bottom: 0 !important; }
.mb-xxs { margin-bottom: 4px; }
.mb-xs { margin-bottom: 12px; }
.mb-sm { margin-bottom: 16px; }
.mb-md { margin-bottom: 24px; }
.mb-lg { margin-bottom: 40px; }
.mt-xs { margin-top: 8px; }
.my-xs { margin: 10px 0; }
.max-w-prose { max-width: 640px; }
.fg-1 { flex-grow: 1; }
.fg-15 { flex-grow: 1.5; }
.fg-185 { flex-grow: 1.85; }
.fg-2 { flex-grow: 2; }

.text-on-dark { color: #fff; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.92em; }
.section-dark code { color: var(--orange-200); }

/* ==========================================================================
   FEATURES PAGE — elite organisation & layout
   ========================================================================== */
.features-page .page-hero.features-hero {
  padding-bottom: clamp(36px, 5vw, 52px);
}
.features-page .features-hero h1 {
  max-width: 16ch;
  margin-inline: auto;
}
.features-page .features-hero p {
  max-width: 36rem;
}

.features-overview-section {
  padding-top: 0;
  padding-bottom: clamp(28px, 4vw, 40px);
}
.features-overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 18px);
}
@media (max-width: 860px) {
  .features-overview { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; }
}
.features-overview-card {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: clamp(18px, 2.5vw, 24px);
  border-radius: 20px;
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  box-shadow: var(--shadow-card);
  cursor: pointer;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.2s;
  font: inherit;
  color: inherit;
  width: 100%;
}
.features-overview-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
  border-color: rgba(255,120,32,0.18);
}
.features-overview-card:focus-visible {
  outline: 2px solid var(--orange-500);
  outline-offset: 3px;
}
.features-overview-kicker {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange-600);
}
.features-overview-card strong {
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  line-height: 1.25;
}
.features-overview-card > span:last-child {
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--text-secondary);
}

.features-detail-section {
  padding-top: clamp(8px, 1.5vw, 16px);
  padding-bottom: clamp(64px, 8vw, 96px);
}
.features-shell {
  max-width: 1080px;
}

/* Grouped sticky tabs */
.features-tabs-host {
  position: sticky;
  top: var(--nav-h);
  z-index: 45;
  margin: 0 0 clamp(28px, 4vw, 40px);
  padding: 10px 0 12px;
  background: linear-gradient(180deg, rgba(247,248,252,0.97) 0%, rgba(247,248,252,0.92) 75%, transparent 100%);
  backdrop-filter: blur(16px) saturate(1.15);
  -webkit-backdrop-filter: blur(16px) saturate(1.15);
  border-bottom: 1px solid rgba(20,22,43,0.06);
}
.features-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 4px 2px 6px;
  margin: 0;
}
.features-tabs::-webkit-scrollbar { display: none; }
.tabs-group-label {
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  padding: 0 4px 0 8px;
  opacity: 0.85;
  user-select: none;
}
.tabs-group-sep {
  flex-shrink: 0;
  width: 1px;
  height: 22px;
  background: var(--border-subtle);
  margin: 0 6px;
  opacity: 0.9;
}
.features-tabs button[role="tab"] {
  flex-shrink: 0;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-secondary);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, border-color 0.2s, transform 0.2s;
  white-space: nowrap;
}
.features-tabs button[role="tab"]:hover {
  color: var(--text-primary);
  border-color: rgba(255,120,32,0.2);
  background: #fff;
}
.features-tabs button[role="tab"].active,
.features-tabs button[role="tab"][aria-selected="true"] {
  background: var(--navy-900);
  color: #fff;
  border-color: var(--navy-900);
  box-shadow: 0 8px 20px rgba(10,13,40,0.18);
}
@media (max-width: 640px) {
  .tabs-group-label { display: none; }
  .tabs-group-sep { margin: 0 2px; height: 18px; }
  .features-tabs button[role="tab"] { padding: 9px 14px; font-size: 13px; }
}

/* Active panel as a calm content surface */
.feature-panels {
  min-height: 320px;
}
.features-page .tab-panel {
  display: none;
  padding: clamp(24px, 3.5vw, 36px);
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: clamp(20px, 2.5vw, 28px);
  box-shadow:
    0 1px 2px rgba(20,22,43,0.03),
    0 16px 40px rgba(20,22,43,0.05);
}
.features-page .tab-panel.active {
  display: block;
  animation: fadeUp 0.35s var(--ease);
}
.features-page .tab-panel[hidden] {
  display: none !important;
}

/* Panel header */
.features-page .feature-panel-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 12px;
  flex-wrap: wrap;
}
.features-page .feature-panel-head .card-icon,
.features-page .feature-panel-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  margin-bottom: 0;
  flex-shrink: 0;
}
.features-page .feature-panel-head h2,
.features-page .feature-panel-head .feature-panel-h2 {
  margin: 0;
  font-size: clamp(1.4rem, 1.15rem + 1vw, 1.85rem);
  letter-spacing: -0.03em;
  line-height: 1.2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.features-page .feature-panel-titles {
  min-width: 0;
  flex: 1;
}
.features-page .feature-panel-lead,
.features-page .tab-panel > .text-muted-lg {
  margin: 0 0 clamp(22px, 3vw, 28px);
  max-width: 44rem;
  font-size: clamp(0.95rem, 0.9rem + 0.25vw, 1.0625rem);
  line-height: 1.6;
  color: var(--text-secondary);
}

/* Section titles inside panels */
.features-page .tab-panel > h3,
.features-page .feature-library-title,
.features-page .h2-section,
.features-page .h3-tight,
.features-page .h3-spaced {
  margin-top: clamp(28px, 4vw, 40px);
  margin-bottom: 14px;
  padding-top: 4px;
  border-top: 1px solid var(--border-subtle);
  letter-spacing: -0.02em;
}
.features-page .tab-panel > h3:first-of-type,
.features-page .feature-panel-lead + h3,
.features-page .feature-panel-lead + .h3-tight,
.features-page .info-box + h3,
.features-page .info-box + .h3-tight,
.features-page .info-box + .h3-spaced,
.features-page .grid + h3,
.features-page .grid + .h3-tight,
.features-page .grid + .h3-spaced,
.features-page .grid + .feature-library-title,
.features-page .steps + h3,
.features-page .feature-subnav + .info-box + h3 {
  /* keep border for major sections but reduce first-after-intro clutter via spacing only */
}
.features-page .tab-panel > .feature-panel-head + .feature-panel-lead + .info-box,
.features-page .tab-panel > .feature-panel-head + .feature-panel-lead + .grid {
  margin-top: 0;
}

/* Cards & grids inside panels */
.features-page .tab-panel .grid {
  gap: clamp(12px, 2vw, 16px);
  margin-bottom: 4px;
}
.features-page .tab-panel .card {
  height: 100%;
  padding: 22px 20px;
  border-radius: 18px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.2s;
}
@media (hover: hover) and (pointer: fine) {
  .features-page .tab-panel .card:hover {
    transform: translateY(-3px);
    border-color: rgba(255,120,32,0.14);
  }
}
.features-page .tab-panel .card h3 {
  font-size: 15.5px;
  margin-bottom: 8px;
  letter-spacing: -0.015em;
}
.features-page .tab-panel .card p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-secondary);
  margin: 0;
}
.features-page .tab-panel .card .card-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  margin-bottom: 14px;
}

/* Info boxes */
.features-page .tab-panel .info-box {
  margin-bottom: 20px;
  border-radius: 16px;
}
.features-page .tab-panel .info-box + .info-box {
  margin-top: -4px;
}

/* Tables */
.features-page .data-table {
  width: 100%;
  margin: 16px 0 8px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-card);
  box-shadow: none;
}
.features-page .data-table th {
  background: var(--bg-secondary);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.features-page .data-table td {
  font-size: 14px;
  vertical-align: top;
}

/* Cues sub-navigation */
.feature-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 24px;
  padding: 12px;
  border-radius: 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
}
.feature-subnav a {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-secondary);
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
  text-decoration: none;
}
.feature-subnav a:hover {
  color: var(--orange-700);
  border-color: rgba(255,120,32,0.25);
  background: #fff;
}

/* Steps */
.features-page .steps {
  margin-bottom: 28px;
}
.features-page .step {
  padding: 16px 0;
}

/* Cue library categories */
.features-page .cue-category {
  border: 1px solid var(--border-card);
  border-radius: 16px;
  background: var(--bg-page);
  margin-bottom: 12px;
  overflow: hidden;
}
.features-page .cue-category summary {
  padding: 14px 18px;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.features-page .cue-category summary::-webkit-details-marker { display: none; }
.features-page .cue-category[open] summary {
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-secondary);
}
.features-page .cue-count {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-tertiary);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 4px 10px;
  border-radius: 999px;
}

/* Settings subsection titles */
.features-page #panel-settings > h3 {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  border-top: 1px solid var(--border-subtle);
  padding-top: 20px;
  margin-top: 28px;
  margin-bottom: 12px;
}
.features-page #panel-settings > h3:first-of-type {
  margin-top: 8px;
}

/* A11y grid polish */
.features-page .a11y-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
@media (max-width: 700px) {
  .features-page .a11y-grid { grid-template-columns: 1fr; }
}
.features-page .a11y-card {
  padding: 22px 20px;
  border-radius: 18px;
  background: var(--bg-page);
  border: 1px solid var(--border-card);
}
.features-page .a11y-card h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15.5px;
  margin: 0 0 8px;
}
.features-page .a11y-icon {
  display: inline-flex;
  width: 28px;
  height: 28px;
  color: var(--orange-600);
  flex-shrink: 0;
}
.features-page .a11y-icon svg { width: 22px; height: 22px; }
.features-page .a11y-card p {
  margin: 0;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* Export mocks spacing */
.features-page .export-mock {
  margin: 20px 0 24px;
}

/* Mobile panel padding */
@media (max-width: 560px) {
  .features-page .tab-panel {
    padding: 18px 14px;
    border-radius: 18px;
  }
}

/* Language switcher. The label stays the English word Language. */
.lang-switch { position: relative; }
.lang-switch > summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 10px;
}
.lang-switch > summary::-webkit-details-marker { display: none; }
.lang-switch[open] > summary,
.lang-switch > summary:hover { color: var(--navy-900); background: var(--bg-secondary); }
.lang-menu {
  position: absolute;
  top: calc(100% + 6px);
  inset-inline-end: 0;
  z-index: 40;
  width: min(280px, 78vw);
  max-height: min(70vh, 520px);
  overflow: auto;
  background: #fff;
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  box-shadow: var(--shadow-lift);
  padding: 8px;
}
.lang-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 14px;
}
.lang-menu a:hover,
.lang-menu a[aria-current="true"] { background: var(--bg-secondary); }
.lang-menu a small { color: var(--text-tertiary); font-size: 12px; }
html[dir="rtl"] .lang-menu { text-align: start; }
.mobile-langs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 8px 0 16px; }
.mobile-langs a {
  display: block;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
  color: inherit;
  text-decoration: none;
  font-size: 14px;
}
html[dir="rtl"] body { text-align: start; }
html[dir="rtl"] .check-list,
html[dir="rtl"] .feature-pills { padding-inline-start: 0; }
html[dir="rtl"] .shots-nav.prev svg,
html[dir="rtl"] .shots-nav.next svg { transform: scaleX(-1); }
@media (max-width: 980px) {
  .lang-switch-desktop { display: none; }
}
