/* ===========================================================
   שמש ביתי — Design System & Styles
   =========================================================== */

/* Metric-compatible fallback for Heebo (src: local Arial), tuned so the
   fallback occupies the same box as Heebo — eliminates font-swap layout shift
   (CLS). Metrics derived from the shipped Heebo woff2 (upm 2048, asc 2146,
   desc 862, avgWidth 1146) against Arial (avgWidth 913/2048). */
@font-face {
  font-family: 'Heebo-fallback';
  src: local('Arial');
  size-adjust: 125.52%;
  ascent-override: 83.48%;
  descent-override: 33.53%;
  line-gap-override: 0%;
}

:root {
  --primary: #2563EB;
  --secondary: #F5F0E8;
  /* Two oranges, two jobs. --accent is the decorative hue: borders, glows,
     rgba tints, hover states — places where contrast is not measured.
     --accent-ink is the same family darkened to clear WCAG AA as *ink*:
     5.9:1 on white, 4.6:1 on the cream body, and 5.2:1 against white when
     used as a button fill. Never set --accent on text or a CTA background. */
  --accent: #F97316;
  --accent-ink: #C2410C;
  --accent-ink-hover: #9A3412;
  --card-bg: #FFFFFF;
  --surface: #FFFFFF;
  --text-dark: #1E293B;
  --text-muted: #57647A;
  --border: #E2D9C8;
  --success: #15803D;
  --radius-card: 16px;
  --radius-btn: 10px;
  --shadow: 0 4px 32px rgba(37, 99, 235, 0.08);
  --shadow-hover: 0 12px 40px rgba(37, 99, 235, 0.15);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Heebo', 'Heebo-fallback', system-ui, -apple-system, sans-serif;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-dark);
  background: var(--secondary);
  direction: rtl;
}

h1, h2, h3 {
  line-height: 1.25;
  color: var(--text-dark);
}

h1 { font-size: 48px; font-weight: 800; }
h2 { font-size: 32px; font-weight: 700; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}

section {
  padding: 72px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 12px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 48px;
  font-size: 19px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 17px;
  font-weight: 700;
  padding: 14px 28px;
  border: 2px solid transparent;
  border-radius: var(--radius-btn);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  min-height: 48px;
}

