/* ==========================================================================
   MAYA - shared stylesheet (index, integrations, login, legal)

   Two grounds share one token set. "Night" (hero, figures band, closing
   section, footer) and "day" (everything else). A .night element redefines
   the ink/line tokens and a .day element restores them, so components drop
   into either ground without per-section overrides.

   Type: Newsreader for display, Hanken Grotesk for text and UI. The phone
   mockup uses the device's system font, the way a real phone renders it.
   ========================================================================== */

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

:root {
  /* Night */
  --night-950: #0a1514;
  --night-900: #0f1f1e;
  --night-800: #162c2a;
  --night-700: #20403c;
  --on-night: #edf2ef;
  --on-night-2: #c6d3ce;
  --on-night-muted: #a3b6b0;
  --night-line: rgba(237, 242, 239, 0.12);
  --night-line-strong: rgba(237, 242, 239, 0.24);

  /* Day */
  --paper: #f4f6f3;
  --surface: #ffffff;
  --c-ink: #13211f;
  --c-ink-2: #33443f;
  --c-muted: #5b6b66;
  --c-line: #dde4df;
  --c-line-strong: #c7d1cb;
  --c-focus: #c27a12;

  /* Lamplight - the one accent */
  --honey: #f2b45a;
  --honey-hover: #f7c67f;
  --honey-soft: #fbedd6;
  --honey-ink: #8a5408;

  /* Semantic */
  --ok: #23704f;
  --ok-soft: #dcefe4;
  --alert: #b23a2e;
  --alert-soft: #f8e3df;

  /* SMS bubbles (outgoing green darkened for AA contrast with white text) */
  --sms-out: #1a8538;
  --sms-in: #e9e9eb;

  --check-day: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='10' fill='%23dfe8e3'/%3E%3Cpath d='M6.2 10.3l2.5 2.5 5.1-5.3' fill='none' stroke='%2313211f' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --check-night: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='10' fill='%23f2b45a' fill-opacity='.16'/%3E%3Cpath d='M6.2 10.3l2.5 2.5 5.1-5.3' fill='none' stroke='%23f2b45a' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");

  --font-display: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-body: "Hanken Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-device: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --step-hero: clamp(2.75rem, 1.5rem + 3.9vw, 4.75rem);
  --step-h2: clamp(2.1rem, 1.55rem + 2.2vw, 3.35rem);
  --step-figure: clamp(3rem, 2.1rem + 3.6vw, 4.75rem);
  --step-h3: clamp(1.3rem, 1.2rem + 0.45vw, 1.55rem);
  --step-lede: clamp(1.1rem, 1.04rem + 0.3vw, 1.25rem);
  --step-body: 1.0625rem;
  --step-small: 0.9375rem;
  --step-label: 0.8125rem;

  --gutter: clamp(1rem, 0.5rem + 2.5vw, 2rem);
  --section-y: clamp(4.5rem, 2.5rem + 6vw, 8rem);
  --nav-h: 72px;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(15, 31, 30, 0.05), 0 2px 8px rgba(15, 31, 30, 0.04);
  --shadow: 0 1px 2px rgba(15, 31, 30, 0.05), 0 16px 36px -14px rgba(15, 31, 30, 0.2);
  --shadow-lg: 0 2px 6px rgba(5, 12, 11, 0.2), 0 32px 64px -20px rgba(5, 12, 11, 0.55);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

:root,
.day {
  --ink: var(--c-ink);
  --ink-2: var(--c-ink-2);
  --muted: var(--c-muted);
  --line: var(--c-line);
  --line-strong: var(--c-line-strong);
  --focus: var(--c-focus);
  --eyebrow: var(--honey-ink);
  --check: var(--check-day);
}

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

.night {
  --ink: var(--on-night);
  --ink-2: var(--on-night-2);
  --muted: var(--on-night-muted);
  --line: var(--night-line);
  --line-strong: var(--night-line-strong);
  --focus: var(--honey);
  --eyebrow: var(--honey);
  --check: var(--check-night);
  background-color: var(--night-900);
  color: var(--ink);
}

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

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 1rem);
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body:has(dialog[open]) {
  overflow: hidden;
}

[hidden] {
  display: none !important;
}

h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote {
  margin: 0;
}

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

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

p {
  text-wrap: pretty;
}

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

::selection {
  background: var(--honey-soft);
  color: var(--c-ink);
}

.sr-only {
  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: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  background: var(--c-ink);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-150%);
  transition: transform 0.2s var(--ease-out);
}

.skip-link:focus-visible {
  transform: none;
}

/* --------------------------------------------------------------------------
   Type
   -------------------------------------------------------------------------- */

h1, h2 {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.06;
  text-wrap: balance;
}

h2 {
  font-size: var(--step-h2);
}

h1 em,
h2 em {
  font-style: italic;
  font-weight: 400;
  color: var(--eyebrow);
}

h3 {
  font-size: var(--step-h3);
  font-weight: 600;
  letter-spacing: -0.012em;
  line-height: 1.25;
  text-wrap: balance;
}

