/* Mozaic static-landing shared stylesheet.
   Extracted from en/fr/es/zh.html so every static page picks up the same
   palette, type stack, nav, footer, buttons, and core animations from one
   place. Per-page styling stays inline in each HTML file's <style> block. */

:root {
  /* Brand-matched palette — neutrals aligned with MarketingDesignTokens
     (frontend/lib/constants/design_constants.dart) so the landing reads
     as the same product as the in-app login page. Accents already match
     the app exactly (violet/coral/mint/teal/amber/pink). */
  --paper-0: #FAFAFA;                /* page bg — warmIvoryBg / pageBgLight */
  --paper-1: #FFFFFF;                /* card / section bg — warmCardBg / pureWhite */
  --paper-2: #F9FAFB;                /* selected / hover bg — warmHoverBg */
  --paper-3: #E5E7EB;                /* border / rule — warmBorder / borderGray */
  --paper-ink: #1F2937;

  --ink-0: #1F2937;                  /* darkCharcoal */
  --ink-1: #374151;
  --ink-2: #6B7280;                  /* midGray */
  --ink-3: #9CA3AF;                  /* captionGray */

  /* Brand mosaic accents */
  --violet:     #8B5CF6;
  --violet-soft: color-mix(in oklab, #8B5CF6 18%, var(--paper-0));
  --violet-deep: #7C3AED;

  --coral:      #F97316;
  --coral-soft: color-mix(in oklab, #F97316 18%, var(--paper-0));
  --coral-deep: #EA580C;

  --mint:       #10B981;
  --mint-soft:  color-mix(in oklab, #10B981 18%, var(--paper-0));
  --mint-deep:  #059669;

  --teal:       #14B8A6;
  --teal-soft:  color-mix(in oklab, #14B8A6 18%, var(--paper-0));

  --amber:      #FBBF24;
  --amber-soft: color-mix(in oklab, #FBBF24 20%, var(--paper-0));
  --amber-deep: #F59E0B;

  --pink:       #EC4899;
  --pink-soft:  color-mix(in oklab, #EC4899 16%, var(--paper-0));

  /* Semantic money flow: in = mint, out = coral (matches brand, not red/green) */
  --in:       var(--mint);
  --in-soft:  var(--mint-soft);
  --in-deep:  var(--mint-deep);
  --out:      var(--coral);
  --out-soft: var(--coral-soft);
  --out-deep: var(--coral-deep);

  /* Type stack aligned with Mozaic Design System v1 (MozaicTextTheme).
     Source Serif 4 upright covers display / page titles / hero figures.
     Public Sans handles all chrome (nav, body, buttons, captions).
     IBM Plex Mono is reserved for numbers users compare (the design's
     .num class — kept verbatim from MozaicTextTheme.monoEyebrow). */
  --ff-display: "Source Serif 4", ui-serif, Georgia, serif;
  --ff-ui: "Public Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ff-num: "IBM Plex Mono", ui-monospace, Menlo, "Courier New", monospace;

  /* Shadows — mirror the design_system.html spec (cool ink). Mapped to
     MozaicTokens.shadowSm/Md/Lg in frontend/lib/constants/mozaic_tokens.dart.
     sm → button hover · md → popover / FAB · lg → drawer / modal. Never on cards. */
  --shadow-sm: 0 1px 2px rgba(17, 24, 39, 0.04);
  --shadow-md: 0 4px 14px rgba(17, 24, 39, 0.06);
  --shadow-lg: 0 18px 48px -20px rgba(17, 24, 39, 0.18);

  /* Spacing — 4-based scale s1..s10, matches design_system.html and
     MozaicTokens.s1..s10. Use these for any inline padding, gap, or margin. */
  --space-s1:  4px;
  --space-s2:  8px;
  --space-s3:  12px;
  --space-s4:  16px;
  --space-s5:  20px;
  --space-s6:  24px;
  --space-s7:  32px;
  --space-s8:  40px;
  --space-s9:  56px;
  --space-s10: 72px;

  /* Radii — xs/sm/md/lg/xl/2xl + pill, matches design_system.html and
     MozaicTokens.radiusXs..radius2Xl/radiusPill. Cards default to lg(16),
     buttons & inputs to md(12), chips/pills to pill(999), favicon-sized
     marks (cc-logo, logo-mark, prose code) to xs(4). */
  --radius-xs:   4px;
  --radius-sm:   8px;
  --radius-md:   12px;
  --radius-lg:   16px;
  --radius-xl:   20px;
  --radius-2xl:  28px;
  --radius-pill: 999px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--ff-ui);
  color: var(--ink-0);
  background: var(--paper-0);
  -webkit-font-smoothing: antialiased;
  font-size: 15px;
  line-height: 1.55;
  letter-spacing: -0.005em;
  overflow-x: hidden;
  position: relative;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
.num { font-family: var(--ff-num); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.container { max-width: 1320px; margin: 0 auto; padding: 0 var(--space-s8); }
@media (max-width: 720px) { .container { padding: 0 22px; } }

/* ---------- Page grain ---------- */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(oklch(0.22 0.015 60 / 0.035) 1px, transparent 1px);
  background-size: 22px 22px;
  background-position: 0 0;
  z-index: 0;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in oklab, var(--paper-0) 85%, transparent);
  backdrop-filter: blur(10px) saturate(1.1);
  border-bottom: 1px solid var(--paper-3);
}
.nav-inner {
  display: flex; align-items: center; gap: var(--space-s8);
  padding: 18px 0;
}
/* gap encodes the brand-handoff "Clear space & minimum sizes" rule
   (§05) on the inline axis: one tile-width X ≈ 56/128 ≈ 0.44 × mark
   size. For the 36px nav/footer mark, 36 × 56/128 = 15.75 → 16px.
   Vertical clearspace is handled by the parent header/footer padding,
   not this rule. */
.brand { display: flex; align-items: center; gap: var(--space-s4); }
/* Canonical Mozaic brand mark — same SVG as
   frontend/assets/brand/mark-canonical.svg (used by the Flutter
   dashboard sidebar, marketing nav, footer, and login view). Inlined
   here so the static landing has zero asset fetches for the nav.
   36px exceeds the brand-handoff §05 digital minimum of 32px.

   brand-handoff "Do & don't" compliance — enumerate each rule, note
   why this landing passes today. If a future change violates a rule,
   delete the matching note before shipping so the omission is loud.

   - Canonical tile colors & positions: inline SVG uses the prescribed
     fills (teal #2BB3AD square, yellow #FFD23F circle, purple #7B5FC7
     rotated square, coral #FF6B6B pill). Matches mark-canonical.svg
     fill-for-fill — colors are not reassigned across shapes.
   - Approved surface: mark renders on .nav (translucent --paper-0
     sticky variant via color-mix) and footer (inherits body --paper-0).
     Both resolve to Paper — no gradients, photographs, or busy
     backgrounds sit under it.
   - No applied rotation: neither .brand-mark nor its child svg carries
     a transform. The 45° rotation on the purple tile is intrinsic to
     the canonical construction inside the SVG, not an applied tweak.
   - Wordmark not capitalized or substituted: .brand-name uses
     var(--ff-ui) = Public Sans 700, the design-system runtime typeface
     that supersedes the original Sora lowercase wordmark per the
     brand-handoff "Superseded" callout in the Typography section.
   - Weighted-mark variant deliberately not used: the static landing
     ships canonical-only. The weighted variant is reserved for future
     expressive marketing surfaces; introducing it on this landing
     requires an explicit design review, not an opportunistic swap. */
.brand-mark { display: block; width: 36px; height: 36px; flex-shrink: 0; }
.brand-mark svg { display: block; width: 100%; height: 100%; }
.brand-name {
  font-family: var(--ff-ui);
  font-size: 22px;
  font-weight: 700;
  color: var(--ink-0);
  letter-spacing: -0.02em;
}
.nav-links {
  display: flex; gap: var(--space-s1);
  margin-left: auto;
  align-items: center;
}
.nav-link {
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  color: var(--ink-1);
  transition: 0.15s;
}
.nav-link:hover { color: var(--ink-0); background: var(--paper-1); }
/* Nav Sign In — violet pill matching the Flutter MarketingNavigationBar's
   primaryIndigo button. Brand-color background, white text. */
.nav-cta {
  display: inline-flex; align-items: center; gap: var(--space-s2);
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  background: var(--violet);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  transition: 0.15s;
}
.nav-cta:hover { background: var(--violet-deep); }
/* Language switcher — pure CSS dropdown via <details>/<summary>.
   No JS so it loads instantly and renders before crawler timeout. */
.nav-lang {
  position: relative;
  padding-left: 14px;
  border-left: 1px solid var(--paper-3);
}
.nav-lang summary {
  list-style: none;
  cursor: pointer;
  display: flex; align-items: center; gap: var(--space-s1);
  font-family: var(--ff-num);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-0);
  font-weight: 500;
}
.nav-lang summary::-webkit-details-marker { display: none; }
.nav-lang summary::after {
  content: "▾";
  font-size: 9px;
  color: var(--ink-2);
  transition: transform 150ms ease;
}
.nav-lang[open] summary::after { transform: rotate(180deg); }
.nav-lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 160px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--paper-1);
  border: 1px solid var(--paper-3);
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  font-family: var(--ff-ui);
  font-size: 13px;
  z-index: 10;
}
.nav-lang-menu li { margin: 0; }
.nav-lang-menu a {
  display: block;
  padding: var(--space-s2) var(--space-s3);
  border-radius: 6px;
  color: var(--ink-0);
  text-decoration: none;
}
.nav-lang-menu a:hover { background: var(--paper-2); }
.nav-lang-menu a[aria-current="true"] {
  background: var(--paper-2);
  font-weight: 500;
}
/* ---------- Mobile / tablet menu ----------
   The four nav links + the language switcher + the Sign In CTA collapse into a
   CSS-only <details> "hamburger". No JS, so it works on the script-free blog
   pages too, reusing the disclosure pattern already trusted for .nav-lang.

   The hamburger is the DEFAULT at every width. Showing the links inline on
   desktop is a progressive enhancement (the @supports block below). Why the
   enhancement is gated rather than the default: flattening the bar to inline
   links relies on ::details-content — the pseudo that wraps a <details>'
   non-summary content — to reveal a *closed* <details>'s content. Browsers
   without that pseudo (Chrome <131 / Safari <18.4 / Firefox <139) keep the
   hamburger at all widths, so the links are never stranded. */
.nav-menu { display: block; position: relative; }
.nav-menu-panel { display: none; }              /* revealed only when [open] */

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  color: var(--ink-0);
  cursor: pointer;
  list-style: none;
}
.nav-toggle::-webkit-details-marker { display: none; }
.nav-toggle:hover { background: var(--paper-1); }
.nav-toggle:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; }

