/* ============================================================
   Public marketing site — "Ledger" design system.

   Editorial minimal: warm paper ground, near-black ink, navy as the
   ONLY structural color, brass reserved for hairline details. Content
   is separated by whitespace and 1px rules, not filled card boxes.
   Fraunces (self-hosted variable serif) carries every headline; body
   copy stays on the system sans stack.

   The marketing pages are locked to light mode (inline script at the
   top of public_base.html/home.html/login.html), so this file owns the
   palette: it redefines the same custom-property names style.css sets
   (--bg/--card/--text/--muted/--border/--primary/...) — this file's
   <link> loads later in the DOM, so its :root block wins the cascade
   for public pages only, without touching the authenticated app.
   ============================================================ */
@font-face {
  font-family: 'Fraunces Display';
  src: url('/static/fonts/fraunces-variable.woff2') format('woff2-variations'),
       url('/static/fonts/fraunces-variable.woff2') format('woff2');
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Fraunces Display';
  src: url('/static/fonts/fraunces-variable-italic.woff2') format('woff2-variations'),
       url('/static/fonts/fraunces-variable-italic.woff2') format('woff2');
  font-weight: 300 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --paper: #FBFAF7;
  --ink: #14171C;
  --ink-2: #5A6069;
  --navy: #0B1B33;
  --rule: #E4E1DA;
  --brass: #A87B2F;
  --ok: #1F6B47;
  --ok-rule: #CBE3D4;
  --due-rule: #E8D9BC;
  --font-display: 'Fraunces Display', Georgia, 'Times New Roman', serif;

  /* Overrides of style.css token names so inherited chrome follows suit. */
  --bg: var(--paper);
  --card: #FFFFFF;
  --text: var(--ink);
  --text-2: #333A45;
  --muted: var(--ink-2);
  --border: var(--rule);
  --primary: var(--navy);
  --gold: var(--brass);
  --accent: var(--brass);
  --shadow: 0 30px 60px -30px rgba(20,23,28,.18);
}

/* ── Motion ──
   Restrained and standard: soft fade-up reveals on scroll, a staggered
   hero entrance on load, hover lifts. All opacity/transform only. */
@media (prefers-reduced-motion: reduce) {
  [data-reveal], .site-hero > *, .site-hero-inner > * { opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important; }
}
/* Scoped to .js (set by an inline script as early as possible in <head>)
   so content marked [data-reveal] stays visible by default if JavaScript
   never runs at all - a blocked or errored script shouldn't be able to
   hide the page's own content. */
.js [data-reveal] {
  opacity: 0; transform: translateY(14px);
  transition: opacity .55s cubic-bezier(.2,.7,.3,1), transform .55s cubic-bezier(.2,.7,.3,1);
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }
[data-reveal-group] > * { transition-delay: calc(var(--reveal-i, 0) * 60ms); }

@keyframes heroRise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.site-hero > * { animation: heroRise .6s cubic-bezier(.2,.7,.3,1) both; }
.site-hero > *:nth-child(1) { animation-delay: .05s; }
.site-hero > *:nth-child(2) { animation-delay: .14s; }
.site-hero > *:nth-child(3) { animation-delay: .23s; }
.site-hero > *:nth-child(4) { animation-delay: .32s; }

/* html only, not body: overflow-x on body (with overflow-y implicit)
   forces body into its own scroll container, which silently breaks
   position:sticky on .site-nav. html's overflow-x has no such side
   effect. Needed because the off-canvas mobile overlay's
   translateX(100%) still contributes to scrollable width. */
html { overflow-x: hidden; }

/* main.container is display:grid site-wide (style.css); grid items
   default to min-width:auto, so one wide descendant can blow out the
   whole track on mobile. The marketing layout doesn't use that grid. */
.app-main > main.container { display: block; max-width: none; margin: 0; padding: 0; }

/* ── Nav — same paper as the page, separated by a hairline ── */
.site-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.05rem 2.5rem; border-bottom: 1px solid var(--rule);
  background: rgba(251,250,247,.92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  position: sticky; top: 0; z-index: 100;
  transition: box-shadow .2s ease, padding .2s ease;
}
.site-nav.scrolled { padding: .7rem 2.5rem; box-shadow: 0 10px 30px -18px rgba(20,23,28,.25); }
.site-brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.site-brand-mark { height: 26px; display: block; }
.site-brand-name { font: 600 1.2rem var(--font-display); letter-spacing: -.01em; color: var(--ink); }
.site-brand-name::after { content: "."; color: var(--brass); }
.site-links, .site-actions { display: flex; align-items: center; gap: 2rem; }
.site-links a { font-size: .875rem; color: var(--ink-2); text-decoration: none; letter-spacing: .01em; transition: color .15s; }
.site-links a:hover { color: var(--ink); }
.site-actions .mkt-btn-secondary { padding: .65rem 1.3rem; font-size: .875rem; }

