/* ============================================
   Possible Loans Finance — Design System
   "8-Week Schedule" aesthetic
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,400;12..96,500;12..96,600;12..96,700&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --bg:        #F8F5F0;
  --bg-card:   #FFFFFF;
  --bg-sunk:  #F1ECE2;
  --ink:       #0A2540;
  --ink-soft:  #3D4F66;
  --ink-mute:  #6B7888;
  --teal:      #14B8A6;
  --teal-deep: #0F766E;
  --teal-soft: #CCFBF1;
  --amber:     #D97706;
  --amber-soft:#FEF3C7;
  --hairline:  #D6D2C8;
  --hairline-strong: #B8B2A4;
  --danger:    #B91C1C;
  --font-display: 'Bricolage Grotesque', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, monospace;
  --max-w: 1120px;
  --max-w-prose: 720px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 17px; line-height: 1.65; font-feature-settings: 'ss01', 'cv11'; -webkit-font-smoothing: antialiased; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; color: var(--ink); margin: 0 0 0.5em; font-variation-settings: "opsz" 24; }
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.05; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); line-height: 1.15; margin-top: 2.5rem; }
h3 { font-size: clamp(1.2rem, 2.4vw, 1.4rem); line-height: 1.25; margin-top: 2rem; }
h4 { font-size: 1.05rem; line-height: 1.3; margin-top: 1.5rem; }
p { margin: 0 0 1.1em; max-width: 68ch; }
a { color: var(--teal-deep); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color 0.15s var(--ease); }
a:hover { color: var(--ink); }
strong { font-weight: 600; }
ul, ol { padding-left: 1.4em; margin: 0 0 1.2em; max-width: 68ch; }
li { margin-bottom: 0.5em; }
code, .mono { font-family: var(--font-mono); font-size: 0.92em; }
blockquote { border-left: 3px solid var(--teal); padding: 0.5em 0 0.5em 1.2em; margin: 1.5em 0; color: var(--ink-soft); font-style: italic; }
hr { border: none; border-top: 1px solid var(--hairline); margin: 3rem 0; }

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

.site-header { border-bottom: 1px solid var(--hairline); background: var(--bg); position: relative; z-index: 100; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; padding-top: 1rem; padding-bottom: 1rem; }
.brand { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; letter-spacing: -0.015em; color: var(--ink); text-decoration: none; }
.nav-list { display: flex; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.nav-list a { color: var(--ink-soft); text-decoration: none; font-size: 0.92rem; font-weight: 500; }
.nav-list a:hover { color: var(--ink); }

/* ── Hamburger button ── */
.nav-toggle {
  display: none;
  background: transparent;
  border: 1.5px solid var(--hairline-strong);
  border-radius: 6px;
  cursor: pointer;
  padding: 0;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: border-color 0.15s, background 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.nav-toggle:hover { border-color: var(--teal); background: var(--bg-sunk); }
.nav-toggle:active { background: var(--teal-soft); }
.nav-toggle .hb-line {
  display: block;
  position: absolute;
  left: 12px; right: 12px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.22s var(--ease), opacity 0.18s var(--ease), top 0.22s var(--ease);
}
.nav-toggle .hb-line:nth-child(1) { top: 14px; }
.nav-toggle .hb-line:nth-child(2) { top: 21px; }
.nav-toggle .hb-line:nth-child(3) { top: 28px; }
.nav-toggle[aria-expanded="true"] { background: var(--ink); border-color: var(--ink); }
.nav-toggle[aria-expanded="true"] .hb-line { background: var(--bg); }
.nav-toggle[aria-expanded="true"] .hb-line:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .hb-line:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .hb-line:nth-child(3) { top: 21px; transform: rotate(-45deg); }

@media (max-width: 720px) {
  .nav-list {
    display: none;
    flex-direction: column;
    position: absolute;
    top: calc(100% + 1px);
    left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--hairline);
    box-shadow: 0 12px 24px -8px rgba(10, 37, 64, 0.18);
    padding: 0.6rem var(--gutter) 1rem;
    gap: 0;
    z-index: 99;
    animation: navSlideDown 0.22s var(--ease);
  }
  .nav-list.open { display: flex; }
  .nav-list li { border-bottom: 1px solid var(--hairline); }
  .nav-list li:last-child { border-bottom: none; }
  .nav-list a {
    padding: 0.95rem 0;
    font-size: 1rem;
    color: var(--ink);
    display: flex;
    align-items: center;
    min-height: 48px;
  }
  .nav-list a::after {
    content: '→';
    margin-left: auto;
    color: var(--ink-mute);
    font-family: var(--font-mono);
    font-weight: 400;
  }
  .nav-toggle { display: inline-flex; }
}
@keyframes navSlideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(2rem, 5vw, 3.5rem); border-bottom: 1px solid var(--hairline); }
.eyebrow { display: inline-block; font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 1.2rem; border-top: 1px solid var(--ink); padding-top: 0.5rem; }
.hero-lead { font-size: clamp(1.05rem, 1.8vw, 1.2rem); color: var(--ink-soft); max-width: 58ch; margin-top: 1.2rem; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 1.4rem 2rem; margin-top: 1.6rem; font-size: 0.88rem; color: var(--ink-mute); align-items: center; }
.hero-meta-item { display: flex; align-items: center; gap: 0.45rem; }
.hero-meta-item strong { color: var(--ink); font-weight: 600; }
.dot-sep { color: var(--hairline-strong); }

.schedule { margin: 2.5rem 0; position: relative; }
.schedule-track { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; position: relative; align-items: start; }
.schedule-track::before { content: ''; position: absolute; top: 11px; left: 8%; right: 8%; height: 1.5px; background: linear-gradient(90deg, var(--teal) 0%, var(--teal) 50%, var(--amber) 50%, var(--amber) 100%); z-index: 0; }
.schedule-node { position: relative; text-align: center; z-index: 1; }
.schedule-dot { width: 22px; height: 22px; border-radius: 50%; background: var(--bg); border: 2.5px solid var(--teal); margin: 0 auto 0.7rem; position: relative; display: block; }
.schedule-node:first-child .schedule-dot { background: var(--ink); border-color: var(--ink); }
.schedule-node:nth-child(2) .schedule-dot, .schedule-node:nth-child(3) .schedule-dot { background: var(--teal); border-color: var(--teal); }
.schedule-node:nth-child(4) .schedule-dot, .schedule-node:nth-child(5) .schedule-dot { background: var(--bg); border-color: var(--amber); }
.schedule-label { font-family: var(--font-display); font-weight: 600; font-size: 0.92rem; color: var(--ink); margin: 0; letter-spacing: -0.01em; }
.schedule-when { font-family: var(--font-mono); font-size: 0.72rem; color: var(--ink-mute); margin-top: 0.15rem; letter-spacing: 0.02em; }
@media (max-width: 580px) { .schedule-label { font-size: 0.78rem; } .schedule-when { font-size: 0.65rem; } .schedule-dot { width: 16px; height: 16px; } .schedule-track::before { top: 8px; } }

