/* =========================================================================
   Lodeline — marketing site design system
   Implements website/DESIGN.md. Dark warm-black + single gold accent.
   Mobile-first; enhanced at >=768 / >=1024. Honesty copy is always full-contrast.
   ========================================================================= */

/* ---- 1. Tokens ---------------------------------------------------------- */
:root {
  /* Brand / accent */
  --gold:        #E0A52A;
  --gold-bright: #F1BE4B;
  --gold-deep:   #B9821B;
  --gold-ink:    #201703;

  /* Warm dark surfaces */
  --bg:        #14110B;
  --surface:   #1C1813;
  --surface-2: #241F17;
  --surface-3: #2E281D;

  /* Lines / borders */
  --line:        #35301F;
  --line-strong: #4A4230;

  /* Text */
  --text:    #F4EFE6;
  --muted:   #C6BCA8;
  --muted-2: #948B79;
  --on-gold: var(--gold-ink);

  /* Score bands */
  --low:      #9A8F79;
  --moderate: #E0A52A;
  --high:     #F1BE4B;
  --track:    #2A241A;

  /* Status / feedback — distinct warm red, well clear of the gold family */
  --danger: #F0776A;

  /* Glow / shadow */
  --glow-gold:     0 0 0 1px rgba(224,165,42,.35), 0 18px 60px -18px rgba(224,165,42,.45);
  --shadow-card:   0 1px 0 rgba(255,255,255,.03) inset, 0 20px 50px -30px rgba(0,0,0,.8);
  --shadow-float:  0 40px 90px -40px rgba(0,0,0,.85);

  /* Type */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;

  /* Spacing (8px base) */
  --s1:4px; --s2:8px; --s3:12px; --s4:16px; --s5:24px; --s6:32px;
  --s7:48px; --s8:64px; --s9:96px; --s10:128px;

  /* Widths */
  --maxw: 1120px;
  --maxw-narrow: 720px;
  --gutter: clamp(16px, 5vw, 40px);

  /* Radius */
  --r-sm:8px; --r-md:14px; --r-lg:20px; --r-xl:28px; --r-pill:999px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  /* Keep hash targets clear of the sticky beta+nav chrome. */
  scroll-padding-top: 220px;
}
@media (min-width: 900px) {
  html { scroll-padding-top: 200px; }
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-bright); }

h1, h2, h3, h4 { line-height: 1.2; font-weight: 600; letter-spacing: -0.01em; }

ul { list-style: none; padding: 0; }

/* Focus */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

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

.skip-link {
  position: absolute; left: var(--s4); top: -60px; z-index: 200;
  background: var(--gold); color: var(--gold-ink);
  padding: var(--s3) var(--s4); border-radius: var(--r-md); font-weight: 600;
  transition: top .15s ease;
}
.skip-link:focus { top: var(--s4); color: var(--gold-ink); }

/* ---- 3. Layout helpers -------------------------------------------------- */
.container { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.narrow    { max-width: var(--maxw-narrow); margin-inline: auto; }

section { padding-block: var(--s9); position: relative; }
@media (min-width: 1024px){ section { padding-block: var(--s10); } }

.band-surface { background: var(--surface); }

.eyebrow {
  display: inline-block;
  font-size: 0.8125rem; font-weight: 600; line-height: 1;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--gold); margin-bottom: var(--s4);
}

.section-head { max-width: 640px; margin-bottom: var(--s7); }
.section-head.center { margin-inline: auto; text-align: center; }

h2.title { font-size: clamp(1.75rem, 3.5vw, 2.6rem); letter-spacing: -0.015em; }
.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem); font-weight: 400;
  line-height: 1.5; color: var(--muted); margin-top: var(--s4);
}
.body-muted { color: var(--muted); }