.eyebrow {
  font-size: var(--step-label);
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--eyebrow);
}

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: calc(1200px + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.section--tight {
  padding-block: clamp(3.5rem, 2.5rem + 3vw, 5rem);
}

.section-head {
  display: grid;
  gap: 1rem;
  max-width: 46rem;
  margin-bottom: clamp(2.5rem, 1.5rem + 3vw, 4rem);
}

.section-head--center {
  margin-inline: auto;
  justify-items: center;
  text-align: center;
}

.section-head--split {
  max-width: none;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: end;
  gap: 1.5rem clamp(2rem, 1rem + 4vw, 5rem);
}

.section-head--split > div {
  display: grid;
  gap: 1rem;
}

.section-lede {
  max-width: 40rem;
  font-size: var(--step-lede);
  line-height: 1.6;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Buttons and links
   -------------------------------------------------------------------------- */

.btn {
  --btn-bg: var(--c-ink);
  --btn-fg: #ffffff;
  --btn-border: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0 1.4rem;
  border: 1.5px solid var(--btn-border);
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.005em;
  text-decoration: none;
  white-space: nowrap;
  transition:
    transform 0.2s var(--ease-out),
    box-shadow 0.2s var(--ease-out),
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px -8px rgba(15, 31, 30, 0.45);
}

.btn:active {
  transform: translateY(0);
}

.btn:disabled {
  cursor: progress;
  opacity: 0.75;
  transform: none;
  box-shadow: none;
}

.btn-primary:hover {
  --btn-bg: #223834;
}

.btn-outline {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  --btn-border: var(--line-strong);
}

.btn-outline:hover {
  --btn-border: var(--ink);
  box-shadow: none;
}

.btn-sm {
  min-height: 40px;
  padding: 0 1.1rem;
  font-size: 0.9375rem;
}

.btn-lg {
  min-height: 54px;
  padding: 0 1.75rem;
  font-size: 1.0625rem;
}

.btn-block {
  width: 100%;
}

/* On night grounds the primary button becomes lamplight. */
.night .btn-primary {
  --btn-bg: var(--honey);
  --btn-fg: var(--night-900);
}

.night .btn-primary:hover {
  --btn-bg: var(--honey-hover);
  box-shadow: 0 10px 30px -10px rgba(242, 180, 90, 0.6);
}

/* ...unless the button sits on a white card inside the night. */
.day .btn-primary {
  --btn-bg: var(--c-ink);
  --btn-fg: #ffffff;
}

.day .btn-primary:hover {
  --btn-bg: #223834;
  box-shadow: 0 8px 20px -8px rgba(15, 31, 30, 0.45);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}

.link-arrow::after {
  content: "\2192";
  transition: transform 0.2s var(--ease-out);
}

.link-arrow:hover {
  text-decoration: underline;
}

.link-arrow:hover::after {
  transform: translateX(3px);
}

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */

.site-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  align-items: center;
  height: var(--nav-h);
  background: rgba(255, 255, 255, 0.88);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  transition:
    height 0.3s var(--ease-out),
    background-color 0.3s ease,
    border-color 0.3s ease;
}

.site-nav.is-condensed {
  height: 62px;
}

/* Over the night hero the bar is see-through; script.js adds/removes .night. */
.site-nav.night {
  background: transparent;
  border-bottom-color: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

/* Once scrolling starts, hero content slides beneath the bar, so give it a night backdrop. */
.site-nav.night.is-condensed {
  background: rgba(11, 24, 23, 0.74);
  border-bottom-color: var(--night-line);
  -webkit-backdrop-filter: saturate(1.3) blur(14px);
  backdrop-filter: saturate(1.3) blur(14px);
}

/* Without JavaScript nothing would swap the bar back, so keep it on day. */
html:not(.js) .site-nav.night {
  --ink: var(--c-ink);
  --ink-2: var(--c-ink-2);
  --line: var(--c-line);
  --focus: var(--c-focus);
  background: rgba(255, 255, 255, 0.92);
  border-bottom-color: var(--c-line);
  color: var(--c-ink);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.wordmark {
  display: inline-flex;
  align-items: flex-start;
  gap: 4px;
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1;
  color: inherit;
  text-decoration: none;
}

.wordmark-dot {
  width: 7px;
  height: 7px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--honey);
  box-shadow: 0 0 0 3px rgba(242, 180, 90, 0.2);
}

.nav-menu {
  display: flex;
  flex: 1;
  justify-content: center;
  gap: 1.9rem;
}

.nav-menu a,
.nav-login {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-menu a:hover,
.nav-login:hover,
.nav-menu a[aria-current="page"] {
  color: var(--ink);
}

.nav-menu-login {
  display: none;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-left: auto;
}

.nav-toggle {
  position: relative;
  display: none;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: inherit;
}

.nav-toggle span {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 1.75px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.3s var(--ease-out), top 0.3s var(--ease-out);
}

.nav-toggle span:first-child { top: 18px; }
.nav-toggle span:last-child { top: 25px; }

.site-nav.is-open .nav-toggle span:first-child {
  top: 21.5px;
  transform: rotate(45deg);
}

.site-nav.is-open .nav-toggle span:last-child {
  top: 21.5px;
  transform: rotate(-45deg);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding: calc(var(--nav-h) + clamp(2.5rem, 1.5rem + 4vw, 5.5rem)) 0 clamp(4.5rem, 3rem + 5vw, 7.5rem);
  background:
    radial-gradient(900px 520px at 8% -10%, rgba(92, 150, 138, 0.13), transparent 62%),
    linear-gradient(180deg, #0b1817 0%, var(--night-900) 52%, #122523 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 520px;
  align-items: center;
  gap: clamp(2rem, 1rem + 3vw, 4rem);
}

.hero-copy {
  max-width: 38rem;
}

.hero h1 {
  margin-top: 1.25rem;
  font-size: var(--step-hero);
  line-height: 1.01;
  letter-spacing: -0.026em;
}

.hero h1 .h1-line {
  display: block;
}

.hero h1 em {
  color: var(--honey);
}

.hero-lede {
  max-width: 34rem;
  margin-top: 1.6rem;
  font-size: var(--step-lede);
  line-height: 1.6;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.25rem;
}

.btn-ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  --btn-border: var(--line-strong);
}

.btn-ghost:hover {
  --btn-border: var(--ink);
  box-shadow: none;
}

.btn-video-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 26px;
  height: 26px;
  margin-left: -0.4rem;
  border-radius: 50%;
  background: var(--honey);
}

.btn-video-icon::before {
  content: "";
  width: 8px;
  height: 10px;
  margin-left: 2px;
  background: var(--night-900);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.hero-price-link {
  margin-top: 1.5rem;
  font-weight: 500;
}

.hero-assurances,
.assurances {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.6rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--muted);
}

.hero-assurances li,
.assurances li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-assurances li::before,
.assurances li::before {
  content: "";
  flex: none;
  width: 18px;
  height: 18px;
  background: var(--check) center / contain no-repeat;
}

/* Page-load sequence: the copy settles, then the phone lights up. */
.hero-copy > *,
.hero-visual {
  animation: rise 0.9s var(--ease-out) both;
}

.hero-copy > :nth-child(1) { animation-delay: 0.05s; }
.hero-copy > :nth-child(2) { animation-delay: 0.12s; }
.hero-copy > :nth-child(3) { animation-delay: 0.22s; }
.hero-copy > :nth-child(4) { animation-delay: 0.3s; }
.hero-copy > :nth-child(5) { animation-delay: 0.36s; }
.hero-copy > :nth-child(6) { animation-delay: 0.42s; }
.hero-visual { animation-delay: 0.3s; animation-duration: 1.2s; }

/* --------------------------------------------------------------------------
   Hero demo: patient's phone + staff-ready request card
   -------------------------------------------------------------------------- */

.hero-visual {
  position: relative;
  display: flex;
  justify-content: flex-end;
}

/* The lamp left on: a warm glow behind the phone. */
.hero-visual::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 50%;
  right: -120px;
  width: 640px;
  height: 640px;
  transform: translateY(-50%);
  background: radial-gradient(closest-side, rgba(242, 180, 90, 0.26), rgba(242, 180, 90, 0.07) 55%, transparent 76%);
  pointer-events: none;
}

.demo {
  position: relative;
  margin: 0;
}

.phone {
  position: relative;
  width: 300px;
  height: 612px;
  padding: 11px;
  border-radius: 50px;
  background: linear-gradient(150deg, #2c3837 0%, #0b1110 38%, #1a2322 100%);
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.09),
    0 0 0 1px rgba(0, 0, 0, 0.55),
    var(--shadow-lg);
}

.phone-screen {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border-radius: 40px;
  background: #ffffff;
  color: #000000;
  font-family: var(--font-device);
}

/* Dynamic island */
.phone-screen::before {
  content: "";
  position: absolute;
  z-index: 3;
  top: 10px;
  left: 50%;
  width: 90px;
  height: 26px;
  border-radius: 20px;
  background: #000000;
  transform: translateX(-50%);
}

.phone-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 46px;
  padding: 12px 24px 0 32px;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}

.phone-status svg {
  width: 64px;
  height: 12px;
}

.phone-header {
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 4px 0 10px;
  border-bottom: 0.5px solid #d9d9de;
  background: #f8f8f8;
}

.phone-avatar {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(180deg, #a5afac, #87928f);
  color: #ffffff;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.phone-contact {
  font-size: 12px;
  font-weight: 500;
  color: #111111;
}

.thread {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 0;
  overflow: hidden;
  padding: 0 12px 8px;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 48px);
  mask-image: linear-gradient(to bottom, transparent 0, #000 48px);
}

/* Each row collapses to zero height until its moment, then grows in,
   pushing earlier messages up the way a real thread scrolls. */
.t-row {
  display: grid;
  grid-template-rows: 1fr;
  transition:
    grid-template-rows 0.45s var(--ease-out),
    opacity 0.35s ease;
}

.t-clip {
  min-height: 0;
  overflow: hidden;
}

.t-inner {
  display: flex;
  padding-top: 6px;
}

.t-out .t-inner { justify-content: flex-end; }
.t-in .t-inner { justify-content: flex-start; }

.t-time .t-inner {
  justify-content: center;
  padding: 12px 0 4px;
  font-size: 11px;
  color: #8a8a8e;
}

.t-time b {
  font-weight: 600;
}

.bubble {
  max-width: 78%;
  padding: 8px 12px;
  border-radius: 18px;
  font-size: 14.5px;
  line-height: 1.32;
  letter-spacing: -0.005em;
}

.t-out .bubble {
  border-bottom-right-radius: 6px;
  background: var(--sms-out);
  color: #ffffff;
}

.t-in .bubble {
  border-bottom-left-radius: 6px;
  background: var(--sms-in);
  color: #0b0b0c;
}

.typing {
  display: inline-flex;
  gap: 4px;
  padding: 12px 14px;
}

.typing i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #9a9aa0;
  animation: typing 1.2s infinite ease-in-out;
}

.typing i:nth-child(2) { animation-delay: 0.15s; }
.typing i:nth-child(3) { animation-delay: 0.3s; }

/* Typing indicators only exist during playback. */
.t-typing { display: none; }
.demo.is-playing .t-typing { display: grid; }

.demo.is-playing .t-row {
  grid-template-rows: 0fr;
  opacity: 0;
}

.demo.is-playing .t-row.is-in {
  grid-template-rows: 1fr;
  opacity: 1;
}

.demo.is-playing .t-row.is-in.is-out {
  grid-template-rows: 0fr;
  opacity: 0;
}

