/* FamHuddle pilot landing. Colours, fonts, radii and the one brown CTA are DESIGN.md's; the
   rhythm (cream ground, centred single column, 52-66px display at line-height ~1, 18px body on a
   640px measure, hairlines over shadows, pill eyebrow, 64px+ section gaps, FAQ accordion, stat
   block, cell grid) is the Clockwise reference's. */

@font-face {
  font-family: "Cabinet Grotesk";
  src: url("assets/fonts/cabinet-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Cabinet Grotesk";
  src: url("assets/fonts/cabinet-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Cabinet Grotesk";
  src: url("assets/fonts/cabinet-800.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
}

:root {
  color-scheme: light;
  --bg: #f0f0e4;
  --surface: #fcfcfc;
  --surface-border: #e2decb;
  --surface-alt: #f5f2e8;
  --rule: #e6e1d2;
  --text: #403028;
  --muted: #6b6154;
  --subtle: #746b60;
  --primary: #805840;
  --primary-hover: #6d4a35;
  --on-primary: #fcfcfc;
  --action: #d8c0a8;
  --action-border: #a78256;
  --accent: #809050;
  --success: #0c534b;
  --success-surface: #d7e7e2;
  --warning: #7a5200;
  --on-warning: #fff4dd;
  --warning-surface: #fbeed3;
  --warning-border: #e0cda0;
  --dashed: #978871;
  --child-1: #546f96;
  --child-2: #883a61;
  --display: "Cabinet Grotesk", "Avenir Next", "Helvetica Neue", system-ui, sans-serif;
  --body: "IBM Plex Sans", "Helvetica Neue", system-ui, sans-serif;
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --shadow: 0 1px 2px rgba(64, 48, 40, 0.06);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in: cubic-bezier(0.55, 0, 1, 0.45);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 18px/1.45 var(--body);
  letter-spacing: -0.01em;
  font-feature-settings: "tnum";
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img,
video {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
}
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  background: var(--surface);
  padding: 10px 14px;
  border-radius: var(--r-sm);
  border: 1px solid var(--surface-border);
}
.skip:focus {
  top: 12px;
}

.wrap {
  width: min(1200px, 100% - 40px);
  margin-inline: auto;
}
.measure {
  max-width: 640px;
  margin-inline: auto;
}
.center {
  text-align: center;
}

/* ---------- Type ---------- */
.display {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(42px, 7.2vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin: 0;
  text-wrap: balance;
}
.h2 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(36px, 5.2vw, 58px);
  line-height: 1;
  letter-spacing: -0.028em;
  margin: 0;
  text-wrap: balance;
}
.h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0;
}
.lede {
  font-size: 20px;
  line-height: 1.45;
  color: var(--muted);
  margin: 0;
  text-wrap: pretty;
}
.body {
  font-size: 18px;
  color: var(--text);
  margin: 0;
  text-wrap: pretty;
}
.meta {
  font-size: 14px;
  color: var(--subtle);
  margin: 0;
}
.label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--subtle);
}

/* ---------- Pills and buttons ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px dashed var(--dashed);
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  background: transparent;
}
.eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 22px;
  border-radius: var(--r-md);
  font: 600 16px/1 var(--body);
  letter-spacing: -0.005em;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition:
    background-color 200ms var(--ease-out),
    transform 200ms var(--ease-out),
    border-color 200ms;
}
.btn:active {
  transform: translateY(1px);
}
.btn-cta {
  background: var(--primary);
  color: var(--on-primary);
}
.btn-cta:hover {
  background: var(--primary-hover);
}
.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--action-border);
}
.btn-outline:hover {
  background: rgba(216, 192, 168, 0.28);
}
.btn svg {
  width: 18px;
  height: 18px;
}

.ghost-link {
  color: var(--text);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms;
}
.nav.scrolled {
  border-bottom-color: var(--surface-border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font: 800 22px/1 var(--display);
  letter-spacing: -0.02em;
  min-height: 44px;
}
.brand svg {
  width: 34px;
  height: 34px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-links a:not(.btn) {
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  padding: 12px 12px;
  border-radius: 10px;
}
.nav-links a:not(.btn):hover {
  color: var(--text);
}
.nav-links .btn {
  min-height: 44px;
  margin-left: 8px;
  font-size: 15px;
}
.menu-btn {
  display: none;
  min-width: 44px;
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid var(--surface-border);
  background: var(--surface);
  color: var(--text);
}
@media (max-width: 860px) {
  .nav-links {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--surface-border);
    padding: 8px 20px 20px;
    display: none;
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links a:not(.btn) {
    padding: 14px 4px;
    border-bottom: 1px solid var(--rule);
    border-radius: 0;
  }
  .nav-links .btn {
    margin: 14px 0 0;
  }
  .menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

/* ---------- Sections ---------- */
section {
  position: relative;
}
.section {
  padding-block: clamp(80px, 11vw, 140px);
}
.section-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
  margin-bottom: clamp(48px, 6vw, 72px);
}
.hairline {
  height: 1px;
  background: var(--surface-border);
  border: 0;
  margin: 0;
}
.hairline.wrap {
  margin-inline: auto;
}

