/**
 * Design tokens from Figma: BIGBRO landing
 * https://www.figma.com/design/wBvhDDhPlpAxD612heUHs8/BigBro-landing?node-id=1378-1723
 *
 * Type: Disket Mono (logo) + Winston/Mulish (UI) + Merriweather (display).
 */

@font-face {
  font-family: "Disket Mono";
  src: url("../fonts/Disket-Mono-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Disket Mono";
  src: url("../fonts/Disket-Mono-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /*
   * The palette is light-only. `only light` additionally opts the page out of
   * the algorithmic darkening that Chrome on Android, Samsung Internet and
   * Opera apply to pages that declare no scheme: it repaints flat backgrounds
   * but leaves media and hardcoded SVG fills alone, which breaks the sections
   * that are already dark by design.
   */
  color-scheme: only light;

  /* Colors — Figma variables */
  --white: #ffffff;
  --midnight: #1e293b;
  --soft-blue: #d7e0ff;
  --middle-blue: #8490e7;
  --accent: #5f68b8;
  --soft-blue-50: #ebf0ff;
  --midnight-80: #4b5462;
  --middle-blue-200: #ced3f5;
  --soft-blue-25: #f5f7ff;
  --soft-blue-200: #eff3ff;
  --soft-blue-600: #acb3cc;
  --middle-blue-600: #6a73b9;
  --accent-blue-600: #4c5393;
  --middle-blue-800: #353a5c;
  --middle-blue-400: #9da6ec;

  /* Colors — semantic */
  --color-white: var(--white);
  --color-bg: var(--white);
  --color-bg-soft: var(--soft-blue-50);
  --color-bg-soft-25: var(--soft-blue-25);
  --color-bg-dark: var(--midnight);
  --color-text: var(--midnight);
  --color-text-muted: var(--midnight-80);
  --color-text-on-dark: var(--white);
  --color-accent: var(--accent);
  --color-accent-hover: var(--accent-blue-600);
  --color-middle: var(--middle-blue);
  --color-border: var(--midnight-80);
  --color-error: #d14343;

  /* Typography */
  --font-sans: "Winston", "Mulish", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Merriweather", Georgia, "Times New Roman", serif;
  --font-logo: "Disket Mono", ui-monospace, monospace;
  --font-body: var(--font-sans);
  --font-display: var(--font-serif);
  --font-size-logo: 32px;

  --font-weight-light: 300;
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  --font-size-footer: 12px;
  --font-size-caption: 14px;
  --font-size-body: 16px;
  --font-size-card-title: 18px;
  --font-size-heading: 20px;
  --font-size-marquee: 20px;
  --font-size-price: 48px;
  --font-size-display: 40px;
  --font-size-step: 96px;

  --line-height-display: 1.2;
  --line-height-body: 1.3;
  --line-height-list: 1.5;

  --letter-spacing-tight: -0.176px;

  /* Radii & layout (from frame, for later sections) */
  --radius-badge: 6px;
  --radius-control: 8px;
  --radius-card: 12px;
  --radius-media: 14px;

  --space-4: 4px;
  --space-8: 8px;
  --space-10: 10px;
  --space-12: 12px;
  --space-16: 16px;
  --space-20: 20px;
  --space-24: 24px;
  --space-30: 30px;
  --space-60: 60px;
  --section-gap: 80px;

  --layout-max: 1200px;
  --layout-bg: 1920px;
  --layout-pad: max(var(--space-8), calc((min(100vw, var(--layout-bg)) - var(--layout-max)) / 2));
  --header-height: 64px;
}

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

html {
  color: var(--color-text);
  background-color: var(--color-bg);
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-medium);
  line-height: var(--line-height-body);
  color: var(--color-text);
  background-color: var(--color-bg);
}

h1,
h2,
h3,
.font-display {
  font-family: var(--font-display);
  font-weight: var(--font-weight-light);
  line-height: var(--line-height-display);
}

/* Desktop-only line break: inline on phones, its own line from 769px up. */
@media (min-width: 769px) {
  .title-break {
    display: block;
  }
}

/* The inverse: a new line on phones, one phrase on desktop. */
.title-break-mobile {
  display: block;
}

@media (min-width: 1025px) {
  .title-break-mobile {
    display: inline;
  }
}

.title-break-always {
  display: block;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/**
 * Text settles out of a blur as it scrolls into view. The hidden state is gated
 * behind .has-reveal, which is set in wp_head and dropped again by
 * text-reveal.js when the animation cannot run, so text is never left invisible.
 */
.has-reveal [data-reveal] {
  opacity: 0;
  /* Offset and invisible until revealed, so it must not swallow the pointer from
     whatever it is shifted over. */
  pointer-events: none;
  filter: blur(12px);
  transform: translate3d(0, 24px, 0);
  will-change: opacity, filter, transform;
}

.has-reveal [data-reveal].is-revealed {
  opacity: 1;
  pointer-events: auto;
  filter: blur(0);
  transform: none;
  will-change: auto;
  transition:
    opacity 0.9s cubic-bezier(0.22, 0.61, 0.36, 1) var(--reveal-delay, 0ms),
    filter 0.9s cubic-bezier(0.22, 0.61, 0.36, 1) var(--reveal-delay, 0ms),
    transform 0.9s cubic-bezier(0.22, 0.61, 0.36, 1) var(--reveal-delay, 0ms);
}

/**
 * Buttons sweep a gradient on hover instead of swapping a flat colour.
 * The gradient is three times the button width and its outer thirds are solid,
 * so the resting and hover states keep the exact palette colours and only the
 * travel between them shows the middle tone. Each button sets the three stops
 * via --btn-from / --btn-mid / --btn-to.
 */
.site-header__demo,
.hero__btn,
.review__btn,
.criteria__btn,
.pricing__btn,
.final-cta__btn,
.consult-form__submit,
.cookie-banner__accept {
  --btn-mid: var(--middle-blue-600);
  /* <button> keeps its native rendering otherwise, and Safari then ignores the
     gradient — only the flat background-color would show. */
  appearance: none;
  -webkit-appearance: none;
  background-color: var(--btn-from);
  background-image: linear-gradient(
    to right,
    var(--btn-from) 0%,
    var(--btn-from) 33.33%,
    var(--btn-mid) 50%,
    var(--btn-to) 66.66%,
    var(--btn-to) 100%
  );
  background-position: 0 0;
  background-size: 300% 100%;
  transition:
    background-position 0.4s ease-in-out,
    background-color 0.4s ease-in-out,
    box-shadow 0.4s ease-in-out,
    color 0.4s ease-in-out;
}

.site-header__demo:hover,
.hero__btn:hover,
.review__btn:hover,
.criteria__btn:hover,
.pricing__btn:hover,
.final-cta__btn:hover,
.consult-form__submit:hover,
.cookie-banner__accept:hover {
  /* The flat colour follows the gradient, so the hover still reads even where
     the gradient is not painted. */
  background-color: var(--btn-to);
  background-position: 100% 0;
  box-shadow: 0 4px 15px 0 color-mix(in srgb, var(--btn-to) 45%, transparent);
}

@media (prefers-reduced-motion: reduce) {
  .site-header__demo,
  .hero__btn,
  .review__btn,
  .criteria__btn,
  .pricing__btn,
  .final-cta__btn,
  .consult-form__submit,
  .cookie-banner__accept {
    transition: none;
  }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: nowrap;
  gap: var(--space-20);
  box-sizing: border-box;
  width: 100%;
  height: var(--header-height);
  min-height: var(--header-height);
  max-width: var(--layout-max);
  margin-inline: auto;
  padding: var(--space-8);
  background-color: var(--color-bg);
  border-radius: 0 0 var(--radius-card) var(--radius-card);
}

.site-header__toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.site-header__burger {
  display: none;
}

.site-header__drawer {
  display: contents;
}

.site-header__actions {
  display: contents;
}

.site-logo {
  flex-shrink: 0;
  font-family: var(--font-logo);
  font-size: var(--font-size-logo);
  font-weight: var(--font-weight-bold);
  line-height: 1;
  color: var(--color-text);
  text-decoration: none;
  white-space: nowrap;
}

.site-nav {
  flex: 1 1 auto;
  max-width: 500px;
}

.site-nav .menu {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  font-family: var(--font-body);
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-body);
  color: var(--color-text);
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a:hover,
.site-header__login:hover {
  color: var(--color-accent);
}

.site-header__login {
  flex-shrink: 0;
  margin-left: auto;
  font-family: var(--font-body);
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-body);
  color: var(--color-text);
  text-decoration: none;
  white-space: nowrap;
}

.site-header__demo {
  --btn-from: var(--color-bg-dark);
  --btn-to: var(--color-accent);
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  padding: var(--space-12) var(--space-24);
  font-family: var(--font-body);
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-medium);
  line-height: var(--line-height-body);
  color: var(--color-text-on-dark);
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  border-radius: var(--radius-control);
}

