@import url('fonts.css');

/* ==========================================================================
   SMART YETI — Growth Continuity Engineering
   Built on the Smart Yeti design system. Blueprint dot-grid motif retired;
   structural signature is now the numbered rule system + solid data panels.
   ========================================================================== */

:root {
  /* Brand blues */
  --color-primary:       #0064b7;
  --color-primary-dark:  #004a87;
  --color-primary-light: #2ea3f2;
  --color-primary-pale:  #e8f1fa;

  /* Accent */
  --color-accent:        #ffc107;
  --color-accent-light:  #ffd75e;
  --color-accent-dark:   #e0a800;

  /* Teal — second accent. Carries diagram, data and confirmation moments. */
  --color-teal:          #0e8a7d;
  --color-teal-dark:     #0a6b61;
  --color-teal-light:    #2dd4bf;
  --color-teal-pale:     #e6f6f4;

  /* Surfaces */
  --color-bg:            #ffffff;
  --color-bg-alt:        #f5f8fc;
  --color-navy:          #0a1628;
  --color-navy-light:    #1a2f4a;

  /* Ink */
  --color-text:          #0f1419;
  --color-text-light:    #3d4855;
  --color-muted:         #6b7684;
  --color-line:          #e8ecf1;
  --color-line-strong:   #d3dce6;

  /* Type */
  --font-sans:  'Inter', system-ui, -apple-system, sans-serif;
  --font-serif: 'Bitter', Georgia, serif;

  /* Spacing — 4px base */
  --s-1: 0.25rem;  --s-2: 0.5rem;   --s-3: 0.75rem;  --s-4: 1rem;
  --s-5: 1.5rem;   --s-6: 2rem;     --s-7: 2.5rem;   --s-8: 3rem;
  --s-9: 4rem;     --s-10: 5rem;    --s-11: 7rem;

  /* Radius */
  --radius:    8px;
  --radius-lg: 12px;
  --radius-pill: 100px;

  /* Elevation */
  --shadow-sm: 0 1px 3px rgba(10,22,40,0.06);
  --shadow-md: 0 4px 12px rgba(10,22,40,0.08);
  --shadow-lg: 0 12px 32px rgba(10,22,40,0.12);

  /* Gradients — used only on surfaces, rules and edges. Never on type or buttons. */
  --grad-rule:  linear-gradient(90deg, var(--color-primary) 0%, var(--color-teal) 32%, rgba(14,138,125,0) 78%);
  --grad-edge:  linear-gradient(90deg, var(--color-primary), var(--color-teal));
  --grad-spine: linear-gradient(180deg, var(--color-primary), var(--color-teal));
  --grad-dark:  linear-gradient(158deg, #08121f 0%, #0a1628 42%, #0b2b2c 100%);
  --grad-cta:   linear-gradient(118deg, var(--color-primary-dark) 0%, var(--color-primary) 42%, var(--color-teal) 100%);
  --grad-hero:  linear-gradient(176deg, #f4fafd 0%, #fbfdfe 46%, #ffffff 100%);
  --grad-alt:   linear-gradient(176deg, #f5f8fc 0%, #eef6f6 100%);

  --max-w: 1200px;
  --measure: 68ch;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--color-text-light);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--color-primary-light); }

/* ---------- Type ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  color: var(--color-text);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0 0 var(--s-4);
}
h1 { font-size: clamp(2.5rem, 5.2vw, 4rem); line-height: 1.04; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.875rem, 3.4vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 1.9vw, 1.5rem); }
h4 { font-size: 1.125rem; }
p  { margin: 0 0 var(--s-4); }
p:last-child { margin-bottom: 0; }
strong { color: var(--color-text); font-weight: 600; }

.lead {
  font-size: clamp(1.125rem, 1.6vw, 1.3125rem);
  line-height: 1.6;
  color: var(--color-text-light);
}
.measure { max-width: var(--measure); }
.text-accent { color: var(--color-primary); }

/* Eyebrow — the one uppercase treatment in the system */
.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin: 0 0 var(--s-4);
  display: block;
}

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 var(--s-6); }
.section { padding: var(--s-11) 0; }
.section--tight { padding: var(--s-9) 0; }
.section--alt  { background: var(--grad-alt); }
.section--dark { background: var(--grad-dark); color: rgba(255,255,255,0.72); }
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: #fff; }
.section--dark .eyebrow { color: var(--color-primary-light); }
.section--dark a { color: var(--color-primary-light); }
.section--dark .lead { color: rgba(255,255,255,0.78); }
.section--dark p { color: rgba(255,255,255,0.72); }
.section--dark strong { color: #fff; }

/* Numbered rule — the structural signature that replaces the dot grid */
.rule-head {
  position: relative;
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: var(--s-6);
  align-items: start;
  padding-top: var(--s-6);
  margin-bottom: var(--s-8);
}
.rule-head::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--grad-rule);
}
.rule-head__num {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--color-primary);
  font-variant-numeric: tabular-nums;
  padding-top: 0.15rem;
}
.rule-head__body { max-width: 52rem; }
.rule-head__body h2 { margin-bottom: var(--s-4); }
.section--dark .rule-head::before {
  background: linear-gradient(90deg, var(--color-primary-light) 0%, var(--color-teal-light) 32%, rgba(45,212,191,0) 78%);
}
.section--dark .rule-head__num { color: var(--color-teal-light); }

