/* Konark Renewables — site styles */

/* ---------- Tokens ---------- */
:root {
  --green: #3FAC0C;
  --yellow: #FFFE33;
  --blue: #045097;
  --light: #F5F5F5;
  --white: #FFFFFF;

  --blue-tint: rgb(4 80 151 / 0.10);
  --green-tint: rgb(63 172 12 / 0.15);
  --green-tint-soft: rgb(63 172 12 / 0.10);
  --yellow-tint: rgb(255 254 51 / 0.50);
  --yellow-tint-strong: rgb(255 254 51 / 0.60);

  --slate-200: #E2E8F0;
  --slate-300: #CBD5E1;
  --slate-400: #94A3B8;
  --slate-500: #64748B;
  --slate-600: #475569;
  --slate-700: #334155;

  --font-body: Calibri, Carlito, "Segoe UI", Arial, sans-serif;
  --font-display: var(--font-body); /* hero + menu font */

  --radius-sm: 0.75rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
  --radius-pill: 9999px;

  --shadow-subtle: 0 1px 2px rgb(0 0 0 / 0.05);
  --shadow-soft: 0 18px 50px rgb(4 80 151 / 0.10);
  --shadow-raised: 0 25px 50px -12px rgb(0 0 0 / 0.25);
  --ring: 0 0 0 1px rgb(4 80 151 / 0.10);
  --focus: 3px solid rgb(63 172 12 / 0.6);

  --ease-liquid: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--light);
  color: var(--slate-700);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
ul, ol { list-style: none; padding: 0; }
h1, h2, h3 { font-size: inherit; font-weight: inherit; text-wrap: balance; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: 80rem;
  margin-inline: auto;
  padding-inline: 1rem;
}
.container--narrow { max-width: 56rem; }

.section { padding-block: 4rem; }
.section--compact { padding-block: 3rem; }

@media (min-width: 640px) {
  .container { padding-inline: 1.5rem; }
  .section { padding-block: 5rem; }
  .section--compact { padding-block: 3.5rem; }
}
@media (min-width: 1024px) {
  .container { padding-inline: 2rem; }
  .section { padding-block: 6rem; }
  .section--compact { padding-block: 4rem; }
}

/* ---------- Type ---------- */
.section-head { max-width: 42rem; margin-inline: auto; text-align: center; }

.eyebrow {
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green);
}
.eyebrow--yellow { color: var(--yellow); }

.section-title {
  margin-top: 0.75rem;
  font-size: 1.875rem;
  line-height: 1.25;
  font-weight: 700;
  color: var(--blue);
}
.section-title--sm { font-size: 1.5rem; }
.section-title--light { color: var(--white); }

.section-lead {
  margin-top: 1rem;
  line-height: 1.75rem;
  color: var(--slate-600);
}
.section-lead--light { color: rgb(255 255 255 / 0.85); }

.footnote {
  max-width: 48rem;
  margin: 1.5rem auto 0;
  text-align: center;
  font-size: 0.875rem;
  line-height: 1.5rem;
  color: var(--slate-500);
}

.text-yellow { color: var(--yellow); }

/* Readable by screen readers, invisible on screen */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (min-width: 640px) {
  .section-title { font-size: 3rem; line-height: 1.1; }
  .section-title--md { font-size: 2.25rem; line-height: 1.15; }
  .section-title--sm { font-size: 1.875rem; line-height: 1.2; }
}

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 0;
  border-radius: var(--radius-pill);
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.35s var(--ease-liquid), filter 0.35s var(--ease-liquid), background-color 0.35s var(--ease-liquid);
}
.btn:focus-visible { outline: var(--focus); outline-offset: 2px; }

.btn--yellow { background: var(--yellow); color: var(--blue); box-shadow: var(--ring); }
.btn--yellow:hover { filter: brightness(0.95); transform: translateY(-2px); }

.btn--blue { background: var(--blue); color: var(--white); }
.btn--blue:hover { filter: brightness(1.1); }

