/* ═══════════════════════════════════════════════════════════════════
   ATTY LABS — algo storefront
   Dark navy, TradingView-inspired. Original design © 2026 Atty Labs.
   ═══════════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════════════
   THEME TOKENS
   Light is the default. Dark is opt-in via data-theme="dark" on <html>,
   or automatic when the OS asks for it and the reader has not chosen.
   Every component reads these — never hardcode a surface or text colour.
   ═══════════════════════════════════════════════════════════════════════ */
:root {
  /* surfaces — light */
  --bg-deep:   #ffffff;
  --bg:        #f7f8fb;
  --bg-soft:   #f1f4f9;
  --card:      #ffffff;
  --card-hi:   #ffffff;
  --line:      #e2e6ee;
  --line-soft: #edf0f6;

  /* text — light */
  --text:      #0f1729;
  --text-dim:  #59637a;
  --text-faint:#8a94a8;

  /* brand — green stays, deepened so it is legible on white */
  --bull:      #00c46a;
  --bull-deep: #00a257;
  --bull-soft: rgba(0, 196, 106, .10);
  --bear:      #e11d48;
  --bear-soft: rgba(225, 29, 72, .10);
  --blue:      #2e7bff;
  --blue-soft: rgba(46, 123, 255, .10);
  --gold:      #a8801f;

  /* the ink that sits ON a green fill — near-black in both themes */
  --on-bull:   var(--on-bull);
  --shadow-sm: 0 1px 2px rgba(16,24,40,.05);
  --shadow:    0 1px 2px rgba(16,24,40,.04), 0 10px 28px -14px rgba(16,24,40,.18);
  --glow:      none;
  --nav-bg:    rgba(255, 255, 255, .86);
  --overlay:   rgba(15, 23, 41, .45);
  --inset:     #ffffff;
  --hl-mid:    #22c98a;
  --frame-glow: 0 24px 60px -34px rgba(16,24,40,.30);
  --chip-bg:   rgba(15, 23, 41, .04);
  --frame-bar: #f4f6fa;
  --frame-top: rgba(15,23,41,.04);
  --sheen:     rgba(255,255,255,.55);

  --radius: 14px;
  --radius-sm: 9px;
  --container: 1180px;
  --font-body: 'Barlow', -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  /* Headlines, numbers and small labels: condensed, tabular, scoreboard-like. */
  --font-display: 'Barlow Condensed', 'Arial Narrow', 'Segoe UI', sans-serif;
  /* Numbers and small labels: regular-width Barlow, even-width digits. Softer than condensed. */
  --font-mono: 'Barlow', -apple-system, 'Segoe UI', Roboto, sans-serif;
}

/* ── dark, chosen explicitly ── */
:root[data-theme="dark"] {
  --bg-deep:   #070b12;
  --bg:        #0b101a;
  --bg-soft:   #0e1523;
  --card:      #121a2a;
  --card-hi:   #182238;
  --line:      #1f2a40;
  --line-soft: #182136;
  --text:      #e9eef7;
  --text-dim:  #9aa7bd;
  --text-faint:#5f6d85;
  --bull:      #00e676;
  --bull-deep: #00b35c;
  --bull-soft: rgba(0, 230, 118, .12);
  --bear:      #ff3d71;
  --bear-soft: rgba(255, 61, 113, .12);
  --blue:      #2e7bff;
  --blue-soft: rgba(46, 123, 255, .12);
  --gold:      #c9a54b;
  --shadow-sm: none;
  --shadow:    0 24px 60px -32px rgba(0,0,0,.9);
  --glow:      0 6px 24px rgba(0, 230, 118, .28);
  --nav-bg:    rgba(7, 11, 18, .82);
  --overlay:   rgba(4, 7, 12, .8);
  --inset:     #070b12;
  --hl-mid:    #7fffc4;
  --frame-glow: 0 50px 140px -50px rgba(0, 0, 0, .95);
  --chip-bg:   rgba(18, 26, 42, .6);
  --frame-bar: rgba(10, 15, 25, .72);
  --frame-top: rgba(255,255,255,.07);
  --sheen:     rgba(255,255,255,.34);
}

