@font-face {
  font-family: "Fraunces";
  src: url("/assets/fonts/fraunces-display.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
  font-optical-sizing: auto;
}

@font-face {
  font-family: "Fraunces";
  src: url("/assets/fonts/fraunces-display-italic.woff2") format("woff2");
  font-weight: 400 600;
  font-style: italic;
  font-display: swap;
  font-optical-sizing: auto;
}

:root {
  --ink: #241B3A;
  --ink-2: #3D3358;
  --muted: #6F6690;
  --card: #FDFCFF;
  --surface: #F3EFFB;
  --line: #E7E0F3;
  --accent: #7A52DD;
  --accent-soft: #ECE5FF;
  --rose: #D1477A;
  --amber: #C9791F;
  --teal: #2FA989;
  --log-pink: #FFD6FF;
  --lavender: #C8B6FF;
  --sky: #BBD0FF;
  --mint: #98F5E1;
  --peach: #FDE4CF;

  --page-log: #FFD6FF;
  --page-report: #C8B6FF;
  --page-track: #BBD0FF;
  --page-care: #FDE4CF;
  --page-plan: #98F5E1;

  --display: "Fraunces", Georgia, "Iowan Old Style", serif;
  --serif: "Fraunces", Georgia, "Iowan Old Style", "Times New Roman", Times, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Avenir Next", "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;

  --radius-card: 22px;
  --radius-inner: 16px;
  --radius-pill: 999px;
  --radius-device: 44px;
  --shadow: 0 6px 22px rgba(36, 27, 58, 0.11);
  --shadow-lift: 0 10px 34px rgba(36, 27, 58, 0.14);
  --measure: 58ch;

  --ease-out: cubic-bezier(.2, .7, .2, 1);
  --dur: 560ms;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--surface);
  background-image:
    radial-gradient(60rem 40rem at 12% -8%, rgba(255, 214, 255, 0.55), transparent 62%),
    radial-gradient(52rem 36rem at 92% 6%, rgba(187, 208, 255, 0.6), transparent 60%),
    radial-gradient(46rem 34rem at 50% 108%, rgba(152, 245, 225, 0.4), transparent 62%),
    linear-gradient(172deg, #F8F5FE 0%, #ECE5FF 38%, #DED3FB 72%, #D3DEFC 100%);
  background-attachment: fixed;
  min-height: 100vh;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--card);
  color: var(--ink);
  padding: 12px 18px;
  border-radius: 0 0 var(--radius-inner) 0;
  font-weight: 700;
  z-index: 10;
}

.skip-link:focus {
  left: 0;
}

.wrap {
  width: min(100% - 2.5rem, 68rem);
  margin-inline: auto;
}

.wrap--narrow {
  width: min(100% - 2.5rem, 48rem);
}

/* ---------- Focus ---------- */

a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px var(--accent-soft);
  border-radius: 4px;
}

/* ---------- Header ---------- */

.site-header {
  padding: 1.6rem 0 0;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

/* A 360 or 375 wide phone has 159px left beside the brand and the pill is 142 — the 1.25rem
   gap alone was what pushed it onto its own line. */
@media (max-width: 26rem) {
  .site-header .wrap {
    gap: 0.6rem;
  }
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: inherit;
  margin-right: auto;
}

.brand__mark {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.brand__name {
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.005em;
  line-height: 1.1;
  display: block;
}

.brand__eyebrow {
  display: block;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 3px;
}

/* Six items, so 2, 3 and 6 all divide and nothing is ever left alone on a
   row. Two at the bottom because "Buy me a coffee" is four words: three
   columns needs 286px, which does not fit a 320px screen.
   `justify-items` matters twice over. Left at its default the pill stretches
   to its column — as wide as the widest label in that column — stranding short
   text on the left. But `start` then hugs the label against the column's left
   edge, which reads as ragged gaps once the rows wrap. `center` does both jobs:
   the pill hugs its own label and sits centred in its column, so the columns
   line up. Do not try `width: 100%` with `space-between` — the brand shares
   the flex line, so the nav overflows and the last column is cut off. */
.site-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, auto));
  justify-content: start;
  justify-items: center;
  gap: 0.25rem 0.3rem;
}

@media (min-width: 23rem) {
  .site-nav {
    grid-template-columns: repeat(3, minmax(0, auto));
  }
}

