/* ==========================================================================
   Ottawa Pools Guide — site.css
   Editorial magazine aesthetic. Paper + water + sand palette.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,400&family=IBM+Plex+Sans:wght@300;400;500;600&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  /* Original editorial palette (retained) */
  --ink:       #0f2a33;
  --ink-soft:  #2a4650;
  --water:     #1e5f6e;
  --water-dim: #3d7b8a;
  --paper:     #f5f1e8;
  --paper-2:   #ede7d6;
  --sand:      #d9c9a8;
  --brick:     #a64b2a;
  --rule:      #2a4650;

  /* Vivid pool palette (new) */
  --pool-deep:   #0a3a47;
  --pool-mid:    #1e7a8c;
  --pool-light:  #3aa5c4;
  --pool-bright: #55c5d4;
  --pool-glow:   #86dce6;
  --sun:         #f4b942;
  --sun-soft:    #f9d784;
  --coral:       #e05e3e;
  --coral-deep:  #c14b2d;
  --cream:       #faf7ef;
  --mint:        #9ed4c6;

  /* Type scale (modular, 1.25 ratio anchored at 1rem) */
  --step--1: clamp(0.82rem, 0.78rem + 0.2vw, 0.9rem);
  --step-0:  clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --step-1:  clamp(1.25rem, 1.17rem + 0.4vw, 1.45rem);
  --step-2:  clamp(1.56rem, 1.44rem + 0.6vw, 1.9rem);
  --step-3:  clamp(1.95rem, 1.76rem + 0.95vw, 2.5rem);
  --step-4:  clamp(2.44rem, 2.15rem + 1.45vw, 3.3rem);
  --step-5:  clamp(3.05rem, 2.62rem + 2.15vw, 4.4rem);

  /* Spacing */
  --gutter: clamp(1rem, 0.75rem + 1.2vw, 2rem);
  --measure: 64ch;

  /* Type families */
  --font-display: 'Fraunces', 'Playfair Display', Georgia, serif;
  --font-body: 'IBM Plex Sans', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  /* Subtle paper grain via layered radial gradients */
  background-image:
    radial-gradient(circle at 20% 10%, rgba(30,95,110,0.035) 0, transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(166,75,42,0.025) 0, transparent 35%);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--water); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color .15s ease; }
a:hover { color: var(--brick); }

/* ---------- Layout primitives ---------- */
.wrap { max-width: 1180px; margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 720px; margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Masthead (site header) ---------- */
.masthead {
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: saturate(1.2);
}
.masthead-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem; padding-block: 1.1rem;
}
.wordmark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--step-1);
  font-variation-settings: "opsz" 144;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
  line-height: 1;
}
.wordmark em {
  font-style: italic;
  color: var(--water);
  font-variation-settings: "opsz" 144, "SOFT" 50;
}
.wordmark::after {
  content: "";
  display: inline-block;
  width: 8px; height: 8px;
  background: var(--brick);
  border-radius: 50%;
  margin-left: 0.35em;
  vertical-align: 0.15em;
}
.nav ul {
  display: flex; gap: 1.5rem; list-style: none; margin: 0; padding: 0;
  font-size: var(--step--1);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.nav a { color: var(--ink); text-decoration: none; padding-block: 0.25rem; border-bottom: 1px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--brick); }
@media (max-width: 820px) {
  .nav ul { display: none; }
  .nav details { position: relative; }
  .nav details summary {
    list-style: none; cursor: pointer;
    font-family: var(--font-mono); font-size: var(--step--1);
    text-transform: uppercase; letter-spacing: 0.08em;
  }
  .nav details summary::-webkit-details-marker { display: none; }
  .nav details[open] ul {
    display: flex; flex-direction: column; gap: 0.75rem;
    position: absolute; right: 0; top: 2rem;
    background: var(--paper); border: 1px solid var(--rule);
    padding: 1rem 1.25rem; min-width: 220px;
    box-shadow: 0 20px 40px -20px rgba(15,42,51,0.3);
  }
}

