/* Vaultly public site. Design: the client's approved Paper dark design (styles.css + site.css), ported 1:1;
   fonts self-hosted (OFL), production additions at the end. */
@font-face { font-family: "Sora"; font-weight: 300; font-display: swap; src: url("/static/fonts/sora-300.woff2") format("woff2"); }
@font-face { font-family: "Sora"; font-weight: 400; font-display: swap; src: url("/static/fonts/sora-400.woff2") format("woff2"); }
@font-face { font-family: "Sora"; font-weight: 500; font-display: swap; src: url("/static/fonts/sora-500.woff2") format("woff2"); }
@font-face { font-family: "Sora"; font-weight: 600; font-display: swap; src: url("/static/fonts/sora-600.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-display: swap; src: url("/static/fonts/plex-sans-400.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 500; font-display: swap; src: url("/static/fonts/plex-sans-500.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-display: swap; src: url("/static/fonts/plex-sans-600.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 400; font-display: swap; src: url("/static/fonts/plex-mono-400.woff2") format("woff2"); }

/* Vaultly — homepage hero, revision 4.
   Built on the approved Paper dark direction ("Home — Desktop 1440 (Dark)"),
   with the client's feedback applied. Tokens mirror the live site. */

:root {
  --bg: #07060e;
  --bg-2: #0b0a17;
  --glass: rgba(18, 15, 36, 0.9);
  --panel: #0f0d1d;
  --panel-2: #141127;
  --line: rgba(255, 255, 255, 0.075);
  --line-2: rgba(255, 255, 255, 0.12);
  --text: #f3f1fb;
  --muted: #b6b2cf;
  --dim: #8f8aab;
  --violet: #8b5cf6;
  --indigo: #6366f1;
  --lavender: #c4b5fd;
  --ok: #7dd3c0;
  --ok-bg: rgba(125, 211, 192, 0.13);
  --hold: #e9c46a;
  --hold-bg: rgba(233, 196, 106, 0.12);
  --display: "Sora", ui-sans-serif, system-ui, sans-serif;
  --body: "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
html, body { overflow-x: clip; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.6 var(--body); }
a { color: inherit; text-decoration: none; }
/* fluid canvas: side margins scale 24–80 px, content grows up to 1760 px (fills 1920 screens) */
.wrap { width: min(1760px, calc(100% - 2 * clamp(24px, 3.2vw, 80px))); margin: 0 auto; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 30; height: 76px; background: rgba(7, 6, 14, 0.72);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid rgba(255,255,255,0.05); }
.nav .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; font: 500 19px/1 var(--display); letter-spacing: -0.02em; }
.brand svg { width: 28px; height: 28px; }
.nav-links { display: flex; gap: 38px; font-size: 15px; color: var(--muted); }
.nav-links a:hover { color: var(--text); }
.nav-cta { display: flex; align-items: center; gap: 22px; font-size: 15px; font-weight: 500; }
.menu-btn { display: none; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line-2);
  background: transparent; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.menu-btn span { width: 16px; height: 1.5px; background: var(--text); }

/* ---------- buttons (unchanged from the approved design) ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 54px; padding: 0 28px;
  border-radius: 999px; font: 500 16px/1 var(--body); white-space: nowrap; transition: transform .2s ease, border-color .2s ease; }
.btn-light { background: #f4f2ff; color: #0b0918; box-shadow: 0 0 0 1px rgba(255,255,255,.4) inset, 0 10px 32px -12px rgba(167,139,250,.6); }
.btn-light:hover { transform: translateY(-1px); }
.btn-ghost { border: 1px solid var(--line-2); background: rgba(255,255,255,0.02); color: var(--text); }
.btn-ghost:hover { border-color: rgba(196,181,253,.45); }
.btn-ghost .play { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: rgba(196,181,253,.16); }
.btn-sm { height: 40px; padding: 0 20px; font-size: 14px; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 36px 0 72px; overflow: hidden;
  /* one soft light behind the product */
  background: radial-gradient(50% 62% at 74% 42%, rgba(139, 92, 246, 0.15), transparent 70%), var(--bg); }
/* copy aligns to the top of the dashboard instead of floating mid-column */
.hero .wrap { display: flex; align-items: flex-start; justify-content: space-between; gap: clamp(48px, 4vw, 96px); }
/* text column and headline scale together with the screen (≈ 8 × headline size wide) */
.copy { flex: 0 0 auto; width: clamp(540px, 41vw, 800px); position: relative; z-index: 2; padding-top: clamp(84px, 6.5vw, 132px); }

.pill-note { display: inline-flex; align-items: center; gap: 10px; height: 34px; padding: 0 16px 0 12px; border-radius: 999px;
  background: rgba(255,255,255,0.035); border: 1px solid rgba(255,255,255,0.1); font-size: 14px; color: var(--muted); }
.pill-note i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }

