/* Tuzu Teleprompter — design system
   Tokens → base → layout → components → tools. System font stack (no web-font download). */

:root {
  --violet-50: #f6f3ff;
  --violet-100: #ece6ff;
  --violet-200: #d9ccff;
  --violet-500: #7c3aed;
  --violet-600: #6d28d9;
  --violet-700: #5b21b6;
  --violet-900: #2a1366;
  --amber: #fbbf24;
  --amber-ink: #7a4d00;
  --ink: #15112a;
  --text: #34304a;
  --muted: #625d7a;
  --line: #e7e3f3;
  --bg: #fcfbff;
  --surface: #ffffff;
  --ok: #0f7b4a;
  --danger: #b42318;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(21, 17, 42, .06), 0 1px 3px rgba(21, 17, 42, .04);
  --shadow: 0 10px 30px -12px rgba(43, 19, 102, .22), 0 2px 6px rgba(21, 17, 42, .05);
  --shadow-lg: 0 30px 60px -20px rgba(43, 19, 102, .35);

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 64px;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; font: 400 17px/1.65 var(--font); color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--violet-600); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--violet-700); }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 1.4rem + 3vw, 3.6rem); font-weight: 800; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.35rem); font-weight: 750; }
h3 { font-size: 1.22rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.25em; margin: 0 0 1em; }
li { margin-bottom: .35em; }
strong { color: var(--ink); font-weight: 650; }
kbd { font: 600 .82em/1 var(--mono); padding: .25em .5em; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; background: var(--surface); color: var(--ink); white-space: nowrap; }
code { font: .9em var(--mono); background: var(--violet-50); padding: .1em .35em; border-radius: 5px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }
:focus-visible { outline: 3px solid var(--violet-500); outline-offset: 2px; border-radius: 4px; }
.ico { flex: none; display: inline-block; vertical-align: middle; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; }
.skip:focus { top: 12px; color: #fff; }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: 780px; }
.section { padding-block: clamp(48px, 7vw, 96px); }
.section--tint { background: linear-gradient(180deg, var(--violet-50), var(--bg)); }
.section--tight { padding-block: clamp(32px, 4vw, 56px); }
.section__head { max-width: 720px; margin-bottom: clamp(28px, 4vw, 48px); }
.section__head--center { margin-inline: auto; text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 700 .78rem/1 var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--violet-600); margin-bottom: 14px; }
.lede { font-size: clamp(1.08rem, 1rem + .4vw, 1.25rem); color: var(--muted); max-width: 46ch; }
.grid { display: grid; gap: clamp(16px, 2.5vw, 28px); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.split { display: grid; gap: clamp(28px, 5vw, 72px); align-items: center; grid-template-columns: 1fr; }
@media (min-width: 900px) { .split { grid-template-columns: 1.05fr .95fr; } .split--rev > :first-child { order: 2; } }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(252, 251, 255, .86); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid rgba(231, 227, 243, .8); }
.site-header__inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 800 1.12rem/1 var(--font-display); color: var(--ink); text-decoration: none; letter-spacing: -0.02em; }
.brand img { border-radius: 8px; }
.brand__sub { font-weight: 500; color: var(--muted); }
.brand--light, .brand--light .brand__sub { color: #fff; }
.brand--light .brand__sub { opacity: .7; }
.site-nav { display: flex; align-items: center; gap: 18px; }
.site-nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.site-nav li { margin: 0; }
.site-nav ul a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--text); text-decoration: none; font-weight: 550; font-size: .95rem; }
.site-nav ul a:hover { background: var(--violet-50); color: var(--ink); }
.site-nav ul a[aria-current="page"] { color: var(--violet-700); background: var(--violet-50); }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; border-radius: 10px; cursor: pointer; padding: 12px 10px; flex-direction: column; justify-content: space-between; }
.nav-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
@media (max-width: 960px) {
  .nav-toggle { display: flex; }
  .site-nav { position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 12px; background: var(--surface); padding: 12px var(--gutter) 20px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .18s, transform .18s, visibility .18s; }
  .site-nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .site-nav ul { flex-direction: column; }
  .site-nav ul a { padding: 12px; font-size: 1.05rem; }
}