/* ---------- Hero / page intro ---------- */
.hero {
  padding-block: clamp(3rem, 5vw + 2rem, 6rem) clamp(2rem, 3vw + 1rem, 4rem);
  position: relative;
  overflow: hidden;
}
.hero-label {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--water);
  margin-bottom: 1.5rem;
}
.hero-label::before {
  content: "";
  display: inline-block;
  width: 2rem; height: 1px;
  background: var(--water);
  vertical-align: middle;
  margin-right: 0.75rem;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: var(--step-5);
  line-height: 1.02;
  font-weight: 500;
  font-variation-settings: "opsz" 144;
  letter-spacing: -0.025em;
  margin: 0 0 1.5rem;
  max-width: 18ch;
}
.hero h1 em {
  font-style: italic;
  color: var(--water);
  font-variation-settings: "opsz" 144, "SOFT" 30;
}
.hero-lede {
  font-size: var(--step-1);
  line-height: 1.45;
  max-width: 52ch;
  color: var(--ink-soft);
  font-weight: 300;
}

/* Water-line decorative motif */
.waterline {
  display: block;
  width: 100%;
  height: 24px;
  margin: 3rem 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 24' preserveAspectRatio='none'><path d='M0 12 Q 25 4, 50 12 T 100 12 T 150 12 T 200 12' stroke='%231e5f6e' stroke-width='1.2' fill='none' opacity='0.5'/><path d='M0 18 Q 25 10, 50 18 T 100 18 T 150 18 T 200 18' stroke='%231e5f6e' stroke-width='1' fill='none' opacity='0.3'/></svg>");
  background-size: 400px 24px;
  background-repeat: repeat-x;
}

/* ---------- Article content ---------- */
.article { padding-block: 2rem 5rem; }
.article > * { margin-inline: auto; max-width: var(--measure); }
.article > .full { max-width: 1180px; }

.article h2 {
  font-family: var(--font-display);
  font-size: var(--step-3);
  line-height: 1.15;
  font-weight: 500;
  font-variation-settings: "opsz" 96;
  letter-spacing: -0.015em;
  margin: 3.5rem auto 1rem;
  max-width: var(--measure);
}
.article h2 .num {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--step--1);
  font-weight: 400;
  color: var(--brick);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.article h3 {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 600;
  font-variation-settings: "opsz" 48;
  letter-spacing: -0.01em;
  margin: 2.5rem auto 0.75rem;
}
.article p { margin: 0 auto 1.25rem; }
.article p.dropcap::first-letter {
  font-family: var(--font-display);
  font-size: 4.5em;
  float: left;
  line-height: 0.85;
  padding: 0.1em 0.1em 0 0;
  font-weight: 500;
  color: var(--water);
  font-variation-settings: "opsz" 144;
}
.article ul, .article ol { margin: 0 auto 1.5rem; padding-left: 1.25rem; }
.article li { margin-bottom: 0.5rem; }
.article li::marker { color: var(--brick); }

/* Pull-quote */
.pullquote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--step-2);
  line-height: 1.3;
  color: var(--water);
  border-left: 3px solid var(--brick);
  padding: 0.5rem 0 0.5rem 1.5rem;
  margin: 2.5rem auto;
  max-width: var(--measure);
}

/* Factbox */
.factbox {
  background: var(--paper-2);
  border: 1px solid var(--sand);
  padding: 1.5rem 1.75rem;
  margin: 2rem auto;
  max-width: var(--measure);
  position: relative;
}
.factbox-label {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--brick);
  margin-bottom: 0.75rem;
}
.factbox h4 {
  font-family: var(--font-display);
  font-size: var(--step-1);
  margin: 0 0 0.5rem;
  font-weight: 600;
}
.factbox p:last-child { margin-bottom: 0; }