h1 { margin: 26px 0 0; font: 300 clamp(52px, 5vw, 96px)/1.05 var(--display); letter-spacing: -0.04em; }
h1 .l1 { display: block; white-space: nowrap; }
/* no gradient: a quiet two-tone headline */
h1 .l2 { display: block; white-space: nowrap; color: var(--muted); }
.lead { margin: 28px 0 0; max-width: 34em; font-size: clamp(18px, 1.35vw, 24px); line-height: 1.65; color: var(--muted); }
.ctas { display: flex; gap: 14px; margin-top: 38px; }
.facts { display: flex; align-items: center; gap: 18px; margin-top: 26px; font-size: 14px; color: var(--dim); }
.facts b { color: var(--text); font-weight: 500; }
.facts .sep { width: 4px; height: 4px; border-radius: 50%; background: var(--dim); opacity: .6; }

/* ---------- product composition (same geometry as the Paper hero) ---------- */
.stage { position: relative; flex: 0 1 704px; min-width: 580px; height: 840px; }
/* on large screens the whole product showcase is presented bigger, keeping its proportions */
@media (min-width: 1600px) { .stage { zoom: 1.1; } .ctas .btn { height: 58px; padding: 0 30px; font-size: 17px; } .facts { font-size: 15px; } .pill-note { height: 36px; font-size: 15px; } }
@media (min-width: 1760px) { .stage { zoom: 1.18; } }
@media (min-width: 1900px) { .stage { zoom: 1.27; } .ctas .btn { height: 62px; padding: 0 34px; font-size: 18px; } }

/* dashboard window */
/* larger dashboard: 660 px wide, body text 14 px, nothing below 12 px */
.app { position: absolute; left: 0; top: 64px; width: 100%; border-radius: 18px; background: var(--panel);
  border: 1px solid var(--line-2); box-shadow: 0 40px 90px -36px rgba(0,0,0,0.95); overflow: hidden; font-size: 14px; }
.app-top { display: flex; align-items: center; justify-content: space-between; height: 50px; padding: 0 20px;
  background: var(--panel-2); border-bottom: 1px solid var(--line); }
.crumbs { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--dim); }
.crumbs b { color: var(--text); font-weight: 500; }
.demo-tag { font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--hold);
  padding: 6px 9px; border-radius: 6px; border: 1px solid rgba(233,196,106,.35); background: var(--hold-bg); }
.tabs { display: flex; gap: 26px; height: 46px; padding: 0 20px; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--dim); }
.tabs a { display: flex; align-items: center; border-bottom: 2px solid transparent; }
.tabs a.on { color: var(--text); border-color: var(--lavender); }
.app-main { padding: 20px 20px 8px; }
.app-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.app-head h3 { margin: 0; font: 400 19px/1.2 var(--display); letter-spacing: -.01em; }
.app-head > span { font: 400 12.5px/1 var(--mono); color: var(--dim); }
.n7 { display: none; }

.rows { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.row { display: grid; grid-template-columns: 170px 1fr 168px; align-items: center; gap: 16px; padding: 14px 16px; }
.row + .row { border-top: 1px solid var(--line); }
.row.head { padding: 10px 16px; background: rgba(255,255,255,0.025); font: 500 11px/1 var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--dim); }
.db b { display: block; font: 500 14.5px/1.3 var(--mono); color: var(--text); }
.db small { display: block; margin-top: 2px; font: 400 12.5px/1.4 var(--mono); color: var(--dim); }
.hist { display: flex; gap: 3px; }
.hist i { flex: 1; height: 22px; border-radius: 3px; background: rgba(125,211,192,0.78); }
.hist i.no { background: transparent; box-shadow: inset 0 0 0 1.4px rgba(233,196,106,0.75); }
.state { display: inline-flex; align-items: center; gap: 7px; justify-self: start; height: 28px; padding: 0 11px; border-radius: 999px; font-size: 13px; font-weight: 500; white-space: nowrap; }
.state::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.state.ok { color: var(--ok); background: var(--ok-bg); }
.state.hold { color: var(--hold); background: var(--hold-bg); }
.legend { display: flex; justify-content: flex-end; gap: 18px; padding: 12px 2px 10px; font-size: 12.5px; color: var(--dim); }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend i { width: 11px; height: 11px; border-radius: 2px; background: rgba(125,211,192,0.78); }
.legend i.no { background: transparent; box-shadow: inset 0 0 0 1.4px rgba(233,196,106,0.75); }
.app-foot { display: flex; justify-content: flex-end; align-items: center; gap: 18px; height: 46px; padding: 0 20px;
  border-top: 1px solid var(--line); font-size: 13px; color: var(--dim); }
