/* The app's design tokens (apps/web/src/styles/tokens.css, light). */
:root {
  /* Colour (light). */
  --ground: #eef4f3;
  --surface: #ffffff;
  --ink: #10313a;
  --muted: #4a646b;
  --accent: #0f6e73;
  --accent-hover: #0b5357;
  --on-accent: #ffffff;
  --accent-soft: #d3e8e7;
  --on-accent-soft: #0b4448;
  --line: #d2e2df;
  --input-border: #6b8a86;
  --success: #2e5e37;
  /* Help button and the helpline number ONLY. Never used for anything else. */
  --help: #b3261e;
  --on-help: #ffffff;
  /* Errors, warnings and destructive actions (never the help red). */
  --error: #9a3412;
  --on-error: #ffffff;
  --error-soft: #fbe9e1;
  --backdrop: rgb(44 74 80 / 85%);
  --staging-bg: #ffe08a;
  --staging-ink: #2b2100;
  /* Mood dots: never red, never teal; always next to their label. */
  --mood-good: #2f7d5b;
  --mood-very-good: #17694a;
  --mood-okay: #5e8a3a;
  --mood-low: #a8681e;
  --mood-struggling: #8a4fb0;
  --mood-mixed: #6f6a9a;
  --mood-hopeful: #1f7a8c;
  --mood-tired: #6b7280;
  --mood-anxious: #b0552e;
  --mood-angry: #a83a3a;
  --mood-lonely: #4a6fa5;
  /* Printed member card and recovery slip: always black on white paper. */
  --paper: #ffffff;
  --paper-ink: #000000;
  /* FR-47: the logo on paper keeps its light colours (docs/brand/logo.svg) in dark mode too. */
  --paper-accent: #0f6e73;
  --paper-brand-ink: #10313a;

  /* Shape. */
  --radius-card: 22px;
  --radius-primary: 24px;
  --radius-mood: 20px;
  --radius-pill: 22px;
  --radius-input: 14px;
  --radius-small: 8px;
  --control-height: 44px;
  --control-height-big: 48px;

  /* Spacing scale. */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;

  /* Type: system fonts only, nothing downloaded. */
  --font: system-ui, -apple-system, 'Segoe UI', Roboto, 'Noto Sans', sans-serif;
  --font-mono: ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --text-title: 28px;
  --text-heading: 20px;
  --text-body: 16px;
  --text-small: 14px;
  --text-tiny: 13px;
  --weight-heading: 800;

  color-scheme: light;
}

/*
 * The public website (docs/website/website-draft.pdf). The build puts the app's light design
 * tokens (apps/web/src/styles/tokens.css) above this file; the few colours below are the
 * website's own, for what the app does not have (the dark partners band and footer, the pale help
 * bar). Red is for help only. System fonts, no images or fonts to download. Fluid from 320 px.
 * Contrast is checked by the site's axe tests (WCAG 2.1 AA).
 */