.cta-row { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2rem; }
.btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.85rem 1.5rem; border-radius: 4px; font-family: var(--font-body); font-weight: 600; font-size: 0.95rem; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: all 0.15s var(--ease); line-height: 1; }
.btn-primary { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn-primary:hover { background: var(--teal-deep); border-color: var(--teal-deep); color: var(--bg-card); }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-secondary:hover { background: var(--ink); color: var(--bg); }
.btn-arrow::after { content: ' →'; font-family: var(--font-mono); }

.verdict { background: var(--bg-card); border: 1px solid var(--hairline); border-radius: 6px; padding: clamp(1.5rem, 3vw, 2rem); margin: 2.5rem 0; display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .verdict { grid-template-columns: 200px 1fr; gap: 2rem; } }
.verdict-rating { text-align: center; border-right: none; padding-right: 0; border-bottom: 1px solid var(--hairline); padding-bottom: 1.5rem; }
@media (min-width: 720px) { .verdict-rating { border-right: 1px solid var(--hairline); border-bottom: none; padding-right: 1.5rem; padding-bottom: 0; } }
.verdict-score { font-family: var(--font-display); font-size: 3.4rem; font-weight: 700; line-height: 1; color: var(--ink); letter-spacing: -0.04em; font-variation-settings: "opsz" 72; }
.verdict-score-sub { font-family: var(--font-mono); font-size: 0.78rem; color: var(--ink-mute); letter-spacing: 0.04em; margin-top: 0.4rem; }
.verdict-label { font-family: var(--font-display); font-weight: 600; font-size: 1rem; margin: 0.8rem 0 0; color: var(--ink); }
.verdict-body h3 { margin-top: 0; }
.verdict-tldr { display: grid; grid-template-columns: 1fr; gap: 0.8rem; margin-top: 1rem; }
@media (min-width: 560px) { .verdict-tldr { grid-template-columns: 1fr 1fr; } }
.verdict-tldr-item { font-size: 0.92rem; padding-left: 1.4rem; position: relative; color: var(--ink-soft); }
.verdict-tldr-item::before { position: absolute; left: 0; top: 0; font-family: var(--font-mono); font-weight: 600; }
.verdict-tldr-item.good::before { content: '+'; color: var(--teal-deep); }
.verdict-tldr-item.bad::before { content: '−'; color: var(--amber); }

.section { padding: clamp(2.5rem, 5vw, 4rem) 0; border-bottom: 1px solid var(--hairline); }
.section:last-of-type { border-bottom: none; }
.section-head { max-width: 64ch; margin-bottom: 1.6rem; }
.section-eyebrow { display: flex; align-items: center; gap: 0.6rem; font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 0.7rem; }
.section-eyebrow::before { content: ''; width: 24px; height: 1px; background: var(--ink-mute); }

.data-table { width: 100%; border-collapse: collapse; font-size: 0.94rem; margin: 1.5rem 0; }
.data-table th, .data-table td { text-align: left; padding: 0.85rem 0.5rem 0.85rem 0; border-bottom: 1px solid var(--hairline); }
.data-table th { font-family: var(--font-display); font-weight: 600; color: var(--ink); border-bottom: 1.5px solid var(--ink); }
.data-table td.num, .data-table th.num { font-family: var(--font-mono); text-align: right; }
.data-table tr:hover { background: var(--bg-sunk); }

.info-box { background: var(--teal-soft); border-left: 3px solid var(--teal-deep); padding: 1rem 1.2rem; margin: 1.5rem 0; border-radius: 0 4px 4px 0; font-size: 0.94rem; }
.warn-box { background: var(--amber-soft); border-left: 3px solid var(--amber); padding: 1rem 1.2rem; margin: 1.5rem 0; border-radius: 0 4px 4px 0; font-size: 0.94rem; }
.info-box p:last-child, .warn-box p:last-child { margin-bottom: 0; }
.info-box strong, .warn-box strong { color: var(--ink); }

.apply-box { background: var(--ink); color: var(--bg); border-radius: 6px; padding: clamp(1.5rem, 4vw, 2.5rem); margin: 3rem 0; text-align: center; }
.apply-box h3 { color: var(--bg); margin-top: 0; font-size: clamp(1.3rem, 2.6vw, 1.6rem); }
.apply-box p { color: rgba(248, 245, 240, 0.82); margin: 0.6rem auto 1.5rem; max-width: 50ch; }
.apply-box .btn-primary { background: var(--teal); border-color: var(--teal); color: var(--ink); }
.apply-box .btn-primary:hover { background: var(--teal-soft); border-color: var(--teal-soft); }
.apply-box-disclosure { font-size: 0.75rem; color: rgba(248, 245, 240, 0.55); margin-top: 1rem; font-family: var(--font-mono); letter-spacing: 0.02em; }

.apidiamond-wrap { background: var(--bg-card); border: 1px solid var(--hairline); border-radius: 6px; padding: clamp(1.2rem, 3vw, 2rem); margin: 2.5rem 0; }
.apidiamond-wrap h3 { margin-top: 0; }
.apidiamond-wrap iframe { width: 100%; min-height: 460px; border: 0; }

.faq-list { margin: 1.5rem 0; }
.faq-item { border-bottom: 1px solid var(--hairline); padding: 1.2rem 0; }
.faq-q { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: var(--ink); cursor: pointer; list-style: none; position: relative; padding-right: 2rem; }
.faq-q::-webkit-details-marker { display: none; }
.faq-q::after { content: '+'; position: absolute; right: 0; top: 0; font-family: var(--font-mono); font-weight: 400; font-size: 1.4rem; transition: transform 0.2s var(--ease); color: var(--ink-mute); }
.faq-item[open] .faq-q::after { content: '−'; }
.faq-a { padding-top: 0.8rem; color: var(--ink-soft); font-size: 0.96rem; }
.faq-a p:last-child { margin-bottom: 0; }

.author-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem; padding: 1.2rem 0; border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); margin: 2rem 0; font-size: 0.88rem; color: var(--ink-mute); }
.author-strip-item { display: flex; align-items: center; gap: 0.5rem; }
.author-strip-item strong { color: var(--ink); font-weight: 600; }
.author-strip-item .mono { color: var(--ink-soft); font-size: 0.82rem; }

.site-footer { background: var(--bg-sunk); border-top: 1px solid var(--hairline); padding: 3rem 0 2rem; margin-top: 4rem; font-size: 0.88rem; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; margin-bottom: 2rem; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer-about p { color: var(--ink-soft); max-width: 40ch; font-size: 0.88rem; }
.footer-col h4 { font-family: var(--font-mono); text-transform: uppercase; font-size: 0.74rem; letter-spacing: 0.06em; color: var(--ink-mute); font-weight: 500; margin: 0 0 0.8rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a { color: var(--ink-soft); text-decoration: none; font-size: 0.9rem; }
.footer-col a:hover { color: var(--ink); text-decoration: underline; }
.disclosures { border-top: 1px solid var(--hairline); padding-top: 1.5rem; font-size: 0.78rem; color: var(--ink-mute); line-height: 1.6; }
.disclosures p { max-width: 100%; margin-bottom: 0.8rem; }
.disclosures strong { color: var(--ink-soft); }

.breadcrumb { font-family: var(--font-mono); font-size: 0.78rem; color: var(--ink-mute); padding: 1rem 0; border-bottom: 1px solid var(--hairline); }
.breadcrumb a { color: var(--ink-mute); text-decoration: none; }
.breadcrumb a:hover { color: var(--ink); text-decoration: underline; }
.breadcrumb-sep { margin: 0 0.4rem; color: var(--hairline-strong); }

.related-grid { display: grid; grid-template-columns: 1fr; gap: 1.2rem; margin-top: 1.5rem; }
@media (min-width: 640px) { .related-grid { grid-template-columns: 1fr 1fr; } }
.related-card { display: block; padding: 1.2rem; background: var(--bg-card); border: 1px solid var(--hairline); border-radius: 6px; text-decoration: none; color: var(--ink); transition: all 0.15s var(--ease); }
.related-card:hover { border-color: var(--ink); transform: translateY(-1px); color: var(--ink); }
.related-card .eyebrow { margin-bottom: 0.5rem; border-top: 0; padding-top: 0; }
.related-card h4 { margin: 0; font-size: 1rem; color: var(--ink); }

.pros-cons { display: grid; grid-template-columns: 1fr; gap: 1.2rem; margin: 1.8rem 0; }
@media (min-width: 640px) { .pros-cons { grid-template-columns: 1fr 1fr; } }
.pros-cons-col { background: var(--bg-card); border: 1px solid var(--hairline); border-radius: 6px; padding: 1.2rem 1.4rem; }
.pros-cons-col h4 { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; margin: 0 0 0.8rem; font-weight: 500; }
.pros-cons-col.pros h4 { color: var(--teal-deep); }
.pros-cons-col.cons h4 { color: var(--amber); }
.pros-cons-col ul { list-style: none; padding: 0; margin: 0; }
.pros-cons-col li { position: relative; padding-left: 1.4rem; margin-bottom: 0.7rem; font-size: 0.94rem; color: var(--ink-soft); }
.pros-cons-col li::before { position: absolute; left: 0; top: 0; font-family: var(--font-mono); font-weight: 600; }
.pros-cons-col.pros li::before { content: '+'; color: var(--teal-deep); }
.pros-cons-col.cons li::before { content: '−'; color: var(--amber); }

.stats-strip { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; margin: 2rem 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--hairline); }
@media (min-width: 640px) { .stats-strip { grid-template-columns: repeat(4, 1fr); } }
.stat { padding: 1.2rem 1rem 1.2rem 0; border-right: 1px solid var(--hairline); }
.stat:last-child { border-right: 0; }
.stat-val { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.4rem, 2.6vw, 1.8rem); color: var(--ink); letter-spacing: -0.02em; line-height: 1; font-variation-settings: "opsz" 36; }
.stat-label { font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-mute); margin-top: 0.4rem; }

