/* Lunta website. Colors from the Lunta logo (apple/Shared/Theme.swift): teal #2a6478, deep teal #1f4f60,
   copper #c2703d, highlight amber #f2b45a, warm paper off-whites. Fonts self-hosted (SIL OFL, fonts/OFL.txt).
   Motion is decoration only: everything is in place without it, and prefers-reduced-motion turns it off. */

@font-face { font-family: "Libre Franklin"; src: url(fonts/libre-franklin.woff2) format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url(fonts/dm-sans.woff2) format("woff2"); font-weight: 100 1000; font-style: normal; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url(fonts/dm-sans-italic.woff2) format("woff2"); font-weight: 100 1000; font-style: italic; font-display: swap; }
@font-face { font-family: "Roboto Mono"; src: url(fonts/roboto-mono.woff2) format("woff2"); font-weight: 100 700; font-style: normal; font-display: swap; }

:root {
  color-scheme: light dark;

  --teal: #2a6478;
  --teal-deep: #1f4f60;
  --copper: #c2703d;
  --amber: #f2b45a;

  --bg: #fbfaf6;
  --bg-alt: #f4f0e6;
  --surface: #ffffff;
  --ink: #15313b;
  --muted: #4d6670;
  --hairline: #e2dbcd;
  --border: #d6cdbb;
  --link: #2a6478;
  --link-hover: #1f4f60;
  --kicker: #9c5527;
  --check: #2a6478;
  --marker: rgba(242, 180, 90, .55);
  --shadow-1: 0 1px 2px rgba(21, 49, 59, .06), 0 2px 8px rgba(21, 49, 59, .05);
  --shadow-2: 0 2px 6px rgba(21, 49, 59, .06), 0 24px 48px -16px rgba(21, 49, 59, .22);
  --glow: 0 0 0 1px rgba(242, 180, 90, .55), 0 12px 40px -12px rgba(194, 112, 61, .35);

  --band: #1f4f60;
  --band-2: #163d4a;
  --band-3: #0f2e38;
  --band-ink: #f7f4ec;
  --band-muted: #d0dee0;
  --band-hairline: rgba(247, 244, 236, .2);

  --font-display: "Libre Franklin", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-body: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-mono: "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --font-read: "Iowan Old Style", Charter, "Bitstream Charter", Georgia, "Times New Roman", serif;

  --radius: .25rem;
  --radius-lg: .75rem;
  --wrap: 75rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section: clamp(4.5rem, 9vw, 7.5rem);
  --header: 4.25rem;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1e23;
    --bg-alt: #13262d;
    --surface: #162b33;
    --ink: #ece7dc;
    --muted: #a9bcc1;
    --hairline: #233c44;
    --border: #2f4c55;
    --link: #8ac6d6;
    --link-hover: #b4dde8;
    --kicker: #e9a46f;
    --check: #8ac6d6;
    --marker: rgba(242, 180, 90, .38);
    --shadow-1: 0 1px 2px rgba(0, 0, 0, .3), 0 2px 8px rgba(0, 0, 0, .25);
    --shadow-2: 0 2px 6px rgba(0, 0, 0, .3), 0 24px 48px -16px rgba(0, 0, 0, .6);
    --glow: 0 0 0 1px rgba(242, 180, 90, .45), 0 12px 40px -12px rgba(242, 180, 90, .25);
    --band: #143742;
    --band-2: #0f2c36;
    --band-3: #0a2129;
  }
}

/* ---------- base ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header) + 1rem); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 1.0625rem/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--link-hover); text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 2px; }
code { font: .88em/1 var(--font-mono); background: var(--bg-alt); border: 1px solid var(--hairline); padding: .12em .35em; border-radius: var(--radius); }
strong { font-weight: 650; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); font-weight: 650; letter-spacing: -.022em; line-height: 1.1; margin: 0; text-wrap: balance; }
p { margin: 0 0 1rem; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--amber); color: #15313b; padding: .5rem 1rem; border-radius: var(--radius); font-weight: 600; }
.skip:focus { top: 1rem; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.kicker {
  font: 500 .75rem/1.3 var(--font-mono); letter-spacing: .18em; text-transform: uppercase;
  color: var(--kicker); margin: 0 0 1rem; display: flex; align-items: center; gap: .625rem;
}
.kicker svg { width: 1.125rem; height: 1.125rem; flex: none; }
.lead { font-size: clamp(1.125rem, 1rem + .5vw, 1.3125rem); line-height: 1.55; color: var(--muted); }
.muted { color: var(--muted); }
.mark { background: linear-gradient(transparent 58%, var(--marker) 58%, var(--marker) 92%, transparent 92%); -webkit-box-decoration-break: clone; box-decoration-break: clone; }

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

.btn {
  display: inline-flex; align-items: center; gap: .625rem; min-height: 3rem; padding: .75rem 1.25rem;
  border-radius: .5rem; border: 1px solid transparent; font: 600 1rem/1.2 var(--font-body);
  text-decoration: none; transition: background-color .2s, border-color .2s, color .2s, box-shadow .25s, transform .2s var(--ease);
}
.btn:hover { text-decoration: none; }
.btn svg { width: 1.25rem; height: 1.25rem; flex: none; }
.btn small { display: block; font-weight: 500; font-size: .75rem; opacity: .85; letter-spacing: .01em; }
.btn-amber { background: var(--amber); color: #15313b; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 1px 2px rgba(0, 0, 0, .15); }
.btn-amber:hover { background: #f6c47a; color: #15313b; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 0 0 4px rgba(242, 180, 90, .22), 0 10px 30px -8px rgba(242, 180, 90, .6); }
.btn-ghost { border-color: rgba(247, 244, 236, .32); color: var(--band-ink); background: rgba(247, 244, 236, .06); }
.btn-ghost:hover { background: rgba(247, 244, 236, .12); border-color: rgba(247, 244, 236, .7); color: var(--band-ink); box-shadow: 0 0 0 4px rgba(247, 244, 236, .08); }
.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover { background: var(--teal-deep); color: #fff; box-shadow: 0 0 0 4px rgba(42, 100, 120, .18), 0 10px 30px -10px rgba(42, 100, 120, .55); }
.btn-line { border-color: var(--border); color: var(--ink); background: var(--surface); }
.btn-line:hover { border-color: var(--link); color: var(--ink); box-shadow: 0 0 0 4px rgba(42, 100, 120, .1); }
@media (prefers-color-scheme: dark) {
  .btn-teal { background: #8ac6d6; color: #0f1e23; }
  .btn-teal:hover { background: #b4dde8; color: #0f1e23; box-shadow: 0 0 0 4px rgba(138, 198, 214, .16), 0 10px 30px -10px rgba(138, 198, 214, .4); }
}
@media (prefers-reduced-motion: no-preference) { .btn:hover { transform: translateY(-1px); } .btn:active { transform: translateY(0); } }

.textlink { font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: .375rem; }
.textlink::after { content: "→"; transition: transform .2s var(--ease); }
.textlink:hover { text-decoration: underline; }
@media (prefers-reduced-motion: no-preference) { .textlink:hover::after { transform: translateX(3px); } }

/* ---------- header: sticky, see-through over the dark band, frosted once the page scrolls ---------- */