.app-foot a { color: var(--lavender); }

/* proof card: sits below the dashboard, sharing only a small corner of its footer bar */
.proof { position: absolute; left: -36px; top: 600px; width: 360px; padding: 18px 20px 16px; border-radius: 20px;
  background: var(--glass); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(196,181,253,0.22); box-shadow: 0 30px 60px -20px rgba(0,0,0,0.85); }
.proof-head { display: flex; justify-content: space-between; align-items: center; }
.proof-head h4 { margin: 0; font: 500 15px/1.2 var(--display); }
.proof-head .demo-tag { font-size: 9.5px; padding: 4px 6px; }
.proof-db { margin: 8px 0 6px; font: 400 12px/1.3 var(--mono); color: var(--dim); }
.proof-db b { color: var(--text); font-weight: 500; }
.steps { list-style: none; margin: 0; padding: 0; }
.steps li { display: grid; grid-template-columns: 22px 1fr auto; gap: 10px; align-items: start; padding: 9px 0; border-top: 1px solid var(--line); }
.tick { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: rgba(125,211,192,0.18); }
.tick svg { width: 10px; height: 10px; }
.steps b { display: block; font: 500 13.5px/1.3 var(--body); }
.steps small { display: block; font: 400 11.5px/1.45 var(--body); color: var(--dim); }
.steps time { font: 400 11.5px/1.6 var(--mono); color: var(--dim); }

/* toast: replaces "12 of 12 databases" with one real event */
.toast { position: absolute; right: 28px; top: 0; display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 12px;
  border-radius: 16px; background: rgba(244,242,255,0.97); color: #0b0918;
  box-shadow: 0 20px 40px -16px rgba(0,0,0,0.7); }
.toast .tick { width: 30px; height: 30px; background: #dcf5ea; }
.toast .tick svg { width: 13px; height: 13px; }
.toast b { display: block; font: 600 14px/1.25 var(--display); }
.toast small { display: block; font: 400 11.5px/1.4 var(--mono); color: #5c5880; }

/* ---------- strip: same position and rhythm as "Built for audits", now factual ---------- */
.strip { background: var(--bg-2); border-top: 1px solid rgba(255,255,255,0.06); border-bottom: 1px solid rgba(255,255,255,0.06); }
.strip .wrap { display: flex; flex-direction: column; gap: 18px; padding: 28px 0 30px; }
.strip-label { font: 500 12px/1.5 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--dim); }
.caps { display: grid; grid-template-columns: repeat(5, 1fr); }
.cap { display: flex; gap: 12px; padding: 0 20px; border-left: 1px solid var(--line); }
.cap:first-child { padding-left: 0; border-left: 0; }
.cap svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; color: var(--lavender); }
.cap b { display: block; font: 500 14.5px/1.35 var(--display); letter-spacing: -.005em; }
.cap span { display: block; margin-top: 3px; font-size: 13px; line-height: 1.45; color: var(--dim); }

/* ---------- tablet ---------- */
@media (max-width: 1100px) {
  .hero .wrap { flex-direction: column; align-items: flex-start; gap: 40px; }
  .copy { flex: none; width: 100%; max-width: 640px; padding-top: 32px; }
  .stage { flex: none; width: 100%; max-width: 704px; min-width: 0; align-self: center; }
  .strip .wrap { flex-direction: column; align-items: flex-start; gap: 18px; }
  .strip-label { width: auto; }
  .caps { grid-template-columns: repeat(3, 1fr); row-gap: 20px; width: 100%; }
  .cap:nth-child(4) { border-left: 0; padding-left: 0; }
  .cap:first-child { padding-left: 0; border-left: 0; }
}