/* Three-bar icon drawn in CSS; morphs to an X when the menu is open. */
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  content: ""; display: block;
  width: 20px; height: 2px; border-radius: 2px;
  background: var(--ink-0);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before { position: absolute; top: -6px; }
.nav-toggle-bars::after  { position: absolute; top:  6px; }
.nav-menu[open] .nav-toggle-bars { background: transparent; }
.nav-menu[open] .nav-toggle-bars::before { top: 0; transform: rotate(45deg); }
.nav-menu[open] .nav-toggle-bars::after  { top: 0; transform: rotate(-45deg); }

/* The dropdown panel and its item styling apply only while the menu is open.
   Scoping them under [open] keeps them off the desktop inline layout (where the
   <details> is closed), so the desktop enhancement needs no resets. The explicit
   display:none / [open] display:flex pair is what drives the collapse; the
   native closed-<details> hiding merely reinforces it. */
.nav-menu[open] .nav-menu-panel {
  display: flex; flex-direction: column; align-items: stretch;
  position: absolute; top: calc(100% + 12px); right: 0;
  min-width: 220px;
  padding: var(--space-s2);
  background: var(--paper-1);
  border: 1px solid var(--paper-3);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 30;
}
.nav-menu[open] .nav-menu-panel .nav-link {
  display: block;
  padding: 10px var(--space-s3);
  font-size: 15px;
  color: var(--ink-0);
}
/* Sign In is the panel's footer action: full-width pill. */
.nav-menu[open] .nav-menu-panel .nav-cta {
  justify-content: center;
  margin-top: var(--space-s2);
  padding-top: 12px;
  padding-bottom: 12px;
}
/* Language switcher sits at the foot of the panel as an in-flow sub-list
   rather than its own floating popover. */
.nav-menu[open] .nav-menu-panel .nav-lang {
  padding: 10px var(--space-s3) 0;
  margin-top: var(--space-s1);
  border-left: 0;
  border-top: 1px solid var(--paper-3);
}
.nav-menu[open] .nav-menu-panel .nav-lang-menu {
  position: static;
  margin-top: var(--space-s2);
  min-width: 0;
  border: 0;
  box-shadow: none;
  padding: 0;
}

/* Desktop enhancement: flatten the <details> so the links sit inline in the
   bar exactly as before. .nav-menu / .nav-menu-panel / the ::details-content
   pseudo all become display:contents, promoting the links to flex items of
   .nav-links, and the hamburger <summary> is hidden. Gated on the pseudo's
   support so older engines fall back to the hamburger above. */
@supports selector(::details-content) {
  @media (min-width: 861px) {
    .nav-menu, .nav-menu-panel, .nav-menu::details-content { display: contents; }
    .nav-toggle { display: none; }
  }
}

