/* ==========================================================================
   MoneyPilot — layout.css
   Four shells: marketing site, auth, member app (phone and desk postures),
   and the operations console. Each shell's chrome is a Blade layout in
   resources/views/layouts, so no page repeats it.
   ========================================================================== */

/* ==========================================================================
   0 · Inverted scope
   Rather than writing a parallel set of "dark band" component styles, this
   re-points the SAME tokens inside a subtree. Every card, badge, meter and
   chart already reads from those tokens, so they all just work on the dark
   ground with no per-component overrides — and the band stays dark in both
   themes, which is the point of it.
   ========================================================================== */
/* The band's own palette lives in --inv-* so it can shift with the theme. In
   light mode it is ink navy, the colour of the brand, set against the paper;
   in dark mode it lifts a step above the page so it still reads as a band.
   Its ink is the same warm off-white as the night theme. */
:root {
  --inv-bg: #111b2c;  --inv-surface: #172336;  --inv-surface-2: #1c293e;
  --inv-surface-3: #243249;  --inv-border: #26344b;  --inv-border-2: #35455f;
  --inv-text: #efeae0;  --inv-text-2: #b6b8bc;  --inv-text-3: #8f96a2;
}
:root[data-theme="dark"] {
  --inv-bg: #161e2c;  --inv-surface: #1c2636;  --inv-surface-2: #212c3e;
  --inv-surface-3: #2a364b;  --inv-border: #2d3a50;  --inv-border-2: #3d4b64;
  --inv-text: #f1ece3;  --inv-text-2: #bcbdc0;  --inv-text-3: #939aa6;
}

.invert {
  --bg:            var(--inv-bg);
  --surface:       var(--inv-surface);
  --surface-2:     var(--inv-surface-2);
  --surface-3:     var(--inv-surface-3);
  --border:        var(--inv-border);
  --border-strong: var(--inv-border-2);
  --hairline:      var(--inv-border);

  --text:          var(--inv-text);
  --text-2:        var(--inv-text-2);
  --text-3:        var(--inv-text-3);
  --text-inv:      var(--inv-bg);

  --primary:       #8fb4e3;
  --primary-hover: #a9c6ec;
  --primary-soft:  #1b2b44;
  --primary-line:  #2f4768;
  --primary-ink:   #c4d8f1;

  --accent:        #e0a060;
  --accent-hover:  #eab47c;
  --accent-soft:   #2e2517;
  --accent-line:   #574027;
  --accent-ink:    #f0c592;

  --success:       #5fb88d;  --success-soft: #13291f;
  --warn:          #dcab55;  --warn-soft:    #2c2416;
  --danger:        #e57b70;  --danger-soft:  #311d1b;
  --info:          #6aa8da;  --info-soft:    #15232f;

  --grid:  var(--inv-border);
  --track: var(--inv-surface-3);
  --plot:  var(--inv-surface);

  --c1: #6ba6e0; --c2: #d99447; --c3: #3fb5a6;
  --c4: #a98ede; --c5: #7fb95e; --c6: #e0759a;

  background: var(--bg);
  color: var(--text);
}

/* ==========================================================================
   1 · Marketing site
   ==========================================================================
   Set as the front page of a paper. The hero photograph is a Nigerian
   newspaper stand, so the metaphor is the picture's own: a dateline under
   a double rule, a serif headline with an italic turn, a captioned photo, a
   markets ticker. Modern where it matters — the layout breathes, the numbers
   are live, and the page moves just enough to feel alive — classic in how it
   is set. */

/* --- Brand lock-up (shared by site, auth, console and app) ------------- */
.brand { display: flex; align-items: center; gap: 9px; color: inherit; }
.brand:hover { text-decoration: none; }
/* The mark is a naira sign set in the serif, on ink — a die stamp rather than
   an app icon. The wordmark shares the face so the two read as one lock-up. */
.brand-mark {
  width: 30px; height: 30px; flex: none;
  border-radius: var(--r-sm);
  background: var(--primary); color: var(--text-inv);
  display: grid; place-items: center;
  font-family: var(--serif);
  font-weight: 600; font-size: var(--t-md);
  letter-spacing: -.02em;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--text-inv) 14%, transparent);
}
.brand-name { font-family: var(--serif); font-weight: 600; letter-spacing: -.02em; font-size: var(--t-md); }
.brand-sub { font-size: var(--t-xs); color: var(--text-3); }

/* --- Page furniture ------------------------------------------------------ */
.wrapper { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.wrapper-narrow { max-width: 820px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 520px) { .wrapper, .wrapper-narrow { padding: 0 18px; } }

.section { padding: 96px 0; }
.section-tight { padding: 52px 0; }
.section-alt { background: var(--surface); border-block: 1px solid var(--border); }
@media (max-width: 720px) { .section { padding: 64px 0; } }

.section-head { max-width: 700px; display: flex; flex-direction: column; gap: 16px; margin-bottom: 44px; }

/* The kicker: the small label a paper sets over a headline, led by a rule. */
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: var(--t-xs); font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent-ink);
}
.kicker::before { content: ''; width: 24px; height: 1.5px; background: currentColor; flex: none; }
.invert .kicker { color: var(--accent); }

.section-title {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(31px, 4.4vw, 52px);
  line-height: 1.06; letter-spacing: -.024em;
  text-wrap: balance;
}
/* The italic turn: one phrase per headline, in the accent, where the claim
   actually lands. */
.section-title em, .headline em, .pull em {
  font-style: italic; font-weight: 400;
  color: var(--accent);
}
.standfirst { font-size: var(--t-md); line-height: 1.62; color: var(--text-2); max-width: 60ch; }