:root {
  --page-ground: #f5f8f7;
  --soft: #e5f0ef;
  --help-soft: #fdecea;
  --help-ink: #7f1d17;
  --deep: #0d4f53;
  --deep-card: #2a6569;
  --on-deep: #ffffff;
  --on-deep-muted: #d3e6e4;
  --footer: #12292c;
  --on-footer: #dce8e6;
  --radius: 14px;
  --radius-button: 8px;
  --page: 1120px;
  --gutter: clamp(16px, 4vw, 40px);

  font-family: var(--font);
  font-size: 100%;
  line-height: 1.55;
  color: var(--ink);
  background: var(--surface);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

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

html {
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  overflow-wrap: break-word;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 var(--space-3);
  line-height: 1.2;
  font-weight: 700;
  color: var(--ink);
}

h1 {
  font-size: clamp(2.25rem, 6vw, 3.25rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.6rem, 4vw, 2rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.125rem;
}

h4 {
  font-size: 1rem;
}

p,
ul,
ol {
  margin: 0 0 var(--space-4);
}

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

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

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

[id] {
  scroll-margin-top: var(--space-4);
}

.wrap {
  width: 100%;
  max-width: calc(var(--page) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

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

.skip {
  position: absolute;
  left: var(--space-2);
  top: -100px;
  z-index: 10;
  padding: var(--space-2) var(--space-4);
  background: var(--accent);
  color: var(--on-accent);
  border-radius: var(--radius-button);
  font-weight: 600;
}

.skip:focus {
  top: var(--space-2);
  color: var(--on-accent);
}

/* Shown at one width only: the draft's phone layouts are shorter. */
.narrow-only {
  display: none;
}

@media (max-width: 719px) {
  .wide-only {
    display: none !important;
  }

  .narrow-only {
    display: inline;
  }
}

/* --- The help bar and the header ------------------------------------------------------- */

.topbar {
  background: var(--help-soft);
  color: var(--help-ink);
  font-size: var(--text-small);
  text-align: center;
}

.topbar p {
  margin: 0;
  padding-block: 6px;
}

.topbar a {
  color: var(--help-ink);
  font-weight: 700;
}

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.bar {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  min-height: 64px;
  padding-block: var(--space-2);
}

.brand {
  margin-right: auto;
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.brand:hover {
  color: var(--accent);
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1) var(--space-5);
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a,
.lang a {
  color: var(--ink);
  font-size: var(--text-small);
  text-decoration: none;
}

.site-nav a:hover,
.lang a:hover {
  text-decoration: underline;
}

.lang {
  display: flex;
  gap: var(--space-2);
  align-items: center;
  font-size: var(--text-small);
  color: var(--muted);
}

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

.lang a[aria-current='page'] {
  color: var(--ink);
  font-weight: 700;
}

.sign-in {
  font-size: var(--text-small);
  font-weight: 600;
  color: var(--ink);
}

@media (max-width: 1023px) {
  .site-nav,
  .bar > .lang {
    display: none;
  }
}

@media (max-width: 419px) {
  .bar > .sign-in {
    display: none;
  }
}

/* --- Buttons, links, pills ------------------------------------------------------------ */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--control-height);
  padding: 10px 22px;
  border-radius: var(--radius-button);
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
}

.button.primary {
  background: var(--accent);
  color: var(--on-accent);
}

.button.primary:hover {
  background: var(--accent-hover);
  color: var(--on-accent);
}

.button.small {
  padding: 8px 16px;
  font-size: var(--text-small);
}

.button.block {
  display: flex;
  width: 100%;
}

.button.light {
  background: var(--surface);
  color: var(--deep);
}

.button.light:hover {
  background: var(--soft);
  color: var(--deep);
}

.text-link {
  font-weight: 600;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3) var(--space-5);
}

@media (max-width: 719px) {
  .hero .actions .button,
  .product-card .actions .button {
    flex: 1 1 100%;
  }
}

.pill {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--on-accent-soft);
  font-size: var(--text-tiny);
  font-weight: 600;
}

/* --- Sections -------------------------------------------------------------------------- */

main > section {
  /* Website round 2: tighter, so no section is longer than a laptop screen. */
  padding-block: clamp(28px, 4.5vw, 48px);
  border-bottom: 1px solid var(--line);
}

.band {
  background: var(--page-ground);
}

.tint {
  background: var(--soft);
}

.eyebrow {
  margin-bottom: var(--space-2);
  color: var(--on-accent-soft);
  font-size: var(--text-small);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow.small {
  font-size: 0.75rem;
}

.eyebrow.with-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.tagline {
  color: var(--accent);
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-weight: 600;
  line-height: 1.3;
}

.tagline.small {
  font-size: 1.125rem;
}

.lead {
  font-size: 1.0625rem;
  color: var(--muted);
}

.measure {
  max-width: 62ch;
}

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

.note,
.small {
  font-size: var(--text-small);
}

.old-anchor {
  display: block;
  height: 0;
}

/* Hero. */
.hero {
  background: var(--page-ground);
}

.hero-grid {
  display: grid;
  gap: var(--space-6) 64px;
  align-items: center;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.85fr);
  }
}

