/* ============================================================
   EvalQA — landing.css
   Marketing-layout components. Loaded only by pages that declare
   'layout' => 'landing' (home, platform, snowflake, pricing, guild…).
   Tokens come from theme.css; nothing here invents a colour or a size.
   ============================================================ */

main.landing { padding: 0; }

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero { position: relative; overflow: hidden; padding: 88px 0 64px; border-bottom: 1px solid var(--border); background: radial-gradient(ellipse 70% 60% at 50% -10%, var(--accent-soft), transparent 70%), var(--bg); }
.hero::before { content: ''; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(var(--tint-1) 1px, transparent 1px), linear-gradient(90deg, var(--tint-1) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(ellipse 60% 70% at 50% 30%, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 30%, #000 30%, transparent 75%); }
.hero .wrap-wide { position: relative; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 8px; border: 1px solid var(--border); border-radius: 99px; background: var(--surface); font-size: var(--text-xs); color: var(--dim); font-weight: 600; letter-spacing: .3px; margin-bottom: 22px; }
.hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px var(--green-soft); }
.hero h1 { font-size: clamp(2.3rem, 4.6vw, 3.6rem); line-height: 1.06; letter-spacing: -1.5px; margin-bottom: 20px; }
.hero-lede { font-size: var(--text-xl); color: var(--dim); max-width: 56ch; margin-bottom: 28px; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 22px; }
.hero-actions .btn { margin: 0; }
.hero-proof { display: flex; gap: 18px 26px; flex-wrap: wrap; font-size: var(--text-sm); color: var(--muted); }
.hero-proof span::before { content: '\2713'; color: var(--ok); font-weight: 700; margin-right: 7px; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 36px; } .hero { padding: 56px 0 48px; } }

/* Terminal / evidence panel used in hero and product pages */
.panel { background: var(--code-block-bg); color: var(--code-block-ink); border-radius: var(--radius-l); box-shadow: var(--shadow-lg); overflow: hidden; font-family: var(--mono); font-size: var(--text-sm); border: 1px solid rgba(255,255,255,.06); }
.panel-bar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: rgba(255,255,255,.04); border-bottom: 1px solid rgba(255,255,255,.07); font-size: var(--text-xs); color: var(--code-block-dim); }
.panel-bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.18); display: inline-block; }
.panel-bar i:nth-child(1) { background: #ff6b6b; } .panel-bar i:nth-child(2) { background: #ffd166; } .panel-bar i:nth-child(3) { background: #7ee7a8; }
.panel-bar span { margin-left: auto; }
.panel-body { padding: 14px 16px 16px; line-height: 1.6; overflow-x: auto; font-size: 0.78rem; }
.panel-body .ln { display: block; white-space: pre; }
.panel .c { color: var(--code-block-dim); }
.panel .good { color: var(--code-block-good); }
.panel .bad { color: var(--code-block-bad); }
.panel .warn { color: #ffd166; }
.panel .k { color: #c4b5fd; }
.panel .cursor { display: inline-block; width: 8px; height: 1em; background: var(--code-block-ink); vertical-align: -2px; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ── Bands (sections) ───────────────────────────────────────────────────── */
.band { padding: 80px 0; border-bottom: 1px solid var(--border-soft); }
.band.alt { background: var(--surface); }
.band.tight { padding: 52px 0; }
.band-head { max-width: 760px; margin-bottom: 40px; }
.band-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.band-label { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 2px; color: var(--accent); font-weight: 700; margin-bottom: 12px; }
.band h2 { margin: 0 0 14px; padding: 0; font-size: clamp(1.8rem, 3.6vw, 2.6rem); line-height: 1.12; }
.band-lede { font-size: var(--text-lg); color: var(--dim); max-width: 64ch; }
.band-head.center .band-lede { margin-left: auto; margin-right: auto; }
@media (max-width: 760px) { .band { padding: 56px 0; } }

/* Feature tiles */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tiles.two { grid-template-columns: 1fr 1fr; }
.tiles.four { grid-template-columns: repeat(4, 1fr); }
.tile { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-l); padding: 24px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.band.alt .tile { background: var(--bg); }
.tile-k { font-family: var(--mono); font-size: var(--text-xs); color: var(--accent2); background: var(--accent-tint); border-radius: 5px; padding: 3px 8px; align-self: flex-start; margin-bottom: 12px; }
.tile h3 { margin: 0 0 8px; font-size: var(--text-xl); font-family: var(--serif); font-weight: 400; letter-spacing: -.3px; }
.tile p { font-size: var(--text-base); color: var(--dim); margin: 0; }
.tile p + p { margin-top: 8px; }
.tile ul { font-size: var(--text-base); margin: 8px 0 0 18px; }
.tile li { margin-bottom: 5px; }
.tile .more { margin-top: auto; padding-top: 14px; font-size: var(--text-sm); font-weight: 600; }
@media (max-width: 900px) { .tiles, .tiles.four { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .tiles, .tiles.two, .tiles.four { grid-template-columns: 1fr; } }

/* Split (text + visual) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.rev > :first-child { order: 2; }
.split h2 { margin-top: 0; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 28px; } .split.rev > :first-child { order: 0; } }

/* Big number strip */
.numbers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius-l); overflow: hidden; }
.numbers > div { background: var(--surface); padding: 26px 22px; }
.numbers .n { font-family: var(--serif); font-size: clamp(2rem, 3.4vw, 2.8rem); color: var(--accent); letter-spacing: -1px; line-height: 1; font-variant-numeric: tabular-nums; }
.numbers .l { font-size: var(--text-sm); color: var(--muted); margin-top: 10px; line-height: 1.45; }
.numbers .t { margin-top: 8px; }
@media (max-width: 760px) { .numbers { grid-template-columns: 1fr 1fr; } }
@media (max-width: 420px) { .numbers { grid-template-columns: 1fr; } }

/* Loop / process */
.loop { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; counter-reset: loop; }
.loop > div { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-l); padding: 22px 20px 20px; counter-increment: loop; }
.loop > div::before { content: '0' counter(loop); font-family: var(--mono); font-size: var(--text-xs); color: var(--accent2); display: block; margin-bottom: 10px; }
.loop h3 { margin: 0 0 6px; font-size: var(--text-lg); }
.loop p { font-size: var(--text-base); margin: 0; }
@media (max-width: 900px) { .loop { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .loop { grid-template-columns: 1fr; } }

/* Comparison table */
.cmp-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-l); background: var(--surface); }
table.cmp { min-width: 920px; }
table.cmp td:first-child, table.cmp th:first-child { min-width: 230px; font-weight: 600; color: var(--text); }
table.cmp th, table.cmp td { padding: 12px 16px; }
table.cmp .us { background: var(--accent-tint); color: var(--text); font-weight: 600; }
table.cmp thead .us { color: var(--accent2); }
table.cmp .y { color: var(--ok); font-weight: 600; }
table.cmp .n { color: var(--muted); }
table.cmp .m { color: var(--warn); }

/* Pricing */
.price-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: stretch; }
.price { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-l); padding: 28px; box-shadow: var(--shadow); display: flex; flex-direction: column; position: relative; }
.price.featured { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft), var(--shadow-md); }
.price-k { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 1.6px; font-weight: 700; color: var(--accent); margin-bottom: 8px; }
.price h3, .price h2 { margin: 0 0 6px; padding: 0; font-family: var(--serif); font-weight: 400; font-size: var(--text-3xl); line-height: 1.25; }
.price-amt { font-family: var(--serif); font-size: clamp(2.2rem, 4vw, 3rem); letter-spacing: -1.5px; color: var(--text); line-height: 1; margin: 12px 0 4px; font-variant-numeric: tabular-nums; }
.price-amt small { font-family: var(--sans); font-size: var(--text-base); color: var(--muted); letter-spacing: 0; margin-left: 6px; }
.price-sub { font-size: var(--text-sm); color: var(--muted); margin-bottom: 18px; }
.price ul { margin: 0 0 18px 18px; font-size: var(--text-base); }
.price li { margin-bottom: 7px; }
.price .btn { margin-top: auto; align-self: flex-start; }
.price-total { grid-column: 1 / -1; background: var(--text); color: var(--bg); border-radius: var(--radius-l); padding: 22px 28px; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.price-total .n { font-family: var(--serif); font-size: var(--text-5xl); letter-spacing: -1px; }
.price-total p { color: rgba(250,248,253,.78); margin: 0; font-size: var(--text-base); max-width: 60ch; }
@media (max-width: 760px) { .price-grid { grid-template-columns: 1fr; } }

/* Timeline (90 days) */
.timeline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tl { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-l); padding: 22px; }
.tl-day { font-family: var(--mono); font-size: var(--text-xs); color: var(--accent2); margin-bottom: 8px; }
.tl h3 { margin: 0 0 8px; font-size: var(--text-lg); }
.tl ul { margin: 0 0 0 18px; font-size: var(--text-base); }
.tl li { margin-bottom: 5px; }
.tl.gate { border-left: 3px solid var(--rose); }
@media (max-width: 760px) { .timeline { grid-template-columns: 1fr; } }

