/* ==========================================================================
   FRESHLYX — styles.css
   Mobile-first. Breakpoints: 560 / 768 / 900 / 1100.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --navy-950: #0B1528;
  --navy-900: #12213D;
  --navy-700: #1E3A5F;
  --steel:    #7FA0C4;
  --steel-ink: #4E6E92;   /* steel darkened for small text on light backgrounds (AA) */
  --bone:     #F7F6F3;
  --white:    #FFFFFF;

  --ink:        #12213D;
  --muted:      #5C6A80;
  --line-dark:  rgba(127, 160, 196, 0.22);
  --line-light: rgba(18, 33, 61, 0.12);
  --error:      #A9472A;

  --font-display: "Inter Tight", "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-body:    "Manrope", "Inter", "Helvetica Neue", Arial, sans-serif;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --nav-h: 64px;
  --container: 1200px;
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --section: clamp(5rem, 12vw, 9rem);
  --radius: 10px;
}

@media (min-width: 768px) {
  :root { --nav-h: 76px; }
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: var(--nav-h);
  overflow-x: clip;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bone);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

body.menu-open { overflow: hidden; }

img, svg, video { display: block; max-width: 100%; }
[hidden] { display: none !important; }
img { height: auto; }

h1, h2, h3, p, ul, ol, figure, fieldset, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
fieldset { padding: 0; border: 0; min-width: 0; }
legend { padding: 0; }
button { font: inherit; color: inherit; }
a { color: inherit; }

.icon {
  width: 1.25em;
  height: 1.25em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 1rem; top: -100px;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--white); color: var(--navy-900);
  border-radius: 4px;
  font-weight: 600;
  transition: top 0.2s;
}
.skip-link:focus { top: 1rem; }

:focus-visible {
  outline: 2px solid var(--steel);
  outline-offset: 3px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
}

.section { padding-block: var(--section); }

/* ---------- Typography ---------- */
.eyebrow {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--steel-ink);
  margin-bottom: 1.25rem;
}

/* On the dark sections the lighter steel has plenty of contrast. */
.package .eyebrow,
.results .eyebrow,
.reviews .eyebrow { color: var(--steel); }

.h2 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.1rem, 6.2vw, 3.6rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  max-width: 18ch;
  text-wrap: balance;
}

.h2 em, .hero__title em { font-style: normal; font-weight: 600; }

.lead {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--muted);
  max-width: 52ch;
  margin-top: 1.5rem;
}

.section__head { margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.section__head .lead { margin-top: 1.25rem; }

@media (min-width: 768px) {
  body { font-size: 1.0625rem; }
  .lead { font-size: 1.125rem; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 54px;
  padding: 0 1.75rem;
  border-radius: 3px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.4s var(--ease), background-color 0.3s, border-color 0.3s, color 0.3s, opacity 0.3s;
}

.btn--light { background: var(--white); color: var(--navy-900); border-color: var(--white); }
.btn--dark  { background: var(--navy-900); color: var(--white); border-color: var(--navy-900); }
.btn--ghost { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, 0.45); }
.btn--sm    { min-height: 42px; padding: 0 1.15rem; font-size: 0.68rem; }

@media (hover: hover) {
  .btn:hover { transform: translateY(-2px); }
  .btn--light:hover { background: var(--bone); border-color: var(--bone); }
  .btn--dark:hover  { background: var(--navy-700); border-color: var(--navy-700); }
  .btn--ghost:hover { border-color: var(--white); }
}

.btn:disabled { opacity: 0.6; cursor: default; transform: none; }

/* ---------- Reveal motion ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  will-change: opacity, transform;
}

/* An animation rather than a transition: a hover transition on .card would
   otherwise override the fade and drop the stagger delay. fill-mode backwards
   hands styling back to the element once the reveal has finished. */
.reveal.is-visible {
  opacity: 1;
  transform: none;
  will-change: auto;
  animation: reveal-rise 0.9s var(--ease) var(--delay, 0ms) backwards;
}

@keyframes reveal-rise {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}

/* ==========================================================================
   NAV
   ========================================================================== */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--nav-h);
  color: var(--white);
  transition: background-color 0.5s var(--ease), box-shadow 0.5s var(--ease);
  background: transparent;
}