/* ── dark, because the OS asked and the reader has not chosen ── */
@media (prefers-color-scheme: dark) {
  :root[data-theme="system"] {
    --bg-deep:   #070b12;
    --bg:        #0b101a;
    --bg-soft:   #0e1523;
    --card:      #121a2a;
    --card-hi:   #182238;
    --line:      #1f2a40;
    --line-soft: #182136;
    --text:      #e9eef7;
    --text-dim:  #9aa7bd;
    --text-faint:#5f6d85;
    --bull:      #00e676;
    --bull-deep: #00b35c;
    --bull-soft: rgba(0, 230, 118, .12);
    --bear:      #ff3d71;
    --bear-soft: rgba(255, 61, 113, .12);
    --blue:      #2e7bff;
    --blue-soft: rgba(46, 123, 255, .12);
    --gold:      #c9a54b;
    --shadow-sm: none;
    --shadow:    0 24px 60px -32px rgba(0,0,0,.9);
    --glow:      0 6px 24px rgba(0, 230, 118, .28);
    --nav-bg:    rgba(7, 11, 18, .82);
    --overlay:   rgba(4, 7, 12, .8);
    --inset:     #070b12;
    --hl-mid:    #7fffc4;
    --frame-glow: 0 50px 140px -50px rgba(0, 0, 0, .95);
    --chip-bg:   rgba(18, 26, 42, .6);
    --frame-bar: rgba(10, 15, 25, .72);
    --frame-top: rgba(255,255,255,.07);
    --sheen:     rgba(255,255,255,.34);
  }
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  font-family: var(--font-body);
  background: var(--bg-deep);
  color: var(--text);
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 22px; }
.section { padding: 84px 0; }
.section-tight { padding: 56px 0; }

/* ── headings ─────────────────────────────────────────────── */
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.015em; }
h1, h2, .display, .display-2 { font-family: var(--font-display); letter-spacing: -0.005em; }
.mono, [class*="stat"] b, .amount, .ed-score b, .pkg-stat b, .stat .v, .pnl { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }
.pkg-stat b, .ed-score b, .stat .v, .result-head .pnl { font-weight: 600; letter-spacing: -0.01em; }
h1 { font-size: clamp(34px, 5.4vw, 58px); font-weight: 800; }
h2 { font-size: clamp(26px, 3.6vw, 40px); font-weight: 750; }
h3 { font-size: 20px; font-weight: 650; }
.kicker {
  display: inline-block; font-size: 12.5px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--bull);
  margin-bottom: 14px;
}
.section-head { text-align: center; max-width: 760px; margin: 0 auto 46px; }
.section-head p { color: var(--text-dim); margin-top: 14px; font-size: 17.5px; }
.mono { font-family: var(--font-mono); }

/* ── nav ──────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.nav-inner { display: flex; align-items: center; gap: 28px; height: 66px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; color: var(--text); letter-spacing: -.01em; }
.logo:hover { text-decoration: none; }
.logo .bull-mark { font-size: 21px; }
.logo-img { width: 24px; height: 24px; border-radius: 6px; display: block; }
.logo .brand-sub { color: var(--text-faint); font-weight: 600; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; margin-left: 2px; }
.nav-links { display: flex; gap: 24px; margin-left: auto; }
.nav-links a { color: var(--text-dim); font-size: 14.5px; font-weight: 550; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
/* A button placed inside .nav-links: the rule above is `.nav-links a`, which beats
   `.btn-primary` on specificity and was painting the label dim grey on the green
   fill. Restate the button colours so that can't happen wherever the markup puts it. */
.nav-links a.btn-primary { color: var(--on-bull); font-weight: 700; }
.nav-links a.btn-ghost   { color: var(--text); font-weight: 700; }
.btn-sm { padding: 9px 18px; font-size: 14px; border-radius: 8px; }
.nav .btn { margin-left: 6px; }

/* ── buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-weight: 700; font-size: 15.5px;
  padding: 13px 26px; border-radius: 10px; border: 1px solid transparent;
  cursor: pointer; transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
  text-decoration: none !important;
}
.btn-primary {
  background: linear-gradient(180deg, var(--bull), var(--bull-deep));
  color: var(--on-bull);
  box-shadow: var(--glow);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 26px -10px rgba(0, 164, 90, .55); }
.btn-ghost {
  background: transparent; color: var(--text); border-color: var(--line);
}
.btn-ghost:hover { background: var(--card); }
.btn-lg { padding: 16px 34px; font-size: 17px; border-radius: 12px; }
.btn-block { width: 100%; }

/* ── hero ─────────────────────────────────────────────────── */
.hero {
  padding: 150px 0 70px;
  background:
    radial-gradient(1100px 480px at 50% -10%, rgba(46, 123, 255, .13), transparent 62%),
    radial-gradient(900px 420px at 82% 8%, rgba(0, 230, 118, .07), transparent 60%),
    var(--bg-deep);
  text-align: center;
}
.hero h1 { max-width: 900px; margin: 0 auto; }
.hero h1 .hl { color: var(--bull); }
.hero .sub {
  max-width: 680px; margin: 22px auto 0; color: var(--text-dim); font-size: 19px;
}
.hero-ctas { display: flex; gap: 14px; justify-content: center; margin-top: 32px; flex-wrap: wrap; }
.hero-trust {
  display: flex; gap: 26px; justify-content: center; flex-wrap: wrap;
  margin-top: 26px; color: var(--text-faint); font-size: 13.5px; font-weight: 550;
}
.hero-trust span::before { content: "✓  "; color: var(--bull); }

.hero-media {
  margin: 52px auto 0; max-width: 1020px;
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  position: relative;
}
.hero-media video { width: 100%; }
.hero-media .media-tag {
  position: absolute; top: 12px; left: 12px;
  background: var(--bg-soft); border: 1px solid var(--line);
  color: var(--text-dim); font-size: 12px; font-weight: 600;
  padding: 5px 11px; border-radius: 999px; backdrop-filter: blur(6px);
}
.media-caption { text-align: center; color: var(--text-faint); font-size: 13px; margin-top: 14px; }

/* ── market strip ─────────────────────────────────────────── */
.strip {
  border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft);
  background: var(--bg); padding: 18px 0; overflow: hidden;
}
.strip-track {
  display: flex; gap: 54px; width: max-content;
  animation: marquee 30s linear infinite;
}
.strip-item { display: flex; align-items: center; gap: 9px; color: var(--text-dim); font-weight: 650; font-size: 14.5px; white-space: nowrap; }
.strip-item .dot { color: var(--bull); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── anatomy / product shot ───────────────────────────────── */
.shot-frame {
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.anatomy-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 26px; }
.anatomy-card {
  background: var(--card); border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm); padding: 16px 18px;
}
.anatomy-card .a-icon {
  width: 34px; height: 34px; border-radius: 9px; background: var(--bull-soft);
  display: flex; align-items: center; justify-content: center; margin-bottom: 12px;
}
.anatomy-card .a-icon svg { width: 18px; height: 18px; color: var(--bull); }
.anatomy-card b { display: block; font-size: 14.5px; margin-bottom: 4px; }
.anatomy-card span { color: var(--text-dim); font-size: 13.5px; line-height: 1.5; display: block; }

/* ── results ──────────────────────────────────────────────── */
.results-note {
  background: var(--bg-soft); border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm); padding: 16px 20px; max-width: 900px;
  margin: 0 auto 38px; color: var(--text-dim); font-size: 13.5px; line-height: 1.6;
}
.results-note b { color: var(--text); }
.results-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.result-card {
  background: var(--card); border: 1px solid var(--line-soft);
  border-radius: var(--radius); overflow: hidden;
  transition: border-color .15s ease, transform .15s ease;
}
.result-card:hover { border-color: var(--line); transform: translateY(-2px); }
.result-head { display: flex; align-items: baseline; gap: 12px; padding: 18px 22px 4px; }
.result-head .sym { font-weight: 800; font-size: 21px; letter-spacing: .01em; }
.result-head .name { color: var(--text-faint); font-size: 13.5px; }
.result-head .pnl { margin-left: auto; font-family: var(--font-mono); font-weight: 700; color: var(--bull); font-size: 18px; }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 12px 22px 16px; }
.stat { background: var(--bg-soft); border-radius: 8px; padding: 9px 10px; text-align: center; }
.stat .v { font-family: var(--font-mono); font-weight: 700; font-size: 15.5px; display: block; }
.stat .k { color: var(--text-faint); font-size: 11px; text-transform: uppercase; letter-spacing: .07em; }
.result-card img { border-top: 1px solid var(--line-soft); }
.result-foot { padding: 10px 22px 14px; color: var(--text-faint); font-size: 12px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px; }
.result-foot a { font-size: 12px; }

