/* ═══════════════════════════════════════════════════════════════════
   PsyEntry public site
   Palette, weights and chart hues sampled from the shipped macOS build.
   Constraints this file respects:
     · no remote fonts — native macOS/Windows stacks only
     · no inline styles anywhere — CSP is style-src 'self'
     · no client-side dependencies
   ═══════════════════════════════════════════════════════════════════ */

:root {
  color-scheme: light;

  --forest-950:#0B1F1A; --forest-900:#14332B; --forest-800:#1B4239;
  --forest-700:#205249; --forest-600:#2D5B51; --forest-500:#3E6F62;
  --forest-400:#558578; --forest-300:#7CA396;
  --sage-300:#C3DBD2; --sage-200:#D5E6E0; --sage-100:#E3EEE8; --sage-50:#EDF2EE;
  --mist:#F2F6F5; --paper:#FFFEFC; --line:#DFE2E0; --track:#E5EBE7;
  --ink:#151918; --ink-2:#3C4744; --ink-3:#6B7975; --ink-4:#98A5A1;
  --peach-100:#F5E4DC; --peach-50:#FAF0EA; --cream:#F1ECD7;
  --rust:#A95644; --rust-ink:#7C4A3B; --gold:#AD6F26; --steel:#365F7B;
  --on-dark:#EAF1EE; --on-dark-2:#A9C0B8; --on-dark-3:#7A968C;
  --rule-dark:rgba(195,219,210,.16);

  /* official app-icon values, lifted from PsyEntry.png / ic_launcher */
  --logo-top:#0C2A2A; --logo-bottom:#1B554F; --logo-radius:23.4%;

  --serif: ui-serif, "New York", Georgia, "Iowan Old Style", "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --shadow-card: 0 9px 30px rgba(11,31,26,.05);
  --shadow-frame: 0 2px 4px rgba(11,31,26,.05), 0 24px 60px -14px rgba(11,31,26,.30);
  --shadow-frame-d: 0 40px 100px -20px rgba(0,0,0,.62), 0 0 0 1px rgba(195,219,210,.09);

  /* legacy aliases kept so the privacy / security / support pages keep working */
  --muted: var(--ink-3); --card: var(--paper); --brand: var(--forest-700);
  --dark: var(--forest-800); --mint: var(--sage-100); --peach: var(--peach-100);
  --shadow: 0 18px 54px rgba(11,31,26,.10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--mist);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--forest-700); text-decoration: none; }
a:hover { color: var(--rust); }
img { display: block; max-width: 100%; height: auto; }
svg { display: block; }
p { margin: 0; text-wrap: pretty; }
h1, h2, h3, h4 { margin: 0; font-family: var(--serif); font-weight: 400; letter-spacing: -.018em; line-height: 1.08; text-wrap: balance; }

.skip-link {
  position: fixed; top: 10px; left: 10px; z-index: 100;
  padding: 10px 14px; border-radius: 8px; background: var(--paper); color: var(--forest-900);
  font-weight: 700; transform: translateY(-160%); box-shadow: var(--shadow-card);
}
.skip-link:focus { transform: translateY(0); }

/* ── typography ─────────────────────────────────────────────────── */
.display { font-family: var(--serif); font-weight: 400; letter-spacing: -.026em; line-height: 1.04; }
.ital { font-style: italic; }
.sage-text { color: var(--sage-300); }
.forest-text { color: var(--forest-500); }