.toc { background: var(--bg-card); border: 1px solid var(--hairline); border-radius: 6px; padding: 1.2rem 1.4rem; margin: 2rem 0; }
.toc h4 { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.06em; text-transform: uppercase; margin: 0 0 0.8rem; color: var(--ink-mute); font-weight: 500; }
.toc ol { list-style: none; padding: 0; margin: 0; counter-reset: tocitem; }
.toc li { counter-increment: tocitem; padding: 0.35rem 0 0.35rem 2rem; position: relative; font-size: 0.95rem; }
.toc li::before { content: counter(tocitem, decimal-leading-zero); position: absolute; left: 0; font-family: var(--font-mono); font-size: 0.78rem; color: var(--ink-mute); top: 0.4rem; }
.toc a { color: var(--ink-soft); text-decoration: none; }
.toc a:hover { color: var(--ink); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; } }
:focus-visible { outline: 2px solid var(--teal-deep); outline-offset: 3px; border-radius: 2px; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--ink); color: var(--bg); padding: 0.5rem 1rem; z-index: 100; }
.skip-link:focus { left: 0; }

/* ============================================
   Migration extensions — covering legacy class names
   used in cluster pages whose content was carried over.
   Designed to harmonize with the 8-Week Schedule aesthetic.
   ============================================ */

/* Large button variant (used in some migrated CTAs) */
.btn-lg { padding: 1rem 2rem; font-size: 1.05rem; }

/* CTA section: deep ink block with teal accent — for mid-page conversion bumps */
.cta-section {
  background: var(--ink);
  color: var(--bg);
  padding: clamp(2rem, 5vw, 3rem);
  border-radius: 6px;
  margin: 2.5rem 0;
  border-left: 4px solid var(--teal);
}
.cta-section h2, .cta-section h3 { color: var(--bg); margin-top: 0; }
.cta-section p { color: rgba(248, 245, 240, 0.85); max-width: none; }
.cta-section .btn,
.cta-section .btn-primary {
  background: var(--teal);
  color: var(--ink);
  border-color: var(--teal);
}
.cta-section .btn:hover,
.cta-section .btn-primary:hover { background: var(--teal-soft); color: var(--ink); }
.cta-section a:not(.btn) { color: var(--teal-soft); }

/* Generic card / card-grid (used in some legacy pages for option cards) */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
  margin: 1.5rem 0;
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--hairline);
  border-radius: 6px;
  padding: 1.4rem;
  transition: border-color 0.15s var(--ease), transform 0.15s var(--ease);
}
.card:hover { border-color: var(--hairline-strong); transform: translateY(-2px); }
.card h3, .card h4 { margin-top: 0; }

/* Stat card / stat grid (used in some legacy pages for headline metrics) */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}
.stat-card {
  background: var(--bg-sunk);
  border: 1px solid var(--hairline);
  border-radius: 6px;
  padding: 1.2rem 1.4rem;
}
.stat-value {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.2vw, 2rem);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.1;
  display: block;
  margin-bottom: 0.3rem;
}
.stat-card p { margin: 0; color: var(--ink-soft); font-size: 0.9rem; }

/* Related-articles wrapper (migration variant) */
.related-articles-wrapper { background: var(--bg-sunk); }

/* Product illustration cards (used on pillar's product sections) */
.product-image {
  margin: 1.8rem 0 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  padding: 0.4rem;
  overflow: hidden;
}
.product-image svg {
  width: 100%;
  height: auto;
  max-height: 320px;
  display: block;
  border-radius: 6px;
}

/* ============================================
   Hero with background image (pillar only)
   Use class="hero hero--bg" to opt in.
   Uses relative path so it works on both http:// and file:// .
   ============================================ */

.hero--bg {
  position: relative;
  /* JPG fallback for ancient browsers */
  background-image:
    linear-gradient(96deg,
      rgba(10, 37, 64, 0.94) 0%,
      rgba(10, 37, 64, 0.85) 32%,
      rgba(10, 37, 64, 0.58) 62%,
      rgba(10, 37, 64, 0.32) 100%),
    url('../img/hero-bg.jpg');
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  color: var(--bg);
  border-bottom: none;
  padding: clamp(3rem, 7vw, 5rem) 0 clamp(2.5rem, 6vw, 4rem);
}
/* WebP override for modern browsers (saves 30%+ vs JPG) */
@supports (background-image: url('test.webp')) {
  .hero--bg {
    background-image:
      linear-gradient(96deg,
        rgba(10, 37, 64, 0.94) 0%,
        rgba(10, 37, 64, 0.85) 32%,
        rgba(10, 37, 64, 0.58) 62%,
        rgba(10, 37, 64, 0.32) 100%),
      url('../img/hero-bg.webp');
  }
  @media (max-width: 720px) {
    .hero--bg {
      background-image:
        linear-gradient(180deg,
          rgba(10, 37, 64, 0.88) 0%,
          rgba(10, 37, 64, 0.78) 60%,
          rgba(10, 37, 64, 0.65) 100%),
        url('../img/hero-bg-sm.webp');
    }
  }
}


/* Headline + lead in cream for legibility on dark overlay */
.hero--bg h1,
.hero--bg h1 br { color: var(--bg); }
.hero--bg .hero-lead {
  color: rgba(248, 245, 240, 0.92);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

/* Eyebrow if ever re-added */
.hero--bg .eyebrow {
  color: rgba(248, 245, 240, 0.7);
  border-top-color: rgba(248, 245, 240, 0.5);
}

/* Schedule timeline — light dots/labels on dark bg */
.hero--bg .schedule-label { color: var(--bg); }
.hero--bg .schedule-when  { color: rgba(248, 245, 240, 0.7); }
.hero--bg .schedule-track::before {
  background: linear-gradient(90deg,
    #5EEAD4 0%, #5EEAD4 50%, #FBBF24 50%, #FBBF24 100%);
  opacity: 0.85;
}
.hero--bg .schedule-dot {
  border-color: var(--bg);
  background: #5EEAD4;
}
.hero--bg .schedule-node:last-child .schedule-dot { background: #FBBF24; }

/* Hero meta — cream strongs, soft white spans */
.hero--bg .hero-meta {
  color: rgba(248, 245, 240, 0.78);
  border-color: rgba(248, 245, 240, 0.15);
}
.hero--bg .hero-meta-item strong { color: var(--bg); }
.hero--bg .hero-meta-item span   { color: rgba(248, 245, 240, 0.7); }
.hero--bg .dot-sep { color: rgba(248, 245, 240, 0.35); }

/* Buttons — primary becomes teal accent, secondary becomes ghost */
.hero--bg .btn-primary {
  background: #14B8A6;
  color: #0A2540;
  border-color: #14B8A6;
}
.hero--bg .btn-primary:hover {
  background: #5EEAD4;
  border-color: #5EEAD4;
  color: #0A2540;
}
.hero--bg .btn-secondary {
  background: transparent;
  color: var(--bg);
  border-color: rgba(248, 245, 240, 0.5);
}
.hero--bg .btn-secondary:hover {
  border-color: var(--bg);
  background: rgba(248, 245, 240, 0.08);
  color: var(--bg);
}

/* Mobile: switch to vertical gradient + smaller image */
@media (max-width: 720px) {
  .hero--bg {
    background-image:
      linear-gradient(180deg,
        rgba(10, 37, 64, 0.88) 0%,
        rgba(10, 37, 64, 0.78) 60%,
        rgba(10, 37, 64, 0.65) 100%),
      url('../img/hero-bg-sm.webp');
    background-position: center center;
  }
}

/* ============================================
   E-E-A-T: Expert voices section
   ============================================ */
.expert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.2rem;
  margin: 1.8rem 0;
}
.expert-card {
  background: var(--bg-card);
  border: 1px solid var(--hairline);
  border-left: 4px solid var(--teal);
  border-radius: 6px;
  padding: 1.4rem 1.4rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.expert-header {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}
.expert-avatar {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  overflow: hidden;
}
.expert-avatar svg { width: 52px; height: 52px; }
.expert-meta { flex: 1; min-width: 0; }
.expert-name  { font-family: var(--font-display); font-size: 0.96rem; font-weight: 600; color: var(--ink); margin: 0 0 0.15rem; }
.expert-title { font-size: 0.82rem; color: var(--ink-soft); margin: 0; line-height: 1.3; }
.expert-org   { font-size: 0.78rem; color: var(--teal-deep); font-weight: 500; margin: 0; }
.expert-quote {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--ink-soft);
  border-left: none;
  margin: 0;
  padding: 0;
  font-style: italic;
}
.expert-source {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--ink-mute);
  margin: 0;
}
.expert-source a { color: var(--teal-deep); text-decoration: underline; }

/* Editorial methodology strip */
.methodology-strip {
  background: var(--bg-sunk);
  border: 1px solid var(--hairline);
  border-radius: 6px;
  padding: 1.4rem;
  margin: 2rem 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem 1.5rem;
}
.methodology-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 0.25rem;
}
.methodology-item span {
  font-size: 0.82rem;
  color: var(--ink-soft);
  line-height: 1.4;
}

