/* Shared theme for the meliharik.dev app sites.
   Dark by default. The inline head script sets [data-theme] before paint
   (saved choice, else the system preference). build.py injects the per-app
   accent as --accent-d / --accent-l (contrast-adjusted for text) and
   --glow (r, g, b of the raw accent). */

@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/outfit-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/outfit-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --font: "Outfit", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --maxw: 1120px;
  --gutter: clamp(16px, 5vw, 48px);
  --radius: 24px;
  --nav-h: 64px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  --bg: #0a0a0a;
  --bg-2: #111111;
  --card: #141414;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .13);
  --text: #f5f5f5;
  --text-2: #a3a3a3;
  --text-3: #7d7d7d;
  --nav-bg: rgba(22, 22, 22, .72);
  --panel-bg: rgba(20, 20, 20, .97);
  --btn-bg: #f5f5f5;
  --btn-text: #0a0a0a;
  --inv-bg: #f5f5f5;
  --inv-text: #0a0a0a;
  --inv-text-2: #525252;
  --accent: var(--accent-d, #5b8cff);
  --glow-a: .2;
  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: #fafafa;
  --bg-2: #f1f1f1;
  --card: #ffffff;
  --line: rgba(0, 0, 0, .08);
  --line-2: rgba(0, 0, 0, .13);
  --text: #0a0a0a;
  --text-2: #525252;
  --text-3: #8a8a8a;
  --nav-bg: rgba(255, 255, 255, .74);
  --panel-bg: rgba(255, 255, 255, .97);
  --btn-bg: #0a0a0a;
  --btn-text: #ffffff;
  --inv-bg: #0a0a0a;
  --inv-text: #f5f5f5;
  --inv-text-2: #a3a3a3;
  --accent: var(--accent-l, #0a5bd8);
  --glow-a: .12;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 104px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: rgba(var(--glow), .35); }

.skip {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--btn-bg); color: var(--btn-text);
  padding: 10px 18px; border-radius: 999px; font-weight: 600; text-decoration: none;
}
.skip:focus { top: 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: 100%; max-width: calc(var(--maxw) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- type ---------- */
.eyebrow {
  font-size: .8125rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--text-2); margin-bottom: 20px;
}
.display {
  font-size: clamp(3rem, 7.4vw, 6.5rem);
  font-weight: 800;
  line-height: .95;
  letter-spacing: -.045em;
  text-wrap: balance;
}
.display-sm { font-size: clamp(2.75rem, 6.2vw, 5.25rem); }
.h2 {
  font-size: clamp(2.4rem, 5.4vw, 4.5rem);
  font-weight: 760;
  line-height: .98;
  letter-spacing: -.042em;
  text-wrap: balance;
}
.h-line { display: block; }
.h-line + .h-line { color: var(--text-3); }
.h3 { font-size: 1.375rem; font-weight: 650; letter-spacing: -.02em; line-height: 1.2; }
.lead { font-size: clamp(1.125rem, 1.7vw, 1.3125rem); line-height: 1.55; color: var(--text-2); max-width: 32em; margin-top: 28px; text-wrap: pretty; }
.body-lg { font-size: clamp(1.0625rem, 1.4vw, 1.1875rem); line-height: 1.6; color: var(--text-2); text-wrap: pretty; }
.body { color: var(--text-2); }
.body a, .body-lg a, .lead a, .qa-body a { color: var(--text); text-decoration: underline; text-decoration-color: var(--line-2); }
.body a:hover, .body-lg a:hover, .lead a:hover, .qa-body a:hover { text-decoration-color: currentColor; }

.text-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 600; color: var(--text); text-decoration: none; letter-spacing: -.005em;
}
.text-link svg { transition: transform .2s var(--ease); }
.text-link:hover svg { transform: translateX(3px); }

