/* ==========================================================================
   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);
  /* Inactive steps and small labels: the dimmest text that still reads at 4.5:1. */
  --dim: #737378;

  --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;

  /* The fluid unit. Every size that grows with the screen uses this instead of vw.
     It tracks 1vw up to a 1080px-wide window, then holds, so large screens keep
     those proportions and gain margins instead of a bigger page. */
  --vw: min(1vw, 10.8px);

  --gutter: clamp(20px, 5 * var(--vw), 5rem);
  --section-y: clamp(5rem, 9 * var(--vw), 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);
  --dim: #77777c;

  --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;
}

/* Desktop scale: the root size eases from 100% at a 1024px window down to 90% at
   1200px and wider, so every rem-based size on laptops and large screens is 10%
   smaller. Phones and tablets keep 100%. Based on the visitor's own default size. */
html {
  font-size: clamp(0.9em, calc(1em + (1024px - 100vw) * 0.00909), 1em);
  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.875rem + 0.25 * var(--vw), 1.0625rem);
  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: 72rem;
  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.8 * var(--vw), 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.15 * var(--vw), 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.8 * var(--vw), 4rem);
}

.h3 {
  font-size: clamp(1.35rem, 1rem + 0.9 * var(--vw), 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.4 * var(--vw), 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, 6 * var(--vw), 5rem) auto 0;
  text-align: center;
  font-size: clamp(1.45rem, 1rem + 1.5 * var(--vw), 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, 6 * var(--vw), 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.5 * var(--vw), 3.25rem) 0 clamp(3.5rem, 7 * var(--vw), 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.4 * var(--vw), 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.35 * var(--vw), 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.4 * var(--vw));
  width: min(100%, var(--vsl-max, 56rem), calc((100svh - var(--hero-rest)) * 16 / 9));
  min-width: min(100%, 22rem);
  margin: clamp(1.5rem, 2.6 * var(--vw), 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: the headline is visible from the first frame and only lifts into place;
   the subhead and video fade up quickly behind it, 40ms apart. CSS-only, so it needs no script. */
.hero-title {
  animation: hero-lift 0.3s var(--spring) both;
}

.hero-sub,
.vsl {
  animation: hero-rise 0.3s var(--spring) both;
}

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

@keyframes hero-lift {
  from { transform: translateY(0.25em); }
  to { transform: none; }
}

@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 + 3 * var(--vw), 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, 4 * var(--vw), 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.1 * var(--vw), 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, 5 * var(--vw), 4rem);
}

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

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

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

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

/* The pricing model: the one inverted card, so it reads as the strongest promise in the section. */
.model-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, 5 * var(--vw), 4rem);
  padding: clamp(1.75rem, 3.5 * var(--vw), 3rem);
  background: var(--ink);
  color: var(--bg);
}

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

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

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

.billing .section-cta {
  margin-top: clamp(2rem, 4 * var(--vw), 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.2 * var(--vw), 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: the copy on the left, one chart on the right that shows the
   feast-or-famine pattern at a glance, and a bridge into the solution.
   -------------------------------------------------------------------------- */

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

.problem-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2.5rem, 5 * var(--vw), 4rem);
  align-items: center;
}

.problem-copy .lead {
  max-width: 34em;
  margin-top: 1.1rem;
}

.pains {
  display: grid;
  gap: 1.4rem;
  margin: clamp(2rem, 4 * var(--vw), 2.75rem) 0 0;
  padding: 0;
  list-style: none;
}

