/* Zarreo marketing placeholder. Brand tokens follow the product site (indigo #4f46e5, blue #2563eb, purple #7c3aed, teal on slate).
   Always light by default, so white and dark bands alternate on any device; dark only through the theme button. No framework, no inline styles, no third-party requests, no font files:
   the system font stack is used on purpose (the product site's Inter is loaded by its own build, not shipped here).

   CLASS VOCABULARY FOR PAGE BODIES (pages/*.html). Page bodies sit inside <main id="main">; build.mjs adds header, banner,
   trust band and footer, so a body never repeats them.
     section / section.alt   full-width band / tinted band        .wrap   full page column (max 1120px), one inside every section; text fills it
     .page-head              top block of a text page             .hero + .hero-grid   home opener (text + .panel)
     .prose                  running-text block (headings, lists) .lead / .sub / .small / .mono   text styles
     .btn .btn-cta / .btn-ghost   buttons                          .cta-row   flex row of buttons
     .grid > .card (+ .tag / .tag.soon)   responsive card grid     .note / .note.warn   callout box
     .plain (.spaced)  list with no bullets                        .facts   <dl> label and value list
     .panel .panel-head .badge .rows .panel-note   boxed illustration list (li.on = highlighted row)
     .pill + .dot  status chip                                     .sr-only   screen-reader-only text
   .tcard / .trust-* / .foot-* are built-in chrome produced by build.mjs, not for page bodies. */
:root {
  color-scheme: light;
  --background: #f8fafc;
  --surface-card: #f1f5f9;
  --surface-elevated: #ffffff;
  --surface-border: #e2e8f0;
  --surface-border-hover: #cbd5e1;
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #475569;
  --primary: #4338ca;
  --primary-hover: #3730a3;
  --primary-foreground: #ffffff;
  --accent-text: #4338ca;
  --secondary: #0f766e;
  --focus-ring: #4338ca;
  --radius: 0.625rem;
  --font-body: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
:root[data-theme="dark"] {
  color-scheme: dark;
    --background: #0b1020;
    --surface-card: #111833;
    --surface-elevated: #172042;
    --surface-border: #232d52;
    --surface-border-hover: #35416f;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --primary-foreground: #ffffff;
    --accent-text: #a5b4fc;
    --secondary: #2dd4bf;
    --focus-ring: #a5b4fc;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--background); color: var(--text-primary); font-family: var(--font-body); font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-wrap: break-word; }
img, svg { max-width: 100%; display: block; }
a { color: var(--accent-text); text-underline-offset: 3px; }
a:hover { color: var(--text-primary); }
:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 3px; border-radius: 4px; }
.wrap { width: min(1120px, 100% - 2rem); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--primary); color: var(--primary-foreground); padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 0; }

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.05rem); font-weight: 750; }
h3 { font-size: 1.2rem; font-weight: 650; }
p { margin: 0 0 1em; }
em { font-style: normal; color: var(--accent-text); }
.lead { font-size: 1.2rem; color: var(--text-secondary); }
.sub { color: var(--text-secondary); }

/* header */
.top { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--surface-card) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--surface-border); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--text-primary); text-decoration: none; font-weight: 800; font-size: 1.3rem; letter-spacing: -0.02em; }
.brand:hover { color: var(--text-primary); }
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.main { display: flex; align-items: center; gap: 1.3rem; }
.main a { color: var(--text-secondary); text-decoration: none; font-size: .95rem; font-weight: 500; }
.main a:hover, .main a[aria-current="page"] { color: var(--text-primary); }
.main a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--primary); text-underline-offset: 6px; text-decoration-thickness: 2px; }
.menu-btn { display: none; background: var(--surface-elevated); color: var(--text-primary); border: 1px solid var(--surface-border-hover); border-radius: var(--radius); padding: .45rem .9rem; font: inherit; font-size: .95rem; cursor: pointer; }
.btn { display: inline-flex; align-items: center; justify-content: center; border-radius: var(--radius); padding: .7rem 1.25rem; font-weight: 650; text-decoration: none; border: 1px solid transparent; font-size: 1rem; text-align: center; }
.btn-cta { background: var(--primary); color: var(--primary-foreground); }
.btn-cta:hover { background: var(--primary-hover); color: var(--primary-foreground); }
.btn-ghost { background: transparent; color: var(--text-primary); border-color: var(--surface-border-hover); }
.btn-ghost:hover { background: var(--surface-card); color: var(--text-primary); }
.main .btn-cta, .main .btn-cta:hover { color: var(--primary-foreground); padding: .5rem 1rem; font-size: .92rem; }