@media (min-width: 1025px) {
  .site-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    column-gap: var(--space-20);
  }

  .site-logo {
    justify-self: start;
  }

  .site-nav {
    width: auto;
    max-width: 500px;
  }

  .site-nav .menu {
    gap: var(--space-30);
    justify-content: center;
  }

  .site-header__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: var(--space-20);
    justify-self: end;
  }

  .site-header__login {
    margin-left: 0;
  }
}

@media (max-width: 1024px) {
  .site-header {
    display: grid;
    height: auto;
    min-height: var(--header-height);
    overflow: hidden;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas:
      "burger logo demo"
      "menu menu menu"
      "login login login";
    align-items: center;
    column-gap: var(--space-12);
    row-gap: 0;
    transition: row-gap 0.35s ease;
  }

  .site-header:has(.site-header__toggle:checked) {
    row-gap: var(--space-16);
  }

  .site-header__burger {
    display: inline-flex;
    grid-area: burger;
    justify-self: start;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    cursor: pointer;
    border-radius: var(--radius-control);
  }

  .site-header__burger-icon,
  .site-header__burger-icon::before,
  .site-header__burger-icon::after {
    display: block;
    width: 20px;
    height: 2px;
    background-color: var(--color-text);
    border-radius: 1px;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .site-header__burger-icon {
    position: relative;
  }

  .site-header__burger-icon::before,
  .site-header__burger-icon::after {
    content: "";
    position: absolute;
    left: 0;
  }

  .site-header__burger-icon::before {
    top: -6px;
  }

  .site-header__burger-icon::after {
    top: 6px;
  }

  .site-header__toggle:checked + .site-header__burger .site-header__burger-icon {
    background-color: transparent;
  }

  .site-header__toggle:checked + .site-header__burger .site-header__burger-icon::before {
    top: 0;
    transform: rotate(45deg);
  }

  .site-header__toggle:checked + .site-header__burger .site-header__burger-icon::after {
    top: 0;
    transform: rotate(-45deg);
  }

  .site-logo {
    grid-area: logo;
    justify-self: start;
    min-width: 0;
  }

  .site-header__demo {
    grid-area: demo;
    justify-self: end;
  }

  .site-nav {
    display: grid;
    grid-area: menu;
    grid-template-rows: 0fr;
    flex: none;
    width: 100%;
    max-width: none;
    justify-self: center;
    min-height: 0;
    transition: grid-template-rows 0.35s ease;
  }

  .site-header__login {
    display: flex;
    grid-area: login;
    justify-content: center;
    justify-self: center;
    width: 100%;
    margin-left: 0;
    max-height: 0;
    overflow: hidden;
    text-align: center;
    opacity: 0;
    transform: translateY(-0.75rem);
    pointer-events: none;
    visibility: hidden;
    transition:
      max-height 0.35s ease,
      opacity 0.3s ease,
      transform 0.35s ease,
      visibility 0s 0.35s;
  }

  .site-header__toggle:checked ~ .site-header__drawer .site-nav {
    grid-template-rows: 1fr;
  }

  .site-header__toggle:checked ~ .site-header__drawer .site-header__login {
    max-height: 3rem;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    visibility: visible;
    transition:
      max-height 0.35s ease,
      opacity 0.3s ease,
      transform 0.35s ease,
      visibility 0s;
  }

  .site-nav .menu {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-16);
    min-height: 0;
    overflow: hidden;
    text-align: center;
    opacity: 0;
    transform: translateY(-0.75rem);
    transition: opacity 0.3s ease, transform 0.35s ease;
  }

  .site-header__toggle:checked ~ .site-header__drawer .site-nav .menu {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 480px) {
  .site-header {
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "burger logo"
      "menu menu"
      "login login"
      "demo demo";
  }

  .site-logo {
    grid-area: logo;
    justify-self: end;
  }

  .site-header__burger {
    justify-self: start;
  }

  .site-header__demo {
    display: inline-flex;
    grid-area: demo;
    justify-self: stretch;
    width: 100%;
    max-height: 0;
    padding-block: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-0.75rem);
    pointer-events: none;
    visibility: hidden;
    transition:
      max-height 0.35s ease,
      padding-block 0.35s ease,
      opacity 0.3s ease,
      transform 0.35s ease,
      visibility 0s 0.35s;
  }

  .site-header__toggle:checked ~ .site-header__drawer .site-header__demo {
    max-height: 4rem;
    padding: var(--space-12) var(--space-24);
    opacity: 1;
    transform: none;
    pointer-events: auto;
    visibility: visible;
    transition:
      max-height 0.35s ease,
      padding-block 0.35s ease,
      opacity 0.3s ease,
      transform 0.35s ease,
      visibility 0s;
  }

  .site-nav {
    justify-self: start;
  }

  .site-nav .menu {
    align-items: flex-start;
    text-align: left;
  }

  .site-header__login {
    justify-content: flex-start;
    justify-self: start;
    text-align: left;
  }

  .site-header__demo {
    justify-self: stretch;
    width: 100%;
  }
}

@media (max-width: 1024px) and (prefers-reduced-motion: reduce) {
  .site-header,
  .site-nav,
  .site-nav .menu,
  .site-header__login,
  .site-header__demo {
    transition: none;
  }
}

.site-front {
  width: 100%;
  max-width: var(--layout-bg);
  margin-inline: auto;
  padding-inline: 0;
}

.site-front > section:not(.hero),
.landing-dark > section {
  padding-inline: var(--layout-pad);
}

@media (min-width: 769px) {
  .site-front > section:not(.hero),
  .landing-dark > section {
    padding-block: var(--section-gap) 0;
  }

  .landing-dark > section:last-child {
    padding-bottom: var(--section-gap);
  }
}

.hero {
  display: flex;
  flex-direction: column;
  gap: var(--space-20);
  margin-top: calc(-1 * var(--header-height));
  padding-inline: 0;
}

.hero__stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  min-height: 902px;
  padding-top: calc(var(--space-60) + var(--header-height));
  background-color: var(--soft-blue-50);
  background-image: url("../images/hero/frame-107.png");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
  border-radius: 0 0 var(--radius-control) var(--radius-control);
}

.hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-shrink: 0;
  flex-direction: column;
  align-items: center;
  gap: var(--space-24);
  width: 100%;
  max-width: var(--layout-max);
  margin-inline: auto;
  padding-inline: var(--space-16);
}

.hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--font-size-display);
  font-weight: var(--font-weight-light);
  line-height: var(--line-height-display);
  color: var(--color-text);
  text-align: center;
}

.hero__title em {
  font-style: italic;
  font-weight: var(--font-weight-light);
  color: var(--color-accent);
}

.hero__lead {
  max-width: 634px;
  margin: 0;
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-body);
  color: var(--color-text-muted);
  text-align: center;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-10);
  align-items: center;
  justify-content: center;
}

.hero__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-12) var(--space-24);
  font-family: var(--font-body);
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-medium);
  line-height: var(--line-height-body);
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  border: 0;
  border-radius: var(--radius-control);
}