.band { background: var(--band); color: var(--band-ink); }
.band a:not(.btn) { color: var(--band-ink); }
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header); margin-bottom: calc(-1 * var(--header));
  background: rgba(17, 50, 61, .9); -webkit-backdrop-filter: saturate(1.4) blur(16px); backdrop-filter: saturate(1.4) blur(16px);
  border-bottom: 1px solid rgba(247, 244, 236, .1); color: var(--band-ink);
  transition: background-color .3s, border-color .3s, -webkit-backdrop-filter .3s, backdrop-filter .3s;
}
.site-header.at-top { background: transparent; border-bottom-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 100%; }
.site-header.at-top .wrap { background: linear-gradient(var(--band-hairline), var(--band-hairline)) 50% 100% / calc(100% - 2 * var(--gutter)) 1px no-repeat; }
.brand { display: inline-flex; align-items: center; gap: .625rem; color: var(--band-ink); text-decoration: none; font: 700 1.25rem/1 var(--font-display); letter-spacing: -.01em; }
.site-header .brand, .site-footer .brand { color: var(--band-ink); }
.brand img { width: 2rem; height: 2rem; border-radius: .45rem; box-shadow: 0 0 0 1px rgba(255, 255, 255, .12); }
.nav { display: flex; align-items: center; gap: clamp(.75rem, 2vw, 1.75rem); font-size: .9375rem; }
.nav a:not(.btn) { text-decoration: none; color: var(--band-muted); padding: .5rem 0; }
.nav a:not(.btn):hover, .nav a[aria-current="page"] { color: var(--band-ink); text-decoration: underline; text-decoration-color: var(--amber); text-decoration-thickness: 2px; text-underline-offset: .5em; }
.nav .btn { min-height: 2.375rem; padding: .4375rem .9375rem; font-size: .9375rem; }
@media (max-width: 47.99rem) { .nav .wide { display: none; } }

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

.hero { position: relative; overflow: hidden; isolation: isolate; background: linear-gradient(180deg, var(--band) 0%, var(--band-2) 70%, var(--band-3) 100%); }
.hero::before { /* the glow */
  content: ""; position: absolute; inset: -20% -10% -10% -10%; z-index: -2; pointer-events: none;
  background:
    radial-gradient(38rem 30rem at 78% 34%, rgba(56, 128, 152, .75), transparent 70%),
    radial-gradient(26rem 22rem at 64% 70%, rgba(242, 180, 90, .16), transparent 70%),
    radial-gradient(30rem 26rem at 8% 8%, rgba(42, 100, 120, .55), transparent 70%);
}
.hero::after { /* a faint grid, fading out from the middle */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(247, 244, 236, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(247, 244, 236, .06) 1px, transparent 1px);
  background-size: 3.5rem 3.5rem; background-position: -1px -1px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 35%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse 70% 60% at 50% 35%, #000 20%, transparent 75%);
}
@media (prefers-reduced-motion: no-preference) {
  .hero::before { animation: drift 26s ease-in-out infinite alternate; }
  @keyframes drift { 0% { transform: translate3d(0, 0, 0) scale(1); } 50% { transform: translate3d(-4%, 3%, 0) scale(1.06); } 100% { transform: translate3d(3%, -2%, 0) scale(1.02); } }
}
.hero-grid { display: grid; gap: clamp(3rem, 6vw, 4rem); padding-block: calc(var(--header) + clamp(2.5rem, 7vw, 5rem)) 0; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: .625rem; margin-bottom: 1.75rem; padding: .3125rem .875rem .3125rem .3125rem;
  border-radius: 999px; border: 1px solid rgba(247, 244, 236, .2); background: rgba(247, 244, 236, .07);
  font-size: .875rem; line-height: 1.35; text-decoration: none; transition: background-color .2s, border-color .2s;
}
.band a.pill { color: var(--band-ink); }
.pill b { font: 600 .6875rem/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; background: var(--amber); color: #15313b; padding: .375rem .5rem; border-radius: 999px; flex: none; }
.pill span[aria-hidden] { transition: transform .2s var(--ease); }
.pill:hover { background: rgba(247, 244, 236, .12); border-color: rgba(247, 244, 236, .4); }
@media (prefers-reduced-motion: no-preference) { .pill:hover span[aria-hidden] { transform: translateX(3px); } }
.hero h1 { color: var(--band-ink); font-size: clamp(2.75rem, 1.25rem + 4.6vw, 5.25rem); font-weight: 700; letter-spacing: -.04em; line-height: 1; margin-bottom: 1.5rem; }
.stroke { /* the highlighter stroke under "not PDFs." */
  background: linear-gradient(var(--amber), var(--amber)) no-repeat 0 92% / 100% .11em; padding-bottom: .02em;
}
@media (prefers-reduced-motion: no-preference) {
  .stroke { animation: draw 1s .45s var(--ease) both; }
  @keyframes draw { from { background-size: 0% .11em; } to { background-size: 100% .11em; } }
}
.hero .lead { color: var(--band-muted); max-width: 34rem; margin-bottom: 2rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 1.25rem; }
.hero .cta-row .btn { flex: 0 1 18.5rem; }
.cta-links { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; font-size: .9375rem; }
.hero-meta { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--band-hairline); font: 500 .75rem/1.6 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--band-muted); display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; }
.hero-art { position: relative; justify-self: center; width: min(100%, 34rem); padding: 0 0 0 12%; margin-bottom: -1px; }
.hero-art .tablet { --tw: 100%; margin-left: auto; margin-bottom: -18%; }
.hero-art .phone { position: absolute; left: 0; bottom: 4%; --pw: clamp(8.5rem, 34vw, 13.5rem); }
@media (min-width: 62rem) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); align-items: start; padding-top: calc(var(--header) + 4rem); }
  .hero-copy { padding-bottom: 6.5rem; }
  .hero-art { width: 100%; height: 100%; padding-left: 14%; }
  .hero-art .tablet { position: absolute; right: 0; top: 1.5rem; width: 86%; margin: 0; }
  .hero-art .phone { --pw: clamp(10rem, 15.5vw, 14.5rem); bottom: auto; top: 14rem; z-index: 1; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-art .phone { animation: float 7s ease-in-out infinite alternate; }
  @keyframes float { from { translate: 0 0; } to { translate: 0 -10px; } }
  @supports (animation-timeline: scroll()) {
    .hero-art .tablet { animation: parallax linear both; animation-timeline: scroll(root); animation-range: 0 100vh; }
    @keyframes parallax { to { translate: 0 -48px; } }
  }
}

