/* ==========================================================================
   Nextly Home Solutions — homepage styles
   Source of truth: Brand & Digital Design System v1.1
   Layers: 1 tokens · 2 reset · 3 base type · 4 layout · 5 components · 6 sections
   ========================================================================== */

/* 1. TOKENS ---------------------------------------------------------------- */
:root {
  /* Brand (established) */
  --brand-navy: #1f3a5f;
  --brand-orange: #f18c24;
  --brand-gray: #9ca3af;
  --brand-white: #ffffff;

  /* Supporting (recommended) */
  --navy-hover: #162b47;
  --navy-deep: #10243c;
  --orange-hover: #d66b0d;
  --orange-light: #fff1e3;
  --canvas: #f8fafc;
  --surface: #f1f5f9;
  --border: #dce3eb;
  --text-muted: #526176;
  --tint-blue: #e8eff9;
  --success: #166534;
  --warning: #92400e;
  --error: #b42318;

  /* Semantic colors — remapped per section theme */
  --bg: var(--brand-white);
  --text: var(--brand-navy);
  --text-soft: var(--text-muted);
  --card-bg: var(--brand-white);
  --card-border: var(--border);
  --icon-bg: var(--tint-blue);
  --icon-color: var(--brand-navy);

  /* Buttons */
  --btn-primary-bg: var(--brand-orange);
  --btn-primary-bg-hover: var(--orange-hover);
  --btn-primary-text: var(--brand-navy); /* design system: navy text on orange */

  /* Typography */
  --font: "Montserrat", Arial, sans-serif;
  --fw-heading: 700;
  --fw-body: 400;
  --fs-h1: clamp(2.25rem, 1.55rem + 2.9vw, 3.5rem);   /* 36 → 56 */
  --lh-h1: 1.15;
  --fs-h2: clamp(1.875rem, 1.35rem + 2vw, 2.75rem);   /* 30 → 44 */
  --lh-h2: 1.2;
  --fs-h3: clamp(1.625rem, 1.4rem + 0.9vw, 2rem);     /* 26 → 32 */
  --fs-h4: clamp(1.375rem, 1.25rem + 0.5vw, 1.625rem);/* 22 → 26 */
  --fs-h5: clamp(1.25rem, 1.2rem + 0.2vw, 1.375rem);  /* 20 → 22 */
  --fs-h6: 1.125rem;                                  /* 18 */
  --fs-lead: clamp(1.125rem, 1.05rem + 0.3vw, 1.25rem);
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  --fs-label: 0.8125rem;
  --fs-caption: 0.75rem;

  /* Spacing scale */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;

  /* Layout (desktop defaults) */
  --container-max: 1200px;
  --side-pad: 48px;
  --gutter: 24px;
  --section-pad: 88px;
  --card-pad: 28px;
  --measure: 680px;
  --header-h: 80px;
  --btn-h: 48px;

  /* Shape and elevation */
  --radius-btn: 8px;
  --radius-card: 12px;
  --radius-card-lg: 16px;
  --shadow-card: 0 2px 8px rgba(16, 36, 60, 0.08);
  --shadow-lift: 0 8px 24px rgba(16, 36, 60, 0.12);
  --focus-ring: 0 0 0 3px #fff, 0 0 0 5px var(--brand-navy);
}

@media (max-width: 1023px) {
  :root {
    --side-pad: 32px;
    --gutter: 20px;
    --section-pad: 64px;
    --card-pad: 24px;
    --header-h: 72px;
  }
}
@media (max-width: 767px) {
  :root {
    --side-pad: 20px;
    --gutter: 16px;
    --section-pad: 48px;
    --card-pad: 20px;
    --header-h: 64px;
  }
}

/* Section themes */
[data-theme="navy"] {
  --bg: var(--brand-navy);
  --text: #ffffff;
  --text-soft: #dce3eb;
  --card-bg: rgba(255, 255, 255, 0.04);
  --card-border: rgba(255, 255, 255, 0.18);
  --icon-bg: rgba(255, 255, 255, 0.1);
  --icon-color: #ffffff;
}
[data-theme="canvas"] {
  --bg: var(--canvas);
}

/* 2. RESET ----------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}
body,
h1,
h2,
h3,
h4,
p,
ul,
ol,
figure {
  margin: 0;
}
ul,
ol {
  padding: 0;
  list-style: none;
}
img,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
}
button {
  font: inherit;
  color: inherit;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
    animation: none !important;
  }
}

/* 3. BASE TYPE ------------------------------------------------------------- */
body {
  font-family: var(--font);
  font-weight: var(--fw-body);
  font-size: var(--fs-body);
  line-height: 1.625;
  color: var(--brand-navy);
  background: var(--brand-white);
}
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font);
  font-weight: var(--fw-heading);
}
h1 {
  text-wrap: balance;
}
h2,
h3 {
  text-wrap: wrap;
}
h1 {
  font-size: var(--fs-h1);
  line-height: var(--lh-h1);
  letter-spacing: -0.02em;
}
h2 {
  font-size: var(--fs-h2);
  line-height: var(--lh-h2);
  letter-spacing: -0.02em;
}
h3 {
  font-size: var(--fs-h3);
  line-height: 1.25;
}
h4 {
  font-size: var(--fs-h4);
  line-height: 1.3;
}
.accent {
  color: var(--brand-orange);
}
.lead {
  font-size: var(--fs-lead);
  line-height: 1.6;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: 4px;
}
[data-theme="navy"] :focus-visible {
  box-shadow: 0 0 0 3px var(--brand-navy), 0 0 0 5px #fff;
}
.skip-link {
  position: absolute;
  left: var(--s-4);
  top: -100px;
  z-index: 100;
  padding: var(--s-3) var(--s-4);
  background: var(--brand-navy);
  color: #fff;
  border-radius: var(--radius-btn);
}
.skip-link:focus {
  top: var(--s-4);
}

