/* ============================================================
 * SMARCH 3 — Public pages design system (civic / institutional-premium)
 * Source of truth: Claude Design project "SMARCH 3" — smarch3/smarch3.css
 * Light, flat, navy-led. No gradients, no glassmorphism, no glow.
 * Loaded by templates/public/ pages (behind FEATURE_PUBLIC_REDESIGN) and by
 * the redesigned team portal templates/team_portal/s3/ (behind
 * FEATURE_PORTAL_REDESIGN, with smarch3-portal.css on top).
 * Old dark surfaces keep smarch-premium.css until their cutover.
 * ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Libre+Caslon+Text:ital,wght@0,400;0,700;1,400&family=Newsreader:ital,wght@0,400;0,500;1,400;1,500;1,600&display=swap');

:root {
  /* === BRAND COLOR === */
  --s3-navy:        #1A2540;   /* ink + the interactive workhorse: headings, buttons, links, focus */
  --s3-navy-hover:  #243154;   /* navy button/link hover */
  --s3-navy-soft:   #2E3A57;   /* lifted navy on dark panels */
  --s3-gold:        #D4AF37;   /* ACCENT ONLY — thin rules, active underline, numerals, markers */
  --s3-gold-soft:   rgba(212,175,55,0.16);

  /* === SURFACES (light-first, gently warm) === */
  --s3-bg:          #F8F7F4;   /* warm near-white — app + page background */
  --s3-surface:     #FFFFFF;   /* cards, inputs */
  --s3-panel:       #EFECE4;   /* pale warm grey — info panels, table body rows, stat blocks */
  --s3-panel-cool:  #E5E7EB;   /* cooler grey alt */

  /* === TEXT === */
  --s3-text:        #1A1A1A;   /* body copy on white */
  --s3-text-muted:  #5A5F6B;   /* muted slate — secondary text, captions, labels */
  --s3-text-faint:  #8A8F99;   /* tertiary / metadata */
  --s3-on-navy:     #FFFFFF;   /* text on navy fills */
  --s3-on-navy-dim: rgba(255,255,255,0.72);

  /* === BORDERS / HAIRLINES === */
  --s3-border:      #E7E4DD;   /* warm grey hairline — the default divider/border */
  --s3-border-strong:#D8D4CB;  /* slightly stronger hairline */
  --s3-border-navy: rgba(26,37,64,0.16);

  /* === MUTED FUNCTIONAL STATES (desaturated, never neon) === */
  --s3-success:     #3F7D5A;   --s3-success-bg: #E9F1EC;
  --s3-warning:     #B5882E;   --s3-warning-bg: #F5EEDD;  /* deep amber, distinct from brand gold */
  --s3-error:       #B3433A;   --s3-error-bg:   #F6E8E6;
  --s3-info:        #5A6B86;   --s3-info-bg:    #EAEDF2;  /* muted slate-blue, NOT electric blue */

  /* === ELEVATION — flat: hairline + a whisper of shadow, no glow, no glass === */
  --s3-shadow:      0 1px 2px rgba(26,37,64,0.04), 0 1px 3px rgba(26,37,64,0.06);
  --s3-shadow-md:   0 2px 4px rgba(26,37,64,0.05), 0 4px 12px rgba(26,37,64,0.07);
  --s3-shadow-hover:0 3px 6px rgba(26,37,64,0.06), 0 8px 20px rgba(26,37,64,0.09);

  /* === RADII — modest, institutional. No big pills. === */
  --s3-radius:      10px;   /* cards, panels */
  --s3-radius-sm:   6px;    /* buttons, inputs, chips */
  --s3-radius-xs:   4px;

  /* === SPACING === */
  --s3-section-pad: 96px;
  --s3-gutter:      24px;
  --s3-container:   1180px;

  /* === MOTION — functional only === */
  --s3-transition:  all 0.2s ease;

  /* === TYPE FAMILIES — Cambria-first serif stacks (design update 2 Jul 2026) === */
  --s3-font-display: Cambria, 'Libre Caslon Text', Georgia, 'Times New Roman', serif; /* display, sparing */
  --s3-font-accent:  Cambria, 'Newsreader', Georgia, serif;                           /* italic taglines, numerals */
  --s3-font-body:   'Inter', system-ui, -apple-system, sans-serif;           /* all working UI */

  /* === TYPE SCALE === */
  --s3-fs-hero:     3.4rem;
  --s3-fs-section:  2.3rem;
  --s3-fs-h1:       2rem;
  --s3-fs-h2:       1.5rem;
  --s3-fs-h3:       1.2rem;
  --s3-fs-lead:     1.2rem;
  --s3-fs-body:     1rem;
  --s3-fs-small:    0.875rem;
  --s3-fs-xs:       0.75rem;
}

/* ============================================================
 * BASE
 * ============================================================ */
