/* clearspacemobile.com — dark-first, iOS-native. Tokens mirror the app's semantic colours. */
:root {
  color-scheme: dark light;
  --bg: #000000;
  --bg-elev: #1C1C1E;
  --bg-band: #0B0B0D;
  --fill: #2C2C2E;
  --fill-2: #3A3A3C;
  --text: #FFFFFF;
  --text-2: rgba(235,235,245,.62);
  --text-3: rgba(235,235,245,.32);
  --sep: rgba(84,84,88,.55);
  --hair: rgba(255,255,255,.09);
  --accent: #0A7CFF;
  --accent-deep: #0A5FC4;
  --accent-soft: #7CB8FF;
  --accent-tint: #E6F1FF;
  --accent-fill: rgba(10,124,255,.18);
  --glass: rgba(28,28,30,.72);
  --shadow: 0 30px 80px rgba(0,0,0,.6), 0 2px 6px rgba(0,0,0,.4);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", "Segoe UI", Roboto, sans-serif;
  --font-round: ui-rounded, "SF Pro Rounded", var(--font);
  --radius: 22px;
  --radius-sm: 14px;
  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 32px);
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #F2F2F7;
    --bg-elev: #FFFFFF;
    --bg-band: #EAEAF0;
    --fill: #E5E5EA;
    --fill-2: #D1D1D6;
    --text: #000000;
    --text-2: rgba(60,60,67,.62);
    --text-3: rgba(60,60,67,.32);
    --sep: rgba(60,60,67,.29);
    --hair: rgba(60,60,67,.14);
    --accent-fill: rgba(10,124,255,.12);
    --glass: rgba(242,242,247,.78);
    --shadow: 0 30px 80px rgba(0,0,0,.18), 0 2px 6px rgba(0,0,0,.08);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, p, ul, ol, dl, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 14px; background: var(--accent); color: #fff; border-radius: 10px; font-weight: 600; }
.skip:focus { top: 12px; }

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

/* ---------- Type ---------- */
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--accent-soft); margin-bottom: 12px; }
.display { font-size: clamp(40px, 6.6vw, 68px); line-height: 1.01; letter-spacing: -.032em; font-weight: 700; text-wrap: balance; }
.display--sm { font-size: clamp(32px, 5vw, 48px); }
.display__soft { color: var(--text-2); }
.h2 { font-size: clamp(27px, 3.8vw, 38px); line-height: 1.08; letter-spacing: -.024em; font-weight: 700; margin-bottom: 28px; max-width: 20ch; text-wrap: balance; }
.lede { font-size: clamp(17px, 2vw, 20px); color: var(--text-2); max-width: 54ch; text-wrap: pretty; }
.num { font-family: var(--font-round); font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: var(--glass); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--hair); }
.nav__row { display: flex; align-items: center; gap: 24px; min-height: 62px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 18px; letter-spacing: -.01em; }
.wordmark:hover { text-decoration: none; }
.mark { border-radius: 7px; flex: none; }
.nav__links { display: none; gap: 26px; margin-inline: auto; }
.nav__links a { color: var(--text-2); font-weight: 500; font-size: 15px; }
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--text); text-decoration: none; }
.nav__links--always { display: flex; gap: 18px; margin-inline: 0 0 0 auto; }
.nav__cta { margin-left: auto; padding: 9px 16px; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 600; font-size: 14px; }
.nav__cta:hover { text-decoration: none; background: var(--accent-deep); }
@media (min-width: 760px) { .nav__links { display: flex; } .nav__cta { margin-left: 0; } }