/* ---------- Hero ---------- */
.hero {
  padding-top: clamp(56px, 8vw, 96px);
  padding-bottom: 40px;
  text-align: center;
}
.hero-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
}
.js .hero .display .w {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.35em);
  animation: rise 700ms var(--ease-out) forwards;
  animation-delay: calc(var(--i) * 45ms + 120ms);
}
.hero .lede {
  max-width: 620px;
  opacity: 0;
  animation: fade 700ms var(--ease-out) 600ms forwards;
}
.hero .eyebrow {
  opacity: 0;
  animation: fade 600ms var(--ease-out) 40ms forwards;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  opacity: 0;
  animation: fade 700ms var(--ease-out) 760ms forwards;
}
.platforms {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
  opacity: 0;
  animation: fade 700ms var(--ease-out) 900ms forwards;
  flex-wrap: wrap;
  justify-content: center;
}
.platforms span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.platforms svg {
  width: 16px;
  height: 16px;
}
@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes fade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* The film: the launch film, framed; message fragments orbit it and fly in on scroll. */
.film-zone {
  position: relative;
  margin-top: clamp(40px, 6vw, 72px);
  padding-bottom: 20px;
}
.film {
  position: relative;
  width: min(1040px, 100%);
  margin-inline: auto;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: #e8e4d4;
  border: 1px solid var(--surface-border);
  box-shadow:
    var(--shadow),
    0 30px 60px -30px rgba(64, 48, 40, 0.25);
  transform-origin: 50% 0;
  will-change: transform;
}
.film.vertical {
  width: min(420px, 100%);
  aspect-ratio: 9 / 16;
}
.film video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.film-controls {
  position: absolute;
  left: 16px;
  bottom: 16px;
  display: flex;
  gap: 8px;
}
.film-btn {
  min-width: 44px;
  height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(252, 252, 252, 0.5);
  background: rgba(64, 48, 40, 0.72);
  color: #fcfcfc;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 600 14px/1 var(--body);
  cursor: pointer;
}
.film-btn svg {
  width: 16px;
  height: 16px;
}
.film-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: rgba(252, 252, 252, 0.25);
}
.film-progress i {
  display: block;
  height: 100%;
  width: 0;
  background: #fcfcfc;
}
.film-note {
  margin-top: 14px;
}

.frag {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  box-shadow:
    var(--shadow),
    0 12px 24px -16px rgba(64, 48, 40, 0.35);
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.3;
  text-align: left;
  max-width: 260px;
  will-change: transform, opacity;
}
.frag .ic {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--surface-alt);
  color: var(--muted);
}
.frag .ic svg {
  width: 18px;
  height: 18px;
}
.frag b {
  display: block;
  font-weight: 600;
  font-size: 12px;
  color: var(--subtle);
  letter-spacing: 0.02em;
  margin-bottom: 2px;
}
.frag.f1 {
  left: -2%;
  top: 14%;
}
.frag.f2 {
  right: -3%;
  top: 8%;
}
.frag.f3 {
  left: 3%;
  bottom: 10%;
}
.frag.f4 {
  right: 1%;
  bottom: 18%;
}
.frag .float {
  animation: bob 6s ease-in-out infinite;
}
@media (max-width: 1260px) {
  .frag {
    display: none;
  }
}