.demo.is-playing .t-row.is-in .bubble {
  animation: bubble-in 0.45s var(--ease-out) both;
}

.demo.is-resetting,
.demo.is-resetting * {
  transition: none !important;
  animation: none !important;
}

.phone-compose {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 10px 14px;
}

.phone-compose::before {
  content: "+";
  display: grid;
  place-items: center;
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #eeeef0;
  color: #77777c;
  font-size: 20px;
  line-height: 1;
}

.phone-compose span {
  flex: 1;
  height: 34px;
  padding: 0 14px;
  border: 1px solid #d6d6da;
  border-radius: 18px;
  font-size: 14px;
  line-height: 32px;
  color: #a0a0a6;
}

/* Staff-ready request: the practice's side of the same conversation. */
.request-card {
  position: absolute;
  z-index: 2;
  bottom: 92px;
  left: -246px; /* overlaps the bezel only, never the messages */
  width: 262px;
  padding: 16px 16px 15px;
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  font-family: var(--font-body);
  transition:
    opacity 0.5s var(--ease-out),
    transform 0.65s var(--ease-out);
}

.demo.is-playing .request-card:not(.is-in) {
  opacity: 0;
  transform: translateY(16px) scale(0.97);
}

.request-card.just-approved {
  animation: approve-pop 0.55s var(--ease-out);
}

.request-card.is-approved [data-when="new"],
.request-card:not(.is-approved) [data-when="done"] {
  display: none;
}

.rc-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.rc-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--muted);
}

.request-card:not(.is-approved) .rc-kicker::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--honey);
  animation: pulse 1.6s ease-in-out infinite;
}

.rc-time {
  font-size: 0.75rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.rc-name {
  margin-top: 0.65rem;
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.rc-facts {
  display: grid;
  gap: 0.15rem;
  margin-top: 0.2rem;
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--ink-2);
}

.rc-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.9rem;
}

.rc-btn {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 0.9rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
}

.rc-btn--primary {
  border-color: var(--c-ink);
  background: var(--c-ink);
  color: #ffffff;
}

.rc-status {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.9rem;
  padding: 0.5rem 0.7rem;
  border-radius: 10px;
  background: var(--ok-soft);
  color: var(--ok);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.3;
}

.rc-status::before {
  content: "";
  flex: none;
  width: 14px;
  height: 14px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2.5 7.3l2.9 2.9 6.1-6.4' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2.5 7.3l2.9 2.9 6.1-6.4' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.demo-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  width: 300px;
  min-height: 34px;
  margin: 1.1rem 0 0 auto;
  font-size: 0.8125rem;
  color: var(--muted);
}

.demo-replay {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink);
  transition: border-color 0.2s ease;
}

.demo-replay::before {
  content: "\21BB";
  font-size: 0.95rem;
  line-height: 1;
}

.demo-replay:hover {
  border-color: var(--honey);
}

/* --------------------------------------------------------------------------
   PMS strip
   -------------------------------------------------------------------------- */

.pms-strip {
  padding-block: clamp(2.25rem, 1.75rem + 2vw, 3.25rem);
  border-bottom: 1px solid var(--line);
}

.pms-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.5rem 3rem;
}

.pms-title {
  font-family: var(--font-body);
  font-size: 1.125rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  line-height: 1.35;
}

.pms-copy p {
  max-width: 34rem;
  margin-top: 0.35rem;
  font-size: var(--step-small);
  color: var(--muted);
}

.pms-right {
  display: grid;
  justify-items: end;
  gap: 0.9rem;
}

.pms-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 2.25rem;
}

.pms-list li {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #788883;
}

.pms-right .link-arrow {
  font-size: 0.9375rem;
}

/* --------------------------------------------------------------------------
   Shared pieces: vignette, check-list, plan tag, product mock cards
   -------------------------------------------------------------------------- */

.vignette {
  display: grid;
  gap: 0.4rem;
  max-width: 30rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line-strong);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-style: italic;
  line-height: 1.45;
  color: var(--ink-2);
}

.vignette-time {
  font-family: var(--font-body);
  font-size: var(--step-label);
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--eyebrow);
}

.check-list {
  display: grid;
  gap: 0.65rem;
}

.check-list li {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: start;
  gap: 0.7rem;
  font-size: var(--step-small);
  line-height: 1.5;
  color: var(--ink-2);
}

.check-list li::before {
  content: "";
  width: 20px;
  height: 20px;
  margin-top: 1px;
  background: var(--check) center / contain no-repeat;
}

.plan-tag {
  padding: 0.35rem 0.8rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: var(--step-label);
  font-weight: 600;
  color: var(--muted);
}

.plan-tag--growth {
  border-color: transparent;
  background: var(--honey-soft);
  color: var(--honey-ink);
}

/* Product mock cards */

.ui-card {
  padding: 1.25rem 1.35rem 1.35rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
  font-size: 0.9375rem;
}

.ui-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--line);
}

.ui-title {
  font-weight: 700;
  letter-spacing: -0.01em;
}

.ui-meta {
  font-size: 0.8125rem;
  color: var(--muted);
}

.ui-label {
  margin-bottom: 0.55rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--muted);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}

.chip-queued { background: var(--honey-soft); color: var(--honey-ink); }
.chip-urgent { background: var(--alert-soft); color: var(--alert); }
.chip-done { background: var(--ok-soft); color: var(--ok); }

.chip-live::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse 1.6s ease-in-out infinite;
}

.inbox-row {
  display: grid;
  grid-template-columns: 4.6rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.85rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--line);
}

.inbox-row:last-child {
  padding-bottom: 0.2rem;
  border-bottom: 0;
}

.inbox-time {
  font-size: 0.8125rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.inbox-who {
  font-weight: 650;
}

.inbox-what {
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--muted);
}

.mini-thread {
  display: grid;
  gap: 0.5rem;
  padding-top: 1rem;
}

.mini-thread li {
  max-width: 84%;
  padding: 0.6rem 0.9rem;
  border-radius: 16px;
  font-size: 0.9rem;
  line-height: 1.42;
}

.mt-patient {
  justify-self: start;
  border-bottom-left-radius: 5px;
  background: #edf1ee;
  color: var(--c-ink);
}

.mt-maya {
  justify-self: end;
  border-bottom-right-radius: 5px;
  background: var(--night-800);
  color: var(--on-night);
}

/* Date labels between messages, for a thread that spans months (recall). */
.mini-thread .mt-when {
  justify-self: center;
  max-width: none;
  padding: 0.4rem 0 0;
  border-radius: 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.recall-settings {
  margin-top: 0.9rem;
}

/* The footer's top border already closes the list. */
.recall-settings > div:last-child {
  border-bottom: 0;
}

.ui-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 1.1rem;
  padding-top: 0.95rem;
  border-top: 1px solid var(--line);
  font-size: 0.8125rem;
  color: var(--muted);
}

.settings > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.72rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
}

.settings dt {
  color: var(--muted);
}

.settings dd {
  font-weight: 650;
  text-align: right;
}

.campaign-preview {
  margin-top: 1.1rem;
  padding: 1rem;
  border-radius: var(--radius-sm);
  background: var(--paper);
}

.campaign-preview .mt-maya {
  display: block;
  max-width: none;
  padding: 0.65rem 0.9rem;
  border-radius: 16px;
  border-bottom-right-radius: 5px;
  font-size: 0.9rem;
  line-height: 1.42;
}

/* --------------------------------------------------------------------------
   Control
   -------------------------------------------------------------------------- */

.flow {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.75rem;
  margin-bottom: clamp(3rem, 2rem + 3vw, 4.5rem);
}

/* Dashed connector running behind the step numbers. */
.flow::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 22px;
  right: 22px;
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--line-strong) 0 6px, transparent 6px 12px);
}

.flow-step {
  position: relative;
  display: grid;
  align-content: start;
  gap: 0.55rem;
  padding-right: 0.5rem;
}

.flow-num {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 0.65rem;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  background: var(--surface);
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  font-variant-numeric: lining-nums;
}

/* The last step is the human one - it gets the solid mark. */
.flow-step:last-child .flow-num {
  background: var(--ink);
  color: #ffffff;
}

.flow-step h3 {
  font-size: 1.125rem;
}

.flow-step p {
  font-size: var(--step-small);
  color: var(--muted);
}

