/* Plot Monitor — marketing site. Dark green ground, sage accent.
   Themed to the New Home Solutions brand (sage green + navy).
   Source: NHS-Training-App/docs/branding/NHS_Email_Template_Guidelines.md v1.0

   Grounds run green so the public site and the app sidebar read as one system;
   card ground IS the sidebar green (#2F4A3E). Navy is retained as the brand
   secondary — it carries the CTA ink, exactly as navy carries data values in
   the brand's own tables. The brand has no bright accent, so on dark ground the
   sage family runs INVERTED: light sage on top, never white-on-sage (3.54:1). */

:root {
  --bg: #1B2E25;         /* derived: deepest green ground */
  --bg-2: #22382E;       /* derived: alternating section band */
  --bg-3: #2F4A3E;       /* card ground — identical to the app sidebar */
  --line: #46685A;       /* derived */
  --line-2: #3A5A4B;     /* derived */
  --fg: #EAF4EF;         /* Sage Tint as body text — 12.76:1 on bg */
  --fg-2: #B8CBC3;       /* derived — 8.45:1 on bg, 5.70:1 on cards */
  --fg-3: #A3B7AC;       /* derived — 4.57:1 on cards (the tightest pair) */

  --accent: #A4C3B2;     /* light sage — accent text, ticks, eyebrow */
  --accent-2: #6B9080;   /* Sage — fills, chart ramp */
  --accent-solid: #C9D5CB; /* Sage Background — CTA fill */
  --accent-ink: #0D1E4A; /* Navy on the sage CTA — 10.65:1 */

  --sage-dark: #4A6B5E;  /* Sage Dark — documented primary */
  /* Status red lightened from #FF6B6B: on the green card ground that was only
     3.49:1. #FF9B9B clears AA everywhere (4.80:1 on cards). */
  --red: #FF9B9B;
  --red-bg: rgba(255, 155, 155, .12);
  --green-bg: rgba(164, 195, 178, .12);
  --radius: 14px;
  /* Aptos is mandated for content but has no free web licence — request, fall back. */
  --font: 'Aptos', 'Segoe UI', 'Inter', -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
  /* Logo lockup only. */
  --logo-font: futura-lt-w01-light, futura-lt-w05-light, 'Futura LT Light', 'Century Gothic', sans-serif;
  --mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;
  --wrap: 1160px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 680; letter-spacing: -.03em; line-height: 1.15; }
p { margin: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.center { text-align: center; }

section { position: relative; }

/* ------------------------------------------------------------------- nav */

.nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(27, 46, 37, .82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-2);
}
.nav-in {
  max-width: var(--wrap); margin: 0 auto; padding: 13px 24px;
  display: flex; align-items: center; gap: 26px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 32px; height: 32px; border-radius: 9px;
  background: linear-gradient(140deg, var(--accent-2), var(--accent));
  display: grid; place-items: center; color: #0D1E4A;
}
.brand-mark svg { width: 18px; height: 18px; }
.brand-name { font-weight: 700; font-size: 16.5px; letter-spacing: -.025em; }
.brand-name em {
  font-style: normal; color: var(--accent); font-weight: 700;
}