/* ---------- Sources band (Clockwise "logo grid": plain cells on the cream) ---------- */
.sources {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--surface-border);
  border: 1px solid var(--surface-border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.source {
  background: var(--surface);
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 176px;
}
.source .ic {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--surface-alt);
  color: var(--text);
}
.source .ic svg {
  width: 20px;
  height: 20px;
}
.source h3 {
  margin: 0;
  font: 700 19.5px/1.2 var(--display);
  letter-spacing: -0.012em;
}
.source p {
  margin: 0;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.4;
}
.source q {
  font-style: normal;
  quotes: "\201C" "\201D";
}
@media (max-width: 900px) {
  .sources {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 520px) {
  .sources {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- Phone frames ---------- */
.phone {
  --w: 300px;
  position: relative;
  width: var(--w);
  aspect-ratio: 840 / 1826;
  border-radius: calc(var(--w) * 0.155);
  background: #1d1714;
  padding: calc(var(--w) * 0.032);
  box-shadow:
    0 40px 70px -40px rgba(64, 48, 40, 0.5),
    0 0 0 1px #3a2f29 inset;
  flex: none;
}
.phone .screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: calc(var(--w) * 0.125);
  overflow: hidden;
  background: var(--bg);
}
.phone .screen img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition:
    opacity 500ms var(--ease-out),
    transform 700ms var(--ease-out);
}
.phone .screen img.off {
  opacity: 0;
  transform: scale(1.02);
}
.statusbar {
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  top: 0;
  height: 6.9%;
  background: #f0f0e4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 9% 0 11%;
  font: 600 calc(var(--w) * 0.05) / 1 var(--body);
  color: #1d1714;
  letter-spacing: 0;
}
.statusbar .icons {
  display: flex;
  align-items: center;
  gap: calc(var(--w) * 0.015);
}
.statusbar .icons svg {
  width: calc(var(--w) * 0.055);
  height: calc(var(--w) * 0.055);
}
.statusbar .cam {
  position: absolute;
  left: 50%;
  top: 22%;
  transform: translateX(-50%);
  background: #0b0b0b;
}
.phone.ios .statusbar .cam {
  width: 34%;
  height: 58%;
  border-radius: 999px;
}
.phone.android {
  border-radius: calc(var(--w) * 0.11);
}
.phone.android .screen {
  border-radius: calc(var(--w) * 0.08);
}
.phone.android .statusbar {
  padding: 0 7% 0 7%;
  font-size: calc(var(--w) * 0.044);
  font-weight: 500;
}
.phone.android .statusbar .cam {
  width: calc(var(--w) * 0.05);
  height: calc(var(--w) * 0.05);
  border-radius: 50%;
  top: 26%;
}
.phone.android .gesture {
  position: absolute;
  z-index: 3;
  bottom: 1.2%;
  left: 50%;
  width: 34%;
  height: 4px;
  border-radius: 4px;
  background: #1d1714;
  transform: translateX(-50%);
  opacity: 0.8;
}
.phone.ios .gesture {
  position: absolute;
  z-index: 3;
  bottom: 1%;
  left: 50%;
  width: 36%;
  height: 5px;
  border-radius: 5px;
  background: #1d1714;
  transform: translateX(-50%);
}
.phone video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  /* The film is 9:16 and the screen is taller: show all of it, never crop its words. */
  object-fit: contain;
}
/* The bands above and below the film take its own edge colours, so it reads as full-screen. */
.dev.mid .screen {
  background: linear-gradient(#fdf6e2, #f7e7d1);
}

/* ---------- The story: a sticky phone, five steps ---------- */
.story {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.story-stage {
  position: sticky;
  top: 88px;
  height: calc(100vh - 110px);
  min-height: 560px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
}
.story-stage .phone {
  --w: min(330px, 42vh);
}
.seg {
  display: inline-flex;
  padding: 4px;
  gap: 4px;
  border: 1px solid var(--surface-border);
  border-radius: 999px;
  background: var(--surface);
}
.seg button {
  min-height: 40px;
  min-width: 104px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px dashed transparent;
  background: transparent;
  font: 600 14px/1 var(--body);
  color: var(--muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
.seg button svg {
  width: 15px;
  height: 15px;
}
.seg button[aria-pressed="true"] {
  background: var(--action);
  border-color: var(--action-border);
  border-style: solid;
  color: var(--text);
}
.story-steps {
  display: flex;
  flex-direction: column;
}
.step {
  min-height: 66vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  padding-block: 40px;
  opacity: 0.28;
  transition: opacity 500ms var(--ease-out);
}
.step.active {
  opacity: 1;
}
.step .num {
  font: 700 14px/1 var(--display);
  letter-spacing: 0.08em;
  color: var(--subtle);
  display: flex;
  align-items: center;
  gap: 12px;
}
.step .num::after {
  content: "";
  height: 1px;
  width: 64px;
  background: var(--surface-border);
}
.step h3 {
  font: 800 clamp(30px, 3.6vw, 44px)/1.02 var(--display);
  letter-spacing: -0.025em;
  margin: 0;
  text-wrap: balance;
}
.step p {
  margin: 0;
  font-size: 18px;
  color: var(--muted);
  max-width: 470px;
  text-wrap: pretty;
}
.step .mini {
  margin-top: 6px;
}
.step .phone-inline {
  display: none;
}
@media (max-width: 900px) {
  .story {
    grid-template-columns: minmax(0, 1fr);
  }
  .story-stage {
    display: none;
  }
  .step {
    min-height: 0;
    opacity: 1;
    padding-block: 36px;
    border-top: 1px solid var(--surface-border);
  }
  .step .phone-inline {
    display: block;
    margin: 12px auto 0;
  }
  .step .phone-inline .phone {
    --w: min(280px, 72vw);
  }
}

/* Small UI fragments built from the app's parts. */
.ui-card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  text-align: left;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 11px;
  border-radius: 999px;
  font: 600 12.5px/1 var(--body);
  white-space: nowrap;
}
.pill svg {
  width: 13px;
  height: 13px;
}
.pill.ok {
  background: var(--success-surface);
  color: var(--success);
}
.pill.open {
  border: 1px dashed var(--dashed);
  color: var(--muted);
}
.pill.need {
  background: var(--warning-surface);
  color: var(--warning);
}
.hollow {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px dashed var(--dashed);
  background: var(--surface);
  border-radius: var(--r-md);
  padding: 14px 16px;
  font-size: 15px;
  max-width: 420px;
}
.hollow small {
  display: block;
  color: var(--subtle);
  font-size: 13px;
}
.spinner {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--surface-border);
  border-top-color: var(--muted);
  animation: spin 900ms linear infinite;
  flex: none;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.excerpt {
  background: var(--surface-alt);
  border-radius: var(--r-sm);
  padding: 12px 14px;
  font-size: 15px;
  color: var(--muted);
  max-width: 440px;
}
.excerpt mark {
  background: var(--warning-surface);
  color: var(--warning);
  border-radius: 4px;
  padding: 0 3px;
}
.strike {
  text-decoration: line-through;
  color: var(--subtle);
}

/* ---------- Transformation: fragments settle into one card ---------- */
.merge {
  position: relative;
  height: 196px;
  max-width: 460px;
}
.merge .bit {
  position: absolute;
  left: 0;
  top: 0;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 12px;
  padding: 9px 12px;
  font-size: 13.5px;
  color: var(--muted);
  display: flex;
  gap: 8px;
  align-items: center;
  box-shadow: var(--shadow);
  white-space: nowrap;
  transition:
    transform 900ms var(--ease-out),
    opacity 500ms var(--ease-out);
}
.merge .bit svg {
  width: 15px;
  height: 15px;
  flex: none;
}
.merge .bit.b1 {
  transform: translate(0, 0) rotate(-3deg);
}
.merge .bit.b2 {
  transform: translate(210px, 24px) rotate(2deg);
}
.merge .bit.b3 {
  transform: translate(40px, 72px) rotate(1deg);
}
.merge .result {
  position: absolute;
  left: 0;
  right: 0;
  top: 30px;
  opacity: 0;
  transform: translateY(18px) scale(0.98);
  transition:
    opacity 600ms var(--ease-out) 450ms,
    transform 700ms var(--ease-out) 450ms;
}
.merge.go .bit {
  opacity: 0;
}
.merge.go .bit.b1 {
  transform: translate(40px, 50px) scale(0.8);
}
.merge.go .bit.b2 {
  transform: translate(160px, 50px) scale(0.8);
}
.merge.go .bit.b3 {
  transform: translate(100px, 50px) scale(0.8);
}
.merge.go .result {
  opacity: 1;
  transform: none;
}

/* ---------- Occurrence card (used by the try-it block and the story) ---------- */
.occ {
  width: 100%;
  max-width: 440px;
}
.occ-body {
  padding: 18px 18px 6px;
}
.occ-who {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}
.occ-who .d {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}
.occ-who b {
  font-weight: 600;
}
.occ-who span {
  color: var(--subtle);
}
.occ-title {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-top: 10px;
}
.occ-title h3 {
  margin: 0;
  font: 700 21px/1.15 var(--display);
  letter-spacing: -0.012em;
}
.occ-title .t {
  font: 700 21px/1 var(--display);
  letter-spacing: -0.015em;
  white-space: nowrap;
}
.row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  border-top: 1px solid var(--rule);
  font-size: 14.5px;
  color: var(--muted);
}
.row:first-of-type {
  border-top: 0;
}
.row svg.ri {
  width: 16px;
  height: 16px;
  flex: none;
  color: var(--subtle);
}
.row .sep {
  color: var(--dashed);
}
.times b {
  color: var(--text);
  font-weight: 500;
}
.drivers {
  gap: 8px;
  flex-wrap: wrap;
  padding-block: 8px;
}
.drv {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.drv .lbl {
  font-size: 12.5px;
  color: var(--subtle);
}
.circ {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font: 600 11.5px/1 var(--body);
}
.circ.self {
  background: var(--surface-alt);
  border: 1px solid var(--surface-border);
  color: var(--text);
}
.circ.ok {
  background: var(--success-surface);
  border: 1px solid #bcd7d0;
  color: var(--success);
}
.circ.asked {
  background: var(--surface-alt);
  border: 1px dashed var(--dashed);
  color: var(--muted);
}
.drv .nm {
  font-weight: 600;
  color: var(--text);
  font-size: 13.5px;
}
.drv .st {
  font-weight: 600;
  font-size: 12.5px;
}
.drv .st.ok {
  color: var(--success);
}
.drv .st.asked {
  color: var(--subtle);
  font-weight: 500;
}
.vdiv {
  width: 1px;
  height: 20px;
  background: var(--surface-border);
  margin: 0 4px;
}
.foot {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 48px;
  padding: 0 15px;
  background: var(--warning);
  color: var(--on-warning);
  font: 600 14px/1 var(--body);
  width: 100%;
  border: 0;
  text-align: left;
  cursor: pointer;
}
.foot svg {
  width: 17px;
  height: 17px;
  flex: none;
}
.foot .grow {
  flex: 1;
}
.occ.flash {
  animation: flash 1100ms var(--ease-out);
}
@keyframes flash {
  0% {
    box-shadow: 0 0 0 0 rgba(12, 83, 75, 0);
    border-color: var(--surface-border);
  }
  25% {
    box-shadow: 0 0 0 4px rgba(12, 83, 75, 0.18);
    border-color: var(--success);
  }
  100% {
    box-shadow: var(--shadow);
    border-color: var(--surface-border);
  }
}

/* ---------- Try it ---------- */
.try {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.try-card {
  display: flex;
  justify-content: center;
}
.controls {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--surface-border);
}
.stepper .txt b {
  display: block;
  font-weight: 600;
  font-size: 16px;
}
.stepper .txt span {
  font-size: 14px;
  color: var(--subtle);
}
.stepper .ctl {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid var(--action-border);
  border-radius: var(--r-md);
  padding: 3px;
  background: var(--surface);
}
.stepper .ctl button {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 22px;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.stepper .ctl button:hover {
  background: var(--surface-alt);
}
.stepper .ctl button:disabled {
  color: var(--surface-border);
  cursor: default;
  background: transparent;
}
.stepper .ctl output {
  min-width: 70px;
  text-align: center;
  font: 600 16px/1 var(--body);
}
.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.inline-actions .btn {
  min-height: 44px;
  font-size: 15px;
}
.checklist {
  display: none;
  border-top: 1px solid var(--rule);
  padding: 6px 0 8px;
}
.checklist.open {
  display: block;
}
.check {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  font-size: 15px;
  color: var(--text);
  cursor: pointer;
}
.check input {
  width: 20px;
  height: 20px;
  accent-color: var(--success);
  margin: 0;
}
.check input:checked + span {
  color: var(--subtle);
  text-decoration: line-through;
}
.pill-btn {
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  background: var(--text);
  color: var(--surface);
  border-radius: var(--r-md);
  padding: 0 8px 0 18px;
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  z-index: 80;
  transition:
    opacity 200ms var(--ease-out),
    transform 250ms var(--ease-out);
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
}
.toast button {
  min-height: 44px;
  padding: 0 14px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #f1dcc6;
  font: 600 15px/1 var(--body);
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}
@media (max-width: 900px) {
  .try {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- Feature cells ---------- */
.cells {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--surface-border);
  border-left: 1px solid var(--surface-border);
}
.cell {
  padding: 32px 28px 36px;
  border-right: 1px solid var(--surface-border);
  border-bottom: 1px solid var(--surface-border);
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  overflow: hidden;
}
.cell .ic {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  border: 1px solid var(--surface-border);
  background: var(--surface);
  display: grid;
  place-items: center;
}
.cell .ic svg {
  width: 22px;
  height: 22px;
}
.cell .ic svg path,
.cell .ic svg circle,
.cell .ic svg rect,
.cell .ic svg line,
.cell .ic svg polyline {
  stroke-dasharray: 80;
  stroke-dashoffset: 0;
}
.cell.in .ic svg * {
  animation: draw 1100ms var(--ease-out) both;
  animation-delay: calc(var(--d, 0) * 90ms + 150ms);
}
@keyframes draw {
  from {
    stroke-dashoffset: 80;
  }
  to {
    stroke-dashoffset: 0;
  }
}
.cell h3 {
  margin: 0;
  font: 700 22px/1.15 var(--display);
  letter-spacing: -0.015em;
}
.cell p {
  margin: 0;
  font-size: 16px;
  color: var(--muted);
  line-height: 1.45;
}
.cell .k {
  position: absolute;
  right: 22px;
  top: 26px;
  font: 700 13px/1 var(--display);
  color: var(--dashed);
  letter-spacing: 0.06em;
}
@media (max-width: 900px) {
  .cells {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .cells {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- Devices row ---------- */
.devices {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: clamp(16px, 4vw, 56px);
  perspective: 1600px;
}
.devices .phone {
  --w: clamp(180px, 22vw, 280px);
  transition: transform 900ms var(--ease-out);
}
.devices .dev {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.devices .dev .cap {
  font-size: 14px;
  color: var(--muted);
  display: inline-flex;
  gap: 7px;
  align-items: center;
}
.devices .dev .cap svg {
  width: 15px;
  height: 15px;
}
.devices .left .phone {
  transform: rotateY(14deg) translateY(20px);
}
.devices .right .phone {
  transform: rotateY(-14deg) translateY(20px);
}
.devices.in .left .phone,
.devices.in .right .phone {
  transform: rotateY(0) translateY(0);
}
.devices .mid .phone {
  --w: clamp(200px, 25vw, 320px);
}
.web-strip {
  margin-top: 44px;
  display: flex;
  justify-content: center;
}
@media (max-width: 700px) {
  .devices .left,
  .devices .right {
    display: none;
  }
}

/* ---------- Stats (Clockwise stat block) ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  text-align: center;
}
.stat .n {
  font: 800 clamp(56px, 8vw, 88px)/0.95 var(--display);
  letter-spacing: -0.035em;
}
.stat .l {
  margin-top: 10px;
  font-size: 16px;
  color: var(--muted);
}
@media (max-width: 640px) {
  .stats {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }
}

/* ---------- Pilot prose + offer list ---------- */
.prose p {
  margin: 0 0 22px;
  font-size: 18px;
  line-height: 1.55;
}
.prose p:last-child {
  margin-bottom: 0;
}
.offer {
  list-style: none;
  padding: 0;
  margin: 40px 0 0;
  border-top: 1px solid var(--surface-border);
}
.offer li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--surface-border);
  font-size: 17px;
}
.offer li svg {
  width: 20px;
  height: 20px;
  margin-top: 3px;
  color: var(--success);
}
.offer li b {
  font-weight: 600;
}
.offer li span {
  color: var(--muted);
}

/* ---------- Privacy ---------- */
.priv {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 48px;
}
.priv-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 16px;
  padding: 26px 0;
  border-top: 1px solid var(--surface-border);
}
.priv-row .ic {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  display: grid;
  place-items: center;
}
.priv-row .ic svg {
  width: 18px;
  height: 18px;
}
.priv-row h3 {
  margin: 0 0 6px;
  font: 700 20px/1.2 var(--display);
  letter-spacing: -0.012em;
}
.priv-row p {
  margin: 0;
  font-size: 16px;
  color: var(--muted);
}
@media (max-width: 760px) {
  .priv {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- FAQ (Clockwise accordion) ---------- */
.faq {
  border-top: 1px solid var(--surface-border);
}
.faq details {
  border-bottom: 1px solid var(--surface-border);
}
.faq summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 76px;
  padding: 18px 0;
  cursor: pointer;
  font: 700 19px/1.3 var(--display);
  letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq .plus {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid var(--text);
  display: grid;
  place-items: center;
  transition:
    transform 300ms var(--ease-out),
    background 200ms;
}
.faq .plus svg {
  width: 14px;
  height: 14px;
}
.faq details[open] .plus {
  transform: rotate(45deg);
  background: var(--surface);
}
.faq .ans {
  padding: 0 56px 26px 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}
.faq details[open] .ans {
  animation: fade 350ms var(--ease-out);
}

/* ---------- Join form ---------- */
.join {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: clamp(28px, 5vw, 64px);
  max-width: 760px;
  margin-inline: auto;
}
.join form {
  display: grid;
  gap: 26px;
  margin-top: 40px;
}
.field {
  display: grid;
  gap: 8px;
}
.field > label,
.field legend {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--subtle);
  padding: 0;
}
.field fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.two {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
}
@media (max-width: 620px) {
  .two {
    grid-template-columns: minmax(0, 1fr);
  }
}
.input {
  height: 52px;
  border-radius: var(--r-md);
  border: 1px solid var(--action-border);
  background: var(--surface);
  padding: 0 16px;
  font: 400 17px/1 var(--body);
  color: var(--text);
  width: 100%;
}
.input::placeholder {
  color: #9a8f82;
}
.input[aria-invalid="true"] {
  border-color: var(--warning);
  box-shadow: 0 0 0 1px var(--warning);
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  position: relative;
}
.chip input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  cursor: pointer;
}
.chip span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px dashed var(--dashed);
  font-size: 15px;
  font-weight: 500;
  transition:
    background 150ms,
    border-color 150ms;
}
.chip span svg {
  width: 14px;
  height: 14px;
  display: none;
}
.chip input:checked + span {
  background: var(--action);
  border: 1px solid var(--action-border);
}
.chip input:checked + span svg {
  display: block;
}
.chip input:focus-visible + span {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
.field > label.consent {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  font-size: 15px;
  color: var(--muted);
}
.consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 15px;
  color: var(--muted);
  cursor: pointer;
}
.consent input {
  width: 22px;
  height: 22px;
  margin: 1px 0 0;
  accent-color: var(--primary);
  flex: none;
}
.err {
  min-height: 20px;
  font-size: 14px;
  color: var(--warning);
  font-weight: 500;
}
.submit-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}
.submit-row .btn {
  min-width: 220px;
}
.done {
  display: none;
  text-align: center;
  padding: 24px 0 8px;
}
.done.show {
  display: block;
  animation: fade 500ms var(--ease-out);
}
.done .tick {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--success-surface);
  color: var(--success);
  display: grid;
  place-items: center;
}
.done .tick svg {
  width: 30px;
  height: 30px;
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
  animation: draw2 600ms var(--ease-out) 150ms forwards;
}
@keyframes draw2 {
  to {
    stroke-dashoffset: 0;
  }
}

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--surface-border);
  padding: 56px 0 40px;
}
.foot-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 28px;
  align-items: flex-start;
}
.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
}
.foot-links a {
  font-size: 15px;
  color: var(--muted);
  text-decoration: none;
  padding: 12px 10px;
}
.foot-links a:hover {
  color: var(--text);
  text-decoration: underline;
}
/* The slogan, one line under the footer's wordmark: the same words as the app and the film. */
.slogan {
  font-family: var(--display);
  font-weight: 700;
  font-size: 17px;
  color: var(--primary);
  margin: 10px 0 0;
}
.small {
  font-size: 13.5px;
  color: var(--subtle);
  margin: 6px 0 0;
}