/* ---- 4. Buttons / chips ------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  font-family: inherit; font-size: 1rem; font-weight: 600; line-height: 1;
  padding: 14px 24px; border-radius: var(--r-pill); border: 1px solid transparent;
  cursor: pointer; text-align: center; white-space: nowrap;
  transition: transform .15s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
  min-height: 44px;
}
.btn-primary { background: var(--gold); color: var(--gold-ink); border-color: var(--gold); }
.btn-primary:hover { background: var(--gold-bright); color: var(--gold-ink); box-shadow: var(--glow-gold); transform: translateY(-1px); }
.btn-primary:active { background: var(--gold-deep); transform: translateY(0); }

.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); border-color: var(--line-strong); }

.btn-block { width: 100%; }

.chip {
  display: inline-flex; align-items: center; gap: var(--s2);
  background: var(--surface-3); color: var(--muted);
  border: 1px solid var(--line); border-radius: var(--r-pill);
  padding: 6px 14px; font-size: 0.875rem; font-weight: 500;
}
.chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); flex: none; }

.pro-pill {
  display: inline-flex; align-items: center;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--gold); border: 1px solid var(--gold); border-radius: var(--r-pill);
  padding: 3px 10px; line-height: 1;
}

/* Store badges (Google Play multicolor + App Store) */
.store-badge,
.play-badge {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 10px 16px; color: var(--text);
  min-height: 52px;
}
.store-badge .store-logo,
.play-badge svg {
  flex: none; width: 28px; height: 28px;
  display: block;
}
.store-badge .store-logo-apple {
  /* Optical center: Apple mark sits high in its glyph box. */
  transform: translateY(1px);
}
.store-badge .store-text {
  display: flex; flex-direction: column; justify-content: center;
  gap: 2px; text-align: left; line-height: 1.15;
}
.store-badge .pb-top,
.play-badge .pb-top {
  font-size: 0.7rem; color: var(--muted-2); letter-spacing: 0.04em; line-height: 1.2;
}
.store-badge .pb-main,
.play-badge .pb-main {
  font-size: 0.95rem; font-weight: 600; line-height: 1.2;
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
}
.store-badges-row {
  display: flex; flex-wrap: wrap; gap: var(--s3); justify-content: center;
  margin-bottom: var(--s5);
}

/* ---- 5. Wave motif ------------------------------------------------------ */
.waves {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  opacity: 0.05;
  background-image: repeating-linear-gradient(
    -20deg, transparent 0 26px, var(--gold) 26px 27px, transparent 27px 54px);
  -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 40%, transparent 78%);
          mask-image: radial-gradient(120% 90% at 50% 0%, #000 40%, transparent 78%);
}
.section-inner { position: relative; z-index: 1; }

/* ---- 6. Site chrome (beta float + nav stick together) ------------------- */
.site-chrome {
  position: sticky; top: 0; z-index: 100;
}
.beta-float {
  position: relative; z-index: 2;
  background:
    linear-gradient(180deg, rgba(224,165,42,.12), transparent 70%),
    var(--surface-2);
  border-bottom: 1px solid var(--line-strong);
  box-shadow: 0 18px 40px -28px rgba(0,0,0,.75);
}
.beta-float[hidden] { display: none !important; }
.beta-float-inner {
  position: relative;
  display: grid; gap: var(--s4);
  padding-block: var(--s4);
  padding-right: 48px;
}
.beta-float-eyebrow {
  display: inline-block;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold); margin-bottom: var(--s2);
}
.beta-float-title {
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  letter-spacing: -0.015em; margin: 0;
}
.beta-float-lead {
  margin-top: var(--s2); color: var(--muted); font-size: 0.95rem; max-width: 62ch;
}
.beta-float-lead strong { color: var(--text); font-weight: 600; }
.beta-float-progress { margin-top: var(--s4); max-width: 420px; }
.beta-float-progress-meta {
  display: flex; justify-content: space-between; gap: var(--s3); flex-wrap: wrap;
  font-size: 0.85rem; color: var(--muted); margin-bottom: var(--s2);
}
.beta-float-progress-meta strong,
.beta-float-count strong { color: var(--text); }
.beta-float-bar {
  height: 10px; border-radius: var(--r-pill);
  background: var(--track); border: 1px solid var(--line);
  overflow: hidden;
}
.beta-float-bar-fill {
  display: block; height: 100%; width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-bright));
  box-shadow: 0 0 18px rgba(224,165,42,.35);
  transition: width 1.1s cubic-bezier(.2,.8,.2,1);
}
.beta-float-spots {
  margin-top: var(--s2); font-size: 0.85rem; color: var(--text); font-weight: 500;
}
.beta-float-spots strong { color: var(--gold-bright); }
.beta-float-actions {
  display: flex; flex-direction: column; gap: var(--s3); align-items: flex-start;
  justify-content: center;
}
.beta-float-perks {
  display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4);
  color: var(--muted); font-size: 0.85rem; font-weight: 500;
}
.beta-float-perks li { display: inline-flex; align-items: center; gap: 6px; }
.beta-float-perks svg { color: var(--gold); flex: none; }
.beta-float-dismiss {
  position: absolute; top: 10px; right: var(--gutter);
  width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--line); border-radius: var(--r-md);
  color: var(--muted); cursor: pointer;
}
.beta-float-dismiss:hover { color: var(--text); border-color: var(--line-strong); background: var(--surface-3); }
@media (max-width: 899px) {
  .beta-float-lead { display: none; }
  .beta-float-progress { margin-top: var(--s3); }
  .beta-float-inner { padding-block: var(--s3); gap: var(--s3); }
}