/* Comparison table */
.compare {
  width: 100%;
  max-width: var(--measure);
  margin: 2rem auto;
  border-collapse: collapse;
  font-size: var(--step--1);
}
.compare th, .compare td {
  padding: 0.85rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--sand);
  vertical-align: top;
}
.compare th {
  font-family: var(--font-mono);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.75rem;
  color: var(--ink-soft);
  border-bottom: 2px solid var(--ink);
}
.compare tbody tr:hover { background: var(--paper-2); }

/* ---------- Home: topic grid ---------- */
.topic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  margin-top: 3rem;
}
.topic-card {
  background: var(--paper);
  padding: 1.75rem 1.5rem 2rem;
  display: flex; flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: background .2s ease;
  position: relative;
}
.topic-card:hover { background: var(--paper-2); }
.topic-card .topic-num {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  color: var(--brick);
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}
.topic-card h3 {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 0.5rem;
  font-variation-settings: "opsz" 96;
  letter-spacing: -0.01em;
}
.topic-card p {
  font-size: var(--step--1);
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.55;
}
.topic-card::after {
  content: "→";
  position: absolute;
  right: 1.5rem; bottom: 1.5rem;
  font-family: var(--font-mono);
  color: var(--water);
  opacity: 0.5;
  transition: opacity .2s ease, transform .2s ease;
}
.topic-card:hover::after { opacity: 1; transform: translateX(4px); }

/* ---------- Related reading ---------- */
.related {
  border-top: 1px solid var(--rule);
  margin-top: 5rem;
  padding-block: 3rem 1rem;
}
.related h2 {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin: 0 0 1.5rem;
  font-weight: 500;
  color: var(--ink-soft);
}
.related ul { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }
.related a {
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 500;
  text-decoration: none;
  color: var(--ink);
  line-height: 1.25;
  display: block;
}
.related a:hover { color: var(--brick); }
.related li p {
  font-size: var(--step--1);
  color: var(--ink-soft);
  margin-top: 0.4rem;
}

/* ---------- CTA ---------- */
.cta-card {
  background: var(--ink);
  color: var(--paper);
  padding: 2.5rem 2rem;
  margin: 4rem auto;
  max-width: var(--measure);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-card::before {
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 40' preserveAspectRatio='none'><path d='M0 20 Q 25 8, 50 20 T 100 20 T 150 20 T 200 20' stroke='%23d9c9a8' stroke-width='1' fill='none' opacity='0.15'/></svg>");
  background-size: 200px 40px;
  pointer-events: none;
}
.cta-card > * { position: relative; }
.cta-card h3 {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 500;
  font-variation-settings: "opsz" 96;
  margin: 0 0 0.75rem;
  color: var(--paper);
}
.cta-card p { color: var(--sand); margin-bottom: 1.5rem; }
.cta-button {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--sand);
  padding: 0.9rem 1.75rem;
  text-decoration: none;
  border: 1px solid var(--sand);
  transition: all .2s ease;
}
.cta-button:hover { background: transparent; color: var(--sand); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--rule);
  padding-block: 3rem 2rem;
  font-size: var(--step--1);
  color: var(--ink-soft);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin: 0 0 1rem;
  color: var(--ink);
  font-weight: 500;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 0.5rem; }
.footer-grid a { color: var(--ink-soft); text-decoration: none; }
.footer-grid a:hover { color: var(--brick); text-decoration: underline; }
.footer-bottom {
  border-top: 1px solid var(--sand);
  padding-top: 1.5rem;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ---------- Accessibility & motion ---------- */
:focus-visible {
  outline: 2px solid var(--brick);
  outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- Forms ---------- */
.form {
  display: grid;
  gap: 1rem;
  text-align: left;
  max-width: 560px;
  margin-inline: auto;
}
.form-row {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 560px) {
  .form-row { grid-template-columns: 1fr; }
}
.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.field label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--sand);
  font-weight: 500;
}
.cta-card .field label { color: var(--sand); }
.article .field label { color: var(--ink-soft); }
.field input,
.field textarea {
  font: inherit;
  font-family: var(--font-body);
  font-size: var(--step-0);
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--sand);
  padding: 0.7rem 0.85rem;
  border-radius: 0;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
  width: 100%;
}
.field textarea {
  min-height: 120px;
  resize: vertical;
  font-family: var(--font-body);
}
.field input:focus,
.field textarea:focus {
  border-color: var(--brick);
  box-shadow: 0 0 0 3px rgba(166,75,42,0.15);
}
.field-help {
  font-size: 0.75rem;
  color: var(--sand);
  opacity: 0.7;
  margin: 0;
}
.cta-card .field-help { color: var(--sand); }
.article .field-help { color: var(--ink-soft); }

