/* =========================================================
   Renewable Partners — corporate website styles
   ========================================================= */

:root {
  --white: #ffffff;
  --navy: #1c2b3a;
  --green: #4c8874;
  --green-light: #7aaf9c;
  --gold: #c8a96e;
  --cream: #f5f3ef;
  --stone: #e8e6e1;
  --grey: #8a8f99;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --font-sans: 'Plus Jakarta Sans', -apple-system, system-ui, sans-serif;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --shadow-sm: 0 1px 2px rgba(28,43,58,0.04), 0 2px 8px rgba(28,43,58,0.04);
  --shadow-md: 0 4px 14px rgba(28,43,58,0.06), 0 12px 40px rgba(28,43,58,0.06);

  --container: 1240px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--navy);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.55;
}

img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

/* Typography */
h1, h2, h3, h4 { font-weight: 700; letter-spacing: -0.02em; line-height: 1.08; margin: 0; color: var(--navy); }
h1 { font-size: clamp(48px, 6.4vw, 92px); letter-spacing: -0.03em; }
h2 { font-size: clamp(32px, 3.8vw, 52px); letter-spacing: -0.025em; }
h3 { font-size: clamp(22px, 2vw, 28px); }
h4 { font-size: 17px; letter-spacing: -0.01em; }

.eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--navy);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before {
  content: ''; display: block; width: 24px; height: 2px; background: var(--gold);
}
.eyebrow.green::before { background: var(--green); }
.eyebrow.on-dark { color: #fff; }
.eyebrow.on-dark::before { background: var(--green-light); }

.serif { font-family: inherit; font-weight: inherit; letter-spacing: inherit; font-style: normal; }

/* Container */
.container { max-width: var(--container); margin: 0 auto; padding: 0 28px; }

/* ========== NAV ========== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.86);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid rgba(28,43,58,0.06);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px; gap: 40px;
}
.logo { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 16px; letter-spacing: -0.005em; }
.logo-mark {
  width: 36px; height: 36px; border-radius: 50%;
  background: url('/images/logo.png') center/cover no-repeat;
  flex-shrink: 0;
}
.footer .logo-mark { background-color: #fff; }
.nav-links { display: flex; gap: 32px; font-size: 14.5px; font-weight: 500; }
.nav-links a { color: var(--navy); opacity: 0.82; transition: opacity .15s; }
.nav-links a:hover { opacity: 1; }
.nav-actions { display: flex; align-items: center; gap: 12px; }

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 14px 22px 14px 24px; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer;
  font-size: 14px; font-weight: 600; letter-spacing: -0.005em;
  transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn .dot {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--navy); color: #fff;
  display: grid; place-items: center; margin-right: -10px;
  transition: background .2s;
}
.btn .dot svg { width: 14px; height: 14px; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary .dot { background: var(--green); }
.btn-primary:hover { background: #0f1e2c; }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline .dot { background: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-ghost { background: var(--white); color: var(--navy); border-color: rgba(28,43,58,0.14); }
.btn-ghost .dot { background: var(--navy); }
.btn-ghost:hover { border-color: var(--navy); }
.btn-green { background: var(--green); color: #fff; }
.btn-green .dot { background: var(--navy); }
.btn-green:hover { background: #3f7362; }
.btn-sm { padding: 10px 16px; font-size: 13px; }
.btn-sm .dot { width: 24px; height: 24px; margin-right: -6px; }

/* ========== HERO ========== */
.hero {
  position: relative; overflow: hidden;
  padding: 72px 0 96px;
  background: var(--cream);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 64px; align-items: end;
}
.hero h1 { max-width: 14ch; }
.hero h1 .dot-accent { color: var(--green); }

/* Global dot-accent — green period for any heading that opts in */
.dot-accent { color: var(--green); }
.hero .hero-sub {
  max-width: 46ch; margin-top: 28px; font-size: 18px; color: var(--navy); opacity: 0.75;
  line-height: 1.55;
}
.hero-ctas { display: flex; gap: 14px; margin-top: 36px; flex-wrap: wrap; }

.hero-meta {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  margin-top: 56px; padding-top: 32px; border-top: 1px solid rgba(28,43,58,0.1);
}
.hero-meta .stat-n {
  font-family: var(--font-sans); font-weight: 700; font-size: 34px; letter-spacing: -0.025em; line-height: 1;
}
.hero-meta .stat-l { margin-top: 8px; font-size: 13px; color: var(--navy); opacity: 0.7; }

/* Hero visual: tall photo of Amsterdam canal houses + overlay stat card */
.hero-visual {
  position: relative; aspect-ratio: 1/1.18;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--stone);
}
.hv-photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
}
.hero-visual::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(28,43,58,0) 40%, rgba(28,43,58,0.55) 100%);
  pointer-events: none;
}
.hv-overlay {
  position: absolute; left: 22px; right: 22px; bottom: 22px;
  display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: end;
  z-index: 2;
}
.hv-card {
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-radius: 18px; padding: 18px 20px;
  border: 1px solid rgba(255,255,255,0.5);
  box-shadow: 0 12px 40px rgba(28,43,58,0.18);
}
.hv-card .hv-eyebrow { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--green); font-weight: 700; }
.hv-card .hv-big { font-size: clamp(26px, 3vw, 38px); font-weight: 700; letter-spacing: -0.025em; line-height: 1; margin-top: 6px; }
.hv-card .hv-sub { font-size: 12.5px; opacity: 0.72; margin-top: 6px; max-width: 22ch; line-height: 1.4; }
.hv-circle {
  width: 112px; height: 112px; border-radius: 50%;
  background: var(--gold); color: var(--navy);
  display: grid; place-items: center; text-align: center;
  padding: 0 14px; line-height: 1.1;
  font-weight: 700;
  transform: rotate(-6deg);
  box-shadow: 0 12px 32px rgba(28,43,58,0.3);
}
.hv-circle b { display: block; font-size: 22px; letter-spacing: -0.02em; }
.hv-circle span { font-size: 10px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.78; margin-top: 3px; display: block; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; background: #fff; border: 1px solid var(--stone);
  border-radius: 999px;
}
.badge-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }

/* ========== SECTION ========== */
section { padding: 104px 0; }
section.tight { padding: 72px 0; }
.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head h2 { margin-top: 16px; }
.section-head p.lead { margin-top: 20px; font-size: 18px; color: var(--navy); opacity: 0.72; max-width: 58ch; }

.section-cream { background: var(--cream); }
.section-stone { background: var(--stone); }
.section-navy { background: var(--navy); color: #fff; }
.section-navy h1, .section-navy h2, .section-navy h3, .section-navy h4 { color: #fff; }
.section-navy .section-head p.lead { color: #fff; opacity: 0.78; }

/* ========== SERVICE CARDS ========== */
.service-tabs {
  display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px;
}
.service-tab {
  padding: 10px 18px; border-radius: 999px;
  border: 1px solid rgba(28,43,58,0.16);
  background: transparent; color: var(--navy);
  font-size: 13px; font-weight: 600; cursor: pointer;
  transition: all .18s;
}
.service-tab.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.service-tab:hover:not(.active) { border-color: var(--navy); }

.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
.svc-card {
  background: var(--white);
  border: 1px solid var(--stone);
  border-radius: var(--radius-lg);
  padding: 28px 28px 26px;
  display: flex; flex-direction: column; gap: 16px;
  transition: transform .2s, border-color .2s, box-shadow .2s;
  min-height: 280px;
}
.svc-card:hover { transform: translateY(-3px); border-color: var(--navy); box-shadow: var(--shadow-md); }
.svc-card .tag {
  font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--green); display: inline-flex; align-items: center; gap: 8px; margin-bottom: 2px;
}
.svc-card .tag::before { content: ''; width: 14px; height: 2px; background: var(--green); }
.svc-card h3 { font-size: 22px; line-height: 1.15; }
.svc-card p { font-size: 14.5px; color: var(--navy); opacity: 0.72; margin: 0; line-height: 1.5; }
.svc-card .foot {
  margin-top: auto; display: flex; align-items: center; justify-content: space-between;
  padding-top: 18px; border-top: 1px dashed rgba(28,43,58,0.14);
}
.svc-card .price { font-size: 16px; font-weight: 700; letter-spacing: -0.02em; }
.svc-card .arrow {
  width: 36px; height: 36px; border-radius: 50%; background: var(--cream);
  display: grid; place-items: center; transition: background .2s, color .2s;
}
.svc-card:hover .arrow { background: var(--navy); color: #fff; }
.svc-card.feature { background: var(--navy); color: #fff; }
.svc-card.feature h3, .svc-card.feature p { color: #fff; }
.svc-card.feature p { opacity: 0.8; }
.svc-card.feature .tag { color: var(--gold); }
.svc-card.feature .tag::before { background: var(--gold); }
.svc-card.feature .arrow { background: rgba(255,255,255,0.1); color: #fff; }
.svc-card.feature .foot { border-top-color: rgba(255,255,255,0.2); }

/* ========== CIRCLE STATS ========== */
.split-grid {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 80px; align-items: center;
}
.stats-visual { position: relative; aspect-ratio: 1/0.92; }
.stat-circle {
  position: absolute; border-radius: 50%;
  display: grid; place-items: center; text-align: center;
}
/* decorative ghost ring — no text, sits behind */
.stat-1 {
  inset: 2% 6% auto auto; width: 42%; aspect-ratio: 1;
  background: var(--green-light); opacity: 0.35;
}
/* primary — top right, dominant */
.stat-2 {
  inset: 0 0 auto auto; width: 62%; aspect-ratio: 1;
  background: var(--green); color: #fff;
  z-index: 3;
}
/* outline — bottom left */
.stat-3 {
  inset: auto auto 0 0; width: 50%; aspect-ratio: 1;
  border: 1.5px solid var(--navy); background: var(--cream);
  z-index: 2;
}
/* gold — bottom right, smaller, nestled between 2 and 3 */
.stat-4 {
  inset: auto 6% 4% auto; width: 34%; aspect-ratio: 1;
  background: var(--gold); color: var(--navy);
  z-index: 4;
}
.stat-big { font-size: clamp(22px, 2.8vw, 40px); font-weight: 700; letter-spacing: -0.025em; line-height: 1; }
.stat-lbl { font-size: 12px; margin-top: 8px; padding: 0 14px; opacity: 0.88; line-height: 1.35; }
.stat-2 .stat-big { font-size: clamp(30px, 3.6vw, 48px); }
.stat-4 .stat-big { font-size: clamp(18px, 2.2vw, 28px); }
.stat-4 .stat-lbl { font-size: 10.5px; padding: 0 10px; }

/* ========== KPI STRIP ========== */
.kpi-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  border-top: 1px solid rgba(255,255,255,0.12);
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.kpi {
  padding: 36px 28px;
  border-right: 1px solid rgba(255,255,255,0.12);
}
.kpi:last-child { border-right: none; }
.kpi .k-n { font-size: 44px; font-weight: 700; letter-spacing: -0.025em; line-height: 1; }
.kpi .k-l { margin-top: 10px; font-size: 13px; opacity: 0.75; max-width: 22ch; }

/* ========== PRICING ========== */
.pricing-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
.price-card {
  background: var(--white);
  border: 1px solid var(--stone);
  border-radius: var(--radius-lg);
  padding: 32px 30px;
  display: flex; flex-direction: column; gap: 16px;
  position: relative;
}
.price-card.feature { background: var(--navy); color: #fff; border-color: var(--navy); }
.price-card.feature h3,
.price-card.feature h2,
.price-card.feature h4 { color: #fff; }
.price-card.feature .price-includes li { color: rgba(255,255,255,0.85); }
.price-card .ribbon {
  position: absolute; top: -12px; left: 28px;
  padding: 6px 14px; font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  background: var(--gold); color: var(--navy); border-radius: 999px;
}
.price-card h3 { font-size: 20px; }
.price-tag { display: flex; align-items: baseline; gap: 6px; }
.price-tag .p-num { font-size: 44px; font-weight: 700; letter-spacing: -0.025em; line-height: 1; }
.price-tag .p-suf { font-size: 13px; opacity: 0.65; }
.price-tiers { font-size: 13px; display: flex; gap: 16px; opacity: 0.75; padding-top: 4px; border-top: 1px solid rgba(28,43,58,0.08); padding-top: 16px; }
.price-card.feature .price-tiers { opacity: 0.85; border-top-color: rgba(255,255,255,0.12); }
.price-tiers b { font-weight: 700; margin-right: 4px; }
.price-includes { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; font-size: 14px; }
.price-includes li { display: flex; align-items: flex-start; gap: 10px; opacity: 0.85; }
.price-includes li::before {
  content: ''; flex: 0 0 auto; width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--green);
  margin-top: 3px; background:
    radial-gradient(circle, var(--green) 30%, transparent 32%);
}
.price-card.feature .price-includes li::before { border-color: var(--green-light); background: radial-gradient(circle, var(--green-light) 30%, transparent 32%); }

/* ========== CASES ========== */
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.case-card {
  background: #fff; border: 1px solid var(--stone); border-radius: var(--radius-lg);
  padding: 0; overflow: hidden; display: flex; flex-direction: column;
}
.case-img {
  aspect-ratio: 4/3; position: relative; overflow: hidden;
  background: var(--navy);
}
.case-img img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
}
.case-img .case-tag {
  position: absolute; left: 16px; bottom: 16px; z-index: 2;
  padding: 7px 12px; border-radius: 999px;
  background: rgba(255,255,255,0.92); color: var(--navy);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em;
}
.case-img::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(28,43,58,0) 55%, rgba(28,43,58,0.5) 100%);
  pointer-events: none;
}
.case-body { padding: 24px 26px 26px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.case-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px;
  background: var(--cream); color: var(--navy);
}
.chip.green { background: var(--green); color: #fff; }
.case-body h4 { font-size: 19px; line-height: 1.2; }
.case-body p { font-size: 14px; color: var(--navy); opacity: 0.72; margin: 0; }
.case-quote {
  margin-top: auto; padding-top: 18px; border-top: 1px dashed rgba(28,43,58,0.14);
  font-size: 15px; color: var(--navy); opacity: 0.82;
  line-height: 1.55;
}
.case-result {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 14px 16px; background: var(--cream);
  border-radius: 10px; font-size: 12.5px;
}
.case-result b { display: block; font-size: 17px; letter-spacing: -0.01em; }

/* ========== SUBSIDY TABLE ========== */
.subsidy-wrap { background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--stone); overflow: hidden; }
.subsidy-row {
  display: grid; grid-template-columns: 200px 1.4fr 1fr 160px 160px;
  gap: 24px; padding: 26px 32px;
  border-top: 1px solid var(--stone);
  align-items: center;
}
.subsidy-row:first-child { border-top: none; background: var(--cream); font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--navy); opacity: 0.7; padding: 16px 32px; }
a.subsidy-row-link {
  text-decoration: none; color: inherit; position: relative;
  transition: background .18s ease;
}
a.subsidy-row-link::after {
  content: ''; position: absolute; right: 26px; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px; border-radius: 50%; background: var(--cream);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%231c2b3a' stroke-width='2.2'><path d='M5 12h14M13 5l7 7-7 7'/></svg>");
  background-repeat: no-repeat; background-position: center;
  opacity: 0; transition: opacity .18s ease, transform .18s ease;
}
a.subsidy-row-link:hover { background: var(--cream); }
a.subsidy-row-link:hover::after { opacity: 1; transform: translateY(-50%) translateX(4px); }
.subsidy-row .sub-name { font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
.subsidy-row .sub-name span { display: block; font-weight: 500; font-size: 12px; opacity: 0.65; margin-top: 4px; letter-spacing: 0; text-transform: none; }
.sub-status {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.04em;
}
.sub-status::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.sub-status.closed::before { background: var(--gold); }
.sub-max { font-size: 15px; font-weight: 700; }
.sub-amt { font-weight: 700; font-size: 16px; letter-spacing: -0.01em; }
.sub-amt span { display: block; font-weight: 500; font-size: 12px; opacity: 0.65; margin-top: 4px; }

/* ========== DOWNLOAD / DUAL BLOCK ========== */
.dual-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 24px; align-items: stretch; }
.download-card {
  background: var(--green);
  color: #fff;
  border-radius: var(--radius-xl);
  padding: 56px 56px 52px;
}
.download-card h2 { color: #fff; max-width: 16ch; }
.download-card p { color: rgba(255,255,255,0.82); max-width: 44ch; font-size: 15px; margin: 20px 0 28px; }
.form { display: grid; gap: 12px; margin-top: 8px; }
.form input[type="text"], .form input[type="email"], .form input[type="tel"], .form input[type="number"], .form input:not([type]) {
  width: 100%; padding: 16px 18px; border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.25); background: rgba(255,255,255,0.08); color: #fff;
  font-family: inherit; font-size: 14.5px; outline: none;
  transition: border-color .15s, background .15s;
  -webkit-appearance: none; appearance: none;
}
.form input:-webkit-autofill,
.form input:-webkit-autofill:hover,
.form input:-webkit-autofill:focus {
  -webkit-text-fill-color: #fff;
  -webkit-box-shadow: 0 0 0 1000px rgba(30,40,55,0.95) inset;
  caret-color: #fff;
  transition: background-color 5000s ease-in-out 0s;
}
.form input::placeholder { color: rgba(255,255,255,0.65); }
.form input:focus { border-color: #fff; background: rgba(255,255,255,0.14); }
.form-check { display: flex; gap: 10px; align-items: center; font-size: 13px; color: rgba(255,255,255,0.8); padding-top: 6px; }
.form-check input { accent-color: var(--gold); }
.form .btn { align-self: start; margin-top: 6px; background: var(--navy); border-color: var(--navy); color: #fff; }
.form .btn .dot { background: var(--gold); color: var(--navy); }

.right-aside { padding: 16px 8px; align-self: center; }
.right-aside h2 { margin-top: 14px; }
.right-aside p { margin: 20px 0 28px; color: var(--navy); opacity: 0.72; max-width: 40ch; font-size: 15.5px; }

/* ========== NEWS ========== */
.news-wrap {
  background: var(--cream);
  border-radius: var(--radius-xl);
  padding: 80px 56px 72px;
  text-align: center;
}
.news-wrap h2 { text-align: center; max-width: 16ch; margin: 12px auto 12px; }
.news-wrap > p { opacity: 0.75; margin-bottom: 48px; }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; text-align: left; }
.news-card {
  background: #fff; border-radius: var(--radius-lg); padding: 0;
  overflow: hidden; display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm);
}
.news-img { aspect-ratio: 16/10; display: grid; place-items: center; color: rgba(255,255,255,0.55); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; font-family: var(--font-mono); }
.news-img.n1 { background:
  linear-gradient(135deg, var(--navy), #2a4052);
  position: relative;
}
.news-img.n2 { background: var(--green); position: relative; }
.news-img.n3 { background: var(--gold); position: relative; color: rgba(28,43,58,0.5); }
.news-img svg { width: 70%; height: 70%; }
.news-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.news-meta { display: flex; align-items: center; gap: 10px; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--navy); opacity: 0.6; }
.news-body h4 { font-size: 18px; line-height: 1.25; }
.news-body p { font-size: 14px; opacity: 0.72; margin: 0; }
.news-body .arrow-sm {
  margin-top: auto; width: 34px; height: 34px; border-radius: 50%;
  background: var(--gold); color: var(--navy); display: grid; place-items: center;
  align-self: flex-end;
}

/* ========== AUDIENCE TILES ========== */
.aud-strip {
  background: var(--navy); color: #fff;
  padding: 64px 0; position: relative;
}
.aud-head {
  display: flex; justify-content: space-between; align-items: end;
  margin-bottom: 36px; gap: 32px;
}
.aud-head h2 { color: #fff; max-width: 14ch; }
.aud-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.aud-tile {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 18px;
  padding: 24px 26px;
  display: flex; flex-direction: column; justify-content: space-between;
  min-height: 170px; cursor: pointer; transition: all .2s;
}
.aud-tile:hover { background: rgba(255,255,255,0.1); border-color: var(--green-light); transform: translateY(-3px); }
.aud-tile .a-top { display: flex; justify-content: space-between; align-items: start; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.7; }
.aud-tile h4 { color: #fff; font-size: 22px; margin-top: 36px; }
.aud-tile .a-arrow {
  width: 32px; height: 32px; border-radius: 50%; background: var(--green); display: grid; place-items: center;
  transition: background .2s;
}
.aud-tile:hover .a-arrow { background: var(--gold); color: var(--navy); }

/* ========== COMPARE ========== */
.compare {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--stone);
}
.compare-col { padding: 44px 40px; }
.compare-col.us { background: var(--navy); color: #fff; }
.compare-col.them { background: #fff; }
.compare-col h4 { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 8px; }
.compare-col.us h4 { color: var(--green-light); }
.compare-col.them h4 { color: var(--grey); }
.compare-col .tagline { font-size: 20px; font-weight: 600; line-height: 1.3; margin-bottom: 28px; color: var(--navy); }
.compare-col.them .tagline { color: var(--grey); }
.compare-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 16px; font-size: 14.5px; }
.compare-list li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; }
.compare-list .ic {
  width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700; font-size: 12px; margin-top: 2px;
}
.compare-col.us .ic { background: var(--green); color: #fff; }
.compare-col.them .ic { background: var(--stone); color: var(--grey); }

/* ========== FAQ ========== */
.faq { border-top: 1px solid var(--stone); }
.faq details { border-bottom: 1px solid var(--stone); padding: 22px 0; }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  font-weight: 600; font-size: 18.5px; letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; width: 34px; height: 34px; border-radius: 50%; background: var(--cream);
  display: grid; place-items: center; font-size: 20px; color: var(--navy); font-weight: 400;
  transition: transform .2s, background .2s;
}
.faq details[open] summary::after { content: '–'; background: var(--green); color: #fff; }
.faq details p { margin: 14px 0 6px; color: var(--navy); opacity: 0.74; font-size: 15px; max-width: 80ch; }

/* ========== FINAL CTA ========== */
.final-cta {
  background: var(--navy); color: #fff;
  padding: 96px 0;
  position: relative; overflow: hidden;
}
.final-cta .cta-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.28;
  z-index: 0;
}
.final-cta::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 85% 10%, rgba(76,136,116,0.55) 0%, transparent 55%),
    radial-gradient(circle at 10% 90%, rgba(200,169,110,0.25) 0%, transparent 55%),
    linear-gradient(180deg, rgba(28,43,58,0.78), rgba(28,43,58,0.92));
  z-index: 1;
}
.final-cta::after { display: none; }
.final-cta .container { position: relative; z-index: 2; }
.final-cta h2 { color: #fff; max-width: 18ch; }
.final-cta p { color: rgba(255,255,255,0.78); max-width: 52ch; margin: 20px 0 32px; font-size: 18px; }

/* ========== FOOTER ========== */
.footer { background: var(--navy); color: #fff; padding: 80px 0 36px; }
.footer-top {
  display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr 1fr; gap: 40px;
  padding-bottom: 52px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-top h5 { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--green-light); font-weight: 700; margin-bottom: 20px; }
.footer-top a, .footer-top li { color: rgba(255,255,255,0.78); font-size: 14px; }
.footer-top a:hover { color: #fff; }
.footer-top ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.footer-brand h3 { color: #fff; font-size: 28px; letter-spacing: -0.025em; }
.footer-brand p { color: rgba(255,255,255,0.72); margin: 16px 0 24px; max-width: 32ch; font-size: 14px; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding-top: 28px; font-size: 12.5px; color: rgba(255,255,255,0.55); flex-wrap: wrap;
}
.footer-bottom a { color: rgba(255,255,255,0.55); }
.footer-bottom a:hover { color: #fff; }
.footer-bottom .dots { display: flex; gap: 20px; }

/* ========== UTILS ========== */
.divider-dot { display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: 0.4; margin: 0 6px; vertical-align: middle; }

.mt-0 { margin-top: 0 !important; }

/* ========== TEAM / PHOTO UTILITIES ========== */
.team-strip {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px;
  margin-top: 56px;
}
.team-strip .ts-photo {
  aspect-ratio: 3/4; border-radius: var(--radius-md); overflow: hidden;
  background: var(--stone); position: relative;
}
.team-strip .ts-photo img { width: 100%; height: 100%; object-fit: cover; display:block; }
.team-strip .ts-photo.wide { grid-column: span 2; aspect-ratio: 3/4; }

.founders-grid {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 60px; align-items: center;
}
.founders-photo {
  border-radius: var(--radius-xl); overflow: hidden;
  aspect-ratio: 4/3; background: var(--stone);
  box-shadow: var(--shadow-md);
}
.founders-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

.process-photo {
  border-radius: var(--radius-lg); overflow: hidden;
  aspect-ratio: 16/9; background: var(--stone);
  margin-bottom: 36px;
}
.process-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Kennisbank thumbnail photo tile */
.kb-thumb {
  width: 64px; height: 64px; border-radius: 10px;
  overflow: hidden; flex-shrink: 0;
  background: var(--stone);
}
.kb-thumb img { width:100%; height:100%; object-fit: cover; display:block; }

/* Replace the stats-visual circles with a single hero photo + floating stat chips */
.about-photo {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--stone);
}
.about-photo img { width:100%; height:100%; object-fit:cover; display:block; }
.about-chip {
  position: absolute; z-index: 2;
  background: #fff; border: 1px solid var(--stone);
  border-radius: 16px; padding: 14px 18px;
  box-shadow: 0 10px 28px rgba(28,43,58,0.14);
  min-width: 160px;
}
.about-chip .ac-n { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; line-height: 1; }
.about-chip .ac-l { font-size: 11.5px; opacity: 0.7; margin-top: 6px; line-height: 1.3; }
.about-chip.a1 { top: 20px; left: -22px; }
.about-chip.a2 { bottom: 80px; right: -24px; background: var(--gold); border-color: var(--gold); }
.about-chip.a2 .ac-l { opacity: 0.78; color: var(--navy); }
.about-chip.a3 { bottom: 22px; left: 22px; background: var(--green); color: #fff; border-color: var(--green); }
.about-chip.a3 .ac-l { opacity: 0.88; color: rgba(255,255,255,0.88); }

@media (max-width: 980px) {
  .team-strip { grid-template-columns: repeat(3, 1fr); }
  .founders-grid { grid-template-columns: 1fr; gap: 36px; }
  .about-chip.a1 { left: 14px; }
  .about-chip.a2 { right: 14px; }
}

/* ========== HERO — VIDEO BACKGROUND VARIANT ========== */
.hero--video {
  position: relative;
  min-height: 88vh;
  padding: 148px 0 96px;
  overflow: hidden;
  background: #0f1823;
  color: #fff;
  isolation: isolate;
}
.hero-video-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
  filter: saturate(1.05) contrast(1.03);
}
.hero--video::before {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(15,24,35,0.55) 0%, rgba(15,24,35,0.25) 42%, rgba(15,24,35,0.85) 100%),
    linear-gradient(90deg, rgba(15,24,35,0.78) 0%, rgba(15,24,35,0.45) 55%, rgba(15,24,35,0.05) 100%);
  z-index: 1;
  pointer-events: none;
}
.hero--video::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(120% 80% at 20% 30%, rgba(15,24,35,0) 35%, rgba(15,24,35,0.35) 100%);
  z-index: 1;
  pointer-events: none;
  mix-blend-mode: multiply;
}
.hero--video .container { position: relative; z-index: 2; }
.hero--video .hero-grid {
  display: block;
  gap: 0;
}
.hero--video .hero-content { max-width: 640px; }
.hero--video .eyebrow,
.hero--video .eyebrow.green {
  color: var(--gold);
  background: rgba(15,24,35,0.35);
  border-color: rgba(255,255,255,0.18);
}
.hero--video h1 { color: #fff; max-width: 18ch; }
.hero--video h1 .dot-accent { color: var(--green); }
.hero--video .hero-sub {
  color: rgba(255,255,255,0.9);
  max-width: 52ch;
  opacity: 1;
}
.hero--video .btn-outline {
  color: #fff; border-color: rgba(255,255,255,0.45);
  background: rgba(15,24,35,0.35); backdrop-filter: blur(8px);
}
.hero--video .btn-outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.7);
}
.hero--video .hero-meta {
  border-top-color: rgba(255,255,255,0.2);
  max-width: 640px;
}
.hero--video .hero-meta .stat-n { color: #fff; }
.hero--video .hero-meta .stat-l { color: rgba(255,255,255,0.78); opacity: 1; }
.hero-float {
  position: absolute; right: max(24px, 4vw); bottom: 48px;
  z-index: 3; max-width: 300px;
  display: flex; flex-direction: column; gap: 14px;
  align-items: flex-end;
}
.hero-float-loc {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px;
  background: rgba(15,24,35,0.55);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 999px;
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255,255,255,0.9); font-weight: 500;
}
.hero-float-loc .pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(122,166,120,0.8);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(122,166,120,0.7); }
  70% { box-shadow: 0 0 0 12px rgba(122,166,120,0); }
  100% { box-shadow: 0 0 0 0 rgba(122,166,120,0); }
}
.hero-float-card {
  background: rgba(255,255,255,0.95); color: var(--navy);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-radius: 18px; padding: 20px 22px;
  border: 1px solid rgba(255,255,255,0.5);
  box-shadow: 0 20px 48px rgba(10,16,24,0.45);
  text-align: left; min-width: 260px;
}
.hero-float-card .hv-eyebrow { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--green); font-weight: 700; }
.hero-float-card .hv-big { font-size: clamp(28px, 3vw, 38px); font-weight: 700; letter-spacing: -0.025em; line-height: 1; margin-top: 6px; color: var(--navy); }
.hero-float-card .hv-sub { font-size: 12.5px; opacity: 0.72; margin-top: 8px; line-height: 1.45; }
@media (max-width: 980px) {
  .hero--video { min-height: auto; padding: 124px 0 72px; }
  .hero-float {
    position: static; margin-top: 40px; max-width: none;
    align-items: stretch; flex-direction: row; flex-wrap: wrap;
  }
  .hero-float-card { min-width: 0; flex: 1; }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 980px) {
  .hero-grid, .split-grid, .dual-grid, .compare { grid-template-columns: 1fr; }
  .services-grid, .pricing-grid, .case-grid, .news-grid { grid-template-columns: 1fr; }
  .aud-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .kpi-strip { grid-template-columns: repeat(2, 1fr); }
  .kpi:nth-child(2) { border-right: none; }
  .subsidy-row { grid-template-columns: 1fr; gap: 8px; }
  .subsidy-row:first-child { display: none; }
  .nav-links { display: none; }
  section { padding: 64px 0; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-video-bg { display: none; }
  .hero--video { background: var(--navy); }
  .hero-float-loc .pulse { animation: none; }
}

/* ========== QA batch fixes ========== */

html { scroll-behavior: smooth; }

.svc-card.feature { color: #fff !important; }
.svc-card.feature .price { color: rgba(255,255,255,0.85); }
.svc-card.feature .foot .price { color: rgba(255,255,255,0.85); }

.compare-col.us .tagline { color: #fff; }
.compare-col.them h4 { color: rgba(28,43,58,0.65); }

.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* =========================================================
   MOBILE OPTIMIZATION
   All rules below are scoped to mobile viewports only.
   Desktop rendering (> 768px) is byte-identical to prior state.
   Exceptions: hamburger + nav panel classes default to display:none
   so they are invisible on desktop even when JS injects them.
   ========================================================= */

/* Hamburger + mobile panel — hidden by default on all viewports */
.nav-toggle,
.nav-panel,
.nav-backdrop { display: none; }

/* ---------- ≤ 768px: tablet / large phone ---------- */
@media (max-width: 768px) {
  /* Container + section rhythm */
  .container { padding: 0 20px; }
  section { padding: 56px 0; }
  section.tight { padding: 44px 0; }
  .section-head { margin-bottom: 36px; }
  .section-head p.lead { font-size: 16px; margin-top: 14px; }

  /* Override inline desktop grid styles on mobile.
     Many HTML files have inline grid-template-columns (needed for desktop variants
     like 5-col pricing). !important here beats inline styles; desktop untouched. */
  .hero-grid,
  .split-grid,
  .dual-grid,
  .compare,
  .founders-grid,
  .services-grid,
  .pricing-grid,
  .case-grid,
  .news-grid,
  .pship-cards {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 18px !important;
  }
  .case-card[style*="grid"] {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  /* Containers repurposed as 2-col grid via inline style (final-CTA blocks across
     many pages). Force stacking. */
  .container[style*="grid-template-columns"] {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 28px !important;
  }
  /* Defensive: prevent grid/flex children from forcing parent wider than viewport */
  .dual-grid > *,
  .split-grid > *,
  .hero-grid > *,
  .services-grid > *,
  .pricing-grid > *,
  .case-grid > *,
  .news-grid > *,
  .compare > * { min-width: 0; }
  /* Inner inline 2-col stat/kpi grids (gap:12px pattern) — 2 cols is tight on
     phones but fine on tablets; collapse at 480px. */

  /* Nav: only logo + hamburger visible. CTAs move into panel. */
  .nav-inner { gap: 12px; height: 64px; }
  .nav-links { display: none; }
  .nav-actions { display: none; }
  .logo { font-size: 15px; gap: 10px; }
  .logo-mark { width: 32px; height: 32px; }

  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; padding: 0;
    background: transparent;
    border: 1px solid rgba(28,43,58,0.16);
    border-radius: 12px; cursor: pointer;
    color: var(--navy);
  }
  .nav-toggle-bars {
    position: relative;
    width: 20px; height: 2px;
    background: currentColor;
    transition: background-color .18s ease;
  }
  .nav-toggle-bars::before,
  .nav-toggle-bars::after {
    content: ''; position: absolute; left: 0;
    width: 20px; height: 2px; background: currentColor;
    transition: transform .22s ease, top .22s ease;
  }
  .nav-toggle-bars::before { top: -6px; }
  .nav-toggle-bars::after  { top:  6px; }
  body.nav-open .nav-toggle-bars { background: transparent; }
  body.nav-open .nav-toggle-bars::before { top: 0; transform: rotate(45deg); }
  body.nav-open .nav-toggle-bars::after  { top: 0; transform: rotate(-45deg); }
  /* When panel is open, raise the nav (sticky z:50) above the panel (z:60)
     so the close button remains tappable. Logo sits beside it. */
  body.nav-open .nav { z-index: 61; background: transparent; border-bottom-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
  body.nav-open .logo { visibility: hidden; }

  /* Sliding panel + backdrop */
  .nav-backdrop {
    display: block;
    position: fixed; inset: 0;
    background: rgba(15,24,35,0.45);
    z-index: 55;
    opacity: 0; pointer-events: none;
    transition: opacity .25s ease;
  }
  body.nav-open .nav-backdrop { opacity: 1; pointer-events: auto; }

  .nav-panel {
    display: flex; flex-direction: column;
    position: fixed; top: 0; right: 0;
    width: min(86vw, 360px);
    height: 100vh; height: 100dvh;
    background: #fff;
    padding: 88px 24px 32px;
    box-shadow: -18px 0 48px rgba(28,43,58,0.18);
    transform: translateX(100%);
    transition: transform .28s ease;
    z-index: 60;
    overflow-y: auto;
  }
  body.nav-open .nav-panel { transform: translateX(0); }
  body.nav-open { overflow: hidden; }

  .nav-panel-links a {
    color: var(--navy);
    padding: 14px 4px;
    font-size: 17px; font-weight: 500;
    border-bottom: 1px solid var(--stone);
    min-height: 44px; display: flex; align-items: center;
    text-decoration: none;
  }
  .nav-panel-ctas {
    display: flex; flex-direction: column; gap: 10px; margin-top: 22px;
  }
  .nav-panel-ctas .btn { justify-content: center; width: 100%; }

  /* Hero */
  .hero { padding: 48px 0 64px; }
  .hero-grid { gap: 36px; }
  .hero h1 { max-width: 100%; }
  .hero-meta { gap: 14px; margin-top: 36px; padding-top: 22px; }
  .hero-meta .stat-n { font-size: 26px; }
  .hero-meta .stat-l { font-size: 12px; }
  .hero-visual { aspect-ratio: 4/5; }
  .hv-overlay { left: 16px; right: 16px; bottom: 16px; }
  .hv-card { padding: 14px 16px; }
  .hv-circle { width: 88px; height: 88px; }
  .hv-circle b { font-size: 18px; }

  /* Hero video variant */
  .hero--video { padding: 112px 0 64px; min-height: auto; }
  .hero--video .hero-sub { max-width: 100%; }
  .hero-float { display: none; }

  /* Section cards / paddings */
  .svc-card { padding: 22px 22px 20px; min-height: 0; }
  .price-card { padding: 26px 22px; }
  .case-body { padding: 20px 20px 22px; }
  .news-body { padding: 20px 20px 22px; }
  .news-wrap { padding: 48px 22px 40px; border-radius: var(--radius-lg); }
  .compare-col { padding: 30px 22px; }
  .download-card { padding: 36px 28px 32px; border-radius: var(--radius-lg); }
  .final-cta { padding: 72px 0; }

  /* KPI / audience strips */
  .kpi { padding: 28px 20px; }
  .kpi .k-n { font-size: 34px; }
  .aud-strip { padding: 48px 0; }
  .aud-head { flex-direction: column; align-items: flex-start; gap: 16px; margin-bottom: 28px; }
  .aud-tile { padding: 20px 22px; min-height: 140px; }
  .aud-tile h4 { font-size: 19px; margin-top: 22px; }

  /* Team strip — 980px already sets 3 cols; tighten gap */
  .team-strip { gap: 8px; margin-top: 36px; }

  /* Founders */
  .founders-grid { gap: 28px; }

  /* About photo overlay chips — move in-flow */
  .about-photo { aspect-ratio: 4/5; }
  .about-chip.a1,
  .about-chip.a2,
  .about-chip.a3 {
    position: static;
    display: inline-flex; flex-direction: column;
    margin: 10px 10px 0 0;
    min-width: 0;
  }

  /* Subsidy rows — already stacked at 980px; tighten */
  .subsidy-row { padding: 20px 22px; gap: 8px; }
  a.subsidy-row-link::after { display: none; }
  .subsidy-row .sub-name { font-size: 17px; }

  /* FAQ */
  .faq summary { font-size: 16.5px; gap: 14px; align-items: flex-start; }
  .faq summary::after { flex-shrink: 0; margin-top: 2px; }

  /* Footer */
  .footer { padding: 56px 0 28px; }
  .footer-top { gap: 32px 24px; padding-bottom: 36px; }
  .footer-brand h3 { font-size: 24px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 12px; }

  /* Partner / logo strips wrap cleanly */
  .logo-row { flex-wrap: wrap; gap: 18px; }

  /* Blog / subsidy article tables — allow horizontal scroll for wide data tables */
  .article-body table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
    white-space: nowrap;
  }
  .article-body pre,
  .article-body code { max-width: 100%; overflow-x: auto; }
}

/* Page-specific overrides for grids defined in inline <style> blocks.
   These pages use 900/780px as their only breakpoint — leaves phones cramped. */
@media (max-width: 480px) {
  /* over-ons.html */
  .ov-certs { grid-template-columns: minmax(0, 1fr) !important; }
  .ov-stats { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 16px !important; }
  .ov-timeline { gap: 16px !important; }
  /* subsidies subpages (dumava/isde/svoh/svve) */
  .sub-summary { grid-template-columns: minmax(0, 1fr) !important; }
  /* partnerships 2-col stats at small phone */
  .pship-stats { grid-template-columns: minmax(0, 1fr) !important; }
}

/* ---------- ≤ 480px: phone ---------- */
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  section { padding: 44px 0; }
  section.tight { padding: 36px 0; }

  /* Typography — tighten clamp minimums so nothing overflows at 320–480px */
  h1 { font-size: clamp(34px, 9vw, 48px); }
  h2 { font-size: clamp(26px, 6.8vw, 36px); }
  .section-head p.lead { font-size: 15.5px; }
  .hero .hero-sub { font-size: 16px; margin-top: 20px; max-width: 100%; }

  /* Hero */
  .hero { padding: 40px 0 52px; }
  .hero-ctas { gap: 10px; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
  .hero-meta .stat-n { font-size: 22px; }
  .hero-meta .stat-l { font-size: 11.5px; }
  .hero-visual { aspect-ratio: 3/4; border-radius: var(--radius-lg); }

  /* Hero video */
  .hero--video { padding: 96px 0 56px; }
  .hero-float-card { padding: 16px 18px; min-width: 0; }

  /* KPI strip → single column */
  .kpi-strip { grid-template-columns: 1fr; }
  .kpi { border-right: none !important; border-bottom: 1px solid rgba(255,255,255,0.12); }
  .kpi:last-child { border-bottom: none; }

  /* Audience tiles → single column */
  .aud-grid { grid-template-columns: 1fr; }
  .aud-tile { min-height: 0; padding: 18px 20px; }
  .aud-tile h4 { margin-top: 10px; font-size: 18px; }

  /* Team strip → 2 cols */
  .team-strip { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .team-strip .ts-photo.wide { grid-column: span 1; }

  /* Footer → single column */
  .footer-top { grid-template-columns: 1fr; gap: 28px; }

  /* Cards */
  .svc-card { padding: 20px 20px 18px; }
  .price-card { padding: 22px 20px; }
  .case-body, .news-body { padding: 18px 18px 20px; }
  .compare-col { padding: 26px 20px; }
  .download-card { padding: 28px 22px 26px; }
  .news-wrap { padding: 36px 18px 32px; }
  .final-cta { padding: 56px 0; }
  .final-cta p { font-size: 16px; margin: 16px 0 24px; }

  /* Touch targets — 44px min hit area + allow long-text wrap */
  .btn {
    padding: 12px 18px 12px 20px; min-height: 44px;
    white-space: normal; max-width: 100%;
    line-height: 1.25; text-align: left;
  }
  .btn-sm { padding: 10px 14px; min-height: 40px; }
  /* Buttons inside dark forms / final-CTA blocks look better centered */
  .download-card .btn, .final-cta .btn, .form .btn, .nav-panel .btn { text-align: center; }

  /* Form inputs: 16px font prevents iOS focus-zoom */
  .form input[type="text"],
  .form input[type="email"],
  .form input[type="tel"],
  .form input[type="number"],
  .form input:not([type]) {
    padding: 14px 16px; font-size: 16px;
  }

  /* FAQ compact */
  .faq summary { font-size: 15.5px; gap: 12px; }
  .faq details { padding: 18px 0; }

  /* Subsidy rows */
  .subsidy-row { padding: 16px 18px; }

  /* Misc */
  .news-meta { flex-wrap: wrap; gap: 6px 10px; }
  .price-tiers { flex-wrap: wrap; gap: 8px 14px; }
}

/* ---------- ≤ 360px: very narrow phones (safety) ---------- */
@media (max-width: 360px) {
  .container { padding: 0 14px; }
  h1 { font-size: clamp(30px, 9vw, 42px); }
  .btn { font-size: 13.5px; padding: 11px 16px; }
  .btn-sm { font-size: 12.5px; padding: 9px 12px; }
  .nav-toggle { width: 42px; height: 42px; }
}

/* ========== Formspree status messages ========== */
[data-fs-success], [data-fs-error] {
  display: none;
  margin: 0 0 18px;
  padding: 16px 20px;
  border-radius: 14px;
  font-size: 14.5px;
  line-height: 1.5;
  font-weight: 500;
}
[data-fs-success] {
  background: rgba(76, 136, 116, 0.18);
  border: 1px solid var(--green-light);
  color: #fff;
}
[data-fs-error] {
  background: rgba(220, 80, 80, 0.18);
  border: 1px solid #e88;
  color: #fff;
}
form.is-submitting [data-fs-submit-btn] { opacity: 0.6; cursor: wait; }
[data-fs-field][aria-invalid="true"] { border-color: #e88 !important; }