.nav::before {
  content: "";
  position: absolute; inset: 0 0 -40px 0;
  background: linear-gradient(to bottom, rgba(11, 21, 40, 0.55), rgba(11, 21, 40, 0));
  opacity: 1;
  transition: opacity 0.5s var(--ease);
  pointer-events: none;
}

/* The solid bar is painted by ::after, never by a filter on .nav itself:
   a backdrop-filter on .nav makes it the containing block for the
   position: fixed mobile menu, collapsing that menu to the height of the bar. */
.nav::after {
  content: "";
  position: absolute; inset: 0;
  z-index: -1;
  background: rgba(18, 33, 61, 0.96);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
  pointer-events: none;
}
.nav--solid { box-shadow: 0 1px 0 var(--line-dark); }
.nav--solid::after { opacity: 1; }
.nav--solid::before { opacity: 0; }
.nav--menu { box-shadow: none; }
.nav--menu::after { opacity: 0; }

@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .nav::after { background: rgba(18, 33, 61, 0.86); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
}

.nav__inner {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

@media (min-width: 900px) {
  .nav__inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1.5rem;
  }
  .nav__actions { justify-self: end; }
}

.nav__logo {
  display: block;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), visibility 0s linear 0.5s;
  pointer-events: none;
}
.nav__logo img { width: auto; height: 30px; }
.nav--solid .nav__logo, .nav--menu .nav__logo {
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
  transition-delay: 0s;
}

.nav__links { display: none; }

.nav__actions { display: flex; align-items: center; gap: 0.75rem; }
.nav__phone, .nav__cta { display: none; }

.nav__phone-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: var(--white);
}
.nav__phone-icon .icon { width: 1.1rem; height: 1.1rem; }

.nav__toggle {
  position: relative;
  width: 44px; height: 44px;
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  background: none; border: 0; padding: 0; cursor: pointer;
}
.nav__toggle-bar {
  display: block; width: 22px; height: 1.5px;
  background: currentColor;
  transition: transform 0.4s var(--ease), opacity 0.3s;
}
.nav--menu .nav__toggle-bar:nth-child(1) { transform: translateY(3.75px) rotate(45deg); }
.nav--menu .nav__toggle-bar:nth-child(2) { transform: translateY(-3.75px) rotate(-45deg); }

/* Mobile menu panel */
.menu {
  position: fixed;
  inset: 0;
  z-index: -1;
  padding-top: var(--nav-h);
  background: var(--navy-950);
  display: flex; flex-direction: column; justify-content: space-between;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.4s var(--ease), transform 0.5s var(--ease), visibility 0s linear 0.4s;
  visibility: hidden;
}
.menu[hidden] { display: flex; }
.nav--menu .menu { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }

.menu__links { display: flex; flex-direction: column; padding-top: 1.5rem; }
.menu__links a {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.7rem, 7vw, 2.4rem);
  letter-spacing: -0.01em;
  line-height: 1.1;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line-dark);
  text-decoration: none;
  color: var(--white);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s var(--ease), transform 0.6s var(--ease);
}
.nav--menu .menu__links a { opacity: 1; transform: none; }
.nav--menu .menu__links a:nth-child(1) { transition-delay: 0.08s; }
.nav--menu .menu__links a:nth-child(2) { transition-delay: 0.13s; }
.nav--menu .menu__links a:nth-child(3) { transition-delay: 0.18s; }
.nav--menu .menu__links a:nth-child(4) { transition-delay: 0.23s; }
.nav--menu .menu__links a:nth-child(5) { transition-delay: 0.28s; }
.nav--menu .menu__links a:nth-child(6) { transition-delay: 0.33s; }

.menu__footer {
  display: flex; flex-direction: column; gap: 1.25rem;
  padding-top: 2rem;
  padding-bottom: max(2rem, env(safe-area-inset-bottom));
}
.menu__footer .btn { width: 100%; }
.menu__phone {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.04em;
}

