/* ============================================================
   CapEmber — marketing site stylesheet
   ============================================================ */

/* Fonts: Newsreader (display serif, variable wght+opsz) + Inter Tight
   (UI, variable wght — the face the CapEmber apps use), self-hosted from /_fonts/ (files vendored from
   @fontsource-variable — see package.json). Self-hosting drops the
   third-party origin, so the CSP runs with style-src/font-src 'self'.
   The two latin files are preloaded in each page head; latin-ext only
   downloads when a page actually uses those characters. */
@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(/_fonts/newsreader-latin-opsz-normal.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(/_fonts/newsreader-latin-ext-opsz-normal.woff2) format("woff2-variations");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/_fonts/inter-tight-latin-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/_fonts/inter-tight-latin-ext-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

:root {
  /* Signal — the only chromatic colour on the page, and only where you can act. */
  --ember: #b5430a;        /* actions, active states (white on it: 5.6:1) */
  --ember-bright: #c74a0b; /* gradient top; white on it is 4.76:1, so the
                              whole button clears AA, not just its dark end */
  --ember-dark: #8f3406;   /* press */
  --ember-link: #b5430a;   /* text links */
  /* Ink — navy rather than black, so almost no true grey is left. */
  --ink: #0b1f4d;          /* headings + body (15.9:1 on white) */
  --ink-soft: #33456e;
  --muted: #4a6294;        /* captions (6.1:1 on white) */
  /* Ground — white, warmed by a beige wash at the top of each page. */
  --paper: #ffffff;
  --card: #ffffff;
  --beige: #f7f3ec;
  --sky: #eaf1ff;          /* the tint the product shots sit in */
  --sky-2: #d8e6ff;
  --line: #dde6f5;
  --line-soft: #eaf0fa;
  --tint: #eaf1ff;
  --blue: #2563eb;         /* the apps' own blue */
  /* Dark band */
  --dark: #0b1f4d;
  --footer: #071633;
  --on-dark: #e6edfb;
  --on-dark-soft: #a9bbdd;
  --link-dark: #f08a3c;
  /* Outcome text — success/failure messages in the islands and dashboards.
     Tokens rather than literals because the same two colours were hardcoded
     at 27 call sites across the client bundles and the login pages. */
  --ok-fg: #0e8a6d;
  --err-fg: #c0392b;
  /* Scale — three radii (were six) and two shadow levels. */
  --r-sm: 4px; --r-md: 8px; --r-lg: 12px;
  --sh: 0 1px 2px rgba(11,31,77,.06);
  --sh-lg: 0 30px 64px -34px rgba(11,31,77,.42);
}
/* Dark mode is deliberately not shipped this round, but every colour above is
   a token so it stays a contained change. Counterparts when it lands:
   --paper #0b1020, --card #121a2e, --line #22304d, --ink #e8eefb,
   --ink-soft #b3c2df, --muted #8ea2c8, --sky #16233d, --beige #1a1710,
   --dark #060c1a, --footer #040914. Ember is unchanged. */

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body { font-family: "Inter Tight", "Segoe UI", system-ui, sans-serif; color: var(--ink); line-height: 1.6; font-size: 16px;
  /* Beige is a warm wash at the TOP of the page fading into white — never a
     band in the middle of it. */
  background: linear-gradient(180deg, var(--beige) 0%, rgba(247,243,236,.55) 42%, rgba(255,255,255,0) 100%) top/100% 340px no-repeat, var(--paper); }
h1, h2, h3, .logo, .amount, blockquote { font-family: "Newsreader", Georgia, serif; font-weight: 500; letter-spacing: -.015em; }
a { color: var(--ember-link); text-decoration: none; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 40px; }

/* ---------- Header / nav ---------- */
header { position: sticky; top: 0; background: rgba(255,255,255,.72); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(11,31,77,.07); z-index: 10; }
.nav { display: flex; align-items: center; gap: 32px; padding: 18px 0; }
.logo { font-size: 25px; font-weight: 600; color: var(--ink); }
.logo .cap { color: var(--ink); }
.logo span, .logo .ember { color: var(--ember); }
.nav .links { margin-left: auto; display: flex; gap: 26px; align-items: center; flex-wrap: wrap; font-size: 14.5px; font-weight: 500; }
.nav .links a { color: var(--ink-soft); padding: 7px 11px; border-radius: var(--r-md); transition: background .15s ease, color .15s ease; }
.nav .links a:hover { color: var(--ink); background: var(--sky); }
.nav .links a.active { color: var(--ink); font-weight: 600; background: var(--sky); border-bottom: 0; padding-bottom: 7px; }
.nav .links a.login { color: var(--ink); font-weight: 600; }

/* ---------- Buttons ---------- */
.btn { display: inline-block; background: linear-gradient(180deg, var(--ember-bright), var(--ember)); color: #fff; font-weight: 600; padding: 13px 22px; border-radius: var(--r-md); border: 0; font-size: 15px; cursor: pointer; box-shadow: 0 3px 10px rgba(181,67,10,.3); transition: filter .16s ease, transform .16s ease; }
.btn:hover { filter: brightness(.94); transform: translateY(-1px); }
.btn.ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); box-shadow: var(--sh); }
.btn.ghost:hover { background: var(--sky); }
.nav .btn { padding: 10px 20px; font-size: 15px; }
/* .nav .links a (above) outweighs .btn, so restate the button colours for
   the nav trial CTA — otherwise it renders ink-on-ember at 1.3:1. */
