/* ==========================================================================
   Tether Copy
   Motion and material rules follow Apple's fluid-interface principles:
   respond on press, animate with critically damped springs, carry velocity
   out of gestures, keep every effect interruptible, and fall back calmly for
   reduced motion, reduced transparency and increased contrast.
   ========================================================================== */

@font-face {
  font-family: 'DM Sans Fallback';
  src: local('Arial'), local('Liberation Sans');
  font-weight: 400;
  font-style: normal;
  size-adjust: 99.2%;
  ascent-override: 100%;
  descent-override: 31.25%;
  line-gap-override: 0%;
}

@font-face {
  font-family: 'DM Sans Fallback';
  src: local('Arial'), local('Liberation Sans');
  font-weight: 500;
  font-style: normal;
  size-adjust: 104%;
  ascent-override: 95.38%;
  descent-override: 29.81%;
  line-gap-override: 0%;
}

@font-face {
  font-family: 'DM Sans';
  src: url('../fonts/DMSans-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'DM Sans';
  src: url('../fonts/DMSans-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* --------------------------------------------------------------------------
   Tokens
   -------------------------------------------------------------------------- */

:root {
  --bg: #fbfbfd;
  --bg-alt: #f5f5f7;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --card: #fff;
  --plate: #f5f5f7;
  --line: rgba(0, 0, 0, 0.08);
  --press: rgba(0, 0, 0, 0.04);

  --btn-bg: #1d1d1f;
  --btn-ink: #fff;
  --btn-icon-bg: #fff;
  --btn-icon-ink: #1d1d1f;
  --btn-hover: #3a3a3c;

  --material: rgba(251, 251, 253, 0.72);
  --material-edge: rgba(0, 0, 0, 0.08);
  --sheet: rgba(251, 251, 253, 0.86);
  --pill: rgba(0, 0, 0, 0.05);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.03), 0 6px 24px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 2px 6px rgba(0, 0, 0, 0.04), 0 30px 80px rgba(0, 0, 0, 0.14);

  --r-sm: 0.75rem;
  --r-md: 1.25rem;
  --r-lg: 1.75rem;

  --gutter: clamp(20px, 5vw, 5rem);
  --section-y: clamp(5rem, 9vw, 9rem);

  /* Critically damped spring (damping 1.0, response 0.35s): settles with no overshoot. */
  --spring: cubic-bezier(0.2, 0.9, 0.3, 1);
  --spring-dur: 0.5s;
  --press-dur: 0.1s;
  /* Every other duration comes from these two: colour and state changes, and fades. */
  --dur-quick: 0.2s;
  --dur-fade: 0.4s;

  color-scheme: light;
}

@supports (transition-timing-function: linear(0, 1)) {
  :root {
    --spring: linear(0, 0.002 0.6%, 0.013 1.9%, 0.044 3.6%, 0.098 5.7%, 0.174 8.1%, 0.266 10.9%, 0.369 13.9%, 0.473 17.2%, 0.573 20.8%, 0.664 24.6%, 0.743 28.7%, 0.808 33%, 0.861 37.5%, 0.901 42.2%, 0.931 47.1%, 0.954 52.3%, 0.969 57.6%, 0.98 63.1%, 0.987 68.8%, 0.992 74.7%, 0.995 80.8%, 0.997 87%, 0.998 93.4%, 1 100%);
  }
}

html.dark {
  --bg: #000;
  --bg-alt: #0c0c0e;
  --ink: #f5f5f7;
  --muted: #a1a1a6;
  --card: #161618;
  --plate: #1f1f22;
  --line: rgba(255, 255, 255, 0.1);
  --press: rgba(255, 255, 255, 0.06);

  --btn-bg: #f5f5f7;
  --btn-ink: #1d1d1f;
  --btn-icon-bg: #1d1d1f;
  --btn-icon-ink: #f5f5f7;
  --btn-hover: #dcdce0;

  --material: rgba(22, 22, 24, 0.72);
  --material-edge: rgba(255, 255, 255, 0.1);
  --sheet: rgba(28, 28, 30, 0.86);
  --pill: rgba(255, 255, 255, 0.1);

  --shadow-sm: 0 0 0 1px rgba(255, 255, 255, 0.06);
  --shadow-lg: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 30px 80px rgba(0, 0, 0, 0.6);

  color-scheme: dark;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'DM Sans', 'DM Sans Fallback', Arial, sans-serif;
  /* Anchored to rem so browser zoom and text-size settings scale the page. */
  font-size: clamp(1rem, 0.75rem + 0.42vw, 1.3rem);
  font-weight: 400;
  line-height: 1.5;
  font-synthesis: none;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

h1,
h2,
h3,
p {
  margin: 0;
  font-weight: inherit;
}

/* No single word stranded on a paragraph's last line. */
p,
li {
  text-wrap: pretty;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

button {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

strong {
  font-weight: 500;
}

::selection {
  background: var(--ink);
  color: var(--bg);
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 4px;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10000;
  background: var(--btn-bg);
  color: var(--btn-ink);
  padding: 0.6em 1em;
  border-radius: 2em;
}

.skip-link:focus {
  top: 1rem;
}

abbr[title] {
  cursor: help;
  text-decoration-line: underline;
  text-decoration-style: dotted;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

/* --------------------------------------------------------------------------
   Layout and type
   -------------------------------------------------------------------------- */

.section {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  width: 100%;
}

.wrap {
  width: 100%;
  max-width: 90rem;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
  position: relative;
  z-index: 1;
}

/* Tracking and leading tighten as size grows; body copy stays near zero. */
.h1 {
  max-width: 13em;
  margin: 0 auto;
  font-size: clamp(2.6rem, 1rem + 4.8vw, 6rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1;
  text-wrap: balance;
}

.h2 {
  max-width: 21em;
  font-size: clamp(1.75rem, 0.95rem + 2.15vw, 3.15rem);
  font-weight: 500;
  letter-spacing: -0.038em;
  line-height: 1.04;
  text-wrap: balance;
}

/* Short headlines keep the full display size. */
.h2-short {
  max-width: 18em;
  font-size: clamp(2rem, 1rem + 2.8vw, 4rem);
}

.h3 {
  font-size: clamp(1.35rem, 1rem + 0.9vw, 2rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.1;
  text-wrap: balance;
}

.lead {
  color: var(--muted);
  font-size: clamp(1.1rem, 0.95rem + 0.4vw, 1.4rem);
  line-height: 1.45;
}

.eyebrow {
  color: var(--muted);
  font-size: 1.05em;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6em;
  width: 100%;
  text-align: center;
}

/* Analytic sections open flush left, to break the centred rhythm. */
.opener-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.6em;
  width: 100%;
  text-align: left;
}

.card {
  background: var(--card);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}

/* Reveal on scroll. Only hidden once JS is confirmed running, so content never depends on it. */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(1rem);
  transition:
    opacity var(--dur-fade) ease,
    transform var(--spring-dur) var(--spring);
}

html.js [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.header {
  position: sticky;
  top: 0;
  z-index: 1001;
  background: var(--material);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  transition: background-color var(--dur-quick) ease;
}

/* Scroll edge: appears only once content is underneath. */
.header::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 1px;
  background: var(--material-edge);
  opacity: 0;
  transition: opacity var(--dur-fade) ease;
  pointer-events: none;
}

.header.is-scrolled::after {
  opacity: 1;
}

.menu-open .header {
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.menu-open .header::after {
  opacity: 0;
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 3.75em;
  transition: height var(--spring-dur) var(--spring);
}

.header.is-scrolled .header-inner {
  height: 3.1em;
}

.wordmark {
  justify-self: start;
  font-size: 1.05em;
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1;
}

.nav {
  position: relative;
  display: flex;
  grid-column: 2;
}

.nav-link {
  position: relative;
  z-index: 1;
  padding: 0.5em 0.95em;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.82em;
  transition: color var(--dur-quick) ease, opacity var(--dur-fade) ease;
}

.nav-link[aria-current] {
  color: var(--ink);
}

.nav-link:active {
  opacity: 0.5;
  transition-duration: var(--press-dur);
}

@media (hover: hover) {
  .nav-link:hover {
    color: var(--ink);
  }
}

/* Wayfinding: a pill slides to the section you are reading. */
.nav-pill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  border-radius: 999px;
  background: var(--pill);
  opacity: 0;
  pointer-events: none;
  transition:
    transform var(--spring-dur) var(--spring),
    width var(--spring-dur) var(--spring),
    opacity var(--dur-fade) ease;
}

.nav-pill.is-on {
  opacity: 1;
}

.nav-pill.no-anim {
  transition: opacity var(--dur-fade) ease;
}

.header-end {
  grid-column: 3;
  justify-self: end;
  display: flex;
  align-items: center;
}

.header-btn {
  font-size: 0.78em;
}

.menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 48px;
  height: 48px;
  padding: 12px;
  margin-right: -12px;
  position: relative;
  z-index: 1000;
  transition: transform var(--spring-dur) var(--spring);
}

.menu-btn:active {
  transform: scale(0.9);
  transition-duration: var(--press-dur);
}

.menu-bar {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 1px;
  background: var(--ink);
  transition: transform var(--spring-dur) var(--spring), opacity var(--dur-fade) ease;
}

.menu-bar:nth-child(2) {
  display: none;
}

.menu-btn.is-open .menu-bar:first-child {
  transform: translateY(4px) rotate(45deg);
}

.menu-btn.is-open .menu-bar:nth-child(3) {
  transform: translateY(-4px) rotate(-45deg);
}

/* Mobile menu: a sheet that drops from the top and can be thrown back up. */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 999;
  visibility: hidden;
  pointer-events: none;
}

.mobile-menu.is-open {
  visibility: visible;
  pointer-events: auto;
}

.menu-scrim {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  opacity: 0;
}

.menu-sheet {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: calc(var(--header-h, 64px) + 4px) var(--gutter) 10px;
  background: var(--sheet);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  backdrop-filter: blur(30px) saturate(180%);
  border-radius: 0 0 var(--r-lg) var(--r-lg);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
  transform: translate3d(0, -105%, 0);
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  will-change: transform;
}

.mobile-menu-nav {
  display: flex;
  flex-direction: column;
}

.mobile-menu-link {
  display: flex;
  align-items: center;
  min-height: 58px;
  font-size: 1.6rem;
  font-weight: 500;
  letter-spacing: -0.025em;
  -webkit-user-drag: none;
  transition: opacity var(--dur-fade) ease;
}

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

.mobile-menu-link:active {
  opacity: 0.45;
  transition-duration: var(--press-dur);
}

.menu-grabber {
  display: block;
  width: 40px;
  height: 5px;
  margin: 14px auto 0;
  border-radius: 3px;
  background: var(--line);
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 1em;
  background: var(--btn-bg);
  color: var(--btn-ink);
  border-radius: 2em;
  padding: 0.25em 0.3em 0.25em 1.15em;
  font-size: 1em;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1;
  cursor: pointer;
  transition:
    background-color var(--dur-quick) ease,
    box-shadow var(--dur-quick) ease,
    transform var(--spring-dur) var(--spring);
}

/* Feedback lives on the press: instant in, spring back out. */
.btn:active {
  transform: scale(0.96);
  transition-duration: var(--dur-quick), var(--dur-quick), var(--press-dur);
}

@media (hover: hover) {
  .btn:hover {
    background: var(--btn-hover);
  }
}

.btn-text-wrap {
  display: grid;
  overflow: hidden;
}

.btn-text,
.btn-text-hover {
  grid-area: 1 / 1;
  white-space: nowrap;
  transition: transform var(--spring-dur) var(--spring);
}

.btn-text-hover {
  transform: translateY(110%);
}

.btn-icon-box {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.3em;
  height: 2.3em;
  border-radius: 50%;
  overflow: hidden;
  background: var(--btn-icon-bg);
  color: var(--btn-icon-ink);
}

.btn-icon,
.btn-icon-hover {
  width: 1em;
  height: 1em;
  transition: transform var(--spring-dur) var(--spring);
}

.btn-icon-hover {
  position: absolute;
  transform: translateX(-200%);
}

/* The arrow leaves right and the next arrives from the left: motion points where the link goes. */
@media (hover: hover) {
  .btn:hover .btn-text {
    transform: translateY(-110%);
  }

  .btn:hover .btn-text-hover {
    transform: none;
  }

  .btn:hover .btn-icon-hover {
    transform: none;
  }

  .btn:hover .btn-icon {
    transform: translateX(200%);
  }
}

/* --------------------------------------------------------------------------
   Shared section parts
   -------------------------------------------------------------------------- */

.header {
  color: var(--ink);
}

/* Over the black band the header switches to a dark material, so it never sits as a pale strip on black. */
.header.is-on-dark {
  --ink: #f5f5f7;
  --muted: #a1a1a6;
  --pill: rgba(255, 255, 255, 0.12);
  --material: rgba(12, 12, 14, 0.62);
  --material-edge: rgba(255, 255, 255, 0.1);
  --btn-bg: #f5f5f7;
  --btn-ink: #1d1d1f;
  --btn-icon-bg: #1d1d1f;
  --btn-icon-ink: #f5f5f7;
  --btn-hover: #dcdce0;
}

.section-lead {
  max-width: 38em;
  margin-top: 0.5em;
}

.section-close {
  max-width: 24em;
  margin: clamp(3rem, 6vw, 5rem) auto 0;
  text-align: center;
  font-size: clamp(1.45rem, 1rem + 1.5vw, 2.6rem);
  letter-spacing: -0.035em;
  line-height: 1.12;
  text-wrap: balance;
}

.section-close strong {
  font-weight: 500;
}

.section-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85em;
  margin-top: clamp(3rem, 6vw, 4.5rem);
}

.cta-note {
  color: var(--muted);
  font-size: 0.85em;
  letter-spacing: 0.005em;
}

/* Check and cross marks. They draw themselves once their card arrives. */
.mark-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.85em;
  padding: 0.8em 0;
  line-height: 1.4;
}

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

.mark {
  flex: none;
  width: 1.45em;
  height: 1.45em;
  margin-top: -0.02em;
  border-radius: 50%;
}

.mark.is-yes {
  background: var(--ink);
  color: var(--bg);
}

.mark.is-no {
  background: var(--plate);
  color: var(--muted);
}

.mark path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 0.5s cubic-bezier(0.3, 0.7, 0.2, 1) 0.35s;
}

html.js [data-reveal]:not(.is-revealed) .mark path {
  stroke-dashoffset: 1;
}

.mark-list li:nth-child(2) .mark path { transition-delay: 0.43s; }
.mark-list li:nth-child(3) .mark path { transition-delay: 0.51s; }
.mark-list li:nth-child(4) .mark path { transition-delay: 0.59s; }
.mark-list li:nth-child(5) .mark path { transition-delay: 0.67s; }
.ledger-row:nth-child(2) .mark path { transition-delay: 0.43s; }
.ledger-row:nth-child(3) .mark path { transition-delay: 0.51s; }

/* --------------------------------------------------------------------------
   Hero: the original stack, with the video above the fold
   -------------------------------------------------------------------------- */

.hero {
  padding: clamp(1.75rem, 3.5vw, 3.25rem) 0 clamp(3.5rem, 7vw, 6rem);
  overflow: clip;
}

html.dark .hero {
  background: radial-gradient(ellipse 80% 55% at 50% 30%, #15152a 0%, #000 70%);
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-eyebrow {
  margin-bottom: 1.1rem;
  padding: 0.4em 1em;
  border-radius: 999px;
  background: var(--plate);
  color: var(--ink);
  font-size: 0.82em;
  box-shadow: inset 0 0 0 1px var(--line);
}

.hero-title {
  width: 100%;
  margin-bottom: 0.4em;
  font-size: clamp(2.2rem, 0.9rem + 3.4vw, 4.4rem);
}

/* Wide enough for two lines on desktop, which leaves room for a bigger video. */
.hero-title .h1 {
  max-width: 20em;
  font-size: 1em;
}

/* On desktop each sentence gets its own line. */
@media (min-width: 992px) {
  .h1-line {
    display: block;
  }
}

.hero-sub {
  max-width: 46em;
  margin: 0 auto;
  color: var(--muted);
  font-size: clamp(1.05rem, 0.92rem + 0.35vw, 1.3rem);
  line-height: 1.45;
  text-wrap: balance;
}

/* As big as the screen allows while the button below it stays above the fold. */
.vsl {
  --hero-rest: calc(23rem + 9.4vw);
  width: min(100%, 56rem, calc((100svh - var(--hero-rest)) * 16 / 9));
  min-width: min(100%, 22rem);
  margin: clamp(1.5rem, 2.6vw, 2.25rem) auto;
}

.vsl-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-md);
  overflow: hidden;
  background: linear-gradient(150deg, #ececf0 0%, #d6d6dc 100%);
  box-shadow: var(--shadow-lg);
}

html.dark .vsl-frame {
  background: linear-gradient(150deg, #1d1d21 0%, #2c2c31 100%);
}

.vsl-frame iframe,
.vsl-placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.vsl-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65em;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.95em;
}

.vsl-play {
  width: 3.25em;
  height: 3.25em;
}

/* Sits above the video frame's shadow, which the frame's entrance animation lifts into its own layer. */
.hero-btn {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8em;
  font-size: 1.05em;
}

.hero-btn .cta-note {
  font-size: 0.8em;
}

/* Load-in: a quick spring rise, 40ms apart. CSS-only, so it needs no script. */
.hero-title,
.hero-sub,
.vsl {
  animation: hero-rise var(--spring-dur) var(--spring) both;
}

.hero-sub { animation-delay: 0.04s; }
.vsl { animation-delay: 0.08s; }

@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(0.5em);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Short laptop screens: tighten the hero so the video still sits above the fold. */
@media (min-width: 992px) and (max-height: 820px) {
  .hero {
    padding-top: 1.25rem;
  }

  .hero-eyebrow {
    margin-bottom: 0.75rem;
  }

  .hero-title {
    font-size: clamp(2.2rem, 0.6rem + 3vw, 3.4rem);
  }

  .hero-sub {
    font-size: 1.05rem;
  }

  .vsl {
    --hero-rest: 24.5rem;
    margin: 1.25rem auto;
  }
}

/* --------------------------------------------------------------------------
   How you pay: the bill, line by line
   -------------------------------------------------------------------------- */

.billing,
.footer {
  background: var(--bg-alt);
}

.billing {
  padding: var(--section-y) 0;
}

.ledger {
  width: min(100%, 44rem);
  margin: clamp(2rem, 4vw, 3rem) auto 0;
}

.ledger-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(4ch, auto);
  align-items: center;
  gap: 0.5em;
  padding: 0.3em 0;
  font-size: clamp(1.4rem, 0.8rem + 2.1vw, 2.75rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

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

.ledger-row .mark {
  width: 0.78em;
  height: 0.78em;
}

.ledger-row.is-free .ledger-label {
  color: var(--muted);
}

.ledger-value {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.ledger-note {
  margin-top: 1.5rem;
  color: var(--muted);
  text-align: center;
}

.billing-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

.billing-tile {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.6rem;
  grid-column: span 5;
  padding: clamp(1.5rem, 2.6vw, 2.5rem);
}

.invoice-tile {
  grid-column: span 7;
  grid-row: span 2;
}

.billing-title {
  font-size: clamp(1.25rem, 1rem + 0.7vw, 1.75rem);
}

.billing-text {
  color: var(--muted);
  line-height: 1.5;
}

/* The guarantee: the one inverted card, so it reads as the strongest promise in the section. */
.guarantee-tile {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 1rem clamp(2rem, 5vw, 4rem);
  padding: clamp(1.75rem, 3.5vw, 3rem);
  background: var(--ink);
  color: var(--bg);
}

.guarantee-tile .billing-title {
  font-size: clamp(1.6rem, 1rem + 1.6vw, 2.6rem);
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.guarantee-tile .billing-text {
  color: inherit;
  opacity: 0.72;
  font-size: clamp(1.05rem, 0.95rem + 0.35vw, 1.3rem);
}

.billing .testimonial {
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

.billing .section-cta {
  margin-top: clamp(2rem, 4vw, 3rem);
}

/* A sample invoice, drawn as an object inside its tile. */
.invoice {
  margin-bottom: auto;
  padding: 0.6rem 1.2rem 1rem;
  border-radius: var(--r-md);
  background: var(--plate);
  font-size: clamp(0.82rem, 0.78rem + 0.2vw, 0.95rem);
}

.invoice-tile .invoice {
  margin-bottom: 1.5rem;
}

.invoice-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0;
}

.invoice-head strong {
  font-weight: 500;
}

.invoice-tag {
  color: var(--muted);
  font-size: 0.85em;
}

.invoice-row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) 4.5em;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7em 0;
  border-top: 1px solid var(--line);
}

.invoice-row > span:last-child {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.invoice-row .chip {
  justify-self: start;
}

.invoice-cols {
  color: var(--muted);
  font-size: 0.85em;
}

.invoice-row.is-off > span:first-child,
.invoice-row.is-off > span:last-child {
  color: var(--muted);
}

.invoice-total {
  display: flex;
  justify-content: space-between;
  padding-top: 0.8em;
  border-top: 1px solid var(--line);
}

.invoice-total strong {
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   Problem: a story told one line at a time. Lines brighten as you reach them.
   -------------------------------------------------------------------------- */

.problem {
  padding: var(--section-y) 0;
}

/* Two columns on desktop: an almost-empty month pinned on the left, the story in beats on the right. */
.story {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 4rem);
  width: min(100%, 40rem);
  margin: clamp(3rem, 7vw, 6rem) auto 0;
}

.beats {
  display: flex;
  flex-direction: column;
  gap: clamp(3rem, 7vw, 4.5rem);
}

.beat {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

html.js .beat {
  opacity: 0.3;
  transition: opacity var(--dur-fade) ease;
}

html.js .beat.is-lit {
  opacity: 1;
}

.story-line {
  font-size: clamp(1.12rem, 0.98rem + 0.45vw, 1.45rem);
  line-height: 1.45;
  letter-spacing: -0.012em;
}

.story-big {
  font-size: clamp(2.2rem, 1rem + 3.4vw, 4.2rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.02;
}

.story-hope {
  margin-top: -0.6rem;
  color: var(--muted);
}

.story-mid {
  font-size: clamp(1.45rem, 1rem + 1.5vw, 2.4rem);
  font-weight: 500;
  letter-spacing: -0.032em;
  line-height: 1.15;
  text-wrap: balance;
}

/* Three short sentences, set as three short lines. */
.story-split span {
  display: block;
}

.story-split span + span {
  margin-top: 0.2em;
}

/* The three "hopes", lined up like notifications that never quite arrive. */
.hope-stack {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 0.5rem;
}

.hope-card {
  display: flex;
  align-items: center;
  gap: 0.85em;
  padding: 0.85em 1.2em;
  border-radius: 1.1rem;
  background: var(--card);
  box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line);
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.15rem);
}

.hope-icon {
  flex: none;
  width: 1.3em;
  height: 1.3em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  color: var(--muted);
}


/* The month: thirty days, nearly all of them empty. */
.month {
  width: min(100%, 30rem);
  margin: 0 auto;
  padding: clamp(1rem, 2vw, 1.5rem);
  border-radius: var(--r-lg);
  background: var(--card);
  box-shadow: var(--shadow-lg), inset 0 0 0 1px var(--line);
}

.month-top {
  display: flex;
  justify-content: space-between;
  height: 0.5rem;
  margin: -0.15rem 18% 1rem;
}

.month-top i {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px var(--line);
}

.month-body {
  position: relative;
}

.month-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.month-grid li {
  position: relative;
  aspect-ratio: 1;
}

/* Each day is a hairline square; a dashed "gap" square fades in over it when the month runs empty. */
.month-grid .day::before,
.month-grid .day::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 0.55rem;
  transition: opacity var(--dur-fade) ease, background-color 0.5s ease;
  transition-delay: calc(var(--i, 0) * 14ms);
}

.month-grid .day::before {
  box-shadow: inset 0 0 0 1px var(--line);
}

.month-grid .day::after {
  border: 1px dashed var(--muted);
  opacity: 0;
}

.month-grid .day span {
  position: absolute;
  left: 0.6em;
  top: 0.45em;
  color: var(--muted);
  font-size: clamp(0.62rem, 0.55rem + 0.25vw, 0.78rem);
  font-variant-numeric: tabular-nums;
  line-height: 1;
  transition: opacity var(--dur-fade) ease;
}

.story[data-beat="2"] .day:not(.is-hope)::after {
  opacity: 0.55;
}

.story[data-beat="2"] .day:not(.is-hope)::before {
  opacity: 0;
}

.story[data-beat="2"] .day:not(.is-hope) span {
  opacity: 0.45;
}

/* The three hopes as markers. They move between days, so they slide on the spring. */
.month-marker {
  --c: 0;
  --r: 0;
  position: absolute;
  left: calc(var(--c) * 100% / 7);
  top: calc(var(--r) * 100% / 5);
  display: grid;
  place-items: center;
  width: calc(100% / 7);
  height: calc(100% / 5);
  transition:
    left var(--spring-dur) var(--spring),
    top var(--spring-dur) var(--spring),
    opacity 0.4s ease,
    transform var(--spring-dur) var(--spring);
}

/* Sits low and right of centre, clear of the day number. */
.month-marker .hope-icon {
  box-sizing: content-box;
  width: 34%;
  height: 34%;
  margin: 14% 0 0 10%;
  padding: 11%;
  border-radius: 50%;
  background: var(--card);
  box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line);
  color: var(--ink);
}

/* Scattered: day 3, day 16, day 27. */
.m1 { --c: 4; --r: 0; }
.m2 { --c: 3; --r: 2; }
.m3 { --c: 0; --r: 4; }

/* The question: the hopes leave, and question marks take their place. */
.story[data-beat="3"] .month-marker:not(.month-ask),
.month-ask {
  opacity: 0;
  transform: scale(0.6);
}

.story[data-beat="3"] .month-ask {
  opacity: 1;
  transform: none;
}

.month-ask .hope-icon {
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--muted);
  stroke-width: 2;
}

/* Days 2, 11, 17 and 29, one after another. */
.a1 { --c: 3; --r: 0; }
.a2 { --c: 5; --r: 1; transition-delay: 0.08s; }
.a3 { --c: 4; --r: 2; transition-delay: 0.16s; }
.a4 { --c: 2; --r: 4; transition-delay: 0.24s; }

@media (min-width: 992px) {
  .story {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    align-items: start;
    gap: clamp(3rem, 6vw, 6rem);
    width: min(100%, 84rem);
  }

  .month {
    position: sticky;
    top: max(6rem, calc(50svh - 13rem));
    margin: 0;
    justify-self: end;
  }

  .beats {
    container-type: inline-size;
    gap: 0;
  }

  /* The big lines size to the column, so each one stays on a single row. */
  .beats .story-big {
    font-size: min(clamp(2.2rem, 1rem + 3.4vw, 4.2rem), 7.1cqi);
    white-space: nowrap;
  }

  /* Each beat holds the month in place long enough to read it. */
  .beat {
    justify-content: center;
    min-height: 56svh;
  }

  .beat:first-child {
    justify-content: flex-start;
  }
}

/* --------------------------------------------------------------------------
   Proof: the one testimonial
   -------------------------------------------------------------------------- */

.testimonial {
  position: relative;
  width: min(100%, 52rem);
  margin: clamp(3.5rem, 7vw, 6rem) auto 0;
  padding: clamp(2rem, 5vw, 4rem);
  border-radius: var(--r-lg);
  background: var(--card);
  box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line);
  text-align: center;
}