/* Honeypot — hidden from humans, visible to bots */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.form-submit {
  justify-self: end;
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--sand);
  padding: 0.9rem 1.75rem;
  border: 1px solid var(--sand);
  cursor: pointer;
  transition: all .2s ease;
}
.form-submit:hover { background: var(--brick); border-color: var(--brick); color: var(--paper); }

.flash {
  padding: 1rem 1.25rem;
  font-size: var(--step--1);
  margin-bottom: 1.5rem;
  border-left: 3px solid;
}
.flash-error { background: rgba(166,75,42,0.08); border-color: var(--brick); color: var(--brick); }
.flash-success { background: rgba(30,95,110,0.08); border-color: var(--water); color: var(--water); }

/* Inline contact form on article pages */
.inline-form {
  background: var(--paper-2);
  border: 1px solid var(--sand);
  padding: 2rem 1.75rem;
  margin: 3rem auto;
  max-width: var(--measure);
}
.inline-form h3 {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 500;
  font-variation-settings: "opsz" 96;
  margin: 0 0 0.5rem;
  color: var(--ink);
}
.inline-form > p {
  color: var(--ink-soft);
  margin: 0 0 1.5rem;
  font-size: var(--step-0);
}
.inline-form .form { max-width: 100%; }
.inline-form .field input,
.inline-form .field textarea {
  background: var(--paper);
}
.inline-form .field label { color: var(--ink-soft); }

/* ==========================================================================
   VIVID BLOCKS — added for higher-conversion layouts
   ========================================================================== */

/* ---------- Water hero (full-width vivid banner) ---------- */
.water-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(134,220,230,0.35) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 100%, rgba(244,185,66,0.18) 0%, transparent 50%),
    linear-gradient(135deg, var(--pool-deep) 0%, var(--pool-mid) 45%, var(--pool-light) 100%);
  color: var(--cream);
  padding-block: clamp(4rem, 7vw + 2rem, 8rem) clamp(3rem, 5vw + 2rem, 6rem);
}
.water-hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 80' preserveAspectRatio='none'><path d='M0 40 Q 75 15, 150 40 T 300 40 T 450 40 T 600 40' stroke='%2386dce6' stroke-width='1.2' fill='none' opacity='0.35'/><path d='M0 55 Q 75 30, 150 55 T 300 55 T 450 55 T 600 55' stroke='%2386dce6' stroke-width='1' fill='none' opacity='0.25'/><path d='M0 70 Q 75 45, 150 70 T 300 70 T 450 70 T 600 70' stroke='%2386dce6' stroke-width='0.8' fill='none' opacity='0.2'/></svg>");
  background-size: 1200px 160px;
  background-repeat: repeat;
  animation: drift 28s linear infinite;
  pointer-events: none;
  opacity: 0.7;
}
.water-hero::after {
  content: "";
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 36px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 36' preserveAspectRatio='none'><path d='M0 36 Q 150 0, 300 18 T 600 18 T 900 18 T 1200 18 L 1200 36 Z' fill='%23f5f1e8'/></svg>");
  background-size: 100% 100%;
  background-repeat: no-repeat;
}
@keyframes drift {
  from { background-position: 0 0; }
  to   { background-position: 1200px 0; }
}
.water-hero-inner { position: relative; z-index: 1; }
.water-hero .eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  padding: 0.35rem 0.85rem;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 999px;
  color: var(--pool-glow);
  margin-bottom: 1.5rem;
}
.water-hero h1 {
  font-family: var(--font-display);
  font-size: var(--step-5);
  line-height: 1.02;
  font-weight: 500;
  font-variation-settings: "opsz" 144;
  letter-spacing: -0.025em;
  margin: 0 0 1.5rem;
  max-width: 20ch;
  color: var(--cream);
}
.water-hero h1 em {
  font-style: italic;
  color: var(--sun-soft);
  font-variation-settings: "opsz" 144, "SOFT" 50;
}
.water-hero .lede {
  font-size: var(--step-1);
  line-height: 1.5;
  max-width: 56ch;
  color: rgba(255,255,255,0.88);
  font-weight: 300;
  margin-bottom: 2rem;
}
.water-hero .hero-cta-row {
  display: flex; gap: 1rem; flex-wrap: wrap; align-items: center;
  margin-top: 0.5rem;
}
.btn-primary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pool-deep);
  background: var(--sun);
  padding: 1rem 1.75rem;
  text-decoration: none;
  border: 2px solid var(--sun);
  border-radius: 999px;
  transition: all .2s ease;
  box-shadow: 0 10px 25px -10px rgba(244,185,66,0.6);
  font-weight: 600;
  cursor: pointer;
}
.btn-primary:hover {
  background: var(--coral);
  border-color: var(--coral);
  color: var(--cream);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -10px rgba(224,94,62,0.6);
}
.btn-primary svg { width: 16px; height: 16px; }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cream);
  background: transparent;
  padding: 1rem 1.5rem;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 999px;
  transition: all .2s ease;
}
.btn-ghost:hover { background: rgba(255,255,255,0.1); color: var(--cream); }