/* ---------- Buttons ---------- */
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  background: var(--ink-0);
  color: var(--paper-0);
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 500;
  transition: 0.15s;
}
.btn-primary:hover { background: oklch(0.32 0.015 60); transform: translateY(-1px); }
.btn-primary .arrow {
  display: inline-block;
  font-family: var(--ff-display);
  font-size: 18px;
  transition: transform 0.2s;
}
.btn-primary:hover .arrow { transform: translateX(3px); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 20px;
  color: var(--ink-0);
  font-size: 15px;
  transition: 0.15s;
}
.btn-ghost:hover { color: var(--ink-0); }
.btn-ghost .play {
  width: 26px; height: 26px; border-radius: 50%;
  border: 1px solid var(--ink-0);
  display: grid; place-items: center;
  font-size: 10px;
  transition: 0.15s;
}
.btn-ghost:hover .play { background: var(--ink-0); color: var(--paper-0); }

/* Generic pulsing dot used by "LIVE" indicators (.mo-orbit .live-dot on the
   landing's hero mosaic; reusable on future pages with the same idiom). */
@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 oklch(0.58 0.14 150 / 0.6); }
  50% { opacity: 0.7; box-shadow: 0 0 0 6px oklch(0.58 0.14 150 / 0); }
}

/* ---------- The Composer (account-cards → unified-dashboard) ---------- */
/* Four "source" account cards float at the corners. On an 8s loop, they
   converge to center and dissolve as a single "unified" Mozaic card
   fades in showing the aggregated multi-currency net worth, holds for
   ~3s, then reverses. Pure CSS — one shared @keyframe per layer; per-card
   CSS vars carry the convergence vector so a single keyframe drives all
   four cards. */
.composer {
  position: relative;
  width: 100%;
  max-width: 680px;
  aspect-ratio: 4 / 3;
  margin: var(--space-s9) auto var(--space-s7);
}
.composer-card {
  position: absolute;
  background: var(--paper-1);
  border: 1px solid var(--paper-3);
  border-radius: 14px;
  padding: 14px 18px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.04);
  will-change: transform, opacity;
}
/* Source cards (4 corners) */
.composer-card-source {
  min-width: 184px;
  display: flex; flex-direction: column; gap: var(--space-s1);
  z-index: 2;
  animation: composer-source 8s ease-in-out infinite;
}
.composer-card-source.s1 { top: 6%;  left: 6%;  --tx: 180px;  --ty: 160px;  }
.composer-card-source.s2 { top: 8%;  right: 6%; --tx: -190px; --ty: 150px;  }
.composer-card-source.s3 { bottom: 8%; left: 8%;  --tx: 175px;  --ty: -155px; }
.composer-card-source.s4 { bottom: 6%; right: 8%; --tx: -180px; --ty: -160px; }
.cc-meta {
  display: flex; align-items: center; gap: 7px;
  font-family: var(--ff-num);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.cc-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--ink-2);
  flex: none;
}
/* Official institution logo (from Plaid /institutions/search) — small
   favicon-sized mark in the cc-meta row, replacing the colored dot for
   institutions whose logos we have. Fallback to .cc-dot is left intact
   for institutions Plaid doesn't return a logo for. */
.cc-logo {
  width: 18px; height: 18px;
  border-radius: var(--radius-xs);
  object-fit: contain;
  background: var(--paper-0);
  flex: none;
}
.cc-amount {
  font-family: var(--ff-num);
  font-size: 19px;
  color: var(--ink-0);
  font-feature-settings: "tnum";
  letter-spacing: -0.02em;
}
.cc-label {
  font-family: var(--ff-num);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* Unified card (center) */
.composer-card-unified {
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0.88);
  opacity: 0;
  padding: 22px 26px 18px;
  min-width: 296px;
  border-color: var(--paper-3);
  box-shadow: 0 16px 40px rgba(0,0,0,0.08);
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto auto;
  gap: var(--space-s1) var(--space-s4);
  animation: composer-unified 8s ease-in-out infinite;
}
.cu-eye {
  grid-column: 1 / -1;
  font-family: var(--ff-num);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.cu-amount {
  grid-column: 1 / 2;
  font-family: var(--ff-num);
  font-size: 30px;
  color: var(--ink-0);
  font-feature-settings: "tnum";
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.cu-spark {
  grid-column: 2 / 3;
  grid-row: 2 / 3;
  width: 96px; height: 28px;
  align-self: end;
  overflow: visible;
}
.cu-spark path {
  stroke-dasharray: 220;
  stroke-dashoffset: 220;
  animation: composer-spark 8s ease-in-out infinite;
}
.cu-meta {
  grid-column: 1 / -1;
  display: flex; align-items: center; gap: var(--space-s2);
  margin-top: var(--space-s2);
  padding-top: var(--space-s2);
  border-top: 1px solid var(--paper-3);
  font-family: var(--ff-num);
  font-size: 10.5px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--ink-2);
}
/* Composer mark is 20px (above brand-handoff §05 16px favicon min).
   gap encodes §05 clearspace on the inline axis: 20 × 56/128 = 8.75,
   snapped to 8px on the design_system 4-based spacing scale. */
.cu-meta .cu-brand {
  display: inline-flex; align-items: center; gap: var(--space-s2);
  color: var(--ink-1);
}
.cu-meta .cu-brand svg { display: block; }
.cu-meta .sep { color: var(--paper-3); margin: 0 var(--space-s1); }

/* Animations */
@keyframes composer-source {
  /* Visible at start corners */
  0%, 32% {
    transform: translate(0, 0) scale(1);
    opacity: 1;
  }
  /* Converge to center and dissolve */
  52% {
    transform: translate(var(--tx, 0), var(--ty, 0)) scale(0.32);
    opacity: 0;
  }
  /* Snap-reset position while invisible (no visible jump) */
  52.01%, 88% {
    transform: translate(0, 0) scale(1);
    opacity: 0;
  }
  /* Fade back in to original corner */
  100% {
    transform: translate(0, 0) scale(1);
    opacity: 1;
  }
}
@keyframes composer-unified {
  0%, 38% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.88);
  }
  50%, 80% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  92%, 100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.92);
  }
}
@keyframes composer-spark {
  0%, 42% { stroke-dashoffset: 220; }
  62%, 80% { stroke-dashoffset: 0; }
  92%, 100% { stroke-dashoffset: 220; }
}
/* Caption below */
.composer-caption {
  text-align: center;
  margin-top: -10px;
  font-family: var(--ff-num);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.composer-caption .num {
  color: var(--ink-1);
  font-weight: 500;
  letter-spacing: 0;
}

@media (max-width: 720px) {
  .composer { max-width: 100%; margin: 36px auto 24px; aspect-ratio: 5 / 4; }
  .composer-card-source { min-width: 142px; padding: 10px 12px; }
  .composer-card-source.s1 { --tx: 100px;  --ty: 110px;  }
  .composer-card-source.s2 { --tx: -110px; --ty: 100px;  }
  .composer-card-source.s3 { --tx: 105px;  --ty: -100px; }
  .composer-card-source.s4 { --tx: -100px; --ty: -110px; }
  .cc-amount { font-size: 15px; }
  .composer-card-unified { min-width: 232px; padding: 16px 18px 14px; }
  .cu-amount { font-size: 24px; }
  .cu-spark { width: 72px; height: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  /* Skip the loop: show the unified card as a static end-state */
  .composer-card-source { animation: none; opacity: 0; }
  .composer-card-unified { animation: none; opacity: 1; transform: translate(-50%, -50%) scale(1); }
  .cu-spark path { animation: none; stroke-dashoffset: 0; }
}

/* ---------- Sections ---------- */
section { position: relative; z-index: 1; }
.section {
  padding: 120px 0;
  position: relative;
}
.section-head {
  display: flex; flex-direction: column; gap: 14px;
  margin-bottom: var(--space-s9);
  max-width: 680px;
}
.section-head.centered {
  margin-left: auto; margin-right: auto; text-align: center; align-items: center;
}
.section-kicker {
  font-family: var(--ff-num);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.section-kicker::before {
  content: "§ ";
  color: var(--ink-3);
}
.section-title {
  font-family: var(--ff-display);
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 400;
  margin: 0;
}
.section-title em {
  font-style: italic;
  color: var(--ink-1);
}
.section-sub {
  font-size: 18px;
  color: var(--ink-1);
  max-width: 580px;
  margin-top: var(--space-s1);
}

/* ---------- Trust strip (institutions list under FAQ title) ---------- */
.trust-strip { margin: 24px auto 48px; max-width: 720px; }
.trust-group { margin-bottom: 22px; text-align: center; }
.trust-group:last-child { margin-bottom: 0; }
.trust-group-eyebrow {
  font-family: var(--ff-num);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: var(--space-s3);
}
.trust-chips {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 10px;
}
.trust-chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 12px 5px 8px;
  background: var(--paper-1);
  border: 1px solid var(--paper-3);
  border-radius: var(--radius-pill);
  font-family: var(--ff-ui);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-1);
  white-space: nowrap;
}
.trust-chip-logo {
  width: 14px; height: 14px;
  border-radius: 3px;
  object-fit: contain;
  flex: none;
}

/* ---------- FAQ ---------- */
.faq-list {
  display: flex; flex-direction: column;
  border-top: 1px solid var(--paper-3);
}
.faq-item {
  border-bottom: 1px solid var(--paper-3);
}
.faq-q {
  width: 100%; text-align: left;
  padding: var(--space-s6) 0;
  display: grid; grid-template-columns: 40px 1fr auto; gap: 18px; align-items: center;
  font-family: var(--ff-display);
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--ink-0);
}
.faq-q .num { color: var(--ink-3); font-family: var(--ff-num); font-size: 12px; letter-spacing: 0.1em; }
.faq-q .plus {
  font-family: var(--ff-display);
  font-size: 28px;
  color: var(--ink-3);
  transition: 0.2s;
}
.faq-item.open .faq-q .plus { transform: rotate(45deg); color: var(--ink-0); }
.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a > div {
  overflow: hidden;
  padding-left: 58px; padding-right: var(--space-s8);
  color: var(--ink-1);
  font-size: 15px;
  max-width: 720px;
}
.faq-item.open .faq-a > div { padding-bottom: var(--space-s6); }