/* ---------- nav ---------- */
.nav-wrap {
  position: fixed; inset: 12px 0 auto; z-index: 50;
  padding-inline: 12px; pointer-events: none;
}
.nav {
  pointer-events: auto;
  position: relative;
  max-width: 1080px; margin-inline: auto;
  height: var(--nav-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px;
  padding: 0 11px 0 18px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--nav-bg);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  backdrop-filter: saturate(160%) blur(18px);
}
.brand {
  display: inline-flex; align-items: center; gap: 10px; justify-self: start; min-width: 0;
  color: var(--text); font-weight: 700; font-size: 1.125rem; letter-spacing: -.02em; text-decoration: none;
}
.brand img { width: 30px; height: 30px; border-radius: 22.5%; flex: none; box-shadow: 0 0 0 1px var(--line); }
.brand span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-links { display: flex; gap: 2px; }
.nav-links a, .nav-panel a {
  display: block; color: var(--text); font-size: .9688rem; font-weight: 500; text-decoration: none;
  padding: 8px 14px; border-radius: 999px; opacity: .78; transition: opacity .2s, background-color .2s;
}
.nav-links a:hover { opacity: 1; background: var(--line); }
.nav-actions { display: flex; align-items: center; gap: 8px; justify-self: end; }
.icon-btn {
  width: 42px; height: 42px; border-radius: 999px; padding: 0;
  border: 1px solid var(--line-2);
  display: inline-grid; place-items: center;
  background: transparent; color: var(--text); cursor: pointer;
  transition: background-color .2s;
}
.icon-btn:hover { background: var(--line); }
.icon-btn svg { width: 18px; height: 18px; }
:root[data-theme="light"] .i-sun, :root:not([data-theme="light"]) .i-moon { display: none; }
.menu-btn { display: none; }
.menu-btn path { transition: transform .25s var(--ease); transform-origin: 12px 12px; }
.menu-btn[aria-expanded="true"] .l1 { transform: translateY(3.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .l2 { transform: translateY(-3.5px) rotate(-45deg); }
.pill {
  display: inline-flex; align-items: center; justify-content: center;
  height: 42px; padding: 0 20px; border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-text);
  font-weight: 600; font-size: .9688rem; letter-spacing: -.01em; white-space: nowrap; text-decoration: none;
  transition: transform .2s var(--ease), opacity .2s;
}
.pill:hover { opacity: .88; }
.pill:active { transform: scale(.97); }
.pill-lg { height: 50px; padding: 0 26px; font-size: 1rem; }
.pill-ghost { background: transparent; color: var(--text); border: 1px solid var(--line-2); }
.pill-ghost:hover { background: var(--line); opacity: 1; }
.nav-panel {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0;
  padding: 8px; border-radius: 26px;
  border: 1px solid var(--line-2); background: var(--panel-bg);
  box-shadow: 0 24px 48px -24px rgba(0, 0, 0, .5);
  -webkit-backdrop-filter: saturate(160%) blur(18px); backdrop-filter: saturate(160%) blur(18px);
}
.nav-panel[hidden] { display: none; }
.nav-panel a { font-size: 1.125rem; padding: 13px 16px; border-radius: 18px; opacity: 1; }
.nav-panel a:hover { background: var(--line); }

@media (max-width: 900px) {
  .nav { grid-template-columns: 1fr auto; padding-left: 14px; }
  .nav-links { display: none; }
  .menu-btn { display: inline-grid; }
}
@media (min-width: 901px) { .nav-panel { display: none !important; } }
@media (max-width: 460px) {
  :root { --nav-h: 58px; }
  .nav-wrap { inset: 10px 0 auto; padding-inline: 10px; }
  .nav { padding: 0 8px 0 12px; gap: 6px; }
  .nav-actions { gap: 5px; }
  .icon-btn { width: 38px; height: 38px; }
  .pill { height: 38px; padding: 0 15px; }
  .pill-long { display: none; }
  .pill-lg { height: 48px; padding: 0 24px; }
  .brand { font-size: 1.0625rem; gap: 9px; }
  .brand img { width: 28px; height: 28px; }
}

/* ---------- App Store badge ---------- */
.badge { display: inline-block; border-radius: 9px; line-height: 0; transition: opacity .2s; }
.badge img { height: 52px; width: auto; }
.badge:hover { opacity: .85; }

/* ---------- hero ---------- */
.hero { padding: calc(var(--nav-h) + clamp(64px, 8vw, 112px)) 0 clamp(64px, 8vw, 112px); }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  align-items: center; gap: clamp(32px, 5vw, 72px);
}
.hero-cta { margin-top: 40px; }
.hero-more { margin-top: 28px; }
.hero-note { margin-top: 18px; font-size: .9375rem; color: var(--text-3); }
.hero-media { position: relative; display: flex; justify-content: center; }
.glow {
  position: absolute; left: 50%; top: 50%; width: min(160%, 100vw); aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(var(--glow), var(--glow-a)), rgba(var(--glow), 0));
  pointer-events: none; z-index: 0;
}