@media (min-width: 30rem) {
  .site-nav {
    gap: 0.3rem 0.4rem;
  }
}

/* 62rem, not 60: one line has to hold the brand, six nav items and the Android pill, which
   measures 981px. At 60rem the pill wrapped below and sat under the brand with a hole beside
   it. Kept in step with the header rule below. */
@media (min-width: 62rem) {
  .site-nav {
    grid-template-columns: repeat(6, minmax(0, auto));
    justify-content: end;
  }
}

.site-nav a {
  color: var(--ink);
  text-align: center;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.8rem;
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius-pill);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (min-width: 30rem) {
  .site-nav a {
    font-size: 0.95rem;
    padding: 0.45rem 0.9rem;
  }
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: rgba(253, 252, 255, 0.85);
}

.site-nav a[aria-current="page"] {
  background: var(--card);
  box-shadow: var(--shadow);
}

/* Temporary: the Android closed-testing call to action, stamped by build-chrome.py. It is a
   sibling of .site-nav rather than a seventh item in it, because six is what divides into the
   2, 3 and 6 column counts above without stranding one on its own row. Filled rather than a
   plain link so it reads as the one thing on the page asking to be pressed. Goes with the test. */
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  /* Hugs its own label. flex-basis: 100% stretched it into a full-width purple bar, which
     reads as a site banner rather than a button. */
  flex: 0 0 auto;
  color: #fff;
  background: var(--accent);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow);
  white-space: nowrap;
}

.nav-cta__dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--mint);
  flex: 0 0 auto;
}

/* A slow breath rather than a blink — a ring pulse reads as an unread badge, and a hard
   on/off reads as an error light. Blur and spread only, so nothing reflows. */
@keyframes nav-cta-dot {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(152, 245, 225, 0);
  }
  50% {
    box-shadow: 0 0 7px 2px rgba(152, 245, 225, 0.85);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .nav-cta__dot {
    animation: nav-cta-dot 3.2s var(--ease-out) infinite;
  }
}

.nav-cta:hover,
.nav-cta:focus-visible {
  background: #6842C8;
  box-shadow: var(--shadow-lift);
}

.nav-cta[aria-current="page"] {
  background: var(--ink);
}

@media (min-width: 30rem) {
  .nav-cta {
    font-size: 0.9rem;
    padding: 0.55rem 1.15rem;
  }
}

/* Below the desktop breakpoint the pill rides on the brand's line instead of trailing the
   wrapped nav: it is temporary, it is the one thing on the page asking to be pressed, and
   beside the logo is where the eye already is. The nav takes a full line of its own so the
   pill never lands mid-nav at an in-between width. */
@media (max-width: 61.99rem) {
  .site-nav {
    order: 1;
    flex: 1 0 100%;
  }
}

/* ---------- The five-colour rule ---------- */

.page-rule {
  height: 4px;
  margin-top: 1rem;
  background: linear-gradient(
    to right,
    var(--page-log) 0 20%,
    var(--page-report) 20% 40%,
    var(--page-track) 40% 60%,
    var(--page-care) 60% 80%,
    var(--page-plan) 80% 100%
  );
}

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

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 500;
  margin: 0;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.75rem, 2rem + 3.6vw, 5rem);
  line-height: 1;
  letter-spacing: -0.022em;
  font-variation-settings: "opsz" 144;
}

h1 em {
  font-style: italic;
  font-weight: 400;
}

