/* ============================================================
   CAPSTONE INVESTMENTS — Global Stylesheet
   Design tokens, components, and page-scoped sections
   ============================================================ */

/* --- TOKENS --- */
:root {
  --bg:          #F8F6F1;
  --bg-pure:     #FCFBF8;
  --ink:         #14201B;
  --ink-soft:    #4A554F;
  --line:        #E3DED3;
  --accent:      #0D3B2E;
  --accent-2:    #145C45;
  --gold:        #B4894F;
  --white:       #FFFFFF;
  --max:         1280px;
  --gut:         clamp(20px, 5vw, 80px);
  --r:           14px;
  --font-display:'Playfair Display', Georgia, serif;
  --font-body:   'Inter', system-ui, sans-serif;
}

/* --- RESET & BASE --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: auto; } /* Lenis handles smooth scroll */

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* --- TYPOGRAPHY SCALE --- */
.eyebrow {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

h1, .h1 {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 7vw, 6rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--ink);
}

h2, .h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.08;
  color: var(--ink);
}

h3, .h3 {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 500;
  line-height: 1.25;
  color: var(--ink);
}

.body-text {
  font-size: clamp(1.0625rem, 1.5vw, 1.1875rem);
  color: var(--ink-soft);
  line-height: 1.65;
  max-width: 60ch;
}

/* --- LAYOUT UTILITIES --- */
.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gut);
}

.section-pad {
  padding-block: clamp(80px, 12vw, 160px);
}

/* --- BUTTONS --- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 14px 28px;
  border-radius: var(--r);
  border: 1.5px solid var(--accent);
  min-height: 48px;
  transition: background 0.25s ease, transform 0.2s ease, border-color 0.25s ease;
}

.btn-primary:hover {
  background: var(--accent-2);
  border-color: var(--accent-2);
  transform: translateY(-2px);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--accent);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 14px 28px;
  border-radius: var(--r);
  border: 1.5px solid var(--accent);
  min-height: 48px;
  transition: background 0.25s ease, transform 0.2s ease, color 0.25s ease;
}

.btn-ghost:hover {
  background: var(--accent);
  color: var(--bg);
  transform: translateY(-2px);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

/* --- NAVBAR --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px var(--gut) 0;
  background: transparent;
  transition: transform 0.35s ease;
}

.nav__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 10px 16px;
  border-radius: 14px;
  max-width: var(--max);
  margin-inline: auto;
  /* Solid fallback — always a visible dark pill over the hero */
  background: rgba(0, 0, 0, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.28);
  transition: background 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

/* Enhance with blur where the browser supports it */
@supports (backdrop-filter: blur(1px)) {
  .nav__bar {
    background: rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(14px) saturate(160%);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
  }
}

/* Solid state — white pill with clear green border over light page content */
.nav--solid .nav__bar {
  background: #ffffff;
  border-color: rgba(13, 59, 46, 0.14);
  box-shadow: 0 4px 32px rgba(13, 59, 46, 0.14), 0 1px 4px rgba(13, 59, 46, 0.06);
}

@supports (backdrop-filter: blur(1px)) {
  .nav--solid .nav__bar {
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
  }
}

.nav--hidden { transform: translateY(-100%); }

/* Default: white text over dark hero video */
.nav__logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  flex-shrink: 0;
  transition: color 0.4s;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav__links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: #fff;
  letter-spacing: 0.01em;
  transition: color 0.2s;
  white-space: nowrap;
}