/* ---------- device (CSS iPhone) ---------- */
.device {
  --w: 300px;
  position: relative; z-index: 1; flex: none;
  width: var(--w); aspect-ratio: 1 / 2.063;
  border-radius: calc(var(--w) * .17);
  background: #070707;
  box-shadow:
    inset 0 0 0 calc(var(--w) * .0045) #5a5a5e,
    inset 0 0 0 calc(var(--w) * .011) #2a2a2d,
    inset 0 0 0 calc(var(--w) * .016) #0c0c0d,
    0 0 0 1px rgba(0, 0, 0, .5),
    0 30px 60px -36px rgba(0, 0, 0, .7);
}
:root[data-theme="light"] .device { box-shadow: inset 0 0 0 calc(var(--w) * .0045) #6a6a6e, inset 0 0 0 calc(var(--w) * .011) #2a2a2d, inset 0 0 0 calc(var(--w) * .016) #0c0c0d, 0 0 0 1px rgba(0, 0, 0, .12), 0 30px 60px -36px rgba(0, 0, 0, .45); }
.device-btn { position: absolute; width: calc(var(--w) * .012); background: #2b2b2e; border-radius: 2px; }
.device-btn.b-action { left: calc(var(--w) * -.009); top: 17%; height: 4.5%; }
.device-btn.b-up { left: calc(var(--w) * -.009); top: 25%; height: 8.5%; }
.device-btn.b-down { left: calc(var(--w) * -.009); top: 35.5%; height: 8.5%; }
.device-btn.b-power { right: calc(var(--w) * -.009); top: 28%; height: 13%; }
.device-screen {
  position: absolute; inset: calc(var(--w) * .045);
  border-radius: calc(var(--w) * .13);
  overflow: hidden; background: #000;
  transform: translateZ(0);
}
.device-screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.device-island {
  position: absolute; left: 50%; transform: translateX(-50%);
  top: calc(var(--w) * .067); width: calc(var(--w) * .294); height: calc(var(--w) * .098);
  border-radius: 999px; background: #000;
}
.device-lg { --w: clamp(260px, 25vw, 330px); }
.device-md { --w: clamp(250px, 23vw, 300px); }

.poster { position: relative; z-index: 1; flex: none; width: clamp(240px, 26vw, 330px); border-radius: clamp(20px, 2vw, 30px); overflow: hidden; box-shadow: 0 0 0 1px var(--line-2); background: var(--bg-2); }
.poster img { width: 100%; height: auto; }

/* ---------- sections ---------- */
.hero, .features, .section, .page-hero { overflow-x: clip; }
.section { padding: clamp(80px, 11vw, 148px) 0; }
.band { background: var(--bg-2); border-block: 1px solid var(--line); }
.section-head { max-width: 46rem; margin-bottom: clamp(48px, 6vw, 80px); }
.section-head .body-lg { margin-top: 24px; max-width: 36rem; }

/* features */
.features { padding-block: clamp(24px, 4vw, 48px); }
.feature { padding: clamp(64px, 9vw, 120px) 0; }
.feature-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center; gap: clamp(40px, 7vw, 112px);
}
.feature-copy { max-width: 30rem; }
.feature-copy .body-lg { margin-top: 26px; }
.feature-title { font-size: clamp(2.25rem, 4.4vw, 3.75rem); }
.feature-media { display: flex; justify-content: center; position: relative; }
.feature-media .glow { width: min(130%, 100vw); opacity: .7; }
.feature.flip .feature-copy { order: 2; }
.feature.flip .feature-media { order: 1; }
.feature-copy.center { margin-inline: auto; text-align: center; max-width: 40rem; }
.feature-copy.center .body-lg { margin-inline: auto; max-width: 34rem; }
.wordlist {
  margin: clamp(44px, 6vw, 72px) auto 0; max-width: 62rem;
  text-align: center; text-wrap: balance; word-spacing: .22em;
  font-size: clamp(1.9rem, 4.8vw, 4rem); font-weight: 760; letter-spacing: -.04em; line-height: 1.14;
}
.wordlist li { display: inline; word-spacing: normal; white-space: nowrap; color: var(--text); }
.wordlist li:nth-child(even) { color: var(--text-3); }
.feature-plain { padding-block: clamp(48px, 7vw, 96px); }
.plain-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 112px); align-items: end; border-top: 1px solid var(--line-2); padding-top: clamp(40px, 5vw, 64px); }
.plain-grid .body-lg { max-width: 32rem; }

/* 2-3 overlapping cards (e.g. document renders) */
.stack { position: relative; z-index: 1; display: grid; place-items: center; width: 100%; }
.stack > * { grid-area: 1 / 1; }
.stack .poster { width: clamp(200px, 19vw, 260px); box-shadow: 0 0 0 1px var(--line-2), 0 24px 48px -28px rgba(0, 0, 0, .55); }
.stack-3 > :nth-child(1) { transform: translateX(-56%) scale(.86); }
.stack-3 > :nth-child(2) { z-index: 2; }
.stack-3 > :nth-child(3) { transform: translateX(56%) scale(.86); }
.stack-2 > :nth-child(1) { transform: translateX(-30%) scale(.92); }
.stack-2 > :nth-child(2) { transform: translateX(30%); z-index: 2; }
.see-all { display: flex; justify-content: flex-end; padding-bottom: clamp(16px, 3vw, 32px); }