/* ---------- Reveal on scroll ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 800ms var(--ease-out),
    transform 900ms var(--ease-out);
  transition-delay: calc(var(--d, 0) * 80ms);
}
.js .reveal.in {
  opacity: 1;
  transform: none;
}

@keyframes bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
  .reveal,
  .merge .bit,
  .merge .result,
  .devices .phone,
  .phone .screen img {
    transform: none !important;
    transition: opacity 200ms linear !important;
  }
  .hero .display .w,
  .hero .lede,
  .hero .eyebrow,
  .hero-ctas,
  .platforms {
    opacity: 1;
    transform: none;
  }
  .film {
    transform: none !important;
  }
}

/* ---------- Offer, problem and fit (Hormozi pass) ---------- */
.risk {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: -6px 0 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--success);
}
.risk svg {
  width: 17px;
  height: 17px;
}
.risk .sep {
  color: var(--dashed);
}
.risk-rest {
  display: inline-flex;
  gap: 8px;
}
/* On a phone the line breaks after "Free for the whole family", never mid-list. */
@media (max-width: 480px) {
  .risk .sep-break {
    display: none;
  }
  .risk-rest {
    flex-basis: 100%;
    justify-content: center;
  }
}
.pains {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  max-width: 980px;
  margin-inline: auto;
}
.pain {
  margin: 0;
  padding: 26px 28px;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--r-lg);
  font: 700 23px/1.3 var(--display);
  letter-spacing: -0.01em;
  color: var(--text);
}
@media (max-width: 720px) {
  .pains {
    grid-template-columns: minmax(0, 1fr);
  }
}
.ba {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  max-width: 980px;
  margin: 40px auto 0;
}
.ba-col {
  border: 1px dashed var(--dashed);
  border-radius: var(--r-lg);
  padding: 26px 28px;
}
.ba-col.after {
  border: 1px solid var(--surface-border);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.ba-col ul {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  display: grid;
  gap: 12px;
}
.ba-col li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  font-size: 16.5px;
  line-height: 1.4;
  color: var(--muted);
}
.ba-col.after li {
  color: var(--text);
}
.ba-col li svg {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  color: var(--subtle);
}
.ba-col.after li svg {
  color: var(--success);
}
@media (max-width: 720px) {
  .ba {
    grid-template-columns: minmax(0, 1fr);
  }
}
.offer-card {
  max-width: 860px;
  margin-inline: auto;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: clamp(24px, 4vw, 48px);
  display: grid;
  gap: 28px;
}
.stack {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}
.stack li {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--rule);
}
.stack li:first-child {
  padding-top: 0;
}
.stack .n {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--action);
  border: 1px solid var(--action-border);
  display: grid;
  place-items: center;
  font: 700 16px/1 var(--display);
}
.stack b {
  display: block;
  font: 700 20px/1.25 var(--display);
  letter-spacing: -0.01em;
}
.stack span:not(.n) {
  display: block;
  margin-top: 4px;
  font-size: 16px;
  color: var(--muted);
  line-height: 1.45;
}
.guarantee {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 22px 24px;
  border-radius: var(--r-md);
  background: var(--success-surface);
}
.guarantee .seal {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--surface);
  color: var(--success);
  display: grid;
  place-items: center;
}
.guarantee .seal svg {
  width: 28px;
  height: 28px;
}
.guarantee h3 {
  margin: 0 0 6px;
  font: 700 21px/1.2 var(--display);
  color: var(--success);
}
.guarantee p {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  color: #1e4a44;
}
.ask p {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
  color: var(--muted);
}
.ask b {
  color: var(--text);
}
.offer-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}
.legal-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 26px;
}

