/* ════════════════════════════════════════════════════════════════
   Stewarding OS - public surfaces (sign-in, homepage, legal pages)
   Same navy + cool slate tokens as the app shell in header.php.
   The font stack arrives as --font-sans from the page (getBrandFont()).
   ════════════════════════════════════════════════════════════════ */

:root {
  --navy:        #0f1f3d;
  --navy-2:      #16294d;
  --accent:      #1e3a8a;
  --accent-lt:   #3753a3;
  --accent-dim:  rgba(30,58,138,0.08);
  --on-accent:   #ffffff;

  --bg:          #f3f5f8;
  --surface:     #ffffff;
  --surface-2:   #f3f5f8;
  --border:      #dce2ea;
  --border-strong:#c5cedb;
  --text:        #0e1a2b;
  --text-2:      #435066;
  --muted:       #637086;

  --success:     #166534;  --success-bg: #e3f5e9;
  --danger:      #991b1b;  --danger-bg:  #fbe9e9;
  --warning:     #8a4b0f;  --warning-bg: #fdf1dc;
  --info:        #0e5c7a;  --info-bg:    #e2f1f8;
  --neutral-bg:  #e9edf3;

  --font-mono:   'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --r-sm: 0.5rem; --r-md: 0.75rem; --r-lg: 1rem; --r-xl: 1.25rem;
  --shadow-xs: 0 1px 2px rgba(15,31,61,0.06);
  --shadow-md: 0 2px 4px rgba(15,31,61,0.05), 0 8px 20px rgba(15,31,61,0.07);
  --shadow-lg: 0 4px 8px rgba(15,31,61,0.06), 0 24px 56px rgba(15,31,61,0.16);
  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --accent:      #8ea6e6;
    --accent-lt:   #a9bcef;
    --accent-dim:  rgba(142,166,230,0.12);
    --on-accent:   #0b1320;
    --bg:          #0b1320;
    --surface:     #111b2b;
    --surface-2:   #0b1320;
    --border:      #243249;
    --border-strong:#33445f;
    --text:        #e7ecf3;
    --text-2:      #aab5c6;
    --muted:       #8794a8;
    --success:     #86d9a0;  --success-bg: rgba(22,101,52,0.25);
    --danger:      #f1a3a3;  --danger-bg:  rgba(153,27,27,0.25);
    --warning:     #f3c27e;  --warning-bg: rgba(146,64,14,0.28);
    --info:        #8fd0ea;  --info-bg:    rgba(14,92,122,0.32);
    --neutral-bg:  #1b273a;
    --shadow-xs: 0 1px 2px rgba(0,0,0,0.3);
    --shadow-md: 0 2px 4px rgba(0,0,0,0.3), 0 8px 20px rgba(0,0,0,0.3);
    --shadow-lg: 0 4px 8px rgba(0,0,0,0.35), 0 24px 56px rgba(0,0,0,0.5);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
    --accent:      #8ea6e6;
    --accent-lt:   #a9bcef;
    --accent-dim:  rgba(142,166,230,0.12);
    --on-accent:   #0b1320;
    --bg:          #0b1320;
    --surface:     #111b2b;
    --surface-2:   #0b1320;
    --border:      #243249;
    --border-strong:#33445f;
    --text:        #e7ecf3;
    --text-2:      #aab5c6;
    --muted:       #8794a8;
    --success:     #86d9a0;  --success-bg: rgba(22,101,52,0.25);
    --danger:      #f1a3a3;  --danger-bg:  rgba(153,27,27,0.25);
    --warning:     #f3c27e;  --warning-bg: rgba(146,64,14,0.28);
    --info:        #8fd0ea;  --info-bg:    rgba(14,92,122,0.32);
    --neutral-bg:  #1b273a;
    --shadow-xs: 0 1px 2px rgba(0,0,0,0.3);
    --shadow-md: 0 2px 4px rgba(0,0,0,0.3), 0 8px 20px rgba(0,0,0,0.3);
    --shadow-lg: 0 4px 8px rgba(0,0,0,0.35), 0 24px 56px rgba(0,0,0,0.5);
    color-scheme: dark;
  }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100dvh;
  font-family: var(--font-sans, 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif);
  font-size: 0.9375rem; line-height: 1.6;
  color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { text-wrap: balance; margin: 0; }
