/* Mainspring website. White and airy, with large tight headlines, one brass accent, and product pieces in cards. */
:root {
  --ink: #11161c;
  --ink-soft: #4b5560;
  --ink-faint: #8a939c;
  --on-ink: #eef1f4;
  --on-ink-soft: #b3bcc6;
  --paper: #ffffff;
  --soft: #f6f6f4;
  --line: #e9e9e5;
  --line-strong: #d5d5cf;
  --brass: #8a6a2a;
  --brass-bright: #dcb565;
  --brass-tint: #f6ecd6;
  --green-ink: #2f6b4f;
  --green-tint: #e3efe8;
  --radius: 24px;
  --wrap: 1200px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.55 "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; font-weight: 500; line-height: 1.05; letter-spacing: -0.035em; }
h2 { font-size: clamp(2rem, 3.6vw, 3rem); max-width: 16ch; }
h2.display { font-size: clamp(2.4rem, 5.6vw, 4.6rem); letter-spacing: -0.045em; max-width: none; }
h3 { font-size: 1.5rem; letter-spacing: -0.02em; line-height: 1.15; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--brass-bright); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.pill { display: inline-block; margin-bottom: 24px; padding: 5px 12px; border-radius: 8px; background: #efefec; font-size: 0.92rem; font-weight: 500; }
.sub { margin-top: 22px; font-size: 1.12rem; color: var(--ink-soft); max-width: 30em; }

/* Buttons: the one accent colour, with a darker lower edge. */
.button {
  display: inline-block; padding: 14px 30px; border-radius: 12px; border: 0; cursor: pointer;
  background: var(--brass-bright); color: var(--ink); font: inherit; font-weight: 600; text-decoration: none;
  box-shadow: inset 0 -3px 0 rgb(0 0 0 / 0.16), 0 1px 2px rgb(0 0 0 / 0.12);
  transition: transform 0.15s, filter 0.15s;
}
.button:hover { transform: translateY(-1px); filter: brightness(1.05); }
.button:active { transform: translateY(1px); box-shadow: inset 0 -1px 0 rgb(0 0 0 / 0.16); }
.button.big { padding: 18px 64px; font-size: 1.1rem; }
.button.small { padding: 8px 16px; border-radius: 9px; font-size: 0.9rem; }

/* Header: clear over the opening screen, white once the page has scrolled past it (motion.js adds .solid) or a
   menu is open. Other pages start solid. */
.site-header { position: fixed; inset: 0 0 auto; z-index: 20; transition: background 0.25s, border-color 0.25s; border-bottom: 1px solid transparent; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 68px; }
.logo img { width: 156px; height: auto; }
.logo-dark { display: none; }
.main-nav { display: flex; align-items: center; gap: 6px; font-size: 0.93rem; font-weight: 500; }
.nav-link, .menu-button {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 10px; border: 0;
  background: none; color: #fff; font: inherit; text-decoration: none; cursor: pointer; transition: background 0.15s;
}
.menu-button svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; transition: transform 0.2s; }
.menu.open .menu-button svg { transform: rotate(180deg); }
.nav-link:hover, .menu-button:hover, .menu.open .menu-button { background: rgb(255 255 255 / 0.14); }
.main-nav .button.small { margin-left: 10px; }
.site-header.solid, .site-header.menu-open, .site-header.mobile-open { background: rgb(255 255 255 / 0.94); backdrop-filter: blur(12px); border-color: var(--line); }
.site-header:is(.solid, .menu-open, .mobile-open) :is(.nav-link, .menu-button) { color: var(--ink); }
.site-header:is(.solid, .menu-open, .mobile-open) :is(.nav-link:hover, .menu-button:hover, .menu.open .menu-button) { background: #efefec; }
.site-header:is(.solid, .menu-open, .mobile-open) .logo-light { display: none; }
.site-header:is(.solid, .menu-open, .mobile-open) .logo-dark { display: block; }

/* Dropdowns, after Felix's: a wide panel under the bar, popular items with a picture tile on the left and the
   rest grouped under headings. */
.menu { position: static; }
.dropdown {
  position: absolute; top: calc(100% - 4px); z-index: 30;
  background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 0;
  box-shadow: 0 24px 48px -20px rgb(17 22 28 / 0.28); animation: drop 0.16s ease-out;
}
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } }
.dropdown.mega { left: max(20px, calc((100vw - var(--wrap)) / 2)); right: max(20px, calc((100vw - var(--wrap)) / 2)); padding: 18px; }
.dropdown[hidden] { display: none; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.feature { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 0; text-decoration: none; color: var(--ink); transition: background 0.15s; }
.feature:hover { background: var(--soft); }
.feature strong { display: flex; align-items: center; gap: 8px; font-size: 0.88rem; font-weight: 600; }
.feature span span { display: block; margin-top: 1px; font-size: 0.74rem; color: var(--ink-faint); }
.tile { flex-shrink: 0; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; }
.tile svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tile-ed { background: #fde8de; color: #b4532a; }
.tile-trt { background: #e3ecf8; color: #1d4e89; }
.tile-hrt { background: #f3e6f4; color: #7a3f8a; }
.tile-weight { background: #e3efe8; color: #2f6b4f; }
.tile-hair { background: #f6ecd6; color: #8a6a2a; }
.tile-skin { background: #fbe8ec; color: #a63d5a; }
.dropdown em { font-style: normal; font-size: 0.62rem; font-weight: 600; padding: 1px 6px; border-radius: 999px; white-space: nowrap; }
.dropdown em.avail, .mobile-menu em.avail { background: var(--green-tint); color: var(--green-ink); }
.dropdown em.soon, .mobile-menu em.soon { background: #efefec; color: var(--ink-faint); }
.mega .all { display: block; margin: 8px 12px 0; padding-top: 12px; border-top: 1px solid var(--line); font-size: 0.84rem; font-weight: 600; color: var(--ink); text-decoration: none; }
.mega .all:hover { color: var(--brass); }
.dropdown.small { width: 300px; padding: 8px; transform: translateX(-12px); }
.menu { position: relative; }
.menu:has(.mega) { position: static; }
.dropdown.small a { display: block; padding: 9px 12px; border-radius: 0; text-decoration: none; color: var(--ink); }
.dropdown.small a:hover { background: var(--soft); }
.dropdown.small strong { display: block; font-size: 0.88rem; font-weight: 600; }
.dropdown.small span { font-size: 0.74rem; color: var(--ink-faint); }

/* Small screens: a burger and a full-height menu. */
.burger { display: none; width: 40px; height: 40px; margin-left: 4px; border: 0; border-radius: 10px; background: none; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 11px; right: 11px; height: 2px; border-radius: 2px; background: #fff; transition: transform 0.2s, top 0.2s; }
.burger span:first-child { top: 15px; }
.burger span:last-child { top: 23px; }
.site-header:is(.solid, .mobile-open) .burger span { background: var(--ink); }
.burger[aria-expanded="true"] span:first-child { top: 19px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 19px; transform: rotate(-45deg); }
.mobile-menu { height: calc(100dvh - 68px); overflow-y: auto; background: #fff; border-top: 1px solid var(--line); padding: 12px 0 40px; }
.mobile-menu[hidden] { display: none; }
.mobile-menu a:not(.button) { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; font-size: 1.05rem; font-weight: 500; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.mobile-menu small { display: block; font-size: 0.8rem; font-weight: 400; color: var(--ink-faint); }
.mobile-menu em { font-style: normal; font-size: 0.72rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; }
.mobile-label { margin: 22px 0 4px; font-size: 0.8rem; font-weight: 600; color: var(--ink-faint); text-transform: uppercase; letter-spacing: 0.06em; }
.mobile-menu hr { border: 0; margin: 14px 0 0; }
.mobile-menu .button { display: block; margin-top: 24px; text-align: center; }

/* Phones: a dark frame around a real screen. */
.phone {
  width: 260px; aspect-ratio: 390 / 844; padding: 9px;
  border-radius: 42px; background: #0b1016;
  box-shadow: 0 30px 60px -20px rgb(8 12 18 / 0.45), 0 0 0 1px rgb(255 255 255 / 0.06) inset;
}
.phone img, .phone video { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 33px; background: #f5f7fa; }
.phone-lg { width: 300px; }
.phone-sm { width: 220px; }

/* The opening screen: a slow-moving gradient in the brand's colours, the pitch on the left, one order's story on the right. */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  padding: 150px 0 96px;
  background: #0d1217; color: #fff;
}
.hero::after { content: ""; position: absolute; inset: 40% 0 0; z-index: -1; background: linear-gradient(transparent, rgb(8 11 15 / 0.8)); }
.hero-glow { position: absolute; inset: -25%; z-index: -2; filter: blur(90px); }
.hero-glow i { position: absolute; width: 46%; aspect-ratio: 1; border-radius: 50%; animation: drift 22s ease-in-out infinite alternate; }
.hero-glow i:nth-child(1) { left: 50%; top: 6%; background: rgb(220 181 101 / 0.75); }
.hero-glow i:nth-child(2) { left: 6%; top: 40%; background: rgb(47 139 99 / 0.75); animation-duration: 27s; animation-delay: -6s; }
.hero-glow i:nth-child(3) { left: 60%; top: 46%; background: rgb(46 108 184 / 0.6); animation-duration: 31s; animation-delay: -12s; }
.hero-glow i:nth-child(4) { left: 26%; top: -8%; width: 36%; background: rgb(196 92 52 / 0.5); animation-duration: 25s; animation-delay: -3s; }
@keyframes drift {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-14%, 10%) scale(1.15); }
  100% { transform: translate(12%, -12%) scale(0.92); }
}
.hero-coil { position: absolute; right: -10vw; top: 50%; width: 60vw; max-width: 900px; aspect-ratio: 1; margin-top: -30vw; z-index: -1; color: rgb(255 255 255 / 0.1); pointer-events: none; animation: unwind 160s linear infinite; }
@keyframes unwind { to { transform: rotate(-360deg); } }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 64px; align-items: center; }
.hero-grid > * { min-width: 0; }
.hero h1 { font-size: clamp(2.8rem, 6.4vw, 5.4rem); letter-spacing: -0.05em; line-height: 1; }
.lede { margin-top: 24px; font-size: clamp(1.08rem, 1.5vw, 1.25rem); color: var(--on-ink); max-width: 31em; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; margin-top: 36px; }
.hero-link { color: #fff; font-weight: 500; text-underline-offset: 5px; }
.hero-points { list-style: none; margin: 52px 0 0; padding: 26px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; border-top: 1px solid rgb(255 255 255 / 0.18); font-size: 0.92rem; color: var(--on-ink-soft); }
.hero-points strong { display: block; color: #fff; font-weight: 600; font-size: 1rem; }

/* One order's story: cards that arrive one after another, then start over. */
.hero-feed { display: grid; gap: 12px; padding: 22px; border-radius: 28px; background: rgb(255 255 255 / 0.07); border: 1px solid rgb(255 255 255 / 0.14); backdrop-filter: blur(14px); }
.feed-title { display: flex; align-items: center; gap: 9px; margin-bottom: 4px; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--on-ink-soft); }
.feed-title span { width: 8px; height: 8px; border-radius: 50%; background: #5fd39a; animation: beat-green 1.8s ease-out infinite; }
@keyframes beat-green { 0% { box-shadow: 0 0 0 0 rgb(95 211 154 / 0.6); } 100% { box-shadow: 0 0 0 9px transparent; } }
.feed-card {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px;
  background: #fff; color: var(--ink); box-shadow: 0 10px 24px -14px rgb(0 0 0 / 0.5);
  animation: arrive-1 11s ease-out infinite;
}
/* All four share one 11-second loop, so they arrive in order and leave together. */
.feed-card:nth-of-type(2) { animation-name: arrive-2; }
.feed-card:nth-of-type(3) { animation-name: arrive-3; }
.feed-card:nth-of-type(4) { animation-name: arrive-4; }
@keyframes arrive-1 { 0% { opacity: 0; transform: translateY(16px); } 5%, 94% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes arrive-2 { 0%, 12% { opacity: 0; transform: translateY(16px); } 17%, 94% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes arrive-3 { 0%, 24% { opacity: 0; transform: translateY(16px); } 29%, 94% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes arrive-4 { 0%, 36% { opacity: 0; transform: translateY(16px); } 41%, 94% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.feed-icon { flex-shrink: 0; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--soft); }
.feed-icon svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.feed-card.done .feed-icon { background: var(--green-tint); color: var(--green-ink); }
.feed-text { flex: 1; min-width: 0; display: grid; font-size: 0.86rem; color: var(--ink-soft); }
.feed-text strong { font-size: 0.98rem; font-weight: 600; color: var(--ink); }
.feed-when { flex-shrink: 0; font-size: 0.76rem; color: var(--ink-faint); font-variant-numeric: tabular-nums; }

/* Sections */
section { padding: 128px 0; }
.split-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.split-grid > *, .closing-grid > * { min-width: 0; }
.split-visual { display: flex; justify-content: center; align-items: center; gap: 28px; padding: 56px 32px; border-radius: 32px; background: var(--soft); border: 1px solid var(--line); }
.stack { display: grid; gap: 10px; width: 210px; }
.layer { display: grid; gap: 3px; padding: 14px 16px; border-radius: 14px; background: #fff; border: 1px solid var(--line); box-shadow: 0 1px 2px rgb(0 0 0 / 0.04); }
.layer-label { font-weight: 600; font-size: 0.95rem; }
.layer-items { font-size: 0.78rem; color: var(--ink-soft); }
.layer.brand { border-style: dashed; border-color: var(--line-strong); background: transparent; box-shadow: none; }
.layer.engine { background: var(--brass-bright); border-color: var(--brass-bright); }
.layer.engine .layer-items { color: var(--ink); }
.layer.care { background: var(--ink); border-color: var(--ink); color: #fff; }
.layer.care .layer-items { color: var(--on-ink-soft); }
.checks { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 12px; color: var(--ink-soft); }
.checks li { position: relative; padding-left: 30px; }
.checks li::before {
  content: ""; position: absolute; left: 2px; top: 0.42em; width: 13px; height: 7px;
  border-left: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink); transform: rotate(-45deg);
}

/* "See it in your brand": restyles the example phones. */
.try { margin-top: 32px; padding: 18px 20px; max-width: 30rem; border-radius: 18px; background: var(--soft); border: 1px solid var(--line); }
.try > label { display: block; font-size: 0.92rem; font-weight: 600; }
.try-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 12px; }
.try input:not([type=color]) {
  flex: 1 1 11rem; min-width: 0; font: inherit; font-size: 1rem; color: var(--ink);
  padding: 10px 14px; border-radius: 10px; border: 1px solid var(--line-strong); background: #fff;
}
.try input::placeholder { color: var(--ink-faint); }
.try input:focus { outline: none; border-color: var(--ink); }
.swatches { display: flex; align-items: center; gap: 8px; }
.swatches button, .swatch-custom {
  width: 28px; height: 28px; padding: 0; border-radius: 50%; cursor: pointer;
  border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line-strong); background: var(--c); transition: transform 0.15s;
}
.swatches button:hover, .swatch-custom:hover { transform: scale(1.12); }
.swatches button[aria-pressed="true"] { box-shadow: 0 0 0 2.5px var(--ink); }
.swatch-custom { position: relative; overflow: hidden; background: conic-gradient(#e5484d, #f5c518, #46a758, #3e63dd, #8e4ec6, #e5484d); }
.swatch-custom input { position: absolute; inset: -8px; width: 200%; height: 200%; opacity: 0; cursor: pointer; }

/* An example patient screen, drawn in the page so it can take any brand's colour and move. */
.mock {
  --b: #2f6b4f; --bs: #f1f6f2; --bc: #fff; --bt: #2f6b4f;
  height: 100%; border-radius: 33px; overflow: hidden;
  display: flex; flex-direction: column; gap: 13px; padding: 30px 18px 20px;
  background: var(--bs); color: #1c2420; font-size: 12.5px; line-height: 1.4; text-align: left;
  transition: background 0.6s;
}
.mock header { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.mock-word { font-weight: 700; font-size: 14px; letter-spacing: -0.01em; color: var(--bt); transition: color 0.6s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-step { flex-shrink: 0; font-size: 11px; color: #6f7a75; }
.mock-progress { height: 3px; border-radius: 3px; background: rgb(0 0 0 / 0.1); }
.mock-progress i { display: block; height: 100%; width: 34%; border-radius: 3px; background: var(--b); transition: width 0.6s, background 0.6s; }
.mock-title { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; margin-top: 6px; }
.mock .q { display: grid; gap: 7px; }
.mock .q p { font-weight: 500; }
.mock .yn { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mock .yn span {
  position: relative; padding: 8px 10px 8px 28px; border-radius: 9px; background: #fff; border: 1.5px solid rgb(0 0 0 / 0.1);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.mock .yn span::before { content: ""; position: absolute; left: 10px; top: 50%; width: 9px; height: 9px; margin-top: -5.5px; border-radius: 50%; border: 1.5px solid #9aa5a0; transition: 0.3s; }
.mock .yn span.on { border-color: var(--b); box-shadow: 0 0 0 1px var(--b); }
.mock .yn span.on::before { border-color: var(--b); background: radial-gradient(var(--b) 45%, transparent 50%); }
.mock-btn {
  margin-top: auto; padding: 11px; border-radius: 9px; text-align: center; font-weight: 600;
  background: var(--b); color: var(--bc); opacity: 0.45; transition: opacity 0.4s, background 0.6s, color 0.6s, transform 0.4s;
}
.mock.ready .mock-btn { opacity: 1; transform: scale(1.02); }

/* The request-status screen. */
.timeline { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 0; }
.timeline li { position: relative; padding: 0 0 22px 26px; color: #8a9590; transition: color 0.4s; }
.timeline li::before { content: ""; position: absolute; left: 3px; top: 4px; width: 9px; height: 9px; border-radius: 50%; background: var(--bs); border: 1.5px solid #b4bdb9; transition: 0.4s; z-index: 1; }
.timeline li::after { content: ""; position: absolute; left: 8px; top: 14px; bottom: -4px; width: 1.5px; background: #cfd6d3; transition: background 0.4s; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li:last-child::after { display: none; }
.timeline li.done { color: #1c2420; }
.timeline li.done::before { background: var(--b); border-color: var(--b); }
.timeline li.done::after { background: var(--b); }
.timeline li.now { color: #1c2420; font-weight: 600; }
.timeline li.now::before { border-color: var(--b); background: var(--b); animation: pulse 1.6s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--b) 45%, transparent); } 100% { box-shadow: 0 0 0 9px transparent; } }
.mock-note { margin-top: 6px; padding: 12px 14px; border-radius: 10px; background: #fff; border: 1px solid rgb(0 0 0 / 0.08); font-weight: 500; min-height: 3.4em; }
.mock-note:empty { display: none; }

/* How it works: the steps scroll past while one phone stays in view and plays the step being read. */
.how { padding-bottom: 40px; }
.journey { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; margin-top: 24px; }
.journey-steps { list-style: none; margin: 0; padding: 0; }
.journey-step { display: grid; justify-items: start; align-content: center; min-height: max(72vh, 720px); max-width: 30em; opacity: 0.35; transition: opacity 0.4s; }
.journey-step.current, .calm .journey-step { opacity: 1; }
.journey-step h3 { font-size: 1.5rem; letter-spacing: -0.015em; }
.journey-step p { margin-top: 12px; color: var(--ink-soft); font-size: 1.05rem; }
.step-shot { display: none; margin-bottom: 30px; }
.journey-phone { position: relative; }
/* Steps are at least as tall as the phone, so it stays centred beside the first and last ones too. */
.journey-phone .phone { position: sticky; top: calc(50vh - 325px); margin: 35px auto; display: grid; }
.journey-phone .screen { grid-area: 1 / 1; opacity: 0; transition: opacity 0.5s, background 0.6s; }
#journey[data-step="1"] [data-screen="questions"], #journey:not([data-step="1"]) [data-screen="status"] { opacity: 1; }
.step-number {
  display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 14px;
  border-radius: 50%; background: var(--ink); color: var(--brass-bright); font-weight: 600; font-size: 0.95rem;
}

/* What we handle: cards that each show a small piece of the product. */
.what { padding-top: 96px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 64px; }
.card { padding-bottom: 30px; border-radius: var(--radius); background: var(--soft); border: 1px solid var(--line); overflow: hidden; transition: transform 0.25s, box-shadow 0.25s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 36px -22px rgb(17 22 28 / 0.35); }
.card h3, .card > p { padding: 0 28px; }
.card > p { margin-top: 10px; color: var(--ink-soft); }
.card-ui { height: 208px; padding: 28px 28px 20px; display: flex; flex-direction: column; justify-content: center; gap: 8px; font-size: 0.86rem; }
.card-ui i { display: block; height: 8px; border-radius: 4px; background: #e2e2dd; }
.tag { flex-shrink: 0; font-style: normal; font-size: 0.74rem; font-weight: 600; padding: 2px 9px; border-radius: 999px; background: #ecece8; color: var(--ink-soft); }
.tag.ok { background: var(--green-tint); color: var(--green-ink); }
.tag.ask { background: var(--brass-tint); color: var(--brass); }
.ui-review .row, .ui-rx .rx, .ui-pay .field, .ui-privacy .side { background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 1px 2px rgb(0 0 0 / 0.04); }
.ui-review .row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; }
.ui-review .row span:nth-child(2) { flex: 1; font-weight: 500; }
.ui-review .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); }
.ui-review .row:first-child .dot { background: var(--green-ink); }
.ui-rx .rx { display: grid; gap: 2px; padding: 16px 18px; }
.ui-rx .rx strong { font-size: 1.05rem; font-weight: 600; }
.ui-rx .rx span { color: var(--ink-soft); }
.rx-sign { display: flex; align-items: center; gap: 8px; margin-top: 6px; color: var(--ink-soft); font-size: 0.82rem; }
.rx-sign i { width: 16px; height: 16px; border-radius: 50%; background: var(--green-ink); position: relative; }
.rx-sign i::after { content: ""; position: absolute; left: 4.5px; top: 5px; width: 6px; height: 3px; border-left: 1.5px solid #fff; border-bottom: 1.5px solid #fff; transform: rotate(-45deg); }
.ui-ship ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.ui-ship li { position: relative; padding-top: 26px; text-align: center; font-size: 0.8rem; color: var(--ink-faint); }
.ui-ship li::before { content: ""; position: absolute; left: 50%; top: 2px; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--soft); border: 2px solid var(--line-strong); z-index: 1; }
.ui-ship li:not(:last-child)::after { content: ""; position: absolute; left: 50%; right: -50%; top: 7px; height: 2px; background: var(--line-strong); }
.ui-ship li.done, .ui-ship li.now { color: var(--ink); font-weight: 500; }
.ui-ship li.done::before { background: var(--ink); border-color: var(--ink); }
.ui-ship li.done::after { background: var(--ink); }
.ui-ship li.now::before { background: var(--brass-bright); border-color: var(--brass-bright); animation: beat 1.8s ease-out infinite; }
@keyframes beat { 0% { box-shadow: 0 0 0 0 rgb(220 181 101 / 0.6); } 100% { box-shadow: 0 0 0 10px transparent; } }
.ui-pay .field { padding: 9px 12px; border-radius: 10px; color: var(--ink-faint); font-variant-numeric: tabular-nums; }
.ui-pay .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ui-pay .pay { padding: 9px; border-radius: 10px; background: var(--ink); color: #fff; text-align: center; font-weight: 600; }
.ui-note { gap: 11px; }
.note-head { display: flex; justify-content: space-between; align-items: center; font-weight: 600; }
.ui-privacy { flex-direction: row; align-items: stretch; gap: 10px; }
.ui-privacy .side { flex: 1; display: flex; flex-direction: column; gap: 9px; padding: 14px; }
.ui-privacy .side b { font-size: 0.78rem; font-weight: 600; color: var(--ink-soft); margin-bottom: 2px; }
.ui-privacy .side:first-child i { filter: blur(1.5px); }
.ui-privacy .tag { align-self: flex-start; }

/* Sections ease in as they scroll into view (motion.js adds .reveal, then .in). */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.reveal.in { opacity: 1; transform: none; }
.journey-step.reveal.in:not(.current) { opacity: 0.35; }

/* Where we work */
.where { padding-top: 96px; }
.where .sub { max-width: 36em; }
.places { margin-top: 56px; }
/* As many columns as fit: one region or twenty, the grid adapts. */
.places-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 18px; }
.place-region { padding: 26px 28px; border-radius: var(--radius); background: var(--soft); border: 1px solid var(--line); }
.place-region h3 { font-size: 1.25rem; }
.place-list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 4px; }
.place-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.place-list li:first-child { border-top: 0; }
.place-name { font-weight: 500; }
.place-note { display: block; font-size: 0.82rem; font-weight: 400; color: var(--ink-faint); }
.place-list .pill { flex-shrink: 0; margin: 0; padding: 3px 10px; border-radius: 999px; font-size: 0.78rem; font-weight: 600; white-space: nowrap; }
.pill-live { background: var(--green-tint); color: var(--green-ink); }
.pill-soon { background: var(--brass-tint); color: var(--brass); }
.places-ask { margin-top: 28px; color: var(--ink-soft); }
.places-ask a { color: var(--ink); font-weight: 500; }

/* Closing */
.closing { background: var(--soft); border-top: 1px solid var(--line); scroll-margin-top: 68px; }
.closing-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: start; }
.closing-lede { margin-top: 22px; font-size: 1.12rem; color: var(--ink-soft); max-width: 30em; }
.closing-alt { margin-top: 16px; font-size: 0.95rem; color: var(--ink-soft); }
.closing-alt a { color: var(--ink); }

/* Contact form */
.contact-form, .form-done { padding: 32px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.contact-form { display: grid; gap: 18px; }
.contact-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: end; }
.contact-form label { display: grid; gap: 6px; font-size: 0.92rem; font-weight: 500; }
.contact-form .optional { font-weight: 400; color: var(--ink-faint); }
.contact-form input, .contact-form select, .contact-form textarea {
  font: inherit; font-weight: 400; font-size: 1rem; color: var(--ink);
  padding: 11px 14px; border-radius: 10px; border: 1px solid var(--line-strong); background: #fff;
}
/* Text boxes and dropdowns are the same size, so fields in a row line up. */
.contact-form input, .contact-form select { min-height: 46px; width: 100%; }
.contact-form .row > * { min-width: 0; }
.contact-form textarea { resize: vertical; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgb(220 181 101 / 0.45); }
.contact-form [aria-invalid="true"] { border-color: #b42318; }
.contact-form .trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact-form .consent { font-size: 0.85rem; color: var(--ink-soft); }
.contact-form .consent a { color: var(--ink); }
.contact-form button { justify-self: start; border: 0; cursor: pointer; font: inherit; font-weight: 500; }
.contact-form button[disabled] { opacity: 0.6; cursor: progress; }
.form-error { padding: 12px 14px; border-radius: 10px; background: #fdecea; color: #b42318; font-size: 0.92rem; }
.form-done h3 { font-size: 1.3rem; }
.form-done p { margin-top: 10px; color: var(--ink-soft); }

/* Footer */
.site-footer { padding: 56px 0 34px; background: var(--ink); color: var(--on-ink-soft); font-size: 0.9rem; }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.footer-row img { width: 120px; height: auto; }

/* Smaller screens */
@media (max-width: 960px) {
  .main-nav .menu, .main-nav .nav-link { display: none; }
  .burger { display: block; }
}
@media (max-width: 960px) {
  section { padding: 84px 0; }
  .split-grid, .closing-grid, .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero { padding: 120px 0 72px; }
  .cards { grid-template-columns: 1fr 1fr; }
  .contact-form .row { grid-template-columns: 1fr; }
  .contact-form, .form-done { padding: 22px; }
  /* No room for a phone that stays put: each step shows its own still instead. */
  .journey { grid-template-columns: 1fr; margin-top: 48px; }
  .journey-phone { display: none; }
  .step-shot { display: block; }
  .journey-step, .journey-step.reveal.in:not(.current) { min-height: 0; opacity: 1; margin-bottom: 56px; }
  .how { padding-bottom: 16px; }
}
@media (max-width: 640px) {
  .logo img { width: 136px; }
  body { font-size: 16px; }
  .cards { grid-template-columns: 1fr; }
  .stack { display: none; }
  .split-visual { padding: 32px 16px; }
  .phone-lg { width: 260px; }
  .hero-points { grid-template-columns: 1fr; gap: 14px; margin-top: 40px; }
  .feed-when { display: none; }
  .hero-feed { padding: 16px; border-radius: 22px; }
  .button.big { padding: 16px 44px; }
}

/* Privacy notice and other plain text pages */
.prose { max-width: 44rem; padding-top: 40px; }
.prose h1 { margin-bottom: 24px; }
.prose h2 { font-size: 1.25rem; margin-top: 36px; max-width: none; }
.prose p { margin-top: 12px; color: var(--ink-soft); }
.prose a { color: var(--ink); }

/* Less motion for people who've asked their device for it. */
@media (prefers-reduced-motion: reduce) {
  .hero-glow i, .hero-coil, .timeline li.now::before, .ui-ship li.now::before, .feed-card, .feed-title span { animation: none; }
  .mock, .mock *, .card, .journey-step, .site-header { transition: none; }
}

/* Other pages: treatments, blog, careers. */
.subpage main { padding-top: 68px; }
.page-head { padding: 88px 0 64px; background: var(--soft); border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(2.4rem, 5.4vw, 4.4rem); letter-spacing: -0.045em; line-height: 1.02; max-width: 16ch; }
.text-link { color: var(--ink); font-weight: 600; text-decoration: none; }
.text-link:hover { color: var(--brass); }
.status { display: inline-block; margin-top: 14px; padding: 3px 10px; border-radius: 999px; font-size: 0.78rem; font-weight: 600; }
.status.live { background: var(--green-tint); color: var(--green-ink); }
.status.soon { background: #ececE8; color: var(--ink-soft); }
.treatment-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 48px; }
.treatment-card { display: grid; align-content: start; gap: 6px; padding: 22px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: transform 0.2s, box-shadow 0.2s; }
.treatment-card:hover { transform: translateY(-3px); box-shadow: 0 16px 32px -20px rgb(17 22 28 / 0.35); }
.treatment-card .status { margin-top: 6px; justify-self: start; }
.treatment-tag { font-size: 0.85rem; color: var(--ink-faint); }
.treatment-card h3 { font-size: 1.25rem; }
.treatment { padding: 88px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 68px; }
.treatment-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; }
.treatment .sub { margin-top: 0; }
.treatment .text-link { display: inline-block; margin-top: 28px; }
.cta-band { text-align: center; }
.cta-band h2 { margin-inline: auto; }
.cta-band .sub { margin: 18px auto 0; }
.cta-band .button { margin-top: 32px; }
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; margin-top: 48px; }
.post-card { display: grid; align-content: start; gap: 8px; padding: 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: transform 0.2s, box-shadow 0.2s; }
.post-card:hover { transform: translateY(-3px); box-shadow: 0 16px 32px -20px rgb(17 22 28 / 0.35); }
.post-card time { font-size: 0.78rem; color: var(--ink-faint); }
.post-card h2 { font-size: 1.15rem; letter-spacing: -0.015em; line-height: 1.25; max-width: none; }
.post-card p { font-size: 0.92rem; color: var(--ink-soft); }
.post-card .text-link { font-size: 0.9rem; }
.post { padding: 56px 0 96px; }
.post .prose { max-width: 40rem; font-size: 0.98rem; }
.post .prose h1 { margin-top: 16px; font-size: clamp(1.7rem, 3vw, 2.3rem); letter-spacing: -0.03em; line-height: 1.12; }
.post-meta { margin-top: 24px; font-size: 0.82rem; color: var(--ink-faint); }
.lede-dark { margin-top: 14px; font-size: 1.05rem; color: var(--ink-soft); }
.post .prose h2 { font-size: 1.15rem; margin-top: 32px; letter-spacing: -0.015em; }
.prose ul { margin: 12px 0 0; padding-left: 1.2em; color: var(--ink-soft); }
.prose li { margin-top: 6px; }
.post-cta { margin-top: 56px; padding: 28px; border-radius: var(--radius); background: var(--soft); border: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.post-cta p { margin: 0; font-weight: 600; color: var(--ink); }

/* The blog's own page head is smaller than the other pages'. */
.page-head:has(.post-grid) h1 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); letter-spacing: -0.035em; }
.page-head:has(.post-grid) .sub { font-size: 1rem; }
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; }
.value-grid article { padding: 28px; border-radius: var(--radius); background: var(--soft); border: 1px solid var(--line); }
.value-grid p { margin-top: 10px; color: var(--ink-soft); }
.roles { padding-top: 0; }
.role-list { margin-top: 28px; }
.role { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 24px; border: 1px solid var(--line); border-radius: 16px; text-decoration: none; color: var(--ink); }
.role strong { display: block; }
.role span span { color: var(--ink-faint); font-size: 0.9rem; }
.no-roles { padding: 28px; border-radius: var(--radius); background: var(--soft); border: 1px solid var(--line); color: var(--ink-soft); }
.no-roles a { color: var(--ink); }

/* Footer, on every page. */
.footer-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 48px; padding-bottom: 32px; }
.footer-note { margin-top: 14px; max-width: 22em; }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer-links p { margin-bottom: 10px; color: #fff; font-weight: 600; }
.footer-links a { display: block; padding: 4px 0; color: var(--on-ink-soft); text-decoration: none; }
.footer-links a:hover { color: #fff; }
.footer-base { padding-top: 24px; border-top: 1px solid rgb(255 255 255 / 0.12); }
@media (max-width: 960px) {
  .treatment-grid, .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .value-grid { grid-template-columns: 1fr; }
  .treatment-cards { grid-template-columns: 1fr 1fr; }
  .page-head { padding: 56px 0 44px; }
  .treatment { padding: 64px 0; }
}
@media (max-width: 640px) {
  .footer-links { grid-template-columns: 1fr 1fr; }
  .treatment-cards { grid-template-columns: 1fr; }
}