.btn-primary {
  background: var(--accent-ink);
  color: #fff;
  /* The vivid --accent survives as the glow, so the CTA keeps its heat while
     the fill itself carries 5.2:1 against white text. */
  box-shadow: 0 6px 20px rgba(249, 115, 22, 0.32);
}
.btn-primary:hover {
  background: var(--accent-ink-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(249, 115, 22, 0.45);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}

.btn-sm {
  font-size: 15px;
  padding: 9px 18px;
  min-height: 40px;
}

/* ---------- Header ---------- */
.header {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 1000;
  background: var(--surface);
  transition: background 0.3s ease, box-shadow 0.3s ease;
  padding: 14px 0;
}
.header.scrolled {
  background: var(--surface);
  box-shadow: 0 2px 18px rgba(0, 0, 0, 0.07);
}
/* Homepage: header is embedded over the full-screen hero — transparent with
   light text until the user scrolls, then it becomes the solid white bar. */
body.home .header:not(.scrolled) {
  background: linear-gradient(to bottom, rgba(10, 22, 40, .45), rgba(10, 22, 40, 0));
  box-shadow: none;
}
body.home .header:not(.scrolled) .logo { color: #fff; }
body.home .header:not(.scrolled) .nav a { color: #fff; }
body.home .header:not(.scrolled) .nav a:hover { color: #FDBA74; }
body.home .header:not(.scrolled) .hamburger span { background: var(--surface); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.logo {
  font-size: 24px;
  font-weight: 800;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo-mark {
  width: 30px;
  height: 30px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}
.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav a {
  font-weight: 500;
  color: var(--text-dark);
  transition: color 0.2s ease;
}
.nav a:hover { color: var(--primary); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  width: 44px;
  height: 44px;
  justify-content: center;
}
.hamburger span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Mobile overlay menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--secondary);
  z-index: 1100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.mobile-menu.open {
  opacity: 1;
  pointer-events: auto;
  animation: fadeInUp 0.4s ease;
}
.mobile-menu a {
  font-size: 26px;
  font-weight: 700;
}
.mobile-menu .close-menu {
  position: absolute;
  top: 24px;
  inset-inline-start: 24px;
  font-size: 34px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-dark);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  background: var(--secondary);
  padding-top: 150px;
  padding-bottom: 90px;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Background video layer */
.hero-video-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero-video-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  /* RTL: text sits on the right → keep right side near-opaque for contrast */
  background:
    linear-gradient(to left,
      rgba(245, 240, 232, 0.97) 0%,
      rgba(245, 240, 232, 0.92) 32%,
      rgba(245, 240, 232, 0.6) 62%,
      rgba(245, 240, 232, 0.32) 100%),
    linear-gradient(to bottom,
      rgba(245, 240, 232, 0.2),
      rgba(245, 240, 232, 0.1));
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  display: grid;
  grid-template-columns: 60% 40%;
  align-items: center;
  gap: 40px;
}

/* Floating glass family card */
.hero-float-card {
  box-shadow: 0 24px 60px rgba(30, 41, 59, 0.28);
  border: 4px solid rgba(255, 255, 255, 0.75);
  animation: floatY 6s ease-in-out infinite;
}
.hero-tag {
  display: inline-block;
  background: rgba(37, 99, 235, 0.1);
  color: var(--primary);
  font-weight: 700;
  font-size: 15px;
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.hero h1 {
  margin-bottom: 18px;
}
.hero-sub {
  font-size: 19px;
  color: var(--text-muted);
  margin-bottom: 28px;
  max-width: 540px;
}
.hero-sub strong { color: var(--text-dark); }
.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.hero-trust {
  font-size: 15px;
  color: var(--text-muted);
}

/* Hero visual */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sun-circle {
  position: absolute;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.5), rgba(37, 99, 235, 0));
  border-radius: 50%;
  z-index: 0;
  animation: sunPulse 4s ease-in-out infinite;
}
.solar-svg {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 380px;
}
.hero-visual img {
  position: relative;
  z-index: 1;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  margin-top: 18px;
}

/* SVG shine sweep */
.shine-rect {
  animation: shineSweep 3s ease-in-out infinite;
}

/* ---------- Stats Bar ---------- */
.stats-bar {
  background: var(--surface);
  padding: 44px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat-item .stat-num {
  font-size: 40px;
  font-weight: 800;
  color: var(--primary);
  display: block;
  line-height: 1.1;
}
.stat-item .stat-label {
  color: var(--text-muted);
  font-size: 16px;
}
.stat-item .stat-icon { font-size: 26px; display: block; margin-bottom: 4px; }

/* ---------- Cards ---------- */
.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

/* How it works */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  position: relative;
}
.step-card {
  text-align: center;
  position: relative;
}
.step-num {
  width: 52px;
  height: 52px;
  background: var(--accent-ink);
  color: #fff;
  font-size: 24px;
  font-weight: 800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}
.step-card .step-icon { font-size: 36px; margin-bottom: 10px; }
.step-card h3 { font-size: 21px; margin-bottom: 8px; }
.step-card p { color: var(--text-muted); }
.step-arrow {
  position: absolute;
  top: 26px;
  font-size: 28px;
  color: var(--accent-ink);
  opacity: 0.5;
}

/* ---------- Lead Form Section ---------- */
.form-section {
  background: rgba(37, 99, 235, 0.05);
}
.form-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.trust-points h2 { margin-bottom: 24px; }
.trust-points li {
  font-size: 18px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.trust-points img { margin-top: 24px; border-radius: var(--radius-card); box-shadow: var(--shadow); }

.form-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 32px;
  box-shadow: var(--shadow);
}
.form-card h3 { font-size: 24px; margin-bottom: 6px; }
.form-card .form-lead { color: var(--text-muted); margin-bottom: 20px; }

form label {
  display: block;
  font-weight: 600;
  font-size: 15px;
  margin: 14px 0 6px;
}
form input,
form select {
  width: 100%;
  font-family: inherit;
  font-size: 16px;
  padding: 13px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-btn);
  background: var(--surface);
  color: var(--text-dark);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  min-height: 48px;
}
form input:focus,
form select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
.hidden-field { display: none; }

/* Reachable by assistive tech, invisible on screen. Used for the funnel's
   live region, which narrates step changes a sighted user simply sees. */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

form button[type="submit"] {
  width: 100%;
  margin-top: 22px;
  font-size: 18px;
}
.form-disclaimer {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 14px;
  text-align: center;
}

/* Loading spinner */
.spinner {
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}

.success-card {
  background: rgba(22, 163, 74, 0.1);
  border: 1.5px solid var(--success);
  color: #14532d;
  border-radius: var(--radius-card);
  padding: 28px;
  text-align: center;
  font-size: 18px;
  line-height: 1.6;
}

/* ---------- Benefits Grid ---------- */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.benefit-card .benefit-icon { font-size: 38px; margin-bottom: 12px; }
.benefit-card h3 { font-size: 20px; margin-bottom: 8px; }
.benefit-card p { color: var(--text-muted); }

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
}
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  margin-bottom: 14px;
  overflow: hidden;
}
.faq-question {
  width: 100%;
  text-align: start;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-dark);
  padding: 20px 24px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 48px;
}
.faq-question .faq-icon {
  font-size: 24px;
  color: var(--accent-ink);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
/* Animating grid-template-rows instead of max-height: no forced layout read
   per frame, and no magic ceiling that clips a long answer. */
.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.faq-item.open .faq-answer { grid-template-rows: 1fr; }
/* The clipping wrapper carries no padding of its own, so the row really does
   collapse to zero — padding on the grid item itself would floor it. */
.faq-answer-inner {
  overflow: hidden;
  min-height: 0;
}
.faq-answer p {
  padding: 0 24px 20px;
  color: var(--text-muted);
}

/* ---------- Footer ---------- */
.footer {
  background: var(--text-dark);
  color: #cbd5e1;
  padding: 56px 0 0;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
}
.footer .logo { color: #fff; margin-bottom: 12px; }
.footer-brand p { color: #94a3b8; max-width: 280px; }
.footer-col h4 { color: #fff; font-size: 17px; margin-bottom: 14px; }
.footer-col li { margin-bottom: 9px; }
.footer-col a { color: #cbd5e1; transition: color 0.2s ease; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
  text-align: center;
  color: #94a3b8;
  font-size: 15px;
}

/* ---------- Reveal Animations ---------- */
.reveal { opacity: 0; }
.reveal.visible { animation: fadeInUp 0.6s ease forwards; }

@keyframes sunPulse {
  0%, 100% { transform: scale(1); opacity: 0.15; }
  50% { transform: scale(1.08); opacity: 0.25; }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(32px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes shineSweep {
  0% { transform: translateX(-100%); opacity: 0; }
  30% { opacity: 0.6; }
  100% { transform: translateX(200%); opacity: 0; }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ===========================================================
   Calculator page (machshevon.html)
   =========================================================== */
.calc-hero {
  background: var(--secondary);
  padding-top: 130px;
  padding-bottom: 50px;
  text-align: center;
}
.calc-hero img { width: 110px; margin: 0 auto 18px; }
.calc-wrap {
  max-width: 760px;
  margin: 0 auto;
}
.calc-card { margin-bottom: 32px; }
.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 8px;
}
.result-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 22px;
  text-align: center;
  box-shadow: var(--shadow);
}
.result-card .result-label {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 6px;
}
.result-card .result-value {
  font-size: 30px;
  font-weight: 800;
  color: var(--primary);
}
.result-card.highlight { background: rgba(22, 163, 74, 0.08); border-color: var(--success); }
.result-card.highlight .result-value { color: var(--success); }
.result-card.accent .result-value { color: var(--accent-ink); }

.cta-after-calc {
  background: rgba(249, 115, 22, 0.08);
  border: 1.5px solid var(--accent);
  border-radius: var(--radius-card);
  padding: 32px;
  margin-top: 32px;
  animation: fadeInUp 0.6s ease;
}
.cta-after-calc h3 { font-size: 24px; margin-bottom: 14px; text-align: center; }

/* ===========================================================
   Guide page (madrich.html)
   =========================================================== */
.guide-header {
  padding-top: 120px;
  padding-bottom: 30px;
}
.guide-meta {
  color: var(--text-muted);
  font-size: 15px;
  display: flex;
  gap: 18px;
  margin: 12px 0 22px;
  flex-wrap: wrap;
}
.guide-header img {
  width: 100%;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
}
.guide-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  align-items: start;
  padding-top: 40px;
}
.guide-content h2 {
  margin: 36px 0 14px;
  scroll-margin-top: 100px;
}
.guide-content h3 { font-size: 22px; margin: 24px 0 10px; }
.guide-content p { margin-bottom: 16px; color: #334155; }
.guide-content ul.bullets { margin: 16px 0; }
.guide-content ul.bullets li {
  margin-bottom: 10px;
  padding-inline-start: 4px;
}
.guide-content ol.steps-ol {
  margin: 16px 24px;
}
.guide-content ol.steps-ol li {
  margin-bottom: 12px;
  font-size: 17px;
}
.guide-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 16px;
  background: var(--surface);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.guide-table th, .guide-table td {
  padding: 13px 14px;
  text-align: start;
  border-bottom: 1px solid var(--border);
}
.guide-table th {
  background: var(--primary);
  color: #fff;
  font-weight: 700;
}
.guide-table tr:last-child td { border-bottom: none; }

.info-box {
  background: rgba(37, 99, 235, 0.07);
  border: 1px solid rgba(37, 99, 235, 0.28);
  border-radius: 10px;
  padding: 20px 22px;
  margin: 22px 0;
  font-size: 17px;
}

.guide-sidebar {
  position: sticky;
  top: 100px;
}
.toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 22px;
  box-shadow: var(--shadow);
  margin-bottom: 22px;
}
.toc h4 { margin-bottom: 12px; }
.toc li { margin-bottom: 9px; }
.toc a { color: var(--text-muted); }
.toc a:hover { color: var(--primary); }
.sidebar-cta {
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-card);
  padding: 24px;
  text-align: center;
}
.sidebar-cta p { margin-bottom: 16px; font-weight: 600; }

/* ===========================================================
   Comparison page (hashvaot.html)
   =========================================================== */
.comp-hero {
  background: var(--secondary);
  padding-top: 130px;
  padding-bottom: 40px;
  text-align: center;
}
.filter-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 22px;
  box-shadow: var(--shadow);
  margin-bottom: 28px;
}
.filter-bar label { font-weight: 600; font-size: 14px; display: block; margin-bottom: 6px; }
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.scroll-hint {
  display: none;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 8px;
}
.comp-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow);
}
/* Cells wrap so the whole table fits the viewport — no sideways scrolling. */
.comp-table th, .comp-table td {
  padding: 16px 14px;
  text-align: start;
  border-bottom: 1px solid var(--border);
  white-space: normal;
  overflow-wrap: break-word;
  vertical-align: top;
}
.comp-table th {
  background: var(--primary);
  color: #fff;
  font-weight: 700;
}
.comp-table tbody tr { transition: background 0.2s ease; }
.comp-table tbody tr:hover { background: rgba(37, 99, 235, 0.04); }
.comp-table .company-name { font-weight: 700; }
.comp-disclaimer { color: var(--text-muted); font-size: 14px; margin-top: 16px; }

/* ===========================================================
   Responsive — 768px breakpoint
   =========================================================== */