/* ---------- Trust row (below hero) ---------- */
.trust-row {
  display: flex; flex-wrap: wrap; gap: 1.5rem 2rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.2);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.8);
}
.trust-row .trust-item { display: flex; align-items: center; gap: 0.5rem; }
.trust-row svg { width: 18px; height: 18px; color: var(--pool-glow); flex-shrink: 0; }

/* ---------- Stats band (right below hero) ---------- */
.stats-band {
  background: var(--cream);
  padding-block: 2.5rem 3rem;
  border-bottom: 1px solid var(--sand);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: left;
}
.stat-card {
  padding: 0.5rem 0;
  border-left: 3px solid var(--pool-light);
  padding-left: 1.25rem;
}
.stat-card:nth-child(4n+1) { border-color: var(--pool-light); }
.stat-card:nth-child(4n+2) { border-color: var(--sun); }
.stat-card:nth-child(4n+3) { border-color: var(--coral); }
.stat-card:nth-child(4n+4) { border-color: var(--pool-mid); }
.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.5rem + 2vw, 3.2rem);
  font-weight: 500;
  font-variation-settings: "opsz" 144;
  line-height: 1;
  color: var(--pool-deep);
  margin-bottom: 0.4rem;
  letter-spacing: -0.02em;
}
.stat-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
}
.stat-sub {
  display: block;
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin-top: 0.35rem;
  font-family: var(--font-body);
  text-transform: none;
  letter-spacing: 0;
}

