/* Devoid landing page. Same type and tokens as the app. */
@font-face { font-family: "Righteous"; src: url("fonts/righteous.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Outfit"; src: url("fonts/outfit.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("fonts/jetbrains-mono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --bg: #f2f3f5; --surface: #ffffff; --surface-2: #f6f7f9; --line: #e3e5ea; --line-2: #cfd2d9;
  --on-ink: #ffffff; --ink-hover: #272a31; --shot-a: #e9ebef; --shot-b: #f7f8fa;
  --deep: #0b0b0e; --deep-line: #26262d; --deep-ink: #f3f3f5; --deep-ink-2: #a6a6b1; --deep-ink-3: #7b7b86;
  color-scheme: light;
  --ink: #0f1115; --ink-2: #565b67; --ink-3: #8f94a0;
  --gold: #e3a008; --green: #12a150;
  --sans: "Outfit", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  --brand: "Righteous", "Outfit", system-ui, sans-serif;
}
/* Dark tokens: written once, used for the system preference and for an explicit choice. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a0a0c; --surface: #131316; --surface-2: #19191d; --line: #222227; --line-2: #34343c;
    --ink: #f2f2f4; --ink-2: #a3a3ad; --ink-3: #6e6e79; --on-ink: #0a0a0c; --ink-hover: #ffffff;
    --shot-a: #19191d; --shot-b: #101013;
    --deep: #111114; --deep-line: #24242b; --deep-ink: #f2f2f4; --deep-ink-2: #a3a3ad; --deep-ink-3: #6e6e79;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0a0a0c; --surface: #131316; --surface-2: #19191d; --line: #222227; --line-2: #34343c;
  --ink: #f2f2f4; --ink-2: #a3a3ad; --ink-3: #6e6e79; --on-ink: #0a0a0c; --ink-hover: #ffffff;
  --shot-a: #19191d; --shot-b: #101013;
  --deep: #111114; --deep-line: #24242b; --deep-ink: #f2f2f4; --deep-ink-2: #a3a3ad; --deep-ink-3: #6e6e79;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body { margin: 0; font: 400 17px/1.6 var(--sans); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid #2f5bea; outline-offset: 3px; border-radius: 8px; }
h1, h2, h3 { margin: 0; letter-spacing: -0.03em; }
p { margin: 0; }
.wrap { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.wrap.narrow { width: min(760px, calc(100% - 40px)); }
.wordmark { font-family: var(--brand); font-size: 26px; letter-spacing: -0.01em; line-height: 1; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }

.btn { display: inline-flex; align-items: center; gap: 9px; height: 50px; padding: 0 24px; border-radius: 999px; background: var(--ink); color: var(--on-ink); text-decoration: none; font-weight: 600; font-size: 16px; border: 1px solid var(--ink); transition: transform 0.12s, background 0.15s; }
.btn:hover { background: var(--ink-hover); transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn.ghost:hover { background: var(--surface); }
.btn.small { height: 40px; padding: 0 16px; font-size: 14.5px; }
.btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* nav */
.nav { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(14px) saturate(1.5); border-bottom: 1px solid transparent; }
.nav-in { display: flex; align-items: center; gap: 28px; height: 72px; }
.links { display: flex; gap: 26px; margin-left: auto; }
.links a { text-decoration: none; color: var(--ink-2); font-size: 15px; font-weight: 500; }
.links a:hover { color: var(--ink); }

/* hero */
.hero { padding: 54px 0 40px; overflow: hidden; }
.hero-in { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(46px, 6vw, 80px); line-height: 1.04; font-weight: 700; letter-spacing: -0.05em; margin: 0 0 22px; }
.hero h1 em { font-style: normal; white-space: nowrap; background: var(--ink); color: var(--on-ink); padding: 0 0.12em; border-radius: 0.14em; display: inline-block; line-height: 1.08; margin-top: 0.06em; }
.lede { font-size: 19px; color: var(--ink-2); max-width: 54ch; }
.ctas { display: flex; gap: 12px; flex-wrap: wrap; margin: 30px 0 16px; }
.fine { font-size: 14px; color: var(--ink-3); }
.powered { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 5px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font-size: 13.5px; text-decoration: none; white-space: nowrap; }
.powered:hover { border-color: var(--ink-3); color: var(--ink); }
.powered b { color: var(--ink); font-weight: 600; }
.powered .zec-sign { width: 22px; height: 22px; flex: none; }
.built-on { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 18px; font-size: 13.5px; color: var(--ink-3); }
.foot-base .powered { background: transparent; border-color: var(--deep-line); color: var(--deep-ink-3); }
.foot-base .powered b { color: var(--deep-ink); }

.stage { margin: 0; }
/* The phone hangs below the browser, so the caption follows the pair in the flow and cannot be
   covered by it, however the caption wraps. */
.shots { position: relative; padding-bottom: 44px; }
.browser { border-radius: 18px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 2px 4px rgb(15 17 21 / 0.04), 0 40px 80px -30px rgb(15 17 21 / 0.35); transform: perspective(1800px) rotateY(-7deg) rotateX(2deg); transform-origin: left center; }
.chrome { display: flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.chrome i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.chrome span { margin-left: 14px; font: 12px var(--mono); color: var(--ink-3); background: var(--surface); border: 1px solid var(--line); border-radius: 7px; padding: 2px 10px; }
.phone { position: absolute; right: -14px; bottom: 0; width: 31%; border-radius: 30px; padding: 7px; background: #0b0b0e; border: 1px solid #2a2a31; box-shadow: 0 30px 60px -18px rgb(15 17 21 / 0.55); }
.phone img { width: 100%; height: auto; border-radius: 24px; aspect-ratio: 390 / 640; object-fit: cover; object-position: top; }
.stage figcaption { margin-top: 12px; font-size: 12.5px; line-height: 1.45; color: var(--ink-3); }

/* facts */
.facts { padding: 22px 0 10px; }
.facts-in { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.facts-in > div { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 22px 22px 20px; display: flex; flex-direction: column; gap: 4px; }
.facts b { font-size: 38px; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.facts span { color: var(--ink-2); font-size: 15px; line-height: 1.4; }

/* sections */
.section { padding: 100px 0; }
.section.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.kicker { font-size: 13px; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 12px; }
.section h2 { font-size: clamp(32px, 4vw, 50px); line-height: 1.04; font-weight: 700; max-width: 18ch; margin-bottom: 18px; }
.section .lede { margin-bottom: 32px; }
/* body copy in a narrow section: paragraphs need air between them */
.section .wrap.narrow p + p { margin-top: 18px; }

.how { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; margin-top: 40px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 30px; }
.steps li { display: grid; grid-template-columns: 46px 1fr; gap: 18px; }
.steps .n { width: 46px; height: 46px; border-radius: 15px; background: var(--ink); color: var(--on-ink); display: grid; place-items: center; font-weight: 700; font-size: 18px; }
.steps h3 { font-size: 21px; margin-bottom: 6px; }
.steps p { color: var(--ink-2); }
/* where Devoid runs, and what is still to come */
.platforms { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 10px; }
.platforms li { display: grid; grid-template-columns: auto auto 1fr auto; align-items: center; gap: 14px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.platforms b { font-weight: 600; }
.p-ico { display: inline-flex; width: 34px; height: 34px; align-items: center; justify-content: center; border-radius: 11px; background: var(--surface-2); border: 1px solid var(--line); }
.p-ico svg { width: 19px; height: 19px; fill: none; stroke: var(--ink-2); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.p-note { color: var(--ink-3); font-size: 14px; }
.platforms + .fine, #headcount .fine { margin-top: 14px; }
.platforms .pill { justify-self: end; font-size: 12.5px; font-weight: 600; padding: 4px 11px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-3); background: var(--surface-2); white-space: nowrap; }
.platforms .pill.ok { color: #1b5e34; border-color: #a8dcbb; background: #e7f6ed; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .platforms .pill.ok { color: #9ff0c0; border-color: #1f6b43; background: #10261a; }
}
:root[data-theme="dark"] .platforms .pill.ok { color: #9ff0c0; border-color: #1f6b43; background: #10261a; }

/* the two shapes a batch can have, side by side */
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 26px 0; }
.split .shot-card { display: flex; flex-direction: column; gap: 6px; }
.big-stat { font-size: 30px; font-weight: 700; letter-spacing: -0.03em; margin: 0; line-height: 1.1; }
.big-stat span { display: block; font-size: 14px; font-weight: 500; color: var(--ink-2); letter-spacing: 0; margin-top: 4px; font-variant-numeric: tabular-nums; }

.shot-card { margin: 0; border-radius: 26px; background: linear-gradient(160deg, var(--shot-a), var(--shot-b)); padding: 34px; border: 1px solid var(--line); }
.shot-card img { border-radius: 18px; box-shadow: 0 30px 60px -28px rgb(15 17 21 / 0.4); margin: 0 auto; max-height: 640px; width: auto; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.feat { background: var(--bg); border: 1px solid var(--line); border-radius: 22px; padding: 26px; }
.feat .ico { width: 46px; height: 46px; border-radius: 15px; background: var(--surface); border: 1px solid var(--line); display: grid; place-items: center; margin-bottom: 18px; }
.feat svg { width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.feat h3 { font-size: 19px; margin-bottom: 6px; }
.feat p { color: var(--ink-2); font-size: 16px; }

.section.dark { background: var(--deep); color: var(--deep-ink); border-top: 1px solid var(--deep-line); border-bottom: 1px solid var(--deep-line); }
.section.dark .kicker { color: var(--deep-ink-3); }
.sec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px 40px; margin-top: 44px; }
.sec-grid > div { border-top: 1px solid var(--deep-line); padding-top: 20px; }
.sec-grid h3 { font-size: 19px; margin-bottom: 8px; }
.sec-grid p { color: var(--deep-ink-2); font-size: 16px; }

.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checks li { display: grid; grid-template-columns: 28px 1fr; gap: 4px 14px; padding: 18px 20px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.checks li::before { content: ""; grid-row: span 2; width: 26px; height: 26px; border-radius: 50%; margin-top: 1px; }
.checks li.done::before { background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center/15px no-repeat; }
.checks li.next::before { border: 2px dashed var(--line-2); }
.checks b { font-weight: 600; }
.checks span { color: var(--ink-2); font-size: 15.5px; }

.code { margin: 0 0 16px; padding: 24px 26px; border-radius: 20px; background: var(--deep); border: 1px solid var(--deep-line); color: var(--deep-ink); font: 14.5px/1.75 var(--mono); overflow-x: auto; }
.code .c { color: var(--deep-ink-3); }

.foot { background: var(--deep); color: var(--deep-ink-2); border-top: 1px solid var(--deep-line); padding: 72px 0 34px; font-size: 15px; }
.foot a { color: inherit; text-decoration: none; }
.foot a:hover { color: var(--deep-ink); }
.foot a:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.foot .brand { color: var(--deep-ink); }
.foot .brand img { filter: invert(1) hue-rotate(180deg); }
.foot-cta { display: flex; align-items: center; justify-content: space-between; gap: 28px 40px; flex-wrap: wrap; padding: 34px 36px; border-radius: 26px; background: linear-gradient(135deg, #1b1b20, #121216); border: 1px solid var(--deep-line); }
.foot-cta > div:first-child { flex: 1 1 380px; min-width: 0; }
.foot-cta h2 { color: var(--deep-ink); font-size: clamp(28px, 3.4vw, 40px); line-height: 1.08; letter-spacing: -0.035em; margin-bottom: 10px; }
.foot-cta h2 em { font-style: normal; background: var(--deep-ink); color: var(--deep); padding: 0 0.14em; border-radius: 0.16em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.foot-cta p { color: var(--deep-ink-2); }
.foot-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn.invert { background: var(--deep-ink); color: var(--deep); border-color: var(--deep-ink); }
.btn.invert:hover { background: #ffffff; color: var(--deep); }
.btn.ghost.invert { background: transparent; color: var(--deep-ink); border-color: var(--deep-line); }
.btn.ghost.invert:hover { background: rgb(255 255 255 / 0.06); color: var(--deep-ink); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 40px 32px; padding: 56px 0 44px; }
.foot-about { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.foot-about p { max-width: 36ch; }
.foot-state { display: inline-flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--deep-ink); padding: 7px 13px; border-radius: 999px; border: 1px solid var(--deep-line); background: rgb(255 255 255 / 0.03); }
.foot-state .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgb(18 161 80 / 0.22); flex: none; }
.foot-col h3 { font-size: 13px; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; color: var(--deep-ink-3); margin-bottom: 16px; }
.foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.foot-col a { display: inline-flex; align-items: center; gap: 6px; }
.foot .ext { width: 13px; height: 13px; opacity: 0.6; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.foot-base { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px 30px; flex-wrap: wrap; padding-top: 26px; border-top: 1px solid var(--deep-line); font-size: 13.5px; color: var(--deep-ink-3); }
.foot-base p { flex: 1 1 420px; min-width: 0; }
.to-top { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 15px; border-radius: 999px; border: 1px solid var(--deep-line); color: var(--deep-ink-2); font-weight: 600; flex: none; }
.to-top svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 980px) {
  .foot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .foot-about { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
  .foot { padding-top: 48px; }
  .foot-cta { padding: 26px 22px; border-radius: 22px; }
  .foot-actions, .foot-actions .btn { width: 100%; }
  .foot-actions .btn { justify-content: center; }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 20px; padding: 44px 0 36px; }
}
@media (max-width: 360px) {
  .foot-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 980px) {
  .hero-in, .how { grid-template-columns: 1fr; }
  .browser { transform: none; }
  .grid, .sec-grid { grid-template-columns: repeat(2, 1fr); }
  .facts-in { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .links { display: none; }
  .nav .btn { margin-left: 0; }
  .nav-in .theme-toggle { margin-left: auto; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .hero { padding-top: 30px; }
  .section { padding: 70px 0; }
  .grid, .sec-grid, .split { grid-template-columns: 1fr; }
  .platforms li { grid-template-columns: auto 1fr; row-gap: 4px; }
  .platforms .p-note { grid-column: 2; }
  .platforms .pill { grid-column: 2; justify-self: start; }
  .facts b { font-size: 30px; }
  .phone { width: 38%; right: -6px; }
  .lede { font-size: 17px; }
  .shot-card { padding: 18px; }
  .nav-in { gap: 12px; }
  .nav .gh { display: none; }
}
@media (max-width: 400px) {
  .facts-in { gap: 10px; }
  .facts-in > div { padding: 18px 16px 16px; border-radius: 16px; }
  .facts b { font-size: 26px; }
  .facts span { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

/* privacy policy and other text pages */
.nav .push { margin-left: auto; }
.prose h1 { font-size: clamp(34px, 5vw, 54px); line-height: 1.04; font-weight: 700; margin-bottom: 18px; }
.prose h2 { font-size: 24px; margin: 44px 0 12px; max-width: none; }
.prose .lede { margin-bottom: 10px; }
.prose p, .prose li { color: var(--ink-2); }
.prose p + p { margin-top: 12px; }
.prose ul { padding-left: 20px; margin: 12px 0 0; display: grid; gap: 10px; }
.prose b { color: var(--ink); font-weight: 600; }
.prose a { color: inherit; text-underline-offset: 3px; }
.prose code { white-space: nowrap; } /* host names are not broken at their hyphens */

/* 404 */
.missing { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; text-align: center; padding: 40px 20px; }
.missing .brand { margin-bottom: 18px; }
.missing h1 { font-size: clamp(38px, 6vw, 64px); line-height: 1.05; letter-spacing: -0.045em; }
.missing h1 em { font-style: normal; background: var(--ink); color: var(--on-ink); padding: 0 0.12em; border-radius: 0.14em; }
.prose ul + p { margin-top: 14px; }

/* theme toggle (shown once the script runs) and per-theme product images */
.theme-toggle { display: none; appearance: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); background: transparent; color: var(--ink); cursor: pointer; place-items: center; transition: background 0.15s; }
.js .theme-toggle { display: inline-grid; }
.theme-toggle:hover { background: var(--surface); }
.theme-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .i-sun, .img-dark { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun, :root[data-theme="dark"] .img-dark { display: block; }
:root[data-theme="dark"] .theme-toggle .i-moon, :root[data-theme="dark"] .img-light { display: none; }
:root[data-theme="dark"] .nav .brand img, :root[data-theme="dark"] .missing .brand img { filter: invert(1) hue-rotate(180deg); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .i-sun, :root:not([data-theme="light"]) .img-dark { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .i-moon, :root:not([data-theme="light"]) .img-light { display: none; }
  :root:not([data-theme="light"]) .nav .brand img, :root:not([data-theme="light"]) .missing .brand img { filter: invert(1) hue-rotate(180deg); }
}
.nav-in .theme-toggle { margin-left: auto; }
.nav-in .links + .theme-toggle { margin-left: 0; }
.nav-in .theme-toggle + .push { margin-left: 0; }