/* steps */
.steps { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: clamp(28px, 3.4vw, 48px); }
.step { border-top: 1px solid var(--line-2); padding-top: 28px; }
.step-n { display: block; font-size: .875rem; font-weight: 600; color: var(--accent); letter-spacing: .14em; margin-bottom: 44px; font-variant-numeric: tabular-nums; }
.step h3 { font-size: clamp(1.5rem, 2.2vw, 1.875rem); font-weight: 700; letter-spacing: -.03em; line-height: 1.12; margin-bottom: 12px; }
.step p { color: var(--text-2); }

/* highlight cards */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.card { border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--card); padding: clamp(24px, 2.4vw, 30px); }
.cards .card h3 { font-size: 1.25rem; font-weight: 650; letter-spacing: -.02em; line-height: 1.25; margin-bottom: 8px; }
.cards .card p { color: var(--text-2); font-size: 1rem; line-height: 1.55; }
.card-icon { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line-2); display: grid; place-items: center; margin-bottom: 26px; color: var(--text); }
.card-icon svg { width: 20px; height: 20px; }

/* pricing */
.pricing-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.pricing-summary { font-size: clamp(1.4rem, 2.2vw, 1.875rem); line-height: 1.3; letter-spacing: -.025em; font-weight: 550; color: var(--text); text-wrap: pretty; }
.lines { margin-top: 28px; border-top: 1px solid var(--line-2); }
.lines li { padding: 16px 0; border-bottom: 1px solid var(--line-2); color: var(--text-2); }
.fine { margin-top: 28px; font-size: .9688rem; }

/* faq */
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.faq-head { position: sticky; top: 112px; }
.faq-head .body { margin-top: 28px; max-width: 22rem; }
.faq-list { border-top: 1px solid var(--line-2); }
.qa { border-bottom: 1px solid var(--line-2); }
.qa summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 26px 0; font-size: clamp(1.0625rem, 1.5vw, 1.1875rem); font-weight: 600; letter-spacing: -.012em; line-height: 1.35;
}
.qa summary::-webkit-details-marker { display: none; }
.qa-icon { position: relative; flex: none; width: 14px; height: 14px; }
.qa-icon::before, .qa-icon::after { content: ""; position: absolute; left: 0; top: 50%; width: 14px; height: 1.6px; margin-top: -.8px; background: var(--text); border-radius: 1px; }
.qa-icon::after { transform: rotate(90deg); transition: transform .3s var(--ease); }
.qa[open] .qa-icon::after { transform: rotate(0deg); }
.qa-body { padding: 0 44px 28px 0; color: var(--text-2); }
.qa-body p + p { margin-top: 12px; }

/* closing CTA: an inverted band */
.cta { background: var(--inv-bg); color: var(--inv-text); text-align: center; padding: clamp(80px, 10vw, 128px) 0; }
.cta .h2 .h-line + .h-line { color: var(--inv-text-2); }
.cta-icon { width: 88px; height: 88px; border-radius: 22.5%; margin: 0 auto 36px; box-shadow: 0 0 0 1px rgba(127, 127, 127, .25); }
.cta .body-lg { margin: 24px auto 40px; max-width: 34rem; color: var(--inv-text-2); }

/* footer */
.footer { padding: 56px 0 64px; font-size: .9375rem; }
.footer-top { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.footer-links a { color: var(--text-2); text-decoration: none; }
.footer-links a:hover { color: var(--text); }
.footer-bottom { margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line); color: var(--text-3); font-size: .875rem; display: flex; justify-content: space-between; gap: 8px 32px; flex-wrap: wrap; }
.footer-bottom p { max-width: 44rem; }

/* ---------- inner pages ---------- */
.page-hero { padding: calc(var(--nav-h) + clamp(72px, 9vw, 112px)) 0 clamp(48px, 6vw, 80px); }
.page-hero .lead { margin-top: 24px; }
.meta { margin-top: 24px; color: var(--text-2); font-size: .9688rem; }