/* --- Masthead ------------------------------------------------------------ */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--med), box-shadow var(--med);
}
.site-head.is-scrolled { border-bottom-color: var(--border); box-shadow: 0 10px 30px -22px rgba(30, 24, 14, .35); }
.site-head-in {
  max-width: 1200px; margin: 0 auto;
  padding: 13px 24px;
  display: flex; align-items: center; gap: 22px;
}
.site-nav { display: flex; gap: 26px; margin-left: 18px; }
.site-nav a { font-size: var(--t-sm); color: var(--text-2); font-weight: 500; }
.site-nav a:hover { color: var(--text); text-decoration: none; }
@media (max-width: 900px) { .site-nav { display: none; } }

/* --- Header at phone widths -----------------------------------------------
   flex: none states the intent (a control is never squeezed to fit); the rest
   is reclaiming width from padding, gap and type before anything is dropped.
   On a 360px phone the row once needed 409px and "Get started" rendered as
   "Get", clipped by the sticky header. */
.site-head-in > * { flex: none; }
.site-head-in .brand { min-width: 0; }
@media (max-width: 520px) {
  .site-head-in { gap: 10px; padding: 11px 16px; }
  .brand { gap: 7px; }
  .brand-name { font-size: var(--t-base); }
  .site-head-in .btn-sm { padding: 7px 10px; }
}
/* The theme toggle is the one control the header can lose: it overrides a
   preference the OS already supplies, whereas Sign in and Get started are
   destinations a visitor came here for. */
@media (max-width: 400px) { .site-head-in [data-theme-toggle] { display: none; } }
@media (max-width: 340px) { .site-head-in { gap: 8px; padding: 10px 11px; } }

/* --- Front page ---------------------------------------------------------- */
.front { padding-top: 22px; }

/* The dateline, under a double rule — the one detail that makes a page read
   as a paper before a word of it has been read. */
.dateline {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 9px 0;
  border-top: 3px double var(--text);
  border-bottom: 1px solid var(--border);
  font-family: var(--mono); font-size: 11px;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-2);
}
.dateline-mid {
  font-family: var(--serif); font-style: italic;
  font-size: var(--t-sm); letter-spacing: 0; text-transform: none;
  color: var(--text);
}
@media (max-width: 760px) { .dateline-mid { display: none; } }
@media (max-width: 420px) { .dateline > :last-child { display: none; } }

.front-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 64px; align-items: center;
  padding: 58px 0 64px;
}
@media (max-width: 1000px) { .front-grid { grid-template-columns: 1fr; gap: 48px; padding: 40px 0 48px; } }

.front-copy { display: flex; flex-direction: column; gap: 26px; align-items: flex-start; }
.headline {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(44px, 6.4vw, 82px);
  line-height: .98; letter-spacing: -.03em;
  text-wrap: balance;
  max-width: 12.5ch;
}
.front-copy .standfirst { max-width: 46ch; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: var(--t-xs); color: var(--text-2); }
.hero-trust li { display: flex; align-items: center; gap: 6px; }
.hero-trust .i { color: var(--success); }

/* The photograph and the price board overlap, like a clipping laid on a
   page: the board is the evidence, the photograph is where it comes from. */
/* The photograph's subject is the papers on the stand, low in the frame, and
   the two readers above them. The board overlaps only the bottom edge — the
   kerb — and sits a little proud of the photo's left side, so the readers
   and the front pages both stay in view. */
.front-visual { position: relative; }
.front-photo { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.front-photo figcaption {
  align-self: flex-end;
  font-family: var(--serif); font-style: italic;
  font-size: var(--t-xs); color: var(--text-3);
}
.front-photo .media { aspect-ratio: 16 / 10; border-radius: var(--r-lg); box-shadow: var(--sh-2); }
.front-photo .media > img { object-position: 50% 62%; filter: saturate(.9) contrast(1.02); }

.board {
  position: relative; z-index: 1;
  width: 86%;
  margin: -64px 0 0 -26px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-3);
  overflow: hidden;
}
@media (max-width: 1000px) {
  .board { width: calc(100% - 28px); margin: -56px auto 0; }
}
@media (max-width: 520px) { .board { width: calc(100% - 16px); margin-top: -40px; } }

.board-head {
  display: flex; align-items: center; gap: 9px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}
.board-title { font-family: var(--serif); font-weight: 600; font-size: var(--t-base); letter-spacing: -.01em; }
.board-rows { display: flex; flex-direction: column; }
.board-row {
  display: grid;
  grid-template-columns: 1fr 74px 88px 62px;
  align-items: center; gap: 12px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
}
.board-row:last-child { border-bottom: 0; }
.board-name { font-size: var(--t-sm); font-weight: 500; min-width: 0; }
.board-name span { display: block; font-size: var(--t-xs); color: var(--text-3); font-weight: 400; }
.board-price { font-family: var(--mono); font-size: var(--t-sm); font-weight: 500; text-align: right; font-variant-numeric: tabular-nums; }
.board .delta { font-size: var(--t-xs); }
.board .delta.flat { font-family: var(--font); font-weight: 500; }
.board-foot {
  padding: 10px 16px; border-top: 1px solid var(--border);
  background: var(--surface-2);
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
@media (max-width: 520px) {
  .board-row { grid-template-columns: 1fr 76px 58px; }
  .board-row .board-spark { display: none; }
}

/* The figures under the fold line, set like a paper's index of numbers. */
.stat-band {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--text);
  border-bottom: 1px solid var(--border);
}
.stat-band > div {
  padding: 24px 24px 26px;
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 8px;
}
.stat-band > div:first-child { padding-left: 0; }
.stat-band > div:last-child { border-right: 0; }
.stat-band b {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(32px, 3.6vw, 46px);
  letter-spacing: -.025em; line-height: 1;
  font-variant-numeric: lining-nums tabular-nums;
}
.stat-band span { font-size: var(--t-xs); color: var(--text-3); }
@media (max-width: 780px) {
  .stat-band { grid-template-columns: 1fr 1fr; }
  .stat-band > div { padding: 18px 16px; border-bottom: 1px solid var(--border); }
  .stat-band > div:nth-child(odd) { padding-left: 0; }
  .stat-band > div:nth-child(2n) { border-right: 0; }
  .stat-band > div:nth-last-child(-n+2) { border-bottom: 0; }
}