.btn--ghost {
  border: 1px solid rgb(255 255 255 / 0.5);
  background: rgb(255 255 255 / 0.1);
  color: var(--white);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover { background: rgb(255 255 255 / 0.2); }

.btn--lg { padding: 1rem 1.75rem; font-size: 1.125rem; line-height: 1.75rem; }
.btn--md { padding: 0.875rem 1.75rem; font-size: 1.125rem; line-height: 1.75rem; }
.btn--sm { padding: 0.75rem 1.25rem; }
.btn--block {
  display: flex;
  width: 100%;
  border-radius: var(--radius-sm);
  padding: 0.875rem 1.25rem;
  font-size: 1.125rem;
  line-height: 1.75rem;
}
.btn--tall { padding-block: 1rem; }
.btn--shadow { box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1); }

.text-link {
  display: inline-flex;
  gap: 0.25rem;
  margin-top: 1.25rem;
  font-weight: 700;
  color: var(--blue);
  transition: color 0.2s;
}
.text-link:hover { color: var(--green); }
.text-link__arrow { color: var(--green); }

/* ---------- Icon tiles ---------- */
.icon-tile {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-sm);
  font-size: 1.25rem;
  line-height: 1.75rem;
  color: var(--blue);
}
.icon-tile--sm { width: 2.5rem; height: 2.5rem; font-size: 1.125rem; }
.icon-tile--lg { width: 3.5rem; height: 3.5rem; border-radius: var(--radius-md); font-size: 1.875rem; line-height: 2.25rem; }
.icon-tile--blue { background: var(--blue-tint); }
.icon-tile--green { background: var(--green-tint); }
.icon-tile--yellow { background: var(--yellow-tint); }
.icon-tile--solid { border-radius: var(--radius-md); background: var(--yellow); font-size: 1.5rem; }
.icon-tile--white { background: var(--white); box-shadow: var(--shadow-subtle); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--slate-200);
  background: rgb(245 245 245 / 0.95);
  backdrop-filter: blur(8px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.75rem;
}

.brand { display: flex; flex-shrink: 0; align-items: center; gap: 0.75rem; }
.brand__logo { width: auto; height: 3rem; }
.brand__text { line-height: 1.25; }
.brand__name {
  display: block;
  font-size: 1.125rem;
  line-height: 1.75rem;
  font-weight: 700;
  letter-spacing: 0.025em;
  text-transform: uppercase;
  color: var(--blue);
}
.brand__accent { color: var(--green); }
.brand__tagline {
  display: none;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--slate-500);
}

.nav__links {
  display: none;
  align-items: center;
  gap: 1.75rem;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--blue);
}
.nav__links a { transition: color 0.2s; }
.nav__links a:hover { color: var(--green); }

.nav__actions { display: flex; align-items: center; gap: 0.5rem; }
.nav__cta {
  display: none;
  padding: 0.625rem 1.25rem;
  font-family: var(--font-display);
  font-size: 17px;
  box-shadow: var(--shadow-subtle), var(--ring);
}

.menu-toggle {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--blue);
  cursor: pointer;
}
.menu-toggle:focus-visible { outline: var(--focus); outline-offset: 2px; }
.menu-toggle svg { width: 1.5rem; height: 1.5rem; }

.mobile-menu { border-top: 1px solid var(--slate-200); background: var(--light); }
.mobile-menu__inner {
  display: flex;
  flex-direction: column;
  padding-block: 0.75rem;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--blue);
}
.mobile-menu__inner a { border-radius: 0.5rem; padding: 0.75rem; }
.mobile-menu__inner a:hover { background: var(--white); }
.mobile-menu__inner .mobile-menu__cta {
  margin-top: 0.5rem;
  border-radius: var(--radius-pill);
  background: var(--yellow);
  padding: 0.875rem 1.25rem;
  text-align: center;
  box-shadow: var(--ring);
}
.mobile-menu__inner .mobile-menu__cta:hover { background: var(--yellow); filter: brightness(0.95); }