h2 {
  font-size: clamp(1.85rem, 1.4rem + 1.8vw, 2.9rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  font-variation-settings: "opsz" 96;
}

h3 {
  font-size: 1.35rem;
  line-height: 1.2;
  font-weight: 600;
  font-variation-settings: "opsz" 48;
}

p {
  margin: 0;
}

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

.lede {
  font-family: var(--sans);
  font-size: clamp(1.15rem, 1rem + .6vw, 1.35rem);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 100%;
}

.eyebrow {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.pull-quote {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.25rem, 1rem + 1vw, 1.7rem);
  line-height: 1.35;
  color: var(--ink);
}

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

main {
  padding-bottom: 1rem;
}

/* The floor is what a phone gets, and it was 3rem — nearly the height of a line of body
   copy between every section, on the screen with the least room to spare. The 5rem ceiling
   is unchanged, so nothing about the desktop rhythm moves. */
section {
  margin-top: clamp(1.75rem, 6vw, 5rem);
}

.section-head {
  max-width: 40rem;
  margin-bottom: clamp(1.1rem, 3vw, 1.8rem);
  display: grid;
  gap: 0.7rem;
}

.section-head p.lede-small {
  color: var(--ink-2);
  font-size: 1.02rem;
}

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

.hero {
  margin-top: 0;
  padding: clamp(1.25rem, 5vw, 4.5rem) 0 0;
  display: grid;
  gap: clamp(1.25rem, 4vw, 2.4rem);
  grid-template-columns: minmax(0, 1fr);
  justify-items: start;
  align-items: center;
}

/* The copy keeps a reading measure, which left the right third of a desktop wrap empty. The
   download card moves into that space rather than sitting under a short column of text. No
   device shot here — the five-page tour below already shows the app. */
.hero__cta {
  display: grid;
  gap: 1.5rem;
  justify-items: start;
  width: 100%;
  max-width: var(--measure);
  container-type: inline-size;
}

@media (min-width: 62rem) {
  .hero {
    grid-template-columns: minmax(0, 1.15fr) minmax(20rem, 0.85fr);
    gap: clamp(2rem, 5vw, 4rem);
    align-items: end;
  }
}

/* inline-block so the Android sentence moves to its own line whole, rather than breaking
   across the middle of the link. */
.launch__android {
  display: inline-block;
}

.hero__copy {
  display: grid;
  gap: 1.5rem;
  justify-items: start;
  width: 100%;
  max-width: var(--measure);
  container-type: inline-size;
}

/* ---------- Pills ---------- */

/* Two equal columns rather than two content-sized ones: "Nothing collected" is twice the
   width of "Free", so `auto` left a ragged block hugging the left of a wide gap. 1fr makes
   the four read as one square block across the column. */
.pill-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  /* .hero__copy is justify-items: start, so without this the row shrinks to max-content and
     the 1fr columns both collapse to the width of "Nothing collected". */
  justify-self: stretch;
}

/* Once there is room for all four on one line they go back to hugging their own labels —
   stretched across a wide column they read as a banner rather than as four small facts. */
@container (min-width: 30rem) {
  .pill-row {
    grid-auto-flow: column;
    grid-template-columns: none;
    justify-content: start;
  }
}

.pill {
  display: block;
  text-align: center;
  background: var(--card);
  color: var(--ink);
  border-radius: var(--radius-pill);
  padding: 0.4rem 0.95rem;
  font-size: 0.83rem;
  font-weight: 700;
  box-shadow: var(--shadow);
}

/* ---------- Launch block ---------- */

.launch {
  display: grid;
  gap: 0.9rem;
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  padding: clamp(1.35rem, 3vw, 1.9rem);
  max-width: 100%;
  width: 100%;
}

.launch__note {
  color: var(--muted);
  font-size: 0.95rem;
}

.launch__actions {
  margin-top: 0.3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
}

.badge img {
  display: block;
}

/* ---------- Cards (shared) ---------- */

.card {
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  padding: clamp(1.35rem, 3vw, 1.9rem);
}

.card--status {
  display: grid;
  gap: 0.75rem;
  max-width: 100%;
  width: 100%;
}

.card--status h2 {
  font-size: 1.22rem;
}

.card p + p {
  margin-top: 0.85rem;
}

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