.quote-mark {
  width: 2.4rem;
  margin: 0 auto 1.5rem;
  fill: var(--line);
}

.testimonial blockquote {
  margin: 0;
}

.testimonial blockquote p {
  font-size: clamp(1.15rem, 0.95rem + 0.75vw, 1.7rem);
  letter-spacing: -0.018em;
  line-height: 1.42;
  text-wrap: pretty;
}

.testimonial figcaption {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75em;
  margin-top: 1.75rem;
  color: var(--muted);
  font-size: 0.95em;
}

/* Initials until a photo is added; an <img class="avatar"> drops into the same circle. */
.avatar {
  display: grid;
  flex: none;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--plate);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--ink);
  font-size: 0.78em;
  font-weight: 500;
  letter-spacing: 0.02em;
  object-fit: cover;
}

/* --------------------------------------------------------------------------
   How it works: four steps, each with a worked example
   -------------------------------------------------------------------------- */

.services {
  padding: var(--section-y) 0;
}

.steps {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

.step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-content: center;
  gap: 1rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
}

.step-num {
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--muted);
  font-size: 0.85em;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  transition: background-color var(--dur-quick) ease, color var(--dur-quick) ease, box-shadow var(--dur-quick) ease;
}

.step-title {
  font-size: clamp(1.3rem, 1rem + 0.9vw, 1.9rem);
}

