/* Layout and components. Colors and fonts come only from theme.css (no color values in this file). */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.6 var(--font-sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); }
h1, h2, h3 { color: var(--ink); margin: 0; letter-spacing: -0.025em; line-height: 1.1; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
.container { width: min(1180px, 100% - 48px); margin-inline: auto; }
.mono { font-family: var(--font-mono); }
/* feature color slots: put t1…t6 on an element and its eyebrow, icon or step uses that color */
.t1 { --c: var(--c1); } .t2 { --c: var(--c2); } .t3 { --c: var(--c3); } .t4 { --c: var(--c4); } .t5 { --c: var(--c5); } .t6 { --c: var(--c6); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--bg); padding: 8px 12px; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; border-radius: 10px; font-weight: 600; font-size: 16px;
  text-decoration: none; border: 1px solid transparent; transition: background-color .15s, border-color .15s, transform .15s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: var(--brand-contrast); }
.btn-primary:hover { background: var(--brand-hover); }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-secondary:hover { background: var(--surface-strong); }
.btn-ghost { color: var(--ink); }
.btn-ghost:hover { background: var(--surface); }
.btn-sm { padding: 7px 14px; font-size: 15px; }
.btn-on-brand { background: var(--brand-contrast); color: var(--brand); }
.wordmark { font-weight: 800; font-size: 22px; letter-spacing: -0.03em; color: var(--ink); }
.wordmark b { color: var(--brand); font-weight: 800; }

/* nav */
.nav { position: sticky; top: 0; z-index: 50; background: var(--overlay); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner { height: 64px; display: flex; align-items: center; gap: 28px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; color: var(--ink); text-decoration: none; letter-spacing: -0.02em; }
.logo-mark { width: 30px; height: 30px; border-radius: 8px; background: var(--brand); display: grid; place-items: center; }
.logo-mark svg { width: 20px; height: 20px; }
.logo-mark .n1 { fill: var(--accent); } .logo-mark .n2 { fill: var(--brand-contrast); } .logo-mark .ln { stroke: var(--brand-contrast); }
.nav-links { display: flex; gap: 4px; }
.nav-links a { color: var(--text); text-decoration: none; font-size: 15px; font-weight: 500; padding: 6px 10px; border-radius: 8px; }
.nav-links a:hover { background: var(--surface); color: var(--ink); }
.nav-cta { margin-left: auto; display: flex; gap: 6px; align-items: center; }
.menu-btn { display: none; margin-left: auto; border: 0; background: none; padding: 8px; border-radius: 8px; color: var(--ink); cursor: pointer; }
.menu-btn svg { width: 24px; height: 24px; }

/* hero */
.hero { text-align: center; padding: 72px 0 0; position: relative; isolation: isolate; }
.hero::before { content: ""; position: absolute; left: 0; right: 0; top: -64px; height: 760px; z-index: -1; pointer-events: none;
  background: radial-gradient(46% 58% at 50% 0%, var(--glow-1), transparent 72%), radial-gradient(26% 36% at 84% 22%, var(--glow-2), transparent 72%),
    radial-gradient(26% 36% at 14% 34%, var(--glow-3), transparent 72%); }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 6px; border-radius: 999px; background: var(--surface); color: var(--text); font-size: 14px; font-weight: 500; border: 1px solid var(--line); }
.pill b { background: var(--accent); color: var(--accent-contrast); border-radius: 999px; padding: 1px 9px; font-size: 12px; font-weight: 700; }
.hero h1 { font-size: clamp(40px, 6.4vw, 78px); font-weight: 800; letter-spacing: -0.04em; margin: 22px auto 0; max-width: 20ch; }
.hero h1 .mark { background: linear-gradient(transparent 60%, var(--accent-mark) 60%); padding: 0 .06em; }
.hero .lede { font-size: clamp(18px, 2.1vw, 22px); color: var(--text); max-width: 640px; margin: 22px auto 0; }
.hero-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }
.hero-note { margin-top: 14px; font-size: 14px; color: var(--muted); }
.hero-shot { margin: 56px auto 0; max-width: 1180px; }

/* product window frame */
.window { border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--bg); box-shadow: var(--shadow-lg); overflow: hidden; }
.window-bar { height: 38px; display: flex; align-items: center; gap: 7px; padding: 0 14px; background: var(--surface); border-bottom: 1px solid var(--line); }
.window-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--dot-1); }
.window-bar i:nth-child(2) { background: var(--dot-2); } .window-bar i:nth-child(3) { background: var(--dot-3); }
.window-bar span { margin-left: 12px; font-size: 12.5px; color: var(--muted); font-family: var(--font-mono); }

