/* ───────────── Tokens ───────────── */
:root {
  --navy: #00264f;
  --yellow: #fcd939;

  --font-display: 'Bricolage Grotesque', system-ui, sans-serif;
  --font-body: 'Instrument Sans', system-ui, sans-serif;

  --gutter: clamp(20px, 5vw, 48px);
  --radius: 24px;
  --radius-sm: 14px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-in-out: cubic-bezier(0.7, 0, 0.2, 1);
}

:root[data-theme='dark'] {
  color-scheme: dark;
  --bg: #06101f;
  --bg-alt: #091729;
  --surface: #0d1f3a;
  --surface-2: #132a4c;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.22);
  --ink: #f2f6fc;
  --muted: #9bb0cc;
  --accent: var(--yellow);
  --accent-text: var(--yellow);
  --on-accent: var(--navy);
  --em-marker: transparent;
  --panel: #0b1c36;
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.7);
  --glow-a: rgba(252, 217, 57, 0.16);
  --glow-b: rgba(40, 120, 255, 0.22);
}

:root[data-theme='light'] {
  color-scheme: light;
  --bg: #f7f4ec;
  --bg-alt: #efeadd;
  --surface: #ffffff;
  --surface-2: #f3efe4;
  --line: rgba(0, 38, 79, 0.12);
  --line-strong: rgba(0, 38, 79, 0.28);
  --ink: #06182f;
  --muted: #4b5f7a;
  --accent: var(--yellow);
  --accent-text: var(--navy);
  --on-accent: var(--navy);
  --em-marker: var(--yellow);
  --panel: var(--navy);
  --shadow: 0 30px 70px -35px rgba(0, 38, 79, 0.35);
  --glow-a: rgba(252, 217, 57, 0.5);
  --glow-b: rgba(60, 140, 255, 0.2);
}

/* ───────────── Base ───────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.95rem + 0.2vw, 1.125rem);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
svg,
canvas {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
}

h1,
h2,
h3,
p,
ul,
ol,
figure,
blockquote,
address {
  margin: 0;
  padding: 0;
  font-style: normal;
}

ul,
ol {
  list-style: none;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1;
  text-wrap: balance;
}

h2 {
  font-size: clamp(2.2rem, 1.2rem + 4.4vw, 4.5rem);
}

h2 em,
h1 em {
  font-style: normal;
  color: var(--accent-text);
  background: linear-gradient(transparent 64%, var(--em-marker) 64%, var(--em-marker) 92%, transparent 92%);
}

:focus-visible {
  outline: 2px solid var(--accent-text);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection {
  background: var(--yellow);
  color: var(--navy);
}

.container {
  width: min(1240px, 100% - var(--gutter) * 2);
  margin-inline: auto;
}

.skip {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--yellow);
  color: var(--navy);
  border-radius: 10px;
  font-weight: 600;
  transform: translateY(-200%);
}

.skip:focus {
  transform: none;
}

.i {
  width: 1.15em;
  height: 1.15em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--yellow) 25%, transparent);
}

.link {
  color: var(--accent-text);
  font-weight: 600;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat;
  transition: background-size 0.4s var(--ease);
}

.link:hover {
  background-size: 100% 1.5px;
}

/* ───────────── Buttons ───────────── */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 650;
  font-size: 0.95rem;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
  transition:
    background-color 0.3s,
    border-color 0.3s,
    color 0.3s,
    box-shadow 0.3s;
  will-change: transform;
}

.btn--lg {
  padding: 17px 30px;
  font-size: 1.02rem;
}

.btn--primary {
  background: var(--yellow);
  color: var(--navy);
  box-shadow: 0 10px 30px -12px color-mix(in srgb, var(--yellow) 80%, transparent);
}

.btn--primary::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.75) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.7s var(--ease);
}

.btn--primary:hover::before {
  transform: translateX(120%);
}

.btn--primary .i {
  transition: transform 0.35s var(--ease);
}

.btn--primary:hover .i {
  transform: translateX(4px);
}

.btn--ghost {
  border: 1px solid var(--line-strong);
  color: var(--ink);
}

.btn--ghost:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}

.btn--dark {
  background: var(--navy);
  color: #fff;
}

.btn--dark:hover {
  box-shadow: 0 16px 40px -14px rgba(0, 38, 79, 0.8);
}

.btn[disabled] {
  opacity: 0.45;
  pointer-events: none;
}