@media (max-width: 640px) {
  .rule-head { grid-template-columns: 1fr; gap: var(--s-3); }
  .rule-head__num { padding-top: 0; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}
.btn--primary {
  background: var(--color-accent);
  color: var(--color-text);
  border-color: var(--color-accent);
}
.btn--primary:hover {
  background: var(--color-accent-light);
  border-color: var(--color-accent-light);
  color: var(--color-text);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255,193,7,0.34);
}
.btn--blue { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.btn--blue:hover {
  background: var(--color-primary-dark); border-color: var(--color-primary-dark);
  color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-md);
}
.btn--teal { background: var(--color-teal); color: #fff; border-color: var(--color-teal); }
.btn--teal:hover {
  background: var(--color-teal-dark); border-color: var(--color-teal-dark);
  color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-md);
}
.btn--outline { background: transparent; color: #fff; border-color: rgba(255,255,255,0.4); }
.btn--outline:hover { background: #fff; color: var(--color-navy); border-color: #fff; }
.btn--outline-dark { background: transparent; color: var(--color-primary); border-color: var(--color-line-strong); }
.btn--outline-dark:hover { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }

/* Text link with arrow — the standard secondary CTA */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-primary);
}
.link-arrow::after { content: '→'; transition: var(--transition); }
.link-arrow:hover::after { transform: translateX(4px); }
.section--dark .link-arrow { color: var(--color-primary-light); }

.actions { display: flex; flex-wrap: wrap; gap: var(--s-5); align-items: center; margin-top: var(--s-7); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.94);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--color-line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: var(--s-6); }
.nav__logo { display: block; flex-shrink: 0; }
.nav__logo img { height: 26px; width: auto; }
.nav__links { display: flex; align-items: center; gap: var(--s-6); list-style: none; margin: 0; padding: 0; }
.nav__links a { font-size: 0.9375rem; font-weight: 500; color: var(--color-text-light); }
.nav__links a:hover { color: var(--color-primary); }
.nav__links a[aria-current="page"] { color: var(--color-primary); font-weight: 600; }
.nav__links .btn { font-size: 0.9375rem; padding: 0.7rem 1.25rem; color: var(--color-text); }
/* Outranks `.nav__links a:hover`, which would otherwise turn the CTA text blue. */
.nav__links .btn--primary:hover { color: var(--color-text); }
.nav__toggle {
  display: none; background: none; border: 0; cursor: pointer; padding: var(--s-2);
  font-size: 1.5rem; line-height: 1; color: var(--color-text);
}