/* --- Markets ticker ------------------------------------------------------
   The markets page of a paper, set moving. It pauses under the pointer, and
   under reduced motion it stands still and scrolls by hand instead. */
.ticker {
  display: flex; align-items: stretch;
  border-block: 1px solid var(--border);
  font-size: var(--t-xs);
  overflow: hidden;
}
.ticker-label {
  flex: none;
  display: flex; align-items: center; gap: 8px;
  padding: 0 18px;
  background: var(--accent); color: var(--text-inv);
  font-size: 10.5px; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
}
.ticker-label .dot-live { background: var(--text-inv); box-shadow: 0 0 0 3px color-mix(in srgb, var(--text-inv) 25%, transparent); }
.ticker-window {
  flex: 1 1 auto; min-width: 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
}
.ticker-track { display: flex; width: max-content; }
.ticker ul { display: flex; }
.ticker li {
  display: flex; align-items: baseline; gap: 8px;
  padding: 13px 22px;
  white-space: nowrap;
  color: var(--text-2);
  border-right: 1px solid var(--border);
}
.ticker li b { font-family: var(--mono); font-weight: 500; color: var(--text); font-variant-numeric: tabular-nums; }
.tk-up, .tk-down { font-family: var(--mono); font-weight: 600; }
.tk-up   { color: var(--danger); }   /* a price rising is bad news for a budget */
.tk-down { color: var(--success); }
@media (prefers-reduced-motion: no-preference) {
  .ticker-track { animation: ticker 110s linear infinite; }
  .ticker:hover .ticker-track { animation-play-state: paused; }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-window { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .ticker ul[aria-hidden="true"] { display: none; }
}
@keyframes ticker { to { transform: translateX(-50%); } }

/* --- Comparison: two statements and the gap between them ----------------- */
.compare {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
  overflow: hidden;
  box-shadow: var(--sh-2);
}
.compare-head {
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
.compare-grid { display: grid; grid-template-columns: minmax(0, 1fr) 240px minmax(0, 1fr); }
.compare-side { padding: 26px 28px 24px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.compare-select { font-family: var(--serif); font-size: var(--t-md); font-weight: 500; }
.compare-k {
  margin-top: 4px;
  font-size: 10.5px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-3);
}
.compare-figure {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(34px, 4vw, 46px);
  letter-spacing: -.025em; line-height: 1;
  font-variant-numeric: lining-nums tabular-nums;
}
.compare-left {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--text);
  font-size: var(--t-sm); font-weight: 600;
}
.compare-left b { font-family: var(--mono); font-weight: 600; font-variant-numeric: tabular-nums; }
.compare-left .is-good { color: var(--success); }
.compare-left .is-bad  { color: var(--danger); }

.compare-verdict {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  padding: 26px 18px;
  text-align: center;
  background: var(--accent-soft);
  color: var(--accent-ink);
  border-inline: 1px solid var(--border);
}
.cv-k { font-size: 10.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.cv-fig {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(30px, 3.2vw, 40px);
  letter-spacing: -.025em; line-height: 1;
  color: var(--text);
  font-variant-numeric: lining-nums tabular-nums;
}
.cv-sub { font-size: var(--t-sm); line-height: 1.45; color: var(--text-2); }
.cv-sub b { color: var(--text); font-weight: 600; }
.compare-verdict .stamp { margin-top: 2px; }

.compare-foot {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 24px;
  border-top: 1px solid var(--border);
  background: var(--surface-2);
  font-size: var(--t-sm); color: var(--text-2);
}
@media (max-width: 860px) {
  .compare-grid { grid-template-columns: 1fr; }
  .compare-side[data-side="b"] { order: 2; border-top: 1px solid var(--border); }
  .compare-verdict { order: 3; border-inline: 0; border-top: 1px solid var(--border); flex-direction: row; flex-wrap: wrap; justify-content: flex-start; text-align: left; padding: 18px 24px; }
  .compare-side { padding: 22px 20px; }
}

/* An icon chip, used in module heads. */
.feature-ic {
  width: 36px; height: 36px; flex: none; border-radius: var(--r-sm);
  display: grid; place-items: center;
  background: var(--primary-soft); color: var(--primary-ink);
}
.feature-ic.accent { background: var(--accent-soft); color: var(--accent-ink); }

/* --- Three editorial columns, under a rule ------------------------------- */
.columns-3 {
  display: grid; grid-template-columns: repeat(3, 1fr);
  margin-top: 56px;
  border-top: 1px solid var(--text);
}
.column { padding: 24px 30px 0 0; }
.column + .column { padding-left: 30px; border-left: 1px solid var(--border); }
.column-n { font-family: var(--serif); font-style: italic; font-size: var(--t-lg); color: var(--accent); }
.column h3 { font-family: var(--serif); font-weight: 500; font-size: var(--t-lg); letter-spacing: -.012em; margin: 6px 0 10px; }
.column p { font-size: var(--t-sm); color: var(--text-2); line-height: 1.65; }
@media (max-width: 820px) {
  .columns-3 { grid-template-columns: 1fr; }
  .column { padding: 22px 0 0; }
  .column + .column { padding-left: 0; border-left: 0; border-top: 1px solid var(--border); margin-top: 22px; }
}

/* --- Photo strip: the market, the commute, the kitchen ------------------- */
.strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 860px) { .strip { grid-template-columns: 1fr; gap: 34px; } }
.strip-item { margin: 0; display: flex; flex-direction: column; }
.strip-item .media { aspect-ratio: 4 / 3; border-radius: var(--r-lg); }
.strip-item .media > img { transition: transform 1.2s var(--ease); }
.strip-item:hover .media > img { transform: scale(1.035); }
.strip-cap { margin-top: 16px; display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; }
.strip-n { grid-row: 1 / span 2; font-family: var(--mono); font-size: var(--t-xs); color: var(--accent-ink); padding-top: 4px; }
.strip-cap h3 { font-family: var(--serif); font-weight: 500; font-size: var(--t-lg); letter-spacing: -.012em; }
.strip-cap p { font-size: var(--t-sm); color: var(--text-2); line-height: 1.6; }

/* --- How it works: four steps on one line -------------------------------- */
.howto {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px;
  position: relative;
  counter-reset: none;
}
/* The line the steps sit on — the order is the meaning. */
.howto::before {
  content: ''; position: absolute; left: 24px; right: 24px; top: 23px;
  height: 1px; background: var(--border-strong);
}
.howto-step { position: relative; display: flex; flex-direction: column; gap: 10px; }
.howto-n {
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--border-strong);
  background: var(--bg);
  font-family: var(--serif); font-size: var(--t-lg); font-weight: 500;
}
.howto-step h3 { font-family: var(--serif); font-weight: 500; font-size: var(--t-lg); letter-spacing: -.012em; margin-top: 8px; }
.howto-step p { font-size: var(--t-sm); color: var(--text-2); line-height: 1.6; }
.howto-flag {
  position: absolute; top: 14px; left: 62px;
  font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent-ink);
  background: var(--bg); padding: 0 8px;
}
.howto-step.is-key .howto-n { background: var(--accent); border-color: var(--accent); color: var(--text-inv); box-shadow: 0 0 0 6px var(--accent-soft); }
@media (max-width: 960px) {
  .howto { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .howto::before { display: none; }
}
@media (max-width: 560px) { .howto { grid-template-columns: 1fr; } }

/* --- Cards on the site read in the ledger voice -------------------------- */
.site .card { border-radius: var(--r-lg); box-shadow: var(--sh-1); }
.site .card-head { padding: 18px 22px; }
.site .card-body { padding: 20px 22px; }
.site .card-head h3 { font-family: var(--serif); font-weight: 500; font-size: var(--t-lg); letter-spacing: -.012em; }

/* --- TruePrice band ------------------------------------------------------
   Copy and evidence on the left, the four defences on the right. The grid
   is a class so the media queries can reach it — as an inline style it once
   kept this band two columns wide on a 390px phone. Collapses at 1000px, in
   step with the front page, so the site folds in one rhythm. */
.tp-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 56px;
  align-items: start;
}
@media (max-width: 1120px) { .tp-grid { gap: 36px; } }
@media (max-width: 1000px) { .tp-grid { grid-template-columns: 1fr; gap: 36px; } }

