/* Zuptalo site styles.
 *
 * One stylesheet for every page. No web fonts (the system stack keeps the site free of
 * third-party requests), no inline styles (the CSP is style-src 'self').
 *
 * Theme: the palette lives in custom properties. With no explicit choice the page follows
 * prefers-color-scheme; theme.js sets html[data-theme="light|dark"] when the visitor picks
 * one with the toggle, and that attribute wins over the media query.
 *
 * Accent: Ring's brand emerald is #10b981 (src/theme/variables.css, RingTheme.emerald). It is
 * too light to carry text on white (about 2.5:1), so light mode uses emerald-700 for links
 * and accents in text, and keeps #10b981 for fills, where it pairs with near-black text.
 */

:root {
  --brand: #10b981;
  --brand-ink: #04140e;          /* text on a --brand fill (about 8:1) */
  --bg: #fbfcfb;
  --bg-elev: #ffffff;
  --bg-soft: #f1f5f3;
  --text: #0d1512;
  --text-2: #3c4a44;             /* secondary text, about 9:1 on --bg */
  --text-3: #5b6a63;             /* captions, about 5.6:1 on --bg */
  --border: #dde5e1;
  --accent: #047857;             /* emerald-700, about 5.4:1 on --bg */
  --accent-soft: #e3f6ee;
  --focus: #0b7a55;
  --shadow: 0 1px 2px rgb(13 21 18 / 6%), 0 8px 24px rgb(13 21 18 / 6%);
  --glow: radial-gradient(60rem 30rem at 50% -10%, rgb(16 185 129 / 16%), transparent 70%);
  color-scheme: light;
}

/* Dark palette: used when the OS asks for dark and the visitor hasn't chosen light ... */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a0f0d;
    --bg-elev: #111816;
    --bg-soft: #141d1a;
    --text: #e8efec;
    --text-2: #b9c6c0;
    --text-3: #93a39c;
    --border: #22302b;
    --accent: #34d399;
    --accent-soft: rgb(16 185 129 / 12%);
    --focus: #5eead4;
    --shadow: 0 1px 2px rgb(0 0 0 / 40%), 0 12px 32px rgb(0 0 0 / 35%);
    --glow: radial-gradient(60rem 30rem at 50% -10%, rgb(16 185 129 / 20%), transparent 70%);
    color-scheme: dark;
  }
}

/* ... or when the visitor picked dark explicitly (same values as above). */
:root[data-theme="dark"] {
  --bg: #0a0f0d;
  --bg-elev: #111816;
  --bg-soft: #141d1a;
  --text: #e8efec;
  --text-2: #b9c6c0;
  --text-3: #93a39c;
  --border: #22302b;
  --accent: #34d399;
  --accent-soft: rgb(16 185 129 / 12%);
  --focus: #5eead4;
  --shadow: 0 1px 2px rgb(0 0 0 / 40%), 0 12px 32px rgb(0 0 0 / 35%);
  --glow: radial-gradient(60rem 30rem at 50% -10%, rgb(16 185 129 / 20%), transparent 70%);
  color-scheme: dark;
}

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

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

body {
  margin: 0;
  background: var(--glow) no-repeat, var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

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

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  padding: 0.5rem 0.9rem;
  background: var(--bg-elev);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  z-index: 10;
}
.skip-link:focus { top: 1rem; }

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 4rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 650;
  letter-spacing: -0.01em;
  font-size: 1.1rem;
}
/* The small-size crab (zuptalo-mark-small.svg): drawn for 24-32 px, so it stays crisp here. */
.brand svg { width: 2rem; height: 2rem; border-radius: 22%; }
.site-nav { margin-left: auto; }
.site-nav ul {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a {
  display: inline-block;
  padding: 0.4rem 0.7rem;
  color: var(--text-2);
  text-decoration: none;
  border-radius: 8px;
  font-size: 0.95rem;
}
.site-nav a:hover { color: var(--text); background: var(--bg-soft); }
.site-nav a[aria-current="page"] { color: var(--text); font-weight: 600; }

.theme-toggle {
  display: inline-grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  margin-left: 0.25rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-elev);
  color: var(--text-2);
  cursor: pointer;
}
.theme-toggle:hover { color: var(--text); }
.theme-toggle svg { width: 1.15rem; height: 1.15rem; }
/* Show the icon of the theme you'd switch TO: a moon in light, a sun in dark. */
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
}

