/* marrowhealthapp.com. One sheet for every page.
   Stacked product tiles, short lines, one blue for actions. Light tiles use
   the app's wash, dark tiles its navy. Headings are Plus Jakarta Sans, text is
   Inter, both self-hosted. */

@font-face { font-family: "Jakarta"; src: url("/fonts/plus-jakarta-sans.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --ink: #0c1222;
  --text: #2b3346;
  --muted: #5c6578;
  --faint: #8790a2;
  --line: #e3e7f0;
  --wash: #f3f6fc;
  --accent: #2264df;
  --accent-ink: #184fb8;
  --navy: #0b0f1b;
  --navy-card: #161b27;
  --navy-line: #262d40;
  --navy-text: #aab3c6;
  --pro: #9a6a00;
  --star: #0c1222;
  --star-off: #cfd5e1;
  --display: "Jakarta", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --content: 61.25rem;
  --prose: 42rem;
  --card-shadow: 2px 4px 12px rgba(12, 18, 34, 0.08);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 3.5rem; }
body {
  margin: 0; background: #fff; color: var(--ink);
  font: 400 1.0625rem/1.47 var(--sans); letter-spacing: -0.012em;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { color: inherit; font-family: var(--display); margin: 0; font-weight: 600; letter-spacing: -0.025em; line-height: 1.08; }
p { margin: 0 0 1rem; }
strong, b { font-weight: 600; }
sup { font-size: 0.6em; line-height: 0; }
sup a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--content); margin: 0 auto; padding: 0 1.5rem; }
.muted { color: var(--muted); }

/* ---------- header ---------- */