/* ───────────── Progress + Nav ───────────── */
.progress {
  position: fixed;
  inset: 0 0 auto;
  height: 3px;
  z-index: 120;
  pointer-events: none;
}

.progress span {
  display: block;
  height: 100%;
  background: var(--yellow);
  transform-origin: 0 50%;
  transform: scaleX(0);
}

.nav {
  position: fixed;
  top: 14px;
  left: 0;
  right: 0;
  z-index: 100;
  transition: transform 0.5s var(--ease);
}

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

.nav__inner {
  width: min(1240px, 100% - 24px);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 10px 8px 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition:
    background-color 0.4s,
    border-color 0.4s,
    box-shadow 0.4s;
}

.nav.is-stuck .nav__inner {
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-color: var(--line);
  box-shadow: var(--shadow);
}

.nav__logo img {
  height: 46px;
  width: auto;
  transition: transform 0.4s var(--ease);
}

.nav__logo:hover img {
  transform: rotate(-3deg) scale(1.04);
}

.nav__links {
  display: flex;
  gap: 4px;
}

.nav__links a {
  position: relative;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 550;
  color: var(--muted);
  transition:
    color 0.25s,
    background-color 0.25s;
}

/* Top-level CMS menu labels stay on one line; very long labels are shortened, not wrapped. */
.nav__links > a,
.nav__item > a {
  max-width: 18em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav__links a:hover,
.nav__links a.is-active {
  color: var(--ink);
  background: color-mix(in srgb, var(--ink) 8%, transparent);
}

/* CMS menu items with children: link + toggle + dropdown */
.nav__item {
  position: relative;
  display: flex;
  align-items: center;
}

.nav__toggle {
  width: 28px;
  height: 28px;
  margin-left: -6px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--muted);
  transition:
    color 0.25s,
    background-color 0.25s;
}

.nav__toggle:hover,
.nav__toggle[aria-expanded='true'] {
  color: var(--ink);
  background: color-mix(in srgb, var(--ink) 8%, transparent);
}

.nav__toggle svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.4s var(--ease);
}

.nav__toggle[aria-expanded='true'] svg {
  transform: rotate(180deg);
}

.nav__sub {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  z-index: 5;
  min-width: 230px;
  display: grid;
  gap: 2px;
  padding: 8px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition:
    opacity 0.25s,
    transform 0.35s var(--ease),
    visibility 0s 0.35s;
}

/* Invisible bridge so the dropdown stays open while the pointer crosses the gap. */
.nav__sub::before {
  content: '';
  position: absolute;
  inset: -14px 0 auto;
  height: 14px;
}

.nav__item:not(.is-dismissed):hover .nav__sub,
.nav__item:not(.is-dismissed):focus-within .nav__sub,
.nav__toggle[aria-expanded='true'] + .nav__sub {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition:
    opacity 0.25s,
    transform 0.35s var(--ease),
    visibility 0s;
}

.nav__links .nav__sub a {
  padding: 10px 12px;
  border-radius: 10px;
  white-space: nowrap;
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.theme-toggle {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  transition:
    background-color 0.3s,
    transform 0.4s var(--ease);
}

.theme-toggle:hover {
  background: color-mix(in srgb, var(--ink) 8%, transparent);
  transform: rotate(18deg);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-toggle__sun,
.theme-toggle__moon {
  transform-origin: 12px 12px;
  transition:
    transform 0.6s var(--ease),
    opacity 0.3s;
}

[data-theme='dark'] .theme-toggle__sun,
[data-theme='light'] .theme-toggle__moon {
  opacity: 0;
  transform: rotate(-90deg) scale(0.3);
}

.nav__burger {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  place-items: center;
  place-content: center;
  gap: 6px;
}

.nav__burger span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.4s var(--ease);
}

.nav__burger[aria-expanded='true'] span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.nav__burger[aria-expanded='true'] span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

.menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 110px var(--gutter) 40px;
  background: var(--bg);
  clip-path: circle(0 at calc(100% - 46px) 46px);
  transition: clip-path 0.7s var(--ease-in-out);
}

.menu[hidden] {
  display: none;
}

.menu.is-open {
  clip-path: circle(150% at calc(100% - 46px) 46px);
}

.menu nav {
  display: grid;
  gap: 4px;
}

.menu nav a {
  font-family: var(--font-display);
  font-size: clamp(2rem, 9vw, 3rem);
  font-weight: 650;
  letter-spacing: -0.03em;
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
}

.menu nav a.is-active {
  color: var(--accent-text);
}