@media (min-width: 900px) {
  .nav__logo img { height: 34px; }

  .nav__links {
    display: flex;
    gap: 2.25rem;
    justify-content: center;
  }
  .nav__links a {
    white-space: nowrap;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.85);
    padding: 0.5rem 0;
    position: relative;
  }
  .nav__links a::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0;
    height: 1px; background: var(--steel);
    transform: scaleX(0); transform-origin: left;
    transition: transform 0.4s var(--ease);
  }
  .nav__links a:hover::after, .nav__links a:focus-visible::after { transform: scaleX(1); }

  .nav__cta { display: inline-flex; }
  .nav__toggle, .menu { display: none; }
  .nav__actions { gap: 1rem; }
  .nav__links { gap: 1.5rem; }
}

/* 900-1199px keeps the compact phone button; the full number appears only
   once the bar is wide enough to hold it without crowding the links. */
@media (min-width: 1200px) {
  .nav__links { gap: 2.25rem; }
  .nav__actions { gap: 1.5rem; }
  .nav__phone-icon { display: none; }
  .nav__phone {
    display: inline-flex; align-items: center; gap: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 0.9rem; font-weight: 600; letter-spacing: 0.02em;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
  }
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: calc(var(--nav-h) + 3rem) 0 6.5rem;
  background: var(--navy-950);
  color: var(--white);
  text-align: center;
}

.hero__media {
  position: absolute; inset: 0;
  z-index: -2;
  will-change: transform;
}

.hero__poster, .hero__video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}

.hero__video { display: none; opacity: 0; transition: opacity 1.2s var(--ease); }
.hero__video.is-playing { opacity: 1; }

@media (min-width: 768px) {
  .hero__video { display: block; }
}

.hero__scrim {
  position: absolute; inset: 0;
  z-index: -1;
  background:
    radial-gradient(120% 80% at 50% 100%, rgba(11, 21, 40, 0.55) 0%, rgba(11, 21, 40, 0) 60%),
    linear-gradient(180deg, rgba(11, 21, 40, 0.58) 0%, rgba(18, 33, 61, 0.28) 45%, rgba(11, 21, 40, 0.92) 100%);
}

.hero__content {
  display: flex; flex-direction: column; align-items: center;
  will-change: transform, opacity;
}

.hero__logo {
  width: clamp(190px, 52vw, 300px);
  height: auto;
  margin-bottom: clamp(2rem, 6vw, 3.25rem);
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.6rem, 9.2vw, 5.9rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  max-width: 14ch;
  text-wrap: balance;
}

.hero__sub {
  margin-top: 1.5rem;
  max-width: 40ch;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.82);
  text-wrap: pretty;
}

.hero__actions {
  display: flex; flex-direction: column; align-items: stretch; gap: 0.75rem;
  width: min(100%, 340px);
  margin-top: 2.25rem;
}

@media (min-width: 560px) {
  .hero__actions { flex-direction: row; width: auto; justify-content: center; gap: 1rem; }
  .hero__sub { font-size: 1.125rem; max-width: 46ch; }
}

/* Entrance: the hero content rises once on load */
.hero__logo, .hero__title, .hero__sub, .hero__actions {
  opacity: 0;
  transform: translateY(20px);
  animation: rise 1.1s var(--ease) forwards;
}
.hero__title   { animation-delay: 0.15s; }
.hero__sub     { animation-delay: 0.3s; }
.hero__actions { animation-delay: 0.45s; }

@keyframes rise {
  to { opacity: 1; transform: none; }
}

/* Pause control for the looping hero video (only shown once it plays) */
.hero__videotoggle {
  position: absolute;
  right: max(1.25rem, env(safe-area-inset-right));
  bottom: max(1.5rem, env(safe-area-inset-bottom));
  width: 42px; height: 42px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(11, 21, 40, 0.3);
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  padding: 0;
  transition: border-color 0.3s, background-color 0.3s, color 0.3s;
}
.hero__videotoggle .icon { width: 1rem; height: 1rem; stroke-width: 1.8; }
.hero__videotoggle .icon use[href="#i-play"] { fill: currentColor; stroke: none; }
@media (hover: hover) {
  .hero__videotoggle:hover { border-color: rgba(255, 255, 255, 0.7); color: var(--white); }
}