.step-text {
  max-width: 34em;
  margin-top: 0.5rem;
  color: var(--muted);
  line-height: 1.5;
}

.step-demo {
  margin-bottom: 1.5rem;
}

/* The examples: small working views of the job, drawn as interface rather than illustration. */
.demo {
  padding: clamp(1rem, 2vw, 1.4rem);
  border-radius: var(--r-lg);
  background: var(--card);
  box-shadow: var(--shadow-lg), inset 0 0 0 1px var(--line);
  font-size: clamp(0.8rem, 0.75rem + 0.2vw, 0.92rem);
}

.demo-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.6rem;
}

.demo-head strong {
  font-weight: 500;
}

.demo-head > span:not(.chip),
.demo-muted {
  color: var(--muted);
}

.demo-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 10.5em;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65em 0;
  border-top: 1px solid var(--line);
}

.demo-row.is-off > span:first-child {
  color: var(--muted);
}

.demo-checks {
  display: flex;
  grid-column: 2 / -1;
  justify-content: flex-end;
  gap: 0.3em;
}

.chip {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  gap: 0.3em;
  padding: 0.25em 0.65em;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--muted);
  font-size: 0.82em;
  font-weight: 500;
  white-space: nowrap;
}

.chip.is-ok {
  background: var(--ink);
  box-shadow: none;
  color: var(--bg);
}

