/* Traders Journal — editorial layout (dark hero, paper sections) */
/* colours and type taken from the Traders Journal desktop app's dark theme */
:root {
  --night: #070708;
  --night-2: #0f0f12;
  --paper: #0a0a0b;
  --paper-quiet: #0c0c0e;
  --sand: #0a0a0b;
  --white: #0c0c0e;
  --card: #111114;
  --card-2: #16161a;
  --ink: #f4f4f5;
  --muted: #a1a1aa;
  --faint: #71717a;
  --rule: #222227;
  --cream: #e4e4e7;
  --cream-muted: #8b8b94;
  --dark-rule: #222227;
  --up: #22c55e;
  --down: #ef4444;
  --accent: #3b82f6;
  --indigo: #6366f1;
  --violet: #a855f7;
  --amber: #f59e0b;
  --sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --display: var(--sans);
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --gutter: clamp(16px, 3vw, 32px);
  --max: 1440px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #000;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* Type */
.eyebrow {
  margin: 0;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.display {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.05;
}
.h-xl { font-size: clamp(40px, 6.2vw, 88px); }
.h-lg { font-size: clamp(32px, 4.4vw, 64px); }
.h-md { font-size: clamp(20px, 2vw, 26px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.lede { margin: 0; font-size: 15px; line-height: 1.6; color: var(--muted); max-width: 46ch; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 44px;
  padding: 0 16px 0 18px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid currentColor;
  border-radius: 10px;
  transition: background .25s, color .25s, border-color .25s, box-shadow .25s;
}
.btn svg { width: 14px; height: 14px; transition: transform .25s; }
.btn:hover svg { transform: translateX(4px); }
/* primary: the app's blue action button */
.btn--light { background: var(--accent); color: #fff; border-color: var(--accent); box-shadow: 0 8px 24px -10px rgba(59,130,246,.7); }
.btn--light:hover { background: #2f74ea; border-color: #2f74ea; box-shadow: 0 10px 30px -8px rgba(59,130,246,.85); }
/* secondary: the app's bordered dark button */
.btn--dark { background: var(--card-2); color: var(--ink); border-color: #2a2a30; }
.btn--dark:hover { border-color: #3a3a42; background: #1b1b20; }
.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600; color: var(--ink);
  border-bottom: 1px solid #3a3a42; padding-bottom: 2px;
  transition: border-color .25s, color .25s;
}
.link-arrow:hover { border-color: var(--accent); color: #93b8ff; }
.link-arrow svg { width: 11px; height: 11px; }

/* Nav */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  color: var(--cream);
  transition: background .3s, color .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.nav.is-solid { background: rgba(8, 8, 7, .86); backdrop-filter: blur(10px); border-color: var(--dark-rule); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 52px; }
.nav__links { display: flex; gap: 22px; }
.nav a { font-size: 9.5px; font-weight: 600; letter-spacing: 0.13em; text-transform: uppercase; opacity: .9; }
.nav a:hover { opacity: 1; color: var(--ink); }
.nav__brand { display: none; }

/* Hero */
.hero {
  position: relative;
  min-height: 100svh;
  background: var(--night);
  color: var(--ink);
  display: flex; flex-direction: column;
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 3px 3px;
}
.wordmark {
  margin: 0;
  padding-top: 64px;
  font-family: var(--display);
  font-weight: 700;
  line-height: .86;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  width: max-content;
  color: var(--ink);
  font-size: 10vw; /* refined by fitWordmark() */
}
/* hero: two lines, each stretched edge to edge of the viewport */
.wrap--full { max-width: none; }
.wordmark--stack { width: auto; padding-top: 72px; line-height: .8; }
.wm-line { display: block; width: max-content; letter-spacing: -0.04em; /* per line, so it scales with the fitted size */ }
.hero__body { position: relative; z-index: 1; margin-top: clamp(40px, 9vh, 96px); display: grid; gap: 18px; max-width: 560px; }
.hero__body .eyebrow { color: var(--ink); }
.hero__body .lede { color: rgba(247,246,242,.78); }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; margin-top: 10px; }
.hero__strip {
  position: relative; z-index: 1;
  margin-top: auto;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px;
  padding: 48px var(--gutter) 0;
  transform: translateY(38%);
}
.hero__strip figure {
  margin: 0; aspect-ratio: 16 / 9; border-radius: 10px 10px 0 0; overflow: hidden;
  background: var(--night-2); border: 1px solid var(--dark-rule); border-bottom: 0;
}
.hero__strip img { width: 100%; height: 100%; object-fit: cover; object-position: top center; opacity: .85; }
.hero__strip figure:nth-child(even) { transform: translateY(18px); }

/* Generic sections */
.section { position: relative; padding: clamp(56px, 8vw, 96px) 0; }
.section--paper { background: var(--paper); }
.section--quiet { background: var(--paper-quiet); }
.section--sand { background: var(--sand); }
.section--white { background: var(--white); }
.section__head { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: end; margin-bottom: clamp(32px, 5vw, 56px); }
.section__head .lede { justify-self: end; }
.section__head .eyebrow { margin-bottom: 18px; color: var(--muted); }

/* Collection: numbered screen list + big preview */
.collection { padding-top: 30px; }
.collection__intro { text-align: center; padding: 64px 0 48px; }
.collection__grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(24px, 4vw, 64px); align-items: start; }
.picks { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.pick { border-bottom: 1px solid var(--rule); }
.pick button {
  width: 100%; display: grid; grid-template-columns: 34px 1fr auto; align-items: baseline; gap: 12px;
  padding: 20px 0; text-align: left;
}
.pick__num { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.pick__name { font-family: var(--display); font-size: clamp(20px, 2vw, 28px); font-weight: 500; letter-spacing: -0.045em; line-height: 1.1; transition: opacity .2s; }
.pick__tag { font-size: 9.5px; font-weight: 600; letter-spacing: .14em; color: var(--muted); }
.picks:hover .pick__name { opacity: .35; }
.picks .pick button:hover .pick__name, .pick.is-active .pick__name { opacity: 1; }
.pick:not(.is-active) .pick__name { opacity: .45; }
.preview { position: sticky; top: 76px; }
.preview__frame {
  aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; background: var(--night);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.35);
}
.preview__frame img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: opacity .3s; }
.preview__caption { display: grid; grid-template-columns: 1fr auto; gap: 20px; padding-top: 18px; }
.preview__caption h3 { margin: 6px 0 6px; }
.preview__caption p { margin: 0; color: var(--muted); font-size: 14px; max-width: 48ch; }

/* Catalog counts */
.counts__total { font-family: var(--display); font-weight: 600; font-size: clamp(72px, 12vw, 168px); letter-spacing: -0.07em; line-height: .9; margin: 0; }
.counts__sub { margin: 14px 0 0; max-width: 18ch; font-family: var(--display); font-size: clamp(24px, 3.2vw, 44px); letter-spacing: -0.05em; line-height: 1.08; font-weight: 500; }
.count-rows { margin-top: 48px; border-top: 1px solid var(--rule); }
.count-row { border-bottom: 1px solid var(--rule); }
.count-row summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px 0;
}
.count-row summary::-webkit-details-marker { display: none; }
.count-row__label, .count-row__num {
  font-family: var(--display); font-weight: 500; text-transform: uppercase;
  font-size: clamp(40px, 7.4vw, 104px); letter-spacing: -0.06em; line-height: 1;
}
.count-row__right { display: flex; align-items: center; gap: 18px; }
.count-row__toggle {
  width: 30px; height: 30px; border-radius: 50%; background: var(--up); color: #fff;
  display: grid; place-items: center; transition: transform .3s;
}
.count-row__toggle svg { width: 12px; height: 12px; }
.count-row[open] .count-row__toggle { transform: rotate(45deg); }
.count-row__thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; padding: 8px 0 28px; }
.thumb { text-align: left; }
.thumb img { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; object-position: top center; border-radius: 4px; background: var(--night); transition: transform .3s; }
.thumb:hover img { transform: translateY(-3px); }
.thumb span { display: block; margin-top: 8px; font-size: 12px; color: var(--muted); }

/* Pricing */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.plan { background: var(--paper); border: 1px solid var(--rule); border-radius: 6px; padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; gap: 18px; }
.plan--dark { background: var(--night-2); color: var(--ink); border-color: var(--night-2); }
.plan__top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.plan__price { font-family: var(--display); font-weight: 600; font-size: clamp(56px, 7vw, 96px); letter-spacing: -0.07em; line-height: .9; margin: 0; }
.plan p { margin: 0; }
.plan > p:not([class]) { font-size: 14px; color: var(--muted); max-width: 44ch; }
.plan--dark > p:not([class]) { color: var(--cream-muted); }
.plan ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.plan--dark ul { border-color: var(--dark-rule); }
.plan li { padding: 11px 0; font-size: 14px; border-bottom: 1px solid var(--rule); display: flex; gap: 10px; }
.plan--dark li { border-color: var(--dark-rule); }
.plan li::before { content: "+"; color: var(--up); font-weight: 600; }
.plan .btn { margin-top: auto; align-self: flex-start; }
.pricing__note { margin: 20px 0 0; font-size: 12px; color: var(--muted); }

/* Manifesto */
.manifesto { text-align: center; }
.manifesto .eyebrow { color: var(--muted); margin-bottom: 18px; }
.manifesto p.lede { margin: 18px auto 0; }

/* Experience tabs */
.exp { display: grid; grid-template-columns: 4fr 8fr; gap: clamp(24px, 4vw, 64px); }
.exp__tabs { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.exp__tabs button {
  width: 100%; display: flex; gap: 16px; align-items: baseline; padding: 15px 0;
  border-bottom: 1px solid var(--rule); text-align: left;
  font-family: var(--display); font-size: 20px; letter-spacing: -0.04em; font-weight: 500; color: var(--muted);
  transition: color .2s;
}
.exp__tabs button span { font-family: var(--sans); font-size: 11px; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.exp__tabs button[aria-selected="true"], .exp__tabs button:hover { color: var(--ink); }
.exp__panel { display: none; }
.exp__panel.is-active { display: grid; grid-template-columns: 5fr 7fr; gap: 28px; align-items: start; }
.exp__panel .eyebrow { color: var(--muted); }
.exp__panel h3 { margin: 12px 0 14px; }
.exp__panel .btn { margin-top: 24px; }
.exp__shot { border-radius: 6px; overflow: hidden; background: var(--night); aspect-ratio: 16 / 9; }
.exp__shot img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.exp__shot-meta { display: flex; justify-content: space-between; margin-top: 10px; font-size: 11px; color: var(--muted); }

/* Principles / steps */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--rule); }
.trio--four { grid-template-columns: repeat(4, 1fr); }
.trio > div { padding: 22px 24px 8px 0; }
.trio .eyebrow { color: var(--muted); margin-bottom: 36px; }
.trio h3 { margin: 0 0 10px; }
.trio p { margin: 0; font-size: 14px; color: var(--muted); max-width: 34ch; }

/* FAQ */
.faq { display: grid; grid-template-columns: 4fr 8fr; gap: 32px; }
.faq .eyebrow { color: var(--muted); margin-bottom: 18px; }
.faq__list { border-top: 1px solid var(--rule); }
.faq__item { border-bottom: 1px solid var(--rule); }
.faq__item summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px;
  padding: 18px 0; font-size: 15px; font-weight: 500;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; font-size: 18px; line-height: 1; color: var(--muted); }
.faq__item[open] summary::after { content: "\2212"; }
.faq__item p { margin: 0; padding: 0 0 20px; font-size: 14px; color: var(--muted); max-width: 64ch; }

/* Closing + footer */
.closing { background: var(--night); color: var(--ink); text-align: center; padding: clamp(120px, 20vw, 240px) 0; }
.closing .eyebrow { margin-bottom: 18px; }
.closing p.lede { margin: 16px auto 28px; color: rgba(247,246,242,.72); }
.footer { background: var(--night); color: var(--ink); padding: 0 0 28px; overflow: hidden; }
.footer .wordmark { padding-top: 40px; }
.footer__bar {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px;
  margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--dark-rule);
  font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--cream-muted);
}
.footer__bar nav { display: flex; gap: 20px; }
.footer__bar a:hover { color: var(--ink); }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 100; display: none; place-items: center;
  background: rgba(8,8,7,.94); padding: 56px var(--gutter) 32px;
}
.lightbox.is-open { display: grid; }
.lightbox img { max-height: 82vh; width: auto; border-radius: 4px; }
.lightbox figcaption { margin-top: 12px; color: var(--cream); font-size: 13px; text-align: center; }
.lightbox__close { position: absolute; top: 16px; right: var(--gutter); color: var(--cream); font-size: 10px; font-weight: 600; letter-spacing: .16em; }