/* Scroll cue */
.scroll-cue {
  position: absolute; left: 50%; bottom: max(1.5rem, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.75rem;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.7);
  opacity: 0;
  animation: fade 1.2s var(--ease) 1.1s forwards;
}
.scroll-cue__label { font-size: 0.6rem; letter-spacing: 0.34em; text-transform: uppercase; font-weight: 600; }
.scroll-cue__line {
  position: relative; width: 1px; height: 46px;
  background: rgba(255, 255, 255, 0.25);
  overflow: hidden;
}
.scroll-cue__line::after {
  content: ""; position: absolute; left: 0; top: 0;
  width: 100%; height: 40%;
  background: var(--white);
  animation: cue 2.4s var(--ease) infinite;
}
@keyframes cue {
  0%   { transform: translateY(-100%); }
  60%  { transform: translateY(260%); }
  100% { transform: translateY(260%); }
}
@keyframes fade { to { opacity: 1; } }

/* ==========================================================================
   TRUST STRIP
   ========================================================================== */
.trust {
  background: var(--navy-900);
  color: var(--white);
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}

.trust__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 1rem;
  padding-block: 1.1rem;
}

.trust__item {
  display: flex; align-items: center; gap: 0.6rem;
  font-size: 0.64rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
}
.trust__item .icon { width: 1.05rem; height: 1.05rem; color: var(--steel); }

@media (min-width: 768px) {
  .trust__list { grid-template-columns: repeat(4, 1fr); padding-block: 1.25rem; }
  .trust__item { justify-content: center; font-size: 0.7rem; letter-spacing: 0.22em; }
}
@media (min-width: 560px) {
  .trust__item { font-size: 0.68rem; letter-spacing: 0.18em; }
}

/* ==========================================================================
   WHOLE HOME PACKAGE
   ========================================================================== */
.package {
  position: relative;
  overflow: hidden;   /* fallback for browsers without overflow: clip */
  overflow: clip;     /* clips the watermark WITHOUT breaking position: sticky */
  background: var(--navy-900);
  color: var(--white);
}

.package::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(60% 45% at 10% 0%, rgba(127, 160, 196, 0.14) 0%, rgba(127, 160, 196, 0) 70%);
  pointer-events: none;
}

.package__mark {
  position: absolute;
  right: -8%; bottom: -12%;
  width: clamp(280px, 40vw, 560px);
  height: auto;
  opacity: 0.045;
  pointer-events: none;
}

.package .lead { color: rgba(255, 255, 255, 0.74); }

.package__grid { position: relative; display: grid; gap: 3rem; }
.package__grid > *, .results__grid > *, .quote__grid > *, .owners__grid > * { min-width: 0; }

.package__points { margin-top: 2rem; display: grid; gap: 0.85rem; }
.package__points li {
  position: relative;
  padding-left: 1.6rem;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
}
.package__points li::before {
  content: "";
  position: absolute; left: 0; top: 0.8em;
  width: 0.85rem; height: 1px;
  background: var(--steel);
}

/* The ledger card */
.ledger {
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035) 0%, rgba(255, 255, 255, 0.015) 100%);
  padding: clamp(1.5rem, 4.5vw, 2.75rem);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.5);
}

.ledger__head {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0.5rem 1rem;
  padding-bottom: 1.25rem;
}
.ledger__label {
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.34em; text-transform: uppercase;
  color: var(--steel);
}
.ledger__sub { font-size: 0.8rem; color: rgba(255, 255, 255, 0.55); letter-spacing: 0.02em; }

.ledger__row {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 0.9rem;
  row-gap: 0.2rem;
  align-items: start;
  padding: 1rem 0;
  border-top: 1px solid var(--line-dark);
}
.ledger__check { width: 1.1rem; height: 1.1rem; margin-top: 0.3rem; color: var(--steel); }
.ledger__name { font-size: 1.02rem; font-weight: 500; line-height: 1.45; }
.ledger__freq {
  grid-column: 2;
  font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--steel);
  white-space: nowrap;
}

.ledger__note {
  margin-top: 0.25rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line-dark);
  font-size: 0.85rem; line-height: 1.6;
  color: rgba(255, 255, 255, 0.6);
  font-style: italic;
}