.honesty {
  margin-top: 34px; background: var(--card); border: 1px solid var(--line-soft);
  border-left: 3px solid var(--gold); border-radius: var(--radius-sm);
  padding: 22px 26px; max-width: 900px; margin-left: auto; margin-right: auto;
}
.honesty h3 { margin-bottom: 8px; font-size: 17px; }
.honesty p { color: var(--text-dim); font-size: 14.5px; }

/* ── features ─────────────────────────────────────────────── */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.features-grid.grid-2 { grid-template-columns: repeat(2, 1fr); }
.feature {
  background: var(--card); border: 1px solid var(--line-soft);
  border-radius: var(--radius); padding: 26px 26px 24px;
  transition: border-color .15s ease, transform .15s ease;
}
.feature:hover { border-color: var(--line); transform: translateY(-2px); }
.feature .icon {
  width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  font-size: 21px; border-radius: 11px; background: var(--bull-soft); margin-bottom: 16px;
}
.feature .icon svg { width: 22px; height: 22px; color: var(--bull); display: block; }
.feature h3 { margin-bottom: 8px; font-size: 17.5px; }
.feature p { color: var(--text-dim); font-size: 14.5px; }

/* ── testimonials ─────────────────────────────────────────── */
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.review {
  background: var(--card); border: 1px solid var(--line-soft);
  border-radius: var(--radius); padding: 22px 24px; position: relative;
}
.review .sample-tag {
  position: absolute; top: 10px; right: 12px;
  background: rgba(201, 165, 75, .14); color: var(--gold);
  border: 1px solid rgba(201, 165, 75, .45); border-radius: 999px;
  font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  padding: 3px 9px;
}
.review .stars { color: var(--gold); letter-spacing: 2px; font-size: 14px; margin-bottom: 10px; }
.review p { font-size: 14.5px; color: var(--text); }
.review .who { margin-top: 14px; display: flex; align-items: center; gap: 10px; }
.review .avatar {
  width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px; color: var(--on-bull); background: linear-gradient(135deg, var(--bull), var(--blue));
}
.review .who b { font-size: 13.5px; display: block; line-height: 1.2; }
.review .who span { color: var(--text-faint); font-size: 12px; }
.reviews-disclaimer { text-align: center; color: var(--text-faint); font-size: 12px; margin-top: 20px; }

/* ── comparison ───────────────────────────────────────────── */
.compare-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; max-width: 900px; margin: 0 auto; }
.compare-col { border-radius: var(--radius); padding: 28px; border: 1px solid var(--line-soft); background: var(--card); }
.compare-col.us { border-color: rgba(0, 230, 118, .35); background: linear-gradient(180deg, rgba(0, 230, 118, .06), var(--card) 40%); }
.compare-col h3 { margin-bottom: 16px; }
.compare-col ul { list-style: none; }
.compare-col li { padding: 9px 0; border-bottom: 1px solid var(--line-soft); color: var(--text-dim); font-size: 14.5px; }
.compare-col li:last-child { border-bottom: none; }
.compare-col li::before { margin-right: 10px; font-weight: 700; }
.compare-col.them li::before { content: "✕"; color: var(--bear); }
.compare-col.us li::before { content: "✓"; color: var(--bull); }
.compare-col.us li { color: var(--text); }

