:root {
  --coral: #e8412a;
  --coral-lift: #f0684c;
  --ember: #9e2a1a;
  --ivory: #f7f3ec;
  --ink: #232a36;
  --muted: #8a857d;
  --line: #e4ddd2;
  --ice: #e7eef4;
  --ice-lift: #f7fafc;
  --wave: 70 100 132;
  --wave-shadow: #b8c7d5;
  --brand: 'Urbanist', 'Avenir Next', 'Helvetica Neue', Arial, sans-serif;
  --display: 'Instrument Sans', 'Helvetica Neue', Arial, sans-serif;
  --small: var(--display);
  --gutter: max(20px, min(5.5vw, 88px));
  color: var(--ink);
  background: var(--ivory);
  font-family: var(--brand);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: #fff;
}
main { flex: 1; display: flex; flex-direction: column; }
::selection { background: #ffd9cd; color: var(--ink); }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; border-radius: 2px; }

/* Hero */

.hero {
  position: relative;
  isolation: isolate;
  flex: 1;
  display: flex;
  min-height: 520px;
  overflow: hidden;
  color: var(--ink);
  background:
    radial-gradient(110% 90% at 90% 40%, var(--ice-lift) 0%, transparent 60%),
    var(--ice);
}

.field {
  position: absolute;
  z-index: -1;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.4s ease;
}
.field.is-ready { opacity: 1; }

.hero-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 56px;
  padding: clamp(22px, 3.6vw, 44px) var(--gutter) clamp(36px, 5.4vw, 76px);
}