/* ---------- Founder note (homepage social-proof) ----------
   Pull-quote from the founder, with photo, name and city. Sits between
   HOW and FAQ as the human anchor before users decide on price. */
.founder-note {
  display: grid;
  grid-template-columns: 132px 1fr;
  grid-template-areas:
    "photo quote"
    "photo caption";
  column-gap: var(--space-s8);
  row-gap: var(--space-s4);
  align-items: start;
  max-width: 820px;
  margin: 0 auto;
  padding: var(--space-s8);
  border: 1px solid var(--paper-2);
  border-radius: var(--radius-2xl);
  background: var(--paper-1);
}
.founder-note-photo {
  grid-area: photo;
  align-self: center;
  width: 132px;
  height: 132px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 25%;
  display: block;
}
.founder-note-quote {
  grid-area: quote;
  align-self: end;
  margin: 0;
  padding: 0;
  border: 0;
}
.founder-note-quote p {
  font-family: var(--ff-display);
  font-size: clamp(20px, 2.2vw, 24px);
  line-height: 1.4;
  letter-spacing: -0.005em;
  color: var(--ink-0);
  margin: 0;
  font-style: italic;
}
.founder-note-attribution {
  grid-area: caption;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.founder-note-name {
  font-weight: 600;
  color: var(--ink-0);
  font-size: 15px;
}
.founder-note-meta {
  font-size: 14px;
  color: var(--ink-2);
}
.founder-note-link {
  display: inline-block;
  margin-top: var(--space-s2);
  font-size: 14px;
  color: var(--ink-1);
  text-decoration: underline;
  text-decoration-color: var(--paper-3);
  text-underline-offset: 3px;
}
.founder-note-link:hover { color: var(--violet-deep); }
@media (max-width: 720px) {
  .founder-note {
    grid-template-columns: 1fr;
    grid-template-areas:
      "photo"
      "quote"
      "caption";
    text-align: center;
    padding: var(--space-s7);
  }
  .founder-note-photo { margin: 0 auto; }
  .founder-note-quote { align-self: auto; }
  .founder-note-attribution { align-items: center; }
}

/* ---------- CTA ---------- */
.cta {
  padding: 120px 0;
  text-align: center;
}
.cta-card {
  background: var(--paper-1);
  border: 1px solid var(--paper-3);
  border-radius: var(--radius-2xl);
  padding: 80px 40px;
  position: relative;
  overflow: hidden;
}
.cta-card::before {
  content: "";
  position: absolute; left: 50%; top: -40%; transform: translateX(-50%);
  width: 700px; height: 700px;
  background: radial-gradient(circle at center, oklch(0.78 0.12 80 / 0.15), transparent 60%);
  pointer-events: none;
}
.cta h2 {
  font-family: var(--ff-display);
  font-size: clamp(44px, 6vw, 76px);
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-s4);
  font-weight: 400;
  position: relative;
}
.cta h2 em { font-style: italic; color: var(--ink-1); }
.cta p {
  margin: 0 auto 36px;
  font-size: 18px;
  color: var(--ink-1);
  max-width: 520px;
}
.cta .hero-cta { justify-content: center; }
.cta-foot {
  margin-top: var(--space-s6);
  font-family: var(--ff-num); font-size: 11px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-3);
  display: flex; justify-content: center; gap: 18px;
  flex-wrap: wrap;
}
.cta-foot span::before {
  content: "·"; margin-right: 18px; color: var(--paper-3);
}
.cta-foot span:first-child::before { display: none; }