/* facts strip */
.facts { padding: 64px 0 24px; }
.facts p.eyebrow { text-align: center; }
.facts-row { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 22px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.fact { padding: 22px 18px; text-align: center; }
.fact + .fact { border-left: 1px solid var(--line); }
.fact b { display: block; font-size: 34px; font-weight: 800; color: var(--brand); letter-spacing: -0.03em; line-height: 1.1;
  background: linear-gradient(90deg, var(--c1), var(--c2)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.fact span { font-size: 14.5px; color: var(--muted); }

/* sections */
.section { padding: 112px 0 0; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--c, var(--link)); }
.section-head { max-width: 760px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(32px, 4.4vw, 52px); font-weight: 800; margin-top: 12px; }
.section-head p { font-size: 19px; color: var(--text); margin-top: 16px; }
.section-head .eyebrow { font-size: 13px; color: var(--c, var(--link)); margin-top: 0; }

/* comparison */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 44px; }
.col { border-radius: var(--radius-lg); padding: 28px; }
.col h3 { font-size: 20px; display: flex; align-items: center; gap: 10px; }
.col-old { background: var(--surface); }
.col-new { background: linear-gradient(160deg, var(--brand-soft), var(--bg) 85%); border: 1.5px solid color-mix(in srgb, var(--brand) 55%, var(--line)); box-shadow: var(--shadow-md); }
.col ul { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 14px; }
.col li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: 16px; }
.col li svg { width: 20px; height: 20px; margin-top: 3px; }
.col-old li svg { color: var(--muted); }
.col-new li svg { color: var(--ok); }
.tag-old { font-size: 12px; font-weight: 600; color: var(--muted); background: var(--surface-strong); padding: 2px 8px; border-radius: 6px; }
.tag-new { font-size: 12px; font-weight: 700; color: var(--brand-contrast); background: var(--brand); padding: 2px 8px; border-radius: 6px; }
.fair { margin-top: 18px; font-size: 15px; color: var(--muted); max-width: 900px; }
.fair sup a { text-decoration: none; }

/* tabs */
.tabs { margin-top: 40px; }
.tablist { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.tab { border: 1px solid var(--line); background: var(--bg); color: var(--text); font: 600 15px var(--font-sans); padding: 10px 16px; border-radius: 999px; cursor: pointer; display: flex; align-items: center; gap: 8px; }
.tab:hover { background: var(--surface); }
.tab[aria-selected="true"] { background: var(--brand); color: var(--brand-contrast); border-color: var(--brand); box-shadow: var(--shadow-md); }
.panel { margin-top: 28px; display: grid; grid-template-columns: 330px 1fr; gap: 36px; align-items: center; }
.js .panel[hidden] { display: none; }
.panel h3 { font-size: 26px; }
.panel p { margin-top: 12px; color: var(--text); }
.panel ul { margin: 16px 0 0; padding-left: 20px; color: var(--text); display: grid; gap: 6px; }
.panel .window { box-shadow: var(--shadow-md); }
.panel .window.narrow { max-width: 460px; justify-self: center; }

/* two-up feature cards */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 48px; }
.card { background: var(--surface); border-radius: var(--radius-lg); padding: 30px 30px 0; display: flex; flex-direction: column; overflow: hidden; }
.card h3 { font-size: 24px; }
.card p { margin-top: 10px; }
.card .label { align-self: flex-start; margin-bottom: 14px; }
.card .shot { margin-top: 26px; border-radius: 12px 12px 0 0; border: 1px solid var(--line); border-bottom: 0; overflow: hidden; box-shadow: var(--shadow-md); }
.card .shot img { width: 100%; }
.card .shot.tall { max-height: 460px; }
.label { font-size: 12.5px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.label-engine { background: var(--ok-soft); color: var(--ok); }
.label-ai { background: var(--brand-soft); color: var(--link); }
.card-ai { background: linear-gradient(180deg, color-mix(in srgb, var(--fill-core) 55%, var(--bg)), var(--surface) 70%); }
.card-engine { background: linear-gradient(180deg, color-mix(in srgb, var(--fill-math) 45%, var(--bg)), var(--surface) 70%); }

/* grid of small features */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; margin-top: 48px; }
.cell { background: var(--bg); padding: 28px; }
.cell .ico { width: 40px; height: 40px; border-radius: 10px; background: color-mix(in srgb, var(--c, var(--brand)) 13%, var(--bg)); color: var(--c, var(--brand)); display: grid; place-items: center; }
.cell .ico svg { width: 22px; height: 22px; }
.cell h3 { font-size: 18px; margin-top: 16px; letter-spacing: -0.01em; }
.cell p { font-size: 15.5px; margin-top: 8px; color: var(--text); }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; counter-reset: step; }
.step { border-top: 3px solid var(--c, var(--ink)); padding-top: 20px; }
.step::before { counter-increment: step; content: counter(step, decimal-leading-zero); font: 600 14px var(--font-mono); color: var(--c, var(--brand)); }
.step h3 { font-size: 21px; margin-top: 8px; }
.step p { margin-top: 8px; font-size: 16px; }

