/* pentivo.site — one stylesheet for every page and language. Always white, like the paper.
   Palette and type come from the app (docs/DESIGN.md): ink, paper, the Pentivo blue,
   and the playhead orange that only ever marks what is sounding. */

:root {
  --paper: #ffffff;
  --desk: #ffffff;
  --ink: #121214;
  --ink-2: #5a5e6a;
  --ink-3: #8a8e99;
  --line: #cfd3dc;
  --line-soft: #e3e6ec;
  --accent: #2e5bff;
  --accent-ink: #ffffff;
  --accent-soft: rgba(46, 91, 255, .1);
  --playhead: #ff5a36;
  --glass: rgba(255, 255, 255, .72);
  --glass-edge: rgba(18, 18, 20, .08);
  --shadow: 0 0 0 1px rgba(18, 18, 20, .06), 0 1px 2px rgba(18, 18, 20, .04), 0 26px 60px -30px rgba(18, 18, 20, .22);

  --display: 'Bodoni Moda', 'Didot', 'Bodoni 72', 'Times New Roman', serif;
  --text: 'Jost', 'Avenir Next', 'Futura', system-ui, sans-serif;
  --music: 'Bravura Pentivo';

  --step-h1: clamp(2.6rem, 1.55rem + 4.1vw, 4.9rem);
  --step-h2: clamp(2rem, 1.35rem + 2.5vw, 3.35rem);
  --step-h3: clamp(1.3rem, 1.15rem + .6vw, 1.6rem);
  --step-lead: clamp(1.15rem, 1.05rem + .45vw, 1.4rem);
  --step-body: 1.075rem;
  --step-small: .9rem;

  --gutter: clamp(16px, 4vw, 48px);
  --measure: 1180px;
  color-scheme: light;
}

@font-face {
  font-family: 'Bravura Pentivo';
  src: url(/assets/fonts/bravura-pentivo.woff2) format('woff2');
  font-display: block;
}

/* Chinese and Arabic: the system's own fine faces, which carry the same light touch. */
:lang(zh) { --display: 'Songti SC', 'STSong', 'Noto Serif SC', 'Source Han Serif SC', serif; --text: 'PingFang SC', 'Hiragino Sans GB', 'Noto Sans SC', system-ui, sans-serif; }
:lang(ar) { --display: 'Noto Naskh Arabic', 'Geeza Pro', 'Damascus', 'Times New Roman', serif; --text: 'SF Arabic', 'Geeza Pro', 'Noto Sans Arabic', system-ui, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--desk);
  color: var(--ink);
  font: 300 var(--step-body)/1.62 var(--text);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
:lang(zh) body, :lang(ar) body { font-weight: 400; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent-soft); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

h1, h2, h3 { font-family: var(--display); font-weight: 400; font-optical-sizing: auto; margin: 0; letter-spacing: -.012em; text-wrap: balance; }
h1 { font-size: var(--step-h1); line-height: 1.03; }
h2 { font-size: var(--step-h2); line-height: 1.08; }
h3 { font-size: var(--step-h3); line-height: 1.2; }
:lang(zh) h1, :lang(zh) h2, :lang(ar) h1, :lang(ar) h2 { letter-spacing: 0; line-height: 1.25; }
:lang(ar) h1, :lang(ar) h2, :lang(ar) h3 { font-weight: 500; }
p { margin: 0; text-wrap: pretty; }
em { font-family: var(--display); font-style: italic; font-weight: 400; }

.wrap { width: min(100% - 2 * var(--gutter), var(--measure)); margin-inline: auto; }

/* MARK: Top bar */