/* 4. LAYOUT ---------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: calc(var(--container-max) + 2 * var(--side-pad));
  margin-inline: auto;
  padding-inline: var(--side-pad);
}
.section {
  position: relative;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
  padding-block: var(--section-pad);
}
/* Supplied background art (path motif is baked into the images) */
.section[data-theme="navy"] {
  background-color: var(--navy-deep);
}
.section--bg-simpler,
.section--bg-how,
.section--bg-fit,
.section--bg-next,
.section--bg-options,
.section--bg-help {
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center bottom;
}
.section--bg-simpler { background-image: url("assets/img/bg-simpler.webp"); }
.section--bg-how { background-color: #fff; background-image: url("assets/img/bg-how.webp"); }
.section--bg-fit { background-image: url("assets/img/bg-fit.webp"); }
.section--bg-why {
  background-color: #fff;
  background-image: url("assets/img/bg-why.webp");
  background-repeat: no-repeat;
  background-size: 100% auto;
  background-position: center bottom;
  padding-bottom: calc(var(--section-pad) + 21vw);
}
@media (max-width: 1023px) {
  .section--bg-why {
    padding-bottom: calc(var(--section-pad) + 30vw);
  }
}
.section__inner {
  position: relative;
  z-index: 1;
}
.section--bg-simpler,
.section--bg-how,
.section--bg-fit,
.section--bg-next {
  padding-bottom: calc(var(--section-pad) + clamp(64px, 10vw, 160px));
}
.section__head {
  max-width: 960px;
  margin-inline: auto;
  text-align: center;
}
.section__head .lead {
  max-width: 860px;
  margin: var(--s-5) auto 0;
  color: var(--text-soft);
}
[data-theme="navy"] .section__head .lead {
  color: #e6ecf4;
}
.section__action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-4);
  margin-top: var(--s-7);
  text-align: center;
}

/* 5. COMPONENTS ------------------------------------------------------------ */

/* Eyebrow */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-4);
  margin-bottom: var(--s-5);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text);
}
.eyebrow::before {
  content: "";
  width: 56px;
  height: 2px;
  background: var(--brand-orange);
}

/* Icons */
.icon {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-circle {
  display: grid;
  place-items: center;
  flex: none;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--icon-bg);
  color: var(--icon-color);
}
.icon-circle .icon {
  width: 40px;
  height: 40px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-3);
  min-height: var(--btn-h);
  padding: 0 var(--s-5);
  border: 2px solid transparent;
  border-radius: var(--radius-btn);
  font-family: var(--font);
  font-size: var(--fs-body);
  font-weight: 600;
  line-height: 24px;
  text-decoration: none;
  cursor: pointer;
}
.btn .icon {
  width: 20px;
  height: 20px;
  stroke-width: 2.5;
}
.btn--primary {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
}
.btn--navy {
  background: var(--brand-navy);
  color: #fff;
}
.btn--secondary {
  background: #fff;
  color: var(--brand-navy);
  border-color: var(--brand-navy);
}
.btn--lg {
  min-height: 56px;
  padding-inline: var(--s-6);
  font-size: 1.125rem;
}

/* Cards */
.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-card);
  padding: var(--card-pad);
}
.card h3 {
  font-size: var(--fs-h6);
  line-height: 1.3;
}
.card p {
  font-size: var(--fs-small);
  line-height: 1.6;
  color: var(--text-soft);
}
.card--light {
  box-shadow: var(--shadow-card);
}

/* Header / nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
}
.brand img {
  height: 56px;
  width: auto;
}
.nav__list {
  display: flex;
  gap: var(--s-7);
}
.nav__link {
  font-size: var(--fs-body);
  font-weight: 500;
  text-decoration: none;
  color: var(--brand-navy);
  padding: var(--s-2) 0;
}
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  background: none;
  border: 0;
  border-radius: var(--radius-btn);
  cursor: pointer;
  color: var(--brand-navy);
}
.nav-toggle .icon {
  width: 28px;
  height: 28px;
}
@media (max-width: 767px) {
  .brand img {
    height: 44px;
  }
  .nav-toggle {
    display: inline-flex;
  }
  .nav {
    position: absolute;
    inset: 100% 0 auto 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lift);
    display: none;
  }
  .nav.is-open {
    display: block;
  }
  .nav__list {
    flex-direction: column;
    gap: 0;
    padding: var(--s-2) var(--side-pad) var(--s-4);
  }
  .nav__link {
    display: block;
    padding: var(--s-4) 0;
    border-bottom: 1px solid var(--border);
  }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .nav__list {
    gap: var(--s-5);
  }
}

/* 6. SECTIONS -------------------------------------------------------------- */