/* Child items from the CMS menu: smaller and indented under their parent */
.menu nav a.menu__child {
  font-size: clamp(1.15rem, 5vw, 1.5rem);
  font-weight: 600;
  padding: 8px 0 8px 22px;
  color: var(--muted);
  position: relative;
}

.menu nav a.menu__child::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 50%;
  width: 8px;
  height: 2px;
  border-radius: 2px;
  background: var(--yellow);
}

.menu nav a.menu__child.is-active {
  color: var(--ink);
}

/* ───────────── Hero ───────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 112px 0 190px;
  overflow: hidden;
}

.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.6s ease;
}

.hero__canvas.is-ready {
  opacity: 1;
}

.hero__glow {
  position: absolute;
  inset: -20% -10% 0;
  background:
    radial-gradient(40% 45% at 78% 30%, var(--glow-b), transparent 70%),
    radial-gradient(30% 35% at 15% 75%, var(--glow-a), transparent 70%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
}

.hero__title {
  margin: 16px 0 22px;
  font-size: clamp(3.1rem, min(1rem + 9.5vw, 15svh), 9rem);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.05em;
}

.line {
  display: block;
  overflow: hidden;
  padding-block: 0.06em;
  margin-block: -0.06em;
}

.line__in {
  display: inline-block;
  will-change: transform;
}

.hero__title mark {
  display: inline-block;
  padding: 0 0.14em 0.04em;
  margin-left: -0.06em;
  border-radius: 0.14em;
  background: var(--yellow);
  color: var(--navy);
  transform: rotate(-2deg);
}

.hero__lede {
  max-width: 34em;
  font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.3rem);
  color: var(--muted);
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin-top: 40px;
  font-size: 0.92rem;
  font-weight: 550;
  color: var(--muted);
}

.hero__trust li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero__trust li + li::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--line-strong);
  margin-right: 18px;
}

.stars {
  color: #f5b301;
  letter-spacing: 2px;
}

.hero__ridge {
  position: absolute;
  inset: auto 0 -1px;
  width: 100%;
  height: clamp(110px, 16vw, 220px);
  z-index: 1;
}

.ridge--far {
  fill: var(--surface);
  opacity: 0.7;
}

.ridge--near {
  fill: var(--bg-alt);
}

/* ───────────── Marquee ───────────── */
.marquee {
  background: var(--bg-alt);
  overflow: hidden;
  padding: 10px 0 34px;
}

.marquee__track {
  display: flex;
  align-items: center;
  gap: 36px;
  width: max-content;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 1rem + 3vw, 3.4rem);
  font-weight: 650;
  letter-spacing: -0.03em;
  white-space: nowrap;
  will-change: transform;
}

.marquee__track span:nth-of-type(even) {
  color: transparent;
  -webkit-text-stroke: 1.2px var(--line-strong);
}

.marquee__track i {
  font-style: normal;
  font-size: 0.5em;
  color: var(--yellow);
}

/* ───────────── Stats ───────────── */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-top: clamp(48px, 7vw, 96px);
}

.stat {
  padding: clamp(24px, 3vw, 40px) clamp(16px, 2vw, 32px);
  display: grid;
  gap: 10px;
  align-content: start;
}

.stat + .stat {
  border-left: 1px solid var(--line);
}

.stat strong {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 1.5rem + 4vw, 4.6rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 0.9;
  font-variant-numeric: tabular-nums;
}

.stat > span {
  font-size: 0.92rem;
  color: var(--muted);
  max-width: 18em;
}

/* ───────────── Sections ───────────── */
.section {
  padding: clamp(80px, 11vw, 160px) 0;
}

.section--alt {
  background: var(--bg-alt);
}

.section__head {
  display: grid;
  gap: 22px;
  max-width: 58rem;
  margin-bottom: clamp(36px, 5vw, 64px);
}

.section__sub {
  max-width: 36em;
  color: var(--muted);
  font-size: 1.08em;
}

/* ───────────── Services ───────────── */
.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.card {
  --mx: 50%;
  --my: 50%;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 300px;
  padding: 28px;
  text-align: left;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
  isolation: isolate;
  transition:
    transform 0.5s var(--ease),
    border-color 0.3s,
    box-shadow 0.5s;
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(420px circle at var(--mx) var(--my), color-mix(in srgb, var(--yellow) 26%, transparent), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
}

.card:hover,
.card:focus-visible {
  transform: translateY(-6px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}

.card:hover::before {
  opacity: 1;
}

.card--wide {
  grid-column: span 2;
}

.card--full {
  grid-column: 1 / -1;
  min-height: 0;
  flex-direction: row;
  align-items: center;
  flex-wrap: wrap;
  background: var(--panel);
  color: #fff;
  border-color: transparent;
}

.card--full .card__short {
  color: rgba(255, 255, 255, 0.72);
}

.card--full .card__body {
  flex: 1 1 320px;
}

.card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.card__icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--yellow);
  color: var(--navy);
  transition: transform 0.6s var(--ease);
}