html.s3-html, body.s3-body {
  margin: 0;
  padding: 0;
  font-family: var(--s3-font-body);
  background: var(--s3-bg);
  color: var(--s3-text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
body.s3-body * { box-sizing: border-box; }

/* Plain low-specificity link rule ON PURPOSE — component classes like
   .s3-btn-primary must be able to override the colour. This sheet only
   loads on fully s3-styled surfaces (public pages + s3 portal), so the
   bare selector cannot leak into old dark templates. */
a { color: var(--s3-navy); text-decoration: none; transition: var(--s3-transition); }
a:hover { color: var(--s3-navy-hover); }

.s3-container { max-width: var(--s3-container); margin: 0 auto; padding: 0 var(--s3-gutter); }

.s3-icon { width: 16px; height: 16px; flex-shrink: 0; }

/* Skip link (a11y) */
.s3-skip { position: absolute; left: -9999px; top: 0; background: var(--s3-navy); color: #fff; padding: 10px 18px; z-index: 100; border-radius: 0 0 var(--s3-radius-sm) 0; font-size: var(--s3-fs-small); }
.s3-skip:focus { left: 0; color: #fff; }

/* ============================================================
 * WORDMARK — solid navy serif, title case. No gradient.
 * (Open brand call for Rey: swap back to production logo if preferred.)
 * ============================================================ */
.s3-wordmark {
  font-family: var(--s3-font-display);
  font-weight: 700;
  color: var(--s3-navy);
  letter-spacing: -0.01em;
  display: inline-block;
  line-height: 1;
}
a.s3-wordmark:hover { color: var(--s3-navy); }

/* ============================================================
 * TYPE HELPERS
 * ============================================================ */
.s3-display   { font-family: var(--s3-font-display); font-weight: 700; color: var(--s3-navy); line-height: 1.1; letter-spacing: -0.01em; }
.s3-accent    { font-family: var(--s3-font-accent); font-style: italic; color: var(--s3-navy); }
.s3-tagline   { font-family: var(--s3-font-accent); font-style: italic; color: var(--s3-text-muted); }
.s3-muted     { color: var(--s3-text-muted); }
.s3-faint     { color: var(--s3-text-faint); }

.s3-kicker {
  font-family: var(--s3-font-body);
  font-size: var(--s3-fs-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--s3-text-muted);
}

/* Section header — caps navy Inter bold + thin gold rule */
.s3-section-header {
  font-family: var(--s3-font-body);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--s3-navy);
  font-size: var(--s3-fs-small);
  padding-bottom: 10px;
  margin: 0 0 22px;
  border-bottom: 2px solid var(--s3-gold);
}

/* ============================================================
 * BUTTONS — navy is the fill; gold is NEVER a button.
 * ============================================================ */
.s3-btn {
  font-family: var(--s3-font-body);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1;
  padding: 13px 22px;
  border-radius: var(--s3-radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--s3-transition);
  text-decoration: none;
}
.s3-btn svg { width: 16px; height: 16px; }

.s3-btn-primary { background: var(--s3-navy); color: var(--s3-on-navy); border-color: var(--s3-navy); }
.s3-btn-primary:hover { background: var(--s3-navy-hover); color: var(--s3-on-navy); }

.s3-btn-secondary { background: var(--s3-surface); color: var(--s3-navy); border-color: var(--s3-border-strong); }
.s3-btn-secondary:hover { border-color: var(--s3-navy); background: var(--s3-surface); color: var(--s3-navy); }

.s3-btn-ghost { background: transparent; color: var(--s3-navy); border-color: transparent; padding-left: 8px; padding-right: 8px; }
.s3-btn-ghost:hover { color: var(--s3-navy-hover); }

/* Focus ring — navy, accessible */
body.s3-body .s3-btn:focus-visible,
body.s3-body a:focus-visible,
body.s3-body button:focus-visible,
body.s3-body input:focus-visible,
body.s3-body textarea:focus-visible,
body.s3-body select:focus-visible {
  outline: 2px solid var(--s3-navy);
  outline-offset: 2px;
}

/* ============================================================
 * CARDS / PANELS — white, hairline border, whisper of shadow. No glass.
 * ============================================================ */
.s3-card {
  background: var(--s3-surface);
  border: 1px solid var(--s3-border);
  border-radius: var(--s3-radius);
  padding: 32px 28px;
  box-shadow: var(--s3-shadow);
  transition: var(--s3-transition);
}
.s3-card-hover:hover { box-shadow: var(--s3-shadow-hover); transform: translateY(-2px); }

.s3-panel {
  background: var(--s3-panel);
  border: 1px solid var(--s3-border);
  border-radius: var(--s3-radius);
  padding: 22px 26px;
}

/* Numbered steps — gold serif numerals */
.s3-numeral {
  font-family: var(--s3-font-accent);
  font-weight: 700;
  font-style: italic;
  color: var(--s3-gold);
  font-size: 2.6rem;
  line-height: 1;
  display: block;
}

/* Pull-quote — gold left bar + italic serif navy */
.s3-pullquote {
  border-left: 3px solid var(--s3-gold);
  padding: 4px 0 4px 22px;
  margin: 0;
  font-family: var(--s3-font-accent);
  font-style: italic;
  color: var(--s3-navy);
  font-size: var(--s3-fs-lead);
  line-height: 1.4;
}

/* Table — navy header, pale-grey body rows */
.s3-table { width: 100%; border-collapse: collapse; font-size: var(--s3-fs-small); }
.s3-table thead th {
  background: var(--s3-navy);
  color: var(--s3-on-navy);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: var(--s3-fs-xs);
  text-align: left;
  padding: 12px 16px;
}
.s3-table tbody td { background: var(--s3-panel); padding: 12px 16px; border-bottom: 2px solid var(--s3-bg); }
.s3-table tbody td:first-child { color: var(--s3-navy); font-weight: 600; }

/* Chips */
.s3-chip {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: var(--s3-fs-xs); font-weight: 600;
  letter-spacing: 0.04em;
  padding: 5px 12px;
  border-radius: var(--s3-radius-sm);
  border: 1px solid var(--s3-border-strong);
  color: var(--s3-text-muted);
  background: var(--s3-surface);
}
.s3-chip .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--s3-gold); }
.s3-chip .dot.idle { background: var(--s3-text-faint); }

/* Alerts (Django messages) */
.s3-alert { border-radius: var(--s3-radius-sm); padding: 12px 16px; font-size: var(--s3-fs-small); border: 1px solid var(--s3-border-strong); background: var(--s3-surface); color: var(--s3-text); }
.s3-alert-success { background: var(--s3-success-bg); border-color: var(--s3-success); color: var(--s3-success); }
.s3-alert-warning { background: var(--s3-warning-bg); border-color: var(--s3-warning); color: var(--s3-warning); }
.s3-alert-error   { background: var(--s3-error-bg);   border-color: var(--s3-error);   color: var(--s3-error); }
.s3-alert-danger  { background: var(--s3-error-bg);   border-color: var(--s3-error);   color: var(--s3-error); }
.s3-alert-info    { background: var(--s3-info-bg);    border-color: var(--s3-info);    color: var(--s3-info); }
.s3-messages { padding-top: 18px; display: grid; gap: 10px; }

/* Inputs */
.s3-input {
  width: 100%;
  font-family: var(--s3-font-body);
  font-size: var(--s3-fs-body);
  color: var(--s3-text);
  background: var(--s3-surface);
  border: 1px solid var(--s3-border-strong);
  border-radius: var(--s3-radius-sm);
  padding: 12px 14px;
  transition: var(--s3-transition);
}
.s3-input:focus { outline: none; border-color: var(--s3-navy); box-shadow: 0 0 0 3px rgba(26,37,64,0.10); }
.s3-input::placeholder { color: var(--s3-text-faint); }

/* Active-tab underline — the one place gold does interactive work */
.s3-tab-active { box-shadow: inset 0 -2px 0 var(--s3-gold); color: var(--s3-navy); font-weight: 600; }

/* ============================================================
 * NAV (sticky top bar)
 * ============================================================ */
.s3-nav { background: rgba(248,247,244,0.92); backdrop-filter: blur(6px); border-bottom: 1px solid var(--s3-border); position: sticky; top: 0; z-index: 40; }
.s3-nav-inner { height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.s3-nav-brand { font-size: 24px; }
.s3-nav-links { display: flex; align-items: center; gap: 26px; }
.s3-nav-link { font-size: 0.92rem; font-weight: 500; color: var(--s3-text); padding: 4px 0; }
.s3-nav-link:hover { color: var(--s3-navy); }
.s3-nav-link.active { color: var(--s3-navy); font-weight: 600; box-shadow: inset 0 -2px 0 var(--s3-gold); }
.s3-nav-toggle { display: none; background: none; border: none; color: var(--s3-navy); cursor: pointer; padding: 8px; }

@media (max-width: 920px) {
  .s3-nav-links {
    display: none;
    position: absolute;
    top: 70px; left: 0; right: 0;
    background: var(--s3-bg);
    border-bottom: 1px solid var(--s3-border);
    flex-direction: column;
    align-items: flex-start;
    padding: 18px var(--s3-gutter) 24px;
    gap: 16px;
    box-shadow: var(--s3-shadow-md);
  }
  .s3-nav-links.open { display: flex; }
  .s3-nav-toggle { display: inline-flex; }
}

/* ============================================================
 * LANDING PAGE SECTIONS
 * ============================================================ */
.section { padding: 92px 0; }
@media (max-width: 760px) { .section { padding: 60px 0; } }

/* --- HERO --- */
.hero { padding: 76px 0 84px; }
.hero-inner { display: grid; grid-template-columns: 1fr 350px; gap: 72px; align-items: end; }
.hero-eyebrow { margin-bottom: 28px; }
.hero-title {
  font-family: var(--s3-font-display);
  font-size: clamp(2.5rem, 6vw, 4.6rem);
  line-height: 1.1;
  letter-spacing: -0.018em;
  font-weight: 700;
  margin: 0 0 26px;
  color: var(--s3-navy);
  max-width: 880px;
  text-wrap: balance;
}
.hero-title .line1 { display: block; }
.hero-title .line2 { display: block; font-family: var(--s3-font-accent); font-style: italic; font-weight: 500; color: var(--s3-navy); margin-top: 0.06em; line-height: 1.15; }
.hero-lead { color: var(--s3-text-muted); font-size: 1.12rem; line-height: 1.65; max-width: 560px; margin: 0 0 32px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 26px; }
.hero-meta { display: flex; gap: 20px; flex-wrap: wrap; color: var(--s3-text-muted); font-size: 0.85rem; }
.hero-meta b { color: var(--s3-navy); font-weight: 600; }
.hero-meta .sep { color: var(--s3-border-strong); }

/* Hero side card — batch status */
.cohort-card { background: var(--s3-surface); border: 1px solid var(--s3-border); border-radius: var(--s3-radius); padding: 26px 24px; box-shadow: var(--s3-shadow); }
.cohort-card .ck-label { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--s3-text-muted); font-weight: 600; padding-bottom: 12px; border-bottom: 2px solid var(--s3-gold); margin-bottom: 8px; }
.cohort-card .ck-title { font-family: var(--s3-font-display); font-size: 1.25rem; font-weight: 700; line-height: 1.25; color: var(--s3-navy); margin: 14px 0 16px; }
.cohort-card .ck-row { display: flex; align-items: baseline; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--s3-border); font-size: 0.9rem; color: var(--s3-text-muted); }
.cohort-card .ck-row:last-of-type { border-bottom: none; }
.cohort-card .ck-row .v { color: var(--s3-navy); font-weight: 700; font-variant-numeric: tabular-nums; }
.cohort-card .ck-foot { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--s3-border); font-family: var(--s3-font-accent); font-style: italic; color: var(--s3-text-muted); font-size: 0.95rem; }