@media (max-width: 40rem) {
  .site-header .wrap { flex-wrap: wrap; gap: 0.25rem 0.5rem; padding-block: 0.5rem; }
  .site-nav { order: 3; width: 100%; margin-left: 0; overflow-x: auto; }
  .site-nav ul { gap: 0; }
  .theme-toggle { margin-left: auto; }
}

/* In-page jumps (#principles, #testflight, #privacy-title ...) land below the sticky header. */
[id] { scroll-margin-top: 5rem; }
@media (max-width: 40rem) { [id] { scroll-margin-top: 7.5rem; } }

/* ---- hero ---- */

.hero { padding: clamp(4rem, 10vw, 7.5rem) 0 clamp(3rem, 7vw, 5rem); }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1.25rem;
  padding: 0.3rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-elev);
  color: var(--text-2);
  font-size: 0.85rem;
  font-weight: 500;
}
.eyebrow .dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--brand); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.025em; margin: 0; }
.hero h1 {
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  font-weight: 700;
  max-width: 16ch;
}
.hero h1 .soft { color: var(--text-3); }
.lede {
  max-width: 38rem;
  margin: 1.5rem 0 0;
  color: var(--text-2);
  font-size: clamp(1.1rem, 2.2vw, 1.3rem);
  line-height: 1.6;
}
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2.25rem; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
}
.btn svg { width: 1.1rem; height: 1.1rem; }
.btn-primary { background: var(--brand); color: var(--brand-ink); }
.btn-primary:hover { background: #0ea372; text-decoration: none; }
.btn-ghost { border-color: var(--border); color: var(--text); background: var(--bg-elev); }
.btn-ghost:hover { border-color: var(--text-3); }

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

.section { padding: clamp(3rem, 7vw, 5rem) 0; }
.section + .section { border-top: 1px solid var(--border); }
.section-head { margin-bottom: 2.25rem; max-width: 40rem; }
.section-head h2 { font-size: clamp(1.7rem, 3.5vw, 2.3rem); font-weight: 680; }
.section-head p { margin: 0.75rem 0 0; color: var(--text-2); }
.kicker {
  display: block;
  margin-bottom: 0.6rem;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.grid { display: grid; gap: 1.25rem; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); }

.card {
  position: relative;
  padding: 1.6rem;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--bg-elev);
  box-shadow: var(--shadow);
}
.card h3 { font-size: 1.2rem; font-weight: 650; }
.card p { margin: 0.6rem 0 0; color: var(--text-2); }
.card .icon-badge {
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  margin-bottom: 1rem;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
}
.card .icon-badge svg { width: 1.3rem; height: 1.3rem; }

/* product card: the whole card is the link target (stretched link) */
.product {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.75rem;
  transition: transform 160ms ease, border-color 160ms ease;
}
.product:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--brand) 50%, var(--border)); }
.product-top { display: flex; align-items: center; gap: 1rem; }
.product-top img { width: 3.5rem; height: 3.5rem; border-radius: 14px; }
.product h3 a { color: var(--text); text-decoration: none; }
.product h3 a::after { content: ""; position: absolute; inset: 0; border-radius: 20px; }
.product h3 a:focus-visible { outline: none; }
.product:has(h3 a:focus-visible) { outline: 3px solid var(--focus); outline-offset: 3px; }
.product .more { margin-top: auto; color: var(--accent); font-weight: 600; }
.badge {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  vertical-align: middle;
}
.tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0; padding: 0; list-style: none; }
.tags li {
  padding: 0.2rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-2);
  font-size: 0.8rem;
}
.placeholder {
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-style: dashed;
  box-shadow: none;
  background: transparent;
}
.placeholder h3 { color: var(--text-2); }

/* product hero */
.product-hero { display: flex; align-items: center; gap: 1.25rem; margin-bottom: 1.75rem; }
.product-hero img { width: 4.5rem; height: 4.5rem; border-radius: 18px; box-shadow: var(--shadow); }