.nav .links a.btn, .nav .links a.btn:hover { color: var(--paper); font-weight: 600; }
.btn.inverse { background: var(--on-dark); color: var(--dark); }
.btn.inverse:hover { background: #fff; }

/* ---------- Kickers & headings ---------- */
.kicker { display: block; font-family: "Inter Tight", sans-serif; font-size: 12.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ember); margin-bottom: 20px; }
section h2 { font-size: 36px; line-height: 1.15; margin-bottom: 40px; }

/* ---------- Hero (lead) ----------
   Copy is centred and the product shot gets the full page width beneath it in
   .shots-stage. A side-by-side hero caps the shot at about a third of the
   screen, which is what made the app labels illegible. */
.hero-lead { max-width: 780px; margin: 0 auto; text-align: center; padding: 68px 40px 8px; }
.hero-lead h1 { font-size: 52px; line-height: 1.04; margin-bottom: 20px; }
.hero-lead .lede { font-size: 17.5px; line-height: 1.6; color: var(--ink-soft); max-width: 52ch; margin: 0 auto 26px; }
.hero-lead .cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-lead .note { margin-top: 16px; font-size: 13.5px; color: var(--muted); }

h1 em { color: var(--ember); }

/* ---------- Hero (centered, audience/why/security pages) ---------- */
.hero-center { max-width: 860px; margin: 0 auto; padding: 80px 40px 56px; text-align: center; }
.hero-center h1 { font-size: 52px; line-height: 1.08; margin-bottom: 22px; }
.hero-center .lede { font-size: 18px; line-height: 1.65; color: var(--ink-soft); max-width: 660px; margin: 0 auto 32px; }
.hero-center .cta { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; justify-content: center; }
.hero-center .note { margin-top: 18px; font-size: 13.5px; color: var(--muted); }