@media (max-width: 900px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: absolute; top: 76px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--color-line);
    padding: var(--s-4) var(--s-6) var(--s-6);
    box-shadow: var(--shadow-lg);
  }
  .nav__links[hidden] { display: none; }
  .nav__links li { border-bottom: 1px solid var(--color-line); }
  .nav__links li:last-child { border-bottom: 0; padding-top: var(--s-4); }
  .nav__links a { display: block; padding: var(--s-3) 0; font-size: 1rem; }
  .nav__links .btn { display: block; padding: 0.875rem 1.5rem; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: var(--s-11) 0 var(--s-10);
  background: var(--grad-hero);
  border-bottom: 1px solid var(--color-line);
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute; top: -18rem; right: -12rem;
  width: 46rem; height: 46rem; border-radius: 50%;
  background: radial-gradient(circle, rgba(14,138,125,0.10) 0%, rgba(0,100,183,0.06) 42%, transparent 68%);
  pointer-events: none;
}
.hero > .container { position: relative; z-index: 1; }
.hero__inner { max-width: 60rem; }
.hero h1 { margin-bottom: var(--s-6); }
.hero .lead { max-width: 44rem; }
.hero--compact { padding: var(--s-10) 0 var(--s-8); }

/* ---------- Cards & grids ---------- */
.grid { display: grid; gap: var(--s-6); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.card {
  position: relative;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  padding: var(--s-7);
  transition: var(--transition);
}
.card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--grad-edge);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.card:hover::before { transform: scaleX(1); }
.card:hover { border-color: var(--color-teal); box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.card h3 { margin-bottom: var(--s-3); }
.card p:last-child { margin-bottom: 0; }
.card__num {
  font-family: var(--font-serif); font-size: 0.875rem; font-weight: 600;
  color: var(--color-primary); font-variant-numeric: tabular-nums;
  display: block; margin-bottom: var(--s-4);
  padding-bottom: var(--s-3); border-bottom: 1px solid var(--color-line);
}
.section--alt .card { background: #fff; }
.section--dark .card {
  background: var(--color-navy-light); border-color: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.72);
}
.section--dark .card { background: rgba(255,255,255,0.04); }
.section--dark .card:hover { border-color: var(--color-teal-light); }
.section--dark .card__num { color: var(--color-teal-light); border-bottom-color: rgba(255,255,255,0.14); }

/* ---------- Checklist ---------- */
.checklist { list-style: none; margin: 0 0 var(--s-5); padding: 0; }
.checklist li {
  position: relative; padding: 0 0 var(--s-4) var(--s-6);
  color: var(--color-text-light);
}
.checklist li::before {
  content: '✓'; position: absolute; left: 0; top: 0;
  color: var(--color-teal); font-weight: 700;
}
.section--dark .checklist li { color: rgba(255,255,255,0.72); }
.section--dark .checklist li::before { color: var(--color-teal-light); }

/* ---------- Steps (numbered sequence) ---------- */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps > li {
  counter-increment: step;
  display: grid; grid-template-columns: 3.5rem 1fr; gap: var(--s-5);
  padding: var(--s-6) 0;
  border-top: 1px solid var(--color-line);
}
.steps > li:last-child { border-bottom: 1px solid var(--color-line); }
.steps > li::before {
  content: '0' counter(step);
  font-family: var(--font-serif); font-size: 1.125rem; font-weight: 500;
  color: var(--color-primary); font-variant-numeric: tabular-nums;
}
.steps h3 { font-size: 1.1875rem; margin-bottom: var(--s-2); }
.steps p { margin: 0; }
.section--dark .steps > li { border-top-color: rgba(255,255,255,0.14); }
.section--dark .steps > li:last-child { border-bottom-color: rgba(255,255,255,0.14); }
.section--dark .steps > li::before { color: var(--color-teal-light); }
@media (max-width: 640px) {
  .steps > li { grid-template-columns: 1fr; gap: var(--s-2); }
}

/* ---------- Two column ---------- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-9); align-items: start; }
.two-col--narrow { grid-template-columns: 1fr 1.15fr; }
@media (max-width: 900px) { .two-col, .two-col--narrow { grid-template-columns: 1fr; gap: var(--s-7); } }

/* ---------- Scoreboard panel ---------- */
.scoreboard { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.14); border-radius: var(--radius-lg); overflow: hidden; }
.scoreboard__cell { background: var(--color-navy); padding: var(--s-6); }
.scoreboard__label { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-teal-light); display: block; margin-bottom: var(--s-2); }
.scoreboard__value { font-family: var(--font-serif); font-size: 1.75rem; color: #fff; font-variant-numeric: tabular-nums; line-height: 1.2; }
@media (max-width: 900px) { .scoreboard { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .scoreboard { grid-template-columns: 1fr; } }

/* ---------- Callout ---------- */
.callout {
  position: relative;
  padding: var(--s-2) 0 var(--s-2) var(--s-6);
  margin: var(--s-7) 0;
  font-size: 1.125rem;
  color: var(--color-text);
}
.callout::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px; border-radius: 3px;
  background: var(--grad-spine);
}
.section--dark .callout { color: #fff; }
.section--dark .callout::before {
  background: linear-gradient(180deg, var(--color-accent), var(--color-teal-light));
}

/* ---------- CTA banner ---------- */
.cta-banner {
  background: var(--grad-cta);
  color: rgba(255,255,255,0.86);
  padding: var(--s-10) 0;
}
.cta-banner h2 { color: #fff; max-width: 42rem; }
.cta-banner .lead { color: rgba(255,255,255,0.86); max-width: 44rem; }
.cta-banner .link-arrow { color: #fff; }
.cta-banner .btn--outline-dark { color: #fff; border-color: rgba(255,255,255,0.5); }
.cta-banner .btn--outline-dark:hover { background: #fff; color: var(--color-primary-dark); border-color: #fff; }

/* ---------- Forms ---------- */
.form { max-width: 40rem; }
.form__row { margin-bottom: var(--s-5); }
.form__row--split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-5); }
@media (max-width: 640px) { .form__row--split { grid-template-columns: 1fr; } }
.form label {
  display: block; font-size: 0.875rem; font-weight: 600;
  color: var(--color-text); margin-bottom: var(--s-2);
}
.form .req { color: var(--color-primary); }
.form input, .form select, .form textarea {
  width: 100%;
  font-family: var(--font-sans); font-size: 1rem;
  color: var(--color-text);
  padding: 0.75rem var(--s-4);
  border: 1px solid var(--color-line-strong);
  border-radius: var(--radius);
  background: #fff;
  transition: var(--transition);
}
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none; border-color: var(--color-teal);
  box-shadow: 0 0 0 3px var(--color-teal-pale);
}
.form textarea { resize: vertical; min-height: 7rem; line-height: 1.6; }
.form__hint { font-size: 0.875rem; color: var(--color-muted); margin-top: var(--s-2); }
.form .btn { margin-top: var(--s-2); }

/* ---------- Footer ---------- */
.footer { background: var(--grad-dark); color: rgba(255,255,255,0.6); padding: var(--s-9) 0 var(--s-6); font-size: 0.9375rem; }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-7); padding-bottom: var(--s-7); border-bottom: 1px solid rgba(255,255,255,0.12); }
.footer__logo { display: inline-block; margin-bottom: var(--s-4); }
.footer__logo img { height: 22px; width: auto; }
.footer__tagline { max-width: 22rem; margin: 0; color: rgba(255,255,255,0.6); }
.footer__links { display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-6); list-style: none; margin: 0; padding: 0; }
.footer__links a { color: rgba(255,255,255,0.72); }
.footer__links a:hover { color: #fff; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-3); padding-top: var(--s-5); font-size: 0.875rem; color: rgba(255,255,255,0.45); }
.footer__bottom a { color: rgba(255,255,255,0.45); }
.footer__bottom a:hover { color: #fff; }

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
[hidden] { display: none !important; }
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--color-primary); color: #fff; padding: var(--s-3) var(--s-4); z-index: 200;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---------- Long-form prose (policy pages) ---------- */
.prose { max-width: 46rem; }
.prose h2 {
  font-size: clamp(1.375rem, 2.2vw, 1.75rem);
  margin-top: var(--s-9);
  padding-top: var(--s-5);
  border-top: 1px solid var(--color-line);
}
.prose h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose h3 { font-size: 1.125rem; margin-top: var(--s-6); }
.prose ul { padding-left: var(--s-5); margin: 0 0 var(--s-4); }
.prose li { margin-bottom: var(--s-2); }
.prose table {
  width: 100%; border-collapse: collapse; margin: var(--s-5) 0;
  font-size: 0.9375rem;
}
.prose th, .prose td {
  text-align: left; padding: var(--s-3) var(--s-4);
  border-bottom: 1px solid var(--color-line); vertical-align: top;
}
.prose th { font-family: var(--font-sans); font-weight: 600; color: var(--color-text); white-space: nowrap; }
.prose__meta { font-size: 0.9375rem; color: var(--color-muted); margin-bottom: var(--s-7); }
.table-wrap { overflow-x: auto; }

/* ---------- Cookie consent banner ---------- */
.consent {
  position: fixed; left: 0; right: 0;
  bottom: env(safe-area-inset-bottom, 0px);
  z-index: 300;
  background: #fff;
  border-top: 1px solid var(--color-line-strong);
  box-shadow: 0 -8px 32px rgba(10,22,40,0.1);
  padding: var(--s-5) 0;
}
.consent__inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: var(--s-5);
}
.consent__text { margin: 0; font-size: 0.9375rem; max-width: 46rem; }
.consent__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.consent .btn { font-size: 0.9375rem; padding: 0.7rem 1.4rem; white-space: nowrap; }
@media (max-width: 640px) {
  .consent__inner { flex-direction: column; align-items: stretch; }
  .consent__actions .btn { flex: 1 1 auto; }
}

