@font-face {
  font-family: 'Nunito Sans';
  src: url('../assets/fonts/nunito-sans-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Nunito Sans';
  src: url('../assets/fonts/nunito-sans-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Nunito Sans';
  src: url('../assets/fonts/nunito-sans-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Nunito Sans';
  src: url('../assets/fonts/nunito-sans-800.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}


/* ==== Tokens ==== */

:root {

  /* Colors */
  --primary: oklch(0.6538 0.1687 142.56);
  --primary-alt: oklch(0.78 0.105 139.46);
  --secondary: oklch(0.3566 0.0341 110.3);
  --secondary-alt: oklch(0.32 0.0341 110.3);
  --tertiary: oklch(0.97 0.06 97.9);
  --accent: oklch(0.8475 0.0554 164.99);

  --base-0: oklch(0.97 0.0027 145.45);
  --base-50: oklch(0.95 0.0027 145.45); /* light backgrounds — warm cream */
  --base-100: oklch(0.96 0.004 130); /* for borders */
  --base-800: oklch(0.1575 0.0027 145.45); /* dark backgrounds */
  --base-900: oklch(0.12 0.0027 145.45); /* extra dark backgrounds */

  --text-dark: oklch(0.3566 0.0341 110.3); /* headings */
  --text-dark-muted: oklch(0.38 0.0159 110.3); /* body text */
  --text-light: var(--base-0); /* light headings */
  --text-light-muted: oklch(from var(--base-50) l c h / 0.82); /* light body text */
  --text-accent-dark: var(--primary-alt); /* dark accent text */
  --text-accent-light: var(--primary); /* light accent text */

  /* Borders */
  --border: 1px solid var(--base-100);
  --radius: .5em;
  --radius-s: calc(var(--radius) / 2);

  /* Sections */
  --gutter: clamp(1.2rem, 4.606vw + -0.527rem, 5rem);
  --section-space-xs: clamp(1rem, 2.424vw + 0.091rem, 3rem);
  --section-space-s: clamp(2rem, 2.424vw + 1.091rem, 4rem);
  --section-space-m: clamp(3rem, 2.424vw + 2.091rem, 5rem);
  --section-space-l: clamp(4.5rem, 3.944vw + 3.268rem, 8rem);

  /* Gaps */
  --container-gap: 2.5em 6%; /* between containers */
  --content-gap: 1em; /* between elements */
  --grid-gap: clamp(0.8rem, 0.4818rem + 0.8485vw, 1.5rem); /* between grid items */

  /* Content Width */
  --content-width: 1200px;

  /* Text */
  --h1: clamp(2.5rem, 1.8785rem + 1.6575vw, 4rem);
  --h2: clamp(2.25rem, 2.0455rem + 0.5455vw, 2.7rem);
  --h3: clamp(1.875rem, 1.7045rem + 0.4545vw, 2.25rem);
  --h4: clamp(1.3rem, 1.2545rem + 0.1212vw, 1.4rem);
  --h5: clamp(1.2rem, 1.1545rem + 0.1212vw, 1.3rem);
  --h6: clamp(1rem, 0.9545rem + 0.1212vw, 1.1rem);

  --text-xs: clamp(0.9rem, 0.8545rem + 0.1212vw, 1rem);
  --text-s: clamp(1rem, 0.9545rem + 0.1212vw, 1.1rem);
  --text-m: clamp(1.1rem, 1.0545rem + 0.1212vw, 1.2rem);
  --text-l: clamp(1.3rem, 1.2545rem + 0.1212vw, 1.4rem);

  --primary-font: 'Nunito Sans', sans-serif;

  /* Spacing */
  --space-xs: clamp(1.1rem, 0.525vw + 0.87rem, 1.5rem);
  --space-s: clamp(1.3rem, 0.918vw + 0.898rem, 2rem);
  --space-m: clamp(1.6rem, 1.836vw + 0.797rem, 3rem);
  --space-l: clamp(2rem, 2.623vw + 0.852rem, 4rem);

  /* Box Shadow */
  --box-shadow: rgba(12, 12, 24, 0.1) 5px 15px 45px -6px;

  /* Contextual */
  --success: oklch(0.72 0.17 145);
  --cta: oklch(0.5114 0.1956 25.68);
  --cta-alt: oklch(0.44 0.196 25);
}

/* ==== Default Styles ==== */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  transition: all .3s ease;
}

*:focus-visible {
  outline: 2px solid var(--text-dark);
}

html {
  overflow-x: hidden;
}

body {
  font-family: var(--primary-font);
  font-weight: 400;
  color: var(--text-dark-muted);
  line-height: 1.6em;
  font-size: var(--text-m);
  background: var(--base-0);
  overflow-x: clip;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1em;
  text-wrap: balance;
}

h2, h3 { line-height: 1.1em; }

h1, .h1 {font-size: var(--h1);}
h2, .h2 {font-size: var(--h2);}
h3, .h3 {font-size: var(--h3);}
h4, .h4 {font-size: var(--h4);}
h5, .h5 {font-size: var(--h5);}
h6, .h6 {font-size: var(--h6);}

.text-xs {font-size: var(--text-xs); line-height: 1.2em;}
.text-s {font-size: var(--text-s); line-height: 1.4em;}
.text-m {font-size: var(--text-m); line-height: 1.6em;}
.text-l {font-size: var(--text-l); line-height: 1.7em;}

.eyebrow {
  font-size: var(--text-xs);
  font-weight: 700;
  line-height: 1.2em;
  color: var(--primary-alt);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

ul {
  list-style-position: inside;
  padding-inline-start: 40px;
}

:where(a) {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
  &:hover {color: var(--primary-alt);}
}

:where(img) {
  display: block;
  max-width: 100%;
  border-radius: var(--radius);
}

:where(section, header, footer) {
  padding-inline: var(--gutter);
  padding-block: var(--section-space-m);
  

  & > :where(.inner) {
    max-inline-size: var(--content-width, 1366px);
    display: flex;
    flex-direction: column;
    gap: var(--container-gap);
    margin: 0 auto;

    & :where(div) {
      display: flex;
      flex-direction: column;
      gap: var(--content-gap);
    }
  }
}

/* ==== Buttons ==== */
.buttons {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  margin-top: calc(var(--content-gap) / 2)
}

:where(.btn) {
  color: #fff;
  background: linear-gradient(-45deg, var(--cta), oklch(0.56 0.195 32), oklch(47.747% 0.19594 29.223), oklch(51.799% 0.19738 27.705));
  background-size: 300% 300%;
  border: none;
  padding: 13px 20px 13px 14px;
  font-weight: 700;
  font-size: var(--text-l);
  text-decoration: none;
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  gap: .6em;
  transition: filter .3s ease, box-shadow .3s ease;
  animation: btn-aurora 5s ease infinite;

  &:hover {
    filter: brightness(0.88);
    color: #fff;
  }

  & .btn__icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
  }

  & .btn__divider {
    width: 1px;
    height: 1.8em;
    background: oklch(1 0 0 / 0.3);
    flex-shrink: 0;
    border-radius: 1px;
  }

  & .btn__text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    line-height: 1.2;
  }

  & .btn__label {
    font-size: .67em;
    letter-spacing: .3px;
    font-weight: 600;
    opacity: 0.85;
  }
}

.btn--secondary {
  background: transparent;
}

/* ==== Utility Classes ==== */

/* Text */
.balance {text-wrap: balance;}
.pretty {text-wrap: pretty;}
.nudge {font-size: var(--text-xs); line-height: 1.3; opacity: .75;}
.highlight {color: var(--tertiary); &:is(p){font-weight: 700;}}

/* Dark Sections */
body :where(.dark) {
  color: var(--text-light-muted);
  background: var(--base-800);
  & :where(h1, h2, h3, h4, h5, h6) {color: var(--text-light);}
  & .eyebrow {color: var(--text-light-muted);}
  & *:focus-visible {outline-color: var(--text-light);}
}

/* Responsive Grids */
:where(.grid--2, .grid--3, .grid--4, .grid--5, .grid--6) {
  display: grid;
  gap: var(--grid-gap);
  grid-template-columns: 1fr;
}

@media (min-width: 940px) {
  :where(.grid--2) {grid-template-columns: repeat(2, minmax(0, 1fr));}
  :where(.grid--3) {grid-template-columns: repeat(3, minmax(0, 1fr));}
  :where(.grid--4) {grid-template-columns: repeat(4, minmax(0, 1fr));}
  :where(.grid--5) {grid-template-columns: repeat(5, minmax(0, 1fr));}
  :where(.grid--6) {grid-template-columns: repeat(6, minmax(0, 1fr));}
}

@media (min-width: 768px) {
  :where(.grid--3) {grid-template-columns: repeat(2, minmax(0, 1fr));}
  :where(.grid--4) {grid-template-columns: repeat(3, minmax(0, 1fr));}
  :where(.grid--5) {grid-template-columns: repeat(3, minmax(0, 1fr));}
  :where(.grid--6) {grid-template-columns: repeat(3, minmax(0, 1fr));}
}

@keyframes btn-aurora {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 oklch(from var(--success) l c h / 0.7); }
  70%  { box-shadow: 0 0 0 7px oklch(from var(--success) l c h / 0); }
  100% { box-shadow: 0 0 0 0 oklch(from var(--success) l c h / 0); }
}

/* ==== Top Bar ==== */
.topbar {
  padding-block: .55em;
  background: var(--base-800);
  font-size: var(--text-xs);
  line-height: 1.2em;
  z-index: 99;

  & .inner {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  & .topbar__status {
    color: var(--success);
    display: flex;
    align-items: center;
    gap: .5em;
    font-weight: 700;

    &::before {
      content: '';
      display: block;
      width: .55em;
      height: .55em;
      background: var(--success);
      border-radius: 50%;
      flex-shrink: 0;
      animation: pulse 2s ease-in-out infinite;
    }
  }
}

@media (max-width: 600px) {
  .topbar .inner {
    flex-direction: column;
    gap: .5em;
    text-align: center;
  }
}

/* ==== Header ==== */
header {
  padding-block: .6em;
  background: #fff;
  box-shadow: 0 4px 8px oklch(0 0 0 / 0.05);
  z-index: 99;

  & .inner {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
  }

  & .header__logo-wrapper img {
    border-radius: 0;
    width: 280px;
    max-width:  100%
  }

  & .header__content-wrapper {
    flex-direction: row;
    align-items: center;
    gap: calc(var(--content-gap) * 1.2);
    & p {
      font-weight: 700;
      font-size: var(--text-xs);
      line-height: 1.2;
      text-align: right;
      text-wrap: balance;
    }

    & .btn {flex: 0 0 auto;}
  }
}

@media (min-width: 768px) {
  header {position: sticky; top: 0;}
}

@media (max-width: 955px) {
  header .btn {
    padding: 12px 18px;
    font-size: var(--text-s);
    & :is(svg, .btn__divider) {display: none;}
  }
}

@media (max-width: 767px) {
  header .inner {
    gap: calc(var(--content-gap) / 2);
    justify-content: center;
    & .btn {display: none;}
    & .header__content-wrapper {display: none;}
    & .header__logo-wrapper img {width: 200px;}
  }
}

/* ==== Footer ==== */
footer {
  padding-block: var(--section-space-xs);
  background: var(--base-900);
  font-size: var(--text-xs);
  line-height: 1.2;

  & .inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;

    & > div {gap: 0;}

    & .footer__right {align-items: end;}
  }

  & nav {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1.5em;

    & a:hover {text-decoration: underline;}
  }
}

@media (max-width: 767px) {
  footer .inner {
    text-align: center;
    & .footer__right {align-items: center;}
  }
}


/* ==== Page Sections ==== */

/* Reusable Background Texture */
.bg-pattern {
  background-color: var(--base-800);
  background-image:
    radial-gradient(ellipse at 20% 50%, oklch(0.35 0.04 150 / 0.4) 0%, transparent 60%), radial-gradient(ellipse at 80% 80%, oklch(0.30 0.03 160 / 0.3) 0%, transparent 60%), repeating-linear-gradient(-45deg, oklch(1 0 0 / 0.055) 0px, oklch(1 0 0 / 0.055) 1px, transparent 1px, transparent 6px);
  background-size: auto, auto, 8.49px 8.49px;
}

/* Hero */
.hero {
  display: flex;
  padding-block-start: var(--section-space-m);
  padding-block-end: 0;
  align-content: end;
  background-color: var(--base-800);
  min-height: min(85dvh, 800px);

  & .inner {
    flex-grow: 1;
    flex-direction: row;
    flex-wrap: nowrap;
  }

  & .hero__content-wrapper {
    flex: 1;
    justify-content: space-between;
    gap: clamp(2rem, -5.3971rem + 8.6643vw, 5rem);
    padding-block-end: var(--section-space-s);
  }

  & .dynamic-service {
    color: var(--tertiary);
  }

  & .hero__h1-sub {
    display: block;
    font-size: 0.5em;
  }

  & .hero__media-wrapper {
    flex: 1.2;
    align-self: stretch;
    position: relative;
    background-image: url("/assets/images/company-truck-wave.webp");
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    border-radius: var(--radius) var(--radius) 0 0;

    & > img {
      flex: 1;
      min-height: 280px;
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center left;
      border-radius: var(--radius) var(--radius) 0 0;
    }
  }

  & .hero__image-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1em;
    padding: 4em 1.5em 1.5em;
    background: linear-gradient(to top, oklch(from var(--base-900) l c h / 0.9) 20%, transparent 100%);

    & img {
      height: 44px;
      width: auto;
      border-radius: 0;
      object-fit: contain;
    }
  }

  & .hero__social-proof {
    gap: calc(var(--content-gap) * 1.5);
    align-items: start;
  }

  & .hero__gbp-rating {
    flex-direction: row;
    align-items: center;
    gap: .8em;
    background: oklch(1 0 0 / 0.08);
    border: 1px solid oklch(1 0 0 / 0.14);
    border-radius: var(--radius);
    padding: .55em .9em;
    backdrop-filter: blur(8px);
  }

  & .hero__gbp-stars {
    flex-direction: row;
    align-items: center;
    gap: .2em;
  }

  & .hero__gbp-score {
    font-weight: 800;
    color: var(--text-light);
    margin-left: .25em;
  }

  & .hero__gbp-count {
    color: var(--text-light-muted);
    padding-left: .8em;
    border-left: 1px solid oklch(1 0 0 / 0.2);
  }

  & .hero__feature-bubbles {
    gap: .2em 1.2em;
    flex-direction: row;
    flex-wrap: wrap;
  }

  & .hero__bubble {
    flex-direction: row;
    align-items: center;
    gap: .4em;
    font-size: var(--text-s);
    font-weight: 400;
    color: var(--text-light);
    align-self: flex-start;

    & .hero_bubble-icon {
      display: flex;
      align-items: center;
      justify-content: center;
      background: var(--accent);
      border-radius: 50%;
      color: var(--text-dark);
      padding: 2px;

      & svg {
        width: 15px;
        height: auto;
      }
    }
  }

}

@media (max-width: 912px) {
  .hero .inner {
    flex-direction: column;
    & .hero__cta-group {text-align: center;}
    & .hero__content-wrapper {padding-block-end: 0;}
    & .hero__media-wrapper {min-height: 500px;}
    & .buttons {justify-content: center;}
    & .hero__social-proof {align-items: center; justify-content: center;}
  }
}

@media (max-width: 767px) {
  .hero .inner {
    & .hero__feature-bubbles {flex-direction: column; align-items: center;}
    & .hero__media-wrapper {min-height: 320px;}
  }
}


/* Relief */
.relief {
  background: var(--base-50);
  & .relief__media-wrapper {
    flex: 45;

    & img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
  }

  & .relief__content {
    flex: 55;

    @media (max-width: 767px) {order: -1;}
  }
}

@media (min-width: 900px) {
  .relief .inner {flex-direction: row;}
}


/* CTA */
.cta {
  & .cta__content-wrapper {
    align-items: center;
    text-align: center;
    max-inline-size: 680px;
    margin-inline: auto;

    &::after {
      content: '';
      display: block;
      width: 2px;
      height: 2.5em;
      background: linear-gradient(to bottom, oklch(from var(--primary) l c h / 0.55), transparent);
      margin: 0 auto;
      border-radius: 2px;
    }
  }
}


/* Insurance */
.insurance {
  background: var(--base-50);

  & > .inner {
    align-items: center;
    text-align: center;
  }

  & .insurance__logos {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1.5em;

    & img {
      height: 30px;
      width: auto;
      border-radius: 0;
      filter: grayscale(1);
      opacity: 0.55;

      &:hover {
        filter: grayscale(0);
        opacity: 1;
      }
    }
  }

  & .insurance__more {
    font-size: var(--text-s);
    font-weight: 800;
    color: var(--text-dark-muted);
  }
}


/* Expertise */
.expertise {
  & .expertise__content {
    flex: 55;
    min-width: 0;
  }

  & .expertise__sidebar {
    flex: 45;
    min-width: 0;
  }

  & .expertise__services {
    list-style: none;
    padding-inline-start: 0;
    display: grid;
    gap: .65em;
    grid-template-columns: 1fr 1fr;

    & li {
      display: flex;
      align-items: start;
      gap: .65em;
      font-weight: 600;
      line-height: 1.2;

      &::before {
        content: '✓';
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: 1.5em;
        height: 1.5em;
        background: var(--primary);
        border-radius: 50%;
        font-weight: 800;
        font-size: .65em;
        color: var(--text-light);
        flex-shrink: 0;
        margin-top: .1em;
      }
    }
  }

  & .expertise__plumber-note {
    background: oklch(from var(--primary) l c h / 0.12);
    border-left: 3px solid var(--primary);
    padding: .6em .9em;
    border-radius: 0 var(--radius-s) var(--radius-s) 0;
    font-size: var(--text-s);
    font-weight: 600;
    margin-top: 1.5em;
    text-wrap: pretty;
    line-height: 1.3em;
  }

  & .expertise__map-card {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 8px 40px oklch(0 0 0 / 0.16), 0 2px 12px oklch(0 0 0 / 0.08);
    display: flex;
    flex-direction: column;
    gap: 0;

    & > img {
      border-radius: 0;
      width: 100%;
      display: block;
    }

    & .expertise__cta-card {
      padding: var(--space-s);
      display: flex;
      flex-direction: column;
      gap: var(--content-gap);
      flex: 1;
      align-items: center;
      text-align: center;

      & h3 {
        font-size: var(--h4);
      }

      & ul {
        font-size: var(--text-xs);
        line-height: 1.1em;
        gap: .2em 2em;
        text-align: left;
        padding-inline-start: 0;
      }

      & .buttons {
        align-items: center;
        justify-content: center;
      }
    }
  }
}

@media (min-width: 900px) {
  .expertise .inner {
    flex-direction: row;
    align-items: center;
  }
}

@media (901px <= width <= 1205px) {
  .expertise .expertise__services {
      grid-template-columns: 1fr !important;
    }
}

@media (max-width: 767px) {
  .expertise .expertise__content {
    text-align: center;
    & .expertise__services {
      display: flex;
      flex-direction: row;
      flex-wrap: wrap;
      gap: .4em 1em;
      align-items: center;
      justify-content: center;
    }
  }
}

/* Proof */
.proof {
  background: var(--base-50);

  & .inner {align-items: center;}

  & .proof__header {
    align-items: center;
    text-align: center;
    max-inline-size: 650px;
  }

  & .proof__testimonials {
    list-style: none;
    padding-inline-start: 0;
    align-items: stretch;

    & li {
      background: var(--base-0);
      border-radius: var(--radius);
      box-shadow: var(--box-shadow);
      border-top: 3px solid var(--primary);
      padding: var(--space-s);
      display: flex;
    }

    & blockquote {
      display: flex;
      flex-direction: column;
      gap: var(--content-gap);
      flex: 1;
      justify-content: space-between;

      & p {
        flex: 1;
        font-size: var(--text-s);
        line-height: 1.5;

      }

      & .proof__testimonial-footer {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: .5em;
        border-top: var(--border);
        padding-top: 1em;
        font-size: var(--text-xs);
        line-height: 1.2;
        font-weight: 400;

        & .proof__testimonial-avatar {
          --avatar-size: 2em;

          display: flex;
          align-items: center;
          justify-content: center;
          background: #78909C;
          color: #fff;
          padding: .5em;
          border-radius: 100%;
          line-height: 0;
          width: var(--avatar-size);
          height: var(--avatar-size);
      }

        & cite {
          font-style: normal;
          font-weight: 700;
          color: var(--secondary);
        }
      }
    }
  }

  & .proof__photo-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--grid-gap);
    width: 100%;

    & img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    @media (max-width: 767px) {gap: 8px;}
  }
}