/* placeholder banner: on every page */
.ph-banner { background: color-mix(in srgb, var(--primary) 12%, var(--background)); border-bottom: 1px solid color-mix(in srgb, var(--primary) 35%, transparent); font-size: .92rem; padding: .6rem 0; }
.ph-banner strong { color: var(--text-primary); }

/* hero */
.hero { padding: clamp(3rem, 8vw, 6rem) 0 clamp(2.5rem, 6vw, 4.5rem); background: radial-gradient(900px 420px at 85% -10%, color-mix(in srgb, #7c3aed 16%, transparent), transparent 70%), radial-gradient(700px 360px at 0% 0%, color-mix(in srgb, #2563eb 12%, transparent), transparent 70%); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: .55rem; background: var(--surface-elevated); border: 1px solid var(--surface-border-hover); border-radius: 999px; padding: .35rem .9rem; font-size: .85rem; color: var(--text-secondary); margin-bottom: 1.2rem; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--secondary); flex: none; }
.cta-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }

/* illustration panel */
.panel { background: var(--surface-elevated); border: 1px solid var(--surface-border); border-radius: calc(var(--radius) * 1.6); padding: 1.2rem; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: .6rem; font-size: .85rem; color: var(--text-secondary); margin-bottom: 1rem; }
.badge { border: 1px solid var(--surface-border-hover); border-radius: 999px; padding: .1rem .6rem; font-size: .75rem; color: var(--text-muted); }
.rows { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.rows li { display: flex; justify-content: space-between; gap: 1rem; background: var(--background); border: 1px solid var(--surface-border); border-radius: calc(var(--radius) * .8); padding: .6rem .8rem; font-size: .92rem; }
.rows li span { color: var(--text-muted); font-family: var(--font-mono); font-size: .82rem; }
.rows li.on { border-color: color-mix(in srgb, var(--primary) 60%, transparent); }
.panel-note { margin: 1rem 0 0; font-size: .8rem; color: var(--text-muted); }

/* sections and cards */
section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
section.alt { background: var(--surface-card); border-block: 1px solid var(--surface-border); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 1rem; margin-top: 1.6rem; }
.grid + p { margin-top: 1.6rem; }
.card { background: var(--surface-elevated); border: 1px solid var(--surface-border); border-radius: calc(var(--radius) * 1.3); padding: 1.2rem 1.25rem; }
.card:hover { border-color: var(--surface-border-hover); }
.card p { color: var(--text-secondary); font-size: .96rem; margin: 0; }
.tag { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--secondary); margin-bottom: .5rem; }
.tag.soon { color: var(--text-muted); }
.note { background: var(--surface-card); border: 1px solid var(--surface-border); border-left: 4px solid var(--secondary); border-radius: var(--radius); padding: .9rem 1.1rem; margin: 1.4rem 0; }
.note.warn { border-left-color: var(--primary); }
.note p { margin: 0 0 .6em; }
.note p:last-child { margin-bottom: 0; }

/* text pages */
.page-head { padding: clamp(2.5rem, 6vw, 4rem) 0 1rem; }
.prose h2 { margin-top: 2rem; }
.prose > h2:first-child { margin-top: 0; }
/* legal pages: numbered sections */
.legal { counter-reset: section; }
.legal > h2 { display: flex; align-items: center; gap: .75rem; counter-increment: section; }
.legal > h2::before { content: counter(section); display: grid; place-items: center; flex: none; width: 2.1rem; height: 2.1rem; border-radius: .65rem; background: var(--primary); color: var(--primary-foreground); font-size: .95rem; font-weight: 800; }
.prose ul, .prose ol { padding-left: 1.2rem; color: var(--text-secondary); }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: .5rem 1.5rem; margin: 1rem 0 0; }
.facts dt { color: var(--text-muted); font-size: .92rem; }
.facts dd { margin: 0; }

/* trust block, above the footer on every page */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.trust-band { padding: clamp(2rem, 5vw, 3.5rem) 0; }
.trust-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 1rem; }
.tcard { background: var(--surface-elevated); border: 1px solid var(--surface-border); border-radius: calc(var(--radius) * 1.6); padding: 1.4rem; font-size: .94rem; color: var(--text-secondary); min-width: 0; }
.tcard p { margin: 0 0 .8em; }
.tcard strong { color: var(--text-primary); }
.eyebrow { font-family: var(--font-mono); font-size: .74rem !important; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); margin-bottom: .9rem !important; }
.kv { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1rem 0 0; }
.kv.one { grid-template-columns: 1fr; }
.kv dt { font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); }
.kv dd { margin: 0; color: var(--text-primary); }
.mono { font-family: var(--font-mono); font-size: .9rem; }
.plain { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: .35rem; }
.plain.spaced { margin-top: 0; gap: .8rem; }
.small { font-size: .82rem; color: var(--text-muted); }

