/* Landing page. Builds on styles.css (tokens, type, mosaic, buttons); only the page frame lives here.
   Brand rule here: the page is dark grayscale and tan. Color (red, tan, off-white bricks) comes only from the mosaic. */
body.landing { --pad-x: clamp(16px, 4vw, 56px); --max: 1280px; background: var(--bg); }
.landing a { color: inherit; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 20; padding: 8px 12px; background: var(--text); color: #141414; }
.skip:focus { left: 8px; }
.landing :focus-visible { outline: 2px solid var(--second); outline-offset: 3px; }

/* ---------- buttons: the CTA is off-white, everything else outlined ---------- */
.landing .btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; color: var(--text); font-weight: 500; }
.landing .btn.cta { background: var(--text); border-color: var(--text); color: #141414; font-weight: 600; }
.landing .btn.cta:hover { background: #fff; border-color: #fff; }
.landing .btn.ghost { border-color: transparent; }
.landing .btn.ghost:hover { border-color: var(--line); }

/* ---------- moving brick band (header and closing section) ---------- */
.landing .band-slot { margin: 0; height: auto; }
.marquee { display: flex; flex-direction: column; gap: 2px; overflow: hidden; padding: 2px 0; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee-row { display: flex; width: max-content; will-change: transform; }
.marquee-half { display: flex; gap: 2px; padding-right: 2px; }
.marquee span { flex: none; height: 16px; line-height: 16px; padding: 0 5px; font-family: var(--font-mono); font-size: 10.5px; font-weight: 600; letter-spacing: 0.02em;
  transition: background-color 260ms ease, color 260ms ease, transform 260ms ease; }
.marquee span.lit { background: var(--lit-bg) !important; color: var(--lit-fg) !important; cursor: pointer; transform: translateY(-1px); }
.flying { position: fixed; z-index: 50; pointer-events: none; height: 16px; line-height: 16px; padding: 0 5px; font-family: var(--font-mono); font-size: 10.5px; font-weight: 600; }
.picks { margin: 0; font-size: 13px; color: var(--muted); }
.picks b { color: var(--text); font-family: var(--font-mono); font-weight: 600; font-size: 12px; }
.lp-hero-art .looking { color: var(--muted); }
.lp-hero-art .looking b { color: var(--text); font-family: var(--font-mono); font-weight: 600; font-size: 12px; letter-spacing: 0.02em; }
.lp-hero-art canvas { cursor: none; }

/* ---------- header ---------- */
.topbar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px var(--pad-x); background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; }
.topbar .brand { padding: 0; gap: 10px; color: var(--text); }
.topbar .mark { width: 28px; height: 28px; display: block; }
.topnav { display: flex; align-items: center; gap: 22px; font-size: 14px; }
.topnav a:not(.btn) { color: var(--muted); text-decoration: none; }
.topnav a:not(.btn):hover { color: var(--text); }
.topnav .btn { min-height: 38px; padding: 0 14px; font-size: 14px; }
@media (max-width: 860px) { .topnav a:not(.btn) { display: none; } .topnav { gap: 8px; } }
@media (max-width: 420px) { .topnav .btn.ghost { display: none; } }

/* ---------- page frame ---------- */
.landing main { padding: 0 var(--pad-x) 40px; display: flex; flex-direction: column; gap: clamp(64px, 9vw, 128px); max-width: var(--max); margin: 0 auto; }
.eyebrow { margin: 0; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--second); }
.micro { margin: 0; font-size: 13px; color: var(--muted); }
.landing h2 { font-size: clamp(28px, 3.4vw, 44px); line-height: 1.02; letter-spacing: -0.035em; font-weight: 650; text-wrap: balance; }
.landing .note { color: var(--muted); }

/* ---------- hero: text left, the live sample mosaic right ---------- */
.lp-hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 72px); align-items: center; padding-top: clamp(24px, 5vh, 64px); }
.lp-hero-text { display: flex; flex-direction: column; gap: 22px; }
.landing .lp-hero .thesis { font-size: clamp(44px, min(6vw, 10vh), 104px); margin: 0; }
.landing .lp-hero .lede { color: var(--text); opacity: 0.86; }
.lp-hero .row { display: flex; flex-wrap: wrap; gap: 10px; }
.lp-hero .btn { min-height: 48px; padding: 0 20px; font-size: 15px; }
.lp-hero-art { min-width: 0; }
.lp-hero-art .word-mosaic figcaption .row { display: none; } /* the sample carousel runs itself */
.lp-hero-art .word-mosaic figcaption a { color: var(--muted); text-decoration: none; }
@media (max-width: 900px) { .lp-hero { grid-template-columns: 1fr; } }