@media (min-width: 640px) {
  .brand__logo { height: 3.5rem; }
  .brand__name { font-size: 1.25rem; }
  .brand__tagline { display: block; }
  .nav__cta { display: inline-flex; }
  .mobile-menu__inner .mobile-menu__cta { display: none; }
}
@media (min-width: 1024px) {
  .nav__links { display: flex; }
  .menu-toggle, .mobile-menu { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: 75vh;
  min-height: 75svh; /* stable on mobile while the browser bar shows/hides */
  overflow: hidden;
  background-color: #032D58; /* shows while the photo loads */
  color: var(--white);
}
/* The photo sits on its own layer so it can fade in independently of the hero content. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(90deg, rgb(3 45 88 / 0.94) 0%, rgb(4 80 151 / 0.82) 50%, rgb(4 80 151 / 0.35) 100%),
    url("kushagra-dhall-z8fjl0aHkY8-unsplash.webp");
  background-position: center 70%;
  background-size: cover;
}

.hero__inner {
  display: grid;
  align-items: center;
  gap: 2.5rem;
  padding-block: 4rem;
}
.hero__content { max-width: 42rem; }
.hero__title {
  font-family: var(--font-display);
  font-size: 2.75rem;
  line-height: 1.05;
  font-weight: 700;
}
.hero__lead {
  max-width: 36rem;
  margin-top: 1.5rem;
  font-size: 1.125rem;
  line-height: 2rem;
  color: rgb(255 255 255 / 0.9);
}
.hero__actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 2rem;
}
.hero__aside { width: 100%; max-width: 28rem; }

.callout-card {
  border-radius: var(--radius-lg);
  background: var(--white);
  padding: 1.5rem;
  color: var(--slate-700);
  box-shadow: var(--shadow-raised);
}
.callout-card__title { font-size: 1.5rem; line-height: 1.25; font-weight: 700; color: var(--blue); }
.callout-card__text { margin-top: 1rem; font-size: 1rem; line-height: 1.75rem; color: var(--slate-600); }
.callout-card .btn { margin-top: 1.5rem; }
.callout-card__note {
  margin-top: 0.75rem;
  text-align: center;
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: var(--slate-500);
}

@media (min-width: 640px) {
  .hero__inner { padding-block: 5rem; }
  .hero__title { font-size: 3.75rem; line-height: 1.02; }
  .hero__lead { font-size: 1.25rem; }
  .hero__actions { flex-direction: row; }
  .callout-card { padding: 2rem; }
}
@media (min-width: 1024px) {
  .hero__inner {
    grid-template-columns: minmax(0, 1fr) 400px;
    gap: 4rem;
    padding-block: 6rem;
  }
  .hero__aside { justify-self: end; }
}
@media (min-width: 1280px) {
  .hero__title { font-size: 4.5rem; }
}

/* ---------- Brand marquee ---------- */
.marquee {
  --tile-width: 10rem;
  --tile-gap: 1rem;
  margin-top: 1.5rem;
  padding-block: 1.25rem;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}

/* Two identical groups: sliding by exactly one group (-50%) loops seamlessly. */
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee-rtl 40s linear infinite;
  will-change: transform;
}
/* With JS, a single animation-frame loop moves the track so it can steer with page scroll. */
.marquee--js .marquee__track { animation: none; }
.marquee__group { display: flex; flex-shrink: 0; }

.brand-tile {
  --logo-scale: 1;
  display: grid;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr); /* keep tall images inside the 4:3 box */
  flex: none;
  place-items: center;
  width: var(--tile-width);
  aspect-ratio: 4 / 3;
  margin-right: var(--tile-gap);
  padding: 0.75rem 1rem;
  overflow: hidden;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: 0 6px 20px rgb(4 80 151 / 0.07);
}
/* No per-tile hover effects: tiles slide under a still cursor, so hover would make them bob. */
.brand-tile img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: scale(var(--logo-scale));
  pointer-events: none;
  user-select: none;
}