.pains li {
  display: grid;
  grid-template-columns: 2.6rem minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.pain-icon {
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: var(--r-sm);
  background: var(--plate);
  box-shadow: inset 0 0 0 1px var(--line);
}

.pain-icon svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pain-title {
  margin: 0;
  font-size: clamp(1.05rem, 0.98rem + 0.2 * var(--vw), 1.2rem);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.3;
}

.pains p {
  margin: 0.2rem 0 0;
  color: var(--muted);
  line-height: 1.5;
}

/* The chart: twelve months of referral calls. Monochrome like the rest of the page:
   every month is the same tone, the dashed line is the bar to clear, empty months show a 0. */
.pipe-chart {
  container-type: inline-size;
  margin: 0;
  padding: clamp(1.4rem, 2.6 * var(--vw), 1.9rem);
  box-shadow: var(--shadow-lg), inset 0 0 0 1px var(--line);
}

/* The chart says its point in words first: a small label, then the takeaway. */
.pipe-head {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.pipe-kicker {
  color: var(--muted);
  font-size: 0.85rem;
}

.pipe-tag {
  color: var(--dim);
}

.pipe-title {
  font-size: clamp(1.3rem, 1.1rem + 0.6 * var(--vw), 1.6rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.pipe-plot {
  position: relative;
  height: clamp(10rem, 18 * var(--vw), 13rem);
  margin-top: 1.5rem;
  border-bottom: 1px solid var(--line);
}

.pipe-bars,
.pipe-months {
  --gutter-r: 3.6rem;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(0.3rem, 0.8 * var(--vw), 0.6rem);
  margin: 0;
  padding: 0 var(--gutter-r) 0 0;
  list-style: none;
}

.pipe-bars {
  height: 100%;
  align-items: end;
}

.pipe-bar {
  height: var(--h);
  border-radius: 0.4rem 0.4rem 0.15rem 0.15rem;
  position: relative;
  background: color-mix(in srgb, var(--ink) 78%, transparent);
  transform-origin: bottom;
  transition: transform 0.9s var(--spring);
}

/* An empty month: a sliver with a 0 above it, so it reads as "nothing" rather than missing. */
.pipe-bar.is-zero {
  --h: 3px;
  background: var(--muted);
}

.pipe-bar.is-zero::after {
  content: '0';
  position: absolute;
  bottom: 0.45rem;
  left: 0;
  right: 0;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 500;
  text-align: center;
}

/* Heights are set here, not inline, because the CSP blocks style attributes. */
.pipe-bar:nth-child(1)  { --h: 78%; }
.pipe-bar:nth-child(2)  { --h: 22%; }
.pipe-bar:nth-child(4)  { --h: 90%; }
.pipe-bar:nth-child(5)  { --h: 30%; }
.pipe-bar:nth-child(7)  { --h: 44%; }
.pipe-bar:nth-child(8)  { --h: 96%; }
.pipe-bar:nth-child(9)  { --h: 14%; }
.pipe-bar:nth-child(11) { --h: 58%; }
.pipe-bar:nth-child(12) { --h: 26%; }

.pipe-bar:nth-child(n)  { transition-delay: 0.15s; }
.pipe-bar:nth-child(2)  { transition-delay: 0.19s; }
.pipe-bar:nth-child(3)  { transition-delay: 0.23s; }
.pipe-bar:nth-child(4)  { transition-delay: 0.27s; }
.pipe-bar:nth-child(5)  { transition-delay: 0.31s; }
.pipe-bar:nth-child(6)  { transition-delay: 0.35s; }
.pipe-bar:nth-child(7)  { transition-delay: 0.39s; }
.pipe-bar:nth-child(8)  { transition-delay: 0.43s; }
.pipe-bar:nth-child(9)  { transition-delay: 0.47s; }
.pipe-bar:nth-child(10) { transition-delay: 0.51s; }
.pipe-bar:nth-child(11) { transition-delay: 0.55s; }
.pipe-bar:nth-child(12) { transition-delay: 0.59s; }

/* The bars grow once, when the card is revealed. */
html.js .pipe-chart:not(.is-revealed) .pipe-bar {
  transform: scaleY(0);
}

/* The line every month needs to clear. */
.pipe-target {
  position: absolute;
  inset: auto 0 50% 0;
  z-index: 1;
  border-top: 1.5px dashed var(--muted);
}

/* Named right on the line, in a gutter the bars never reach. */
.pipe-target span {
  position: absolute;
  right: 0;
  bottom: 0.3rem;
  width: 3.2rem;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.2;
  text-align: right;
}

.pipe-months {
  margin-top: 0.5rem;
  color: var(--dim);
  font-size: 0.7rem;
  text-align: center;
}

/* Month names need about 22px each. Where the chart is too narrow for that (phones),
   only every other month is named, so the labels never touch. */
@container (max-width: 22rem) {
  .pipe-months li:nth-child(even) {
    visibility: hidden;
  }
}

.pipe-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
  margin: 1.25rem 0 0;
}

.pipe-stats div {
  display: flex;
  flex-direction: column;
  padding: 0.8rem 0.9rem;
  border-radius: var(--r-sm);
  background: var(--plate);
}

.pipe-stats dd {
  order: -1;
  margin: 0;
  font-size: clamp(1.3rem, 1.1rem + 0.6 * var(--vw), 1.6rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.pipe-stats dt {
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.3;
}

/* The bridge: from the problem to what Tether does about it. */
.problem-bridge {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
  margin-top: clamp(2.5rem, 5 * var(--vw), 4rem);
  padding: clamp(1.25rem, 2.4 * var(--vw), 1.6rem) clamp(1.25rem, 2.6 * var(--vw), 1.9rem);
  box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line);
}

.problem-bridge p {
  margin: 0;
  font-size: clamp(1.02rem, 0.96rem + 0.2 * var(--vw), 1.15rem);
  line-height: 1.5;
}

.problem-bridge strong {
  font-weight: 500;
}

.problem-bridge p span {
  color: var(--muted);
}

@media (min-width: 992px) {
  .problem-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: clamp(3rem, 5.5 * var(--vw), 5rem);
  }

  .problem-bridge {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .problem-bridge .btn {
    flex: none;
  }
}

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

  html.js .pipe-chart:not(.is-revealed) .pipe-bar {
    transform: none;
  }
}

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

.testimonial {
  position: relative;
  width: min(100%, 52rem);
  margin: clamp(3.5rem, 7 * var(--vw), 6rem) auto 0;
  padding: clamp(2rem, 5 * var(--vw), 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.75 * var(--vw), 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: five 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, 5 * var(--vw), 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.9 * var(--vw), 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, 2 * var(--vw), 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.2 * var(--vw), 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, 6 * var(--vw), 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; }
  .step[data-step="5"] { grid-row: 5; }

  /* Inactive steps turn a dimmer grey instead of fading out, so they stay readable. */
  html.js .step :where(.step-title, .step-text, .step-num) {
    transition: color var(--dur-fade) ease, background-color var(--dur-quick) ease, box-shadow var(--dur-quick) ease;
  }

  html.js .step:not(.is-active) :where(.step-title, .step-text, .step-num) {
    color: var(--dim);
  }

  .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 / 6;
    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"],
  .steps[data-active="5"] .step-demo[data-for="5"] {
    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, 4 * var(--vw), 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, 3 * var(--vw), 2.5rem);
  padding: clamp(3.5rem, 8 * var(--vw), 7rem) clamp(1.5rem, 5 * var(--vw), 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.2 * var(--vw), 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. */
.footer-trust {
  position: relative;
  display: grid;
  grid-template-columns: auto;
  justify-content: center;
  align-items: center;
  gap: 1.25rem clamp(1.5rem, 4 * var(--vw), 3rem);
  width: min(100%, 46rem);
  margin-top: clamp(0.5rem, 2 * var(--vw), 1.25rem);
  padding-top: clamp(1.75rem, 3 * var(--vw), 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);
}

.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, 5 * var(--vw), 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 {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  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, 5 * var(--vw), 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, 5 * var(--vw), 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, 6 * var(--vw), 5.5rem) 0 clamp(2rem, 4 * var(--vw), 3.5rem);
}

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

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

.legal-title {
  font-size: clamp(2.5rem, 1rem + 3.8 * var(--vw), 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, 3 * var(--vw), 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.8 * var(--vw), 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;
  }

  /* On phones and tablets the switch lives in the menu sheet, clear of the booking bar. */
  .theme-toggle {
    display: none;
  }

  .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;
  }

  .model-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;
  }

  .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-sub,
  .vsl {
    animation: hero-fade 0.3s ease both;
  }

  .hero-title {
    animation: none;
  }

  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;
  }

  .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);
  }

  :root,
  html.dark {
    --dim: var(--muted);
  }
}