.wordmark {
  margin: 0;
  font-family: 'Urbanist', 'Avenir Next', 'Helvetica Neue', Arial, sans-serif;
  font-size: clamp(32px, 3.1vw, 44px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
  font-kerning: normal;
  font-feature-settings: "kern" 1;
  color: var(--coral);
}

h1 {
  max-width: 13em;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(44px, 7.2vw, 112px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.045em;
  text-wrap: balance;
}


.pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  max-width: 100%;
  margin-top: clamp(24px, 2.8vw, 36px);
  padding: 6px 18px 6px 6px;
  border: 1px solid rgb(35 42 54 / 20%);
  border-radius: 999px;
  background: rgb(255 255 255 / 62%);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: var(--ink);
  font-size: clamp(15px, 1.2vw, 17px);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.005em;
  text-decoration: none;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}
.pill-meta { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.pill-new {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--coral);
  color: #fff;
  font-size: 0.8em;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.pill time { opacity: .82; font-weight: 500; white-space: nowrap; }
.pill-text { display: inline-flex; align-items: center; gap: 8px; padding-left: 12px; border-left: 1px solid rgb(35 42 54 / 16%); }
.pill-text img { flex: none; width: 18px; height: 18px; filter: brightness(0) opacity(.8); transition: filter .25s ease; }
.pill:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.pill:hover .pill-new { background: var(--coral); color: #fff; }
.pill:hover .pill-text { border-color: rgb(255 255 255 / 25%); }
.pill:hover img { filter: none; }

/* 404 page */
.wordmark-link { text-decoration: none; align-self: flex-start; }
.pill--plain { padding: 9px 20px; }
.eyebrow-404 { margin: 0 0 18px; color: var(--coral); font: 500 15px/1 var(--display); }
.hero-404 .pill--plain { margin-top: clamp(28px, 3vw, 40px); }
.float-word { white-space: nowrap; }
.float-bit, .eyebrow-404 { display: inline-block; will-change: transform; }
.float-bit { white-space: pre; }
.pill.is-landing { background: var(--ink); border-color: var(--ink); color: #fff; }

/* Logo strip */


.network-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 16px clamp(8px, 1vw, 16px);
  padding: clamp(26px, 2.8vw, 38px) var(--gutter);
}

h2 {
  margin: 0;
  font-size: clamp(17px, 1.5vw, 21px);
  font-weight: 600;
  line-height: 1;
  /* Optical centering: the box includes descender space below the baseline. */
  padding-bottom: 0.12em;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.marquee {
  overflow: hidden;
  /* Room above and below so nudged logos (Thyme's "Care", Amazon's smile) are never clipped;
     the negative margin keeps the band's spacing unchanged. */
  padding-block: 16px;
  margin-block: -16px;
  /* Long, even fades so a logo eases out at the right and in at the left instead of being sliced. */
  --fade: clamp(80px, 10%, 120px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 var(--fade), #000 calc(100% - var(--fade)), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 var(--fade), #000 calc(100% - var(--fade)), transparent);
}

.track {
  display: flex;
  width: max-content;
  align-items: center;
  /* First logo starts exactly where the left fade ends (groups carry their own left gap). */
  padding-left: max(0px, calc(var(--fade) - clamp(30px, 3vw, 44px)));
}

.group {
  display: flex;
  align-items: center;
  gap: clamp(30px, 3vw, 44px);
  margin: 0;
  padding: 0 0 0 clamp(30px, 3vw, 44px);
  list-style: none;
}

.group li { flex: none; display: flex; }

/* Optical alignment: per-logo nudges (generated from site.config.mjs) */
.group .m-amazon { translate: 0 20%; }
.group .m-thyme-care { translate: 0 10%; }
.group .m-oscar { translate: 0 7%; }
.group .m-davita { translate: 0 -6%; }
.group .m-cityblock { translate: 0 9%; }
.group .m-cedar { translate: 0 -4%; }
.group .m-ramp { translate: 0 9%; }
.group .m-apple { translate: 0 -8%; }
.group .m-google { translate: 0 9%; }
/* end optical alignment */

.group-label {
  padding: 5px 12px;
  border-radius: 999px;
  background: #ece5da;
  color: #6f6a62;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.group img,
.group svg { display: block; }

.group svg { color: var(--ink); }

.js .track { animation: scroll var(--duration, 90s) linear infinite; }
/* Keyboard focus holds the strip so a focused link stays put; hover does not. */
.js .marquee:has(:focus-visible) .track { animation-play-state: paused; }

@keyframes scroll {
  to { transform: translateX(calc(-1 * var(--shift, 50%))); }
}

footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin: 0 var(--gutter);
  padding-block: clamp(26px, 2.6vw, 34px);
  border-top: 1px solid var(--line);
  color: #7a756e;
  font-family: var(--small);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0;
}

footer a { color: inherit; text-decoration: none; }
footer a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* Document pages (privacy) */

.doc-header { padding: clamp(28px, 3.4vw, 48px) var(--gutter) 0; }
.doc {
  flex: 1;
  display: block;
  width: 100%;
  max-width: calc(42rem + 2 * var(--gutter));
  padding: clamp(40px, 6vw, 88px) var(--gutter) clamp(56px, 7vw, 104px);
  color: #3a4250;
  font: 400 17px/1.65 var(--display);
}
.doc h1 { margin: 0; color: var(--ink); font: 500 clamp(36px, 4.4vw, 56px)/1.05 var(--display); letter-spacing: -0.035em; }
.doc-meta { margin: 14px 0 40px; color: #7a756e; font-size: 15px; }
.doc h2 { margin: 44px 0 12px; color: var(--ink); font: 500 22px/1.25 var(--display); letter-spacing: -0.015em; }
.doc h3 { margin: 24px 0 8px; color: var(--ink); font: 500 17px/1.4 var(--display); }
.doc p, .doc ul { margin: 0 0 16px; }
.doc ul { padding-left: 1.2em; }
.doc li { margin-bottom: 10px; }
.doc strong { color: var(--ink); font-weight: 500; }
.doc a { color: var(--ink); text-decoration-color: rgba(232, 65, 42, .55); text-underline-offset: 3px; }
.doc a:hover { color: var(--coral); }
.doc code { font: 15px/1 ui-monospace, Menlo, monospace; }

/* Small screens */

@media (max-width: 760px) {
  .network-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    padding-block: 24px;
  }
  .marquee {
    --fade: 40px;
  }
  .track {
    padding-left: var(--fade);
  }
  .group { gap: 28px; padding-left: 28px; zoom: .88; }
}

@media (max-width: 520px) {
  .hero { min-height: min(640px, 76svh); }
  .hero-inner { gap: 32px; padding-bottom: 32px; }
  .wordmark { font-size: 30px; }
  h1 { font-size: clamp(38px, 11.4vw, 54px); line-height: 1.04; letter-spacing: -0.04em; }
  .pill {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 16px 12px 10px;
    border-radius: 18px;
    font-size: 13px;
    letter-spacing: -0.01em;
  }
  .pill-text { padding-left: 4px; border-left: 0; }
  .pill-text img { width: 16px; height: 16px; }
  footer { padding-block: 24px; font-size: 13px; }
  .doc { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .field { transition: none; }
  .js .track { animation: none; }
  .marquee { overflow-x: auto; scrollbar-width: none; }
}