/* Roadmap */
.roadmap {
  background: var(--base-50);
  & .roadmap__content-wrapper {
    align-items: start;
    gap: var(--container-gap);
  }

  & .roadmap__process,
  & .roadmap__benefits {
    flex: 1;
  }

  & .roadmap__benefit-list {
    list-style: none;
    padding-inline-start: 0;
    display: flex;
    flex-direction: column;
    gap: 1.25em;

    & > li {
      display: flex;
      flex-direction: column;
      gap: .2em;
      padding-left: 1em;
      border-left: 3px solid var(--primary);

      & h4 {
        color: var(--secondary);
      }
    }
  }

  & .roadmap__credentials {
    align-items: center;
    text-align: center;
    padding-top: var(--content-gap);
    border-top: var(--border);

    & > p {
      font-size: var(--text-xs);
      line-height: 1.2;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: .08em;
      color: var(--text-dark-muted);
    }

    & .roadmap__credential-logos {
      flex-direction: row;
      justify-content: center;
      flex-wrap: wrap;
      gap: 1em 2.5em;

      & img {
        height: 80px;
        width: auto;
        max-width: 100%
        object-fit: contain;
        border-radius: 0;

        @media (max-width: 767px) {
          height: 60px;
        }
      }
    }
  }
}

@media (min-width: 900px) {
  .roadmap .roadmap__content-wrapper {flex-direction: row;}
}