.nav__links a:hover { color: rgba(255,255,255,0.7); }
.nav__links a.active { color: #fff; font-weight: 600; }

.nav__cta {
  font-size: 0.875rem;
  font-weight: 600;
  color: #000;
  background: #fff;
  padding: 10px 20px;
  border-radius: 10px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

.nav__cta:hover {
  background: rgba(255,255,255,0.88);
  transform: translateY(-1px);
}

/* Solid state: dark text over light sections */
.nav--solid .nav__logo { color: var(--accent); }
.nav--solid .nav__links a { color: var(--ink); }
.nav--solid .nav__links a:hover { color: var(--accent); }
.nav--solid .nav__links a.active { color: var(--accent); font-weight: 500; }
.nav--solid .nav__cta { background: var(--accent); color: var(--bg); }
.nav--solid .nav__cta:hover { background: var(--accent-2); }

.nav__burger {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border-radius: 8px;
  flex-shrink: 0;
}

.nav__burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease, background 0.4s ease;
  transform-origin: center;
}

.nav--solid .nav__burger span { background: var(--ink); }

.nav__burger.open span { background: var(--ink); }
.nav__burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.open span:nth-child(2) { opacity: 0; }
.nav__burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile overlay */
.nav__overlay {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.nav__overlay.open {
  opacity: 1;
  pointer-events: all;
}

.nav__overlay a {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 700;
  color: var(--ink);
  transition: color 0.2s;
  transform: translateY(20px);
  opacity: 0;
  transition: transform 0.35s ease, opacity 0.35s ease, color 0.2s;
}

.nav__overlay.open a { transform: translateY(0); opacity: 1; }
.nav__overlay a:hover { color: var(--accent); }

@media (max-width: 860px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: flex; }
}

/* --- FOOTER --- */
.footer {
  background: var(--accent);
  color: rgba(248,246,241,0.85);
  padding: 80px var(--gut) 0;
}

.footer__grid {
  max-width: var(--max);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(248,246,241,0.15);
}

.footer__brand .nav__logo {
  color: var(--bg);
  display: block;
  margin-bottom: 16px;
}

.footer__brand p {
  font-size: 0.875rem;
  line-height: 1.6;
  color: rgba(248,246,241,0.7);
  max-width: 32ch;
  margin-bottom: 16px;
}

.footer__disclaimer {
  font-size: 0.78rem;
  color: rgba(248,246,241,0.5);
  line-height: 1.5;
  max-width: 36ch;
}

.footer__col h4 {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(248,246,241,0.5);
  margin-bottom: 20px;
}

.footer__col a, .footer__col p {
  display: block;
  font-size: 0.9375rem;
  color: rgba(248,246,241,0.8);
  margin-bottom: 10px;
  transition: color 0.2s;
}

.footer__col a:hover { color: var(--bg); }

.footer__bottom {
  max-width: var(--max);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-block: 24px;
}

.footer__bottom p {
  font-size: 0.8375rem;
  color: rgba(248,246,241,0.5);
}

.footer__bottom-links {
  display: flex;
  gap: 24px;
}

.footer__bottom-links a {
  font-size: 0.8375rem;
  color: rgba(248,246,241,0.5);
  transition: color 0.2s;
}

.footer__bottom-links a:hover { color: var(--bg); }

.footer__credit {
  font-size: 0.8375rem;
  color: rgba(248,246,241,0.5);
}

.footer__credit a {
  color: rgba(248,246,241,0.7);
  text-decoration: underline;
  text-decoration-color: rgba(248,246,241,0.3);
  transition: color 0.2s;
}

.footer__credit a:hover { color: var(--bg); }

.heart { color: var(--gold); }

@media (max-width: 900px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 560px) {
  .footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* --- WHATSAPP FLOATER --- */
.wa-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 900;
  box-shadow: 0 4px 20px rgba(13,59,46,0.3);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.wa-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(13,59,46,0.4);
}

.wa-float::before {
  content: '';
  position: absolute;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  animation: wa-pulse 2s ease-out infinite;
}

@keyframes wa-pulse {
  0%   { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.8); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .wa-float::before { animation: none; }
}

/* --- LIQUID GLASS --- */
.liquid-glass {
  background: rgba(0, 0, 0, 0.4);
  background-blend-mode: luminosity;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.1);
  position: relative;
  overflow: hidden;
}