/* Quote */
.quote { max-width: 820px; margin: 0 auto; text-align: center; }
.quote p.q { font-family: var(--serif); font-size: clamp(1.4rem, 2.6vw, 1.9rem); line-height: 1.35; color: var(--text); letter-spacing: -.4px; margin-bottom: 16px; }
.quote p.who { font-size: var(--text-sm); color: var(--muted); }

/* CTA band */
.cta-band { text-align: center; padding: 88px 0; background: radial-gradient(ellipse 60% 70% at 50% 100%, var(--accent-soft), transparent 70%), var(--bg); }
.cta-band h2 { margin: 0 0 14px; padding: 0; font-size: clamp(2rem, 4vw, 3rem); }
.cta-band p { max-width: 58ch; margin: 0 auto 24px; font-size: var(--text-lg); }
.cta-band .btn { margin: 4px; }

/* Two-column contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* Logo-ish strip of target platforms (text, not borrowed logos) */
.platforms { display: flex; flex-wrap: wrap; gap: 10px; }
.platforms span { border: 1px solid var(--border); background: var(--surface); border-radius: 99px; padding: 6px 14px; font-size: var(--text-sm); color: var(--dim); }
.platforms span b { color: var(--text); font-weight: 600; }

/* Reveal on scroll — starts visible so a JS failure never hides content. */
.rv { opacity: 1; transform: none; }
.js .rv { opacity: 0; transform: translateY(10px); transition: opacity .35s ease, transform .35s ease; }
.js .rv.vis { opacity: 1; transform: none; }