.card__icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card:hover .card__icon {
  transform: rotate(-8deg) scale(1.08);
}

.card__tag {
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid currentColor;
  opacity: 0.8;
}

.card__n {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.card__body {
  display: grid;
  gap: 10px;
  margin-top: auto;
}

.card h3 {
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2.1rem);
}

.card__short {
  color: var(--muted);
  max-width: 30em;
}

.card__more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 650;
  font-size: 0.92rem;
  color: var(--accent-text);
}

.card--full .card__more {
  color: var(--yellow);
}

.card__more .i {
  transition: transform 0.4s var(--ease);
}

.card:hover .card__more .i {
  transform: translateX(6px);
}

.card__ghost {
  position: absolute;
  right: -30px;
  bottom: -30px;
  width: 220px;
  height: 220px;
  z-index: -1;
  fill: none;
  stroke: var(--line);
  stroke-width: 0.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.9s var(--ease);
}

.card:hover .card__ghost {
  transform: rotate(-10deg) scale(1.08);
}

.card--full .card__ghost {
  stroke: rgba(255, 255, 255, 0.12);
}

/* ───────────── Sheet (service detail) ───────────── */
.sheet {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  overflow: hidden;
}

.sheet::backdrop {
  background: rgba(3, 10, 22, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.sheet__panel {
  position: absolute;
  inset: 0 0 0 auto;
  width: min(560px, 100%);
  padding: clamp(24px, 4vw, 44px);
  background: var(--bg);
  border-left: 1px solid var(--line);
  overflow-y: auto;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.sheet__close {
  align-self: flex-end;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: grid;
  place-items: center;
  transition:
    transform 0.4s var(--ease),
    background-color 0.3s;
}

.sheet__close:hover {
  transform: rotate(90deg);
  background: color-mix(in srgb, var(--ink) 8%, transparent);
}

.sheet h2 {
  font-size: clamp(2rem, 1.4rem + 2.6vw, 3.2rem);
}

.sheet__lead {
  font-size: 1.15em;
  font-weight: 550;
}

.sheet__body {
  color: var(--muted);
}

.sheet__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  padding-top: 12px;
}

.ticks {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.ticks li {
  position: relative;
  padding-left: 34px;
}

.ticks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.2em;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300264f' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E")
      center / 14px no-repeat,
    var(--yellow);
}

.sheet .ticks {
  margin-top: 0;
}

/* ───────────── Why / Scrub demo ───────────── */
.why {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
}

.why__copy {
  display: grid;
  gap: 22px;
}

.why__copy .ticks {
  margin-top: 6px;
}

.scrub__stage {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  cursor: none;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.scrub__stage canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.scrub__wand {
  position: absolute;
  left: 0;
  top: 0;
  width: 92px;
  height: 92px;
  margin: -46px 0 0 -46px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow:
    0 0 0 1px rgba(0, 38, 79, 0.5),
    0 8px 30px rgba(0, 0, 0, 0.35),
    inset 0 0 24px rgba(255, 255, 255, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.scrub__stage.is-active .scrub__wand {
  opacity: 1;
}

.scrub__hint {
  position: absolute;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 999px;
  background: rgba(0, 38, 79, 0.86);
  color: #fff;
  font-weight: 650;
  pointer-events: none;
  animation: nudge 2.4s var(--ease-in-out) infinite;
  transition: opacity 0.4s;
}

.scrub__hint.is-gone {
  opacity: 0;
}

@keyframes nudge {
  0%,
  100% {
    transform: translateX(-10px);
  }
  50% {
    transform: translateX(10px);
  }
}

.scrub__bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 18px;
  font-size: 0.92rem;
}

.scrub__meter {
  flex: 1 1 140px;
  height: 8px;
  border-radius: 99px;
  background: var(--line);
  overflow: hidden;
}

.scrub__meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--yellow);
  transform-origin: 0 50%;
  transform: scaleX(0);
  transition: transform 0.4s var(--ease);
}

.scrub__bar output {
  min-width: 6.5em;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.scrub__note {
  margin-top: 8px;
  font-size: 0.82rem;
  color: var(--muted);
}

/* ───────────── Calculator ───────────── */
.calc {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, 1fr);
  gap: 16px;
  align-items: start;
}

.calc__main {
  padding: clamp(20px, 3vw, 36px);
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}

.calc__tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 28px;
}

.calc__tab {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 0 14px;
  font-weight: 650;
  font-size: 0.9rem;
  color: var(--muted);
  border-bottom: 2px solid var(--line);
  position: relative;
  text-align: left;
  transition: color 0.3s;
}

.calc__tab::after {
  content: '';
  position: absolute;
  inset: auto 0 -2px;
  height: 2px;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.6s var(--ease);
}

.calc__tab.is-done::after,
.calc__tab.is-current::after {
  transform: scaleX(1);
}

.calc__tab.is-current,
.calc__tab.is-done {
  color: var(--ink);
}

.calc__tab b {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  font-size: 0.78rem;
  transition:
    background-color 0.3s,
    color 0.3s,
    border-color 0.3s;
}

.calc__tab.is-current b,
.calc__tab.is-done b {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--navy);
}