/* ---------- Feature grid with icons (colorful) ---------- */
.features {
  padding-block: 4rem 2rem;
}
.features-head {
  max-width: 680px;
  margin-bottom: 3rem;
}
.features-head .kicker {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--coral);
  margin-bottom: 1rem;
}
.features-head h2 {
  font-family: var(--font-display);
  font-size: var(--step-4);
  font-weight: 500;
  line-height: 1.1;
  margin: 0 0 1rem;
  font-variation-settings: "opsz" 144;
  letter-spacing: -0.02em;
}
.features-head p { color: var(--ink-soft); font-size: var(--step-1); line-height: 1.5; }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.feature-card {
  background: var(--cream);
  padding: 2rem 1.75rem;
  border-radius: 6px;
  border-top: 4px solid var(--pool-light);
  text-decoration: none;
  color: var(--ink);
  transition: all .25s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 260px;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -20px rgba(10,58,71,0.25);
}
.feature-card:nth-child(6n+1) { border-top-color: var(--pool-light); }
.feature-card:nth-child(6n+2) { border-top-color: var(--sun); }
.feature-card:nth-child(6n+3) { border-top-color: var(--coral); }
.feature-card:nth-child(6n+4) { border-top-color: var(--pool-mid); }
.feature-card:nth-child(6n+5) { border-top-color: var(--mint); }
.feature-card:nth-child(6n+6) { border-top-color: var(--brick); }
.feature-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: rgba(58,165,196,0.12);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--pool-mid);
}
.feature-card:nth-child(6n+2) .feature-icon { background: rgba(244,185,66,0.15); color: var(--coral-deep); }
.feature-card:nth-child(6n+3) .feature-icon { background: rgba(224,94,62,0.12); color: var(--coral); }
.feature-card:nth-child(6n+4) .feature-icon { background: rgba(30,122,140,0.12); color: var(--pool-deep); }
.feature-card:nth-child(6n+5) .feature-icon { background: rgba(158,212,198,0.2);  color: var(--pool-mid); }
.feature-card:nth-child(6n+6) .feature-icon { background: rgba(166,75,42,0.12); color: var(--brick); }
.feature-icon svg { width: 24px; height: 24px; }
.feature-card .num-pill {
  position: absolute;
  top: 1.25rem; right: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
}
.feature-card h3 {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 500;
  line-height: 1.2;
  margin: 0 0 0.6rem;
  font-variation-settings: "opsz" 96;
  letter-spacing: -0.01em;
  color: var(--pool-deep);
}
.feature-card p {
  font-size: var(--step--1);
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.55;
  flex-grow: 1;
}
.feature-card .arrow {
  margin-top: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pool-mid);
  transition: gap .2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.feature-card:hover .arrow { gap: 0.75rem; color: var(--coral); }

/* ---------- Benefit strip (above forms) ---------- */
.benefit-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem 2rem;
  background: var(--cream);
  padding: 1.5rem 1.75rem;
  border-radius: 6px;
  margin-bottom: 1.5rem;
  border: 1px solid var(--sand);
}
.benefit {
  display: flex; align-items: flex-start; gap: 0.75rem;
}
.benefit svg {
  flex-shrink: 0;
  width: 28px; height: 28px;
  color: var(--pool-mid);
  margin-top: 2px;
}
.benefit strong {
  display: block;
  font-family: var(--font-display);
  font-size: var(--step-0);
  font-weight: 600;
  color: var(--pool-deep);
  margin-bottom: 0.2rem;
  line-height: 1.2;
  font-variation-settings: "opsz" 48;
}
.benefit span {
  font-size: 0.85rem;
  color: var(--ink-soft);
  line-height: 1.4;
}