.nav {
  position: relative; z-index: 1;
  transition: background .25s ease, border-color .25s ease;
  border-bottom: 1px solid transparent;
  background: rgba(20,17,11,.92);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.nav.scrolled {
  background: rgba(28,24,19,.92);
  border-bottom-color: var(--line);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; gap: var(--s4);
}
.brand { display: inline-flex; align-items: center; gap: var(--s2); color: var(--text); }
.brand:hover { color: var(--text); }
.brand .peak { display: block; flex-shrink: 0; width: 28px; height: 28px; object-fit: contain; }
.footer-brand .peak { width: 24px; height: 24px; }
.wordmark { font-size: 1.15rem; font-weight: 600; letter-spacing: -0.01em; }

.nav-links { display: none; align-items: center; gap: var(--s3); min-width: 0; flex-shrink: 1; }
.nav-links a {
  color: var(--muted); font-size: 0.875rem; font-weight: 500; white-space: nowrap;
  padding: 6px 2px; border-bottom: 2px solid transparent; transition: color .15s ease, border-color .15s ease;
}
.nav-links a:hover { color: var(--text); border-bottom-color: var(--gold); }

.nav-cta { display: none; flex-shrink: 0; white-space: nowrap; }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; background: transparent; border: 1px solid var(--line-strong);
  border-radius: var(--r-md); cursor: pointer; color: var(--text);
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.mobile-panel {
  display: none;
  background: var(--surface); border-bottom: 1px solid var(--line);
  padding: var(--s4) var(--gutter) var(--s6);
}
.mobile-panel.open { display: block; }
.mobile-panel a {
  display: block; color: var(--text); font-size: 1.05rem; font-weight: 500;
  padding: var(--s3) 0; border-bottom: 1px solid var(--line);
}
.mobile-panel .btn { margin-top: var(--s4); }

@media (min-width: 1024px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .nav-toggle { display: none; }
}

/* ---- 7. Hero ------------------------------------------------------------ */
.hero { padding-top: var(--s8); overflow: hidden; }
.hero-glow {
  position: absolute; z-index: 0; pointer-events: none;
  top: -10%; right: -10%; width: 60vw; height: 60vw; max-width: 700px; max-height: 700px;
  background: radial-gradient(circle, rgba(224,165,42,.16), transparent 62%);
}
.hero-grid { display: grid; gap: var(--s7); align-items: center; }
.hero-copy .cta-row {
  display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s6);
}
.hero-copy .cta-row .btn { flex: 1 1 auto; }
.hero h1 {
  font-size: clamp(2.35rem, 6vw, 4rem); line-height: 1.05; letter-spacing: -0.02em;
  font-weight: 600; margin-top: var(--s2);
}
.h1-accent {
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lead { margin-top: var(--s5); max-width: 34ch; }
.hero .lead strong { color: var(--text); font-weight: 600; }
.trust-line {
  margin-top: var(--s5); color: var(--text); font-weight: 500;
  display: flex; align-items: flex-start; gap: var(--s2);
}
.trust-line svg { flex: none; margin-top: 3px; color: var(--gold); }
.hero-badges { margin-top: var(--s6); display: flex; flex-wrap: wrap; gap: var(--s4); align-items: center; }

.hero-media { display: flex; justify-content: center; }

@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: 7fr 5fr; }
  .hero-copy .cta-row .btn { flex: 0 0 auto; }
  .hero .lead { max-width: 42ch; }
}

/* ---- 8. Phone mockup ---------------------------------------------------- */
.device {
  position: relative; width: 240px; max-width: 78vw;
  background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: 44px; padding: 10px;
  box-shadow: var(--shadow-float);
}
.device::before {
  content: ""; position: absolute; top: 16px; left: 50%; transform: translateX(-50%);
  width: 38%; height: 6px; border-radius: var(--r-pill);
  background: var(--line-strong); z-index: 2; opacity: .6;
}
.device img {
  width: 100%; aspect-ratio: 9 / 20; object-fit: cover; object-position: top;
  border-radius: 34px; display: block;
}
.device-hero { box-shadow: var(--shadow-float), var(--glow-gold); }
@media (min-width: 1024px) {
  .device { width: 300px; }
  .device-hero { animation: phoneFloat 6s ease-in-out infinite; }
}
@keyframes phoneFloat {
  0%,100% { transform: translateY(-4px); }
  50%     { transform: translateY(4px); }
}

.callout-chip {
  position: absolute; left: -16px; bottom: 200px; z-index: 3;
  display: inline-flex; align-items: center; gap: var(--s2);
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-pill); padding: 8px 14px; font-size: 0.85rem; font-weight: 600;
  box-shadow: var(--shadow-card);
}
.callout-chip .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--moderate); }
.callout-chip .mod { color: var(--gold); }