p { text-wrap: pretty; }
a { color: var(--accent); }
img { max-width: 100%; height: auto; display: block; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* ── Brand mark (logo recolored via CSS mask) ───────────────────── */
.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; color: inherit; }
.brand-mark { position: relative; width: 30px; height: 30px; flex-shrink: 0; }
.brand-mark img { width: 100%; height: 100%; object-fit: contain; }
/* Stock logo: navy on light surfaces, white on dark ones. */
.brand-mark .logo-on-dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brand-mark .logo-on-light { display: none; }
  :root:not([data-theme="light"]) .brand-mark .logo-on-dark { display: block; }
}
:root[data-theme="dark"] .brand-mark .logo-on-light { display: none; }
:root[data-theme="dark"] .brand-mark .logo-on-dark { display: block; }

/* Light / dark switch on public pages. */
.theme-toggle {
  display: inline-grid; place-items: center; width: 38px; height: 38px; padding: 0;
  border-radius: 999px; border: 1px solid var(--border); background: transparent;
  color: var(--text-2); font-size: 1rem; cursor: pointer;
  transition: background-color .15s var(--ease-out), color .15s var(--ease-out), border-color .15s var(--ease-out);
}
.theme-toggle:hover { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.theme-toggle .bi-sun { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .bi-moon { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .bi-sun { display: inline-block; }
}
:root[data-theme="dark"] .theme-toggle .bi-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .bi-sun { display: inline-block; }
.brand-name { font-weight: 650; font-size: 1rem; letter-spacing: -0.015em; white-space: nowrap; }

/* ── Buttons ────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  height: 44px; padding: 0 1.25rem; border-radius: 999px;
  font: inherit; font-size: 0.9rem; font-weight: 550; white-space: nowrap;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: background-color .15s var(--ease-out), border-color .15s var(--ease-out),
              color .15s var(--ease-out), transform .1s var(--ease-out), box-shadow .15s var(--ease-out);
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--navy); color: #fff; box-shadow: var(--shadow-xs); }
.btn-primary:hover { background: var(--navy-2); color: #fff; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .btn-primary { background: #e7ecf3; color: #0b1320; }
  :root:not([data-theme="light"]) .btn-primary:hover { background: #ffffff; color: #0b1320; }
}
:root[data-theme="dark"] .btn-primary { background: #e7ecf3; color: #0b1320; }
:root[data-theme="dark"] .btn-primary:hover { background: #ffffff; color: #0b1320; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--surface); border-color: var(--text-2); }
.btn-block { width: 100%; }

/* ════════════════════════════════════════════════════════════════
   Sign-in layout: identity panel + form
   ════════════════════════════════════════════════════════════════ */
.auth { min-height: 100dvh; }

.auth-main {
  display: flex; flex-direction: column; min-height: 100dvh;
  padding: 1.25rem 1rem;
}
@media (min-width: 640px) { .auth-main { padding: 2rem 2.5rem; } }
.auth-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.auth-top .brand { color: var(--text); }
.auth-top-actions { display: flex; align-items: center; gap: 0.75rem; margin-left: auto; }
.auth-top-link { font-size: 0.85rem; color: var(--text-2); text-decoration: none; display: inline-flex; gap: 0.35rem; align-items: center; }
.auth-top-link:hover { color: var(--text); }

.auth-card {
  width: 100%; max-width: 440px; margin: auto auto 0; padding: 2.5rem 0 1.5rem;
  animation: authIn .5s var(--ease-out) both;
}
@media (min-width: 640px) {
  .auth-card {
    padding: 2.5rem 2.25rem 2rem; background: var(--surface);
    border: 1px solid var(--border); border-radius: var(--r-xl); box-shadow: var(--shadow-md);
  }
}
.auth-about { text-align: center; font-size: 0.8rem; color: var(--muted); margin: 1.25rem auto auto; padding-bottom: 2rem; max-width: 400px; }
.auth-about a { color: var(--text-2); font-weight: 550; }
@keyframes authIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.login-heading { font-size: 1.6rem; font-weight: 600; letter-spacing: -0.03em; line-height: 1.2; color: var(--text); }
.login-sub { color: var(--text-2); margin: 0.5rem 0 1.75rem; font-size: 0.925rem; }

/* Alerts */
.login-error, .login-alert {
  display: flex; align-items: flex-start; gap: 0.55rem;
  border-radius: var(--r-md); padding: 0.75rem 0.9rem;
  font-size: 0.85rem; margin-bottom: 1.25rem; line-height: 1.45;
}
.login-error, .login-alert.error { background: var(--danger-bg); color: var(--danger); }
.login-alert.success { background: var(--success-bg); color: var(--success); }
.login-error i, .login-alert i { flex-shrink: 0; margin-top: 0.1rem; }
.login-error { animation: shake .35s ease; }
@keyframes shake { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }

/* Fields */
.field-group { margin-bottom: 1.1rem; }
.field-label { display: block; font-size: 0.85rem; font-weight: 550; color: var(--text); margin-bottom: 0.4rem; }
.field-hint { display: block; font-size: 0.78rem; color: var(--muted); margin-top: 0.35rem; }
.field-wrap { position: relative; }
.field-icon {
  position: absolute; left: 0.85rem; top: 50%; transform: translateY(-50%);
  color: var(--muted); font-size: 0.95rem; pointer-events: none; transition: color .15s;
}
.field-input {
  width: 100%; height: 46px; padding: 0 2.6rem 0 2.5rem;
  border: 1px solid var(--border-strong); border-radius: var(--r-md);
  font: inherit; font-size: 0.925rem; color: var(--text); background: var(--surface);
  outline: none; appearance: none;
  transition: border-color .15s, box-shadow .15s;
}
.field-input::placeholder { color: var(--muted); opacity: 0.8; }
.field-input:hover { border-color: var(--text-2); }
.field-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-dim); }
.field-wrap:focus-within .field-icon { color: var(--accent); }
.field-input.has-error { border-color: var(--danger); }
.field-toggle {
  position: absolute; right: 0.4rem; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; display: grid; place-items: center;
  background: none; border: none; border-radius: 8px; cursor: pointer;
  color: var(--muted); font-size: 0.95rem;
}
.field-toggle:hover { color: var(--text); background: var(--surface-2); }