/* split lists for the privacy model */
.split { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); }
.split h3 { display: flex; align-items: center; gap: 0.5rem; }
.split h3 svg { width: 1.2rem; height: 1.2rem; flex: none; }
.ticks { margin: 1rem 0 0; padding: 0; list-style: none; }
.ticks li { position: relative; padding-left: 1.5rem; margin-top: 0.55rem; color: var(--text-2); }
.ticks li::before {
  content: "";
  position: absolute;
  left: 0.2rem;
  top: 0.62em;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--brand);
}
.ticks.muted li::before { background: var(--text-3); }
.ticks strong { color: var(--text); font-weight: 600; }

.platforms { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr)); }
.platform { padding: 1.2rem; border: 1px solid var(--border); border-radius: 16px; background: var(--bg-elev); }
.platform strong { display: block; }
.platform span { color: var(--text-3); font-size: 0.9rem; }
a.platform { color: inherit; text-decoration: none; transition: border-color .15s ease, background .15s ease; }
a.platform strong { color: var(--accent, inherit); }
a.platform:hover, a.platform:focus-visible { border-color: var(--accent, var(--border)); }
a.platform:focus-visible { outline: 2px solid var(--accent, currentColor); outline-offset: 2px; }

.callout {
  margin: 2rem 0;
  padding: 1.25rem 1.4rem;
  border: 1px solid color-mix(in srgb, var(--brand) 35%, var(--border));
  border-radius: 16px;
  background: var(--accent-soft);
  color: var(--text);
}
.callout p { margin: 0; }
.callout p + p { margin-top: 0.5rem; }

/* ---- long-form (legal, security, support) ---- */

.doc { padding: clamp(3rem, 7vw, 5rem) 0 clamp(4rem, 8vw, 6rem); }
.doc h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); font-weight: 700; }
.doc .meta { margin: 0.75rem 0 0; color: var(--text-3); font-size: 0.95rem; }
.doc h2 {
  margin: 3rem 0 0.75rem;
  font-size: 1.45rem;
  font-weight: 660;
  scroll-margin-top: 5rem;
}
.doc h3 { margin: 1.75rem 0 0.5rem; font-size: 1.1rem; font-weight: 640; }
.doc p, .doc li { color: var(--text-2); }
.doc strong { color: var(--text); }
.doc ul, .doc ol { padding-left: 1.3rem; }
.doc li + li { margin-top: 0.35rem; }
.toc {
  margin: 2rem 0 0;
  padding: 1.25rem 1.4rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--bg-elev);
}
.toc h2 { margin: 0 0 0.5rem; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); }
.toc ol { margin: 0; columns: 2 16rem; column-gap: 2rem; }
.toc li { break-inside: avoid; }

.table-scroll { overflow-x: auto; margin: 1.25rem 0; border: 1px solid var(--border); border-radius: 14px; }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
caption { text-align: left; padding: 0.9rem 1rem 0; color: var(--text-3); font-size: 0.85rem; }
th, td { padding: 0.75rem 1rem; text-align: left; vertical-align: top; border-top: 1px solid var(--border); }
thead th { border-top: 0; color: var(--text); font-weight: 620; background: var(--bg-soft); }
tbody th { color: var(--text); font-weight: 600; min-width: 9rem; }
td { color: var(--text-2); }

details {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg-elev);
  padding: 0 1.2rem;
}
details + details { margin-top: 0.75rem; }
summary {
  cursor: pointer;
  padding: 1rem 0;
  font-weight: 600;
  color: var(--text);
  list-style-position: inside;
}
details[open] summary { border-bottom: 1px solid var(--border); margin-bottom: 0.25rem; }
details > p:last-child { margin-bottom: 1rem; }

code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.9em; }

/* ---- Android beta (Ring page): numbered steps and the checksums ---- */
.card .note { margin-top: 1.25rem; font-size: 0.95rem; }
.steps { margin: 1rem 0 0; padding-left: 1.3rem; color: var(--text-2); }
.steps li { padding-left: 0.25rem; }
.steps li + li { margin-top: 0.6rem; }
.steps li::marker { color: var(--accent); font-weight: 650; }
.steps strong { color: var(--text); font-weight: 600; }
.checksums { margin-top: 1.25rem; }
.checksums p { color: var(--text-2); }
.checksums dl { margin: 0 0 1rem; }
.checksums dt { margin-top: 0.75rem; color: var(--text); font-weight: 600; font-size: 0.95rem; }
.checksums dd { margin: 0.2rem 0 0; color: var(--text-2); }
.checksums code { overflow-wrap: anywhere; }

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