.ledger__cta { margin-top: 1.75rem; display: grid; gap: 0.9rem; }
.ledger__cta .btn {
  width: 100%;
  white-space: normal;
  text-align: center;
  line-height: 1.45;
  padding: 0.9rem 1.25rem;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
}
.ledger__fine { font-size: 0.8rem; color: rgba(255, 255, 255, 0.55); line-height: 1.55; }

@media (min-width: 560px) {
  .ledger__row { grid-template-columns: auto 1fr auto; align-items: baseline; }
  .ledger__freq { grid-column: auto; padding-left: 1rem; }
  .ledger__cta .btn { width: auto; justify-self: start; white-space: nowrap; padding: 0 1.75rem; font-size: 0.76rem; letter-spacing: 0.2em; }
}

@media (min-width: 992px) {
  .package__grid { grid-template-columns: 5fr 7fr; gap: clamp(3rem, 6vw, 6rem); align-items: start; }
  .package__intro { position: sticky; top: calc(var(--nav-h) + 3rem); }
}

/* ==========================================================================
   SERVICES
   ========================================================================== */
.services { background: var(--bone); }

.cards { display: grid; gap: 1rem; }

.card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  transition: transform 0.5s var(--ease), border-color 0.4s, box-shadow 0.5s var(--ease);
}

@media (hover: hover) {
  .card:hover {
    transform: translateY(-3px);
    border-color: rgba(30, 58, 95, 0.35);
    box-shadow: 0 24px 50px -30px rgba(18, 33, 61, 0.35);
  }
}

.card__icon {
  width: 2.25rem; height: 2.25rem;
  fill: none; stroke: var(--navy-700); stroke-width: 1.35; stroke-linecap: round; stroke-linejoin: round;
  margin-bottom: 1.35rem;
}

.card__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.2rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin-bottom: 0.6rem;
  text-wrap: balance;
}

.card__text { font-size: 0.95rem; line-height: 1.6; color: var(--muted); }

.card__tag {
  position: absolute; top: 1.35rem; right: 1.35rem;
  font-size: 0.6rem; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--steel-ink);
  border: 1px solid rgba(78, 110, 146, 0.5);
  border-radius: 999px;
  padding: 0.3rem 0.65rem;
}

@media (min-width: 640px)  { .cards { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; } }
@media (min-width: 1100px) { .cards { grid-template-columns: repeat(4, 1fr); } .card { padding: 2rem 1.75rem; } }

/* ==========================================================================
   BEFORE & AFTER
   ========================================================================== */
.results {
  background: var(--navy-950);
  color: var(--white);
}
.results .lead { color: rgba(255, 255, 255, 0.72); }

.results__grid { display: grid; gap: 2.25rem; }

/* Tabs */
.tabs {
  display: flex; gap: 0.5rem;
  margin-top: 1.75rem;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.25rem;
  margin-inline: calc(-1 * var(--gutter));
  padding-inline: var(--gutter);
  scroll-padding-inline: var(--gutter);
}
.tabs::-webkit-scrollbar { display: none; }

.tab {
  flex: none;
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--line-dark);
  background: transparent;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}
.tab[aria-selected="true"] { background: var(--white); color: var(--navy-900); border-color: var(--white); }
@media (hover: hover) { .tab:not([aria-selected="true"]):hover { border-color: var(--steel); color: var(--white); } }

.results__caption {
  margin-top: 1.25rem;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.6);
  min-height: 1.6em;
}

/* Comparison slider */
.compare {
  position: relative;
  aspect-ratio: 3 / 4;
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--navy-900);
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  cursor: ew-resize;
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.7);
}
.compare:focus-within { outline: 2px solid var(--steel); outline-offset: 4px; }

.compare__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  pointer-events: none;
  transition: opacity 0.35s var(--ease);
}
.compare__img--before { clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0); }
.compare.is-loading .compare__img { opacity: 0.35; }

.compare__label {
  position: absolute; top: 1rem;
  z-index: 2;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: rgba(11, 21, 40, 0.55);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  color: var(--white);
  font-size: 0.6rem; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase;
  pointer-events: none;
}
.compare__label--before { left: 1rem; }
.compare__label--after  { right: 1rem; }