.hero__btn--primary {
  --btn-from: var(--color-bg-dark);
  --btn-to: var(--color-accent);
  color: var(--color-text-on-dark);
}

.hero__btn--secondary {
  --btn-from: var(--soft-blue);
  --btn-mid: var(--middle-blue);
  --btn-to: var(--color-accent);
  color: var(--color-accent);
}

.hero__btn--secondary:hover {
  color: var(--color-text-on-dark);
}

.hero__note {
  margin: 0;
  font-size: var(--font-size-caption);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-body);
  color: var(--color-text-muted);
  text-align: center;
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-24);
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-body);
  color: var(--color-text-muted);
  text-align: center;
}

.hero__product {
  position: relative;
  z-index: 1;
  flex: 1 1 0;
  width: min(1044px, calc(100% - 32px));
  min-height: 220px;
  margin-top: var(--space-24);
  overflow: hidden;
  border-color: var(--color-border);
  border-style: solid;
  border-width: 10px 10px 0;
  border-radius: var(--radius-media) var(--radius-media) 0 0;
}

.hero__product img {
  display: block;
  width: 100%;
  height: auto;
  min-height: 100%;
  aspect-ratio: 1146 / 816;
  object-fit: cover;
  object-position: top center;
}

.hero__marquee {
  overflow: hidden;
  width: 100%;
}

.hero__marquee-track {
  display: flex;
  gap: var(--space-30);
  width: max-content;
  animation: okk-marquee 28s linear infinite;
}

.hero__marquee-item {
  font-size: var(--font-size-marquee);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-body);
  color: var(--color-text-muted);
  white-space: nowrap;
}

@keyframes okk-marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 768px) {
  .hero__stage {
    min-height: 0;
    padding-top: calc(var(--space-30) + var(--header-height));
  }

  .hero__product {
    flex: none;
    height: 240px;
  }

  .hero__title {
    font-size: 28px;
  }

  .hero__btn {
    white-space: normal;
  }

  .hero__trust {
    flex-direction: column;
    gap: var(--space-8);
  }
}

@media (max-width: 480px) {
  .hero__stage {
    padding-inline: 0;
  }

  .hero__content {
    align-items: flex-start;
  }

  .hero__title,
  .hero__lead,
  .hero__trust {
    text-align: left;
  }

  .hero__trust {
    justify-content: flex-start;
  }

  .hero__actions,
  .hero__note {
    align-self: stretch;
    width: 100%;
    text-align: center;
  }

  .hero__actions {
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .hero__btn {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 479px) {
  .hero__product {
    border-width: 5px 5px 0;
  }
}

@media (max-width: 360px) {
  .hero__product {
    width: calc(100% - 8px);
    border-radius: 8px 8px 0 0;
  }
}

.leads {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 80px;
}

.leads__title {
  margin: 0;
  max-width: 100%;
  font-family: var(--font-display);
  font-size: var(--font-size-display);
  font-weight: var(--font-weight-light);
  line-height: var(--line-height-display);
  color: var(--color-text);
  text-align: center;
}

.leads__title em {
  font-style: italic;
  font-weight: var(--font-weight-light);
  color: var(--color-accent);
}

.leads__cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-10);
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.leads__card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  min-height: 238px;
  padding: var(--space-10);
  color: var(--color-white);
  background: var(--color-accent);
  border-radius: var(--radius-control);
}

.leads__slot {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.leads__icon {
  position: absolute;
  left: 50%;
  top: calc(50% - 12px);
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  overflow: hidden;
  background: var(--color-white);
  border-radius: var(--radius-badge);
  transform: translate(-50%, -50%);
}

.leads__icon img {
  display: block;
  max-width: 70px;
  max-height: 70px;
  object-fit: contain;
}

.leads__card-text {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-body);
  color: var(--color-white);
}

.leads__note {
  margin: 0;
  max-width: var(--layout-max);
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-body);
  color: var(--color-text-muted);
  text-align: center;
}

/* Narrow cards wrap the copy onto more lines, so the icon joins the flow and
   the card grows instead of letting the text run under it. */
@media (max-width: 1024px) {
  .leads__card {
    gap: var(--space-16);
  }

  .leads__icon {
    position: static;
    flex: none;
    align-self: center;
    margin-block: auto;
    transform: none;
  }
}

@media (max-width: 767px) {
  .leads__cards {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .leads__card {
    width: 100%;
    max-width: 393px;
    min-height: 220px;
  }
}

@media (max-width: 768px) {
  .leads {
    gap: var(--space-30);
    padding-block: var(--space-60) var(--space-30);
  }

  .leads__title {
    font-size: 28px;
  }
}

@media (max-width: 480px) {
  .leads,
  .leads__title {
    text-align: left;
  }

  .leads {
    align-items: flex-start;
  }

  .leads__note {
    align-self: stretch;
    width: 100%;
    text-align: center;
  }
}

.pain {
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.pain__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--font-size-display);
  font-weight: var(--font-weight-light);
  line-height: var(--line-height-display);
  color: var(--color-text);
  text-align: center;
}

.pain__title em {
  font-style: italic;
  font-weight: var(--font-weight-light);
  color: var(--color-accent);
}

.pain__cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-10);
  margin: 0;
  padding: 0;
  list-style: none;
}

.pain__card {
  display: flex;
  flex-direction: column;
  gap: var(--space-10);
  min-width: 0;
}

.pain__rule {
  display: block;
  width: 173px;
  max-width: 100%;
  height: 5px;
  transform: scaleX(-1);
}

.pain__card-text {
  margin: 0;
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-body);
  color: var(--color-text);
}

.pain__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-60);
  align-items: center;
}

.pain__compare {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-10);
  align-items: flex-start;
  justify-content: center;
}

.pain__col {
  display: flex;
  flex-direction: column;
  gap: var(--space-10);
  align-items: center;
}

.pain__col-title {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--font-size-heading);
  font-weight: var(--font-weight-medium);
  line-height: var(--line-height-display);
  color: var(--color-text);
  text-align: center;
}

.pain__list {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pain__list li {
  display: flex;
  gap: var(--space-8);
  align-items: center;
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-list);
  letter-spacing: var(--letter-spacing-tight);
  color: var(--color-text-muted);
}

.pain__icon {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  overflow: hidden;
  background-color: var(--middle-blue);
  border-radius: var(--radius-control);
}

.pain__icon img {
  display: block;
  width: 10px;
  height: 8px;
}

.pain__icon--cross img {
  width: 8px;
  height: 8px;
}

.pain__calc,
.pain__close {
  margin: 0;
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-body);
  color: var(--color-text);
  text-align: center;
}

.pain__calc {
  max-width: 704px;
}

@media (max-width: 960px) {
  .pain__cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: var(--space-24);
    column-gap: var(--space-10);
  }
}

@media (max-width: 768px) {
  .pain {
    gap: var(--space-30);
    padding-block: var(--space-60) var(--space-30);
  }

  .pain__title {
    font-size: 28px;
  }

  .pain__body {
    gap: var(--space-30);
  }

  .pain__compare {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .pain__cards {
    grid-template-columns: 1fr;
    row-gap: var(--space-24);
  }

  .pain__calc,
  .pain__close,
  .pain__title,
  .pain__col-title {
    text-align: left;
  }

  .pain__body,
  .pain__col,
  .pain__compare {
    align-items: flex-start;
  }
}

.rop {
  display: flex;
  flex-direction: column;
  gap: var(--space-60);
  align-items: center;
}

.rop__intro {
  display: flex;
  flex-direction: column;
  gap: var(--space-20);
  align-items: center;
  max-width: 635px;
  text-align: center;
}

.rop__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--font-size-display);
  font-weight: var(--font-weight-light);
  line-height: var(--line-height-display);
  color: var(--color-text);
}

.rop__title em {
  font-style: italic;
  font-weight: var(--font-weight-light);
  color: var(--color-accent);
}

.rop__lead {
  max-width: 596px;
  margin: 0;
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-body);
  color: var(--color-text);
}