.support-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.support-grid .card .h3 { margin-bottom: 12px; }
.card-contact { grid-row: span 2; display: flex; flex-direction: column; align-items: flex-start; padding: clamp(28px, 3.4vw, 44px); }
.card-contact .eyebrow { margin-bottom: 16px; }
.card-contact .body { margin-top: 18px; max-width: 26rem; }
.card-contact .pill { margin-top: auto; }
.card-contact > p:last-of-type { margin-bottom: 40px; }
.big-mail { font-size: clamp(1.75rem, 3.4vw, 2.75rem); font-weight: 720; letter-spacing: -.035em; line-height: 1.1; color: var(--text); overflow-wrap: anywhere; text-decoration: none; }
.big-mail:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.link-list { margin-top: 22px; display: grid; gap: 12px; justify-items: start; }
.link-list a { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; color: var(--text); text-decoration: none; }
.link-list a:hover { text-decoration: underline; }
.link-list svg { flex: none; opacity: .7; }
.card-topics { grid-column: 1 / -1; }
.topics { margin-top: 6px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); column-gap: 36px; }
.topics li { padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--text-2); }

.legal-grid { display: grid; grid-template-columns: 232px minmax(0, 68ch); gap: clamp(32px, 6vw, 88px); padding-bottom: clamp(88px, 10vw, 140px); justify-content: start; }
.toc { position: sticky; top: 108px; align-self: start; font-size: .9375rem; max-height: calc(100vh - 132px); overflow: auto; }
.toc-title { font-size: .8125rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--text-2); margin-bottom: 14px; }
.toc ol { counter-reset: t; border-left: 1px solid var(--line-2); }
.toc li { counter-increment: t; }
.toc a { display: block; padding: 6px 0 6px 16px; color: var(--text-2); line-height: 1.35; margin-left: -1px; border-left: 1px solid transparent; text-decoration: none; }
.toc a::before { content: counter(t) ". "; color: var(--text-3); }
.toc a:hover { color: var(--text); border-left-color: var(--text); }
.prose { font-size: 1.0625rem; line-height: 1.72; color: var(--text-2); }
.prose section + section { margin-top: 52px; }
.prose h2 { font-size: clamp(1.4rem, 2.2vw, 1.75rem); font-weight: 700; letter-spacing: -.028em; line-height: 1.2; color: var(--text); margin-bottom: 16px; }
.prose .sec-n { color: var(--text-3); font-weight: 600; }
.prose p + p, .prose ul + p, .prose p + ul, .prose ul + ul { margin-top: 14px; }
.prose ul { display: grid; gap: 10px; }
.prose ul li { position: relative; padding-left: 22px; }
.prose ul li::before { content: ""; position: absolute; left: 4px; top: .74em; width: 5px; height: 5px; border-radius: 50%; background: var(--text-3); }
.prose ul ul { margin-top: 10px; }
.prose strong { color: var(--text); font-weight: 600; }
.prose a { color: var(--text); text-decoration: underline; text-decoration-color: var(--line-2); overflow-wrap: anywhere; }
.prose a:hover { text-decoration-color: currentColor; }

.nf-links { margin-top: 40px; display: grid; gap: 16px; font-size: 1.125rem; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { margin-top: 40px; }
  .feature-grid, .pricing-grid, .faq-grid { grid-template-columns: 1fr; }
  .feature.flip .feature-copy, .feature.flip .feature-media { order: 0; }
  .faq-head { position: static; }
  .legal-grid { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; max-height: none; border: 1px solid var(--line-2); border-radius: 20px; padding: 20px 22px 14px; background: var(--card); }
  .toc ol { border-left: 0; }
  .toc a { padding-left: 0; border-left: 0; }
  .see-all { justify-content: flex-start; }
}
@media (max-width: 720px) {
  .steps { grid-template-columns: 1fr; }
  .step-n { margin-bottom: 18px; }
  .cards { grid-template-columns: 1fr; }
  .card-icon { margin-bottom: 18px; }
  .support-grid { grid-template-columns: 1fr; }
  .card-contact { grid-row: auto; }
  .qa-body { padding-right: 0; }
  .device-lg { --w: min(70vw, 290px); }
  .device-md { --w: min(66vw, 270px); }
  .poster { width: min(72vw, 300px); }
  .stack .poster { width: min(48vw, 220px); }
  .stack-3 > :nth-child(1) { transform: translateX(-46%) scale(.84); }
  .stack-3 > :nth-child(3) { transform: translateX(46%) scale(.84); }
  .stack { padding-block: 8px; }
  .plain-grid { grid-template-columns: 1fr; align-items: start; }
  .footer-top { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
@media print {
  .nav-wrap, .toc, .cta, .glow { display: none !important; }
  body { background: #fff; color: #000; }
}