/* ---------- Growth Dependence Check ---------- */
.check { max-width: 46rem; }

.check__q {
  border-top: 1px solid var(--color-line);
  padding: var(--s-7) 0;
}
.check__q:first-of-type { border-top: 0; padding-top: 0; }
.check__q legend {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.1875rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--color-text);
  margin-bottom: var(--s-5);
  padding: 0;
}
.check__q fieldset { border: 0; margin: 0; padding: 0; }
.check__num {
  font-family: var(--font-serif);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-teal);
  font-variant-numeric: tabular-nums;
  display: block;
  margin-bottom: var(--s-2);
}

.check__options { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.check__opt { position: relative; flex: 1 1 auto; min-width: 9rem; cursor: pointer; }
.check__opt input {
  position: absolute; width: 1px; height: 1px;
  opacity: 0; margin: 0; pointer-events: none;
}
.check__opt span {
  display: block;
  padding: 0.75rem var(--s-4);
  font-size: 0.9375rem;
  line-height: 1.4;
  text-align: center;
  color: var(--color-text-light);
  background: #fff;
  border: 1.5px solid var(--color-line-strong);
  border-radius: var(--radius);
  transition: var(--transition);
}
.check__opt:hover span { border-color: var(--color-teal); color: var(--color-text); }
.check__opt input:checked + span {
  border-color: var(--color-teal);
  background: var(--color-teal-pale);
  color: var(--color-teal-dark);
  font-weight: 600;
}
.check__opt input:focus-visible + span {
  outline: 2px solid var(--color-teal);
  outline-offset: 2px;
}

.check__actions { margin-top: var(--s-7); display: flex; flex-wrap: wrap; gap: var(--s-4); align-items: center; }
.check__error { color: #a3302a; font-size: 0.9375rem; margin: 0; }

/* Result — a stat tile, not a chart. Text carries the reading; colour reinforces. */
/* Gradient rule via a pseudo-element: border-image with a single slice paints
   every edge, which drew a box round the whole panel. */
.result {
  position: relative;
  margin-top: var(--s-9);
  padding-top: var(--s-8);
}
.result::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--grad-rule);
}
/* Focused programmatically so screen readers land on the result — no visible ring. */
.result:focus { outline: none; }
.result__band {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  line-height: 1.1;
  color: var(--color-text);
  margin: 0 0 var(--s-5);
}