.top {
  position: sticky; top: 0; z-index: 30;
  backdrop-filter: saturate(1.6) blur(18px); -webkit-backdrop-filter: saturate(1.6) blur(18px);
  background: color-mix(in srgb, var(--desk) 78%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.top.is-scrolled { border-bottom-color: var(--line-soft); }
.top .wrap { display: flex; align-items: center; gap: 18px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-size: 1.45rem; letter-spacing: -.01em; }
.brand:hover { color: var(--ink); }
.brand img { width: 30px; height: 30px; border-radius: 8px; box-shadow: 0 0 0 1px var(--glass-edge); }
.top nav { margin-inline-start: auto; display: flex; align-items: center; gap: clamp(10px, 2vw, 26px); font-size: .95rem; }
.top nav a { text-decoration: none; color: var(--ink-2); }
.top nav a:hover { color: var(--ink); }
.top nav .nav-link { display: none; }
@media (min-width: 760px) { .top nav .nav-link { display: inline; } }

.lang { position: relative; }
.lang button {
  font: inherit; color: var(--ink-2); background: none; border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 12px 6px 10px; display: flex; gap: 7px; align-items: center; cursor: pointer; min-height: 36px;
}
.lang button:hover { color: var(--ink); border-color: var(--ink-3); }
.lang svg { width: 16px; height: 16px; }
.lang ul {
  position: absolute; inset-inline-end: 0; top: calc(100% + 8px); list-style: none; margin: 0; padding: 6px;
  background: var(--glass); backdrop-filter: blur(24px) saturate(1.5); -webkit-backdrop-filter: blur(24px) saturate(1.5);
  border: 1px solid var(--glass-edge); border-radius: 16px; box-shadow: var(--shadow); min-width: 190px;
  opacity: 0; transform: translateY(-4px); pointer-events: none; transition: opacity .18s, transform .18s;
}
.lang.is-open ul { opacity: 1; transform: none; pointer-events: auto; }
.lang li a { display: flex; justify-content: space-between; gap: 16px; padding: 9px 12px; border-radius: 10px; text-decoration: none; color: var(--ink); }
.lang li a:hover, .lang li a:focus-visible { background: var(--accent-soft); color: var(--ink); }
.lang li a[aria-current] { color: var(--accent); }
.lang li small { color: var(--ink-3); }

.store {
  display: inline-flex; align-items: center; gap: 9px; text-decoration: none; white-space: nowrap;
  background: var(--ink); color: var(--desk); border-radius: 999px; padding: 9px 16px 9px 13px; font-size: .92rem; font-weight: 400;
  transition: transform .2s, background .2s;
}
.store:hover { color: var(--desk); transform: translateY(-1px); }
.store svg { width: 17px; height: 17px; }
.store[aria-disabled="true"] { cursor: default; }
.store[aria-disabled="true"]:hover { transform: none; }
.store > span { color: #fff; }
.store .store-sub { opacity: .62; }
@media (max-width: 520px) { .top .store .store-sub { display: none; } }

/* MARK: Hero, the composer */

.hero { padding: clamp(36px, 7vw, 92px) 0 clamp(40px, 6vw, 72px); }
.hero-head { display: grid; gap: 22px; max-width: 920px; }
.hero-head p { font-size: var(--step-lead); color: var(--ink-2); max-width: 640px; }
.hero h1 .soft { color: var(--ink-3); }

.sheet {
  position: relative; margin-top: clamp(28px, 5vw, 56px);
  background: var(--paper); color: #121214; border-radius: 22px; box-shadow: var(--shadow);
  padding: clamp(14px, 2.4vw, 30px) clamp(10px, 2.4vw, 34px) clamp(10px, 1.6vw, 18px);
  isolation: isolate;
}
.sheet-title { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 0 6px 4px; color: #5a5e6a; font-size: .88rem; }
.sheet-title span { text-align: end; }
@media (max-width: 560px) { .sheet-title span { display: none; } }
.sheet-title strong { font-family: var(--display); font-weight: 400; font-size: clamp(1.15rem, 1rem + .6vw, 1.5rem); color: #121214; }
.score { direction: ltr; touch-action: none; cursor: crosshair; outline: none; border-radius: 14px; }
.score:focus-visible { box-shadow: inset 0 0 0 2px var(--accent); outline: none; }
.score svg { width: 100%; height: auto; overflow: visible; user-select: none; -webkit-user-select: none; }
.score .staff line { stroke: #b9bdc7; stroke-width: 1; vector-effect: non-scaling-stroke; }
.score .bar { stroke: #9a9ea8; stroke-width: 1.1; vector-effect: non-scaling-stroke; }
.score .final { stroke: #121214; }
.score .glyph { font-family: var(--music); fill: #121214; }
.score .stem, .score .ledger { stroke: #121214; stroke-width: 1.25; vector-effect: non-scaling-stroke; stroke-linecap: butt; }
.score .beam { fill: #121214; }
.score .chord { font-family: 'Bodoni Moda', var(--display); font-weight: 500; fill: #121214; }
.score .note { transition: fill .15s; }
.score .note.is-new { animation: noteIn .42s cubic-bezier(.2, .9, .3, 1.4) both; transform-box: fill-box; transform-origin: center; }
.score .note.is-sounding .glyph, .score .note.is-sounding .stem { fill: var(--accent); stroke: var(--accent); }
.score .ghost { fill: var(--accent); opacity: .42; font-family: var(--music); pointer-events: none; }
.score .ghost-label { font: 500 12px var(--text); fill: var(--accent); pointer-events: none; }
.score .caret { stroke: var(--accent); stroke-width: 2; vector-effect: non-scaling-stroke; animation: blink 1.1s steps(1) infinite; }
.score .playhead { stroke: var(--playhead); stroke-width: 2; vector-effect: non-scaling-stroke; }
.score .draw line { stroke-dasharray: 2000; stroke-dashoffset: 2000; animation: draw 1.4s cubic-bezier(.6, 0, .2, 1) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes noteIn { from { opacity: 0; transform: translateY(-6px) scale(.7); } }
@keyframes blink { 50% { opacity: 0; } }

.tools {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 14px auto 0; width: fit-content; max-width: 100%;
  padding: 6px; border-radius: 22px; background: var(--glass); border: 1px solid var(--glass-edge);
  backdrop-filter: blur(20px) saturate(1.5); -webkit-backdrop-filter: blur(20px) saturate(1.5); box-shadow: var(--shadow);
  justify-content: center; position: relative; z-index: 2;
}
.tools .group { display: flex; gap: 2px; padding: 2px; border-radius: 14px; background: color-mix(in srgb, var(--ink) 5%, transparent); }
.tools button, .tools label.btn {
  font: 400 .92rem var(--text); color: var(--ink); background: transparent; border: 0; border-radius: 12px;
  min-height: 40px; min-width: 38px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; cursor: pointer;
  transition: background .15s, color .15s;
}
.tools button:hover { background: color-mix(in srgb, var(--ink) 8%, transparent); }
.tools button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.tools button.primary { background: var(--ink); color: var(--desk); padding: 0 16px; }
.tools button.primary:hover { background: color-mix(in srgb, var(--ink) 86%, var(--accent)); }
.tools .dur { font-family: var(--music); font-size: 26px; line-height: 0; padding: 0 6px; min-width: 36px; }
.tools .dur span { display: block; transform: translateY(5px); }
.tools .ico { width: 18px; height: 18px; flex: none; }
.tools select {
  font: 400 .92rem var(--text); color: var(--ink); background: transparent; border: 0; min-height: 40px; padding: 0 8px; border-radius: 12px; cursor: pointer;
}
.tools select:hover { background: color-mix(in srgb, var(--ink) 8%, transparent); }
.tools .tempo { display: inline-flex; align-items: center; gap: 6px; padding: 0 8px; font-size: .88rem; color: var(--ink-2); }
.tools input[type="range"] { width: 66px; accent-color: var(--accent); }
.tools .mm { font: 26px/0 var(--music); transform: translateY(6px); color: var(--ink); }
.tools .num { font-variant-numeric: tabular-nums; min-width: 2.2em; color: var(--ink); }
.composer-foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; margin-top: 14px; color: var(--ink-3); font-size: var(--step-small); text-align: center; }
.composer-foot kbd { font: 400 .8rem var(--text); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; padding: 0 5px; color: var(--ink-2); }
.status { min-height: 1.4em; text-align: center; color: var(--ink-2); font-size: var(--step-small); margin-top: 10px; }

/* MARK: The ruled divider: a staff that runs edge to edge */

.rule { direction: ltr; position: relative; height: 34px; margin: clamp(56px, 9vw, 120px) 0 clamp(26px, 4vw, 46px); }
.rule::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 33px;
  background: repeating-linear-gradient(to bottom, var(--line) 0 1px, transparent 1px 8px);
  transform-origin: left; transform: scaleX(var(--drawn, 1)); transition: transform 1.3s cubic-bezier(.6, 0, .2, 1);
}
.rule .clef { position: absolute; left: var(--gutter); top: -16px; width: 40px; height: 66px; overflow: visible; }
.rule .clef text { font-family: var(--music); fill: var(--ink); }
.rule .label { position: absolute; right: var(--gutter); top: 4px; background: var(--desk); padding-inline: 14px 0; font-family: var(--display); font-style: italic; font-size: 1.12rem; color: var(--accent); }
.js .rule:not(.is-in) { --drawn: 0; }

/* MARK: Sections */

section { scroll-margin-top: 80px; }
.section-head { display: grid; gap: 18px; max-width: 820px; margin-bottom: clamp(30px, 5vw, 56px); }
.section-head p { font-size: var(--step-lead); color: var(--ink-2); }
.split { display: grid; gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1.08fr; } .split.flip > :first-child { order: 2; } }

.reveal { transition: opacity .65s ease, transform .65s cubic-bezier(.2, .7, .2, 1); }
.js .reveal:not(.is-in) { opacity: 0; transform: translateY(18px); }

.ways { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
@media (min-width: 760px) { .ways { grid-template-columns: repeat(2, 1fr); column-gap: clamp(28px, 5vw, 72px); } }
@media (min-width: 1100px) { .ways { grid-template-columns: repeat(3, 1fr); } }
.ways li { padding: 22px 0 24px; border-top: 1px solid var(--line); display: grid; gap: 8px; align-content: start; }
.ways h3 { display: flex; align-items: baseline; gap: 12px; }
.ways .glyph { font: 44px/0 var(--music); color: var(--accent); width: 18px; flex: none; transform: translateY(-3px); }
.ways p { color: var(--ink-2); }
.ways kbd, .keys kbd { font: 400 .78rem var(--text); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; padding: 1px 6px; color: var(--ink-2); white-space: nowrap; }

.card {
  background: var(--paper); color: #121214; border-radius: 22px; box-shadow: var(--shadow); overflow: hidden; position: relative;
}
.card .glyph { font-family: var(--music); }
.card figcaption { padding: 0 22px 18px; color: #5a5e6a; font-size: var(--step-small); }
.illus { width: 100%; height: auto; direction: ltr; }
.illus .staff line { stroke: #b9bdc7; stroke-width: 1; vector-effect: non-scaling-stroke; }
.illus .glyph { font-family: var(--music); fill: #121214; }
.illus .stem, .illus .ledger, .illus .bar { stroke: #121214; stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.illus .bar { stroke: #9a9ea8; }
.illus .beam { fill: #121214; }
.illus .chord { font-family: 'Bodoni Moda', var(--display); font-weight: 500; fill: #121214; }
.illus .name { font: 400 13px var(--text); fill: #5a5e6a; }
.illus .accent { fill: var(--accent); }

/* Read: the photo straightens into engraving as the scan passes. */
.scan { position: relative; aspect-ratio: 16 / 9; background: #fff; }
.scan .layer { position: absolute; inset: 0; display: grid; place-items: center; padding: 6% 5%; }
.scan .photo { filter: url(#paper-grain) blur(.5px) contrast(.92); transform: rotate(-2.6deg) scale(.96); background: #ecebe6; }
.scan .photo svg .glyph, .scan .photo svg .stem, .scan .photo svg .beam { fill: #3d3c3a; stroke: #3d3c3a; }
.scan .photo svg .staff line { stroke: #8f8d88; }
.scan .clean { clip-path: inset(0 100% 0 0); background: #fff; }
.scan .clean .glyph.picked { fill: var(--accent); }
.scan .beam-line { position: absolute; top: 0; bottom: 0; width: 2px; left: 0; background: var(--accent); box-shadow: 0 0 24px 6px var(--accent-soft); opacity: 0; }
.scan.is-playing .clean { animation: wipe 2.6s cubic-bezier(.6, 0, .3, 1) .4s forwards; }
.scan.is-playing .beam-line { animation: sweep 2.6s cubic-bezier(.6, 0, .3, 1) .4s forwards; }
@keyframes wipe { to { clip-path: inset(0 0 0 0); } }
@keyframes sweep { 0% { left: 0; opacity: 1; } 92% { opacity: 1; } 100% { left: 100%; opacity: 0; } }

.formats { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.formats li { border: 1px solid var(--line); border-radius: 999px; padding: 4px 13px; font-size: .9rem; color: var(--ink-2); }
.aside { margin-top: 18px; color: var(--ink-3); font-size: var(--step-small); max-width: 560px; }

/* Parts: four staves, then one. */
.parts { position: relative; }
.parts svg .row { transition: opacity .7s ease, transform .9s cubic-bezier(.6, 0, .2, 1); }
.parts.is-extracted svg .row.other { opacity: 0; }
.parts.is-extracted svg .row.keep { transform: translateY(var(--lift, 0)); }
.parts .page-label { transition: opacity .6s .3s; opacity: 0; }
.parts.is-extracted .page-label { opacity: 1; }
.parts-toggle {
  font: 400 .95rem var(--text); color: var(--ink); background: transparent; border: 1px solid var(--line); border-radius: 999px;
  padding: 10px 18px; cursor: pointer; margin-top: 22px; display: inline-flex; gap: 10px; align-items: center; min-height: 44px;
}
.parts-toggle:hover { border-color: var(--accent); color: var(--accent); }
.parts-toggle svg { width: 18px; height: 18px; flex: none; }
.parts svg .brace { transition: opacity .5s ease; }
.parts.is-extracted svg .brace { opacity: 0; }

/* Listen: sound becomes chords. */
.listen-card { padding: 26px 22px 22px; display: grid; gap: 20px; }
.wave { display: flex; align-items: center; gap: 3px; height: 84px; }
.wave i { flex: 1; background: #c9cdd6; border-radius: 3px; height: 12%; transition: height .35s ease, background .4s; }
.listen-card.is-playing .wave i { animation: wave 1.6s ease-in-out infinite; background: var(--accent); }
@keyframes wave { 0%, 100% { height: 14%; } 50% { height: var(--h, 70%); } }
.heard { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.heard span {
  font-family: 'Bodoni Moda', var(--display); font-weight: 500; font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2.1rem); text-align: center;
  padding: 14px 0; border-radius: 14px; background: #f4f5f8; color: #121214; opacity: .25; transform: translateY(6px); transition: opacity .5s, transform .5s, background .5s;
}
.heard span.is-on { opacity: 1; transform: none; background: rgba(46, 91, 255, .09); }
.modes { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.modes li { padding: 18px 0; border-top: 1px solid var(--line); display: grid; gap: 4px; }
.modes li strong { font-family: var(--display); font-weight: 400; font-size: var(--step-h3); }
.modes li span { color: var(--ink-2); }
.pro-tag { font: 500 .66rem/1 var(--text); letter-spacing: .08em; border: 1px solid currentColor; border-radius: 999px; padding: 3px 7px 2px; color: var(--ink-2); vertical-align: middle; margin-inline-start: 8px; white-space: nowrap; }

/* Grids of plain items */
.grid { display: grid; gap: 0 clamp(24px, 4vw, 56px); }
@media (min-width: 700px) { .grid.two { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .grid.three { grid-template-columns: repeat(3, 1fr); } .grid.four { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 700px) and (max-width: 979px) { .grid.three, .grid.four { grid-template-columns: repeat(2, 1fr); } }
.item { padding: 22px 0 26px; border-top: 1px solid var(--line); display: grid; gap: 8px; align-content: start; }
.item p { color: var(--ink-2); }
.voicings { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 8px; }
.voicings { max-width: 760px; }
.voicings figure { margin: 0; background: var(--paper); border-radius: 16px; box-shadow: var(--shadow); padding: 10px 8px 12px; text-align: center; display: grid; justify-items: center; gap: 2px; }
.voicings svg { width: 100%; max-width: 120px; height: auto; }
.voicings figcaption { color: #5a5e6a; font-size: .82rem; }
.templates { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; padding: 0; list-style: none; }
.templates li { background: var(--paper); color: #121214; border-radius: 12px; padding: 8px 14px; font-size: .92rem; box-shadow: 0 1px 0 var(--line-soft); }

/* Devices */
.devices { display: grid; gap: 14px; }
@media (min-width: 820px) { .devices { grid-template-columns: 1.35fr 1fr .62fr; align-items: end; } }
.device { background: var(--paper); color: #121214; border-radius: 22px; box-shadow: var(--shadow); padding: 20px 20px 22px; display: grid; gap: 10px; }
.device .screen { border-radius: 12px; background: #f4f5f8; aspect-ratio: 16 / 10.5; overflow: hidden; position: relative; }
.device.pad .screen { aspect-ratio: 4 / 3; }
.device.phone .screen { aspect-ratio: 9 / 17; }
.device h3 { color: #121214; }
.device p { color: #5a5e6a; font-size: .96rem; }

/* Pricing */
.plans { display: grid; gap: 18px; }
@media (min-width: 860px) { .plans { grid-template-columns: 1fr 1fr; } }
.plan { border-radius: 24px; padding: clamp(24px, 3.4vw, 40px); display: grid; gap: 18px; align-content: start; border: 1px solid var(--line); }
.plan.pro { background: var(--paper); color: #121214; border-color: transparent; box-shadow: var(--shadow); }
.plan .price { font-family: var(--display); font-size: clamp(2.6rem, 2rem + 2.4vw, 3.8rem); line-height: 1; }
.plan .price small { font-family: var(--text); font-size: 1rem; color: var(--ink-3); margin-inline-start: 6px; }
.plan.pro .price small { color: #8a8e99; }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.plan li { padding-inline-start: 28px; position: relative; }
.plan li::before { content: "\E0A4"; font-family: var(--music); position: absolute; inset-inline-start: 4px; top: .15em; font-size: 22px; line-height: 1; color: var(--accent); }
.plan.pro li::before { color: #2e5bff; }
.plan .fine { color: var(--ink-3); font-size: var(--step-small); }
.plan.pro .fine { color: #8a8e99; }

/* Promise */
.promise { display: grid; gap: 18px; max-width: 900px; }
.promise p { font-size: var(--step-lead); color: var(--ink-2); }

/* FAQ */
.faq { display: grid; gap: 0; max-width: 900px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 0; font-family: var(--display); font-size: var(--step-h3); display: flex; justify-content: space-between; gap: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--text); font-weight: 300; color: var(--ink-3); transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; color: var(--ink-2); max-width: 720px; }

/* MARK: Footer */

footer { margin-top: clamp(80px, 12vw, 150px); padding: 44px 0 56px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: .95rem; }
footer .wrap { display: grid; gap: 26px; }
@media (min-width: 820px) { footer .wrap { grid-template-columns: 1.3fr 1fr 1fr; align-items: start; } }
footer nav { display: grid; gap: 8px; }
footer a { text-decoration: none; }
footer a:hover { text-decoration: underline; }
.made { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding-top: 22px; border-top: 1px solid var(--line-soft); color: var(--ink-3); font-size: .88rem; }

/* MARK: Legal and support pages */

.doc { padding: clamp(36px, 7vw, 90px) 0 0; }
.doc .wrap { max-width: 780px; }
.doc h1 { font-size: clamp(2.3rem, 1.6rem + 2.8vw, 3.8rem); margin-bottom: 14px; }
.doc .updated { color: var(--ink-3); margin-bottom: clamp(30px, 5vw, 52px); }
.doc h2 { font-size: clamp(1.45rem, 1.2rem + 1vw, 1.95rem); margin: 42px 0 12px; }
.doc p, .doc li { color: var(--ink-2); }
.doc p + p { margin-top: 12px; }
.doc ul { padding-inline-start: 1.2em; display: grid; gap: 8px; margin: 12px 0 0; }
.doc strong { font-weight: 500; color: var(--ink); }
.doc .lead { font-size: var(--step-lead); color: var(--ink); }
.contact-card { margin-top: 26px; background: var(--paper); color: #121214; border-radius: 20px; box-shadow: var(--shadow); padding: 24px; display: grid; gap: 6px; }
.contact-card a { font-family: var(--display); font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); color: #2e5bff; text-decoration: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js .reveal:not(.is-in) { opacity: 1; transform: none; }
  .js .rule:not(.is-in) { --drawn: 1; }
  .score .caret { animation: none; }
}