.liquid-glass::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.4px;
  background: linear-gradient(180deg,
    rgba(255,255,255,0.3) 0%, rgba(255,255,255,0.1) 20%,
    rgba(255,255,255,0) 40%, rgba(255,255,255,0) 60%,
    rgba(255,255,255,0.1) 80%, rgba(255,255,255,0.3) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* --- HERO (homepage) --- */
.hero {
  height: 100vh;
  height: 100svh;
  min-height: 640px;
  position: relative;
  display: flex;
  flex-direction: column;
  background: #000;
  overflow: hidden;
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 var(--gut) clamp(48px, 8vh, 80px);
  max-width: calc(var(--max) + 2 * var(--gut));
  margin-inline: auto;
  width: 100%;
}

.hero__grid {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

@media (min-width: 1024px) {
  .hero__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: end;
    gap: 40px;
  }
}

.hero__right {
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
}

@media (min-width: 1024px) {
  .hero__right { justify-content: flex-end; }
}

.hero__title {
  color: #fff;
  letter-spacing: -0.04em;
  margin-bottom: 16px;
}

.hero__title span {
  display: inline-block;
  transition: opacity 500ms ease, transform 500ms ease;
}

.hero__sub {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  color: rgba(255,255,255,0.75);
  max-width: 52ch;
  margin-bottom: 20px;
  line-height: 1.55;
}

.hero__tag {
  border: 1px solid rgba(255,255,255,0.2);
  padding: 12px 24px;
  border-radius: 12px;
  font-size: clamp(1rem, 1.5vw, 1.35rem);
  font-weight: 300;
  color: #fff;
  white-space: nowrap;
}

/* Hero buttons */
.btn--white {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: #000;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  padding: 12px 32px;
  border-radius: 10px;
  min-height: 48px;
  transition: background 0.2s ease;
}

.btn--white:hover { background: rgba(255,255,255,0.88); }

.btn--glass {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  padding: 12px 32px;
  border-radius: 10px;
  min-height: 48px;
  transition: background 0.25s ease, color 0.25s ease;
}

.btn--glass:hover {
  background: #fff !important;
  color: #000;
}

/* --- TRUST BAND --- */
.trust-band {
  background: var(--accent);
  color: var(--bg);
  padding: clamp(48px, 7vw, 80px) var(--gut);
}

.trust-band__inner {
  max-width: var(--max);
  margin-inline: auto;
}

.trust-band__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-bottom: 1px solid rgba(248,246,241,0.15);
  padding-bottom: 40px;
  margin-bottom: 32px;
}

.trust-band__stat {
  padding: 0 32px;
  border-right: 1px solid rgba(248,246,241,0.15);
}

.trust-band__stat:first-child { padding-left: 0; }
.trust-band__stat:last-child  { border-right: none; }

.trust-band__number {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--bg);
  line-height: 1;
  margin-bottom: 8px;
}

.trust-band__number .unit {
  font-size: 0.5em;
  color: var(--gold);
}

.trust-band__label {
  font-size: 0.9rem;
  color: rgba(248,246,241,0.65);
  font-weight: 500;
}

.trust-band__tagline {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2vw, 1.375rem);
  font-style: italic;
  color: rgba(248,246,241,0.8);
}

.trust-band__caveat {
  font-size: 0.75rem;
  color: rgba(248,246,241,0.4);
  margin-top: 12px;
}

@media (max-width: 720px) {
  .trust-band__stats {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .trust-band__stat {
    padding: 0;
    border-right: none;
  }
}

/* --- SERVICES GRID (homepage) --- */
.services-section { padding-block: clamp(80px, 12vw, 160px); }

.services-section__intro {
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gut);
  margin-bottom: 64px;
}

.services-section__intro h2 { margin-top: 16px; }

.services-grid {
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gut);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}

.service-card {
  background: var(--bg-pure);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  transition: background 0.25s ease, transform 0.25s ease;
  text-decoration: none;
  overflow: hidden;
}

.service-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}

@media (hover: hover) {
  .service-card:hover {
    background: var(--bg-pure);
    transform: translateY(-4px);
    z-index: 1;
    box-shadow: 0 12px 40px rgba(13,59,46,0.1);
  }
  .service-card:hover::after { transform: scaleX(1); }
  .service-card:hover .service-card__arrow { transform: translateX(6px); }
}

.service-card__num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  opacity: 0.6;
}

.service-card__name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
}

.service-card__desc {
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.5;
  flex: 1;
}

.service-card__arrow {
  display: inline-block;
  font-size: 1.1rem;
  color: var(--accent);
  transition: transform 0.25s ease;
}

@media (max-width: 860px) {
  .services-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .services-grid { grid-template-columns: 1fr; }
  .service-card { padding: 28px 24px; }
}

/* --- FOUNDER SPLIT --- */
.founder-split {
  padding-block: clamp(80px, 12vw, 160px);
  background: var(--bg-pure);
}

.founder-split__inner {
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gut);
  display: grid;
  grid-template-columns: 55fr 45fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}

.founder-split__photo-wrap {
  aspect-ratio: 4/5;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
}

.founder-split__photo-wrap img {
  width: 100%;
  height: 120%;
  object-fit: cover;
  will-change: transform;
}

.founder-split__content { max-width: 52ch; }
.founder-split__content h2 { margin: 16px 0 24px; }
.founder-split__content p { color: var(--ink-soft); margin-bottom: 20px; }

.founder-split__name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  font-style: italic;
  color: var(--accent);
  margin-top: 32px;
  margin-bottom: 8px;
}

.founder-split__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
  transition: gap 0.2s;
}

.founder-split__link:hover { gap: 14px; }