/* ---------- Mid-page CTA band ---------- */
.mid-cta {
  padding: var(--space-s9) 0;
  text-align: center;
}
.mid-cta-lede {
  font-family: var(--ff-display);
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink-1);
  margin: 0 0 var(--space-s5);
  font-style: italic;
  font-weight: 400;
}
.mid-cta .hero-cta { justify-content: center; }

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--paper-3);
  padding: 48px 0 56px;
  position: relative; z-index: 1;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr 1fr 1fr;
  gap: var(--space-s7);
}
@media (max-width: 880px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
/* min-width:0 lets the 2-column footer grid shrink its tracks on narrow phones
   so a long link (the contact email) can't force the column past the viewport. */
.foot-col { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.foot-col h4 {
  font-family: var(--ff-num);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin: 0 0 var(--space-s1);
  font-weight: 500;
}
.foot-col a { color: var(--ink-1); font-size: 14px; transition: 0.15s; overflow-wrap: anywhere; }
.foot-col a:hover { color: var(--ink-0); }
.foot-brand { gap: 14px; }
.foot-brand p {
  font-family: var(--ff-display); font-style: italic;
  font-size: 18px; color: var(--ink-2);
  max-width: 320px; margin: 0;
}
.foot-legal {
  margin-top: var(--space-s9);
  padding-top: var(--space-s6);
  border-top: 1px solid var(--paper-3);
  display: flex; justify-content: space-between;
  font-family: var(--ff-num); font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.04em;
  flex-wrap: wrap; gap: var(--space-s3);
}

/* ---------- Security page (/security and locale variants) ----------
   Shared layout for the static security pages (#3173). The four locale
   files use the same hero band, commitment cards, FAQ band, and pricing
   nudge — extracted here so a copy or token change lands in one place.
   zh.html overrides the line-height/letter-spacing of these blocks
   inline for CJK rhythm (Latin defaults read too tight at Chinese glyph
   density). */
.sec-hero {
  position: relative;
  padding: 88px 0 56px;
  background:
    radial-gradient(circle at 18% 28%, color-mix(in oklab, var(--violet) 14%, transparent), transparent 55%),
    radial-gradient(circle at 82% 14%, color-mix(in oklab, var(--teal) 12%, transparent), transparent 50%);
  z-index: 1;
}
.sec-hero .container { max-width: 880px; }
.sec-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px 6px 10px;
  background: var(--paper-1);
  border: 1px solid var(--paper-3);
  border-radius: var(--radius-pill);
  font-family: var(--ff-num);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-2);
  margin-bottom: var(--space-s5);
}
.sec-eyebrow svg { width: 14px; height: 14px; }
.sec-hero h1 {
  font-family: var(--ff-display);
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  font-weight: 400;
  margin: 0 0 var(--space-s5);
}
.sec-hero h1 em { font-style: italic; color: var(--violet-deep); }
.sec-hero .lede {
  font-size: 19px;
  color: var(--ink-1);
  line-height: 1.55;
  max-width: 680px;
  margin: 0;
}
.sec-hero .meta {
  margin-top: 28px;
  font-family: var(--ff-num);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.sec-body { padding: 32px 0 80px; }
.sec-body .container { max-width: 880px; }
.sec-card {
  padding: 32px 36px;
  background: var(--paper-1);
  border: 1px solid var(--paper-3);
  border-radius: 18px;
  margin-bottom: var(--space-s5);
  position: relative;
}
.sec-card-num {
  display: inline-block;
  font-family: var(--ff-num);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: var(--space-s3);
}
.sec-card h2 {
  font-family: var(--ff-display);
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0 0 var(--space-s4);
  font-weight: 500;
  color: var(--ink-0);
}
.sec-card p {
  font-size: 16px;
  color: var(--ink-1);
  line-height: 1.65;
  margin: 0 0 14px;
}
.sec-card p:last-child { margin-bottom: 0; }
.sec-card strong { color: var(--ink-0); font-weight: 600; }
.sec-card a {
  color: var(--violet-deep);
  border-bottom: 1px solid color-mix(in oklab, var(--violet) 40%, transparent);
  transition: 0.15s;
}
.sec-card a:hover { border-bottom-color: var(--violet); }
@media (max-width: 720px) {
  .sec-card { padding: 24px 22px; }
  .sec-card h2 { font-size: 24px; }
}
.sec-faq { padding: 24px 0 96px; }
.sec-faq .container { max-width: 880px; }
.sec-faq h2 {
  font-family: var(--ff-display);
  font-size: clamp(32px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 400;
  margin: 0 0 var(--space-s2);
}
.sec-faq h2 em { font-style: italic; color: var(--violet-deep); }
.sec-faq .lede {
  font-size: 16px;
  color: var(--ink-2);
  margin: 0 0 var(--space-s7);
}
.sec-pricing-nudge {
  text-align: center;
  padding: var(--space-s9) 0 var(--space-s4);
}
.sec-pricing-nudge p {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 22px;
  color: var(--ink-1);
  margin: 0 0 18px;
}
.sec-pricing-nudge a {
  display: inline-flex; align-items: center; gap: var(--space-s2);
  padding: 12px 22px;
  background: var(--ink-0);
  color: var(--paper-0);
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 500;
  transition: 0.15s;
}
.sec-pricing-nudge a:hover {
  background: oklch(0.32 0.015 60);
  transform: translateY(-1px);
}
.sec-pricing-nudge a .arrow {
  font-family: var(--ff-display);
  font-size: 16px;
  transition: transform 0.2s;
}
.sec-pricing-nudge a:hover .arrow { transform: translateX(3px); }

/* ---------- Per-institution pages (/banks/<slug>/ and /fr/banques/<slug>/)
   — programmatic SEO surface (#3167, programmatic-SEO banks cluster). The
   first PR ships the Big Six (RBC, TD, Scotiabank, BMO, CIBC, National
   Bank) × EN+FR; later PRs ship digital banks, smaller banks, and brokers
   under /brokers/<slug>/ + /fr/courtiers/<slug>/. These styles are reused
   verbatim for each later batch, so the selectors stay institution-agnostic.
   Sits on top of .sec-hero + .sec-card + .sec-faq from the security cluster;
   only the institution-specific bits (the hero logo plate, the small mock
   account preview) live here. Per-institution accent color is passed via
   the --bank-accent custom property on the page root so each page sets one
   color and the chrome inherits. */
.bank-hero-plate {
  display: inline-flex;
  align-items: center;
  gap: var(--space-s4);
  margin-bottom: var(--space-s6);
}
.bank-hero-plate .bank-mark {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: var(--paper-1);
  border: 1px solid var(--paper-3);
  display: grid; place-items: center;
  overflow: hidden;
  flex-shrink: 0;
}
.bank-hero-plate .bank-mark img {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
}
.bank-hero-plate .bank-mark-letter {
  font-family: var(--ff-display);
  font-size: 26px;
  font-weight: 500;
  color: var(--paper-0);
  background: var(--bank-accent, var(--ink-1));
  width: 100%; height: 100%;
  display: grid; place-items: center;
}
.bank-hero-plate .bank-via {
  font-family: var(--ff-num);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.bank-hero-plate .bank-via b {
  display: block;
  font-family: var(--ff-display);
  font-size: 20px;
  font-weight: 500;
  text-transform: none;
  letter-spacing: -0.005em;
  color: var(--ink-0);
  margin-top: 2px;
}

/* Mini account preview — a 3-row mock dashboard slice that puts the
   institution alongside two adjacent accounts. Lives inside a .sec-card so
   layout/spacing inherit. The institution row uses var(--bank-accent) for
   the dot; the other two are fixed earth-tone accents that read as
   "other accounts" without naming a real competitor. */
.acct-stack {
  display: flex; flex-direction: column;
  gap: var(--space-s2);
  margin-top: var(--space-s1);
}
.acct-chip {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center; gap: 14px;
  padding: 12px 14px;
  background: var(--paper-0);
  border: 1px solid var(--paper-3);
  border-radius: var(--radius-md);
}
.acct-chip .acct-dot {
  width: 32px; height: 32px;
  border-radius: var(--radius-sm);
  display: grid; place-items: center;
  font-family: var(--ff-display);
  font-size: 14px;
  color: var(--paper-0);
  background: var(--ink-1);
}
.acct-chip.is-bank .acct-dot { background: var(--bank-accent, var(--ink-1)); }
.acct-chip.is-other-1 .acct-dot { background: oklch(0.46 0.13 250); }
.acct-chip.is-other-2 .acct-dot { background: oklch(0.55 0.14 60); }
.acct-chip .acct-name {
  display: flex; flex-direction: column;
  line-height: 1.25;
  min-width: 0;          /* let the name truncate instead of widening the chip */
}
.acct-chip .acct-name b {
  font-size: 14px; font-weight: 500; color: var(--ink-0);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.acct-chip .acct-name span {
  font-family: var(--ff-num);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.acct-chip .acct-bal {
  font-family: var(--ff-num);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  color: var(--ink-0);
}
.acct-chip .acct-bal.neg { color: oklch(0.45 0.18 25); }

/* Internal-links band — a small row of pill links at the bottom of each
   per-institution page that nudges back into the rest of the cluster
   (/pricing, /security, blog). Keeps every page in the cluster from being
   a SEO dead-end. */
.bank-links {
  display: flex; flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: var(--space-s6);
}
.bank-links a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: var(--space-s2) var(--space-s4);
  background: var(--paper-1);
  border: 1px solid var(--paper-3);
  border-radius: var(--radius-pill);
  font-size: 13px;
  color: var(--ink-1);
  transition: 0.15s;
}
.bank-links a:hover {
  background: var(--paper-2);
  color: var(--ink-0);
  transform: translateY(-1px);
}

/* ---------- Blog (/blog/, /blog/<slug>/) — generated by scripts/build_blog.py.
   The hero band, article body, and index card list all sit inside the same
   nav + footer envelope as the rest of the marketing site. Article body
   typography (.prose) is the one place shared.css owns long-form rhythm —
   every other static page hand-rolls its own h1/h2/p styles inline. */
.blog-hero {
  position: relative;
  padding: var(--space-s10) 0 var(--space-s8);
  background:
    radial-gradient(circle at 18% 28%, color-mix(in oklab, var(--amber) 12%, transparent), transparent 55%),
    radial-gradient(circle at 82% 14%, color-mix(in oklab, var(--violet) 10%, transparent), transparent 50%);
  z-index: 1;
}
.blog-hero .container { max-width: 760px; }
.blog-back {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--ff-num);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 28px;
  transition: 0.15s;
}
.blog-back:hover { color: var(--ink-0); }
.blog-eyebrow {
  display: inline-block;
  font-family: var(--ff-num);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: var(--space-s4);
}
.blog-hero h1 {
  font-family: var(--ff-display);
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-weight: 400;
  margin: 0 0 18px;
  color: var(--ink-0);
}
.blog-lede {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 20px;
  line-height: 1.5;
  color: var(--ink-1);
  margin: 0 0 var(--space-s6);
  max-width: 640px;
}
.blog-meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--ff-num);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.blog-meta-dot { opacity: 0.7; }
.blog-meta-read-time { color: var(--ink-2); }

.blog-body { padding: 24px 0 96px; }
.blog-body .container { max-width: 760px; }

/* Hero image sits between the title block and article body. Container caps
   at the same 760px as the body so the figure aligns with the prose
   measure; 16/9 aspect frames most editorial photography without
   committing to a fixed pixel height. Rendered only when the post's
   frontmatter sets `hero_image`. */
.blog-hero-image { margin: var(--space-s2) 0 var(--space-s6); }
.blog-hero-image .container { max-width: 760px; }
.blog-hero-image img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 14px;
  background: var(--paper-2);
}

/* Reading-progress hairline. Fixed at the top of the viewport on every
   article page; driven by CSS scroll-timeline (no JS) — the bar's scaleX
   tracks page scroll. Falls back gracefully on browsers without scroll-
   driven animation support: a 0-width bar that simply never appears, which
   is preferable to a misleading static bar.
   The reading-progress markup is only injected by render_article_html, so
   it never shows on the blog index. */
.reading-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 1000;
  pointer-events: none;
  background: color-mix(in oklab, var(--paper-3) 60%, transparent);
}
.reading-progress-bar {
  height: 100%;
  width: 100%;
  transform-origin: 0 50%;
  transform: scaleX(0);
  background: linear-gradient(
    90deg,
    var(--violet) 0%,
    var(--amber) 60%,
    var(--coral) 100%
  );
}
@supports (animation-timeline: scroll()) {
  .reading-progress-bar {
    animation: reading-progress linear forwards;
    animation-timeline: scroll(root);
  }
  @keyframes reading-progress {
    from { transform: scaleX(0); }
    to   { transform: scaleX(1); }
  }
}