/* footer */
.foot { border-top: 1px solid var(--surface-border); background: var(--surface-card); padding: 2.5rem 0 2rem; font-size: .92rem; color: var(--text-secondary); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.foot h2 { font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); margin-bottom: .7rem; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.foot a { color: var(--text-secondary); }
.foot a:hover { color: var(--accent-text); }
.legal-line { border-top: 1px solid var(--surface-border); margin-top: 1.8rem; padding-top: 1.2rem; color: var(--text-muted); font-size: .85rem; }

@media (max-width: 860px) {
  .hero-grid, .foot-grid, .trust-grid { grid-template-columns: 1fr; }
  .menu-btn { display: inline-block; }
  .main { display: none; position: absolute; left: 0; right: 0; top: 64px; flex-direction: column; align-items: stretch; gap: 0; background: var(--surface-card); border-bottom: 1px solid var(--surface-border); padding: .5rem 1rem 1rem; }
  .main.open { display: flex; }
  .main a { padding: .7rem .2rem; }
  .main .btn-cta { margin-top: .5rem; padding: .7rem 1rem; }
  .facts { grid-template-columns: 1fr; gap: .1rem; }
  .facts dd { margin-bottom: .7rem; }
}
@media (max-width: 420px) {
  .kv { grid-template-columns: 1fr; }
  .cta-row .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* theme button and icons */
.theme-btn { background: transparent; color: var(--text-secondary); border: 1px solid var(--surface-border-hover); border-radius: var(--radius); width: 2.4rem; height: 2.4rem; display: inline-grid; place-items: center; cursor: pointer; padding: 0; }
.theme-btn:hover { color: var(--text-primary); background: var(--surface-card); }
.theme-btn[hidden] { display: none; }
.icon { width: 1.4rem; height: 1.4rem; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.theme-btn .i-moon { display: none; }
:root[data-theme="dark"] .theme-btn .i-sun { display: none; }
:root[data-theme="dark"] .theme-btn .i-moon { display: block; }
.ico { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: .8rem; background: color-mix(in srgb, var(--primary) 14%, var(--surface-elevated)); color: var(--accent-text); margin-bottom: .7rem; }
.card { transition: border-color .2s ease, transform .2s ease; }
.card:hover { transform: translateY(-2px); }

/* a deliberately dark band, in both themes, for contrast between sections */
section.band-dark { background: #0b1020; color: #e2e8f0; border-block: 1px solid #232d52; }
section.band-dark h2, section.band-dark h3 { color: #f8fafc; }
section.band-dark .sub, section.band-dark p { color: #cbd5e1; }
section.band-dark a { color: #c7d2fe; }
section.band-dark .card { background: #172042; border-color: #35416f; }
section.band-dark .card p { color: #cbd5e1; }
section.band-dark .tag { color: #5eead4; }

/* sticky call to action on small screens */
.sticky-cta { display: none; }
@media (max-width: 860px) {
  .sticky-cta { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: .6rem 1rem calc(.6rem + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--surface-card) 94%, transparent); backdrop-filter: blur(10px); border-top: 1px solid var(--surface-border); }
  .sticky-cta .btn { width: 100%; }
  body { padding-bottom: 4.5rem; }
}

/* gentle entrance, off for reduced motion */
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.hero .wrap > div { animation: rise .5s ease both; }
.hero .panel { animation-delay: .12s; }
@media (prefers-reduced-motion: reduce) { .hero .wrap > div { animation: none; } .card { transition: none; } .card:hover { transform: none; } }

/* home page: backgrounds */
.pattern, .pattern-soft, .pattern-dark { position: relative; isolation: isolate; }
.pattern::before, .pattern-soft::before, .pattern-dark::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.pattern::before { background-image: linear-gradient(color-mix(in srgb, var(--primary) 9%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, var(--primary) 9%, transparent) 1px, transparent 1px); background-size: 44px 44px; mask-image: radial-gradient(70% 80% at 75% 0%, #000, transparent); }
.pattern-soft::before { background-image: radial-gradient(color-mix(in srgb, var(--primary) 22%, transparent) 1px, transparent 1.5px); background-size: 22px 22px; mask-image: linear-gradient(120deg, #000, transparent 55%); }
.pattern-dark::before { background-image: radial-gradient(rgb(199 210 254 / .22) 1px, transparent 1.5px); background-size: 24px 24px; mask-image: radial-gradient(80% 100% at 15% 0%, #000, transparent); }

/* home page: hero editor illustration */
.hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
.app { margin: 0; min-width: 0; background: var(--surface-elevated); border: 1px solid var(--surface-border-hover); border-radius: calc(var(--radius) * 1.6); box-shadow: 0 30px 60px -30px rgb(30 27 75 / .45), 0 8px 20px -12px rgb(30 27 75 / .25); overflow: hidden; }
.app-bar { display: flex; align-items: center; gap: .6rem; padding: .55rem .8rem; background: var(--surface-card); border-bottom: 1px solid var(--surface-border); font-size: .75rem; }
.lights { display: inline-flex; gap: .3rem; }
.lights i { width: 9px; height: 9px; border-radius: 50%; background: var(--surface-border-hover); }
.app-title { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-family: var(--font-mono); color: var(--text-muted); }
.app-btn { border: 1px solid var(--surface-border-hover); border-radius: 6px; padding: .1rem .55rem; color: var(--text-secondary); font-weight: 600; }
.app-btn.on { background: var(--primary); border-color: var(--primary); color: var(--primary-foreground); }
.app-body { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1fr) minmax(0, 1.05fr); font-size: .75rem; line-height: 1.5; min-height: 21rem; }
.app-body > div { min-width: 0; padding: .8rem .7rem; }
.app-body p { margin: 0 0 .35rem; }
.app-side { border-right: 1px solid var(--surface-border); background: var(--surface-card); color: var(--text-secondary); }
.app-side p { font-size: .69rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); }
.app-side ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .15rem; }
.app-side li { padding: .15rem .35rem; border-radius: 5px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.app-side .dir::before { content: "▸ "; color: var(--text-muted); }
.app-side .dir.open::before { content: "▾ "; }
.app-side .file { padding-left: 1.1rem; }
.app-side .file.on { background: color-mix(in srgb, var(--primary) 16%, transparent); color: var(--text-primary); font-weight: 600; }
.app-src { font-family: var(--font-mono); font-size: .7rem; color: var(--text-secondary); border-right: 1px solid var(--surface-border); }
.app-src .h { color: var(--accent-text); font-weight: 700; }
.app-src .d { color: var(--text-muted); }
.app-src .mark { background: color-mix(in srgb, #f59e0b 22%, transparent); border-radius: 4px; }
.app-view { color: var(--text-secondary); }
.app-view .vh { font-size: .98rem; font-weight: 750; color: var(--text-primary); line-height: 1.25; }
.app-view .vs { font-weight: 700; color: var(--text-primary); margin-top: .5rem; }
.app-view ol { margin: 0 0 .6rem; padding-left: 1.1rem; }
.bubble, .assist { display: grid; gap: .1rem; border-radius: 8px; padding: .45rem .55rem; margin-top: .45rem; border: 1px solid var(--surface-border); background: var(--surface-card); }
.bubble { border-left: 3px solid #f59e0b; }
.assist { border-left: 3px solid var(--primary); }
.bubble b, .assist b { font-size: .69rem; letter-spacing: .05em; text-transform: uppercase; color: var(--text-muted); }
.app figcaption { padding: .55rem .8rem; border-top: 1px solid var(--surface-border); font-size: .75rem; color: var(--text-muted); }

/* home page: sections */
section.strip { padding: 1.8rem 0; border-top: 1px solid var(--surface-border); background: var(--surface-elevated); }
.facts-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.2rem; }
.facts-row > div { display: flex; gap: .75rem; align-items: flex-start; }
.facts-row .ico { margin: 0; flex: none; width: 2.3rem; height: 2.3rem; }
.facts-row p { margin: 0; font-size: .86rem; line-height: 1.5; color: var(--text-muted); }
.facts-row b { display: block; color: var(--text-primary); font-size: .95rem; }
.kicker { margin: 0 0 .5rem; font-size: .76rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-text); }
section.band-dark .kicker { color: #a5b4fc; }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { box-shadow: 0 1px 2px rgb(15 23 42 / .05); }
.card.lift:hover { box-shadow: 0 18px 34px -20px rgb(30 27 75 / .45); }
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-top: 1.6rem; }
.bento .wide { grid-column: span 2; }
.bento .feature { background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 14%, var(--surface-elevated)), var(--surface-elevated) 70%); }
.steps { list-style: none; margin: 1.8rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1rem; }
.steps li { border-top: 3px solid color-mix(in srgb, var(--primary) 35%, var(--surface-border)); padding-top: 1rem; }
.steps h3 { font-size: 1.02rem; }
.steps p { margin: 0; font-size: .92rem; color: var(--text-secondary); }
.num { display: grid; place-items: center; width: 2rem; height: 2rem; margin-bottom: .7rem; border-radius: 50%; background: var(--primary); color: var(--primary-foreground); font-weight: 750; font-size: .9rem; }
.ticks, .crosses { list-style: none; margin: .9rem 0 0; padding: 0; display: grid; gap: .45rem; font-size: .94rem; }
.ticks li, .crosses li { position: relative; padding-left: 1.5rem; color: var(--text-secondary); }
.ticks li::before { content: "✓"; position: absolute; left: 0; font-weight: 800; color: var(--secondary); }
.crosses li::before { content: "—"; position: absolute; left: 0; font-weight: 800; color: var(--text-muted); }
section.band-dark .ticks li { color: #cbd5e1; }
section.band-dark .ticks li::before { color: #5eead4; }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.6rem; }
.compare .col { background: var(--surface-elevated); border: 1px solid var(--surface-border); border-radius: calc(var(--radius) * 1.6); padding: 1.4rem; }
.compare .col.yes { border-top: 4px solid var(--secondary); }
.compare .col.no { border-top: 4px solid var(--surface-border-hover); }
.compare .yes .ticks { grid-template-columns: 1fr 1fr; }
.company-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 3rem; align-items: center; }
.cert { display: flex; gap: 1.2rem; align-items: center; background: var(--surface-elevated); border: 1px solid var(--surface-border); border-radius: calc(var(--radius) * 1.6); padding: 1.4rem; }
.cert img { width: 168px; height: 168px; flex: none; background: #fff; padding: 8px; border-radius: 10px; }
.cert p { font-size: .9rem; color: var(--text-secondary); margin: 0 0 .6rem; }
.faq { margin-top: 1.4rem; display: grid; gap: .6rem; }
.faq details { background: var(--surface-elevated); border: 1px solid var(--surface-border); border-radius: var(--radius); }
.faq details[open] { border-color: color-mix(in srgb, var(--primary) 55%, var(--surface-border)); }
.faq summary { cursor: pointer; padding: .85rem 1.1rem; font-weight: 650; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent-text); font-weight: 800; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0; padding: 0 1.1rem 1rem; color: var(--text-secondary); }
section.cta-band { text-align: center; background: linear-gradient(135deg, #312e81, #4338ca 55%, #5b21b6); color: #e0e7ff; }
.cta-band h2 { color: #fff; }
.cta-band .cta-row { justify-content: center; }
.btn-light { background: #fff; color: #312e81; }
.btn-light:hover { background: #e0e7ff; color: #312e81; }

.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: none; }
.card.reveal.in:hover { transform: translateY(-2px); }

@media (max-width: 1000px) {
  .hero-grid, .company-grid { grid-template-columns: minmax(0, 1fr); }
  .facts-row, .bento, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .grid.three, .compare { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .facts-row, .bento, .steps, .compare .yes .ticks { grid-template-columns: minmax(0, 1fr); }
  .bento .wide { grid-column: auto; }
  .app-body { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .app-body > .app-side, .app-body > .app-src { display: none; }
  .cert { flex-direction: column; text-align: center; }
}
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .card.lift:hover { transform: none; } }

/* hero headline: two balanced lines per phrase beside the illustration */
.hero h1 { font-size: clamp(2.1rem, 3.5vw, 2.8rem); text-wrap: balance; }
.hero h1 em { display: block; }
.hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
@media (max-width: 1000px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } }

/* inner pages: the head carries the home page's atmosphere */
.page-head { background: radial-gradient(700px 300px at 90% -20%, color-mix(in srgb, #7c3aed 14%, transparent), transparent 70%), radial-gradient(600px 260px at 0% 0%, color-mix(in srgb, #2563eb 10%, transparent), transparent 70%); padding-bottom: 1.6rem; }
.facts + .small { margin-top: 1rem; }
.grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid.four > .span2 { grid-column: span 2; }
@media (max-width: 1000px) { .grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .grid.four { grid-template-columns: minmax(0, 1fr); } .grid.four > .span2 { grid-column: auto; } }

/* accent colours: one per card in a row, used for edges, icons and numbers */
:root { --c1: #4338ca; --c2: #0f766e; --c3: #b45309; --c4: #be185d; --c5: #1d4ed8; }
:root[data-theme="dark"], section.band-dark { --c1: #a5b4fc; --c2: #5eead4; --c3: #fbbf24; --c4: #f9a8d4; --c5: #93c5fd; }
:is(.grid, .bento, .steps) > :nth-child(5n + 1) { --accent: var(--c1); }
:is(.grid, .bento, .steps) > :nth-child(5n + 2) { --accent: var(--c2); }
:is(.grid, .bento, .steps) > :nth-child(5n + 3) { --accent: var(--c3); }
:is(.grid, .bento, .steps) > :nth-child(5n + 4) { --accent: var(--c4); }
:is(.grid, .bento, .steps) > :nth-child(5n) { --accent: var(--c5); }
:is(.grid, .bento) > .card { border-top: 3px solid var(--accent, var(--primary)); }
:is(.grid, .bento) > .card .ico { color: var(--accent, var(--accent-text)); background: color-mix(in srgb, var(--accent, var(--primary)) 16%, transparent); border-radius: .9rem; }
:is(.grid, .bento) > .card .tag { color: var(--accent, var(--secondary)); }
.card.lift:hover { border-color: var(--accent, var(--primary)); }

/* section menu under the header: scrolls sideways on small screens, highlights the section in view */
html { scroll-padding-top: 5rem; }
html:has(.subnav) { scroll-padding-top: 8rem; }
.subnav { position: sticky; top: 65px; z-index: 45; background: color-mix(in srgb, var(--surface-elevated) 94%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--surface-border); }
.subnav ul { list-style: none; margin: 0 auto; padding: .45rem 0; display: flex; gap: .25rem; overflow-x: auto; scrollbar-width: thin; }
.subnav a { display: block; white-space: nowrap; padding: .35rem .8rem; border-radius: 999px; font-size: .85rem; font-weight: 600; color: var(--text-muted); text-decoration: none; }
.subnav a:hover { background: var(--surface-card); color: var(--text-primary); }
.subnav a[aria-current="true"] { background: var(--primary); color: var(--primary-foreground); }

/* the five-step path: a coloured edge and number per step, joined by a line */
.steps li { position: relative; border-top-color: var(--accent, var(--primary)); background: var(--surface-elevated); border-radius: 0 0 var(--radius) var(--radius); padding: 1rem; box-shadow: 0 14px 30px -24px rgb(30 27 75 / .5); }
.num { background: color-mix(in srgb, var(--accent, var(--primary)) 18%, var(--surface-elevated)); color: var(--accent, var(--accent-text)); border: 2px solid currentColor; }
.steps li:not(:last-child)::after { content: "→"; position: absolute; right: -.85rem; top: 1.4rem; z-index: 1; color: var(--text-muted); font-weight: 800; }
.steps.three-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* document illustrations */
.grid > .doc { margin: 0; padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.doc-bar { display: flex; align-items: center; gap: .6rem; padding: .55rem .8rem; background: var(--surface-card); border-bottom: 1px solid var(--surface-border); }
.doc-file { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-family: var(--font-mono); font-size: .75rem; color: var(--text-muted); }
.doc-body { flex: 1; padding: 1rem; font-family: var(--font-mono); font-size: .82rem; }
.doc-body p { margin: 0 0 .35rem; font-size: .82rem; }
.doc-body .doc-title { font-family: var(--font-body); font-size: 1.02rem; font-weight: 750; color: var(--text-primary); line-height: 1.3; margin-bottom: .8rem; }
.doc-body .h { color: var(--accent, var(--accent-text)); font-weight: 700; margin-top: .6rem; }
.doc-body .doc-note { font-family: var(--font-body); margin-top: .8rem; padding: .45rem .6rem; border-left: 3px solid var(--accent, var(--primary)); background: var(--surface-card); border-radius: 6px; }
.doc figcaption { padding: .55rem 1rem; border-top: 1px solid var(--surface-border); font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent, var(--accent-text)); }
.grid + .small { margin-top: 1rem; }

/* founder */
.founder { display: flex; gap: 1.2rem; align-items: center; margin: 1.4rem 0; padding: 1.2rem; background: var(--surface-elevated); border: 1px solid var(--surface-border); border-radius: calc(var(--radius) * 1.6); box-shadow: 0 18px 34px -24px rgb(30 27 75 / .45); }
.founder-img { width: 6rem; height: 6rem; flex: none; object-fit: cover; border-radius: 1.4rem; box-shadow: 0 0 0 3px var(--surface-elevated), 0 0 0 5px var(--primary); transform: rotate(-3deg); }
.founder p { margin: 0; font-size: .92rem; color: var(--text-secondary); }
.founder .founder-name { font-size: 1.2rem; font-weight: 800; color: var(--text-primary); }
.founder .founder-role { font-size: .82rem; color: var(--text-muted); margin-bottom: .4rem; }

/* back to top */
.to-top { position: fixed; right: 1rem; bottom: 1rem; z-index: 41; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; background: var(--primary); color: var(--primary-foreground); box-shadow: 0 10px 24px -10px rgb(30 27 75 / .6); }
.to-top:hover { background: var(--primary-hover); color: var(--primary-foreground); }
.to-top[hidden] { display: none; }
.to-top .icon { transform: rotate(-90deg); }

/* long legal pages */
.legal > h2 { margin-top: 2.4rem; padding-top: 1.4rem; border-top: 1px solid var(--surface-border); }
.legal > h2:first-child { padding-top: 0; border-top: 0; }
.legal li { margin-bottom: .35rem; }

/* motion: slow colour drift behind the hero, the editor text appearing line by line */
.hero::after { content: ""; position: absolute; width: 38vw; height: 38vw; right: -8vw; top: -12vw; z-index: -1; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--c4) 18%, transparent), transparent 65%); animation: drift 14s ease-in-out infinite alternate; }
.hero { overflow: hidden; }
.app-src p { animation: type .7s steps(24) both; }
.app-src p:nth-child(2) { animation-delay: .3s; }
.app-src p:nth-child(3) { animation-delay: .6s; }
.app-src p:nth-child(4) { animation-delay: .9s; }
.app-src p:nth-child(5) { animation-delay: 1.2s; }
.app-src p:nth-child(6) { animation-delay: 1.5s; }
.app-src p:nth-child(n + 7) { animation-delay: 1.8s; }
.bubble { animation: pop .5s ease 2.2s both; }
.assist { animation: pop .5s ease 2.7s both; }
.pill .dot { animation: ring 2.4s ease-out infinite; }
@keyframes drift { to { transform: translate3d(-6%, 8%, 0) scale(1.12); } }
@keyframes type { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes pop { from { opacity: 0; transform: translateY(8px); } }
@keyframes ring { from { box-shadow: 0 0 0 0 color-mix(in srgb, var(--secondary) 55%, transparent); } to { box-shadow: 0 0 0 .7rem transparent; } }
@media (prefers-reduced-motion: reduce) { .hero::after, .app-src p, .bubble, .assist, .pill .dot { animation: none; } }

@media (max-width: 1000px) {
  .steps.three-steps { grid-template-columns: minmax(0, 1fr); }
  .steps li::after { display: none; }
}
@media (max-width: 860px) { .to-top { bottom: 5rem; } }
@media (max-width: 560px) { .founder { flex-direction: column; align-items: flex-start; } }
@media print { .subnav, .to-top, .sticky-cta { display: none; } }
.cta-row + .small { margin-top: .9rem; }
.compare .col .small { margin-top: 1rem; }

.prose pre { margin: 1rem 0; padding: 1rem 1.1rem; white-space: pre-wrap; overflow-wrap: anywhere; background: var(--surface-elevated); border: 1px solid var(--surface-border); border-radius: var(--radius); font-size: .85rem; line-height: 1.6; }
@media (max-width: 860px) and (scripting: none) {
  .top { position: static; }
  .bar { flex-wrap: wrap; }
  .menu-btn { display: none; }
  .main { display: flex; position: static; flex-direction: row; flex-wrap: wrap; gap: 0 1rem; width: 100%; background: none; border: 0; padding: 0 0 .6rem; }
  .main .btn-cta { margin-top: 0; }
  .subnav { top: 0; }
  html { scroll-padding-top: 1rem; }
  html:has(.subnav) { scroll-padding-top: 4rem; }
}