@media (max-width: 860px) {
  .founder-split__inner {
    grid-template-columns: 1fr;
  }
  .founder-split__photo-wrap {
    max-width: 480px;
    aspect-ratio: 16/9;
  }
  .founder-split__photo-wrap img { height: 100%; }
}

/* --- HOW IT WORKS --- */
.how-it-works {
  padding-block: clamp(80px, 12vw, 160px);
}

.how-it-works__inner {
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gut);
}

.how-it-works__header {
  margin-bottom: 64px;
}

.how-it-works__header h2 { margin-top: 16px; }

.steps-wrapper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}

.step-card {
  position: relative;
  padding: 48px 40px;
  background: var(--bg-pure);
  border-radius: var(--r);
  border: 1px solid var(--line);
}

.step-card__num {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 700;
  color: var(--gold);
  opacity: 0.3;
  line-height: 1;
  margin-bottom: 24px;
}

.step-card__progress {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(13,59,46,0.08);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.step-card h3 { margin-bottom: 12px; }
.step-card p { color: var(--ink-soft); font-size: 0.9875rem; }

@media (max-width: 860px) {
  .steps-wrapper { grid-template-columns: 1fr; gap: 24px; }
}

/* --- CALCULATOR TEASER (homepage) --- */
.calc-teaser {
  padding-block: clamp(80px, 12vw, 160px);
  background: var(--bg-pure);
}

.calc-teaser__inner {
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gut);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

.calc-teaser__text h2 { margin: 16px 0 20px; }
.calc-teaser__text p  { color: var(--ink-soft); margin-bottom: 32px; }

.calc-card {
  background: var(--bg);
  border-radius: 20px;
  border: 1px solid var(--line);
  padding: 40px;
  box-shadow: 0 4px 30px rgba(13,59,46,0.06);
}

.calc-card h3 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 28px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.calc-field { margin-bottom: 24px; }

.calc-field label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 10px;
}

.calc-field__val {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--accent);
}

.calc-field input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
  height: 4px;
  cursor: pointer;
  margin-bottom: 4px;
}

.calc-results {
  margin-top: 32px;
  padding: 24px;
  background: var(--accent);
  border-radius: 12px;
  color: var(--bg);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.calc-result__label {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(248,246,241,0.6);
  margin-bottom: 6px;
}

.calc-result__val {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--bg);
}

.calc-result--highlight .calc-result__val { color: var(--gold); }

.calc-bar-wrap {
  margin-top: 20px;
  grid-column: 1 / -1;
  border-top: 1px solid rgba(248,246,241,0.15);
  padding-top: 20px;
}

.calc-bar {
  height: 8px;
  background: rgba(248,246,241,0.15);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 8px;
}

.calc-bar__fill {
  height: 100%;
  background: var(--gold);
  border-radius: 4px;
  transform-origin: left;
  transition: transform 0.6s cubic-bezier(0.4,0,0.2,1);
}

.calc-bar__fill--invested {
  background: rgba(248,246,241,0.4);
  width: 0%;
  transition: width 0.6s ease;
}

.calc-bar__fill--projected {
  background: var(--gold);
  width: 0%;
  transition: width 0.6s ease 0.15s;
}

@media (max-width: 860px) {
  .calc-teaser__inner { grid-template-columns: 1fr; }
}

/* --- TESTIMONIALS --- */
.testimonials {
  padding-block: clamp(80px, 12vw, 160px);
}

.testimonials__inner {
  max-width: 860px;
  margin-inline: auto;
  padding-inline: var(--gut);
  text-align: center;
}

.testimonials__inner .eyebrow { margin-bottom: 40px; }

/* All slides stack in the same grid cell; only the active one is opaque */
.testimonial-carousel {
  display: grid;
}

.testimonial-slide {
  grid-area: 1 / 1;
  opacity: 0;
  transform: translateX(28px);
  transition: opacity 0.55s ease, transform 0.55s ease;
  pointer-events: none;
}

.testimonial-slide.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: all;
}

.testimonial-quote {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.5vw, 1.75rem);
  font-style: italic;
  color: var(--ink);
  line-height: 1.55;
  margin-bottom: 32px;
  position: relative;
}

.testimonial-quote::before {
  content: '\201C';
  position: absolute;
  top: -0.3em;
  left: -0.4em;
  font-size: 4em;
  color: var(--gold);
  opacity: 0.25;
  line-height: 1;
  font-style: normal;
}

.testimonial-author {
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 4px;
}