.site-nav-toggle {
  display: none; width: 40px; height: 40px; padding: 0; background: transparent;
  border: none; cursor: pointer; color: var(--ink); border-radius: 8px;
  align-items: center; justify-content: center;
}
.site-nav-toggle:hover { background: rgba(20,23,28,.06); }
.site-nav-toggle svg { width: 22px; height: 22px; }

/* Full-screen slide-in mobile nav overlay — same paper world */
.site-nav-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: var(--paper);
  display: flex; flex-direction: column;
  padding: 1.1rem 1.5rem 2rem;
  transform: translateX(100%);
  transition: transform .3s ease;
  visibility: hidden;
}
.site-nav-overlay.is-open { transform: translateX(0); visibility: visible; }
.site-nav-overlay-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; }
.site-nav-overlay-links { display: flex; flex-direction: column; }
.site-nav-overlay-links a {
  padding: 1.05rem .25rem; font: 500 1.5rem var(--font-display); color: var(--ink);
  text-decoration: none; border-bottom: 1px solid var(--rule);
}
.site-nav-overlay-links a:hover { color: var(--navy); }
.site-nav-overlay-actions { margin-top: auto; padding-top: 1.5rem; }
.site-nav-overlay-actions .mkt-btn-primary { width: 100%; text-align: center; }

/* ── Layout ── */
.site-wrap { max-width: 1100px; margin: 0 auto; padding: 0 2.5rem 4.5rem; }
.site-wrap.narrow { max-width: 760px; }
.site-wrap.medium { max-width: 880px; }

/* ── Hero — plain paper, no band ── */
.site-hero { padding: 6rem 0 5rem; }
/* Two-column variant: copy beside a real product screenshot instead of
   the page opening full-width onto text alone. .site-hero's own rules
   (badge/h1/p/actions animation, spacing) still apply to the children -
   this only adds the grid and the media column's own furniture. */
.site-hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3.5rem; align-items: center; }
.site-hero-grid .site-hero-copy > * { max-width: none; }
.site-hero-risk {
  display: flex; align-items: center; gap: .55rem; margin-top: 1.6rem;
  font-size: .82rem; color: var(--ink-2);
}
.site-hero-risk svg { width: 15px; height: 15px; color: var(--ok); flex-shrink: 0; }
.site-hero-media { animation: heroRise .6s cubic-bezier(.2,.7,.3,1) .2s both; }
.site-hero-frame {
  border: 1px solid var(--rule); border-radius: 28px; background: #fff;
  padding: 10px; box-shadow: var(--shadow); max-width: 340px; margin: 0 auto;
}
.site-hero-frame img { display: block; width: 100%; height: auto; border-radius: 20px; }
.site-hero-media-caption {
  text-align: center; font-size: .8rem; color: var(--ink-2); font-style: italic;
  max-width: 300px; margin: 1.1rem auto 0;
}
.site-badge {
  display: block; font-size: .75rem; font-weight: 600; letter-spacing: .22em;
  text-transform: uppercase; color: var(--ink-2); margin-bottom: 1.7rem;
}
.site-hero h1 {
  font: 500 clamp(2.4rem, 5.5vw, 4.5rem)/1.06 var(--font-display);
  letter-spacing: -.025em; color: var(--ink); max-width: 860px; margin: 0;
  text-wrap: balance;
}
.site-hero h1 em { font-style: italic; font-weight: 400; color: inherit; }
.site-hero p { max-width: 580px; margin: 1.8rem 0 0; font-size: 1.1rem; line-height: 1.7; color: var(--ink-2); }
.site-hero-actions { display: flex; align-items: center; gap: 1.3rem; flex-wrap: wrap; margin-top: 2.4rem; }