.tp-mechs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 640px) { .tp-mechs { grid-template-columns: 1fr; } }

/* Stacked, the portrait would be a half-screen slab in front of the argument
   it illustrates; cap it into a band and crop toward the top of the frame,
   never across the subject's eyes. */
@media (max-width: 1000px) {
  .tp-grid .photo .media { aspect-ratio: auto; height: clamp(180px, 30vw, 260px); }
  .tp-grid .photo .media > img { object-position: 50% 28%; }
}

.mech {
  display: flex; flex-direction: column; gap: 10px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
}
.mech-ic {
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--primary-soft); color: var(--primary-ink);
}
.mech-ic.accent { background: var(--accent-soft); color: var(--accent-ink); }
.mech h3 { font-family: var(--serif); font-weight: 500; font-size: var(--t-md); letter-spacing: -.01em; }
.mech p { font-size: var(--t-sm); color: var(--text-2); line-height: 1.6; }
.mech-tag {
  margin-top: auto; padding-top: 10px;
  border-top: 1px dotted var(--border-strong);
  font-family: var(--mono); font-size: var(--t-xs);
  color: var(--text-3);
}

/* --- Pull quote ---------------------------------------------------------- */
.pull {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(26px, 3.2vw, 38px);
  letter-spacing: -.02em; line-height: 1.18;
  max-width: 20ch;
  text-wrap: balance;
}

/* --- Audiences ----------------------------------------------------------- */
.role-card {
  display: flex; flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
  color: inherit;
  overflow: hidden;
  box-shadow: var(--sh-1);
  transition: border-color var(--fast), box-shadow var(--med), transform var(--med);
}
.role-card:hover { border-color: var(--primary-line); box-shadow: var(--sh-2); transform: translateY(-2px); text-decoration: none; }
.role-media { border-radius: 0; }
.role-media > img { transition: transform 1.2s var(--ease); }
.role-card:hover .role-media > img { transform: scale(1.03); }
.role-body { display: flex; flex-direction: column; gap: 14px; padding: 22px 24px 24px; flex: 1; }
.role-body h3 { font-family: var(--serif); font-weight: 500; font-size: var(--t-lg); letter-spacing: -.012em; }
.role-card ul { display: flex; flex-direction: column; gap: 8px; }
.role-card li { font-size: var(--t-sm); color: var(--text-2); display: flex; gap: 9px; align-items: flex-start; }
.role-card li .i { color: var(--success); flex: none; margin-top: 2px; }
.role-go {
  margin-top: auto; align-self: flex-start;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: var(--t-sm); font-weight: 600; color: var(--primary);
}
.role-card:hover .role-go .i { transform: translateX(3px); }
.role-go .i { transition: transform var(--fast); }