.testimonial-role {
  font-size: 0.875rem;
  color: var(--ink-soft);
  font-style: italic;
}

.testimonial-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 48px;
}

.testimonial-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line);
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.testimonial-dot.active {
  background: var(--accent);
  transform: scale(1.3);
}

.testimonial-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.testimonial-btn:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--bg);
}

/* --- CTA BAND --- */
.cta-band {
  background: var(--accent);
  padding: clamp(80px, 12vw, 140px) var(--gut);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-band__bg {
  position: absolute;
  inset: 0;
  object-fit: cover;
  opacity: 0.06;
  will-change: transform;
}

.cta-band__inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin-inline: auto;
}

.cta-band h2 {
  color: var(--bg);
  margin-bottom: 20px;
}

.cta-band p {
  color: rgba(248,246,241,0.7);
  margin-bottom: 40px;
  font-size: 1.0625rem;
}

.cta-band .btn-primary {
  background: var(--bg);
  color: var(--accent);
  border-color: var(--bg);
}

.cta-band .btn-primary:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--bg);
}

/* --- SHORT HERO (inner pages) --- */
.page-hero {
  padding-top: calc(80px + clamp(40px, 8vw, 100px));
  padding-bottom: clamp(48px, 8vw, 100px);
  padding-inline: var(--gut);
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.page-hero__inner {
  max-width: var(--max);
  margin-inline: auto;
}

.page-hero__inner .eyebrow { margin-bottom: 20px; }
.page-hero__inner h1 { margin-bottom: 20px; }
.page-hero__inner p {
  font-size: clamp(1.0625rem, 1.8vw, 1.2rem);
  color: var(--ink-soft);
  max-width: 60ch;
  line-height: 1.6;
}

/* --- SERVICES PAGE --- */
.service-block {
  padding-block: clamp(64px, 9vw, 120px);
  border-bottom: 1px solid var(--line);
}

.service-block:last-of-type { border-bottom: none; }

.service-block__inner {
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gut);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}

.service-block:nth-of-type(even) .service-block__inner {
  direction: rtl;
}

.service-block:nth-of-type(even) .service-block__content {
  direction: ltr;
}

.service-block__img-wrap {
  aspect-ratio: 4/3;
  border-radius: 20px;
  overflow: hidden;
  direction: ltr;
}

.service-block__img-wrap img {
  width: 100%;
  height: 115%;
  object-fit: cover;
  will-change: transform;
}

.service-block__content { direction: ltr; }

.service-block__num {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 700;
  color: var(--gold);
  opacity: 0.35;
  line-height: 1;
  margin-bottom: 16px;
}

.service-block__content h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  margin-bottom: 16px;
}

.service-block__tagline {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--ink-soft);
  margin-bottom: 20px;
  font-size: 1.0625rem;
}

.service-block__content p {
  color: var(--ink-soft);
  margin-bottom: 20px;
}

.service-block__list {
  margin-bottom: 28px;
}

.service-block__list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9375rem;
  color: var(--ink-soft);
  margin-bottom: 10px;
}

.service-block__list li::before {
  content: '→';
  color: var(--accent);
  flex-shrink: 0;
  font-weight: 600;
  margin-top: 2px;
}

@media (max-width: 860px) {
  .service-block__inner {
    grid-template-columns: 1fr;
    direction: ltr;
  }
  .service-block:nth-of-type(even) .service-block__inner { direction: ltr; }
  .service-block__img-wrap {
    aspect-ratio: 16/9;
    max-height: 300px;
  }
  .service-block__img-wrap img { height: 100%; }
}

/* --- CALCULATORS PAGE --- */
.calc-tab-nav {
  position: sticky;
  top: 72px;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  padding: 0 var(--gut);
  overflow-x: auto;
  scrollbar-width: none;
}

.calc-tab-nav::-webkit-scrollbar { display: none; }

.calc-tab-nav__inner {
  max-width: var(--max);
  margin-inline: auto;
  display: flex;
  gap: 4px;
  padding-block: 12px;
  white-space: nowrap;
}

.calc-tab-pill {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--ink-soft);
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.calc-tab-pill:hover {
  background: rgba(13,59,46,0.07);
  color: var(--accent);
}

.calc-tab-pill.active {
  background: var(--accent);
  color: var(--bg);
}

.calc-disclaimer-global {
  max-width: var(--max);
  margin: 0 auto;
  padding: 20px var(--gut);
  background: rgba(180,137,79,0.08);
  border-left: 3px solid var(--gold);
  font-size: 0.875rem;
  color: var(--ink-soft);
  line-height: 1.6;
}