/* Optical sizing: these source images carry extra whitespace around the mark. */
.brand-tile--eastman { --logo-scale: 0.9; }
.brand-tile--luminous { --logo-scale: 1.3; }
.brand-tile--tata { --logo-scale: 1.45; }
.brand-tile--utl { --logo-scale: 1.4; }
.brand-tile--waaree { --logo-scale: 1.3; }
/* Waaree's file has a mint background; fade its edges into the white tile. */
.brand-tile--waaree img {
  height: auto;
  -webkit-mask-image: radial-gradient(closest-side, #000 72%, transparent);
  mask-image: radial-gradient(closest-side, #000 72%, transparent);
}

@keyframes marquee-rtl {
  to { transform: translate3d(-50%, 0, 0); }
}

@media (min-width: 640px) {
  .marquee { --tile-width: 12.5rem; --tile-gap: 1.5rem; }
  .brand-tile { padding: 1.25rem 1.5rem; }
}

/* ---------- Visit us (map) ---------- */
.visit__inner { display: grid; align-items: center; gap: 2.5rem; }

.visit-address {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-top: 2rem;
  font-style: normal;
}
.visit-address__title { display: block; font-weight: 700; color: var(--blue); }
.visit-address__text { display: block; max-width: 22rem; margin-top: 0.25rem; line-height: 1.6; color: var(--slate-600); text-wrap: balance; }
.visit__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

.map-frame {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}
.map-frame iframe { display: block; width: 100%; height: 100%; border: 0; }

@media (min-width: 640px) {
  .map-frame { aspect-ratio: 16 / 10; }
}
@media (min-width: 1024px) {
  .visit__inner { grid-template-columns: 0.8fr 1.2fr; gap: 4rem; }
  .map-frame { aspect-ratio: auto; height: 26rem; }
}

/* ---------- Solutions ---------- */
.card-grid { display: grid; gap: 1.5rem; margin-top: 3rem; }

.solution-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-soft);
  transition: transform 0.5s var(--ease-liquid);
}
.solution-card:hover { transform: translateY(-4px); }
.solution-card__bar { height: 6px; }
.solution-card__bar--yellow { background: var(--yellow); }
.solution-card__bar--blue { background: var(--blue); }
.solution-card__bar--green { background: var(--green); }
/* Icon and title share the first row; the text row stretches so links line up across cards. */
.solution-card__body {
  display: grid;
  flex: 1;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto 1fr auto;
  align-items: center;
  column-gap: 1rem;
  padding: 1.75rem;
}
.solution-card__title { font-size: 1.5rem; line-height: 2rem; font-weight: 700; color: var(--blue); }
.solution-card__text { grid-column: 1 / -1; align-self: start; margin-top: 1rem; line-height: 1.75rem; color: var(--slate-600); }
.solution-card .text-link { grid-column: 1 / -1; justify-self: start; }

@media (min-width: 768px) { .card-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Why us ---------- */
.split { display: grid; align-items: start; gap: 3rem; }

.feature-grid { display: grid; gap: 1rem; margin-top: 2rem; }
/* Icon sits beside the title; the description runs full width underneath. */
.feature-card {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 0.875rem;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  background: var(--white);
  padding: 1.5rem;
}
.feature-card__title { font-size: 1.125rem; line-height: 1.5rem; font-weight: 700; color: var(--blue); }
.feature-card__text { grid-column: 1 / -1; margin-top: 0.75rem; font-size: 1rem; line-height: 1.5rem; color: var(--slate-600); }
.split .btn--md { margin-top: 2rem; }

.panel {
  border-radius: var(--radius-lg);
  background: var(--white);
  padding: 1.75rem;
  box-shadow: var(--shadow-soft);
}

/* System chooser: the checked radio reveals its matching [data-system] block (no JS needed). */
.systems .segmented { margin-top: 1.75rem; }
.system { margin-top: 1.75rem; }
@supports selector(:has(*)) {
  .system { display: none; }
  .systems:has(input[value="on-grid"]:checked) [data-system="on-grid"],
  .systems:has(input[value="off-grid"]:checked) [data-system="off-grid"],
  .systems:has(input[value="hybrid"]:checked) [data-system="hybrid"] {
    display: block;
    animation: system-in 0.5s var(--ease-liquid);
  }
}
@keyframes system-in {
  from { opacity: 0; transform: translateY(0.5rem); }
}

.system--blue { --tick-bg: var(--blue); --tick-fg: var(--white); }
.system--yellow { --tick-bg: var(--yellow); --tick-fg: var(--blue); }
.system--green { --tick-bg: var(--green); --tick-fg: var(--white); }

.system__title { font-size: 1.25rem; line-height: 1.75rem; font-weight: 700; color: var(--blue); }
.system__points { display: grid; gap: 0.75rem; margin-top: 1rem; }
.system__points li {
  position: relative;
  padding-left: 2.25rem;
  line-height: 1.5rem;
  color: var(--slate-600);
}
.system__points li::before {
  content: "✓";
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--tick-bg);
  color: var(--tick-fg);
  font-size: 0.8125rem;
  font-weight: 700;
}

