/* Roboto latin subset, Apache-2.0, served from this site. */
@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/roboto-latin-400.woff2") format("woff2");
}

@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/roboto-latin-500.woff2") format("woff2");
}

@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/roboto-latin-700.woff2") format("woff2");
}

:root {
  --primary: #6750a4;
  --on-primary: #ffffff;
  --primary-container: #eaddff;
  --on-primary-container: #21005d;
  --surface: #fffbfe;
  --surface-low: #f7f2fa;
  --page: #e8e4f0;
  --on-surface: #1c1b1f;
  --muted: #49454f;
  --outline: #cac4d0;
  --shadow: 0 28px 60px rgba(103, 80, 164, 0.18);
  --radius: 28px;
  --max: 1120px;
  --font: "Roboto", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

#promise, #how, #details, #screens, #good-for, #faq { scroll-margin-top: 84px; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--on-surface);
  background: var(--page);
  line-height: 1.55;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--primary); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px 28px;
  background: rgba(232, 228, 240, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(103, 80, 164, 0.12);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--on-primary-container);
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.brand { min-width: 0; }

.mark {
  height: 44px;
  width: auto;
  display: block;
}

.hero-logo {
  height: 96px;
  width: auto;
  margin: 0 0 16px;
}

.header-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-left: 8px;
  min-width: 0;
}

.header-nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}

.header-nav a:hover { color: var(--primary); }

.soon-pill {
  margin: 0 0 0 auto;
  background: var(--primary);
  color: var(--on-primary);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 56px 28px 24px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.82rem;
}

h1 {
  margin: 0 0 16px;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 700;
  color: var(--on-primary-container);
}

.lede {
  font-size: 1.15rem;
  margin: 0 0 12px;
}

.hero-copy p { margin-top: 0; }

.hero-points {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.hero-points li {
  background: var(--surface);
  border-radius: 14px;
  padding: 10px 14px;
  font-weight: 500;
}

.hero-shot {
  margin: 0;
}

.hero-shot img,
.shot-grid img {
  width: min(100%, 340px);
  margin-inline: auto;
  border-radius: 36px;
  box-shadow: var(--shadow);
}

.hero-shot figcaption,
.shot-grid figcaption {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.92rem;
  text-align: center;
}

.shot-stack picture[hidden] { display: none; }

.shot-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.shot-tabs button {
  font: inherit;
  font-weight: 500;
  font-size: 0.88rem;
  border: 0;
  background: var(--surface);
  color: var(--muted);
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
}

.shot-tabs button[aria-selected="true"] {
  background: var(--primary);
  color: var(--on-primary);
}

.shot-tabs button:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.band,
.details,
.screens {
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px 28px 12px;
}

.section-intro {
  max-width: 640px;
  margin-bottom: 22px;
}

h2 {
  margin: 0 0 8px;
  font-size: 1.8rem;
  letter-spacing: -0.02em;
  color: var(--on-primary-container);
}

.section-intro p,
.scope-note p,
.close p {
  margin: 0;
  color: var(--muted);
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.steps li,
.detail-grid article,
.scope-note {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 20px 18px 18px;
}

.steps h3,
.detail-grid h3,
.scope-note h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.steps p { margin: 0; color: var(--muted); }

.steps li::before {
  content: counter(step);
  counter-increment: step;
}

.steps { counter-reset: step; }

.steps li {
  position: relative;
  padding-top: 48px;
}

.steps li::before {
  position: absolute;
  top: 16px;
  left: 18px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary-container);
  color: var(--on-primary-container);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.detail-grid ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.detail-grid li + li { margin-top: 8px; }

.detail-grid strong { color: var(--on-surface); font-weight: 500; }

.scope-note {
  margin-top: 14px;
  background: var(--primary-container);
}

.scope-note h3,
.scope-note p { color: var(--on-primary-container); }

.shot-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px 18px;
}

.shot-grid figure { margin: 0; }

.shot-grid figcaption strong {
  display: block;
  color: var(--on-surface);
  font-weight: 700;
  margin-bottom: 2px;
}

.close {
  max-width: 720px;
  margin: 36px auto 12px;
  padding: 36px 28px;
  text-align: center;
}

.close .soon-pill { margin: 0 auto 14px; display: inline-block; }

.close h2 { margin-bottom: 8px; }

.site-footer {
  margin-top: 12px;
  padding: 28px;
  text-align: center;
  color: var(--muted);
  border-top: 1px solid rgba(103, 80, 164, 0.12);
}

.site-footer p { margin: 0; }

.site-footer p:first-child {
  color: var(--on-primary-container);
  font-weight: 700;
  margin-bottom: 4px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin: 8px 0;
  font-weight: 500;
}

.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }

.store-badges { margin-top: 22px; }

.store-note {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.92rem;
}

.badge-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.badge-row img { width: auto; }

.hero .badge-row img,
.close .badge-row img {
  filter: grayscale(1);
  opacity: 0.55;
}

.badge-row .app-store { height: 40px; }

.badge-row .google-play { height: 60px; }

.store-badges.center { text-align: center; }

.store-badges.center .badge-row { justify-content: center; }