.hero h1 {
  margin-bottom: var(--space-2);
}

.danger {
  font-size: var(--text-small);
  color: var(--muted);
}

.danger a {
  color: var(--help);
  font-weight: 700;
  text-decoration: none;
}

.danger a:hover {
  text-decoration: underline;
}

.logo-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border-radius: var(--radius);
  background: #f2f4f4;
  flex: none;
}

.logo-tile.small {
  padding: 3px;
  border-radius: 6px;
  margin-right: var(--space-2);
  background: var(--surface);
}

.logo-tile.large {
  padding: 12px;
  border-radius: 18px;
}

.logo {
  display: block;
}

.feature-card {
  justify-self: center;
  width: 100%;
  max-width: 320px;
  padding: var(--space-6);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: 0 18px 40px rgb(16 49 58 / 10%);
}

.feature-card h2 {
  margin-top: var(--space-4);
  font-size: 1.375rem;
}

.feature-card p:not(.eyebrow) {
  color: var(--muted);
  font-size: 0.9375rem;
}

/* Mission and vision. */
.two,
.three,
.four,
.five {
  display: grid;
  gap: var(--space-4);
}

/* Website round 2: on a phone, cards are tighter. */
@media (max-width: 719px) {
  .two,
  .three,
  .four,
  .five {
    gap: var(--space-2);
  }

  .card {
    padding: var(--space-3) var(--space-4);
  }

  .card h3 {
    margin-bottom: 2px;
  }
}