.chip.is-bad {
  border: 1px dashed var(--muted);
  box-shadow: none;
}

.chip svg {
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.demo-warm {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65em 0;
  border-top: 1px solid var(--line);
}

.demo-bar {
  height: 6px;
  border-radius: 999px;
  background: var(--plate);
  overflow: hidden;
}

.demo-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--ink);
  transform-origin: left;
}

.demo-field {
  display: flex;
  gap: 0.75rem;
  padding: 0.65em 0;
  border-top: 1px solid var(--line);
}

.demo-version {
  margin-top: 0.6rem;
  padding: 0.85rem;
  border-radius: var(--r-sm);
  box-shadow: inset 0 0 0 1px var(--line);
}

.demo-version-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.2rem;
}

.demo-line {
  display: block;
  height: 0.5em;
  margin-top: 0.55em;
  border-radius: 999px;
  background: var(--plate);
}

.demo-line.is-short {
  width: 60%;
}

.demo-thread {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.bubble {
  max-width: 82%;
  padding: 0.65em 0.95em;
  border-radius: 1.1rem;
  background: var(--plate);
  line-height: 1.4;
}

.bubble.is-out {
  align-self: flex-end;
  background: var(--ink);
  color: var(--bg);
}

.demo-booked {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.85rem;
  margin-top: 1rem;
  padding: 0.85rem;
  border-radius: var(--r-md);
  box-shadow: inset 0 0 0 1px var(--line);
}

.demo-date {
  display: grid;
  place-items: center;
  width: 2.9rem;
  padding: 0.35em 0;
  border-radius: 0.65rem;
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 1.15em;
  font-weight: 500;
  line-height: 1;
}

.demo-date small {
  margin-bottom: 0.2em;
  color: var(--muted);
  font-size: 0.55em;
  letter-spacing: 0.06em;
}

.demo-booked-text {
  display: flex;
  flex-direction: column;
  gap: 0.15em;
}

.demo-booked-text strong {
  font-weight: 500;
}

/* Desktop: steps on the left, one pinned panel on the right that shows the step you are reading. */
@media (min-width: 992px) {
  .steps {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: clamp(3rem, 6vw, 6rem);
  }

  .step {
    grid-column: 1;
    min-height: 22svh;
  }

  .step[data-step="1"] { grid-row: 1; }
  .step[data-step="2"] { grid-row: 2; }
  .step[data-step="3"] { grid-row: 3; }
  .step[data-step="4"] { grid-row: 4; }

  html.js .step {
    opacity: 0.4;
    transition: opacity var(--dur-fade) ease;
  }

  html.js .step.is-active {
    opacity: 1;
  }

  .step.is-active .step-num {
    background: var(--ink);
    box-shadow: none;
    color: var(--bg);
  }

  .step-demo {
    position: sticky;
    top: max(6rem, calc(50svh - 11rem));
    grid-column: 2;
    grid-row: 1 / 5;
    align-self: start;
    margin: 0;
    opacity: 0;
    transform: translateY(14px) scale(0.98);
    transition: opacity var(--dur-fade) ease, transform var(--spring-dur) var(--spring);
    pointer-events: none;
  }

  /* Scrolling back up, the outgoing and incoming panels move the other way. */
  .steps[data-dir="up"] .step-demo {
    transform: translateY(-14px) scale(0.98);
  }

  .steps[data-active="1"] .step-demo[data-for="1"],
  .steps[data-active="2"] .step-demo[data-for="2"],
  .steps[data-active="3"] .step-demo[data-for="3"],
  .steps[data-active="4"] .step-demo[data-for="4"] {
    opacity: 1;
    transform: none;
  }

}

/* Each example plays a short entrance when it becomes the active step (desktop) or scrolls into view (phones).
   Script sets the per-part delays; without script everything simply shows. */
.step-demo .demo-row,
.step-demo .demo-warm,
.step-demo .demo-field,
.step-demo .demo-version,
.step-demo .bubble,
.step-demo .demo-booked {
  transition:
    opacity var(--dur-fade) ease,
    transform var(--spring-dur) var(--spring);
}

.step-demo .chip {
  transition:
    opacity var(--dur-fade) ease,
    transform var(--spring-dur) var(--spring);
}

.step-demo .demo-line {
  transform-origin: left;
  transition: transform var(--spring-dur) var(--spring);
}

.step-demo .demo-bar i {
  transition: transform 0.8s var(--spring);
}

/* 4: scrolled past quickly, so the example simply appears. */
.step-demo.is-instant.is-on .demo-row,
.step-demo.is-instant.is-on .demo-warm,
.step-demo.is-instant.is-on .demo-field,
.step-demo.is-instant.is-on .demo-version,
.step-demo.is-instant.is-on .bubble,
.step-demo.is-instant.is-on .demo-booked,
.step-demo.is-instant.is-on .chip,
.step-demo.is-instant.is-on .demo-line,
.step-demo.is-instant.is-on .demo-bar i {
  transition-delay: 0ms;
  transition-duration: 0.15s;
}

.step-demo.is-on .demo-row,
.step-demo.is-on .demo-warm,
.step-demo.is-on .demo-field,
.step-demo.is-on .demo-version,
.step-demo.is-on .bubble,
.step-demo.is-on .demo-booked,
.step-demo.is-on .chip,
.step-demo.is-on .demo-line,
.step-demo.is-on .demo-bar i {
  transition-delay: var(--d, 0ms);
}

html.js .step-demo:not(.is-on) .demo-row,
html.js .step-demo:not(.is-on) .demo-warm,
html.js .step-demo:not(.is-on) .demo-field,
html.js .step-demo:not(.is-on) .demo-version,
html.js .step-demo:not(.is-on) .demo-booked {
  opacity: 0;
  transform: translateY(8px);
}

html.js .step-demo:not(.is-on) .bubble {
  opacity: 0;
  transform: translateY(8px) scale(0.96);
}

html.js .step-demo:not(.is-on) .bubble.is-in {
  transform-origin: left bottom;
}

html.js .step-demo:not(.is-on) .bubble.is-out {
  transform-origin: right bottom;
}

@media (min-width: 992px) {
  html.js .steps[data-dir="up"] .step-demo:not(.is-on) .demo-row,
  html.js .steps[data-dir="up"] .step-demo:not(.is-on) .demo-warm,
  html.js .steps[data-dir="up"] .step-demo:not(.is-on) .demo-field,
  html.js .steps[data-dir="up"] .step-demo:not(.is-on) .demo-version,
  html.js .steps[data-dir="up"] .step-demo:not(.is-on) .demo-booked,
  html.js .steps[data-dir="up"] .step-demo:not(.is-on) .bubble {
    transform: translateY(-8px);
  }
}

html.js .step-demo:not(.is-on) .chip {
  opacity: 0;
  transform: scale(0.8);
}

html.js .step-demo:not(.is-on) .demo-line {
  transform: scaleX(0);
}

html.js .step-demo:not(.is-on) .demo-bar i {
  transform: scaleX(0.08);
}
/* --------------------------------------------------------------------------
   FAQ section
   -------------------------------------------------------------------------- */

.faq {
  padding: var(--section-y) 0;
}

.faq-a-inner {
  min-height: 0;
  max-width: 38em;
  overflow: hidden;
}

.faq-a-inner p + p {
  margin-top: 0.75em;
}

.faq-a-inner::after {
  content: '';
  display: block;
  height: 1.3em;
}

/* --------------------------------------------------------------------------
   Footer: a closing card, then a quiet directory
   -------------------------------------------------------------------------- */

.footer {
  padding: clamp(2rem, 4vw, 3.5rem) 0 1.5rem;
  color: var(--ink);
}

.footer-cta {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1.75rem, 3vw, 2.5rem);
  padding: clamp(3.5rem, 8vw, 7rem) clamp(1.5rem, 5vw, 5rem);
  border-radius: var(--r-lg);
  background: #000;
  color: #f5f5f7;
  text-align: center;
  --btn-bg: #f5f5f7;
  --btn-ink: #1d1d1f;
  --btn-icon-bg: #1d1d1f;
  --btn-icon-ink: #f5f5f7;
  --btn-hover: #dcdce0;
}