.good-for,
.faq-list,
.pick-grid {
  display: grid;
  gap: 14px;
}

.good-for { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

.good-for article,
.faq-list article,
.faq-list details,
.pick-grid article,
.example {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 20px 18px 18px;
}

.good-for h3,
.faq-list h3,
.faq-list summary,
.pick-grid h2,
.example h2 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  letter-spacing: 0;
}

.good-for p,
.faq-list p,
.pick-grid p,
.example p { margin: 0; color: var(--muted); }

.faq-list { margin-top: 8px; }

.faq-list summary {
  cursor: pointer;
}

.faq-list summary::-webkit-details-marker { color: var(--primary); }

.faq-list details p { margin-top: 10px; }

.pick-grid { grid-template-columns: 1fr 1fr; margin: 8px 0 22px; }

.example { margin: 8px 0 22px; }

.matrix-wrap,
.pair-wrap {
  overflow-x: auto;
  background: var(--surface);
  border-radius: var(--radius);
  -webkit-overflow-scrolling: touch;
}

.matrix,
.pair {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.matrix {
  width: max-content;
  min-width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.matrix caption,
.pair caption {
  caption-side: bottom;
  text-align: left;
  color: var(--muted);
  font-size: 0.88rem;
  padding: 14px 16px 16px;
}

.matrix th,
.matrix td,
.pair th,
.pair td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(202, 196, 208, 0.7);
}

.matrix th,
.matrix td { min-width: 8.5rem; }

.matrix thead th {
  position: relative;
  background: var(--surface);
  z-index: 1;
}

.matrix thead th:first-child,
.matrix th[scope="row"] {
  position: sticky;
  left: 0;
  background: var(--surface);
  width: 12rem;
  min-width: 12rem;
  max-width: 12rem;
  z-index: 3;
}

.matrix .ok-donkey {
  position: sticky;
  left: 12rem;
  width: 9.5rem;
  min-width: 9.5rem;
  max-width: 9.5rem;
  background: var(--primary-container);
  color: var(--on-primary-container);
  font-weight: 700;
  z-index: 2;
  box-shadow: 8px 0 12px rgba(28, 27, 31, 0.06);
}

.matrix thead .ok-donkey { z-index: 4; }

.pair th[scope="row"] { font-weight: 500; color: var(--on-surface); }

.compare {
  max-width: var(--max);
  margin: 0 auto;
  padding: 36px 28px 12px;
}

.compare > .lede { max-width: 68ch; }

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.92rem;
}

.crumbs a { text-decoration: none; }

.crumbs [aria-current="page"] { color: var(--on-surface); font-weight: 500; }

.related { margin: 22px 0 0; }

.compare-pick {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  margin: 22px 0 8px;
}

.compare-pick label {
  font-weight: 700;
  color: var(--on-primary-container);
}

.compare-pick select {
  font: inherit;
  color: var(--on-surface);
  background: var(--surface);
  border: 1px solid var(--outline);
  border-radius: 12px;
  padding: 10px 14px;
  min-width: min(100%, 16rem);
}

.compare-pick button {
  font: inherit;
  font-weight: 700;
  color: var(--on-primary);
  background: var(--primary);
  border: 0;
  border-radius: 12px;
  padding: 10px 16px;
  cursor: pointer;
}

.source-note {
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.privacy-banner {
  background: var(--primary-container);
  border-radius: var(--radius);
  padding: 28px 26px;
  margin: 8px 0 18px;
}

.privacy-banner h2 {
  margin: 0 0 10px;
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  color: var(--on-primary-container);
}

.privacy-banner p,
.privacy-banner li { color: var(--on-primary-container); }

.privacy-banner p {
  margin: 0 0 12px;
  font-size: 1.08rem;
}

.privacy-banner ul {
  margin: 0 0 12px;
  padding-left: 1.2rem;
}

.privacy-banner li + li { margin-top: 6px; }

.privacy-banner a {
  color: var(--on-primary-container);
  font-weight: 700;
}

.matrix tr.spotlight th,
.matrix tr.spotlight td,
.pair tr.spotlight th,
.pair tr.spotlight td {
  background: var(--on-primary-container);
  color: var(--on-primary);
  font-weight: 700;
}

.matrix tr.spotlight .ok-donkey {
  background: var(--primary);
  color: var(--on-primary);
}

.legal {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 28px 72px;
}

.legal h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
}

.legal h2 {
  font-size: 1.25rem;
  margin: 2rem 0 0.5rem;
}

.legal p,
.legal li {
  color: var(--muted);
}

.legal p { margin: 0 0 12px; }

.legal ul {
  margin: 0 0 12px;
  padding-left: 1.2rem;
}

.legal li + li { margin-top: 8px; }

.legal .updated {
  margin: 0 0 12px;
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.82rem;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.story {
  max-width: var(--max);
  margin: 0 auto;
  padding: 36px 28px 12px;
}

.story-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 36px;
  align-items: center;
}

.hero-picture {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 6px;
  align-items: end;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 16px 12px 8px;
  margin: 0;
  box-shadow: var(--shadow);
}

