/* Reelaya site. One typeface (Manrope), Geist Mono only for numbers and keys.
   Sizes follow the Tailwind type scale; spacing uses 2·4·8·12·16·24·32·40·48·64·80·96. */
@font-face { font-family: "Manrope"; src: url("../fonts/manrope.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("../fonts/geist-mono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --paper: #F7F6F2;
  --card: #FFFFFF;
  --sunk: #EFEDE7;
  --ink: #121212;
  --muted: #5E5D58;
  --faint: #8B8A84;
  --line: #E4E2DB;
  --accent: #4F3FEA;
  --accent-ink: #3A2BD0;
  --accent-soft: #ECEAFE;
  --rec: #E5484D;
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --font: "Manrope", ui-sans-serif, system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 18px/28px var(--font); -webkit-font-smoothing: antialiased; }
img, video { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font-family: inherit; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 4px; }
h1, h2, h3 { margin: 0; text-wrap: balance; font-weight: 700; }
.ln { display: block; }
p, li, dd, summary { text-wrap: pretty; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--accent-soft); }
.icon { width: 1em; height: 1em; flex: none; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: 16px; top: -64px; z-index: 50; padding: 8px 12px; border-radius: 8px; background: var(--ink); color: #fff; font-weight: 600; font-size: 14px; line-height: 20px; text-decoration: none; transition: top 0.7s var(--ease); }
.skip:focus { top: 16px; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 9999px; border: 1px solid transparent; font: 600 16px/24px var(--font); text-decoration: none; cursor: pointer; transition: transform 0.7s var(--ease), background-color 0.7s var(--ease), box-shadow 0.7s var(--ease), color 0.7s var(--ease); }
.btn .icon { width: 16px; height: 16px; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 1px 2px rgb(79 63 234 / 25%), 0 8px 24px rgb(79 63 234 / 20%); }
.btn-primary:hover { background: var(--accent-ink); transform: translateY(-2px); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #2B2B2B; transform: translateY(-2px); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--muted); }
.btn-ghost:hover { background: var(--card); color: var(--ink); transform: translateY(-2px); }
.btn:active { transform: scale(0.98); }
.btn[disabled] { cursor: not-allowed; opacity: 0.7; }
.btn-sm { font-size: 14px; line-height: 20px; }

/* navigation: a floating pill */
.nav-wrap { position: fixed; inset: 0 0 auto; z-index: 40; display: flex; justify-content: center; padding: 0 16px; pointer-events: none; }
.nav { pointer-events: auto; margin-top: 24px; width: max-content; max-width: 100%; display: flex; align-items: center; gap: 24px; padding: 8px 8px 8px 16px; border-radius: 9999px; background: rgb(255 255 255 / 82%); border: 1px solid var(--line); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); box-shadow: 0 1px 2px rgb(0 0 0 / 4%), 0 8px 32px rgb(0 0 0 / 6%); }
.brand { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 18px; line-height: 28px; }
.brand img { width: 24px; height: 24px; }
.nav-links { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }
.nav-links a { display: block; padding: 4px 12px; border-radius: 9999px; color: var(--muted); font-weight: 600; font-size: 14px; line-height: 20px; text-decoration: none; transition: color 0.7s var(--ease), background-color 0.7s var(--ease); }
.nav-links a:hover { color: var(--ink); background: var(--sunk); }
.nav-links a[aria-current="true"], .nav-links a[aria-current="page"] { color: var(--ink); background: var(--sunk); }
.nav-signin { margin-right: -16px; padding: 4px 12px; border-radius: 9999px; color: var(--ink); font-weight: 600; font-size: 14px; line-height: 20px; text-decoration: none; white-space: nowrap; transition: background-color 0.7s var(--ease); }
.nav-signin:hover, .nav-signin[aria-current="page"] { background: var(--sunk); }
.burger { display: none; position: relative; width: 40px; height: 40px; border: 0; border-radius: 9999px; background: var(--sunk); cursor: pointer; }
.burger span { position: absolute; left: 12px; width: 16px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform 0.7s var(--ease), top 0.7s var(--ease); }
.burger span:first-child { top: 15px; }
.burger span:last-child { top: 23px; }
.burger[aria-expanded="true"] span:first-child { top: 19px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 19px; transform: rotate(-45deg); }
.menu { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; background: rgb(255 255 255 / 80%); backdrop-filter: blur(64px); -webkit-backdrop-filter: blur(64px); opacity: 0; transition: opacity 0.7s var(--ease); }
.menu.open { opacity: 1; }
.menu ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; text-align: center; }
.menu li { transform: translateY(48px); opacity: 0; transition: transform 0.7s var(--ease), opacity 0.7s var(--ease); }
.menu.open li { transform: translateY(0); opacity: 1; }
.menu a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 700; font-size: 30px; line-height: 36px; }
.menu li:nth-child(1) { transition-delay: 100ms; } .menu li:nth-child(2) { transition-delay: 150ms; } .menu li:nth-child(3) { transition-delay: 200ms; }
.menu li:nth-child(4) { transition-delay: 250ms; } .menu li:nth-child(5) { transition-delay: 300ms; } .menu li:nth-child(6) { transition-delay: 350ms; }
.menu li:nth-child(7) { transition-delay: 400ms; }

