/* Rythmo website styles. One file, no build step. */

@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/outfit-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/outfit-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --teal: #004954;
  --teal-deep: #00363E;
  --ink: #12253F;
  --ink-soft: #4A5A70;
  --mint: #EAF7F8;
  --paper: #FBFDFD;
  --line: #D5E5E7;
  /* Added 30 Sep 2026 with the Instagram palette: yellow is the one accent, cream the warm ground. */
  --yellow: #FFD23F;
  --yellow-light: #FFDE70;
  --cream: #FFF4DC;
  --confident: #1E7A4B;
  --settling: #C77A0A;
  --not-yet: #B3261E;

  /* Sampled from the edge of the hero render so the image bleeds into the page. */
  --night: #051920;
  --mint-dim: #B9D6D9;

  --radius-photo: 20px;
  --radius-control: 10px;
  --wrap: 72rem;
  --measure: 38rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section: clamp(3.5rem, 8vw, 6.5rem);

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.5rem, 1.1rem + 1.2vw, 1.875rem);
  --step-3: clamp(1.875rem, 1.2rem + 2.2vw, 2.625rem);
  --step-4: clamp(2.5rem, 1.4rem + 4.2vw, 4.5rem);
}

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  font-family: "Outfit", ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3 { line-height: 1.12; font-weight: 600; letter-spacing: -0.01em; margin: 0 0 0.5em; text-wrap: balance; }
h1 { font-size: var(--step-4); letter-spacing: -0.02em; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); line-height: 1.3; }
p, ul, ol, dl { margin: 0 0 1em; }
p { text-wrap: pretty; }
li + li { margin-top: 0.4em; }

a { color: var(--teal); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 4px; }
.on-dark :focus-visible, .on-dark:focus-visible { outline-color: #FFFFFF; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.measure { max-width: var(--measure); }
.lede { font-size: var(--step-1); line-height: 1.5; color: var(--ink-soft); }
.small { font-size: var(--step--1); }
.muted { color: var(--ink-soft); }

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

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: #FFFFFF; color: var(--ink); padding: 0.6rem 1rem; border-radius: var(--radius-control);
  font-weight: 600;
}
.skip-link:focus { top: 0.75rem; }

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

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--night);
  color: #FFFFFF;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.site-header .wrap {
  display: flex; align-items: center; gap: 1.5rem;
  min-height: 4rem;
}
.brand { display: inline-flex; padding: 0.35rem 0; margin-right: auto; }
.brand img { width: 7.25rem; height: auto; }