/* --- Closing band -------------------------------------------------------- */
.closing { position: relative; overflow: hidden; isolation: isolate; padding: 104px 0; text-align: center; }
.closing .guilloche {
  width: 760px; height: 760px;
  left: 50%; top: 50%; right: auto;
  transform: translate(-50%, -50%);
  color: var(--accent); opacity: .12;
}
.closing-in { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.closing .section-title { max-width: 17ch; font-size: clamp(32px, 4.8vw, 58px); }
.closing .standfirst { max-width: 52ch; }
.closing .hero-cta { justify-content: center; }
@media (max-width: 720px) { .closing { padding: 72px 0; } .closing .guilloche { width: 520px; height: 520px; } }

/* --- Footer -------------------------------------------------------------- */
.site-foot {
  border-top: 3px double var(--text);
  background: var(--bg);
  padding: 48px 0 30px;
}
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 30px; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
.foot-col h4 {
  font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-3); margin-bottom: 12px;
}
/* Direct children only, and never the brand. As `.foot-col a, .foot-col span`
   these reached INTO the lock-up: the mark and name stacked, and the ₦ took
   the grey link colour on the navy mark and vanished. */
.foot-col > a:not(.brand), .foot-col > span { display: block; font-size: var(--t-sm); color: var(--text-2); padding: 3px 0; }
.foot-col > a:not(.brand):hover { color: var(--text); }
.foot-bar {
  margin-top: 34px; padding-top: 18px; border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center;
  font-size: var(--t-xs); color: var(--text-3);
}
.foot-bar a { color: var(--text-2); text-decoration: underline; text-underline-offset: 2px; }

/* --- Scroll reveal ------------------------------------------------------
   Sections rise into place as they enter the viewport, driven by the scroll
   position itself (a view timeline) rather than by script. That matters
   here: the homepage is a Livewire component, and a class added by an
   IntersectionObserver would be stripped by the next morph — changing a
   city would have blanked the page. Browsers without view timelines simply
   show everything, which is the correct fallback. The range ends on entry,
   so anything already on screen — including a full-page capture — is shown
   at full strength. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    [data-reveal] {
      animation: reveal linear both;
      animation-timeline: view();
      animation-range: entry 5% entry 85%;
    }
  }
}
@keyframes reveal { from { opacity: 0; transform: translateY(28px); } }

/* ==========================================================================
   2 · Auth
   ========================================================================== */
.auth-shell { min-height: 100dvh; display: grid; grid-template-columns: 1fr 1fr; }
@media (max-width: 900px) { .auth-shell { grid-template-columns: 1fr; } }

.auth-aside {
  position: relative;
  isolation: isolate;
  background: var(--primary);
  color: #fff;
  padding: 44px;
  display: flex; flex-direction: column; gap: 26px;
  justify-content: space-between;
  overflow: hidden;
}
/* A real market behind the brand colour — the same photography the landing
   page uses, so the two feel like one product. */
.auth-aside-photo {
  position: absolute; inset: 0; z-index: -1;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .22;
  filter: saturate(.8);
  mix-blend-mode: luminosity;
}
:root[data-theme="dark"] .auth-aside { background: var(--surface-2); color: var(--text); }
:root[data-theme="dark"] .auth-aside-photo { opacity: .14; }
@media (max-width: 900px) { .auth-aside { display: none; } }

.auth-mobile-brand { display: none; }
@media (max-width: 900px) { .auth-mobile-brand { display: flex; } }

.auth-divider {
  display: flex; align-items: center; gap: 12px;
  font-size: var(--t-xs); color: var(--text-3);
}
.auth-divider::before, .auth-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}

/* One list, both roles. The account itself tells you which side it belongs
   to, which is a better question to answer than asking the visitor to
   classify themselves before they have seen anything. */
.auth-account {
  display: flex; align-items: flex-start; gap: 12px;
  width: 100%; text-align: left;
  padding: 12px 13px;
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  background: var(--surface);
  color: inherit;
  transition: border-color var(--fast), background var(--fast);
}
.auth-account:hover { border-color: var(--primary-line); background: var(--surface-2); }
.auth-account-ic {
  width: 32px; height: 32px; flex: none;
  border-radius: var(--r-sm);
  display: grid; place-items: center;
  background: var(--primary-soft); color: var(--primary-ink);
}
.auth-account-ic.ops { background: var(--accent-soft); color: var(--accent-ink); }
.auth-account-t { display: flex; align-items: center; gap: 8px; font-size: var(--t-sm); font-weight: 600; }
.auth-account-s { display: block; font-size: var(--t-xs); color: var(--text-2); margin-top: 1px; }
.auth-account-b { display: block; font-size: var(--t-xs); color: var(--text-3); margin-top: 3px; line-height: 1.45; }
.auth-aside .brand-mark { background: var(--text-inv); color: var(--primary); }
:root[data-theme="dark"] .auth-aside .brand-mark { background: var(--primary); color: var(--text-inv); }
.auth-aside .brand-name { color: inherit; }
.auth-quote { font-size: var(--t-xl); font-weight: 500; letter-spacing: -.022em; line-height: 1.3; max-width: 20ch; }
.auth-points { display: flex; flex-direction: column; gap: 14px; }
.auth-point { display: flex; gap: 12px; align-items: flex-start; font-size: var(--t-sm); opacity: .92; }
.auth-stat { display: flex; gap: 28px; flex-wrap: wrap; }
.auth-stat div { display: flex; flex-direction: column; }
.auth-stat b { font-family: var(--mono); font-size: var(--t-lg); font-weight: 500; }
.auth-stat span { font-size: var(--t-xs); opacity: .75; }

.auth-main { display: flex; align-items: center; justify-content: center; padding: 34px 22px; }
.auth-box { width: min(408px, 100%); display: flex; flex-direction: column; gap: 22px; }
.auth-roles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.auth-role {
  padding: 12px; border: 1px solid var(--border-strong); border-radius: var(--r-sm);
  display: flex; flex-direction: column; gap: 3px; text-align: left;
  transition: border-color var(--fast), background var(--fast);
}
.auth-role:hover { border-color: var(--text-3); text-decoration: none; }
.auth-role[aria-pressed="true"] { border-color: var(--primary); background: var(--primary-soft); }
.auth-role b { font-size: var(--t-sm); font-weight: 600; }
.auth-role span { font-size: var(--t-xs); color: var(--text-3); }