/* 01 Hero */
.hero {
  position: relative;
  overflow: hidden;
  background: #fff url("assets/img/bg-hero.webp") no-repeat right center / cover;
}
/* White overlay keeps the copy legible over the photo */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.82) 100%);
  clip-path: polygon(0 0, 62% 0, 48% 100%, 0 100%);
  pointer-events: none;
}
@media (max-width: 1023px) {
  .hero::before {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.94) 0%, rgba(255, 255, 255, 0.82) 70%, rgba(255, 255, 255, 0.62) 100%);
    clip-path: none;
  }
}
.hero__inner {
  position: relative;
  z-index: 1;
  min-height: min(808px, calc(100vh - var(--header-h)));
  min-height: max(640px, min(808px, calc(100vh - var(--header-h))));
  display: flex;
  align-items: center;
  padding-block: var(--s-8);
}
.hero__content {
  max-width: 640px;
}
.hero h1 {
  color: var(--brand-navy);
}
.hero__lead {
  margin-top: var(--s-5);
  max-width: 560px;
  font-size: var(--fs-lead);
  line-height: 1.6;
}
.hero__cta {
  margin-top: var(--s-6);
}
.hero__tagline {
  margin-top: var(--s-4);
  font-size: var(--fs-body);
}
.hero-points {
  display: flex;
  align-items: flex-start;
  gap: var(--s-4);
  margin-top: var(--s-7);
}
.hero-point {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-2);
  width: 108px;
  text-align: center;
  font-size: var(--fs-small);
  font-weight: 500;
  line-height: 1.3;
}
.hero-point .icon-circle {
  width: 80px;
  height: 80px;
  background: #fff;
  border: 1.5px solid var(--brand-gray);
  color: var(--brand-navy);
}
.hero-point .icon-circle .icon {
  width: 40px;
  height: 40px;
}
.hero-point--active .icon-circle {
  background: var(--brand-orange);
  border-color: var(--brand-orange);
  color: #fff;
}
.hero-points__line {
  flex: 1 1 0;
  max-width: 64px;
  height: 1px;
  margin-top: 40px;
  background: var(--brand-gray);
}
@media (max-width: 1023px) {
  .hero__inner {
    min-height: 0;
    padding-block: var(--s-8) var(--s-7);
  }
  .hero__content {
    max-width: 560px;
  }
}
@media (max-width: 767px) {
  .hero {
    background-size: auto 340px;
    background-position: right top;
  }
  .hero::before {
    inset: 0 0 auto 0;
    height: 340px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 60%, #fff 100%);
  }
  .hero__inner {
    padding-block: 340px var(--s-6);
  }
  .hero__cta .btn {
    width: 100%;
  }
  .hero-points {
    gap: var(--s-2);
  }
  .hero-point {
    width: 88px;
  }
  .hero-point .icon-circle {
    width: 64px;
    height: 64px;
  }
  .hero-point .icon-circle .icon {
    width: 32px;
    height: 32px;
  }
  .hero-points__line {
    margin-top: 32px;
  }
}

/* 02 Simpler selling option */
.benefits {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gutter);
  margin-top: var(--s-7);
}
.benefit {
  display: grid;
  grid-template-columns: 64px 1fr;
  grid-template-areas: "icon title" "text text";
  align-items: center;
  column-gap: var(--s-4);
  row-gap: var(--s-4);
}
.benefit .icon-circle {
  grid-area: icon;
}
.benefit h3 {
  grid-area: title;
}
.benefit p {
  grid-area: text;
}
@media (max-width: 1023px) {
  .benefits {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 767px) {
  .benefits {
    grid-template-columns: 1fr;
  }
  .section__action .btn {
    width: 100%;
  }
}

/* 03 How it works */
#how-title {
  text-wrap: balance;
}
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-6);
  margin-top: var(--s-7);
  counter-reset: step;
}
.step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.step__top {
  position: relative;
  width: 72px;
  height: 72px;
  margin-bottom: var(--s-2);
}
.step__top .icon-circle {
  width: 72px;
  height: 72px;
  margin: 0;
}
.step__num {
  position: absolute;
  top: -10px;
  left: -14px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--brand-orange);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
}
.step h3 {
  font-size: var(--fs-h5);
  line-height: 1.3;
  color: var(--brand-navy);
}
.step p {
  color: var(--text-soft);
}
@media (min-width: 1024px) {
  .step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 80px;
    right: calc(var(--s-6) / -2 - 14px);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background:
      radial-gradient(circle, var(--brand-orange) 0 5px, #fff 5.5px 100%);
    border: 1px solid var(--border);
    z-index: 2;
  }
}
@media (max-width: 1023px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 767px) {
  .steps {
    grid-template-columns: 1fr;
    gap: var(--s-4);
  }
  .step {
    display: grid;
    grid-template-columns: 72px 1fr;
    column-gap: var(--s-5);
    row-gap: var(--s-2);
    align-items: start;
  }
  .step__top {
    grid-row: 1 / span 2;
    margin: 0;
  }
  .step__num {
    left: -8px;
  }
}