.calcs-section {
  max-width: var(--max);
  margin-inline: auto;
  padding: clamp(40px, 6vw, 80px) var(--gut);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.calc-full { grid-column: 1 / -1; }

.calc-unit {
  background: var(--bg-pure);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(28px, 4vw, 44px);
  scroll-margin-top: 160px;
}

.calc-unit__title {
  font-family: var(--font-body);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.calc-unit__purpose {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin-bottom: 28px;
}

.calc-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 32px; }
.calc-inputs.cols-3 { grid-template-columns: repeat(3, 1fr); }
.calc-inputs.cols-4 { grid-template-columns: repeat(4, 1fr); }

.input-group { display: flex; flex-direction: column; gap: 8px; }

.input-group label {
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
}

.input-group label .val {
  font-weight: 700;
  color: var(--accent);
}

.input-group input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
  cursor: pointer;
}

.input-group input[type="number"],
.input-group input[type="text"],
.input-group select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  background: var(--bg);
  color: var(--ink);
  transition: border-color 0.2s;
}

.input-group input[type="number"]:focus,
.input-group input[type="text"]:focus,
.input-group select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(13,59,46,0.1);
}

.input-group.checkbox-group {
  flex-direction: row;
  align-items: center;
  gap: 12px;
}

.input-group.checkbox-group label { font-size: 0.9375rem; justify-content: flex-start; }

.calc-output {
  margin-top: 28px;
  background: var(--accent);
  border-radius: 14px;
  padding: 28px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.calc-output.cols-2 { grid-template-columns: 1fr 1fr; }
.calc-output.cols-4 { grid-template-columns: repeat(4, 1fr); }

.output-item__label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(248,246,241,0.55);
  margin-bottom: 6px;
}

.output-item__val {
  font-family: var(--font-body);
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  font-weight: 600;
  color: var(--bg);
  word-break: break-word;
  letter-spacing: -0.01em;
}

.output-item--highlight .output-item__val { color: var(--gold); }

.calc-unit__disclaimer {
  font-size: 0.78rem;
  color: var(--ink-soft);
  margin-top: 16px;
  line-height: 1.5;
}

.calc-unit__disclaimer.bold-disc {
  font-weight: 500;
  color: #8B5A2B;
  background: rgba(180,137,79,0.1);
  padding: 10px 14px;
  border-radius: 8px;
  border-left: 3px solid var(--gold);
}

.swp-warning {
  display: none;
  color: #c0392b;
  font-size: 0.84rem;
  font-weight: 600;
  margin-top: 8px;
}

.swp-warning.show { display: block; }

@media (max-width: 860px) {
  .calcs-section { grid-template-columns: 1fr; }
  .calc-full { grid-column: 1; }
  .calc-inputs { grid-template-columns: 1fr 1fr; }
  .calc-inputs.cols-3 { grid-template-columns: 1fr 1fr; }
  .calc-inputs.cols-4 { grid-template-columns: 1fr 1fr; }
  .calc-output { grid-template-columns: 1fr 1fr; }
  .calc-output.cols-4 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 540px) {
  .calc-inputs { grid-template-columns: 1fr; }
  .calc-inputs.cols-3 { grid-template-columns: 1fr; }
  .calc-inputs.cols-4 { grid-template-columns: 1fr 1fr; }
  .calc-output { grid-template-columns: 1fr 1fr; }
  .calc-unit { padding: 24px 18px; }
}

@media (max-width: 380px) {
  .calc-inputs.cols-4 { grid-template-columns: 1fr; }
  .calc-output { grid-template-columns: 1fr; }
  .calc-output.cols-2 { grid-template-columns: 1fr; }
  .calc-output.cols-4 { grid-template-columns: 1fr; }
}

/* --- ABOUT PAGE --- */
.about-narrative {
  padding-block: clamp(64px, 10vw, 120px);
}

.about-narrative__inner {
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gut);
}

.about-narrative__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(48px, 6vw, 96px);
  align-items: start;
}

.about-narrative__photo-wrap {
  border-radius: 20px;
  overflow: hidden;
  position: sticky;
  top: 100px;
  aspect-ratio: 4/5;
}

.about-narrative__photo-wrap img {
  width: 100%;
  height: 120%;
  object-fit: cover;
  will-change: transform;
}

.about-narrative__content h2 { margin-top: 16px; margin-bottom: 32px; }