.auth-demo {
  border: 1px dashed var(--border-strong);
  border-radius: var(--r-sm);
  padding: 12px 14px;
  background: var(--surface-2);
  font-size: var(--t-xs);
  display: flex; flex-direction: column; gap: 8px;
}

/* ==========================================================================
   3 · Desk console (company)
   ========================================================================== */
.shell-desk { display: grid; grid-template-columns: var(--sidebar-w) minmax(0, 1fr); min-height: 100dvh; }

.sidebar {
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100dvh;
  z-index: 40;
}
.sidebar > .brand { padding: 15px 16px; border-bottom: 1px solid var(--border); }
.nav { flex: 1; overflow-y: auto; padding: 12px 10px; display: flex; flex-direction: column; gap: 16px; }
.nav-group { display: flex; flex-direction: column; gap: 2px; }
.nav-group > .eyebrow { padding: 0 8px 5px; font-size: 10px; }
.nav-link {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 9px;
  border-radius: var(--r-sm);
  color: var(--text-2);
  font-size: var(--t-sm); font-weight: 500;
  transition: background var(--fast), color var(--fast);
}
.nav-link:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.nav-link[aria-current="page"] { background: var(--primary-soft); color: var(--primary-ink); }
.nav-count {
  font-family: var(--mono); font-size: 10.5px;
  padding: 1px 6px; border-radius: var(--r-pill);
  background: var(--surface-3); color: var(--text-2);
}
.nav-count.hot { background: var(--danger-soft); color: var(--danger); }
.sidebar-foot { padding: 11px 12px; border-top: 1px solid var(--border); }

.topbar {
  position: sticky; top: 0; z-index: 30;
  height: var(--topbar-h);
  display: flex; align-items: center; gap: 12px;
  padding: 0 20px;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.topbar h1 { font-size: var(--t-md); }
.menu-btn { display: none; }

.main {
  padding: 22px 24px 20px;
  display: flex; flex-direction: column;
  /* Tables are unreadable when a row spans an entire ultrawide monitor — the
     eye loses the line between the first and last column. */
  max-width: 1560px; width: 100%;
}
.page-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  padding-bottom: 14px; margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.page-head h1 { font-size: var(--t-xl); }
.page-head p { font-size: var(--t-sm); color: var(--text-2); margin-top: 4px; }

/* The console is a tool, not a document: tighter corners, flatter surfaces,
   more information per inch than the phone app. */
.main .card { border-radius: var(--r-sm); box-shadow: none; }
.main .card-head { padding: 12px 15px; }
.main .stat { border-radius: var(--r-sm); }
.main .page-intro { border-radius: var(--r-sm); }

.app-foot {
  margin-top: 26px; padding: 14px 2px 4px;
  border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px;
  font-size: var(--t-xs); color: var(--text-3);
}
.foot-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--success); }

@media (max-width: 1000px) {
  .shell-desk { grid-template-columns: minmax(0, 1fr); }
  .sidebar {
    position: fixed; inset: 0 auto 0 0; width: var(--sidebar-w);
    transform: translateX(-100%); transition: transform var(--med);
    box-shadow: var(--sh-3);
  }
  body.nav-open .sidebar { transform: none; }
  .menu-btn { display: grid; }
  .main { padding: 16px; }
}

/* ==========================================================================
   4 · Member app
   ==========================================================================
   One shell, two postures.

   Below 1024px it is the phone app it always was: a sticky header, the page,
   and a tab bar along the bottom. From 1024px it becomes a desk: a sidebar
   that names every screen, and a page wide enough to set things side by side.
   The prototype drew a 440px phone in the middle of a laptop, which asked the
   person with the biggest screen to read the smallest version of the product.

   The DOCUMENT scrolls, not an inner container. The phone frame needed an
   overflow:auto body wedged between two bars, and that fought sticky
   positioning, full-page capture and the browser's own scroll restoration.
   A sticky header over a scrolling page, with a fixed tab bar, gives the same
   result on a phone with none of that. */

.app { min-height: 100dvh; }

/* --- Sidebar (desk posture only) ----------------------------------------- */
.app-side { display: none; }

@media (min-width: 1024px) {
  .app { display: grid; grid-template-columns: var(--app-side-w) minmax(0, 1fr); }
  .app-side {
    display: flex; flex-direction: column; gap: 20px;
    position: sticky; top: 0; height: 100dvh;
    padding: 20px 14px 16px;
    background: var(--surface);
    border-right: 1px solid var(--border);
    overflow-y: auto;
    scrollbar-width: thin;
  }
}

.side-brand { display: flex; align-items: center; gap: 10px; padding: 2px 8px; color: inherit; }
.side-brand:hover { text-decoration: none; }

/* The month, as a page from a diary: where in it you are, at a glance. */
.side-month {
  margin: 0 2px;
  padding: 13px 14px 14px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface-2);
  display: flex; flex-direction: column; gap: 9px;
}
.side-month-t { font-family: var(--serif); font-size: var(--t-md); font-weight: 500; letter-spacing: -.01em; line-height: 1.15; }
.side-month-s { font-size: var(--t-xs); color: var(--text-3); }
.side-month .bar { height: 4px; }

.side-nav { display: flex; flex-direction: column; gap: 20px; flex: 1 1 auto; }
.side-group { display: flex; flex-direction: column; gap: 2px; }
.side-label {
  padding: 0 10px 7px;
  font-size: 10.5px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-3);
}
.side-link {
  position: relative;
  display: flex; align-items: center; gap: 11px;
  padding: 9px 10px;
  border-radius: var(--r-sm);
  color: var(--text-2);
  font-size: var(--t-sm); font-weight: 500;
  transition: background var(--fast), color var(--fast);
}
.side-link:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.side-link[aria-current="page"] { background: var(--primary-soft); color: var(--primary-ink); }
/* A ribbon on the page edge — the bookmark in a ledger. */
.side-link[aria-current="page"]::before {
  content: '';
  position: absolute; left: -14px; top: 8px; bottom: 8px;
  width: 3px; border-radius: 0 3px 3px 0;
  background: var(--primary);
}