/* 04 Is Nextly a fit */
.fit {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-8);
  align-items: center;
}
.fit__intro .lead {
  margin-top: var(--s-5);
  color: #e6ecf4;
  max-width: 600px;
}
.fit__intro .fit__note {
  margin-top: var(--s-5);
  font-size: var(--fs-lead);
  color: #e6ecf4;
}
.fit__intro .btn {
  margin-top: var(--s-6);
}
.fit-list {
  position: relative;
  padding-left: var(--s-6);
}
.fit-list::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 8px;
  bottom: 8px;
  border-left: 1px dashed rgba(169, 196, 245, 0.55);
}
.fit-item {
  position: relative;
  display: grid;
  grid-template-columns: 64px 1fr;
  column-gap: var(--s-4);
  align-items: center;
  padding-block: var(--s-4);
}
.fit-item + .fit-item .fit-item__body {
  border-top: 1px solid rgba(169, 196, 245, 0.3);
}
.fit-item::before {
  content: "";
  position: absolute;
  left: calc(var(--s-6) * -1);
  top: 50%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--brand-orange);
  box-shadow: 0 0 0 4px rgba(241, 140, 36, 0.25);
  transform: translateY(-50%);
}
.fit-item__body {
  padding-block: var(--s-3);
}
.fit-item h3 {
  font-size: var(--fs-h6);
  line-height: 1.3;
}
.fit-item p {
  margin-top: var(--s-1);
  font-size: var(--fs-small);
  color: #dce3eb;
}
@media (max-width: 1023px) {
  .fit {
    grid-template-columns: 1fr;
    gap: var(--s-7);
  }
  .fit-item:first-child .fit-item__body {
    border-top: 0;
  }
}
@media (max-width: 767px) {
  .fit__intro .btn {
    width: 100%;
  }
  .fit-item {
    grid-template-columns: 48px 1fr;
    column-gap: var(--s-3);
  }
  .fit-item .icon-circle {
    width: 48px;
    height: 48px;
  }
  .fit-item .icon-circle .icon {
    width: 30px;
    height: 30px;
  }
}

/* 05 Why Nextly */
.why {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-7);
  align-items: start;
}
.why__intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.why__intro h2 {
  color: var(--brand-navy);
}
.why__intro .lead {
  margin-top: var(--s-5);
  max-width: 560px;
  font-size: var(--fs-body);
  line-height: 1.7;
}
.why__intro .btn {
  margin-top: var(--s-6);
}
.why-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gutter);
}
.why-card {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  padding: var(--card-pad);
  border-radius: var(--radius-card-lg);
}
.why-card .icon-circle {
  width: 72px;
  height: 72px;
}
.why-card h3 {
  font-size: var(--fs-h5);
  line-height: 1.3;
  color: var(--brand-navy);
}
.why-card p {
  font-size: var(--fs-body);
}
@media (max-width: 1023px) {
  .why {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 767px) {
  .why-cards {
    grid-template-columns: 1fr;
  }
  .why__intro .btn {
    width: 100%;
  }
}

/* 06 What happens next */
.section--bg-next {
  background-color: #fff;
  background-image: url("assets/img/bg-next.webp");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center bottom;
}
.next-head {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: var(--s-6);
  align-items: start;
}
.next-head h2 {
  margin-top: var(--s-2);
  font-size: clamp(2.25rem, 1.5rem + 3vw, 3.5rem);
  line-height: 1.12;
}
.next-copy {
  display: grid;
  gap: var(--s-4);
  font-size: var(--fs-lead);
  line-height: 1.6;
}
.next-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-8);
  margin-top: var(--s-7);
}
.next-step {
  position: relative;
}
.next-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 54%;
  right: calc(var(--s-8) / -2 - 20px);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231F3A5F' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 6 6 6-6 6'/%3E%3C/svg%3E") center / 18px no-repeat;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}
.next-step__photo {
  position: relative;
  width: 94%;
  aspect-ratio: 1;
}
.next-step__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: var(--shadow-card);
}
.next-step__photo .step__num {
  top: 6%;
  left: 6%;
  width: 40px;
  height: 40px;
  font-size: 1.25rem;
  border: 4px solid #fff;
  box-shadow: var(--shadow-card);
}
.next-step__label {
  position: relative;
  display: flex;
  align-items: center;
  margin-top: -13%;
}
.next-step__label .icon-circle {
  z-index: 1;
  width: 72px;
  height: 72px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}
.next-step__label .icon-circle .icon {
  width: 44px;
  height: 44px;
}
.next-step__pill {
  flex: 1;
  margin-left: -12px;
  padding: var(--s-3) var(--s-4) var(--s-3) var(--s-6);
  border-radius: 0 999px 999px 0;
  background: color-mix(in srgb, var(--tint-blue) 70%, #fff);
  border: 1px solid var(--border);
  font-size: var(--fs-h6);
  font-weight: 600;
  line-height: 1.3;
}
.next-banner {
  display: flex;
  align-items: center;
  gap: var(--s-6);
  margin-top: var(--s-7);
  padding: var(--s-6) var(--s-8);
  border-radius: var(--radius-card-lg);
  background: color-mix(in srgb, var(--tint-blue) 65%, #fff);
}
.next-banner__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 88px;
  height: 88px;
  margin-left: var(--s-8);
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--brand-orange);
}
.next-banner__icon .icon {
  width: 44px;
  height: 44px;
}
.next-banner__text {
  padding-left: var(--s-6);
  border-left: 1px solid var(--border);
  font-size: var(--fs-h3);
  font-weight: 600;
  line-height: 1.25;
}
@media (max-width: 1023px) {
  .next-head {
    grid-template-columns: 1fr;
    gap: var(--s-5);
  }
  .next-steps {
    gap: var(--s-5);
  }
  .next-step:not(:last-child)::after {
    display: none;
  }
  .next-step__pill {
    font-size: var(--fs-body);
    padding-left: var(--s-5);
  }
  .next-banner {
    padding: var(--s-5);
  }
  .next-banner__icon {
    margin-left: 0;
  }
}
@media (max-width: 767px) {
  .next-steps {
    grid-template-columns: 1fr;
    gap: var(--s-7);
    max-width: 420px;
    margin-inline: auto;
  }
  .next-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--s-4);
  }
  .next-banner__text {
    padding-left: 0;
    border-left: 0;
    font-size: var(--fs-h4);
  }
}