.login-options { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 0.25rem 0 1.5rem; }
.check-label { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; color: var(--text-2); cursor: pointer; user-select: none; }
.check-box { width: 16px; height: 16px; accent-color: var(--navy); cursor: pointer; margin: 0; }
.forgot-link { font-size: 0.85rem; font-weight: 550; color: var(--accent); text-decoration: none; }
.forgot-link:hover { text-decoration: underline; }

.btn-signin {
  width: 100%; height: 46px; border: none; border-radius: 999px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font: inherit; font-size: 0.925rem; font-weight: 550; text-decoration: none;
  background: var(--navy); color: #fff; box-shadow: var(--shadow-xs);
  transition: background-color .15s var(--ease-out), transform .1s var(--ease-out);
}
.btn-signin:hover { background: var(--navy-2); color: #fff; }
.btn-signin:active { transform: scale(0.98); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .btn-signin { background: #e7ecf3; color: #0b1320; }
  :root:not([data-theme="light"]) .btn-signin:hover { background: #fff; color: #0b1320; }
  :root:not([data-theme="light"]) .check-box { accent-color: #8ea6e6; }
}
:root[data-theme="dark"] .btn-signin { background: #e7ecf3; color: #0b1320; }
:root[data-theme="dark"] .btn-signin:hover { background: #fff; color: #0b1320; }
:root[data-theme="dark"] .check-box { accent-color: #8ea6e6; }
.back-link {
  display: inline-flex; align-items: center; gap: 0.4rem; margin-top: 1.25rem;
  font-size: 0.85rem; color: var(--text-2); text-decoration: none;
}
.back-link:hover { color: var(--text); }

.auth-secure {
  display: flex; align-items: center; gap: 0.5rem; margin-top: 1.75rem; padding-top: 1.25rem;
  border-top: 1px solid var(--border); font-size: 0.8rem; color: var(--muted);
}
.auth-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1.25rem;
  font-size: 0.8rem; color: var(--muted);
}
.auth-bottom nav { display: flex; gap: 1.25rem; }
.auth-bottom a { color: var(--muted); text-decoration: none; }
.auth-bottom a:hover { color: var(--text); text-decoration: underline; }

/* ════════════════════════════════════════════════════════════════
   Marketing / legal pages
   ════════════════════════════════════════════════════════════════ */
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 640px) { .wrap { padding: 0 2rem; } }

.site-nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.site-nav.scrolled { border-bottom-color: var(--border); }
.site-nav .wrap { height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.site-nav .brand { color: var(--text); }
.site-nav-links { display: flex; align-items: center; gap: 0.25rem; }
.site-nav-links a:not(.btn) {
  display: none; padding: 0.5rem 0.8rem; border-radius: 999px;
  font-size: 0.875rem; color: var(--text-2); text-decoration: none;
}
.site-nav-links a:not(.btn):hover { color: var(--text); background: var(--surface); }
@media (min-width: 768px) { .site-nav-links a:not(.btn) { display: inline-block; } }
.site-nav .btn { height: 38px; padding: 0 1rem; font-size: 0.85rem; }
.site-nav .theme-toggle { margin: 0 0.35rem 0 0.25rem; }

/* Hero */
.hero { padding: 3.5rem 0 2rem; }
@media (min-width: 900px) { .hero { padding: 5rem 0 2.5rem; } }
.hero-grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 3.5rem; } }
.hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem); line-height: 1.05;
  font-weight: 600; letter-spacing: -0.045em; color: var(--text);
}
.hero-lede { font-size: 1.1rem; color: var(--text-2); margin: 1.25rem 0 0; max-width: 34rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

.shot {
  position: relative; border-radius: var(--r-xl); overflow: hidden;
  border: 1px solid var(--border); background: var(--surface);
  box-shadow: var(--shadow-lg);
}
.shot img { width: 100%; height: auto; }

/* Light and dark screenshots: show the one matching the page theme. */
.img-dark { display: none !important; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .img-light { display: none !important; }
  :root:not([data-theme="light"]) .img-dark { display: block !important; }
}
:root[data-theme="dark"] .img-light { display: none !important; }
:root[data-theme="dark"] .img-dark { display: block !important; }
.shot-tall { aspect-ratio: auto; }
.hero-visual { position: relative; }
.hero-visual { padding-bottom: 2rem; }
.hero-visual .shot-phone {
  position: absolute; right: -0.75rem; bottom: 0; width: 26%; max-width: 180px; aspect-ratio: 9 / 17;
  border-radius: 1.5rem; border: 6px solid #0e1a2b; outline: 1px solid var(--border-strong); box-shadow: var(--shadow-lg); overflow: hidden;
  background: #0e1a2b;
}
.hero-visual .shot-phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
@media (max-width: 899px) { .hero-visual .shot-phone { right: 0.5rem; bottom: -1.5rem; width: 34%; } }

/* Sections */
.section { padding: 4.5rem 0; }
@media (min-width: 900px) { .section { padding: 6.5rem 0; } }
.section-head { max-width: 40rem; margin-bottom: 2.75rem; }
.section-head h2 {
  font-size: clamp(1.65rem, 3vw, 2.3rem); line-height: 1.15;
  font-weight: 600; letter-spacing: -0.035em; color: var(--text);
}
.section-head p { color: var(--text-2); font-size: 1.025rem; margin: 0.9rem 0 0; }
.eyebrow { display: inline-block; font-size: 0.8rem; font-weight: 600; color: var(--accent); margin-bottom: 0.9rem; }

/* Module bento: 6-column grid, tiles span 2 or 4 */
.bento { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 768px) {
  .bento { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .bento > .span-2 { grid-column: span 2; }
  .bento > .span-4 { grid-column: span 4; }
}
.tile {
  position: relative; overflow: hidden; border-radius: var(--r-xl);
  background: var(--surface); border: 1px solid var(--border);
  padding: 1.5rem; display: flex; flex-direction: column; gap: 0.5rem; min-height: 220px;
}
.tile h3 { font-size: 1.05rem; font-weight: 600; letter-spacing: -0.015em; color: var(--text); }
.tile p { margin: 0; color: var(--text-2); font-size: 0.9rem; max-width: 34ch; }
.tile-icon {
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  background: var(--accent-dim); color: var(--accent); font-size: 1.05rem; margin-bottom: 0.75rem;
}
.tile-navy { background: var(--navy); border-color: var(--navy); }
.tile-navy h3 { color: #fff; }
.tile-navy p { color: #b8c3d6; }
.tile-navy .tile-icon { background: rgba(255,255,255,0.1); color: #fff; }
.tile-icon.chip-blue    { background: var(--info-bg);    color: var(--info); }
.tile-icon.chip-indigo  { background: var(--accent-dim); color: var(--accent); }
.tile-icon.chip-amber   { background: var(--warning-bg); color: var(--warning); }
.tile-icon.chip-green   { background: var(--success-bg); color: var(--success); }
.tile-icon.chip-red     { background: var(--danger-bg);  color: var(--danger); }
.tile-icon.chip-neutral { background: var(--neutral-bg); color: var(--text-2); }
.tile-points {
  margin: auto 0 0; padding-top: 1.25rem; display: grid; gap: 0;
}
.tile-points div {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 0.6rem 0; border-top: 1px solid var(--border); font-size: 0.875rem;
}
.tile-points dt { font-weight: 450; color: var(--text-2); display: flex; gap: 0.55rem; align-items: center; }
.tile-points dt i { color: var(--muted); }
.tile-points dd { margin: 0; font-family: var(--font-mono); font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }
.tile-points dd::after { content: " pts"; font-family: var(--font-sans, inherit); font-weight: 450; color: var(--muted); font-size: 0.8rem; }
.tile-facts { list-style: none; margin: auto 0 0; padding: 1.25rem 0 0; display: grid; gap: 0.5rem; }
.tile-facts li { display: flex; gap: 0.5rem; align-items: center; color: #dbe2ee; font-size: 0.875rem; }
.tile-facts i { color: #8fd0a8; font-size: 1rem; }
.tile-shot { padding-bottom: 0; }
.tile-shot .tile-img {
  margin: 1.25rem -0.25rem 0 0; border-radius: 12px 12px 0 0; overflow: hidden; max-height: 300px;
  border: 1px solid var(--border); border-bottom: none; box-shadow: var(--shadow-md);
}
.tile-tint { background: linear-gradient(160deg, var(--accent-dim), transparent 70%), var(--surface); }

/* QR flow: steps with real screenshot */
.split { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4.5rem; } }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; }
.steps li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 1rem; }
.steps .num {
  width: 40px; height: 40px; border-radius: 999px; display: grid; place-items: center;
  border: 1px solid var(--border-strong); font-family: var(--font-mono); font-size: 0.85rem; color: var(--text-2);
}
.steps h3 { font-size: 1rem; font-weight: 600; color: var(--text); letter-spacing: -0.01em; }
.steps p { margin: 0.25rem 0 0; color: var(--text-2); font-size: 0.925rem; }
.phone-pair { display: flex; gap: 1rem; justify-content: center; }
.phone-pair .shot { width: 48%; max-width: 260px; aspect-ratio: 9 / 17; border-radius: 1.75rem; border: 7px solid #0e1a2b; background: #0e1a2b; outline: 1px solid var(--border-strong); }
.phone-pair .shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.phone-pair .shot:nth-child(2) { margin-top: 2.5rem; }

/* Trust band */
.trust { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.trust-grid { display: grid; gap: 2rem; }
@media (min-width: 768px) { .trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem 4rem; } }
.trust-item { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 1rem; }
.trust-item i { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-dim); color: var(--accent); font-size: 1.05rem; }
.trust-item h3 { font-size: 1rem; font-weight: 600; color: var(--text); }
.trust-item p { margin: 0.3rem 0 0; color: var(--text-2); font-size: 0.925rem; }

/* Closing CTA */
.cta-band {
  border-radius: var(--r-xl); background: var(--navy); color: #fff; overflow: hidden; position: relative; isolation: isolate;
  padding: 3rem 1.5rem; display: grid; gap: 1.5rem; align-items: center;
}
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(80% 90% at 100% 0%, rgba(84,120,204,0.3), transparent 60%); }
@media (min-width: 768px) { .cta-band { grid-template-columns: minmax(0, 1fr) auto; padding: 3.5rem; } }
.cta-band h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 600; letter-spacing: -0.03em; }
.cta-band p { color: #b8c3d6; margin: 0.6rem 0 0; max-width: 36rem; }
.cta-band .btn-primary { background: #fff; color: var(--navy); }
.cta-band .btn-primary:hover { background: #e7ecf3; color: var(--navy); }

/* Footer */
.site-foot { padding: 2.5rem 0 3rem; color: var(--muted); font-size: 0.85rem; }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.site-foot a { color: var(--text-2); text-decoration: none; }
.site-foot a:hover { color: var(--text); text-decoration: underline; }

/* Legal / prose pages */
.prose { max-width: 44rem; margin: 0 auto; padding: 3.5rem 0 5rem; }
.prose h1 { font-size: clamp(2rem, 4vw, 2.6rem); font-weight: 600; letter-spacing: -0.04em; line-height: 1.1; }
.prose .updated { color: var(--muted); font-size: 0.875rem; margin: 0.75rem 0 2.5rem; }
.prose h2 { font-size: 1.2rem; font-weight: 600; letter-spacing: -0.015em; margin: 2.5rem 0 0.75rem; }
.prose p, .prose li { color: var(--text-2); }
.prose ul { padding-left: 1.2rem; }
.prose li { margin: 0.35rem 0; }
.prose strong { color: var(--text); font-weight: 600; }

/* Scroll reveal (progressive: content is visible without JS) */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
  .js .reveal.in { opacity: 1; transform: none; }
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .tile-navy, :root:not([data-theme="light"]) .cta-band { background: #16294d; border-color: #243c66; }
}
:root[data-theme="dark"] .tile-navy, :root[data-theme="dark"] .cta-band { background: #16294d; border-color: #243c66; }