.rop__cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-10);
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rop__card {
  display: flex;
  flex-direction: column;
  gap: var(--space-10);
  align-items: center;
  min-width: 0;
}

.rop__slot {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 150px;
  overflow: hidden;
  background-color: var(--color-accent);
  border-radius: var(--radius-control);
}

.rop__slot-bg {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rop__icon {
  position: relative;
  z-index: 1;
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  overflow: hidden;
  background-color: var(--color-white);
  border-radius: var(--radius-badge);
}

.rop__icon-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  overflow: hidden;
}

.rop__icon-inner img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.rop__card-copy {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  width: 100%;
}

.rop__card-title {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--font-size-heading);
  font-weight: var(--font-weight-medium);
  line-height: var(--line-height-display);
  color: var(--color-accent);
}

.rop__card-text {
  margin: 0;
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-body);
  color: var(--color-text);
}

.rop__note {
  margin: 0;
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-body);
  color: var(--color-text-muted);
  text-align: center;
}

@media (max-width: 960px) {
  .rop__cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: var(--space-24);
    column-gap: var(--space-10);
  }
}

@media (max-width: 768px) {
  .rop {
    gap: var(--space-30);
    padding-block: var(--space-60) var(--space-30);
  }

  .rop__title {
    font-size: 28px;
  }
}

@media (max-width: 480px) {
  .rop__cards {
    grid-template-columns: 1fr;
    row-gap: var(--space-24);
  }

  .rop,
  .rop__intro {
    align-items: flex-start;
    text-align: left;
  }

  .rop__title,
  .rop__lead,
  .rop__note {
    text-align: left;
  }
}

.review {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-20);
  overflow-x: clip;
}

.review__intro {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-20);
  align-items: center;
  max-width: 794px;
  text-align: center;
}

.review__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--font-size-display);
  font-weight: var(--font-weight-light);
  line-height: var(--line-height-display);
  color: var(--color-text);
}

.review__title em {
  font-style: italic;
  font-weight: var(--font-weight-light);
  color: var(--color-accent);
}

.review__lead {
  margin: 0;
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-body);
  color: var(--color-text);
}

.review__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(998px, 100%);
}

.review__glow {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 0;
  width: 1280px;
  height: 1227px;
  pointer-events: none;
  transform: translate(-50%, -50%);
  -webkit-mask-image: url("../images/review/glow.png");
  mask-image: url("../images/review/glow.png");
  -webkit-mask-mode: luminance;
  mask-mode: luminance;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}

.review__glow img {
  display: block;
  width: 100%;
  height: 100%;
}

.review__product {
  position: relative;
  z-index: 1;
  width: 100%;
  overflow: hidden;
  aspect-ratio: 998 / 561;
  border: 10px solid var(--middle-blue-200);
  border-radius: var(--radius-media);
}

.review__product img {
  display: block;
  width: 100%;
  height: auto;
}

.review__video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.review__footer {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-60);
  align-items: center;
  width: 100%;
}

.review__points {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-30);
  align-items: center;
  justify-content: center;
  max-width: 964px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-medium);
  line-height: var(--line-height-body);
  color: var(--color-text);
  text-align: center;
}

.review__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-10);
  align-items: center;
  justify-content: center;
}

.review__btn {
  --btn-from: var(--color-bg-dark);
  --btn-to: var(--color-accent);
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  padding: var(--space-12) var(--space-24);
  font-family: var(--font-body);
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-medium);
  line-height: var(--line-height-body);
  color: var(--color-text-on-dark);
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  border-radius: var(--radius-control);
}

.review__hint {
  max-width: 368px;
  margin: 0;
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-body);
  color: var(--color-text);
}

@media (max-width: 768px) {
  .review {
    padding-block: var(--space-60) var(--space-30);
  }

  .review__title {
    font-size: 28px;
  }

  .review__product {
    border-width: 6px;
  }

  .review__footer {
    gap: var(--space-30);
  }

  .review__points {
    flex-direction: column;
    gap: var(--space-12);
  }

  .review__btn {
    white-space: normal;
  }

  .review__hint {
    max-width: none;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .review,
  .review__intro {
    align-items: flex-start;
    text-align: left;
  }

  .review__title,
  .review__lead {
    text-align: left;
  }

  .review__cta {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    text-align: center;
  }

  .review__hint {
    width: 100%;
    max-width: none;
    text-align: center;
  }

  .review__product {
    border-width: 5px;
  }
}

.setup {
  display: flex;
  flex-direction: column;
  gap: var(--space-60);
  align-items: center;
}

.setup__intro {
  display: flex;
  flex-direction: column;
  gap: var(--space-20);
  align-items: center;
  max-width: 794px;
  text-align: center;
}

.setup__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--font-size-display);
  font-weight: var(--font-weight-light);
  line-height: var(--line-height-display);
  color: var(--color-text);
}

@media (min-width: 1025px) {
  .setup__title {
    white-space: nowrap;
  }
}

.setup__title em {
  font-style: italic;
  font-weight: var(--font-weight-light);
  color: var(--color-accent);
}

.setup__steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-10);
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.setup__step {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.setup__head {
  display: flex;
  gap: var(--space-8);
  align-items: center;
  width: 100%;
  padding-right: 2px;
}

.setup__num {
  flex-shrink: 0;
  font-family: var(--font-body);
  font-size: var(--font-size-step);
  font-weight: var(--font-weight-medium);
  line-height: 1;
  color: var(--color-middle);
}

.setup__dots {
  display: flex;
  flex-shrink: 0;
  gap: var(--space-8);
  align-items: center;
}

.setup__dots img {
  display: block;
  width: 5px;
  height: 5px;
}

.setup__connector {
  display: flex;
  flex: 1 1 0;
  align-items: center;
  min-width: 0;
  height: 29px;
}

.setup__connector-line {
  flex: 1 1 0;
  min-width: 8px;
  height: 4px;
  background: linear-gradient(to right, var(--middle-blue), var(--midnight));
  border-radius: 999px 0 0 999px;
}

.setup__connector-tip {
  display: block;
  flex-shrink: 0;
  height: 29px;
  object-fit: contain;
  object-position: right center;
}

.setup__connector--arrow .setup__connector-tip {
  position: relative;
  z-index: 1;
  width: 16px;
  margin-left: -14px;
}

.setup__connector--check .setup__connector-tip {
  width: 36px;
  height: 24px;
  margin-left: 8px;
}

.setup__connector--check .setup__connector-line {
  border-radius: 999px;
}

.setup__copy {
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
  padding-inline: var(--space-10);
}

.setup__step-title {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--font-size-heading);
  font-weight: var(--font-weight-medium);
  line-height: var(--line-height-display);
  color: var(--color-text);
}

.setup__step-text {
  margin: 0;
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-body);
  color: var(--color-text);
}

.setup__product {
  width: min(1180px, 100%);
  overflow: hidden;
  aspect-ratio: 1180 / 664;
  border: 10px solid var(--color-border);
  border-radius: var(--radius-media);
}

.setup__product img {
  display: block;
  width: 100%;
  height: auto;
}

.setup__video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 960px) {
  .setup__steps {
    grid-template-columns: 1fr;
    justify-items: center;
    row-gap: var(--space-24);
  }

  .setup__step {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: var(--space-16);
    width: 100%;
    max-width: 440px;
  }

  /* The head becomes a full-height rail: number, dots and the arrow run down
     the left side instead of across the top. */
  .setup__head {
    flex-direction: column;
    align-items: center;
    width: auto;
    height: 100%;
    padding-right: 0;
  }

  .setup__dots {
    flex-direction: column;
  }

  .setup__connector {
    flex: 1 1 auto;
    flex-direction: column;
    width: 36px;
    min-width: 0;
    min-height: 40px;
    height: auto;
  }

  .setup__connector-line {
    flex: 1 1 auto;
    width: 4px;
    min-width: 0;
    min-height: 12px;
    height: auto;
    background: linear-gradient(to bottom, var(--middle-blue), var(--midnight));
    border-radius: 999px 999px 0 0;
  }

  .setup__connector-tip {
    object-position: center;
  }

  /* Rotating keeps the layout box 16x29, so the line has to run 20px into it
     to reach the chevron tip — the vertical twin of the desktop -14px inset. */
  .setup__connector--arrow .setup__connector-tip {
    width: 16px;
    height: 29px;
    margin-left: 0;
    margin-top: -20px;
    transform: rotate(90deg);
  }

  .setup__connector--check .setup__connector-tip {
    margin-left: 3px;
    margin-top: var(--space-8);
  }

  .setup__copy {
    align-self: center;
    padding-inline: 0;
  }

  .setup__num {
    font-size: 64px;
  }
}