@media (min-width: 720px) {
  .two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .four,
  .five {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1000px) {
  .four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .five {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.statements {
  padding-block: clamp(24px, 4vw, 40px) !important;
}

.statement {
  padding: var(--space-5) var(--space-5);
  border-radius: var(--radius);
  background: var(--soft);
}

.statement p {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
}

/* Cards. */
.grid {
  margin: 0 0 var(--space-5);
  padding: 0;
  list-style: none;
}

.card {
  padding: var(--space-4);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.card p {
  margin: 0;
  font-size: 0.9375rem;
}

.card.soft,
.soft-cards .card {
  background: var(--page-ground);
}

.soft-cards .card {
  border-color: transparent;
  background: var(--soft);
}

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

/* Numbered steps (how it works, the safety net). */
.steps {
  counter-reset: step;
}

.steps > li {
  counter-increment: step;
}

.steps > li::before {
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin-bottom: var(--space-2);
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  font-size: var(--text-small);
  font-weight: 700;
}

.tint .card {
  border-color: transparent;
}

@media (max-width: 719px) {
  .steps > li {
    display: grid;
    grid-template-columns: 30px 1fr;
    column-gap: var(--space-3);
  }

  .steps > li::before {
    grid-row: span 2;
    margin: 0;
  }
}

.subsection {
  margin-top: var(--space-6);
  font-size: 1.375rem;
}

/* The product card on the home page. */
.product-card {
  display: grid;
  gap: var(--space-4) var(--space-6);
  align-items: start;
  margin-bottom: clamp(40px, 6vw, 64px);
  padding: clamp(20px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}

@media (min-width: 720px) {
  .product-card {
    grid-template-columns: auto 1fr;
    align-items: center;
  }
}

.product-card h3 {
  font-size: 1.5rem;
}

.product-card .actions {
  margin: 0;
}

.approach-title {
  margin-top: 0;
}

/* The team. */
.team .card {
  padding: var(--space-5);
}

.avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: var(--space-4);
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  font-size: var(--text-small);
  font-weight: 700;
}

@media (max-width: 719px) {
  .avatar {
    display: none;
  }
}

.team h4 {
  margin-bottom: 2px;
}

.role {
  margin-bottom: var(--space-3) !important;
  color: var(--accent) !important;
  font-size: var(--text-tiny) !important;
  font-weight: 600;
}

/* How to apply. */
.apply {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4) var(--space-6);
  padding: var(--space-5);
  border-radius: var(--radius);
  background: var(--soft);
}

.apply > div {
  flex: 1 1 420px;
}

.apply h3 {
  margin-bottom: var(--space-2);
}

.apply p {
  margin: 0;
}

@media (max-width: 719px) {
  .apply {
    flex-direction: column-reverse;
    align-items: stretch;
    padding: 0;
    background: none;
  }

  .apply .button {
    display: flex;
  }

  .apply h3 {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .apply > div p {
    font-size: var(--text-tiny);
    color: var(--muted);
  }
}

/* For funders and partners: the dark band. */
.dark {
  background: var(--deep);
  color: var(--on-deep);
  border-bottom: 0 !important;
}

.dark h1,
.dark h2,
.dark h3 {
  color: var(--on-deep);
}

.dark .lead,
.dark p {
  color: var(--on-deep);
}

.dark :focus-visible {
  outline-color: var(--on-deep);
}

.partners-grid {
  display: grid;
  gap: var(--space-6) 40px;
}

@media (min-width: 900px) {
  .partners-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) 40px;
  padding: 0;
  list-style: none;
}

.stats strong {
  display: block;
  font-size: clamp(2.5rem, 7vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.stats span {
  color: var(--on-deep-muted);
  font-size: var(--text-small);
}

.dark .source {
  color: var(--on-deep-muted);
  font-size: 0.75rem;
}

.partner-cards {
  display: grid;
  gap: var(--space-3);
  margin: 0 0 var(--space-4);
  padding: 0;
  list-style: none;
}

.partner-cards .card {
  border: 0;
  background: var(--deep-card);
}

.partner-cards .card p {
  color: var(--on-deep);
}

/* Questions. */
.faq {
  display: grid;
  gap: var(--space-5) 40px;
}

@media (min-width: 720px) {
  .faq {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

.faq h3 {
  margin-bottom: var(--space-1);
  font-size: 0.9375rem;
}

.faq p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9375rem;
}

/* "Interested in partnering or funding?" */
.partners-band {
  padding-block: var(--space-5) !important;
}

.partners-band-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3) var(--space-5);
}

.partners-band p {
  margin: 0;
}

/* The phone drawing. */
.phone {
  justify-self: center;
  width: 100%;
  max-width: 300px;
  margin: 0;
}

.phone-screen {
  display: grid;
  gap: var(--space-3);
  padding: var(--space-4);
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--surface);
  box-shadow: 0 18px 40px rgb(16 49 58 / 10%);
}

.ph-name {
  display: flex;
  align-items: center;
  font-size: var(--text-small);
  font-weight: 700;
}

.ph-name .logo-tile.small {
  background: #f2f4f4;
}

.ph-help {
  padding: 10px;
  border-radius: 10px;
  background: var(--help);
  color: var(--on-help);
  font-size: var(--text-small);
  font-weight: 600;
  text-align: center;
}

.ph-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2);
}

.ph-tiles span {
  min-height: 56px;
  padding: 10px;
  border-radius: 10px;
  background: var(--soft);
  font-size: var(--text-tiny);
  font-weight: 600;
}

.phone figcaption {
  margin-top: var(--space-3);
  padding-inline: var(--space-2);
  color: var(--muted);
  font-size: 0.75rem;
}

/* The privacy notice and the 404 page. */
.prose {
  max-width: calc(760px + 2 * var(--gutter));
  padding-block: clamp(32px, 6vw, 64px);
}

.prose section,
.prose aside {
  margin-top: var(--space-6);
}

.prose h2 {
  font-size: 1.375rem;
}

.prose li {
  margin-bottom: var(--space-2);
}

.not-found {
  padding-block: clamp(40px, 8vw, 96px);
}

.not-found section + section {
  margin-top: var(--space-6);
  padding-top: var(--space-6);
  border-top: 1px solid var(--line);
}

/* --- The dark footer ------------------------------------------------------------------- */

.site-footer {
  padding-block: var(--space-6);
  background: var(--footer);
  color: var(--on-footer);
  font-size: var(--text-small);
}

.site-footer a {
  color: var(--on-footer);
}

.site-footer a:hover {
  color: var(--on-deep);
}

.site-footer :focus-visible {
  outline-color: var(--on-deep);
}

.site-footer p {
  margin-bottom: var(--space-2);
}

.footer-grid {
  display: grid;
  gap: var(--space-5);
}

@media (min-width: 720px) {
  .footer-grid {
    grid-template-columns: 1.2fr 1.4fr 1fr;
  }
}

.footer-name {
  display: flex;
  align-items: center;
  color: var(--on-deep);
  font-size: 1rem;
  font-weight: 700;
}

.footer-product {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.footer-product:hover {
  text-decoration: underline;
}

.footer-help {
  font-weight: 700;
}

.footer-links ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links li + li::before {
  content: '|';
  content: '|' / '';
  margin-right: var(--space-2);
  color: var(--on-footer);
}

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

.footer-links a:hover,
.footer-links a[aria-current='page'] {
  text-decoration: underline;
}

/* --- Website round 2: shorter pages ----------------------------------------------------- */

/* Mission and vision, one line each, under the hero's text. */
.statements-inline {
  display: grid;
  gap: var(--space-2);
  margin: var(--space-5) 0 0;
}

.statements-inline div {
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--space-2);
}

.statements-inline dt {
  color: var(--accent);
  font-size: var(--text-tiny);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.9;
}

.statements-inline dd {
  margin: 0;
}

.feature-card .tagline.small {
  color: var(--accent);
}

.feature-card .pill {
  white-space: normal;
}

/* The team in two compact rows; oversight and funding in one line each. */
.team-rows,
.one-liners {
  display: grid;
  gap: var(--space-3);
  margin: 0 0 var(--space-4);
  padding: 0;
  list-style: none;
}

.team-rows li {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.team-rows .avatar {
  flex: none;
  margin: 0;
}

.team-rows p,
.one-liners li {
  margin: 0;
}

/* "Join us" and "For funders and partners": short bands, the details on their own pages. */
.link-bands .two {
  gap: var(--space-4);
}

.link-band {
  padding: var(--space-5);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.link-band.dark {
  border-color: transparent;
}

.link-band h2 {
  margin-bottom: var(--space-2);
  font-size: 1.375rem;
}

.hero.compact {
  padding-block: clamp(32px, 5vw, 56px);
}

/* Questions that open on their own (no script). */
.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  min-height: 44px;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  content: '+' / '';
  color: var(--accent);
  font-size: 1.25rem;
  font-weight: 700;
}

.faq-item[open] summary::after {
  content: '−';
  content: '−' / '';
}

.faq-item summary h3 {
  margin: 0;
}

.faq-item p {
  padding-bottom: var(--space-3);
}

/* The footer's email and phone: each on its own line, never over each other, at any width. */
.footer-grid > * {
  min-width: 0;
}

.footer-contact p {
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--space-2);
}

.footer-contact a {
  overflow-wrap: anywhere;
}

.copyright {
  margin-top: var(--space-4);
  font-size: var(--text-tiny);
}

/* Privacy on the product page: a compact list, two columns from a tablet. */
.privacy-list {
  display: grid;
  gap: var(--space-3) var(--space-6);
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 720px) {
  .privacy-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.privacy-list h3 {
  margin-bottom: 2px;
  font-size: 1rem;
}

.privacy-list p {
  margin: 0;
  font-size: 0.9375rem;
}

.partners-line {
  margin-top: var(--space-5);
  padding-top: var(--space-4);
  border-top: 1px solid var(--line);
}

/* Explore and poll: the tour, one step at a time (:target; without :has, all stacked). */
.explore {
  max-width: 34rem;
}

.explore-sample {
  display: inline-block;
}

.tour {
  margin: var(--space-5) 0;
}

.tour-step {
  padding: var(--space-5) 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: var(--space-2);
}

.tour-step:focus,
.after-tour:focus {
  outline: none;
}

@supports selector(:has(*)) {
  .tour-step {
    display: none;
    border-top: 0;
  }

  .tour-step:target,
  .tour:not(:has(.tour-step:target)) .tour-step:first-child {
    display: block;
  }
}

.tour-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-2);
  margin: 0 0 var(--space-4);
  font-size: var(--text-small);
}

