/* Ramus website. One accent (coral, from the gingiva of the model), system fonts,
   and two stage colours that match the 3D view exactly: #eef0f3 and #0f1216. */

:root {
  --ink: #0f1216;
  --paper: #ffffff;
  --stage: #eef0f3;
  --bone: #e9dfcf;
  --coral: #d2554c;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --gutter: clamp(20px, 5vw, 72px);
  --nav-h: 52px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --section: clamp(88px, 13vw, 184px);
}

[data-theme="light"] {
  --bg: #ffffff; --fg: #0f1216; --muted: #5b616b;
  --rule: rgba(15, 18, 22, .12); --rule-strong: rgba(15, 18, 22, .28);
  --accent: #d2554c; --accent-text: #b8403c;
  --btn-bg: #0f1216; --btn-fg: #ffffff; --btn-hover: #2b3038;
  --well: #eef0f3;
}
[data-theme="stage"] {
  --bg: #eef0f3; --fg: #0f1216; --muted: #565c66;
  --rule: rgba(15, 18, 22, .13); --rule-strong: rgba(15, 18, 22, .3);
  --accent: #d2554c; --accent-text: #b8403c;
  --btn-bg: #0f1216; --btn-fg: #ffffff; --btn-hover: #2b3038;
  --well: #ffffff;
}
[data-theme="dark"] {
  --bg: #0f1216; --fg: #f4f1ea; --muted: #9aa0aa;
  --rule: rgba(244, 241, 234, .15); --rule-strong: rgba(244, 241, 234, .34);
  --accent: #f28b82; --accent-text: #f28b82;
  --btn-bg: #f4f1ea; --btn-fg: #0f1216; --btn-hover: #ffffff;
  --well: #1a1e24;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: var(--nav-h); }
body {
  margin: 0; background: #ffffff; color: var(--ink);
  font: 400 1.0625rem/1.5 var(--font);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; }
picture { display: block; }
img { display: block; width: 100%; height: auto; }
h1, h2, h3, p, figure, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip {
  position: fixed; left: 12px; top: -80px; z-index: 100; padding: .6em 1em; border-radius: 10px;
  background: var(--ink); color: #fff; text-decoration: none; font-weight: 600;
}
.skip:focus { top: 10px; }
:focus-visible { outline: 2px solid var(--accent, #d2554c); outline-offset: 3px; border-radius: 6px; }

section, .foot { background: var(--bg); color: var(--fg); }
section { position: relative; padding-block: var(--section); }
.wrap { width: 100%; max-width: calc(1200px + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

/* type */
h1, h2 { font-weight: 600; text-wrap: balance; }
h1 { font-size: clamp(2.75rem, 1.15rem + 6.4vw, 6rem); line-height: 1.02; letter-spacing: -.038em; }
h2 { font-size: clamp(2.25rem, 1rem + 4.7vw, 5rem); line-height: 1.04; letter-spacing: -.034em; }
h3 { font-size: clamp(1.5rem, 1.05rem + 1.5vw, 2.25rem); line-height: 1.12; letter-spacing: -.022em; font-weight: 600; text-wrap: balance; }
.lede { font-size: clamp(1.125rem, 1rem + .62vw, 1.5rem); line-height: 1.38; letter-spacing: -.012em; color: var(--muted); max-width: 36em; text-wrap: pretty; }
p { text-wrap: pretty; }
.fine { font-size: .875rem; line-height: 1.45; color: var(--muted); }
.head { text-align: center; }
.head h2 { max-width: 15em; margin-inline: auto; }
.head .lede { margin: clamp(18px, 2.2vw, 28px) auto 0; }

/* buttons and links */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .72em 1.3em; border-radius: 999px; border: 0; cursor: pointer;
  font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none; white-space: nowrap;
  transition: background-color .2s, color .2s, box-shadow .2s;
}
.btn-solid { background: var(--btn-bg); color: var(--btn-fg); }
.btn-solid:hover { background: var(--btn-hover); }
.btn-line { background: transparent; color: var(--fg); box-shadow: inset 0 0 0 1px var(--rule-strong); }
.btn-line:hover { box-shadow: inset 0 0 0 1px var(--fg); }
.btn-large { font-size: 1.0625rem; padding: .88em 1.65em; }
.btn-small { font-size: .8125rem; padding: .56em 1em; }
.quiet { font-weight: 500; text-decoration: underline; text-decoration-color: var(--rule-strong); text-underline-offset: .28em; text-decoration-thickness: 1px; }
.quiet:hover { text-decoration-color: currentColor; }
.cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px 28px; }
p a { text-decoration: underline; text-decoration-color: var(--rule-strong); text-underline-offset: .22em; text-decoration-thickness: 1px; }
dd a { text-decoration: underline; text-decoration-color: var(--rule-strong); text-underline-offset: .22em; text-decoration-thickness: 1px; }
p a:hover, dd a:hover { text-decoration-color: currentColor; }

/* navigation */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav-h);
  background: var(--bg); color: var(--fg);
  box-shadow: 0 1px 0 var(--rule);
  transition: background-color .35s, color .35s, box-shadow .35s;
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .nav { background: color-mix(in srgb, var(--bg) 84%, transparent); -webkit-backdrop-filter: saturate(1.6) blur(18px); backdrop-filter: saturate(1.6) blur(18px); }
}
.nav-in { height: 100%; max-width: calc(1440px + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); display: flex; align-items: center; gap: 20px; }
.nav-brand { display: inline-flex; align-items: center; height: 36px; border-radius: 8px; }
.wordmark { display: block; height: 19px; width: auto; color: var(--fg); overflow: visible; }
.nav-links { display: flex; gap: clamp(16px, 2.4vw, 34px); margin-inline: auto; font-size: .8125rem; }
.nav-links a { text-decoration: none; color: var(--fg); opacity: .78; padding: .5em .1em; transition: opacity .2s; }
.nav-links a:hover { opacity: 1; }
.nav-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.nav-links + .nav-actions { margin-left: 0; }

/* the like control: pill in the navigation, large in the support section */
.heart { position: relative; display: block; width: 1em; height: 1em; flex: none; }
.heart svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.heart-line { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; transition: stroke .3s; }
.heart-fill { fill: var(--accent); stroke: var(--accent); stroke-width: 1.7; stroke-linejoin: round; clip-path: inset(104% 0 0 0); transition: clip-path .6s var(--ease); }
[data-like][aria-pressed="true"] .heart-fill { clip-path: inset(-4% 0 0 0); }
[data-like][aria-pressed="true"] .heart-line { stroke: var(--accent); }
[data-like].pop .heart { animation: pop .55s var(--ease); }
@keyframes pop { 0% { transform: scale(1); } 38% { transform: scale(1.24); } 70% { transform: scale(.96); } 100% { transform: scale(1); } }
.like-count { font-family: var(--mono); font-variant-numeric: tabular-nums; display: inline-block; }
.like-count.tick { animation: tick .42s var(--ease); }
@keyframes tick { 0% { transform: translateY(.55em); opacity: 0; } 100% { transform: none; opacity: 1; } }

.like-pill {
  display: inline-flex; align-items: center; gap: 7px; height: 32px; min-width: 32px; padding: 0 10px;
  border-radius: 999px; border: 0; background: transparent; box-shadow: inset 0 0 0 1px var(--rule-strong);
  font-size: .8125rem; font-weight: 500; cursor: pointer; transition: box-shadow .2s;
}
.like-pill:hover { box-shadow: inset 0 0 0 1px var(--fg); }
.like-pill .heart { font-size: 15px; }

/* hero */
.hero { padding-top: calc(var(--nav-h) + clamp(44px, 9vh, 112px)); padding-bottom: clamp(56px, 9vw, 136px); text-align: center; overflow: clip; }
.hero h1 { max-width: 13em; margin-inline: auto; }
.hero .lede { margin: clamp(20px, 2.4vw, 32px) auto 0; max-width: 33em; }
.hero .cta { margin-top: clamp(24px, 3vw, 40px); }
.hero .fine { margin-top: 18px; }
.hero-stage { --p: 1; margin-top: clamp(40px, 6vw, 84px); padding-inline: max(4vw, 16px); }
.window-hero {
  max-width: 1480px; margin-inline: auto; transform-origin: 50% 0;
  transform: translate3d(0, calc((1 - var(--p)) * 5vh), 0) scale(calc(.86 + .14 * var(--p)));
}

/* the drawn window frame */
.window {
  border-radius: clamp(8px, 1.1vw, 14px); overflow: hidden; background: #f4f5f7;
  box-shadow: 0 0 0 1px rgba(15, 18, 22, .1), 0 36px 90px -28px rgba(15, 18, 22, .34), 0 12px 28px -14px rgba(15, 18, 22, .2);
}
[data-theme="dark"] .window { box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 40px 100px -30px rgba(0, 0, 0, .9); }
.window-bar {
  position: relative; display: flex; align-items: center; gap: clamp(4px, .5vw, 7px);
  height: clamp(20px, 2.6vw, 36px); padding-inline: clamp(8px, 1vw, 14px);
  background: #f4f5f7; border-bottom: 1px solid rgba(15, 18, 22, .09);
}
.window-bar i { width: clamp(6px, .75vw, 10px); height: clamp(6px, .75vw, 10px); border-radius: 50%; background: #d3d6db; }
.window-bar span { position: absolute; left: 50%; transform: translateX(-50%); font-size: clamp(9px, .95vw, 12.5px); font-weight: 600; color: #5b616b; }

/* explain: steps with a picture each; pinned stage on wide screens */
.pin { margin-top: clamp(48px, 7vw, 96px); max-width: calc(1480px + 2 * var(--gutter)); }
.steps { display: grid; gap: clamp(64px, 10vw, 120px); }
.step h3 { max-width: 14em; }
.step p { margin-top: 14px; color: var(--muted); max-width: 30em; font-size: 1.125rem; }
.step-media { margin-top: clamp(24px, 4vw, 40px); }
.step-media.zoomed picture { overflow: hidden; }
.step-media.zoomed img, .pin[data-step="3"] .f2 { transform: scale(1.72); transform-origin: 33% 100%; }
.pin-stage { display: none; }

@media (min-width: 960px) and (min-height: 600px) and (prefers-reduced-motion: no-preference) {
  .js .pin { display: grid; grid-template-columns: minmax(240px, 25%) 1fr; column-gap: clamp(36px, 4vw, 64px); margin-top: 0; }
  .js .steps { display: block; }
  .js .step { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; opacity: .3; transition: opacity .5s var(--ease); }
  .js .step.is-active { opacity: 1; }
  .js .step-media { display: none; }
  .js .pin-stage { display: flex; align-items: center; position: sticky; top: 0; height: 100vh; padding-top: var(--nav-h); }
  .js .pin-stage .window { width: 100%; }
  .pin-frames { position: relative; aspect-ratio: 1920 / 920; overflow: hidden; background: #f4f5f7; }
  .pin-frames .frame { position: absolute; inset: 0; opacity: 0; transition: opacity .7s var(--ease), transform 1.1s var(--ease); }
  .pin-frames .frame img { height: 100%; }
  .pin[data-step="1"] .f1, .pin[data-step="2"] .f2, .pin[data-step="3"] .f2 { opacity: 1; }
}

/* chart */
.chartfig { margin-top: clamp(48px, 7vw, 96px); display: grid; grid-template-columns: 1.2fr .8fr; align-items: center; gap: clamp(28px, 5vw, 72px); }
.chartfig figcaption { grid-column: 1 / -1; text-align: center; font-size: .875rem; color: var(--muted); }
.fdi { display: grid; gap: clamp(8px, 1.2vw, 14px); }
.fdi-row { display: grid; grid-template-columns: 1.12fr 1.25fr 1.3fr .95fr .95fr .9fr .8fr .98fr .5fr .98fr .8fr .9fr .95fr .95fr 1.3fr 1.25fr 1.12fr; gap: clamp(2px, .4vw, 5px); }
.tooth { display: flex; flex-direction: column; align-items: center; gap: clamp(4px, .6vw, 8px); min-width: 0; }
.fdi-row:last-child .tooth { flex-direction: column-reverse; }
.fdi-row .mid { justify-self: center; width: 1px; background: var(--rule-strong); }
.tooth i { display: block; width: 100%; height: clamp(24px, 3.6vw, 50px); border-radius: clamp(5px, .8vw, 11px); background: var(--stage); box-shadow: inset 0 0 0 1px rgba(15, 18, 22, .16); }
.tooth b { font: 500 clamp(8.5px, 1vw, 12px)/1 var(--mono); color: var(--muted); letter-spacing: -.02em; }
.tooth.gone i { background: transparent; box-shadow: none; border: 1.5px dashed var(--accent); }
.tooth.gone b { color: var(--accent-text); font-weight: 700; }
.panel { border-radius: clamp(14px, 1.6vw, 22px); overflow: hidden; background: var(--stage); }
[data-theme="stage"] .panel { box-shadow: 0 0 0 1px var(--rule); }
.pair { margin: clamp(56px, 8vw, 112px) auto 0; max-width: 1040px; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); }
.pair p { margin-top: 12px; color: var(--muted); }

/* plan */
.split { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(32px, 5vw, 80px); }
.split-copy .lede { margin-top: clamp(18px, 2.2vw, 28px); }
.float { max-width: 560px; width: 100%; margin-inline: auto; }
.float picture {
  -webkit-mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent), linear-gradient(to bottom, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent), linear-gradient(to bottom, transparent, #000 5%, #000 95%, transparent);
  -webkit-mask-composite: source-in; mask-composite: intersect;
}
.feature { margin-top: var(--section); display: grid; grid-template-columns: 1.12fr .88fr; align-items: center; gap: clamp(32px, 5vw, 80px); }
.feature-copy > p { margin-top: 14px; color: var(--muted); }
.feature-copy > .fine { margin-top: 12px; }
.readout { margin-top: 28px; padding: 20px 0 14px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.readout-top { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; font-size: .9375rem; color: var(--muted); }
.readout-top b { font: 500 clamp(2.5rem, 1.6rem + 2.4vw, 3.75rem)/1 var(--mono); letter-spacing: -.05em; color: var(--fg); font-variant-numeric: tabular-nums; white-space: nowrap; }
.readout-top small { font-size: .36em; letter-spacing: 0; color: var(--muted); }
.rangebar { position: relative; height: 2px; margin-top: 20px; background: var(--rule-strong); }
.rangebar .zone { position: absolute; left: 0; top: 0; height: 2px; width: 37.5%; background: var(--fg); opacity: .55; }
.rangebar .tick { position: absolute; left: 53.75%; top: -8px; width: 2px; height: 18px; margin-left: -1px; background: var(--accent); }
.readout-scale { position: relative; height: 1.4em; margin-top: 8px; font: 500 .75rem/1.4 var(--mono); color: var(--muted); }
.readout-scale span { position: absolute; top: 0; transform: translateX(-50%); }
.readout-scale span:nth-child(1) { left: 0; transform: none; }
.readout-scale span:nth-child(2) { left: 25%; }
.readout-scale span:nth-child(3) { left: 37.5%; }
.readout-scale .end { left: auto; right: 0; transform: none; }
.tracing { margin-top: var(--section); text-align: center; }
.tracing h3 { margin-inline: auto; }
.tracing > p:last-child { margin: 26px auto 0; max-width: 34em; color: var(--muted); }
.analyses { margin-top: clamp(22px, 3vw, 40px); display: flex; flex-wrap: wrap; justify-content: center; gap: .08em .5em; font-size: clamp(1.9rem, .9rem + 3.9vw, 4.5rem); font-weight: 600; line-height: 1.08; letter-spacing: -.035em; }
.analyses span:nth-child(even) { color: var(--muted); }

/* procedures */
.float-dark { max-width: 1050px; margin-top: clamp(32px, 5vw, 64px); padding-inline: var(--gutter); }
.float-dark picture {
  -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent), linear-gradient(to bottom, transparent, #000 6%, #000 72%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent), linear-gradient(to bottom, transparent, #000 6%, #000 72%, transparent);
}
.scrub { --frame-w: min(760px, 100%); margin-top: clamp(40px, 6vw, 80px); }
.scrub-in { display: grid; justify-items: center; gap: clamp(16px, 2.4vh, 26px); text-align: center; }
.scrub-copy { min-height: 7.4em; }
.scrub-caption { margin: 12px auto 0; max-width: 30em; color: var(--muted); font-size: 1.125rem; }
.scrub-caption .at, .sframe figcaption { font-variant-numeric: tabular-nums; }
.scrub-frames { position: relative; width: var(--frame-w); aspect-ratio: 1050 / 768; background: var(--stage); }
.sframe { position: absolute; inset: 0; opacity: 0; transition: opacity .32s linear; }
.sframe.is-on { opacity: 1; }
.sframe figcaption { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.timeline { width: var(--frame-w); display: flex; align-items: center; gap: 14px; }
.timecode { font: 500 .9375rem/1 var(--mono); font-variant-numeric: tabular-nums; min-width: 2.6em; text-align: left; }
.timecode.end { color: var(--muted); text-align: right; }
.track { position: relative; flex: 1; height: 36px; display: flex; align-items: center; }
.track input {
  -webkit-appearance: none; appearance: none; width: 100%; height: 36px; margin: 0; padding: 0;
  background: transparent; cursor: ew-resize; --v: 13.9%; border-radius: 6px;
}
.track input::-webkit-slider-runnable-track { height: 2px; background: linear-gradient(to right, var(--accent) var(--v), var(--rule-strong) var(--v)); }
.track input::-moz-range-track { height: 2px; background: var(--rule-strong); }
.track input::-moz-range-progress { height: 2px; background: var(--accent); }
.track input::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 4px; height: 24px; margin-top: -11px; border-radius: 2px; background: var(--accent); border: 0; }
.track input::-moz-range-thumb { width: 4px; height: 24px; border-radius: 2px; background: var(--accent); border: 0; }
.track-marks i { position: absolute; top: calc(50% + 7px); width: 1px; height: 6px; background: var(--muted); }
.scrub-note { max-width: 34em; }

@media (min-width: 960px) and (min-height: 640px) and (prefers-reduced-motion: no-preference) {
  .js .scrub { height: 300vh; --frame-w: min(920px, calc((100vh - var(--nav-h) - 330px) * 1.367), 100%); }
  .js .scrub-pin { position: sticky; top: 0; height: 100vh; padding-top: var(--nav-h); display: flex; align-items: center; }
}
html:not(.js) .scrub-frames { aspect-ratio: auto; width: 100%; background: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; border-radius: 0; }
html:not(.js) .sframe { position: static; opacity: 1; }
html:not(.js) .sframe img { border-radius: 14px; }
html:not(.js) .sframe figcaption { position: static; width: auto; height: auto; margin: 10px 0 0; clip: auto; white-space: normal; font-size: .875rem; color: var(--muted); text-align: left; }
html:not(.js) .timeline, html:not(.js) .scrub-caption, html:not(.js) .scrub-note { display: none; }

.touch { margin-top: var(--section); }
.touch-copy { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 80px); align-items: start; }
.touch-copy p { color: var(--muted); font-size: 1.125rem; }
.touch-copy p + p { margin-top: 14px; }
.touch-copy h3 { max-width: 11em; }
.tiles { margin-top: clamp(40px, 6vw, 72px); display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 2.6vw, 32px) clamp(10px, 1.2vw, 16px); }
.tiles img { border-radius: clamp(10px, 1.2vw, 16px); background: var(--stage); }
.tiles span { display: block; margin-top: 10px; font-size: .9375rem; font-weight: 500; }
.also { margin-top: clamp(28px, 4vw, 44px); }

/* reference */
.card-shot { margin: clamp(44px, 6vw, 80px) auto 0; max-width: 1040px; border-radius: clamp(10px, 1.4vw, 18px); overflow: hidden; background: #f9fafb; box-shadow: 0 0 0 1px rgba(15, 18, 22, .09), 0 30px 70px -30px rgba(15, 18, 22, .28); }
.card-shot.narrow { max-width: 860px; }

.cats { margin: clamp(22px, 3vw, 34px) auto 0; max-width: 60em; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; font-size: .9375rem; color: var(--muted); }
.cats b { font: 500 .8125rem/1 var(--mono); color: var(--fg); font-variant-numeric: tabular-nums; margin-left: .15em; }

/* learn */
.courses { margin-top: clamp(24px, 3vw, 36px); border-top: 1px solid var(--rule); }
.courses li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: .68em 0; border-bottom: 1px solid var(--rule); }
.courses b { font: 500 .9375rem/1 var(--mono); font-variant-numeric: tabular-nums; }
.learn .fine { margin-top: 16px; }

/* privacy band */
.privacy { text-align: center; padding-block: clamp(120px, 18vw, 260px); }
.privacy h2 { max-width: 12em; margin-inline: auto; font-size: clamp(2.5rem, 1rem + 5.6vw, 6rem); }
.privacy .lede { margin: clamp(20px, 2.6vw, 34px) auto 0; max-width: 30em; }

/* facts */
.spec { margin-top: clamp(32px, 4vw, 56px); border-top: 1px solid var(--rule-strong); }
.spec > div { display: grid; grid-template-columns: minmax(150px, 24%) 1fr; gap: 24px; padding: 1.15em 0; border-bottom: 1px solid var(--rule); }
.spec dt { color: var(--muted); font-size: .9375rem; padding-top: .1em; }
.spec dd { max-width: 44em; }
.num { font-family: var(--mono); font-weight: 500; font-variant-numeric: tabular-nums; }

/* download */
.download .wrap > h2, .download .wrap > .lede, .download .wrap > .fine, .mobile-note, .nojs-note { text-align: center; margin-inline: auto; }
.download .lede { margin-top: clamp(16px, 2vw, 24px); }
.nojs-note, .mobile-note { margin-top: 20px; max-width: 34em; color: var(--muted); }
.js .nojs-note { display: none; }
.dl-cards { margin-top: clamp(40px, 5vw, 64px); display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.dl-card { background: var(--well); border-radius: 22px; padding: clamp(22px, 2.4vw, 32px); display: flex; flex-direction: column; }
.dl-card.is-yours { order: -1; box-shadow: inset 0 0 0 1.5px var(--fg); }
.dl-yours { font-size: .8125rem; font-weight: 600; color: var(--accent-text); margin-bottom: 10px; }
.dl-card h3 { font-size: 1.75rem; }
.dl-sub { color: var(--muted); font-size: .9375rem; margin-top: 4px; }
.dl-actions { margin-top: auto; padding-top: 28px; display: grid; gap: 10px; }
.dl-actions .btn { border-radius: 14px; flex-direction: column; align-items: flex-start; gap: 4px; padding: .8em 1.05em; white-space: normal; text-align: left; }
.dl-actions small { font: 400 .75rem/1.3 var(--mono); opacity: .72; overflow-wrap: anywhere; min-height: 1.3em; }
.dl-fine { margin-top: 28px; }

/* support */
.support { text-align: center; }
.support-in { display: grid; justify-items: center; }
.like-big {
  width: clamp(104px, 12vw, 132px); height: clamp(104px, 12vw, 132px); border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; position: relative; background: var(--stage);
  transition: background-color .5s, transform .2s var(--ease);
}
.like-big:hover { transform: scale(1.04); }
.like-big:active { transform: scale(.97); }
.like-big .heart { font-size: clamp(46px, 5.4vw, 60px); }
.like-big[aria-pressed="true"] { background: #fbe9e6; }
.like-big::after { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 1.5px var(--accent); opacity: 0; pointer-events: none; }
.like-big.pop::after { animation: ring .7s var(--ease); }
@keyframes ring { 0% { opacity: .7; transform: scale(1); } 100% { opacity: 0; transform: scale(1.32); } }
.like-total { margin-top: 18px; font-size: .9375rem; color: var(--muted); }
.like-total .like-count { color: var(--fg); font-weight: 500; }
.support h2 { margin-top: clamp(24px, 3vw, 36px); }
.support .lede { margin-top: clamp(16px, 2vw, 24px); max-width: 27em; }
.support .cta { margin-top: clamp(26px, 3vw, 38px); }
.support .fine { margin-top: 16px; }

/* footer */
.foot { padding-block: clamp(56px, 7vw, 96px); font-size: .9375rem; }
.foot .wordmark { height: 24px; }
.notice { margin-top: 28px; max-width: 40em; font-size: 1.0625rem; }
.credits { margin-top: 14px; max-width: 52em; color: var(--muted); }
.foot-links { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px 28px; }
.foot-links a { text-decoration: underline; text-decoration-color: var(--rule-strong); text-underline-offset: .28em; text-decoration-thickness: 1px; }
.foot-links a:hover { text-decoration-color: currentColor; }
.by { margin-top: 28px; color: var(--muted); }

/* reveal on entry */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .js .reveal { opacity: 0; transform: translate3d(0, 22px, 0); transition: opacity .8s var(--ease), transform .8s var(--ease); }
  .js .reveal.in { opacity: 1; transform: none; }
  .js .tiles .reveal:nth-child(4n + 2) { transition-delay: .06s; }
  .js .tiles .reveal:nth-child(4n + 3) { transition-delay: .12s; }
  .js .tiles .reveal:nth-child(4n + 4) { transition-delay: .18s; }
  .js .chartfig .tooth.gone i { background: var(--stage); border-color: transparent; transition: background-color .7s .5s, border-color .7s .5s; }
  .js .chartfig.in .tooth.gone i { background: transparent; border-color: var(--accent); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .window-hero { transform: none; }
}

/* narrower screens */
@media (max-width: 959px) {
  .nav-links { display: none; }
  .nav-links + .nav-actions { margin-left: auto; }
  .split, .feature, .chartfig, .pair, .touch-copy { grid-template-columns: 1fr; }
  .split-copy { text-align: center; }
  .split-copy .lede { margin-inline: auto; }
  .plan .split-copy { order: -1; }
  .learn .split-copy { order: -1; }
  .learn .courses, .learn .fine { text-align: left; }
  .feature-copy { order: -1; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .dl-cards { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .dl-actions { padding-top: 22px; }
  .spec > div { grid-template-columns: 1fr; gap: 4px; }
  .float { max-width: 440px; }
  .step h3, .step p { max-width: none; }
}
@media (max-width: 520px) {
  .btn-large { width: 100%; }
  .hero .cta { flex-direction: column; }
  .scrub-copy { min-height: 9.5em; }
  .timeline { gap: 10px; }
}

/* 404 page */
.lost { min-height: 100vh; min-height: 100svh; display: grid; align-items: center; text-align: center; background: var(--bg); color: var(--fg); padding-block: 64px; }
.lost-mark { display: inline-block; border-radius: 18px; }
.lost-mark img { width: 72px; height: 72px; }
.lost-code { margin-top: 28px; font: 500 1rem var(--mono); color: var(--accent-text); }
.lost h1 { margin-top: 10px; font-size: clamp(2.25rem, 1rem + 4.7vw, 4.5rem); }
.lost .lede { margin: 22px auto 0; max-width: 28em; }
.lost .cta { margin-top: 32px; }