/* ---------- mobile: recomposed for a 390 px screen ---------- */
@media (max-width: 720px) {
  .wrap { width: calc(100% - 40px); }
  .nav { height: 64px; }
  .nav-links, .nav-cta .login, .nav-cta .btn { display: none; }
  .menu-btn { display: inline-flex; }

  .hero { padding: 36px 0 56px;
    background: radial-gradient(120% 40% at 50% 74%, rgba(139, 92, 246, 0.16), transparent 70%), var(--bg); }
  .copy { width: 100%; padding-top: 0; }
  .pill-note { font-size: 12.5px; height: 30px; }
  h1 { font-size: 46px; line-height: 1.05; margin-top: 20px; }
  h1 .l1, h1 .l2 { white-space: normal; }
  .lead { width: auto; font-size: 16.5px; margin-top: 20px; }
  .ctas { flex-direction: column; margin-top: 28px; }
  .ctas .btn { width: 100%; }
  .facts { flex-wrap: wrap; justify-content: center; gap: 6px 14px; font-size: 13px; }

  /* product becomes a vertical stack: arch shortens to a backdrop, proof card overlaps the app's foot */
  .stage { width: 100%; height: auto; display: flex; flex-direction: column; padding-top: 8px; }
  .toast { display: none; }
  .app { position: relative; left: 0; top: 0; width: 100%; }
  .tabs { gap: 16px; overflow: hidden; }
  .tabs a:nth-child(n+4) { display: none; }
  /* dashboard sizes for small screens: still ≥ 12 px, but nothing spills */
  .app { font-size: 13px; }
  .app-top { height: 46px; padding: 0 14px; }
  .crumbs { font-size: 13px; }
  .demo-tag { font-size: 10px; padding: 5px 7px; }
  .tabs { height: 42px; padding: 0 14px; font-size: 13px; }
  .app-main { padding: 14px 14px 6px; }
  .app-head h3 { font-size: 17px; }
  .row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "db state" "hist hist"; row-gap: 10px; gap: 10px; padding: 12px 14px; }
  .db b { font-size: 13.5px; }
  .db small { font-size: 12px; white-space: nowrap; }
  .state { font-size: 12px; height: 26px; padding: 0 9px; gap: 6px; }
  .hist { min-width: 0; }
  .hist i { height: 20px; }
  .legend { font-size: 12px; }
  .row.head { display: none; }
  .db { grid-area: db; } .hist { grid-area: hist; } .state { grid-area: state; justify-self: end; }
  .hist i:nth-child(-n+7) { display: none; }   /* last 7 nights on mobile */
  .n14, .app-head > span { display: none; }
  .n7 { display: inline; }
  .legend { flex-direction: column; align-items: flex-start; gap: 6px; padding-bottom: 26px; }
  .app-foot { display: none; }
  .facts .sep { display: none; }
  /* overlaps only the dashboard's bottom padding */
  .proof { position: relative; left: 0; top: -14px; width: calc(100% - 24px); align-self: center; }

  .strip .wrap { padding: 26px 0; }
  .caps { grid-template-columns: 1fr; row-gap: 0; }
  .cap, .cap:first-child, .cap:nth-child(4) { padding: 14px 0; border-left: 0; }
  .cap + .cap { border-top: 1px solid var(--line); }
}

/* Vaultly public site — shared page sections.
   Loads after styles.css (tokens, nav, buttons, hero). Same visual language as the approved hero:
   violet-black ground, Sora light headings, IBM Plex body, hairline panels, no decoration without a job. */

.nav-links a.on { color: var(--text); }

/* ---------- section scaffolding ---------- */
.section { padding: clamp(72px, 7vw, 120px) 0; border-top: 1px solid rgba(255,255,255,0.06); }
.section.alt { background: var(--bg-2); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 500 12px/1 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--lavender); }
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--violet); }
.h2 { margin: 18px 0 0; font: 300 clamp(34px, 3.4vw, 56px)/1.08 var(--display); letter-spacing: -0.03em; }
.h2 .dim { color: var(--muted); }
.h3 { margin: 0; font: 400 20px/1.3 var(--display); letter-spacing: -0.01em; }
.sub { margin: 18px 0 0; max-width: 620px; font-size: 18px; line-height: 1.65; color: var(--muted); }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 48px; margin-bottom: 56px; }
.sec-head.center { flex-direction: column; align-items: center; text-align: center; gap: 0; }
.sec-head.center .sub { margin-left: auto; margin-right: auto; }
.link { color: var(--lavender); font-weight: 500; white-space: nowrap; }
.link:hover { color: var(--text); }
.mono { font-family: var(--mono); }

/* ---------- panels ---------- */
.panel { border-radius: 18px; background: rgba(255,255,255,0.028); border: 1px solid var(--line); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

/* numbered proof steps (home) */
.proof-step { padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.proof-step .num { font: 500 12px/1 var(--mono); color: var(--dim); }
.proof-step p { margin: 0; color: var(--muted); line-height: 1.6; }
.proof-step .out { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; font: 400 12.5px/1.4 var(--mono); color: var(--dim); }
.proof-step .out b { color: var(--ok); font-weight: 500; }

/* feature tiles (home) */
.tile { padding: 26px; display: flex; flex-direction: column; gap: 12px; }
.tile .ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(139,92,246,0.14); color: var(--lavender); }
.tile .ico svg { width: 20px; height: 20px; }
.tile p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; }

/* ---------- page hero (inner pages) ---------- */
.page-hero { padding: clamp(64px, 6vw, 104px) 0 clamp(48px, 5vw, 80px);
  background: radial-gradient(50% 80% at 80% 0%, rgba(139,92,246,0.12), transparent 70%), var(--bg); }