/* ---- 9. Trust strip ----------------------------------------------------- */
.trust-strip { border-block: 1px solid var(--line); padding-block: var(--s6); }
.trust-strip ul {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: var(--s3) var(--s5); color: var(--muted); font-size: 0.95rem;
}
.trust-strip li { display: inline-flex; align-items: center; gap: var(--s2); }
.trust-strip li svg { color: var(--gold); flex: none; }

/* ---- 10. Cards / grids -------------------------------------------------- */
.card-grid {
  display: grid; gap: var(--s5);
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: var(--s5); box-shadow: var(--shadow-card);
  transition: transform .18s ease, border-color .18s ease;
}
@media (min-width: 768px){ .card { padding: var(--s6); } }
.card h3, .card h4 { margin-bottom: var(--s3); }

.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: var(--r-md);
  background: var(--surface-3); border: 1px solid var(--line);
  color: var(--gold); font-weight: 700; font-size: 1.05rem; margin-bottom: var(--s4);
}
.card p { color: var(--muted); }

/* mini gauge (how-it-works card 2) */
.mini-gauge { display: flex; align-items: center; gap: var(--s3); margin-top: var(--s4); }
.mini-gauge .cap { font-size: 0.85rem; color: var(--gold); font-weight: 600; }

/* ---- 11. Feature rows --------------------------------------------------- */
.feature-row { display: grid; gap: var(--s7); align-items: center; }
.feature-row + .feature-row { margin-top: var(--s9); }
.feature-media { display: flex; justify-content: center; }
.feature-row h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); margin-bottom: var(--s4); }
.feature-row p { color: var(--muted); }
.feature-list { margin-top: var(--s5); display: grid; gap: var(--s3); }
.feature-list li { display: flex; gap: var(--s3); align-items: flex-start; color: var(--text); }
.feature-list li svg { flex: none; color: var(--gold); margin-top: 4px; }
.feature-list li strong { font-weight: 600; }
.feature-head { display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; }

.honesty-caption {
  margin-top: var(--s5); padding: var(--s4);
  background: var(--surface-3); border: 1px solid var(--line);
  border-left: 3px solid var(--gold); border-radius: var(--r-md);
  color: var(--text); font-size: 0.95rem;
}

@media (min-width: 1024px) {
  .feature-row { grid-template-columns: 1fr 1fr; gap: var(--s9); }
  .feature-row.reverse .feature-media { order: 2; }
  .feature-row.reverse .feature-text { order: 1; }
}

/* AI-geologist feature: text + icon card (no device image, to avoid a duplicate screenshot) */
.feature-callout {
  display: grid; gap: var(--s5); align-items: start;
  margin-top: var(--s9);
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: var(--s6); box-shadow: var(--shadow-card);
}
.feature-callout-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: var(--r-md);
  background: var(--surface-3); border: 1px solid var(--line); color: var(--gold);
}
.feature-callout .feature-head { margin-bottom: var(--s3); }
.feature-callout h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); margin-bottom: 0; }
.feature-callout p { color: var(--muted); }
@media (min-width: 768px) {
  .feature-callout { grid-template-columns: auto 1fr; gap: var(--s6); align-items: start; padding: var(--s7); }
}

/* ---- 12. Honesty band --------------------------------------------------- */
.honesty-band { background: var(--surface); }
.honesty-grid { display: grid; gap: var(--s7); align-items: center; }
.honesty-band h2 { font-size: clamp(1.75rem, 3.5vw, 2.6rem); }
.honesty-band p { color: var(--muted); margin-top: var(--s4); }
.honesty-band p strong { color: var(--text); }
.promise-list { margin-top: var(--s6); display: grid; gap: var(--s4); }
.promise {
  display: flex; gap: var(--s3); align-items: flex-start;
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: var(--s4);
}
.promise svg { flex: none; color: var(--gold); margin-top: 3px; }
.promise strong { color: var(--text); }
.promise span { color: var(--muted); }
.honesty-closing {
  margin-top: var(--s6); font-size: 1.15rem; font-weight: 600; color: var(--text);
}
@media (min-width: 1024px) {
  .honesty-grid { grid-template-columns: 5fr 7fr; }
  .honesty-media { order: 1; } .honesty-text { order: 2; }
}