/* Seven nav links, a logo and a CTA stop fitting well before 768px: between
   769 and ~1000 the CTA wrapped to three lines and doubled the header height.
   The hamburger takes over from 1000px down. */
@media (max-width: 1000px) {
  .nav, .header .btn { display: none; }
  .hamburger { display: flex; }
}

@media (max-width: 768px) {
  h1 { font-size: 34px; }
  h2 { font-size: 26px; }
  body { font-size: 16px; }
  section { padding: 52px 0; }


  .hero {
    min-height: auto;
    padding-top: 120px;
    padding-bottom: 60px;
  }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: 2; margin-top: 26px; }
  .hero-float-card { max-width: 420px; margin-inline: auto; }
  .sun-circle { width: 260px; height: 260px; }
  .hero-ctas .btn { width: 100%; }
  /* On mobile use a uniform vertical scrim so text stays readable over video */
  .hero-overlay {
    background: linear-gradient(to bottom,
      rgba(245, 240, 232, 0.78) 0%,
      rgba(245, 240, 232, 0.9) 60%,
      rgba(245, 240, 232, 0.97) 100%);
  }

  .stats-grid { grid-template-columns: 1fr 1fr; gap: 28px; }

  .steps-grid { grid-template-columns: 1fr; }
  .step-arrow { display: none; }

  .form-layout { grid-template-columns: 1fr; }
  .benefits-grid { grid-template-columns: 1fr; }
  .calc-grid { grid-template-columns: 1fr; }
  .results-grid { grid-template-columns: 1fr; }

  .guide-layout { grid-template-columns: 1fr; }
  .guide-sidebar { position: static; }

  .filter-bar { grid-template-columns: 1fr; }
  .scroll-hint { display: block; }

  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 460px) {
  .footer-top { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}

/* ===========================================================
   ENHANCED ANIMATIONS LAYER
   =========================================================== */

/* --- Scroll progress bar (injected by main.js) --- */
.scroll-progress {
  position: fixed;
  top: 0;
  inset-inline-start: 0;
  height: 3px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: right;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  z-index: 2000;
  transition: transform 0.1s linear;
}

/* --- Hero entrance (on load) --- */
@keyframes heroIn {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-text > * {
  opacity: 0;
  animation: heroIn 0.7s ease forwards;
}
.hero-text > *:nth-child(1) { animation-delay: 0.05s; }
.hero-text > *:nth-child(2) { animation-delay: 0.18s; }
.hero-text > *:nth-child(3) { animation-delay: 0.31s; }
.hero-text > *:nth-child(4) { animation-delay: 0.44s; }
.hero-text > *:nth-child(5) { animation-delay: 0.57s; }

/* --- Hero visual float + entrance --- */
.hero-visual { animation: heroIn 0.9s ease 0.3s both; }
.solar-svg { animation: floatY 5s ease-in-out infinite; }
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* --- Reveal stagger (delay set inline via --i by main.js) --- */
.reveal.visible { animation-delay: calc(var(--i, 0) * 90ms); }

/* --- Animated gradient sheen on primary buttons --- */
.btn-primary {
  position: relative;
  overflow: hidden;
}
.btn-primary::after {
  content: "";
  position: absolute;
  top: 0;
  inset-inline-start: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.45), transparent);
  transform: skewX(-20deg);
  transition: inset-inline-start 0.6s ease;
}
.btn-primary:hover::after { inset-inline-start: 140%; }

/* --- Nav animated underline --- */
.nav a {
  position: relative;
}
.nav a::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: -4px;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}
.nav a:hover::after { transform: scaleX(1); }

/* --- Logo sun spin on hover --- */
.logo { transition: transform 0.3s ease; }
.logo:hover { transform: scale(1.04); }