.grid {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 56rem) {
  .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.grid .card {
  display: grid;
  gap: 0.6rem;
  align-content: start;
}

.chip {
  justify-self: start;
  display: inline-block;
  background: var(--accent-soft);
  color: var(--ink);
  border-radius: var(--radius-pill);
  padding: 0.28rem 0.8rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.chip--pink { background: var(--log-pink); }
.chip--lavender { background: var(--lavender); }
.chip--sky { background: var(--sky); }
.chip--mint { background: var(--mint); }
.chip--peach { background: var(--peach); }

.card p {
  color: var(--muted);
}

.card h3 + p,
.card h2 + p {
  color: var(--muted);
}

.card--plain p {
  color: var(--ink);
}

/* Chip text sits on a page tint and must clear 4.5:1 — .card p and
   .about-block p both outrank the base .chip rule on specificity, so the
   override needs to match that, not just repeat it. */
.card .chip,
.about-block .chip,
.refusal .chip,
.tourcard .chip {
  color: var(--ink);
}

/* ---------- Refusals ("And that is all") ---------- */

.refusals {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: repeat(1, 1fr);
}

@media (min-width: 40rem) {
  .refusals {
    grid-template-columns: repeat(2, 1fr);
  }
  .refusal--lead {
    grid-column: 1 / -1;
  }
}

@media (min-width: 64rem) {
  .refusals {
    grid-template-columns: 1.15fr 1fr 1fr;
    grid-template-rows: auto auto;
  }
  .refusal--lead {
    grid-column: 1;
    grid-row: 1 / 3;
  }
}

.refusal {
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  padding: clamp(1.35rem, 3vw, 1.75rem);
  display: grid;
  gap: 0.55rem;
  align-content: start;
}

.refusal h3 {
  font-family: var(--display);
}

.refusal p {
  color: var(--muted);
}

.refusal--lead p {
  max-width: var(--measure);
}

.refusal--lead h3 {
  font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.1rem);
}

/* ---------- Lists ---------- */

.plain-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.plain-list li {
  position: relative;
  padding-left: 1.4rem;
  color: var(--muted);
}

.plain-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62rem;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
}

.plain-list strong {
  color: var(--ink);
}

/* ---------- Device bezels ---------- */

.phone,
.tablet,
.laptop {
  position: relative;
  background: var(--ink);
  box-shadow: var(--shadow-lift);
  isolation: isolate;
}

.phone img,
.tablet img,
.laptop img {
  display: block;
  width: 100%;
  height: auto;
}

.phone {
  width: min(100%, 15rem);
  aspect-ratio: 640 / 1391;
  border-radius: var(--radius-device);
  padding: 12px;
}

.phone::after {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 34px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
  pointer-events: none;
}

.phone img {
  height: 100%;
  border-radius: 34px;
  object-fit: cover;
}

.tablet {
  width: 100%;
  border-radius: 26px;
  padding: 10px;
}

.tablet::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 17px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
  pointer-events: none;
}

.tablet img {
  border-radius: 17px;
}

.laptop {
  width: 100%;
  border-radius: 14px;
  padding: 10px;
}

.laptop::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 6px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
  pointer-events: none;
}

.laptop img {
  border-radius: 6px;
}

.laptop__lid {
  width: 100%;
  height: 10px;
  margin-top: -1px;
  border-radius: 0 0 8px 8px;
  background: linear-gradient(180deg, var(--ink), #17112a);
}

/* ---------- The tour ---------- */

.tourcard {
  display: grid;
  position: relative;
}

.tourcard__radio {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.tourcard__tabs {
  grid-row: 1;
  grid-column: 1;
  display: flex;
  gap: 0.35rem;
  padding: 0 clamp(0.6rem, 2vw, 1.4rem);
}

@media (max-width: 35rem) {
  .tourcard__tabs {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.25rem;
  }
}

.tourcard__tab {
  flex: 1;
  display: block;
  text-align: center;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--ink);
  padding: 0.65rem 0.4rem 0.55rem;
  border-radius: 14px 14px 0 0;
  cursor: pointer;
  transform: translateY(6px);
  transition: transform 0.2s var(--ease-out), background-color 0.2s var(--ease-out);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 35rem) {
  .tourcard__tab {
    font-size: 0.68rem;
    padding: 0.55rem 0.15rem;
  }
}

.tourcard__tab--log { background: color-mix(in srgb, var(--page-log) 55%, transparent); }
.tourcard__tab--report { background: color-mix(in srgb, var(--page-report) 55%, transparent); }
.tourcard__tab--track { background: color-mix(in srgb, var(--page-track) 55%, transparent); }
.tourcard__tab--care { background: color-mix(in srgb, var(--page-care) 55%, transparent); }
.tourcard__tab--plan { background: color-mix(in srgb, var(--page-plan) 55%, transparent); }

#tour-log:checked ~ .tourcard__tabs .tourcard__tab--log,
#tour-report:checked ~ .tourcard__tabs .tourcard__tab--report,
#tour-track:checked ~ .tourcard__tabs .tourcard__tab--track,
#tour-care:checked ~ .tourcard__tabs .tourcard__tab--care,
#tour-plan:checked ~ .tourcard__tabs .tourcard__tab--plan {
  transform: translateY(0);
  background: var(--tint);
}