html.dark .footer-cta {
  background: #0d0d10;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

/* A soft light that drifts toward the pointer on two slow springs. */
.cta-glow {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 64rem;
  height: 44rem;
  margin: -22rem 0 0 -32rem;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(80, 80, 190, 0.45), rgba(80, 80, 190, 0));
  pointer-events: none;
}

.footer-cta-title {
  position: relative;
  max-width: 14em;
  color: #f5f5f7;
  font-size: clamp(2rem, 0.9rem + 3.2vw, 4.4rem);
  letter-spacing: -0.045em;
  line-height: 1.02;
}

.footer-cta-action {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85em;
  font-size: 1.1em;
}

.footer-cta .cta-note {
  color: rgba(245, 245, 247, 0.62);
  font-size: 0.78em;
}

/* Who the call is with, and the guarantee that backs it. */
.footer-trust {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 1.25rem clamp(1.5rem, 4vw, 3rem);
  width: min(100%, 46rem);
  margin-top: clamp(0.5rem, 2vw, 1.25rem);
  padding-top: clamp(1.75rem, 3vw, 2.25rem);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.85em;
  text-align: left;
  --plate: rgba(255, 255, 255, 0.1);
  --line: rgba(255, 255, 255, 0.16);
  --ink: #f5f5f7;
}