/* On a night ground the step marks invert; the last (human) step turns honey. */
.night .flow-num {
  background: var(--night-900);
}

.night .flow-step:last-child .flow-num {
  border-color: var(--honey);
  background: var(--honey);
  color: var(--night-900);
}

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

.promise {
  display: grid;
  align-content: start;
  gap: 0.65rem;
  padding: clamp(1.5rem, 1.25rem + 1vw, 2rem);
  border-radius: var(--radius);
  background: var(--paper);
}

.promise h3 {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 500;
  letter-spacing: -0.015em;
}

.promise p {
  font-size: var(--step-small);
  color: var(--ink-2);
}

/* --------------------------------------------------------------------------
   Missed-call calculator
   -------------------------------------------------------------------------- */

.cost-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(2.5rem, 1rem + 5vw, 6rem);
}

.cost-copy {
  display: grid;
  gap: 1rem;
}

.cost-note {
  max-width: 34rem;
  margin-top: 0.5rem;
  padding-left: 1rem;
  border-left: 3px solid var(--honey);
  font-size: var(--step-small);
  color: var(--ink-2);
}

.cost-card {
  display: grid;
  padding: clamp(1.5rem, 1rem + 2vw, 2.25rem);
}

.cost-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 8.5rem;
  align-items: center;
  gap: 1rem;
  padding-block: 0.85rem;
  border-bottom: 1px solid var(--line);
}

.cost-field label {
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
}

.cost-hint {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--muted);
}