@media (max-width: 768px) {
  .setup {
    gap: var(--space-30);
    padding-block: var(--space-60) var(--space-30);
  }

  .setup__title {
    font-size: 28px;
  }

  .setup__product {
    border-width: 6px;
  }
}

@media (max-width: 480px) {
  .setup,
  .setup__intro {
    align-items: flex-start;
    text-align: left;
  }

  .setup__title {
    text-align: left;
  }

  .setup__steps {
    justify-items: start;
  }

  .setup__product {
    border-width: 5px;
  }
}

.features {
  display: flex;
  flex-direction: column;
  gap: 0;
  /* Keeps the cards' backdrops (which run past their own boxes, see
     .features__copy::after) inside the section and isolates their z-index. */
  clip-path: inset(0);
}

.features__card {
  --frame: 10px;
  position: sticky;
  top: calc(var(--header-height) + (var(--stack-i, 0) * 12px));
  z-index: calc(1 + var(--stack-i, 0));
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: var(--space-20);
  align-items: center;
  justify-content: center;
  padding-bottom: var(--space-60);
  background-color: transparent;
}

/* Runs to the very bottom edge so a longer card underneath never shows through
   the gap between two stacked cards. */
.features__card::before {
  content: "";
  position: absolute;
  top: var(--frame);
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 0;
  background-color: var(--color-bg);
}

.features__card:last-child {
  padding-bottom: var(--section-gap);
}

.features__card:nth-child(1) {
  --frame-color: var(--midnight);
}

.features__card:nth-child(2) {
  --frame-color: var(--middle-blue-800);
}

.features__card:nth-child(3) {
  --frame-color: var(--accent);
}

.features__card:nth-child(4) {
  --frame-color: var(--middle-blue);
}

.features__card:nth-child(5) {
  --frame-color: var(--middle-blue-200);
}

.features__media {
  position: relative;
  z-index: 1;
  flex: none;
  width: min(737px, 100%);
  max-width: 737px;
  overflow: hidden;
  aspect-ratio: 737 / 415;
  border: var(--frame) solid var(--frame-color, var(--color-border));
  border-radius: var(--radius-media);
}

.features__media img {
  display: block;
  width: 100%;
  height: auto;
}

.features__video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.features__copy {
  position: relative;
  z-index: 1;
  flex: none;
  width: min(737px, 100%);
  max-width: 737px;
  background-color: var(--color-bg);
}

/* Cards in the sticky stack differ in height, so a taller one underneath pokes
   out below the card on top of it. The backdrop keeps running to the bottom of
   the section (clipped there) to hide whatever is left of it. */
.features__copy::after {
  content: "";
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  height: 100vh;
  background-color: var(--color-bg);
}

.features__title {
  margin: 0 0 var(--space-16);
  font-family: var(--font-body);
  font-size: var(--font-size-heading);
  font-weight: var(--font-weight-medium);
  line-height: var(--line-height-display);
  color: var(--color-accent);
}

.features__points {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-body);
  color: var(--color-text);
}

@media (max-width: 768px) {
  .features {
    padding-block: var(--space-30) var(--space-60);
  }

  .features__card {
    --frame: 6px;
    gap: 0;
    align-items: stretch;
    padding-bottom: 0;
  }

  /* Full-width media covers the card on its own, so the opaque backdrop is
     carried by the copy instead — it starts right under the frame. */
  .features__card::before {
    display: none;
  }

  .features__card:last-child {
    padding-bottom: var(--space-30);
  }

  .features__media {
    z-index: 2;
    width: 100%;
    max-width: none;
  }

  /* The backdrop reaches half way up the frame: percentages resolve against the
     card width, and the media is 415/737 of it, so half its height is 28.2%. */
  .features__copy {
    --copy-backdrop: 28.2%;
    width: 100%;
    max-width: none;
    margin-top: calc(-1 * var(--copy-backdrop));
    padding-block: calc(var(--copy-backdrop) + var(--space-20)) var(--space-24);
  }
}

@media (max-width: 480px) {
  .features__card {
    --frame: 5px;
  }

  .features__title,
  .features__points {
    text-align: left;
  }
}

.criteria {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 30px;
  overflow: hidden;
  color: var(--color-text-on-dark);
  background-color: var(--color-bg-dark);
  border-radius: var(--radius-control) var(--radius-control) 0 0;
}

.criteria::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  z-index: 0;
  /* Right edge stays pinned; the glow shrinks so its left edge never runs past
     the headline (~420px of copy) on narrower screens. */
  width: min(783px, max(280px, calc(100% - 420px)));
  aspect-ratio: 783 / 589;
  pointer-events: none;
  background: url("../images/criteria/glow.png") no-repeat top right / 100% 100%;
  mix-blend-mode: screen;
}

.criteria > * {
  position: relative;
  z-index: 1;
}

.criteria__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--font-size-display);
  font-weight: var(--font-weight-light);
  line-height: var(--line-height-display);
  color: var(--color-text-on-dark);
}

.criteria__title em {
  font-style: italic;
  font-weight: var(--font-weight-light);
  color: var(--color-middle);
}

.criteria__note,
.criteria__leads,
.criteria__lead {
  max-width: 797px;
  margin: 0;
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-body);
  color: var(--color-text-on-dark);
}

.criteria__leads {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.criteria__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-60);
  align-items: flex-start;
}

.criteria__btn {
  --btn-from: var(--color-white);
  --btn-mid: var(--middle-blue);
  --btn-to: var(--color-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-12) var(--space-24);
  font-family: var(--font-body);
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-medium);
  line-height: var(--line-height-body);
  color: var(--color-text);
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  border-radius: var(--radius-control);
}

.criteria__btn:hover {
  color: var(--color-text-on-dark);
}


@media (max-width: 960px) {
  .criteria::before {
    display: none;
  }
}

@media (max-width: 768px) {
  .criteria {
    gap: var(--space-24);
    padding-block: var(--space-60) var(--space-30);
  }

  .criteria__title {
    font-size: 28px;
  }

  .criteria__body {
    gap: var(--space-30);
  }

  .criteria__btn {
    white-space: normal;
  }
}

@media (max-width: 480px) {
  .criteria__note,
  .criteria__lead {
    text-align: left;
  }
}

.month {
  display: flex;
  flex-direction: column;
  gap: var(--space-60);
  color: var(--color-text-on-dark);
  background-color: var(--color-bg-dark);
  /* Fills the sub-pixel seam that can appear between stacked dark blocks. */
  box-shadow: 0 -1px 0 0 var(--color-bg-dark);
}

.month__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--font-size-display);
  font-weight: var(--font-weight-light);
  line-height: var(--line-height-display);
  color: var(--color-text-on-dark);
}

.month__title em {
  font-style: italic;
  font-weight: var(--font-weight-light);
  color: var(--color-middle);
}

.month__grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  align-items: start;
  gap: var(--space-10);
  margin: 0;
  padding: 0;
  list-style: none;
}

.month__card {
  display: flex;
  align-items: flex-start;
  min-width: 0;
  height: auto;
  padding: var(--space-16);
  border-radius: var(--radius-card);
}

.month__card p {
  margin: 0;
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-body);
}