.page-hero h1 { margin: 22px 0 0; font: 300 clamp(44px, 4.6vw, 80px)/1.04 var(--display); letter-spacing: -0.04em; max-width: 15ch; }
.page-hero h1 .dim { color: var(--muted); }
.page-hero .sub { font-size: clamp(18px, 1.3vw, 21px); max-width: 680px; }

/* ---------- feature chapters (features page) ---------- */
.chapter { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(40px, 5vw, 96px); align-items: center; }
.chapter.flip > :first-child { order: 2; }
.chapter .kicker { font: 500 12px/1 var(--mono); letter-spacing: .1em; color: var(--lavender); }
.chapter .h2 { font-size: clamp(32px, 3vw, 48px); }
.notes { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.notes li { display: grid; grid-template-columns: 20px 1fr; gap: 12px; color: var(--muted); line-height: 1.55; }
.notes li::before { content: ""; width: 7px; height: 7px; margin-top: 9px; border-radius: 50%; background: var(--violet); }
.notes b { color: var(--text); font-weight: 500; }

/* key / value spec sheet */
.spec { padding: 8px 24px; }
.spec-row { display: flex; justify-content: space-between; gap: 24px; padding: 14px 0; font-size: 14.5px; }
.spec-row + .spec-row { border-top: 1px solid var(--line); }
.spec-row span:first-child { color: var(--dim); font-family: var(--mono); font-size: 13px; }
.spec-row span:last-child { text-align: right; }
.spec-title { display: flex; justify-content: space-between; align-items: center; padding: 18px 0 10px; border-bottom: 1px solid var(--line); }
.spec-title b { font: 500 15px/1 var(--display); }

/* check sequence (verification) */
.seq { padding: 8px 22px; }
.seq-row { display: grid; grid-template-columns: 24px 1fr auto; gap: 14px; align-items: center; padding: 16px 0; }
.seq-row + .seq-row { border-top: 1px solid var(--line); }
.seq-row b { display: block; font-weight: 500; }
.seq-row small { display: block; color: var(--dim); font-size: 13px; }
.seq-row .res { font: 500 12px/1 var(--mono); color: var(--ok); padding: 6px 9px; border-radius: 999px; background: var(--ok-bg); }
.dot-ok { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--ok-bg); }
.dot-ok svg { width: 11px; height: 11px; }

/* code block */
.code { margin: 0; padding: 22px 24px; border-radius: 16px; background: #0b0a16; border: 1px solid var(--line);
  font: 400 13.5px/1.75 var(--mono); color: var(--muted); white-space: pre; overflow-x: auto; }
.code .k { color: var(--lavender); } .code .s { color: var(--ok); } .code .c { color: var(--dim); }