/* 07 Know your options */
.section--bg-options {
  background-image: url("assets/img/bg-options.webp");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center bottom;
}
.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-6);
  margin-top: var(--s-7);
}
.compare__card {
  padding: var(--s-6);
  border-radius: var(--radius-card-lg);
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(120, 160, 230, 0.45);
}
.compare__card--nextly {
  border-color: var(--brand-orange);
}
.compare__head {
  display: flex;
  align-items: center;
  gap: var(--s-5);
}
.compare__head .icon-circle {
  width: 88px;
  height: 88px;
  background: rgba(120, 160, 230, 0.3);
}
.compare__head .icon-circle .icon {
  width: 44px;
  height: 44px;
}
.compare__card--nextly .compare__head .icon-circle {
  background: var(--brand-orange);
}
.compare__head h3 {
  font-size: var(--fs-h4);
  line-height: 1.2;
}
.compare__head h3::after {
  content: "";
  display: block;
  width: 64px;
  height: 3px;
  margin-top: var(--s-3);
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.35);
}
.compare__card--nextly .compare__head h3::after {
  background: var(--brand-orange);
}
.compare__card .compare__intro {
  margin-top: var(--s-4);
  font-size: var(--fs-h6);
  line-height: 1.4;
  color: var(--text);
}
.checklist {
  margin-top: var(--s-3);
}
.checklist li {
  display: flex;
  align-items: center;
  gap: var(--s-5);
  padding-block: var(--s-3);
  line-height: 1.4;
}
.checklist li + li {
  border-top: 1px solid rgba(169, 196, 245, 0.25);
}
.checklist .icon {
  flex: none;
  width: 36px;
  height: 36px;
  padding: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  color: #fff;
  stroke-width: 2.5;
}
.compare__card--nextly .checklist .icon {
  background: var(--brand-orange);
}
.compare__note {
  max-width: 760px;
  font-size: var(--fs-small);
  color: var(--text-soft);
}
@media (max-width: 1023px) {
  .compare {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 767px) {
  .compare__card {
    padding: var(--s-5);
  }
  .compare__head {
    gap: var(--s-4);
  }
  .compare__head .icon-circle {
    width: 64px;
    height: 64px;
  }
  .compare__head .icon-circle .icon {
    width: 32px;
    height: 32px;
  }
  .checklist li {
    gap: var(--s-4);
  }
}

.section--bg-options {
  padding-bottom: calc(var(--section-pad) + clamp(110px, 16vw, 240px));
}

/* 08 We are here to help */
.section--bg-help {
  background-color: #fff;
  background-image: url("assets/img/bg-help.webp");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center bottom;
}
.help {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: var(--s-8);
  align-items: stretch;
}
.help__intro h2 {
  margin-top: var(--s-2);
  font-size: clamp(2.25rem, 1.5rem + 3vw, 3.5rem);
  line-height: 1.12;
}
.help__body {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--s-6);
  padding-left: var(--s-8);
  border-left: 1px solid var(--border);
}
.help__icon {
  position: absolute;
  top: 32%;
  left: 0;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  background: color-mix(in srgb, var(--tint-blue) 80%, #fff);
  border: 1px solid var(--border);
}
.help__body .next-copy {
  font-size: var(--fs-lead);
}
@media (max-width: 1023px) {
  .help {
    grid-template-columns: 1fr;
    gap: var(--s-6);
  }
  .help__body {
    padding-left: 0;
    border-left: 0;
  }
  .help__icon {
    display: none;
  }
}
@media (max-width: 767px) {
  .help__body .btn {
    width: 100%;
  }
}

.section--bg-help {
  padding-bottom: calc(var(--section-pad) + clamp(110px, 16vw, 240px));
}

/* 09 FAQs */
.section--bg-faq {
  background-color: #fff;
  background-image: url("assets/img/bg-faq.webp");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center bottom;
  padding-bottom: calc(var(--section-pad) + clamp(80px, 12vw, 180px));
}
.section--bg-faq h2 {
  font-size: clamp(2.25rem, 1.5rem + 3vw, 3.5rem);
  line-height: 1.12;
}
.faq__lead {
  margin-top: var(--s-4);
  font-size: var(--fs-lead);
}
.faq {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: var(--s-7);
  padding: var(--card-pad);
  border-radius: var(--radius-card-lg);
  background: rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow-card);
}
.faq__col:first-child {
  padding-right: var(--s-6);
  border-right: 1px solid var(--border);
}
.faq__col:last-child {
  padding-left: var(--s-6);
}
.faq__item + .faq__item {
  border-top: 1px solid var(--border);
}
.faq__item summary {
  display: grid;
  position: relative;
  padding: var(--s-4) calc(36px + var(--s-4)) var(--s-1) calc(52px + var(--s-4));
  cursor: pointer;
  list-style: none;
}
.faq__item summary::-webkit-details-marker {
  display: none;
}
.faq__item:not([open]) summary {
  min-height: 70px;
}
.faq__q-icon {
  position: absolute;
  top: 9px;
  left: 0;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--tint-blue);
  box-shadow: var(--shadow-card);
  color: var(--brand-orange);
  font-size: 1.5rem;
  font-weight: 600;
}
.faq__q {
  display: block;
  padding-top: var(--s-2);
  font-size: var(--fs-body);
  font-weight: 600;
  line-height: 1.4;
}
.faq__toggle {
  position: absolute;
  top: 17px;
  right: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--tint-blue);
}
.faq__toggle::before,
.faq__toggle::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 14px;
  height: 2px;
  margin: -1px 0 0 -7px;
  border-radius: 1px;
  background: var(--brand-navy);
}
.faq__toggle::after {
  transform: rotate(90deg);
}
.faq__item[open] .faq__toggle::after {
  transform: rotate(0deg);
}
.faq__a {
  padding: 0 calc(36px + var(--s-4)) var(--s-4) calc(52px + var(--s-4));
  font-size: var(--fs-small);
  line-height: 1.6;
  color: var(--text-muted);
}
@media (max-width: 1023px) {
  .faq {
    grid-template-columns: 1fr;
  }
  .faq__col:first-child {
    padding-right: 0;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }
  .faq__col:last-child {
    padding-left: 0;
  }
}
@media (max-width: 767px) {
  .faq__item summary {
    padding-left: calc(40px + var(--s-3));
    padding-right: calc(36px + var(--s-3));
  }
  .faq__q-icon {
    top: 15px;
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
  }
  .faq__a {
    padding-left: calc(40px + var(--s-3));
    padding-right: 0;
  }
}