/* Logo: inline SVG in currentColor, so it follows the light/dark theme.
   The eyes blink once, then twice, on an 8-second loop (from brand/tether-copy-logo). */
.logo {
  display: block;
  width: auto;
  overflow: visible;
}

.logo-header {
  height: 1.15rem;
}

.logo-footer {
  height: 1.4rem;
}

.logo-eye {
  opacity: 0;
  animation: logo-blink 8s step-end infinite;
}

@keyframes logo-blink {
  0%, 37%, 39.5%, 86%, 88%, 90%, 92%, 100% { opacity: 0; }
  37.5%, 39%, 86.5%, 87.5%, 90.5%, 91.5% { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .logo-eye { animation: none; }
}

/* At the 90% desktop scale (1200px and wider) the hero text is smaller, so the
   video grows into the freed height and the hero still fills the screen. On
   tall screens it may grow to the full content width. */
@media (min-width: 1200px) {
  .vsl {
    --vsl-max: 100%;
  }
}

/* --------------------------------------------------------------------------
   Hero dot field and card glow
   -------------------------------------------------------------------------- */

:root {
  --dot: rgba(0, 0, 0, 0.09);
  --tile-glow: rgba(88, 92, 230, 0.6);
}

html.dark {
  --dot: rgba(255, 255, 255, 0.11);
  --tile-glow: rgba(156, 158, 255, 0.9);
}

/* A faint grid of square pixels, echoing the logo, fading out from behind the headline. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: conic-gradient(from 270deg at 2px 2px, var(--dot) 25%, transparent 0);
  background-position: 50% 0;
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(ellipse 62% 58% at 50% 34%, #000 15%, transparent 78%);
  mask-image: radial-gradient(ellipse 62% 58% at 50% 34%, #000 15%, transparent 78%);
  pointer-events: none;
}

/* A card's border lights up near the pointer. The script adds .glow-tile to every card
   (.card, .testimonial, .demo) and sets --gx, --gy and --glow-on; without it (touch,
   reduced motion, no JS) the ring stays invisible. */
.glow-tile {
  position: relative;
}

.glow-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: radial-gradient(16rem circle at var(--gx, 50%) var(--gy, 50%), var(--tile-glow), transparent 70%);
  -webkit-mask-image: linear-gradient(#000 0 0), linear-gradient(#000 0 0);
  -webkit-mask-clip: content-box, border-box;
  -webkit-mask-composite: xor;
  mask-image: linear-gradient(#000 0 0), linear-gradient(#000 0 0);
  mask-clip: content-box, border-box;
  mask-composite: exclude;
  opacity: var(--glow-on, 0);
  transition: opacity var(--dur-fade) ease;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .glow-tile::after {
    display: none;
  }
}

@media (prefers-contrast: more) {
  .hero::before {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   Dark mode switch in the mobile menu
   -------------------------------------------------------------------------- */

.menu-theme {
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 0;
  border: 0;
  border-top: 1px solid var(--line);
  background: none;
  color: inherit;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}

.menu-switch {
  position: relative;
  flex: none;
  width: 51px;
  height: 31px;
  border-radius: 999px;
  background: var(--pill);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: background-color var(--dur-quick) ease;
}

.menu-switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.22);
  transition: transform var(--spring-dur) var(--spring);
}

.menu-theme[aria-pressed="true"] .menu-switch {
  background: #5e5ce6;
  box-shadow: none;
}

.menu-theme[aria-pressed="true"] .menu-switch::after {
  transform: translateX(20px);
}

/* --------------------------------------------------------------------------
   Booking confirmation page (/booked/)
   -------------------------------------------------------------------------- */

.booked-video {
  margin: 0 0 clamp(2rem, 4 * var(--vw), 3rem);
}

.booked-video .vsl-frame {
  box-shadow: var(--shadow-sm);
}

/* --------------------------------------------------------------------------
   Homepage rewrite (November 2026): sections added for the longer page.
   They reuse the card, chip, mark and invoice parts above.
   -------------------------------------------------------------------------- */

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

.band {
  background: var(--bg-alt);
}

.services.band,
.billing + .sec {
  border-top: 0;
}

/* A quiet second action under the hero button. */
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  min-height: 44px;
  color: var(--muted);
  font-size: 0.85em;
  transition: color var(--dur-quick) ease;
}

.text-link span {
  transition: transform var(--spring-dur) var(--spring);
}

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

  .text-link:hover span {
    transform: translateX(3px);
  }
}