/* Smooth anchor jumps + a generous scroll-padding so the reading-progress
   bar and any future sticky elements don't crash into the destination. */
html.theme-paper-smooth { scroll-behavior: smooth; scroll-padding-top: var(--space-s7); }

/* Article-body typography. Scoped under .prose so it never leaks into
   marketing-page <article> tags (e.g. the .sec-card blocks on the security
   page also use <article> for semantic reasons but want their own type ramp).
   The literary-print look layers four moves on top of the base ramp: a
   drop cap on the first paragraph, a refined first-paragraph size, hairline
   section markers above each h2, and a brand-mosaic end mark after the
   article body (.prose-end). */
.prose {
  color: var(--ink-1);
  font-size: 17px;
  line-height: 1.72;
  /* Optical kerning + ligatures for serif body text; both are off by
     default in most browsers despite the loaded font supporting them. */
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
.prose p {
  margin: 0 0 22px;
  max-width: 660px;
  /* Hanging punctuation lets quotation marks at line-start sit in the
     gutter so the left edge of the paragraph reads as a straight column.
     Only supported in Safari today; harmless elsewhere. */
  hanging-punctuation: first last;
}

/* Lifted first paragraph — slightly bigger, darker ink, no top margin so
   it sits flush against the hero band. The drop cap on its `::first-letter`
   does the literary heavy-lifting; the body bump is just supporting weight. */
.prose > p:first-child {
  font-size: 19px;
  line-height: 1.6;
  color: var(--ink-0);
  margin-top: var(--space-s1);
}

/* Drop cap. Source Serif 4 is already loaded, so this is just a
   first-letter sizing/float — no extra HTML, no extra request. Constrained
   to `.prose > p:first-child` so an article that opens with a heading or a
   list doesn't accidentally drop-cap the first paragraph it finds further
   down the body. */
.prose > p:first-child::first-letter {
  float: left;
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: 5.2em;
  line-height: 0.86;
  margin: 0.06em 0.12em 0 -0.04em;
  color: var(--ink-0);
  /* Mild optical adjustment — different glyphs benefit from different
     micro-shifts, but a single small left-margin compensates well enough
     for the majority of capital letters without per-letter tuning. */
}

.prose h2 {
  position: relative;
  font-family: var(--ff-display);
  font-size: 30px;
  line-height: 1.18;
  letter-spacing: -0.015em;
  font-weight: 500;
  color: var(--ink-0);
  margin: 56px 0 18px;
  padding-top: 28px;
}
/* Section break: short ink hairline above every h2. Reads as a chapter
   tick mark — calmer than a full-width rule, more present than nothing. */
.prose h2::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 44px;
  height: 1px;
  background: var(--ink-0);
}
.prose h3 {
  font-family: var(--ff-display);
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  font-weight: 500;
  color: var(--ink-0);
  margin: 40px 0 14px;
}
.prose h4 {
  font-family: var(--ff-ui);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink-2);
  margin: var(--space-s7) 0 var(--space-s3);
}
.prose strong { color: var(--ink-0); font-weight: 600; }
.prose em { font-style: italic; }
.prose a {
  color: var(--ink-0);
  border-bottom: 1px solid color-mix(in oklab, var(--violet) 50%, transparent);
  transition: border-color 0.18s ease, color 0.18s ease;
}
.prose a:hover {
  color: var(--violet-deep);
  border-bottom-color: var(--violet);
}
.prose ul, .prose ol {
  margin: 0 0 22px;
  padding-left: 26px;
  max-width: 660px;
}
.prose li {
  margin-bottom: 10px;
  padding-left: var(--space-s1);
}
/* Ordered-list markers in tabular numerals + violet ink: the numbers
   become a calm visual anchor instead of generic browser-default gray. */