/* proof band */
.proof { margin-top: 112px; background: radial-gradient(60% 80% at 100% 0%, color-mix(in srgb, var(--brand) 30%, transparent), transparent 70%), radial-gradient(50% 70% at 0% 100%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 70%), var(--brand-deep); color: var(--on-deep); border-radius: 24px; padding: 64px 56px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.proof h2 { color: var(--on-deep); font-size: clamp(30px, 3.8vw, 46px); font-weight: 800; }
.proof p { margin-top: 16px; opacity: .88; }
.proof .eyebrow { color: var(--brand); }
.proof-nums { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.num { background: color-mix(in srgb, var(--on-deep) 8%, transparent); border: 1px solid color-mix(in srgb, var(--on-deep) 10%, transparent); border-radius: 14px; padding: 20px; }
.num b { display: block; font-size: 36px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; color: var(--accent); }
.num span { display: block; margin-top: 6px; font-size: 14.5px; line-height: 1.4; opacity: .85; }

/* faq */
.faq { max-width: 820px; margin: 40px auto 0; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 4px; font-weight: 600; font-size: 18px; color: var(--ink); display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; font-size: 24px; line-height: 1; color: var(--link); transition: transform .2s; }
.faq summary:hover { color: var(--link); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 4px 20px; color: var(--text); }

/* final call to action */
.cta { text-align: center; padding: 112px 0 96px; }
.cta .container { padding: 72px 24px; border-radius: 28px; background: radial-gradient(55% 80% at 50% 0%, var(--glow-1), transparent 72%),
  radial-gradient(35% 60% at 92% 100%, var(--glow-2), transparent 72%), radial-gradient(35% 60% at 6% 100%, var(--glow-3), transparent 72%), var(--surface); }
.cta h2 { font-size: clamp(36px, 5vw, 60px); font-weight: 800; max-width: 16ch; margin-inline: auto; }
.cta p { margin: 16px auto 0; font-size: 19px; max-width: 560px; }
.cta .hero-actions { margin-top: 28px; }

/* footer */
.footer { border-top: 1px solid var(--line); padding: 48px 0 40px; font-size: 14.5px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; }
.footer h4 { margin: 0 0 12px; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer a { color: var(--text); text-decoration: none; }
.footer a:hover { color: var(--link); text-decoration: underline; }
.footer .about p { margin-top: 12px; color: var(--muted); max-width: 36ch; }
.disclaimer { margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13.5px; display: grid; gap: 6px; }

/* reveal on scroll (skipped when the user prefers less motion) */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
  .js .reveal.in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn:hover { transform: none; } }

/* responsive */
@media (max-width: 980px) {
  .panel { grid-template-columns: 1fr; }
  .duo, .compare { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr 1fr; }
  .proof { grid-template-columns: 1fr; padding: 44px 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .container { width: calc(100% - 32px); }
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .nav-inner { gap: 8px; }
  .menu-btn { display: block; margin-left: 0; }
  .nav.open .nav-links { display: grid; position: absolute; left: 0; right: 0; top: 64px; background: var(--bg); border-bottom: 1px solid var(--line); padding: 10px 16px 16px; box-shadow: var(--shadow-md); }
  .nav.open .nav-links a { padding: 10px; }
  .hero { padding-top: 48px; }
  .facts-row { grid-template-columns: 1fr 1fr; }
  .fact:nth-child(3) { border-left: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid var(--line); }
  .grid, .steps, .proof-nums { grid-template-columns: 1fr; }
  .section { padding-top: 80px; }
  .col, .card { padding-inline: 20px; }
  .card { padding-top: 22px; }
  .footer-grid { grid-template-columns: 1fr; }
}