/* ---------- Big CTA block (stronger than cta-card) ---------- */
.big-cta {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 10% 10%, rgba(134,220,230,0.25) 0%, transparent 50%),
    linear-gradient(135deg, var(--pool-deep) 0%, var(--pool-mid) 100%);
  color: var(--cream);
  padding: 3.5rem 2.5rem;
  margin-block: 4rem;
  border-radius: 8px;
}
.big-cta::before {
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 60' preserveAspectRatio='none'><path d='M0 30 Q 50 10, 100 30 T 200 30 T 300 30 T 400 30' stroke='%2386dce6' stroke-width='1' fill='none' opacity='0.2'/></svg>");
  background-size: 400px 60px;
  pointer-events: none;
}
.big-cta-inner { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
@media (max-width: 780px) { .big-cta-inner { grid-template-columns: 1fr; gap: 2rem; } }
.big-cta h3 {
  font-family: var(--font-display);
  font-size: var(--step-3);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 1rem;
  font-variation-settings: "opsz" 144;
  letter-spacing: -0.02em;
  color: var(--cream);
}
.big-cta h3 em { font-style: italic; color: var(--sun-soft); }
.big-cta .sub { color: rgba(255,255,255,0.82); line-height: 1.5; margin-bottom: 1.5rem; }
.big-cta .quick-form input,
.big-cta .quick-form textarea {
  background: rgba(255,255,255,0.95);
  border-color: transparent;
}
.big-cta .quick-form label { color: rgba(255,255,255,0.85); }

/* ---------- Quick form (streamlined + prettier) ---------- */
.quick-form {
  display: grid;
  gap: 0.85rem;
}
.quick-form .field input,
.quick-form .field textarea {
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.95);
  color: var(--ink);
}
.quick-form .field input:focus,
.quick-form .field textarea:focus {
  border-color: var(--sun);
  box-shadow: 0 0 0 3px rgba(244,185,66,0.3);
  background: #fff;
}
.quick-form .form-submit {
  border-radius: 999px;
  background: var(--sun);
  border: none;
  color: var(--pool-deep);
  padding: 1rem 1.75rem;
  font-weight: 600;
  margin-top: 0.35rem;
  box-shadow: 0 8px 20px -8px rgba(244,185,66,0.5);
  justify-self: stretch;
  width: 100%;
  text-align: center;
  letter-spacing: 0.08em;
}
.quick-form .form-submit:hover {
  background: var(--coral);
  color: var(--cream);
  box-shadow: 0 10px 24px -8px rgba(224,94,62,0.55);
}
.quick-form .fine-print {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.7);
  margin: 0;
  text-align: center;
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
}
.inline-form .quick-form .fine-print,
.inline-form .fine-print { color: var(--ink-soft); }

/* Inline-form on article pages: bright + inviting */
.inline-form {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--cream) 0%, #f3ede0 100%);
  border: 1px solid var(--sand);
  border-left: 4px solid var(--coral);
  padding: 2.25rem 2rem 2rem;
  border-radius: 6px;
  margin: 3.5rem auto;
  max-width: var(--measure);
}
.inline-form::after {
  content: "";
  position: absolute;
  right: -40px; top: -40px;
  width: 180px; height: 180px;
  background: radial-gradient(circle, var(--pool-glow) 0%, transparent 65%);
  opacity: 0.2;
  pointer-events: none;
  border-radius: 50%;
}
.inline-form > * { position: relative; }
.inline-form .kicker {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--coral);
  margin-bottom: 0.65rem;
}
.inline-form h3 {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 0.6rem;
  color: var(--pool-deep);
  font-variation-settings: "opsz" 96;
  letter-spacing: -0.01em;
}
.inline-form h3 em { font-style: italic; color: var(--coral); }
.inline-form > p {
  color: var(--ink-soft);
  margin: 0 0 1.25rem;
  font-size: var(--step-0);
  line-height: 1.55;
}
.inline-form .form-submit {
  background: var(--coral);
  color: var(--cream);
  border: 2px solid var(--coral);
  border-radius: 999px;
  padding: 0.9rem 1.75rem;
  font-weight: 600;
  box-shadow: 0 10px 24px -12px rgba(224,94,62,0.6);
  justify-self: start;
  text-align: center;
}
.inline-form .form-submit:hover {
  background: var(--pool-deep);
  border-color: var(--pool-deep);
  color: var(--cream);
  transform: translateY(-2px);
}

/* ---------- Section band (colored divider) ---------- */
.section-band {
  background: var(--pool-deep);
  color: var(--cream);
  padding-block: 3.5rem;
  position: relative;
  overflow: hidden;
}
.section-band::before {
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 40' preserveAspectRatio='none'><path d='M0 20 Q 50 5, 100 20 T 200 20 T 300 20 T 400 20' stroke='%2386dce6' stroke-width='1' fill='none' opacity='0.2'/></svg>");
  background-size: 400px 40px;
  pointer-events: none;
}
.section-band .wrap { position: relative; }
.section-band h2 {
  font-family: var(--font-display);
  font-size: var(--step-3);
  font-weight: 500;
  margin: 0 0 0.5rem;
  color: var(--cream);
  font-variation-settings: "opsz" 96;
}
.section-band h2 em { color: var(--sun-soft); font-style: italic; }
.section-band p { color: rgba(255,255,255,0.82); max-width: 60ch; margin: 0; font-size: var(--step-1); line-height: 1.5; }