#tour-log:checked ~ .tourcard__tabs .tourcard__tab--log { --tint: var(--page-log); }
#tour-report:checked ~ .tourcard__tabs .tourcard__tab--report { --tint: var(--page-report); }
#tour-track:checked ~ .tourcard__tabs .tourcard__tab--track { --tint: var(--page-track); }
#tour-care:checked ~ .tourcard__tabs .tourcard__tab--care { --tint: var(--page-care); }
#tour-plan:checked ~ .tourcard__tabs .tourcard__tab--plan { --tint: var(--page-plan); }

.tourcard__tab:hover {
  transform: translateY(2px);
}

#tour-log:focus-visible ~ .tourcard__tabs .tourcard__tab--log,
#tour-report:focus-visible ~ .tourcard__tabs .tourcard__tab--report,
#tour-track:focus-visible ~ .tourcard__tabs .tourcard__tab--track,
#tour-care:focus-visible ~ .tourcard__tabs .tourcard__tab--care,
#tour-plan:focus-visible ~ .tourcard__tabs .tourcard__tab--plan {
  outline: 1px solid var(--accent);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.tourcard__panel {
  grid-row: 2;
  grid-column: 1;
  border-radius: 0 var(--radius-card) var(--radius-card) var(--radius-card);
  box-shadow: var(--shadow);
  padding: clamp(1.5rem, 4vw, 2.6rem);
  display: grid;
  gap: 1.6rem;
  align-items: center;
  grid-template-columns: minmax(0, 1fr);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  position: relative;
}

/* Stacked, the phone was landing at a different height on every tab. All five panels share
   one grid cell, so they are all as tall as the longest copy; the default `align-content:
   stretch` then hands each panel's leftover space to its two auto rows equally, and every
   panel has a different amount of leftover. Pinning the rows to the top makes the phone sit
   at the same y on all five, which is what a tab strip has to do — the frame stays, the
   contents change. */
@media (max-width: 54.99rem) {
  .tourcard__panel {
    align-content: start;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .tourcard__panel {
    transition: opacity var(--dur) var(--ease-out);
  }
}

.tourcard__panel--log { background: color-mix(in srgb, var(--page-log) 45%, var(--card)); }
.tourcard__panel--report { background: color-mix(in srgb, var(--page-report) 45%, var(--card)); }
.tourcard__panel--track { background: color-mix(in srgb, var(--page-track) 45%, var(--card)); }
.tourcard__panel--care { background: color-mix(in srgb, var(--page-care) 45%, var(--card)); }
.tourcard__panel--plan { background: color-mix(in srgb, var(--page-plan) 45%, var(--card)); }

#tour-log:checked ~ .tourcard__panel--log,
#tour-report:checked ~ .tourcard__panel--report,
#tour-track:checked ~ .tourcard__panel--track,
#tour-care:checked ~ .tourcard__panel--care,
#tour-plan:checked ~ .tourcard__panel--plan {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Each tab walks the phone a quarter of the way across the panel, so the strip reads as one
   frame moving left to right rather than five stacked panels. At any width: the travel is
   whatever room is left beside a 15rem phone, so a narrow panel just nudges. */
.tourcard__device {
  justify-self: start;
  --slide: 0;
  margin-left: calc(var(--slide) * (100% - 15rem));
}

.tourcard__panel--report .tourcard__device { --slide: 0.25; }
.tourcard__panel--track .tourcard__device { --slide: 0.5; }
.tourcard__panel--care .tourcard__device { --slide: 0.75; }
.tourcard__panel--plan .tourcard__device { --slide: 1; }

.tourcard__copy {
  display: grid;
  gap: 0.6rem;
  align-content: start;
}

.tourcard__copy h3 {
  color: var(--ink);
}

.tourcard__copy > p {
  color: var(--ink-2);
}

.tourcard__lines {
  list-style: none;
  margin: 0.3rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}

.tourcard__lines li {
  position: relative;
  padding-left: 1.2rem;
  color: var(--ink-2);
  font-size: 0.95rem;
}

.tourcard__lines li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ink);
  opacity: 0.5;
}

/* ---------- Devices section ---------- */

.devices {
  display: grid;
  gap: 2rem;
}