/* ---- 13. Comparison table ---------------------------------------------- */
.compare-wrap {
  border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--shadow-card);
}
table.compare { width: 100%; border-collapse: collapse; }
table.compare caption { text-align: left; padding: 0 0 var(--s4); color: var(--muted); }
table.compare th, table.compare td {
  padding: var(--s4); text-align: left; font-size: 0.95rem; vertical-align: top;
  border-bottom: 1px solid var(--line);
}
table.compare thead th { background: var(--surface-2); font-weight: 600; color: var(--text); }
table.compare thead th.col-us {
  color: var(--gold); border-left: 3px solid var(--gold);
}
table.compare tbody th { font-weight: 500; color: var(--muted); }
table.compare td.col-us {
  background: rgba(224,165,42,.06); border-left: 3px solid var(--gold);
  color: var(--text); font-weight: 600;
}
table.compare td.col-them { color: var(--muted); }
table.compare tbody tr:last-child th, table.compare tbody tr:last-child td { border-bottom: 0; }
.mark { display: inline-flex; align-items: center; gap: var(--s2); }
.mark svg { flex: none; }
.mark.yes svg { color: var(--gold); }
.mark.no  { color: var(--muted-2); }
.compare-note { margin-top: var(--s5); color: var(--muted); text-align: center; }
.compare-footnote {
  margin-top: var(--s4); color: var(--muted-2); font-size: 0.85rem;
  text-align: center; max-width: 70ch; margin-inline: auto; line-height: 1.5;
}

/* desktop table only; mobile uses stacked cards */
.compare-cards { display: grid; gap: var(--s5); }
.compare-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s5); }
.compare-card.us { border-color: var(--gold); box-shadow: var(--glow-gold); }
.compare-card h3 { margin-bottom: var(--s4); display: flex; align-items: center; gap: var(--s2); }
.compare-card h3 .tag { font-size: 0.72rem; color: var(--gold-ink); background: var(--gold); border-radius: var(--r-pill); padding: 3px 9px; font-weight: 700; }
.compare-card dl { display: grid; gap: var(--s3); }
.compare-card dt { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted-2); }
.compare-card dd { color: var(--text); }
.compare-card.them dd { color: var(--muted); }

.compare-desktop { display: none; }
@media (min-width: 768px) {
  .compare-cards { display: none; }
  .compare-desktop { display: block; }
}

/* ---- 14. Pricing -------------------------------------------------------- */
.price-grid { display: grid; gap: var(--s5); align-items: start; }
.price-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-xl); padding: var(--s6); position: relative;
  box-shadow: var(--shadow-card);
}
.price-card.pro {
  background: var(--surface-2); border-color: var(--gold); box-shadow: var(--glow-gold);
  display: flex; flex-direction: column;
}
.price-ribbon {
  position: static; align-self: flex-start;
  background: var(--gold); color: var(--gold-ink);
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  padding: 5px 12px; border-radius: var(--r-pill);
  margin-bottom: var(--s3);
  max-width: 100%;
}
.price-card h3 { font-size: 1.4rem; margin-bottom: var(--s3); margin-top: 0; }
.price-amount { display: flex; align-items: baseline; gap: var(--s2); margin-bottom: var(--s2); }
.price-amount .amt { font-size: clamp(2.5rem, 6vw, 3.2rem); font-weight: 700; letter-spacing: -0.02em; }
.price-amount .per { color: var(--muted); font-weight: 500; }
.price-sub { color: var(--muted); margin-bottom: var(--s5); }
.price-sub.gold { color: var(--gold); font-weight: 600; }
.price-list { display: grid; gap: var(--s3); margin-bottom: var(--s6); }
.price-list li { display: flex; gap: var(--s3); align-items: flex-start; color: var(--text); }
.price-list li svg { flex: none; color: var(--gold); margin-top: 4px; }
.price-foot { margin-top: var(--s6); color: var(--muted); text-align: center; font-size: 0.95rem; }
@media (min-width: 768px) {
  .price-grid { grid-template-columns: 1fr 1fr; }
  .price-card.plus { grid-column: 1 / -1; }
}
@media (min-width: 1080px) {
  .price-grid { grid-template-columns: 1fr 1fr 1fr; }
  .price-card.plus { grid-column: auto; }
}