.calc__step > h3 {
  font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem);
  margin-bottom: 6px;
}

.calc__step > p {
  color: var(--muted);
  margin-bottom: 22px;
}

.calc__label {
  display: block;
  margin: 26px 0 12px;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.chips {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}

.chip {
  position: relative;
  display: grid;
  gap: 2px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  text-align: left;
  transition:
    border-color 0.25s,
    background-color 0.25s,
    transform 0.3s var(--ease);
}

.chip:hover {
  transform: translateY(-2px);
  border-color: var(--ink);
}

.chip:active {
  transform: scale(0.97);
}

.chip strong {
  font-weight: 650;
  font-size: 0.98rem;
}

.chip small {
  color: var(--muted);
  font-size: 0.8rem;
}

.chip::after {
  content: '';
  position: absolute;
  top: 12px;
  right: 12px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid var(--line-strong);
  background: center / 12px no-repeat;
  transition:
    background-color 0.25s,
    border-color 0.25s,
    transform 0.4s var(--ease);
}

.chip[aria-pressed='true'],
.chip[aria-checked='true'] {
  border-color: var(--yellow);
  background: color-mix(in srgb, var(--yellow) 22%, transparent);
  box-shadow: inset 0 0 0 1px var(--yellow);
}

.chip[aria-pressed='true']::after,
.chip[aria-checked='true']::after {
  border-color: var(--yellow);
  background-color: var(--yellow);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300264f' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E");
  transform: scale(1.1);
}

.config {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.config__group {
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  padding: 6px 18px;
}

.config__title {
  padding: 12px 0 4px;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 1.05rem;
}

.field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
}

.field + .field {
  border-top: 1px solid var(--line);
}

.field__label {
  display: grid;
  line-height: 1.3;
}

.field__label small {
  color: var(--muted);
  font-size: 0.82rem;
}

.stepper {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
}

.stepper button {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1;
  transition:
    background-color 0.2s,
    color 0.2s,
    transform 0.2s;
}

.stepper button:hover {
  background: var(--yellow);
  color: var(--navy);
}

.stepper button:active {
  transform: scale(0.88);
}

.stepper output {
  min-width: 2.2em;
  text-align: center;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.field--range {
  flex-wrap: wrap;
}

.field--range output {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.range {
  --fill: 0%;
  flex: 1 1 100%;
  appearance: none;
  -webkit-appearance: none;
  height: 28px;
  background: transparent;
  cursor: pointer;
}

.range::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 99px;
  background: linear-gradient(to right, var(--yellow) var(--fill), var(--line-strong) var(--fill));
}

.range::-moz-range-track {
  height: 6px;
  border-radius: 99px;
  background: linear-gradient(to right, var(--yellow) var(--fill), var(--line-strong) var(--fill));
}

.range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  margin-top: -9px;
  border-radius: 50%;
  background: var(--yellow);
  border: 4px solid var(--navy);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s;
}

.range::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--yellow);
  border: 4px solid var(--navy);
}

.range:active::-webkit-slider-thumb {
  transform: scale(1.2);
}

.inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.input {
  position: relative;
  display: block;
}

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

.input input,
.input textarea {
  width: 100%;
  padding: 24px 16px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: transparent;
  transition:
    border-color 0.25s,
    box-shadow 0.25s;
}