/* ---------- Motion (js/motion.js) ---------- */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.nav { transition: background .3s, color .3s, border-color .3s, transform .5s cubic-bezier(.2,.7,.2,1); }
.nav.is-hidden { transform: translateY(-100%); }

/* split text masks */
.sc { display: inline-block; overflow: hidden; padding: .1em 0; margin: -.1em 0; vertical-align: top; }
.sc__i, .sw__i { display: inline-block; will-change: transform; }
.sw { display: inline-block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; vertical-align: top; }
.manifesto .sw { overflow: visible; }

/* rules that draw across */
.trio { position: relative; border-top: 0; }
.trio::before, .footer__bar::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: var(--rule); transform: scaleX(var(--line, 1)); transform-origin: left;
}
.footer__bar { position: relative; border-top: 0; }
.footer__bar::before { background: var(--dark-rule); }
.faq__item p { overflow: hidden; }

/* hover depth on screenshots */
.preview__frame img, .exp__shot img, .hero__strip img { transition: transform .8s cubic-bezier(.2,.7,.2,1), opacity .3s; }
.exp__shot { cursor: pointer; }
.hero__strip figure:hover img { transform: scale(1.06); opacity: 1; }

/* marquee band */
.marquee { background: var(--night); color: var(--cream); border-top: 1px solid var(--dark-rule); border-bottom: 1px solid var(--dark-rule); overflow: hidden; position: relative; z-index: 2; }
.marquee__track { display: flex; width: max-content; align-items: center; gap: 28px; padding: 18px 0 18px 28px; white-space: nowrap; }
.marquee span { font-family: var(--display); font-size: clamp(22px, 3vw, 40px); font-weight: 500; letter-spacing: -0.04em; }
.marquee i { font-style: normal; color: var(--up); font-size: 18px; display: inline-block; }