/* ---- 15. FAQ ------------------------------------------------------------ */
.faq-list { display: grid; gap: var(--s3); }
.faq-item {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  overflow: hidden;
}
.faq-item summary {
  list-style: none; cursor: pointer; padding: var(--s4) var(--s5);
  display: flex; align-items: center; justify-content: space-between; gap: var(--s4);
  font-size: 1.05rem; font-weight: 600; color: var(--text);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .ind {
  flex: none; width: 24px; height: 24px; position: relative; color: var(--gold);
  transition: transform .25s ease;
}
.faq-item[open] summary .ind { transform: rotate(45deg); }
.faq-item .ind::before, .faq-item .ind::after {
  content: ""; position: absolute; background: var(--gold); border-radius: 2px;
  left: 50%; top: 50%; transform: translate(-50%,-50%);
}
.faq-item .ind::before { width: 16px; height: 2px; }
.faq-item .ind::after  { width: 2px; height: 16px; }
.faq-answer { padding: 0 var(--s5) var(--s5); color: var(--muted); }
.faq-answer p { margin: 0; }
.faq-answer strong { color: var(--text); }

/* JS-enhanced accordion animation */
html.js .faq-answer-wrap { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .25s ease; }
html.js .faq-item[open] .faq-answer-wrap { grid-template-rows: 1fr; }
html.js .faq-answer { overflow: hidden; }

/* ---- 16. CTA band / form ------------------------------------------------ */
.cta-band { background: var(--surface); text-align: center; overflow: hidden; }
.cta-band .cta-glow {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(60% 60% at 50% 0%, rgba(224,165,42,.14), transparent 70%);
}
.cta-band h2 { font-size: clamp(1.75rem, 3.5vw, 2.6rem); }
.cta-band .play-badge,
.cta-band .store-badges-row { margin-bottom: var(--s5); }
.beta-form {
  display: flex; flex-direction: column; gap: var(--s4);
  margin-top: var(--s6); max-width: 560px; margin-inline: auto;
}
.device-picker {
  border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: var(--s4); margin: 0;
  background: var(--surface-2);
  text-align: left;
}
.device-picker.is-invalid {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(240,119,106,.18);
}
.device-picker-legend {
  float: left; width: 100%;
  font-size: 0.95rem; font-weight: 700; color: var(--text);
  margin: 0 0 var(--s2); padding: 0; letter-spacing: -0.01em;
}
.device-picker-hint {
  clear: both;
  font-size: 0.85rem; color: var(--muted); margin: 0 0 var(--s4); line-height: 1.4;
}
.device-picker-options {
  clear: both;
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3);
}
.device-option { cursor: pointer; display: block; }
.device-option input {
  position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none;
}
.device-option-card {
  position: relative;
  display: flex; align-items: center; gap: 12px;
  min-height: 64px; padding: 12px 14px;
  background: var(--surface-3); border: 2px solid var(--line-strong);
  border-radius: var(--r-md); color: var(--muted);
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease, color .15s ease;
}
.device-option-icon { flex: none; color: var(--muted); opacity: .85; }
.device-option-copy {
  display: flex; flex-direction: column; gap: 2px; text-align: left; min-width: 0;
}
.device-option-title { font-size: 1rem; font-weight: 700; color: var(--text); line-height: 1.2; }
.device-option-sub { font-size: 0.75rem; font-weight: 500; color: var(--muted-2); line-height: 1.2; }
.device-option-check {
  margin-left: auto; flex: none;
  width: 22px; height: 22px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 700;
  color: transparent; background: transparent; border: 1.5px solid var(--line-strong);
}
.device-option:hover .device-option-card {
  border-color: var(--gold); color: var(--text);
}
.device-option input:checked + .device-option-card {
  border-color: var(--gold);
  background: rgba(224,165,42,.14);
  box-shadow: var(--glow-gold);
  color: var(--text);
}
.device-option input:checked + .device-option-card .device-option-icon { opacity: 1; color: var(--text); }
.device-option input:checked + .device-option-card .device-option-check {
  color: var(--gold-ink); background: var(--gold); border-color: var(--gold);
}
.device-option input:focus-visible + .device-option-card {
  outline: 2px solid var(--gold); outline-offset: 2px;
}
@media (max-width: 420px) {
  .device-picker-options { grid-template-columns: 1fr; }
}
.beta-form-row {
  display: flex; flex-direction: column; gap: var(--s3);
}
.beta-form input[type="email"] {
  font-family: inherit; font-size: 1rem; color: var(--text);
  background: var(--surface-3); border: 1px solid var(--line);
  border-radius: var(--r-pill); padding: 14px 20px; min-height: 48px; width: 100%;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.beta-form input::placeholder { color: var(--muted-2); }
.beta-form input:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(224,165,42,.25);
}
.form-status { margin-top: var(--s4); min-height: 1.5em; font-weight: 500; }
.form-status.ok  { color: var(--gold-bright); }
.form-status.err { color: var(--danger); }
.cta-micro { margin-top: var(--s5); color: var(--muted); font-size: 0.95rem; }
.cta-honesty { margin-top: var(--s3); color: var(--text); font-weight: 500; }
@media (min-width: 560px) {
  .beta-form-row { flex-direction: row; align-items: stretch; }
  .beta-form-row input[type="email"] { flex: 1; }
  .beta-form-row .btn { flex: none; }
}