.input textarea {
  min-height: 110px;
  resize: vertical;
}

.input span {
  position: absolute;
  left: 17px;
  top: 17px;
  color: var(--muted);
  pointer-events: none;
  transform-origin: 0 0;
  transition: transform 0.25s var(--ease);
}

.input input:focus,
.input textarea:focus {
  outline: 0;
  border-color: var(--yellow);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--yellow) 30%, transparent);
}

.input input:focus + span,
.input input:not(:placeholder-shown) + span,
.input textarea:focus + span,
.input textarea:not(:placeholder-shown) + span,
.input input[type='date'] + span {
  transform: translateY(-11px) scale(0.76);
}

.input.is-invalid input {
  border-color: #e5484d;
}

.calc__error {
  min-height: 1.5em;
  margin-top: 14px;
  color: #e5484d;
  font-weight: 600;
  font-size: 0.9rem;
}

[data-theme='dark'] .calc__error,
[data-theme='dark'] .input.is-invalid input {
  color: #ff8589;
  border-color: #ff8589;
}

.calc__nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
}

.calc__side {
  position: sticky;
  top: 100px;
  padding: clamp(22px, 3vw, 32px);
  border-radius: var(--radius);
  background: var(--panel);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
  overflow: hidden;
  isolation: isolate;
}

.calc__side::before {
  content: '';
  position: absolute;
  right: -80px;
  top: -80px;
  width: 240px;
  height: 240px;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(252, 217, 57, 0.28), transparent 70%);
}

.calc__side h3 {
  font-size: 0.78rem;
  font-family: var(--font-body);
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.total {
  margin: 14px 0 4px;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 1.6rem + 2.6vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--yellow);
}

.total small {
  font-size: 0.45em;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0;
  font-weight: 500;
}

.total__note {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

.lines {
  display: grid;
  margin: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.lines li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.93rem;
}

.lines li span:last-child {
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.lines .is-empty {
  color: rgba(255, 255, 255, 0.55);
  justify-content: flex-start;
}

.lines .is-meta {
  color: rgba(255, 255, 255, 0.7);
}

.calc__fine {
  font-size: 0.8rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.58);
}

.calc__fine a {
  color: var(--yellow);
  font-weight: 650;
}

.calc__done {
  display: grid;
  gap: 16px;
  justify-items: start;
  padding: clamp(8px, 2vw, 24px) 0;
}

.calc__done h3 {
  font-size: clamp(1.8rem, 1.3rem + 2vw, 2.8rem);
}

.calc__done p {
  color: var(--muted);
  max-width: 34em;
}

.check {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--yellow);
  display: grid;
  place-items: center;
}

.check svg {
  width: 36px;
  height: 36px;
  fill: none;
  stroke: var(--navy);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 30;
  stroke-dashoffset: 30;
  animation: draw 0.6s 0.25s var(--ease) forwards;
}

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

/* ───────────── Process ───────────── */
.steps {
  --p: 0;
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 3vw, 40px);
  padding-top: 44px;
}

.steps::before,
.steps::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 7px;
  height: 2px;
  background: var(--line);
}

.steps::after {
  background: var(--yellow);
  transform-origin: 0 50%;
  transform: scaleX(var(--p));
}

.step {
  position: relative;
  display: grid;
  gap: 12px;
  align-content: start;
  opacity: 0.4;
  transition: opacity 0.6s;
}

.step::before {
  content: '';
  position: absolute;
  top: -44px;
  left: 0;
  width: 16px;
  height: 16px;
  z-index: 1;
  border-radius: 50%;
  background: var(--bg-alt);
  border: 2px solid var(--line-strong);
  transition:
    background-color 0.4s,
    border-color 0.4s,
    box-shadow 0.4s;
}

.step.is-on {
  opacity: 1;
}

.step.is-on::before {
  background: var(--yellow);
  border-color: var(--yellow);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--yellow) 25%, transparent);
}

.step__n {
  font-family: var(--font-display);
  font-size: clamp(3rem, 2rem + 3vw, 4.6rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 0.9;
  color: transparent;
  -webkit-text-stroke: 1.2px var(--line-strong);
  transition:
    color 0.5s,
    -webkit-text-stroke-color 0.5s;
}

.step.is-on .step__n {
  color: var(--accent-text);
  -webkit-text-stroke-color: transparent;
}

.step h3 {
  font-size: 1.35rem;
}

.step p {
  color: var(--muted);
  font-size: 0.98rem;
}

/* ───────────── About ───────────── */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 7vw, 110px);
  align-items: center;
}