.founder {
  display: flex;
  align-items: center;
  gap: 0.85em;
}

.founder-text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.founder-text strong {
  font-weight: 500;
}

.founder-text span {
  color: rgba(245, 245, 247, 0.62);
}

.guarantee {
  padding-left: clamp(1.5rem, 4vw, 3rem);
  border-left: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(245, 245, 247, 0.72);
  line-height: 1.45;
}

.guarantee strong {
  color: #f5f5f7;
  font-weight: 500;
}

.footer-cta .btn:active {
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.12), 0 0 48px rgba(255, 255, 255, 0.3);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2.5rem 4rem;
  padding: clamp(2.5rem, 5vw, 4rem) 0 2.25rem;
  border-bottom: 1px solid var(--line);
}

.footer-id {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5em;
}

.footer-brand {
  font-size: 1.25em;
  font-weight: 500;
  letter-spacing: -0.045em;
}

.footer-email {
  color: var(--muted);
  font-size: 0.88em;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 2rem clamp(2.5rem, 5vw, 5rem);
}

.footer-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.7em;
  font-size: 0.82em;
}

.footer-col-title {
  margin-bottom: 0.15em;
  font-size: 1em;
  font-weight: 500;
}

.footer-col a,
.footer-col > span,
.footer-email {
  color: var(--muted);
  transition: color var(--dur-quick) ease;
}

.footer-col a:active,
.footer-email:active {
  color: var(--ink);
  transition-duration: var(--press-dur);
}