.devices__stage {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 1.6rem;
}

.devices__laptop {
  width: min(100%, 46rem);
  margin-inline: auto;
}

.devices__tablet {
  width: min(60%, 16rem);
}

@media (min-width: 56.25rem) {
  .devices__stage {
    display: block;
    padding-bottom: 8rem;
  }

  .devices__tablet {
    position: absolute;
    left: 2%;
    bottom: 0;
    width: min(38%, 18rem);
  }
}

.devices > .section-head {
  margin-bottom: 0;
}

.devices__note {
  max-width: var(--measure);
  color: var(--muted);
}

/* ---------- Testers ---------- */

.testers {
  display: grid;
  gap: 1.4rem;
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 47.5rem) {
  .testers {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.tester-card {
  display: grid;
  gap: 1rem;
  align-content: space-between;
}

.tester-card .quote-figure {
  margin: 0;
  display: grid;
  gap: 0.9rem;
}

/* ---------- Questions teaser ---------- */

.teaser {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: repeat(1, 1fr);
}

@media (min-width: 45rem) {
  .teaser {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.teaser__item {
  display: grid;
  gap: 0.5rem;
  align-content: start;
  text-decoration: none;
  color: inherit;
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  padding: clamp(1.2rem, 3vw, 1.6rem);
}

.teaser__item:hover,
.teaser__item:focus-visible {
  box-shadow: var(--shadow-lift);
}

.teaser__item h3 {
  font-size: 1.15rem;
}

.teaser__item p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------- Reveal on scroll ---------- */

html.js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
}

html.js [data-reveal].is-in {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce), print {
  html.js [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- Prose (policy page) ---------- */

.prose {
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  padding: clamp(1.5rem, 4.5vw, 3rem);
}

.prose h2 {
  font-size: 1.4rem;
  margin-top: 2.4rem;
  margin-bottom: 0.7rem;
}

.prose h2:first-of-type {
  margin-top: 1.6rem;
}

.prose p,
.prose li {
  color: var(--muted);
  max-width: var(--measure);
}

.prose p + p {
  margin-top: 0.9rem;
}

.prose strong {
  color: var(--ink);
}

.prose hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2rem 0;
}

.page-head {
  padding: clamp(2rem, 5vw, 3.4rem) 0 1.4rem;
  display: grid;
  gap: 0.8rem;
}

.page-head--updates {
  padding-bottom: 0.3rem;
}

.page-head p {
  color: var(--ink-2);
  max-width: var(--measure);
}

/* ---------- Contact ---------- */

.contact {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 38rem) {
  .contact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.card--email {
  margin-bottom: 1.1rem;
}

/* /support/ promotes these to h2 for a correct heading order; the card
   heading size stays the h3 card scale so nothing looks different. */
.contact h2 {
  font-size: 1.35rem;
  line-height: 1.2;
  font-variation-settings: "opsz" 48;
}

.mailto {
  font-family: var(--display);
  font-size: clamp(1.1rem, 2.6vw, 1.45rem);
  font-weight: 600;
  word-break: break-word;
}

/* ---------- Updates ---------- */

.era {
  margin-top: clamp(1.7rem, 3.4vw, 2.3rem);
}

.era:first-of-type {
  margin-top: 0.4rem;
}

.era__head {
  margin-bottom: 0.65rem;
  display: grid;
  gap: 0.25rem;
}

.era__head h2 {
  font-size: clamp(1.4rem, 3vw, 1.85rem);
}

.era__span {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  order: -1;
}

.era__blurb,
.era__note {
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.5;
  max-width: var(--measure);
}

.era__note {
  font-size: 0.85rem;
  font-style: italic;
}

.release {
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-inner);
  box-shadow: var(--shadow);
  padding: 0;
}

.release + .release {
  margin-top: 0.6rem;
}

.release__head {
  display: grid;
  gap: 0.25rem;
  padding: 0.95rem clamp(2.4rem, 8vw, 2.8rem) 0.95rem clamp(1rem, 3vw, 1.4rem);
  position: relative;
  cursor: pointer;
  list-style: none;
  border-radius: var(--radius-inner);
}

.release__head::-webkit-details-marker {
  display: none;
}

.release__head::after {
  content: "";
  position: absolute;
  right: clamp(1rem, 3vw, 1.4rem);
  top: 1.35rem;
  width: 9px;
  height: 9px;
  border-right: 2.5px solid var(--accent);
  border-bottom: 2.5px solid var(--accent);
  transform: rotate(45deg);
  transform-origin: 70% 70%;
  transition: transform 0.15s ease;
}

.release[open] > .release__head::after {
  transform: rotate(225deg);
}

.release__head:hover {
  background: var(--accent-soft);
}

.release__head:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: -3px;
  box-shadow: inset 0 0 0 4px var(--accent-soft);
}

.release__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem 0.45rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.4;
}

.release__version,
.release__build,
.release__latest {
  border-radius: var(--radius-pill);
  padding: 0.16rem 0.6rem;
}

.release__version {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--muted);
}

.release__build {
  background: var(--mint);
  border: 1px solid var(--teal);
  color: var(--ink);
}

.release__latest {
  background: var(--accent);
  color: #fff;
}

.release__date {
  margin-left: auto;
  padding-left: 0.4rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--lavender);
  text-underline-offset: 0.42em;
}