@media (max-width: 940px) {
  .hero { padding: 52px 0 64px; }
  .hero-inner { grid-template-columns: 1fr; gap: 34px; align-items: stretch; }
}

/* --- SECTION HEAD — caps navy label + gold rule, editorial two-col --- */
.section-head { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; margin-bottom: 52px; align-items: start; }
.section-head .label { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--s3-navy); padding-bottom: 10px; border-bottom: 2px solid var(--s3-gold); align-self: start; }
.section-head h2 { font-family: var(--s3-font-display); font-size: clamp(1.7rem, 3.2vw, 2.5rem); font-weight: 700; line-height: 1.16; letter-spacing: -0.008em; margin: 0 0 16px; color: var(--s3-navy); max-width: 720px; text-wrap: balance; }
.section-head h2 em { font-family: var(--s3-font-accent); font-style: italic; font-weight: 500; color: var(--s3-navy); }
.section-head p { color: var(--s3-text-muted); font-size: 1.04rem; line-height: 1.65; margin: 0; max-width: 580px; }
@media (max-width: 760px) { .section-head { grid-template-columns: 1fr; gap: 16px; margin-bottom: 34px; } .section-head .label { justify-self: start; } }

/* --- STEPS — gold serif numerals on flat white cards --- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step { background: var(--s3-surface); border: 1px solid var(--s3-border); border-radius: var(--s3-radius); padding: 30px 28px 26px; box-shadow: var(--s3-shadow); transition: var(--s3-transition); }
.step:hover { transform: translateY(-2px); box-shadow: var(--s3-shadow-hover); }
.step-num { font-family: var(--s3-font-accent); font-style: italic; font-weight: 700; color: var(--s3-gold); font-size: 2.6rem; line-height: 1; margin-bottom: 16px; }
.step-title { font-family: var(--s3-font-display); font-weight: 700; font-size: 1.3rem; margin: 0 0 10px; line-height: 1.2; color: var(--s3-navy); }
.step-text { color: var(--s3-text-muted); font-size: 0.95rem; line-height: 1.65; margin: 0 0 16px; }
.step-meta { padding-top: 14px; border-top: 1px solid var(--s3-border); font-size: 0.74rem; color: var(--s3-text-faint); letter-spacing: 0.04em; text-transform: uppercase; font-weight: 600; }
@media (max-width: 880px) { .steps { grid-template-columns: 1fr; gap: 14px; } }

/* --- PROMISE BAND — solid navy breath, white serif, no gradient/glow --- */
.promise { padding: 96px 0; background: var(--s3-navy); }
.promise-inner { max-width: 900px; margin: 0 auto; text-align: center; padding: 0 24px; }
.promise blockquote { margin: 0; font-family: var(--s3-font-accent); font-size: clamp(1.55rem, 3.3vw, 2.4rem); line-height: 1.3; font-weight: 500; font-style: italic; color: #fff; letter-spacing: -0.005em; }
.promise blockquote .em2 { color: #fff; font-style: italic; display: inline-block; border-bottom: 2px solid var(--s3-gold); padding-bottom: 4px; }
.promise cite { display: block; margin-top: 26px; font-style: normal; font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--s3-on-navy-dim); font-weight: 600; font-family: var(--s3-font-body); }
@media (max-width: 760px) { .promise { padding: 60px 0; } }

/* --- WHO IS IT FOR --- */
.audience-2 { display: grid; grid-template-columns: 1.55fr 1fr; gap: 22px; align-items: stretch; }
@media (max-width: 880px) { .audience-2 { grid-template-columns: 1fr; gap: 14px; } }
.audience-primary { background: var(--s3-surface); border: 1px solid var(--s3-border); border-top: 3px solid var(--s3-gold); border-radius: var(--s3-radius); padding: 40px 38px; box-shadow: var(--s3-shadow); }
.audience-primary .eyebrow, .audience-secondary .eyebrow { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--s3-text-muted); font-weight: 600; margin-bottom: 16px; }
.audience-primary h3 { font-family: var(--s3-font-display); font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 700; line-height: 1.2; margin: 0 0 14px; color: var(--s3-navy); letter-spacing: -0.005em; }
.audience-primary p { color: var(--s3-text-muted); line-height: 1.7; margin: 0 0 22px; font-size: 1rem; }
.audience-list { list-style: none; padding: 0; margin: 0 0 26px; }
.audience-list li { display: flex; align-items: flex-start; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--s3-border); color: var(--s3-text); font-size: 0.95rem; line-height: 1.5; }
.audience-list li:last-child { border-bottom: none; }
.audience-list li svg { width: 17px; height: 17px; color: var(--s3-gold); flex-shrink: 0; margin-top: 3px; }
.audience-secondary { background: var(--s3-panel); border: 1px solid var(--s3-border); border-radius: var(--s3-radius); padding: 32px 28px; display: flex; flex-direction: column; justify-content: space-between; }
.audience-secondary h4 { font-family: var(--s3-font-display); font-size: 1.25rem; font-weight: 700; line-height: 1.25; margin: 0 0 12px; color: var(--s3-navy); }
.audience-secondary p { color: var(--s3-text-muted); font-size: 0.92rem; line-height: 1.65; margin: 0 0 22px; }
.audience-secondary a { color: var(--s3-navy); font-size: 0.9rem; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; }
.audience-secondary a svg { width: 14px; height: 14px; }