.site-nav { display: flex; align-items: center; gap: 1.75rem; }
.site-nav ul { display: flex; gap: 1.5rem; list-style: none; margin: 0; padding: 0; }
.site-nav li + li { margin-top: 0; }
.site-nav a {
  color: var(--mint); text-decoration: none; font-weight: 500;
  padding: 0.35rem 0; border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: #FFFFFF; border-bottom-color: rgba(255, 255, 255, 0.4); }
.site-nav a[aria-current="page"] { color: #FFFFFF; border-bottom-color: var(--mint); }

.icon-link { display: inline-flex; color: var(--mint); padding: 0.4rem; border-radius: 8px; }
.icon-link:hover { color: #FFFFFF; }
.icon-link svg { width: 1.375rem; height: 1.375rem; }

.menu-toggle {
  display: none;
  font: inherit; font-weight: 500; color: #FFFFFF;
  background: transparent; border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius-control); padding: 0.45rem 0.9rem; cursor: pointer;
}

@media (max-width: 52rem) {
  .menu-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--night);
    padding: 0.5rem var(--gutter) 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { display: block; padding: 0.8rem 0; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
  .site-nav ul a[aria-current="page"] { border-bottom-color: rgba(255, 255, 255, 0.08); box-shadow: inset 3px 0 0 var(--mint); padding-left: 0.75rem; }
  .site-nav .nav-actions { display: flex; align-items: center; justify-content: space-between; padding-top: 1rem; }
}
.nav-actions { display: flex; align-items: center; gap: 0.75rem; }

/* ---------- Buttons ---------- */

.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 2.875rem; padding: 0.6rem 1.25rem;
  font: inherit; font-weight: 600; line-height: 1.2; text-decoration: none;
  border-radius: var(--radius-control); border: 1.5px solid transparent;
  cursor: pointer;
}
.button:hover { text-decoration: none; }
.button-primary { background: var(--teal); color: #FFFFFF; }
.button-primary:hover { background: var(--teal-deep); }
.button-secondary { background: transparent; color: var(--teal); border-color: var(--teal); }
.button-secondary:hover { background: var(--mint); }
.on-dark .button-primary, .site-header .button-primary { background: var(--yellow); color: var(--ink); }
.on-dark .button-primary:hover, .site-header .button-primary:hover { background: var(--yellow-light); }
.on-dark .button-secondary { color: #FFFFFF; border-color: rgba(255, 255, 255, 0.6); }
.on-dark .button-secondary:hover { background: rgba(255, 255, 255, 0.08); border-color: #FFFFFF; }
.site-header .button { min-height: 2.5rem; padding: 0.45rem 1rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }

/* ---------- Bands and sections ---------- */

.section { padding-block: var(--section); }
.section + .section:not(.band-mint):not(.band-cream):not(.band-deep):not(.band-night) { padding-top: 0; }
.band-mint { background: var(--mint); }
.band-cream { background: var(--cream); }
.band-deep { background: var(--teal-deep); }
.band-night { background: var(--night); }
/* A section straight after a coloured band always keeps its top padding. */
.band-mint + .section, .band-cream + .section, .band-deep + .section, .band-night + .section { padding-top: var(--section) !important; }
.on-dark { color: #FFFFFF; }
.on-dark a { color: #FFFFFF; }
.on-dark .lede, .on-dark .muted { color: var(--mint-dim); }

.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* ---------- Status pill ---------- */

.status {
  display: inline-block;
  font-size: var(--step--1); font-weight: 500; line-height: 1.4;
  padding: 0.4rem 0.85rem; border-radius: 999px;
  background: rgba(234, 247, 248, 0.12); color: var(--mint);
  border: 1px solid rgba(234, 247, 248, 0.25);
}
.status-light { background: var(--mint); color: var(--teal-deep); border-color: var(--line); }

/* ---------- Figures and labels ---------- */

.figure { margin: 0; position: relative; }
.figure picture, .figure > img { border-radius: var(--radius-photo); overflow: hidden; }
.figure img { width: 100%; height: 100%; object-fit: cover; }
.figure figcaption { font-size: var(--step--1); color: var(--ink-soft); margin-top: 0.7rem; line-height: 1.45; }
.on-dark .figure figcaption { color: var(--mint-dim); }

.label {
  position: absolute; left: 0.75rem; bottom: 0.75rem; z-index: 2;
  font-size: 0.75rem; font-weight: 500; line-height: 1;
  color: #FFFFFF; background: rgba(5, 25, 32, 0.78);
  padding: 0.4rem 0.6rem; border-radius: 6px;
  pointer-events: none;
}
.label-static {
  position: static; display: inline-block; margin-top: 0.7rem;
  background: rgba(234, 247, 248, 0.12); color: var(--mint);
}
.band-mint .label-static, .section:not(.on-dark) .label-static { background: var(--mint); color: var(--teal-deep); }
.frame { position: relative; }

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

.hero {
  position: relative; overflow: hidden;
  background: var(--night); color: #FFFFFF;
}
.hero-inner { position: relative; z-index: 2; padding-block: clamp(2.5rem, 7vw, 6rem) 2rem; }
.hero h1 { max-width: 12ch; margin-bottom: 0.35em; }
.hero .lede { color: var(--mint); max-width: 26rem; }
.hero .status { margin-top: 0.5rem; }
.hero-art { position: relative; margin: 0; }
.hero-art img { width: 100%; height: auto; }
.hero-art .label { left: auto; right: var(--gutter); bottom: 1rem; }

@media (max-width: 51.99rem) {
  .hero-art {
    margin-top: -1rem;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 18%);
    mask-image: linear-gradient(to bottom, transparent 0, #000 18%);
  }
  .hero-art img { aspect-ratio: 4 / 3; object-fit: cover; object-position: 100% 50%; }
}

@media (min-width: 52rem) {
  .hero { min-height: min(46rem, 86vh); display: flex; align-items: center; }
  .hero-art { position: absolute; inset: 0; }
  /* The picture box has to fill the hero, or a percentage height on the image
     has nothing to resolve against and the render overflows and gets clipped. */
  .hero-art picture { display: block; height: 100%; }
  /* Pinned right. The render carries a wide extension of its own background on
     the left, so cropping only ever eats that empty space, never the devices. */
  .hero-art img { height: 100%; width: 100%; object-fit: cover; object-position: 100% 50%; }
  .hero-art::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(90deg, rgba(5, 25, 32, 0.92) 0%, rgba(5, 25, 32, 0.7) 26%, rgba(5, 25, 32, 0) 48%);
  }
  .hero-inner { width: 100%; padding-block: 5rem; }
  .hero-copy { max-width: 29rem; }
}

/* ---------- Split rows (alternating image and text) ---------- */

.rows { display: grid; gap: clamp(3rem, 7vw, 5.5rem); }
.row { display: grid; gap: 1.5rem 3.5rem; align-items: center; }
@media (min-width: 48rem) {
  .row { grid-template-columns: 1fr 1fr; }
  .row.flip > :first-child { order: 2; }
}
.row h3 { font-size: var(--step-2); }
.row .more { font-weight: 600; }

.photo-43 img { aspect-ratio: 4 / 3; }
.photo-34 img { aspect-ratio: 3 / 4; }

/* ---------- Screens on a deep band ---------- */

.screen-stage {
  display: grid; place-items: center;
  background: var(--teal-deep);
  border-radius: var(--radius-photo);
  padding: clamp(1.5rem, 5vw, 3rem) 1rem;
  min-height: 100%;
}
.screen-stage .label { position: static; margin-top: 1rem; background: rgba(234, 247, 248, 0.12); color: var(--mint); }
.screen-phone img { width: min(15rem, 62vw); border-radius: 1.75rem; }
.screen-watch img { width: min(11.5rem, 48vw); border-radius: 2.25rem; }
.screen-garmin img { width: min(11.5rem, 48vw); border-radius: 50%; }
.screen-stage img { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08); }

/* ---------- Method list ---------- */

.method { display: grid; gap: 2rem 3rem; margin: 2.5rem 0 0; padding: 0; list-style: none; counter-reset: step; }
@media (min-width: 48rem) { .method { grid-template-columns: repeat(2, 1fr); } }
.method li { margin: 0; padding-top: 1rem; border-top: 1px solid var(--line); }
.method b { display: block; font-size: var(--step-1); font-weight: 600; margin-bottom: 0.3rem; }
.method span { color: var(--ink-soft); }

/* ---------- Uses list ---------- */

.uses { display: grid; gap: 1.75rem 3rem; margin: 2.5rem 0; }
@media (min-width: 48rem) { .uses { grid-template-columns: repeat(2, 1fr); } }
.uses div { border-top: 1px solid var(--line); padding-top: 1rem; }
.uses dt { font-weight: 600; font-size: var(--step-1); margin-bottom: 0.3rem; }
.uses dd { margin: 0; color: var(--ink-soft); }

/* ---------- Ask blocks ---------- */

.ask { max-width: 44rem; }
.ask h2 { margin-bottom: 0.4em; }

/* ---------- Tap demo ---------- */

.demo { display: grid; gap: 2rem 4rem; align-items: start; }
@media (min-width: 56rem) { .demo { grid-template-columns: minmax(0, 1fr) minmax(0, 26rem); } }

.demo-device {
  background: #071F25;
  border-radius: 28px;
  padding: 1rem;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.demo-top { display: flex; justify-content: space-between; align-items: baseline; padding: 0.25rem 0.5rem 0.75rem; color: var(--mint-dim); font-variant-numeric: tabular-nums; }
.demo-top strong { color: #FFFFFF; font-weight: 500; font-size: var(--step-1); }

.tap-surface {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.35rem;
  width: 100%; min-height: clamp(17rem, 52vw, 21rem);
  font: inherit; color: #FFFFFF;
  background: var(--teal);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  user-select: none; -webkit-user-select: none;
}
.tap-surface:focus-visible { outline: 3px solid #FFFFFF; outline-offset: 3px; }
.tap-surface.is-pressed { background: #00525E; }
@media (prefers-reduced-motion: no-preference) {
  .tap-surface { transition: transform 90ms ease-out, background-color 90ms ease-out; }
  .tap-surface.is-pressed { transform: scale(0.985); }
}
.rate { font-size: clamp(5rem, 14vw, 7rem); font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.rate.is-idle { font-size: var(--step-2); font-weight: 500; color: var(--mint); line-height: 1.3; }
.unit { color: var(--mint); font-size: var(--step-1); }

.chip {
  display: inline-flex; align-items: center; gap: 0.5rem;
  margin-top: 0.6rem; padding: 0.4rem 0.9rem 0.4rem 0.5rem;
  border-radius: 999px; background: rgba(0, 20, 26, 0.45);
  font-weight: 500;
}
.chip-dot { width: 1.25rem; height: 1.25rem; border-radius: 50%; display: grid; place-items: center; background: var(--not-yet); }
.chip-dot svg { width: 0.8rem; height: 0.8rem; opacity: 0; }
.chip[data-state="amber"] .chip-dot { background: var(--settling); }
.chip[data-state="green"] .chip-dot { background: var(--confident); }
.chip[data-state="green"] .chip-dot svg { opacity: 1; }
.chip[hidden] { display: none; }
.irregular { font-size: var(--step--1); font-weight: 600; padding: 0.2rem 0.6rem; border-radius: 6px; background: rgba(199, 122, 10, 0.25); color: #FFE2B8; }

.demo-reset {
  width: 100%; margin-top: 0.75rem; min-height: 3.25rem;
  font: inherit; font-weight: 600; color: #FFFFFF;
  background: rgba(255, 255, 255, 0.1); border: 0; border-radius: 16px; cursor: pointer;
}
.demo-reset:hover { background: rgba(255, 255, 255, 0.16); }
.demo-reset:disabled { color: rgba(255, 255, 255, 0.4); cursor: default; background: rgba(255, 255, 255, 0.05); }

.demo-note { margin-top: 1rem; font-weight: 500; color: var(--mint); }

.key { list-style: none; padding: 0; margin: 1.5rem 0; display: grid; gap: 0.9rem; }
.key li { display: grid; grid-template-columns: 1.25rem 1fr; gap: 0.75rem; align-items: start; margin: 0; }
.key .chip-dot { margin-top: 0.2rem; }

/* ---------- Gallery ---------- */

.gallery { display: grid; gap: 2.5rem 1.5rem; }
@media (min-width: 40rem) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .gallery { grid-template-columns: repeat(12, 1fr); } }
@media (min-width: 64rem) {
  .gallery .g-lead { grid-column: span 7; grid-row: span 2; }
  .gallery .g-side { grid-column: span 5; }
  .gallery .g-third { grid-column: span 4; }
  .gallery .g-half { grid-column: span 6; }
}
.gallery .g-lead img { aspect-ratio: 3 / 4; }
.gallery .g-side img, .gallery .g-third img, .gallery .g-half img { aspect-ratio: 4 / 3; }
@media (min-width: 64rem) {
  .gallery .g-lead { align-self: start; }
  .gallery .g-lead img { aspect-ratio: 5 / 6; object-position: 50% 45%; }
}

/* ---------- Plain lists ---------- */

.facts { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1.5rem 3rem; }
@media (min-width: 48rem) { .facts { grid-template-columns: repeat(2, 1fr); } }
.facts li { margin: 0; padding-top: 1rem; border-top: 1px solid var(--line); }
.facts b { display: block; font-weight: 600; margin-bottom: 0.2rem; }
.facts span { color: var(--ink-soft); }

.devices { columns: 2 12rem; column-gap: 2rem; padding-left: 1.1rem; }
.devices li { break-inside: avoid; }

.platform-nav { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; padding: 0; margin: 1.75rem 0 0; }
.platform-nav li { margin: 0; }
.platform-nav a {
  display: inline-block; padding: 0.45rem 0.95rem; border-radius: 999px;
  border: 1px solid rgba(234, 247, 248, 0.35); color: #FFFFFF; text-decoration: none; font-weight: 500;
}
.platform-nav a:hover { background: rgba(255, 255, 255, 0.08); }

.platform { padding-block: var(--section); border-top: 1px solid var(--line); scroll-margin-top: 4rem; }
.platform:first-of-type { border-top: 0; }
.platform dl { display: grid; grid-template-columns: max-content 1fr; gap: 0.35rem 1.25rem; margin: 1.25rem 0; }
.platform dt { font-weight: 600; }
.platform dd { margin: 0; color: var(--ink-soft); }

/* ---------- Prose pages (privacy, terms, support) ---------- */

.page-head { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(2rem, 5vw, 3.5rem); }
.page-head h1 { font-size: var(--step-4); max-width: 18ch; }
.page-head .lede { max-width: 40rem; }
.prose { max-width: 42rem; }
.prose h2 { font-size: var(--step-2); margin-top: 2.5rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.75rem; }
.prose ul, .prose ol { padding-left: 1.2rem; }

.callout { background: var(--mint); border-left: 4px solid var(--teal); padding: 1.1rem 1.25rem; border-radius: 0 12px 12px 0; margin: 1.5rem 0; }
.callout p:last-child { margin-bottom: 0; }
.on-dark .callout { background: rgba(234, 247, 248, 0.08); border-left-color: var(--mint); }

blockquote.locked { margin: 1.25rem 0; padding: 1.1rem 1.25rem; border-left: 4px solid var(--teal); background: var(--mint); border-radius: 0 12px 12px 0; }
blockquote.locked p:last-child { margin-bottom: 0; }

.faq details { border-top: 1px solid var(--line); padding: 1rem 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; font-size: var(--step-1); list-style-position: inside; }
.faq summary::marker { color: var(--teal); }
.faq details > div { padding-top: 0.6rem; color: var(--ink-soft); }
.faq details > div p:last-child { margin-bottom: 0; }

.placeholder {
  background: #FFF4DB; color: #6A4200; border: 1px dashed #C77A0A;
  padding: 0.1rem 0.4rem; border-radius: 4px; font-size: 0.95em;
}

.portrait-slot {
  display: grid; place-items: center; aspect-ratio: 4 / 5;
  border-radius: var(--radius-photo); background: var(--mint);
  color: var(--teal); text-align: center; padding: 2rem;
}
.portrait-slot img { width: 5rem; opacity: 0.9; }
.portrait-slot p { margin: 1rem 0 0; font-size: var(--step--1); color: var(--ink-soft); }

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

.site-footer { background: var(--night); color: var(--mint-dim); padding-block: 3.5rem 2.5rem; font-size: var(--step--1); }
.site-footer a { color: #FFFFFF; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem 3rem; padding-bottom: 2rem; border-bottom: 1px solid rgba(255, 255, 255, 0.1); margin-bottom: 1.75rem; }
.footer-top img { width: 7rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; list-style: none; padding: 0; margin: 0; font-size: var(--step-0); }
.footer-links li { margin: 0; }
.footer-legal { max-width: 52rem; }
.footer-legal p { margin-bottom: 0.8em; }

/* ---------- 404 ---------- */

.not-found { padding-block: clamp(4rem, 12vw, 8rem); }

/* ---------- Helpers used by the pages ---------- */

[hidden] { display: none !important; }
.screen-pair { display: flex; align-items: center; justify-content: center; gap: clamp(1rem, 4vw, 2rem); flex-wrap: wrap; }
.screen-pair .screen-phone img { width: min(13rem, 46vw); }
.screen-pair .screen-watch img { width: min(9rem, 34vw); }
.stage-caption { display: flex; justify-content: center; }
.op-upper { object-position: 50% 30%; }
.op-belt { object-position: 62% 50%; }
.op-center { object-position: 50% 50%; }
.stack > * + * { margin-top: 1rem; }
.link-list { list-style: none; padding: 0; display: grid; gap: 0.6rem; }
.link-list li { margin: 0; }
.tester { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.tester p { margin-bottom: 0.6rem; font-weight: 500; }
.cite { font-size: var(--step--1); color: var(--ink-soft); }
.on-dark .cite { color: var(--mint-dim); }

/* Confidence pips, matching the apps: 1 red, 2 amber, then a green tick. */
.dot-amber { background: var(--settling); }
.dot-green { background: var(--confident); }
.dot-green svg { opacity: 1; }
.pips { display: inline-flex; gap: 0.35rem; }
.pips i { width: 0.7rem; height: 0.7rem; border-radius: 50%; background: rgba(255, 255, 255, 0.25); }
.chip[data-state="red"] .pips i:nth-child(1) { background: #F2685E; }
.chip[data-state="amber"] .pips i:nth-child(-n+2) { background: var(--settling); }
.chip .tick { display: none; background: var(--confident); }
.chip .tick svg { opacity: 1; }
.chip[data-state="green"] .pips { display: none; }
.chip[data-state="green"] .tick { display: grid; }
.chip { padding-left: 0.8rem; }
.chip[data-state="green"] { padding-left: 0.5rem; }

.platform-facts { display: grid; grid-template-columns: max-content 1fr; gap: 0.35rem 1.25rem; margin: 1.25rem 0; }
.platform-facts dt { font-weight: 600; }
.platform-facts dd { margin: 0; color: var(--ink-soft); }

.portrait img { aspect-ratio: 4 / 5; }

/* ---------- Links page (Instagram bio) ---------- */

.links-page { min-height: 100vh; }
.links-wrap { max-width: 30rem; margin-inline: auto; padding: clamp(2rem, 8vw, 3.5rem) 1rem 2.5rem; }
.links-head { text-align: center; margin-bottom: 2rem; }
.links-icon { width: 4rem; height: 4rem; margin: 0 auto 1rem; }
.links-head h1 { font-size: var(--step-3); margin-bottom: 0.25rem; }
.links-head .lede { margin: 0; }
.links-group { font-size: var(--step--1); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--yellow); margin: 1.75rem 0 0.75rem; }
.links-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.75rem; }
.links-list li { margin: 0; }
.on-dark a.link-card { display: block; padding: 1rem 1.15rem; border-radius: 14px; background: var(--cream); color: var(--ink); text-decoration: none; }
.on-dark a.link-card:hover { background: #FFFFFF; }
.on-dark a.link-card-quiet { background: rgba(234, 247, 248, 0.08); color: #FFFFFF; border: 1px solid rgba(234, 247, 248, 0.25); }
.on-dark a.link-card-quiet:hover { background: rgba(234, 247, 248, 0.14); }
.link-title { display: block; font-weight: 600; font-size: var(--step-1); line-height: 1.3; }
.link-sub { display: block; font-size: var(--step--1); line-height: 1.45; margin-top: 0.2rem; color: var(--ink-soft); }
.link-card-quiet .link-sub { color: var(--mint-dim); }
.links-small { list-style: none; padding: 0; margin: 2.25rem 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 1.25rem; font-size: var(--step--1); }
.links-small li { margin: 0; }
.links-legal { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid rgba(234, 247, 248, 0.2); font-size: 0.8125rem; line-height: 1.5; color: var(--mint-dim); text-align: center; }
.links-legal p { margin-bottom: 0.75rem; }
.link-card-soon { display: block; padding: 1rem 1.15rem; border-radius: 14px; border: 1px dashed rgba(234, 247, 248, 0.3); cursor: default; }
.link-card-soon .link-title { color: #FFFFFF; display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.link-card-soon .link-sub { color: var(--mint-dim); }
.soon { flex-shrink: 0; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.04em; padding: 0.25rem 0.6rem; border-radius: 999px; background: rgba(234, 247, 248, 0.12); color: var(--mint); }

/* ---------- App renders (AI concept renders, screens checked against test builds) ---------- */

.render { position: relative; margin: 0 auto; width: fit-content; max-width: 100%; }
.render img { border-radius: var(--radius-photo); }
.render-tall img { width: min(22rem, 80vw); }
.render-square img { width: min(30rem, 92vw); }
.render-wide img { width: min(34rem, 92vw); }

/* ---------- Evidence page ---------- */

/* The uses list is reused on a dark band, so its ink needs to flip. */
.on-dark .uses div { border-top-color: rgba(234, 247, 248, 0.25); }
.on-dark .uses dd { color: var(--mint-dim); }

.findings { list-style: none; padding: 0; margin: 1.5rem 0; display: grid; gap: 1rem; }
.findings li { margin: 0; padding-left: 1.1rem; border-left: 3px solid var(--teal); line-height: 1.5; }

.refs { padding-left: 1.2rem; font-size: var(--step--1); line-height: 1.5; }
.refs li { margin-bottom: 0.7rem; }

.data { width: 100%; border-collapse: collapse; font-size: var(--step--1); }
.data th, .data td { text-align: left; padding: 0.5rem 0.75rem 0.5rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.data th { font-weight: 600; color: var(--ink); }
.data td { color: var(--ink-soft); }

/* Charts. Two layouts, swapped at the narrow breakpoint, because the wide one's
   labels fall below legible size once the viewBox is scaled to a phone. */
/* 40rem matches the wide viewBox, so the SVG renders about 1:1 and its type
   stays at the size it was drawn for. */
.chart { margin: 2.5rem 0 0; max-width: 40rem; }
.chart figcaption { margin-top: 0.85rem; font-size: var(--step--1); color: var(--ink-soft); line-height: 1.5; max-width: 42rem; }
.chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart .chart-narrow { display: none; }
@media (max-width: 40rem) {
  .chart .chart-wide { display: none; }
  .chart .chart-narrow { display: block; }
}
.c-label { font-size: 13px; font-weight: 600; fill: var(--ink); }
.c-sub { font-size: 11.5px; fill: var(--ink-soft); }
.c-value { font-size: 13px; font-weight: 700; fill: var(--teal); }
.c-axis { font-size: 11.5px; fill: var(--ink-soft); }
.c-grid { stroke: var(--line); stroke-width: 1; }
.c-zero { stroke: var(--ink-soft); stroke-width: 1.5; }
.c-group { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; fill: var(--ink-soft); }
.c-bar { fill: var(--teal); }
.chart-wide .c-bar-alt { fill: url(#hatchw); stroke: var(--teal); stroke-width: 1.5; }
.chart-narrow .c-bar-alt { fill: url(#hatchn); stroke: var(--teal); stroke-width: 1.5; }
.c-dot { fill: var(--teal); stroke: var(--paper); stroke-width: 2; }
.c-dot-alt { fill: var(--paper); stroke: var(--teal); stroke-width: 2.5; }
.c-range { stroke: var(--teal); stroke-width: 6; stroke-linecap: round; opacity: 0.35; }
.c-range-alt { stroke-dasharray: 2 4; opacity: 0.65; stroke-width: 4; }
.c-wide .c-range { opacity: 0.55; }

/* ---------- Rythmo Triage page (added 3 Oct 2026) ---------- */

/* Tag colours, the same values as the Triage app. Label always shown with the colour. */
:root {
  --tag-red: #D62828;
  --tag-yellow: #FFC400;
  --tag-green: #1E9648;
  --tag-black: #141414;
}

.triage-lockup { width: 11rem; height: auto; margin-bottom: 1.75rem; }
.triage-hero-art { display: none; margin: 0; }
@media (min-width: 56rem) {
  .triage-hero { display: grid; grid-template-columns: 1fr auto; gap: 4rem; align-items: center; }
  .triage-hero-art { display: grid; justify-items: center; gap: 1rem; }
  .triage-hero-art .label { position: static; background: rgba(234, 247, 248, 0.12); color: var(--mint); }
  .triage-hero-art .tx-phone { width: 16rem; transform: rotate(3deg); }
  .triage-hero-art .tx-screen img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
}
.triage-head h1 { max-width: 16ch; }

/* The app is light, so its screenshots sit on mint rather than the deep band. */
.screen-stage-light { background: var(--mint); }
.screen-stage-light .label { background: #FFFFFF; color: var(--teal-deep); }
.screen-stage-light img { box-shadow: 0 0 0 1px var(--line), 0 18px 40px -24px rgba(18, 37, 63, 0.45); }

.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.5rem; counter-reset: step; }
.steps li { margin: 0; padding: 1rem 0 0 3rem; border-top: 1px solid var(--line); position: relative; counter-increment: step; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 1rem;
  width: 2rem; height: 2rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--yellow); color: var(--ink); font-weight: 700;
}
.steps b { display: block; font-weight: 600; font-size: var(--step-1); margin-bottom: 0.2rem; }
.steps span { color: var(--ink-soft); }

/* ---------- Walkthrough: the screen recording with synced steps ---------- */

/* Phones: step text, then the phone, then the sieve, so the text and the
   video are on screen together. Wide screens: phone left, text and sieve right. */
.tx-stage { display: grid; gap: 1.25rem 4rem; margin-top: 2rem; grid-template-areas: "head" "device" "sieve"; }
.tx-head { grid-area: head; }
.tx-device { grid-area: device; }
.tx-sieve { grid-area: sieve; max-width: 34rem; }
@media (min-width: 56rem) {
  .tx-stage { grid-template-columns: auto 1fr; grid-template-areas: "device head" "device sieve"; grid-template-rows: 1fr 1fr; margin-top: 2.5rem; }
  .tx-head { align-self: end; max-width: 34rem; }
  .tx-sieve { align-self: start; }
}

.tx-device { display: grid; justify-items: center; align-content: start; gap: 1rem; }
.tx-device .label { position: static; background: rgba(234, 247, 248, 0.12); color: var(--mint); }
.tx-phone {
  width: min(18rem, 72vw); padding: 0.55rem; border-radius: 2.6rem;
  background: #0B1518; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14), 0 30px 60px -30px rgba(0, 0, 0, 0.8);
}
.tx-screen { position: relative; border-radius: 2.1rem; overflow: hidden; aspect-ratio: 480 / 984; background: #FBFDFD; }
.tx-screen video { display: block; width: 100%; height: 100%; object-fit: cover; }
.tx-ring {
  position: absolute; border: 3px solid var(--yellow); border-radius: 14px; pointer-events: none;
  box-shadow: 0 0 0 4px rgba(255, 210, 63, 0.28), 0 0 26px rgba(255, 210, 63, 0.55);
  opacity: 0; transform: scale(1.06); transition: opacity 0.35s ease, transform 0.35s ease;
}
.tx-ring.is-on { opacity: 1; transform: scale(1); }
@media (prefers-reduced-motion: no-preference) {
  .tx-ring.is-on { animation: tx-pulse 1.6s ease-in-out infinite; }
}
@keyframes tx-pulse { 50% { box-shadow: 0 0 0 7px rgba(255, 210, 63, 0.16), 0 0 34px rgba(255, 210, 63, 0.7); } }

.tx-play {
  display: inline-flex; align-items: center; gap: 0.5rem; font: inherit; font-weight: 600;
  color: #FFFFFF; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px; padding: 0.5rem 1.1rem; cursor: pointer; min-height: 2.75rem;
}
.tx-play:hover { background: rgba(255, 255, 255, 0.16); }
.tx-play-icon { width: 0.8rem; height: 0.8rem; display: inline-block; border-left: 3px solid currentColor; border-right: 3px solid currentColor; }
.tx-play[data-state="paused"] .tx-play-icon { border: 0; width: 0; height: 0; border-left: 0.7rem solid currentColor; border-top: 0.45rem solid transparent; border-bottom: 0.45rem solid transparent; }

.tx-count { font-size: var(--step--1); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--yellow); margin-bottom: 0.5rem; font-variant-numeric: tabular-nums; }
.tx-copy { min-height: 11.5rem; }
.tx-copy h3 { font-size: var(--step-3); line-height: 1.1; margin-bottom: 0.5em; }
.tx-copy p { color: var(--mint-dim); font-size: var(--step-1); line-height: 1.5; }
@media (prefers-reduced-motion: no-preference) {
  .tx-copy.is-entering h3, .tx-copy.is-entering p { animation: tx-in 0.55s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .tx-copy.is-entering p { animation-delay: 0.08s; }
}
@keyframes tx-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* The sieve, drawn as rows. The script lights the steps the current patient has
   passed through and the outcome it reached. */
.sv { display: grid; gap: 0.35rem; margin-top: 1.5rem; padding: 1.1rem; border-radius: 16px; background: rgba(0, 0, 0, 0.18); border: 1px solid rgba(234, 247, 248, 0.12); }
.sv-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.sv-q {
  font-weight: 600; padding: 0.4rem 0.75rem; border-radius: 10px;
  border: 1.5px solid rgba(234, 247, 248, 0.3); color: var(--mint-dim);
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.sv-q-small { font-size: var(--step--1); }
.sv-exit { font-size: var(--step--1); color: rgba(234, 247, 248, 0.55); }
.sv-exit::after { content: " \2192"; }
.sv-branch { padding-left: 1.5rem; }
.sv-down { font-size: 0.8125rem; color: rgba(234, 247, 248, 0.55); padding-left: 1rem; border-left: 2px solid rgba(234, 247, 248, 0.25); margin-left: 1.25rem; line-height: 1.6; transition: color 0.3s ease, border-color 0.3s ease; }
.sv-down::before { content: "\2193  "; }
.sv-out {
  font-size: var(--step--1); font-weight: 700; padding: 0.3rem 0.65rem; border-radius: 8px;
  opacity: 0.38; transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.sv-p1 { background: var(--tag-red); color: #FFFFFF; }
.sv-p2 { background: var(--tag-yellow); color: var(--ink); }
.sv-p3 { background: var(--tag-green); color: #FFFFFF; }
.sv-dead { background: var(--tag-black); color: #FFFFFF; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.5); }
.sv .is-lit.sv-q, .sv .is-lit .sv-q:first-child { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
.sv-down.is-lit { color: var(--yellow); border-left-color: var(--yellow); }
.sv-out.is-lit { opacity: 1; transform: scale(1.08); box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.85), 0 6px 18px rgba(0, 0, 0, 0.35); }

.tx-rail { list-style: none; padding: 0; margin: 2.5rem 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(7.5rem, 1fr)); gap: 0.5rem; }
.tx-rail li { margin: 0; }
.tx-rail button {
  width: 100%; height: 100%; text-align: left; font: inherit; font-size: var(--step--1); line-height: 1.3;
  color: var(--mint-dim); background: transparent; border: 0; padding: 0.6rem 0.2rem 0.3rem; cursor: pointer;
}
.tx-rail button:hover { color: #FFFFFF; }
.tx-rail button[aria-current="step"] { color: #FFFFFF; font-weight: 600; }
.tx-bar { display: block; height: 4px; border-radius: 2px; background: rgba(234, 247, 248, 0.2); margin-bottom: 0.55rem; overflow: hidden; }
.tx-bar i { display: block; height: 100%; width: 0; background: var(--yellow); }
@media (max-width: 55.99rem) {
  .tx-phone { width: min(15rem, 62vw); }
  .tx-copy { min-height: 9.5rem; }
  .tx-copy h3 { font-size: var(--step-2); }
  .tx-copy p { font-size: var(--step-0); }
  .sv { margin-top: 0; }
}
@media (max-width: 30rem) {
  .sv { padding: 0.85rem; }
  .sv-q { font-size: 0.9375rem; padding: 0.35rem 0.6rem; }
  .sv-q-small, .sv-out, .sv-exit { font-size: 0.75rem; }
}
@media (max-width: 40rem) {
  .tx-rail { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 0.5rem; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
  .tx-rail li { flex: 0 0 7.5rem; scroll-snap-align: start; }
}

/* ---------- Rythmo Triage page for buyers (draft 5 Oct 2026) ---------- */

.tx-screen-tall { aspect-ratio: 780 / 1696; }

/* Two audience cards: services and universities. */
.audience { display: grid; gap: 1.25rem; margin-top: 2rem; }
@media (min-width: 48rem) { .audience { grid-template-columns: 1fr 1fr; gap: 1.5rem; } }
.audience-card {
  display: flex; flex-direction: column; align-items: flex-start;
  background: #FFFFFF; border: 1px solid var(--line); border-top: 6px solid var(--teal);
  border-radius: var(--radius-photo); padding: clamp(1.25rem, 4vw, 2rem);
}
.audience-card-sim { background: var(--cream); border-color: #F1E2BC; border-top-color: var(--yellow); }
.audience-card h3 { font-size: var(--step-2); }
.audience-card .button { margin-top: auto; }
.audience-card .ticks { margin-bottom: 1.5rem; }
.audience-kicker { font-size: var(--step--1); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal); margin-bottom: 0.4rem; }
.audience-card-sim .audience-kicker { color: #7A5A00; }

.ticks { list-style: none; padding: 0; display: grid; gap: 0.55rem; }
.ticks li { margin: 0; padding-left: 1.6rem; position: relative; }
.ticks li::before {
  content: ""; position: absolute; left: 0.1rem; top: 0.5em;
  width: 0.7rem; height: 0.4rem; border-left: 2.5px solid var(--teal); border-bottom: 2.5px solid var(--teal);
  transform: rotate(-45deg);
}

/* Tool tabs. Without JavaScript the list is a set of jump links and every
   panel shows in turn; triage-tabs.js adds .is-tabbed and the ARIA roles. */
.tool-tabs { margin-top: 2rem; }
.tool-tablist { list-style: none; padding: 0; margin: 0 0 1.5rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tool-tablist li { margin: 0; }
.tool-tab {
  display: inline-flex; align-items: center; min-height: 2.875rem; padding: 0.55rem 1.1rem;
  border-radius: 999px; border: 1.5px solid var(--teal); background: #FFFFFF;
  color: var(--teal); font-weight: 600; text-decoration: none; line-height: 1.2;
}
.tool-tab:hover { background: var(--paper); text-decoration: none; }
.tool-tab[aria-selected="true"] { background: var(--teal); color: #FFFFFF; }
.tool-panel { background: #FFFFFF; border: 1px solid var(--line); border-radius: var(--radius-photo); padding: clamp(1.25rem, 4vw, 2.25rem); scroll-margin-top: 5rem; }
.tool-panel + .tool-panel { margin-top: 1.5rem; }
.tool-tabs.is-tabbed .tool-panel + .tool-panel { margin-top: 0; }
.tool-panel:focus-visible { outline-offset: 4px; }
.tool-panel h3 { font-size: var(--step-2); }
.tool-intro { max-width: var(--measure); }
.tool-intro-wide { max-width: 44rem; }
.tool-facts { display: grid; gap: 0.9rem; margin: 1.5rem 0 0; }
@media (min-width: 48rem) { .tool-facts { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } }
.tool-intro:has(.tool-facts) { max-width: none; }
.tool-intro:has(.tool-facts) > p { max-width: var(--measure); }
.tool-facts div { border-top: 1px solid var(--line); padding-top: 0.75rem; }
.tool-facts dt { font-weight: 600; margin-bottom: 0.2rem; }
.tool-facts dd { margin: 0; color: var(--ink-soft); font-size: var(--step--1); line-height: 1.5; }
.tool-panel .label-static { background: var(--mint); color: var(--teal-deep); }

/* Screenshot strip: swipes sideways inside the panel on phones (the page
   itself never scrolls sideways), three across on wide screens. */
.shots {
  list-style: none; padding: 0.25rem 0 0.75rem; margin: 1.75rem 0 0;
  display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.shots li { margin: 0; flex: 0 0 min(15rem, 66vw); scroll-snap-align: start; }
.shots figure { margin: 0; }
.shots img { width: 100%; border-radius: 1.6rem; box-shadow: 0 0 0 1px var(--line), 0 18px 40px -24px rgba(18, 37, 63, 0.45); }
.shots figcaption { font-size: var(--step--1); color: var(--ink-soft); line-height: 1.45; margin-top: 0.75rem; }
@media (min-width: 64rem) {
  .shots { display: grid; grid-template-columns: repeat(3, minmax(0, 15rem)); justify-content: center; gap: 2rem; overflow: visible; }
}

.facts-single { grid-template-columns: 1fr !important; gap: 1.1rem; margin-top: 1.5rem; }
@media (min-width: 64rem) { .facts-three { grid-template-columns: repeat(3, 1fr); } }
.callout-white { background: #FFFFFF; }
.row-top { align-items: start; }
.sources-title { font-size: var(--step-1); }
@media (min-width: 48rem) { #setup .row { grid-template-columns: 1.1fr 1fr; align-items: start; } }
#setup .screen-pair { flex-wrap: nowrap; }
#setup .screen-pair .screen-phone img { width: min(13rem, 36vw); }
#setup .screen-stage { min-height: 0; align-self: start; }