/* Closure */
.closure {
  & .closure__content-wrapper {
    align-items: center;
    text-align: center;
    text-wrap: pretty;
    max-inline-size: 750px;
    margin-inline: auto;
  }
}


/* ==== Mobile CTA Bar ==== */

@media (max-width: 767px) {
  .mobile-cta-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 150;
    transform: translateY(100%);
    transition: none; /* prevent flash on initial render — JS enables this after first paint */

    & .btn {
      width: 100%;
      border-radius: 0;
      justify-content: center;
      padding-bottom: calc(13px + env(safe-area-inset-bottom));
    }
  }

  .mobile-cta-bar.is-visible {
    transform: translateY(0);
  }
}

@media (min-width: 768px) {
  .mobile-cta-bar { display: none; }
}


/* ==== Modals ==== */

html:has(.modal:target) {
  overflow: hidden;
}

.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal:target {
  display: flex;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: oklch(0 0 0 / 0.55);
  cursor: pointer;
  text-decoration: none;
}

.modal__dialog {
  position: relative;
  z-index: 1;
  background: white;
  border-radius: var(--radius);
  width: min(680px, 100%);
  max-height: calc(100dvh - 2rem);
  overflow-y: auto;
  padding: var(--space-m);
  box-shadow: var(--box-shadow);
}

.modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--base-100);
  border-radius: var(--radius-s);
  text-decoration: none;
  color: var(--text-dark);
  font-size: 1.25rem;
  line-height: 1;
  font-weight: 700;
  flex-shrink: 0;

  &:hover {
    background: var(--base-800);
    color: var(--text-light);
  }
}

.modal__body {
  & h2 {
    font-size: var(--h3);
    color: var(--text-dark);
    margin-bottom: var(--space-s);
    padding-right: 2.5rem;
  }
  & h3 {
    font-size: var(--text-m);
    color: var(--text-dark);
    margin-top: var(--space-s);
    margin-bottom: 0.5rem;
  }
  & p, & ul {
    font-size: var(--text-s);
    color: var(--text-dark-muted);
    line-height: 1.4;
    margin-bottom: 0.75rem;
  }
  & ul {
    padding-left: 1.5rem;
  }
  & li {
    margin-bottom: 0.25rem;
  }
}