.nav-links { display: flex; gap: 22px; margin-left: 12px; }
.nav-links a { font-size: 14px; color: var(--fg-2); font-weight: 500; }
.nav-links a:hover { color: var(--fg); }
.nav-cta { margin-left: auto; display: flex; gap: 10px; align-items: center; }

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px; border-radius: 9px;
  font-size: 14.5px; font-weight: 650; border: 1px solid transparent;
  cursor: pointer; font-family: inherit; white-space: nowrap;
  transition: transform .12s ease, background .15s ease;
}
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--accent-solid); color: var(--accent-ink); }
.btn-primary:hover { background: #DCE8E1; transform: translateY(-1px); }
.btn-ghost { border-color: var(--line); color: var(--fg); background: rgba(255,255,255,.03); }
.btn-ghost:hover { background: rgba(255,255,255,.07); border-color: #46685A; }
.btn-sm { padding: 8px 14px; font-size: 13.5px; }
.btn-lg { padding: 14px 26px; font-size: 15.5px; }

/* ------------------------------------------------------------------- hero */

.hero { padding: 92px 0 76px; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: -220px 0 auto 50%;
  width: 1100px; height: 620px; transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(107, 144, 128, .22), transparent 62%);
  pointer-events: none;
}
.hero-in { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 54px; align-items: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(164, 195, 178, .09);
  border: 1px solid rgba(164, 195, 178, .28);
  color: var(--accent);
  padding: 5px 13px; border-radius: 30px;
  font-size: 12.5px; font-weight: 650; letter-spacing: .01em;
  margin-bottom: 20px;
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 3px rgba(164, 195, 178, .2);
}

h1.hero-h {
  font-size: clamp(38px, 4.6vw, 60px);
  letter-spacing: -.042em; line-height: 1.03;
}
.hero-h .hl {
  background: linear-gradient(100deg, var(--accent), #E3EFE8);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub {
  font-size: 18px; color: var(--fg-2); margin-top: 20px; max-width: 560px; line-height: 1.6;
}
.hero-sub strong { color: var(--fg); font-weight: 620; }

.hero-actions { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
.hero-note {
  margin-top: 16px; font-size: 13px; color: var(--fg-3);
  display: flex; align-items: center; gap: 7px; flex-wrap: wrap;
}
.hero-note svg { width: 14px; height: 14px; color: var(--accent); }

.hero-stats {
  display: flex; gap: 30px; margin-top: 38px; padding-top: 26px;
  border-top: 1px solid var(--line-2); flex-wrap: wrap;
}
.hero-stat strong {
  display: block; font-size: 24px; font-weight: 700; letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
}
.hero-stat span { font-size: 12.5px; color: var(--fg-3); }

/* ------------------------------------------------------------ hero visual */

.hero-viz {
  background: linear-gradient(165deg, var(--bg-3), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
}
.viz-head {
  display: flex; align-items: center; gap: 8px;
  padding-bottom: 12px; border-bottom: 1px solid var(--line-2); margin-bottom: 14px;
}
.viz-dots { display: flex; gap: 5px; }
.viz-dots i { width: 9px; height: 9px; border-radius: 50%; background: #46685A; }
.viz-title { font-size: 12px; color: var(--fg-3); margin-left: 6px; font-weight: 600; }
.viz-live {
  margin-left: auto; display: inline-flex; align-items: center; gap: 6px;
  font-size: 10.5px; color: var(--accent); font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
}
.viz-live i { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }

.viz-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-bottom: 12px; }
.viz-tile { background: rgba(255,255,255,.03); border: 1px solid var(--line-2); border-radius: 9px; padding: 10px; }
.viz-tile span { font-size: 10px; color: var(--fg-3); text-transform: uppercase; letter-spacing: .05em; font-weight: 650; }
.viz-tile strong { display: block; font-size: 19px; font-weight: 700; margin-top: 3px; letter-spacing: -.02em; }
.viz-tile em { font-style: normal; font-size: 10.5px; font-weight: 650; }
.up { color: var(--accent); }
.down { color: var(--red); }

.viz-chart { display: flex; align-items: flex-end; gap: 6px; height: 108px; padding: 10px; background: rgba(255,255,255,.02); border-radius: 9px; border: 1px solid var(--line-2); }
.viz-bar { flex: 1; border-radius: 3px 3px 1px 1px; background: linear-gradient(180deg, #6B9080, #4A6B5E); }
/* These bars count withdrawals — recent weeks read red, never green. */
.viz-bar.hot { background: linear-gradient(180deg, var(--red), #E08585); }

.viz-rows { margin-top: 12px; display: flex; flex-direction: column; gap: 1px; }
.viz-row {
  display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center;
  padding: 7px 9px; border-radius: 7px; font-size: 12px;
}
.viz-row:nth-child(odd) { background: rgba(255,255,255,.02); }
.viz-row b { font-weight: 600; color: var(--fg); }
.viz-row .mut { color: var(--fg-3); font-size: 11px; }
.viz-tag {
  font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 20px;
}
.tag-red { background: var(--red-bg); color: var(--red); }
.tag-green { background: var(--green-bg); color: var(--accent); }

/* -------------------------------------------------------------- trust bar */

.trust { padding: 40px 0 12px; border-top: 1px solid var(--line-2); }
.trust-label {
  text-align: center; font-size: 11.5px; color: var(--fg-3);
  text-transform: uppercase; letter-spacing: .12em; font-weight: 650; margin-bottom: 24px;
}
.trust-logos {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 10px;
}
.logo-pill {
  display: inline-flex; align-items: center; gap: 9px;
  border: 1px solid var(--line); background: rgba(255,255,255,.02);
  border-radius: 30px; padding: 8px 16px 8px 8px;
  color: var(--fg-2); font-size: 13.5px; font-weight: 600;
  transition: border-color .15s ease, color .15s ease;
}
.logo-pill:hover { border-color: #46685A; color: var(--fg); }
.logo-mark {
  width: 26px; height: 26px; border-radius: 7px;
  background: linear-gradient(140deg, #2F4A3E, #46685A);
  color: #B8CBC3; display: grid; place-items: center;
  font-size: 10px; font-weight: 800; letter-spacing: .01em;
}

/* ------------------------------------------------------------- section hd */

.sec { padding: 84px 0; }
.sec-alt { background: var(--bg-2); border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }

.sec-tag {
  display: inline-block; font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em; color: var(--accent);
  margin-bottom: 14px;
}
.sec-h { font-size: clamp(27px, 3vw, 38px); letter-spacing: -.035em; }
.sec-sub { font-size: 16.5px; color: var(--fg-2); margin-top: 14px; max-width: 640px; }
.center .sec-sub { margin-left: auto; margin-right: auto; }
.sec-head { margin-bottom: 44px; }

/* ------------------------------------------------------------- narrative */

.narrative-grid { display: grid; grid-template-columns: .92fr 1.08fr; gap: 50px; align-items: start; }

.case-card {
  background: linear-gradient(165deg, rgba(255, 155, 155, .07), rgba(255,255,255,.02));
  border: 1px solid rgba(255, 155, 155, .22);
  border-radius: var(--radius); padding: 24px;
}
.case-badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--red-bg); color: var(--red);
  border-radius: 30px; padding: 4px 11px;
  font-size: 11.5px; font-weight: 700; margin-bottom: 14px;
}
.case-badge svg { width: 13px; height: 13px; }
.case-card h3 { font-size: 19px; margin-bottom: 10px; letter-spacing: -.025em; }
.case-card p { font-size: 14.5px; color: var(--fg-2); }
.case-figs { display: flex; gap: 22px; margin-top: 20px; padding-top: 18px; border-top: 1px solid rgba(255,155,155,.16); }
.case-fig strong { display: block; font-size: 21px; font-weight: 700; color: var(--red); letter-spacing: -.02em; }
.case-fig span { font-size: 11.5px; color: var(--fg-3); }
.case-src { margin-top: 16px; font-size: 11.5px; color: var(--fg-3); }
.case-src a { color: var(--fg-2); text-decoration: underline; text-underline-offset: 2px; }

.compare { display: flex; flex-direction: column; gap: 2px; }
.compare-head {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
  font-size: 11.5px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; padding: 0 4px 10px;
}
.compare-head .old { color: var(--red); }
.compare-head .new { color: var(--accent); }
.compare-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
  padding: 12px 0; border-top: 1px solid var(--line-2);
}
.cmp {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 14px; line-height: 1.5;
}
.cmp-ic {
  width: 19px; height: 19px; flex: 0 0 19px; border-radius: 50%;
  display: grid; place-items: center; margin-top: 1px;
}
.cmp-ic svg { width: 11px; height: 11px; stroke-width: 3; }
.cmp-bad .cmp-ic { background: var(--red-bg); color: var(--red); }
.cmp-bad { color: var(--fg-3); }
.cmp-good .cmp-ic { background: var(--green-bg); color: var(--accent); }
.cmp-good { color: var(--fg); }

/* -------------------------------------------------------------- how it works */

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.step {
  background: var(--bg-3); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 22px; position: relative;
}
.step-n {
  width: 34px; height: 34px; border-radius: 10px;
  background: rgba(107, 144, 128, .12); border: 1px solid rgba(107, 144, 128, .3);
  color: #A4C3B2; display: grid; place-items: center;
  font-size: 14px; font-weight: 800; margin-bottom: 15px;
}
.step h3 { font-size: 17px; margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--fg-2); }
.step-tag {
  display: inline-block; margin-top: 14px; font-size: 11px; font-weight: 700;
  font-family: var(--mono); color: var(--accent);
  background: var(--green-bg); padding: 3px 9px; border-radius: 5px;
}

/* ------------------------------------------------------------- feature grid */

.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feat {
  background: var(--bg-3); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px;
  transition: border-color .16s ease, transform .16s ease;
}
.feat:hover { border-color: #46685A; transform: translateY(-2px); }
.feat-ic {
  width: 38px; height: 38px; border-radius: 10px;
  background: rgba(107, 144, 128, .1); color: #A4C3B2;
  display: grid; place-items: center; margin-bottom: 14px;
}
.feat-ic svg { width: 19px; height: 19px; }
.feat:nth-child(3n) .feat-ic { background: var(--green-bg); color: var(--accent); }
.feat h3 { font-size: 15.5px; margin-bottom: 7px; }
.feat p { font-size: 13.5px; color: var(--fg-2); line-height: 1.55; }

/* ----------------------------------------------------------------- audit log */

.audit-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: 46px; align-items: center; }

.audit-panel {
  background: var(--bg-3); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,.4);
}
.audit-head {
  display: flex; align-items: center; gap: 9px;
  padding: 12px 16px; border-bottom: 1px solid var(--line-2);
  background: rgba(255,255,255,.02);
}
.audit-head h4 { font-size: 13px; font-weight: 650; }
.audit-head .viz-live { margin-left: auto; }
.audit-feed { max-height: 380px; overflow-y: auto; }
.audit-item {
  display: grid; grid-template-columns: 22px 1fr; gap: 11px;
  padding: 12px 16px; border-bottom: 1px solid var(--line-2);
  font-size: 13px;
}
.audit-item:last-child { border-bottom: none; }
.audit-ic {
  width: 22px; height: 22px; border-radius: 6px;
  display: grid; place-items: center; margin-top: 1px;
}
.audit-ic svg { width: 12px; height: 12px; }
.ai-red { background: var(--red-bg); color: var(--red); }
.ai-green { background: var(--green-bg); color: var(--accent); }
.ai-blue { background: rgba(107,144,128,.12); color: #A4C3B2; }
.audit-body b { font-weight: 600; }
.audit-meta {
  display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px;
  font-size: 11px; color: var(--fg-3); font-family: var(--mono);
  align-items: center;
}
.audit-meta a { color: #A4C3B2; text-decoration: underline; text-underline-offset: 2px; }
.audit-meta .sep { color: #46685A; }

/* -------------------------------------------------------------- personas */

.personas { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.persona {
  background: var(--bg-3); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px 20px;
}
.persona-role {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: var(--accent); margin-bottom: 12px;
}
.persona h3 { font-size: 16.5px; margin-bottom: 9px; letter-spacing: -.02em; }
.persona p { font-size: 13.5px; color: var(--fg-2); line-height: 1.6; }
.persona-quote {
  margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line-2);
  font-size: 13px; color: var(--fg-3); font-style: italic;
}

/* --------------------------------------------------------------- pricing */

.pricing-card {
  max-width: 560px; margin: 0 auto;
  background: linear-gradient(165deg, rgba(164,195,178,.08), rgba(107,144,128,.05));
  border: 1px solid rgba(164,195,178,.28);
  border-radius: 18px; padding: 38px 34px; text-align: center;
}
.price-tag {
  display: inline-flex; align-items: baseline; gap: 8px; margin: 10px 0 6px;
}
.price-tag strong { font-size: 58px; font-weight: 750; letter-spacing: -.05em; line-height: 1; }
.price-tag span { font-size: 15px; color: var(--fg-3); }
.price-note { font-size: 14px; color: var(--fg-2); }
.price-list {
  list-style: none; padding: 0; margin: 26px 0 28px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; text-align: left;
}
.price-list li { display: flex; gap: 9px; align-items: flex-start; font-size: 14px; color: var(--fg-2); }
.price-list svg { width: 16px; height: 16px; flex: 0 0 16px; color: var(--accent); margin-top: 3px; }
.price-fine { font-size: 12.5px; color: var(--fg-3); margin-top: 16px; }

/* ------------------------------------------------------------------- faq */

.faq { max-width: 780px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--line-2); }
.faq-q {
  width: 100%; background: none; border: 0; color: var(--fg);
  font-family: inherit; font-size: 16px; font-weight: 620; letter-spacing: -.015em;
  padding: 20px 40px 20px 0; text-align: left; cursor: pointer; position: relative;
}
.faq-q::after {
  content: ''; position: absolute; right: 6px; top: 50%;
  width: 10px; height: 10px; margin-top: -6px;
  border-right: 2px solid var(--fg-3); border-bottom: 2px solid var(--fg-3);
  transform: rotate(45deg); transition: transform .2s ease;
}
.faq-item.open .faq-q::after { transform: rotate(-135deg); margin-top: -2px; border-color: var(--accent); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .26s ease; }
.faq-item.open .faq-a { max-height: 340px; }
.faq-a p { padding: 0 30px 22px 0; font-size: 14.5px; color: var(--fg-2); }

/* -------------------------------------------------------------- final cta */

.cta-band { padding: 88px 0; text-align: center; position: relative; overflow: hidden; }
.cta-band::before {
  content: ''; position: absolute; inset: auto 50% -300px auto;
  width: 900px; height: 520px; transform: translateX(50%);
  background: radial-gradient(ellipse at center, rgba(164,195,178,.16), transparent 62%);
}
.cta-band > .wrap { position: relative; }

/* Parent-brand endorsement. Futura LT Light is logo-only per the guidelines;
   the surrounding words stay in the content font. */
.parent-brand {
  display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; margin-top: 16px;
}
.parent-brand span {
  font-size: 10px; font-weight: 500; color: var(--fg-3);
  text-transform: uppercase; letter-spacing: .09em;
}
.parent-brand b {
  font-family: var(--logo-font);
  font-size: 14px; font-weight: 300; color: var(--accent);
  letter-spacing: .06em; word-spacing: .2em; text-transform: uppercase;
}
.parent-tag {
  margin-top: 6px; font-size: 9.5px; font-weight: 600; color: var(--fg-3);
  text-transform: uppercase; letter-spacing: .10em;
}

/* ---------------------------------------------------------------- footer */

.footer { border-top: 1px solid var(--line-2); padding: 46px 0 34px; background: var(--bg-2); }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; }
.footer-brand p { font-size: 13px; color: var(--fg-3); margin-top: 12px; max-width: 300px; }
.footer-col h5 {
  font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em;
  color: var(--fg-3); font-weight: 700; margin: 0 0 12px;
}
.footer-col a { display: block; font-size: 13.5px; color: var(--fg-2); padding: 4px 0; }
.footer-col a:hover { color: var(--fg); }
.footer-bar {
  margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line-2);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 12.5px; color: var(--fg-3);
}
.footer-bar .compliance {
  display: inline-flex; align-items: center; gap: 7px;
  color: var(--accent); font-weight: 600;
}
.footer-bar .compliance svg { width: 14px; height: 14px; }

/* ----------------------------------------------------------------- login */

.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 40px 20px; }
.auth-card {
  width: 100%; max-width: 400px;
  background: var(--bg-3); border: 1px solid var(--line);
  border-radius: 16px; padding: 32px;
  box-shadow: 0 30px 70px rgba(0,0,0,.5);
}
.auth-card .brand { justify-content: center; margin-bottom: 22px; }
.auth-card h1 { font-size: 22px; text-align: center; }
.auth-card > p { text-align: center; color: var(--fg-2); font-size: 14px; margin-top: 8px; margin-bottom: 24px; }
.auth-field { margin-bottom: 14px; }
.auth-field label { display: block; font-size: 12px; font-weight: 650; color: var(--fg-2); margin-bottom: 6px; }
.auth-field input {
  width: 100%; padding: 11px 13px; border-radius: 9px;
  border: 1px solid var(--line); background: rgba(255,255,255,.03);
  color: var(--fg); font: inherit; font-size: 14px;
}
.auth-field input:focus { outline: 2px solid var(--accent-2); outline-offset: -1px; }
.auth-card .btn { width: 100%; justify-content: center; margin-top: 8px; }
.auth-alt { text-align: center; font-size: 13px; color: var(--fg-3); margin-top: 18px; }
.auth-alt a { color: var(--accent); font-weight: 600; }
.auth-demo {
  margin-top: 20px; padding: 11px 13px; border-radius: 9px;
  background: rgba(107,144,128,.08); border: 1px solid rgba(107,144,128,.24);
  font-size: 12.5px; color: #B8CBC3;
}
.auth-demo strong { color: #EAF4EF; }

.auth-msg {
  margin: 4px 0 2px; padding: 10px 12px; border-radius: 9px;
  font-size: 12.5px; line-height: 1.45; font-weight: 550;
}
.auth-msg-error { background: var(--red-bg); border: 1px solid rgba(255,155,155,.34); color: var(--red); }
.auth-msg-ok { background: var(--green-bg); border: 1px solid rgba(164,195,178,.34); color: var(--accent); }
.auth-card .btn[disabled] { opacity: .6; cursor: default; }
.auth-forgot { text-align: right; margin: -6px 0 2px; font-size: 12.5px; }
.auth-forgot a { color: var(--accent); font-weight: 600; }

/* ------------------------------------------------------------ responsive */

@media (max-width: 1040px) {
  .features, .personas { grid-template-columns: repeat(2, 1fr); }
  .hero-in, .narrative-grid, .audit-grid { grid-template-columns: 1fr; gap: 40px; }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .features, .personas { grid-template-columns: 1fr; }
  .price-list { grid-template-columns: 1fr; }
  .compare-row, .compare-head { grid-template-columns: 1fr; gap: 8px; }
  .hero { padding: 60px 0 50px; }
  .sec { padding: 60px 0; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------- mockup ribbon */
/* Flags pages whose CONTENT is synthetic (see data.js). App pages get it
   automatically via core.js unless they opt out with <body data-real>. */
.mock-ribbon { position: fixed; top: 0; right: 0; width: 158px; height: 158px; overflow: hidden; z-index: 99999; pointer-events: none; }
.mock-ribbon span {
  position: absolute; top: 34px; right: -42px; width: 210px; transform: rotate(45deg);
  text-align: center; background: #d92d20; color: #fff;
  font-family: "Inter", system-ui, sans-serif; font-size: 12px; font-weight: 800;
  letter-spacing: .12em; text-transform: uppercase; padding: 7px 0;
  box-shadow: 0 3px 10px rgba(0,0,0,.35);
}