@media (hover: hover) {
  .footer-col a:hover,
  .footer-email:hover {
    color: var(--ink);
  }
}

.footer-bottom {
  padding-top: 1.25rem;
}

.copyright {
  color: var(--muted);
  font-size: 0.76em;
}

/* --------------------------------------------------------------------------
   Floating apply bar (phones): rises once the hero button scrolls away,
   leaves the same way before the footer card.
   -------------------------------------------------------------------------- */

.book-bar {
  display: none;
}

/* Hairline figures (vendored library; it injects no styles under the CSP) */

.hl {
  position: relative;
  display: block;
  aspect-ratio: 5 / 4;
  touch-action: pan-y;
  user-select: none;
  --hairline-stroke: 1.05;
  --hairline-hi: #000;
  --hairline-edge: rgba(0, 0, 0, 0.55);
  --hairline-mid: rgba(0, 0, 0, 0.28);
  --hairline-lo: rgba(0, 0, 0, 0.14);
}

.hl svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hl svg :where(path, polygon, ellipse, line, circle) {
  fill: var(--hairline-plate);
  stroke: var(--hairline-mid);
  stroke-width: var(--hairline-stroke);
  vector-effect: non-scaling-stroke;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.hl svg :where(.nf) { fill: none; }
.hl svg :where(.fo) { stroke: none; }
.hl svg :where(.sil) { stroke: var(--hairline-edge); }
.hl svg :where(.hi) { stroke: var(--hairline-hi); }
.hl svg :where(.lo) { stroke: var(--hairline-lo); }
.hl svg :where(.dash) { stroke-dasharray: 1 3; }
.hl svg :where(.dot) { stroke: none; fill: var(--hairline-hi); }
.hl svg :where(.dot.m) { fill: var(--hairline-edge); }
.hl svg :where(.dot.off) { fill: var(--hairline-lo); }
.hl svg :where(.ghost path) { fill: none; stroke: var(--hairline-mid); }

html.dark .hl {
  --hairline-hi: #f0f0f2;
  --hairline-edge: rgba(240, 240, 242, 0.62);
  --hairline-mid: rgba(240, 240, 242, 0.34);
  --hairline-lo: rgba(240, 240, 242, 0.16);
}

/* --------------------------------------------------------------------------
   FAQ: one grouped list
   -------------------------------------------------------------------------- */

.faq-list {
  width: min(100%, 46rem);
  margin: clamp(2.5rem, 5vw, 4rem) auto 0;
  overflow: hidden;
}

.faq-item {
  position: relative;
  padding: 0 1.5rem;
  transition: background-color var(--dur-quick) ease;
}

.faq-item + .faq-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 1.5rem;
  right: 0;
  height: 1px;
  background: var(--line);
}

/* Rows highlight under the finger, like a grouped list. */
.faq-item:has(.faq-q:active) {
  background: var(--press);
  transition-duration: var(--press-dur);
}

.faq-heading {
  font-size: inherit;
  font-weight: inherit;
}

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1em;
  width: 100%;
  min-height: 3.6em;
  padding: 1.1em 0;
  text-align: left;
  font-size: 1.05em;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.35;
}

.faq-q-text {
  transition: opacity var(--dur-fade);
}

@media (hover: hover) {
  .faq-q:hover .faq-q-text {
    opacity: 0.65;
  }
}

.faq-chevron {
  width: 1.1em;
  height: 1.1em;
  flex-shrink: 0;
  color: var(--muted);
  transition: transform var(--spring-dur) var(--spring);
}

.faq-item.is-open .faq-chevron {
  transform: rotate(45deg);
}

/* The answer grows out of its question and can be reversed mid-flight. */
.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  color: var(--muted);
  line-height: 1.55;
  opacity: 0;
  transition:
    grid-template-rows var(--spring-dur) var(--spring),
    opacity var(--dur-fade) ease;
}

.faq-a[hidden] {
  display: none;
}

.faq-item.is-open .faq-a {
  grid-template-rows: 1fr;
  opacity: 1;
}


/* --------------------------------------------------------------------------
   Theme toggle
   -------------------------------------------------------------------------- */

/* Floats bottom left, where it never competes with the booking button. */
.theme-toggle {
  position: fixed;
  left: 1.25rem;
  bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  backdrop-filter: blur(16px) saturate(180%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 4px 16px rgba(0, 0, 0, 0.1);
  color: #1d1d1f;
  cursor: pointer;
  transition:
    background-color var(--dur-quick),
    color var(--dur-quick),
    border-color var(--dur-quick),
    box-shadow var(--dur-quick),
    transform var(--spring-dur) var(--spring);
}

.theme-toggle:active {
  transform: scale(0.9);
  transition-duration: var(--dur-quick), var(--dur-quick), var(--dur-quick), var(--dur-quick), var(--press-dur);
}

html.dark .theme-toggle {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(36, 36, 40, 0.7);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 4px 16px rgba(0, 0, 0, 0.4);
  color: #f5f5f7;
}

.theme-icon {
  width: 20px;
  height: 20px;
}

html.dark .theme-icon.sun,
.theme-icon.moon {
  display: none;
}

html.dark .theme-icon.moon {
  display: block;
}

html.theme-anim.dark .theme-icon.moon,
html.theme-anim:not(.dark) .theme-icon.sun {
  animation: theme-icon-in var(--spring-dur) var(--spring);
}

@keyframes theme-icon-in {
  from { transform: rotate(-60deg) scale(0.6); opacity: 0; }
  to { transform: none; opacity: 1; }
}

/* Theme change cross-fades instead of jumping in brightness. */
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.3s;
  animation-timing-function: ease;
}

/* --------------------------------------------------------------------------
   Legal pages: one readable column, same type scale as the homepage
   -------------------------------------------------------------------------- */

.legal {
  padding: clamp(2.5rem, 6vw, 5.5rem) 0 clamp(2rem, 4vw, 3.5rem);
}

.legal-inner {
  max-width: 42rem;
  margin: 0 auto;
}

.legal-head {
  padding-bottom: clamp(2rem, 4vw, 3rem);
}