.compare__handle {
  position: absolute; top: 0; bottom: 0;
  left: var(--pos, 50%);
  width: 0;
  z-index: 3;
  pointer-events: none;
}
.compare__handle::before {
  content: "";
  position: absolute; top: 0; bottom: 0; left: -0.5px;
  width: 1px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.35);
}
.compare__knob {
  position: absolute; top: 50%; left: 0;
  width: 48px; height: 48px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--white);
  color: var(--navy-900);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  transition: transform 0.3s var(--ease);
}
.compare__knob .icon { width: 1.3rem; height: 1.3rem; }
.compare.is-dragging .compare__knob { transform: translate(-50%, -50%) scale(0.92); }

.compare__range {
  position: absolute; left: 0; bottom: 0;
  width: 1px; height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* Static two-up */
.twoup { margin-top: clamp(3rem, 7vw, 5rem); }
.twoup__pair { display: grid; gap: 0.75rem; }
.twoup__item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--navy-900);
}
.twoup__item img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.twoup__item .compare__label { left: 1rem; right: auto; }
.twoup__caption {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}

@media (min-width: 560px) { .twoup__pair { grid-template-columns: 1fr 1fr; gap: 1rem; } }

@media (min-width: 900px) {
  .results__grid { grid-template-columns: 5fr 7fr; gap: clamp(3rem, 6vw, 6rem); align-items: center; }
  .results__intro { order: 1; }
  .results__media { order: 2; }

  .tabs {
    flex-direction: column; gap: 0;
    margin-inline: 0; padding-inline: 0;
    overflow: visible;
    margin-top: 2.25rem;
    border-top: 1px solid var(--line-dark);
  }
  .tab {
    display: flex; justify-content: space-between; align-items: center;
    border: 0; border-bottom: 1px solid var(--line-dark); border-radius: 0;
    padding: 1rem 0.25rem;
    font-size: 0.74rem; letter-spacing: 0.2em;
    color: rgba(255, 255, 255, 0.6);
    background: transparent;
  }
  .tab::after {
    content: "";
    width: 1.5rem; height: 1px;
    background: currentColor;
    opacity: 0;
    transform: scaleX(0); transform-origin: right;
    transition: transform 0.4s var(--ease), opacity 0.4s;
  }
  .tab[aria-selected="true"] { background: transparent; color: var(--white); border-color: var(--line-dark); }
  .tab[aria-selected="true"]::after { opacity: 1; transform: scaleX(1); }
  .tab:not([aria-selected="true"]):hover { color: var(--white); border-color: var(--line-dark); }

  .compare { max-height: min(84vh, 900px); margin-inline: auto; }
}

/* ==========================================================================
   HOW IT WORKS
   ========================================================================== */
.process { background: var(--bone); }

.steps { position: relative; display: grid; gap: 2.5rem; }

/* connecting hairline — vertical on phones, horizontal on desktop */
.steps::before {
  content: "";
  position: absolute;
  left: 24px; top: 24px; bottom: 24px;
  width: 1px;
  background: rgba(18, 33, 61, 0.2);
  transform: scaleY(0); transform-origin: top;
  transition: transform 1.4s var(--ease) 0.2s;
}
.steps.is-visible::before { transform: scaleY(1); }

.step {
  position: relative;
  display: grid;
  grid-template-columns: 48px 1fr;
  column-gap: 1.25rem;
  row-gap: 0.4rem;
}

.step__num {
  grid-row: 1 / span 2;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(18, 33, 61, 0.2);
  background: var(--bone);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  color: var(--navy-700);
}

.step__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.3rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
  align-self: center;
}
.step__text { color: var(--muted); font-size: 0.98rem; line-height: 1.65; max-width: 34ch; }

@media (min-width: 768px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 3rem; }
  .steps::before {
    left: 0; right: 0; top: 24px; bottom: auto;
    width: auto; height: 1px;
    transform: scaleX(0); transform-origin: left;
  }
  .steps.is-visible::before { transform: scaleX(1); }
  .step { grid-template-columns: 1fr; row-gap: 0.6rem; }
  .step__num { grid-row: auto; margin-bottom: 1rem; }
  .step__title { align-self: auto; }
}

/* ==========================================================================
   OWNERS
   ========================================================================== */