.month__card:nth-child(1) {
  grid-column: 1 / span 4;
  color: var(--color-text);
  background: linear-gradient(to right, var(--soft-blue-200), var(--soft-blue));
}

.month__card:nth-child(2) {
  grid-column: 2 / span 4;
  color: var(--color-text);
  background: linear-gradient(to right, var(--soft-blue), var(--middle-blue));
}

.month__card:nth-child(3) {
  grid-column: 3 / span 4;
  color: var(--color-text-on-dark);
  background: linear-gradient(to right, var(--middle-blue), var(--middle-blue-600));
}

.month__card:nth-child(4) {
  grid-column: 4 / span 4;
  color: var(--color-text-on-dark);
  background: linear-gradient(to right, var(--middle-blue-600), var(--color-accent));
}

.month__card:nth-child(5) {
  grid-column: 5 / span 4;
  color: var(--color-text-on-dark);
  background: linear-gradient(to right, var(--color-accent), var(--accent-blue-600));
}

@media (max-width: 768px) {
  .month {
    gap: var(--space-30);
    padding-block: var(--space-60) var(--space-30);
  }

  .month__title {
    font-size: 28px;
  }

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

  .month__card:nth-child(n) {
    grid-column: 1 / -1;
  }
}

@media (max-width: 480px) {
  .month__title {
    text-align: left;
  }
}

.landing-dark {
  position: relative;
  width: 100%;
  margin: 0;
  overflow: visible;
  color: var(--color-text-on-dark);
  background-color: var(--color-bg-dark);
  box-shadow: 0 -1px 0 0 var(--color-bg-dark);
}

.faq {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-20);
  overflow: visible;
  width: 100%;
  margin: 0;
  color: var(--color-text-on-dark);
  background-color: transparent;
}

.faq__intro {
  position: relative;
  flex: 0 1 494px;
  min-width: 0;
  z-index: 0;
}

.faq__title {
  position: relative;
  z-index: 2;
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--font-size-display);
  font-weight: var(--font-weight-light);
  line-height: var(--line-height-display);
  color: var(--color-text-on-dark);
}

.faq__title em {
  font-style: italic;
  font-weight: var(--font-weight-light);
  color: var(--color-middle);
}

.faq__deco {
  position: absolute;
  top: calc(100% + var(--space-24));
  left: calc(-1 * var(--layout-pad));
  z-index: 0;
  display: block;
  width: 615px;
  max-width: none;
  height: auto;
  margin: 0;
  pointer-events: none;
  user-select: none;
}

.faq__list {
  position: relative;
  z-index: 2;
  display: flex;
  flex: 0 1 696px;
  flex-direction: column;
  min-width: 0;
}

.faq__item {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-block: var(--space-20);
  border-bottom: 1px solid var(--soft-blue-50);
}

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

.faq__q {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  padding: 0;
  font-size: var(--font-size-heading);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-display);
  color: var(--color-text-on-dark);
  cursor: pointer;
  list-style: none;
}

.faq__q::-webkit-details-marker {
  display: none;
}

.faq__q::marker {
  content: "";
}

.faq__q span:first-child {
  flex: 1 0 0;
  min-width: 0;
}

.faq__icon {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  box-sizing: content-box;
  width: 18px;
  height: 9px;
  padding: 12px 8px;
  margin: -12px -8px;
  overflow: clip;
  cursor: pointer;
}

.faq__icon img {
  display: block;
  width: 18px;
  height: 9px;
  transition: transform 0.35s ease;
}

.faq__item[open] .faq__icon img {
  transform: rotate(180deg);
}

.faq__item.is-closing .faq__icon img {
  transform: none;
}

.faq__a-wrap {
  overflow: hidden;
}

.faq__item:not([open]) .faq__a-wrap {
  height: 0;
}

.faq__a {
  margin: var(--space-10) 0 0;
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-body);
  color: var(--color-text-on-dark);
}

@media (prefers-reduced-motion: reduce) {
  .faq__icon img {
    transition: none;
  }
}

@media (max-width: 768px) {
  .faq {
    flex-direction: column;
    gap: var(--space-30);
    padding-block: var(--space-60) var(--space-30);
  }

  .faq__title,
  .faq__intro,
  .faq__list {
    flex: 1 1 auto;
    width: 100%;
  }

  .faq__title {
    font-size: 28px;
  }

  .faq__deco {
    display: none;
  }

  .faq__q {
    font-size: var(--font-size-body);
  }
}

@media (max-width: 480px) {
  .faq__title,
  .faq__q {
    text-align: left;
  }

  .faq__q {
    justify-content: flex-start;
  }
}

.pricing {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-60);
  width: 100%;
  margin: 0;
  color: var(--color-text-on-dark);
  background-color: transparent;
}

.pricing__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--font-size-display);
  font-weight: var(--font-weight-light);
  line-height: var(--line-height-display);
  color: var(--color-text-on-dark);
  text-align: center;
}

.pricing__title em {
  font-style: italic;
  font-weight: var(--font-weight-light);
  color: var(--color-middle);
}

.pricing__lead {
  max-width: 794px;
  margin: 0;
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-body);
  color: var(--color-text-on-dark);
  text-align: center;
}

.pricing__plans {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
  gap: var(--space-10);
  width: 100%;
}

.pricing__card {
  display: flex;
  flex-direction: column;
  gap: var(--space-10);
  box-sizing: border-box;
  width: 326px;
  max-width: 100%;
  padding: var(--space-10);
  color: var(--color-text);
  background-color: var(--color-white);
  border-radius: var(--radius-card);
}

.pricing__media {
  position: relative;
  flex: 0 0 auto;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 306 / 189;
  background-color: transparent;
  border-radius: var(--radius-control);
}

.pricing__glow {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.pricing__overlay {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-20);
  box-sizing: border-box;
  height: 100%;
  padding: var(--space-10);
}

.pricing__card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
  min-height: 29px;
}

.pricing__period {
  font-size: var(--font-size-card-title);
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-body);
}

.pricing__badge {
  flex-shrink: 0;
  padding: var(--space-4) var(--space-12);
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-body);
  color: var(--color-text-on-dark);
  background-color: var(--color-middle);
  border-radius: var(--radius-badge);
}

.pricing__amount {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-10);
  width: 100%;
}

.pricing__price {
  margin: 0;
  font-size: var(--font-size-price);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-body);
  text-align: center;
}

.pricing__minutes {
  margin: 0;
  font-size: 24px;
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-body);
  color: var(--middle-blue-800);
  text-align: center;
}

.pricing__save {
  margin: auto 0 0;
  padding: var(--space-4) var(--space-12);
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-body);
  text-align: center;
  border-radius: var(--radius-badge);
}

.pricing__save--accent {
  color: var(--color-text-on-dark);
  background-color: var(--color-middle);
}

.pricing__save--light {
  color: var(--color-text);
  background-color: var(--soft-blue-50);
}

.pricing__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: var(--space-12) var(--space-24);
  font-family: var(--font-body);
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-medium);
  line-height: var(--line-height-body);
  text-align: center;
  text-decoration: none;
  border-radius: var(--radius-control);
}

.pricing__card:not(:has(.pricing__save)) .pricing__btn {
  margin-top: auto;
}

.pricing__btn--light {
  --btn-from: var(--middle-blue-400);
  --btn-mid: var(--color-middle);
  --btn-to: var(--color-accent-hover);
  color: var(--color-text-on-dark);
}

.pricing__btn--dark {
  --btn-from: var(--color-bg-dark);
  --btn-to: var(--color-accent-hover);
  color: var(--color-text-on-dark);
}

.pricing__btn:hover {
  color: var(--color-text-on-dark);
}

.pricing__details {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: var(--space-30);
  width: 100%;
  max-width: 998px;
}

.pricing__includes-block {
  display: flex;
  flex-direction: column;
  gap: 18px;
  flex: 0 1 269px;
}

.pricing__includes-title {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--font-size-heading);
  font-weight: var(--font-weight-medium);
  line-height: var(--line-height-display);
  color: var(--color-text-on-dark);
}