.legal-title {
  font-size: clamp(2.5rem, 1rem + 3.8vw, 4.75rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1;
  text-wrap: balance;
}

.legal-updated {
  margin-top: 1em;
  color: var(--muted);
  font-size: 0.88em;
}

.legal-summary {
  padding: clamp(1.4rem, 3vw, 2rem);
  font-size: 0.92em;
}

.legal-summary .legal-label {
  margin-bottom: 0.9em;
  font-weight: 500;
}

.legal-body {
  font-size: 0.92em;
  line-height: 1.6;
}

.legal-body h2 {
  margin: 2.6em 0 0.75em;
  font-size: clamp(1.3rem, 1rem + 0.8vw, 1.75rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.15;
  text-wrap: balance;
}

.legal-body h3 {
  margin: 1.7em 0 0.4em;
  font-weight: 500;
}

.legal-body p + p,
.legal-body p + ul,
.legal-body ul + p {
  margin-top: 0.9em;
}

.legal-body li,
.legal-summary li {
  position: relative;
  padding-left: 1.25em;
}

.legal-body li + li,
.legal-summary li + li {
  margin-top: 0.5em;
}

.legal-body li::before,
.legal-summary li::before {
  content: '';
  position: absolute;
  left: 0.25em;
  top: 0.68em;
  width: 0.32em;
  height: 0.32em;
  border-radius: 50%;
  background: var(--muted);
}

.legal-body a,
.legal-summary a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  text-decoration-color: var(--muted);
  transition: text-decoration-color var(--dur-quick) ease;
}

@media (hover: hover) {
  .legal-body a:hover,
  .legal-summary a:hover {
    text-decoration-color: currentColor;
  }
}

.footer-col a[aria-current] {
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   Small screens
   -------------------------------------------------------------------------- */

@media (max-width: 991px) {
  .nav,
  .header-btn {
    display: none;
  }

  .menu-btn {
    display: flex;
  }

  .header-inner {
    height: 64px;
  }

  .header.is-scrolled .header-inner {
    height: 56px;
  }

  .vsl {
    width: min(100%, 34rem);
  }

  /* Footer links get full-size touch targets. */
  .footer-col {
    gap: 0;
  }

  .footer-col-title {
    margin-bottom: 0.25em;
  }

  .footer-col a,
  .footer-col > span,
  .footer-email {
    display: flex;
    align-items: center;
    min-height: 44px;
  }

  .footer-id {
    gap: 0;
  }

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

  .book-bar {
    position: fixed;
    left: 76px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    z-index: 9998;
    display: flex;
    padding: 6px;
    border-radius: 999px;
    background: var(--material);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    backdrop-filter: blur(20px) saturate(180%);
    box-shadow: inset 0 0 0 1px var(--material-edge), 0 8px 30px rgba(0, 0, 0, 0.12);
    opacity: 0;
    transform: translateY(calc(100% + 24px));
    visibility: hidden;
    transition:
      transform var(--spring-dur) var(--spring),
      opacity var(--dur-fade) ease,
      visibility 0s linear var(--spring-dur);
  }

  .book-bar.is-on {
    opacity: 1;
    transform: none;
    visibility: visible;
    transition-delay: 0s;
  }

  .menu-open .book-bar {
    opacity: 0;
    transform: translateY(calc(100% + 24px));
    visibility: hidden;
  }

  .theme-toggle {
    left: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    width: 52px;
    height: 52px;
  }

  .book-bar-btn {
    flex: 1;
    justify-content: space-between;
    font-size: 1rem;
  }
}

@media (max-width: 760px) {
  .billing-tile,
  .invoice-tile {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .guarantee-tile {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-cols {
    grid-template-columns: 1fr 1fr;
  }

  .footer-trust {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    text-align: center;
  }

  .guarantee {
    padding-left: 0;
    border-left: 0;
  }

  .founder-text {
    text-align: left;
  }
}

/* --------------------------------------------------------------------------
   Accessibility preferences
   -------------------------------------------------------------------------- */

/* Reduced motion keeps every piece of feedback, as fades rather than movement. */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-eyebrow,
  .hero-title,
  .hero-sub,
  .vsl {
    animation: hero-fade 0.4s ease both;
  }

  html.js [data-reveal] {
    transform: none;
    transition: opacity 0.4s ease;
  }

  .hl {
    pointer-events: none;
  }

  html.theme-anim .theme-icon {
    animation: none;
  }

  .btn,
  .btn-text,
  .btn-text-hover,
  .btn-icon,
  .btn-icon-hover,
  .faq-chevron,
  .menu-btn,
  .menu-bar,
  .theme-toggle,
  .nav-pill,
  .header-inner {
    transition: none;
  }

  .btn:active,
  .menu-btn:active,
  .theme-toggle:active {
    transform: none;
  }

  .faq-a {
    transition: opacity 0.2s ease;
  }

  .step-demo {
    transform: none;
    transition: opacity 0.3s ease;
  }

  html.js .step-demo:not(.is-on) .demo-row,
  html.js .step-demo:not(.is-on) .demo-warm,
  html.js .step-demo:not(.is-on) .demo-field,
  html.js .step-demo:not(.is-on) .demo-version,
  html.js .step-demo:not(.is-on) .demo-booked,
  html.js .step-demo:not(.is-on) .bubble,
  html.js .step-demo:not(.is-on) .chip,
  html.js .step-demo:not(.is-on) .demo-line,
  html.js .step-demo:not(.is-on) .demo-bar i {
    transform: none;
  }

  .step-demo .demo-row,
  .step-demo .demo-warm,
  .step-demo .demo-field,
  .step-demo .demo-version,
  .step-demo .demo-booked,
  .step-demo .bubble,
  .step-demo .chip {
    transition: opacity 0.3s ease;
  }

  /* The markers change day with a fade instead of a slide. */
  .month-marker {
    transition: opacity 0.3s ease;
  }

  .story[data-beat="3"] .month-marker,
  .month-ask {
    transform: none;
  }

  .mobile-menu {
    transition: visibility 0s linear 0.2s;
  }

  .mobile-menu.is-open {
    transition-delay: 0s;
  }

  .menu-sheet {
    transform: none;
    opacity: 0;
    transition: opacity 0.2s ease;
  }

  .menu-scrim {
    transition: opacity 0.2s ease;
  }

  .mobile-menu.is-open .menu-sheet,
  .mobile-menu.is-open .menu-scrim {
    opacity: 1;
  }

  .book-bar,
  .book-bar.is-on,
  .menu-open .book-bar {
    transform: none;
    transition: opacity 0.2s ease, visibility 0s linear 0.2s;
  }

  .book-bar.is-on {
    transition-delay: 0s;
  }
}

@keyframes hero-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (prefers-reduced-transparency: reduce) {
  :root,
  html.dark {
    --material: var(--bg);
    --sheet: var(--bg);
  }

  .header.is-on-dark {
    --material: #0c0c0e;
  }

  .header,
  .menu-sheet,
  .theme-toggle,
  .book-bar {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .theme-toggle {
    background: #fff;
  }

  html.dark .theme-toggle {
    background: #1c1c1e;
  }
}

@media (prefers-contrast: more) {
  :root {
    --muted: #4a4a4f;
    --line: rgba(0, 0, 0, 0.3);
    --material: var(--bg);
    --sheet: var(--bg);
    --material-edge: rgba(0, 0, 0, 0.45);
  }

  html.dark {
    --muted: #c7c7cc;
    --line: rgba(255, 255, 255, 0.35);
  }

  html.dark {
    --material: var(--bg);
    --sheet: var(--bg);
    --material-edge: rgba(255, 255, 255, 0.5);
  }

  .card {
    box-shadow: 0 0 0 1px var(--line);
  }

  html.js .beat {
    opacity: 0.6;
  }
}