/* --- FAQ --- */
.faq-list { max-width: 820px; }
details.faq { border-bottom: 1px solid var(--s3-border); padding: 20px 0; }
details.faq:first-of-type { border-top: 1px solid var(--s3-border); }
details.faq summary { cursor: pointer; font-family: var(--s3-font-body); font-size: 1.05rem; font-weight: 600; color: var(--s3-navy); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: '+'; font-family: var(--s3-font-accent); font-size: 1.5rem; color: var(--s3-gold); font-weight: 400; line-height: 1; transition: transform 0.2s ease; }
details.faq[open] summary::after { transform: rotate(45deg); }
details.faq p { color: var(--s3-text-muted); line-height: 1.7; margin: 12px 0 0; max-width: 720px; font-size: 0.97rem; }

/* --- FINAL CTA --- */
.final-cta { padding: 96px 0; text-align: center; }
.final-cta .s3-container { max-width: 760px; }
.final-cta h2 { font-family: var(--s3-font-display); font-size: clamp(1.9rem, 4vw, 2.9rem); font-weight: 700; line-height: 1.16; margin: 0 0 16px; letter-spacing: -0.008em; color: var(--s3-navy); }
.final-cta h2 em { font-family: var(--s3-font-accent); font-style: italic; font-weight: 500; color: var(--s3-navy); }
.final-cta p { color: var(--s3-text-muted); font-size: 1.08rem; line-height: 1.65; margin: 0 0 32px; }