/* ---------- App-window chrome (shared by every product shot) ---------- */
.demo-bar { display: flex; align-items: center; gap: 8px; padding: 11px 16px; border-bottom: 1px solid var(--line-soft); background: linear-gradient(90deg, var(--sky), #fff 72%); }
.demo-bar span { width: 8px; height: 8px; border-radius: 50%; background: #c3d4f0; }
.demo-bar em { font-style: normal; font-size: 11.5px; color: var(--muted); margin-left: 6px; }

/* ---------- Hero screenshot carousel (see client/app.ts) ----------
   Slides are stacked in ONE grid cell rather than absolutely positioned, so
   the frame sizes itself to the tallest shot — no magic aspect-ratio to keep
   in sync with the images, and nothing is cropped. The shots have different
   ratios (2.00 / 2.41 / 2.22), so shorter ones leave a little space below;
   the frame is plain white so that reads as window padding rather than a gap,
   since all three apps are light-themed. */
/* The page is cool now, so the screenshot needs no warm mat to mediate it:
   the frame is a hairline and the shot sits in a light-blue stage instead. */
.shots-stage { background: linear-gradient(180deg, #fff 0%, var(--sky) 46%, var(--sky-2) 100%); padding: 40px 0 52px; margin-top: 8px; }
.shots-frame { display: grid; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-lg); overflow: hidden; }
.shot { grid-area: 1 / 1; margin: 0; min-width: 0; align-self: start; opacity: 0; visibility: hidden; transition: opacity .5s ease; }
.shot.is-on { opacity: 1; visibility: visible; }
.shot picture { display: block; }
.shot img { display: block; width: 100%; height: auto; }
/* Product switcher above the shot */
.shots-tabs { display: flex; justify-content: center; margin-bottom: 20px; }
.shots-tabs .tabs { display: inline-flex; gap: 4px; padding: 5px; background: rgba(255,255,255,.8); border: 1px solid var(--line); border-radius: 10px; backdrop-filter: blur(6px); }
.shots-tab { border: 0; background: none; font-family: inherit; font-weight: 600; font-size: 14px; color: var(--muted); padding: 9px 18px; border-radius: 7px; cursor: pointer; transition: background .18s ease, color .18s ease, box-shadow .18s ease; }
.shots-tab:hover { color: var(--ink); }
.shots-tab[aria-current="true"] { background: linear-gradient(180deg, var(--ember-bright), var(--ember)); color: #fff; box-shadow: 0 3px 9px rgba(181,67,10,.28); }
.shots-dots { display: flex; justify-content: center; gap: 5px; margin-top: 16px; }
/* The button is a 24px tap target (WCAG 2.5.8) with the visible dot drawn as
   a 9px pseudo-element, so the control stays small without being fiddly. */
.shots-dot { width: 24px; height: 24px; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; display: grid; place-items: center; }
.shots-dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #b9cdf0; transition: background .2s ease, transform .2s ease; }
.shots-dot:hover::before { background: var(--blue); }
.shots-dot[aria-current="true"]::before { background: var(--ember); transform: scale(1.3); }

/* ---------- Trust strip ---------- */
.trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; margin-top: 0; }
.trust .wrap { display: flex; flex-wrap: wrap; gap: 10px 40px; justify-content: center; align-items: center; padding: 22px 40px; }
.trust span { font-size: 13.5px; font-weight: 600; color: var(--ink-soft); display: flex; align-items: center; gap: 8px; }
.trust span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ember); flex: none; }

/* ---------- Ruled grid (products / features / cards) ---------- */
.rgrid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); }
.rgrid > div { padding: 26px 26px 30px; border-right: 1px solid var(--line); }
.rgrid > div:nth-child(3n) { border-right: 0; padding-right: 0; }
.rgrid > div:nth-child(3n+1) { padding-left: 0; }
.rgrid.rows-2 > div:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
/* Card headings are h2 on pages where they follow the h1 directly (no
   heading-level skip) and h3 under an h2 (the home page) — same look. */
.rgrid h2, .rgrid h3 { font-size: 20px; font-weight: 600; margin-bottom: 8px; letter-spacing: -.01em; line-height: 1.6; }
.rgrid p { font-size: 14.5px; line-height: 1.65; color: var(--ink-soft); }
.rgrid .row-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.rgrid .row-top h3 { font-size: 22px; margin: 0; }
.rgrid .status { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ember); font-family: "Inter Tight", sans-serif; }
.rgrid .more { display: inline-block; margin-top: 18px; font-size: 14px; font-weight: 600; color: var(--ember); }
.section-pad { padding: 72px 0; }
.section-pad-b { padding: 0 0 80px; }

/* ---------- Dark band ---------- */
.band { background: var(--dark); color: var(--on-dark); padding: 72px 0; }
.band .kicker { color: var(--link-dark); }
.band h2 { color: var(--on-dark); }
.band .rgrid { border-top: 0; display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.band .rgrid > div { border: 0; border-top: 1px solid rgba(230,237,251,.22); padding: 20px 0 0; }
.band .rgrid p { color: var(--on-dark-soft); }
.band a.more { color: var(--link-dark); font-weight: 600; font-size: 14.5px; }
.band.cta-band { padding: 56px 0; }
.band.cta-band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.band.cta-band h2 { font-size: 30px; margin-bottom: 8px; }
.band.cta-band .sub { font-size: 14.5px; color: var(--on-dark-soft); }

/* ---------- Pricing ---------- */
.pricing { padding: 76px 0 40px; }
.pricing .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: start; }
.price-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh); padding: 30px; position: relative; }
.price-card.featured { border-color: var(--ember); box-shadow: 0 24px 50px -32px rgba(181,67,10,.5); }
.price-card h3 { font-size: 22px; font-weight: 600; margin-bottom: 2px; }
.price-card .amount { font-size: 34px; margin: 6px 0 2px; }
.price-card .per { color: var(--muted); font-size: 13.5px; margin-bottom: 16px; }
.price-card ul { list-style: none; padding: 0 0 22px; color: var(--ink-soft); font-size: 14.5px; }
.price-card li { padding: 5px 0; border-bottom: 1px solid var(--line-soft); }
.price-card li:last-child { border-bottom: 0; }
.price-card .btn { display: block; text-align: center; width: 100%; }
.price-card .btn + div, .price-card .btn + .btn { margin-top: 10px; }
.popular { position: absolute; top: -11px; left: 26px; background: var(--ember); color: var(--paper); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; border-radius: var(--r-sm); padding: 3px 10px; font-family: "Inter Tight", sans-serif; }