.tour-count {
  color: var(--muted);
  font-weight: 600;
}

.tour-help {
  color: var(--help);
  font-weight: 700;
  text-decoration: none;
}

.tour-step h2 {
  margin: 0 0 var(--space-2);
}

.tour-text {
  margin: 0;
}

.tour-screen {
  position: relative;
  margin: var(--space-5) auto;
  width: min(100%, 58vh * 390 / 844);
  width: min(100%, 58dvh * 390 / 844);
}

.tour-screen img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  border: 1px solid var(--line);
}

.tour-spot {
  position: absolute;
  margin: -4px;
  padding: 4px;
  border: 3px solid var(--help);
  border-radius: 12px;
  box-sizing: content-box;
}

.tour-tap {
  position: absolute;
  right: -3px;
  bottom: 100%;
  margin-bottom: 6px;
  padding: 2px 12px;
  border-radius: var(--radius-pill);
  background: var(--help);
  color: var(--on-help);
  font-size: var(--text-small);
  font-weight: 700;
  white-space: nowrap;
}

@media (prefers-reduced-motion: no-preference) {
  .tour-spot {
    animation: tour-pulse 2s ease-in-out infinite;
  }

  .tour-step:target {
    animation: tour-in 0.25s ease-out;
  }
}

@keyframes tour-pulse {
  50% {
    box-shadow: 0 0 0 6px rgba(179, 38, 30, 0.25);
  }
}