.top {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, 0.8);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
}
.top .wrap { display: flex; align-items: center; gap: 2rem; height: 2.75rem; }
.brand { display: flex; align-items: center; gap: 0.45rem; color: var(--ink); font: 700 0.9375rem/1 var(--display); letter-spacing: -0.02em; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand img { width: 1.25rem; height: 1.25rem; border-radius: 0.3rem; display: block; }
.top nav { display: flex; gap: 1.6rem; margin: 0 auto; }
.top nav a { color: var(--ink); font-size: 0.75rem; letter-spacing: -0.01em; opacity: 0.8; white-space: nowrap; }
.top nav a:hover, .top nav a[aria-current="page"] { opacity: 1; text-decoration: none; }
.top .store { flex: none; }

/* ---------- buttons ---------- */

.pill {
  display: inline-block; background: var(--accent); color: #fff; font-size: 1.0625rem; line-height: 1.2;
  padding: 0.5rem 1.05rem; border-radius: 999px; border: 1px solid var(--accent); white-space: nowrap;
}
.pill:hover { background: var(--accent-ink); border-color: var(--accent-ink); text-decoration: none; }
.pill.line { background: transparent; color: var(--accent); }
.pill.line:hover { background: var(--accent); color: #fff; }
.acts { display: flex; flex-wrap: wrap; gap: 0.9rem; justify-content: center; margin: 1.1rem 0 0; }

.btn {
  display: inline-flex; align-items: center; gap: 0.6rem; background: var(--ink); color: #fff;
  padding: 0.6rem 1.2rem; border-radius: 999px; font-weight: 600; font-size: 0.9375rem;
}
.btn:hover { background: #1c2438; text-decoration: none; }
.btn.ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }

/* the App Store badge: Apple glyph, "Download on the" over "App Store" */
.store {
  display: inline-flex; align-items: center; gap: 0.7rem; background: var(--ink); color: #fff;
  padding: 0.7rem 1.35rem 0.7rem 1.1rem; border-radius: 0.8rem; letter-spacing: 0;
  transition: transform 0.2s ease, background 0.2s ease;
}
.store:hover { background: #1c2438; color: #fff; text-decoration: none; transform: translateY(-1px); }
.store svg { width: 1.6rem; height: 1.6rem; fill: currentColor; flex: none; margin-top: -0.15rem; }
.store span { display: block; line-height: 1.15; }
.store small { display: block; font-size: 0.6875rem; font-weight: 400; opacity: 0.85; }
.store b { color: #fff; font-size: 1.1875rem; font-weight: 600; letter-spacing: -0.01em; }
.store.sm { padding: 0.35rem 0.85rem 0.35rem 0.7rem; border-radius: 0.5rem; gap: 0.45rem; }
.store.sm svg { width: 1.05rem; height: 1.05rem; margin-top: -0.1rem; }
.store.sm small { font-size: 0.5rem; }
.store.sm b { font-size: 0.875rem; font-weight: 700; }
/* the Google Play badge, the same shape: Google's icon, "GET IT ON" over the
   wordmark. Both badges carry the thin grey edge of the official artwork, so
   they hold on the navy blocks too. */
.store { box-shadow: inset 0 0 0 1px rgba(166, 166, 166, 0.45); }
.store .gp { width: 1.45rem; height: 1.6rem; margin-top: 0; }
.store.sm .gp { width: 0.95rem; height: 1.05rem; margin-top: 0; }
.store .gp-word, .store.sm .gp-word { display: inline-block; width: 4.75em; height: 0.965em; margin: 0; vertical-align: -0.228em; fill: currentColor; }
/* Both, always: App Store first, Google Play first on Android. */
.stores { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0.625rem; vertical-align: middle; }
/* side by side down to a 375-point phone */
@media (max-width: 30rem) { .stores > .store:not(.sm) { padding-inline: 0.9rem 1.05rem; } }
.android .stores .play, .android .acts .play { order: -1; }
.home-cta .stores { justify-content: center; }
.links { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.5rem 0 0; }

/* ---------- devices ---------- */

.phone {
  background: var(--navy); padding: 0.45rem; border-radius: 2.9rem; margin: 0;
  box-shadow: 0 0 0 1px #2b3348, 0 0 0 0.2rem #151a28, 0 2.4rem 3.6rem -1.8rem rgba(12, 18, 34, 0.55);
  width: 18.5rem; max-width: 100%;
}
.phone img { display: block; width: 100%; border-radius: 2.45rem; }
.watches { display: flex; gap: 1rem; justify-content: center; align-items: flex-end; }
.watch {
  margin: 0; flex: 0 1 9.5rem; background: var(--navy); padding: 0.3rem; border-radius: 2rem;
  box-shadow: 0 0 0 1px #2b3348, 0 0 0 0.2rem #151a28, 0 1.6rem 2.6rem -1.4rem rgba(12, 18, 34, 0.6);
}
.watch img { display: block; width: 100%; height: auto; border-radius: 1.7rem; }

/* Store slides: each one carries its own phone, headline and colour, so it
   is shown as a rounded card, never inside a phone frame. .slides is a row
   that scrolls sideways when it does not fit. */
.slide {
  margin: 0; overflow: hidden; border-radius: 1.4rem; background: var(--wash);
  box-shadow: 0 0 0 1px rgba(12, 18, 34, 0.06), 0 1.6rem 2.6rem -1.6rem rgba(12, 18, 34, 0.4);
}
.slide img, main.doc .slide img { display: block; width: 100%; height: auto; border-radius: 0; }
.slides { display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
.slides .slide { flex: 1 0 11.5rem; max-width: 15rem; scroll-snap-align: start; }
.slides .slide:first-child { margin-inline-start: auto; }
.slides .slide:last-child { margin-inline-end: auto; }
main.doc .slides { margin: 2rem 0 1rem; padding: 0 1px 2rem; }
main.doc .slides .slide { margin-top: 0; margin-bottom: 0; }

/* ---------- tiles ---------- */

.tiles { display: grid; gap: 0.75rem; }
.tiles2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.tile {
  position: relative; display: flex; flex-direction: column; align-items: center;
  background: var(--wash); text-align: center; padding: 3.5rem 1.5rem 0; min-height: 38rem; overflow: hidden;
}
.tile.dark { background: var(--navy); color: #fff; }
/* The icon's four colours (violet, amber, teal, blue), lit from the top the
   way the App Store set is, with the ink dark on all of them. */
.tile.violet, .tile.amber, .tile.teal, .tile.blue { color: var(--ink); }
.tile.violet { background: radial-gradient(90rem 55rem at 50% 15%, rgba(255, 255, 255, 0.36), rgba(255, 255, 255, 0) 60%), #bf8cfc; }
.tile.amber { background: radial-gradient(90rem 55rem at 50% 15%, rgba(255, 255, 255, 0.36), rgba(255, 255, 255, 0) 60%), #ffb84d; }
.tile.teal { background: radial-gradient(90rem 55rem at 50% 15%, rgba(255, 255, 255, 0.36), rgba(255, 255, 255, 0) 60%), #3dd4bf; }
.tile.blue { background: radial-gradient(90rem 55rem at 50% 15%, rgba(255, 255, 255, 0.36), rgba(255, 255, 255, 0) 60%), #4f99ff; }
.tile.violet .small, .tile.amber .small, .tile.teal .small, .tile.blue .small { color: rgba(12, 18, 34, 0.64); }
.tile.violet .pill, .tile.amber .pill, .tile.teal .pill, .tile.blue .pill { background: var(--ink); border-color: var(--ink); color: #fff; }
.tile.violet .pill:hover, .tile.amber .pill:hover, .tile.teal .pill:hover, .tile.blue .pill:hover { background: #26304a; border-color: #26304a; }
.tile.violet .pill.line, .tile.amber .pill.line, .tile.teal .pill.line, .tile.blue .pill.line { background: transparent; color: var(--ink); }
.tile.violet .pill.line:hover, .tile.amber .pill.line:hover, .tile.teal .pill.line:hover, .tile.blue .pill.line:hover { background: var(--ink); color: #fff; }
.tile.violet .conn-chip, .tile.amber .conn-chip { background: rgba(255, 255, 255, 0.78); border-color: transparent; color: var(--ink); }
.tile.violet .conn-chip:hover, .tile.amber .conn-chip:hover { background: #fff; border-color: transparent; }
.tile.violet .art.card, .tile.amber .art.card, .tile.teal .art.card, .tile.blue .art.card { border-color: rgba(255, 255, 255, 0.6); }
.tile h1, .tile h2, .tile h3 { font-size: clamp(2.25rem, 4.2vw, 3.5rem); letter-spacing: -0.03em; }
.tile .tag { font-size: clamp(1.25rem, 2vw, 1.75rem); line-height: 1.14; letter-spacing: -0.015em; max-width: 19em; margin: 0.45rem auto 0; }
.tile .small { font-size: 1.0625rem; color: var(--muted); margin: 0.8rem 0 0; }
.tile.dark .small { color: var(--navy-text); }
.art { margin: 2.75rem auto 0; max-height: 25rem; overflow: hidden; }
.art.phone { width: 20rem; border-bottom-left-radius: 0; border-bottom-right-radius: 0; box-shadow: 0 0 0 1px #2b3348, 0 0 0 0.2rem #151a28; }
.art.card { width: 22rem; border-radius: 1.6rem 1.6rem 0 0; background: #fff; border: 1px solid var(--line); border-bottom: 0; }
.art.card img { display: block; width: 100%; height: auto; }
.dark .art.card { border-color: var(--navy-line); }
.art.watches { max-height: none; overflow: visible; padding-bottom: 3.5rem; width: 100%; max-width: 40rem; }
.art.watches .watch { flex-basis: 11rem; }
.art.combo { position: relative; width: 29rem; max-width: 100%; max-height: 27.5rem; }
.art.combo .phone { margin: 0 auto; width: 20rem; border-bottom-left-radius: 0; border-bottom-right-radius: 0; box-shadow: 0 0 0 1px #2b3348, 0 0 0 0.2rem #151a28; }
.art.combo .float {
  position: absolute; right: 0; bottom: 0.75rem; width: 17.5rem; height: auto; display: block;
  border-radius: 0.9rem; box-shadow: 0 1.5rem 3rem -1rem rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.tile:not(.dark) .art.combo .float { box-shadow: 0 1.2rem 2.4rem -1rem rgba(12, 18, 34, 0.3), 0 0 0 1px var(--line); }
.art.slide { width: 18rem; max-width: 100%; }
.art.slides { width: 100%; max-width: 45rem; overflow-y: hidden; padding: 0 1px; }
.art.slides .slide { flex: 0 0 14rem; border-bottom-left-radius: 0; border-bottom-right-radius: 0; box-shadow: 0 0 0 1px rgba(12, 18, 34, 0.06); }
.art.whole { max-height: none; overflow: visible; }
.art.slide.whole { overflow: hidden; }
.art.whole.phone { border-radius: 2.9rem; box-shadow: 0 0 0 1px #2b3348, 0 0 0 0.2rem #151a28, 0 2.4rem 3.6rem -1.8rem rgba(12, 18, 34, 0.55); }
.art.whole.card { border-radius: 1.6rem; border-bottom: 1px solid var(--line); box-shadow: var(--card-shadow); }
.tile.half { min-height: 31rem; padding-top: 3rem; }
.tile.half h3 { font-size: clamp(1.75rem, 2.8vw, 2.5rem); }
.tile.half .tag { font-size: clamp(1.0625rem, 1.5vw, 1.3125rem); max-width: 20em; }
.tile.half .art { margin-top: 2.25rem; max-height: 18rem; }
.tile.half .art.phone { width: 15.5rem; }
.tile.half .art.card { width: 18rem; }

/* ---------- sections ---------- */

.sec { padding: 5.5rem 0 1rem; }
.sec-h { font-size: clamp(2rem, 3.4vw, 3rem); letter-spacing: -0.03em; margin-bottom: 2rem; display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.sec-h a { font-family: var(--sans); font-size: 1.0625rem; font-weight: 400; letter-spacing: -0.012em; }

/* why: a row of cards that scrolls sideways */
.cards { display: flex; gap: 1.25rem; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0.25rem 1.5rem 1.75rem; margin: 0 -1.5rem; scrollbar-width: none; }
.cards::-webkit-scrollbar { display: none; }
.card-w {
  flex: 0 0 19rem; scroll-snap-align: start; display: flex; flex-direction: column; min-height: 21rem;
  background: var(--wash); border-radius: 1.25rem; padding: 1.75rem 1.75rem 1.5rem;
}
.eyebrow { font-size: 0.75rem; font-weight: 600; color: var(--muted); margin: 0 0 0.5rem; letter-spacing: 0; }
.card-w h3 { font-size: 1.625rem; letter-spacing: -0.025em; line-height: 1.12; }
.card-w p { font-size: 0.9375rem; color: var(--text); margin: 0.6rem 0 0; }
.card-w .stat { margin-top: auto; padding-top: 1.75rem; display: flex; flex-direction: column; gap: 0.1rem; }
.card-w .stat b { font: 600 2.75rem/1 var(--display); letter-spacing: -0.04em; color: var(--accent); }
.card-w .stat span { font-size: 0.8125rem; color: var(--muted); }
.card-w.say { min-height: 14rem; }
.card-w.say h3 { font-size: 1.5rem; }
.cards-nav { display: flex; justify-content: flex-end; gap: 0.75rem; margin: -0.5rem 0 0.5rem; }
.cards-nav button {
  width: 2.25rem; height: 2.25rem; border-radius: 50%; border: 0; background: #e6ebf5; color: var(--ink);
  font: 400 1.5rem/1 var(--sans); cursor: pointer; display: grid; place-items: center; padding: 0 0 0.2rem;
}
.cards-nav button:hover { background: #d9e0ee; }

/* ---------- feature pages ---------- */

main.feature { padding-bottom: 3rem; }
.fhero { background: var(--wash); text-align: center; padding: 4rem 1.5rem 0; overflow: hidden; }
.fhero h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); letter-spacing: -0.035em; }
.fhero .tag { font-size: clamp(1.25rem, 2.2vw, 1.75rem); line-height: 1.14; letter-spacing: -0.015em; max-width: 26em; margin: 0.6rem auto 0; }
.fhero .art { max-height: 28rem; }
.fhero .art.watches { padding-bottom: 4rem; }
.fsec { padding: 5.5rem 1.5rem 0; text-align: center; }
.fsec .eyebrow { color: var(--accent); font-size: 0.8125rem; margin-bottom: 0.75rem; }
.fsec h2 { font-size: clamp(2rem, 4vw, 3.5rem); letter-spacing: -0.035em; max-width: 14em; margin: 0 auto; }
.fsec > p { max-width: 36rem; margin: 1.25rem auto 0; font-size: 1.1875rem; line-height: 1.45; color: var(--text); }
.fsec .art { margin-top: 3rem; }
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; max-width: var(--content); margin: 2.5rem auto 0; text-align: start; }
.trio > div { background: var(--wash); border-radius: 1.25rem; padding: 1.75rem; }
.trio .watch { width: 8.5rem; flex: none; margin: 0 auto 1.5rem; }
.trio h3 { font-size: 1.375rem; }
.trio p { font-size: 0.9375rem; color: var(--text); margin: 0.5rem 0 0; }
.stats { display: flex; justify-content: center; gap: 4rem; flex-wrap: wrap; margin: 3rem auto 0; }
.stats b { display: block; font: 600 3.5rem/1 var(--display); letter-spacing: -0.04em; color: var(--accent); }
.stats span { display: block; font-size: 0.875rem; color: var(--muted); margin-top: 0.4rem; }
.qa { max-width: 38rem; margin: 2rem auto 0; text-align: start; padding-inline-start: 1.3rem; color: var(--text); }
.qa li { margin-bottom: 0.8rem; }
.fnote { max-width: 38rem; margin: 3rem auto 0; padding: 0 1.5rem; font-size: 0.9375rem; color: var(--muted); text-align: center; }
.fsec .fnote { padding: 0; margin-top: 1.5rem; }

/* made for each other */
.pair { background: var(--wash); border-radius: 1.75rem; padding: 2.5rem 3rem; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; align-items: center; overflow: hidden; }
.pair details { border-bottom: 1px solid var(--line); }
.pair details:last-child { border-bottom: 0; }
.pair summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.15rem 0; font: 600 1.375rem/1.2 var(--display); letter-spacing: -0.025em; color: var(--ink);
}
.pair summary::-webkit-details-marker { display: none; }
.pair summary::after {
  content: ""; flex: none; width: 0.6rem; height: 0.6rem; margin-right: 0.3rem;
  border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg); transition: transform 0.25s ease;
}
.pair details[open] summary::after { transform: rotate(225deg); }
.pair details p { margin: 0 0 1.4rem; max-width: 26rem; color: var(--text); }
.pair-art { position: relative; display: grid; place-items: center; padding: 1rem 2rem 1rem 0; }
.pair-art .phone { display: grid; width: 15.5rem; }
.pair-art .phone img { grid-area: 1 / 1; opacity: 0; transition: opacity 0.4s ease; }
.pair-art .phone img.on { opacity: 1; }
.pair-art .watch { position: absolute; right: 0; bottom: 2rem; width: 7.5rem; opacity: 0; transition: opacity 0.4s ease; }
.pair[data-on="0"] .pair-art .watch { opacity: 1; }

/* reviews: the App Store rating, then the written reviews word for word */
.score { display: flex; align-items: center; gap: 1.1rem; margin: -0.5rem 0 1.75rem; }
.score b { font: 600 4rem/1 var(--display); letter-spacing: -0.04em; }
.score p { margin: 0.4rem 0 0; font-size: 0.9375rem; color: var(--muted); }
.stars { display: block; width: 5.5rem; height: auto; }
.score .stars { width: 7.5rem; }
.reviews { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.review.feature { grid-column: 1; grid-row: 1 / span 5; }
.review blockquote p + p { margin-top: 0.75em; }
.review { margin: 0; background: var(--wash); border-radius: 1.25rem; padding: 1.75rem; display: flex; flex-direction: column; }
.review h3 { font-size: 1.375rem; margin-top: 1rem; }
.review blockquote { margin: 0.6rem 0 0; font-size: 0.9375rem; color: var(--text); }
.review blockquote p { margin: 0; }
.review figcaption { margin-top: auto; padding-top: 1.25rem; font-size: 0.8125rem; color: var(--muted); }

/* plans */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.plan { background: var(--wash); border-radius: 1.5rem; padding: 2.5rem 2rem 2.25rem; text-align: center; display: flex; flex-direction: column; }
.plan h3 { font-size: 1.625rem; }
.plan .tag { font-size: 1.0625rem; margin: 0.35rem 0 0; }
.plan .price { font-size: 0.9375rem; color: var(--muted); margin: 0.5rem 0 0; }
.plan ul { list-style: none; margin: 1.5rem 0 0; padding: 1.5rem 0 0; border-top: 1px solid var(--line); font-size: 0.9375rem; color: var(--text); }
.plan li { padding: 0.3rem 0; }
.plan .acts { margin-top: auto; padding-top: 1.75rem; }

/* closing */
.get { text-align: center; padding: 5rem 0 3rem; }
.get .app-icon { width: 4.5rem; height: 4.5rem; border-radius: 1rem; box-shadow: var(--card-shadow); }
.get h2 { font-size: clamp(2rem, 3.4vw, 3rem); letter-spacing: -0.03em; margin-top: 1.2rem; }
.get .tag { font-size: 1.1875rem; color: var(--muted); margin: 0.5rem 0 0; }

/* footnotes */
.notes { max-width: var(--content); margin: 0 auto; padding: 2rem 1.5rem 1rem; font-size: 0.75rem; line-height: 1.5; color: var(--faint); }
.notes ol { margin: 0; padding-inline-start: 1rem; }
.notes li { margin-bottom: 0.4rem; }
.notes a { color: inherit; text-decoration: underline; }

/* ---------- article pages ---------- */

main.doc { padding: 3.5rem 0 5rem; }
main.doc .wrap { max-width: calc(var(--prose) + 3rem); }
main.doc h1 { font-size: clamp(2.25rem, 4.5vw, 3rem); letter-spacing: -0.03em; margin-bottom: 1rem; }
main.doc h2 { font-size: 1.75rem; margin: 3rem 0 0.8rem; }
main.doc h3 { font-size: 1.1875rem; letter-spacing: -0.015em; margin: 1.8rem 0 0.5rem; }
main.doc p, main.doc li { color: var(--text); }
main.doc .lede { font-size: 1.3125rem; line-height: 1.4; letter-spacing: -0.02em; color: var(--muted); }
main.doc ul, main.doc ol { padding-inline-start: 1.3rem; margin: 0 0 1rem; }
main.doc li { margin-bottom: 0.45rem; }
main.doc table { margin: 1.2rem 0 1.4rem; }
main.doc td.y { color: #17734a; font-weight: 600; }
main.doc td.n { color: var(--faint); }
main.doc td.w { color: var(--pro); }
main.doc figure { margin: 1.5rem 0; }
main.doc figcaption { color: var(--faint); font-size: 0.875rem; margin-top: 0.6rem; }
main.doc img { border-radius: 1.2rem; }
main.doc .watches { margin: 1.8rem 0 2.2rem; }
main.doc .watch img { border-radius: 1.7rem; }
main.doc .muted { font-size: 0.9375rem; }
main.doc .scroll { overflow-x: auto; margin: 1.2rem 0 1.4rem; -webkit-overflow-scrolling: touch; }
main.doc .scroll > table { margin: 0; }
@media (max-width: 48rem) { main.doc .scroll > table { min-width: 40rem; } }
main.doc .crumbs { font-size: 0.875rem; color: var(--muted); margin: 0 0 1.25rem; }
main.doc .crumbs a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* Campus menus: the app pitch, a hall's facts, menu tables, folding meals. */
main.doc .where { font-size: 0.9375rem; font-weight: 600; color: var(--muted); margin: -0.4rem 0 1rem; }
.getapp { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; background: var(--wash); border-radius: 0.9rem; padding: 1.1rem 1.25rem; margin: 1.3rem 0 1.6rem; overflow: hidden; }
.getapp p { margin: 0 0 0.8rem; }
.getapp .store { white-space: nowrap; }
main.doc .getapp .getapp-h { font: 700 1.3125rem/1.2 var(--display); letter-spacing: -0.02em; color: var(--ink); margin-bottom: 0.4rem; }
main.doc .getapp img { flex: none; width: 9.5rem; height: auto; margin: 0 0 -7rem; border-radius: 0.8rem; box-shadow: 0 0 0 1px rgba(12, 18, 34, 0.06); }
main.doc ul.facts, main.doc ul.halls { list-style: none; padding-inline-start: 0; }
main.doc ul.facts li, main.doc ul.halls li { border-bottom: 1px solid var(--line); padding: 0.5rem 0; margin: 0; }
main.doc ul.facts strong { display: block; font-size: 0.8125rem; color: var(--muted); font-weight: 600; }
main.doc ul.halls li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.1rem 1rem; }
main.doc ul.halls a { font-weight: 600; }
main.doc table.menu { margin: 0.4rem 0 1.2rem; font-variant-numeric: tabular-nums; }
table.menu th, table.menu td { padding: 0.5rem 0; padding-inline-start: 0.75rem; }
table.menu th { font-size: 0.8125rem; color: var(--muted); }
table.menu th:first-child, table.menu td:first-child { padding-inline-start: 0; width: 100%; }
table.menu th + th, table.menu td + td { text-align: end; white-space: nowrap; min-width: 3.4rem; }
table.menu td:nth-child(2) { font-weight: 600; color: var(--ink); }
.diet { display: inline-block; font-size: 0.6875rem; font-weight: 600; line-height: 1; color: #17734a; background: #e9f6ef; border-radius: 999px; padding: 0.2rem 0.45rem; vertical-align: middle; white-space: nowrap; }
details.fold { border-top: 1px solid var(--line); }
details.fold:last-of-type { border-bottom: 1px solid var(--line); margin-bottom: 1.2rem; }
details.fold > summary { cursor: pointer; padding: 0.85rem 0; font-size: 1.0625rem; }
details.fold[open] > summary { padding-bottom: 0.3rem; }
main.doc details.fold h3 { font-size: 1rem; margin: 1.1rem 0 0.1rem; }
main.doc details.fold h4 { font-size: 0.9375rem; margin: 0.9rem 0 0; color: var(--muted); }
@media (max-width: 30rem) {
  .getapp { padding: 1rem; gap: 0.75rem; }
  main.doc .getapp img { width: 6.5rem; }
  .getapp .store { padding-inline: 0.8rem 1rem; }
  table.menu { font-size: 0.875rem; }
  table.menu th, table.menu td { padding-inline-start: 0.4rem; }
  table.menu th + th, table.menu td + td { min-width: 2.9rem; }
}

table { border-collapse: collapse; width: 100%; font-size: 0.9375rem; }
th, td { text-align: start; vertical-align: top; padding: 0.75rem 0; padding-inline-end: 1rem; border-bottom: 1px solid var(--line); }
th { color: var(--ink); font-weight: 600; }
thead th { border-bottom-color: var(--ink); font-size: 0.875rem; }

code { font: 0.875em/1.4 var(--mono); background: var(--wash); border: 1px solid var(--line); border-radius: 0.3rem; padding: 0.08em 0.32em; color: var(--ink); }
pre {
  background: var(--navy); color: #dfe5f1; font: 0.8125rem/1.6 var(--mono);
  padding: 1rem 1.15rem; border-radius: 0.9rem; overflow-x: auto; margin: 0.8rem 0 1.4rem;
}
pre code, pre b { background: none; border: 0; padding: 0; color: inherit; font: inherit; }
pre .k { color: #8fbaff; }

.byline { font-size: 0.875rem; color: var(--muted); margin: 0 0 1rem; }
.byline a { color: inherit; }
.note { background: var(--wash); border-radius: 0.9rem; padding: 1.1rem 1.25rem; margin: 1.3rem 0; }
.note p:last-child { margin-bottom: 0; }
.note.alert { background: #fdf6e7; }
.note.contact { text-align: start; }
.note.contact .mail { font-size: 1.1875rem; font-weight: 600; }
.pro { color: var(--pro); font-weight: 600; }
ul.never { list-style: none; padding-inline-start: 0; }
ul.never li { padding-inline-start: 1.5rem; position: relative; }
ul.never li::before { content: "×"; position: absolute; inset-inline-start: 0.2rem; color: var(--faint); }

.prompt { border: 1px solid var(--line); border-radius: 1rem; margin: 1.5rem 0; overflow: hidden; box-shadow: var(--card-shadow); }
.prompt-h { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.7rem 0.8rem 0.7rem 1.1rem; border-bottom: 1px solid var(--line); background: var(--wash); }
.prompt-h b { font-size: 0.9375rem; }
button.copy svg { display: none; }
.prompt-text { margin: 0; padding: 1rem 1.1rem; font: 0.8125rem/1.65 var(--mono); color: var(--text); overflow-wrap: anywhere; background: #fff; }
button.copy {
  font: 600 0.8125rem var(--sans); color: #fff; background: var(--accent); border: 0;
  border-radius: 999px; padding: 0.4rem 0.85rem; cursor: pointer;
}
button.copy:hover { background: var(--accent-ink); }

.shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr)); gap: 0.9rem; margin: 1.2rem 0; }
.shots img { display: block; border-radius: 0.9rem; border: 1px solid var(--line); }
.split-fig { display: flex; gap: 2rem; align-items: flex-start; flex-wrap: wrap; }
.split-fig > div { flex: 1 1 20rem; }
.split-fig figure { flex: 0 1 13rem; margin: 0; }
.kicker { color: var(--accent); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; margin: 0 0 0.8rem; }

/* the in-browser tools (Apple Health converter) */
.tool { margin: 1.75rem 0 2.5rem; }
.drop {
  display: flex; flex-direction: column; align-items: center; gap: 0.35rem; text-align: center; cursor: pointer;
  border: 2px dashed #c5cee0; border-radius: 1.1rem; background: var(--wash); padding: 2.25rem 1.25rem;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop strong { font: 600 1.1875rem/1.2 var(--display); color: var(--accent); }
.drop span { color: var(--muted); font-size: 0.9375rem; }
.drop:hover, .drop.over, .drop:focus-within { border-color: var(--accent); background: #eaf1fd; }
.drop.off { pointer-events: none; opacity: 0.55; }
.tool .progress { margin: 1.25rem 0 0; }
.tool .bar { height: 0.5rem; border-radius: 999px; background: var(--line); overflow: hidden; }
.tool .bar i { display: block; height: 100%; width: 0; background: var(--accent); transition: width 0.2s ease; }
.tool .err { color: #b42318; margin: 1rem 0 0; }
.tool .files { list-style: none; padding: 0; margin: 1rem 0 1.5rem; }
.tool .files li { margin: 0 0 0.6rem; }
.tool .files .pill, #hc-raw-out .pill { font-size: 0.9375rem; padding: 0.4rem 0.9rem; white-space: normal; }
.tool .pick select { font: inherit; font-size: 0.9375rem; padding: 0.45rem 0.6rem; border: 1px solid var(--line); border-radius: 0.6rem; max-width: 100%; }
.tool .pick button, .tool td button, .tool ol button { font: 600 0.9375rem var(--sans); color: #fff; background: var(--accent); border: 0; border-radius: 999px; padding: 0.5rem 1rem; cursor: pointer; }
.tool .pick button:disabled, .tool td button:disabled, .tool ol button:disabled { opacity: 0.5; cursor: default; }
.tool td button, .tool ol button, .tool td .pill { font-size: 0.8125rem; padding: 0.3rem 0.75rem; }
.tool ol li { margin: 0 0 0.5rem; }
.tool .scroll { overflow-x: auto; max-height: 28rem; overflow-y: auto; border: 1px solid var(--line); border-radius: 0.8rem; }
.tool .scroll table { margin: 0; }
.tool .scroll th, .tool .scroll td { padding: 0.5rem 0.75rem; white-space: nowrap; }

/* ---------- footer ---------- */

.foot { background: var(--wash); padding: 2rem 0 1.5rem; font-size: 0.75rem; line-height: 1.5; color: var(--muted); margin-top: 2rem; }
.foot .cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; padding-bottom: 1.5rem; }
.foot h4 { color: var(--ink); font: 600 0.75rem/1.5 var(--sans); letter-spacing: -0.01em; margin: 0 0 0.6rem; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin-bottom: 0.45rem; }
.foot a { color: var(--muted); }
.foot a:hover { color: var(--ink); text-decoration: underline; }
.foot .legal { padding: 1.25rem 0; border-top: 1px solid var(--line); color: var(--faint); max-width: 58rem; }
.foot .legal p { margin: 0 0 0.5rem; }
.foot .legal a { color: inherit; text-decoration: underline; }
.foot .bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 1.1rem; border-top: 1px solid var(--line); color: var(--faint); }
.foot .bar p { margin: 0; }
.social { display: flex; gap: 1rem; }
.social a { display: block; color: var(--ink); }
.social a:hover { color: var(--accent); }
.social svg { display: block; width: 1.1rem; height: 1.1rem; fill: currentColor; }

/* ---------- motion ---------- */

.js .rv { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .rv.in { opacity: 1; transform: none; }

/* ---------- small screens ---------- */

@media (max-width: 62rem) {
  .top nav { gap: 1rem; }
  .top .wrap { gap: 1.25rem; }
  /* Seven items and translated labels outgrow the bar: the last ones go first
     (Coach, Food, Workouts and Campus dining always stay), and the Menu
     button beside them opens the whole list. */
  .top > .wrap > nav a:nth-child(n+6) { display: none; }
  .pair { padding: 2rem; gap: 2rem; }
}
@media (max-width: 48rem) {
  .tiles2 { grid-template-columns: minmax(0, 1fr); }
  .tile { min-height: 0; padding: 3rem 1.25rem 0; }
  .tile h1, .tile h2, .tile h3 { font-size: 2rem; }
  .tile .tag { font-size: 1.1875rem; }
  .tile .small { font-size: 0.9375rem; }
  .pill { font-size: 0.9375rem; padding: 0.4rem 0.9rem; }
  .art { margin-top: 2rem; max-height: 19rem; }
  .art.phone { width: 15rem; }
  .art.card { width: 18rem; }
  .art.slide { width: 15rem; }
  .art.slides .slide { flex-basis: 11.5rem; }
  .art.combo { width: 100%; max-width: 20rem; }
  .art.combo .phone { width: 15rem; }
  .art.combo .float { width: 13.5rem; bottom: 1rem; }
  .art.watches { padding-bottom: 2.5rem; gap: 0.6rem; }
  .art.watches .watch { flex-basis: 30%; }
  .fhero { padding-top: 3rem; }
  .fhero .art { max-height: 21rem; }
  .fsec { padding-top: 4rem; }
  .fsec > p { font-size: 1.0625rem; }
  .trio { grid-template-columns: minmax(0, 1fr); }
  .stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; }
  .stats b { font-size: 2.5rem; }
  .stats span { font-size: 0.75rem; }
  .tile.half { min-height: 0; }
  .tile.half h3 { font-size: 1.75rem; }
  .tile.half .tag { font-size: 1.0625rem; }
  .tile.half .art { max-height: 16rem; }
  .tile.half .art.phone { width: 13.5rem; }
  .tile.half .art.card { width: 16rem; }
  .sec { padding-top: 4rem; }
  .sec-h { margin-bottom: 1.5rem; }
  .cards { padding-left: 1.25rem; padding-right: 1.25rem; margin: 0 -1.25rem; }
  .card-w { flex-basis: 78%; }
  .pair { grid-template-columns: minmax(0, 1fr); padding: 1.5rem 1.25rem; border-radius: 1.25rem; }
  .pair-art { padding: 1rem 0 0; }
  .pair-art .phone { width: 13rem; }
  .pair-art .watch { width: 6.5rem; right: 0.5rem; bottom: 1rem; }
  .plans { grid-template-columns: minmax(0, 1fr); }
  .reviews { grid-template-columns: minmax(0, 1fr); }
  .review.feature { grid-column: auto; grid-row: auto; }
  .score b { font-size: 3.25rem; }
  .get { padding-top: 4rem; }
  .foot .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 44rem) {
  .top > .wrap > nav { display: none; }
  .top .lang { margin-inline-start: auto; }
  .wrap { padding: 0 1.25rem; }
  .foot .cols { grid-template-columns: minmax(0, 1fr); }
  .foot .bar { flex-direction: column-reverse; align-items: flex-start; gap: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .rv { opacity: 1; transform: none; transition: none; }
  .pair-art .phone img, .pair-art .watch, .pair summary::after { transition: none; }
}
main.doc .tool .scroll > table { min-width: 0; }

/* connection pages (/connections, /connections/<id>) */
.mark { display: inline-flex; align-items: center; justify-content: center; flex: none; background: #fff; border: 1px solid var(--line); border-radius: 22%; box-shadow: var(--card-shadow); }
.mark i { display: block; width: 58%; height: 58%; -webkit-mask-size: contain; mask-size: contain; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: center; mask-position: center; }
.mark svg { width: 52%; height: 52%; }
.mark.img { border: 0; background: none; overflow: hidden; }
.mark.img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.chip.soon { color: var(--muted); background: none; border: 1px dashed var(--line); }
.doorplan.soon { color: #6b5bcc; background: #efecfb; }
.mark.lg { width: 4.5rem; height: 4.5rem; }
.mark.md { width: 2.75rem; height: 2.75rem; box-shadow: none; }
.mark.sm { width: 1.75rem; height: 1.75rem; box-shadow: none; border-radius: 0.45rem; }
.conn-head { display: flex; align-items: center; gap: 1.1rem; margin-bottom: 1.2rem; }
main.doc .conn-head h1 { margin: 0 0 0.45rem; font-size: clamp(1.9rem, 4vw, 2.6rem); }
.chips { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.chip { font-size: 0.75rem; font-weight: 600; color: var(--accent); background: var(--wash); border-radius: 999px; padding: 0.2rem 0.6rem; white-space: nowrap; }
.chip.pro { color: var(--pro); background: #fdf6e7; }
.doorplan { display: inline-block; font: 600 0.75rem/1 var(--sans); letter-spacing: 0; vertical-align: middle; color: #17734a; background: #e9f6ef; border-radius: 999px; padding: 0.3rem 0.6rem; margin-inline-start: 0.4rem; }
.doorplan.pro { color: var(--pro); background: #fdf6e7; }
main.doc .small { font-size: 0.875rem; }
main.doc .jump { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; font-size: 0.9375rem; margin: 1.6rem 0 0; }
main.doc ol.steps { padding-inline-start: 1.5rem; }
main.doc ol.steps li { margin-bottom: 0.7rem; padding-inline-start: 0.2rem; }
.snip { position: relative; margin: 0.6rem 0 0.2rem; }
.snip pre { margin: 0; padding-inline-end: 5.2rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.snip button.copy { position: absolute; top: 0.6rem; inset-inline-end: 0.6rem; }
main.doc ul.asks { list-style: none; padding-inline-start: 0; }
main.doc ul.asks li { background: var(--wash); border-radius: 0.8rem; padding: 0.6rem 0.9rem; font-style: italic; }
.conn-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(12.5rem, 1fr)); gap: 0.75rem; margin: 1rem 0 0.5rem; }
.conn-card { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 0.75rem; row-gap: 0.3rem; align-items: center; padding: 0.85rem; border: 1px solid var(--line); border-radius: 1rem; color: var(--ink); }
.conn-card:hover { border-color: var(--accent); text-decoration: none; }
.conn-card .mark { grid-row: 1 / 3; }
.conn-card .t { font-weight: 600; }
.conn-card .chips .chip { font-size: 0.6875rem; padding: 0.12rem 0.45rem; }
.conn-minis { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.conn-mini { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.35rem 0.75rem 0.35rem 0.35rem; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); font-size: 0.9375rem; }
.conn-mini:hover { border-color: var(--accent); text-decoration: none; }

/* ---------- languages ---------- */

.lang { position: relative; flex: none; margin-inline-end: -1.25rem; }
.lang summary {
  list-style: none; display: flex; align-items: center; gap: 0.3rem; cursor: pointer;
  padding: 0.3rem 0.5rem; border-radius: 0.5rem; color: var(--ink);
  font: 600 0.75rem/1 var(--sans); letter-spacing: 0; opacity: 0.8;
}
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover, .lang[open] summary { opacity: 1; background: rgba(12, 18, 34, 0.06); }
.lang summary svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 1.6; }
.lang-menu {
  position: absolute; top: calc(100% + 0.55rem); inset-inline-end: 0; z-index: 30;
  width: min(33rem, calc(100vw - 2rem)); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.1rem;
  padding: 0.5rem; background: #fff; border: 1px solid var(--line); border-radius: 0.9rem;
  box-shadow: 0 12px 40px rgba(12, 18, 34, 0.14);
}
.lang-menu a { padding: 0.5rem 0.65rem; border-radius: 0.5rem; color: var(--ink); font-size: 0.875rem; line-height: 1.25; letter-spacing: 0; }
.lang-menu a:hover { background: var(--wash); text-decoration: none; }
.lang-menu a[aria-current] { font-weight: 600; background: var(--wash); color: var(--accent); }
.lang-offer {
  display: flex; justify-content: center; align-items: center; gap: 0.75rem;
  padding: 0.55rem 1rem; background: var(--wash); font-size: 0.875rem; letter-spacing: 0;
}
.lang-offer a { font-weight: 600; }
.lang-offer button { border: 0; background: none; padding: 0 0.25rem; font-size: 1.15rem; line-height: 1; color: var(--muted); cursor: pointer; }
.lang-note { font-size: 0.875rem; color: var(--muted); background: var(--wash); border-radius: 0.75rem; padding: 0.75rem 1rem; margin: 0 0 1.5rem; }
@media (max-width: 44rem) {
  .lang { margin-inline-end: -0.75rem; }
  .top .wrap { gap: 1rem; }
  .lang-menu { position: fixed; top: 3.1rem; inset-inline: 1rem; width: auto; grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: calc(100vh - 4.5rem); overflow-y: auto; }
}

/* ---------- menu (narrow screens) ---------- */

/* The whole nav behind one button, wherever the bar cannot show all seven
   links. A <details>, like the language picker: it opens with a tap, Enter or
   Space and needs no script. */
.menu { display: none; position: relative; flex: none; }
.menu summary {
  list-style: none; cursor: pointer; padding: 0.4rem 0.6rem; border-radius: 0.5rem; color: var(--ink);
  font: 600 0.75rem/1 var(--sans); letter-spacing: 0; border: 1px solid var(--line);
}
.menu summary::-webkit-details-marker { display: none; }
.menu summary:hover, .menu[open] summary { background: rgba(12, 18, 34, 0.06); }
.menu summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.top .menu-list {
  position: absolute; top: calc(100% + 0.55rem); inset-inline-end: 0; z-index: 30;
  display: flex; flex-direction: column; gap: 0.1rem; margin: 0; width: min(16rem, calc(100vw - 2rem));
  padding: 0.5rem; background: #fff; border: 1px solid var(--line); border-radius: 0.9rem;
  box-shadow: 0 12px 40px rgba(12, 18, 34, 0.14);
}
.top .menu-list a {
  display: block; padding: 0.75rem 0.75rem; border-radius: 0.5rem; color: var(--ink);
  font-size: 1rem; line-height: 1.25; letter-spacing: 0; opacity: 1; white-space: normal;
}
.top .menu-list a:hover { background: var(--wash); text-decoration: none; }
.top .menu-list a[aria-current] { font-weight: 600; background: var(--wash); color: var(--accent); }
@media (max-width: 62rem) {
  .menu { display: block; }
  /* The picker no longer tucks under the Download badge: Menu sits between. */
  .top .lang { margin-inline-end: -0.25rem; }
}
@media (max-width: 44rem) {
  header.top > .wrap { gap: 0.6rem; }
  .top .lang { margin-inline-end: -0.35rem; }
  /* If a translated label runs long, the wordmark gives way before the bar scrolls sideways. */
  .brand { flex: 0 1 auto; min-width: 1.25rem; overflow: hidden; }
  .top .menu-list { position: fixed; top: 3.1rem; inset-inline: 1rem; width: auto; max-height: calc(100vh - 4.5rem); overflow-y: auto; }
}
/* The smallest phones: the logo mark alone, so the three buttons fit. */
@media (max-width: 23rem) {
  .brand span { display: none; }
}
/* Scripts that do not take tight tracking or short line heights. */
html:is([lang="ar"], [lang="he"], [lang="hi"], [lang="th"], [lang="ja"], [lang="ko"], [lang="zh-Hans"], [lang="zh-Hant"]) * { letter-spacing: 0 !important; }
html:is([lang="hi"], [lang="th"], [lang="ar"], [lang="he"]) :is(h1, h2, h3, h4) { line-height: 1.3; }
html:is([lang="ja"], [lang="ko"], [lang="zh-Hans"], [lang="zh-Hant"]) :is(h1, h2, h3, h4) { line-height: 1.2; word-break: keep-all; }
/* Code reads left to right on every page. */
[dir="rtl"] :is(pre, code, kbd, samp) { direction: ltr; unicode-bidi: isolate; }
[dir="rtl"] pre { text-align: left; }
/* Long compound words (German, Finnish, Dutch) wrap inside headings. */
html:not([lang="en"]) :is(h1, h2, h3) { overflow-wrap: break-word; hyphens: auto; }

/* Home: every connector, as chips on the dark tile (build.py connector_chips). */
.conn-wall { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; max-width: 54rem; margin: 2.5rem auto 3.5rem; }
.conn-chip { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.35rem 0.85rem 0.35rem 0.35rem; border-radius: 999px; background: var(--navy-card); border: 1px solid var(--navy-line); color: #fff; font-size: 0.9375rem; line-height: 1.2; }
.conn-chip:hover { border-color: var(--navy-text); text-decoration: none; }
.conn-chip .mark { border-color: transparent; }
@media (max-width: 734px) {
  .conn-wall { margin: 2rem auto 2.5rem; gap: 0.4rem; }
  .conn-chip { font-size: 0.875rem; padding-right: 0.7rem; }
}
@media (max-width: 52rem) {
  .top > .wrap > nav a:nth-child(n+5) { display: none; }
}
@media (max-width: 48rem) {
  .top .wrap { gap: 1rem; }
}

/* Built with Marrow: project cards and the small list on connection pages */
.bw-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr)); gap: 1.25rem; margin: 2rem 0 1rem; }
.bw-card { border: 1px solid var(--line); border-radius: 1.25rem; overflow: hidden; background: #fff; box-shadow: var(--card-shadow); display: flex; flex-direction: column; }
.bw-card img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; object-position: top; background: #0b0e16; }
.bw-body { padding: 1.2rem 1.3rem 1.4rem; display: flex; flex-direction: column; gap: 0.7rem; }
main.doc .bw-body h3 { margin: 0; font-size: 1.375rem; }
.bw-body p { margin: 0; }
.bw-by, .bw-data { font-size: 0.875rem; color: var(--muted); }
.bw-body .links { margin-top: 0.3rem; }
.bw-minis { display: grid; gap: 0.75rem; margin: 1rem 0 0.5rem; }
.bw-mini { display: grid; grid-template-columns: 10rem 1fr; gap: 1rem; align-items: center; padding: 0.6rem; border: 1px solid var(--line); border-radius: 1rem; color: var(--ink); }
.bw-mini:hover { border-color: var(--accent); text-decoration: none; }
.bw-mini img { width: 100%; height: auto; border-radius: 0.6rem; aspect-ratio: 16 / 9; object-fit: cover; object-position: top; }
.bw-mini span { font-size: 0.9375rem; color: var(--muted); }
.bw-mini strong { display: block; color: var(--ink); font-size: 1.0625rem; margin-bottom: 0.2rem; }
@media (max-width: 34rem) { .bw-mini { grid-template-columns: 1fr; } }

/* Free calculators (/calculators and the six tools) */
/* ---- Calculators (calc-*) : additions for the free tools pages ---- */

.calc-form { display: grid; gap: 1rem; margin: 0; }
.calc-form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.calc-form legend { padding: 0; margin-bottom: 0.4rem; font-size: 0.9rem; color: var(--muted); }

.calc-grid {
  display: grid;
  gap: 0.9rem 1rem;
  grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
}
.calc-grid-wide { grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
.calc-grid > .calc-seg { grid-column: 1 / -1; }

.calc-field { display: flex; flex-direction: column; gap: 0.35rem; min-width: 0; }
.calc-field > span:first-child { font-size: 0.9rem; color: var(--muted); }
.calc-field small { color: var(--faint); font-size: 0.8rem; }
.calc-seg small { display: block; margin-top: 0.4rem; color: var(--faint); font-size: 0.8rem; }

.calc-form input[type="number"],
.calc-form input[type="time"],
.calc-form input[type="text"],
.calc-form select,
.calc-form textarea {
  width: 100%;
  box-sizing: border-box;
  min-width: 0;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  padding: 0.6rem 0.7rem;
  line-height: 1.3;
}
.calc-form textarea { min-height: 6.5rem; resize: vertical; font-family: var(--mono); font-size: 0.95rem; }
.calc-form input:focus,
.calc-form select:focus,
.calc-form textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.calc-form input[aria-invalid="true"] { border-color: #c4352b; }

.calc-input { position: relative; display: flex; align-items: center; }
.calc-input input { padding-inline-end: 2.8rem; }
.calc-input .calc-suffix {
  position: absolute; inset-inline-end: 0.7rem; pointer-events: none;
  color: var(--faint); font-size: 0.9rem;
}

.calc-check { display: flex; align-items: center; gap: 0.5rem; font-size: 0.95rem; color: var(--text); }
.calc-check input { width: 1.1rem; height: 1.1rem; accent-color: var(--accent); margin: 0; }

/* segmented radio control */
.calc-seg .calc-seg-row {
  display: inline-flex; flex-wrap: wrap; gap: 0.25rem;
  padding: 0.25rem; border: 1px solid var(--line); border-radius: 999px; background: var(--wash);
}
.calc-seg label { position: relative; }
.calc-seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.calc-seg label span {
  display: block; padding: 0.35rem 0.9rem; border-radius: 999px;
  font-size: 0.9rem; color: var(--muted); cursor: pointer;
}
.calc-seg input:checked + span { background: #fff; color: var(--ink); box-shadow: 0 0 0 1px var(--line); }
.calc-seg input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 1px; }

.calc-btn {
  display: inline-block; font: inherit; font-size: 0.95rem; font-weight: 600;
  color: #fff; background: var(--accent); border: 0; border-radius: 999px;
  padding: 0.6rem 1.2rem; cursor: pointer;
}
.calc-btn:hover { background: var(--accent-ink); }
.calc-btn:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 2px; }
.calc-btn-quiet { color: var(--accent-ink); background: var(--wash); box-shadow: inset 0 0 0 1px var(--line); }
.calc-btn-quiet:hover { background: #e8eef9; }
.calc-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; }

/* results */
.calc-result { margin-top: 1.25rem; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.calc-result[hidden] { display: none; }
.calc-big {
  margin: 0; font-family: var(--display); font-size: 2.4rem; line-height: 1.1;
  color: var(--ink); font-variant-numeric: tabular-nums; overflow-wrap: anywhere;
}
.calc-big small { font-size: 1.1rem; color: var(--muted); font-family: var(--sans); }
.calc-caption { margin: 0.25rem 0 0.9rem; color: var(--muted); font-size: 0.95rem; }
.calc-stats {
  display: grid; gap: 0.6rem; margin: 0.9rem 0;
  grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr));
}
.calc-stat { background: var(--wash); border-radius: 0.6rem; padding: 0.65rem 0.8rem; min-width: 0; }
.calc-stat b {
  display: block; font-size: 1.25rem; color: var(--ink);
  font-variant-numeric: tabular-nums; overflow-wrap: anywhere;
}
.calc-stat span { font-size: 0.85rem; color: var(--muted); }
.calc-hl { background: #e7effd; }

.calc-tablewrap { overflow-x: auto; margin: 0.6rem 0; }
.calc-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: 0.95rem; }
.calc-table th, .calc-table td { text-align: start; padding: 0.45rem 0.5rem; border-bottom: 1px solid var(--line); }
.calc-table th { color: var(--muted); font-weight: 600; font-size: 0.85rem; }
.calc-table td.calc-num, .calc-table th.calc-num { text-align: end; }

.calc-times { list-style: none; margin: 0.6rem 0; padding: 0; display: grid; gap: 0.5rem;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); }
.calc-times li { background: var(--wash); border-radius: 0.6rem; padding: 0.6rem 0.8rem; }
.calc-times b { display: block; font-size: 1.3rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.calc-times span { font-size: 0.85rem; color: var(--muted); }
.calc-times li.calc-best { background: #e7effd; box-shadow: inset 0 0 0 1px #c9d9f7; }

.calc-nights { display: grid; gap: 0.6rem; grid-template-columns: repeat(auto-fit, minmax(6.2rem, 1fr)); }

/* plate calculator */
.calc-plates { margin: 0.9rem 0; }
.calc-plates svg { display: block; width: 100%; height: auto; max-height: 11rem; }
.calc-plate-list { display: grid; gap: 0.5rem; grid-template-columns: repeat(auto-fit, minmax(7.5rem, 1fr)); }
.calc-plate-list .calc-field > span:first-child { color: var(--text); }

.calc-gauge { position: relative; height: 0.7rem; border-radius: 999px; background: var(--wash);
  box-shadow: inset 0 0 0 1px var(--line); margin: 1.2rem 0 0.4rem; }
.calc-gauge-band { position: absolute; top: 0; bottom: 0; background: #cfe0fb; border-radius: 999px; }
.calc-gauge-dot { position: absolute; top: 50%; width: 1rem; height: 1rem; margin: -0.5rem 0 0 -0.5rem;
  border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px #fff; }

.calc-status { font-weight: 600; color: var(--ink); }

.calc-hub { list-style: none; padding: 0; margin: 1.2rem 0; display: grid; gap: 0.8rem; }
.calc-hub li { border: 1px solid var(--line); border-radius: 0.8rem; padding: 0.9rem 1rem; }
.calc-hub a { font-weight: 600; font-family: var(--display); font-size: 1.1rem; }
.calc-hub p { margin: 0.25rem 0 0; color: var(--muted); }

@media (max-width: 30rem) {
  .calc-big { font-size: 2rem; }
  .calc-table th, .calc-table td { padding: 0.4rem 0.3rem; }
}

.tool [hidden] { display: none !important; }
.calc-details { border: 1px solid var(--line); border-radius: 0.6rem; padding: 0.6rem 0.8rem; }
.calc-details summary { cursor: pointer; color: var(--accent-ink); font-weight: 600; }
.calc-details[open] summary { margin-bottom: 0.6rem; }
.calc-input input[type="number"] { -moz-appearance: textfield; appearance: textfield; }
.calc-input input[type="number"]::-webkit-inner-spin-button,
.calc-input input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.score p.count { margin-top: 0.15rem; }
.featured { margin: 1.75rem 0 0; text-align: center; font-size: 0.9375rem; color: var(--muted); }
.featured a { color: var(--text); }
.fhero .small { font-size: 1.0625rem; line-height: 1.45; color: var(--muted); max-width: 34rem; margin: 0.9rem auto 0; }
.split-fig figure .phone { width: 100%; }

/* ---------- header and footer: the floating pill and the pale panel ----------
   The home page's design on every page (2026-11-22). The bar sticks to the
   top of other pages and floats over the hero on the home page. */

:root {
  --h-soft: rgba(12, 18, 34, 0.6);
  --h-card: #edf0f6;
  --h-gut: clamp(1.0625rem, 0.7325rem + 1.408vw, 2rem);
  --h-gap: clamp(2.5rem, 1.62rem + 3.756vw, 5rem);
  --h-in: clamp(2.5rem, 2.32rem + 0.75vw, 3rem);
}
html { scroll-padding-top: 5.5rem; }
.top {
  position: sticky; top: 0; padding: 1rem; pointer-events: none;
  background: none; -webkit-backdrop-filter: none; backdrop-filter: none;
}
.top .wrap {
  position: relative; isolation: isolate; pointer-events: auto;
  width: max-content; max-width: 100%; height: 3.375rem; padding: 0.5rem; gap: 1.5rem;
}
/* The glass is a layer behind the bar, so the menus that open from it keep
   their own positioning. */
.top .wrap::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 2rem;
  background: rgba(255, 255, 255, 0.6);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.top .brand { padding: 0 0.5rem 0 1rem; font-size: 1.0625rem; }
.top > .wrap > nav { margin: 0; gap: 1.5rem; }
.top > .wrap > nav a { font-size: 1rem; font-weight: 500; color: var(--h-soft); opacity: 1; }
.top > .wrap > nav a:hover { color: var(--ink); }
/* Coach, Food, Workouts and Pro stay in the pill. The rest are on the page. */
.top > .wrap > nav a:nth-child(n+4):not(:last-child) { display: none; }
.top .lang { margin-inline-end: -0.75rem; }
.top .store.sm { height: 2.375rem; padding: 0 1rem 0 0.8rem; border-radius: 8rem; }
.top .store.sm b { font-size: 1rem; font-weight: 500; }
.top .stores { flex: none; flex-wrap: nowrap; gap: 0.4rem; }
.top .store.sm.play { padding-inline-start: 0.75rem; }
.foot { margin: var(--h-gap) 0 0; padding: 0 var(--h-gut) var(--h-gut); background: none; font-size: 0.9375rem; line-height: 1.4; color: var(--h-soft); }
.foot .wrap { max-width: 86rem; padding: var(--h-in) var(--h-in) 1.75rem; border-radius: 1.5rem; background: var(--h-card); }
.foot .cols { gap: 2.5rem var(--h-gut); padding-bottom: var(--h-in); }
.foot .cols > div { min-width: 0; }
.foot h4 { margin: 0 0 1.1rem; font: 600 0.8125rem/1.3 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--h-soft); }
.foot li { margin-bottom: 0.6rem; }
.foot .cols a { color: var(--ink); font-weight: 500; overflow-wrap: anywhere; }
.foot .cols a:hover { text-decoration: none; opacity: 0.6; }
.foot .legal { max-width: 62rem; padding: 1.5rem 0; border-top: 1px solid rgba(12, 18, 34, 0.1); font-size: 0.75rem; color: var(--h-soft); }
.foot .bar { padding-top: 1.25rem; border-top: 1px solid rgba(12, 18, 34, 0.1); font-size: 0.8125rem; color: var(--h-soft); }
.foot .bar a { color: var(--ink); }
.foot .social { gap: 1.5rem; }
.foot .social svg { width: 1.25rem; height: 1.25rem; }
@media (max-width: 62rem) {
  .top > .wrap > nav { display: none; }
  .top .wrap { width: auto; gap: 0.6rem; }
  .top .wrap::before { border-radius: 1rem; }
  .top .brand { margin-inline-end: auto; }
  .top .store.sm { border-radius: 0.6rem; }
  .foot .cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 44rem) {
  .top .lang-menu, .top .menu-list { top: 4.6rem; }
  .top .wrap { gap: 0.35rem; height: 3.25rem; }
  .top .brand { padding: 0 0.25rem 0 0.5rem; font-size: 0.9375rem; }
  .top .lang { margin-inline-end: 0; }
  /* Two icon buttons on phones: the names stay for screen readers. */
  .top .stores { gap: 0.3rem; }
  .top .store.sm, .top .store.sm.play { width: 2.375rem; padding: 0; justify-content: center; }
  .top .store.sm > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .top .store.sm svg { width: 1.15rem; height: 1.15rem; margin: -0.1rem 0 0; }
  .top .store.sm .gp { width: 1.05rem; height: 1.15rem; margin: 0; }
  .foot .wrap { padding: 2rem 1.5rem 1.5rem; }
  .foot .bar { flex-direction: column-reverse; align-items: flex-start; gap: 1rem; }
}