/* ---------- device frames ---------- */

.phone {
  --pw: 16rem; width: var(--pw); flex: none; position: relative;
  padding: calc(var(--pw) * .034); border-radius: calc(var(--pw) * .17);
  background: linear-gradient(145deg, #3b4448, #12171a 40%, #1d2427);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14), inset 0 0 0 calc(var(--pw) * .01) #05080a, var(--shadow-2);
}
.phone > img, .phone > .screen { border-radius: calc(var(--pw) * .14); width: 100%; aspect-ratio: 1320 / 2868; object-fit: cover; background: #fff; display: block; overflow: hidden; }
.phone::after { content: ""; position: absolute; left: 50%; top: calc(var(--pw) * .057); transform: translateX(-50%); width: calc(var(--pw) * .27); height: calc(var(--pw) * .08); border-radius: 999px; background: #05080a; }
.tablet {
  --tw: 30rem; width: var(--tw); position: relative;
  padding: calc(min(var(--tw), 34rem) * .03); border-radius: calc(min(var(--tw), 34rem) * .065);
  background: linear-gradient(145deg, #3b4448, #12171a 40%, #1d2427);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14), var(--shadow-2);
}
.tablet img { border-radius: calc(min(var(--tw), 34rem) * .038); width: 100%; aspect-ratio: 2064 / 2752; object-fit: cover; background: #fff; }
.hero .phone, .hero .tablet { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14), 0 40px 80px -24px rgba(0, 0, 0, .65), 0 0 0 1px rgba(0, 0, 0, .35); }

/* ---------- section scaffolding ---------- */

.section { padding-block: var(--section); }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--hairline); }
.section-head { max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .kicker { justify-content: center; }
.section-head h2 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.25rem); letter-spacing: -.03em; margin-bottom: 1.25rem; }

/* scroll reveal, CSS only: nothing is hidden where scroll-driven animations are unsupported */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .reveal { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 35%; }
    @keyframes reveal { from { opacity: 0; translate: 0 2rem; } to { opacity: 1; translate: 0 0; } }
  }
}

/* ---------- showcase: from PDF to reading view ---------- */