/* ============================================================
 * CONTENT PAGES (About, How it works, FAQ, legal ...)
 * ============================================================ */
.page-head { padding: 72px 0 28px; }
.page-head .s3-kicker { display: block; margin-bottom: 14px; }
.page-head h1 { font-family: var(--s3-font-display); font-size: clamp(2.1rem, 4.5vw, 3.2rem); font-weight: 700; line-height: 1.12; letter-spacing: -0.012em; color: var(--s3-navy); margin: 0 0 18px; max-width: 800px; text-wrap: balance; }
.page-head h1 em { font-family: var(--s3-font-accent); font-style: italic; font-weight: 500; }
.page-head .lead { color: var(--s3-text-muted); font-size: 1.12rem; line-height: 1.65; max-width: 640px; margin: 0; }
@media (max-width: 760px) { .page-head { padding: 48px 0 16px; } }

.cards-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cards-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: stretch; }
@media (max-width: 980px) { .cards-4 { grid-template-columns: 1fr 1fr; } .cards-3 { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .cards-4 { grid-template-columns: 1fr; } .cards-2 { grid-template-columns: 1fr; } }

.info-card { background: var(--s3-surface); border: 1px solid var(--s3-border); border-radius: var(--s3-radius); padding: 28px 26px; box-shadow: var(--s3-shadow); }
.info-card h3 { font-family: var(--s3-font-display); color: var(--s3-navy); font-size: 1.35rem; line-height: 1.25; margin: 0 0 14px; }
.info-card h5 { font-family: var(--s3-font-display); color: var(--s3-navy); font-size: 1.05rem; line-height: 1.3; margin: 0 0 10px; }
.info-card p { color: var(--s3-text-muted); font-size: 0.95rem; line-height: 1.65; margin: 0 0 12px; }
.info-card p:last-child { margin-bottom: 0; }
.info-card ul { margin: 0; padding-left: 18px; color: var(--s3-text-muted); font-size: 0.95rem; line-height: 1.7; }
.info-card li { margin-bottom: 8px; }
.info-card li:last-child { margin-bottom: 0; }

.fact-list { margin: 0; padding: 0; list-style: none; }
.fact-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 18px; padding: 9px 0; border-bottom: 1px solid var(--s3-border); font-size: 0.92rem; color: var(--s3-text-muted); }
.fact-list li:last-child { border-bottom: none; }
.fact-list .v { color: var(--s3-navy); font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }

.chip-row { display: flex; flex-wrap: wrap; gap: 10px; }
.chip-row.center { justify-content: center; }

.cta-panel { background: var(--s3-surface); border: 1px solid var(--s3-border); border-radius: var(--s3-radius); padding: 44px 38px; box-shadow: var(--s3-shadow); text-align: center; }
.cta-panel h3 { font-family: var(--s3-font-display); color: var(--s3-navy); font-size: clamp(1.4rem, 2.6vw, 1.8rem); line-height: 1.2; margin: 0 0 12px; }
.cta-panel p { color: var(--s3-text-muted); font-size: 1rem; line-height: 1.65; max-width: 640px; margin: 0 auto 12px; }
.cta-panel .fine { font-size: 0.82rem; color: var(--s3-text-faint); margin-top: 18px; margin-bottom: 0; }

/* --- FORMS (contact etc.) --- */
.form-card { max-width: 720px; margin: 0 auto; }
.s3-field { margin-bottom: 22px; }
.s3-label { display: block; font-weight: 600; font-size: var(--s3-fs-small); color: var(--s3-navy); margin-bottom: 8px; }
.s3-label .req { color: var(--s3-error); }
.s3-help { display: block; margin-top: 6px; font-size: var(--s3-fs-xs); color: var(--s3-text-faint); }
ul.errorlist { list-style: none; margin: 8px 0 0; padding: 0; color: var(--s3-error); font-size: var(--s3-fs-small); }
.s3-form-error { margin-top: 8px; color: var(--s3-error); font-size: var(--s3-fs-small); display: none; }
textarea.s3-input { line-height: 1.6; resize: vertical; }

/* FAQ page extras */
.faq-search { max-width: 820px; margin-bottom: 40px; }
.faq-category { margin-bottom: 44px; }
.faq-category .faq-list { max-width: 820px; }

/* --- AUTH PAGES (signup / login / password flows) --- */
.auth-card { max-width: 560px; margin: 0 auto; }
.s3-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 560px) { .s3-field-row { grid-template-columns: 1fr; } }
.s3-check { display: flex; align-items: flex-start; gap: 10px; }
.s3-check + .s3-check { margin-top: 12px; }
.s3-check input[type="checkbox"] { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--s3-navy); flex: none; }
.s3-check label { font-size: var(--s3-fs-small); color: var(--s3-text); line-height: 1.55; }
.s3-check label a { font-weight: 600; }
.s3-btn-block { width: 100%; justify-content: center; }
.auth-links { margin-top: 22px; text-align: center; font-size: var(--s3-fs-small); color: var(--s3-text-muted); display: grid; gap: 8px; }
.auth-links a { font-weight: 600; }
.auth-links .sep { color: var(--s3-text-faint); margin: 0 8px; }
.s3-form-alert { border-radius: var(--s3-radius-sm); padding: 12px 16px; font-size: var(--s3-fs-small); background: var(--s3-error-bg); border: 1px solid var(--s3-error); color: var(--s3-error); margin-bottom: 22px; }

/* --- LEGAL PAGES (terms, privacy) --- */
.legal-meta { font-size: 0.85rem; color: var(--s3-text-faint); margin-top: 14px; }
.legal-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 56px; align-items: start; }
.legal-toc { position: sticky; top: 94px; }
.legal-toc .label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--s3-text-faint); padding-bottom: 10px; border-bottom: 2px solid var(--s3-gold); margin-bottom: 12px; }
.legal-toc a { display: block; font-size: 0.88rem; color: var(--s3-text-muted); padding: 5px 0; line-height: 1.45; }
.legal-toc a:hover { color: var(--s3-navy); }
.legal-body { max-width: 760px; }
.legal-body section { scroll-margin-top: 95px; margin-bottom: 36px; }
.legal-body section:last-child { margin-bottom: 0; }
.legal-body h2 { font-family: var(--s3-font-display); color: var(--s3-navy); font-size: 1.45rem; line-height: 1.25; margin: 0 0 14px; padding-top: 28px; border-top: 1px solid var(--s3-border); }
.legal-body section:first-child h2 { border-top: none; padding-top: 0; }
.legal-body h3 { font-size: 1rem; font-weight: 600; color: var(--s3-navy); margin: 22px 0 8px; }
.legal-body p { color: var(--s3-text-muted); font-size: 0.97rem; line-height: 1.7; margin: 0 0 14px; }
.legal-body p:last-child { margin-bottom: 0; }
.legal-body ul { margin: 0 0 14px; padding-left: 20px; color: var(--s3-text-muted); font-size: 0.95rem; line-height: 1.7; }
.legal-body li { margin-bottom: 6px; }
.legal-body li:last-child { margin-bottom: 0; }
.legal-body strong { color: var(--s3-navy); font-weight: 600; }
.legal-callout { background: var(--s3-panel); border: 1px solid var(--s3-border); border-left: 3px solid var(--s3-gold); border-radius: var(--s3-radius-sm); padding: 18px 22px; margin: 0 0 16px; }
.legal-callout > *:last-child { margin-bottom: 0; }
.legal-foot { margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--s3-border); font-size: 0.85rem; color: var(--s3-text-faint); }
@media (max-width: 900px) {
  .legal-layout { grid-template-columns: 1fr; gap: 28px; }
  .legal-toc { position: static; background: var(--s3-surface); border: 1px solid var(--s3-border); border-radius: var(--s3-radius); padding: 18px 22px; }
}