.owners { background: var(--white); }

.owners__grid { display: grid; gap: 3rem; }

.owners__figure { padding: 0 0.75rem 0.75rem 0; }
.owners__photo {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
}
.owners__photo img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 5; object-position: 50% 30%; }
.owners__photo::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px rgba(18, 33, 61, 0.08);
  pointer-events: none;
}
.owners__figure { position: relative; }
.owners__figure::before {
  content: "";
  position: absolute;
  inset: 0.75rem 0 0 0.75rem;
  border: 1px solid rgba(127, 160, 196, 0.6);
  border-radius: var(--radius);
  z-index: 0;
  pointer-events: none;
}
.owners__photo { z-index: 1; }

.owners__caption {
  margin-top: 1rem;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.owners__text p + p { margin-top: 1.25rem; color: var(--muted); }

.chips { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 2rem; }
.chips li {
  font-size: 0.66rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--navy-700);
  border: 1px solid var(--line-light);
  border-radius: 999px;
  padding: 0.55rem 0.9rem;
}

@media (min-width: 900px) {
  .owners__grid { grid-template-columns: 1fr 1fr; gap: clamp(3rem, 7vw, 7rem); align-items: center; }
  .owners__photo img { aspect-ratio: 5 / 5.6; }
}

/* ==========================================================================
   REVIEWS
   ========================================================================== */
.reviews { background: var(--navy-900); color: var(--white); }

.reviews__grid { display: grid; gap: 1rem; }

.review {
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  background: rgba(255, 255, 255, 0.025);
  display: flex; flex-direction: column; gap: 1.1rem;
}

.stars { display: flex; gap: 0.15rem; color: var(--steel); }
.stars .icon { width: 1rem; height: 1rem; fill: currentColor; stroke: none; }

.review__quote p {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 1.2rem;
  line-height: 1.45;
  letter-spacing: -0.005em;
  color: rgba(255, 255, 255, 0.92);
}

.review__who { margin-top: auto; display: flex; flex-direction: column; gap: 0.2rem; }
.review__name { font-weight: 700; font-size: 0.95rem; }
.review__where { font-size: 0.66rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--steel); }

@media (min-width: 900px) {
  .reviews__grid { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
  .review { padding: 2.25rem 2rem; }
}

/* ==========================================================================
   QUOTE FORM
   ========================================================================== */
.quote { background: var(--bone); }

.quote__grid { display: grid; gap: 2.5rem; }

.quote__alt { margin-top: 1.5rem; font-size: 0.95rem; color: var(--muted); }
.quote__alt a { color: var(--navy-900); font-weight: 700; text-decoration: none; border-bottom: 1px solid var(--steel); }

.quote__panel {
  background: var(--white);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4.5vw, 2.75rem);
  box-shadow: 0 30px 70px -40px rgba(18, 33, 61, 0.35);
}