/* Trust badges row */
.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 1.2rem 0;
  align-items: center;
}
.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.75rem;
  border: 1px solid var(--hairline-strong);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  font-family: var(--font-mono);
  transition: border-color 0.15s, color 0.15s;
}
.trust-badge:hover { border-color: var(--teal); color: var(--teal-deep); }
.trust-badge .badge-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--teal); flex-shrink: 0;
}

/* About page contributor grid */
.contributor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.2rem;
  margin: 1.5rem 0;
}
.contributor-card {
  background: var(--bg-card);
  border: 1px solid var(--hairline);
  border-radius: 8px;
  padding: 1.4rem 1.2rem;
  text-align: center;
}
.contributor-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  margin: 0 auto 0.85rem;
  overflow: hidden;
  border: 2px solid var(--hairline);
}
.contributor-avatar svg { width: 72px; height: 72px; }
.contributor-role { font-size: 0.8rem; color: var(--ink-mute); font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.04em; margin: 0 0 0.2rem; }
.contributor-name { font-family: var(--font-display); font-size: 1rem; font-weight: 600; color: var(--ink); margin: 0 0 0.4rem; }
.contributor-desc { font-size: 0.85rem; color: var(--ink-soft); margin: 0; line-height: 1.5; }

/* ============================================
   APIdiamond Form Section — hero-adjacent
   ============================================ */

.apply-form-section {
  background:
    /* Spotlight at top-center — draws eye to form */
    radial-gradient(ellipse 80% 60% at 50% 25%, rgba(20, 184, 166, 0.13) 0%, transparent 60%),
    /* Warm amber accent bottom-left */
    radial-gradient(ellipse 50% 50% at 12% 88%, rgba(217, 119, 6, 0.10) 0%, transparent 50%),
    /* Cool teal accent bottom-right */
    radial-gradient(ellipse 50% 50% at 88% 80%, rgba(20, 184, 166, 0.10) 0%, transparent 50%),
    /* Dot grid pattern — subtle texture */
    radial-gradient(circle, rgba(94, 234, 212, 0.07) 1px, transparent 1px) 0 0 / 28px 28px,
    /* Base navy */
    var(--ink);
  padding: clamp(2.5rem, 6vw, 4rem) 0;
  position: relative;
  overflow: hidden;
}
.apply-form-section > .container {
  position: relative;
  z-index: 2;
}

/* Arrow connector — visual bridge from hero above */
.apply-form-section::before {
  content: '';
  display: block;
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 24px solid transparent;
  border-right: 24px solid transparent;
  border-top: 18px solid var(--bg);
  z-index: 3;
}

/* Decorative corner SVGs — payment timelines + floating $ */
.bg-deco {
  position: absolute;
  pointer-events: none;
  user-select: none;
  z-index: 1;
}
.bg-deco--tl { top: 6%;  left: 4%;  width: 140px; opacity: 0.18; }
.bg-deco--tr { top: 10%; right: 5%; width: 90px;  opacity: 0.14; }
.bg-deco--bl { bottom: 12%; left: 6%; width: 80px; opacity: 0.14; }
.bg-deco--br { bottom: 8%;  right: 4%; width: 140px; opacity: 0.18; }

@media (max-width: 768px) {
  .bg-deco--tl, .bg-deco--br { width: 80px; }
  .bg-deco--tr, .bg-deco--bl { display: none; }
}

.apply-form-header {
  text-align: center;
  margin-bottom: 2rem;
}
.apply-form-header h2 {
  color: var(--bg);
  margin: 0 0 0.6rem;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
}
.apply-form-header p {
  color: rgba(248, 245, 240, 0.75);
  font-size: 1.05rem;
  max-width: 52ch;
  margin: 0 auto;
}

/* White card wrapper around the form */
.apply-form-card {
  background: #ffffff;
  border-radius: 14px;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  max-width: 680px;
  margin: 0 auto;
  position: relative;
  box-shadow:
    /* Outer teal glow ring */
    0 0 0 1px rgba(20, 184, 166, 0.15),
    0 0 40px -8px rgba(20, 184, 166, 0.25),
    /* Deep shadow for depth */
    0 12px 40px rgba(0, 0, 0, 0.35),
    0 4px 12px rgba(0, 0, 0, 0.25);
}
.apply-form-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 14px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.4), transparent 50%, rgba(94, 234, 212, 0.2));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}

/* Form div from APIdiamond — ensure it fills the card */
#_lg_form_ {
  width: 100%;
  min-height: 200px;
}

/* Trust icons row below form */
.apply-form-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem 1.4rem;
  margin-top: 1.6rem;
  font-size: 0.82rem;
  color: rgba(248, 245, 240, 0.6);
  font-family: var(--font-mono);
}
.apply-form-trust span::before {
  content: '✓ ';
  color: var(--teal);
  font-weight: 700;
}

/* Mid-page apply-box: convert to compact scroll-up CTA */
.apply-box-cta {
  background: var(--ink);
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  margin: 2.5rem 0;
}
.apply-box-cta h3 { color: var(--bg); margin: 0 0 0.5rem; }
.apply-box-cta p  { color: rgba(248,245,240,0.75); margin: 0 0 1.2rem; font-size: 0.95rem; max-width: none; }
.apply-box-cta .btn-primary {
  background: var(--teal); color: var(--ink);
  border-color: var(--teal); font-size: 1rem;
}
.apply-box-cta .btn-primary:hover {
  background: #5EEAD4; border-color: #5EEAD4;
}

/* ============================================
   Brand word accent — "Possible" standout
   ============================================ */

/* In nav + footer (light/cream background) */
.brand-possible {
  color: var(--teal-deep);   /* #0F766E — dark teal, AA contrast on cream */
  font-style: normal;
  font-weight: inherit;
}
.brand:hover .brand-possible { color: var(--teal); }

/* In H1 hero (dark navy overlay background) */
.h1-possible {
  color: #5EEAD4;            /* bright teal — pops on navy */
  font-style: normal;
  display: inline;
}

/* ============================================
   Inline contextual deep-dive links
   ============================================ */
.deep-link {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin: 1.2rem 0;
  padding: 0.7rem 1rem;
  background: var(--bg-sunk);
  border-left: 3px solid var(--teal);
  border-radius: 0 6px 6px 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--ink-soft);
}
.deep-link::before {
  content: '→';
  color: var(--teal-deep);
  font-weight: 700;
  font-family: var(--font-mono);
  flex-shrink: 0;
  padding-top: 0.05em;
}
.deep-link strong {
  color: var(--ink);
  font-weight: 600;
  display: block;
  margin-bottom: 0.1rem;
}
.deep-link a {
  color: var(--teal-deep);
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: border-color 0.12s;
}
.deep-link a:hover { border-bottom-color: var(--teal-deep); }

/* Compact inline variant — single line at end of paragraph */
.deep-link-inline {
  display: block;
  margin: -0.4rem 0 1.2rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--ink-mute);
}
.deep-link-inline::before {
  content: '→ ';
  color: var(--teal);
  font-weight: 700;
}
.deep-link-inline a {
  color: var(--teal-deep);
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: border-color 0.12s;
}
.deep-link-inline a:hover { border-bottom-color: var(--teal-deep); }

/* ============================================
   Section hero image — for image-led H2 sections
   ============================================ */