/* ── pricing ──────────────────────────────────────────────── */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
/* Algo Pack: four plans. 2x2 until there is room for a row of four, one column on phones. */
.pricing-grid.four { grid-template-columns: repeat(2, 1fr); max-width: 860px; margin: 0 auto; }
@media (min-width: 1180px) { .pricing-grid.four { grid-template-columns: repeat(4, 1fr); max-width: none; gap: 18px; } }
@media (max-width: 640px)  { .pricing-grid.four { grid-template-columns: 1fr; max-width: 460px; } }
.plan {
  background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 30px 28px; display: flex; flex-direction: column; position: relative;
}
.plan.featured {
  border-color: rgba(0, 230, 118, .5);
  background: linear-gradient(180deg, rgba(0, 230, 118, .07), var(--card) 45%);
  box-shadow: var(--shadow);
}
.plan .badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(180deg, var(--bull), var(--bull-deep)); color: var(--on-bull);
  font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  padding: 5px 14px; border-radius: 999px; white-space: nowrap;
}
.plan h3 { font-size: 16px; color: var(--text-dim); font-weight: 650; }
.plan .price { margin: 10px 0 2px; }
.plan .price .amount { font-size: 44px; font-weight: 800; letter-spacing: -.02em; }
.plan .price .term { color: var(--text-faint); font-size: 14.5px; }
.plan .price-note { color: var(--text-faint); font-size: 13px; min-height: 20px; }
.plan ul { list-style: none; margin: 20px 0 26px; flex: 1; }
.plan li { padding: 7px 0; color: var(--text-dim); font-size: 14.5px; }
.plan li::before { content: "✓"; color: var(--bull); font-weight: 700; margin-right: 10px; }
.plan .fine { color: var(--text-faint); font-size: 12px; margin-top: 12px; text-align: center; }

/* ── free pack banner ─────────────────────────────────────── */
.freepack {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  background: linear-gradient(120deg, rgba(46, 123, 255, .1), rgba(0, 230, 118, .07));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 34px;
  flex-wrap: wrap;
}
.freepack h3 { font-size: 21px; margin-bottom: 6px; }
.freepack p { color: var(--text-dim); font-size: 14.5px; max-width: 560px; }

/* ── FAQ ──────────────────────────────────────────────────── */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item { border: 1px solid var(--line-soft); border-radius: var(--radius-sm); margin-bottom: 12px; background: var(--card); overflow: hidden; }
.faq-item summary {
  cursor: pointer; list-style: none; padding: 18px 22px; font-weight: 650; font-size: 15.5px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--text-faint); font-size: 22px; font-weight: 400; transition: transform .15s ease; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-body { padding: 0 22px 20px; color: var(--text-dim); font-size: 14.5px; }
.faq-item .faq-body p + p { margin-top: 10px; }

/* ── final CTA ────────────────────────────────────────────── */
.final-cta {
  text-align: center;
  background:
    radial-gradient(800px 360px at 50% 110%, rgba(0, 230, 118, .1), transparent 60%),
    var(--bg);
  border-top: 1px solid var(--line-soft);
}
.final-cta p { color: var(--text-dim); max-width: 640px; margin: 14px auto 30px; }

/* ── legal block + footer ─────────────────────────────────── */
.legal-block {
  background: var(--bg-deep); border-top: 1px solid var(--line-soft);
  padding: 40px 0 8px; color: var(--text-faint); font-size: 12.5px; line-height: 1.7;
}
.legal-block .container { max-width: 980px; }
footer { background: var(--bg-deep); padding: 26px 0 44px; }
.footer-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  border-top: 1px solid var(--line-soft); padding-top: 24px;
  color: var(--text-faint); font-size: 13px;
}
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { color: var(--text-dim); font-size: 13px; }

/* ── legal article pages ──────────────────────────────────── */
.article { max-width: 820px; margin: 0 auto; padding: 130px 22px 80px; }
.article h1 { font-size: 36px; margin-bottom: 8px; }
.article .updated { color: var(--text-faint); font-size: 13.5px; margin-bottom: 34px; }
.article h2 { font-size: 23px; margin: 38px 0 12px; }
.article h3 { font-size: 17.5px; margin: 26px 0 8px; }
.article p, .article li { color: var(--text-dim); font-size: 15px; }
.article p { margin-bottom: 14px; }
.article ul, .article ol { margin: 0 0 14px 22px; }
.article li { margin-bottom: 7px; }
.article blockquote {
  border-left: 3px solid var(--gold); background: var(--card);
  padding: 16px 20px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 16px 0; font-size: 14px; color: var(--text-dim);
}
.article .placeholder { background: rgba(201, 165, 75, .15); color: var(--gold); padding: 0 4px; border-radius: 4px; font-family: var(--font-mono); font-size: 13px; }