/* 10 Final CTA */
.section--bg-final {
  background-color: var(--brand-navy);
  background-image: url("assets/img/bg-final.webp");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center bottom;
  padding-block: calc(var(--section-pad) + 24px) calc(var(--section-pad) + clamp(80px, 12vw, 180px));
}
.final {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.final h2 {
  text-wrap: balance;
  max-width: 960px;
  font-size: clamp(2.25rem, 1.5rem + 3vw, 3.5rem);
  line-height: 1.12;
}
.final .lead {
  text-wrap: balance;
  max-width: 800px;
  margin-top: var(--s-6);
  color: #e6ecf4;
}
.final__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--s-4);
  margin-top: var(--s-7);
}
.btn--outline-light {
  background: transparent;
  color: #fff;
  border-color: #fff;
}
.final__note {
  margin-top: var(--s-5);
  font-size: var(--fs-body);
  color: #e6ecf4;
}
.final__home {
  position: absolute;
  right: 6%;
  bottom: 22%;
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--brand-orange);
  border: 3px solid #fff;
  color: #fff;
}
.final__home .icon {
  width: 36px;
  height: 36px;
}
@media (max-width: 767px) {
  .final__home {
    display: none;
  }
  .final__actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }
}

/* Footer */
.site-footer {
  background: var(--navy-deep);
  color: #fff;
  padding-block: var(--s-7);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-6);
}
.site-footer .brand img {
  height: 64px;
  width: auto;
}
.site-footer .nav__link {
  color: #fff;
}
@media (max-width: 767px) {
  .site-footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .site-footer .nav__list {
    flex-direction: column;
    gap: var(--s-2);
    padding: 0;
  }
  .site-footer .nav__link {
    border-bottom: 0;
    padding: var(--s-2) 0;
  }
}

/* ==========================================================================
   Micro-interactions
   transform + opacity only. Everything is inside no-preference (instant
   states for reduced motion). Hover effects only on hover-capable devices.
   ========================================================================== */
:root {
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Buttons: colour change via overlay opacity, press via scale */
.btn {
  position: relative;
  isolation: isolate;
  --btn-hover-bg: transparent;
}
.btn--primary { --btn-hover-bg: var(--btn-primary-bg-hover); }
.btn--navy { --btn-hover-bg: var(--navy-hover); }
.btn--secondary { --btn-hover-bg: var(--surface); }
.btn--outline-light { --btn-hover-bg: rgba(255, 255, 255, 0.14); }
.btn::before,
.btn::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
}
.btn::before {
  z-index: -1;
  background: var(--btn-hover-bg);
}
.btn::after {
  z-index: -2;
  box-shadow: 0 8px 18px rgba(16, 36, 60, 0.28);
}
@media (hover: hover) {
  .btn:hover::before,
  .btn:hover::after {
    opacity: 1;
  }
}
.btn:focus-visible::before {
  opacity: 1;
}