.t-hero { font-size: clamp(2.6rem, 6.2vw, 5.5rem); }
.t-h1   { font-size: clamp(2.3rem, 4.6vw, 4.1rem); }
.t-h2   { font-size: clamp(1.95rem, 3.6vw, 3.25rem); }
.t-h3   { font-size: clamp(1.75rem, 3vw, 2.75rem); }
.t-h4   { font-size: clamp(1.6rem, 2.6vw, 2.4rem); }
.t-h5   { font-size: 1.3rem; }
.t-h6   { font-size: 1.05rem; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--sans); font-size: .72rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: var(--forest-600);
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--rust); flex: none; }
.eyebrow-d { color: var(--sage-300); }
.eyebrow-d::before { background: #C98A6E; }

.lede { font-size: 1.19rem; line-height: 1.62; color: var(--ink-2); max-width: 62ch; }
.lede-sm { font-size: 1.09rem; }
.lede-d { color: var(--on-dark-2); }
.small { font-size: .875rem; line-height: 1.6; color: var(--ink-3); }
.small-d { color: var(--on-dark-3); }
.mono { font-family: var(--mono); font-size: .78rem; letter-spacing: -.01em; word-break: break-word; }
.center { text-align: center; }
.center .lede, .center .eyebrow { margin-left: auto; margin-right: auto; }

/* ── layout ─────────────────────────────────────────────────────── */
.wrap { width: min(1200px, 100% - 48px); margin: 0 auto; }
.wrap-n { width: min(1040px, 100% - 48px); margin: 0 auto; }
.sec { padding: 104px 0; }
.sec-s { padding: 76px 0; }
.sec-flush-t { padding-top: 0; }
.rule-t { border-top: 1px solid var(--line); }
.rule-b { border-bottom: 1px solid var(--line); }
.bg-sage { background: var(--sage-50); }
.bg-paper { background: var(--paper); }

.stack { display: flex; flex-direction: column; }
.row { display: flex; flex-direction: row; }
.row-w { flex-wrap: wrap; }
.ai-c { align-items: center; }
.ai-s { align-items: flex-start; }
.ai-e { align-items: flex-end; }
.ai-b { align-items: baseline; }
.jc-b { justify-content: space-between; }
.jc-c { justify-content: center; }

.gap-1 { gap: 4px; }  .gap-2 { gap: 8px; }   .gap-3 { gap: 12px; }
.gap-4 { gap: 16px; } .gap-5 { gap: 20px; }  .gap-6 { gap: 26px; }
.gap-7 { gap: 32px; } .gap-8 { gap: 44px; }  .gap-9 { gap: 56px; }

.g2, .g3, .g4 { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-left  { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; }
.g-right { display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; }
.g-half  { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.start { align-items: start; }
.mid { align-items: center; }
.mt-4 { margin-top: 16px; } .mt-5 { margin-top: 24px; }
.mt-6 { margin-top: 32px; } .mt-7 { margin-top: 44px; } .mt-8 { margin-top: 56px; }
.flex-1 { flex: 1; }
.no-shrink { flex: none; }

/* ── dark surfaces ──────────────────────────────────────────────── */
.dark { background: var(--forest-900); color: var(--on-dark); position: relative; overflow: hidden; }
.dark-deep { background: var(--forest-950); }
.dark h1, .dark h2, .dark h3, .dark h4, .dark strong { color: #F4F9F6; }
.dark p { color: var(--on-dark-2); }
.layer { position: relative; z-index: 1; }
.bg-art { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

/* ── controls ───────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 48px; padding: 0 22px; border-radius: 12px;
  font-size: .94rem; font-weight: 600; letter-spacing: -.005em;
  border: 1px solid transparent; white-space: nowrap; text-align: center;
}
.btn-p { background: var(--forest-700); color: #FFFEFC; box-shadow: 0 8px 22px rgba(32,82,73,.26); }
.btn-p:hover { background: var(--forest-800); color: #FFFEFC; }
.btn-l { background: var(--sage-100); color: var(--forest-800); border-color: var(--sage-200); }
.btn-l:hover { color: var(--forest-900); }
.btn-g { background: #EDF7F2; color: var(--forest-900); box-shadow: 0 10px 30px rgba(0,0,0,.28); }
.btn-g:hover { color: var(--forest-950); }
.btn-o { background: transparent; color: var(--on-dark); border-color: rgba(195,219,210,.32); }
.btn-o:hover { color: #fff; border-color: rgba(195,219,210,.62); }
.btn-sm { min-height: 40px; padding: 0 17px; font-size: .875rem; }
.btn-lg { min-height: 52px; }
.btn-full { width: 100%; }

.chip {
  display: inline-flex; align-items: center; gap: 7px; min-height: 30px;
  padding: 3px 12px; border-radius: 999px; font-size: .78rem; font-weight: 600;
  letter-spacing: -.005em;
}
.chip-line { background: var(--paper); border: 1px solid var(--line); color: var(--ink-2); }
.chip-sage { background: var(--sage-100); color: var(--forest-700); }
.chip-peach { background: var(--peach-100); color: var(--rust); }
.chip-cream { background: var(--cream); color: var(--gold); }
.chip-steel { background: #E3EEF1; color: var(--steel); }
.chip-solid { background: var(--forest-700); color: #FFFEFC; }
.chip-ok { background: rgba(143,191,168,.16); color: #8FBFA8; }
.chip-warn { background: rgba(201,138,110,.18); color: #D9A88F; }
.chip-d { background: rgba(195,219,210,.09); border: 1px solid rgba(195,219,210,.18); color: var(--sage-300); min-height: 34px; padding: 4px 15px; }
.chip-d .pip { width: 6px; height: 6px; border-radius: 50%; background: #8FBFA8; flex: none; }

.tile { width: 44px; height: 44px; border-radius: 13px; display: flex; align-items: center; justify-content: center; flex: none; }
.tile-sm { width: 38px; height: 38px; border-radius: 11px; }
.tile-lg { width: 48px; height: 48px; border-radius: 14px; }
.tile-sage { background: var(--sage-100); color: var(--forest-700); }
.tile-peach { background: var(--peach-100); color: var(--rust); }
.tile-cream { background: var(--cream); color: var(--gold); }
.tile-steel { background: #E3EEF1; color: var(--steel); }

/* icon colouring — icons inherit currentColor */
.ic-forest { color: var(--forest-700); }
.ic-rust   { color: var(--rust); }
.ic-gold   { color: var(--gold); }
.ic-steel  { color: var(--steel); }
.ic-sage   { color: #8FBFA8; }
.ic-warm   { color: #C98A6E; }
.ic-mute   { color: var(--ink-4); }
.ic-light  { color: var(--on-dark); }

.num {
  width: 30px; height: 30px; border-radius: 50%; background: var(--forest-700);
  color: #FFFEFC; font-size: .78rem; font-weight: 700; flex: none;
  display: flex; align-items: center; justify-content: center;
}
.num-rust { background: var(--rust); }

/* ── surfaces ───────────────────────────────────────────────────── */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 28px; }
.card-lg { padding: 32px; border-radius: 20px; }
.card-flush { padding: 0; overflow: hidden; }
.card-sage { background: var(--sage-50); }
.card-d { background: rgba(255,255,255,.045); border: 1px solid var(--rule-dark); border-radius: 18px; padding: 28px; }
.panel { border: 1px solid var(--line); border-radius: 20px; background: var(--paper); overflow: hidden; }
.panel-d { border: 1px solid var(--rule-dark); border-radius: 20px; background: rgba(255,255,255,.035); overflow: hidden; }
.divide > * + * { border-top: 1px solid var(--line); }
.divide-d > * + * { border-top: 1px solid rgba(195,219,210,.13); }

.notice { display: flex; gap: 18px; align-items: flex-start; padding: 24px 28px; border-radius: 18px; background: var(--peach-50); border: 1px solid #F0DACE; color: var(--rust-ink); }
.notice p, .notice span { color: var(--rust-ink); }
.notice-d { background: rgba(201,138,110,.09); border-color: rgba(201,138,110,.26); }
.notice-d p, .notice-d span { color: #D9C3B8; }
.notice-d strong { color: #EFD9CE; }
.notice-copy { display: block; }
.codebox { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; border-radius: 13px; background: var(--sage-50); border: 1px solid var(--line); }
.codebox .label { font-size: .69rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: var(--ink-3); }
.codebox .mono { color: var(--ink-2); line-height: 1.8; }

/* ── screenshot frame — chrome is drawn, not captured ───────────── */
.frame {
  border-radius: 14px; overflow: hidden; background: var(--paper);
  border: 1px solid rgba(20,51,43,.14); box-shadow: var(--shadow-frame);
}
.frame-d { border-color: rgba(195,219,210,.20); box-shadow: var(--shadow-frame-d); }
.chrome {
  height: 34px; display: flex; align-items: center; gap: 7px; padding: 0 14px;
  background: linear-gradient(180deg, #FBFAF8, #F2F2F0);
  border-bottom: 1px solid rgba(20,51,43,.09);
}
.chrome-d { background: linear-gradient(180deg, #1E4640, #183A34); border-bottom-color: rgba(195,219,210,.13); }
.chrome i { width: 10px; height: 10px; border-radius: 50%; flex: none; display: block; }
.chrome .r { background: #E4C9BF; } .chrome .y { background: #EADFC4; } .chrome .g { background: #C9DCD3; }
.chrome-d i { background: #5C7E75; }
.chrome b { margin: 0 auto; transform: translateX(-22px); font-size: .72rem; font-weight: 600; letter-spacing: .02em; color: var(--ink-4); }
.chrome-d b { color: var(--on-dark-3); }

/* ── header ─────────────────────────────────────────────────────── */
.site-head { background: var(--paper); border-bottom: 1px solid var(--line); }
.site-head-d { background: transparent; border: 0; position: relative; z-index: 3; }
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 80px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); font-size: 1.1rem; font-weight: 700; letter-spacing: -.028em; }
.brand:hover { color: var(--ink); }
/* Brand mark — the tile reproduces the shipping app icon: vertical gradient,
   23.4% corner radius, white stroked psi. The glyph fills the tile because its
   proportions are baked into the 108-unit viewBox. */
.mark { width: 36px; height: 36px; border-radius: var(--logo-radius); flex: none;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  background: linear-gradient(180deg, var(--logo-top), var(--logo-bottom));
  box-shadow: 0 5px 14px rgba(0,0,0,.20); color: #FFFFFF; }
.mark-glyph { width: 100%; height: 100%; display: block; }
.mark-lg { width: 52px; height: 52px; }
.mark-sm { width: 30px; height: 30px; }
/* on dark surfaces the tile top is darker than the page, so give it an edge */
.site-head-d .mark, .site-foot .mark, .dark .mark {
  box-shadow: 0 0 0 1px rgba(195,219,210,.18), 0 8px 22px rgba(0,0,0,.34); }
.site-nav { display: flex; align-items: center; gap: 30px; font-size: .9rem; font-weight: 500; }
.site-nav a { color: var(--ink-2); }
.site-nav a.on { color: var(--forest-700); font-weight: 650; }
.site-head-d .brand { color: #F4F9F6; }
.site-head-d .site-nav a { color: var(--on-dark-2); }
.site-head-d .site-nav a:hover { color: #F4F9F6; }
.site-head-d .site-nav a.on { color: #F4F9F6; font-weight: 650; }
.home-head { position: absolute; inset: 0 0 auto; width: 100%; }

/* ── hero ───────────────────────────────────────────────────────── */
.hero { padding: 0 0 236px; }
.hero-body { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: 72px; }
.hero-body h1 { margin-top: 26px; color: #F7FBF9; max-width: 15ch; }
.hero-body .lede { margin-top: 26px; max-width: 64ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 34px; }
.hero-fine { margin-top: 18px; color: var(--on-dark-3); font-size: .82rem; }

.hero-shot { position: relative; z-index: 2; margin-top: -220px; }
.home-hero .hero-body { padding-top: 152px; }
.pin { position: absolute; display: flex; align-items: center; gap: 10px; }
.pin b { background: rgba(255,254,252,.96); border: 1px solid var(--line); border-radius: 10px; padding: 8px 13px;
  font-size: .81rem; font-weight: 600; color: var(--ink); white-space: nowrap; box-shadow: 0 10px 26px rgba(11,31,26,.16); }
.pin i { width: 26px; height: 26px; border-radius: 50%; background: var(--rust); color: #fff; font-style: normal;
  font-size: .75rem; font-weight: 700; display: flex; align-items: center; justify-content: center; flex: none;
  box-shadow: 0 4px 14px rgba(169,86,68,.45); }
.pin-1 { top: 352px; left: -64px; }
.pin-2 { top: 432px; right: -56px; }
.pin-3 { top: 600px; left: -64px; }

/* ── page head (inner pages) ────────────────────────────────────── */
.page-head { background: var(--sage-50); border-bottom: 1px solid var(--line); padding: 76px 0 68px; position: relative; overflow: hidden; }
.page-head-d { background: var(--forest-950); border: 0; }

/* ── proof strip ────────────────────────────────────────────────── */
.proof-label { text-align: center; letter-spacing: .14em; text-transform: uppercase; font-size: .72rem; font-weight: 700; color: var(--ink-4); }
.proof-item { display: flex; align-items: center; gap: 13px; padding: 18px 20px; border-radius: 14px; background: var(--paper); border: 1px solid var(--line); font-size: .875rem; font-weight: 600; }
.proof-grid .proof-item { align-items: flex-start; flex-direction: column; gap: 3px; }
.proof-grid .proof-item strong { color: var(--forest-700); }
.proof-grid .proof-item span { color: var(--ink-3); font-weight: 500; }

/* ── stat band ──────────────────────────────────────────────────── */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 22px; background: var(--paper); overflow: hidden; }
.stat { display: flex; flex-direction: column; gap: 8px; padding: 38px 32px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat b { font-family: var(--serif); font-weight: 400; font-size: 3.9rem; line-height: 1; color: var(--forest-700); }
.stat b span { font-size: 1.8rem; }
.stat strong { font-family: var(--sans); font-size: .9rem; font-weight: 650; }

/* ── feature cards ──────────────────────────────────────────────── */
.fcard { display: flex; flex-direction: column; gap: 15px; padding: 30px; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; }
.fcard p { font-size: .9rem; line-height: 1.6; color: var(--ink-3); }
.fcard-row { display: flex; gap: 15px; align-items: flex-start; padding: 22px; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; }

/* ── template columns (features page) ───────────────────────────── */
.tmpl-head { display: flex; flex-direction: column; gap: 3px; padding: 22px 24px 18px; color: #FFFEFC; }
.tmpl-head b { font-size: 1.35rem; font-weight: 700; letter-spacing: .06em; font-family: var(--sans); }
.tmpl-head span { font-size: .75rem; color: rgba(255,255,255,.72); }
.tmpl-1 { background: var(--forest-700); } .tmpl-2 { background: var(--forest-600); }
.tmpl-3 { background: var(--forest-500); } .tmpl-4 { background: var(--forest-400); }
.tmpl-row { display: flex; gap: 12px; align-items: center; padding: 14px 24px; font-size: .875rem; }
.tmpl-row + .tmpl-row { border-top: 1px solid var(--sage-50); }
.tmpl-row .mono { color: var(--forest-700); font-weight: 500; flex: none; }
.tmpl-row.off, .tmpl-row.off .mono { color: var(--ink-4); }

/* ── generic list rows ──────────────────────────────────────────── */
.lrow { display: flex; gap: 16px; align-items: center; padding: 20px 26px; }
.lrow-t { align-items: flex-start; }
.lrow .mono { color: var(--forest-700); font-weight: 500; flex: none; }
.lrow.hi { background: var(--sage-50); }
.lrow .txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.lrow .txt strong { font-family: var(--sans); font-size: .94rem; font-weight: 650; }
.lrow .txt span { font-size: .84rem; line-height: 1.55; color: var(--ink-3); }
.check { display: flex; gap: 11px; align-items: center; font-size: .9rem; }
.check > span { min-width: 0; }
.ctx-label { width: 250px; flex: none; }

/* ── table ──────────────────────────────────────────────────────── */
table { border-collapse: collapse; width: 100%; }
th, td { text-align: left; padding: 17px 20px; font-size: .9rem; vertical-align: middle; }
thead tr { background: var(--sage-50); }
thead th { font-size: .72rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--ink-3); }
tbody tr { border-top: 1px solid var(--line); }
td.key { font-weight: 650; }
.tbl-help th:first-child, .tbl-help td:first-child { width: 34%; }
td.win { color: var(--forest-700); font-weight: 600; }
.panel-d thead tr { background: rgba(255,255,255,.05); }
.panel-d thead th { color: var(--on-dark-2); }
.panel-d tbody { color: #DCE7E3; }
.panel-d tbody tr { border-top-color: rgba(195,219,210,.13); }
.panel-d td.key { color: #F4F9F6; }

/* ── pricing ────────────────────────────────────────────────────── */
.price { display: flex; flex-direction: column; gap: 26px; padding: 42px; border-radius: 24px; background: var(--paper); border: 1px solid var(--line); position: relative; }
.price-hi { border: 2px solid var(--forest-700); box-shadow: 0 24px 60px -26px rgba(32,82,73,.45); }
.price-tag { position: absolute; top: -14px; left: 42px; }
.price-amt { display: flex; align-items: baseline; gap: 10px; }
.price-amt b { font-family: var(--serif); font-weight: 400; font-size: 3.9rem; line-height: 1; color: var(--forest-900); }
.price-amt span { font-size: .96rem; color: var(--ink-3); white-space: nowrap; }

/* ── faq ────────────────────────────────────────────────────────── */
.faq { display: flex; flex-direction: column; gap: 10px; padding: 26px; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; }
.faq strong { font-family: var(--sans); font-size: 1rem; font-weight: 650; }
.faq p { font-size: .875rem; line-height: 1.6; color: var(--ink-3); }

/* ── visual landing page and guide ─────────────────────────────── */
.section-intro { max-width: 760px; margin-inline: auto; }
.visual-card { overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); box-shadow: var(--shadow-card); }
.visual-card > img { width: 100%; aspect-ratio: 1.55; object-fit: cover; object-position: top left; border-bottom: 1px solid var(--line); }
.visual-card > div { position: relative; padding: 24px; }
.visual-card h3 { margin-bottom: 8px; }
.visual-card p { color: var(--ink-3); font-size: .9rem; }
.step-label { position: absolute; top: -17px; right: 20px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--forest-700); color: white; font-size: .82rem; font-weight: 700; box-shadow: 0 8px 18px rgba(32,82,73,.28); }
.plain-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 11px; }
.plain-list li { position: relative; padding-left: 24px; color: var(--ink-2); }
.plain-list li::before { content: ""; position: absolute; top: .72em; left: 2px; width: 7px; height: 7px; border-radius: 50%; background: var(--forest-400); }
.dark .plain-list li { color: var(--on-dark-2); }
.text-link { font-weight: 650; }
.left-actions { justify-content: flex-start; }
.boundary-panel { padding: 34px; }
.boundary-panel h3 { margin-bottom: 20px; }
.boundary-panel p + p { margin-top: 14px; }
.boundary-muted { background: var(--sage-50); }
.guide-button { align-self: flex-start; }
.guide-topics .faq { color: var(--ink); transition: transform .15s ease, border-color .15s ease; }
.guide-topics .faq:hover { transform: translateY(-2px); border-color: var(--sage-300); color: var(--ink); }
.guide-jump-section { padding-top: 28px; padding-bottom: 28px; background: var(--paper); border-bottom: 1px solid var(--line); }
.guide-jumps { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 24px; }
.guide-jumps a { font-size: .88rem; font-weight: 600; }
.guide-notice { align-self: stretch; }
.guide-notice p, .notice p { margin-top: 7px; }
.setup-list { display: grid; gap: 18px; }
.setup-list > div { padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.setup-list > div:last-child { padding-bottom: 0; border-bottom: 0; }
.setup-list p { margin-top: 4px; color: var(--ink-3); }
.guide-steps { width: min(760px, 100%); margin-inline: auto; }
.technical-grid .card-d { min-height: 160px; }
.technical-grid .card-d p { margin-top: 10px; }
[id] { scroll-margin-top: 24px; }

/* ── footer ─────────────────────────────────────────────────────── */
.site-foot { background: var(--forest-950); color: var(--on-dark-3); padding: 64px 0 44px; }
.site-foot a { color: var(--on-dark-3); font-size: .875rem; }
.site-foot a:hover { color: var(--on-dark-2); }
.site-foot strong { display: block; font-family: var(--sans); font-size: .75rem; letter-spacing: .13em; text-transform: uppercase; color: var(--on-dark-2); font-weight: 700; }
.site-foot .brand { color: var(--on-dark); font-size: 1rem; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
.foot-rule { height: 1px; background: rgba(195,219,210,.13); margin: 40px 0 26px; }
.foot-fine { font-size: .78rem; line-height: 1.65; max-width: 108ch; color: #5E7A71; }
.foot-slim { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }

/* ── docs ───────────────────────────────────────────────────────── */
.docs { display: grid; grid-template-columns: 246px minmax(0, 1fr); gap: 64px; align-items: start; }
.docs-nav { position: sticky; top: 28px; display: flex; flex-direction: column; gap: 4px; max-height: calc(100vh - 56px); overflow-y: auto; }
.docs-nav .grp { margin-top: 18px; font-size: .69rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--ink-4); padding: 0 12px 6px; }
.docs-nav .grp:first-child { margin-top: 0; }
.docs-nav a { display: block; padding: 7px 12px; border-radius: 9px; font-size: .855rem; color: var(--ink-2); line-height: 1.4; }
.docs-nav a:hover { background: var(--sage-50); color: var(--forest-700); }
.docs-nav a .n { display: inline-block; width: 22px; font-family: var(--mono); font-size: .72rem; color: var(--ink-4); }

.doc-sec { scroll-margin-top: 28px; padding-bottom: 64px; }
.doc-sec + .doc-sec { border-top: 1px solid var(--line); padding-top: 56px; }
.doc-h { display: flex; align-items: baseline; gap: 18px; margin-bottom: 20px; }
.doc-h .n { font-family: var(--serif); font-size: 2.4rem; line-height: 1; color: var(--sage-300); flex: none; }
.doc-sec h2 { font-size: clamp(1.7rem, 2.6vw, 2.2rem); }
.doc-sec h3 { font-family: var(--sans); font-size: 1.02rem; font-weight: 650; letter-spacing: -.01em; margin-top: 34px; margin-bottom: 12px; }
.doc-sec p { font-size: .96rem; line-height: 1.68; color: var(--ink-2); max-width: 72ch; }
.doc-sec p + p { margin-top: 14px; }
.doc-sec .frame, .doc-sec .panel, .doc-sec .callout, .doc-sec .steps, .doc-sec .dl, .doc-sec .svg-scroll { margin-top: 26px; }
.doc-sec ul { margin: 14px 0 0; padding-left: 20px; }
.doc-sec li { font-size: .96rem; line-height: 1.68; color: var(--ink-2); max-width: 70ch; }
.doc-sec li + li { margin-top: 8px; }
.doc-sec ul + p, .doc-sec ol + p { margin-top: 18px; }
.doc-cap { margin-top: 10px; font-size: .8rem; color: var(--ink-4); }

.steps { display: flex; flex-direction: column; gap: 0; counter-reset: step; }
.steps > li { list-style: none; position: relative; padding: 0 0 24px 46px; border-left: 1px solid var(--line); margin-left: 14px; }
.steps > li:last-child { border-left-color: transparent; padding-bottom: 0; }
.steps > li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: -14px; top: -2px; width: 28px; height: 28px; border-radius: 50%;
  background: var(--forest-700); color: #FFFEFC; font-family: var(--sans); font-size: .75rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.steps > li strong { display: block; font-family: var(--sans); font-size: .96rem; font-weight: 650; margin-bottom: 6px; color: var(--ink); }
.steps > li span { display: block; font-size: .9rem; line-height: 1.62; color: var(--ink-3); max-width: 66ch; }

.callout { display: flex; gap: 15px; align-items: flex-start; padding: 20px 24px; border-radius: 14px; border: 1px solid var(--line); background: var(--sage-50); }
.callout .body { min-width: 0; }
.callout strong { display: block; font-family: var(--sans); font-size: .92rem; font-weight: 650; margin-bottom: 5px; }
.callout p, .callout span { font-size: .89rem; line-height: 1.62; color: var(--ink-3); }
.callout-warn { background: var(--peach-50); border-color: #F0DACE; }
.callout-warn strong { color: var(--rust-ink); }
.callout-warn p, .callout-warn span { color: var(--rust-ink); }
.callout-key { background: #FBF7EA; border-color: #EADFC4; }
.callout-key strong { color: #7A5416; }
.callout-key p, .callout-key span { color: #7A5416; }

.dl { display: grid; grid-template-columns: 230px minmax(0, 1fr); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--paper); }
.dl dt, .dl dd { margin: 0; padding: 15px 20px; font-size: .885rem; border-top: 1px solid var(--line); }
.dl dt:first-of-type, .dl dt:first-of-type + dd { border-top: 0; }
.dl dt { font-weight: 650; background: var(--sage-50); }
.dl dd { color: var(--ink-2); }

@media (max-width: 1000px) {
  .docs { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .docs-nav { position: static; max-height: none; flex-direction: row; flex-wrap: wrap; gap: 6px;
    padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); }
  .docs-nav .grp { width: 100%; margin-top: 10px; padding: 0 0 2px; }
  .docs-nav .grp:first-child { margin-top: 0; }
  .docs-nav a { padding: 6px 10px; background: var(--sage-50); font-size: .8rem; }
  .docs-nav a .n { display: none; }
  .dl { grid-template-columns: minmax(0, 1fr); }
  .dl dt { border-top: 1px solid var(--line); }
  .dl dd { border-top: 0; padding-top: 0; }
  .dl dt:first-of-type + dd { padding-top: 0; }
}

/* ── diagrams ───────────────────────────────────────────────────── */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.d-txt { font-family: var(--sans); }
.d-mono { font-family: var(--mono); }
.diagram { width: 100%; height: auto; }
.diagram-narrow { width: 100%; max-width: 420px; height: auto; }
.svg-scroll { overflow: hidden; }
.svg-scroll > svg { display: block; width: 100%; min-width: 0; height: auto; }
.diagram-cap { font-size: .78rem; color: var(--ink-4); }

/* ═══ responsive ═══════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(odd) { border-right: 1px solid var(--line); }
  .stat:nth-child(even) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .g-left, .g-right, .g-half { gap: 40px; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .pin { display: none; }
  .hero-shot { margin-top: -160px; }
  .hero { padding-bottom: 180px; }
}

@media (max-width: 900px) {
  .sec { padding: 72px 0; }
  .sec-s { padding: 56px 0; }
  .g3, .g2, .g-left, .g-right, .g-half { grid-template-columns: minmax(0, 1fr); }
  .g-left, .g-right, .g-half { gap: 36px; }
  .g-right > .frame, .g-right > .shot-wrap { order: -1; }
  .head-row { height: auto; padding: 16px 0; flex-wrap: wrap; row-gap: 14px; }
  .site-nav { order: 3; width: 100%; justify-content: center; flex-wrap: wrap; gap: 10px 20px;
    font-size: .84rem; overflow: visible; }
  .site-nav::-webkit-scrollbar { display: none; }
  .wrap, .wrap-n { width: calc(100% - 40px); }
  .price { padding: 32px; }
  .hero-body { padding-top: 48px; }
  .home-hero .hero-body { padding-top: 172px; }
  .hero { padding-bottom: 130px; }
  .hero-shot { margin-top: -110px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .foot-slim { flex-direction: column; align-items: flex-start; gap: 12px; }
  .table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .table-scroll::-webkit-scrollbar { display: none; }
  .table-scroll table { min-width: 680px; }
  .ctx-label { width: 100%; }
  .left-actions .btn { flex: 1 1 100%; }
  .price .btn-full { min-height: 52px; height: auto; padding: 14px 16px; white-space: normal; line-height: 1.35; }
}

@media (max-width: 640px) {
  .stats { grid-template-columns: minmax(0, 1fr); }
  .stat { border-right: 0 !important; border-bottom: 1px solid var(--line); padding: 28px 24px; }
  .stat:last-child { border-bottom: 0; }
  .g4 { grid-template-columns: minmax(0, 1fr); }
  .foot-grid { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .card, .fcard, .faq { padding: 24px; }
  .price-tag { left: 24px; }
  .price-amt b { font-size: 3.1rem; }
  .stat b { font-size: 3.4rem; }
  .sec { padding: 56px 0; }
  .hero { padding-bottom: 96px; }
  .hero-shot { margin-top: -72px; }
  .chrome b { display: none; }
  .home-hero .hero-body { padding-top: 190px; }
  .guide-jumps { justify-content: flex-start; }
}

/* ═══ legacy compatibility ═════════════════════════════════════════
   The privacy, security and support pages ship approved copy against
   the previous class names. These rules restyle them in the current
   palette without touching their markup.                            */

.shell { width: min(1200px, 100% - 48px); margin: 0 auto; }
header { padding: 0; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 80px; }
.nav .brand { font-size: 1.1rem; }
.mark { font-family: var(--serif); font-size: 1.28rem; line-height: 1; }
nav ul { display: flex; flex-wrap: wrap; gap: 24px; margin: 0; padding: 0; list-style: none; }
nav a { color: var(--ink-2); font-size: .9rem; font-weight: 500; }
.lead { max-width: 62ch; color: var(--ink-2); font-size: 1.19rem; line-height: 1.62; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 0 22px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--paper); color: var(--ink); font-weight: 600; }
.button.primary { border-color: var(--forest-700); background: var(--forest-700); color: #FFFEFC; }
.btn-disabled { opacity: .72; cursor: not-allowed; text-align: center; }
.document { width: min(820px, 100% - 48px); margin: 56px auto 100px; padding: clamp(28px, 6vw, 64px);
  border: 1px solid var(--line); border-radius: 24px; background: var(--paper); box-shadow: var(--shadow-card); }
.document h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: 18px; }
.document h2 { margin-top: 42px; font-size: 1.5rem; }
.document h3 { margin-top: 26px; font-size: 1.1rem; }
.document p, .document li { color: var(--ink-2); }
.document p + p, .document > ul, .document > ol { margin-top: 16px; }
.document h2 + p, .document h3 + p, .document h2 + ul, .document h3 + ul { margin-top: 12px; }
.document li + li { margin-top: 8px; }
.document .eyebrow { margin-bottom: 16px; }
.meta { color: var(--ink-3); font-size: .9rem; }
footer { padding: 34px 0 48px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: .875rem; }
footer a { color: var(--ink-3); }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 16px; }
.section { padding: 84px 0; }
.section-copy { max-width: 720px; margin-bottom: 38px; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.preview { position: relative; padding: 24px; border: 1px solid var(--line); border-radius: 24px; background: var(--paper); box-shadow: var(--shadow-card); }
.preview-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; color: var(--ink-3); font-size: .82rem; font-weight: 650; }
.status { padding: 5px 9px; border-radius: 999px; background: var(--sage-100); color: var(--forest-700); }
.metric { margin-bottom: 14px; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); }
.metric strong { display: block; margin-bottom: 4px; font-size: 1.1rem; }
.metric span { color: var(--ink-3); font-size: .84rem; }

@media (max-width: 900px) {
  .nav { height: auto; padding: 18px 0; flex-direction: column; align-items: flex-start; }
  .grid { grid-template-columns: minmax(0, 1fr); }
  .shell, .document { width: calc(100% - 40px); }
}