/* ---------- "works with" strip ---------- */
.lp-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.lp-strip ul { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 0; padding: 0; list-style: none; }
.lp-strip li { font-family: var(--font-mono); font-size: 14px; color: var(--text); }
.lp-strip li + li::before { content: "/"; margin-right: 28px; color: var(--line); }
@media (max-width: 600px) { .lp-strip li + li::before { display: none; } }

/* ---------- sections ---------- */
.lp-section { display: flex; flex-direction: column; gap: 32px; }
.lp-head { display: flex; flex-direction: column; gap: 12px; max-width: 40rem; }
.lp-split { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
@media (max-width: 860px) { .lp-split { grid-template-columns: 1fr; } }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin: 0; padding: 0; list-style: none; background: var(--line); border: 1px solid var(--line); }
.step { background: var(--bg); padding: 28px 24px 32px; display: flex; flex-direction: column; gap: 12px; }
.step-n { font-family: var(--font-mono); font-size: 12px; color: #141414; background: var(--second); align-self: flex-start; padding: 2px 6px; font-weight: 600; }
.step h3 { font-size: 22px; letter-spacing: -0.02em; }
.step p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.55; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

.landing pre.code { background: var(--panel); border: 1px solid var(--line); padding: 20px; font-size: 13px; color: var(--text); }

.checks { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
.checks li { padding: 18px 0 18px 28px; border-bottom: 1px solid var(--line); position: relative; color: var(--muted); line-height: 1.55; }
.checks li:first-child { border-top: 1px solid var(--line); }
.checks li::before { content: ""; position: absolute; left: 0; top: 25px; width: 10px; height: 10px; background: var(--second); }
.checks strong { color: var(--text); font-weight: 600; }

/* pricing (cards from styles.css's .plans, recolored to tan) */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0; border: 1px solid var(--line); }
.plan { display: flex; flex-direction: column; gap: 14px; padding: 28px; }
.plan + .plan { border-left: 1px solid var(--line); }
@media (max-width: 800px) { .plan + .plan { border-left: 0; border-top: 1px solid var(--line); } }
.plan.founding { border-top: 3px solid var(--second); margin-top: -1px; background: var(--panel); }
.plan h3 { font-family: var(--font-display); font-size: 20px; }
.plan .price { margin: 0; color: var(--muted); font-size: 14px; }
.plan .price .big { font-family: var(--font-display); font-size: 48px; font-weight: 650; letter-spacing: -0.04em; color: var(--text); }
.plan ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 14px; flex: 1; }
.plan li { padding-left: 14px; position: relative; }
.plan li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 6px; height: 6px; background: var(--second); }
.plan .row { display: flex; flex-wrap: wrap; gap: 8px; }

.faq { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 32px 18px 0; position: relative; font-weight: 600; font-size: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font-family: var(--font-mono); color: var(--second); font-size: 18px; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 18px; color: var(--muted); line-height: 1.55; max-width: 60ch; }

/* closing call to action over a moving band */
.lp-final { position: relative; display: flex; flex-direction: column; gap: 28px; padding: 40px 0 8px; border-top: 1px solid var(--line); }
.lp-final-text { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.lp-final .btn { min-height: 48px; padding: 0 22px; font-size: 15px; }

/* ---------- footer ---------- */
.site-foot { border-top: 1px solid var(--line); margin-top: 48px; padding: 48px var(--pad-x) 32px; }
.foot-grid { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; }
.foot-brand { display: flex; flex-direction: column; gap: 10px; }
.foot-brand .note { max-width: 32ch; font-size: 14px; }
.site-foot nav { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.site-foot h3 { font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--second); margin-bottom: 4px; }
.site-foot nav a { color: var(--muted); text-decoration: none; }
.site-foot nav a:hover { color: var(--text); }
.foot-base { max-width: var(--max); margin: 40px auto 0; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--muted); }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }

/* anchored sections clear the sticky header */
.landing section[id] { scroll-margin-top: 84px; }