.hero-btn {
  gap: 0.35em;
}

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

/* What we do: two halves, each ending in a small worked example. */
.halves,
.thirds,
.pair,
.timeline {
  display: grid;
  gap: 1.25rem;
  margin-top: clamp(2.5rem, 5 * var(--vw), 4rem);
}

.halves,
.pair {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.thirds,
.timeline {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.half,
.third,
.pair-card,
.timeline-item {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: clamp(1.5rem, 2.6 * var(--vw), 2.5rem);
}

.half h3,
.third h3,
.timeline-item h3 {
  margin: 0;
}

.half p,
.third p,
.timeline-item p,
.pair-card p {
  margin: 0;
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.35rem;
  font-size: 0.95em;
}

.is-end {
  margin-top: auto;
  padding-top: 1rem;
}

.sample {
  margin-top: auto;
  padding: 0.6rem 1.2rem 0.9rem;
  border-radius: var(--r-md);
  background: var(--plate);
  font-size: clamp(0.82rem, 0.78rem + 0.2 * var(--vw), 0.95rem);
}

.half .chip-list {
  margin-bottom: 1rem;
}

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

.sample-line.is-3 {
  grid-template-columns: 5.5em minmax(0, 1fr) auto;
}

.sample-line.is-off > span:nth-child(2) {
  color: var(--muted);
}

/* Why Tether: three reasons, each ending in its proof. */
.mini-ledger {
  margin-top: auto;
  padding-top: 0.5rem;
}

.mini-ledger li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(3.5ch, auto);
  align-items: center;
  gap: 0.6em;
  padding: 0.7em 0;
  font-weight: 500;
  letter-spacing: -0.015em;
}

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

.mini-ledger .is-free > span:first-child {
  color: var(--muted);
}

.mini-ledger li > span:last-child {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.mini-ledger .mark {
  width: 1.25em;
  height: 1.25em;
  margin: 0;
}

.stat-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 0;
}

.stat-pair dt {
  color: var(--muted);
  font-size: 0.85em;
}

.stat-pair dd {
  margin: 0.15em 0 0;
  font-size: clamp(1.9rem, 1.2rem + 1.8 * var(--vw), 2.9rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

/* How it's built: what the AI does, and what a person does. */
.pair {
  width: min(100%, 52rem);
  margin-left: auto;
  margin-right: auto;
}

.pair-label {
  color: var(--muted);
  font-weight: 500;
}

.pair-card .mark-list li:first-child {
  padding-top: 0.2em;
}

.pair-card .mark-list li:last-child {
  padding-bottom: 0;
}

/* Results: the invoice on its own, with each line explained. */
.invoice-wide {
  width: min(100%, 44rem);
  margin: clamp(2.5rem, 5 * var(--vw), 4rem) auto 0;
  gap: 0;
}

.invoice-wide .invoice {
  margin-bottom: 1.25rem;
}

.walk {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.walk li {
  display: flex;
  flex-direction: column;
  gap: 0.1em;
  line-height: 1.35;
}

.walk span {
  color: var(--muted);
}

/* Tether against the alternatives. On phones each row becomes a small stack. */
.compare-wrap {
  margin-top: clamp(2.5rem, 5 * var(--vw), 4rem);
  padding: clamp(0.5rem, 1.5 * var(--vw), 1.25rem) clamp(1rem, 2.6 * var(--vw), 2.25rem);
}

.compare {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  line-height: 1.4;
}

.compare th,
.compare td {
  padding: 1.05em 0.9em;
  vertical-align: top;
  font-weight: 400;
}

.compare thead th {
  font-weight: 500;
  letter-spacing: -0.015em;
  font-size: 1.05em;
  vertical-align: bottom;
}

.compare tbody tr {
  border-top: 1px solid var(--line);
}

.compare tbody th {
  width: 20%;
  padding-left: 0;
  color: var(--muted);
}

.compare td {
  width: 26.6%;
  color: var(--muted);
}

.compare .is-us {
  background: var(--plate);
  color: var(--ink);
  font-weight: 500;
}

.compare thead .is-us {
  border-radius: var(--r-sm) var(--r-sm) 0 0;
}

.compare tbody tr:last-child .is-us {
  border-radius: 0 0 var(--r-sm) var(--r-sm);
}

/* First 30 days. */
.timeline-when {
  align-self: flex-start;
  padding: 0.3em 0.8em;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-size: 0.85em;
  font-weight: 500;
}

.footer-cta-title {
  margin: 0;
}

@media (max-width: 991px) {
  .thirds,
  .timeline {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  .halves,
  .pair,
  .walk {
    grid-template-columns: minmax(0, 1fr);
  }

  .compare thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  .compare,
  .compare tbody,
  .compare tr,
  .compare th,
  .compare td {
    display: block;
    width: 100%;
  }

  .compare tbody tr {
    padding: 1.1em 0;
  }

  .compare tbody th {
    width: 100%;
    padding: 0 0 0.6em;
    color: var(--ink);
    font-weight: 500;
    font-size: 1.05em;
  }

  .compare td {
    display: grid;
    grid-template-columns: 8.5em minmax(0, 1fr);
    gap: 0.75rem;
    padding: 0.5em 0.75em;
  }

  .compare td::before {
    content: attr(data-col);
    color: var(--muted);
    font-weight: 400;
  }

  .compare .is-us,
  .compare tbody tr:last-child .is-us {
    border-radius: var(--r-sm);
  }
}