/* ---- 17. Footer --------------------------------------------------------- */
.footer { background: var(--surface); border-top: 1px solid var(--line); padding-block: var(--s8); }
.footer-grid { display: grid; gap: var(--s7); }
.footer-brand .brand { margin-bottom: var(--s3); }
.footer-brand p { color: var(--muted); max-width: 30ch; }
.footer h3 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted-2); margin-bottom: var(--s4); }
.footer ul { display: grid; gap: var(--s3); }
.footer ul a { color: var(--muted); font-weight: 500; }
.footer ul a:hover { color: var(--text); }
.footer-honesty {
  margin-top: var(--s7); padding-top: var(--s6); border-top: 1px solid var(--line);
  color: var(--text); font-size: 0.95rem; max-width: 90ch;
}
.footer-attr { margin-top: var(--s4); color: var(--muted-2); font-size: 0.875rem; }
.footer-copy { margin-top: var(--s4); color: var(--muted-2); font-size: 0.875rem; display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4); }
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

/* ---- 18. Legal pages ---------------------------------------------------- */
.legal-main { padding-block: var(--s8); }
.legal-main h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: var(--s3); }
.legal-updated { color: var(--muted-2); font-size: 0.9rem; margin-bottom: var(--s6); }
.legal-notice {
  background: var(--surface-2); border: 1px solid var(--line); border-left: 3px solid var(--gold);
  border-radius: var(--r-md); padding: var(--s4); color: var(--text);
  margin-bottom: var(--s7); font-size: 0.95rem;
}
.legal-body h2 { font-size: 1.3rem; margin-top: var(--s7); margin-bottom: var(--s3); }
.legal-body p { color: var(--muted); margin-bottom: var(--s4); }
.legal-body p strong { color: var(--text); }
.legal-back { display: inline-flex; align-items: center; gap: var(--s2); margin-top: var(--s7); }

/* ---- 19. Scroll reveal -------------------------------------------------- */
html.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .4s ease-out, transform .4s ease-out; }
html.js .reveal.in-view { opacity: 1; transform: none; }
html.js .reveal-stagger > * { opacity: 0; transform: translateY(16px); transition: opacity .4s ease-out, transform .4s ease-out; }
html.js .reveal-stagger.in-view > * { opacity: 1; transform: none; }
html.js .reveal-stagger.in-view > *:nth-child(2) { transition-delay: .06s; }
html.js .reveal-stagger.in-view > *:nth-child(3) { transition-delay: .12s; }
html.js .reveal-stagger.in-view > *:nth-child(4) { transition-delay: .18s; }

/* ---- 20. Reduced motion / forced colors -------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; scroll-behavior: auto !important;
  }
  html.js .reveal, html.js .reveal-stagger > * { opacity: 1 !important; transform: none !important; }
  .device-hero { animation: none !important; }
}
@media (forced-colors: active) {
  .btn-primary, .price-ribbon { border: 1px solid ButtonText; }
  .device { border-color: ButtonText; }
}

/* 6.5 "And the rest of the kit" — compact two-column feature strip (single column on phones). */
.feature-list-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 28px;
}
@media (max-width: 720px) {
  .feature-list-grid { grid-template-columns: 1fr; }
}

/* Beta-form honeypot: visually gone, still in the DOM for bots. */
.hp-field{position:absolute!important;left:-9999px!important;width:1px;height:1px;opacity:0;pointer-events:none}