/* --- Step number pulse ring --- */
.step-num {
  position: relative;
}
.step-num::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  opacity: 0;
  animation: pulseRing 2.4s ease-out infinite;
}
.step-card:nth-child(2) .step-num::before { animation-delay: 0.8s; }
.step-card:nth-child(3) .step-num::before { animation-delay: 1.6s; }
@keyframes pulseRing {
  0% { transform: scale(0.85); opacity: 0.7; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* --- Benefit icon bounce on hover --- */
.benefit-card .benefit-icon,
.step-card .step-icon {
  display: inline-block;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.benefit-card:hover .benefit-icon,
.step-card:hover .step-icon { transform: translateY(-6px) scale(1.15) rotate(-6deg); }

/* --- Image zoom-on-hover frame --- */
.img-frame {
  overflow: hidden;
  border-radius: var(--radius-card);
}
.img-frame img {
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  width: 100%;
}
.img-frame:hover img { transform: scale(1.06); }

/* --- Reveal variants --- */
@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes zoomIn {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}
.reveal-right.visible { animation: fadeInRight 0.7s ease forwards; }
.reveal-left.visible { animation: fadeInLeft 0.7s ease forwards; }
.reveal-zoom.visible { animation: zoomIn 0.7s ease forwards; }
.reveal-right, .reveal-left, .reveal-zoom { opacity: 0; }

/* --- Result cards pop --- */
.result-card { animation: zoomIn 0.5s ease both; }
.results-grid .result-card:nth-child(1) { animation-delay: 0.05s; }
.results-grid .result-card:nth-child(2) { animation-delay: 0.15s; }
.results-grid .result-card:nth-child(3) { animation-delay: 0.25s; }
.results-grid .result-card:nth-child(4) { animation-delay: 0.35s; }
.results-grid .result-card:nth-child(5) { animation-delay: 0.45s; }

/* --- Card hover sheen for benefit/step cards --- */
.card { position: relative; overflow: hidden; }
.card::before {
  content: "";
  position: absolute;
  top: 0; inset-inline-start: -150%;
  width: 80%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(37,99,235,0.06), transparent);
  transform: skewX(-20deg);
  transition: inset-inline-start 0.7s ease;
  pointer-events: none;
}
.card:hover::before { inset-inline-start: 150%; }

/* --- Section title underline accent --- */
.section-title {
  position: relative;
  padding-bottom: 14px;
}
.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  inset-inline-start: 50%;
  transform: translateX(50%);
  width: 56px;
  height: 4px;
  border-radius: 4px;
  background: var(--accent);
}

/* --- Scroll-down cue in hero --- */
.scroll-cue {
  display: flex;
  justify-content: center;
  margin-top: 18px;
}
.scroll-cue span {
  font-size: 22px;
  color: var(--primary);
  animation: bobble 1.8s ease-in-out infinite;
}
@keyframes bobble {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50% { transform: translateY(8px); opacity: 1; }
}

/* --- Floating CTA button on scroll (mobile lead magnet) --- */
.float-cta {
  position: fixed;
  bottom: 18px;
  inset-inline: 16px;
  z-index: 1500;
  display: none;
  justify-content: center;
  transform: translateY(120%);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.float-cta.show { transform: translateY(0); }
.float-cta .btn { width: 100%; box-shadow: 0 10px 30px rgba(249,115,22,0.45); }
@media (max-width: 768px) {
  .float-cta { display: flex; }
}

/* --- Comparison row entrance --- */
.comp-table tbody tr { animation: fadeInUp 0.5s ease both; }
.comp-table tbody tr:nth-child(1) { animation-delay: 0.05s; }
.comp-table tbody tr:nth-child(2) { animation-delay: 0.12s; }
.comp-table tbody tr:nth-child(3) { animation-delay: 0.19s; }
.comp-table tbody tr:nth-child(4) { animation-delay: 0.26s; }
.comp-table tbody tr:nth-child(5) { animation-delay: 0.33s; }
.comp-table tbody tr:nth-child(6) { animation-delay: 0.40s; }

/* --- Full-width CTA band with background photo --- */
.cta-band {
  position: relative;
  padding: 90px 0;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  text-align: center;
  color: #fff;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(30,41,59,0.88), rgba(37,99,235,0.72));
}
.cta-band .container { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; font-size: 36px; margin-bottom: 14px; }
.cta-band p { font-size: 19px; color: #e2e8f0; margin-bottom: 26px; max-width: 600px; margin-inline: auto; }
@media (max-width: 768px) {
  .cta-band { background-attachment: scroll; padding: 60px 0; }
  .cta-band h2 { font-size: 27px; }
}

/* --- Respect reduced motion ---
   Reduced motion means no travel, not no feedback. A blanket 0.01ms on every
   transition also erases the ones that *communicate state* — the funnel
   progress bar filling, an accordion opening, a focus ring arriving — which
   reads as a broken interface rather than a calm one.

   So: kill every keyframe animation and every property that moves or resizes
   something, and keep a short fade on the properties that only change colour
   or opacity. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-property: opacity, color, background-color, border-color,
                         box-shadow, fill, stroke, outline-color !important;
    transition-duration: 120ms !important;
  }
  html { scroll-behavior: auto; }
  /* The reveal animations are the entrance; without them the content must
     simply already be there. */
  .reveal, .reveal-right, .reveal-left, .reveal-zoom {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ===========================================================
   BLOG & ARTICLES SYSTEM  (refined UI/UX)
   =========================================================== */

/* ---------- Article Layout ---------- */
.article-main { padding: 110px 0 80px; background: var(--secondary); }
.article-container {
  max-width: 1180px; margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px;
  align-items: start;
}

/* The reading column sits on a white "sheet" for comfort + focus */
.article-content {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px 48px 48px;
  box-shadow: var(--shadow);
}

/* Typographic rhythm — comfortable measure */
.article-content h2 {
  font-size: 27px; font-weight: 800; color: var(--text-dark);
  margin: 48px 0 16px; padding-inline-start: 16px; position: relative; line-height: 1.3;
}
.article-content h2::before {
  content: ""; position: absolute; inset-inline-start: 0; top: 4px; bottom: 4px;
  width: 5px; border-radius: 4px; background: var(--accent);
}
.article-content h3 { font-size: 21px; font-weight: 700; color: var(--primary); margin: 30px 0 10px; }
.article-content > p:first-of-type { font-size: 20px; line-height: 1.75; color: #1f2937; }
.article-content p { font-size: 18px; line-height: 1.85; color: #374151; margin-bottom: 22px; }
.article-content ul, .article-content ol { margin: 18px 0 26px; padding-inline-start: 26px; }
.article-content ul { list-style: disc; }
.article-content ol { list-style: decimal; }
.article-content li { font-size: 18px; line-height: 1.8; margin-bottom: 12px; color: #374151; padding-inline-start: 6px; }
.article-content li::marker { color: var(--primary); font-weight: 700; }
/* "what's included" check list */
.article-content ul.check-list { list-style: none; padding-inline-start: 4px; }
.article-content ul.check-list li { padding-inline-start: 32px; position: relative; }
.article-content ul.check-list li::before { content: "✓"; position: absolute; inset-inline-start: 0; top: 0; color: var(--success); font-weight: 800; font-size: 19px; }
.article-content a { color: var(--primary); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(37,99,235,.35); }
.article-content a:hover { text-decoration-color: var(--primary); }
.article-content table { width: 100%; border-collapse: collapse; margin: 30px 0; font-size: 16px; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.article-content th { background: var(--primary); color: #fff; padding: 14px 16px; text-align: start; font-weight: 700; }
.article-content td { padding: 13px 16px; border-bottom: 1px solid var(--border); }
.article-content tr:last-child td { border-bottom: none; }
.article-content tbody tr:nth-child(even) { background: #F9F5EE; }

/* ---------- Article header ---------- */
.article-tag-large { display: inline-block; background: #FFF7ED; color: var(--accent-ink); padding: 6px 16px; border-radius: 999px; font-size: 14px; font-weight: 700; margin-bottom: 16px; }
.article-header h1 { font-size: 40px; font-weight: 800; line-height: 1.2; margin-bottom: 16px; color: var(--text-dark); }
.article-meta-bar { display: flex; flex-wrap: wrap; gap: 20px; color: var(--text-muted); font-size: 15px; }
/* Geometry lives here rather than in a style attribute repeated verbatim on
   every article. */
.article-hero-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 16px;
  margin: 24px 0;
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
}
@media (max-width: 600px) {
  .article-hero-image { height: 210px; }
}

/* ---------- Highlight boxes ---------- */
.info-box, .warning-box, .success-box {
  padding: 18px 22px; border-radius: 12px; margin: 30px 0; font-size: 17px; line-height: 1.7;
}
/* The tint already carries the semantics; a thick colored tab on one edge is
   decoration that reads as a template. A hairline in the same hue closes the
   shape without shouting. */
.info-box { background: #EFF6FF; border: 1px solid rgba(37, 99, 235, 0.3); }
.warning-box { background: #FFF7ED; border: 1px solid rgba(194, 65, 12, 0.28); }
.success-box { background: #F0FDF4; border: 1px solid rgba(21, 128, 61, 0.28); }
.info-box p, .warning-box p, .success-box p { margin: 0; font-size: 17px; }

/* ---------- TOC ---------- */
.toc-box { background: #F9F5EE; border: 1px solid var(--border); border-radius: 14px; padding: 24px 28px; margin: 30px 0; }
.toc-box h3 { margin: 0 0 14px; font-size: 18px; color: var(--text-dark); }
.toc-box ol { margin: 0; padding: 0; counter-reset: toc; }
.toc-box li { margin-bottom: 10px; padding-inline-start: 26px; position: relative; list-style: none; }
.toc-box li::before { counter-increment: toc; content: counter(toc); position: absolute; inset-inline-start: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%; background: var(--primary); color: #fff; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.toc-box a { color: #334155; text-decoration: none; font-size: 16px; font-weight: 500; }
.toc-box a:hover { color: var(--primary); }

/* ---------- Article FAQ ---------- */
.article-faq { margin: 24px 0; }
.article-faq details { background: #F9F5EE; border: 1px solid var(--border); border-radius: 12px; margin-bottom: 12px; padding: 0 22px; transition: box-shadow .2s ease; }
.article-faq details[open] { box-shadow: var(--shadow); background: var(--surface); }
.article-faq summary { cursor: pointer; font-weight: 700; font-size: 17px; color: var(--text-dark); padding: 18px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.article-faq summary::-webkit-details-marker { display: none; }
.article-faq summary::after { content: "+"; color: var(--accent-ink); font-size: 24px; font-weight: 700; flex-shrink: 0; transition: transform .2s ease; }
.article-faq details[open] summary::after { content: "−"; }
.article-faq details p { padding-bottom: 18px; margin: 0; color: #374151; font-size: 16px; line-height: 1.7; }

/* ---------- Article CTA Box ---------- */
.article-cta-box { background: linear-gradient(135deg, #2563EB, #1E3A5F); color: #fff; padding: 36px 32px; border-radius: 18px; margin: 44px 0; text-align: center; }
.article-cta-box h3 { color: #fff; margin: 0 0 10px; font-size: 24px; font-weight: 800; }
.article-cta-box p { color: rgba(255,255,255,0.88); margin: 0 0 22px; font-size: 17px; }
.article-cta-box .btn { background: var(--accent-ink); color: #fff; }
.article-cta-box .btn:hover { transform: translateY(-2px); }

/* ---------- Related articles ---------- */
.related-articles { margin-top: 52px; padding-top: 36px; border-top: 1px solid var(--border); }
.related-articles h3 { font-size: 23px; font-weight: 800; color: var(--text-dark); margin-bottom: 20px; }
.related-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.related-card { display: flex; flex-direction: column; gap: 6px; background: #F9F5EE; border: 1px solid var(--border); border-radius: 14px; padding: 22px; transition: transform .25s ease, box-shadow .25s ease; }
.related-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); background: var(--surface); }
.related-card .related-tag { font-size: 13px; color: var(--accent-ink); font-weight: 700; }
.related-card h4 { color: var(--text-dark); margin: 4px 0 8px; font-size: 18px; line-height: 1.4; }
.related-card span.go { color: var(--primary); font-weight: 700; font-size: 14px; margin-top: auto; }

/* ---------- Breadcrumb ---------- */
.breadcrumb { font-size: 14px; color: var(--text-muted); margin-bottom: 22px; }
.breadcrumb a { color: var(--primary); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* ---------- Sidebar ---------- */
.sticky-sidebar { position: sticky; top: 96px; }
.sidebar-cta { background: linear-gradient(160deg, #fff, #F9F5EE); border: 2px solid var(--primary); border-radius: 18px; padding: 26px; margin-bottom: 22px; box-shadow: var(--shadow); }
.sidebar-cta h4 { color: var(--primary); margin: 0 0 6px; font-size: 19px; }
.sidebar-cta > p { color: var(--text-muted); font-size: 14px; margin: 0 0 16px; }
.sidebar-cta input, .sidebar-cta select { width: 100%; padding: 12px 14px; margin-bottom: 11px; border: 1.5px solid var(--border); border-radius: 10px; font-size: 16px; font-family: 'Heebo', sans-serif; box-sizing: border-box; background: var(--surface); transition: border-color .2s ease, box-shadow .2s ease; }
.sidebar-cta input:focus, .sidebar-cta select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
.sidebar-cta button { width: 100%; padding: 14px; background: var(--accent-ink); color: #fff; border: none; border-radius: 10px; font-size: 16px; font-weight: 700; cursor: pointer; font-family: 'Heebo', sans-serif; transition: transform .2s ease, box-shadow .2s ease; box-shadow: 0 6px 18px rgba(249,115,22,.3); }
.sidebar-cta button:hover { transform: translateY(-2px); }
.sidebar-widget { background: var(--surface); border-radius: 16px; padding: 22px; margin-bottom: 20px; border: 1px solid var(--border); }
.sidebar-widget h4 { margin: 0 0 10px; color: var(--text-dark); font-size: 17px; }
.sidebar-widget p { color: var(--text-muted); font-size: 14px; margin: 0 0 14px; }
.sidebar-widget .btn { width: 100%; }
.sidebar-article-list { list-style: none; padding: 0; margin: 0; }
.sidebar-article-list li { margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--secondary); }
.sidebar-article-list li:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.sidebar-article-list a { color: #334155; text-decoration: none; font-size: 15px; font-weight: 500; display: block; transition: color .2s ease; }
.sidebar-article-list a:hover { color: var(--primary); }

/* ---------- Blog Listing Page ---------- */
.blog-hero { background: linear-gradient(135deg, #2563EB, #1E3A5F); color: #fff; padding: 150px 24px 70px; text-align: center; }
.blog-hero h1 { color: #fff; font-size: 46px; font-weight: 800; margin-bottom: 14px; }
.blog-hero p { color: rgba(255,255,255,0.9); font-size: 19px; max-width: 640px; margin: 0 auto; line-height: 1.6; }

.blog-listing { max-width: 1120px; margin: 56px auto 80px; padding: 0 24px; }

/* Featured post (image + text side by side) */
.blog-featured { display: grid; grid-template-columns: 1.05fr 1fr; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); margin-bottom: 56px; transition: transform .25s ease, box-shadow .25s ease; color: inherit; text-decoration: none; }
.blog-featured:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.blog-featured-img { background-size: cover; background-position: center; min-height: 320px; }
.blog-featured-body { padding: 40px 44px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.blog-featured-body .article-tag { background: #FFF7ED; color: var(--accent-ink); padding: 5px 14px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.blog-featured-body .article-title { font-size: 30px; font-weight: 800; margin: 16px 0 12px; line-height: 1.3; }
.blog-featured-body .article-excerpt { font-size: 17px; color: var(--text-muted); line-height: 1.7; margin-bottom: 18px; }

.blog-section-head { margin: 0 0 28px; }
.blog-eyebrow { display: inline-flex; align-items: center; gap: 12px; color: var(--accent-ink); font-size: 14px; font-weight: 700; letter-spacing: 3px; }
.blog-eyebrow::before { content: ""; width: 42px; height: 2px; background: var(--accent); display: inline-block; }
.blog-section-title { font-size: 34px; font-weight: 800; color: var(--text-dark); margin: 10px 0 0; letter-spacing: -0.5px; }

.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.article-card { display: flex; flex-direction: column; background: var(--surface); border-radius: 18px; overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow); transition: transform .25s ease, box-shadow .25s ease; color: inherit; text-decoration: none; }
.article-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.article-card-image { overflow: hidden; }
.article-placeholder-img { aspect-ratio: 16 / 9; width: 100%; display: flex; align-items: center; justify-content: center; font-size: 60px; background-size: cover; background-position: center; transition: transform .5s ease; }
.article-card:hover .article-placeholder-img { transform: scale(1.05); }
.article-card-body { padding: 22px 26px 26px; display: flex; flex-direction: column; flex: 1; }
.article-card-body .article-tag { align-self: flex-start; background: #FFF7ED; color: var(--accent-ink); padding: 5px 14px; border-radius: 999px; font-size: 13px; font-weight: 700; }

/* Reference-style category bar (filled, brand-tinted, full-width) */
.cat-bar {
  margin: 0 -26px 16px; padding: 10px 26px;
  background: linear-gradient(90deg, rgba(249,115,22,.16), rgba(249,115,22,.03));
  color: var(--accent-ink);
  font-size: 12px; font-weight: 800; letter-spacing: 3px;
}

.article-title { font-size: 22px; font-weight: 700; margin: 0 0 12px; color: var(--text-dark); line-height: 1.4; }
.article-excerpt { font-size: 16px; color: var(--text-muted); line-height: 1.65; margin-bottom: 18px; flex: 1; }
.article-card .article-title { font-size: 20px; font-weight: 800; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.article-card .article-excerpt { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Meta: DATE • READ TIME, letter-spaced */
.article-meta { display: flex; gap: 18px; font-size: 13px; color: var(--text-muted); margin-bottom: 18px; }
.article-card .article-meta { font-size: 12px; color: var(--text-muted); margin-bottom: 14px; gap: 12px; letter-spacing: 1.5px; font-weight: 600; }
.article-card .article-meta span + span { position: relative; padding-inline-start: 12px; }
.article-card .article-meta span + span::before { content: "•"; position: absolute; inset-inline-start: 0; color: var(--accent-ink); }

.article-read-more { color: var(--accent-ink); font-weight: 800; text-decoration: none; font-size: 14px; letter-spacing: 2px; padding-top: 16px; border-top: 1px solid var(--border); display: inline-flex; align-items: center; gap: 8px; transition: gap .2s ease; }
.article-read-more:hover { gap: 14px; }

/* Highlighted middle card (echoes the reference) */
.blog-grid .article-card:nth-child(2) { border-color: var(--accent); box-shadow: 0 8px 32px rgba(249,115,22,.16); }

@media (max-width: 900px) {
  .article-container { grid-template-columns: 1fr; gap: 32px; }
  .article-sidebar { order: 2; }
  .sticky-sidebar { position: static; }
}
@media (max-width: 900px) {
  .blog-grid { grid-template-columns: 1fr 1fr; }
  .blog-featured { grid-template-columns: 1fr; }
  .blog-featured-img { min-height: 220px; }
  .blog-featured-body { padding: 30px 28px; }
  .blog-featured-body .article-title { font-size: 25px; }
}
@media (max-width: 768px) {
  .blog-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .blog-hero { padding: 120px 20px 50px; }
  .blog-hero h1 { font-size: 32px; }
  .blog-section-title { font-size: 22px; }
  .article-content { padding: 26px 22px 30px; }
  .article-header h1 { font-size: 28px; }
  .article-content > p:first-of-type { font-size: 18px; }
  .article-content p, .article-content li { font-size: 17px; }
}

/* ===========================================================
   LEAD-GEN FUNNEL (machshevon.html)
   =========================================================== */
.funnel-section { background: var(--secondary); padding: 130px 20px 80px; min-height: 80vh; }
.funnel {
  max-width: 600px; margin: 0 auto; background: var(--surface);
  border: 1px solid var(--border); border-radius: 20px;
  box-shadow: var(--shadow); padding: 16px 38px 40px; overflow: hidden;
}
@media (max-width: 600px) { .funnel { padding: 12px 22px 30px; } }

/* progress */
.funnel-progress { height: 6px; background: var(--secondary); border-radius: 99px; margin: 8px 0 30px; overflow: hidden; }
.funnel-progress-bar { display: block; height: 100%; width: 100%; transform: scaleX(0); transform-origin: right; background: linear-gradient(90deg, var(--primary), var(--accent)); border-radius: 99px; transition: transform .45s cubic-bezier(.4,0,.2,1); }

/* steps */
.funnel-step { display: none; animation: funnelIn .4s ease; }
.funnel-step.is-active { display: block; }
@keyframes funnelIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }

.funnel-eyebrow { display: inline-block; color: var(--accent-ink); font-weight: 700; font-size: 14px; letter-spacing: 1px; margin-bottom: 10px; }
.funnel-title { font-size: 30px; font-weight: 800; line-height: 1.25; color: var(--text-dark); margin-bottom: 10px; }
.funnel-lead { color: var(--text-muted); font-size: 16px; margin-bottom: 28px; }
.funnel-count { display: inline-block; color: var(--text-muted); font-size: 14px; font-weight: 600; margin-bottom: 14px; }
.funnel-q { display: block; font-size: 21px; font-weight: 700; color: var(--text-dark); margin-bottom: 18px; }

.funnel-input {
  width: 100%; font-family: inherit; font-size: 17px; padding: 15px 16px;
  border: 1.5px solid var(--border); border-radius: 12px; background: var(--surface);
  color: var(--text-dark); margin-bottom: 20px; box-sizing: border-box;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.funnel-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
.funnel-input.err { border-color: #dc2626; box-shadow: 0 0 0 3px rgba(220,38,38,.12); }
.funnel-next { width: 100%; font-size: 17px; }

/* option cards */
.funnel-options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 18px; }
.funnel-opt {
  font-family: inherit; font-size: 16px; font-weight: 600; color: var(--text-dark);
  background: var(--surface); border: 1.5px solid var(--border); border-radius: 12px;
  padding: 18px 16px; cursor: pointer; text-align: center; min-height: 58px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: border-color .2s ease, background .2s ease, transform .15s ease, box-shadow .2s ease;
}
.funnel-opt:hover { border-color: var(--primary); background: rgba(37,99,235,.04); transform: translateY(-2px); }
.funnel-opt.sel { border-color: var(--accent); background: rgba(249,115,22,.08); box-shadow: 0 0 0 3px rgba(249,115,22,.12); }
.funnel-opt .o-ic { font-size: 20px; }
@media (max-width: 480px) { .funnel-options { grid-template-columns: 1fr; } }

.funnel-back { background: none; border: none; color: var(--text-muted); font-family: inherit; font-size: 15px; cursor: pointer; padding: 12px 8px; margin-inline-start: -8px; min-height: 44px; display: inline-flex; align-items: center; }
.funnel-back:hover { color: var(--primary); }

/* calculating animation */
.funnel-calc { text-align: center; padding: 40px 0 20px; }
.calc-spinner {
  width: 64px; height: 64px; margin: 0 auto 24px; border-radius: 50%;
  border: 5px solid rgba(37,99,235,.15); border-top-color: var(--primary);
  animation: spin .9s linear infinite;
}
.calc-msg { font-size: 20px; font-weight: 700; color: var(--text-dark); margin-bottom: 22px; min-height: 28px; }
.calc-steps { max-width: 320px; margin: 0 auto; text-align: start; }
.calc-done { color: var(--success); font-weight: 600; font-size: 16px; margin-bottom: 10px; animation: funnelIn .35s ease; }

/* lead capture / report */
.funnel-lead { text-align: center; }
.report-badge { display: inline-block; background: rgba(22,163,74,.1); color: #14532d; border: 1px solid rgba(22,163,74,.35); font-weight: 700; font-size: 17px; padding: 12px 20px; border-radius: 12px; margin-bottom: 20px; }
.report-intro { font-size: 17px; color: var(--text-dark); margin-bottom: 14px; }
.report-list { list-style: none; padding: 0; margin: 0 auto 26px; max-width: 320px; text-align: start; }
.report-list li { position: relative; padding: 9px 30px 9px 0; font-size: 16px; color: #374151; border-bottom: 1px dashed var(--border); }
.report-list li::before { content: "✓"; position: absolute; inset-inline-start: 0; top: 9px; color: var(--success); font-weight: 800; font-size: 18px; }
.report-cta-label { font-weight: 700; color: var(--text-dark); margin: 6px 0 14px; }
.funnel-lead form input[type="text"],
.funnel-lead form input[type="tel"],
.funnel-lead form input[type="email"] {
  width: 100%; font-family: inherit; font-size: 16px; padding: 14px 16px;
  border: 1.5px solid var(--border); border-radius: 12px; margin-bottom: 12px;
  box-sizing: border-box; background: var(--surface); transition: border-color .2s ease, box-shadow .2s ease;
}
.funnel-lead form input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
.funnel-lead form .btn { width: 100%; font-size: 17px; margin-top: 6px; }

/* result */
.funnel-result { text-align: center; padding: 24px 0; }
.result-emoji { font-size: 54px; margin-bottom: 8px; }
.result-cap { font-size: 17px; color: var(--text-muted); margin-bottom: 6px; }
.result-big { font-size: 52px; font-weight: 800; color: var(--success); line-height: 1.1; margin-bottom: 18px; }
.result-note { font-size: 17px; color: var(--text-dark); margin-bottom: 24px; max-width: 420px; margin-inline: auto; }

/* ===========================================================
   CRO LANDING PAGE (index.html)
   =========================================================== */
.lp-hero { position: relative; overflow: hidden; background: linear-gradient(160deg, #1E3A5F 0%, #0f2238 100%); padding: 120px 0 56px; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; }
.lp-hero > .container { position: relative; z-index: 2; width: 100%; }
/* Cinematic hero background video */
.hero-video-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
/* Video starts hidden and fades in once playing — the gradient + shader carry
   the hero until then, so no image/video bytes sit on the LCP critical path. */
.hero-video-bg video { width: 100%; height: 100%; object-fit: cover; object-position: center; opacity: 0; transition: opacity .9s ease; }
.hero-video-bg video.is-ready { opacity: 1; }
/* WebGL shader glow layered subtly over the video; scrim stays above for legibility */
.hero-shader { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1;
  display: block; pointer-events: none; opacity: .55; mix-blend-mode: screen; }
.hero-video-scrim { position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(90deg, rgba(10,22,40,.86) 0%, rgba(10,22,40,.72) 45%, rgba(10,22,40,.5) 100%);
}
@media (max-width: 900px){ .hero-video-scrim { background: linear-gradient(180deg, rgba(10,22,40,.74) 0%, rgba(10,22,40,.82) 100%); } }
.lp-hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.lp-hero-copy .lp-eyebrow { display: inline-block; background: rgba(255,255,255,.14); color: #fff; font-weight: 700; font-size: 14px; padding: 7px 16px; border-radius: 999px; margin-bottom: 18px; }
.lp-hero-copy h1 { font-size: 46px; font-weight: 800; line-height: 1.15; margin-bottom: 16px; color: #fff; text-shadow: 0 2px 18px rgba(0,0,0,.35); }
.lp-hero-copy h1 .accent { color: #FDBA74; }
.lp-hero-copy .lp-sub { font-size: 20px; color: #e2e8f0; line-height: 1.6; margin-bottom: 22px; text-shadow: 0 1px 10px rgba(0,0,0,.3); }
.lp-hero-bullets { margin-bottom: 18px; }
.lp-hero-bullets li { font-size: 17px; color: #f1f5f9; margin-bottom: 9px; display: flex; align-items: center; gap: 9px; font-weight: 500; text-shadow: 0 1px 8px rgba(0,0,0,.3); }
.lp-hero-trust { font-size: 14px; color: #cbd5e1; }
.lp-hero-form { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; box-shadow: 0 20px 60px rgba(30,41,59,.14); padding: 14px 30px 30px; }
@media (max-width: 900px) {
  .lp-hero { padding-top: 96px; }
  .lp-hero-grid { grid-template-columns: 1fr; gap: 26px; }
  .lp-hero-copy { text-align: center; }
  .lp-hero-copy h1 { font-size: 33px; }
  .lp-hero-copy .lp-sub { font-size: 17px; }
  .lp-hero-bullets { display: inline-block; text-align: start; }
  .lp-hero-form { padding: 10px 18px 24px; }
  /* headline first on mobile so visitors get context before the form;
     the sticky CTA keeps the form one tap away */
}

/* Trust bar */
.trust-bar { background: var(--surface); border-block: 1px solid var(--border); padding: 30px 0; }
.trust-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; text-align: center; }
.trust-item .trust-ic { font-size: 26px; }
.trust-item .trust-num { font-size: 34px; font-weight: 800; color: var(--primary); display: block; line-height: 1.1; }
.trust-item .trust-num-txt { font-size: 24px; }
.trust-item .trust-lbl { font-size: 14px; color: var(--text-muted); }
@media (max-width: 600px){ .trust-grid { grid-template-columns: 1fr 1fr; gap: 24px; } .trust-item .trust-num{font-size:28px;} }

/* Savings / income cards */
.savings-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.savings-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 28px; box-shadow: var(--shadow); text-align: center; transition: transform .25s ease, box-shadow .25s ease; }
.savings-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.savings-card .sv-ic { font-size: 40px; }
.savings-card h3 { font-size: 20px; margin: 10px 0 4px; }
.savings-card .sv-sys { color: var(--text-muted); font-size: 15px; margin-bottom: 16px; }
.savings-card .sv-amt { font-size: 36px; font-weight: 800; color: var(--success); line-height: 1.1; }
.savings-card .sv-amt.income { color: var(--accent-ink); }
.savings-card .sv-cap { font-size: 14px; color: var(--text-muted); margin-top: 4px; }
@media (max-width: 768px){ .savings-grid { grid-template-columns: 1fr; } }

/* Why now */
.why-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 16px; }
.why-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 22px 16px; text-align: center; }
.why-card .why-ic { font-size: 30px; }
.why-card p { font-size: 15px; font-weight: 600; color: var(--text-dark); margin-top: 8px; line-height: 1.4; }
@media (max-width: 900px){ .why-grid { grid-template-columns: 1fr 1fr; } }

/* Process 5 steps */
.process-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 16px; counter-reset: step; }
.process-step { text-align: center; position: relative; }
.process-step .ps-num { width: 46px; height: 46px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 800; font-size: 18px; display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; }
.process-step .ps-ic { font-size: 26px; }
.process-step h4 { font-size: 16px; margin-top: 6px; }
@media (max-width: 900px){ .process-grid { grid-template-columns: 1fr 1fr; gap: 24px; } }

/* Projects / case studies */
.projects-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.project-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); overflow: hidden; box-shadow: var(--shadow); transition: transform .25s ease, box-shadow .25s ease; }
.project-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.project-img { aspect-ratio: 16/10; background-size: cover; background-position: center; }
.project-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.project-body { padding: 20px 22px 24px; }
.project-body .pj-loc { font-size: 13px; color: var(--accent-ink); font-weight: 700; letter-spacing: .5px; }
.project-body h4 { font-size: 18px; margin: 6px 0 12px; }
.project-meta { display: flex; justify-content: space-between; border-top: 1px solid var(--border); padding-top: 12px; }
.project-meta .pm-num { font-size: 19px; font-weight: 800; color: var(--success); display: block; }
.project-meta .pm-lbl { font-size: 12px; color: var(--text-muted); }
@media (max-width: 768px){ .projects-grid { grid-template-columns: 1fr; } }

/* Testimonials + social proof */
.testi-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.testi-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 26px; box-shadow: var(--shadow); }
.testi-stars { color: #FACC15; font-size: 18px; margin-bottom: 10px; }
.testi-card p { font-size: 16px; color: #334155; line-height: 1.7; margin-bottom: 16px; }
.testi-who { display: flex; align-items: center; gap: 12px; }
.testi-av { width: 44px; height: 44px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: 18px; }
.testi-name { font-weight: 700; font-size: 15px; }
.testi-city { font-size: 13px; color: var(--text-muted); }
@media (max-width: 768px){ .testi-grid { grid-template-columns: 1fr; } }
.logo-row { display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: center; align-items: center; margin-top: 36px; }
.logo-row span { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 10px 18px; font-weight: 700; color: var(--text-muted); font-size: 15px; }
.reviews-badge { display: inline-flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 10px 20px; box-shadow: var(--shadow); margin: 0 auto 8px; }
.reviews-badge .rb-score { font-weight: 800; color: var(--text-dark); font-size: 18px; }
.reviews-badge .rb-stars { color: #FACC15; }

/* Final CTA */
.final-cta { background: linear-gradient(135deg, #2563EB, #1E3A5F); color: #fff; text-align: center; padding: 70px 20px; }
.final-cta h2 { color: #fff; font-size: 34px; margin-bottom: 12px; }
.final-cta p { color: rgba(255,255,255,.88); font-size: 18px; margin-bottom: 26px; }
.final-cta .btn { font-size: 19px; padding: 16px 36px; }

/* Sticky mobile CTA bar */
.sticky-cta { position: fixed; bottom: 0; inset-inline: 0; z-index: 1400; background: var(--surface); border-top: 1px solid var(--border); box-shadow: 0 -6px 24px rgba(0,0,0,.1); padding: 10px 14px; display: none; }
.sticky-cta .btn { width: 100%; }
/* Matches the breakpoint where the header CTA folds into the hamburger, so a
   call to action is always on screen. */
@media (max-width: 1000px){
  /* Visible only when the main lead form is scrolled out of view (toggled by JS).
     Slides off-screen otherwise so it never overlaps the form being filled. */
  .sticky-cta { display: block; transform: translateY(115%); transition: transform .25s ease; will-change: transform; }
  body.sticky-cta-on .sticky-cta { transform: translateY(0); }
  body { padding-bottom: 0; }
  body.sticky-cta-on { padding-bottom: 74px; }
}

/* =========================================================
   Legal pages, accessibility helpers, consent UI (v=7)
   ========================================================= */

/* Skip-to-content link (accessibility) */
.skip-link {
  position: absolute;
  inset-inline-start: 12px;
  top: -60px;
  z-index: 3000;
  background: var(--primary);
  color: #fff;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 700;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 12px; }
/* The skip target takes tabindex="-1" so the browser really moves focus into
   it; it should not then draw a ring around the whole page body. */
main[tabindex="-1"]:focus { outline: none; }

/* Visible keyboard focus for accessibility (IS 5568 / WCAG AA) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
.funnel-opt:focus-visible {
  outline: 3px solid #1D4ED8;
  outline-offset: 2px;
}

/* Legal / content pages */
.legal-hero { background: linear-gradient(135deg, #2563EB, #1E3A5F); color: #fff; padding: 60px 20px 48px; text-align: center; }
.legal-hero h1 { color: #fff; font-size: 34px; margin-bottom: 8px; }
.legal-hero p { color: rgba(255,255,255,.85); font-size: 16px; }
.legal-wrap { max-width: 820px; margin: 0 auto; padding: 48px 20px 72px; }
.legal-wrap h2 { font-size: 22px; color: var(--text-dark); margin: 34px 0 12px; }
.legal-wrap h3 { font-size: 18px; color: var(--text-dark); margin: 22px 0 8px; }
.legal-wrap p, .legal-wrap li { color: var(--text-muted); line-height: 1.9; font-size: 16px; }
.legal-wrap ul { padding-inline-start: 22px; margin: 10px 0 16px; list-style: disc; }
.legal-wrap li { margin-bottom: 6px; }
.legal-wrap a { color: var(--primary); text-decoration: underline; }
.legal-updated { color: var(--text-muted); font-size: 14px; margin-bottom: 8px; }
.legal-note { background: #FFF7ED; border: 1px solid #FED7AA; border-radius: 10px; padding: 14px 16px; margin: 18px 0; font-size: 14px; color: #9A3412; }
.legal-contact-box { background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 18px 20px; margin-top: 18px; }

/* Illustrative-data disclaimers */
.illustration-note { text-align: center; color: var(--text-muted); font-size: 13px; margin-top: 16px; }

/* Consent checkbox inside lead form */
.consent-row { display: flex; align-items: flex-start; gap: 9px; margin: 4px 0 12px; text-align: start; }
.consent-row input[type="checkbox"] { width: 18px; height: 18px; margin-top: 3px; flex-shrink: 0; accent-color: var(--primary); }
.consent-row label { font-size: 12.5px; line-height: 1.55; color: var(--text-muted); }
.consent-row a { color: var(--primary); text-decoration: underline; }

/* Cookie consent banner */
.cookie-banner {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 2600;
  background: var(--surface); border-top: 1px solid var(--border);
  box-shadow: 0 -8px 30px rgba(0,0,0,.12);
  padding: 16px; display: none;
}
.cookie-banner.show { display: block; }
/* While the cookie banner is open, keep the bottom of the screen clear:
   hide the sticky CTA and lift the accessibility button above the banner */
body.cookie-open .sticky-cta { display: none !important; }
body.cookie-open #a11y-fab { bottom: 130px; }
.cookie-inner { max-width: 1080px; margin: 0 auto; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; justify-content: space-between; }
.cookie-text { font-size: 14px; color: var(--text-muted); line-height: 1.6; flex: 1 1 420px; }
.cookie-text a { color: var(--primary); text-decoration: underline; }
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-actions .btn { padding: 9px 18px; font-size: 14px; }
.btn-ghost { background: transparent; border: 1px solid var(--border); color: var(--text-dark); }
.btn-ghost:hover { background: var(--bg); }
@media (max-width: 600px){ .cookie-actions { width: 100%; } .cookie-actions .btn { flex: 1; } }

/* Footer legal block */
.footer-bottom { line-height: 1.9; }
.footer-bottom a { color: #cbd5e1; text-decoration: underline; }
.footer-bottom a:hover { color: var(--accent); }
.footer-legal-links { margin-bottom: 6px; }
.footer-legal-id { color: #94a3b8; font-size: 13px; margin-bottom: 6px; }

/* ===== Calculator on-screen result ===== */
.result-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px;margin:18px 0}
.result-stat{background:var(--secondary,#f4f7fb);border:1px solid var(--border,#e3e9f2);border-radius:14px;padding:14px 10px;text-align:center}
.result-stat strong{display:block;font-size:20px;font-weight:800;color:var(--text-dark,#1e293b);margin-bottom:4px;direction:ltr}
.result-stat span{font-size:12.5px;color:var(--text-muted,#64748b)}
.result-stat-hl{background:linear-gradient(135deg,#fff7e6,#fffbf2);border-color:#f5d488}
.result-lead-divider{height:1px;background:var(--border,#e3e9f2);margin:26px 0 18px}
#shareResult{margin:6px 0 2px}
#r-citynote{font-size:14px;color:var(--text-muted,#64748b);margin:4px 0 0}

/* ===== Service pages (/services/) =====================================
   The opening paragraph is the extractable answer, so it is set apart from
   the body copy. The rest reuses existing article styles. */
.lead-answer {
  font-size: 19px;
  line-height: 1.75;
  color: var(--text-dark);
  background: var(--secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 20px 22px;
  margin: 8px 0 32px;
}
.service-list { margin: 0 0 28px; }
.service-list dt { margin-top: 16px; color: var(--text-dark); }
.service-list dd { margin: 4px 0 0; padding-inline-start: 0; color: var(--text-muted); }
.service-index { list-style: none; padding: 0; margin: 0 0 28px; }
.service-index li {
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 14px 18px;
  margin-bottom: 12px;
  background: var(--card-bg);
  color: var(--text-muted);
}
.service-index a { color: var(--primary); text-decoration: none; }
.service-index a:hover { text-decoration: underline; }
/* Swapped in by the Web3Forms handler in main.js once a lead is accepted. */
.form-thanks {
  padding: 18px;
  border-radius: var(--radius-card);
  background: rgba(22, 163, 74, 0.1);
  color: var(--success);
  font-weight: 600;
  text-align: center;
}
@media (max-width: 640px) {
  .lead-answer { font-size: 17px; padding: 16px 18px; }
}

/* ===== Lead qualification fields =====================================
   Ownership, property type and area — the answers that decide whether a
   lead is worth anything to a buyer. */
.lead-field { display: block; margin-bottom: 12px; text-align: start; }
.lead-field > span {
  display: block;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.lead-select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-btn);
  background: var(--card-bg);
  color: var(--text-dark);
  font: inherit;
  font-size: 16px; /* < 16px makes iOS Safari zoom on focus */
}
.lead-select:focus {
  outline: 2px solid var(--primary);
  outline-offset: 1px;
}

/* Provenance line under a figure — small, muted, but not hidden. If a number
   is on the page, the reader should be able to see where it came from. */
.source-note {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding-top: 12px;
  margin-top: 20px;
}
.source-note a { color: var(--primary); }

/* WhatsApp-only qualifier. Muted, but never hidden — a number that looks like
   a phone line and silently isn't costs more trust than it buys. */
.wa-note {
  display: inline-block;
  font-size: 13px;
  color: var(--text-muted);
  white-space: nowrap;
}

/* ===========================================================
   Comparison page — article layout tweaks
   The page opens with .comp-hero, so the article below it must not
   re-add the 110px offset that a header-adjacent article needs.
   =========================================================== */
.article-main--flush { padding-top: 36px; }
.comp-hero .breadcrumb { margin-bottom: 14px; }

/* Jumping from a table of contents must not park the heading behind the
   fixed header. .guide-content already did this; .article-content did not,
   which broke every in-page anchor across the article system. */
.article-content h2, .article-content h3, .article-content details { scroll-margin-top: 100px; }

/* Red-flag list: same shape as .check-list, opposite meaning. */
.article-content ul.flag-list { list-style: none; padding-inline-start: 4px; }
.article-content ul.flag-list li {
  padding-inline-start: 34px; position: relative;
  background: #FFF7ED; border: 1px solid rgba(194, 65, 12, 0.28);
  border-radius: 10px; padding-top: 12px; padding-bottom: 12px;
  padding-inline-end: 16px; margin-bottom: 10px;
}
.article-content ul.flag-list li::before {
  content: "\1F6A9"; position: absolute; inset-inline-start: 10px; top: 12px;
  font-size: 17px; line-height: 1.8;
}

/* Glossary <dl> inside the reading column */
.article-content .service-list dt { font-size: 18px; font-weight: 700; margin-top: 22px; }
.article-content .service-list dd { font-size: 17px; line-height: 1.8; color: #374151; margin-top: 6px; }

@media (max-width: 768px) {
  .article-main--flush { padding-top: 22px; }
  .comp-hero { padding-bottom: 26px; }
}