/* scroll progress bar */
.hud { position: fixed; left: 0; right: 0; top: 0; height: 2px; pointer-events: none; z-index: 60; mix-blend-mode: difference; }
.hud__bar { position: absolute; left: 0; right: 0; top: 0; height: 2px; background: #fff; transform: scaleX(0); transform-origin: left; }
.hud__bracket, .hud__corner { display: none !important; }



/* cursor */
.cursor {
  position: fixed; left: 0; top: 0; z-index: 90; pointer-events: none;
  width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%;
  background: #fff; mix-blend-mode: difference;
  display: grid; place-items: center;
  transition: width .35s cubic-bezier(.2,.7,.2,1), height .35s cubic-bezier(.2,.7,.2,1), margin .35s cubic-bezier(.2,.7,.2,1);
}
.cursor__label { font-size: 10px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: #000; opacity: 0; transition: opacity .2s; }
.cursor.is-link { width: 36px; height: 36px; margin: -18px 0 0 -18px; }
.cursor.is-view { width: 76px; height: 76px; margin: -38px 0 0 -38px; }
.cursor.is-view .cursor__label { opacity: 1; }

@media (max-width: 600px) {
  .hud__bracket { display: none; }
  .hud__corner { bottom: 12px; }
  .hud__corner--bl { left: 16px; }
  .hud__corner--br { right: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .hud__bracket, .hud__corner, .hud__bar { display: none; }
}

/* Responsive */
@media (max-width: 900px) {
  .section__head, .collection__grid, .exp, .exp__panel.is-active, .faq, .plans { grid-template-columns: 1fr; }
  .section__head .lede { justify-self: start; }
  .preview { position: static; }
  .trio, .trio--four { grid-template-columns: 1fr 1fr; }
  .hero__strip { grid-template-columns: repeat(3, 1fr); }
  .hero__strip figure:nth-child(n+4) { display: none; }
}
@media (max-width: 600px) {
  .nav__links { gap: 14px; }
  .nav__links a:nth-child(n+3) { display: none; }
  .trio, .trio--four { grid-template-columns: 1fr; }
  .trio .eyebrow { margin-bottom: 14px; }
  .hero__strip { grid-template-columns: repeat(2, 1fr); }
  .hero__strip figure:nth-child(n+3) { display: none; }
  .count-row__toggle { width: 24px; height: 24px; }
}

/* ---------- App theme: surfaces and components from the Traders Journal desktop UI ---------- */
::selection { background: rgba(59,130,246,.35); color: #fff; }
html { color-scheme: dark; }
body { background: var(--paper); color: var(--ink); }
.eyebrow { font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .14em; }

/* top bar, like the app header */
.nav a { font-size: 13px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--muted); opacity: 1; transition: color .2s; }
.nav a:hover { color: var(--ink); }
.nav__inner > a:last-child { padding: 7px 12px; border: 1px solid #2a2a30; border-radius: 9px; background: var(--card-2); color: var(--ink); }
.nav.is-solid { background: rgba(10,10,11,.82); border-color: var(--rule); }

/* hero: the app's starry greeting card */
.hero { background:
  radial-gradient(60% 50% at 75% 30%, rgba(99,102,241,.16), transparent 70%),
  radial-gradient(45% 40% at 15% 85%, rgba(59,130,246,.10), transparent 70%),
  var(--night); }
.hero::after {
  background-image:
    radial-gradient(1.5px 1.5px at 12% 18%, rgba(255,255,255,.55), transparent 60%),
    radial-gradient(1px 1px at 28% 62%, rgba(255,255,255,.4), transparent 60%),
    radial-gradient(1.5px 1.5px at 47% 33%, rgba(255,255,255,.5), transparent 60%),
    radial-gradient(1px 1px at 63% 78%, rgba(255,255,255,.35), transparent 60%),
    radial-gradient(2px 2px at 78% 22%, rgba(255,255,255,.6), transparent 60%),
    radial-gradient(1px 1px at 88% 56%, rgba(255,255,255,.4), transparent 60%),
    radial-gradient(1.5px 1.5px at 94% 84%, rgba(255,255,255,.45), transparent 60%),
    radial-gradient(1px 1px at 6% 48%, rgba(255,255,255,.35), transparent 60%),
    radial-gradient(rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: auto, auto, auto, auto, auto, auto, auto, auto, 3px 3px;
  animation: twinkle 6s ease-in-out infinite alternate;
}
@keyframes twinkle { from { opacity: .55; } to { opacity: 1; } }
.wordmark { font-weight: 800; }
.hero__body .eyebrow {
  justify-self: start; display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 12px; border-radius: 9px;
  border: 1px solid rgba(34,197,94,.35); background: rgba(34,197,94,.08); color: #4ade80;
  letter-spacing: .06em;
}
.hero__body .eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--up); box-shadow: 0 0 0 4px rgba(34,197,94,.18); animation: hud-pulse 1.6s ease-in-out infinite; }
.hero__body .lede { color: var(--muted); }
.hero__strip figure { border-radius: 14px 14px 0 0; border-color: #26262c; background: var(--card); }

/* section rhythm: alternate the app's two background depths */
.section--quiet, .section--white { background: var(--paper-quiet); }
.section { border-top: 1px solid #141417; }

/* screenshot frames look like app windows */
.preview__frame, .exp__shot, .thumb img {
  border: 1px solid #26262c; border-radius: 14px;
  box-shadow: 0 30px 80px -40px rgba(99,102,241,.45), 0 0 0 1px rgba(255,255,255,.02) inset;
}
.thumb img { border-radius: 10px; }
.thumb span { color: var(--muted); font-weight: 500; }
.preview__caption p, .exp__panel .lede { color: var(--muted); }

/* lists behave like the app sidebar: tinted active row with a blue edge */
.picks { border-top: 0; }
.pick { border-bottom-color: transparent; }
.pick button { padding: 16px 14px; border-radius: 10px; margin: 4px 0; transition: background .2s; }
.pick button:hover { background: rgba(255,255,255,.03); }
.pick__num { font-family: var(--mono); color: var(--faint); }
.pick__tag { font-family: var(--mono); font-weight: 500; letter-spacing: .1em; }
.pick__name { font-weight: 600; letter-spacing: -0.02em; }
.pick.is-active button { background: rgba(59,130,246,.10); box-shadow: inset -3px 0 0 var(--accent); }
.pick.is-active .pick__num { color: #93b8ff; }

.exp__tabs { border-top: 0; }
.exp__tabs button { border-bottom: 0; border-radius: 10px; padding: 12px; margin: 3px 0; gap: 14px; align-items: center; font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.exp__tabs button span {
  width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px;
  font-family: var(--mono); font-size: 11px;
  color: var(--chip, var(--accent)); background: color-mix(in srgb, var(--chip, var(--accent)) 14%, transparent);
}
.exp__tabs li:nth-child(1) { --chip: var(--accent); }
.exp__tabs li:nth-child(2) { --chip: var(--violet); }
.exp__tabs li:nth-child(3) { --chip: #60a5fa; }
.exp__tabs li:nth-child(4) { --chip: #ec4899; }
.exp__tabs li:nth-child(5) { --chip: var(--up); }
.exp__tabs li:nth-child(6) { --chip: var(--amber); }
.exp__tabs button:hover { background: rgba(255,255,255,.03); }
.exp__tabs button[aria-selected="true"] { background: rgba(59,130,246,.10); color: var(--ink); box-shadow: inset -3px 0 0 var(--accent); }
.exp__shot-meta { font-family: var(--mono); color: var(--faint); }

/* catalog: numbers in the app's mono face, toggles as tinted icon chips */
.counts__total { font-family: var(--mono); font-weight: 600; letter-spacing: -0.06em; }
.counts__sub { font-weight: 600; letter-spacing: -0.03em; color: var(--muted); }
.count-row__label { font-weight: 800; letter-spacing: -0.04em; transition: color .2s; }
.count-row__num { font-family: var(--mono); font-weight: 600; letter-spacing: -0.06em; color: var(--up); }
.count-row__toggle { border-radius: 10px; background: rgba(34,197,94,.12); color: var(--up); border: 1px solid rgba(34,197,94,.3); }
.count-row summary:hover .count-row__label { color: #93b8ff; }

/* pricing cards */
.plan { background: var(--card); border-color: var(--rule); border-radius: 18px; }
.plan--dark {
  background: linear-gradient(180deg, rgba(99,102,241,.14), var(--card) 45%);
  border-color: rgba(99,102,241,.45);
  box-shadow: 0 30px 80px -40px rgba(99,102,241,.6);
}
.plan__price { font-family: var(--mono); font-weight: 600; letter-spacing: -0.05em; }
.plan > p:not([class]), .plan--dark > p:not([class]) { color: var(--muted); }
.plan ul, .plan--dark ul, .plan li, .plan--dark li { border-color: var(--rule); }
.plan li { color: var(--cream); }
.plan li::before { content: "\2713"; color: var(--up); }
.plan--dark .plan__top .eyebrow:first-child { color: #fbbf24; }
.pricing__note { color: var(--faint); }

/* manifesto */
.manifesto { background: radial-gradient(50% 80% at 50% 50%, rgba(59,130,246,.08), transparent 70%), var(--paper-quiet); }

/* "What you get" and "How it works" as the app's KPI cards */
.trio { gap: 14px; }
.trio::before { display: none; }
.trio > div { background: var(--card); border: 1px solid var(--rule); border-radius: 16px; padding: 22px 22px 26px; }
.trio .eyebrow { color: var(--faint); margin-bottom: 22px; }
.trio .eyebrow::before {
  content: ""; display: block; width: 32px; height: 32px; margin-bottom: 18px; border-radius: 9px;
  background: color-mix(in srgb, var(--chip, var(--accent)) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--chip, var(--accent)) 30%, transparent);
}
.trio > div:nth-child(1) { --chip: var(--up); }
.trio > div:nth-child(2) { --chip: var(--accent); }
.trio > div:nth-child(3) { --chip: var(--amber); }
.trio > div:nth-child(4) { --chip: var(--violet); }
.trio p { color: var(--muted); }

/* FAQ as one card with rows */
.faq__list { background: var(--card); border: 1px solid var(--rule); border-radius: 18px; padding: 4px 24px; }
.faq__item:last-child { border-bottom: 0; }
.faq__item summary { font-weight: 600; }
.faq__item summary::after { color: var(--accent); }
.faq__item p { color: var(--muted); }

/* marquee, closing, footer, corners */
.marquee { background: var(--card); color: var(--ink); border-color: var(--rule); }
.marquee span { font-weight: 700; letter-spacing: -0.03em; }
.marquee i { color: var(--accent); }
.closing { background: radial-gradient(45% 60% at 50% 55%, rgba(99,102,241,.18), transparent 70%), var(--night); }
.closing .eyebrow { color: #93b8ff; }
.closing p.lede { color: var(--muted); }
.footer__bar { font-family: var(--mono); color: var(--faint); }
.hud__corner { font-family: var(--mono); font-weight: 500; }
.lightbox figcaption { font-family: var(--mono); color: var(--muted); }


/* Hero Row & Cardless Typography Aside */
.hero__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: clamp(32px, 6vw, 96px);
  position: relative;
  z-index: 1;
  margin-top: clamp(40px, 9vh, 96px);
}
.hero__body {
  flex: 1 1 480px;
  max-width: 580px;
  display: grid;
  gap: 18px;
  margin-top: 0;
}
.hero__aside {
  flex: 1 1 480px;
  max-width: 580px;
  display: grid;
  gap: 18px;
  margin-top: 0;
}
.hero__stats-inline {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(20px, 3vw, 48px);
  margin-top: 8px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.hero__stat-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hero__stat-item .stat__num {
  font-family: var(--mono);
  font-size: clamp(24px, 2.5vw, 32px);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.04em;
  line-height: 1;
}
.hero__stat-item .stat__num small {
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
  margin-left: 2px;
}
.hero__stat-item .stat__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
/* Centered feature explorer: tabs on top, copy then screenshot, all centered */
.exp { grid-template-columns: 1fr; justify-items: center; }
.exp__tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; max-width: 1000px; }
.exp__tabs button { margin: 0; box-shadow: none; }
.exp__tabs button[aria-selected="true"] { box-shadow: inset 0 -2px 0 var(--accent); }
.exp__panels, .exp > :not(.exp__tabs) { width: 100%; max-width: 1040px; margin-inline: auto; }
.exp__panel.is-active { grid-template-columns: 1fr; justify-items: center; text-align: center; }
.exp__panel.is-active > * { width: 100%; max-width: 1040px; }
.exp__panel.is-active > :first-child { max-width: 640px; }

/* Small phones: keep the nav on one line without horizontal scroll */
@media (max-width: 400px) {
  .nav__links { gap: 10px; }
  .nav__links a:nth-child(n+2) { display: none; }
  .nav__inner { gap: 8px; }
  .nav__inner > a:last-child { padding: 6px 9px; }
}

/* Never let a wide element widen the mobile layout viewport */
html, body { overflow-x: clip; }