/* ---------- Buttons & badge ---------- */
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 24px; border-radius: 15px; background: var(--accent); color: #fff; font-weight: 600; margin-top: 20px; }
.button:hover { text-decoration: none; background: var(--accent-deep); }
.badge { display: inline-flex; align-items: center; gap: 9px; padding: 8px 16px 8px 13px; border-radius: 12px; background: #000; color: #fff; border: 1px solid #A6A6A6; line-height: 1.05; transition: transform .18s ease; }
.badge:hover { text-decoration: none; transform: translateY(-1px); }
.badge__text { display: flex; flex-direction: column; }
.badge__text small { font-size: 10px; letter-spacing: .01em; }
.badge__text strong { font-size: 19px; font-weight: 600; letter-spacing: -.01em; }
.badge--lg { padding: 10px 20px 10px 16px; border-radius: 14px; }
.badge--lg svg { width: 26px; height: 26px; }
.badge--lg .badge__text small { font-size: 11px; }
.badge--lg .badge__text strong { font-size: 22px; }
.badge--soon { cursor: default; opacity: .82; }
.badge--soon:hover { transform: none; }
.nav__cta--soon { background: var(--fill); color: var(--text-2); cursor: default; }
@media (prefers-color-scheme: light) { .badge { border-color: #000; } }

/* ---------- Sections ---------- */
.section { padding-block: clamp(52px, 7.5vw, 96px); }
.section--proof { padding-block: 0 clamp(40px, 6vw, 72px); }
.section--band { background: var(--bg-band); border-block: 1px solid var(--hair); }
.section--final { padding-block: clamp(76px, 12vw, 144px); }
.section__head { max-width: 46ch; }

/* ---------- Hero ---------- */
.hero { position: relative; padding-block: clamp(44px, 7vw, 104px) clamp(40px, 6vw, 76px); overflow: hidden; }
.hero__glow { position: absolute; inset: -20% -10% auto auto; width: min(760px, 90vw); aspect-ratio: 1; pointer-events: none; background: radial-gradient(circle at 60% 40%, rgba(10,124,255,.30), rgba(10,124,255,0) 62%); filter: blur(10px); }
.hero__grid { position: relative; display: grid; gap: 48px; align-items: center; }
.hero__copy { max-width: 580px; }
.hero__cta { margin-top: 30px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.hero__note { font-size: 14px; color: var(--text-2); }
.lede { margin-top: 20px; }
.facts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.facts li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 11px; border-radius: 999px; background: var(--bg-elev); border: 1px solid var(--hair); font-size: 14px; font-weight: 500; color: var(--text); }
.facts svg { width: 16px; height: 16px; color: var(--accent); flex: none; }
.hero__figure { justify-self: center; --s: 1.06; }
.hero__caption { text-align: center; font-size: 13px; color: var(--text-3); margin-top: 16px; }
@media (min-width: 560px) { .hero__figure { --s: 1.18; } }
@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 1fr .95fr; gap: 40px; }
  .hero__figure { justify-self: end; --s: 1.2; }
}
@media (min-width: 1100px) { .hero__figure { --s: 1.34; } }

/* ---------- Phone mock (the Clean tab, rendered in HTML) ---------- */
.phone-wrap { width: calc(320px * var(--s, 1)); height: calc(700px * var(--s, 1)); }
.phone { width: 300px; padding: 10px; border-radius: 48px; background: #0d0d0f; border: 1px solid #3a3a3e; box-shadow: var(--shadow); transform: scale(var(--s, 1)); transform-origin: top left; }
.phone__screen { position: relative; height: 680px; overflow: hidden; border-radius: 40px; background: #000; color: #fff; padding: 12px 14px 0; display: flex; flex-direction: column; gap: 10px; font-size: 12px; line-height: 1.3; }
.phone__screen::before { content: ""; position: absolute; left: 50%; top: 10px; width: 92px; height: 26px; transform: translateX(-50%); background: #000; border-radius: 999px; border: 1px solid #1a1a1c; z-index: 2; }
.ios-status { display: flex; justify-content: space-between; align-items: center; font-weight: 600; font-size: 13px; padding: 4px 10px 0; }
.ios-status__right { display: flex; gap: 5px; align-items: center; }
.ios-sig, .ios-wifi, .ios-batt { display: inline-block; background: #fff; border-radius: 2px; }
.ios-sig { width: 16px; height: 10px; clip-path: polygon(0 100%, 0 60%, 25% 60%, 25% 100%, 37% 100%, 37% 40%, 62% 40%, 62% 100%, 74% 100%, 74% 15%, 100% 15%, 100% 100%); }
.ios-wifi { width: 14px; height: 10px; border-radius: 50% 50% 0 0 / 100% 100% 0 0; clip-path: polygon(0 0, 100% 0, 50% 100%); }
.ios-batt { width: 24px; height: 11px; border-radius: 3px; box-shadow: inset 0 0 0 2px #000, inset 0 0 0 3px rgba(255,255,255,.4); }
.ios-title { display: flex; justify-content: space-between; align-items: center; font-size: 26px; font-weight: 700; letter-spacing: -.02em; padding: 14px 2px 2px; }
.ios-round { width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,.12); display: grid; place-items: center; border: 1px solid rgba(255,255,255,.14); }
.ios-card { background: #1C1C1E; border-radius: 16px; padding: 14px; }
.ios-sub { color: rgba(235,235,245,.6); font-size: 11.5px; }
.ios-big { font-family: var(--font-round); font-size: 38px; font-weight: 700; letter-spacing: -.02em; line-height: 1.05; margin: 2px 0 12px; font-variant-numeric: tabular-nums; }
.ios-bar { display: flex; gap: 2px; height: 8px; border-radius: 999px; overflow: hidden; background: rgba(120,120,128,.24); }
.seg { display: block; height: 100%; }
.seg--a { width: 4.5%; background: var(--accent); }
.seg--b { width: 2%; background: var(--accent-deep); }
.seg--c { width: 1.5%; background: var(--accent-soft); }
.seg--d { width: 1%; background: var(--accent-tint); }
.seg--used { width: 83%; background: rgba(120,120,128,.36); }
.ios-caption { display: flex; justify-content: space-between; margin-top: 8px; font-size: 10.5px; color: rgba(235,235,245,.6); }
.ios-caption span { display: inline-flex; align-items: center; gap: 4px; }
.ios-ic { width: 11px; height: 11px; }
.ios-caption__dot { color: var(--accent); }
.ios-caption__dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.ios-eyebrow { font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: rgba(235,235,245,.6); margin-top: 2px; }
.ios-hero__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.ios-h2 { font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.ios-tag { display: inline-block; font-size: 11px; font-weight: 500; color: var(--accent); background: var(--accent-fill); border-radius: 999px; padding: 3px 8px; white-space: nowrap; }
.ios-thumbs { display: flex; gap: 6px; margin: 12px 0; }
.thumb { display: block; flex: 1; width: 100%; min-width: 0; height: 56px; border-radius: 10px; object-fit: cover; background: var(--fill); }
.thumb--row { flex: none; width: 38px; height: 38px; border-radius: 9px; }
.ios-more { flex: none; width: 44px; height: 56px; border-radius: 10px; background: rgba(120,120,128,.24); display: grid; place-items: center; color: rgba(235,235,245,.6); font-size: 11px; }
.ios-btn { background: var(--accent); color: #fff; border-radius: 999px; text-align: center; padding: 9px; font-weight: 600; font-size: 13px; }
.ios-row { display: flex; align-items: center; gap: 10px; background: #1C1C1E; border-radius: 13px; padding: 9px 10px; }
.ios-row__text { flex: 1; min-width: 0; }
.ios-row__title { font-weight: 500; font-size: 13px; }
.ios-row__sub { color: rgba(235,235,245,.6); font-size: 10.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ios-row__size { color: rgba(235,235,245,.6); font-size: 11.5px; font-variant-numeric: tabular-nums; }
.ios-chev { width: 6px; height: 6px; border-right: 1.5px solid rgba(235,235,245,.3); border-bottom: 1.5px solid rgba(235,235,245,.3); transform: rotate(-45deg); }
.ios-foot { text-align: center; color: rgba(235,235,245,.6); font-size: 10.5px; padding-top: 2px; }
.ios-tabbar { position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; justify-content: space-around; padding: 8px 6px; border-radius: 999px; background: rgba(40,40,44,.72); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border: 1px solid rgba(255,255,255,.1); font-size: 9.5px; font-weight: 500; color: rgba(235,235,245,.6); }
.ios-tabbar span { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.ios-tabbar .is-on { color: var(--accent); }
.ios-tab-ic { width: 18px; height: 18px; }

/* ---------- Proof rail ---------- */
.proof { display: grid; background: var(--bg-elev); border: 1px solid var(--hair); border-radius: var(--radius); overflow: hidden; }
.proof__item { padding: 24px; border-top: 1px solid var(--hair); }
.proof__item:first-child { border-top: 0; }
.proof__icon { width: 24px; height: 24px; color: var(--accent); margin-bottom: 12px; }
.proof__item h3 { font-size: 17px; font-weight: 600; margin-bottom: 4px; }
.proof__item p { color: var(--text-2); font-size: 15px; }
@media (min-width: 700px) {
  .proof { grid-template-columns: repeat(3, 1fr); }
  .proof__item { border-top: 0; border-left: 1px solid var(--hair); }
  .proof__item:first-child { border-left: 0; }
}

/* ---------- Categories ---------- */
.cats { display: grid; gap: 12px; }
.cats__item { display: grid; grid-template-columns: 28px 1fr; column-gap: 14px; background: var(--bg-elev); border: 1px solid var(--hair); border-radius: var(--radius); padding: 22px; transition: border-color .18s ease, transform .18s ease; }
.cats__item:hover { border-color: rgba(10,124,255,.5); transform: translateY(-2px); }
.cats__icon { width: 26px; height: 26px; color: var(--accent); grid-row: span 2; margin-top: 2px; }
.cats__item h3 { font-size: 17px; font-weight: 600; }
.cats__item p { color: var(--text-2); font-size: 15px; margin-top: 3px; }
@media (min-width: 640px) { .cats { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .cats { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Steps + demo film ---------- */
#how .wrap { display: grid; gap: 32px; align-items: start; }
.steps { position: relative; display: flex; flex-direction: column; gap: 30px; counter-reset: step; }
.steps::before { content: ""; position: absolute; left: 17px; top: 38px; bottom: 30px; width: 1.5px; background: linear-gradient(180deg, var(--accent), var(--hair)); }
.steps__item { position: relative; padding: 0 4px 0 62px; counter-increment: step; }
.steps__item::before { content: counter(step); position: absolute; left: 0; top: -4px; width: 34px; height: 34px; border-radius: 50%; background: var(--accent-fill); color: var(--accent-soft); box-shadow: inset 0 0 0 1.5px var(--accent); font-family: var(--font-round); font-weight: 700; font-size: 15px; display: grid; place-items: center; z-index: 1; }
.steps__item h3 { font-size: 18px; font-weight: 600; }
.steps__item p { color: var(--text-2); font-size: 15px; margin-top: 4px; max-width: 46ch; }

/* ---------- Demo film (How it works) ---------- */
.demo { width: 100%; max-width: 292px; justify-self: center; margin: 0; display: flex; flex-direction: column; }
.demo__screen { position: relative; aspect-ratio: 9 / 16; border-radius: var(--radius); overflow: hidden; background: #000; margin-inline: auto; max-width: 100%; }
.demo__screen video { display: block; width: 100%; height: 100%; object-fit: cover; }
.demo__note { margin-top: 22px; padding: 16px 18px; background: var(--bg-elev); border: 1px solid var(--hair); border-radius: 16px; font-size: 14px; color: var(--text-2); }
.demo__note b { color: var(--text); font-weight: 600; }
.demo figcaption { margin-top: 14px; font-size: 13px; color: var(--text-3); text-align: center; }

@media (min-width: 860px) {
  #how .wrap { grid-template-columns: minmax(0, 1fr) 240px; grid-template-rows: min-content min-content 1fr; column-gap: 40px; row-gap: 0; }
  #how .eyebrow { grid-column: 1; grid-row: 1; }
  #how .h2 { grid-column: 1; grid-row: 2; margin-bottom: 32px; }
  .steps { grid-column: 1; grid-row: 3; align-self: start; }
  .demo__note { grid-column: 1; grid-row: 4; align-self: start; margin-top: 64px; }
  /* The film must not size the rows it spans, or the band and the film size each other
     in a circle. Its children are absolute, so the cell contributes no intrinsic height:
     the band is the eyebrow + heading + steps, and the film stretches to exactly that. */
  .demo { grid-column: 2; grid-row: 1 / span 3; align-self: stretch; justify-self: end; position: relative; display: block; margin: 0; }
  .demo__screen { position: absolute; top: 0; bottom: 0; right: 0; width: auto; aspect-ratio: 9 / 16; margin: 0; }
  .demo figcaption { position: absolute; top: 100%; left: 0; right: 0; margin-top: 14px; }
}

/* ---------- Files ---------- */
.files { display: grid; gap: 32px; align-items: center; }
.sources { display: grid; gap: 10px; }
.sources li { display: flex; align-items: center; gap: 14px; background: var(--bg-elev); border: 1px solid var(--hair); border-radius: 16px; padding: 17px 18px; font-weight: 500; }
.sources__icon { width: 24px; height: 24px; color: var(--accent); flex: none; }
@media (min-width: 860px) { .files { grid-template-columns: 1.15fr .85fr; gap: 64px; } }

/* ---------- Pricing ---------- */
.tiers { display: grid; gap: 16px; align-items: stretch; }
.tier { display: flex; flex-direction: column; background: var(--bg-elev); border: 1px solid var(--hair); border-radius: var(--radius); padding: 28px; }
.tier--pro { border-color: transparent; padding: 32px; box-shadow: inset 0 0 0 1.5px var(--accent), 0 24px 70px rgba(10,124,255,.14); }
.tier__name { font-size: 13px; font-weight: 700; color: var(--text-2); text-transform: uppercase; letter-spacing: .08em; }
.tier__price { margin: 10px 0 20px; }
.tier__price .num { font-size: 34px; line-height: 1; color: var(--text-2); }
.ticks { display: grid; gap: 10px; margin-top: 8px; }
.ticks li { position: relative; padding-left: 28px; font-size: 15px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 5px; width: 14px; height: 8px; border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(-45deg); }
.ticks__no { color: var(--text-2); }
.tier__foot { margin-top: auto; padding-top: 22px; color: var(--text-2); font-size: 14px; }
.tier > .ticks { margin-bottom: 4px; }
.ticks__no::before { border: 0 !important; width: 12px !important; height: 2.5px !important; top: 10px !important; background: var(--text-3); transform: none !important; }
.plans { display: grid; gap: 10px; margin: 16px 0 22px; }
.plan { border-radius: 16px; padding: 18px; background: var(--fill); }
.plan--best { background: var(--accent-fill); box-shadow: inset 0 0 0 1.5px var(--accent); }
.plan__head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.plan__name { font-weight: 600; }
.plan__price { margin-top: 8px; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.plan__price .num { font-size: 32px; line-height: 1; }
.plan__per { color: var(--text-2); font-size: 14px; }
.plan__equiv { color: var(--accent-soft); font-size: 13px; font-weight: 600; }
.plan__blurb { color: var(--text-2); font-size: 14px; margin-top: 6px; }
.tier--pro .badge { margin-top: auto; align-self: flex-start; padding-top: 10px; }
.tier--pro .ticks { margin-bottom: 24px; }
.fineprint { margin-top: 22px; font-size: 13px; color: var(--text-3); max-width: 80ch; }
@media (min-width: 760px) { .tiers { grid-template-columns: 1fr 1.3fr; } }

/* ---------- FAQ ---------- */
.faq { background: var(--bg-elev); border: 1px solid var(--hair); border-radius: var(--radius); padding: 4px 24px; }
.faq__item { border-bottom: 1px solid var(--hair); }
.faq__item:last-child { border-bottom: 0; }
.faq__item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 19px 0; font-weight: 600; font-size: 17px; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: ""; flex: none; width: 9px; height: 9px; border-right: 2px solid var(--text-3); border-bottom: 2px solid var(--text-3); transform: rotate(45deg); transition: transform .2s; margin-right: 4px; }
.faq__item[open] summary::after { transform: rotate(-135deg); border-color: var(--accent); }
.faq__item p { color: var(--text-2); padding-bottom: 20px; font-size: 16px; max-width: 62ch; }
.faq__item summary:focus-visible { outline-offset: -3px; }

/* ---------- Final ---------- */
.final { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; }
.final .lede { margin-top: 0; }
.final .badge { margin-top: 12px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--hair); padding-block: 44px 32px; color: var(--text-2); font-size: 14px; }
.footer__grid { display: grid; gap: 24px; }
.footer__tag { margin-top: 10px; max-width: 34ch; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 18px; }
.footer__nav a { color: var(--text); font-weight: 500; }
.footer__legal { margin-top: 28px; display: grid; gap: 6px; font-size: 13px; color: var(--text-3); }
@media (min-width: 700px) { .footer__grid { grid-template-columns: 1fr auto; align-items: start; } }

/* ---------- Documents (privacy, terms, support, 404) ---------- */
.doc { width: min(760px, 100% - 2 * var(--gutter)); margin-inline: auto; padding-block: clamp(40px, 6vw, 72px) clamp(56px, 8vw, 96px); }
.doc__head .lede { margin-top: 16px; }
.doc__meta { display: grid; gap: 14px 28px; margin-top: 26px; padding: 18px 20px; background: var(--bg-elev); border: 1px solid var(--hair); border-radius: 16px; font-size: 14px; }
.doc__meta dt { color: var(--text-2); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.doc__meta dd { margin: 2px 0 0; font-weight: 500; }
@media (min-width: 560px) { .doc__meta { grid-template-columns: auto auto 1fr; } }
.doc__toc { margin-top: 28px; font-size: 15px; }
.doc__toc ol { counter-reset: toc; display: grid; gap: 6px; }
.doc__toc li { counter-increment: toc; padding-left: 30px; position: relative; }
.doc__toc li::before { content: counter(toc) "."; position: absolute; left: 0; color: var(--text-3); font-variant-numeric: tabular-nums; }
.doc__body { margin-top: 40px; }
.doc__body h2 { font-size: 24px; letter-spacing: -.015em; margin-top: 44px; margin-bottom: 12px; scroll-margin-top: 84px; }
.doc__body h3 { font-size: 18px; margin-top: 26px; margin-bottom: 8px; }
.doc__body p, .doc__body li { color: var(--text); font-size: 17px; line-height: 1.65; }
.doc__body p { margin-bottom: 14px; }
.doc__body ul, .doc__body ol { padding-left: 22px; margin-bottom: 16px; display: grid; gap: 8px; }
.doc__body ul { list-style: disc; }
.doc__body ol { list-style: decimal; }
.doc__body strong { font-weight: 600; }
.doc__body hr { border: 0; border-top: 1px solid var(--hair); margin: 32px 0; }
.doc__body code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .92em; background: var(--fill); padding: 1px 6px; border-radius: 6px; }
.doc__section { margin-top: 48px; }
.doc__section h2 { font-size: 24px; letter-spacing: -.015em; margin-bottom: 16px; }
.tips { display: grid; gap: 10px; }
.tips li { background: var(--bg-elev); border: 1px solid var(--hair); border-radius: 16px; padding: 18px 20px; }
.tips h3 { font-size: 17px; font-weight: 600; }
.tips p { color: var(--text-2); font-size: 15px; margin-top: 4px; }
.doc__section--links p { font-size: 17px; }
.doc--404 { min-height: 52vh; }

/* Legal pages: contents rail alongside the body on wide screens */
@media (min-width: 1040px) {
  .doc--legal { width: min(1060px, 100% - 2 * var(--gutter)); display: grid; grid-template-columns: 1fr 240px; column-gap: 56px; align-items: start; }
  .doc--legal .doc__head { grid-column: 1; }
  .doc--legal .doc__body { grid-column: 1; }
  .doc--legal .doc__toc { grid-column: 2; grid-row: 1 / span 2; position: sticky; top: 84px; margin-top: 8px; padding: 18px 20px; background: var(--bg-elev); border: 1px solid var(--hair); border-radius: 16px; font-size: 14px; }
  .doc--legal .doc__toc a { color: var(--text-2); }
  .doc--legal .doc__toc a:hover { color: var(--text); text-decoration: none; }
}

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