/* ── modal (checkout stub) ────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200; display: none;
  align-items: center; justify-content: center;
  background: var(--overlay); backdrop-filter: blur(6px); padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius);
  max-width: 460px; width: 100%; padding: 30px 30px 26px; position: relative;
}
.modal .close { position: absolute; top: 12px; right: 16px; background: none; border: none; color: var(--text-faint); font-size: 22px; cursor: pointer; }
.modal h3 { margin-bottom: 8px; }
.modal p { color: var(--text-dim); font-size: 14.5px; margin-bottom: 16px; }
.modal input {
  width: 100%; background: var(--bg-deep); border: 1px solid var(--line); border-radius: 9px;
  color: var(--text); font-family: var(--font-body); font-size: 15px; padding: 12px 14px; margin-bottom: 12px;
}
.modal input:focus { outline: none; border-color: var(--bull); }
.modal .fine { color: var(--text-faint); font-size: 12px; margin-top: 12px; margin-bottom: 0; }

/* ── forms (free pack) ────────────────────────────────────── */
.lead-form { max-width: 460px; margin: 0 auto; }
.lead-form input {
  width: 100%; background: var(--bg-deep); border: 1px solid var(--line); border-radius: 9px;
  color: var(--text); font-family: var(--font-body); font-size: 15px; padding: 13px 15px; margin-bottom: 12px;
}
.lead-form input:focus { outline: none; border-color: var(--bull); }
.form-status { text-align: center; font-size: 14px; margin-top: 12px; min-height: 20px; }
.form-status.ok { color: var(--bull); }
.form-status.err { color: var(--bear); }

/* ── algo catalog cards (storefront home) ─────────────────── */
.algo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.algo-card {
  display: flex; flex-direction: column; background: var(--card);
  border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 22px 22px 20px; color: var(--text);
  transition: border-color .18s ease, transform .18s ease, background .18s ease;
}
a.algo-card:hover { border-color: var(--line); background: var(--card-hi); transform: translateY(-2px); text-decoration: none; }
.algo-card.featured { border-color: rgba(0, 230, 118, .35); box-shadow: 0 0 0 1px rgba(0, 230, 118, .06) inset; }
.algo-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.algo-mark { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 11px;
  background: var(--bull-soft); color: var(--bull-deep); line-height: 1; flex: none; }
.algo-mark svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round; }
.algo-mark.is-paid { background: linear-gradient(135deg, var(--bull), var(--blue)); color: #fff;
  box-shadow: 0 6px 16px -8px rgba(0, 150, 110, .55); }
.algo-mark.is-test { background: var(--blue-soft); color: var(--blue); }
.algo-card h3 { font-size: 19px; margin-bottom: 2px; letter-spacing: -.01em; }
.algo-card .algo-role {
  color: var(--bull); font-family: var(--font-mono); font-size: 12.5px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .06em; margin-bottom: 12px;
}
.algo-card p { color: var(--text-dim); font-size: 14.5px; }
.algo-meta {
  display: flex; gap: 14px; flex-wrap: wrap; margin: 16px 0 14px; padding-top: 14px;
  border-top: 1px solid var(--line-soft); color: var(--text-faint); font-size: 12.5px;
  font-family: var(--font-mono);
}
.algo-cta { margin-top: auto; color: var(--blue); font-size: 14px; font-weight: 600; }
.algo-cta.as-btn { background: none; border: none; padding: 0; text-align: left; cursor: pointer; font-family: var(--font-body); }
.algo-cta.as-btn:hover { text-decoration: underline; }
.algo-note {
  max-width: 760px; margin: 34px auto 0; text-align: center;
  color: var(--text-faint); font-size: 14px;
}