.cost-field input {
  width: 100%;
  min-height: 48px;
  padding: 0.6rem 0.85rem;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  font-size: 1.0625rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-align: right;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.cost-field input:hover {
  border-color: #a9b6b0;
}

.cost-field input:focus {
  outline: none;
  border-color: var(--c-ink);
  box-shadow: 0 0 0 4px rgba(19, 33, 31, 0.1);
}

.cost-result {
  display: grid;
  gap: 0.45rem;
  margin-top: 1.5rem;
  padding: 1.35rem 1.5rem;
  border-radius: var(--radius);
}

.cost-result-label {
  font-size: var(--step-label);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.cost-amount {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 2rem + 2.4vw, 3.6rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: lining-nums tabular-nums;
  color: var(--honey);
}

.cost-compare {
  font-size: var(--step-small);
  color: var(--ink-2);
}

.cost-fine {
  margin-top: 0.9rem;
  font-size: 0.8125rem;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   The same afternoon, twice
   -------------------------------------------------------------------------- */

.twice {
  background: var(--paper);
}

.twice-player {
  display: grid;
  gap: 1.5rem;
}

.twice-controls {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem 1.25rem;
  padding: 0.7rem 0.8rem 0.7rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

/* The scrubber only means something once the script drives it. */
html:not(.js) .twice-controls {
  display: none;
}

.twice-clock {
  min-width: 5rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.twice-scrub {
  width: 100%;
  height: 28px;
  margin: 0;
  accent-color: var(--c-ink);
  cursor: pointer;
}

.twice-controls .demo-replay {
  margin: 0;
}

/* Tabs stand in for the second column on phones (see Responsive). */
.twice-tabs {
  display: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 0.3rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}

.twice-tab {
  min-height: 42px;
  padding: 0 1rem;
  border: 0;
  border-radius: 999px;
  background: none;
  font-weight: 650;
  color: var(--muted);
  transition: background 0.25s ease, color 0.25s ease;
}

.twice-tab[aria-selected="true"] {
  background: var(--c-ink);
  color: #ffffff;
}

.twice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 1.5rem;
}

.twice-col {
  padding: 1.5rem 1.5rem 1.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.twice-maya {
  border-color: rgba(242, 180, 90, 0.55);
  box-shadow: var(--shadow), 0 0 0 4px rgba(242, 180, 90, 0.08);
}

.twice-col h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-size: var(--step-h3);
  font-weight: 500;
  letter-spacing: -0.015em;
}

.twice-tag {
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: var(--step-label);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.twice-today .twice-tag {
  background: #edf1ee;
  color: var(--c-muted);
}

.twice-maya .twice-tag {
  background: var(--honey-soft);
  color: var(--honey-ink);
}

/* Timeline beats */

.tl {
  display: grid;
  margin-top: 1.1rem;
}

.tl-event {
  display: grid;
  grid-template-columns: 4.4rem minmax(0, 1fr);
  gap: 0.85rem;
  padding: 0.9rem 0;
  border-top: 1px solid var(--line);
}

.tl-event:first-child {
  border-top: 0;
}

.js .tl-event:not([hidden]) {
  animation: panel-in 0.45s var(--ease-out);
}

.tl-event time {
  padding-top: 0.1rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.tl-event p {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--ink-2);
}

.tl-event > div {
  display: grid;
  gap: 0.6rem;
}

.tl-badge {
  display: inline-block;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  background: var(--alert-soft);
  color: var(--alert);
  font-size: 0.75rem;
  font-weight: 700;
  vertical-align: 0.05em;
}

.tl-bubble {
  display: inline-block;
  max-width: 100%;
  padding: 0.55rem 0.85rem;
  border-radius: 14px;
  font-size: 0.9rem;
  line-height: 1.42;
}

/* Outranks the beat's paragraph colour, so light text stays light on the dark bubble. */
.tl-event .tl-bubble--maya {
  border-bottom-left-radius: 4px;
  background: var(--night-800);
  color: var(--on-night);
}

.tl-bubble--patient {
  border-bottom-right-radius: 4px;
  background: #edf1ee;
  color: var(--c-ink);
}

.tl-event p .tl-bubble {
  margin-top: 0.5rem;
}

.tl-note {
  padding-left: 0.85rem;
  border-left: 3px solid var(--honey);
  font-size: 0.875rem;
  color: var(--muted);
}

.request-card--inline {
  position: static;
  width: auto;
  padding: 0.9rem 1rem 1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
}

.request-card--inline .rc-name {
  margin-top: 0.45rem;
  font-size: 0.95rem;
}

.request-card--inline .rc-facts {
  font-size: 0.8125rem;
}

.request-card--inline .rc-actions {
  margin-top: 0.7rem;
}

.twice-outcome {
  margin-top: 1rem;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  font-weight: 650;
  line-height: 1.4;
}

.twice-outcome--lost {
  background: var(--alert-soft);
  color: var(--alert);
}

.twice-outcome--won {
  background: var(--ok-soft);
  color: var(--ok);
}

.twice-cost {
  margin-top: clamp(3.5rem, 2.5rem + 3vw, 5.5rem);
  padding-top: clamp(2.5rem, 2rem + 2vw, 3.5rem);
  border-top: 1px solid var(--line-strong);
}

.twice-cost-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.25rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.twice-cost-title em {
  font-style: italic;
  color: var(--eyebrow);
}

/* --------------------------------------------------------------------------
   Text MAYA yourself: the scripted sandbox
   -------------------------------------------------------------------------- */

.tryit {
  background:
    radial-gradient(700px 420px at 85% 50%, rgba(242, 180, 90, 0.12), transparent 65%),
    var(--night-900);
}

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

.tryit-copy {
  display: grid;
  justify-items: start;
  gap: 1.25rem;
}

.tryit-copy > p:not(.eyebrow):not(.section-lede) {
  color: var(--ink-2);
}

.tryit-note {
  max-width: 34rem;
  padding-left: 1rem;
  border-left: 3px solid var(--honey);
  font-size: var(--step-small);
}

.tryit-stage {
  position: relative;
  display: grid;
  grid-template-columns: 300px 262px;
  align-items: end;
  gap: 1.1rem 1.5rem;
}

.phone--sandbox .phone-status span {
  padding-left: 0;
}

/* The sandbox thread scrolls as it grows; the hero's is fixed-height and masked. */
.sandbox-thread {
  justify-content: flex-start;
  overflow-y: auto;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 24px);
  mask-image: linear-gradient(to bottom, transparent 0, #000 24px);
}

.sandbox-thread::-webkit-scrollbar {
  display: none;
}

.sandbox-thread .t-typing {
  display: grid;
}

.sandbox-thread .t-row.is-in .bubble {
  animation: bubble-in 0.4s var(--ease-out) both;
}

.sandbox-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  padding: 6px 12px 4px;
}

.sandbox-chips button {
  padding: 6px 11px;
  border: 1px solid var(--sms-out);
  border-radius: 999px;
  background: #ffffff;
  color: var(--sms-out);
  font-family: var(--font-device);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  text-align: left;
  transition: background 0.2s ease, color 0.2s ease;
}

.sandbox-chips button:hover {
  background: var(--sms-out);
  color: #ffffff;
}

.sandbox-compose {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 6px 10px 14px;
}

.sandbox-compose input {
  flex: 1;
  min-width: 0;
  height: 36px;
  padding: 0 14px;
  border: 1px solid #d6d6da;
  border-radius: 18px;
  background: #ffffff;
  color: #000000;
  font-family: var(--font-device);
  font-size: 15px;
}

.sandbox-compose input:focus {
  outline: none;
  border-color: var(--sms-out);
}

.sandbox-compose button {
  display: grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: var(--sms-out);
  color: #ffffff;
  font-size: 18px;
  line-height: 1;
}

html:not(.js) .sandbox-chips,
html:not(.js) .sandbox-compose {
  display: none;
}

.sandbox-side {
  display: grid;
  align-content: end;
  justify-items: start;
  gap: 1rem;
  min-height: 200px;
}

.request-card--sandbox {
  position: static;
  width: 100%;
}

.request-card--sandbox .rc-top {
  flex-wrap: wrap;
}

.sandbox-side-note {
  font-size: 0.875rem;
  color: var(--muted);
}

.sandbox-foot {
  grid-column: 1 / -1;
  width: auto;
  margin: 0;
}

/* --------------------------------------------------------------------------
   Rulebook: the practice's rules, editable, with the reply they produce
   -------------------------------------------------------------------------- */

.rulebook {
  background: var(--surface);
}

.rulebook-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: start;
  gap: clamp(2.5rem, 1rem + 4vw, 5rem);
}

.rulebook-copy {
  display: grid;
  justify-items: start;
  gap: 1.25rem;
}

.rulebook-copy > p:not(.eyebrow):not(.section-lede) {
  color: var(--ink-2);
}

.rulebook-note {
  max-width: 34rem;
  padding-left: 1rem;
  border-left: 3px solid var(--honey);
  font-size: var(--step-small);
  color: var(--muted);
}

.rulebook-stage {
  display: grid;
  gap: 1.25rem;
}

.rb-group {
  display: grid;
  grid-template-columns: 9rem minmax(0, 1fr);
  align-items: center;
  gap: 0.6rem 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}

.rb-label {
  font-size: 0.9rem;
  color: var(--muted);
}

.rb-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.rb-options label {
  position: relative;
}

/* The box is invisible; the pill beside it shows its state. */
.rb-options input {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.rb-options span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 0.75rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--muted);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.rb-options input:checked + span {
  border-color: var(--c-ink);
  background: var(--c-ink);
  color: #ffffff;
}

.rb-options input:focus-visible + span {
  outline: 2px solid var(--c-focus);
  outline-offset: 2px;
}

.rb-group select {
  min-height: 38px;
  padding: 0 0.75rem;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
}

.rb-static {
  margin-top: 0.25rem;
}

.rb-static > div:last-child {
  border-bottom: 0;
}

.rulebook-reply .mt-maya.is-fresh {
  animation: bubble-in 0.4s var(--ease-out);
}

.rulebook-quiet {
  margin-top: 0.8rem;
  font-size: 0.8125rem;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Priorities: the owner's choice, and what each side sees
   -------------------------------------------------------------------------- */

.priorities {
  background: var(--surface);
}

.desk-chapter {
  background: var(--paper);
}

.focus-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-bottom: clamp(2rem, 1.5rem + 2vw, 3rem);
}

.focus-tabs-label {
  font-size: var(--step-small);
  font-weight: 600;
  color: var(--muted);
}

.focus-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.focus-tab {
  min-height: 44px;
  padding: 0 1.1rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  font-weight: 650;
  color: var(--ink-2);
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.focus-tab:hover {
  border-color: var(--c-ink);
}

.focus-tab[aria-selected="true"] {
  border-color: var(--c-ink);
  background: var(--c-ink);
  color: #ffffff;
}

.focus-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 1.5rem clamp(2rem, 1rem + 3vw, 4rem);
}

/* Without JavaScript every panel shows, stacked. */
html:not(.js) .focus-panel + .focus-panel {
  margin-top: 4rem;
}

.js .focus-panel:not([hidden]) {
  animation: panel-in 0.55s var(--ease-out);
}

.focus-panel:focus-visible {
  outline-offset: 12px;
}

.focus-copy {
  display: grid;
  justify-items: start;
  gap: 1.25rem;
}

.focus-copy > p:not(.vignette):not(.plan-tag) {
  max-width: 34rem;
  color: var(--ink-2);
}

.focus-example {
  margin: 0;
}

.focus-view .ui-label {
  margin-bottom: 0.9rem;
}

.focus-desk .inbox-row:last-child {
  padding-bottom: 0.2rem;
}

/* Figures: label, value in the text sans, note. Never the display serif. */
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  padding-top: 0.25rem;
}

.stat {
  display: grid;
  align-content: start;
  gap: 0.3rem;
}

.stat-label {
  font-size: 0.8125rem;
  line-height: 1.3;
  color: var(--muted);
}

.stat-value {
  font-family: var(--font-body);
  font-size: clamp(1.75rem, 1.4rem + 1vw, 2.25rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.stat-note {
  font-size: 0.75rem;
  color: var(--muted);
}

.dash-link {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 1.25rem;
  margin-top: clamp(2rem, 1.5rem + 2vw, 3rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.dash-link span {
  font-size: var(--step-small);
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   The story: chapter times, the story bar, device frames, the mini desk
   -------------------------------------------------------------------------- */

.chapter-time {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.chapter-time::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--honey);
}

/* Six dots down the right edge; the current chapter lights up and names itself. */
.story-bar {
  position: fixed;
  z-index: 20;
  top: 50%;
  right: 18px;
  display: grid;
  gap: 14px;
  padding: 12px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-sm);
  transform: translateY(-50%);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.story-bar a {
  position: relative;
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--c-line-strong);
  transition: background 0.2s ease, transform 0.2s ease;
}

.story-bar a[aria-current="true"] {
  background: var(--honey);
  transform: scale(1.35);
}

.story-bar a::after {
  content: attr(data-label);
  position: absolute;
  top: 50%;
  right: 22px;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  background: var(--c-ink);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(-50%);
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.story-bar a:hover::after,
.story-bar a:focus-visible::after {
  opacity: 1;
}

/* A laptop-ish frame around a real screenshot of the example. */
.device {
  position: relative;
  margin: 0;
  padding: 10px 10px 16px;
  border-radius: 18px;
  background: linear-gradient(150deg, #2c3837 0%, #0b1110 38%, #1a2322 100%);
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.09),
    var(--shadow-lg);
}

.device img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  background: #ffffff;
}

.device::after {
  content: "";
  position: absolute;
  bottom: 6px;
  left: 50%;
  width: 60px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.14);
  transform: translateX(-50%);
}

.chapter-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  align-items: center;
  gap: clamp(2rem, 1rem + 3vw, 4rem);
}

.chapter-copy {
  display: grid;
  justify-items: start;
  gap: 1.25rem;
}

.chapter-copy > p:not(.eyebrow):not(.section-lede) {
  color: var(--ink-2);
}

.chapter-cta {
  display: grid;
  justify-items: center;
  gap: 1.1rem;
}

/* The frame takes the column's full width, so it holds its shape before the image loads. */
.chapter-cta .device {
  width: 100%;
}

.chapter-cta .btn {
  min-width: 16rem;
}

.chapter-cta--owner {
  max-width: 920px;
  margin: clamp(2.5rem, 2rem + 2vw, 3.5rem) auto 0;
}

.chapter-foot {
  font-size: 0.8125rem;
  color: var(--muted);
  text-align: center;
}

.closing-points a {
  color: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Maria's request, as the desk sees it, with one button that matters. */
.mini-desk {
  display: grid;
  gap: 0.8rem;
}

.mini-desk-ask {
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--ink-2);
}

.mini-desk-proposal {
  display: grid;
  gap: 0.15rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--honey-soft);
}

.mini-desk-proposal .ui-label {
  margin: 0;
  color: var(--honey-ink);
}

.mini-desk-proposal b {
  font-size: 1.125rem;
  font-weight: 650;
}

.mini-desk-proposal span {
  font-size: 0.85rem;
  color: var(--ink-2);
}

.mini-desk-actions {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.5rem;
}

.mini-desk-actions .btn {
  min-height: 46px;
  padding-inline: 1rem;
}

.mini-desk-actions .btn-outline {
  pointer-events: none;
  opacity: 0.75;
}

.mini-desk-status {
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  background: var(--ok-soft);
  color: var(--ok);
  font-size: 0.9rem;
  font-weight: 600;
}

.mini-desk-again {
  justify-self: start;
}

/* The owner chapter: copy and example side by side, the figures across the bottom. */
.focus-panel .focus-owner {
  grid-column: 1 / -1;
}

/* --------------------------------------------------------------------------
   Report card: the day-30 numbers, as an example
   -------------------------------------------------------------------------- */

.report-card {
  margin-bottom: clamp(2.5rem, 2rem + 2vw, 3.5rem);
}

.report-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
  padding-top: 1.1rem;
}

.report-foot {
  margin-top: 1.1rem;
  padding-top: 0.95rem;
  border-top: 1px solid var(--line);
  font-size: 0.8125rem;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Trust: data, schedule, software
   -------------------------------------------------------------------------- */

.trust {
  background: var(--paper);
}

.trust .value-grid {
  margin-bottom: clamp(2.5rem, 2rem + 2vw, 3.5rem);
}

.trust .promise {
  background: var(--surface);
}

.trust-pms {
  margin-top: clamp(2.5rem, 2rem + 2vw, 3.5rem);
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

/* --------------------------------------------------------------------------
   Offer: the free month
   -------------------------------------------------------------------------- */

.offer {
  background:
    radial-gradient(800px 400px at 92% 0%, rgba(242, 180, 90, 0.09), transparent 65%),
    var(--night-900);
}

.offer-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 2rem;
}

.offer-actions .assurances {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

/* --------------------------------------------------------------------------
   Founder
   -------------------------------------------------------------------------- */

.founder {
  border-bottom: 1px solid var(--c-line);
}

.founder-grid {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: clamp(1.25rem, 1rem + 2vw, 2.5rem);
  max-width: 54rem;
}

.founder-mark,
.founder-photo {
  width: clamp(72px, 60px + 3vw, 104px);
  aspect-ratio: 1;
  border-radius: 50%;
}

.founder-mark {
  display: grid;
  place-items: center;
  background: var(--night-900);
  color: var(--honey);
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 1.3rem + 1vw, 2.2rem);
  letter-spacing: 0.02em;
}

.founder-photo {
  object-fit: cover;
}

.founder-copy {
  display: grid;
  justify-items: start;
  gap: 0.9rem;
}

.founder-copy h2 {
  font-size: clamp(1.9rem, 1.5rem + 1.6vw, 2.6rem);
}

.founder-note {
  max-width: 38rem;
  color: var(--ink-2);
}

/* --------------------------------------------------------------------------
   Segments
   -------------------------------------------------------------------------- */

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

.segment {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: clamp(1.6rem, 1.25rem + 1.2vw, 2.25rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  transition:
    transform 0.3s var(--ease-out),
    box-shadow 0.3s var(--ease-out),
    border-color 0.3s ease;
}

.segment:hover {
  transform: translateY(-3px);
  border-color: transparent;
  box-shadow: var(--shadow);
}

.segment--dso {
  border-color: transparent;
  background: var(--paper);
}

.segment .segment-size {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: lining-nums;
}

.segment .segment-size span {
  font-family: var(--font-body);
  font-size: var(--step-label);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.segment h3 {
  margin-top: 0.4rem;
  font-size: 1.25rem;
}

.segment p {
  font-size: var(--step-small);
  color: var(--ink-2);
}

.segment .link-arrow {
  margin-top: auto;
  padding-top: 0.5rem;
}

/* --------------------------------------------------------------------------
   Pricing
   -------------------------------------------------------------------------- */

.pricing {
  background: var(--paper);
}

.price-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  max-width: 1000px;
  margin-inline: auto;
}

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  padding: clamp(1.75rem, 1.25rem + 2vw, 2.75rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.price-card h3 {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1;
}

.price-for {
  margin-top: 0.6rem;
  font-size: var(--step-small);
  color: var(--muted);
}

.price {
  display: flex;
  align-items: flex-end;
  gap: 0.75rem;
}

.price-amount {
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 2.7rem + 2.6vw, 4.5rem);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.04em;
  font-variant-numeric: lining-nums;
}

.price-unit {
  padding-bottom: 0.3rem;
  font-size: 0.875rem;
  line-height: 1.3;
  color: var(--muted);
}

.price-features {
  display: grid;
  gap: 0.7rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}

.price-features li {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: start;
  gap: 0.7rem;
  font-size: var(--step-small);
  line-height: 1.5;
  color: var(--ink-2);
}

.price-features li::before {
  content: "";
  width: 20px;
  height: 20px;
  margin-top: 1px;
  background: var(--check) center / contain no-repeat;
}

.price-features li.price-includes {
  display: block;
  font-weight: 700;
  color: var(--ink);
}

.price-features li.price-includes::before {
  content: none;
}

.price-card--featured {
  border-color: var(--night-900);
  background: var(--night-900);
  box-shadow: var(--shadow-lg);
}

.price-free {
  align-self: flex-start;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: var(--honey-soft);
  color: var(--honey-ink);
  font-size: var(--step-label);
  font-weight: 700;
}

.price-badge {
  position: absolute;
  top: -14px;
  left: clamp(1.75rem, 1.25rem + 2vw, 2.75rem);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: var(--honey);
  color: var(--night-900);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.price-notes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem 2.5rem;
  max-width: 1000px;
  margin: clamp(2.5rem, 2rem + 2vw, 3.5rem) auto 0;
  padding-top: 2rem;
  border-top: 1px solid var(--line-strong);
}

.price-note h3 {
  margin-bottom: 0.35rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0;
}

.price-note p {
  font-size: var(--step-small);
  color: var(--ink-2);
}

.price-note a {
  font-weight: 600;
  color: var(--ink);
}

.fine-print {
  max-width: 1000px;
  margin: 2rem auto 0;
  font-size: 0.8125rem;
  line-height: 1.6;
  text-align: center;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */

.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: start;
  gap: clamp(2rem, 1rem + 4vw, 5rem);
}

.faq-head {
  position: sticky;
  top: calc(var(--nav-h) + 2rem);
  display: grid;
  justify-items: start;
  gap: 1rem;
}

.faq-head > p:not(.eyebrow) {
  max-width: 24rem;
  color: var(--muted);
}

.faq-head .btn {
  margin-top: 0.5rem;
}

.faq-list {
  border-top: 1px solid var(--line-strong);
}

.faq-item {
  border-bottom: 1px solid var(--line-strong);
}

.faq-item summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 30px;
  align-items: center;
  gap: 1.25rem;
  padding: 1.35rem 0;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.4;
  list-style: none;
  cursor: pointer;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "";
  width: 30px;
  height: 30px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background:
    linear-gradient(var(--ink), var(--ink)) center / 12px 1.5px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 1.5px 12px no-repeat;
  transition: transform 0.3s var(--ease-out), background-color 0.3s ease, border-color 0.3s ease;
}

.faq-item summary:hover::after {
  border-color: var(--ink);
}

.faq-item[open] summary::after {
  border-color: var(--c-ink);
  background:
    linear-gradient(#ffffff, #ffffff) center / 12px 1.5px no-repeat,
    linear-gradient(#ffffff, #ffffff) center / 1.5px 12px no-repeat,
    var(--c-ink);
  transform: rotate(45deg);
}

.faq-answer {
  max-width: 42rem;
  padding: 0 3.25rem 1.6rem 0;
  color: var(--ink-2);
}

@supports (interpolate-size: allow-keywords) {
  .faq-item {
    interpolate-size: allow-keywords;
  }

  .faq-item::details-content {
    height: 0;
    overflow: clip;
    transition:
      height 0.35s var(--ease-out),
      content-visibility 0.35s allow-discrete;
  }

  .faq-item[open]::details-content {
    height: auto;
  }
}

/* --------------------------------------------------------------------------
   Closing section and forms
   -------------------------------------------------------------------------- */

.closing {
  padding-block: var(--section-y);
  background:
    radial-gradient(760px 520px at 88% 12%, rgba(242, 180, 90, 0.14), transparent 62%),
    var(--night-900);
}

.closing-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(2.5rem, 1rem + 5vw, 6rem);
}

.closing h2 {
  margin-top: 1rem;
  font-size: clamp(2.4rem, 1.6rem + 3vw, 4rem);
  line-height: 1.03;
}

.closing-lede {
  max-width: 30rem;
  margin-top: 1.25rem;
  font-size: var(--step-lede);
  color: var(--muted);
}

.closing-points {
  display: grid;
  gap: 0.8rem;
  margin-top: 2.25rem;
}

.closing-points li {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 0.75rem;
  color: var(--ink-2);
}

.closing-points li::before {
  content: "";
  width: 20px;
  height: 20px;
  margin-top: 3px;
  background: var(--check) center / contain no-repeat;
}

.form-card {
  padding: clamp(1.5rem, 1rem + 2vw, 2.25rem);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}

.form-card-title {
  margin-bottom: 1.25rem;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.15;
}

.lead-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.field {
  display: grid;
  align-content: start;
  gap: 0.4rem;
}

.field--full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
}

.field .optional {
  font-weight: 400;
  color: var(--muted);
}

.field input,
.field select {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 2.5rem;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%235b6b66' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 0.95rem center / 12px 8px no-repeat;
}

.field input:hover,
.field select:hover {
  border-color: #a9b6b0;
}

.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--c-ink);
  box-shadow: 0 0 0 4px rgba(19, 33, 31, 0.1);
}