.showcase { overflow: hidden; }
.stage { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; align-items: center; gap: 1.5rem; }
.stage figure { margin: 0; }
.stage figcaption { margin-top: 1rem; text-align: center; font: 500 .75rem/1.4 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.stage > figure:first-child { width: min(100%, 25rem); }
.pdf {
  width: 100%; aspect-ratio: 8.5 / 11; background: #fff; color: #2b2b2b; overflow: hidden;
  padding: 7% 7.5%; border-radius: 2px; border: 1px solid #e3ded3;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .08), 0 30px 60px -20px rgba(21, 49, 59, .35);
  font: 400 clamp(5.2px, 1.5vw, 6.6px)/1.38 var(--font-read); text-align: justify; hyphens: auto; user-select: none;
}
.pdf-top { display: flex; justify-content: space-between; align-items: baseline; border-top: 2.5px solid #c2703d; padding-top: .8em; margin-bottom: 2.4em; font: 700 1.5em/1 var(--font-body); color: #1b1b1b; }
.pdf-top span { font-weight: 500; font-size: .7em; color: #2a6478; }
.pdf h3 { font: 700 3.1em/1.08 var(--font-body); letter-spacing: -.02em; color: #111; margin: 0 0 .9em; text-align: left; }
.pdf .authors { font: 600 1.2em/1.4 var(--font-body); margin-bottom: 1.6em; text-align: left; }
.pdf .abstract { font-weight: 700; font-size: 1.12em; border-block: 1px solid #ccc; padding-block: .9em; margin-bottom: 1.4em; }
.pdf .cols { columns: 2; column-gap: 1.6em; }
.pdf .cols p { margin: 0 0 .6em; text-indent: 1.2em; }
.pdf .fig { break-inside: avoid; margin: .4em 0 .9em; padding: .6em; border: 1px solid #ddd; display: grid; grid-template-columns: repeat(3, 1fr); gap: .5em; }
.pdf .fig i { display: block; height: 5.5em; border-radius: 1px; background: linear-gradient(0deg, #2a6478 0 30%, transparent 30%), linear-gradient(90deg, #f2b45a 0 20%, #b9d7f2 20% 55%, #e7c6d6 55% 100%); opacity: .75; }
.pdf .fig i:nth-child(2) { background: radial-gradient(circle at 30% 40%, #2a6478 0 12%, transparent 13%), radial-gradient(circle at 65% 60%, #c2703d 0 10%, transparent 11%), radial-gradient(circle at 45% 75%, #f2b45a 0 8%, transparent 9%), #f3f6f7; }
.pdf .fig i:nth-child(3) { background: repeating-linear-gradient(90deg, #2a6478 0 10%, transparent 10% 16%) bottom / 100% 70% no-repeat, #f8f6f1; }
.pdf .fig b { grid-column: 1 / -1; font: 600 .95em/1.3 var(--font-body); color: #444; }
.arrow { width: 3rem; height: 3rem; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--border); color: var(--kicker); box-shadow: var(--shadow-1); transform: rotate(90deg); }
.arrow svg { width: 1.25rem; height: 1.25rem; }
.stage .phone { --pw: clamp(14rem, 62vw, 17.5rem); }
@media (min-width: 52rem) {
  .stage { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); }
  .stage > figure:first-child { justify-self: end; }
  .stage > figure:last-child { justify-self: start; }
  .arrow { transform: none; }
  .pdf { font-size: clamp(5.4px, .62vw, 7px); }
}

/* the reading view, drawn in HTML */
.screen.read { background: #fffdf9; color: #1d1d1d; padding: 0 calc(var(--pw) * .06); font-family: var(--font-read); font-size: calc(var(--pw) * .052); line-height: 1.52; text-align: left; }
.read .status { display: flex; justify-content: space-between; align-items: center; padding: calc(var(--pw) * .052) calc(var(--pw) * .05) 0; font: 600 calc(var(--pw) * .042)/1 var(--font-body); }
.read .status i { width: calc(var(--pw) * .1); height: calc(var(--pw) * .04); border-radius: 3px; background: #1d1d1d; }
.read .toolbar { display: flex; justify-content: space-between; margin: calc(var(--pw) * .06) 0 calc(var(--pw) * .05); }
.read .toolbar span { height: calc(var(--pw) * .1); border-radius: 999px; background: #f2f2f0; border: 1px solid #e6e4df; }
.read .toolbar span:first-child { width: calc(var(--pw) * .1); }
.read .toolbar span:last-child { width: calc(var(--pw) * .5); background: linear-gradient(90deg, transparent 12%, #2a6478 12% 17%, transparent 17% 32%, #2a6478 32% 37%, transparent 37% 52%, #2a6478 52% 57%, transparent 57% 72%, #2a6478 72% 77%, transparent 77%) 0 50% / 100% 20% no-repeat, #f2f2f0; }
.read h4 { font: 700 calc(var(--pw) * .068)/1.2 var(--font-body); letter-spacing: -.01em; color: #111; margin: 0 0 .5em; }
.read p { margin: 0 0 .8em; hyphens: auto; }
.read sup { font-size: .62em; color: #2a6478; text-decoration: underline; text-underline-offset: 1px; }
.read mark { background: #f9e3a6; color: inherit; padding: .05em 0; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.read mark.g { background: #cfe8c3; }
.read .figcard { display: flex; gap: .7em; align-items: center; border: 1px solid #e6e4df; border-radius: .7em; padding: .55em; background: #fafaf8; font: 500 .72em/1.35 var(--font-body); color: #555; }
.read .figcard b { display: block; color: #2a6478; }
.read .figcard i { flex: none; width: 2.6em; height: 2.6em; border-radius: .3em; background: linear-gradient(0deg, #2a6478 0 30%, transparent 30%), linear-gradient(90deg, #f2b45a 0 30%, #b9d7f2 30% 65%, #e7c6d6 65%); opacity: .8; }
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .stage .pdf { animation: pdf-away linear both; animation-timeline: view(); animation-range: entry 40% cover 50%; }
    .stage .phone { animation: phone-in linear both; animation-timeline: view(); animation-range: entry 20% cover 45%; }
    .stage .arrow { animation: arrow-in linear both; animation-timeline: view(); animation-range: entry 30% cover 45%; }
    @keyframes pdf-away { from { transform: none; filter: none; } to { transform: perspective(900px) rotateY(10deg) rotateZ(-2deg) scale(.94); filter: saturate(.6); } }
    @keyframes phone-in { from { opacity: .2; transform: translateY(14%) scale(.94); } to { opacity: 1; transform: none; } }
    @keyframes arrow-in { from { opacity: 0; scale: .6; } to { opacity: 1; scale: 1; } }
  }
}
.proof { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin-top: clamp(3rem, 6vw, 4.5rem); border-top: 1px solid var(--hairline); }
.proof div { padding: 1.5rem 1rem 1.5rem 0; border-bottom: 1px solid var(--hairline); }
.proof div:nth-child(even) { padding-left: 1rem; border-left: 1px solid var(--hairline); }
.proof b { display: block; font: 650 clamp(1.75rem, 1.2rem + 1.8vw, 2.5rem)/1 var(--font-display); letter-spacing: -.03em; color: var(--ink); margin-bottom: .5rem; }
.proof span { display: block; font-size: .9375rem; line-height: 1.45; color: var(--muted); }
@media (min-width: 52rem) {
  .proof { grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--hairline); }
  .proof div { border-bottom: 0; padding: 2rem 1.5rem 2rem 0; }
  .proof div + div { padding-left: 1.5rem; border-left: 1px solid var(--hairline); }
}
.proof-note { margin-top: 1.25rem; font-size: .875rem; color: var(--muted); display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; }

/* ---------- works with ---------- */

.works { padding-block: 2rem; border-bottom: 1px solid var(--hairline); }
.works .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 2rem; }
.works p { margin: 0; font: 500 .6875rem/1.3 var(--font-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.works ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; }
.works li { font: 650 1.0625rem/1.2 var(--font-display); letter-spacing: -.01em; color: var(--ink); opacity: .72; }

/* ---------- bento ---------- */

.bento { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; }
.cell {
  position: relative; display: flex; flex-direction: column; overflow: hidden; min-width: 0;
  background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius-lg); box-shadow: var(--shadow-1);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.cell:hover { box-shadow: var(--shadow-1), var(--glow); border-color: rgba(242, 180, 90, .55); }
@media (prefers-reduced-motion: no-preference) { .cell:hover { transform: translateY(-3px); } }
.cell .txt { padding: 1.5rem 1.5rem 1.25rem; }
.cell h3 { font-size: 1.25rem; margin-bottom: .5rem; letter-spacing: -.015em; }
.cell p { color: var(--muted); font-size: .96875rem; line-height: 1.5; margin: 0; }
.cell .kicker { margin-bottom: .75rem; font-size: .6875rem; }
.cell .art { margin-top: auto; position: relative; }
.cell.dark { background: radial-gradient(40rem 24rem at 80% 0%, rgba(56, 128, 152, .55), transparent 60%), linear-gradient(180deg, var(--band), var(--band-3)); border-color: rgba(247, 244, 236, .1); color: var(--band-ink); }
.cell.dark h3 { color: var(--band-ink); }
.cell.dark p { color: var(--band-muted); }
.cell.dark .kicker { color: var(--amber); }
.cell.dark a { color: var(--band-ink); }
.shot-crop { margin: 0 1.5rem; border-radius: .625rem .625rem 0 0; overflow: hidden; border: 1px solid rgba(0, 0, 0, .08); border-bottom: 0; box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .35); background: #fff; }
.shot-crop img { width: 100%; }
.cell.read-cell .art { display: flex; justify-content: center; padding: 0 1.5rem; }
.cell.read-cell .art { flex: 1; align-items: flex-end; }
.cell.read-cell .art .shot-crop { margin: 0; max-width: 28rem; border-radius: 1.75rem 1.75rem 0 0; border: calc(.6rem) solid #1a2023; border-bottom: 0; }

/* vignettes */
.vg { margin: auto 1.5rem 1.5rem; border-radius: .625rem; background: var(--bg-alt); border: 1px solid var(--hairline); padding: 1rem 1.125rem; }
.hl { font: 400 1.0625rem/1.65 var(--font-read); color: var(--ink); }
.hl mark { color: inherit; background: linear-gradient(#f9e3a6, #f9e3a6) no-repeat 0 0 / 100% 100%; padding: .08em 0; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
@media (prefers-color-scheme: dark) { .hl mark { background-image: linear-gradient(rgba(242, 180, 90, .4), rgba(242, 180, 90, .4)); } }
.swatches { display: flex; align-items: center; gap: .5rem; margin-top: .875rem; font: 500 .75rem/1 var(--font-mono); color: var(--muted); letter-spacing: .06em; }
.swatches i { width: 1.125rem; height: 1.125rem; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1); }
.swatches i:nth-child(1) { background: #f6d77a; box-shadow: 0 0 0 2px var(--surface), 0 0 0 3.5px #e0b14a; }
.swatches i:nth-child(2) { background: #a9dc9a; } .swatches i:nth-child(3) { background: #a8cdf0; } .swatches i:nth-child(4) { background: #f3b4c9; }
.swatches span { margin-left: auto; }
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .hl mark { animation: mark-draw linear both; animation-timeline: view(); animation-range: entry 40% entry 100%; }
    @keyframes mark-draw { from { background-size: 0% 100%; } to { background-size: 100% 100%; } }
  }
}
.summary { border-left: 3px solid var(--amber); }
.summary b { display: flex; align-items: center; gap: .375rem; font: 600 .75rem/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--kicker); margin-bottom: .625rem; }
.summary p { color: var(--ink); font-size: .9375rem; }
.summary small { display: block; margin-top: .625rem; color: var(--muted); font-size: .75rem; }
.wave { display: flex; align-items: center; gap: .875rem; }
.wave .play { flex: none; width: 2.5rem; height: 2.5rem; border-radius: 50%; display: grid; place-items: center; background: var(--teal); color: #fff; }
@media (prefers-color-scheme: dark) { .wave .play { background: #8ac6d6; color: #0f1e23; } }
.wave .play svg { width: 1rem; height: 1rem; }
.bars { flex: 1; display: flex; align-items: center; gap: 3px; height: 2.75rem; }
.bars i { flex: 1; border-radius: 2px; background: var(--link); opacity: .75; height: var(--h, 40%); transform-origin: center; }
.bars i:nth-child(n+14) { background: var(--border); opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .bars i { animation: wave 1.6s ease-in-out infinite alternate; animation-delay: calc(var(--d, 0) * -0.23s); }
  @keyframes wave { from { transform: scaleY(.55); } to { transform: scaleY(1); } }
}
.wave-line { margin-top: .75rem; font: 400 .9375rem/1.5 var(--font-read); color: var(--muted); }
.wave-line mark { background: rgba(138, 198, 214, .35); color: var(--ink); padding: .05em 0; }
.sync { display: grid; gap: .625rem; font-size: .875rem; }
.sync .store { display: flex; align-items: center; gap: .625rem; padding: .625rem .75rem; border-radius: .5rem; background: var(--surface); border: 1px solid var(--hairline); }
.sync .store svg { width: 1.25rem; height: 1.25rem; color: var(--kicker); flex: none; }
.sync .store b { display: block; font-weight: 650; line-height: 1.2; }
.sync .store small { display: block; color: var(--muted); font-size: .8125rem; line-height: 1.3; }
.sync .bridge { display: flex; align-items: center; gap: .5rem; font: 500 .6875rem/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding-left: .75rem; }
.sync .bridge::before { content: ""; width: 1px; height: 1.25rem; background: repeating-linear-gradient(180deg, var(--kicker) 0 3px, transparent 3px 6px); margin-left: .5625rem; margin-right: .5rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; padding: 0 1.5rem 1.5rem; }
.chips code { background: rgba(247, 244, 236, .07); border-color: rgba(247, 244, 236, .16); color: var(--band-ink); font-size: .8125rem; padding: .375rem .625rem; }
.agent-log { margin: 0 1.5rem 1.5rem; border-radius: .625rem; border: 1px solid rgba(247, 244, 236, .14); background: rgba(5, 20, 26, .45); font: .8125rem/1.7 var(--font-mono); color: var(--band-muted); padding: 1rem 1.125rem; }
.agent-log span { color: var(--amber); }
.agent-log em { font-style: normal; color: var(--band-ink); }
@media (min-width: 44rem) {
  .bento { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .bento > * { grid-column: span 3; }
  .bento .c-read, .bento .c-cite, .bento .c-agents { grid-column: span 6; }
}
@media (min-width: 64rem) {
  .bento { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 1.25rem; }
  .bento .c-read { grid-column: span 7; grid-row: span 2; }
  .bento .c-hl, .bento .c-ai { grid-column: span 5; }
  .bento .c-cite { grid-column: span 8; }
  .bento .c-listen { grid-column: span 4; }
  .bento .c-sync, .bento .c-new, .bento .c-ext { grid-column: span 4; }
  .bento .c-agents { grid-column: span 12; flex-direction: row; align-items: stretch; }
  .bento .c-agents > * { flex: 1; }
  .bento .c-agents .agent-side { padding-top: 1.5rem; }
}
.cite-art { display: flex; gap: 1rem; padding: 0 1.5rem; align-items: flex-end; }
.cite-art .shot-crop { margin: 0; flex: 1; }
.styles { display: flex; flex-wrap: wrap; gap: .375rem; padding: 0 1.5rem 1rem; }
.styles span { font: 500 .75rem/1 var(--font-mono); padding: .375rem .5rem; border-radius: 999px; border: 1px solid var(--hairline); color: var(--muted); background: var(--bg-alt); }
.styles span:first-child { color: var(--ink); border-color: var(--amber); background: rgba(242, 180, 90, .14); }

/* ---------- platforms ---------- */

.plats { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; }
@media (min-width: 44rem) { .plats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 72rem) { .plats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.plat { display: flex; flex-direction: column; gap: .75rem; padding: 1.5rem; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--hairline); box-shadow: var(--shadow-1); transition: box-shadow .3s var(--ease), border-color .3s; }
.plat:hover { box-shadow: var(--shadow-1), var(--glow); border-color: rgba(242, 180, 90, .55); }
.plat .glyph { width: 3rem; height: 3rem; border-radius: .625rem; display: grid; place-items: center; background: var(--bg-alt); border: 1px solid var(--hairline); color: var(--link); margin-bottom: .25rem; }
.plat .glyph svg { width: 1.625rem; height: 1.625rem; }
.plat h3 { font-size: 1.25rem; }
.plat .sync-tag { font: 500 .6875rem/1.3 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--kicker); }
.plat p { color: var(--muted); font-size: .9375rem; line-height: 1.5; margin: 0; }
.plat .btn { margin-top: auto; justify-content: center; }
.plat .small { font-size: .8125rem; text-align: center; }
.compare { margin-top: 2rem; border: 1px solid var(--hairline); border-radius: var(--radius-lg); background: var(--surface); }
.compare summary { cursor: pointer; padding: 1.125rem 1.5rem; font-weight: 600; display: flex; align-items: center; justify-content: space-between; gap: 1rem; list-style: none; }
.compare summary::-webkit-details-marker { display: none; }
.compare summary::after { content: "+"; font: 400 1.5rem/1 var(--font-body); color: var(--kicker); transition: transform .2s; }
.compare[open] summary::after { transform: rotate(45deg); }
.compare .table-scroll { border: 0; border-top: 1px solid var(--hairline); border-radius: 0 0 var(--radius-lg) var(--radius-lg); box-shadow: none; }
.compare .footnote { padding: 0 1.5rem 1.5rem; margin: 1rem 0 0; }

.table-scroll { overflow-x: auto; border: 1px solid var(--hairline); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-1); }
.platforms { width: 100%; min-width: 40rem; border-collapse: collapse; font-size: .9375rem; }
.platforms th, .platforms td { padding: .75rem 1rem; border-bottom: 1px solid var(--hairline); text-align: center; vertical-align: middle; }
.platforms thead th { font: 500 .6875rem/1.3 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); background: var(--bg-alt); }
.platforms thead th:first-child, .platforms tbody th { text-align: left; }
.platforms tbody th { font-weight: 500; color: var(--ink); position: sticky; left: 0; background: var(--surface); }
.platforms tbody tr:last-child > * { border-bottom: 0; }
.platforms td { color: var(--muted); }
.platforms .yes svg { width: 1.125rem; height: 1.125rem; margin: 0 auto; color: var(--check); }
.platforms .no { color: var(--border); }
.platforms td small { display: block; font-size: .8125rem; line-height: 1.35; }
.platforms tr.group th { background: var(--bg-alt); font: 600 .8125rem/1.3 var(--font-body); color: var(--ink); padding-block: .625rem; }
.footnote { margin-top: 1rem; font-size: .875rem; color: var(--muted); max-width: 52rem; }

/* ---------- privacy, open source ---------- */

.pillars { display: grid; grid-template-columns: minmax(0, 1fr); border-top: 1px solid var(--border); }
.pillars > div { padding: 1.75rem 0; border-bottom: 1px solid var(--hairline); }
.pillars h3 { font-size: 1.25rem; margin-bottom: .5rem; display: flex; align-items: center; gap: .625rem; }
.pillars h3 svg { width: 1.25rem; height: 1.25rem; color: var(--kicker); }
.pillars p { color: var(--muted); font-size: 1rem; }
@media (min-width: 48rem) {
  .pillars { grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--hairline); }
  .pillars > div { border-bottom: 0; padding: 2rem 2rem 2rem 0; }
  .pillars > div + div { padding-left: 2rem; border-left: 1px solid var(--hairline); }
}
.split { display: grid; gap: 2rem; align-items: end; }
@media (min-width: 56rem) { .split { grid-template-columns: minmax(0, 1fr) auto; gap: 4rem; } }
.split h2 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.25rem); letter-spacing: -.03em; margin-bottom: 1.25rem; }
.split .actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- closing band, footer ---------- */

.closing { position: relative; overflow: hidden; isolation: isolate; text-align: center; padding-block: clamp(4.5rem, 10vw, 7rem); background: linear-gradient(180deg, var(--band), var(--band-3)); color: var(--band-ink); }
.closing::before { content: ""; position: absolute; inset: 20% -10% -60%; z-index: -1; background: radial-gradient(closest-side, rgba(56, 128, 152, .8), transparent), radial-gradient(closest-side at 70% 60%, rgba(242, 180, 90, .14), transparent); pointer-events: none; }
.closing h2 { color: var(--band-ink); font-size: clamp(2.5rem, 1.4rem + 4.4vw, 4.5rem); letter-spacing: -.04em; margin-bottom: 1rem; }
.closing p { color: var(--band-muted); margin-inline: auto; max-width: 34rem; margin-bottom: 2rem; }
.closing .cta-row { justify-content: center; }

.site-footer { background: #0e2b35; color: var(--band-muted); font-size: .9375rem; }
@media (prefers-color-scheme: dark) { .site-footer { background: #091d24; } }
.site-footer a { color: var(--band-ink); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-decoration-color: var(--amber); }
.footer-grid { display: grid; gap: 2.5rem 2rem; grid-template-columns: repeat(2, minmax(0, 1fr)); padding-block: 4rem 3rem; }
.footer-grid .about { grid-column: 1 / -1; max-width: 22rem; }
.footer-grid .about p { margin-top: 1rem; }
.footer-grid h2 { font: 500 .6875rem/1.3 var(--font-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--amber); margin-bottom: 1rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: .625rem; }
@media (min-width: 56rem) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } .footer-grid .about { grid-column: auto; } }
.footer-bottom { background: linear-gradient(var(--band-hairline), var(--band-hairline)) 50% 0 / calc(100% - 2 * var(--gutter)) 1px no-repeat; padding-block: 1.5rem 2rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; font-size: .8125rem; }

/* ---------- document pages (getting started, privacy, support, download) ---------- */

.page-head { position: relative; overflow: hidden; isolation: isolate; padding-block: calc(var(--header) + clamp(2.5rem, 6vw, 4.5rem)) clamp(2.5rem, 6vw, 4rem); background: linear-gradient(180deg, var(--band), var(--band-3)); }
.page-head::before { content: ""; position: absolute; inset: -40% -10% 0 30%; z-index: -1; background: radial-gradient(closest-side, rgba(56, 128, 152, .6), transparent); pointer-events: none; }
.page-head h1 { color: var(--band-ink); font-size: clamp(2.25rem, 1.5rem + 3vw, 3.5rem); letter-spacing: -.035em; margin-bottom: 1rem; }
.page-head .kicker { color: var(--amber); }
.page-head p { color: var(--band-muted); max-width: 44rem; font-size: 1.0625rem; }
.doc-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem; padding-block: clamp(2.5rem, 6vw, 4.5rem) var(--section); }
.doc-layout > * { min-width: 0; }
@media (min-width: 64rem) { .doc-layout { grid-template-columns: 14rem minmax(0, 1fr); gap: 4rem; } }
.toc { font-size: .9375rem; }
.toc h2 { font: 500 .6875rem/1.3 var(--font-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: .75rem; }
.toc ol, .toc ul { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--hairline); }
.toc li a { display: block; padding: .3125rem 0 .3125rem 1rem; color: var(--muted); text-decoration: none; margin-left: -1px; border-left: 1px solid transparent; }
.toc li a:hover { color: var(--ink); border-left-color: var(--amber); }
@media (min-width: 64rem) { .toc nav { position: sticky; top: calc(var(--header) + 2rem); } }
.prose { max-width: 42rem; overflow-wrap: break-word; }
.prose h2 { font-size: clamp(1.5rem, 1.25rem + 1vw, 1.875rem); margin: 3.5rem 0 1rem; padding-top: 2rem; border-top: 1px solid var(--hairline); }
.prose > h2:first-child, .prose > section:first-child > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose h3 { font-size: 1.1875rem; margin: 2rem 0 .625rem; }
.prose p, .prose li { color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.25rem; margin: 0 0 1.25rem; }
.prose li { margin-bottom: .5rem; }
.prose li::marker { color: var(--kicker); }
.prose .muted { color: var(--muted); }
.prose table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.prose .table-scroll { margin: 1.5rem 0; }
.prose .table-scroll table { min-width: 34rem; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: .75rem 1rem; border-bottom: 1px solid var(--hairline); }
.prose thead th { font: 500 .6875rem/1.3 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); background: var(--bg-alt); }
.prose tbody tr:last-child > * { border-bottom: 0; }
@media (min-width: 64rem) {
  .c-listen .vg { margin-block: auto; padding-block: 1.75rem; }
  .c-listen .bars { height: 4.5rem; }
  .c-listen .wave-line { font-size: 1.0625rem; margin-top: 1.25rem; }
}

/* ---------- bring your library ---------- */

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; counter-reset: none; }
@media (min-width: 64rem) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; } }
.step { position: relative; display: flex; flex-direction: column; padding: 1.75rem 1.5rem 1.5rem; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--hairline); box-shadow: var(--shadow-1); transition: box-shadow .3s var(--ease), border-color .3s; }
.step:hover { box-shadow: var(--shadow-1), var(--glow); border-color: rgba(242, 180, 90, .55); }
.step .num { font: 700 2.75rem/1 var(--font-display); letter-spacing: -.04em; color: transparent; -webkit-text-stroke: 1.25px var(--kicker); margin-bottom: 1.25rem; }
.step h3 { font-size: 1.3125rem; margin-bottom: .5rem; }
.step > p { color: var(--muted); font-size: .96875rem; margin-bottom: 1.25rem; }
.step b { font-weight: 600; color: var(--ink); }
.sources { margin: 0; display: grid; gap: 0; border-top: 1px solid var(--hairline); }
.sources > div { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: .75rem; padding: .75rem 0; border-bottom: 1px solid var(--hairline); font-size: .9063rem; line-height: 1.45; }
.sources dt { font: 600 .6875rem/1.9 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--kicker); }
.sources dd { margin: 0; color: var(--muted); }
.step .fine { margin: .875rem 0 0; font-size: .8125rem; color: var(--muted); }
.ticks { list-style: none; margin: 0 0 1.25rem; padding: 0; }
.ticks li { position: relative; padding-left: 1.75rem; margin-bottom: .625rem; color: var(--muted); font-size: .96875rem; line-height: 1.5; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .2em; width: 1.125rem; height: 1.125rem; border-radius: 50%; background: rgba(242, 180, 90, .22); }
.ticks li::after { content: ""; position: absolute; left: .375rem; top: .42em; width: .3125rem; height: .5625rem; border: solid var(--kicker); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.import-mock { margin-top: auto; border-radius: .625rem; background: var(--bg-alt); border: 1px solid var(--hairline); padding: 1rem 1.125rem; font-size: .875rem; }
.im-row { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: .625rem; }
.im-row span { color: var(--muted); }
.im-bar { height: .375rem; border-radius: 999px; background: var(--hairline); overflow: hidden; margin-bottom: .75rem; }
.im-bar i { display: block; height: 100%; width: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--teal), var(--amber)); }
.import-mock p { margin: 0; color: var(--ink); line-height: 1.45; }
.import-mock .im-sub { margin-top: .5rem; color: var(--muted); font: 500 .75rem/1.3 var(--font-mono); letter-spacing: .04em; display: flex; align-items: center; gap: .5rem; }
.spin { width: .75rem; height: .75rem; border-radius: 50%; border: 2px solid var(--hairline); border-top-color: var(--kicker); flex: none; }
@media (prefers-reduced-motion: no-preference) {
  .spin { animation: spin 1s linear infinite; }
  @keyframes spin { to { transform: rotate(360deg); } }
  @supports (animation-timeline: view()) {
    .im-bar i { animation: fill linear both; animation-timeline: view(); animation-range: entry 50% cover 45%; }
    @keyframes fill { from { width: 4%; } to { width: 100%; } }
  }
}
.switch-foot { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; margin-top: 1rem; }
@media (min-width: 64rem) { .switch-foot { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 1.25rem; } }
.latex { padding: 1.75rem 1.5rem; border-radius: var(--radius-lg); color: var(--band-ink); background: radial-gradient(36rem 20rem at 90% 0%, rgba(56, 128, 152, .55), transparent 60%), linear-gradient(180deg, var(--band), var(--band-3)); border: 1px solid rgba(247, 244, 236, .1); }
.latex .kicker { color: var(--amber); }
.latex h3 { color: var(--band-ink); font-size: clamp(1.375rem, 1.1rem + 1vw, 1.75rem); margin-bottom: .75rem; }
.latex p { color: var(--band-muted); max-width: 46rem; }
.latex b { color: var(--band-ink); font-weight: 600; }
.latex code { background: rgba(247, 244, 236, .08); border-color: rgba(247, 244, 236, .18); color: var(--band-ink); }
.caveat { padding: 1.75rem 1.5rem; border-radius: var(--radius-lg); border: 1px dashed var(--border); background: transparent; display: flex; flex-direction: column; }
.caveat h3 { font-size: 1.125rem; margin-bottom: .5rem; }
.caveat p { color: var(--muted); font-size: .9375rem; }
.caveat .textlink { margin-top: auto; padding-top: 1rem; }
#switch .section-head { max-width: 56rem; }

/* ---------- screenshots shown whole, with a visible edge in both schemes ---------- */
.shot-crop, .cell.read-cell .art .shot-crop { margin: 0 1.5rem 1.5rem; border: 1px solid rgba(21, 49, 59, .14); border-radius: .75rem; box-shadow: 0 1px 2px rgba(0, 0, 0, .08), 0 18px 36px -18px rgba(0, 0, 0, .35); background: #fff; overflow: hidden; }
.cell.dark .shot-crop, .cell.read-cell .art .shot-crop { border-color: rgba(247, 244, 236, .28); }
@media (prefers-color-scheme: dark) { .shot-crop { border-color: rgba(247, 244, 236, .22); } }
.shot-crop img { display: block; width: 100%; height: auto; }
.cell.read-cell .art { display: flex; justify-content: center; align-items: flex-end; padding: 0; }
.cell.read-cell .art .shot-crop { width: min(calc(100% - 3rem), 28rem); max-width: none; }
.shot-crop.narrow { max-width: 19rem; margin-inline: auto; }
.cite-art { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; padding: 0 1.5rem 1.5rem; align-items: start; }
.cite-art .shot-crop { margin: 0; }
.cite-art .panel { width: min(100%, 18rem); justify-self: center; }
@media (min-width: 40rem) { .cite-art { grid-template-columns: minmax(0, 1fr) 15rem; } .cite-art .panel { width: 100%; } }
.doc-mock { border: 1px solid rgba(21, 49, 59, .14); border-radius: .75rem; overflow: hidden; background: #fff; color: #222; box-shadow: 0 18px 36px -18px rgba(0, 0, 0, .35); }
@media (prefers-color-scheme: dark) { .doc-mock { border-color: rgba(247, 244, 236, .22); } }
.doc-bar { display: flex; align-items: center; gap: .375rem; height: 2rem; padding: 0 .75rem; background: #f1f3f4; border-bottom: 1px solid #e0e0e0; }
.doc-bar i { width: .5625rem; height: .5625rem; border-radius: 50%; background: #c9cdd0; }
.doc-bar span { margin-left: .5rem; font: 500 .75rem/1 var(--font-body); color: #555; }
.doc-page { padding: 1.5rem 1.5rem 1.75rem; font: 400 .9375rem/1.55 Arial, Helvetica, sans-serif; }
.doc-page p { margin: 0 0 1.25rem; }
.doc-page sup { font-size: .7em; }
.doc-page ol { margin: 0; padding-left: 1.25rem; font-size: .8438rem; line-height: 1.5; }
.doc-page li { margin-bottom: .5rem; }

/* hero devices on small screens: whole, never a sliver off the edge */
@media (max-width: 61.99rem) {
  .hero-art { width: min(100%, 36rem); padding: 0 0 3rem; display: flex; align-items: flex-end; justify-content: center; gap: 4%; }
  .hero-art .tablet { --tw: min(22rem, 56vw); width: var(--tw); margin: 0; }
  .hero-art .phone { position: static; --pw: min(10.5rem, 27vw); width: var(--pw); }
}
@media (max-width: 29.99rem) {
  .hero-art .tablet { display: none; }
  .hero-art .phone { --pw: min(15rem, 70vw); }
}
.cell .doc-page p { color: #222; font-size: .9375rem; line-height: 1.55; }
.cell.read-cell .art .shot-crop { width: min(calc(100% - 3rem), 30rem); }