/* ---------- Legal pages ---------- */
.legal-nav .nav-links {
  display: flex;
}
.legal {
  padding: clamp(48px, 7vw, 88px) 0 96px;
}
.legal .wrap {
  max-width: 820px;
}
.legal h1 {
  font: 800 clamp(40px, 6vw, 60px)/1 var(--display);
  letter-spacing: -0.03em;
  margin: 18px 0 14px;
}
.legal .updated {
  font-size: 15px;
  color: var(--subtle);
}
.draft {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px dashed var(--dashed);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.summary {
  margin: 32px 0;
  padding: 26px 28px;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
}
.summary h2 {
  margin: 0 0 12px;
  font: 700 22px/1.2 var(--display);
}
.summary ul {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 8px;
  font-size: 16.5px;
  line-height: 1.5;
}
.toc {
  margin: 0 0 40px;
  padding: 20px 24px;
  border: 1px solid var(--surface-border);
  border-radius: var(--r-md);
}
.toc b {
  display: block;
  font-size: 12px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--subtle);
  margin-bottom: 8px;
}
.toc ol {
  margin: 0;
  padding-left: 22px;
  columns: 2;
  column-gap: 32px;
  font-size: 15.5px;
  line-height: 1.9;
}
.toc a {
  color: var(--text);
  text-decoration: none;
}
.toc a:hover {
  text-decoration: underline;
}
@media (max-width: 620px) {
  .toc ol {
    columns: 1;
  }
}
.legal section {
  padding-top: 12px;
  scroll-margin-top: 90px;
}
.legal h2 {
  font: 700 26px/1.2 var(--display);
  letter-spacing: -0.015em;
  margin: 36px 0 12px;
}
.legal h3 {
  font: 700 19px/1.25 var(--display);
  margin: 22px 0 8px;
}
.legal p,
.legal li {
  font-size: 17px;
  line-height: 1.6;
}
.legal ul {
  padding-left: 22px;
}
.legal a {
  color: var(--primary);
}
.tbl {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 8px;
  font-size: 15px;
}
.tbl th,
.tbl td {
  text-align: left;
  vertical-align: top;
  padding: 11px 12px;
  border-bottom: 1px solid var(--surface-border);
  line-height: 1.45;
}
.tbl th {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--subtle);
  background: var(--alt, #f5f2e8);
}
.tbl-wrap {
  overflow-x: auto;
}
mark.gap {
  background: var(--warning-surface);
  color: var(--warning);
  border: 1px dashed var(--warning-border);
  border-radius: 6px;
  padding: 1px 6px;
  font-weight: 600;
}
.contact {
  margin-top: 20px;
  padding: 20px 24px;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--surface-border);
}