/* ---------- breadcrumbs ---------- */
.crumbs { padding-top: 18px; font-size: .88rem; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; color: var(--muted); }
.crumbs li { margin: 0; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--violet-600); text-decoration: underline; }

/* ---------- buttons ---------- */
.btn { --b: var(--violet-600); display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1.5px solid transparent; font: 650 1rem/1 var(--font); text-decoration: none; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s, color .15s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--b); color: #fff; box-shadow: 0 8px 20px -8px rgba(109, 40, 217, .7); }
.btn--primary:hover { background: var(--violet-700); color: #fff; box-shadow: 0 12px 26px -10px rgba(109, 40, 217, .8); }
.btn--ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--violet-200); color: var(--ink); background: var(--violet-50); }
.btn--light { background: #fff; color: var(--violet-700); }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: .92rem; }
.btn--lg { min-height: 56px; padding: 0 28px; font-size: 1.06rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; text-decoration: none; }
.link-arrow:hover .ico { transform: translateX(3px); }
.link-arrow .ico { transition: transform .15s; }
.appstore { display: inline-block; line-height: 0; border-radius: 8px; }
.appstore img { height: 48px; width: auto; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(36px, 6vw, 84px) clamp(48px, 7vw, 96px); }
.hero::before { content: ""; position: absolute; inset: -30% -10% auto 40%; height: 120%; background: radial-gradient(closest-side, rgba(124, 58, 237, .18), transparent 70%); pointer-events: none; }
.hero h1 { max-width: 15ch; }
.hero .lede { margin-bottom: 28px; }
.hero__points { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 10px 20px; color: var(--muted); font-size: .95rem; }
.hero__points li { display: inline-flex; align-items: center; gap: 7px; margin: 0; }
.hero__points .ico { color: var(--ok); }
.hero--page h1 { max-width: 22ch; }
.hero--page .lede { max-width: 60ch; }
.hero.section--tight { padding-block: clamp(20px, 3vw, 40px) clamp(20px, 3vw, 36px); }
.hero.section--tight h1 { margin-bottom: .3em; }
.hero.section--tight .lede { margin-bottom: 0; }

/* Phone showcase */
.showcase { position: relative; display: flex; justify-content: center; align-items: flex-end; gap: 0; min-height: 420px; }
.showcase .shot { width: min(62vw, 270px); border-radius: 28px; box-shadow: var(--shadow-lg); }
.showcase .shot + .shot { width: min(48vw, 220px); margin-left: -70px; margin-bottom: 30px; transform: rotate(5deg); }
.showcase .shot:first-child { position: relative; z-index: 1; transform: rotate(-3deg); }

/* ---------- cards ---------- */
.cards { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.card { display: flex; flex-direction: column; gap: 8px; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.card h3 { margin: 0; }
.card p { margin: 0; color: var(--muted); }
.card__icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--violet-50); color: var(--violet-600); margin-bottom: 6px; }
.card--link { text-decoration: none; color: inherit; transition: transform .18s, box-shadow .18s, border-color .18s; }
.card--link:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--violet-200); color: inherit; }
.card__title { font: 700 1.1rem/1.3 var(--font-display); color: var(--ink); }
.card__text { color: var(--muted); font-size: .95rem; flex: 1; }
.card__more { display: inline-flex; align-items: center; gap: 6px; color: var(--violet-600); font-weight: 650; font-size: .95rem; margin-top: 6px; }
.tag { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--violet-50); color: var(--violet-700); align-self: flex-start; }
.tag--amber { background: #fff4d6; color: var(--amber-ink); }

/* Choice pair (free tool vs app) */
.choice { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.choice .card { padding: 28px; }
.choice ul { list-style: none; padding: 0; margin: 8px 0 18px; }
.choice li { display: flex; gap: 10px; align-items: flex-start; }
.choice li .ico { color: var(--violet-600); margin-top: 4px; }
.choice .card--feature { background: linear-gradient(160deg, var(--violet-900), var(--violet-600)); color: #e9e3ff; border: 0; }
.choice .card--feature h3, .choice .card--feature strong { color: #fff; }
.choice .card--feature p { color: #d9ccff; }
.choice .card--feature li .ico { color: var(--amber); }

/* Steps */
.steps { counter-reset: step; list-style: none; padding: 0; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.steps > li { counter-increment: step; position: relative; padding: 22px 22px 22px 70px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin: 0; }
.steps > li::before { content: counter(step); position: absolute; left: 22px; top: 22px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--violet-600); color: #fff; font-weight: 750; font-size: .95rem; }
.steps h3 { font-size: 1.05rem; margin-bottom: 4px; }
.steps p { margin: 0; color: var(--muted); font-size: .96rem; }

/* Feature list with icons */
.feature-list { list-style: none; padding: 0; display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.feature-list li { margin: 0; display: grid; grid-template-columns: 44px 1fr; gap: 14px; }
.feature-list h3 { font-size: 1.05rem; margin: 2px 0 4px; }
.feature-list p { margin: 0; color: var(--muted); font-size: .96rem; }

/* Comparison table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--violet-50); color: var(--ink); font-weight: 700; white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
td .ico { color: var(--ok); }

/* Callout */
.note { padding: 18px 20px; border-radius: var(--radius); background: var(--violet-50); border: 1px solid var(--violet-100); color: var(--text); margin: 1.5em 0; }
.note--amber { background: #fff8e6; border-color: #fde7a8; }
.note > :last-child { margin-bottom: 0; }

/* FAQ */
.faq h2 { margin-bottom: 24px; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative; font: 650 1.06rem/1.4 var(--font); color: var(--ink); }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--violet-600); border-bottom: 2px solid var(--violet-600); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq__item[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq__a { padding: 0 0 20px; color: var(--text); }
.faq__a > :last-child { margin-bottom: 0; }

/* CTA band */
.cta-band { position: relative; overflow: hidden; display: grid; gap: 24px; align-items: center; padding: clamp(28px, 4vw, 48px); border-radius: var(--radius-lg); background: radial-gradient(120% 140% at 100% 0%, #8b5cf6 0%, var(--violet-700) 45%, var(--violet-900) 100%); color: #e9e3ff; }
@media (min-width: 820px) { .cta-band { grid-template-columns: 1fr auto; } }
.cta-band h2 { color: #fff; margin-bottom: 8px; }
.cta-band p { margin: 0; max-width: 56ch; color: #d9ccff; }
.cta-band__actions { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; position: relative; z-index: 1; }
.cta-band .link-arrow { color: #fff; }
.cta-band__icon { position: absolute; right: -16px; bottom: -22px; width: 140px; height: 140px; border-radius: 32px; opacity: .14; transform: rotate(-12deg); }

/* Prose (guides and long-form) */
.prose { font-size: 1.06rem; }
.prose h2 { margin-top: 2.2em; font-size: clamp(1.45rem, 1.2rem + 1vw, 1.9rem); }
.prose h3 { margin-top: 1.8em; }
.prose li { margin-bottom: .5em; }
.prose img { border-radius: var(--radius); }
.prose blockquote { margin: 1.5em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--violet-200); color: var(--muted); }
.prose .table-wrap { margin: 1.5em 0; }
.prose figure { margin: 2em 0; }
.prose figcaption { color: var(--muted); font-size: .9rem; margin-top: 8px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--muted); font-size: .92rem; margin-top: 4px; }
.toc { padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); margin: 28px 0; }
.toc strong { display: block; margin-bottom: 8px; font-size: .9rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.toc ol { margin: 0; }
.answer { font-size: 1.12rem; padding: 20px 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--violet-600); box-shadow: var(--shadow-sm); }
.script-sample { font: 1rem/1.7 var(--mono); white-space: pre-wrap; padding: 20px; background: #15112a; color: #f2eeff; border-radius: var(--radius); overflow-x: auto; }

/* Related */
.related { padding-top: 0; }
.related h2 { font-size: 1.4rem; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #b9b3cf; margin-top: clamp(40px, 6vw, 80px); padding-top: 56px; font-size: .95rem; }
.site-footer a { color: #ddd7f0; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer__grid { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); }
.site-footer__brand { grid-column: 1 / -1; max-width: 420px; }
@media (min-width: 1000px) { .site-footer__grid { grid-template-columns: 1.6fr repeat(4, 1fr); } .site-footer__brand { grid-column: auto; } }
.site-footer__brand p { margin: 14px 0 18px; }
.site-footer__h { font: 700 .8rem/1 var(--font); text-transform: uppercase; letter-spacing: .08em; color: #8f88aa; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .08); margin-top: 40px; padding-block: 22px 28px; font-size: .84rem; color: #8f88aa; }
.site-footer__bottom p { margin: 0; }

/* ---------- forms ---------- */
label { font-weight: 600; color: var(--ink); font-size: .92rem; }
input[type="text"], input[type="number"], input[type="email"], select, textarea { font: inherit; color: var(--ink); background: var(--surface); border: 1.5px solid var(--line); border-radius: 10px; padding: 10px 12px; width: 100%; transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--violet-500); box-shadow: 0 0 0 4px rgba(124, 58, 237, .15); }
input[type="range"] { width: 100%; accent-color: var(--violet-600); }
input[type="checkbox"] { accent-color: var(--violet-600); width: 18px; height: 18px; }
.field { display: grid; gap: 6px; }
.field__row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.field output { font: 600 .9rem var(--mono); color: var(--violet-700); }
.check { display: inline-flex; align-items: center; gap: 8px; font-weight: 550; cursor: pointer; }
.seg { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--violet-50); border: 1px solid var(--line); }
.seg button { border: 0; background: transparent; padding: 7px 12px; border-radius: 8px; font: 600 .88rem var(--font); color: var(--text); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--violet-700); box-shadow: var(--shadow-sm); }

/* ======================================================================
   Online teleprompter tool
   ====================================================================== */
.tool { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
.tool__grid { display: grid; grid-template-columns: 1fr; }
@media (min-width: 960px) { .tool__grid { grid-template-columns: minmax(0, 1fr) 330px; } }
.tool__editor { display: flex; flex-direction: column; min-width: 0; }
.tool__bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--line); background: #fdfcff; }
.tool__bar .btn { min-height: 36px; padding: 0 12px; font-size: .88rem; }
.tool__stats { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: .88rem; color: var(--muted); }
.tool__stats b { color: var(--ink); font-weight: 650; }
.tool textarea.script { border: 0; border-radius: 0; min-height: clamp(260px, 42vh, 460px); resize: vertical; padding: 20px; font-size: 1.05rem; line-height: 1.7; box-shadow: none; }
.tool textarea.script:focus { box-shadow: inset 0 0 0 2px rgba(124, 58, 237, .25); }
.tool__side { border-top: 1px solid var(--line); padding: 18px; display: grid; gap: 16px; align-content: start; background: #fdfcff; }
@media (min-width: 960px) { .tool__side { border-top: 0; border-left: 1px solid var(--line); } }
.tool__side h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0; }
.tool__opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; }
.tool__colors { display: flex; gap: 8px; flex-wrap: wrap; }
.swatch { width: 40px; height: 40px; border-radius: 10px; border: 2px solid var(--line); cursor: pointer; display: grid; place-items: center; font: 700 .9rem var(--font); }
.swatch[aria-pressed="true"] { border-color: var(--violet-600); box-shadow: 0 0 0 3px rgba(124, 58, 237, .2); }
.tool__start { display: grid; gap: 10px; }
.tool__hint { font-size: .85rem; color: var(--muted); margin: 0; }
.tool__privacy { display: flex; gap: 8px; align-items: flex-start; font-size: .84rem; color: var(--muted); margin: 0; }
.tool__privacy .ico { color: var(--ok); margin-top: 2px; }
.shortcuts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 10px 24px; list-style: none; padding: 0; }
.shortcuts li { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px dashed var(--line); padding-bottom: 8px; margin: 0; }

/* Stage (full-screen prompter) */
.stage { position: fixed; inset: 0; z-index: 1000; background: var(--stage-bg, #000); color: var(--stage-fg, #fff); display: none; overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none; }
.stage.is-open { display: block; }
html.stage-lock, html.stage-lock body { overflow: hidden; }
.stage__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); opacity: 0; transition: opacity .3s; }
.stage.has-camera .stage__video { opacity: 1; }
.stage.has-camera .stage__viewport { background: linear-gradient(180deg, rgba(0, 0, 0, var(--cam-dim, .55)) 0%, rgba(0, 0, 0, var(--cam-dim, .55)) 55%, rgba(0, 0, 0, 0) 100%); }
.stage__viewport { position: absolute; inset: 0; overflow: hidden; }
.stage__mirror { position: absolute; inset: 0; }
.stage.flip-h .stage__mirror { transform: scaleX(-1); }
.stage.flip-v .stage__mirror { transform: scaleY(-1); }
.stage.flip-h.flip-v .stage__mirror { transform: scale(-1, -1); }
.stage__text { position: absolute; left: 50%; top: 0; width: min(var(--stage-width, 80%), 100% - 32px); transform: translate3d(-50%, 0, 0); font: 600 var(--stage-size, 56px)/1.45 var(--font-display); letter-spacing: -0.005em; white-space: pre-wrap; overflow-wrap: anywhere; text-align: var(--stage-align, left); will-change: transform; padding-bottom: 100vh; }
.stage__text p { margin: 0 0 .7em; }
.stage__guide { position: absolute; left: 0; right: 0; top: var(--guide-top, 30%); height: calc(var(--stage-size, 56px) * 1.45 + 12px); transform: translateY(-6px); pointer-events: none; border-block: 1px solid rgba(251, 191, 36, .45); background: rgba(251, 191, 36, .08); display: none; }
.stage.show-guide .stage__guide { display: block; }
.stage__guide::before { content: ""; position: absolute; left: 6px; top: 50%; border: 9px solid transparent; border-left: 12px solid var(--amber); transform: translateY(-50%); }
.stage__fade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, var(--stage-bg, #000) 0%, transparent 12%, transparent 85%, var(--stage-bg, #000) 100%); opacity: .9; }
.stage.has-camera .stage__fade { display: none; }
.stage__count { position: absolute; inset: 0; display: grid; place-items: center; font: 800 min(40vw, 260px)/1 var(--font-display); color: var(--amber); text-shadow: 0 10px 40px rgba(0, 0, 0, .5); pointer-events: none; }
.stage__count[hidden] { display: none; }
.stage__rec { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); display: none; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: rgba(180, 35, 24, .9); color: #fff; font: 700 .85rem var(--mono); }
.stage.is-recording .stage__rec { display: inline-flex; }
.stage__rec::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #fff; animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: .2; } }
.stage__progress { position: absolute; left: 0; top: 0; height: 3px; background: var(--amber); width: 0; }

.stage__controls { position: absolute; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); transform: translateX(-50%); display: flex; align-items: center; gap: 6px; padding: 8px; border-radius: 18px; background: rgba(20, 16, 36, .82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 10px 40px rgba(0, 0, 0, .4); transition: opacity .3s, transform .3s; max-width: calc(100% - 20px); overflow-x: auto; scrollbar-width: none; }
.stage__controls::-webkit-scrollbar { display: none; }
.stage.controls-hidden .stage__controls { opacity: 0; transform: translate(-50%, 20px); pointer-events: none; }
.stage.controls-hidden { cursor: none; }
.sbtn { flex: none; display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 10px; border: 0; border-radius: 12px; background: transparent; color: #f2eeff; font: 650 .85rem/1 var(--font); cursor: pointer; gap: 2px; }
.sbtn:hover { background: rgba(255, 255, 255, .1); }
.sbtn[aria-pressed="true"] { background: rgba(124, 58, 237, .55); }
.sbtn--play { background: var(--violet-600); min-width: 56px; }
.sbtn--play:hover { background: var(--violet-500); }
.sbtn--rec[aria-pressed="true"] { background: var(--danger); }
.sbtn small { font-size: .62rem; opacity: .7; font-weight: 600; }
.sdiv { width: 1px; height: 28px; background: rgba(255, 255, 255, .14); flex: none; margin: 0 2px; }
.sval { min-width: 64px; text-align: center; color: #fff; font: 700 .9rem var(--mono); line-height: 1.1; flex: none; }
.sval small { display: block; font: 600 .62rem var(--font); opacity: .6; }
.stage__toast { position: absolute; top: 18px; right: 18px; max-width: min(360px, calc(100% - 36px)); padding: 12px 14px; border-radius: 12px; background: rgba(20, 16, 36, .92); color: #fff; font-size: .9rem; display: none; }
.stage__toast.is-on { display: block; }
.stage__toast a { color: var(--amber); }
.stage__exit { position: absolute; top: max(12px, env(safe-area-inset-top)); right: 12px; }
.stage.controls-hidden .stage__exit { opacity: 0; pointer-events: none; }

.after-session { display: none; margin-top: 20px; }
.after-session.is-on { display: block; }

/* ---------- calculator ---------- */
.calc { display: grid; gap: 0; grid-template-columns: 1fr; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
@media (min-width: 900px) { .calc { grid-template-columns: 1.2fr .8fr; } }
.calc__in { padding: 22px; display: grid; gap: 16px; }
.calc__in textarea { min-height: 200px; resize: vertical; }
.calc__out { padding: 26px; background: linear-gradient(160deg, var(--violet-900), var(--violet-600)); color: #e9e3ff; display: grid; gap: 18px; align-content: start; }
.calc__big { font: 800 clamp(2.6rem, 2rem + 3vw, 3.8rem)/1 var(--font-display); color: #fff; letter-spacing: -0.03em; }
.calc__label { font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: #c8b9ff; margin-bottom: 6px; }
.calc__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.calc__grid b { display: block; color: #fff; font-size: 1.25rem; }
.calc__out .btn--light { justify-self: start; }

/* ---------- motion ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- small screens ---------- */
@media (max-width: 560px) {
  .btn { white-space: normal; text-align: center; line-height: 1.2; }
  .hero .btn-row .btn, .hero--page .btn-row .btn { width: 100%; }
  .showcase { min-height: 0; padding-top: 8px; }
  .showcase .shot:first-child { transform: none; }
  .showcase .shot + .shot { display: none; }
  .tool__bar { padding: 10px 12px; }
  .tool__bar .btn-row { gap: 6px; }
  .stage__controls { left: 8px; right: 8px; transform: none; flex-wrap: wrap; justify-content: center; gap: 2px; padding: 6px; }
  .stage__controls .sdiv { display: none; }
  .sbtn { min-width: 40px; height: 40px; }
  .sval { min-width: 50px; }
  .stage.controls-hidden .stage__controls { transform: translateY(20px); }
}