.about-narrative__content p {
  color: var(--ink-soft);
  margin-bottom: 24px;
}

.pullquote {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.5vw, 1.875rem);
  font-style: italic;
  color: var(--accent);
  border-left: 3px solid var(--gold);
  padding: 24px 32px;
  margin-block: 40px;
  line-height: 1.45;
}

.credentials-list {
  margin-top: 32px;
  padding: 32px;
  background: var(--bg-pure);
  border-radius: var(--r);
  border: 1px solid var(--line);
}

.credentials-list h3 {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.credentials-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9375rem;
  color: var(--ink-soft);
  margin-bottom: 12px;
}

.credentials-list li::before {
  content: '✓';
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
}

@media (max-width: 860px) {
  .about-narrative__grid { grid-template-columns: 1fr; }
  .about-narrative__photo-wrap {
    position: static;
    aspect-ratio: 16/9;
    max-height: 340px;
  }
  .about-narrative__photo-wrap img { height: 100%; }
}

/* Values grid */
.values-grid {
  padding-block: clamp(64px, 10vw, 120px);
  background: var(--bg-pure);
}

.values-grid__inner {
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gut);
}

.values-grid__inner h2 { margin: 16px 0 48px; }

.values-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.value-card {
  padding: 36px 28px;
  background: var(--bg);
  border-radius: var(--r);
  border: 1px solid var(--line);
}

.value-card__icon {
  font-size: 2rem;
  margin-bottom: 20px;
  color: var(--gold);
}

.value-card h3 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  margin-bottom: 10px;
}

.value-card p {
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.55;
}

@media (max-width: 860px) {
  .values-cards { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .values-cards { grid-template-columns: 1fr; }
}

/* Timeline */
.timeline {
  padding-block: clamp(64px, 10vw, 120px);
}

.timeline__inner {
  max-width: 800px;
  margin-inline: auto;
  padding-inline: var(--gut);
}

.timeline__inner h2 { margin: 16px 0 48px; }

.timeline-list {
  position: relative;
  padding-left: 32px;
}

.timeline-list::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--line);
}

.timeline-item {
  position: relative;
  margin-bottom: 40px;
  padding-left: 24px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -36px;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg);
  box-shadow: 0 0 0 2px var(--accent);
}

.timeline-item__year {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.timeline-item h3 { font-size: 1rem; margin-bottom: 6px; }
.timeline-item p  { font-size: 0.9rem; color: var(--ink-soft); }

/* --- CONTACT PAGE --- */
.contact-section {
  padding-block: clamp(80px, 12vw, 160px);
}

.contact-section__inner {
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gut);
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(48px, 6vw, 96px);
  align-items: start;
}

.contact-info h2 { margin: 16px 0 20px; }
.contact-info p { color: var(--ink-soft); margin-bottom: 32px; }

.contact-details { margin-bottom: 32px; }

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}

.contact-detail__icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(13,59,46,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent);
  font-size: 1.1rem;
}

.contact-detail__text strong {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  margin-bottom: 4px;
}

.contact-detail__text a,
.contact-detail__text span {
  color: var(--ink);
  font-size: 0.9875rem;
  transition: color 0.2s;
}

.contact-detail__text a:hover { color: var(--accent); }

.contact-reassurance {
  padding: 20px 24px;
  background: rgba(13,59,46,0.05);
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
  font-size: 0.9375rem;
  color: var(--ink-soft);
  font-style: italic;
}

.contact-form-card {
  background: var(--bg-pure);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(28px, 4vw, 48px);
  box-shadow: 0 4px 30px rgba(13,59,46,0.06);
}

.contact-form-card h3 {
  font-family: var(--font-display);
  font-size: 1.375rem;
  margin-bottom: 28px;
}

.form-field {
  margin-bottom: 20px;
}

.form-field label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 8px;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  background: var(--bg);
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: auto;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(13,59,46,0.1);
}

.form-field textarea { resize: vertical; min-height: 120px; }

.form-error {
  display: none;
  font-size: 0.8125rem;
  color: #c0392b;
  margin-top: 6px;
}