/* ---------- Consent banner ---------- */
.consent-card {
  position: fixed;
  z-index: 90;
  left: 20px;
  bottom: 20px;
  width: min(460px, calc(100% - 40px));
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 24px;
  box-shadow: 0 30px 60px -24px rgba(64, 48, 40, 0.45);
  padding: 24px 26px;
  animation: fade 400ms var(--ease-out);
}
.consent-card h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 8px;
  font: 700 22px/1.2 var(--display);
  letter-spacing: -0.01em;
}
.consent-card h2 svg {
  width: 24px;
  height: 24px;
  color: var(--primary);
}
.consent-card p {
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
}
.consent-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.consent-row .btn {
  min-height: 44px;
  padding: 0 20px;
  font-size: 15px;
}
.consent-row a {
  margin-left: auto;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  text-underline-offset: 4px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
@media (max-width: 520px) {
  .consent-card {
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: auto;
  }
  .consent-row a {
    margin-left: 0;
  }
}

/* ---------- Footer: social row and copyright ---------- */
.foot-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--surface-border);
}
.social {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.social a {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--muted);
  transition:
    background 150ms,
    color 150ms;
}
.social a:hover {
  background: var(--surface);
  color: var(--text);
}
.social svg {
  width: 21px;
  height: 21px;
}
.copyright {
  margin: 0;
  font-size: 14px;
  color: var(--subtle);
}
@media (max-width: 620px) {
  .foot-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ---------- People photos with real UI floating over them ---------- */
.photo {
  position: relative;
  margin: 0;
}
.photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 880 / 1092;
  object-fit: cover;
  border-radius: 26px;
  background: var(--surface-alt);
  box-shadow: 0 30px 60px -36px rgba(64, 48, 40, 0.55);
}
.float-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 86%;
  padding: 12px 16px 12px 12px;
  background: rgba(252, 252, 252, 0.97);
  border: 1px solid var(--surface-border);
  border-radius: 16px;
  box-shadow: 0 18px 36px -18px rgba(64, 48, 40, 0.55);
  font-size: 14px;
  line-height: 1.3;
  color: var(--text);
}
.float-chip .ic {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: var(--surface-alt);
  display: grid;
  place-items: center;
  color: var(--muted);
}
.float-chip .ic svg {
  width: 19px;
  height: 19px;
}
.float-chip b {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--subtle);
  margin-bottom: 2px;
}
.float-chip.ok .ic {
  background: var(--success-surface);
  color: var(--success);
}
.fc-tl {
  top: 22px;
  left: -18px;
}
.fc-br {
  bottom: 26px;
  right: -18px;
}
.fc-bl {
  bottom: 18px;
  left: 16px;
}
@media (max-width: 720px) {
  .fc-tl {
    left: 12px;
  }
  .fc-br {
    right: 12px;
  }
}
.prob-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  max-width: 1040px;
  margin-inline: auto;
}
.pains.stacked {
  grid-template-columns: minmax(0, 1fr);
  max-width: none;
  margin: 0;
}
@media (max-width: 860px) {
  .prob-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .prob-grid .photo {
    max-width: 460px;
    margin-inline: auto;
  }
}
.day-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 32px);
}
.day-card {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.day-card figcaption {
  font-size: 16px;
  line-height: 1.5;
  color: var(--muted);
}
.day-card figcaption .t {
  display: block;
  font: 800 26px/1 var(--display);
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 6px;
}
.photo-note {
  margin-top: 28px;
}
@media (max-width: 900px) {
  .day-strip {
    grid-template-columns: minmax(0, 1fr);
    max-width: 460px;
    margin-inline: auto;
  }
}

/* Legal emphasis blocks: the terms' conspicuous clauses, in caps like the reference */
.legal .caps-legal {
  text-transform: uppercase;
  font-size: 14.5px;
  letter-spacing: 0.01em;
  line-height: 1.65;
}

/* ---------- /how-to (docs/designs/tutorial-videos.md, design variant A2) ---------- */
.how-to .ht-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--subtle);
}
.how-to h1 {
  margin-top: 6px;
}
.ht-all {
  margin: 18px 0 8px;
  border: 1px solid var(--surface-border);
  border-radius: 14px;
  background: var(--surface);
}
.ht-all summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  padding: 0 16px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.ht-all summary::-webkit-details-marker {
  display: none;
}
.ht-all summary::after {
  content: "▾";
  color: var(--muted);
}
.ht-all[open] summary::after {
  content: "▴";
}
.ht-all ol {
  margin: 0;
  padding: 4px 16px 12px;
  list-style: none;
}
.ht-all a {
  display: flex;
  align-items: center;
  min-height: 44px;
  color: var(--text);
  text-decoration: none;
  border-top: 1px solid var(--rule);
}
.ht-all a[aria-current] {
  font-weight: 600;
}
.ht-clip {
  display: grid;
  grid-template-areas: "top" "media" "rest";
  margin-top: 26px;
  padding-top: 26px;
  border-top: 1px solid var(--rule);
  scroll-margin-top: 76px;
}
.ht-top {
  grid-area: top;
}
.ht-media {
  grid-area: media;
  position: relative;
}
/* The play button over each poster (how-to.js): centered on the video, 72px, brand fill. */
.ht-big-play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 72px;
  height: 72px;
  margin: -36px 0 0 -36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fcfcfc;
  border-radius: 50%;
  background: rgba(128, 88, 64, 0.92);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28);
  cursor: pointer;
}
.ht-big-play[hidden] {
  display: none;
}
.ht-big-play:focus-visible {
  outline: 3px solid var(--text);
  outline-offset: 3px;
}
.ht-big-tri {
  width: 0;
  height: 0;
  margin-left: 6px;
  border-left: 22px solid #fcfcfc;
  border-top: 14px solid transparent;
  border-bottom: 14px solid transparent;
}
.ht-rest {
  grid-area: rest;
}
.how-to .ht-clip h2 {
  margin: 6px 0 12px;
}
.ht-play {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  margin-bottom: 12px;
  padding: 0 16px;
  border: 1px solid var(--surface-border);
  border-radius: 14px;
  background: var(--surface);
  color: var(--text);
  font: 600 16px/1 var(--body);
  cursor: pointer;
}
.ht-tri {
  width: 0;
  height: 0;
  border-left: 10px solid var(--text);
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}
.ht-soon {
  margin: 0 0 4px;
  color: var(--muted);
}
.ht-video,
.ht-error {
  display: block;
  height: 60vh;
  max-height: 560px;
  aspect-ratio: 9 / 19.5;
  margin: 0 auto;
  border: 1px solid var(--surface-border);
  border-radius: 20px;
  background: #1d1714;
}
.ht-video[hidden],
.ht-error[hidden] {
  display: none;
}
.ht-error {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding: 24px;
  background: var(--surface-alt);
  text-align: center;
}
.ht-retry {
  align-self: center;
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  background: none;
  color: var(--primary);
  font: 600 16px/1 var(--body);
  text-decoration: underline;
  cursor: pointer;
}
.ht-chapter {
  margin: 18px 0 0;
}
.ht-steps {
  max-width: 70ch;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: ht;
}
.how-to .ht-steps li {
  counter-increment: ht;
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid var(--rule);
}
.ht-steps li::before {
  content: counter(ht);
  width: 28px;
  height: 28px;
  border: 1px solid var(--surface-border);
  border-radius: 999px;
  background: var(--surface);
  font: 700 15px/28px var(--display);
  text-align: center;
}
.ht-stuck {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  min-height: 44px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 15px;
}
.ht-next {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  margin-top: 6px;
  padding: 0 16px;
  border: 1px solid var(--surface-border);
  border-radius: 14px;
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}
.ht-play:focus-visible,
.ht-next:focus-visible,
.ht-retry:focus-visible,
.ht-all summary:focus-visible,
.ht-all a:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
@media (min-width: 900px) {
  .ht-clip {
    grid-template-columns: 320px 1fr;
    grid-template-rows: auto 1fr;
    grid-template-areas: "media top" "media rest";
    column-gap: 36px;
    align-items: start;
  }
  .ht-clip.ht-novideo {
    grid-template-columns: 1fr;
    grid-template-areas: "top" "rest";
  }
  .ht-media {
    position: sticky;
    top: 84px;
  }
  .ht-video,
  .ht-error {
    width: 320px;
    height: auto;
  }
}
/* Captions (design 11A): one spec for the web track and the burned-in cuts. */
.ht-video::cue {
  font-family: var(--body);
  font-weight: 600;
  color: #fcfcfc;
  background: rgba(64, 48, 40, 0.88);
}