@keyframes tour-in {
  from {
    opacity: 0;
  }
}

.tour-nav {
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
}

.tour-nav .button {
  min-width: 8rem;
}

.tour-nav .button:not(.primary) {
  border: 1px solid var(--accent);
  color: var(--accent);
}

.tour-dots {
  display: flex;
  justify-content: center;
  gap: var(--space-1);
  margin: var(--space-4) 0 0;
  padding: 0;
  list-style: none;
}

/* A 32 px target. */
.tour-dots a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.tour-dots a::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line);
}

.tour-dots a[aria-current='step']::before {
  background: var(--accent);
  transform: scale(1.3);
}

.tour-skip {
  margin: var(--space-2) 0 0;
  text-align: center;
  font-size: var(--text-small);
}

.after-tour {
  padding-top: var(--space-5);
  border-top: 1px solid var(--line);
  scroll-margin-top: var(--space-2);
}

.tour-video {
  display: block;
  width: min(100%, 58vh * 360 / 780);
  width: min(100%, 58dvh * 360 / 780);
  height: auto;
  margin: var(--space-4) auto;
  border-radius: 16px;
  background: var(--ink);
}

/* The tour's spots (apps/site/src/explore/tour.json). */
.spot-home { left: 10%; top: 46.3%; width: 80%; height: 6.2%; }
.spot-mood { left: 4.1%; top: 53.5%; width: 91.8%; height: 6.2%; }
.spot-journal { left: 4.1%; top: 46.2%; width: 91.8%; height: 24.1%; }
.spot-talk { left: 4.1%; top: 59.3%; width: 91.8%; height: 10.4%; }
.spot-circle { left: 4.1%; top: 46.6%; width: 91.8%; height: 7.6%; }
.spot-help { left: 5.1%; top: 68.5%; width: 89.7%; height: 10.4%; }