/* --- BLOG (list, tag, detail) --- */
.blog-filter { display: flex; gap: 10px; flex-wrap: wrap; max-width: 820px; margin: 0 0 44px; }
.blog-filter .s3-input { flex: 1 1 220px; width: auto; }
.blog-filter .s3-btn { flex: 0 0 auto; }

.cat-chip { display: inline-block; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; padding: 4px 10px; border-radius: var(--s3-radius-xs); border: 1px solid var(--s3-border-strong); background: var(--s3-panel); color: var(--s3-text-muted); }
.cat-chip.cat-news { background: var(--s3-info-bg); border-color: var(--s3-info); color: var(--s3-info); }
.cat-chip.cat-updates { background: var(--s3-success-bg); border-color: var(--s3-success); color: var(--s3-success); }
.cat-chip.cat-resources { background: var(--s3-warning-bg); border-color: var(--s3-warning); color: var(--s3-warning); }
.cat-chip.cat-success_stories { background: var(--s3-gold-soft); border-color: var(--s3-gold); color: #8a6d1c; }

.blog-featured { display: grid; grid-template-columns: 1.25fr 1fr; background: var(--s3-surface); border: 1px solid var(--s3-border); border-top: 3px solid var(--s3-gold); border-radius: var(--s3-radius); overflow: hidden; box-shadow: var(--s3-shadow); margin-bottom: 44px; transition: var(--s3-transition); }
.blog-featured:hover { box-shadow: var(--s3-shadow-hover); transform: translateY(-2px); }
.blog-featured-img { background-size: cover; background-position: center; background-color: var(--s3-panel); min-height: 280px; }
.blog-featured-body { padding: 34px 32px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.blog-featured-body h2 { font-family: var(--s3-font-display); font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 700; line-height: 1.2; color: var(--s3-navy); margin: 0; }
.blog-featured-body .excerpt { color: var(--s3-text-muted); font-size: 1rem; line-height: 1.65; margin: 0; }
@media (max-width: 800px) { .blog-featured { grid-template-columns: 1fr; } .blog-featured-img { min-height: 200px; } }

.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 980px) { .blog-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .blog-grid { grid-template-columns: 1fr; } }
.blog-card { display: flex; flex-direction: column; background: var(--s3-surface); border: 1px solid var(--s3-border); border-radius: var(--s3-radius); overflow: hidden; box-shadow: var(--s3-shadow); transition: var(--s3-transition); }
.blog-card:hover { box-shadow: var(--s3-shadow-hover); transform: translateY(-2px); }
.blog-card-img { aspect-ratio: 16 / 9; background-size: cover; background-position: center; background-color: var(--s3-panel); border-bottom: 1px solid var(--s3-border); }
.blog-card-body { padding: 22px 22px 20px; display: flex; flex-direction: column; gap: 10px; flex-grow: 1; align-items: flex-start; }
.blog-card-body h3 { font-family: var(--s3-font-display); font-size: 1.22rem; font-weight: 700; line-height: 1.25; color: var(--s3-navy); margin: 0; }
.blog-card-body .excerpt { color: var(--s3-text-muted); font-size: 0.92rem; line-height: 1.6; margin: 0; flex-grow: 1; }

.blog-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; font-size: 0.8rem; color: var(--s3-text-faint); }
.blog-meta b { color: var(--s3-text-muted); font-weight: 600; }
.blog-meta .sep { color: var(--s3-border-strong); }

.blog-pagination { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 44px; flex-wrap: wrap; }
.blog-pagination .page-num { min-width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--s3-radius-sm); border: 1px solid var(--s3-border-strong); background: var(--s3-surface); color: var(--s3-navy); font-size: 0.9rem; font-weight: 500; }
.blog-pagination .page-num:hover { border-color: var(--s3-navy); }
.blog-pagination .page-num.current { background: var(--s3-navy); border-color: var(--s3-navy); color: var(--s3-on-navy); font-weight: 600; }