/* ---------- Content pages (lib/guides.ts): guides, checklists, the printable ---------- */
.guide .print-btn {
  margin: 4px 0 20px;
}
.carpool-sheet {
  margin: 8px 0 28px;
  padding: 16px;
  border: 1px solid var(--surface-border);
  border-radius: var(--r-md);
  background: var(--surface);
  overflow-x: auto;
}
.carpool-sheet .sheet-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 10px;
}
.carpool-sheet .sheet-head h2 {
  margin: 0;
  font-size: 22px;
}
.carpool-sheet table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 13px;
}
.carpool-sheet th,
.carpool-sheet td {
  border: 1px solid var(--rule);
  padding: 6px 8px;
  height: 30px;
  text-align: left;
  vertical-align: top;
}
.carpool-sheet thead th {
  background: var(--surface-alt);
  font-weight: 600;
}
.carpool-sheet .sheet-foot {
  display: flex;
  justify-content: space-between;
  margin: 10px 0 0;
  font-size: 12px;
  color: var(--muted);
}
@media print {
  @page {
    size: letter landscape;
    margin: 0.4in;
  }
  .no-print,
  .consent-card,
  .toast {
    display: none !important;
  }
  body {
    background: #fff;
  }
  .guide,
  .guide .wrap {
    padding: 0;
    margin: 0;
    max-width: none;
  }
  .carpool-sheet {
    border: 0;
    padding: 0;
    margin: 0;
    overflow: visible;
  }
  .carpool-sheet table {
    min-width: 0;
  }
  .carpool-sheet th,
  .carpool-sheet td {
    border-color: #999;
    height: 42px;
  }
}