/* ---------- Forms ---------- */
.field { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-md); margin-bottom: 10px; font-family: inherit; font-size: 14.5px; background: var(--card); }
.field:focus { border-color: var(--ember); box-shadow: 0 0 0 3px rgba(181,67,10,.16); outline: none; }
.interest { max-width: 380px; margin: 0 auto; }
.interest-msg { min-height: 18px; margin: 0; font-size: 13px; }
.inline-form { display: flex; gap: 10px; align-items: stretch; max-width: 460px; }
.inline-form .field { flex: 1; margin: 0; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; padding: 56px 40px 72px; }
.faq h2 { font-size: 32px; margin-bottom: 30px; }
.faq details { border-top: 1px solid var(--line); padding: 4px 0; }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-family: "Newsreader", Georgia, serif; font-weight: 600; font-size: 18px; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; color: var(--ember); font-weight: 400; line-height: 1; flex: none; transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-soft); font-size: 15px; line-height: 1.7; padding: 0 0 18px; }

/* ---------- Footer ---------- */
footer { background: var(--footer); padding: 40px 0 46px; color: var(--on-dark-soft); font-size: 14px; text-align: center; }
footer a { color: var(--link-dark); }
footer strong { color: var(--on-dark); font-family: "Newsreader", Georgia, serif; font-size: 17px; font-weight: 600; }
footer strong span { color: var(--link-dark); }
footer .cols { display: flex; gap: 28px; justify-content: center; margin-bottom: 18px; flex-wrap: wrap; }

/* ---------- Prose / resources ---------- */
.prose { max-width: 760px; margin: 0 auto; padding: 8px 40px 72px; }
.prose .kicker { margin-bottom: 16px; }
.prose h1 { font-size: 46px; line-height: 1.1; margin-bottom: 16px; }
.prose .lede { font-size: 18px; line-height: 1.65; color: var(--ink-soft); margin-bottom: 44px; max-width: 620px; }
.prose h2 { font-size: 30px; text-align: left; margin: 36px 0 16px; }
.prose p, .prose li { font-size: 16.5px; color: var(--ink-soft); line-height: 1.75; }
.prose p { margin: 0 0 16px; }
.prose a { color: var(--ember); }
.prose .callout { background: var(--tint); border: 1px solid var(--line); border-left: 3px solid var(--ember); border-radius: var(--r-md); padding: 18px 20px; font-size: 15px; line-height: 1.65; margin: 22px 0; }
.prose .callout p { margin: 0; font-size: 15px; }

.hub { max-width: 860px; margin: 0 auto; padding: 0 40px 64px; }
.hub a.post { display: block; border-top: 1px solid var(--line); padding: 26px 0; color: inherit; transition: background .15s ease; }
.hub a.post:first-child { border-top-color: var(--ink); }
.hub a.post:last-child { border-bottom: 1px solid var(--line); }
.hub a.post:hover { background: var(--tint); }
.hub a.post .tag { display: block; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ember); margin-bottom: 8px; }
.hub a.post h2 { font-size: 24px; font-weight: 600; margin-bottom: 6px; color: var(--ink); line-height: 1.6; }
.hub a.post p { color: var(--ink-soft); font-size: 15px; line-height: 1.65; max-width: 640px; }

/* ---------- Quote / proof (why page) ---------- */
.proof-band { background: var(--dark); color: var(--on-dark); padding: 72px 0; }
.proof-band .wrap { max-width: 860px; text-align: center; }
.proof-band blockquote { font-size: 30px; line-height: 1.35; margin-bottom: 16px; }
.proof-band blockquote em { color: var(--link-dark); }
.proof-band .who { font-size: 14.5px; color: var(--on-dark-soft); margin-bottom: 44px; }
.proof-band .stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; text-align: left; }
.proof-band .stat { border-top: 1px solid rgba(230,237,251,.22); padding-top: 16px; }
.proof-band .stat b { font-family: "Newsreader", Georgia, serif; font-size: 24px; font-weight: 600; color: var(--link-dark); display: block; }
.proof-band .stat span { color: var(--on-dark-soft); font-size: 13.5px; }