/* email preview (alerts) */
.mail { padding: 22px 24px; }
.mail-head { display: flex; justify-content: space-between; font-size: 13px; color: var(--dim); padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.mail h4 { margin: 16px 0 8px; font: 500 17px/1.35 var(--display); }
.mail p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; }
.health { margin-top: 18px; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.health div { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; font-size: 14px; }
.health div + div { border-top: 1px solid var(--line); }
.tag { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 999px; font-size: 12px; white-space: nowrap; }
.tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tag.ok { color: var(--ok); background: var(--ok-bg); }
.tag.bad { color: #f9a8b4; background: rgba(249,168,180,0.12); }
.tag.run { color: #93c5fd; background: rgba(96,165,250,0.12); }
.tag.hold { color: var(--hold); background: var(--hold-bg); }

/* ---------- timeline (how it works) ---------- */
.timeline { display: flex; flex-direction: column; }
.t-step { display: grid; grid-template-columns: 96px minmax(0, 1fr) 260px; gap: 40px; padding: 40px 0; border-top: 1px solid var(--line); }
.t-step:last-child { border-bottom: 1px solid var(--line); }
.t-num { font: 300 44px/1 var(--display); color: var(--dim); letter-spacing: -0.03em; }
.t-step p { margin: 12px 0 0; color: var(--muted); line-height: 1.7; max-width: 640px; }
.t-meta { display: flex; flex-direction: column; gap: 8px; padding-top: 6px; }
.t-meta span { font: 400 13px/1.4 var(--mono); color: var(--dim); padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; }
.t-meta span:first-child { color: var(--text); }

/* data flow diagram */
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; align-items: stretch; }
.node { position: relative; padding: 22px; }
.node + .node { margin-left: 28px; }
.node + .node::before { content: "→"; position: absolute; left: -24px; top: 50%; transform: translateY(-50%); color: var(--dim); font-size: 18px; }
.node small { display: block; margin-top: 6px; font: 400 12.5px/1.5 var(--mono); color: var(--dim); }
.node .tag { margin-top: 14px; }

/* ---------- pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 460px)); justify-content: center; gap: 24px; }
.plan { padding: 36px; display: flex; flex-direction: column; gap: 22px; }
.plan.pro { border-color: rgba(196,181,253,0.35); background: linear-gradient(180deg, rgba(139,92,246,0.10), rgba(139,92,246,0.02)); }
.plan-top { display: flex; justify-content: space-between; align-items: center; }
.plan-top b { font: 500 22px/1 var(--display); }
.badge { font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--lavender); padding: 7px 10px; border-radius: 999px; border: 1px solid rgba(196,181,253,0.35); }
.price { font: 300 64px/1 var(--display); letter-spacing: -0.04em; }
.price small { font: 400 17px/1 var(--body); color: var(--dim); letter-spacing: 0; }
.plan ul { list-style: none; margin: 0; padding: 22px 0 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.plan li { display: grid; grid-template-columns: 22px 1fr; color: var(--muted); }
.plan li::before { content: "✓"; color: var(--ok); }
.plan .btn { width: 100%; margin-top: auto; }
.fine-center { margin-top: 28px; text-align: center; color: var(--dim); font-size: 14px; }

.compare { width: 100%; border-collapse: collapse; font-size: 15px; }
.compare th, .compare td { padding: 15px 18px; text-align: left; border-bottom: 1px solid var(--line); }
.compare thead th { font: 500 14px/1 var(--display); color: var(--text); padding-top: 0; }
.compare td:not(:first-child), .compare th:not(:first-child) { width: 24%; }
.compare td:first-child { color: var(--muted); }
.compare .grp td { padding-top: 32px; font: 500 12px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--lavender); border-bottom-color: rgba(196,181,253,0.25); }
.compare .y { color: var(--ok); }

/* ---------- FAQ ---------- */
.faq-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(40px, 5vw, 96px); align-items: start; }
.faq-nav { position: sticky; top: 108px; display: flex; flex-direction: column; gap: 4px; }
.faq-nav a { padding: 10px 14px; border-radius: 10px; color: var(--muted); font-size: 15px; }
.faq-nav a.on { background: rgba(255,255,255,0.04); color: var(--text); }
.faq-group + .faq-group { margin-top: 64px; }
.faq-group h2 { margin: 0 0 8px; font: 400 26px/1.2 var(--display); letter-spacing: -0.02em; }
details { border-bottom: 1px solid var(--line); }
summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 0; font: 400 18px/1.4 var(--display); }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--muted); font: 300 18px/1 var(--body); }
details[open] summary::after { content: "−"; color: var(--text); border-color: rgba(196,181,253,0.4); }
details .ans { padding: 0 54px 24px 0; color: var(--muted); line-height: 1.7; }
details .ans p { margin: 0 0 12px; }
details code { font: 400 13.5px var(--mono); color: var(--lavender); background: rgba(139,92,246,0.12); padding: 2px 6px; border-radius: 6px; }

/* ---------- closing CTA + footer ---------- */
.cta-band { padding: clamp(80px, 8vw, 140px) 0; text-align: center; border-top: 1px solid rgba(255,255,255,0.06);
  background: radial-gradient(40% 70% at 50% 100%, rgba(139,92,246,0.14), transparent 70%), var(--bg); }
.cta-band h2 { margin: 0 auto; max-width: 16ch; font: 300 clamp(40px, 4.4vw, 72px)/1.06 var(--display); letter-spacing: -0.04em; }
.cta-band h2 .dim { color: var(--muted); }
.cta-band p { margin: 22px auto 0; max-width: 560px; color: var(--muted); font-size: 18px; }
.cta-band .ctas { justify-content: center; }

.footer { padding: 56px 0 40px; border-top: 1px solid rgba(255,255,255,0.06); background: var(--bg-2); }
.footer-top { display: flex; justify-content: space-between; gap: 48px; }
.footer-brand p { margin: 14px 0 0; max-width: 320px; color: var(--dim); font-size: 14px; line-height: 1.6; }
.footer-cols { display: flex; gap: clamp(40px, 6vw, 112px); }
.footer-cols div { display: flex; flex-direction: column; gap: 12px; font-size: 14.5px; color: var(--muted); }
.footer-cols b { color: var(--text); font: 500 13px/1 var(--body); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 6px; }
.footer-cols a:hover { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; gap: 24px; margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 13px; color: var(--dim); }