/* Article detail */
.article-wrap { max-width: 780px; margin: 0 auto; }
.article-head { padding: 56px 0 8px; }
.article-head h1 { font-family: var(--s3-font-display); font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; color: var(--s3-navy); margin: 14px 0 16px; text-wrap: balance; }
.article-hero-img { width: 100%; height: auto; display: block; border-radius: var(--s3-radius); border: 1px solid var(--s3-border); margin: 26px 0; }
.article-excerpt { font-family: var(--s3-font-accent); font-style: italic; font-size: 1.15rem; line-height: 1.6; color: var(--s3-text-muted); border-left: 3px solid var(--s3-gold); padding: 4px 0 4px 20px; margin: 0 0 26px; }
.article-prose { font-size: 1.02rem; line-height: 1.75; color: var(--s3-text); }
.article-prose h2 { font-family: var(--s3-font-display); color: var(--s3-navy); font-size: 1.5rem; line-height: 1.25; margin: 36px 0 12px; }
.article-prose h3 { font-family: var(--s3-font-display); color: var(--s3-navy); font-size: 1.2rem; line-height: 1.3; margin: 28px 0 10px; }
.article-prose p { margin: 0 0 18px; }
.article-prose ul, .article-prose ol { margin: 0 0 18px; padding-left: 24px; }
.article-prose li { margin-bottom: 6px; }
.article-prose img { max-width: 100%; height: auto; display: block; margin: 26px auto; border-radius: var(--s3-radius-sm); border: 1px solid var(--s3-border); }
.article-prose blockquote { border-left: 3px solid var(--s3-gold); margin: 26px 0; padding: 4px 0 4px 20px; font-family: var(--s3-font-accent); font-style: italic; color: var(--s3-text-muted); }
.article-prose a { text-decoration: underline; text-underline-offset: 3px; }
.article-tags { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--s3-border); }

/* Comments */
.comments-panel { margin-top: 56px; padding-top: 34px; border-top: 1px solid var(--s3-border); }
.comments-panel > h2 { font-family: var(--s3-font-display); color: var(--s3-navy); font-size: 1.4rem; margin: 0 0 22px; }
.comment { background: var(--s3-surface); border: 1px solid var(--s3-border); border-radius: var(--s3-radius); padding: 20px 22px; margin-bottom: 16px; }
.comment.pinned { border-left: 3px solid var(--s3-gold); }
.comment-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 10px; }
.comment-who { display: flex; align-items: center; gap: 10px; }
.comment-avatar { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.comment-avatar-fallback { width: 38px; height: 38px; border-radius: 50%; background: var(--s3-navy); color: var(--s3-on-navy); display: inline-flex; align-items: center; justify-content: center; font-weight: 600; font-size: 0.9rem; flex-shrink: 0; }
.comment-author { font-weight: 600; color: var(--s3-navy); font-size: 0.95rem; }
.comment-date { font-size: 0.78rem; color: var(--s3-text-faint); }
.comment-body { color: var(--s3-text); font-size: 0.95rem; line-height: 1.65; }
.comment-body p { margin: 0 0 10px; }
.comment-body p:last-child { margin-bottom: 0; }
.comment-badge { display: inline-block; font-size: 0.64rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 2px 8px; border-radius: var(--s3-radius-xs); background: var(--s3-info-bg); color: var(--s3-info); margin-left: 8px; vertical-align: middle; }
.comment-badge.gold { background: var(--s3-gold-soft); color: #8a6d1c; }
.comment-actions { display: flex; gap: 4px; }
.comment-action-btn { background: none; border: none; cursor: pointer; color: var(--s3-text-faint); font-size: 0.8rem; padding: 4px 8px; border-radius: var(--s3-radius-xs); font-family: var(--s3-font-body); }
.comment-action-btn:hover { color: var(--s3-navy); background: var(--s3-panel); }
.comment-action-btn.danger:hover { color: var(--s3-error); background: var(--s3-error-bg); }
.comment-replies { margin: 14px 0 0 26px; padding-left: 18px; border-left: 2px solid var(--s3-border); }
.comment-replies .comment { padding: 14px 16px; margin-bottom: 10px; }
@media (max-width: 520px) { .comment-replies { margin-left: 8px; padding-left: 12px; } }

/* ============================================================
 * FOOTER
 * ============================================================ */
.s3-footer { padding: 60px 0 28px; border-top: 1px solid var(--s3-border); background: var(--s3-surface); }
.s3-footer-grid { display: grid; grid-template-columns: 2.2fr 1fr 1fr 1fr; gap: 40px; }
.s3-footer-slogan { font-family: var(--s3-font-accent); font-style: italic; color: var(--s3-navy); font-size: 1.15rem; line-height: 1.4; margin: 14px 0 18px; }
.s3-footer-meta { color: var(--s3-text-muted); font-size: 0.85rem; line-height: 1.7; }
.s3-footer-meta a { color: var(--s3-text-muted); }
.s3-footer-meta a:hover { color: var(--s3-navy); }
.s3-footer-col h5 { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--s3-text-faint); font-weight: 700; margin: 0 0 14px; }
.s3-footer-col a { display: block; color: var(--s3-text-muted); font-size: 0.9rem; padding: 5px 0; }
.s3-footer-col a:hover { color: var(--s3-navy); }
.s3-footer-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--s3-border); color: var(--s3-text-faint); font-size: 0.82rem; flex-wrap: wrap; gap: 12px; }
.s3-footer-bottom a { color: var(--s3-text-muted); }
.s3-footer-bottom a:hover { color: var(--s3-navy); }
@media (max-width: 880px) { .s3-footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 520px) { .s3-footer-grid { grid-template-columns: 1fr; gap: 28px; } .s3-footer-bottom { flex-direction: column; align-items: flex-start; } }

@media (prefers-reduced-motion: reduce) {
  body.s3-body * { transition: none !important; animation: none !important; }
}