/* ── Buttons ── */
.mkt-btn-primary {
  display: inline-block; background: var(--navy); color: #fff; text-decoration: none;
  font-weight: 600; font-size: .95rem; padding: .9rem 2rem; border-radius: 999px;
  border: 1px solid var(--navy);
  transition: transform .2s, box-shadow .2s;
}
.mkt-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(11,27,51,.22); }
.mkt-btn-primary i, .mkt-btn-primary svg { display: none; }
.mkt-btn-secondary {
  display: inline-block; color: var(--ink); text-decoration: none; font-weight: 600;
  font-size: .95rem; padding: .9rem 2rem; border-radius: 999px;
  border: 1px solid var(--ink); background: transparent;
  transition: background .2s, color .2s;
}
.mkt-btn-secondary:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.mkt-btn-ghost {
  display: inline-block; color: var(--ink); text-decoration: none; font-weight: 600;
  font-size: .95rem; padding: .9rem .2rem; border-bottom: 1px solid var(--rule);
  transition: border-color .2s;
}
.mkt-btn-ghost:hover { border-color: var(--ink); }

/* ── Figures strip — ledger-style, rules not boxes ── */
.figures { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); margin: 0 -2.5rem; padding: 0 2.5rem; }
.figures-in { display: grid; grid-template-columns: repeat(3, 1fr); max-width: 1100px; margin: 0 auto; }
.fig { padding: 2.5rem 2rem; border-left: 1px solid var(--rule); }
.fig:first-child { border-left: 0; padding-left: 0; }
.fig b { display: block; font: 500 2.75rem/1 var(--font-display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--ink); }
.fig span { display: block; margin-top: .65rem; font-size: .875rem; color: var(--ink-2); line-height: 1.55; }

/* ── Section heading — mkt- prefixed: style.css owns .section-head ── */
.mkt-section-head { padding-top: 6.5rem; }
.mkt-section-head h2 { font: 500 clamp(1.9rem, 3.4vw, 2.75rem)/1.15 var(--font-display); letter-spacing: -.02em; max-width: 560px; margin: 0 0 1rem; color: var(--ink); }
.mkt-section-head p { color: var(--ink-2); max-width: 560px; margin: 0 0 3.4rem; line-height: 1.7; }

/* ── Numbered feature index ── */
.index { display: grid; grid-template-columns: 1fr 1fr; column-gap: 5rem; }
a.ix, .ix { display: flex; gap: 1.4rem; padding: 1.6rem 0; border-top: 1px solid var(--rule); color: inherit; text-decoration: none; }
.ix small { font: 500 .875rem var(--font-display); color: var(--ink-2); padding-top: .2rem; font-variant-numeric: tabular-nums; }
.ix b { display: block; font-size: 1rem; font-weight: 600; margin-bottom: .25rem; color: var(--ink); }
.ix p { font-size: .875rem; color: var(--ink-2); margin: 0; line-height: 1.55; }
a.ix:hover b { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }

/* Compact everything-list (Features page) */
.tool-roll { column-count: 3; column-gap: 3rem; padding-top: .5rem; }
.tool-roll a {
  display: block; padding: .55rem 0; font-size: .875rem; color: var(--ink-2);
  text-decoration: none; border-bottom: 1px solid var(--rule); break-inside: avoid;
}
.tool-roll a:hover { color: var(--ink); }

/* ── Trade table — same hairline-grid language as .compare-table below,
   reused here for a different comparison (trade vocabulary, not plans).
   overflow-x:auto + min-width is the mobile-scroll pattern shared with
   .compare-table. ── */