/* ---------- auth (log in / sign up) ---------- */
.auth-mintro { display: none; }
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.auth-side { position: relative; padding: 48px clamp(40px, 5vw, 88px); display: flex; flex-direction: column; justify-content: space-between;
  background: radial-gradient(70% 60% at 30% 30%, rgba(139,92,246,0.16), transparent 70%), var(--bg-2); border-right: 1px solid var(--line); }
.auth-side h2 { margin: 0; font: 300 clamp(38px, 3.4vw, 56px)/1.08 var(--display); letter-spacing: -0.035em; max-width: 13ch; }
.auth-side h2 .dim { color: var(--muted); }
.auth-side ul { list-style: none; margin: 30px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; color: var(--muted); }
.auth-side li { display: grid; grid-template-columns: 26px 1fr; }
.auth-side li::before { content: "✓"; color: var(--ok); }
.auth-side .note { font-size: 14px; color: var(--dim); max-width: 440px; }
.auth-main { display: grid; place-items: center; padding: 48px 24px; }
.auth-card { width: 100%; max-width: 420px; }
.auth-mbrand { display: none; margin-bottom: 40px; }
.auth-card h1 { margin: 0; font: 300 40px/1.1 var(--display); letter-spacing: -0.03em; }
.auth-card > p { margin: 10px 0 32px; color: var(--muted); }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.field label { font-size: 14px; font-weight: 500; }
.field .row-between { display: flex; justify-content: space-between; }
.input { height: 50px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(255,255,255,0.03);
  color: var(--text); font: 400 15.5px var(--body); outline: none; }