/* ---------- Toast (used by _app.js) ---------- */
.toast { position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 12px); background: var(--dark); color: #fff; padding: 12px 20px; border-radius: var(--r-md); font-size: 14px; opacity: 0; pointer-events: none; transition: .25s; z-index: 50; max-width: 90vw; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.ok { background: var(--ok-fg); }

/* ---------- Scroll reveal (see initReveal in client/app.ts) ----------
   Opacity and transform only, so nothing reflows and CLS stays zero. The
   observer adds .is-in; without JS the element simply stays visible. */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Skip link ---------- */
.skip { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--ember); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0; font-weight: 600; }
.skip:focus { left: 0; }

/* ---------- Focus states ---------- */
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--ember); outline-offset: 2px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .rgrid, .pricing .grid, .band .rgrid, .proof-band .stats { grid-template-columns: 1fr; }
  .rgrid > div { border-right: 0 !important; padding-left: 0 !important; padding-right: 0 !important; border-bottom: 1px solid var(--line); }
  .rgrid > div:last-child { border-bottom: 0; }
  .hero-center h1 { font-size: 38px; }
  .wrap { padding: 0 24px; }
  .nav { flex-wrap: wrap; }
  .nav .links { gap: 14px; font-size: 14px; }
}
/* Auto-advance is also disabled in JS when this matches — the carousel then
   only changes on a deliberate dot press. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .toast, .faq summary::after, .shot, .shots-dot::before, .shots-tab, .nav .links a, .card { transition: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   App UI / compatibility layer
   Classes used by the account & admin React dashboards
   (client/account.tsx, client/admin.tsx), the auth pages and the
   legal/utility pages. Ported to the Ledger palette so those
   surfaces stay on-brand without changing app markup or logic.
   ============================================================ */

/* Centred page header (account/admin/auth/legal heros) */
.hero { padding: 60px 0 36px; text-align: center; }
.hero h1 { font-size: 40px; line-height: 1.12; max-width: 760px; margin: 0 auto 16px; }
.hero h1 em { color: var(--ember); font-style: normal; }
.hero p { font-size: 17px; color: var(--ink-soft); max-width: 620px; margin: 0 auto 12px; }
.hero .cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 10px; }
.hero .note { margin-top: 16px; font-size: 13.5px; color: var(--muted); }

/* Card grid + cards (dashboards, auth forms) */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; text-align: left; transition: border-color .15s ease, box-shadow .15s ease; }
.card:hover { border-color: var(--sky-2); box-shadow: 0 16px 34px -26px rgba(11,31,77,.3); }
.card h3 { font-size: 19px; font-weight: 600; margin: 0 0 6px; letter-spacing: -.01em; }
.card p { color: var(--ink-soft); font-size: 15px; line-height: 1.6; margin: 0 0 6px; }
.card label { display: block; font-size: 13px; font-weight: 600; color: var(--ink); margin: 10px 0 5px; }
.card .actions, .actions { margin-top: 16px; display: flex; gap: 10px; flex-wrap: wrap; }

/* Inline notice / banner (verify email, 2FA nudge, form messages) */
/* Dashboard (React island) helpers — the inline-style literals the account
 * and admin apps kept repeating, promoted to classes. `.card .muted` restates
 * the pair so it also wins over the `.card p` defaults above. */
.muted, .card .muted { color: var(--ink-soft); font-size: 14px; }
/* Big dashboard figures — the brand stat treatment (cf. .proof-band .stat b);
   the admin app's old inline styles asked for Sora, which the Ledger rebrand
   removed, so these numbers silently fell back to the system font. */
.stat-num { font-family: "Newsreader", Georgia, serif; font-weight: 600; letter-spacing: -.015em; font-size: 26px; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table tr { border-top: 1px solid var(--line); }
.btn.mini { padding: 4px 10px; font-size: 13px; }
.notice { background: var(--tint); border: 1px solid var(--line); border-left: 3px solid var(--ember); border-radius: var(--r-md); padding: 12px 16px; font-size: 14px; line-height: 1.6; color: var(--ink-soft); max-width: 640px; margin: 12px auto 0; }
.notice a { color: var(--ember); font-weight: 600; }

/* Bare note (used outside the hero blocks) */
.note { font-size: 13.5px; color: var(--muted); line-height: 1.6; }

/* Article byline in .prose */
.prose .meta { font-size: 13.5px; color: var(--muted); margin: -30px 0 40px; }

@media (max-width: 960px) {
  .grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 32px; }
}