.release__meta--bare .release__date {
  margin-left: 0;
  padding-left: 0;
}

.release__title {
  font-family: var(--display);
  font-weight: 600;
  font-variation-settings: "opsz" 48;
  font-size: clamp(1.12rem, 2.4vw, 1.32rem);
  line-height: 1.25;
}

.release__summary {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.45;
  max-width: var(--measure);
}

.release__body {
  padding: 0 clamp(1rem, 3vw, 1.4rem) 1.1rem;
}

.release__group {
  border-top: 1px solid var(--line);
  padding-top: 0.75rem;
  margin-top: 0.35rem;
}

.release__group h4 {
  font-family: var(--display);
  font-size: 0.98rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: var(--muted);
  letter-spacing: 0.01em;
}

.changes {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.change {
  display: grid;
  gap: 0.12rem;
  justify-items: start;
}

.change p {
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.45;
  max-width: var(--measure);
}

.change strong {
  color: var(--ink);
  font-size: 1rem;
}

.change .chip {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  padding: 0.1rem 0.5rem;
  color: var(--ink);
}

.shots {
  /* one column per image: a row of three shrinks to fit a phone rather than scrolling sideways */
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 11.5rem);
  gap: 0.6rem;
  margin: 0.55rem 0 0.15rem;
}

.release__body > .shots {
  margin-top: 0.75rem;
}

.shot {
  min-width: 0;
  margin: 0;
}

.shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.change .shots {
  grid-auto-columns: minmax(0, 9.5rem);
}

.shot figcaption {
  margin-top: 0.35rem;
  font-size: 0.78rem;
  line-height: 1.35;
  color: var(--muted);
}

.release:target::details-content,
.release:target > .release__body {
  content-visibility: visible;
}

.release:target > .release__head {
  background: var(--accent-soft);
}

@media print {
  .release::details-content {
    content-visibility: visible;
  }

  .release__head::after {
    display: none;
  }
}

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

.site-footer {
  margin-top: clamp(2rem, 7vw, 6rem);
  padding: clamp(1.25rem, 3vw, 2rem) 0 clamp(1.5rem, 4vw, 2.6rem);
  border-top: 1px solid rgba(255, 255, 255, 0.75);
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.6rem;
  align-items: baseline;
  justify-content: space-between;
}

.site-footer p,
.site-footer li {
  font-size: 0.9rem;
  color: var(--muted);
}

/* Nine links: 3 / 3 / 9 are the counts that divide it without an orphan. */
.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, auto));
  justify-content: start;
  gap: 0.4rem 1.2rem;
}

@media (min-width: 34rem) {
  .footer-links {
    grid-template-columns: repeat(3, minmax(0, auto));
  }
}

@media (min-width: 76rem) {
  .footer-links {
    grid-template-columns: repeat(9, minmax(0, auto));
  }
}

.footer-links a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
}

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