/* ── status badges ────────────────────────────────────────── */
.badge {
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 600; text-transform: uppercase;
  letter-spacing: .08em; padding: 4px 9px; border-radius: 999px; white-space: nowrap;
}
.badge-live    { background: var(--bull-soft); color: var(--bull);  border: 1px solid rgba(0, 230, 118, .3); }
.badge-testing { background: var(--blue-soft); color: var(--blue);  border: 1px solid rgba(46, 123, 255, .3); }
.badge-free    { background: rgba(201, 165, 75, .12); color: var(--gold); border: 1px solid rgba(201, 165, 75, .3); }

/* ── reveal animation ─────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .strip-track { animation: none; }
}

/* ── responsive ───────────────────────────────────────────── */
@media (max-width: 980px) {
  .results-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
  .algo-grid { grid-template-columns: repeat(2, 1fr); }
  .anatomy-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .plan.featured { order: -1; }
  .compare-wrap { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}
@media (max-width: 640px) {
  .features-grid, .reviews-grid, .anatomy-grid, .grid-2, .algo-grid { grid-template-columns: 1fr !important; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 60px 0; }
  .hero { padding-top: 120px; }
  .freepack { flex-direction: column; align-items: flex-start; }
  .logo .brand-sub { display: none; }
  .nav-inner { gap: 12px; height: 60px; }
  .nav .btn { padding: 9px 15px; font-size: 13.5px; white-space: nowrap; }
  .logo { font-size: 15px; }
  html { scroll-padding-top: 72px; }
}

/* ═══════════════════════════════════════════════════════════════════
   SHELVES — packages vs standalone algos          (added 2026-09-13)
   ═══════════════════════════════════════════════════════════════════ */
.shelf-label { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap;
  padding-bottom: 14px; margin-bottom: 26px; border-bottom: 1px solid var(--line); }
.shelf-num { font-family: var(--font-mono); font-size: 12px; letter-spacing: .16em;
  color: var(--blue); }
.shelf-label h3 { font-size: 21px; font-weight: 700; }
.shelf-label p { font-size: 14.5px; color: var(--text-faint); margin-left: auto; }

.pkg-card { display: grid; grid-template-columns: minmax(0,1fr) 260px; gap: 34px;
  background: linear-gradient(140deg, var(--card-hi), var(--card));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 34px;
  text-decoration: none; color: inherit; transition: border-color .2s, transform .2s; }
.pkg-card:hover { border-color: var(--blue); }
.pkg-card h3 { font-size: 27px; font-weight: 750; margin: 12px 0 4px; letter-spacing: -.015em; }
.pkg-card .algo-role { color: var(--blue); font-family: var(--font-mono); font-size: 13.5px;
  margin-bottom: 14px; }
.pkg-card p { color: var(--text-dim); font-size: 15.5px; }
.pkg-list { display: flex; flex-wrap: wrap; gap: 7px; margin: 20px 0 18px; }
.pkg-list span { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .04em;
  color: var(--text-dim); background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: 999px; padding: 5px 12px; }
.pkg-right { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line);
  border-radius: var(--radius-sm); overflow: hidden; align-content: start; }
.pkg-stat { background: var(--bg-soft); padding: 16px 18px; }
.pkg-stat b { display: block; font-family: var(--font-mono); font-size: 26px; font-weight: 600;
  line-height: 1; color: var(--text); }
.pkg-stat span { display: block; font-size: 12px; color: var(--text-faint); margin-top: 6px;
  line-height: 1.35; }
@media (max-width: 860px) {
  .pkg-card { grid-template-columns: 1fr; padding: 26px; gap: 22px; }
  .shelf-label p { margin-left: 0; width: 100%; }
}

.pkg-list .is-soon{opacity:.55;font-style:italic}

/* ═══════════════════════════════════════════════════════════════════════
   THEME TOGGLE + LIGHT SWEEP
   Three states, same order as the control: system, light, dark.
   The sweep is a single pass of light across the viewport on change.
   ═══════════════════════════════════════════════════════════════════════ */