.prose ol li::marker {
  font-family: var(--ff-num);
  color: var(--violet-deep);
  font-variant-numeric: tabular-nums;
}
.prose ul li::marker { color: var(--violet); }

/* Pull-quote. No current article uses <blockquote> yet — but when one
   does, it gets the literary treatment: serif italic, generous size, a
   thin violet rule on the left, and breathing room above/below. */
.prose blockquote {
  margin: 36px 0;
  padding: 8px 0 8px 28px;
  border-left: 2px solid color-mix(in oklab, var(--violet) 65%, var(--paper-3));
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 22px;
  line-height: 1.45;
  color: var(--ink-0);
}
.prose blockquote p { margin: 0; max-width: none; }
.prose code {
  font-family: var(--ff-num);
  font-size: 14px;
  padding: 2px 6px;
  background: var(--paper-2);
  border: 1px solid var(--paper-3);
  border-radius: var(--radius-xs);
  color: var(--ink-0);
}
.prose pre {
  margin: 0 0 22px;
  padding: 16px 18px;
  background: var(--paper-2);
  border: 1px solid var(--paper-3);
  border-radius: var(--radius-sm);
  overflow-x: auto;
  font-family: var(--ff-num);
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-0);
}
.prose pre code {
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  font-size: inherit;
}
/* Section dingbat — replaces the default <hr> with three small squares
   echoing the brand mosaic (rect-circle-rect-rect from the brand SVG).
   Pure CSS, no images, no fonts: three gradient stops painted as squares,
   centered with breathing room. */
.prose hr {
  border: 0;
  display: block;
  width: 56px;
  height: 8px;
  margin: var(--space-s9) auto;
  background:
    linear-gradient(var(--ink-3), var(--ink-3)) 0 0 / 8px 8px no-repeat,
    linear-gradient(var(--ink-3), var(--ink-3)) 24px 0 / 8px 8px no-repeat,
    linear-gradient(var(--ink-3), var(--ink-3)) 48px 0 / 8px 8px no-repeat;
  opacity: 0.55;
}

/* End mark — a small brand-mosaic SVG rendered after the article body,
   injected by render_article_html. Acts as the editorial "■" — a soft
   "you've reached the end" cue between the article and the FAQ section. */
.prose-end {
  display: block;
  margin: var(--space-s8) 0 0;
  padding-top: 28px;
  border-top: 1px solid color-mix(in oklab, var(--paper-3) 70%, transparent);
}
.prose-end svg {
  display: block;
  width: 28px;
  height: 28px;
  opacity: 0.85;
}

/* Hero signature line: appears on the index hero only (blog-hero--index).
   The catalogue stat ("3 essays · ~24 min total reading") sets reader
   expectations before they scroll — a small commitment-up-front cue that
   the rest of marketing prose can't deliver. Top hairline ties it visually
   to the lede above instead of floating loose under the paragraph. */
.blog-stat {
  display: inline-flex;
  align-items: center;
  margin: var(--space-s3) 0 0;
  padding-top: 14px;
  border-top: 1px solid color-mix(in oklab, var(--ink-3) 35%, transparent);
  font-family: var(--ff-num);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
}

/* Blog index — card list of all posts in a locale, newest first. The first
   card is treated as a "featured" entry via :first-child (larger title,
   more vertical breathing, no top rule). Every card gets a date + read-time
   meta line, summary, and a hover-animated "Read essay →" affordance.
   Wider than the article body (.blog-body uses 760px) so the index reads
   as a catalogue, not a single-column article. */
.blog-index { padding: 32px 0 96px; }
.blog-index .container { max-width: 820px; }
.blog-card-list {
  display: flex; flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--paper-3);
}
.blog-card {
  display: block;
  position: relative;
  padding: var(--space-s7) 0;
  border-bottom: 1px solid var(--paper-3);
  transition: padding 0.18s ease, background 0.18s ease;
}
.blog-card:hover {
  background: color-mix(in oklab, var(--paper-2) 70%, transparent);
  padding-left: 18px;
  padding-right: 18px;
}

/* Image cards swap the all-text vertical stack for a media-first layout:
   a 16/9 thumbnail above the meta/title/summary block. The wrapper div
   (`.blog-card-body`) groups the text content so a future layout swap
   only has to move two boxes instead of refactoring every child rule.
   Text-only cards omit the figure and skip the `--with-image` modifier,
   so their layout is untouched. */