/* Privacy and Thanks are footer-only, so this is their sole "you are here". */
.footer-links a[aria-current="page"] {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Questions ---------- */

.faqs {
  display: block;
}

.faqs .release + .release {
  margin-top: 0.55rem;
}

.faqs .release__head {
  padding-top: 1.05rem;
  padding-bottom: 1.05rem;
}

.faqs .release__body > * + * {
  margin-top: 0.7rem;
}

.faqs .plain-list {
  margin: 0;
}

.section-more {
  margin: 1.1rem 0 0;
  font-weight: 600;
}

@media (max-width: 27rem) {
  .launch__actions {
    display: grid;
    gap: 0.6rem;
  }

  .badge {
    justify-self: center;
  }

  .more-link {
    text-align: center;
  }
}

.more-link {
  display: inline-block;
  text-decoration: none;
  font-weight: 600;
  color: var(--accent);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 0.6rem 1.1rem;
}

.more-link:hover,
.more-link:focus-visible {
  background: var(--accent-soft);
}

/* ---------- About ---------- */

.about-block > * + * {
  margin-top: 0.9rem;
}

.about-block h2 + p {
  margin-top: 0.7rem;
}

.about-block p {
  color: var(--muted);
  max-width: var(--measure);
}

.about-block strong {
  color: var(--ink);
}

.button {
  display: inline-block;
  font: inherit;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  background: var(--accent);
  border: 0;
  border-radius: var(--radius-pill);
  min-height: 3rem;
  padding: 0.8rem 1.6rem;
  margin-top: 0.2rem;
  cursor: pointer;
  box-shadow: var(--shadow);
}

.button:hover,
.button:focus-visible {
  background: #6842C8;
  box-shadow: var(--shadow-lift);
}

.promise {
  max-width: var(--measure);
  display: grid;
  gap: 1.1rem;
}

.promise h2 {
  font-size: 1.4rem;
}

.about {
  display: grid;
  gap: 0.9rem;
  padding-bottom: 1.6rem;
}

.about-block h2 {
  font-size: clamp(1.2rem, 3vw, 1.55rem);
  line-height: 1.25;
  margin-top: 0.55rem;
}

.about-block .chip {
  margin: 0;
}

.about-aside {
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
  font-weight: 600;
}

.about-aside a {
  font-family: var(--display);
  font-size: 1.05rem;
  word-break: break-word;
}

/* ---------- Thanks ---------- */

.quote-figure {
  margin: 0;
}

.about-block .quote {
  margin: 0;
}

.about-block .quote p {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(1.15rem, 1rem + 0.5vw, 1.3rem);
  line-height: 1.45;
  color: var(--ink);
  max-width: var(--measure);
}

/* ---------- Buy me a coffee ---------- */

.about-block > .coffee-cta {
  margin-top: 1.3rem;
}

.about-block > .coffee-note {
  margin-top: 0.6rem;
  font-size: 0.85rem;
}

/* ---------- Forms (/android/ and /feedback/) ---------- */

.form-card {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 1.4rem;
}

/* The global `section { margin-top: clamp(3rem, 7vw, 5rem) }` is spacing for full page sections,
   and under a page head it left a 70px hole between the intro and the first card. Scoped to
   .form-card so /updates/, whose first child is also a section, keeps its own rhythm. */
.page-head + .form-card {
  margin-top: 1.5rem;
}

.form-card h2 {
  font-size: 1.35rem;
  line-height: 1.2;
  font-variation-settings: "opsz" 48;
}

.form-card > p {
  color: var(--muted);
  max-width: var(--measure);
}

.form {
  display: grid;
  gap: 1rem;
  margin-top: 0.4rem;
  max-width: var(--measure);
}

.field {
  display: grid;
  gap: 0.35rem;
}

.field label {
  font-weight: 700;
  font-size: 0.92rem;
}

.field input,
.field select,
.field textarea {
  font: inherit;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-inner);
  padding: 0.7rem 0.85rem;
  min-height: 3rem;
  width: 100%;
}

.field textarea {
  resize: vertical;
  line-height: 1.5;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--muted);
  opacity: 0.7;
}

.consent {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.6rem;
  align-items: start;
}

.consent input {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.15rem;
  accent-color: var(--accent);
}

.consent label {
  font-size: 0.92rem;
  color: var(--ink-2);
}

.form .button {
  justify-self: start;
}

.form-note {
  font-size: 0.85rem;
  color: var(--muted);
  max-width: var(--measure);
}

.form-alt {
  font-size: 0.9rem;
}

/* Honeypot: a real field bots fill in and people never see. Off-screen rather than
   display:none, because some bots skip anything that is not rendered. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