.hero-picture figcaption {
  grid-column: 1 / -1;
  margin: 8px 0 4px;
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
}

.hero-dose {
  text-align: center;
  padding-bottom: 8px;
}

.hero-dose svg {
  width: 52px;
  height: 52px;
  margin: 0 auto 4px;
}

.hero-dose strong {
  display: block;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  color: var(--on-primary-container);
}

.hero-dose span {
  display: block;
  color: var(--muted);
  font-size: 0.92rem;
}

.pip-art {
  width: min(100%, 240px);
  height: auto;
}

.cast,
.dose-pair,
.evening-grid {
  display: grid;
  gap: 14px;
}

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

.dose-pair { grid-template-columns: 1fr 1fr; }

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

.cast article,
.dose-card,
.evening-grid article,
.story-steps > li {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 18px;
}

.cast h3,
.dose-card h3,
.evening-grid h3,
.story-steps h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  letter-spacing: 0;
}

.cast p:not(.pill),
.dose-card p:not(.dose-time),
.evening-grid p,
.story-steps > li > div > p { margin: 0; color: var(--muted); }

.cast article {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  column-gap: 16px;
  row-gap: 6px;
  align-items: center;
  text-align: left;
}

.cast svg {
  grid-column: 1;
  grid-row: 1 / span 3;
  width: 104px;
  height: 128px;
  margin: 0;
  justify-self: center;
  align-self: center;
}

.cast h3,
.cast .pill,
.cast article p:not(.pill) {
  grid-column: 2;
  text-align: left;
  justify-self: start;
}

.cast h3,
.cast .pill { margin: 0; }

.pill {
  display: inline-block;
  margin: 0 0 10px;
  background: var(--primary-container);
  color: var(--on-primary-container);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 4px 10px;
}

.dose-time {
  margin: 0 0 4px;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--on-primary-container);
}

.dose-card ul,
.story-steps ul {
  margin: 10px 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.dose-card li + li,
.story-steps li li + li { margin-top: 6px; }

.story-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.story-steps > li {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: center;
}

.panel-art svg.scene {
  width: 100%;
  height: auto;
  display: block;
}

.phones {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.handset {
  width: 148px;
  background: #1c1b1f;
  border-radius: 18px;
  padding: 7px 7px 8px;
  color: #fff;
}

.handset.is-alarm {
  box-shadow: 0 0 0 3px var(--primary);
}

.handset.is-quiet { opacity: 0.45; }

.screen {
  background: var(--surface);
  color: var(--on-surface);
  border-radius: 12px;
  min-height: 112px;
  padding: 10px;
}

.handset.is-alarm .screen { background: var(--primary-container); }

.handset.is-done .screen { background: var(--surface-low); }

.screen p { margin: 0; color: var(--on-surface); }

.screen-time {
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--primary);
}

.screen-title {
  margin-top: 6px !important;
  font-weight: 700;
  font-size: 0.92rem;
  line-height: 1.25;
}

.screen-who,
.screen-count {
  margin-top: 4px !important;
  font-size: 0.78rem;
  color: var(--muted);
}

.handset-name {
  margin: 6px 0 0;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
}

.minute-rail {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
}

.minute-rail li {
  background: var(--surface-low);
  border-radius: 14px;
  padding: 10px;
  border-top: 4px solid var(--primary);
}

.minute-rail li.is-backup {
  background: var(--primary-container);
  border-top-color: var(--on-primary-container);
}

.minute-rail time {
  display: block;
  font-weight: 700;
  color: var(--on-primary-container);
}

.minute-rail span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.82rem;
}

.minute-rail li.is-backup span { color: var(--on-primary-container); }

.evening-grid svg.scene {
  width: 100%;
  height: auto;
  margin-bottom: 8px;
}

.story .section-intro { margin-top: 28px; }

.story-note { margin-top: 22px; }

@media (max-width: 980px) {
  .hero,
  .steps,
  .shot-grid { grid-template-columns: 1fr 1fr; }
  .hero { align-items: start; }
  .story-steps > li { grid-template-columns: 1fr; }
  .minute-rail { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 720px) {
  .site-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 12px;
    padding: 12px 16px;
  }
  .brand { order: 1; flex: 1 1 auto; min-width: 0; }
  .site-header .soon-pill {
    order: 2;
    margin: 0;
    padding: 6px 10px;
    letter-spacing: 0.02em;
  }
  .header-nav {
    order: 3;
    flex: 1 0 100%;
    width: 100%;
    margin: 0;
    gap: 8px 14px;
  }
  .hero,
  .steps,
  .detail-grid,
  .shot-grid,
  .story-hero,
  .cast,
  .dose-pair,
  .evening-grid { grid-template-columns: 1fr; }
  .minute-rail { grid-template-columns: 1fr 1fr; }
  .hero,
  .band,
  .details,
  .screens,
  .compare,
  .legal,
  .story { padding-left: 16px; padding-right: 16px; }
  .hero-picture { grid-template-columns: 1fr; justify-items: center; }
  .pip-art { width: min(100%, 160px); }
  .pick-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 28px; }
  .hero-shot img,
  .shot-grid img { width: min(100%, 300px); }
}