.field [aria-invalid="true"] {
  border-color: var(--alert);
}

.field [aria-invalid="true"]:focus {
  box-shadow: 0 0 0 4px rgba(178, 58, 46, 0.14);
}

.field-error {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--alert);
}

.lead-form .btn {
  grid-column: 1 / -1;
  margin-top: 0.35rem;
}

.form-status {
  grid-column: 1 / -1;
  padding: 0.75rem 0.95rem;
  border-radius: 10px;
  background: var(--alert-soft);
  color: var(--alert);
  font-size: 0.875rem;
  font-weight: 500;
}

.form-consent {
  grid-column: 1 / -1;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--muted);
}

/* Honeypot: invisible to people, irresistible to bots. */
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-success {
  display: grid;
  justify-items: start;
  gap: 0.75rem;
  padding: 0.5rem 0;
}

.form-success:focus {
  outline: none;
}

.success-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--ok-soft);
  color: var(--ok);
}

.success-mark::before {
  content: "";
  width: 22px;
  height: 22px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2.5 7.3l2.9 2.9 6.1-6.4' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2.5 7.3l2.9 2.9 6.1-6.4' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.form-success h3 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 500;
  letter-spacing: -0.015em;
}

.form-success p {
  color: var(--ink-2);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  padding: clamp(3.5rem, 2.5rem + 3vw, 5rem) 0 2rem;
  background: var(--night-950);
}

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