.section-hero-image {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  margin: 1.4rem 0 2rem;
  aspect-ratio: 16 / 7;
  background: var(--bg-sunk);
}
.section-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.section-hero-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 50%, rgba(10, 37, 64, 0.35));
  pointer-events: none;
}
.section-image-caption {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--ink-mute);
  margin: -1.5rem 0 1.5rem;
  text-align: right;
}
.section-image-caption a {
  color: var(--ink-mute);
  border-bottom: 1px solid var(--hairline-strong);
}
.section-image-caption a:hover { color: var(--teal-deep); border-bottom-color: var(--teal-deep); }

/* Scenario cards (used in section B) */
.scenario-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.1rem;
  margin: 1.5rem 0;
}
.scenario-card {
  background: var(--bg-card);
  border: 1px solid var(--hairline);
  border-radius: 8px;
  padding: 1.3rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.scenario-card.good { border-left: 4px solid var(--teal); }
.scenario-card.bad  { border-left: 4px solid #B91C1C; }
.scenario-card.mixed { border-left: 4px solid var(--amber); }
.scenario-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.scenario-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
  flex: 1;
}
.scenario-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.15rem 0.55rem;
  border-radius: 4px;
  flex-shrink: 0;
}
.scenario-tag.good  { background: rgba(20, 184, 166, 0.12); color: var(--teal-deep); }
.scenario-tag.bad   { background: rgba(185, 28, 28, 0.1);  color: #B91C1C; }
.scenario-tag.mixed { background: rgba(217, 119, 6, 0.12); color: #92400E; }
.scenario-card p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--ink-soft);
}
.scenario-card .scenario-amount {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--ink-mute);
}
.scenario-verdict {
  font-size: 0.85rem;
  padding-top: 0.6rem;
  border-top: 1px dashed var(--hairline);
  color: var(--ink);
}
.scenario-verdict strong { color: var(--ink); font-weight: 600; }

/* App-features grid */
.app-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}
.app-feature-card {
  background: var(--bg-card);
  border: 1px solid var(--hairline);
  border-radius: 6px;
  padding: 1.1rem 1.2rem;
}
.app-feature-card .icon {
  width: 32px; height: 32px;
  border-radius: 6px;
  background: var(--teal-soft);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 0.7rem;
  font-size: 1.1rem;
}
.app-feature-card h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 0.35rem;
}
.app-feature-card p {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.55;
}

/* ════════════════════════════════════════════════════════════════
   ════════════ RESPONSIVE ENHANCEMENTS (PC / Tablet / Mobile) ═════
   Breakpoints:
   - Mobile:  ≤ 480px  (small phones)
   - Phone:   ≤ 640px  (large phones)
   - Tablet:  ≤ 900px  (tablets, small laptops)
   - Desktop: > 900px  (default)
   ════════════════════════════════════════════════════════════════ */

/* ──────── 1. Universal: prevent horizontal overflow ──────── */
html, body { overflow-x: hidden; max-width: 100%; }
img, svg, video, table { max-width: 100%; height: auto; }

/* ──────── 2. Container responsive gutters ──────── */
@media (max-width: 640px) {
  :root { --gutter: 1.1rem; }
  .container { padding-left: var(--gutter); padding-right: var(--gutter); }
}
@media (max-width: 380px) {
  :root { --gutter: 0.9rem; }
}

/* ──────── 3. Tables: horizontal scroll wrapper on mobile ──────── */
@media (max-width: 768px) {
  .data-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    border-collapse: collapse;
    font-size: 0.84rem;
  }
  .data-table::-webkit-scrollbar { height: 6px; }
  .data-table::-webkit-scrollbar-thumb { background: var(--teal); border-radius: 3px; }
  .data-table th, .data-table td { padding: 0.6rem 0.7rem; }
}

/* ──────── 4. Touch target sizing (WCAG 2.5.5 AAA = 44px) ──────── */
@media (max-width: 900px) {
  .btn {
    padding: 1rem 1.4rem;
    min-height: 48px;
    font-size: 1rem;
  }
  .nav-list a {
    padding: 0.6rem 0;
    display: block;
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  .faq-q {
    padding: 0.9rem 2.2rem 0.9rem 0;
    min-height: 48px;
  }
  details.faq-item { margin-bottom: 0.4rem; }
}

/* ──────── 5. Hero: optimize H1 + meta for small screens ──────── */
@media (max-width: 640px) {
  h1 { font-size: clamp(1.7rem, 7vw, 2.4rem); letter-spacing: -0.025em; }
  h2 { font-size: clamp(1.35rem, 5.5vw, 1.7rem); margin-top: 2rem; }
  h3 { font-size: clamp(1.05rem, 4vw, 1.2rem); margin-top: 1.5rem; }
  .hero { padding-top: 2rem; padding-bottom: 2rem; }
  .hero-lead { font-size: 1rem; }
  .hero-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.84rem;
  }
  .hero-meta .dot-sep { display: none; }
}

/* ──────── 6. CTA buttons: stack on small screens ──────── */
@media (max-width: 480px) {
  .cta-row { flex-direction: column; align-items: stretch; gap: 0.7rem; }
  .cta-row .btn {
    width: 100%;
    justify-content: center;
    padding: 1.1rem 1rem;
  }
}

/* ──────── 7. Apply Form section: tablet/mobile decorations + form ──────── */
@media (max-width: 900px) {
  .apply-form-card {
    max-width: 100%;
    padding: 1.4rem;
  }
}
@media (max-width: 640px) {
  .bg-deco--tl { width: 90px !important; top: 3% !important; left: 2% !important; opacity: 0.10 !important; }
  .bg-deco--br { width: 90px !important; bottom: 4% !important; right: 2% !important; opacity: 0.10 !important; }
  .bg-deco--tr, .bg-deco--bl { display: none !important; }
  .apply-form-header h2 { font-size: 1.4rem; }
  .apply-form-header p { font-size: 0.95rem; }
  .apply-form-trust { gap: 0.4rem 1rem; font-size: 0.74rem; }
  .apply-form-section { padding: 2rem 0; }
  .apply-form-card { padding: 1.1rem 0.9rem; border-radius: 10px; }
}

/* ──────── 8. Trustpilot review cards: tablet breakpoint ──────── */
@media (min-width: 641px) and (max-width: 900px) {
  /* Force 2-column layout on tablet */
  #trustpilot-reviews .container > div:nth-child(3) {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
@media (max-width: 640px) {
  .tp-rating-row { flex-direction: column; align-items: flex-start !important; gap: 0.5rem !important; }
}

/* ──────── 9. Calculator page: mobile-optimized layout ──────── */
@media (max-width: 768px) {
  .calc-shell { gap: 1.2rem !important; }
  .calc-panel { padding: 1.3rem !important; }
  .payment-track { gap: 0.2rem; }
  .payment-node .pmt-week { font-size: 0.6rem; }
  .payment-node .pmt-amt { font-size: 0.7rem; }
  .payment-dot { width: 16px !important; height: 16px !important; font-size: 0.55rem !important; }
  .result-big { font-size: 2.2rem !important; }
  .compare-bar-label { flex-direction: column; align-items: flex-start; gap: 0.1rem; }
  .compare-bar-label .cost { font-size: 0.74rem; }
}

/* ──────── 10. Expert voices grid: tablet 2-col, mobile 1-col ──────── */
@media (max-width: 640px) {
  .expert-grid { grid-template-columns: 1fr; gap: 1rem; }
  .expert-card { padding: 1.2rem; }
  .methodology-strip {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.8rem 1.2rem !important;
    padding: 1.2rem !important;
  }
}

/* ──────── 11. Scenario grid: full-width cards on mobile ──────── */
@media (max-width: 640px) {
  .scenario-grid { grid-template-columns: 1fr; gap: 0.9rem; }
  .scenario-card { padding: 1.1rem; }
  .scenario-header { flex-direction: column; align-items: flex-start; gap: 0.3rem; }
  .app-features { grid-template-columns: 1fr; gap: 0.8rem; }
}

/* ──────── 12. Section hero images: smaller aspect ratio on mobile ──────── */
@media (max-width: 640px) {
  .section-hero-image {
    aspect-ratio: 4 / 3;
    margin: 1rem 0 1.4rem;
    border-radius: 8px;
  }
  .section-image-caption { text-align: left; margin-top: -1rem; }
}

/* ──────── 13. Deep-link callouts: tighter on mobile ──────── */
@media (max-width: 640px) {
  .deep-link { padding: 0.8rem 0.9rem; font-size: 0.88rem; }
  .deep-link-inline { font-size: 0.78rem; }
}

/* ──────── 14. Pros/Cons + stats: stack on phones ──────── */
@media (max-width: 640px) {
  .pros-cons { grid-template-columns: 1fr !important; gap: 1rem; }
  .pros-cons-col { padding: 1.2rem; }
  .stats-strip { grid-template-columns: repeat(2, 1fr) !important; gap: 1rem; }
  .stat-val { font-size: 1.6rem; }
}

/* ──────── 15. Footer: full stack on mobile ──────── */
@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 1.8rem;
  }
  .footer-about p { margin-top: 0.8rem; }
  .footer-col h4 { margin-bottom: 0.6rem; }
  .disclosures { font-size: 0.78rem; }
}