.system__subsidy {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
  border-radius: var(--radius-md);
  background: var(--green-tint-soft);
  padding: 1rem 1.25rem;
  line-height: 1.5rem;
  color: var(--slate-700);
}
.system__subsidy strong { color: var(--blue); }
.system__subsidy--none { background: #FDECEC; color: #7F1D1D; }
.system__subsidy--none strong { color: #9B1C1C; }
.system__subsidy--none .icon-tile { color: #9B1C1C; }

@media (min-width: 640px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .panel { padding: 2.5rem; }
}
@media (min-width: 1024px) {
  .split { grid-template-columns: repeat(2, 1fr); gap: 4rem; }
}

/* ---------- Process ---------- */
.process { position: relative; display: grid; gap: 1.5rem; margin-top: 3rem; }
.process__line { display: none; }

.process-card {
  position: relative;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  background: var(--white);
  padding: 1.75rem;
  text-align: center;
  box-shadow: var(--shadow-soft);
}
.process-card__num {
  display: grid;
  place-items: center;
  width: 5rem;
  height: 5rem;
  margin-inline: auto;
  border-radius: var(--radius-lg);
  font-size: 1.875rem;
  line-height: 2.25rem;
  font-weight: 700;
  color: var(--blue);
  box-shadow: 0 0 0 8px var(--white);
}
.process-card__num--blue { background: var(--blue-tint); }
.process-card__num--yellow { background: var(--yellow-tint-strong); }
.process-card__num--green { background: var(--green-tint); }
.process-card__title { margin-top: 1.5rem; font-size: 1.5rem; line-height: 2rem; font-weight: 700; color: var(--blue); }
.process-card__text { margin-top: 0.75rem; line-height: 1.75rem; color: var(--slate-600); }

@media (min-width: 768px) {
  .process { grid-template-columns: repeat(3, 1fr); }
  /* Card padding (1.75rem) + half the number badge (2.5rem) */
  .process__line {
    position: absolute;
    top: 4.25rem;
    left: 17%;
    right: 17%;
    display: block;
    border-top: 2px dashed rgb(4 80 151 / 0.25);
  }
}

/* ---------- Savings calculator ---------- */
.calculator { background: var(--blue); color: var(--white); }
.calculator__inner { display: grid; align-items: center; gap: 3rem; }
.calculator__assumptions {
  max-width: 36rem;
  margin-top: 1.5rem;
  font-size: 0.875rem;
  line-height: 1.5rem;
  color: rgb(255 255 255 / 0.7);
}

.calc-card {
  border-radius: var(--radius-lg);
  background: var(--white);
  padding: 1.5rem;
  color: var(--slate-700);
  box-shadow: var(--shadow-raised);
}
.calc-card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.calc-label { font-size: 1rem; font-weight: 700; color: var(--slate-600); }
.calc-bill { display: flex; align-items: baseline; gap: 0.25rem; margin-top: 0.5rem; }
.calc-bill__value { font-size: 2.25rem; line-height: 2.5rem; font-weight: 700; color: var(--blue); }
.calc-bill__unit { font-size: 1rem; color: var(--slate-500); }
.calc-slider { width: 100%; margin-top: 1.75rem; cursor: pointer; accent-color: var(--green); }
.calc-slider:focus-visible { outline: var(--focus); outline-offset: 4px; }
.calc-range { display: flex; justify-content: space-between; margin-top: 0.25rem; font-size: 0.875rem; color: var(--slate-500); }

.segmented { min-width: 0; margin-top: 1.5rem; border: 0; padding: 0; }
.segmented legend { padding: 0; }
.segmented__options {
  display: grid;
  grid-auto-columns: 1fr;
  grid-auto-flow: column; /* one equal column per option */
  gap: 0.25rem;
  margin-top: 0.5rem;
  border-radius: var(--radius-pill);
  background: var(--light);
  padding: 0.25rem;
}
.segmented label { position: relative; cursor: pointer; }
.segmented input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.segmented span {
  display: block;
  border-radius: var(--radius-pill);
  padding: 0.5rem 0.75rem;
  text-align: center;
  font-weight: 700;
  color: var(--slate-500);
  transition: background-color 0.45s var(--ease-liquid), color 0.45s var(--ease-liquid), box-shadow 0.45s var(--ease-liquid);
}
.segmented input:checked + span { background: var(--white); color: var(--blue); box-shadow: 0 1px 3px rgb(0 0 0 / 0.1), var(--ring); }
.segmented input:focus-visible + span { outline: var(--focus); outline-offset: 2px; }

.calc-stats { display: grid; gap: 1rem; margin-top: 1.5rem; }
.calc-stat { border-radius: var(--radius-md); background: var(--light); padding: 1.25rem; }
.calc-stat--blue { background: var(--blue-tint); }
.calc-stat__label { font-size: 1rem; font-weight: 700; color: var(--slate-600); }
.calc-stat__value {
  margin-top: 0.5rem;
  font-size: 1.875rem;
  line-height: 2.25rem;
  font-weight: 700;
  color: var(--blue);
  font-variant-numeric: tabular-nums;
}
.calc-stat__note { margin-top: 0.25rem; font-size: 0.875rem; color: var(--slate-500); }

.calc-breakdown { margin-top: 1.25rem; }
.calc-breakdown > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--slate-200);
  padding-block: 0.625rem;
  font-size: 1rem;
}
.calc-breakdown dt { color: var(--slate-600); }
.calc-breakdown dd { text-align: right; font-weight: 700; color: var(--blue); font-variant-numeric: tabular-nums; }
.calc-breakdown .calc-breakdown__total dt { font-weight: 700; color: var(--slate-700); }

.calc-lifetime {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-top: 1.25rem;
  border-radius: var(--radius-md);
  background: var(--green-tint-soft);
  padding: 1.25rem;
}
.calc-lifetime__label { font-weight: 700; color: var(--slate-700); }
.calc-lifetime__note { font-size: 0.875rem; color: var(--slate-500); }
.calc-lifetime__value {
  font-size: 1.875rem;
  line-height: 2.25rem;
  font-weight: 700;
  color: var(--blue);
  font-variant-numeric: tabular-nums;
}

.calc-cta {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.25rem;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}
.calc-cta__title { font-size: 1.125rem; line-height: 1.75rem; font-weight: 700; color: var(--blue); }
.calc-cta__text { margin-top: 0.25rem; font-size: 1rem; color: var(--slate-600); }
.calc-cta .btn { flex-shrink: 0; }

@media (min-width: 640px) {
  .calc-card { padding: 2.25rem; }
  .calc-stats { grid-template-columns: repeat(2, 1fr); }
  .calc-cta { flex-direction: row; align-items: center; justify-content: space-between; }
}
@media (min-width: 1024px) {
  .calculator__inner { grid-template-columns: 0.85fr 1.15fr; gap: 4rem; }
}

/* ---------- FAQ ---------- */
.faq-list {
  margin-top: 2.5rem;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  background: var(--white);
  padding-inline: 1.5rem;
}
.faq-item { padding-block: 1.25rem; }
.faq-item + .faq-item { border-top: 1px solid var(--slate-200); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  list-style: none;
  cursor: pointer;
  font-size: 1.125rem;
  line-height: 1.75rem;
  font-weight: 700;
  color: var(--blue);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:focus-visible { outline: var(--focus); outline-offset: 4px; border-radius: 4px; }
.faq-item__icon {
  font-size: 1.5rem;
  line-height: 1;
  color: var(--green);
  transition: transform 0.45s var(--ease-liquid);
}
.faq-item[open] .faq-item__icon { transform: rotate(45deg); }
.faq-item p { max-width: 48rem; margin-top: 0.75rem; line-height: 1.75rem; color: var(--slate-600); }

@media (min-width: 640px) { .faq-list { padding-inline: 2rem; } }

/* ---------- Contact ---------- */
.contact__inner { display: grid; align-items: start; gap: 3rem; }

.contact-list { display: grid; gap: 1.5rem; margin-top: 2rem; }
.contact-item { display: flex; align-items: flex-start; gap: 1rem; }
.contact-item__title { font-weight: 700; color: var(--blue); }
.contact-item__lines { margin-top: 0.25rem; }
.contact-item__lines a,
.contact-item__lines p { display: block; color: var(--slate-600); }
.contact-item__lines a { overflow-wrap: anywhere; transition: color 0.2s; }
.contact-item__lines a:hover { color: var(--blue); }

.lead-form {
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  background: var(--white);
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
}
.lead-form__title { font-size: 1.5rem; line-height: 2rem; font-weight: 700; color: var(--blue); }
.lead-form__intro { margin-top: 0.5rem; font-size: 1rem; line-height: 1.5rem; color: var(--slate-500); }

.form-grid { display: grid; gap: 1.25rem; margin-top: 1.75rem; }
.form-label { display: block; margin-bottom: 0.5rem; font-size: 1rem; font-weight: 700; color: var(--slate-700); }
.form-label__optional { font-weight: 400; color: var(--slate-400); }
.form-control {
  width: 100%;
  border: 1px solid var(--slate-300);
  border-radius: var(--radius-sm);
  background: var(--white);
  padding: 0.75rem 1rem;
  outline: none;
  transition: border-color 0.3s var(--ease-liquid);
}
.form-control:focus { border-color: var(--green); }
.form-control:focus-visible { outline: var(--focus); outline-offset: 2px; }
.form-control::placeholder { color: var(--slate-400); }
textarea.form-control { resize: vertical; }

.consent {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-top: 1.25rem;
  font-size: 1rem;
  line-height: 1.5rem;
  color: var(--slate-600);
}
.consent input { flex-shrink: 0; width: 1rem; height: 1rem; margin-top: 0.25rem; accent-color: var(--blue); }
.lead-form .btn { margin-top: 1.5rem; }
.form-honeypot { display: none; } /* spam trap: real visitors never see or tick it */

/* Sending state: spinner replaces the arrow */
.btn:disabled { cursor: progress; }
.btn.is-loading { transform: none; filter: none; }
.btn.is-loading .btn__arrow { display: none; }
.btn.is-loading::after {
  content: "";
  width: 1.125rem;
  height: 1.125rem;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: btn-spin 0.7s linear infinite;
}
@keyframes btn-spin { to { transform: rotate(360deg); } }

.form-message {
  margin-top: 1rem;
  border-radius: var(--radius-sm);
  background: var(--blue-tint);
  padding: 1rem;
  font-size: 1rem;
  line-height: 1.5rem;
  color: var(--blue);
}
.form-message--success { background: var(--green-tint); }
.form-message--error { background: #FDECEC; color: #9B1C1C; }
.form-message a { font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }

@media (min-width: 640px) {
  .lead-form { padding: 2.25rem; }
  .lead-form__title { font-size: 1.875rem; line-height: 2.25rem; }
  .form-grid { grid-template-columns: repeat(2, 1fr); }
  .form-field--full { grid-column: 1 / -1; }
}
@media (min-width: 1024px) {
  .contact__inner { grid-template-columns: 0.8fr 1.2fr; gap: 4rem; }
  .contact__intro { padding-top: 2rem; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--blue); color: var(--white); }
.footer__inner { display: grid; gap: 2rem; padding-block: 2.5rem; }
.footer__logo-wrap { border-radius: var(--radius-sm); background: var(--white); padding: 6px; }
.footer__logo { width: auto; height: 2.5rem; }
.site-footer .brand__name { color: var(--white); }
.site-footer .brand__accent { color: var(--yellow); }
.site-footer .brand__tagline { display: block; color: rgb(255 255 255 / 0.7); }
.footer__text { font-size: 1rem; color: rgb(255 255 255 / 0.8); }
.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
}
.footer__nav a { transition: color 0.2s; }
.footer__nav a:hover { color: var(--yellow); }
.footer__bottom {
  border-top: 1px solid rgb(255 255 255 / 0.15);
  padding: 1rem 1rem 5.5rem; /* room for the WhatsApp pill on small screens */
  text-align: center;
  font-size: 0.875rem;
  color: rgb(255 255 255 / 0.7);
}

@media (min-width: 640px) {
  .site-footer .brand__name { font-size: 1.125rem; }
}
@media (min-width: 768px) {
  .footer__bottom { padding-bottom: 1rem; }
  .footer__inner { grid-template-columns: auto 1fr auto; align-items: center; gap: 2.5rem; }
  .footer__text { text-align: center; }
}

/* ---------- WhatsApp chat pill ---------- */
.wa-pill {
  position: fixed;
  right: 1rem;
  bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  border-radius: var(--radius-pill);
  background: var(--white);
  padding: 0.375rem 0.375rem 0.375rem 0.375rem;
  font-weight: 700;
  color: var(--blue);
  box-shadow: 0 12px 32px rgb(4 80 151 / 0.20), var(--ring);
  animation: wa-pill-in 0.7s var(--ease-liquid) 2s backwards; /* last step of the page-load intro */
  transition: transform 0.4s var(--ease-liquid), box-shadow 0.4s var(--ease-liquid);
}
.wa-pill:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgb(4 80 151 / 0.26), var(--ring); }
.wa-pill:focus-visible { outline: var(--focus); outline-offset: 3px; }

.wa-pill__icon {
  position: relative;
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  transition: transform 0.5s var(--ease-liquid);
}
.wa-pill:hover .wa-pill__icon { transform: rotate(-10deg) scale(1.06); }
.wa-pill__icon svg { width: 1.375rem; height: 1.375rem; }
/* A soft ring ripples out twice after the pill arrives, then it stays calm. */
.wa-pill__icon::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 0 0 rgb(63 172 12 / 0.45);
  animation: wa-pill-ripple 1.8s var(--ease-liquid) 2.9s 2;
}
.wa-pill__label-extra { display: none; }