/* ---- 21. Blog / SEO articles -------------------------------------------- */
.blog-main { padding-block: var(--s8); }
.blog-hero {
  padding-block: calc(var(--s8) + 48px) var(--s7);
  background:
    radial-gradient(ellipse 80% 60% at 70% 0%, rgba(224,165,42,.12), transparent 55%),
    var(--bg);
  border-bottom: 1px solid var(--line);
}
.blog-hero .eyebrow { display: inline-block; margin-bottom: var(--s3); }
.blog-crumb {
  display: flex; flex-wrap: wrap; gap: var(--s2); align-items: center;
  font-size: 0.875rem; color: var(--muted-2); margin-bottom: var(--s5);
}
.blog-crumb a { color: var(--muted); font-weight: 500; }
.blog-crumb a:hover { color: var(--gold); }
.blog-crumb .sep { color: var(--muted-2); }
.blog-hero h1 {
  font-size: clamp(1.85rem, 4.5vw, 2.75rem);
  line-height: 1.15; max-width: 22ch; margin-bottom: var(--s4);
}
.blog-meta {
  display: flex; flex-wrap: wrap; gap: var(--s3) var(--s5);
  color: var(--muted-2); font-size: 0.9rem; margin-bottom: var(--s5);
}
.blog-lead {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--muted); max-width: 62ch; margin: 0;
}
.blog-layout {
  display: grid; gap: var(--s7);
  padding-block: var(--s7);
}
@media (min-width: 960px) {
  .blog-layout {
    grid-template-columns: minmax(0, 1fr) 280px;
    align-items: start;
  }
}
.blog-prose { max-width: 68ch; }
.blog-prose h2 {
  font-size: clamp(1.35rem, 2.5vw, 1.65rem);
  margin-top: var(--s7); margin-bottom: var(--s3);
}
.blog-prose h3 {
  font-size: 1.15rem; margin-top: var(--s6); margin-bottom: var(--s3); color: var(--text);
}
.blog-prose p { color: var(--muted); margin-bottom: var(--s4); }
.blog-prose p strong { color: var(--text); }
.blog-prose ul, .blog-prose ol {
  color: var(--muted); margin: 0 0 var(--s5); padding-left: 1.25rem;
  display: grid; gap: var(--s2);
}
.blog-prose li::marker { color: var(--gold); }
.blog-prose a { color: var(--gold); font-weight: 600; }
.blog-prose a:hover { color: var(--gold-bright); }
.blog-prose figure {
  margin: var(--s6) 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.blog-prose figure img {
  display: block; width: 100%; height: auto; max-height: 520px; object-fit: cover; object-position: top;
}
.blog-prose figure.blog-hero-art img {
  max-height: none;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
}
.blog-prose figcaption {
  padding: var(--s3) var(--s4);
  color: var(--muted-2); font-size: 0.875rem; border-top: 1px solid var(--line);
}
.blog-callout {
  margin: var(--s6) 0;
  padding: var(--s5);
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: var(--r-md);
}
.blog-callout.punch {
  box-shadow: var(--glow-gold);
  background: linear-gradient(135deg, rgba(224,165,42,.1), var(--surface) 55%);
}
.blog-callout h2, .blog-callout h3 { margin-top: 0; }
.blog-callout p:last-child { margin-bottom: 0; }
.blog-cta-band {
  margin-top: var(--s7);
  padding: var(--s6);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  display: grid; gap: var(--s4);
}
.blog-cta-band h2 { margin: 0; font-size: 1.35rem; }
.blog-cta-band p { margin: 0; color: var(--muted); }
.blog-cta-actions { display: flex; flex-wrap: wrap; gap: var(--s3); }
.blog-aside {
  display: grid; gap: var(--s5);
  position: sticky; top: 88px;
}
.blog-aside-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s5);
}
.blog-aside-card h2 {
  font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--muted-2); margin: 0 0 var(--s4);
}
.blog-aside-card ul { display: grid; gap: var(--s3); }
.blog-aside-card a { color: var(--muted); font-weight: 500; font-size: 0.95rem; }
.blog-aside-card a:hover { color: var(--gold); }
.blog-aside-card .btn { width: 100%; justify-content: center; margin-top: var(--s2); }
.blog-index-grid {
  display: grid; gap: var(--s5);
  padding-block: var(--s7);
}
@media (min-width: 720px) {
  .blog-index-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
  .blog-index-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.blog-card {
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color .15s ease, transform .15s ease;
}
.blog-card:hover { border-color: var(--gold); transform: translateY(-2px); }
.blog-card-media {
  aspect-ratio: 16 / 10;
  background: var(--surface-2);
  overflow: hidden;
}
.blog-card-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: top; display: block;
}
.blog-card-body { padding: var(--s5); display: grid; gap: var(--s3); flex: 1; }
.blog-card-body .eyebrow { margin: 0; }
.blog-card-body h2 {
  font-size: 1.2rem; margin: 0; line-height: 1.25;
}
.blog-card-body h2 a { color: var(--text); }
.blog-card-body h2 a:hover { color: var(--gold); }
.blog-card-body p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.blog-card-meta { color: var(--muted-2); font-size: 0.8rem; margin-top: auto; }
.blog-related {
  margin-top: var(--s8);
  padding-top: var(--s7);
  border-top: 1px solid var(--line);
}
.blog-related h2 { font-size: 1.2rem; margin-bottom: var(--s5); }
.blog-related-grid { display: grid; gap: var(--s4); }
@media (min-width: 720px) {
  .blog-related-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.blog-related a {
  display: block; padding: var(--s4);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  color: var(--text); font-weight: 600; font-size: 0.95rem;
}
.blog-related a:hover { border-color: var(--gold); color: var(--gold); }
.blog-related a span { display: block; margin-top: var(--s2); color: var(--muted); font-weight: 500; font-size: 0.85rem; }