.footer-brand p {
  max-width: 22rem;
  margin-top: 1rem;
  font-size: var(--step-small);
  color: var(--muted);
}

.footer-title {
  margin-bottom: 1rem;
  font-family: var(--font-body);
  font-size: var(--step-label);
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--ink);
}

.footer-col ul {
  display: grid;
  gap: 0.6rem;
}

.footer-col a {
  font-size: var(--step-small);
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--ink);
}

.footer-base {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  margin-top: clamp(2.5rem, 2rem + 2vw, 3.5rem);
  padding-top: 1.5rem;
  font-size: var(--step-label);
  color: var(--muted);
}

/* The rule spans the content width, not the padded container. */
.footer-base::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--gutter);
  right: var(--gutter);
  height: 1px;
  background: var(--line);
}

/* --------------------------------------------------------------------------
   Mobile CTA bar
   -------------------------------------------------------------------------- */

.mobile-cta {
  display: none;
}

/* --------------------------------------------------------------------------
   Dialogs
   -------------------------------------------------------------------------- */

.dialog {
  width: min(580px, calc(100% - 2rem));
  max-height: calc(100dvh - 2rem);
  padding: 0;
  border: 0;
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-lg);
  overflow: auto;
  overscroll-behavior: contain;
}

.dialog::backdrop {
  background: rgba(8, 17, 16, 0.64);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.dialog[open] {
  animation: dialog-in 0.4s var(--ease-out);
}

.dialog[open]::backdrop {
  animation: fade-in 0.3s ease;
}

.dialog-body {
  position: relative;
  padding: clamp(1.5rem, 1rem + 2vw, 2.25rem);
}

.dialog-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  font-size: 1.5rem;
  line-height: 1;
  transition: background-color 0.2s ease;
}

.dialog-close:hover {
  background: var(--c-line);
}

.dialog-head {
  display: grid;
  gap: 0.6rem;
  margin-bottom: 1.6rem;
  padding-right: 2.5rem;
}

.dialog-head h2 {
  font-size: clamp(1.75rem, 1.4rem + 1.3vw, 2.3rem);
}

.dialog-head > p:last-child {
  color: var(--muted);
}

.promo {
  margin-top: 1.5rem;
  padding: 1rem 1.15rem;
  border-radius: var(--radius-sm);
  background: var(--honey-soft);
  color: var(--c-ink);
  font-size: 0.9rem;
}

.promo-title {
  font-weight: 700;
}

.promo-terms {
  display: grid;
  gap: 0.15rem;
  margin-top: 0.5rem;
  font-size: 0.75rem;
}

.promo-terms a {
  color: var(--honey-ink);
}

.dialog--video {
  width: min(980px, calc(100% - 2rem));
  background: #000000;
}

.dialog--video .dialog-body {
  padding: 3.4rem 0.75rem 0.75rem;
}

.dialog--video .dialog-close {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.dialog--video .dialog-close:hover {
  background: rgba(255, 255, 255, 0.24);
}

/* The Drive player is shifted up to hide its toolbar; the blocker covers its pop-out button. */
.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 12px;
  background: #000000;
}

.video-frame iframe {
  position: absolute;
  top: -60px;
  left: 0;
  width: 100%;
  height: calc(100% + 60px);
  border: 0;
}

.video-popout-blocker {
  position: absolute;
  z-index: 2;
  top: 0;
  right: 0;
  width: 100px;
  height: 100px;
}

/* --------------------------------------------------------------------------
   Scroll reveal (only armed by script.js when motion is allowed)
   -------------------------------------------------------------------------- */

.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.8s var(--ease-out),
    transform 0.8s var(--ease-out);
  transition-delay: var(--d, 0ms);
}

.reveal-ready [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* --------------------------------------------------------------------------
   Sub-pages
   -------------------------------------------------------------------------- */

.page-head {
  padding: calc(var(--nav-h) + clamp(3rem, 2rem + 4vw, 6rem)) 0 clamp(3rem, 2rem + 3vw, 5rem);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.page-head h1 {
  max-width: 18ch;
  margin-top: 1rem;
  font-size: clamp(2.5rem, 1.6rem + 3.4vw, 4.25rem);
  line-height: 1.03;
}

.page-lede {
  max-width: 38rem;
  margin-top: 1.25rem;
  font-size: var(--step-lede);
  color: var(--muted);
}

.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
}

.value-grid li {
  display: grid;
  align-content: start;
  gap: 0.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line-strong);
}

.value-grid h3 {
  font-size: 1.125rem;
}

.value-grid p {
  font-size: var(--step-small);
  color: var(--muted);
}

.integrations {
  background: var(--paper);
}

.pms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1rem;
}

.pms-card {
  display: grid;
  align-content: start;
  gap: 0.35rem;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition:
    transform 0.3s var(--ease-out),
    box-shadow 0.3s var(--ease-out);
}