/* ──────── 16. Section padding: tighter on mobile ──────── */
@media (max-width: 640px) {
  .section { padding-top: 2rem; padding-bottom: 2rem; }
  .info-box, .warn-box { padding: 0.9rem 1rem; font-size: 0.9rem; }
  .toc { padding: 1rem 1.2rem; }
  .toc ol { font-size: 0.92rem; }
}

/* ──────── 17. Legal pages: sidebar TOC stacks above on tablet ──────── */
@media (max-width: 900px) {
  .legal-wrap {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }
  .legal-toc-aside { position: static !important; order: -1; }
  .legal-toc-aside nav { padding: 1rem 1.2rem; }
}

/* ──────── 18. Sitemap grid: full-width on mobile ──────── */
@media (max-width: 640px) {
  .sitemap-grid { grid-template-columns: 1fr; gap: 1rem; }
  .sitemap-stats { flex-direction: column; gap: 0.4rem; align-items: flex-start; }
}

/* ──────── 19. Breadcrumb wrap + smaller on mobile ──────── */
@media (max-width: 640px) {
  .breadcrumb { font-size: 0.78rem; }
}

/* ──────── 20. Image-rich H2 sections: better spacing ──────── */
@media (max-width: 480px) {
  .section-hero-image { margin-bottom: 1.2rem; }
  p, .prose li { font-size: 0.96rem; line-height: 1.65; }
}

/* ──────── 21. Focus indicators (a11y for keyboard nav) ──────── */
a:focus-visible, button:focus-visible, .btn:focus-visible, select:focus-visible, input:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

/* ──────── 22. Tap highlight color on touch devices ──────── */
* { -webkit-tap-highlight-color: rgba(20, 184, 166, 0.15); }

/* ──────── Table scroll wrapper ──────── */
.table-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.2rem 0;
  border-radius: 6px;
  position: relative;
}
.table-scroll table { margin: 0; }
@media (max-width: 768px) {
  .table-scroll {
    border: 1px solid var(--hairline);
    box-shadow: inset -8px 0 8px -8px rgba(10, 37, 64, 0.15);
  }
  .table-scroll::after {
    content: '→ scroll';
    position: absolute;
    top: 0.5rem; right: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--ink-mute);
    background: var(--bg);
    padding: 0.15rem 0.45rem;
    border-radius: 3px;
    pointer-events: none;
    opacity: 0.7;
  }
}

/* ════════════════════════════════════════════════════════ */
/*  A1 + A3 + A4 — UX/SEO enhancement components            */
/* ════════════════════════════════════════════════════════ */

/* ──────── A1: Reading progress bar ──────── */
.reading-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: rgba(15, 118, 110, 0.08);
  z-index: 100;
  pointer-events: none;
}
.reading-progress-fill {
  height: 100%;
  width: 0;
  background: var(--teal);
  transition: width 80ms linear;
  will-change: width;
}

/* ──────── A1: Scrollspy TOC enhancement ──────── */
.toc[data-scrollspy] {
  position: relative;
}
.toc[data-scrollspy] a {
  display: block;
  padding: 0.4rem 0.7rem;
  border-left: 2px solid transparent;
  margin-left: -2px;
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.92rem;
  line-height: 1.4;
  transition: all 120ms ease;
  border-radius: 0;
}
.toc[data-scrollspy] a:hover {
  background: rgba(15, 118, 110, 0.04);
  color: var(--ink);
}
.toc[data-scrollspy] a.active {
  border-left-color: var(--teal);
  background: rgba(15, 118, 110, 0.06);
  color: var(--ink);
  font-weight: 500;
}
.toc[data-scrollspy] a.read {
  color: var(--ink-mute);
}
.toc[data-scrollspy] a.read::before {
  content: '✓ ';
  color: var(--teal);
  font-weight: 600;
}
.toc-time-left {
  margin-top: 1rem;
  padding: 0.6rem 0.8rem;
  background: var(--bg-card);
  border: 1px solid var(--hairline);
  border-radius: 4px;
  font-size: 0.8rem;
  color: var(--ink-mute);
  font-family: var(--font-mono);
  text-align: center;
}
.toc-time-left strong {
  color: var(--teal-deep);
  font-family: var(--font-mono);
}

/* ──────── A3: Trust signals component ──────── */
.trust-credentials {
  background: var(--bg);
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-left: 3px solid var(--teal);
  border-radius: 4px;
  padding: 1.2rem 1.4rem;
  margin: 1.6rem 0 2rem;
}
.trust-credentials-title {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--teal-deep);
  font-weight: 600;
  margin-bottom: 0.7rem;
  font-family: var(--font-mono);
}
.trust-badges {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin-bottom: 0.7rem;
}
.trust-badge {
  background: rgba(15, 118, 110, 0.08);
  color: var(--teal-deep);
  font-size: 0.78rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-weight: 500;
  font-family: var(--font-mono);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  white-space: nowrap;
}
.trust-badge::before {
  content: '✓';
  color: var(--teal);
  font-weight: 700;
}
.trust-verify {
  font-size: 0.82rem;
  color: var(--teal-deep);
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
}
.trust-verify a {
  color: var(--teal-deep);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
.trust-verify a:hover {
  color: var(--ink);
}
.trust-meta {
  font-size: 0.72rem;
  color: var(--ink-mute);
  margin-top: 0.5rem;
  font-family: var(--font-mono);
}

/* ──────── A4: Sticky comparison bar (desktop) ──────── */
.sticky-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--hairline);
  padding: 0.55rem 1.2rem;
  z-index: 95;
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.85rem;
  transform: translateY(-100%);
  transition: transform 220ms ease-out;
  pointer-events: none;
  opacity: 0;
}
.sticky-bar.visible {
  transform: translateY(0);
  pointer-events: auto;
  opacity: 1;
}
.sticky-bar.hidden {
  transform: translateY(-100%);
  pointer-events: none;
}
.sticky-bar-brand {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  font-size: 0.95rem;
}
.sticky-bar-brand .brand-possible {
  color: var(--teal-deep);
}
.sticky-bar-stat {
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-family: var(--font-mono);
  padding-left: 0.9rem;
  border-left: 1px solid var(--hairline);
  white-space: nowrap;
}
.sticky-bar-stat strong {
  color: var(--ink);
  font-weight: 500;
}
.sticky-bar-cta {
  margin-left: auto;
  background: var(--ink);
  color: var(--bg);
  padding: 0.45rem 1rem;
  border-radius: 4px;
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: none;
  font-family: var(--font-display);
  white-space: nowrap;
  transition: background 120ms ease;
}
.sticky-bar-cta:hover {
  background: var(--teal-deep);
  color: var(--bg);
}
@media (max-width: 768px) {
  .sticky-bar { display: none; }
}

/* ──────── A4: Floating mobile CTA ──────── */
.floating-cta {
  position: fixed;
  bottom: 1.2rem;
  right: 1.2rem;
  background: var(--ink);
  color: var(--bg);
  padding: 0.9rem 1.4rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 2px solid var(--teal);
  box-shadow: 0 8px 24px rgba(10, 37, 64, 0.18);
  font-family: var(--font-display);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 240ms ease, transform 240ms ease;
  pointer-events: none;
}
.floating-cta.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.floating-cta::before {
  content: '';
  background: var(--teal);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  animation: pulse 2s infinite ease-out;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}
@media (min-width: 769px) {
  .floating-cta {
    bottom: 1.8rem;
    right: 1.8rem;
  }
}
@media (max-width: 480px) {
  .floating-cta {
    bottom: 1rem;
    right: 1rem;
    left: 1rem;
    justify-content: center;
  }
}

/* Hide floating CTA when sticky bar is visible on desktop */
@media (min-width: 769px) {
  body.sticky-active .floating-cta {
    opacity: 0;
    pointer-events: none;
  }
}