/* ---------- Split comparison cards ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin: 2.5rem 0;
}
@media (max-width: 680px) { .split { grid-template-columns: 1fr; } }
.split-card {
  padding: 2rem 1.75rem;
  border-radius: 6px;
  background: var(--cream);
  border: 1px solid var(--sand);
  border-top: 4px solid var(--pool-light);
}
.split-card.alt { border-top-color: var(--coral); }
.split-card .tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.3rem 0.7rem;
  background: rgba(58,165,196,0.15);
  color: var(--pool-mid);
  border-radius: 999px;
  margin-bottom: 1rem;
}
.split-card.alt .tag { background: rgba(224,94,62,0.12); color: var(--coral-deep); }
.split-card h4 {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 500;
  margin: 0 0 1rem;
  color: var(--pool-deep);
  font-variation-settings: "opsz" 96;
  letter-spacing: -0.01em;
}
.split-card ul { list-style: none; padding: 0; margin: 0; }
.split-card li {
  display: flex; align-items: flex-start; gap: 0.6rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--sand);
  font-size: var(--step--1);
  color: var(--ink);
  line-height: 1.45;
}
.split-card li:last-child { border-bottom: none; }
.split-card li::before {
  content: "✓";
  color: var(--pool-mid);
  font-weight: 700;
  flex-shrink: 0;
  font-size: 1rem;
}
.split-card.alt li::before { color: var(--coral); }
.split-card li.neg::before { content: "—"; color: var(--ink-soft); }

/* ---------- Mobile sticky CTA ---------- */
.sticky-cta {
  display: none;
  position: fixed;
  bottom: 16px; left: 16px; right: 16px;
  z-index: 50;
  background: var(--coral);
  color: var(--cream);
  padding: 0.9rem 1.25rem;
  border-radius: 999px;
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  box-shadow: 0 12px 28px -8px rgba(224,94,62,0.55);
  text-align: center;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}
.sticky-cta:hover { background: var(--coral-deep); color: var(--cream); }
@media (max-width: 720px) { .sticky-cta { display: flex; } main { padding-bottom: 70px; } }

/* ---------- Refreshed topic grid (home) — make more colorful ---------- */
.topic-grid .topic-card {
  background: var(--cream);
  border: 1px solid var(--sand);
  border-top: 4px solid var(--pool-light);
}
.topic-grid { gap: 1rem; background: transparent; border: none; }
.topic-grid .topic-card:nth-child(6n+1) { border-top-color: var(--pool-light); }
.topic-grid .topic-card:nth-child(6n+2) { border-top-color: var(--sun); }
.topic-grid .topic-card:nth-child(6n+3) { border-top-color: var(--coral); }
.topic-grid .topic-card:nth-child(6n+4) { border-top-color: var(--pool-mid); }
.topic-grid .topic-card:nth-child(6n+5) { border-top-color: var(--mint); }
.topic-grid .topic-card:nth-child(6n+6) { border-top-color: var(--brick); }
.topic-grid .topic-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -16px rgba(10,58,71,0.22); }
.topic-card h3 { color: var(--pool-deep); }
.topic-card::after { color: var(--coral); opacity: 1; }

/* ---------- Hero article pages get lighter pool accent ---------- */
.hero { background: linear-gradient(180deg, rgba(58,165,196,0.08) 0%, rgba(245,241,232,0) 100%); }
.hero .hero-label {
  color: var(--coral);
}
.hero .hero-label::before { background: var(--coral); }

/* ---------- Print ---------- */
@media print {
  .masthead, .site-footer, .cta-card, .related { display: none; }
  body { background: white; color: black; }
  .article { padding: 0; }
}