.side-foot {
  display: flex; flex-direction: column; gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.side-user {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 8px;
  border-radius: var(--r-sm);
  color: inherit; min-width: 0;
}
.side-user:hover { background: var(--surface-2); text-decoration: none; }
.side-user-n { display: block; font-size: var(--t-sm); font-weight: 600; }
.side-user-e { display: block; font-size: var(--t-xs); color: var(--text-3); }
.side-acts { display: flex; gap: 6px; }
.side-acts > * { flex: 1 1 0; }
.side-acts .btn { width: 100%; }

/* --- Header (phone posture only) ----------------------------------------- */
.app-top {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px;
  padding-top: max(10px, env(safe-area-inset-top));
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--border);
}
.app-top h1 { font-family: var(--serif); font-size: var(--t-md); font-weight: 500; letter-spacing: -.01em; }
.app-top .sub { font-size: var(--t-xs); color: var(--text-3); }
@media (min-width: 1024px) { .app-top { display: none; } }

/* --- The page ------------------------------------------------------------
   A reading column by default, because most screens are a sequence of cards
   meant to be read top to bottom. A screen that is genuinely a dashboard
   asks for the wide measure with layoutData(['wide' => true]). */
.app-content {
  width: 100%; max-width: 760px;
  margin: 0 auto;
  padding: 16px 16px calc(96px + env(safe-area-inset-bottom));
}
.app-content.is-wide { max-width: 1240px; }
@media (min-width: 1024px) { .app-content { padding: 30px 36px 44px; } }

/* On the desk the title is set large in the page itself, where the phone
   puts it in the sticky header. */
.page-head-lg { display: none; }
@media (min-width: 1024px) {
  .page-head-lg {
    display: flex; align-items: flex-end; justify-content: space-between; gap: 20px;
    margin-bottom: 24px; padding-bottom: 18px;
    border-bottom: 1px solid var(--border);
  }
  .page-head-lg h1 {
    font-family: var(--serif); font-weight: 500;
    font-size: var(--t-2xl); letter-spacing: -.022em; line-height: 1.08;
  }
  .page-head-lg .sub { margin-top: 7px; font-size: var(--t-sm); color: var(--text-2); }
  .page-back {
    display: inline-flex; align-items: center; gap: 5px;
    margin-bottom: 10px;
    font-size: var(--t-xs); font-weight: 500; color: var(--text-3);
  }
  .page-back:hover { color: var(--text); text-decoration: none; }
  .page-head-date {
    font-family: var(--mono); font-size: var(--t-xs);
    letter-spacing: .06em; color: var(--text-3);
    white-space: nowrap;
  }
}

.phone-body { display: flex; flex-direction: column; gap: 14px; }
.phone-body > * { flex: 0 0 auto; }

/* A page settles in rather than snapping. wire:navigate inserts a fresh
   <main>, so this runs once per page; a Livewire update morphs the existing
   element and does not replay it. */
@media (prefers-reduced-motion: no-preference) {
  .phone-body { animation: page-in .34s var(--ease) both; }
}
@keyframes page-in { from { opacity: 0; transform: translateY(6px); } }

/* --- Tab bar (phone posture only) ---------------------------------------- */
.bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: grid; grid-template-columns: repeat(5, 1fr);
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-top: 1px solid var(--border);
}
@media (min-width: 1024px) { .bottom-nav { display: none; } }

/* On a tablet, a full-width bar is a long reach for a thumb and reads as
   stretched; it floats as a shorter dock instead. */
@media (min-width: 640px) and (max-width: 1023px) {
  .bottom-nav {
    left: 50%; right: auto; bottom: 14px;
    transform: translateX(-50%);
    width: min(520px, calc(100% - 28px));
    padding: 6px 8px;
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    box-shadow: var(--sh-3);
  }
}

.bn-link {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  padding: 5px 4px 4px;
  font-size: 10.5px; font-weight: 500;
  color: var(--text-3);
}
.bn-link:hover { text-decoration: none; color: var(--text-2); }
.bn-ic {
  width: 46px; height: 28px;
  border-radius: var(--r-pill);
  display: grid; place-items: center;
  transition: background var(--fast), color var(--fast);
}
.bn-link[aria-current="page"] { color: var(--primary-ink); font-weight: 600; }
.bn-link[aria-current="page"] .bn-ic { background: var(--primary-soft); color: var(--primary); }
:root[data-theme="dark"] .bn-link[aria-current="page"] { color: var(--primary); }
.bn-badge {
  position: absolute; top: 2px; left: calc(50% + 9px);
  min-width: 15px; height: 15px; padding: 0 4px;
  border-radius: var(--r-pill);
  background: var(--danger); color: #fff;
  font-size: 9.5px; font-weight: 600;
  display: grid; place-items: center;
}

/* Phone-posture / desk-posture visibility, for the few pieces that belong to
   only one of them (the quick links duplicate the sidebar, for instance). */
@media (min-width: 1024px) { .only-phone { display: none !important; } }
@media (max-width: 1023px) { .only-desk  { display: none !important; } }