.input:focus { border-color: rgba(196,181,253,0.6); box-shadow: 0 0 0 4px rgba(139,92,246,0.18); }
.input::placeholder { color: var(--dim); }
.hint { font-size: 13px; color: var(--dim); }
.auth-card .btn { width: 100%; margin-top: 8px; }
.legal { margin-top: 18px; font-size: 13px; color: var(--dim); line-height: 1.6; }
.legal a, .switch a { color: var(--lavender); }
.switch { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 14.5px; color: var(--muted); text-align: center; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .chapter, .chapter.flip { grid-template-columns: 1fr; }
  .chapter.flip > :first-child { order: 0; }
  .t-step { grid-template-columns: 72px minmax(0, 1fr); }
  .t-meta { grid-column: 2; flex-direction: row; flex-wrap: wrap; }
  .flow { grid-template-columns: 1fr 1fr; gap: 28px; }
  .node + .node { margin-left: 0; }
  .node + .node::before { display: none; }
  .faq-layout { grid-template-columns: 1fr; }
  .faq-nav { position: static; flex-direction: row; flex-wrap: wrap; }
  .auth { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .auth-main { place-items: start center; padding-top: 32px; }
  .auth-mbrand { display: flex; margin-bottom: 28px; }
  .auth-mintro { display: block; margin: 0 0 32px; padding: 20px 20px 18px; border-radius: 16px; border: 1px solid var(--line);
    background: radial-gradient(90% 80% at 15% 0%, rgba(139,92,246,0.16), transparent 70%), var(--bg-2); }
  .auth-mintro ul { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; color: var(--muted); font-size: 14.5px; }
  .auth-mintro li { display: grid; grid-template-columns: 24px 1fr; }
  .auth-mintro li::before { content: "✓"; color: var(--ok); }
}
@media (max-width: 720px) {
  .sec-head { flex-direction: column; align-items: flex-start; gap: 18px; margin-bottom: 36px; }
  .grid-3, .grid-2, .flow { grid-template-columns: 1fr; }
  .t-step { grid-template-columns: 1fr; gap: 14px; padding: 28px 0; }
  .t-meta { grid-column: 1; }
  .t-num { font-size: 32px; }
  .plans { grid-template-columns: 1fr; }
  .plan { padding: 28px 24px; }
  .price { font-size: 52px; }
  .compare { font-size: 14px; }
  .compare th, .compare td { padding: 12px 8px; }
  .compare td:not(:first-child), .compare th:not(:first-child) { width: 26%; }
  summary { font-size: 17px; }
  details .ans { padding-right: 0; }
  .footer-top { flex-direction: column; }
  .footer-cols { flex-wrap: wrap; gap: 32px 48px; }
  .footer-bottom { flex-direction: column; }
  .spec { padding: 4px 18px; }
  .spec-row { flex-direction: column; gap: 4px; }
  .spec-row span:last-child { text-align: left; }
}

/* ---------- production additions (live site) ---------- */
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: #f4f2ff; color: #0b0918; padding: 10px 14px; border-radius: 10px; font-weight: 500; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid #a78bfa; outline-offset: 3px; border-radius: 6px; }
.btn:focus-visible { outline-offset: 4px; border-radius: 999px; }
.brand-logo { width: 28px; height: 28px; object-fit: contain; }
button.menu-btn { cursor: pointer; color: var(--text); }
.mobile-menu { display: none; }
@media (max-width: 720px) {
  .mobile-menu.open { display: block; position: fixed; inset: 64px 0 0; z-index: 49; background: rgba(7,6,14,.97);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); padding: 24px; border-top: 1px solid var(--line); overflow-y: auto; }
  .mobile-menu a { display: block; padding: 16px 4px; font: 300 24px/1.2 var(--display); border-bottom: 1px solid var(--line); }
  .mobile-menu .btn { display: flex; justify-content: center; margin-top: 26px; font: 500 15px/1 var(--body); border: 0; }
}
/* three or more plans */
.plans.plans-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 400px)); }
@media (max-width: 720px) { .plans.plans-3 { grid-template-columns: 1fr; } }
/* legal pages */
.legal-hero { padding: clamp(64px, 6vw, 104px) 0 30px; }
.legal-doc { max-width: 780px; margin: 30px auto 0; color: var(--muted); font-size: 15.5px; line-height: 1.75; }
.legal-doc h2 { color: var(--text); font: 400 22px/1.3 var(--display); letter-spacing: -0.015em; margin: 46px 0 12px; }
.legal-doc h3 { color: var(--text); font-size: 16px; font-weight: 600; margin: 26px 0 8px; }
.legal-doc p, .legal-doc li { margin: 0 0 12px; }
.legal-doc ul, .legal-doc ol { padding-left: 22px; margin: 0 0 14px; }
.legal-doc strong { color: var(--text); font-weight: 600; }
.legal-doc a { color: var(--lavender); text-decoration: underline; text-underline-offset: 3px; }
.legal-doc table { width: 100%; border-collapse: collapse; margin: 8px 0 18px; font-size: 14.5px; }
.legal-doc th, .legal-doc td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.legal-doc th { color: var(--text); font-weight: 500; }
.legal-doc .meta { font-size: 13.5px; color: var(--dim); margin-bottom: 26px; }
.legal-doc .toc { border: 1px solid var(--line); border-radius: 14px; padding: 16px 22px; background: rgba(255,255,255,0.02); margin: 0 0 10px; }
.legal-doc .toc ol { margin: 6px 0 0; columns: 2; column-gap: 28px; font-size: 14px; }
.legal-doc .toc a { text-decoration: none; color: var(--muted); }
.legal-doc .toc a:hover { color: var(--text); }
.draft-banner { max-width: 780px; margin: 0 auto; border: 1px solid rgba(251, 191, 36, 0.45); background: rgba(251, 191, 36, 0.08);
  color: #fde68a; border-radius: 14px; padding: 14px 18px; font-size: 14px; line-height: 1.6; }
.draft-banner strong { color: #fef3c7; }
mark.todo { background: rgba(251, 191, 36, 0.18); color: #fde68a; border-radius: 4px; padding: 0 4px; font-style: normal; }
.legal-more { max-width: 780px; margin: 50px auto 0; padding-top: 22px; border-top: 1px solid var(--line); font-size: 14px; display: flex; gap: 22px; flex-wrap: wrap; }
.legal-more a { color: var(--muted); }
.legal-more a:hover, .legal-more a[aria-current] { color: var(--text); }
@media (max-width: 720px) { .legal-doc .toc ol { columns: 1; } }
.legal-wrap { padding-bottom: clamp(72px, 7vw, 120px); }
.mt20 { margin-top: 20px; }
.no-top { border-top: 0; padding-top: 0; }
.h2-sm { font-size: clamp(30px, 2.6vw, 40px); }
.fs16 { font-size: 16px; }
.auth-ok { margin: -12px 0 22px; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(125,211,192,0.32); background: var(--ok-bg); color: #d5f5ee; font-size: 14px; line-height: 1.5; }
.auth-error { margin: -12px 0 22px; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(249,168,180,0.35); background: rgba(249,168,180,0.08); color: #fecdd3; font-size: 14px; line-height: 1.5; }
.auth-side .l2, .auth-side h2 .l2 { color: var(--muted); }
.auth-side h2 .l1, .auth-side h2 .l2 { display: inline; }
/* custom brand taglines may be longer than the design headline: let them wrap rather than overflow */
h1.own-tagline .l1, h1.own-tagline .l2 { white-space: normal; }
.auth-card .btn-google { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 0 0 4px; }
.btn-google svg { width: 18px; height: 18px; }
.auth-card .or { display: flex; align-items: center; gap: 14px; margin: 18px 0 22px; color: var(--dim); font-size: 13px; }
.auth-card .or::before, .auth-card .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