/* hero */
.hero { padding: 96px 0; }
.hero > .wrap:first-child { padding-top: 64px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 64px; align-items: end; margin-bottom: 48px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 24px; padding: 4px 12px; border-radius: 9999px; background: var(--card); border: 1px solid var(--line); font-weight: 600; font-size: 14px; line-height: 20px; color: var(--muted); }
.dot { width: 8px; height: 8px; border-radius: 9999px; background: var(--rec); box-shadow: 0 0 0 4px rgb(229 72 77 / 15%); }
.hero h1 { max-width: 680px; font-size: 60px; line-height: 60px; letter-spacing: -0.03em; background: linear-gradient(90deg, #000000, #666666); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: 4px; }
.lede { max-width: 680px; margin-top: 24px; font-size: 20px; line-height: 28px; color: var(--muted); }
.hero-actions { margin-top: 32px; display: flex; gap: 12px; flex-wrap: wrap; }
.proof { margin-top: 16px; font-size: 14px; line-height: 20px; color: var(--faint); font-weight: 600; }
.spec { margin: 0; padding: 8px 16px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.spec div { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.spec div:last-child { border-bottom: 0; }
.spec dt { font-size: 14px; line-height: 20px; color: var(--faint); font-weight: 600; }
.spec dd { margin: 0; font: 500 14px/20px var(--mono); color: var(--ink); text-align: right; }
.film { position: relative; margin: 0; padding: 8px; border-radius: 24px; background: var(--card); border: 1px solid var(--line); box-shadow: 0 2px 4px rgb(0 0 0 / 4%), 0 24px 64px rgb(0 0 0 / 10%); }
.film video { width: 100%; aspect-ratio: 16 / 9; border-radius: 16px; background: #0B0C18; }
.film-box { position: relative; }
.play { position: absolute; left: 24px; bottom: 24px; display: inline-flex; align-items: center; gap: 12px; padding: 8px 16px 8px 8px; border: 0; border-radius: 9999px; background: rgb(255 255 255 / 94%); color: var(--ink); font-weight: 600; font-size: 16px; line-height: 24px; cursor: pointer; box-shadow: 0 8px 32px rgb(0 0 0 / 30%); transition: transform 0.7s var(--ease), background-color 0.7s var(--ease), opacity 0.7s var(--ease); }
.play-dot { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 9999px; background: var(--accent); color: #fff; }
.play-dot .icon { width: 20px; height: 20px; margin-left: 2px; }
.play-time { font: 500 14px/20px var(--mono); color: var(--faint); }
.play:hover { transform: translateY(-2px); background: #fff; }
.play:active { transform: scale(0.98); }
.film.playing .play { opacity: 0; pointer-events: none; }
.film-cap { padding: 12px 8px 4px; font-size: 14px; line-height: 20px; color: var(--faint); text-align: center; }

/* tagline reveal */
.tagline { padding: 96px 0; }
.words { max-width: 880px; margin: 0 auto; font-size: 48px; line-height: 48px; font-weight: 700; letter-spacing: -0.02em; text-align: center; text-wrap: balance; color: var(--ink); }
.js .words .w { color: rgb(18 18 18 / 28%); transition: color 0.7s var(--ease); }
.js .words .w.on { color: var(--ink); }

/* section heads */
.section-head { max-width: 680px; margin: 0 auto 64px; text-align: center; }
.section-head.left { margin: 0; text-align: left; }
.kicker { margin-bottom: 12px; font: 500 14px/20px var(--mono); color: var(--accent); text-transform: uppercase; letter-spacing: 0.08em; }
.section-head h2 { font-size: 48px; line-height: 48px; letter-spacing: -0.03em; }
.section-sub { margin-top: 16px; color: var(--muted); font-size: 18px; line-height: 28px; }

/* manual chapters */
.manual { padding: 96px 0 32px; border-top: 1px solid var(--line); }
.chapter { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: center; padding: 64px 0; border-bottom: 1px solid var(--line); }
.chapter:last-child { border-bottom: 0; }
.chapter.flip { grid-template-columns: 7fr 5fr; }
.chapter.flip .chapter-text { order: 2; }
.chap-no { font: 500 14px/20px var(--mono); color: var(--faint); margin-bottom: 12px; }
.chapter h3 { font-size: 36px; line-height: 40px; letter-spacing: -0.02em; margin-bottom: 16px; }
.chapter-text > p:not(.chap-no) { color: var(--muted); }
.legend { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 4px; }
.legend li { display: flex; gap: 12px; padding: 8px 12px; margin: 0 -12px; border-radius: 12px; font-size: 16px; line-height: 24px; color: var(--ink); cursor: default; transition: background-color 0.7s var(--ease); }
.legend li b { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 9999px; background: var(--sunk); font: 500 12px/16px var(--mono); color: var(--ink); transition: background-color 0.7s var(--ease), color 0.7s var(--ease); }
.legend li.hot { background: var(--accent-soft); }
.legend li.hot b { background: var(--accent); color: #fff; }
.shot { padding: 8px; border-radius: 24px; background: var(--card); border: 1px solid var(--line); box-shadow: 0 2px 4px rgb(0 0 0 / 4%), 0 24px 48px rgb(0 0 0 / 8%); }
.shot.stage { padding: 40px; background: var(--sunk); box-shadow: none; display: grid; place-items: center; }
.pins { position: relative; }
.pins img { width: 100%; border-radius: 16px; }
.pins.narrow { width: min(100%, 300px); }
.pins.medium { width: min(100%, 420px); }
.stage .pins img { border-radius: 12px; box-shadow: 0 2px 4px rgb(0 0 0 / 10%), 0 24px 48px rgb(0 0 0 / 22%); }
.pins { --out: 24px; }
.pin { position: absolute; left: var(--x); top: var(--y); width: 32px; height: 32px; margin: -16px 0 0 -16px; display: grid; place-items: center; border-radius: 9999px; border: 2px solid #fff; background: var(--accent); color: #fff; font: 500 14px/20px var(--mono); cursor: pointer; box-shadow: 0 2px 8px rgb(0 0 0 / 30%); transition: transform 0.7s var(--ease), background-color 0.7s var(--ease); }
.pin.out-r { left: calc(100% + var(--out)); }
.pin.out-l { left: calc(0px - var(--out)); }
.pin::after { content: ""; position: absolute; inset: -8px; border-radius: 9999px; border: 2px solid var(--accent); opacity: 0; transform: scale(0.6); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.pin:hover, .pin.hot { transform: scale(1.15); background: var(--accent-ink); }
.pin.hot::after { opacity: 0.6; transform: scale(1); }
.pin:active { transform: scale(0.98); }
.keys { margin-top: 24px; border-collapse: collapse; font-size: 14px; line-height: 20px; }
.keys td { padding: 4px 16px 4px 0; color: var(--muted); }
kbd { display: inline-block; min-width: 24px; margin-right: 4px; padding: 2px 8px; border-radius: 6px; background: var(--card); border: 1px solid var(--line); box-shadow: 0 2px 0 var(--line); font: 500 12px/16px var(--mono); color: var(--ink); text-align: center; }
code { font: 500 14px/20px var(--mono); padding: 2px 4px; border-radius: 4px; background: var(--sunk); }

/* privacy */
.privacy { padding: 96px 0; background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.promises { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.promises li { padding-top: 24px; border-top: 2px solid var(--ink); }
.promises .icon { width: 32px; height: 32px; color: var(--accent); }
.promises h3 { margin: 16px 0 8px; font-size: 20px; line-height: 28px; }
.promises p { font-size: 16px; line-height: 24px; color: var(--muted); }
.more { margin-top: 48px; text-align: center; font-weight: 600; font-size: 16px; line-height: 24px; }
.more a { display: inline-flex; align-items: center; gap: 8px; }

/* pricing */
.pricing { padding: 96px 0; }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; max-width: 880px; margin: 0 auto; }
.plan { display: flex; flex-direction: column; gap: 24px; padding: 32px; border-radius: 24px; background: var(--card); border: 1px solid var(--line); }
.plan-soon { background: transparent; }
.plan-top { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.plan h3 { font-size: 24px; line-height: 32px; }
.price span { font-size: 48px; line-height: 48px; font-weight: 700; letter-spacing: -0.03em; }
.badge { padding: 4px 12px; border-radius: 9999px; background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; font-size: 14px; line-height: 20px; }
.plan-note { color: var(--muted); font-size: 16px; line-height: 24px; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; flex: 1; }
.ticks li { display: flex; gap: 12px; font-size: 16px; line-height: 24px; }
.ticks .icon { width: 20px; height: 20px; margin-top: 2px; color: var(--accent); }
.ticks.muted li { color: var(--muted); }
.ticks.muted .icon { color: var(--faint); }
.plan .btn { align-self: flex-start; }
.plan-pro { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 24px 48px rgb(79 63 234 / 12%); }
.price small { margin-left: 4px; color: var(--muted); font-size: 16px; line-height: 24px; font-weight: 600; }
.plan .seg { margin: 0; }
.pro-cta { display: grid; gap: 12px; }

/* faq */
.faq { padding: 96px 0; border-top: 1px solid var(--line); }
.faq-grid { display: grid; grid-template-columns: 4fr 8fr; gap: 64px; align-items: start; }
.faq .section-head { position: sticky; top: 96px; }
.qa details { border-bottom: 1px solid var(--line); }
.qa details:first-child { border-top: 1px solid var(--line); }
.qa summary { list-style: none; display: flex; justify-content: space-between; gap: 16px; padding: 24px 0; font-weight: 700; font-size: 18px; line-height: 28px; cursor: pointer; transition: color 0.7s var(--ease); }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: ""; flex: none; width: 12px; height: 12px; margin-top: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform 0.7s var(--ease); }
.qa details[open] summary::after { transform: rotate(225deg); margin-top: 12px; }
.qa summary:hover { color: var(--accent); }
.qa details p { padding: 0 0 24px; color: var(--muted); max-width: 680px; }

/* get */
.get { padding: 96px 0; background: var(--card); border-top: 1px solid var(--line); }
.get-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; max-width: 960px; margin: 0 auto; }
.get-card { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding: 32px; border-radius: 24px; background: var(--paper); border: 1px solid var(--line); }
.get-card > .icon { width: 40px; height: 40px; color: var(--accent); }
.get-card h3 { font-size: 24px; line-height: 32px; }
.store-note { color: var(--muted); font-size: 16px; line-height: 24px; flex: 1; }
.steps { align-self: stretch; list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; font-size: 16px; line-height: 24px; }
.steps li { position: relative; padding-left: 36px; }
.steps span { position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 9999px; background: var(--ink); color: #fff; font: 500 12px/16px var(--mono); }

/* footer */
.footer { padding: 48px 0; border-top: 1px solid var(--line); }
.foot-grid { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.credit { margin-top: 8px; font-size: 14px; line-height: 20px; color: var(--muted); }
.credit a { color: var(--ink); font-weight: 600; }
.foot-links { display: flex; gap: 24px; margin: 0; padding: 0; list-style: none; font-size: 14px; line-height: 20px; font-weight: 600; }
.foot-links a { color: var(--muted); text-decoration: none; }
.foot-links a:hover, .foot-links a[aria-current="page"] { color: var(--ink); }
.copy { font-size: 14px; line-height: 20px; color: var(--faint); }

/* text pages (privacy, terms, 404) */
.doc { padding: 96px 0; }
.doc .wrap { padding-top: 64px; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: 48px; line-height: 48px; letter-spacing: -0.03em; }
.doc .updated { margin-top: 16px; font: 500 14px/20px var(--mono); color: var(--faint); }
.doc h2 { margin: 48px 0 12px; font-size: 24px; line-height: 32px; }
.doc p, .doc li { color: var(--muted); }
.doc p + p { margin-top: 16px; }
.doc ul { padding-left: 24px; }
.doc .back { margin-top: 48px; }
.notfound { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 96px 24px; }
.notfound .code { font: 500 14px/20px var(--mono); color: var(--faint); }
.notfound h1 { margin: 16px 0; font-size: 48px; line-height: 48px; letter-spacing: -0.03em; }
.notfound p { color: var(--muted); max-width: 480px; margin: 0 auto 32px; }

/* account pages: sign in, account, upgrade (bKash) and admin */
.app { padding: 96px 0; min-height: 100vh; }
.app > .wrap { padding-top: 64px; max-width: 1040px; }
.app > .wide-wrap { max-width: 1200px; }
.app h1 { font-size: 36px; line-height: 40px; letter-spacing: -0.02em; }
.app h2 { font-size: 20px; line-height: 28px; }
.app .sub { margin-top: 12px; color: var(--muted); font-size: 16px; line-height: 24px; }
.card { padding: 32px; border-radius: 24px; background: var(--card); border: 1px solid var(--line); }
.card.narrow { max-width: 560px; margin: 0 auto; }
.card.narrow > .row, .card.narrow > .btn, .card.narrow > .form { margin-top: 24px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card-text { margin-top: 12px; color: var(--muted); font-size: 16px; line-height: 24px; }
.card > .row, .card > .alert, .card > .meters, .card > .form, .card > .pay-list, .card > .pay-steps, .card > .picks { margin-top: 24px; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.fine { font-size: 14px; line-height: 20px; color: var(--muted); }
.fine.center, .center { text-align: center; }
.card > .fine, .app .fine.center { margin-top: 16px; }
.app [data-view] > .alert, .app [data-view] > .row, .app [data-view] > .form, .app [data-view] > .btn { margin-top: 24px; }
.app [data-view] > .fine, .app [data-view] > .below { margin-top: 16px; }
.app h1:focus { outline: none; } /* focused for screen readers when the step changes */
.below { margin-top: 16px; }
.mono { font-family: var(--mono); font-weight: 500; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.round-icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 24px; border-radius: 9999px; background: var(--accent-soft); color: var(--accent); }
.round-icon .icon { width: 24px; height: 24px; }
.round-icon.ok { background: #E3F4EA; color: #17643A; }

.auth-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: start; }
.auth-card { max-width: 480px; width: 100%; }
.auth-aside { padding-top: 32px; }
.auth-aside h2 { font-size: 30px; line-height: 36px; letter-spacing: -0.02em; }
.auth-aside .ticks { margin-top: 24px; }
.auth-shot { margin-top: 32px; border-radius: 16px; border: 1px solid var(--line); box-shadow: 0 1px 2px rgb(0 0 0 / 4%), 0 24px 48px rgb(0 0 0 / 8%); }

/* segmented tabs */
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; margin: 24px 0; padding: 4px; border-radius: 9999px; background: var(--sunk); }
.seg.inline { display: inline-grid; margin: 32px 0 16px; }
.seg button { padding: 8px 16px; border: 0; border-radius: 9999px; background: transparent; color: var(--muted); font: 600 14px/20px var(--font); cursor: pointer; transition: background-color 0.7s var(--ease), color 0.7s var(--ease), box-shadow 0.7s var(--ease); }
.seg button:hover { color: var(--ink); }
.seg button[aria-selected="true"], .seg button[aria-checked="true"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 2px rgb(0 0 0 / 8%), 0 2px 8px rgb(0 0 0 / 4%); }

/* forms */
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 8px; }
.field > label { font-weight: 600; font-size: 14px; line-height: 20px; }
.field small { font-size: 14px; line-height: 20px; color: var(--muted); }
.field small.error { color: #B4232A; }
.input { width: 100%; min-width: 0; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font: 400 16px/24px var(--font); transition: border-color 0.7s var(--ease), box-shadow 0.7s var(--ease); }
.input.mono { font-family: var(--mono); font-weight: 500; letter-spacing: 0.02em; }
.input::placeholder { color: var(--faint); }
.input:hover { border-color: #CFCCC3; }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.input[aria-invalid="true"] { border-color: #D93A40; }
.input[aria-invalid="true"]:focus { box-shadow: 0 0 0 4px #FBE3E4; }
.input-sm { padding: 4px 12px; font-size: 14px; line-height: 20px; border-radius: 8px; }
select.input { appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath fill='%235E5D58' d='M213.7 101.7l-80 80a8 8 0 0 1-11.4 0l-80-80a8 8 0 0 1 11.4-11.4L128 164.7l74.3-74.4a8 8 0 0 1 11.4 11.4z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; }
.pw { position: relative; display: block; }
.pw .input { padding-right: 48px; }
.pw-toggle { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; transition: color 0.7s var(--ease), background-color 0.7s var(--ease); }
.pw-toggle:hover, .pw-toggle.on { color: var(--ink); background: var(--sunk); }
.pw-toggle .icon { width: 20px; height: 20px; }
.alert { padding: 12px 16px; border-radius: 12px; font-size: 14px; line-height: 20px; background: var(--sunk); color: var(--ink); }
.alert.error { background: #FCEBEC; color: #8E1A20; }
.alert.ok { background: #E3F4EA; color: #145533; }
.alert.info { background: var(--accent-soft); color: var(--accent-ink); }
.linklike { padding: 0; border: 0; background: none; color: var(--accent); font: 600 14px/20px var(--font); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; cursor: pointer; }
.linklike:hover { color: var(--accent-ink); }
.or { display: flex; align-items: center; gap: 12px; margin: 16px 0; color: var(--faint); font-size: 14px; line-height: 20px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.btn-block { display: flex; width: 100%; justify-content: center; }
.btn-outline { background: var(--card); border-color: var(--line); color: var(--ink); }
.btn-outline:hover { background: var(--sunk); transform: translateY(-2px); }
.btn-danger { background: #C42B30; color: #fff; }
.btn-danger:hover { background: #A61F24; transform: translateY(-2px); }
.btn.confirm { background: var(--ink); color: #fff; }
.btn[aria-busy="true"] { cursor: progress; }
.btn .g { width: 20px; height: 20px; }
.btn-sm { padding: 4px 12px; }

/* skeleton while loading */
.sk-stack { display: grid; gap: 16px; }
.sk-stack.wide { gap: 24px; }
.sk { display: block; border-radius: 12px; background: var(--sunk); animation: sk 1.6s var(--ease) infinite; }
.sk-title { width: 64%; height: 40px; }
.sk-line { width: 88%; height: 24px; }
.sk-tabs { height: 48px; border-radius: 9999px; }
.sk-input { height: 72px; }
.sk-btn { height: 40px; border-radius: 9999px; }
.sk-card { height: 240px; border-radius: 24px; }
@keyframes sk { 50% { opacity: 0.5; } }

/* account */
.app-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.app-head + .alert { margin-bottom: 24px; }
.acct-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
.span-2 { grid-column: 1 / -1; }
.pill { display: inline-flex; align-items: center; padding: 4px 12px; border-radius: 9999px; background: var(--sunk); color: var(--muted); font-weight: 600; font-size: 14px; line-height: 20px; white-space: nowrap; }
.pill.pro, .pill.approved { background: #E3F4EA; color: #145533; }
.pill.pending { background: #FFF3D6; color: #7A4B00; }
.pill.rejected { background: #FCEBEC; color: #8E1A20; }
.meters { display: grid; gap: 16px; }
.meter-top { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; line-height: 20px; font-weight: 600; }
.bar { height: 8px; margin-top: 8px; border-radius: 9999px; background: var(--sunk); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; border-radius: 9999px; background: var(--accent); transition: width 0.9s var(--ease); }
.bar.full i { background: #D93A40; }
.pay-list { list-style: none; padding: 0; display: grid; gap: 12px; }
.pay-item { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 16px; border-radius: 16px; border: 1px solid var(--line); }
.pay-item > div { display: grid; gap: 4px; min-width: 0; }
.pay-item strong { font-size: 16px; line-height: 24px; }
.pay-item .share-title { font-weight: 700; font-size: 16px; line-height: 24px; text-decoration: none; color: var(--ink); }
.pay-item .share-title:hover { color: var(--accent); }
.pay-item .row { flex-wrap: nowrap; flex: none; }
.card.danger { border-color: #F2C9CB; }
.card.danger .btn { justify-self: start; }
.card .form .btn:not(.btn-block) { justify-self: start; }

/* account dashboard */
.dash-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.dash-id { display: flex; align-items: center; gap: 16px; min-width: 0; }
.dash-id > div { min-width: 0; }
.app .dash-id .sub { margin-top: 4px; overflow-wrap: anywhere; }
.avatar { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 9999px; background: var(--accent); color: #fff; font-weight: 700; font-size: 20px; line-height: 28px; }
.dash-tabs { position: sticky; top: 88px; z-index: 5; display: flex; gap: 4px; width: max-content; max-width: 100%; margin: 24px 0; padding: 4px; overflow-x: auto; border-radius: 9999px; background: var(--sunk); box-shadow: 0 0 0 4px var(--paper); scrollbar-width: none; }
.dash-tabs::-webkit-scrollbar { display: none; }
.narrow-only { display: none; }
.dash-tabs a { flex: none; padding: 8px 16px; border-radius: 9999px; color: var(--muted); font-weight: 600; font-size: 14px; line-height: 20px; text-decoration: none; transition: background-color 0.7s var(--ease), color 0.7s var(--ease), box-shadow 0.7s var(--ease); }
.dash-tabs a:hover { color: var(--ink); }
.dash-tabs a[aria-current="true"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 2px rgb(0 0 0 / 8%), 0 2px 8px rgb(0 0 0 / 4%); }
.app [data-view="main"] > .alert { margin: 0 0 24px; }
.dash-section { scroll-margin-top: 152px; }
.dash-section + .dash-section { margin-top: 48px; }
.section-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tile { display: flex; flex-direction: column; gap: 16px; padding: 24px; border-radius: 24px; background: var(--card); border: 1px solid var(--line); }
.tile-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.tile-text { flex: 1; color: var(--muted); font-size: 16px; line-height: 24px; }
.tile > .btn, .tile > .row { align-self: flex-start; }
.tile .meters { gap: 12px; }
.help-links { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 16px 0 0; padding: 0; }
.help-links a { display: flex; align-items: center; gap: 12px; height: 100%; padding: 16px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: transform 0.7s var(--ease), border-color 0.7s var(--ease); }
.help-links a:hover { border-color: var(--accent); transform: translateY(-2px); }
.help-links a:active { transform: scale(0.98); }
.help-links .icon { flex: none; width: 24px; height: 24px; color: var(--accent); }
.help-links span { display: grid; color: var(--muted); font-size: 14px; line-height: 20px; }
.help-links b { color: var(--ink); font-size: 16px; line-height: 24px; }
.empty-card { display: flex; align-items: flex-start; gap: 16px; padding: 24px; border-radius: 24px; background: var(--card); border: 1px dashed #CFCCC3; }
.empty-card .round-icon { flex: none; margin: 0; }
.empty-card p { color: var(--muted); font-size: 16px; line-height: 24px; }
.empty-card b { color: var(--ink); }
.empty-card a { display: inline-block; margin-top: 8px; font-weight: 600; font-size: 14px; line-height: 20px; }
.share-grid { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; }
.share-card { display: flex; flex-direction: column; min-width: 0; border-radius: 16px; background: var(--card); border: 1px solid var(--line); overflow: hidden; }
.share-thumb { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #1B1B22; }
.share-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.share-thumb::after { content: ""; position: absolute; left: 50%; top: 50%; width: 48px; height: 48px; margin: -24px 0 0 -24px; border-radius: 9999px; background: rgb(255 255 255 / 92%) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23121212' d='M9 6.5v11l9-5.5z'/%3E%3C/svg%3E") center / 24px no-repeat; box-shadow: 0 8px 24px rgb(0 0 0 / 24%); transition: transform 0.7s var(--ease); }
.share-thumb:hover img { transform: scale(1.04); }
.share-thumb:hover::after { transform: scale(1.08); }
.share-thumb.waiting { display: grid; place-items: center; color: #fff; font-weight: 600; font-size: 14px; line-height: 20px; }
.share-thumb.waiting::after { display: none; }
.share-body { display: grid; gap: 4px; padding: 16px 16px 0; min-width: 0; }
.share-body .share-title { color: var(--ink); font-weight: 700; font-size: 16px; line-height: 24px; text-decoration: none; overflow-wrap: anywhere; }
.share-body a.share-title:hover { color: var(--accent); }
.share-url { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.share-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding: 16px; }
.settings-card { display: grid; gap: 24px; }
.setting h3 { margin-bottom: 12px; font-size: 18px; line-height: 28px; }
.settings-card .form { max-width: 420px; }
.danger-zone { padding: 16px; border-radius: 16px; border: 1px solid #F2C9CB; }
.danger-zone summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #8E1A20; font-weight: 600; font-size: 16px; line-height: 24px; cursor: pointer; list-style: none; }
.danger-zone summary::-webkit-details-marker { display: none; }
.danger-zone summary::after { content: ""; width: 8px; height: 8px; margin-right: 4px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform 0.7s var(--ease); }
.danger-zone[open] summary::after { transform: rotate(225deg); }
.danger-zone .card-text { margin-top: 12px; }
.danger-zone .form { margin-top: 16px; }
@media (max-width: 1024px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tiles .tile:last-child { grid-column: 1 / -1; }
  .help-links, .share-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .tiles, .help-links, .share-grid { grid-template-columns: minmax(0, 1fr); }
  .tile, .empty-card { padding: 16px; }
  .dash-head .row { width: 100%; }
  .dash-tabs { width: 100%; }
  .wide-only { display: none; }
  .narrow-only { display: inline; }
  .dash-tabs a { flex: 1 0 auto; padding: 8px 12px; text-align: center; white-space: nowrap; }
}

/* upgrade */
.flow { list-style: none; margin: 0; padding: 0; display: grid; gap: 24px; }
.flow h2 { display: flex; align-items: center; gap: 12px; }
.num { display: grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 9999px; background: var(--ink); color: #fff; font: 500 14px/20px var(--mono); }
.picks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.pick { position: relative; display: grid; gap: 4px; padding: 24px; border-radius: 16px; border: 1px solid var(--line); background: var(--card); cursor: pointer; transition: border-color 0.7s var(--ease), box-shadow 0.7s var(--ease), transform 0.7s var(--ease); }
.pick:hover { border-color: #CFCCC3; transform: translateY(-2px); }
.pick input { position: absolute; opacity: 0; pointer-events: none; }
.pick:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 8px 24px rgb(79 63 234 / 12%); }
.pick:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.pick-name { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-weight: 700; font-size: 16px; line-height: 24px; }
.pick-price { font-size: 30px; line-height: 36px; font-weight: 700; letter-spacing: -0.02em; }
.pick-note { color: var(--muted); font-size: 14px; line-height: 20px; }
.tag { padding: 2px 8px; border-radius: 9999px; background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; font-size: 12px; line-height: 16px; }
.pay-steps { margin: 0; padding-left: 24px; display: grid; gap: 16px; color: var(--ink); font-size: 16px; line-height: 24px; }
.pay-steps li::marker { font-family: var(--mono); color: var(--muted); }
.pay-steps li > span:first-child { display: block; }
.copy-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 8px; }
.mono.big { font-size: 24px; line-height: 32px; letter-spacing: 0.02em; }

/* admin */
.stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; margin: 0; }
.stats div { padding: 24px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.stats dt { color: var(--muted); font-size: 14px; line-height: 20px; font-weight: 600; }
.stats dd { margin: 8px 0 0; font-size: 30px; line-height: 36px; }
.table-wrap { margin-bottom: 24px; border-radius: 16px; border: 1px solid var(--line); background: var(--card); overflow-x: auto; }
.pay-table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 20px; }
.pay-table th { padding: 12px 16px; text-align: left; color: var(--muted); font-weight: 600; background: var(--paper); border-bottom: 1px solid var(--line); white-space: nowrap; }
.pay-table td { padding: 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.pay-table tr:last-child td { border-bottom: 0; }
.pay-table td .fine { display: block; margin-top: 4px; }
.pay-table .actions { white-space: nowrap; text-align: right; }
.pay-table td.mono { white-space: nowrap; }
.pay-table .actions > * + * { margin-left: 8px; }
.pay-table .actions .input-sm { width: 224px; }
.empty-note { padding: 32px 16px; text-align: center; color: var(--muted); font-size: 16px; line-height: 24px; }
.inline-form { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) auto; align-items: end; }
.admin-h2 { margin-top: 48px; font-size: 24px; line-height: 32px; }
.admin-h2 + .seg.inline { margin-top: 16px; }
.admin-head2 { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.input-search { width: 320px; max-width: 100%; padding: 8px 16px; }
.pay-table .badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }

@media (max-width: 1024px) {
  .auth-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .auth-card { margin: 0 auto; }
  .auth-aside { max-width: 560px; margin: 0 auto; padding-top: 0; }
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .acct-grid { grid-template-columns: minmax(0, 1fr); }
  .picks { grid-template-columns: minmax(0, 1fr); }
  .pay-table thead { display: none; }
  .pay-table, .pay-table tbody, .pay-table tr, .pay-table td { display: block; }
  .pay-table tr { padding: 8px 0; border-bottom: 1px solid var(--line); }
  .pay-table tr:last-child { border-bottom: 0; }
  .pay-table td { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 12px; padding: 8px 16px; border: 0; }
  .pay-table td::before { content: attr(data-label); color: var(--muted); font: 600 14px/20px var(--font); }
  .pay-table td > * { grid-column: 2; justify-self: start; min-width: 0; overflow-wrap: anywhere; }
  .pay-table td .fine { margin-top: 0; }
  .pay-table .actions { display: flex; flex-wrap: wrap; gap: 8px; text-align: left; }
  .pay-table .actions > * + * { margin-left: 0; }
  .pay-table .actions .input-sm { width: 100%; }
  .inline-form { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .app { padding: 80px 0 64px; }
  .app > .wrap { padding-top: 48px; }
  .app h1 { font-size: 30px; line-height: 36px; }
  .card { padding: 24px; }
  .auth-aside h2 { font-size: 24px; line-height: 32px; }
  .app-head { align-items: flex-start; }
  .mono.big { font-size: 20px; line-height: 28px; }
  .stats dd { font-size: 24px; line-height: 32px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pay-item { flex-direction: column; }
  .pay-item .row { flex-wrap: wrap; }
}

/* contact page */
.contact-lede { margin-top: 16px; font-size: 20px; line-height: 28px; }
.mail-card { display: flex; align-items: center; gap: 16px; margin-top: 32px; padding: 24px; border-radius: 24px; background: var(--card); border: 1px solid var(--line); }
.mail-card .round-icon { flex: none; margin: 0; }
.mail-card > div { flex: 1; }
.doc .mail-label { font: 500 12px/16px var(--mono); color: var(--faint); text-transform: uppercase; letter-spacing: 0.08em; }
.mail-address { display: block; margin-top: 4px; color: var(--ink); font-weight: 700; font-size: 24px; line-height: 32px; text-decoration: none; overflow-wrap: break-word; transition: color 0.7s var(--ease); }
.mail-address:hover { color: var(--accent); }
.doc .reply-note { margin-top: 12px; font-size: 14px; line-height: 20px; color: var(--faint); }
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.contact-topic { padding: 24px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.contact-topic h3 { display: flex; align-items: center; gap: 8px; font-size: 18px; line-height: 28px; }
.contact-topic h3 .icon { width: 20px; height: 20px; color: var(--accent); }
.doc .contact-topic p { margin-top: 8px; font-size: 16px; line-height: 24px; }
@media (max-width: 640px) {
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .mail-card { flex-wrap: wrap; padding: 16px; }
  .mail-card .btn { margin-left: 64px; }
  .mail-address { font-size: 20px; line-height: 28px; }
}

/* the sign-in link check on the account page */
.confirm-email { margin-top: 12px; font-weight: 700; font-size: 18px; line-height: 28px; color: var(--ink); overflow-wrap: anywhere; }

/* the note under the ZIP download */
.fine-note { font-size: 14px; line-height: 20px; color: var(--muted); }

/* download toast: what to do after the ZIP arrives */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 60; width: min(560px, calc(100% - 32px)); display: flex; align-items: flex-start; gap: 12px; padding: 16px; border-radius: 16px; background: var(--ink); color: #fff; font-size: 16px; line-height: 24px; box-shadow: 0 24px 64px rgb(0 0 0 / 24%); opacity: 0; transform: translate(-50%, 16px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast p { flex: 1; color: #fff; }
.toast a { color: #fff; font-weight: 600; }
.toast button { flex: none; display: grid; place-items: center; width: 32px; height: 32px; margin: -4px -4px -4px 0; border: 0; border-radius: 9999px; background: rgb(255 255 255 / 12%); color: #fff; font: 600 16px/24px var(--font); cursor: pointer; transition: background-color 0.7s var(--ease); }
.toast button:hover { background: rgb(255 255 255 / 24%); }

/* documentation */
.docs { padding: 96px 0; }
.docs .docs-grid { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 64px; align-items: start; padding-top: 64px; }
.toc { position: sticky; top: 112px; max-height: calc(100vh - 128px); overflow-y: auto; }
.toc-box summary { list-style: none; margin-bottom: 12px; padding: 0 12px; font: 500 12px/16px var(--mono); color: var(--faint); text-transform: uppercase; letter-spacing: 0.08em; }
.toc-box summary::-webkit-details-marker { display: none; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.toc a { display: block; padding: 4px 12px; border-radius: 8px; color: var(--muted); font-weight: 600; font-size: 14px; line-height: 20px; text-decoration: none; transition: color 0.7s var(--ease), background-color 0.7s var(--ease); }
.toc a:hover { color: var(--ink); background: var(--sunk); }
.toc a[aria-current="true"] { color: var(--accent-ink); background: var(--accent-soft); }
.docs-body { max-width: 760px; min-width: 0; }
.docs-head h1 { font-size: 48px; line-height: 48px; letter-spacing: -0.03em; }
.docs-lede { margin-top: 16px; font-size: 20px; line-height: 28px; color: var(--muted); }
.docs .updated { margin-top: 16px; font: 500 14px/20px var(--mono); color: var(--faint); }
.docs-body section { margin-top: 48px; padding-top: 48px; border-top: 1px solid var(--line); }
.docs-body h2 { margin-bottom: 16px; font-size: 30px; line-height: 36px; letter-spacing: -0.02em; }
.docs-body h3 { margin: 32px 0 8px; font-size: 20px; line-height: 28px; }
.docs-body p, .docs-body li { color: var(--muted); }
.docs-body b { color: var(--ink); font-weight: 600; }
.docs-body * + p, .docs-body p + ul, .docs-body p + ol { margin-top: 16px; }
.docs-body h3 + p, .docs-body h3 + ul, .docs-body h3 + ol { margin-top: 0; }
.docs-body ul, .docs-body ol { margin: 16px 0 0; padding-left: 24px; display: grid; gap: 8px; }
.docs-body .numbered { list-style: none; padding-left: 0; counter-reset: step; }
.numbered > li { position: relative; padding-left: 40px; counter-increment: step; }
.numbered > li::before { content: counter(step); position: absolute; left: 0; top: 2px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 9999px; background: var(--ink); color: #fff; font: 500 12px/16px var(--mono); }
.note { display: flex; gap: 12px; margin-top: 16px; padding: 16px; border-radius: 16px; background: var(--accent-soft); font-size: 16px; line-height: 24px; }
.note > span { color: var(--ink); }
.note .icon { width: 20px; height: 20px; margin-top: 2px; color: var(--accent); }
.note.warn { background: #FDF1E3; }
.note.warn .icon { color: #B45309; }
.table-wrap { margin-top: 16px; overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
.docs table { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 24px; }
.docs th, .docs td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.docs tbody tr:last-child > * { border-bottom: 0; }
.docs thead th { background: var(--sunk); color: var(--muted); font-size: 14px; line-height: 20px; font-weight: 600; }
.docs tbody th { color: var(--ink); font-weight: 600; }
.docs td { color: var(--muted); }
.docs td kbd { margin-bottom: 4px; }
.docs .qa { margin-top: 16px; }
.docs .qa summary { font-size: 18px; line-height: 28px; }
.docs .qa details p { padding-bottom: 24px; }
@media (min-width: 1025px) {
  .toc-box summary { pointer-events: none; }
}
@media (max-width: 1024px) {
  .docs .docs-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .toc { position: static; max-height: none; overflow: visible; }
  .toc-box { padding: 12px 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
  .toc-box summary { display: flex; justify-content: space-between; align-items: center; margin: 0; padding: 4px 0; cursor: pointer; }
  .toc-box summary::after { content: ""; width: 8px; height: 8px; margin-right: 4px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform 0.7s var(--ease); }
  .toc-box[open] summary { margin-bottom: 12px; }
  .toc-box[open] summary::after { transform: rotate(225deg); }
  .toc ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .toc a { padding: 8px 12px; }
}
@media (max-width: 640px) {
  .docs { padding: 80px 0 64px; }
  .docs .docs-grid { padding-top: 48px; }
  .docs-head h1 { font-size: 36px; line-height: 40px; }
  .docs-lede { font-size: 18px; line-height: 28px; }
  .docs-body section { margin-top: 40px; padding-top: 40px; }
  .docs-body h2 { font-size: 24px; line-height: 32px; }
  .toc ol { grid-template-columns: minmax(0, 1fr); }
  .docs th, .docs td { padding: 8px 12px; }
  .toast { bottom: 16px; }
}

/* scroll reveal: a heavy fade up as things arrive */
.js .reveal { opacity: 0; transform: translateY(64px); filter: blur(12px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease), filter 0.9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; filter: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; transition-delay: 0ms !important; }
  .js .reveal { opacity: 1; transform: none; filter: none; }
  .js .words .w { color: var(--ink); }
  .sk { animation: none; }
}

@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .spec { display: grid; grid-template-columns: repeat(5, auto); gap: 0 24px; padding: 12px 16px; }
  .spec div { flex-direction: column; gap: 2px; border: 0; padding: 0; }
  .spec dd { text-align: left; }
  .chapter, .chapter.flip { grid-template-columns: 1fr; gap: 32px; }
  .chapter.flip .chapter-text { order: 0; }
  .chapter .shot { order: -1; }
  .promises { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .faq-grid { grid-template-columns: 1fr; gap: 32px; }
  .faq .section-head { position: static; }
}
@media (max-width: 860px) {
  .nav-links, .nav-signin { display: none; }
  .burger { display: block; }
  .nav { gap: 16px; padding-left: 16px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; line-height: 24px; }
  .wrap { padding: 0 16px; }
  .hero { padding: 80px 0 64px; }
  .hero > .wrap:first-child { padding-top: 48px; }
  .hero h1 { font-size: 36px; line-height: 40px; }
  .lede { font-size: 18px; line-height: 28px; }
  .spec { grid-template-columns: 1fr 1fr; gap: 12px 24px; }
  .play { left: 12px; bottom: 12px; padding: 4px 12px 4px 4px; font-size: 14px; line-height: 20px; gap: 8px; }
  .play-dot { width: 32px; height: 32px; }
  .pins { --out: 16px; }
  .tagline { padding: 64px 0; }
  .words { font-size: 30px; line-height: 36px; }
  .section-head { margin-bottom: 40px; }
  .section-head h2 { font-size: 36px; line-height: 40px; }
  .manual, .privacy, .pricing, .faq, .get { padding: 64px 0; }
  .chapter { padding: 48px 0; }
  .chapter h3 { font-size: 30px; line-height: 36px; }
  .shot.stage { padding: 24px; }
  .pin { width: 24px; height: 24px; margin: -12px 0 0 -12px; font-size: 12px; line-height: 16px; }
  .promises, .plans, .get-grid { grid-template-columns: minmax(0, 1fr); }
  .get-card .btn { white-space: normal; }
  .plan, .get-card { padding: 24px; }
  .doc { padding: 80px 0 64px; }
  .doc .wrap { padding-top: 48px; }
  .doc h1, .notfound h1 { font-size: 36px; line-height: 40px; }
}