.trade-table { border-top: 1px solid var(--ink); overflow-x: auto; }
.trade-row { display: grid; grid-template-columns: 1.1fr .8fr 1.3fr 1.3fr; gap: 1rem; align-items: center; border-bottom: 1px solid var(--rule); min-width: 620px; }
.trade-row.trade-head > div { padding: .8rem .5rem .8rem 0; font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.trade-row:not(.trade-head) > div { padding: 1.1rem .5rem 1.1rem 0; font-size: .875rem; color: var(--ink-2); }
.trade-name { font-weight: 600; color: var(--ink); }
.trade-note { font-size: .85rem; color: var(--ink-2); font-style: italic; margin: 1.3rem 0 0; }

/* ── Proof grid — icon + claim, divided by rules like .figures-in rather
   than boxed cards, matching the site's no-card visual language. ── */
.proof-grid { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 3rem; border-top: 1px solid var(--rule); }
.proof-item { padding: 2.4rem 0 0; border-left: 1px solid var(--rule); padding-left: 2.2rem; }
.proof-item:first-child { border-left: 0; padding-left: 0; }
.proof-item svg { color: var(--navy); }
.proof-item h3 { font: 500 1.2rem var(--font-display); letter-spacing: -.01em; margin: 1rem 0 .6rem; color: var(--ink); }
.proof-item p { font-size: .9rem; line-height: 1.7; color: var(--ink-2); margin: 0; }

/* ── CTA band — the one navy block per page ── */
.feature-band {
  background: var(--navy); color: #fff; border-radius: 18px;
  padding: 4.5rem 2.5rem; text-align: center; margin-top: 6.5rem;
}
.feature-band h2 { font: 500 clamp(1.9rem, 3.4vw, 2.75rem)/1.15 var(--font-display); letter-spacing: -.02em; margin: 0 0 .8rem; }
.feature-band p { color: #A9B4C4; margin: 0 0 2.2rem; }
.feature-band .site-hero-actions { justify-content: center; margin-top: 0; }
.feature-band .mkt-btn-primary { background: #fff; color: var(--navy); border-color: #fff; }
.feature-band .mkt-btn-secondary { color: #fff; border-color: rgba(255,255,255,.45); }
.feature-band .mkt-btn-secondary:hover { background: #fff; color: var(--navy); border-color: #fff; }

/* ── Pricing ── */
/* Region picker. Anchors, not buttons - see public_pricing.html. The
   explicit :visited/:hover colours are required: style.css's a,a:visited
   rule is (0,1,1) and outranks a single class in those states. */
.price-regions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; padding-top: 1.6rem; }
.price-regions-label { font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); margin-right: .3rem; }
.price-region,
.price-region:visited { display: inline-flex; align-items: baseline; gap: .4rem; padding: .38rem .8rem; border: 1px solid var(--rule); border-radius: 999px; font-size: .88rem; color: var(--ink-2); text-decoration: none; background: transparent; transition: border-color .15s ease, color .15s ease; }
.price-region:hover { color: var(--ink); border-color: var(--ink-2); text-decoration: none; }
.price-region.is-active,
.price-region.is-active:visited,
.price-region.is-active:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.price-region-cur { font-size: .78rem; opacity: .7; font-variant-numeric: tabular-nums; }
/* The highlighted card's "Most Popular" badge straddles its top edge, so
   the grid needs extra clearance when the picker sits directly above it. */
.price-regions + .price-grid { padding-top: 2rem; }

/* Billing-period switch. Same pill vocabulary as .price-region above,
   just toggled by JS (marketing.js#initPricingToggle) instead of a link -
   there's nothing to put in the URL, it only changes which number on
   the same page is showing. */
.price-toggle-row { display: flex; padding-top: 1.6rem; }
.price-toggle { display: inline-flex; border: 1px solid var(--rule); border-radius: 999px; padding: 3px; background: #fff; }
.price-toggle-btn {
  border: none; background: transparent; cursor: pointer; font: inherit;
  padding: .5rem 1.2rem; border-radius: 999px; font-size: .85rem; font-weight: 600; color: var(--ink-2);
  transition: background .15s ease, color .15s ease;
}
.price-toggle-btn.is-active { background: var(--navy); color: #fff; }

.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; padding-top: 1.6rem; }
.price-card {
  background: #fff; border: 1px solid var(--rule); border-radius: 14px; padding: 2rem;
  display: flex; flex-direction: column; position: relative;
  transition: transform .2s, box-shadow .2s;
}
.price-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.price-card.highlighted { border-color: var(--navy); box-shadow: 0 0 0 1px var(--navy); }
.price-card.highlighted::before {
  content: "Most popular"; position: absolute; top: -.85rem; left: 50%; transform: translateX(-50%);
  background: var(--navy); color: #fff; font-size: .72rem; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; padding: .3rem .9rem; border-radius: 999px; white-space: nowrap;
}
.price-name { font: 500 1.5rem var(--font-display); color: var(--ink); }
.price-tagline { font-size: .875rem; color: var(--ink-2); margin-top: .3rem; }
.price-amount { display: flex; align-items: baseline; gap: .3rem; margin: 1.4rem 0 0; }
.price-amount .cur { font-size: 1rem; color: var(--ink-2); }
.price-amount .num { font: 500 2.6rem/1 var(--font-display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--ink); }
.price-amount .period { font-size: .875rem; color: var(--ink-2); }
.price-subline { font-size: .8rem; color: var(--ink-2); margin-top: .5rem; padding-bottom: 1.4rem; border-bottom: 1px solid var(--rule); min-height: 1.2em; }
.price-features { list-style: none; margin: 0 0 1.8rem; padding: 0; flex: 1; }
.price-features li { display: flex; gap: .6rem; align-items: flex-start; font-size: .875rem; color: var(--text-2); padding: .38rem 0; }
.price-features li svg { width: 15px; height: 15px; color: var(--ok); flex-shrink: 0; margin-top: .18rem; }
.price-cta {
  display: block; text-align: center; text-decoration: none; font-weight: 600; font-size: .9rem;
  padding: .8rem; border-radius: 999px; border: 1px solid var(--ink); color: var(--ink);
  transition: background .2s, color .2s;
}
.price-cta:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.price-card.highlighted .price-cta { background: var(--navy); border-color: var(--navy); color: #fff; }
.price-card.highlighted .price-cta:hover { box-shadow: 0 10px 24px rgba(11,27,51,.22); }
.price-trust { display: flex; justify-content: center; gap: 2.2rem; flex-wrap: wrap; margin-top: 2.4rem; }
.price-trust span { display: flex; align-items: center; gap: .5rem; font-size: .85rem; color: var(--ink-2); }
.price-trust svg { width: 15px; height: 15px; color: var(--ok); flex-shrink: 0; }
.price-note { text-align: center; font-size: .875rem; color: var(--ink-2); margin-top: 1.2rem; }
.price-note a { color: var(--ink); }

/* ── Plan comparison table — hairline rows, checkmarks only where
   included, matching the site's ledger-not-boxes visual language ──
   overflow-x:auto + a min-width floor on each row is the div-grid
   equivalent of a scrollable <table> on narrow screens. */
.compare-table { border-top: 1px solid var(--ink); overflow-x: auto; }
.compare-row { display: grid; grid-template-columns: 1fr repeat(3, 110px); align-items: center; border-bottom: 1px solid var(--rule); min-width: 480px; }
.compare-row.compare-head { border-bottom: 1px solid var(--ink); }
.compare-row.compare-head > div { padding: .8rem .5rem; font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); text-align: center; }
.compare-row.compare-head > div:first-child { text-align: left; }
.compare-feature { padding: .85rem .5rem .85rem 0; font-size: .875rem; color: var(--ink); }
.compare-row > div:not(.compare-feature) { display: flex; justify-content: center; padding: .85rem .5rem; }
.compare-row svg { width: 16px; height: 16px; color: var(--ok); }

/* ── FAQ — hairline list, no boxes ── */
.mkt-faq { margin-top: 4.5rem; border-top: 1px solid var(--rule); }
.mkt-faq-item { border-bottom: 1px solid var(--rule); }
.mkt-faq-q {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: 100%;
  background: none; border: none; cursor: pointer; text-align: left;
  font: 600 1rem/1.4 var(--font-sans, inherit); color: var(--ink); padding: 1.3rem .2rem;
  white-space: normal; /* style.css's global button rule sets nowrap */
}
/* style.css's global `button:hover` rule (element+pseudo-class, higher
   specificity than this file's `.mkt-faq-q` background:none) darkens any
   <button> on hover for real CTAs. This toggle is a <button> too, so
   without its own :hover it inherited that dark fill while keeping its
   own dark `color: var(--ink)` - dark text on a dark background. */
.mkt-faq-q:hover { background: none; color: var(--ink); }
.mkt-faq-q svg { width: 18px; height: 18px; color: var(--ink-2); transition: transform .25s; flex-shrink: 0; }
.mkt-faq-item.is-open .mkt-faq-q svg { transform: rotate(180deg); }
.mkt-faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.mkt-faq-item.is-open .mkt-faq-a { max-height: 300px; }
.mkt-faq-a p { margin: 0 .2rem 1.3rem; font-size: .92rem; line-height: 1.7; color: var(--ink-2); max-width: 640px; }

/* ── Contact ── */
.contact-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; padding-top: .5rem; }
.contact-card { display: flex; gap: 1rem; align-items: flex-start; border: 1px solid var(--rule); border-radius: 12px; padding: 1.3rem; background: #fff; }
.contact-icon { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--rule); display: grid; place-items: center; color: var(--ink); flex-shrink: 0; }
.contact-icon svg { width: 17px; height: 17px; }
.contact-card .k { font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.contact-card .v { font-size: .95rem; margin-top: .2rem; color: var(--ink); word-break: break-word; }
.contact-card .v a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--rule); }
.contact-card .v a:hover { border-color: var(--ink); }
.contact-card .note { font-size: .8rem; margin-top: .35rem; color: var(--ink-2); }

.contact-form { margin-top: 3.5rem; border-top: 1px solid var(--rule); padding-top: 2.8rem; }
.contact-form h2 { font: 500 1.75rem var(--font-display); letter-spacing: -.01em; margin: 0 0 1.6rem; color: var(--ink); }
.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: .8rem; }
.cf-field { display: block; font-size: .82rem; font-weight: 600; color: var(--ink); }
.cf-field input, .cf-field textarea {
  display: block; width: 100%; margin-top: .4rem; padding: .75rem .9rem; font: inherit; font-size: .95rem;
  border: 1px solid var(--rule); border-radius: 10px; background: #fff; color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
.cf-field input:focus, .cf-field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(11,27,51,.08); }
.cf-field textarea { min-height: 140px; resize: vertical; }
.cf-honeypot { position: absolute; left: -9999px; }
.contact-form .mkt-btn-primary { border: 1px solid var(--navy); cursor: pointer; font: 600 .95rem var(--font-sans, inherit); }
.form-banner { border-radius: 10px; padding: .8rem 1rem; font-size: .9rem; margin-bottom: 1.2rem; }
.form-banner.ok { color: var(--ok); border: 1px solid var(--ok-rule); background: #F4FAF6; }
.form-banner.err { color: #9B2C2C; border: 1px solid #E8C4C4; background: #FCF6F6; }

/* ── Support ── */
.support-options { display: grid; grid-template-columns: 1fr; gap: 0; border-top: 1px solid var(--rule); }
.support-card {
  display: flex; gap: 1.2rem; align-items: flex-start; padding: 1.5rem .2rem;
  border-bottom: 1px solid var(--rule); text-decoration: none; color: inherit;
}
.support-icon { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--rule); display: grid; place-items: center; color: var(--ink); flex-shrink: 0; background: #fff; }
.support-icon svg { width: 17px; height: 17px; }
.support-body h3 { font-size: 1rem; font-weight: 600; margin: 0 0 .25rem; color: var(--ink); }
.support-body p { font-size: .875rem; color: var(--ink-2); margin: 0; line-height: 1.55; }
.support-card:hover .support-body h3 { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }

/* ── Docs section — quiet documentation chrome, distinct from marketing ── */
.docs-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 1.1rem 0; border-bottom: 1px solid var(--rule); margin-bottom: 3rem;
}
.docs-bar .docs-crumb { font-size: .82rem; color: var(--ink-2); }
.docs-bar .docs-crumb a { color: var(--ink-2); text-decoration: none; }
.docs-bar .docs-crumb a:hover { color: var(--ink); }
.docs-bar .docs-crumb b { color: var(--ink); font-weight: 600; }
.docs-filter {
  font: inherit; font-size: .875rem; padding: .5rem .9rem; width: 240px;
  border: 1px solid var(--rule); border-radius: 999px; background: #fff; color: var(--ink);
}
.docs-filter:focus { outline: none; border-color: var(--navy); }

.docs-head h1 { font: 500 clamp(2rem, 4vw, 3rem)/1.1 var(--font-display); letter-spacing: -.02em; margin: 0 0 .8rem; color: var(--ink); }
.docs-head p { color: var(--ink-2); max-width: 560px; margin: 0 0 3rem; line-height: 1.7; }

.docs-groups { display: grid; grid-template-columns: 1fr 1fr; column-gap: 5rem; row-gap: 2.5rem; }
.docs-group h3 { font: 500 1.15rem var(--font-display); margin: 0 0 .4rem; color: var(--ink); padding-bottom: .6rem; border-bottom: 1px solid var(--ink); }
.docs-group ul { list-style: none; margin: 0; padding: 0; }
.docs-group li { border-bottom: 1px solid var(--rule); }
.docs-group li.is-hidden { display: none; }
.docs-group a { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .7rem .1rem; font-size: .9rem; color: var(--ink-2); text-decoration: none; }
.docs-group a:hover { color: var(--ink); }
.docs-group a svg { width: 14px; height: 14px; opacity: .5; }
.docs-group.is-hidden { display: none; }
.docs-empty { display: none; color: var(--ink-2); font-size: .9rem; padding: 1rem 0; }
.docs-empty.is-visible { display: block; }

/* Docs article page */
.doc-hero { padding: 0 0 2.2rem; border-bottom: 1px solid var(--rule); margin-bottom: 2.8rem; }
.doc-title { font: 500 clamp(2rem, 4vw, 3rem)/1.1 var(--font-display); letter-spacing: -.02em; margin: 0 0 .7rem; color: var(--ink); }
.doc-summary { color: var(--ink-2); max-width: 620px; margin: 0; line-height: 1.7; }
.doc-layout { display: grid; grid-template-columns: 1fr 230px; gap: 4rem; align-items: start; }
.doc-main { min-width: 0; }
.doc-card { padding: 0 0 2.2rem; margin-bottom: 2.2rem; border-bottom: 1px solid var(--rule); }
.doc-card:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.doc-card h3 { font: 500 1.3rem var(--font-display); margin: 0 0 .8rem; color: var(--ink); }
.doc-card p { margin: 0; color: var(--text-2); line-height: 1.75; }
.doc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 3rem; }
.doc-grid .doc-card { border-bottom: 1px solid var(--rule); }
.doc-list { margin: 0; padding-left: 1.2rem; color: var(--text-2); line-height: 1.9; }
.doc-list li::marker { color: var(--ink-2); font-variant-numeric: tabular-nums; }
.doc-side { position: sticky; top: 90px; border-left: 1px solid var(--rule); padding-left: 1.6rem; }
.doc-side h3 { font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); margin: 0 0 .8rem; }
.doc-side ul { list-style: none; margin: 0; padding: 0; }
.doc-side a { display: block; padding: .4rem 0; font-size: .9rem; color: var(--ink-2); text-decoration: none; }
.doc-side a:hover { color: var(--ink); }
/* Second and later headings in the sidebar need the space the first one
   doesn't - .doc-side h3 zeroes its top margin to sit flush with the rule. */
