/* asfalia public site, always light (home, pricing, security, FAQ, contact). Brand guide: docs/brand.md.
   Static pages; the only script is /pricing.js (same-origin, as the content security policy requires).
   Geist (sans) for everything people read; Geist Mono only for the wordmark and small labels. */
@font-face { font-family: 'Geist'; src: url('/fonts/Geist-Variable.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Geist Mono'; src: url('/fonts/GeistMono-Variable.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }

:root {
  color-scheme: light;
  --bg: #fafaf7; --surface: #ffffff; --sunken: #f3f2ed; --ink: #121211; --text: #121211; --soft: #3d3c38; --muted: #65645e;
  --line: #e6e5df; --line-strong: #d6d5ce; --green: #11804a; --green-bright: #3ddc84; --green-tint: #e7f4ec; --stem: #1e9e55;
  --amber: #a15c07; --amber-tint: #fdf3e2; --danger: #b3261e;
  --radius: 20px; --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(18, 18, 17, 0.04), 0 12px 32px -12px rgba(18, 18, 17, 0.12);
  --shadow-lg: 0 2px 4px rgba(18, 18, 17, 0.04), 0 40px 80px -24px rgba(18, 18, 17, 0.22);
  --sans: 'Geist', ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body { font: 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
a { color: inherit; }
p { margin: 0 0 14px; }
img, svg { display: block; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 6px; }

/* Header */
header.site { position: sticky; top: 0; z-index: 10; background: rgba(250, 250, 247, 0.82); backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px); border-bottom: 1px solid transparent; }
header.site { border-bottom-color: var(--line); }
header.site .wrap { display: flex; align-items: center; gap: 32px; min-height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--sans); text-decoration: none; color: var(--ink); }
.lockup { display: inline-flex; flex-direction: column; line-height: 1; gap: 3px; }
.lockup .name { font-size: 19px; font-weight: 600; letter-spacing: -0.03em; }
.lockup .by { font-size: 11.5px; font-weight: 500; letter-spacing: -0.01em; color: var(--muted); }
.logo svg { width: 30px; height: 30px; }
header.site nav { display: flex; gap: 28px; flex: 1; justify-content: center; }
header.site nav a, .signin { color: var(--soft); text-decoration: none; font-size: 15px; white-space: nowrap; }
header.site nav a:hover, .signin:hover, header.site nav a[aria-current="page"] { color: var(--ink); }
header.site nav a[aria-current="page"] { font-weight: 500; }
.header-actions { display: flex; align-items: center; gap: 24px; }

/* Buttons */
.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.center .cta, .cta.center { justify-content: center; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 24px; border-radius: 999px; font: 500 16px/1.2 var(--sans); text-decoration: none; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); cursor: pointer; transition: background 0.15s, border-color 0.15s, transform 0.15s; }
.button:hover { border-color: var(--muted); }
.button.primary { background: var(--ink); color: #fafaf7; border-color: var(--ink); }
.button.primary:hover { background: #000; border-color: #000; }
.button.small { padding: 9px 18px; font-size: 14px; }
.button.light { background: #fafaf7; color: var(--ink); border-color: #fafaf7; }
.button.light:hover { background: #fff; }
.button.outline-light { background: transparent; color: #fafaf7; border-color: rgba(250, 250, 247, 0.3); }
.button.outline-light:hover { border-color: #fafaf7; }
.arrow::after { content: '\2192'; display: inline-block; transition: transform 0.15s; }
.button:hover .arrow::after, a:hover > .arrow::after { transform: translateX(3px); }
.textlink { color: var(--green); font-weight: 500; text-decoration: none; }
.textlink:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Type */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 500 13px/1 var(--sans); color: var(--soft); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; margin: 0 0 20px; }
.eyebrow::before, .dot::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--green-bright); box-shadow: 0 0 0 3px rgba(61, 220, 132, 0.22); flex: none; }
.label { font: 500 12px/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--green); margin: 0 0 16px; }
h1, h2, h3 { font-family: var(--sans); color: var(--ink); margin: 0; }
h1 { font-size: clamp(42px, 7.2vw, 80px); line-height: 1.02; font-weight: 600; letter-spacing: -0.045em; margin-bottom: 20px; text-wrap: balance; }
h2 { font-size: clamp(32px, 4.6vw, 52px); line-height: 1.06; font-weight: 600; letter-spacing: -0.04em; margin-bottom: 18px; text-wrap: balance; }
h3 { font-size: 21px; line-height: 1.25; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 8px; }
.lede { font-size: clamp(18px, 2vw, 21px); line-height: 1.5; color: var(--soft); max-width: 34em; margin: 0 0 28px; text-wrap: pretty; }
.center .lede { margin-left: auto; margin-right: auto; }
.note { font-size: 14px; color: var(--muted); margin: 20px 0 0; }
.soft { color: var(--muted); }

/* Sections */
section { padding: 88px 0; }
section.tight { padding: 56px 0; }
/* Two plain sections in a row share one gap instead of doubling it. */
main > section:not(.alt) + section:not(.alt), main > .page-hero + section { padding-top: 0; }
section.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 720px; margin: 0 0 40px; }
.section-head.center { margin-left: auto; margin-right: auto; }
.section-head .lede { margin-bottom: 0; }

/* Hero */
.hero { padding: 56px 0 0; text-align: center; overflow: hidden; }
.hero h1 { max-width: 15em; margin-left: auto; margin-right: auto; }
.hero .note { margin-top: 18px; }
.hero-stage { position: relative; margin: 48px auto 0; max-width: 1040px; padding: 0 0 0; }
.hero-stage::before { content: ''; position: absolute; inset: 12% -10% -20%; background: radial-gradient(50% 50% at 50% 50%, rgba(61, 220, 132, 0.18), transparent 70%); z-index: 0; }
.page-hero { padding: 64px 0 48px; }
.page-hero .lede { margin-bottom: 0; }
.page-hero .lede + .cta { margin-top: 28px; }
.page-hero h1 { font-size: clamp(40px, 6vw, 64px); }

/* Product mock: a stylised standby inbox (illustration, not a screenshot) */
.mock { position: relative; z-index: 1; background: var(--surface); border: 1px solid var(--line); border-radius: 16px 16px 0 0; box-shadow: var(--shadow-lg); overflow: hidden; text-align: left; font-size: 14px; }
.mock-chrome { display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: var(--sunken); border-bottom: 1px solid var(--line); }
.mock-chrome i { width: 11px; height: 11px; border-radius: 50%; background: var(--line-strong); }
.mock-chrome .url { margin: 0 auto; font: 12px/1 var(--sans); color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 6px 40px; }
.mock-bar { display: flex; align-items: center; gap: 12px; padding: 12px 20px; background: var(--ink); color: #f1f0ec; }
.mock-bar .co { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.mock-bar .co b { width: 22px; height: 22px; border-radius: 6px; background: #3a6ff7; display: grid; place-items: center; font-size: 12px; color: #fff; }
.mock-bar .status { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: #c9c8c2; }
.mock-banner { display: flex; align-items: center; gap: 10px; padding: 10px 20px; background: var(--green-tint); color: #0c5c35; font-size: 13.5px; border-bottom: 1px solid #cfe8d9; }
.mock-banner strong { font-weight: 600; }
.mock-body { display: grid; grid-template-columns: 200px 340px 1fr; min-height: 380px; }
.mock-side { padding: 16px 12px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
.mock-side .compose { margin: 0 0 12px; padding: 10px 14px; border-radius: 10px; background: var(--ink); color: #fafaf7; font-weight: 500; text-align: center; }
.mock-side span { display: flex; justify-content: space-between; padding: 8px 12px; border-radius: 8px; color: var(--soft); }
.mock-side span.on { background: var(--sunken); color: var(--ink); font-weight: 500; }
.mock-side em { font-style: normal; color: var(--muted); font-size: 12.5px; }
.mock-list { border-right: 1px solid var(--line); min-width: 0; }
.mock-msg { padding: 14px 18px; border-bottom: 1px solid var(--line); }
.mock-msg.on { background: #f6faf7; box-shadow: inset 3px 0 0 var(--green); }
.mock-msg .top { display: flex; justify-content: space-between; gap: 8px; }
.mock-msg .from { font-weight: 600; color: var(--ink); }
.mock-msg .time { color: var(--muted); font-size: 12.5px; }
.mock-msg .subj { color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-msg .prev { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-msg.unread .subj { font-weight: 600; }
.mock-read { padding: 24px 28px; }
.mock-read .subj { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 14px; color: var(--ink); }
.mock-read .who { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 600; color: #fff; background: #8b6cf0; flex: none; }
.mock-read .who small { display: block; color: var(--muted); font-size: 12.5px; }
.mock-read p { color: var(--soft); font-size: 14px; margin-bottom: 10px; }
.mock-read .reply { margin-top: 20px; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; color: var(--muted); display: flex; justify-content: space-between; align-items: center; }
.mock-read .reply b { background: var(--ink); color: #fafaf7; font-weight: 500; font-size: 13px; padding: 6px 14px; border-radius: 999px; }

/* Facts strip */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 32px 0; border-bottom: 1px solid var(--line); }
.facts div { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--soft); }
.facts strong { display: block; color: var(--ink); font-weight: 600; }
.icon { width: 22px; height: 22px; flex: none; color: var(--green); stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-top: 2px; }

/* Statement */
.statement { font-size: clamp(28px, 3.8vw, 44px); line-height: 1.18; font-weight: 600; letter-spacing: -0.035em; color: var(--ink); max-width: 22em; margin: 0 auto; text-wrap: balance; }
.statement span { color: var(--muted); }

/* Bento tiles */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; display: flex; flex-direction: column; overflow: hidden; position: relative; }
section.alt .tile { background: var(--bg); }
.tile p { color: var(--muted); margin: 0; }
.tile .art { margin-top: auto; padding-top: 32px; }
.span-2 { grid-column: span 2; }
.span-3 { grid-column: span 3; }
.span-4 { grid-column: span 4; }
.span-6 { grid-column: span 6; }
.tile.dark { background: var(--ink); border-color: var(--ink); color: #f1f0ec; }
.tile.dark h3 { color: #f1f0ec; }
.tile.dark p { color: #a9a8a2; }
.tile.split { flex-direction: row; align-items: center; gap: 40px; }
.tile.split > div:first-child { flex: 1; }

/* Tile art */
.chips { display: grid; gap: 8px; }
.chip-row { display: flex; align-items: center; gap: 10px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font-size: 14px; }
section.alt .chip-row { background: var(--surface); }
.chip-row .avatar { width: 28px; height: 28px; font-size: 11px; }
.chip-row .t { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink); }
.pill { font-size: 12px; font-weight: 500; padding: 4px 10px; border-radius: 999px; background: var(--green-tint); color: #0c5c35; white-space: nowrap; }
.pill.grey { background: var(--sunken); color: var(--soft); }
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; text-align: center; font-size: 12px; color: var(--muted); }
.week b { display: block; height: 72px; border-radius: 10px; background: var(--green-tint); margin-bottom: 8px; position: relative; overflow: hidden; }
.week b::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; background: var(--stem); border-radius: 10px; height: var(--h, 60%); opacity: 0.85; }
.flow { display: flex; align-items: center; gap: 10px; }
.flow .node { flex: 1; text-align: center; background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 18px 10px; font-size: 14px; font-weight: 500; color: var(--ink); }
section.alt .flow .node { background: var(--surface); }
.flow .node small { display: block; color: var(--muted); font-weight: 400; font-size: 12.5px; margin-top: 2px; }
.flow .node svg { margin: 0 auto 8px; width: 28px; height: 28px; }
.ol-mark { width: 28px; height: 28px; border-radius: 7px; background: #0f6cbd; color: #fff; font-weight: 700; font-size: 14px; display: grid; place-items: center; margin: 0 auto 8px; }

/* Phone with a text message */
.phone { width: 260px; flex: none; background: #0b0b0a; border-radius: 40px; padding: 10px; box-shadow: var(--shadow-lg); }
.phone-screen { background: #f2f2f6; border-radius: 31px; padding: 18px 14px 26px; min-height: 300px; font-size: 13px; color: #1c1c1e; }
.phone-top { display: flex; justify-content: space-between; font-size: 12px; font-weight: 600; padding: 0 10px 14px; }
.phone-island { width: 84px; height: 24px; border-radius: 12px; background: #0b0b0a; margin: -6px auto 14px; }
.phone-from { text-align: center; font-size: 11px; color: #8e8e93; margin-bottom: 12px; }
.phone-from b { display: block; width: 40px; height: 40px; margin: 0 auto 6px; border-radius: 50%; background: var(--ink); display: grid; place-items: center; }
.phone-from b svg { width: 24px; height: 24px; }
.bubble { background: #e5e5ea; border-radius: 18px; padding: 10px 13px; line-height: 1.4; max-width: 92%; }
.bubble u { color: #0a63d1; text-decoration: none; }
.faceid { margin-top: 14px; background: #fff; border-radius: 16px; padding: 14px; display: grid; box-shadow: 0 1px 2px rgba(0,0,0,0.05); }
.fid { grid-area: 1 / 1; display: flex; align-items: center; gap: 12px; }
.fid-done { opacity: 0; }
.faceid svg { width: 30px; height: 30px; color: var(--green); stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; }
.faceid small { display: block; color: #8e8e93; font-size: 11.5px; }

/* How it works: the animated diagram (markup and keyframes from apps/web/site/flow.py, keyframes in /flow.css) */
.fv { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; }
.fv > input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.fv-stage { position: relative; }
.fv-svg { width: 100%; height: auto; overflow: visible; }
.fv-P { display: none; max-width: 400px; margin: 0 auto; }
.fv-play { position: absolute; top: 0; right: 0; z-index: 1; display: none; align-items: center; gap: 6px; font: 500 13px/1 var(--sans); color: var(--soft); background: var(--surface); border: 1px solid var(--line-strong); border-radius: 999px; padding: 8px 14px; cursor: pointer; }
.fv-play:hover { border-color: var(--muted); color: var(--ink); }
.fv:has(.fv-pick:checked) .fv-play { display: inline-flex; }
.fv:has(#fv-auto:focus-visible) .fv-play { outline: 2px solid var(--green); outline-offset: 3px; }
.fv-svg text { font-family: var(--sans); }
.fv-box { fill: var(--surface); stroke: var(--line-strong); stroke-width: 1.2; }
.fv-down { fill: #fdf0ef; stroke: var(--danger); stroke-width: 1.5; }
.fv-lit { fill: var(--green-tint); stroke: var(--green); stroke-width: 2; }
.fv-t { font-size: 15px; font-weight: 600; fill: var(--ink); letter-spacing: -0.01em; }
.fv-s { font-size: 12.5px; fill: var(--muted); }
.fv-st { font-size: 12.5px; font-weight: 500; fill: var(--ink); }
.fv-av { font-size: 9.5px; font-weight: 600; fill: #fff; }
.fv-ol { font-size: 15px; font-weight: 700; fill: #fff; }
.fv-lbl { font: 500 11px var(--mono); letter-spacing: 0.04em; fill: var(--muted); text-transform: uppercase; }
.fv-track { fill: none; stroke: var(--line-strong); stroke-width: 1.5; stroke-dasharray: 4 6; stroke-linejoin: round; }
.fv-dots { stroke-dasharray: 1.5 6; stroke-linecap: round; stroke-width: 2.5; }
.fv-live { fill: none; stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.fv-live-ms { stroke: #0f6cbd; }
.fv-live-bg { stroke: var(--stem); }
.fv-pulse { fill: var(--green-bright); }
.fv-copy { fill: var(--stem); }
.fv-env rect { fill: #fff; stroke: #0f6cbd; stroke-width: 1.6; }
.fv-env path { fill: none; stroke: #0f6cbd; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.fv-env-bg rect, .fv-env-bg path { stroke: var(--stem); }
.fv-bubble > rect:first-child { fill: var(--ink); }
.fv-phone { fill: none; stroke: var(--green-bright); stroke-width: 1.8; }
.fv-bt { font-size: 12.5px; font-weight: 500; fill: #f1f0ec; }
.fv-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 24px; }
.fv-step { position: relative; overflow: hidden; display: block; border: 1px solid var(--line); background: var(--bg); border-radius: 14px; padding: 20px 22px 22px; cursor: pointer; }
.fv-step:hover { border-color: var(--line-strong); }
.fv-n { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #fafaf7; font: 600 13px/1 var(--sans); margin-bottom: 14px; }
.fv-h { display: block; font-size: 18px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); margin-bottom: 6px; }
.fv-p { display: block; font-size: 15px; line-height: 1.5; color: var(--muted); }
.fv-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--green); transform-origin: left; transform: scaleX(0); }
.fv:has(.fv-pick:checked) .fv-bar { visibility: hidden; }
@media (prefers-reduced-motion: reduce) { .fv-bar, .fv-play { visibility: hidden; } }

/* Readiness card ("on a normal day") */
.ready { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 8px 24px; min-width: 0; }
.ready-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.ready-row:last-child { border-bottom: 0; }
.ready-row span { color: var(--soft); }
.ready-row b { font-weight: 500; display: inline-flex; align-items: center; gap: 8px; }
.dot { display: inline-flex; align-items: center; gap: 8px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.two-col .lede { margin-bottom: 24px; }

/* Cards (security teaser etc.) */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
section.alt .card { background: var(--bg); }
.card .icon { width: 28px; height: 28px; margin: 0 0 20px; }
.card p { color: var(--muted); margin: 0; font-size: 16px; }

/* Price teaser and pricing page */
.price-hero { text-align: center; }
.price { font-size: clamp(64px, 10vw, 112px); font-weight: 600; letter-spacing: -0.05em; line-height: 1; color: var(--ink); margin: 8px 0 12px; }
.price small { font-size: 20px; color: var(--muted); letter-spacing: -0.01em; font-weight: 400; }
.price-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); display: grid; grid-template-columns: 1fr 1.2fr; overflow: hidden; }
.price-card > div { padding: 44px; }
.price-card > div + div { border-left: 1px solid var(--line); background: var(--bg); }
.price-card .price { font-size: 72px; margin-top: 0; }
.ticks { list-style: none; margin: 0; padding: 0; columns: 1; }
.ticks li { padding: 7px 0 7px 32px; position: relative; font-size: 16px; color: var(--soft); }
.ticks li::before { content: ''; position: absolute; left: 0; top: 10px; width: 20px; height: 20px; border-radius: 50%; background: var(--green-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%2311804a' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 10.5l2.5 2.5L14 7.5'/%3E%3C/svg%3E") center/20px no-repeat; }
table.examples { width: 100%; border-collapse: collapse; font-size: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
table.examples th, table.examples td { text-align: left; padding: 16px 24px; border-bottom: 1px solid var(--line); font-weight: 400; }
table.examples tr:last-child td { border-bottom: 0; }
table.examples th { color: var(--muted); font-size: 14px; background: var(--sunken); font-weight: 500; }
table.examples td:last-child, table.examples th:last-child { text-align: right; font-variant-numeric: tabular-nums; }

/* Feature list (security page) */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.features .card h3 { margin-bottom: 10px; }

/* FAQ */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; font-size: 19px; font-weight: 500; letter-spacing: -0.01em; list-style: none; display: flex; justify-content: space-between; gap: 24px; padding: 24px 0; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-weight: 300; font-size: 26px; line-height: 0.9; color: var(--muted); flex: none; transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { color: var(--soft); font-size: 17px; padding: 0 48px 24px 0; }
.faq details > div p:last-child { margin: 0; }
.faq a { color: var(--green); }

/* Forms */
.contact-layout { display: grid; grid-template-columns: 1fr 1.3fr; gap: 72px; align-items: start; }
.contact-points { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 16px; }
.contact-points li { display: flex; gap: 12px; color: var(--soft); }
form.contact { display: grid; gap: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 36px; }
form.contact label { display: grid; gap: 8px; font-size: 14px; font-weight: 500; color: var(--soft); }
form.contact input, form.contact textarea, form.contact select { font: inherit; font-size: 16px; color: var(--ink); background: var(--bg); border: 1px solid var(--line-strong); border-radius: 10px; padding: 12px 14px; width: 100%; transition: border-color 0.15s, box-shadow 0.15s; }
form.contact input:focus, form.contact textarea:focus, form.contact select:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px rgba(17, 128, 74, 0.12); background: #fff; }
form.contact textarea { min-height: 150px; resize: vertical; }
form.contact .button { width: 100%; }
form.contact .note { margin: 0; text-align: center; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
/* Signup form (/signup/) */
form.contact .hint { font-weight: 400; color: var(--muted); font-size: 13px; }
form.contact .opt { font-weight: 400; color: var(--muted); }
form.contact fieldset.choice { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
form.contact fieldset.choice legend { font-size: 14px; font-weight: 500; color: var(--soft); padding: 0; margin-bottom: 8px; width: 100%; }
form.contact fieldset.choice label { display: inline-flex; flex-direction: row; align-items: center; gap: 8px; border: 1px solid var(--line-strong); border-radius: 999px; padding: 9px 16px; font-size: 15px; color: var(--ink); cursor: pointer; background: var(--bg); }
form.contact fieldset.choice label:has(input:checked) { border-color: var(--ink); background: #fff; box-shadow: 0 0 0 1px var(--ink); }
form.contact fieldset.choice input { width: auto; margin: 0; accent-color: var(--ink); }
form.contact .estimate { margin: 0; padding: 14px 16px; border-radius: 12px; background: var(--green-tint); color: var(--ink); font-size: 15px; }
form.contact .estimate strong { font-weight: 600; }
.notice { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; font-size: 15px; }
.notice.error { border-color: var(--danger); color: var(--danger); }

/* Closing band */
.band { background: var(--ink); color: #f1f0ec; border-radius: 28px; padding: 64px 40px; text-align: center; position: relative; overflow: hidden; }
.band::before { content: ''; position: absolute; inset: -40% 20% auto; height: 120%; background: radial-gradient(50% 50% at 50% 50%, rgba(61, 220, 132, 0.18), transparent 70%); }
.band > * { position: relative; }
.band h2 { color: #f1f0ec; }
.band .lede { color: #b4b3ad; }
.band .mark-big { width: 56px; height: 56px; margin: 0 auto 28px; }

/* Footer */
footer.site { border-top: 1px solid var(--line); margin-top: 0; }
footer.site .wrap { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-top: 48px; padding-bottom: 28px; }
footer.site .tag { color: var(--muted); font-size: 15px; margin: 14px 0 0; max-width: 22em; }
footer.site h4 { font: 500 13px/1 var(--sans); color: var(--ink); margin: 6px 0 16px; }
footer.site nav { display: grid; gap: 10px; }
footer.site nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
footer.site nav a:hover { color: var(--ink); }
footer.site .legal { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 24px; margin-top: 16px; font-size: 13px; color: var(--muted); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* Responsive */
@media (max-width: 980px) {
  .mock-body { grid-template-columns: 280px 1fr; }
  .mock-side { display: none; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .bento .span-2, .bento .span-3, .bento .span-4 { grid-column: span 6; }
  .two-col, .contact-layout { grid-template-columns: 1fr; gap: 48px; }
  .cards { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .header-actions { margin-left: auto; gap: 14px; }
  section { padding: 56px 0; }
  section.tight { padding: 44px 0; }
  .hero { padding-top: 36px; }
  .page-hero { padding: 40px 0 32px; }
  .hero-stage { margin-top: 36px; }
  .section-head { margin-bottom: 28px; }
  .statement { font-size: 24px; }
  .center .cta .button, .cta.center .button { min-width: 220px; }
  .mock-body { grid-template-columns: 1fr; min-height: 0; }
  .mock-read, .mock-chrome .url { display: none; }
  .mock-bar .status { display: none; }
  .facts { grid-template-columns: 1fr; gap: 18px; }
  .tile { padding: 28px; }
  .tile.split { flex-direction: column; align-items: stretch; }
  .tile.split .phone { margin: 0 auto; }
  .fv { padding: 18px; }
  .fv-L { display: none; }
  .fv-P { display: block; }
  .fv-steps { grid-template-columns: 1fr; gap: 10px; }
  .fv-step { padding: 16px 18px 18px; }
  .features, .price-card, .row2 { grid-template-columns: 1fr; }
  .price-card > div { padding: 32px 28px; }
  .price-card > div + div { border-left: 0; border-top: 1px solid var(--line); }
  form.contact { padding: 24px; }
  .band { padding: 48px 24px; border-radius: 20px; }
  footer.site .wrap { grid-template-columns: 1fr 1fr; }
  footer.site .wrap > div:first-child { grid-column: 1 / -1; }
  table.examples th, table.examples td { padding: 14px 16px; }
}

/* Chat mock (illustration) */
.mock-side .sep { padding: 0; height: 1px; background: var(--line); margin: 8px 4px; border-radius: 0; }
.chatmock { display: grid; grid-template-columns: 250px 1fr; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; font-size: 14px; }
.chat-side { padding: 18px 12px; border-right: 1px solid var(--line); background: var(--bg); display: flex; flex-direction: column; gap: 2px; }
.chat-side .grp { font-size: 12px; font-weight: 600; color: var(--muted); margin: 10px 12px 4px; }
.chat-side .grp:first-child { margin-top: 0; }
.chat-side span { display: flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 8px; color: var(--soft); }
.chat-side span.on { background: var(--surface); color: var(--ink); font-weight: 500; box-shadow: 0 0 0 1px var(--line); }
.chat-side em { margin-left: auto; font-style: normal; font-size: 11.5px; font-weight: 600; background: var(--green); color: #fff; border-radius: 999px; padding: 1px 7px; }
.chat-side .avatar { width: 22px; height: 22px; font-size: 9.5px; font-style: normal; }
.chat-main { display: flex; flex-direction: column; min-width: 0; }
.chat-head { display: flex; align-items: baseline; gap: 12px; padding: 16px 24px; border-bottom: 1px solid var(--line); }
.chat-head strong { font-size: 16px; color: var(--ink); }
.chat-head span { color: var(--muted); font-size: 13px; }
.chat-msgs { padding: 8px 24px; flex: 1; }
.cmsg { display: flex; gap: 12px; padding: 14px 0; }
.cmsg p { margin: 0; color: var(--soft); }
.cmsg .meta { color: var(--muted); font-size: 12.5px; margin-bottom: 2px; }
.cmsg .meta b { color: var(--ink); font-size: 14px; font-weight: 600; margin-right: 6px; }
.reacts { display: flex; gap: 6px; margin-top: 8px !important; }
.reacts span { font-size: 12.5px; border: 1px solid var(--line); border-radius: 999px; padding: 2px 9px; background: var(--bg); }
.thread { margin-top: 6px !important; color: var(--green) !important; font-size: 13px; font-weight: 500; }
.chat-compose { margin: 8px 24px 20px; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; color: var(--muted); display: flex; justify-content: space-between; align-items: center; }
.chat-compose b { background: var(--ink); color: #fafaf7; font-weight: 500; font-size: 13px; padding: 6px 14px; border-radius: 999px; }
@media (max-width: 760px) {
  .chatmock { grid-template-columns: 1fr; }
  .chat-side { display: none; }
  .chat-head, .chat-msgs { padding-left: 18px; padding-right: 18px; }
  .chat-compose { margin: 8px 18px 18px; }
}

/* Pricing toggles (driven by /pricing.js; hidden until it runs) */
.toggles { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 22px; }
.price-hero .toggles { justify-content: center; margin-top: 8px; }
.toggles[hidden] { display: none; }
.seg { display: inline-flex; background: var(--sunken); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.seg button { font: 500 14px/1 var(--sans); color: var(--soft); background: transparent; border: 0; border-radius: 999px; padding: 9px 16px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(18, 18, 17, 0.08), 0 0 0 1px var(--line); }
.seg .save, form.contact .save { font-size: 11.5px; font-weight: 600; color: #0c5c35; background: var(--green-tint); border-radius: 999px; padding: 3px 7px; }
.billing-note { font-size: 15px; color: var(--muted); margin: -4px 0 20px; }
.price-hero .billing-note { margin-bottom: 18px; }
table.examples td:nth-child(2), table.examples th:nth-child(2) { text-align: right; font-variant-numeric: tabular-nums; }
table.examples th small { font-weight: 400; color: var(--muted); font-size: 12px; }
.price small { white-space: nowrap; display: inline-block; margin-left: 0.25em; }

/* Tile animations: the sign-in phone (10s loop) and "No mail lost" (8s loop).
   Without animation (reduced motion) each shows its finished state. */
.ol-mark { position: relative; }
.ol-mark .badge { position: absolute; top: -7px; right: -9px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--green); color: #fff; font-size: 11px; line-height: 18px; text-align: center; box-shadow: 0 0 0 2px var(--surface); }
section.alt .ol-mark .badge { box-shadow: 0 0 0 2px var(--surface); }
.flow .link { position: relative; flex: 0 0 64px; height: 20px; }
@media (max-width: 760px) { .flow { flex-direction: column; align-items: stretch; gap: 0; } .flow .node { padding: 14px 10px; } .flow .link { flex: none; width: 44px; height: 20px; margin: 12px auto; transform: rotate(90deg); } }
.flow .link::before { content: ''; position: absolute; left: 0; right: 6px; top: 50%; border-top: 1.5px dashed var(--line-strong); }
.flow .link::after { content: ''; position: absolute; right: 1px; top: 50%; width: 7px; height: 7px; border: solid var(--green); border-width: 1.5px 1.5px 0 0; transform: translateY(-50%) rotate(45deg); }
.flow .link i { position: absolute; left: 0; top: 50%; width: 14px; height: 10px; margin-top: -5px; border-radius: 2px; background: #fff; border: 1.4px solid var(--stem); opacity: 0; }
.flow .link i::after { content: ''; position: absolute; left: 50%; top: -3px; width: 6px; height: 6px; margin-left: -3px; border: solid var(--stem); border-width: 0 1.2px 1.2px 0; transform: rotate(45deg); }
.flow .link-2 i { width: 9px; height: 9px; margin-top: -4.5px; border-radius: 50%; background: var(--green-bright); border: 0; }
.flow .link-2 i::after { display: none; }
.flow .node-done, section.alt .flow .node-done { border-color: var(--green); background: var(--green-tint); }
@media (prefers-reduced-motion: no-preference) {
  .bubble { animation: ph-bubble 10s ease-out infinite; transform-origin: 0 100%; }
  .faceid { animation: ph-card 10s ease-out infinite; }
  .fid-scan { animation: ph-scan 10s linear infinite; }
  .fid-scan svg { animation: ph-face 10s ease-in-out infinite; }
  .fid-done { animation: ph-done 10s linear infinite; }
  .flow .link i { animation: fl-move 8s linear infinite; }
  .flow .link i:nth-child(2) { animation-delay: 0.7s; }
  .flow .link i:nth-child(3) { animation-delay: 1.4s; }
  .flow .link-2 i { animation-delay: 3s; }
  .ol-mark .badge { animation: fl-badge 8s ease-out infinite; }
  .flow .node-done { animation: fl-done 8s ease-out infinite; }
  .flow .node-done svg { animation: fl-check 8s ease-out infinite; }
}
@keyframes ph-bubble { 0%, 6% { opacity: 0; transform: translateY(8px) scale(0.92); } 11%, 94% { opacity: 1; transform: none; } 100% { opacity: 0; transform: none; } }
@keyframes ph-card { 0%, 22% { opacity: 0; transform: translateY(12px); } 27%, 94% { opacity: 1; transform: none; } 100% { opacity: 0; transform: none; } }
@keyframes ph-scan { 0%, 48% { opacity: 1; } 51%, 99% { opacity: 0; } 100% { opacity: 1; } }
@keyframes ph-face { 0%, 30% { transform: none; color: var(--green); } 35%, 45% { transform: scale(1.12); color: var(--green-bright); } 40%, 48% { transform: none; color: var(--green); } }
@keyframes ph-done { 0%, 48% { opacity: 0; } 52%, 94% { opacity: 1; } 100% { opacity: 0; } }
@keyframes fl-move { 0% { left: 0; opacity: 0; } 2% { opacity: 1; } 14% { opacity: 1; } 16% { left: calc(100% - 16px); opacity: 0; } 100% { left: calc(100% - 16px); opacity: 0; } }
@keyframes fl-badge { 0%, 34% { opacity: 0; transform: scale(0.4); } 38% { opacity: 1; transform: scale(1.2); } 42%, 94% { opacity: 1; transform: none; } 100% { opacity: 0; transform: none; } }
@keyframes fl-done { 0%, 52% { border-color: var(--line); background: var(--surface); } 58%, 94% { border-color: var(--green); background: var(--green-tint); } 100% { border-color: var(--line); background: var(--surface); } }
@keyframes fl-check { 0%, 52% { color: var(--line-strong); transform: none; } 56% { color: var(--green); transform: scale(1.18); } 60%, 94% { color: var(--green); transform: none; } 100% { color: var(--line-strong); } }

/* Calendar tile (illustration) */
.agenda { width: 340px; flex: none; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: 6px 0; font-size: 14px; }
section.alt .agenda { background: var(--surface); }
.agenda-head { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 18px 12px; border-bottom: 1px solid var(--line); }
.agenda-head b { font-weight: 600; color: var(--ink); }
.agenda-head span { font-size: 12.5px; color: var(--muted); }
.agenda-row { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.agenda-row:last-child { border-bottom: 0; }
.agenda-row time { width: 40px; flex: none; color: var(--muted); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.agenda-row .ev { flex: 1; min-width: 0; padding-left: 10px; border-left: 3px solid #0f6cbd; }
.agenda-row .ev strong { display: block; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.agenda-row .ev small { display: block; color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.agenda-row.now { background: #f6faf7; }
.agenda-row.now .ev { border-left-color: var(--green); }
.agenda .join { font-size: 12px; font-weight: 500; color: #fff; background: #5b5fc7; border-radius: 999px; padding: 4px 11px; }
@media (max-width: 760px) { .tile.split .agenda { width: 100%; } }

/* Hero mock animation (14s loop): new mail arrives, a reply is typed and sent. Without motion it shows the still mock. */
.mock-side em.count { display: inline-grid; }
.mock-side em.count i { grid-area: 1 / 1; font-style: normal; }
.mock-side em.count .c5 { opacity: 0; }
.mock-new { display: grid; grid-template-rows: 0fr; }
.mock-new > .mock-msg { min-height: 0; overflow: hidden; padding-top: 0; padding-bottom: 0; border-bottom-width: 0; }
.mock-read .reply-text { display: grid; min-width: 0; }
.mock-read .reply-text > span { grid-area: 1 / 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-read .reply .typed { color: var(--ink); opacity: 0; }
.mock-read .reply .sent { color: var(--green); font-weight: 500; opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .mock-bar .status .dot::before { animation: mk-live 2.4s ease-out infinite; }
  .mock-new { animation: mk-rows 14s ease-in-out infinite; }
  .mock-new > .mock-msg { animation: mk-row 14s ease-in-out infinite; }
  .mock-side em.count .c4 { animation: mk-c4 14s linear infinite; }
  .mock-side em.count .c5 { animation: mk-c5 14s linear infinite; }
  .mock-read .reply .ph { animation: mk-ph 14s linear infinite; }
  .mock-read .reply .typed { animation: mk-typed 14s linear infinite; }
  .mock-read .reply .sent { animation: mk-sent 14s linear infinite; }
  .mock-read .reply b { animation: mk-send 14s ease-out infinite; }
}
@keyframes mk-live { 0% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0.55); } 70%, 100% { box-shadow: 0 0 0 7px rgba(61, 220, 132, 0); } }
@keyframes mk-rows { 0%, 9% { grid-template-rows: 0fr; } 14%, 92% { grid-template-rows: 1fr; } 97%, 100% { grid-template-rows: 0fr; } }
@keyframes mk-row { 0%, 9% { padding-top: 0; padding-bottom: 0; border-bottom-width: 0; background: #eef8f1; } 14% { padding-top: 14px; padding-bottom: 14px; border-bottom-width: 1px; background: #eef8f1; } 30%, 92% { padding-top: 14px; padding-bottom: 14px; border-bottom-width: 1px; background: transparent; } 97%, 100% { padding-top: 0; padding-bottom: 0; border-bottom-width: 0; background: transparent; } }
@keyframes mk-c4 { 0%, 11% { opacity: 1; } 12%, 95% { opacity: 0; } 96%, 100% { opacity: 1; } }
@keyframes mk-c5 { 0%, 11% { opacity: 0; } 12%, 95% { opacity: 1; } 96%, 100% { opacity: 0; } }
@keyframes mk-ph { 0%, 31% { opacity: 1; } 32%, 92% { opacity: 0; } 95%, 100% { opacity: 1; } }
@keyframes mk-typed {
  0%, 32% { opacity: 0; clip-path: inset(0 100% 0 0); }
  33% { opacity: 1; clip-path: inset(0 100% 0 0); animation-timing-function: steps(30, end); }
  54%, 61% { opacity: 1; clip-path: inset(0 0 0 0); }
  62%, 100% { opacity: 0; clip-path: inset(0 0 0 0); }
}
@keyframes mk-send { 0%, 58% { transform: none; background: var(--ink); } 60% { transform: scale(0.9); background: var(--green); } 63%, 90% { transform: none; background: var(--green); } 94%, 100% { transform: none; background: var(--ink); } }
@keyframes mk-sent { 0%, 62% { opacity: 0; } 64%, 90% { opacity: 1; } 93%, 100% { opacity: 0; } }

/* Signup: the three steps, and which one the form is */
.signup-steps { list-style: none; counter-reset: st; margin: 8px 0 28px; padding: 0; display: grid; gap: 4px; }
.signup-steps li { counter-increment: st; position: relative; padding: 12px 0 12px 48px; color: var(--muted); font-size: 15px; }
.signup-steps li::before { content: counter(st); position: absolute; left: 0; top: 10px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font: 600 14px/1 var(--sans); background: var(--sunken); color: var(--soft); border: 1px solid var(--line-strong); }
.signup-steps li:not(:last-child)::after { content: ''; position: absolute; left: 15px; top: 44px; bottom: -6px; width: 1px; background: var(--line-strong); }
.signup-steps li.here::before { background: var(--ink); color: #fafaf7; border-color: var(--ink); }
.signup-steps strong { display: block; color: var(--ink); font-size: 17px; font-weight: 600; margin-bottom: 2px; }
form.contact .form-step { margin: 0; font: 500 12px/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--green); }

/* On phones the signup form comes straight after the heading, with the steps below it. */
@media (max-width: 980px) {
  .signup-layout { gap: 0; }
  .signup-layout .signup-intro { display: contents; }
  .signup-layout .signup-intro > * { order: 1; }
  .signup-layout .signup-intro > .eyebrow { justify-self: start; }
  .signup-layout .signup-intro > .signup-steps, .signup-layout .signup-intro > .note { order: 3; }
  .signup-layout > form { order: 2; margin-bottom: 32px; }
}

/* Header: the demo button, where there's room for it. */
@media (max-width: 900px) { .header-demo { display: none; } }

/* How it works: the setup journey. */
.journey { list-style: none; counter-reset: j; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.journey li { counter-increment: j; position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px 24px; }
.journey li::before { content: counter(j); width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font: 600 15px/1 var(--sans); background: var(--ink); color: #fafaf7; margin-bottom: 20px; }
.journey li:not(:last-child)::after { content: ''; position: absolute; top: 45px; left: calc(24px + 36px + 10px); right: -21px; height: 1px; background: var(--line-strong); }
.journey .j-time { position: absolute; top: 34px; right: 24px; font: 500 11px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--green); background: var(--green-tint); padding: 6px 8px; border-radius: 999px; }
.journey h3 { margin: 0 0 8px; font-size: 19px; }
.journey p { margin: 0 0 20px; color: var(--muted); font-size: 15px; flex: 1; }
.journey .j-who { font-size: 13px; color: var(--soft); border-top: 1px solid var(--line); padding-top: 14px; }
.journey .j-who::before { content: 'Who: '; color: var(--muted); }
.journey-done { display: flex; align-items: center; gap: 14px; margin: 24px 0 0; padding: 18px 24px; border-radius: var(--radius); background: var(--green-tint); color: var(--soft); font-size: 16px; }
.journey-done .icon { width: 26px; height: 26px; flex: none; color: var(--green); }
.journey-done strong { color: var(--ink); font-weight: 600; }

/* How it works: without and with. */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 980px; margin: 0 auto; }
.compare-col { border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; background: var(--sunken); }
.compare-col h3 { margin: 0 0 16px; font-size: 19px; color: var(--soft); }
.compare-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.compare-col li { position: relative; padding-left: 30px; color: var(--muted); font-size: 16px; }
.compare-col li::before { content: '\2715'; position: absolute; left: 2px; top: 0; color: #b4533a; font-size: 14px; font-weight: 600; }
.compare-col.with { background: var(--surface); box-shadow: var(--shadow); border-color: var(--line-strong); }
.compare-col.with h3 { color: var(--ink); }
.compare-col.with li { color: var(--soft); }
.compare-col.with li::before { content: '\2713'; color: var(--green); font-size: 16px; }

/* How it works: who does what. */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 980px; margin: 0 auto; }
.duo .card h3 { margin-top: 0; }
.duo + .note { margin-top: 32px; }

/* FAQ groups. */
.faq + .faq { margin-top: 48px; }
.faq-group { font: 500 12px/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--green); margin: 0 0 16px; }

@media (max-width: 1100px) {
  .journey { grid-template-columns: 1fr 1fr; }
  .journey li::after { display: none; }
}
@media (max-width: 760px) {
  .journey, .compare, .duo { grid-template-columns: 1fr; }
  .compare-col { padding: 24px; }
  .journey-done { align-items: flex-start; }
}

/* Pricing: the outage cost calculator. */
#outage-cost { scroll-margin-top: 72px; }
.calc { display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow); overflow: hidden; }
.calc-form { padding: 44px; }
.calc-form h2 { font-size: clamp(28px, 3.4vw, 38px); margin: 0 0 12px; }
.calc-form > .muted { margin: 0 0 28px; }
.calc-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.calc-fields label { display: grid; gap: 8px; font-size: 14px; font-weight: 500; color: var(--soft); align-content: start; }
.calc-fields input, .calc-fields select { font: 400 17px/1.3 var(--sans); color: var(--ink); background: var(--bg); border: 1px solid var(--line-strong); border-radius: 12px; padding: 12px 14px; width: 100%; min-width: 0; }
.calc-fields input:focus, .calc-fields select:focus { outline: 2px solid var(--green); outline-offset: 1px; }
.calc-fields .hint { font-weight: 400; color: var(--muted); font-size: 13px; }
.calc-money { position: relative; display: block; }
.calc-money > span { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 17px; pointer-events: none; }
.calc-money input { padding-left: 30px; }
.calc-result { background: var(--ink); color: #f1f0ec; padding: 44px; display: flex; flex-direction: column; position: relative; }
.calc-result::before { content: ''; position: absolute; inset: -30% -20% auto auto; width: 70%; height: 80%; background: radial-gradient(50% 50% at 50% 50%, rgba(61, 220, 132, 0.16), transparent 70%); pointer-events: none; }
.calc-k { margin: 0; color: #b9b8b1; font-size: 15px; }
.calc-big { margin: 6px 0 4px; font-size: clamp(48px, 6vw, 72px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.05; color: #fff; font-variant-numeric: tabular-nums; }
.calc-sub { margin: 0 0 28px; color: #b9b8b1; font-size: 15px; }
.calc-vs { border-top: 1px solid rgba(241, 240, 236, 0.16); padding-top: 20px; margin-top: auto; }
.calc-vs p { margin: 0; }
.calc-vs p:not(.calc-pay) { display: flex; justify-content: space-between; gap: 16px; font-size: 15px; color: #d9d8d2; padding: 3px 0; }
.calc-vs p:not(.calc-pay) > b { font-weight: 600; white-space: nowrap; color: var(--green-bright); }
.calc-vs p:not(.calc-pay) > b.calc-year { color: #fff; }
.calc-vs b { font-weight: 500; }
.calc-group { border: 0; margin: 0 0 24px; padding: 0; min-width: 0; }
.calc-group:last-child { margin-bottom: 0; }
.calc-group legend { padding: 0; margin: 0 0 14px; font: 500 12px/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.calc-rows { margin: 0 0 24px; display: grid; gap: 0; }
.calc-rows > div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid rgba(241, 240, 236, 0.1); font-size: 15px; }
.calc-rows dt { color: #d9d8d2; }
.calc-rows dd { margin: 0; color: #fff; font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.calc-rows .calc-delayed { border-bottom: 0; }
.calc-rows .calc-delayed dt, .calc-rows .calc-delayed dd { color: #8f8e88; font-weight: 400; }
.calc-rows .calc-delayed dd::after { content: ' not counted'; font-size: 12px; }
.calc-note a { color: #b9b8b1; }
.calc-pay { margin-top: 10px !important; color: #fff; font-size: 17px; font-weight: 500; }
.calc-note { margin: 20px 0 0; color: #8f8e88; font-size: 13px; }
@media (max-width: 980px) { .calc { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  .calc { border-radius: 20px; }
  .calc-form, .calc-result { padding: 28px 24px; }
  .calc-fields { grid-template-columns: 1fr; gap: 16px; }
}

/* Outage risk: the day without a plan. */
.risk-day { list-style: none; margin: 0; padding: 0; max-width: 860px; display: grid; }
.risk-day li { display: grid; grid-template-columns: 88px 1fr; gap: 24px; position: relative; padding: 0 0 28px; }
.risk-day li::before { content: ''; position: absolute; left: 100px; top: 8px; width: 13px; height: 13px; border-radius: 50%; background: var(--surface); border: 2px solid var(--line-strong); }
.risk-day li:not(:last-child)::after { content: ''; position: absolute; left: 107px; top: 26px; bottom: 4px; width: 2px; background: var(--line); }
.risk-day time { font: 500 14px/1.6 var(--mono); color: var(--muted); text-align: right; padding-top: 1px; }
.risk-day li > div { padding-left: 36px; }
.risk-day h3 { margin: 0 0 6px; font-size: 20px; }
.risk-day p { margin: 0; color: var(--muted); font-size: 16px; max-width: 40em; }
.risk-day li.bad::before { border-color: #b4533a; background: #fbeee9; }
.risk-day li.bad time, .risk-day li.bad h3 { color: #a2432b; }

.risk-cards .icon { color: #a2432b; }

/* Outage risk: shadow IT. */
.shadow-it { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.shadow-it .lede { margin-bottom: 0; }
.shadow-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.shadow-list li { display: grid; gap: 2px; padding: 16px 20px 16px 52px; position: relative; background: var(--surface); border: 1px dashed #d9a798; border-radius: 14px; }
.shadow-list li::before { content: '!'; position: absolute; left: 18px; top: 18px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: #fbeee9; color: #a2432b; font: 700 12px/1 var(--sans); }
.shadow-list b { font-weight: 600; color: var(--ink); }
.shadow-list span { font-size: 14px; color: var(--muted); }

/* Outage risk: the quote. */
.tyson { margin: 0 auto; max-width: 820px; text-align: center; font-size: clamp(30px, 4.4vw, 52px); line-height: 1.12; font-weight: 600; letter-spacing: -0.035em; color: var(--ink); text-wrap: balance; }
.duo .card .textlink { display: inline-flex; margin-top: 6px; }

@media (max-width: 980px) { .shadow-it { grid-template-columns: 1fr; gap: 32px; } }
@media (max-width: 760px) {
  .risk-day li { grid-template-columns: 1fr; gap: 4px; padding-left: 32px; }
  .risk-day li::before { left: 0; top: 4px; }
  .risk-day li:not(:last-child)::after { left: 7px; top: 22px; }
  .risk-day time { text-align: left; }
  .risk-day li > div { padding-left: 0; }
}


/* Header: below 900px the menu gets a row of its own, scrolling sideways if it must. */
@media (max-width: 900px) {
  header.site .wrap { flex-wrap: wrap; gap: 12px 20px; padding-top: 10px; }
  header.site nav { order: 3; flex-basis: 100%; justify-content: flex-start; flex-wrap: nowrap; gap: 20px; padding-bottom: 10px; overflow-x: auto; scrollbar-width: none; margin: 0 -24px; padding-left: 24px; padding-right: 24px; }
  header.site nav::-webkit-scrollbar { display: none; }
  header.site nav { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent); }
  header.site nav a { white-space: nowrap; }
  .header-actions { margin-left: auto; }
}

/* Demo page: the nudge for smaller teams. */
.demo-small { margin: 32px 0 0; padding: 18px 20px; border-radius: 14px; background: var(--green-tint); color: var(--soft); font-size: 15px; }