/* Push hero down when sticky bar visible to avoid overlap */
/* (sticky bar uses backdrop-blur so partial overlap is OK) */


/* ════════════════════════════════════════════════════════ */
/*  B2 — Dark Mode                                         */
/* ════════════════════════════════════════════════════════ */

/* Dark mode overrides via [data-theme="dark"] on <html> */
html[data-theme="dark"] {
  --bg: #0B1929;                  /* deep ink */
  --bg-soft: #11243B;             /* slightly lighter */
  --bg-card: #122844;             /* card background */
  --bg-section: #0F2237;          /* alternating sections */
  --ink: #E5E7EB;                 /* primary text */
  --ink-soft: #C7D2DA;            /* secondary text */
  --ink-mute: #94A3B8;            /* muted text */
  --hairline: rgba(255, 255, 255, 0.08);
  --hairline-strong: rgba(255, 255, 255, 0.15);
  --teal: #2DD4BF;                /* brightened teal for contrast */
  --teal-deep: #5EEAD4;           /* brighter for dark bg */
  --bright-teal: #99F6E4;
  --amber: #FBBF24;               /* warmer amber in dark */
}

html[data-theme="dark"] body { background: var(--bg); color: var(--ink); }

html[data-theme="dark"] .site-header {
  background: rgba(11, 25, 41, 0.92);
  border-bottom-color: var(--hairline);
}
html[data-theme="dark"] .brand-possible { color: var(--bright-teal); }
html[data-theme="dark"] .nav-list a { color: var(--ink-soft); }
html[data-theme="dark"] .nav-list a:hover { color: var(--bright-teal); }
html[data-theme="dark"] .hb-line { background: var(--ink); }
html[data-theme="dark"] .nav-list { background: var(--bg-card); border-bottom-color: var(--hairline); }

html[data-theme="dark"] .hero h1,
html[data-theme="dark"] h1, html[data-theme="dark"] h2,
html[data-theme="dark"] h3, html[data-theme="dark"] h4 { color: var(--ink); }

html[data-theme="dark"] .hero--bg h1,
html[data-theme="dark"] .hero--bg .hero-lead { color: var(--ink); }

html[data-theme="dark"] .hero-lead,
html[data-theme="dark"] p,
html[data-theme="dark"] li { color: var(--ink-soft); }

html[data-theme="dark"] a { color: var(--bright-teal); }
html[data-theme="dark"] a:hover { color: var(--teal-deep); }

/* Cards + boxes */
html[data-theme="dark"] .info-box,
html[data-theme="dark"] .warn-box,
html[data-theme="dark"] .related-card,
html[data-theme="dark"] .stat-card,
html[data-theme="dark"] .pros-cons-col,
html[data-theme="dark"] .scenario-card,
html[data-theme="dark"] .feature-card,
html[data-theme="dark"] .toc {
  background: var(--bg-card);
  border-color: var(--hairline-strong);
}

/* Tables */
html[data-theme="dark"] .data-table {
  background: var(--bg-card);
  color: var(--ink);
}
html[data-theme="dark"] .data-table th {
  background: var(--bg-soft);
  color: var(--ink);
  border-bottom-color: var(--hairline-strong);
}
html[data-theme="dark"] .data-table td {
  border-color: var(--hairline);
}
html[data-theme="dark"] .data-table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.02);
}

/* Reading progress */
html[data-theme="dark"] .reading-progress { background: rgba(45, 212, 191, 0.12); }
html[data-theme="dark"] .reading-progress-fill { background: var(--bright-teal); }

/* Sticky bar */
html[data-theme="dark"] .sticky-bar {
  background: rgba(11, 25, 41, 0.94);
  border-bottom-color: var(--hairline-strong);
}
html[data-theme="dark"] .sticky-bar-brand { color: var(--ink); }
html[data-theme="dark"] .sticky-bar-brand .brand-possible { color: var(--bright-teal); }
html[data-theme="dark"] .sticky-bar-stat { color: var(--ink-mute); border-left-color: var(--hairline-strong); }
html[data-theme="dark"] .sticky-bar-stat strong { color: var(--ink); }
html[data-theme="dark"] .sticky-bar-cta { background: var(--bright-teal); color: var(--bg); }
html[data-theme="dark"] .sticky-bar-cta:hover { background: var(--teal-deep); }

/* Floating CTA */
html[data-theme="dark"] .floating-cta {
  background: var(--bright-teal);
  color: var(--bg);
  border-color: var(--teal-deep);
}

/* Trust credentials */
html[data-theme="dark"] .trust-credentials {
  background: var(--bg-card);
  border-color: rgba(94, 234, 212, 0.2);
  border-left-color: var(--bright-teal);
}
html[data-theme="dark"] .trust-credentials-title { color: var(--bright-teal); }
html[data-theme="dark"] .trust-badge {
  background: rgba(94, 234, 212, 0.1);
  color: var(--bright-teal);
}
html[data-theme="dark"] .trust-verify a { color: var(--bright-teal); }
html[data-theme="dark"] .trust-meta { color: var(--ink-mute); }

/* Footer */
html[data-theme="dark"] .site-footer {
  background: #050E1A;
  color: var(--ink-soft);
}
html[data-theme="dark"] .site-footer a { color: var(--ink-soft); }
html[data-theme="dark"] .site-footer a:hover { color: var(--bright-teal); }

/* Form elements */
html[data-theme="dark"] input,
html[data-theme="dark"] select,
html[data-theme="dark"] textarea {
  background: var(--bg-card);
  color: var(--ink);
  border-color: var(--hairline-strong);
}
html[data-theme="dark"] input::placeholder { color: var(--ink-mute); }

/* Apply box / CTA */
html[data-theme="dark"] .apply-box-cta {
  background: linear-gradient(135deg, var(--bg-card), var(--bg-soft));
  border: 1px solid var(--hairline-strong);
}
html[data-theme="dark"] .btn-primary {
  background: var(--bright-teal);
  color: var(--bg);
}
html[data-theme="dark"] .btn-primary:hover { background: var(--teal-deep); }

/* FAQ */
html[data-theme="dark"] .faq-item {
  background: var(--bg-card);
  border-color: var(--hairline);
}
html[data-theme="dark"] .faq-q { color: var(--ink); }

/* Eyebrows */
html[data-theme="dark"] .eyebrow {
  background: rgba(94, 234, 212, 0.1);
  color: var(--bright-teal);
}

/* Calculator */
html[data-theme="dark"] .calc-card,
html[data-theme="dark"] .result-card {
  background: var(--bg-card);
  color: var(--ink);
  border-color: var(--hairline-strong);
}
html[data-theme="dark"] .result-amount { color: var(--bright-teal); }

/* TOC scrollspy in dark */
html[data-theme="dark"] .toc[data-scrollspy] a { color: var(--ink-mute); }
html[data-theme="dark"] .toc[data-scrollspy] a:hover { background: rgba(94, 234, 212, 0.06); color: var(--ink); }
html[data-theme="dark"] .toc[data-scrollspy] a.active {
  background: rgba(94, 234, 212, 0.1);
  color: var(--ink);
  border-left-color: var(--bright-teal);
}
html[data-theme="dark"] .toc[data-scrollspy] a.read::before { color: var(--bright-teal); }
html[data-theme="dark"] .toc-time-left {
  background: var(--bg-soft);
  border-color: var(--hairline-strong);
  color: var(--ink-mute);
}
html[data-theme="dark"] .toc-time-left strong { color: var(--bright-teal); }

/* Theme toggle button */
.theme-toggle {
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 8px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  transition: background 120ms ease, color 120ms ease;
  margin-left: 0.4rem;
}
.theme-toggle:hover {
  background: rgba(15, 118, 110, 0.08);
  color: var(--teal-deep);
}
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
html[data-theme="dark"] .theme-toggle { color: var(--ink-soft); }
html[data-theme="dark"] .theme-toggle:hover { background: rgba(94, 234, 212, 0.1); color: var(--bright-teal); }
html[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
html[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* Smooth theme transition (only for elements that change) */
body, .site-header, .info-box, .data-table, .reading-progress-fill, .toc, .toc[data-scrollspy] a, .related-card, .sticky-bar, .floating-cta {
  transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease;
}

/* Prefer reduced motion: disable transitions */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation-duration: 0.01ms !important;
  }
}