.pricing__includes {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin: 0;
  padding: 0;
  list-style: none;
}

.pricing__includes li {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-body);
}

.pricing__check {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  overflow: clip;
  background-color: var(--color-middle);
  border-radius: var(--radius-control);
}

.pricing__check img {
  display: block;
  width: 8px;
  height: 5px;
}

.pricing__notes {
  display: flex;
  flex: 1 1 665px;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--space-16);
  max-width: 665px;
}

.pricing__notes p,
.pricing__notes a {
  margin: 0;
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-body);
  color: var(--color-text-on-dark);
  text-decoration: none;
}

.pricing__notes a:hover {
  color: var(--color-middle);
}

.final-cta {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  width: 100%;
  margin: 0;
  color: var(--color-text-on-dark);
  text-align: center;
  background-color: transparent;
}

.final-cta__copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-20);
}

.final-cta__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--font-size-display);
  font-weight: var(--font-weight-light);
  line-height: var(--line-height-display);
  color: var(--color-text-on-dark);
}

.final-cta__title em {
  font-style: italic;
  font-weight: var(--font-weight-light);
  color: var(--color-middle);
}

.final-cta__lead {
  margin: 0;
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-body);
  color: var(--color-text-on-dark);
}

.final-cta__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-20);
}

.final-cta__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-12) var(--space-24);
  font-family: var(--font-body);
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-medium);
  line-height: var(--line-height-body);
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  border: 0;
  border-radius: var(--radius-control);
}

.final-cta__btn--primary {
  --btn-from: var(--color-white);
  --btn-mid: var(--color-middle);
  --btn-to: var(--color-accent);
  color: var(--color-text);
}

.final-cta__btn--primary:hover {
  color: var(--color-text-on-dark);
}

.final-cta__btn--secondary {
  --btn-from: var(--soft-blue);
  --btn-mid: var(--color-middle);
  --btn-to: var(--color-accent);
  color: var(--color-accent);
}

.final-cta__btn--secondary:hover {
  color: var(--color-text-on-dark);
}

/* Tablets keep all three plans in one row: the fixed 326px card is swapped for
   an even third of the row, with the price scaled down to fit. */
@media (min-width: 768px) and (max-width: 1024px) {
  .pricing__card {
    width: calc((100% - (var(--space-10) * 2)) / 3);
  }

  .pricing__price {
    font-size: 32px;
  }

  .pricing__btn {
    padding-inline: var(--space-12);
  }
}

@media (max-width: 767px) {
  .pricing__plans {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: center;
  }

  .pricing__card {
    width: min(400px, 100%);
  }

  .pricing__price {
    font-size: 36px;
  }
}

@media (max-width: 768px) {
  .pricing {
    gap: var(--space-30);
    padding-block: var(--space-60) var(--space-30);
  }

  .pricing__title,
  .final-cta__title {
    font-size: 28px;
  }

  .pricing__details {
    flex-direction: column;
  }

  .pricing__includes-block,
  .pricing__notes {
    flex: 1 1 auto;
    max-width: none;
    width: 100%;
  }

  .pricing__includes-block {
    align-items: center;
  }

  .pricing__includes-title {
    text-align: center;
  }

  .final-cta {
    padding-block: var(--space-30) var(--space-60);
  }

  .final-cta__btn {
    white-space: normal;
  }
}

@media (max-width: 480px) {
  .pricing {
    align-items: flex-start;
    text-align: left;
  }

  .pricing__title,
  .pricing__lead,
  .pricing__includes-title {
    text-align: left;
  }

  .pricing__includes-block,
  .pricing__includes {
    align-items: flex-start;
  }

  .pricing__plans {
    align-items: stretch;
  }

  .pricing__card {
    width: 100%;
    max-width: none;
  }
}

.site-footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-20);
  box-sizing: border-box;
  width: 100%;
  max-width: var(--layout-bg);
  margin-inline: auto;
  padding: var(--space-60) var(--layout-pad) var(--space-30);
  overflow: visible;
  background-color: transparent;
  isolation: isolate;
}

.site-footer::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  z-index: 0;
  width: 100%;
  max-width: 100%;
  /* bg.png is 1280×868. Keep the box at the footer width and crop the image
     on the sides; aspect-ratio + min-height was expanding the box to 1280px
     and leaving a white gutter on mobile. */
  height: max(100%, 868px);
  pointer-events: none;
  background-image: url("../images/footer/bg.png");
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: max(100%, 1280px) auto;
  border-radius: 0 0 var(--radius-control) var(--radius-control);
  transform: translateX(-50%);
}

.site-footer__brand,
.site-footer__nav,
.site-footer__legal,
.site-footer__social {
  position: relative;
  z-index: 1;
}

.site-footer__nav,
.site-footer__legal,
.site-footer__social {
  align-self: flex-end;
}

.site-footer__brand {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-self: stretch;
  max-width: 271px;
}

.site-footer a,
.site-footer__copy {
  font-size: var(--font-size-footer);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-body);
  color: var(--color-text);
  text-decoration: none;
}

.site-footer a:hover:not(.site-footer__logo) {
  color: var(--color-accent);
}

.site-footer a.site-footer__logo {
  font-family: var(--font-logo);
  font-size: var(--font-size-logo);
  font-weight: var(--font-weight-bold);
  line-height: 1.125;
  white-space: nowrap;
}

.site-footer__tagline {
  margin: 0;
  font-size: var(--font-size-footer);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-body);
  color: var(--color-text);
}

.site-footer__nav ul,
.site-footer__legal {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer__copy {
  margin: 0;
}

.site-footer__social {
  display: flex;
  flex-shrink: 0;
  gap: 5px;
  align-items: flex-end;
}

.site-footer__icon {
  display: block;
  width: 30px;
  height: 30px;
  overflow: hidden;
  background-color: currentColor;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}

.site-footer__icon--telegram {
  -webkit-mask-image: url("../images/footer/telegram.svg");
  mask-image: url("../images/footer/telegram.svg");
}

.site-footer__icon--max {
  -webkit-mask-image: url("../images/footer/max.svg");
  mask-image: url("../images/footer/max.svg");
}

.site-footer__icon img {
  display: block;
  width: 30px;
  height: 30px;
  opacity: 0;
}

@media (max-width: 768px) {
  .site-footer {
    flex-wrap: wrap;
    align-items: flex-end;
    row-gap: var(--space-24);
  }

  .site-footer__brand {
    flex: 1 1 220px;
  }

  .site-footer__social {
    margin-left: auto;
  }
}

@media (max-width: 480px) {
  .site-footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "brand nav"
      "legal social";
    align-items: start;
    column-gap: var(--space-20);
    row-gap: var(--space-24);
  }

  .site-footer__brand {
    grid-area: brand;
    flex: none;
    align-self: start;
    justify-content: flex-start;
    gap: var(--space-8);
    max-width: none;
  }

  .site-footer__nav {
    grid-area: nav;
    text-align: right;
  }

  .site-footer__legal {
    grid-area: legal;
  }

  .site-footer__social {
    grid-area: social;
    align-self: end;
    justify-self: end;
    margin-left: 0;
  }
}

.cookie-banner {
  position: fixed;
  z-index: 200;
  right: auto;
  bottom: var(--space-20);
  left: var(--space-20);
  display: flex;
  flex-direction: column;
  gap: var(--space-10);
  box-sizing: border-box;
  width: max-content;
  max-width: min(480px, calc(100vw - (var(--space-20) * 2)));
  max-height: calc(100vh - (var(--space-20) * 2));
  padding: var(--space-20);
  overflow: auto;
  color: var(--color-text);
  background-color: var(--color-white);
  border-radius: var(--radius-control);
  box-shadow: 0 8px 24px rgba(30, 41, 59, 0.12);
}