/* Sequential single-hue ramp, light to dark. Every segment is labelled, so the
   reading never depends on colour alone. */
.meter { margin: var(--s-6) 0 var(--s-7); max-width: 34rem; }
.meter__track { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.meter__seg {
  height: 10px;
  border-radius: 2px;
  background: var(--color-line);
  transition: var(--transition);
}
.meter__seg[data-on="1"]:nth-child(1) { background: #7cc7be; }
.meter__seg[data-on="1"]:nth-child(2) { background: #2f9b90; }
.meter__seg[data-on="1"]:nth-child(3) { background: #0a6b61; }
.meter__labels {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px;
  margin-top: var(--s-3);
  font-size: 0.8125rem;
  color: var(--color-muted);
}
.meter__labels span { text-align: center; }
.meter__labels span[data-current="1"] { color: var(--color-teal-dark); font-weight: 600; }

.result__note {
  background: var(--color-bg-alt);
  border-radius: var(--radius-lg);
  padding: var(--s-6);
  margin: var(--s-7) 0;
  font-size: 0.9375rem;
  color: var(--color-text-light);
}
.result__note p:last-child { margin-bottom: 0; }

@media (max-width: 640px) {
  .check__opt { flex: 1 1 100%; }
  .check__opt span { text-align: left; }
}

/* ---------- "Send me this" block (below the result, never before it) ---------- */
.send-result {
  max-width: 46rem;
  margin-top: var(--s-8);
  padding: var(--s-7);
  background: var(--color-bg-alt);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
}
.send-result h2 { font-size: 1.375rem; margin-bottom: var(--s-3); }
.send-result > p { font-size: 0.9375rem; }
.send-result .form { max-width: none; margin-top: var(--s-5); }
.send-result__row { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: stretch; }
.send-result__row input { flex: 1 1 16rem; }
.send-result__row .btn { flex: 0 0 auto; margin-top: 0; white-space: nowrap; }
.send-result__status {
  margin: var(--s-5) 0 0;
  font-size: 0.9375rem;
  color: var(--color-teal-dark);
  font-weight: 600;
}
.send-result__status--error { color: #a3302a; }

/* ---------- One pager page: hero with document preview ---------- */
.hero--split .hero__inner {
  max-width: none;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: var(--s-9);
  align-items: center;
}
.doc-preview {
  position: relative;
  display: block;
  background: #fff;
  border: 1px solid var(--color-line-strong);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.doc-preview img { display: block; width: 100%; height: auto; }
/* Tease, don't give away: the top of the page stays readable, the rest softens
   into a blur. The mask feathers the blur in so there is no hard edge. */
.doc-preview::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 62%;
  background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.55) 100%);
  -webkit-backdrop-filter: blur(1.5px);
  backdrop-filter: blur(1.5px);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 22%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 22%);
  pointer-events: none;
}
.doc-preview:hover { border-color: var(--color-teal); transform: translateY(-4px); }
.doc-meta { margin: var(--s-4) 0 0; font-size: 0.875rem; color: var(--color-muted); }
@media (max-width: 900px) {
  .hero--split .hero__inner { grid-template-columns: 1fr; gap: var(--s-7); }
  .doc-preview { max-width: 24rem; }
}