.pms-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.pms-name {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.pms-kind {
  font-size: 0.875rem;
  color: var(--muted);
}

.pms-card--ask {
  border-style: dashed;
  border-color: var(--line-strong);
  background: transparent;
}

.pms-card--ask .link-arrow {
  margin-top: 0.25rem;
  font-size: 0.9375rem;
}

.cta-band {
  padding-block: clamp(4rem, 3rem + 4vw, 6.5rem);
  background:
    radial-gradient(700px 400px at 50% 0%, rgba(242, 180, 90, 0.13), transparent 65%),
    var(--night-900);
  text-align: center;
}

.cta-band-inner {
  display: grid;
  justify-items: center;
  gap: 1.25rem;
}

.cta-band h2 {
  max-width: 18ch;
  font-size: clamp(2.2rem, 1.6rem + 2.6vw, 3.5rem);
}

.cta-band p {
  max-width: 32rem;
  font-size: var(--step-lede);
  color: var(--muted);
}

.cta-band .btn {
  margin-top: 0.75rem;
}

/* Login */

.login-page {
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 2.5rem var(--gutter);
  background:
    radial-gradient(700px 420px at 50% -10%, rgba(242, 180, 90, 0.16), transparent 65%),
    var(--paper);
}

.login-shell {
  display: grid;
  justify-items: center;
  gap: 1.75rem;
  width: 100%;
  max-width: 440px;
}

.login-shell .wordmark {
  font-size: 2rem;
}

.login-card {
  width: 100%;
  padding: clamp(1.75rem, 1.25rem + 2vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.login-card h1 {
  font-size: 2.25rem;
  text-align: center;
}

.login-subtext {
  margin: 0.4rem 0 1.75rem;
  text-align: center;
  color: var(--muted);
}

.login-form {
  display: grid;
  gap: 1.1rem;
}

.input-wrap {
  position: relative;
}

.input-wrap input {
  padding-right: 4.75rem;
}

.show-password {
  position: absolute;
  top: 50%;
  right: 0.45rem;
  padding: 0.4rem 0.65rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 600;
  transform: translateY(-50%);
}

.show-password:hover {
  background: var(--paper);
}

.login-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem 1rem;
  font-size: 0.9rem;
}

.login-row a {
  font-weight: 600;
  color: var(--ink);
}

.checkbox {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ink-2);
}

.checkbox input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--c-ink);
}

.divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: var(--step-label);
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.login-alt {
  display: grid;
  gap: 0.6rem;
}

.login-passkey {
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  color: var(--ink);
}

.login-foot {
  font-size: var(--step-label);
  text-align: center;
  color: var(--muted);
}

/* Legal */

.legal-content {
  max-width: calc(46rem + 2 * var(--gutter));
  padding: calc(var(--nav-h) + clamp(2.5rem, 2rem + 3vw, 4.5rem)) var(--gutter) var(--section-y);
}

.legal-content h1 {
  margin-bottom: 1.5rem;
  font-size: clamp(2.2rem, 1.6rem + 2.4vw, 3.25rem);
}

.legal-content h3 {
  margin: 2.5rem 0 0.75rem;
  font-size: 1.25rem;
}

.legal-content p {
  margin-bottom: 1.1rem;
  color: var(--ink-2);
}

.legal-content ul {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 1.25rem;
  padding-left: 1.4rem;
  list-style: disc;
  color: var(--ink-2);
}

.legal-content a {
  color: var(--ink);
  text-decoration: underline;
}

/* A form's success heading (SMS opt-in) keeps its own size, not the legal h3's. */
.legal-content .form-success h3 {
  margin: 0;
  font-size: 1.75rem;
}

/* --------------------------------------------------------------------------
   Keyframes
   -------------------------------------------------------------------------- */

@keyframes rise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}

@keyframes bubble-in {
  from { opacity: 0; transform: translateY(8px) scale(0.96); }
  to { opacity: 1; transform: none; }
}

@keyframes typing {
  0%, 60%, 100% { opacity: 0.35; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-2px); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

@keyframes approve-pop {
  0% { transform: scale(1); }
  35% { transform: scale(1.035); }
  100% { transform: scale(1); }
}

@keyframes panel-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

@keyframes dialog-in {
  from { opacity: 0; transform: translateY(18px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

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

@keyframes ring {
  from { opacity: 0.9; transform: scale(1); }
  to { opacity: 0; transform: scale(1.45); }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1259px) {
  .story-bar {
    display: none;
  }
}

@media (max-width: 1099px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 3.5rem;
  }

  .hero-copy {
    max-width: 40rem;
  }

  .hero-visual {
    justify-content: center;
  }

  .hero-visual::before {
    right: 50%;
    transform: translate(50%, -50%);
  }

  /* Shift the phone right by half the card's reach so the pair stays centered. */
  .demo {
    left: 123px;
  }

  .demo-foot {
    margin-inline: auto;
  }

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

  .faq-head {
    position: static;
  }

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

  .footer-brand {
    grid-column: 1 / -1;
  }

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

@media (max-width: 960px) {
  .nav-toggle {
    display: inline-block;
  }

  .nav-login {
    display: none;
  }

  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: grid;
    gap: 0;
    padding: 0.25rem var(--gutter) 1.25rem;
    border-bottom: 1px solid var(--c-line);
    background: var(--surface);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition:
      opacity 0.25s ease,
      transform 0.3s var(--ease-out),
      visibility 0s linear 0.3s;
  }

  .site-nav.is-open .nav-menu {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition:
      opacity 0.25s ease,
      transform 0.3s var(--ease-out);
  }

  .nav-menu a {
    padding: 0.95rem 0;
    border-bottom: 1px solid var(--c-line);
    font-size: 1.0625rem;
    color: var(--c-ink);
  }

  .nav-menu a:last-child {
    border-bottom: 0;
  }

  .nav-menu-login {
    display: block;
  }

  .focus-panel,
  .rulebook-grid,
  .chapter-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .section-head--split {
    grid-template-columns: minmax(0, 1fr);
  }

  .flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.25rem 1.75rem;
  }

  .flow::before {
    display: none;
  }

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

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

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

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

  .tryit-stage {
    justify-self: center;
  }

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

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

  .pms-right {
    justify-items: start;
  }
}

@media (max-width: 760px) {
  :root {
    --nav-h: 64px;
  }

  .site-nav.is-condensed {
    height: 58px;
  }

  .nav-actions {
    gap: 0.5rem;
  }

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

  .demo {
    left: 0;
    width: min(100%, 300px);
  }

  .phone {
    width: 280px;
    height: 560px;
    margin-inline: auto;
  }

  /* On narrow screens the request card tucks under the phone instead of beside it. */
  .request-card {
    position: relative;
    bottom: auto;
    left: auto;
    width: min(100%, 300px);
    margin: -64px auto 0;
  }

  .demo-foot {
    width: 100%;
  }

  /* One afternoon at a time on a phone, chosen with the tabs. */
  .twice-tabs {
    display: grid;
  }

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

  .js .twice-player[data-show="today"] .twice-maya,
  .js .twice-player[data-show="maya"] .twice-today {
    display: none;
  }

  .twice-controls {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .twice-controls .demo-replay {
    grid-column: 1 / -1;
    justify-self: center;
  }

  .tl-event {
    grid-template-columns: 3.9rem minmax(0, 1fr);
  }

  .tryit-stage {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    width: 100%;
  }

  .phone--sandbox {
    width: 280px;
    height: 560px;
  }

  .sandbox-side {
    width: min(100%, 300px);
    min-height: 0;
  }

  /* The hero tucks its card under the phone; these cards stay in flow. */
  .request-card--inline,
  .request-card--sandbox {
    width: 100%;
    margin: 0;
  }

  .inbox-row {
    grid-template-columns: 3.9rem minmax(0, 1fr);
  }

  .inbox-row .chip {
    grid-column: 2;
    justify-self: start;
  }

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

  .price-card--featured {
    margin-top: 0.75rem;
  }

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

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

  .faq-answer {
    padding-right: 0;
  }

  .mobile-cta {
    position: fixed;
    z-index: 40;
    right: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));
    left: 12px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.5rem;
    padding: 0.45rem;
    border-radius: 999px;
    background: rgba(15, 31, 30, 0.94);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-lg);
    transform: translateY(calc(100% + 24px));
    transition: transform 0.45s var(--ease-out);
  }

  .mobile-cta.is-visible {
    transform: none;
  }

  .mobile-cta .btn {
    min-height: 44px;
  }

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

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

  .cost-field {
    grid-template-columns: minmax(0, 1fr) 6.5rem;
  }

  .mini-desk-actions {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .stat-row {
    grid-template-columns: repeat(auto-fit, minmax(7rem, 1fr));
  }

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

  .hero-actions .btn {
    flex: 1 1 auto;
  }

  .nav-actions .btn-sm {
    padding: 0 0.9rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