.cookie-banner--full {
  max-width: min(520px, calc(100vw - (var(--space-20) * 2)));
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner__panel {
  display: flex;
  flex-direction: column;
  gap: var(--space-10);
  align-items: flex-start;
}

.cookie-banner__panel[hidden] {
  display: none;
}

.cookie-banner__title {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--font-size-heading);
  font-weight: var(--font-weight-medium);
  line-height: var(--line-height-display);
  color: var(--color-text);
}

.cookie-banner__text {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-body);
  color: var(--color-text);
}

.cookie-banner__text p {
  margin: 0 0 6px;
}

.cookie-banner__text p:last-child {
  margin-bottom: 0;
}

.cookie-banner__text ul {
  margin: 0 0 6px;
  padding-left: var(--space-24);
}

.cookie-banner__text li {
  margin: 0;
}

.cookie-banner__text a {
  color: inherit;
  text-decoration: underline;
  text-underline-position: from-font;
}

.cookie-banner__text a:hover {
  color: var(--color-accent);
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-10);
  align-items: center;
}

.cookie-banner__accept {
  --btn-from: var(--color-accent);
  --btn-mid: var(--color-middle);
  --btn-to: var(--color-accent-hover);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-12) var(--space-24);
  font-family: var(--font-sans);
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-medium);
  line-height: var(--line-height-body);
  color: var(--color-text-on-dark);
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  border: 0;
  border-radius: var(--radius-control);
}

.cookie-banner__text-btn {
  padding: 0;
  font-family: var(--font-sans);
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-body);
  color: var(--color-text);
  text-decoration: underline;
  text-underline-position: from-font;
  cursor: pointer;
  background: none;
  border: 0;
}

.cookie-banner__text-btn:hover {
  color: var(--color-accent);
}

/**
 * The dialog fades and lifts on every open and close, so the animation is tied
 * to the [open] state instead of the one-shot scroll reveal. `display` and
 * `overlay` are discrete properties: without allow-discrete the element leaves
 * the top layer at once and the closing transition never gets painted.
 */
html.is-consult-open {
  overflow: hidden;
  overscroll-behavior: none;
}

html.is-consult-open body {
  position: fixed;
  right: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}

.consult-modal {
  position: fixed;
  inset: 0;
  box-sizing: border-box;
  width: min(404px, calc(100vw - (var(--space-20) * 2)));
  max-width: none;
  max-height: calc(100vh - (var(--space-20) * 2));
  max-height: calc(100dvh - (var(--space-20) * 2));
  margin: auto;
  padding: var(--space-20);
  overflow: hidden;
  overscroll-behavior: contain;
  color: var(--color-text);
  background-color: var(--color-white);
  border: 0;
  border-radius: var(--radius-control);
  opacity: 0;
  /* Still painted while it fades out, so it must not swallow clicks meanwhile. */
  pointer-events: none;
  transform: translateY(16px) scale(0.98);
  transition:
    opacity 0.28s ease-out,
    transform 0.28s ease-out,
    overlay 0.28s allow-discrete,
    display 0.28s allow-discrete;
}

.consult-modal[open] {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.consult-modal:focus,
.consult-modal:focus-visible {
  outline: none;
}

/* The state the dialog animates from when it enters the top layer. */
@starting-style {
  .consult-modal[open] {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }
}

.consult-modal::backdrop {
  background-color: rgba(30, 41, 59, 0.6);
  opacity: 0;
  transition:
    opacity 0.28s ease-out,
    overlay 0.28s allow-discrete,
    display 0.28s allow-discrete;
}

.consult-modal[open]::backdrop {
  opacity: 1;
}

@starting-style {
  .consult-modal[open]::backdrop {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .consult-modal,
  .consult-modal::backdrop {
    transition: none;
  }

  .consult-modal {
    transform: none;
  }
}

.consult-modal__close {
  position: absolute;
  top: var(--space-8);
  right: var(--space-8);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  font-size: var(--font-size-heading);
  line-height: 1;
  color: var(--color-text-muted);
  cursor: pointer;
  background: none;
  border: 0;
  border-radius: var(--radius-control);
}

.consult-modal__close:hover {
  color: var(--color-text);
}

.consult-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-30);
  align-items: center;
  margin: 0;
}

.consult-form__logo {
  margin: 0;
  font-family: var(--font-logo);
  font-size: var(--font-size-logo);
  font-weight: var(--font-weight-bold);
  line-height: normal;
  color: var(--color-text);
  text-align: center;
}

.consult-form__fields {
  display: flex;
  flex-direction: column;
  gap: var(--space-10);
  width: 100%;
}

.consult-form__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}

.consult-form__label {
  font-family: var(--font-sans);
  font-size: var(--font-size-footer);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-body);
  color: var(--color-text);
}

.consult-form__input {
  box-sizing: border-box;
  width: 100%;
  height: 40px;
  padding: 0 var(--space-12);
  font-family: var(--font-sans);
  /* iOS Safari zooms focused inputs under 16px. Keep the 40px field height. */
  font-size: 16px;
  font-weight: var(--font-weight-regular);
  line-height: 38px;
  color: var(--color-text);
  background-color: var(--color-white);
  border: 1px solid var(--soft-blue-600);
  border-radius: var(--radius-control);
  scroll-margin: 0;
}

.consult-form__input::placeholder {
  color: var(--color-text-muted);
}

/*
 * Autofilled fields keep a UA background that `background-color` cannot reach,
 * so the fill is faked with an inset shadow and the text color is set through
 * the -webkit-text-fill-color that autofill actually honors.
 */
.consult-form__input:-webkit-autofill,
.consult-form__input:-webkit-autofill:hover,
.consult-form__input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--color-text);
  caret-color: var(--color-text);
  box-shadow: inset 0 0 0 100px var(--color-white);
}

.consult-form__input:focus-visible {
  border-color: var(--color-accent);
  outline: none;
}

.consult-form__input[aria-invalid="true"] {
  border-color: var(--color-error);
}

.consult-form__consent {
  display: flex;
  gap: 6px;
  align-items: flex-start;
  width: 100%;
}

.consult-form__checkbox {
  box-sizing: border-box;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin: 0;
  cursor: pointer;
  background-color: var(--color-white);
  background-repeat: no-repeat;
  background-position: center;
  border: 1px solid var(--soft-blue-600);
  border-radius: 4px;
  -webkit-appearance: none;
  appearance: none;
}

.consult-form__checkbox:checked {
  background-color: var(--color-accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='8' viewBox='0 0 10 7.4' fill='none'%3E%3Cpath d='M1 3.14286L3.90909 6L9 1' stroke='white' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  border-color: var(--color-accent);
}

/* Scripted focus after a click does not trigger :focus-visible, so style :focus too. */
.consult-form__checkbox:focus {
  border-color: var(--color-accent);
  outline: none;
}

.consult-form__checkbox[aria-invalid="true"] {
  border-color: var(--color-error);
}

.consult-form__consent-label {
  font-family: var(--font-sans);
  font-size: var(--font-size-footer);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-body);
  color: var(--color-text);
}

.consult-form__consent-label a {
  color: inherit;
  text-decoration: underline;
  text-underline-position: from-font;
}

.consult-form__consent-label a:hover {
  color: var(--color-accent);
}

.consult-form__submit {
  --btn-from: var(--color-bg-dark);
  --btn-to: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: var(--space-12) var(--space-24);
  font-family: var(--font-sans);
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-medium);
  line-height: var(--line-height-body);
  color: var(--color-text-on-dark);
  text-align: center;
  cursor: pointer;
  border: 0;
  border-radius: var(--radius-control);
}

.consult-form__status {
  margin: 0;
  font-size: var(--font-size-footer);
  line-height: var(--line-height-body);
  color: var(--color-text-muted);
  text-align: center;
}

.consult-form__status:empty {
  display: none;
}

.consult-form__status[data-state="error"] {
  color: var(--color-error);
}

@media (max-width: 480px) {
  .cookie-banner {
    right: var(--space-16);
    bottom: var(--space-16);
    left: var(--space-16);
    width: auto;
    max-width: none;
  }
}