.about__media {
  position: relative;
  aspect-ratio: 1 / 1.08;
}

.photo {
  position: absolute;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}

.photo:hover img {
  transform: scale(1.05);
}

.photo--a {
  inset: 0 16% 22% 0;
}

.photo--b {
  inset: 52% 0 0 38%;
  border: 6px solid var(--bg);
}

.badge {
  position: absolute;
  left: 4%;
  bottom: 6%;
  width: 150px;
  aspect-ratio: 1;
  display: grid;
  place-content: center;
  text-align: center;
  gap: 4px;
  padding: 16px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--navy);
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1.25;
  rotate: -10deg;
  box-shadow: var(--shadow);
}

.badge strong {
  font-family: var(--font-display);
  font-size: 1.7rem;
  letter-spacing: -0.03em;
  line-height: 1;
}

.about__copy {
  display: grid;
  gap: 20px;
}

.about__copy > p:not(.eyebrow) {
  color: var(--muted);
}

.community {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 18px;
  align-items: center;
  padding: 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface);
}

.community img {
  border-radius: 10px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.community figcaption {
  font-size: 0.93rem;
  font-weight: 550;
}

.about__copy > .aside {
  font-size: 0.9rem;
  padding-left: 16px;
  border-left: 2px solid var(--yellow);
}

/* ───────────── Reviews ───────────── */
.reviews {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 16px;
}

.reviews__score,
.pledge {
  padding: clamp(28px, 4vw, 56px);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
}

.reviews__score {
  display: grid;
  justify-items: start;
  gap: 4px;
}

.bigstars {
  display: flex;
  gap: 6px;
  font-size: clamp(1.6rem, 1rem + 2vw, 2.4rem);
  color: #f5b301;
  line-height: 1;
}

.bigstars span {
  display: inline-block;
}

.reviews__n {
  margin-top: 14px;
  font-family: var(--font-display);
  font-size: clamp(5rem, 3rem + 9vw, 10rem);
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 0.85;
  font-variant-numeric: tabular-nums;
}

.reviews__label {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem);
  font-weight: 650;
  letter-spacing: -0.03em;
}

.reviews__sub {
  margin-top: 8px;
  color: var(--muted);
  max-width: 24em;
}

.reviews__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.pledge {
  display: flex;
  flex-direction: column;
  gap: 24px;
  background: var(--panel);
  color: #fff;
  border-color: transparent;
}

.pledge .eyebrow {
  color: rgba(255, 255, 255, 0.65);
}

.pledge__text {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1rem + 2.1vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.12;
  text-wrap: pretty;
}

.pledge footer {
  margin-top: auto;
  font-weight: 600;
  color: var(--yellow);
}

/* ───────────── Emergency ───────────── */
.emergency {
  background:
    repeating-linear-gradient(-45deg, transparent 0 22px, rgba(0, 38, 79, 0.06) 22px 44px),
    var(--yellow);
  color: var(--navy);
  padding: clamp(48px, 6vw, 84px) 0;
}

.emergency__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 28px;
}

.emergency h2 {
  font-size: clamp(2rem, 1.2rem + 3.6vw, 3.8rem);
  margin: 12px 0;
}

.emergency p {
  max-width: 36em;
  font-weight: 500;
}

.emergency__tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pulse {
  position: relative;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d92d20;
}

.pulse::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: inherit;
  animation: pulse 1.6s ease-out infinite;
}

@keyframes pulse {
  to {
    transform: scale(3.4);
    opacity: 0;
  }
}

/* ───────────── FAQ ───────────── */
.faq {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(24px, 6vw, 88px);
  align-items: start;
}

.faq .section__head {
  position: sticky;
  top: 120px;
  margin: 0;
}

.faq__item {
  border-bottom: 1px solid var(--line);
}

.faq__item:first-child {
  border-top: 1px solid var(--line);
}

.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 0;
  text-align: left;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1rem + 0.6vw, 1.45rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.faq__q i {
  position: relative;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  transition:
    background-color 0.3s,
    border-color 0.3s,
    transform 0.5s var(--ease);
}

.faq__q i::before,
.faq__q i::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 2px;
  margin: -1px 0 0 -6px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.5s var(--ease);
}

.faq__q i::after {
  transform: rotate(90deg);
}

.faq__q[aria-expanded='true'] i {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--navy);
  transform: rotate(180deg);
}

.faq__q[aria-expanded='true'] i::after {
  transform: rotate(0);
}