@keyframes wa-pill-in {
  from { opacity: 0; transform: translateY(1.25rem) scale(0.94); }
}
@keyframes wa-pill-ripple {
  to { box-shadow: 0 0 0 14px rgb(63 172 12 / 0); }
}

@media (min-width: 640px) {
  .wa-pill { right: 1.5rem; bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px)); }
  .wa-pill__label-extra { display: inline; }
}

/* ---------- Page-load intro (~2.7 s) ----------
   1. hero photo  2. hero text & card  3. navbar  4. rest of the page (WhatsApp pill last).
   "backwards" fill hides each element during its delay, then leaves no lingering styles. */
@keyframes intro-fade { from { opacity: 0; } }
@keyframes intro-settle { from { transform: scale(1.08); } }
@keyframes intro-rise { from { opacity: 0; transform: translateY(1.25rem); } }
@keyframes intro-drop { from { opacity: 0; transform: translateY(-100%); } }

.hero::before {
  animation:
    intro-fade 0.9s ease-out backwards,
    intro-settle 1.8s var(--ease-liquid) backwards;
}
.hero__title { animation: intro-rise 0.75s var(--ease-liquid) 0.5s backwards; }
.hero__lead { animation: intro-rise 0.75s var(--ease-liquid) 0.62s backwards; }
.hero__actions { animation: intro-rise 0.75s var(--ease-liquid) 0.74s backwards; }
.hero__aside { animation: intro-rise 0.75s var(--ease-liquid) 0.86s backwards; }
.site-header { animation: intro-drop 0.7s var(--ease-liquid) 1.3s backwards; }
main > section:not(.hero),
.site-footer { animation: intro-fade 0.7s ease-out 1.8s backwards; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  /* No sliding: show the logos as a centred static grid (no scrollbar). */
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee__track { width: auto; animation: none; }
  .marquee__group {
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--tile-gap);
    max-width: calc(4 * var(--tile-width) + 3 * var(--tile-gap));
    margin-inline: auto;
  }
  .marquee__group[aria-hidden="true"] { display: none; }
  .marquee .brand-tile { margin-right: 0; }
  .wa-pill, .wa-pill__icon::after { animation: none; }
  .system { animation: none !important; }
  .hero::before, .hero__title, .hero__lead, .hero__actions, .hero__aside,
  .site-header, main > section:not(.hero), .site-footer { animation: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