.phone-foot {
  margin-top: 10px; padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 9px;
  font-size: var(--t-xs); color: var(--text-3);
}
.phone-foot-links { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.phone-foot-links a { color: var(--text-3); }

/* --- App surfaces --------------------------------------------------------
   White paper on a paper ground: a hairline and a breath of shadow, which is
   how a card sits on a desk. The old phone column dropped the outline
   because a box around every block on 440px read as busy; on warm paper the
   hairline is what stops white cards dissolving into the ground. */
.phone-body .card,
.phone-body .insight,
.phone-body .stat {
  border-color: var(--border);
  box-shadow: var(--sh-1);
}
:root[data-theme="dark"] .phone-body .card,
:root[data-theme="dark"] .phone-body .insight,
:root[data-theme="dark"] .phone-body .stat { box-shadow: none; }

.phone-body .card-head { padding: 15px 18px; }
.phone-body .card-body { padding: 18px; }
.phone-body .card-foot { padding: 12px 18px; }
.phone-body .card-head h3,
.phone-body .card-head h2 {
  font-family: var(--serif); font-weight: 500;
  font-size: var(--t-md); letter-spacing: -.01em;
}
.phone-body .card-quiet { background: var(--surface-2); }

/* The page intro becomes a standfirst: the sentence under a headline that
   says what the page is for, rather than a box competing with the content. */
.phone-body .page-intro {
  padding: 2px 2px 4px;
  border: 0; border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.phone-body .page-intro-ic { background: var(--surface); border: 1px solid var(--border); }
.phone-body .page-intro-t { font-family: var(--serif); font-weight: 500; font-size: var(--t-base); }

/* Section header inside the page */
.sec-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  padding: 6px 2px 0;
}
.sec-head h2 { font-family: var(--serif); font-size: var(--t-md); font-weight: 500; letter-spacing: -.01em; }
.sec-head a { font-size: var(--t-xs); font-weight: 500; }

/* --- Dashboard -----------------------------------------------------------
   One column on the phone, in the order a person needs it. On the desk a
   12-column sheet: the figure to steer by and its four supporting numbers
   side by side, then composition beside performance, then goals beside the
   latest entries. Spans are named per block so a section that has nothing
   to show simply drops out and the rest still reads in order. */
.meters { display: flex; flex-direction: column; gap: 16px; }

/* The goals card closes on its own summary line, pinned to the bottom so a
   single goal beside a longer list does not leave the card half empty. */
.dash-goals { display: flex; flex-direction: column; }
.dash-goals > .card-foot { margin-top: auto; }

@media (min-width: 1024px) {
  .dash {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
    /* Dense packing lets the four figures (span 5) fill the hole beside the
       hero (span 7) even though the insights come between them in the DOM —
       which is the phone's reading order and stays that way. */
    grid-auto-flow: row dense;
  }
  .dash > *      { grid-column: 1 / -1; }
  .dash-hero     { grid-column: span 7; }
  .dash-stats    { grid-column: span 5; }
  .dash-mix      { grid-column: span 5; }
  .dash-areas    { grid-column: span 7; }
  .dash-goals    { grid-column: span 5; }
  .dash-recent   { grid-column: span 7; }
  .dash-prov     { grid-column: span 8; }
  .dash-cta      { grid-column: span 4; }

  .dash-stats { grid-auto-rows: 1fr; }
  /* Stretched to the hero's height, a tile keeps its label and figure
     together at the top and pins the footnote to the base, rather than
     floating the figure alone in the middle of the tile. */
  .dash-stats .stat-foot { margin-top: auto; }
  .dash .ledger-hero > .card-body { padding: 26px 28px 22px; }
  .dash .ledger-hero > .card-foot { padding: 16px 28px 18px; }
  /* Six meters in one column made the card twice the height of the ring
     beside it; two columns set the pair level. */
  .dash-areas .meters { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 28px; }
  .dash-ins-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 14px;
  }
  .dash > .phone-foot { margin-top: 6px; }
}


/* ==========================================================================
   5 · Marketing — the honesty section
   Two ideas the price board cannot show: what happens when a month does not
   balance, and how narrow the language model's job is. Both are built from
   tokens only, so they invert on the dark band and flip with the theme
   without a single per-component override.
   ========================================================================== */

/* --- Trade-off ladder ----------------------------------------------------
   Ranked options, cheapest-in-human-terms first. The last row is styled as a
   deliberate exception rather than as row five of five, because the ordering
   IS the argument: skipping a goal frees the most money and is offered last
   anyway. If it looked like every other row, the policy would be invisible. */
.ladder { display: flex; flex-direction: column; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--r-sm); overflow: hidden; }
.ladder-row {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 12px;
  background: var(--surface);
  font-size: var(--t-sm);
}
.ladder-n {
  width: 20px; height: 20px; flex: none;
  border-radius: var(--r-xs);
  display: grid; place-items: center;
  background: var(--surface-3); color: var(--text-2);
  font-family: var(--mono); font-size: 10.5px; font-weight: 500;
}
.ladder-tag { flex: none; font-size: var(--t-xs); color: var(--text-3); white-space: nowrap; }

.ladder-last { background: var(--warn-soft); }
.ladder-last .ladder-n { background: var(--warn); color: var(--text-inv); }
.ladder-last .ladder-tag { color: var(--warn); font-weight: 500; }

/* Below ~430px the "costs you convenience" tag and the option name fight for
   the same line and both truncate. Stack instead — the tag is the quieter of
   the two and reads fine underneath. */
@media (max-width: 460px) {
  .ladder-row { flex-wrap: wrap; row-gap: 2px; }
  .ladder-tag { width: 100%; padding-left: 31px; }
}

/* --- The AI seam ---------------------------------------------------------
   Three steps in a fixed order, with the arrow between them carrying the
   claim: the model sits in the middle and never reaches the left-hand box. */
.seam { display: flex; flex-direction: column; gap: 0; }
.seam-step {
  display: flex; align-items: center; gap: 11px;
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--surface);
}
.seam-ic {
  width: 30px; height: 30px; flex: none;
  border-radius: var(--r-sm);
  display: grid; place-items: center;
  background: var(--primary-soft); color: var(--primary-ink);
}
.seam-ic.accent { background: var(--accent-soft); color: var(--accent-ink); }
.seam-arrow { display: grid; place-items: center; height: 18px; color: var(--text-3); }
.seam-arrow .i { width: 13px; height: 13px; }