@media (prefers-reduced-motion: no-preference) {
  .btn {
    transition: transform 0.2s var(--ease-out);
  }
  .btn::before,
  .btn::after {
    transition: opacity 0.2s ease-out;
  }
  .btn .icon {
    transition: transform 0.2s var(--ease-out);
  }
  @media (hover: hover) {
    .btn:hover {
      transform: translateY(-2px);
    }
    .btn:hover .icon {
      transform: translateX(3px);
    }
  }
  .btn:active {
    transform: translateY(0) scale(0.97);
    transition-duration: 0.08s;
  }

  /* Nav: sliding underline, kept on for the section in view */
  .nav__link {
    position: relative;
  }
  .nav__link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: var(--brand-orange);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.25s var(--ease-out);
  }
  .nav__link:hover::after,
  .nav__link:focus-visible::after,
  .nav__link[aria-current="true"]::after {
    transform: scaleX(1);
  }

  /* Header: elevation fades in once the page scrolls */
  .site-header::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    box-shadow: 0 6px 18px rgba(16, 36, 60, 0.12);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease-out;
  }
  .site-header.is-scrolled::after {
    opacity: 1;
  }

  /* Mobile menu: fade + slide in and out */
  @media (max-width: 767px) {
    .nav {
      display: block;
      visibility: hidden;
      opacity: 0;
      transform: translateY(-8px);
      transition: opacity 0.2s ease-out, transform 0.2s var(--ease-out), visibility 0s linear 0.2s;
    }
    .nav.is-open {
      visibility: visible;
      opacity: 1;
      transform: none;
      transition-delay: 0s;
    }
    .nav__link::after {
      display: none;
    }
  }

  /* Cards: lift with a shadow layer that fades in */
  .benefit,
  .step,
  .why-card {
    transition: transform 0.25s var(--ease-out);
  }
  .benefit::before,
  .step::before,
  .why-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: var(--shadow-lift);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease-out;
  }
  .benefit,
  .why-card {
    position: relative;
  }
  .benefit .icon-circle,
  .step .icon-circle,
  .why-card .icon-circle {
    transition: transform 0.25s var(--ease-out);
  }
  @media (hover: hover) {
    .benefit:hover,
    .step:hover,
    .why-card:hover {
      transform: translateY(-4px);
    }
    .benefit:hover::before,
    .step:hover::before,
    .why-card:hover::before {
      opacity: 1;
    }
    .benefit:hover .icon-circle,
    .step:hover .icon-circle,
    .why-card:hover .icon-circle {
      transform: scale(1.06);
    }
  }

  /* FAQ: answer eases in, toggle bar rotates, toggle responds to hover/press */
  .faq__item[open] .faq__a {
    animation: faq-in 0.25s var(--ease-out);
  }
  .faq__toggle {
    transition: transform 0.2s var(--ease-out);
  }
  .faq__toggle::after {
    transition: transform 0.25s var(--ease-out);
  }
  @media (hover: hover) {
    .faq__item summary:hover .faq__toggle {
      transform: scale(1.1);
    }
  }
  .faq__item summary:active .faq__toggle {
    transform: scale(0.94);
  }

  /* Hero: staggered entrance on load */
  .hero__content > * {
    animation: rise-in 0.5s var(--ease-out) both;
  }
  .hero__content > :nth-child(2) { animation-delay: 70ms; }
  .hero__content > :nth-child(3) { animation-delay: 140ms; }
  .hero__content > :nth-child(4) { animation-delay: 200ms; }
  .hero__content > :nth-child(5) { animation-delay: 260ms; }

  /* Scroll reveals (classes are added by script.js, removed when done) */
  .reveal {
    opacity: 0;
    transform: translateY(16px);
  }
  .reveal.is-in {
    opacity: 1;
    transform: none;
    transition: opacity 0.4s ease-out, transform 0.4s var(--ease-out);
    transition-delay: calc(var(--i, 0) * 70ms);
  }

  /* Final CTA marker: slow ring pulse */
  .final__home::after {
    content: "";
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 2px solid var(--brand-orange);
    animation: ring-pulse 2.4s ease-out infinite;
    pointer-events: none;
  }
}
.final__home {
  isolation: isolate;
}
.final__home::before {
  content: "";
  position: absolute;
  inset: -11px;
  border-radius: 50%;
  background: rgba(241, 140, 36, 0.25);
  z-index: -1;
}
.site-header::after {
  z-index: -1;
}
.site-header {
  isolation: isolate;
}

@keyframes rise-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
@keyframes faq-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}
@keyframes ring-pulse {
  from { opacity: 0.6; transform: scale(1); }
  to { opacity: 0; transform: scale(1.7); }
}

/* 07 background art is a bottom strip: fill above it with its own top colour */
.section.section--bg-options {
  background-color: #002355;
  background-size: 100% auto;
  background-position: center bottom;
  padding-bottom: calc(var(--s-7) + 11vw);
}
@media (max-width: 767px) {
  .section.section--bg-options {
    background-size: auto 160px;
    background-position: 62% bottom;
    padding-bottom: calc(var(--s-7) + 90px);
  }
}

/* 02 background art is a bottom strip: fill above it with its own top colour */
.section.section--bg-simpler {
  background-color: #001742;
  background-size: 100% auto;
  background-position: center bottom;
  padding-bottom: calc(var(--s-7) + 11vw);
}
@media (max-width: 767px) {
  .section.section--bg-simpler {
    background-size: auto 160px;
    background-position: 62% bottom;
    padding-bottom: calc(var(--s-7) + 90px);
  }
}

/* 04 background art is a bottom strip: fill above it with its own top colour */
.section.section--bg-fit {
  background-color: #00265c;
  background-size: 100% auto;
  background-position: center bottom;
  padding-bottom: calc(var(--s-7) + 11vw);
}
@media (max-width: 767px) {
  .section.section--bg-fit {
    background-size: auto 160px;
    background-position: 62% bottom;
    padding-bottom: calc(var(--s-7) + 90px);
  }
}