.faq__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.5s var(--ease);
}

.faq__a > div {
  overflow: hidden;
}

.faq__a p {
  padding: 0 56px 26px 0;
  color: var(--muted);
}

.faq__q[aria-expanded='true'] + .faq__a {
  grid-template-rows: 1fr;
}

/* ───────────── Footer ───────────── */
.footer {
  background: var(--bg-alt);
  padding: clamp(72px, 10vw, 140px) 0 110px;
  border-top: 1px solid var(--line);
}

.footer__cta {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
  padding-bottom: clamp(48px, 7vw, 88px);
  border-bottom: 1px solid var(--line);
}

.footer__cta h2 {
  font-size: clamp(2.8rem, 1rem + 8vw, 7.5rem);
  line-height: 0.92;
}

.footer__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 32px;
  padding: clamp(40px, 5vw, 64px) 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.footer__grid > div {
  display: grid;
  gap: 12px;
  align-content: start;
  justify-items: start;
}

.footer__grid h3 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
}

.footer__grid p {
  max-width: 28em;
}

.footer__logo {
  height: 64px;
  width: auto;
}

.open {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 650;
  color: var(--ink);
}

.open::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #8a94a3;
}

.open.is-open::before {
  background: #2fbf71;
  box-shadow: 0 0 0 4px rgba(47, 191, 113, 0.25);
}

.footer__base {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--muted);
}

/* ───────────── Mobile dock ───────────── */
.dock {
  display: none;
}

/* ───────────── Theme switch transition ───────────── */
::view-transition-old(root),
::view-transition-new(root) {
  animation: none;
  mix-blend-mode: normal;
}

/* ───────────── Responsive ───────────── */
@media (max-width: 1000px) {
  .nav__links,
  .nav__phone span {
    display: none;
  }

  .nav__phone {
    width: 44px;
    height: 44px;
    padding: 0;
  }

  .nav__burger {
    display: grid;
  }

  .services {
    grid-template-columns: repeat(2, 1fr);
  }

  .card--wide {
    grid-column: 1 / -1;
  }

  .why,
  .about,
  .reviews,
  .faq,
  .calc {
    grid-template-columns: 1fr;
  }

  .faq .section__head {
    position: static;
  }

  /* Stays positioned so its decorative glow is still clipped. */
  .calc__side {
    position: relative;
    top: 0;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat:nth-child(3) {
    border-left: 0;
  }

  .stat:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .steps {
    grid-template-columns: 1fr;
    padding: 0 0 0 44px;
    gap: 36px;
  }

  .steps::before,
  .steps::after {
    left: 7px;
    right: auto;
    top: 0;
    bottom: 0;
    width: 2px;
    height: auto;
  }

  .steps::after {
    transform-origin: 50% 0;
    transform: scaleY(var(--p));
  }

  .step::before {
    top: 6px;
    left: -44px;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .about__media {
    max-width: 560px;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 120px 0 150px;
  }

  .hero__trust li + li::before {
    display: none;
  }

  .services {
    grid-template-columns: 1fr;
  }

  .card {
    min-height: 240px;
  }

  .inputs {
    grid-template-columns: 1fr;
  }

  .calc__tab span {
    display: none;
  }

  .community {
    grid-template-columns: 96px 1fr;
  }

  .footer__grid {
    grid-template-columns: 1fr;
  }

  .dock {
    position: fixed;
    inset: auto 12px 12px;
    z-index: 80;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 8px;
    padding: 8px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--bg) 82%, transparent);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    transform: translateY(160%);
    transition: transform 0.5s var(--ease);
  }

  .dock.is-shown {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ───────────── Late additions ───────────── */
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.card {
  cursor: pointer;
}

.card:focus-within {
  border-color: var(--line-strong);
}

/* Stretch the "Details" button over the whole card so the card is one target. */
.card__more::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
}

.card__more:focus-visible {
  outline: 0;
}

.card__more:focus-visible::after {
  outline: 2px solid var(--accent-text);
  outline-offset: -4px;
}

.faq__item h3 {
  font: inherit;
  letter-spacing: 0;
}

.lines small {
  font-size: 0.82rem;
}

/* Grid children must be allowed to shrink below their content width. */
.calc > *,
.why > *,
.about > *,
.reviews > *,
.faq > * {
  min-width: 0;
}

/* Calculator fallback when JavaScript is off */
.calc__noscript {
  grid-column: 1 / -1;
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
}

.calc__error a {
  color: inherit;
}