.blog-card-image {
  margin: 0 0 var(--space-s5);
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--paper-2);
}
.blog-card-image img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.28s ease;
}
.blog-card--with-image:hover .blog-card-image img {
  transform: scale(1.02);
}
.blog-card-body { display: block; }

/* About-page founder portrait. Lives at the top of the "Who" card so the
   photo and bio read as a single unit. 3:2 frames a landscape action shot
   without committing to a fixed pixel height; the caption sits underneath
   in the muted ink-3 colour used elsewhere for meta lines. Capped at 460px
   so it reads as a portrait illustration alongside the bio rather than a
   page-wide hero — the .sec-body container is 880px so an unbounded 100%
   width image would dominate the card. */
.about-portrait {
  margin: 0 0 var(--space-s5);
  padding: 0;
  max-width: 460px;
}
.about-portrait img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius-md);
  background: var(--paper-2);
}
.about-portrait figcaption {
  margin-top: 10px;
  font-family: var(--ff-num);
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: 0.02em;
}
.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--ff-num);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: var(--space-s3);
}
.blog-card-date { display: inline-block; }
.blog-card-dot {
  display: inline-block;
  color: var(--ink-3);
  opacity: 0.7;
}
.blog-card-read-time { display: inline-block; }
.blog-card-title {
  font-family: var(--ff-display);
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: -0.015em;
  font-weight: 400;
  color: var(--ink-0);
  margin: 0 0 10px;
}
.blog-card-summary {
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-1);
  margin: 0 0 var(--space-s4);
  max-width: 660px;
}
.blog-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--ff-ui);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--violet-deep);
}
.blog-card-cta .arrow {
  display: inline-block;
  font-family: var(--ff-display);
  font-size: 16px;
  transition: transform 0.2s ease;
}
.blog-card:hover .blog-card-cta .arrow { transform: translateX(4px); }

/* Featured (most recent) post: bigger display title and more vertical
   breathing room, while keeping the same structural markup so the
   build_blog index tests' `<a class="blog-card" href="...">` pattern
   still matches. Top rule lives on .blog-card-list, so the featured
   card naturally sits flush against it without a redundant hairline. */
.blog-card:first-child {
  padding-top: 44px;
  padding-bottom: 44px;
}
.blog-card:first-child .blog-card-title {
  font-size: clamp(30px, 3.4vw, 38px);
  line-height: 1.12;
  margin-bottom: 14px;
}
.blog-card:first-child .blog-card-summary {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 18px;
  color: var(--ink-1);
  margin-bottom: var(--space-s5);
}

@media (max-width: 720px) {
  .blog-hero { padding: var(--space-s9) 0 var(--space-s7); }
  .blog-body { padding: 16px 0 64px; }
  .prose { font-size: 16px; }
  .prose h2 { font-size: 26px; margin-top: 44px; }
  .prose h3 { font-size: 20px; margin-top: var(--space-s7); }
  .blog-card-title { font-size: 22px; }
  .blog-card:first-child { padding-top: var(--space-s7); padding-bottom: var(--space-s7); }
  .blog-card:first-child .blog-card-summary { font-size: 17px; }
  .blog-card:hover { padding-left: 0; padding-right: 0; }
}

/* ===========================================================================
 * Comparison pages (/vs/<competitor>/) — feature table, verdict cards, CTA.
 * Lifted from the per-page inline <style> blocks once a third /vs/ page
 * landed (Lunch Money + Wealthica + Monarch, EN + FR = 6 consumers).
 * All selectors are `.vs-*` so they only apply inside vs-*.html pages.
 * =========================================================================== */
.vs-table-wrap {
  margin: 28px 0 32px;
  overflow-x: auto;
  border: 1px solid var(--paper-3);
  border-radius: var(--radius-md);
  background: var(--paper-0);
}
.vs-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--ff-ui);
  font-size: 14.5px;
}
.vs-table thead th {
  text-align: left;
  padding: 14px 18px;
  font-family: var(--ff-num);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
  border-bottom: 1px solid var(--paper-3);
  background: var(--paper-1);
}
.vs-table thead th.vs-h-mozaic { color: var(--violet-deep); }
.vs-table tbody td,
.vs-table tbody th {
  padding: 14px 18px;
  border-bottom: 1px solid var(--paper-3);
  vertical-align: top;
  color: var(--ink-1);
}
.vs-table tbody tr:last-child td,
.vs-table tbody tr:last-child th {
  border-bottom: 0;
}
.vs-table tbody th {
  text-align: left;
  font-weight: 500;
  color: var(--ink-0);
  width: 30%;
}
.vs-table .vs-yes { color: var(--in-deep); font-weight: 500; }
.vs-table .vs-no { color: var(--ink-3); }
.vs-table .vs-mixed { color: var(--ink-2); }

.vs-verdict {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-s4);
  margin: var(--space-s6) 0 var(--space-s7);
}
@media (max-width: 720px) {
  .vs-verdict { grid-template-columns: 1fr; }
}
.vs-verdict-card {
  padding: 22px 22px 20px;
  background: var(--paper-0);
  border: 1px solid var(--paper-3);
  border-radius: var(--radius-md);
}
.vs-verdict-card.is-mozaic {
  border-color: color-mix(in oklab, var(--violet) 25%, var(--paper-3));
  background: color-mix(in oklab, var(--violet-soft) 35%, var(--paper-0));
}
.vs-verdict-card h3 {
  font-family: var(--ff-ui);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
  font-weight: 600;
  margin: 0 0 10px;
}
.vs-verdict-card.is-mozaic h3 { color: var(--violet-deep); }
.vs-verdict-card ul {
  margin: 0;
  padding-left: 18px;
  list-style: disc;
}
.vs-verdict-card li {
  margin-bottom: var(--space-s2);
  color: var(--ink-1);
  font-size: 15px;
  line-height: 1.55;
}
.vs-verdict-card li:last-child { margin-bottom: 0; }

.vs-cta {
  margin: 48px 0 16px;
  padding: 32px 28px;
  border: 1px solid var(--paper-3);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--paper-0), var(--paper-1));
  text-align: center;
}
.vs-cta h3 {
  font-family: var(--ff-display);
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink-0);
  margin: 0 0 var(--space-s2);
  font-weight: 500;
}
.vs-cta p {
  margin: 0 0 22px;
  color: var(--ink-2);
  font-size: 15px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}
.vs-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  background: var(--ink-0);
  color: var(--paper-0);
  border-radius: var(--radius-pill);
  font-family: var(--ff-ui);
  font-size: 15px;
  font-weight: 500;
  transition: 0.15s;
}
.vs-cta-btn:hover {
  background: var(--violet-deep);
  transform: translateY(-1px);
}
.vs-cta-btn .arrow { transition: 0.15s; }
.vs-cta-btn:hover .arrow { transform: translateX(3px); }
.vs-cta-foot {
  margin-top: 14px;
  font-family: var(--ff-num);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