/* 09 background art is a bottom strip: fill above it with its own top colour */
.section.section--bg-faq {
  background-color: #f8fbfe;
  background-image: url("assets/img/bg-faq.webp"),
    linear-gradient(90deg, #f2f8fd 0%, #f4f9fc 25%, #fafcfe 50%, #fafcfe 75%, #f6fafd 100%);
  background-size: 100% auto, 100% 100%;
  background-position: center bottom, center;
  padding-bottom: calc(var(--s-7) + 11vw);
}
@media (max-width: 767px) {
  .section.section--bg-faq {
    background-size: auto 160px, 100% 100%;
    background-position: 62% bottom, center;
    padding-bottom: calc(var(--s-7) + 90px);
  }
}

/* 08 background art is a bottom strip: fill above it with its own top colour */
.section.section--bg-help {
  background-color: #f6fafd;
  background-size: 100% auto;
  background-position: center bottom;
  padding-bottom: calc(var(--s-7) + 11vw);
}
@media (max-width: 767px) {
  .section.section--bg-help {
    background-size: auto 160px;
    background-position: 62% bottom;
    padding-bottom: calc(var(--s-7) + 90px);
  }
}

/* 06 background art is a bottom strip: fill above it with its own top colour */
.section.section--bg-next {
  background-color: #f6fafe;
  background-image: url("assets/img/bg-next.webp"),
    linear-gradient(90deg, #fbfdff 0%, #f4f8fe 25%, #f3f9fe 50%, #f3f9fe 75%, #fbfdfd 100%);
  background-size: 100% auto, 100% 100%;
  background-position: center bottom, center;
  padding-bottom: calc(var(--s-7) + 11vw);
}
@media (max-width: 767px) {
  .section.section--bg-next {
    background-size: auto 160px, 100% 100%;
    background-position: 62% bottom, center;
    padding-bottom: calc(var(--s-7) + 90px);
  }
}

/* 03 background art is a bottom strip: fill above it with its own top colour */
.section.section--bg-how {
  background-color: #f8fafe;
  background-size: 100% auto;
  background-position: center bottom;
  padding-bottom: calc(var(--s-7) + 11vw);
}
@media (max-width: 767px) {
  .section.section--bg-how {
    background-size: auto 160px;
    background-position: 62% bottom;
    padding-bottom: calc(var(--s-7) + 90px);
  }
}

/* Phone line under a CTA button */
.phone-line {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-size: var(--fs-lead);
  font-weight: 600;
  text-decoration: none;
  color: var(--text);
}
.phone-line .icon {
  width: 20px;
  height: 20px;
  color: var(--brand-orange);
}
.phone-line:hover span {
  text-decoration: underline;
}

/* 05: "Learn More About Nextly" button hidden (markup kept in index.html) */
.section--bg-why .why__intro .btn {
  display: none;
}

/* 05 founder paragraph */
.why__intro .lead.why__founder {
  margin-top: var(--s-4);
}




/* Seller Lead form modal */
.form-modal {
  width: min(640px, calc(100% - 2 * var(--s-4)));
  max-width: none;
  max-height: min(92dvh, 920px);
  padding: 0;
  border: 0;
  border-radius: var(--radius-card-lg);
  background: #fff;
  color: var(--brand-navy);
  box-shadow: 0 24px 64px rgba(16, 36, 60, 0.45);
  overflow: hidden;
}
.form-modal[open] {
  display: flex;
  flex-direction: column;
}
.form-modal::backdrop {
  background: rgba(16, 36, 60, 0.72);
}
.form-modal__bar {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  padding: var(--s-3) var(--s-3) var(--s-3) var(--s-5);
  background: var(--brand-navy);
}
.form-modal__bar img {
  height: 44px;
  width: auto;
}
.form-modal__close {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
}
.form-modal__close:focus-visible {
  box-shadow: 0 0 0 3px var(--brand-navy), 0 0 0 5px #fff;
}
@media (hover: hover) {
  .form-modal__close:hover {
    background: rgba(255, 255, 255, 0.24);
  }
}
.form-modal__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: var(--s-4);
}
.form-modal__body iframe {
  display: block;
  width: 100%;
  min-height: 996px;
}
body:has(.form-modal[open]) {
  overflow: hidden;
}
@media (max-width: 767px) {
  .form-modal {
    width: 100%;
    height: 100dvh;
    max-height: none;
    margin: 0;
    border-radius: 0;
  }
  .form-modal__body {
    padding: var(--s-2);
  }
}
@media (prefers-reduced-motion: no-preference) {
  .form-modal[open] {
    animation: modal-in 0.25s var(--ease-out);
  }
  .form-modal[open]::backdrop {
    animation: modal-fade 0.25s ease-out;
  }
  .form-modal__close {
    transition: background-color 0.2s;
  }
}
@keyframes modal-in {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
@keyframes modal-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Button with the phone number stacked under the label */
.btn--stack {
  flex-direction: column;
  gap: 2px;
  padding-block: var(--s-2);
}
.btn__main {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
}
.btn__sub {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-small);
  font-weight: 600;
  line-height: 20px;
}
.btn .btn__sub .icon {
  width: 16px;
  height: 16px;
  stroke-width: 2.25;
}
@media (prefers-reduced-motion: no-preference) {
  @media (hover: hover) {
    .btn:hover .btn__sub .icon {
      transform: none;
    }
  }
}

/* Header: Explore My Options as a button */
.nav__list {
  align-items: center;
}
.btn--sm {
  min-height: 44px;
  padding-inline: var(--s-4);
  font-size: var(--fs-small);
}
@media (min-width: 768px) and (max-width: 1023px) {
  .nav__list {
    gap: var(--s-4);
  }
}
@media (max-width: 767px) {
  .nav__list {
    align-items: stretch;
  }
  .nav__cta {
    padding-top: var(--s-4);
  }
  .nav__cta .btn {
    width: 100%;
  }
}

.form-modal__intro {
  padding: var(--s-2) var(--s-2) var(--s-4);
  font-size: var(--fs-lead);
  font-weight: 600;
  line-height: 1.5;
  color: var(--brand-navy);
}
@media (max-width: 767px) {
  .form-modal__intro {
    padding: var(--s-3) var(--s-3) var(--s-3);
    font-size: var(--fs-body);
  }
}