.form-field.has-error input,
.form-field.has-error select,
.form-field.has-error textarea { border-color: #c0392b; }

.form-field.has-error .form-error { display: block; }

.form-success {
  display: none;
  padding: 20px 24px;
  background: rgba(13,59,46,0.07);
  border: 1px solid var(--accent);
  border-radius: 12px;
  margin-bottom: 24px;
  color: var(--accent);
  font-weight: 500;
}

@media (max-width: 860px) {
  .contact-section__inner { grid-template-columns: 1fr; }
}

/* --- PRIVACY PAGE --- */
.privacy-content {
  max-width: 760px;
  margin-inline: auto;
  padding: clamp(48px, 8vw, 96px) var(--gut);
}

.privacy-content h2 {
  font-size: clamp(1.25rem, 2.5vw, 1.6rem);
  margin-top: 48px;
  margin-bottom: 16px;
}

.privacy-content p,
.privacy-content li {
  color: var(--ink-soft);
  margin-bottom: 16px;
  line-height: 1.7;
}

.privacy-content ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 24px;
}

/* --- SCROLL REVEAL CLASSES ---
   GSAP sets initial opacity/transform inline via gsap.set() in main.js.
   Without GSAP (or on reduced-motion), elements are naturally visible.
   DO NOT add opacity:0 here — that conflicts with gsap.from() causing 0→0 animation. */
.reveal {
  /* natural state: visible. GSAP overrides inline for animation. */
}

/* --- PROCESS STRIP (reused across pages) --- */
.process-strip {
  background: var(--bg-pure);
  padding: clamp(64px, 9vw, 120px) var(--gut);
  border-top: 1px solid var(--line);
}

.process-strip__inner {
  max-width: var(--max);
  margin-inline: auto;
}

.process-strip__header { margin-bottom: 56px; }
.process-strip__header h2 { margin-top: 16px; }

/* ====================================================
   MOBILE & COMPATIBILITY FIXES
   ==================================================== */

/* Calculator sticky tab nav: update top offset to match new nav height */
.calc-tab-nav { top: 80px; }

/* On mobile the sticky tab bar overlaps content — let it scroll with the page */
@media (max-width: 860px) {
  .calc-tab-nav { position: static; }
}

/* Faster tap on all interactive elements — removes 300ms tap delay on old Android */
button,
a,
input[type="range"],
.nav__burger,
.nav__cta,
.btn--white,
.btn--glass,
.testimonial-btn,
.testimonial-dot {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

/* backdrop-filter fallback for old Android (Chrome < 76, Android WebView) */
@supports not (backdrop-filter: blur(1px)) {
  .liquid-glass {
    background: rgba(0, 0, 0, 0.72);
  }
}

/* Hero: small phone adjustments */
@media (max-width: 480px) {
  .hero__title {
    font-size: clamp(2rem, 9vw, 2.75rem);
  }
  .hero__tag {
    white-space: normal;
    font-size: 1rem;
  }
  .hero__content {
    padding-bottom: 36px;
  }
  .hero__grid { gap: 18px; }
  .btn--white, .btn--glass {
    padding: 12px 22px;
    font-size: 0.9rem;
  }
}

/* Nav pill on very small screens */
@media (max-width: 420px) {
  .nav { padding: 14px 14px 0; }
  .nav__bar { padding: 8px 12px; border-radius: 12px; }
  .nav__logo { font-size: 1.05rem; }
}

/* Trust band: single column on very small screens */
@media (max-width: 400px) {
  .trust-band__stats { grid-template-columns: 1fr; gap: 24px; }
}

/* Step cards: full width on mobile */
@media (max-width: 560px) {
  .steps-wrapper { gap: 16px; }
  .step-card { padding: 32px 24px; }
}

/* Calc teaser text: reduce bottom margin on mobile */
@media (max-width: 560px) {
  .calc-teaser__text p { margin-bottom: 20px; }
  .calc-card { padding: 28px 20px; }
  .calc-results { padding: 20px; }
  .calc-result__val { font-size: 1.25rem; }
}

/* Testimonials: controls always above stacked slides */
.testimonial-controls {
  position: relative;
  z-index: 10;
}

/* Testimonials: tighten on small screens */
@media (max-width: 480px) {
  .testimonial-controls { gap: 12px; }
  .testimonial-btn { width: 40px; height: 40px; }
}

/* Mobile overlay: ensure it covers the full screen including notch */
.nav__overlay {
  padding: env(safe-area-inset-top, 0) env(safe-area-inset-right, 0)
           env(safe-area-inset-bottom, 0) env(safe-area-inset-left, 0);
}

/* Ensure range inputs render on old Android */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  background: var(--line);
  border-radius: 4px;
  outline: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
}

input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
  border: none;
  cursor: pointer;
}

/* Footer: single column on small screens */
@media (max-width: 480px) {
  .footer__bottom { gap: 8px; }
  .footer__credit { font-size: 0.75rem; }
}