.site-footer {
  margin-top: 2rem;
  padding: 2.5rem 0 3rem;
  border-top: 1px solid var(--border);
  color: var(--text-3);
  font-size: 0.92rem;
}
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 1.25rem 2rem; justify-content: space-between; align-items: flex-start; }
.site-footer ul { display: flex; flex-wrap: wrap; gap: 0.4rem 1.25rem; margin: 0; padding: 0; list-style: none; }
.site-footer a { color: var(--text-2); text-decoration: none; display: inline-block; padding-block: 0.25rem; }
.site-footer a:hover { color: var(--text); text-decoration: underline; }
.site-footer p { margin: 0; }
/* Footer brand: the full crab at a size where its monocle and brow read. */
.footer-brand { display: flex; align-items: center; gap: 1rem; }
.footer-brand img { width: 4rem; height: 4rem; border-radius: 22%; flex: none; }
.footer-brand .footer-name { color: var(--text); font-weight: 650; font-size: 1.05rem; letter-spacing: -0.01em; }
.site-footer nav { align-self: center; }
/* Phones: footer links are finger targets, so give each one a full-height row. */
@media (max-width: 40rem) {
  .site-footer ul { gap: 0 1.25rem; }
  .site-footer nav a { padding-block: 0.6rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

@media print {
  .site-header, .site-footer, .theme-toggle { display: none; }
  body { background: #fff; color: #000; }
}

/* Narrow screens: stack the data table (label above its description) and leave room for the
   two-row sticky header when jumping to an anchor. */
@media (max-width: 40rem) {
  .doc h2 { scroll-margin-top: 7.5rem; }
  .table-scroll thead { display: none; }
  .table-scroll tr, .table-scroll tbody th, .table-scroll td { display: block; }
  .table-scroll tbody th { min-width: 0; padding-bottom: 0.15rem; }
  .table-scroll td { border-top: 0; padding-top: 0; }
}

/* ---- device showcase (Ring page) ----
 * Devices are drawn in CSS around real screenshots: a dark bezel, the screen's own corner
 * radius, and a soft shadow. Every size is a percentage of its container, so a device scales as
 * one piece. The bezels stay dark in light mode too: that's what the hardware looks like. */

.wrap.wide { width: min(80rem, 100% - 2rem); }
.hero-center { text-align: center; }
.hero-center .lede, .hero-center .eyebrow { margin-inline: auto; }
.hero-center h1 { margin-inline: auto; max-width: 18ch; text-wrap: balance; }
.hero-center .actions { justify-content: center; }
.app-icon { margin: 0 auto 1.5rem; width: 5.5rem; height: 5.5rem; border-radius: 22%; box-shadow: var(--shadow); }

/* Bezel widths are in cqw of the device itself (it's a size container); a % padding would
 * be a % of the parent's width and swell with the stage. */
.device { container-type: inline-size; position: relative; background: #070a09; box-shadow: 0 0 0 1px rgb(255 255 255 / 9%), 0 30px 60px -20px rgb(0 0 0 / 55%), 0 12px 24px -12px rgb(0 0 0 / 45%); }
.device .screen { overflow: hidden; background: #0a0f0d; }
.device img { width: 100%; height: auto; }
/* Light/dark screenshot pairs: the <picture> wrapper must not add an inline line box. */
.device picture { display: block; }

.device.iphone { border-radius: 15% / 7%; }
.device.iphone .screen { margin: 3.6cqw; }
.device.iphone .screen { border-radius: 12% / 5.6%; }
.device.ipad { border-radius: 6.5% / 5%; }
.device.ipad .screen { margin: 3.8cqw; }
.device.ipad .screen { border-radius: 3.2% / 2.4%; }
.device.watch { border-radius: 34% / 30%; }
.device.watch .screen { margin: 9cqw; aspect-ratio: 422 / 514; }
/* The opening is exactly the screenshot's shape (422x514), so the bezel is even all round and
   the case's height follows from its width. cover only matters if a future shot differs. */
.device.watch .screen img { height: 100%; object-fit: cover; }
.device.watch .screen { border-radius: 26% / 22%; }
/* Digital Crown and side button. */
.device.watch::after { content: ""; position: absolute; right: -4.5%; top: 26%; width: 5%; height: 15%; border-radius: 0 40% 40% 0; background: #1c2421; }
.device.mac { background: none; box-shadow: none; }
.device.mac .screen { background: #070a09; border-radius: 2.4% / 3.8%; padding: 1.7cqw 1.7cqw 2.6cqw; box-shadow: 0 0 0 1px rgb(255 255 255 / 9%), 0 40px 80px -30px rgb(0 0 0 / 60%); }
.device.mac .screen img { border-radius: 0.6% / 1%; }
.device.mac .base { height: 0; padding-top: 3.2%; width: 114%; margin-left: -7%; border-radius: 0 0 14% 14% / 0 0 100% 100%;
  background: linear-gradient(#c9d1ce, #8e9894 55%, #5f6865); box-shadow: 0 18px 30px -12px rgb(0 0 0 / 50%); position: relative; }
.device.mac .base::before { content: ""; position: absolute; left: 42%; right: 42%; top: 0; height: 32%; border-radius: 0 0 40% 40%; background: rgb(0 0 0 / 22%); }

/* The hero stage: one box with a fixed shape; each device is placed by percentages. */
.stage { position: relative; margin: clamp(2.5rem, 6vw, 4.5rem) auto 0; aspect-ratio: 16 / 9.4; max-width: 70rem; }
/* The glow sits low, mostly below the Mac, and eases out over several stops. It used to peak behind the
   laptop and be cut off by its base, which left a hard straight edge where the glow began, and a two-stop
   gradient on this big a box shows its colour steps as faint rings. */
.stage::before { content: ""; position: absolute; inset: 58% 2% -40%; z-index: -1; filter: blur(36px);
  background: radial-gradient(closest-side, rgb(16 185 129 / 24%), rgb(16 185 129 / 17%) 30%, rgb(16 185 129 / 9%) 55%, rgb(16 185 129 / 3%) 80%, transparent); }
.stage .device { position: absolute; }
.stage .mac { left: 4%; top: 0; width: 72%; }
.stage .ipad { right: 2%; top: 14%; width: 30%; }
.stage .iphone { left: 0; bottom: 0; width: 18.5%; }
.stage .watch { right: 21%; bottom: 2%; width: 10%; }

/* A look around: a shelf of phones, like a product gallery. The strip runs edge to edge, but its
 * padding (and the snap padding) equals the page gutter, so the first phone starts on the text
 * column and the last one ends on it. The gutter is in cqw of .shelf, which spans the window, so
 * it means the same thing in the padding and in the end spacer (a % there would be of the strip).
 * No visible scrollbar: it still scrolls by trackpad, touch, arrow keys and the buttons below. */
.shelf { container-type: inline-size; --gutter: max(1.25rem, calc((100cqw - 72rem) / 2)); --gap: clamp(1rem, 3vw, 2rem); }
.tour { display: flex; gap: var(--gap); overflow-x: auto; overscroll-behavior-x: contain; list-style: none; margin: 0;
  padding: 0.5rem 0 1.25rem var(--gutter); scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
  scrollbar-width: none; }
.tour::-webkit-scrollbar { display: none; }
/* End padding as a spacer (browsers don't all scroll into a flex container's end padding): one
   gutter wide, pulled back over the flex gap, so the last phone ends exactly on the text column. */
.tour::after { content: ""; flex: 0 0 var(--gutter); margin-left: calc(-1 * var(--gap)); }
.tour:focus-visible { outline-offset: -3px; }
.tour li { flex: 0 0 clamp(12rem, 22vw, 15.5rem); scroll-snap-align: start; }
/* Previous / next: small round buttons under the shelf, on the right, as on apple.com. */
.shelf-nav { display: flex; justify-content: flex-end; gap: 0.75rem; }
.shelf-nav[hidden] { display: none; }
.shelf-btn { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; padding: 0; border: 0; border-radius: 50%;
  background: color-mix(in srgb, var(--text) 8%, transparent); color: var(--text); cursor: pointer;
  transition: background-color 160ms ease, opacity 160ms ease; }
.shelf-btn svg { width: 1.15rem; height: 1.15rem; }
.shelf-btn:hover { background: color-mix(in srgb, var(--text) 14%, transparent); }
.shelf-btn[aria-disabled="true"] { opacity: 0.35; cursor: default; background: color-mix(in srgb, var(--text) 8%, transparent); }
/* Touch screens swipe; like apple.com, no buttons there. */
@media (hover: none) { .shelf-nav { display: none; } }
.tour p { margin: 1.1rem 0 0; color: var(--text-2); font-size: 0.95rem; text-align: center; }
.tour p strong { display: block; color: var(--text); font-weight: 650; }

/* Every screen: device and words side by side, alternating. */
.showrow { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.showrow + .showrow { margin-top: clamp(3.5rem, 8vw, 6rem); }
.showrow.flip { grid-template-columns: 1fr 1.5fr; }
.showrow.flip > .device, .showrow.flip > .watches { order: 2; }
.showrow .device.ipad { width: min(26rem, 100%); justify-self: center; }
.showtext h3 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 680; }
.showtext p { margin: 0.75rem 0 0; color: var(--text-2); font-size: 1.08rem; max-width: 28rem; }
/* Two identical watches, side by side on one baseline. align-items must not be the default
   stretch: that grew the first case to the row's height and left an empty bezel under its
   screen (and moved its side button). */
.watches { display: flex; gap: 8%; justify-content: center; align-items: flex-end; }
.watches .device { flex: 0 0 min(11rem, 40%); }

@media (max-width: 48rem) {
  .showrow, .showrow.flip { grid-template-columns: 1fr; }
  .showrow.flip > .device, .showrow.flip > .watches { order: 0; }
  .stage { aspect-ratio: 16 / 11; }
  .stage .mac { left: 4%; width: 78%; }
  .stage .ipad { right: 0; top: 22%; width: 36%; }
  .stage .iphone { width: 23%; }
  .stage .watch { right: 30%; width: 14%; }
}
@media (prefers-reduced-motion: no-preference) {
  .tour { scroll-behavior: smooth; }
}

/* Home: Zuptalo's crab above the headline. */
.mascot { width: clamp(7.5rem, 13vw, 9.5rem); height: auto; aspect-ratio: 1; border-radius: 22%; box-shadow: var(--shadow); margin-bottom: 1.75rem; }

/* Home: About, with the crab big enough to see every detail. */
.about { display: grid; grid-template-columns: auto 1fr; gap: clamp(2rem, 6vw, 4.5rem); align-items: center; }
.about-mark { width: clamp(10rem, 22vw, 15rem); height: auto; aspect-ratio: 1; border-radius: 22%; box-shadow: var(--shadow); }
.about h2 { font-size: clamp(1.7rem, 3.5vw, 2.3rem); font-weight: 680; }
.about p { margin: 0.75rem 0 0; color: var(--text-2); max-width: 36rem; }
@media (max-width: 40rem) {
  .about { grid-template-columns: 1fr; }
  .about-mark { width: 11rem; }
}
/* The Mac base is wider than its screen; never let it widen the page on a phone. */
main { overflow-x: clip; }

/* Home hero: words on the left, Ring on a phone and a watch on the right. */
.hero-split { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.hero-art { position: relative; display: block; width: min(19rem, 100%); justify-self: center; padding-bottom: 6%; }
.hero-art::before { content: ""; position: absolute; inset: 5% -25%; z-index: -1; filter: blur(30px);
  background: radial-gradient(closest-side, rgb(16 185 129 / 26%), rgb(16 185 129 / 18%) 30%, rgb(16 185 129 / 9%) 55%, rgb(16 185 129 / 3%) 80%, transparent); }
.hero-art .iphone { transform: rotate(-4deg); }
.hero-art .watch { position: absolute; width: 44%; right: -22%; bottom: 0; transform: rotate(5deg); }
@media (max-width: 52rem) {
  .hero-split { grid-template-columns: 1fr; }
  .hero-art { width: min(15rem, 70%); margin-top: 1rem; }
  .hero-art .watch { right: -26%; }
}