.doc-side ul + h3 { margin-top: 1.7rem; }

/* Terms / Privacy: same reading rhythm as a doc page, but numbered
   clauses people can cite at each other. */
/* Terms/Privacy open straight onto the hero, with no breadcrumb bar above
   it the way /wiki/{slug} has - so it needs its own clearance from the
   sticky nav. Scoped to :first-child so the docs pages keep theirs. */
.doc-hero:first-child { padding-top: 3.4rem; }
.legal-meta { color: var(--ink-2); font-size: .85rem; margin: 1.2rem 0 0; }
.legal-note { border-left: 2px solid var(--brass); padding: .1rem 0 .1rem 1.1rem; margin: 0 0 2.6rem; color: var(--ink-2); font-size: .92rem; line-height: 1.7; }
.doc-main ol.legal-clauses { counter-reset: clause; list-style: none; margin: 0; padding: 0; }
.doc-main ol.legal-clauses > li { counter-increment: clause; padding: 0 0 2.2rem; margin-bottom: 2.2rem; border-bottom: 1px solid var(--rule); }
.doc-main ol.legal-clauses > li:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.doc-main ol.legal-clauses > li > h2 { font: 500 1.3rem var(--font-display); margin: 0 0 .8rem; color: var(--ink); }
.doc-main ol.legal-clauses > li > h2::before { content: counter(clause) ". "; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.doc-main ol.legal-clauses p { margin: 0 0 .9rem; color: var(--text-2); line-height: 1.75; }
.doc-main ol.legal-clauses p:last-child { margin-bottom: 0; }

/* ── Licenses ── */
.lic-section { margin-top: 3rem; }
.lic-section h2 { font: 500 1.6rem var(--font-display); margin: 0 0 .4rem; color: var(--ink); }
.lic-section-note { font-size: .875rem; color: var(--ink-2); margin: 0 0 1.4rem; }
.lic-list { border-top: 1px solid var(--rule); }
.lic-card { display: flex; align-items: baseline; gap: 1rem; flex-wrap: wrap; padding: .85rem .1rem; border-bottom: 1px solid var(--rule); }
.lic-name a { font-weight: 600; font-size: .95rem; color: var(--ink); text-decoration: none; }
.lic-name a:hover { text-decoration: underline; text-underline-offset: 3px; }
.lic-version { font-size: .82rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.lic-badge { margin-left: auto; font-size: .75rem; font-weight: 600; color: var(--ink-2); border: 1px solid var(--rule); border-radius: 999px; padding: .1rem .7rem; }
.lic-note { flex-basis: 100%; font-size: .82rem; color: var(--ink-2); margin: .2rem 0 0; }

/* ── Footer ── */
.site-footer { margin-top: 5.5rem; padding-top: 2rem; border-top: 1px solid var(--rule); display: flex; justify-content: space-between; align-items: baseline; gap: 1.5rem; flex-wrap: wrap; }
.site-footer p { margin: 0; font-size: .82rem; color: var(--ink-2); }
.site-footer-nav { display: flex; gap: 1.6rem; flex-wrap: wrap; }
.site-footer-nav a { font-size: .82rem; color: var(--ink-2); text-decoration: none; }
.site-footer-nav a:hover { color: var(--ink); }

/* ── Link-state fixes ──
   style.css sets `a,a:visited{color:var(--link)}` and
   `a:hover{color:var(--link-hover);text-decoration:underline}` — both at
   (0,1,1) specificity, which OUTRANKS the (0,1,0) single-class color on
   marketing anchors in those states. --link is navy, so e.g. a visited
   "Get started" renders navy-on-navy (invisible label on phones that
   have visited /login). Mirror style.css's own a.btn:visited fix for
   every self-colored marketing anchor, hover included. */
a.mkt-btn-primary:visited, a.mkt-btn-primary:hover { color: #fff; text-decoration: none; }
.feature-band a.mkt-btn-primary:visited, .feature-band a.mkt-btn-primary:hover { color: var(--navy); }
a.mkt-btn-secondary:visited { color: var(--ink); }
a.mkt-btn-secondary:hover { color: #fff; text-decoration: none; }
a.mkt-btn-ghost:visited { color: var(--ink); }
a.mkt-btn-ghost:hover { color: var(--ink); text-decoration: none; }
.feature-band a.mkt-btn-secondary:visited { color: #fff; }
a.price-cta:visited { color: var(--ink); }
a.price-cta:hover { color: #fff; text-decoration: none; }
.price-card.highlighted a.price-cta:visited, .price-card.highlighted a.price-cta:hover { color: #fff; }
.contact-card .v a:visited, .price-note a:visited, .lic-name a:visited { color: var(--ink); }
.site-links a:visited, .tool-roll a:visited, .docs-group a:visited,
.docs-bar .docs-crumb a:visited, .doc-side a:visited, .site-footer-nav a:visited { color: var(--ink-2); }
.site-links a:hover, .tool-roll a:hover, .docs-group a:hover,
.docs-bar .docs-crumb a:hover, .doc-side a:hover, .site-footer-nav a:hover { color: var(--ink); text-decoration: none; }
.site-nav-overlay-links a:visited { color: var(--ink); }
a.ix:hover, a.support-card:hover, a.site-brand:hover { text-decoration: none; }

/* ── Responsive ── */
@media (max-width: 980px) {
  .index, .docs-groups { grid-template-columns: 1fr; column-gap: 0; }
  .tool-roll { column-count: 2; }
  .price-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .doc-layout { grid-template-columns: 1fr; gap: 0; }
  .doc-side { position: static; border-left: 0; padding-left: 0; border-top: 1px solid var(--rule); padding-top: 1.6rem; margin-top: .5rem; }
  .figures-in { grid-template-columns: 1fr; }
  .fig { border-left: 0; padding: 1.6rem 0; border-top: 1px solid var(--rule); }
  .fig:first-child { border-top: 0; }
  .figures { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
  .site-hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .site-hero-grid .site-hero-media { order: -1; }
  .site-hero-frame { max-width: 260px; }
  .proof-grid { grid-template-columns: 1fr; row-gap: 2rem; border-top: 0; }
  .proof-item { border-left: 0; padding-left: 0; border-top: 1px solid var(--rule); padding-top: 1.8rem; }
  .proof-item:first-child { border-top: 0; padding-top: 0; }
}
@media (max-width: 860px) {
  .site-nav { padding: .85rem 1.2rem; }
  .site-nav.scrolled { padding: .7rem 1.2rem; }
  .site-links, .site-actions { display: none; }
  .site-nav-toggle { display: flex; }
}
@media (max-width: 640px) {
  .site-wrap { padding: 0 1.2rem 3rem; }
  .figures { margin: 0 -1.2rem; padding: 0 1.2rem; }
  .site-hero { padding: 3.5rem 0 3rem; }
  .site-hero p { font-size: 1rem; }
  .site-hero-actions { gap: .9rem; }
  .mkt-btn-primary, .mkt-btn-secondary { padding: .8rem 1.6rem; font-size: .9rem; }
  .mkt-section-head { padding-top: 4rem; }
  .feature-band { margin-top: 4rem; padding: 3rem 1.4rem; border-radius: 14px; }
  .contact-cards, .cf-row { grid-template-columns: 1fr; }
  .price-trust { gap: 1rem 1.6rem; }
  .tool-roll { column-count: 2; column-gap: 1.5rem; }
  .tool-roll a { font-size: .8rem; padding: .5rem 0; }
  .docs-bar { flex-direction: column; align-items: stretch; gap: .8rem; }
  .docs-filter { width: 100%; }
  .site-footer { flex-direction: column; gap: 1rem; }
}