/* ════════════════════════════════════════════════════════ */
/*  B1 — Hero redesign additions                            */
/* ════════════════════════════════════════════════════════ */

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1rem;
  font-size: 0.78rem;
  font-family: var(--font-mono);
}
.hero-chip {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.85);
  padding: 0.32rem 0.7rem;
  border-radius: 3px;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: background 120ms ease;
}
.hero-chip:hover {
  background: rgba(94, 234, 212, 0.15);
  color: var(--bright-teal);
  border-color: var(--bright-teal);
}
.hero-chip-current {
  background: rgba(94, 234, 212, 0.18);
  color: var(--bright-teal);
  border-color: rgba(94, 234, 212, 0.35);
  font-weight: 500;
}
.hero-chip-sep {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.9rem;
}

.hero-byline {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 1.2rem 0 1.4rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.78);
  font-family: var(--font-mono);
  flex-wrap: wrap;
}
.hero-byline a { color: var(--bright-teal); text-decoration: underline; }
.hero-byline strong {
  color: var(--bright-teal);
  font-family: var(--font-mono);
  font-weight: 600;
}
.hero-byline-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--bright-teal);
  display: inline-block;
  animation: heroPulse 2s infinite ease-out;
}
@keyframes heroPulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(94, 234, 212, 0.6); }
  50% { opacity: 0.7; box-shadow: 0 0 0 5px rgba(94, 234, 212, 0); }
}

.hero-sub-cta {
  font-size: 0.85rem;
  margin-top: 0.7rem;
  color: rgba(255, 255, 255, 0.78);
  font-family: var(--font-mono);
}
.hero-sub-cta a {
  color: var(--bright-teal);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.hero-sub-cta a:hover { color: #fff; }
.hero-sub-sep { margin: 0 0.6rem; opacity: 0.4; }

@media (max-width: 720px) {
  .hero-chips { font-size: 0.72rem; gap: 0.3rem; }
  .hero-chip { padding: 0.28rem 0.55rem; }
  .hero-byline { font-size: 0.78rem; gap: 0.4rem; }
  .hero-sub-cta { font-size: 0.78rem; }
  .hero-sub-cta a { display: inline-block; margin-bottom: 0.3rem; }
}

/* Cluster pages: simpler chips style on non-dark hero */
.hero:not(.hero--bg) .hero-chips .hero-chip {
  background: rgba(15, 118, 110, 0.08);
  color: var(--ink-soft);
  border-color: rgba(15, 118, 110, 0.18);
}
.hero:not(.hero--bg) .hero-chip-current {
  background: rgba(15, 118, 110, 0.15);
  color: var(--teal-deep);
  border-color: rgba(15, 118, 110, 0.3);
}
.hero:not(.hero--bg) .hero-chip-sep { color: var(--ink-mute); }


/* ════════════════════════════════════════════════════════ */
/*  B3/B4 — SVG illustrations & visualizations              */
/* ════════════════════════════════════════════════════════ */
.svg-illustration {
  width: 100%;
  max-width: 800px;
  height: auto;
  margin: 1.8rem auto;
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--hairline);
  border-radius: 8px;
  padding: 1rem;
}
@media (max-width: 600px) {
  .svg-illustration { padding: 0.5rem; margin: 1.2rem auto; }
}
html[data-theme="dark"] .svg-illustration {
  background: var(--bg-card);
  border-color: var(--hairline-strong);
  /* Slight overlay to brighten SVG which is designed for light bg */
  filter: brightness(0.92) contrast(1.05);
}

/* ════════════════════════════════════════════════════════ */
/*  Affiliate de-risk components                            */
/* ════════════════════════════════════════════════════════ */

/* Prominent FTC disclosure callout */
.affiliate-disclosure {
  background: rgba(217, 119, 6, 0.06);
  border: 1px solid rgba(217, 119, 6, 0.25);
  border-left: 3px solid var(--amber);
  border-radius: 4px;
  padding: 0.85rem 1.1rem;
  margin: 1.4rem 0;
  font-size: 0.84rem;
  line-height: 1.55;
  color: var(--ink-soft);
  font-family: var(--font-body);
}
.affiliate-disclosure strong {
  color: var(--amber);
  font-weight: 600;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: block;
  margin-bottom: 0.3rem;
}
.affiliate-disclosure a {
  color: var(--teal-deep);
  text-decoration: underline;
}
html[data-theme="dark"] .affiliate-disclosure {
  background: rgba(251, 191, 36, 0.05);
  border-color: rgba(251, 191, 36, 0.3);
}
html[data-theme="dark"] .affiliate-disclosure strong { color: var(--amber); }
html[data-theme="dark"] .affiliate-disclosure a { color: var(--bright-teal); }

/* "Editor's take" commentary callout */
.editor-take {
  background: var(--bg-card);
  border: 1px solid var(--hairline);
  border-top: 3px solid var(--teal-deep);
  border-radius: 4px;
  padding: 1.1rem 1.3rem;
  margin: 1.8rem 0;
  position: relative;
}
.editor-take::before {
  content: 'EDITOR\'S TAKE';
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  font-weight: 600;
  color: var(--teal-deep);
  background: var(--bg-card);
  padding: 0 0.6rem;
  position: absolute;
  top: -0.6rem;
  left: 1.1rem;
}
.editor-take p { margin: 0; font-size: 0.95rem; line-height: 1.65; color: var(--ink); }
.editor-take p + p { margin-top: 0.7rem; }
.editor-take p:first-of-type::first-letter {
  font-family: var(--font-display);
  font-size: 1.6em;
  font-weight: 600;
  color: var(--teal-deep);
  line-height: 1;
}
.editor-take-sig {
  font-size: 0.78rem;
  color: var(--ink-mute);
  font-family: var(--font-mono);
  margin-top: 0.7rem !important;
}
html[data-theme="dark"] .editor-take::before {
  background: var(--bg-card);
  color: var(--bright-teal);
}
html[data-theme="dark"] .editor-take { border-top-color: var(--bright-teal); }
html[data-theme="dark"] .editor-take p:first-of-type::first-letter { color: var(--bright-teal); }

/* Editorial verification log */
.verification-log {
  background: var(--bg);
  border: 1px solid var(--hairline);
  border-radius: 6px;
  padding: 1.3rem 1.5rem;
  margin: 2rem 0;
}
.verification-log-header {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.verification-log-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
}
.verification-log-date {
  font-size: 0.78rem;
  color: var(--ink-mute);
  font-family: var(--font-mono);
}
.verification-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.55rem;
}
.verification-list li {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--ink-soft);
}
.verification-list li::before {
  content: '✓';
  color: var(--teal);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0.05rem;
}
.verification-list a {
  color: var(--teal-deep);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
html[data-theme="dark"] .verification-log {
  background: var(--bg-card);
  border-color: var(--hairline-strong);
}
html[data-theme="dark"] .verification-list a { color: var(--bright-teal); }
html[data-theme="dark"] .verification-list li::before { color: var(--bright-teal); }

/* Free alternatives feature box - prominent on pillar */
.free-first {
  background: linear-gradient(180deg, rgba(15, 118, 110, 0.03), rgba(15, 118, 110, 0.06));
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 8px;
  padding: 1.5rem 1.7rem;
  margin: 2rem 0;
}
.free-first-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--teal-deep);
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.free-first h3 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
}
.free-first p { font-size: 0.95rem; color: var(--ink-soft); margin: 0 0 1rem; }
.free-first-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.7rem;
  margin-top: 1rem;
}
.free-option {
  background: var(--bg-card);
  border: 1px solid var(--hairline);
  border-radius: 4px;
  padding: 0.85rem 1rem;
  font-size: 0.85rem;
}
.free-option-name {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  font-size: 0.95rem;
  display: block;
  margin-bottom: 0.25rem;
}
.free-option-detail {
  color: var(--ink-mute);
  font-size: 0.78rem;
  font-family: var(--font-mono);
  display: block;
  margin-bottom: 0.4rem;
}
.free-option-desc { color: var(--ink-soft); font-size: 0.83rem; line-height: 1.45; }
html[data-theme="dark"] .free-first {
  background: linear-gradient(180deg, rgba(94, 234, 212, 0.04), rgba(94, 234, 212, 0.08));
  border-color: rgba(94, 234, 212, 0.2);
}
html[data-theme="dark"] .free-first-eyebrow { color: var(--bright-teal); }
html[data-theme="dark"] .free-option { background: var(--bg-soft); border-color: var(--hairline-strong); }