.theme-switch{
  display:inline-flex; align-items:center; gap:2px; margin-left:18px;
  padding:3px; border:1px solid var(--line); border-radius:999px;
  background:var(--bg-soft);
}
.theme-switch button{
  display:grid; place-items:center; width:27px; height:27px; padding:0;
  border:0; border-radius:999px; background:transparent; cursor:pointer;
  color:var(--text-faint); transition:color .18s, background .18s;
}
.theme-switch button:hover{ color:var(--text-dim); }
.theme-switch button[aria-pressed="true"]{
  background:var(--card); color:var(--bull);
  box-shadow:var(--shadow-sm);
}
.theme-switch svg{ width:14px; height:14px; display:block; }

/* the sweep */
.theme-sweep{ position:fixed; inset:0; z-index:9999; pointer-events:none; overflow:hidden; }
.theme-sweep i{
  position:absolute; top:-60%; left:0; width:38%; height:220%;
  transform:rotate(16deg) translateX(-180%);
  background:linear-gradient(90deg,
    transparent 0%,
    rgba(0,230,118,.10) 30%,
    rgba(255,255,255,.92) 50%,
    rgba(0,230,118,.10) 70%,
    transparent 100%);
  filter:blur(26px);
  animation:atty-sweep .9s cubic-bezier(.45,0,.2,1) forwards;
}
:root[data-theme="dark"] .theme-sweep i,
:root[data-theme="system"] .theme-sweep i{
  background:linear-gradient(90deg,
    transparent 0%,
    rgba(0,230,118,.14) 30%,
    rgba(210,255,232,.75) 50%,
    rgba(0,230,118,.14) 70%,
    transparent 100%);
}
@keyframes atty-sweep{ to{ transform:rotate(16deg) translateX(460%); } }

/* brief cross-fade while the sweep passes, so colours do not snap */
:root.theme-anim,
:root.theme-anim body,
:root.theme-anim .nav,
:root.theme-anim .card,
:root.theme-anim section,
:root.theme-anim header,
:root.theme-anim footer,
:root.theme-anim .algo-card,
:root.theme-anim .pkg-card{
  transition:background-color .5s ease, color .5s ease, border-color .5s ease;
}

@media (prefers-reduced-motion: reduce){
  .theme-sweep{ display:none; }
  :root.theme-anim, :root.theme-anim *{ transition:none !important; }
}
@media (max-width: 720px){
  .theme-switch{ margin-left:10px; }
}


/* ═══════════════════════════════════════════════════════════════════════
   Research chart labels were authored white-on-dark, back when the site
   was dark only. They are floating labels — none of them sits on a filled
   shape (checked element by element, all 152) — so retarget them to the
   text token and they work in both themes. Presentation attributes on SVG
   lose to CSS, so this needs no edit to the 152 fills themselves.
   If a future chart puts light text ON a dark panel, give that text a
   class and exclude it here.
   ═══════════════════════════════════════════════════════════════════════ */
body.research svg text[fill="#e9eef7"],
body.research svg text[fill="#E9EEF7"],
body.research svg text[fill="#eafbff"],
body.research svg text[fill="#EAFBFF"],
body.research svg text[fill="#ffffff"],
body.research svg text[fill="#FFFFFF"],
body.research svg text[fill="#fff"],
body.research svg text[fill="#FFF"] { fill: var(--text); }

/* ── brand accent: thin green-to-blue line under the top bar ── */
.nav { border-bottom: 0; box-shadow: none; }
.nav::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: linear-gradient(90deg, var(--bull), var(--blue)); opacity: .85; pointer-events: none; }
/* gradient text for a headline accent phrase */
.grad-text { background: linear-gradient(90deg, var(--bull) 0%, var(--blue) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ── Atty Prop ORB teaser card ── */
.algo-card--teaser { border-color: rgba(46,123,255,.35);
  background: linear-gradient(180deg, var(--blue-soft), var(--card) 42%); }
.teaser-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 16px 0 10px; }
.teaser-stats div { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.teaser-stats b { display: block; font-family: var(--font-display); font-size: 30px; font-weight: 700; line-height: 1;
  background: linear-gradient(90deg, var(--bull), var(--blue)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.teaser-stats span { display: block; font-size: 12.5px; color: var(--text-faint); margin-top: 6px; line-height: 1.35; }
.teaser-fine { font-size: 12px; color: var(--text-faint); line-height: 1.5; }

.pkg-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.pricing-grid.four .plan.featured { transform: translateY(-6px); }