.form { display: grid; gap: 1.25rem; }
.form__gotcha { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.form__row { display: grid; }
.form__row > .form__label { margin-bottom: 0.45rem; }
.form__row--split { grid-template-columns: 1fr; gap: 1.25rem; }
.form__row--split > div { display: grid; }
.form__row--split > div > .form__label { margin-bottom: 0.45rem; }

.form__label { font-size: 0.86rem; font-weight: 700; letter-spacing: 0.02em; color: var(--ink); }
.form__optional { font-weight: 500; color: var(--muted); font-size: 0.78rem; margin-left: 0.35rem; }

.form__input {
  width: 100%;
  min-height: 52px;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(18, 33, 61, 0.2);
  border-radius: 4px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  transition: border-color 0.25s, box-shadow 0.25s;
  -webkit-appearance: none; appearance: none;
}
.form__input::placeholder { color: var(--muted); }
.form__input:focus { outline: none; border-color: var(--navy-700); box-shadow: 0 0 0 3px rgba(127, 160, 196, 0.35); }
.form__input[aria-invalid="true"] { border-color: var(--error); }
.form__textarea { resize: vertical; min-height: 120px; line-height: 1.55; }

/* Never display:none — a live region removed from the accessibility tree
   is not announced when it is later populated. Empty blocks have no height. */
.form__error { font-size: 0.8rem; color: var(--error); line-height: 1.4; margin-top: 0.45rem; }
.form__error:empty { margin-top: 0; }

.form__fieldset .form__label { margin-bottom: 0.4rem; }

.checks {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.6rem 0.75rem;
}
.check {
  display: flex; align-items: center; gap: 0.6rem;
  font-size: 0.92rem;
  cursor: pointer;
  padding: 0.35rem 0;
}
.check input {
  -webkit-appearance: none; appearance: none;
  width: 20px; height: 20px; margin: 0;
  border: 1px solid rgba(18, 33, 61, 0.35);
  border-radius: 4px;
  background: var(--white);
  flex: none;
  display: grid; place-items: center;
  transition: background-color 0.2s, border-color 0.2s;
}
.check input::before {
  content: "";
  width: 10px; height: 6px;
  border-left: 2px solid var(--white);
  border-bottom: 2px solid var(--white);
  transform: rotate(-45deg) translate(1px, -1px) scale(0);
  transition: transform 0.2s var(--ease);
}
.check input:checked { background: var(--navy-900); border-color: var(--navy-900); }
.check input:checked::before { transform: rotate(-45deg) translate(1px, -1px) scale(1); }
.check input:focus-visible { outline: 2px solid var(--steel); outline-offset: 2px; }

.form__status { font-size: 0.9rem; line-height: 1.5; color: var(--error); }
.form__status.is-info { color: var(--navy-700); }

.form__submit { width: 100%; margin-top: 0.25rem; white-space: normal; line-height: 1.45; padding-block: 0.9rem; }
.form__privacy { font-size: 0.78rem; color: var(--muted); text-align: center; }

.form__success { text-align: center; padding: 1rem 0; }
.form__success:focus { outline: none; }
.form__success-icon {
  width: 3rem; height: 3rem;
  margin: 0 auto 1.25rem;
  fill: none; stroke: var(--steel); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round;
}
.form__success-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.6rem;
  letter-spacing: -0.01em;
  margin-bottom: 0.75rem;
}
.form__success p { color: var(--muted); max-width: 36ch; margin-inline: auto; }
.form__success a { color: var(--navy-900); font-weight: 700; }

@media (min-width: 560px) {
  .form__row--split { grid-template-columns: 1fr 1fr; gap: 1rem; }
}

@media (min-width: 992px) {
  .quote__grid { grid-template-columns: 5fr 7fr; gap: clamp(3rem, 6vw, 6rem); align-items: start; }
  .quote__intro { position: sticky; top: calc(var(--nav-h) + 3rem); }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  background: var(--navy-950);
  color: rgba(255, 255, 255, 0.72);
  padding-top: clamp(3.5rem, 8vw, 6rem);
  font-size: 0.92rem;
}

.footer__grid { display: grid; gap: 2.25rem; }

.footer__brand img { width: 170px; height: auto; margin-bottom: 1.1rem; }
.footer__brand p { max-width: 30ch; }

.footer__label {
  font-size: 0.64rem; font-weight: 700; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 0.85rem;
}
.footer__col p + p { margin-top: 0.25rem; }
.footer__phone {
  display: inline-block;
  color: var(--white);
  font-size: 1.15rem; font-weight: 600;
  text-decoration: none;
  margin-bottom: 0.4rem;
  font-variant-numeric: tabular-nums;
}

.footer__bottom {
  margin-top: clamp(2.5rem, 6vw, 4rem);
  padding-block: 1.5rem max(1.5rem, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line-dark);
  display: flex; flex-direction: column; gap: 0.35rem;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.5);
}

@media (min-width: 768px) {
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
  .footer__bottom { flex-direction: row; justify-content: space-between; }
}

/* ==========================================================================
   REDUCED MOTION — everything settles instantly
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }
  .reveal, .reveal.is-visible { opacity: 1; transform: none; animation: none; }
  .hero__logo, .hero__title, .hero__sub, .hero__actions, .scroll-cue { opacity: 1; transform: none; animation: none; }
  .scroll-cue__line::after { animation: none; transform: translateY(80%); }
  .steps::before { transform: none; }
  .menu__links a { opacity: 1; transform: none; }
  .hero__video { display: none; }
}
