/* ============ Tokens ============ */
:root {
  --bg: #FAFAF7;
  --bg-2: #F2F2EC;
  --surface: #FFFFFF;
  --ink: #0E100D;
  --ink-2: #2A2D27;
  --muted: #62665D;
  --faint: #9A9E94;
  --line: #E4E4DC;
  --line-2: #D6D6CC;
  --accent: #17C964;
  --accent-ink: #04210F;
  --accent-soft: #E3F8EC;
  --rec: #F0443A;
  --warn: #FFF3E0;
  --warn-ink: #7A4A00;
  --tip: #E8F8EF;
  --tip-ink: #0B5A2E;
  --shadow: 0 1px 2px rgba(14,16,13,.06), 0 8px 24px rgba(14,16,13,.06);
  --shadow-lg: 0 2px 6px rgba(14,16,13,.06), 0 24px 60px rgba(14,16,13,.12);
  --r: 14px;
  --r-lg: 22px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --display: "Inter Tight", "Inter", -apple-system, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0D0E0C; --bg-2: #141512; --surface: #171815; --ink: #F3F4EF; --ink-2: #D9DBD3; --muted: #A2A69B; --faint: #6E7268;
    --line: #262823; --line-2: #33362F; --accent-soft: #0F2A1A; --accent-ink: #04210F; --warn: #2A1E0C; --warn-ink: #F4C77A;
    --tip: #0F261A; --tip-ink: #8BE3B0; --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.3); --shadow-lg: 0 24px 60px rgba(0,0,0,.5);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0D0E0C; --bg-2: #141512; --surface: #171815; --ink: #F3F4EF; --ink-2: #D9DBD3; --muted: #A2A69B; --faint: #6E7268;
  --line: #262823; --line-2: #33362F; --accent-soft: #0F2A1A; --warn: #2A1E0C; --warn-ink: #F4C77A; --tip: #0F261A; --tip-ink: #8BE3B0;
  color-scheme: dark;
}

/* ============ Base ============ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -.025em; line-height: 1.1; margin: 0; text-wrap: balance; }
p { text-wrap: pretty; }
p { margin: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .4; }
svg { flex: none; }
img { max-width: 100%; }
kbd { font: 600 11px/1 var(--font); padding: 3px 6px; border-radius: 6px; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--muted); }
:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--accent); color: var(--accent-ink); }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
.noscript { padding: 20px; text-align: center; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.row { display: flex; align-items: center; gap: 12px; }
.row-end { display: flex; justify-content: flex-end; gap: 8px; }

/* ============ Views ============ */
.view { display: none; }
body[data-view="home"] .view-home,
body[data-view="rec"] .view-rec,
body[data-view="proc"] .view-proc,
body[data-view="edit"] .view-edit { display: block; }
body[data-view="rec"] .nav, body[data-view="proc"] .nav, body[data-view="edit"] .nav,
body[data-view="rec"] .top-actions, body[data-view="proc"] .top-actions, body[data-view="edit"] .top-actions { display: none; }
body[data-view="edit"] .top { display: none; }

/* ============ Buttons ============ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid transparent; font-weight: 600; font-size: 15px; white-space: nowrap; transition: transform .15s, background .15s, box-shadow .15s, border-color .15s; text-decoration: none; }
.btn:active:not(:disabled) { transform: scale(.97); }
.btn-sm { height: 36px; padding: 0 14px; font-size: 14px; }
.btn-lg { height: 54px; padding: 0 28px; font-size: 17px; }
.btn-ink { background: var(--ink); color: var(--bg); }
.btn-ink:hover { background: var(--ink-2); }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { box-shadow: 0 6px 20px rgba(23,201,100,.35); }
.btn-ghost { background: var(--surface); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-danger { background: var(--rec); color: #fff; }
.btn-stop { background: var(--rec); color: #fff; height: 52px; padding: 0 24px; font-size: 16px; }
.btn-stop:hover { box-shadow: 0 6px 22px rgba(240,68,58,.35); }
.btn-stop .sq { width: 12px; height: 12px; border-radius: 3px; background: #fff; }
.icon-btn { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; border: 0; background: transparent; color: var(--ink); }
.icon-btn:hover:not(:disabled) { background: var(--bg-2); }
.icon-btn svg, .ico svg, .tool svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.link { background: none; border: 0; padding: 0; color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.link:hover { text-decoration-color: var(--accent); }
.link.muted { color: var(--muted); font-weight: 500; }

/* ============ Header ============ */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.top.scrolled { border-bottom-color: var(--line); }
.top-in { display: flex; align-items: center; gap: 24px; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font: 800 23px/1 var(--display); letter-spacing: -.04em; color: var(--ink); }
.logo svg { width: 30px; height: 30px; color: var(--ink); }
.logo em { font-style: normal; color: var(--accent); }
.logo-sm { font-size: 19px; }
.logo-sm svg { width: 24px; height: 24px; }
.nav { display: flex; gap: 26px; margin-left: 12px; }
.nav a { text-decoration: none; color: var(--muted); font-size: 15px; font-weight: 500; }
.nav a:hover { color: var(--ink); }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.lib-link { font-size: 15px; font-weight: 600; text-decoration: none; }
.lib-link .count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 99px; background: var(--accent-soft); color: var(--tip-ink); font-size: 12px; margin-left: 4px; }

/* ============ Hero ============ */
.hero { display: grid; grid-template-columns: 1.08fr .92fr; gap: 56px; align-items: center; padding-top: 64px; padding-bottom: 88px; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 600; color: var(--muted); padding: 6px 14px 6px 10px; border: 1px solid var(--line); border-radius: 99px; background: var(--surface); }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.hero h1 { font-size: clamp(42px, 6.2vw, 76px); font-weight: 800; letter-spacing: -.045em; line-height: .98; margin: 22px 0 22px; }
.grad { background: linear-gradient(92deg, var(--ink) 0%, var(--ink) 30%, #0FA653 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .grad { background-image: linear-gradient(92deg, var(--ink) 0%, var(--ink) 30%, var(--accent) 100%); } }
.lede { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 560px; line-height: 1.55; }
.launch { display: flex; align-items: center; gap: 28px; margin: 36px 0 20px; flex-wrap: wrap; }
.startt-btn { position: relative; width: 132px; height: 132px; border-radius: 50%; border: 0; background: var(--ink); color: var(--bg); display: grid; place-items: center; align-content: center; gap: 4px; box-shadow: var(--shadow-lg); transition: transform .2s cubic-bezier(.2,.8,.2,1.2), box-shadow .2s; }
.startt-btn svg { width: 38px; height: 38px; fill: var(--accent); margin-left: 5px; transition: transform .2s; }
.startt-btn:hover { transform: scale(1.04); }
.startt-btn:hover svg { transform: scale(1.08); }
.startt-btn:active { transform: scale(.96); }
.startt-label { font: 700 16px/1 var(--display); letter-spacing: -.02em; }
.startt-btn .ring { position: absolute; inset: -8px; border-radius: 50%; border: 2px solid var(--accent); opacity: 0; animation: ring 2.6s ease-out infinite; }
@keyframes ring { 0% { transform: scale(.92); opacity: .7; } 80%, 100% { transform: scale(1.18); opacity: 0; } }
.opts { display: grid; gap: 12px; }
.opt { display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 500; cursor: pointer; user-select: none; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.sw { position: relative; width: 38px; height: 22px; border-radius: 99px; background: var(--line-2); transition: background .2s; flex: none; }
.sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .2s; }
.opt input:checked + .sw { background: var(--accent); }
.opt input:checked + .sw::after { transform: translateX(16px); }
.opt input:focus-visible + .sw { outline: 2.5px solid var(--accent); outline-offset: 2px; }
.note { font-size: 14px; color: var(--muted); max-width: 540px; }
.note .link { font-size: 14px; }
.note-links { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin-top: 8px; color: var(--faint); }
.phone-help { margin-top: 18px; padding: 14px 16px; border-radius: var(--r); background: var(--accent-soft); color: var(--ink); font-size: 15px; max-width: 540px; }
.phone-help span { display: block; margin-top: 6px; font-size: 13px; color: var(--muted); }
.proc-bar { width: min(320px, 80vw); height: 6px; border-radius: 99px; background: var(--line); margin: 0 auto 24px; overflow: hidden; }
.proc-bar i { display: block; height: 100%; width: 0; background: var(--accent); border-radius: inherit; transition: width .2s; }

/* hero demo */
.hero-demo { position: relative; }
.mock { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); overflow: hidden; transform: rotate(1.2deg); }
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 600; }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.mock-bar span { margin-left: 10px; }
.mock-body { padding: 6px 20px 18px; }
.mock-step { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); opacity: 0; transform: translateY(10px); animation: in .6s forwards; }
.mock-step:last-child { border-bottom: 0; }
.mock-step.s1 { animation-delay: .3s; } .mock-step.s2 { animation-delay: 1.1s; } .mock-step.s3 { animation-delay: 1.9s; }
@keyframes in { to { opacity: 1; transform: none; } }
.mock-step > b { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: var(--bg); display: grid; place-items: center; font-size: 12px; }
.mock-step > div { flex: 1; min-width: 0; }
.mock-step strong { font-size: 14px; }
.mock-step p { font-size: 13px; color: var(--muted); margin: 2px 0 8px; }
.mock-step u { text-decoration: none; font-weight: 700; color: var(--ink); }
.mock-shot { position: relative; height: 62px; border-radius: 8px; background: linear-gradient(var(--bg-2), var(--bg-2)) 30% 18%/40% 8px no-repeat, linear-gradient(var(--bg-2), var(--bg-2)) 30% 45%/55% 8px no-repeat, var(--bg); border: 1px solid var(--line); overflow: hidden; }
.mock-shot .side { position: absolute; left: 0; top: 0; bottom: 0; width: 18%; background: var(--bg-2); }
.spot { position: absolute; border: 2px solid var(--accent); border-radius: 6px; box-shadow: 0 0 0 999px rgba(8,10,8,.16), 0 0 12px rgba(23,201,100,.5); }
.sp1 { left: 2%; top: 30%; width: 14%; height: 18%; }
.sp2 { right: 6%; top: 12%; width: 22%; height: 26%; background: var(--accent-soft); }
.blurbox { position: absolute; left: 28%; top: 58%; width: 36%; height: 22%; border-radius: 4px; background: repeating-conic-gradient(var(--line-2) 0 25%, var(--bg-2) 0 50%) 0 0/8px 8px; }
.rec-chip { position: absolute; left: -18px; bottom: -18px; display: flex; align-items: center; gap: 8px; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 99px; font: 600 14px/1 var(--font); box-shadow: var(--shadow-lg); font-variant-numeric: tabular-nums; }
.rdot { width: 9px; height: 9px; border-radius: 50%; background: var(--rec); animation: blink 1.2s infinite; }
@keyframes blink { 50% { opacity: .35; } }

/* ============ Sections ============ */
section.wrap { padding-top: 88px; padding-bottom: 8px; }
.sec-head { margin-bottom: 36px; max-width: 720px; }
.sec-head.row { max-width: none; justify-content: space-between; }
.kicker { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #0B7A3E; margin-bottom: 12px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .kicker { color: var(--accent); } }
.sec-head h2 { font-size: clamp(30px, 4vw, 46px); font-weight: 800; }

.how-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.how-grid li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; }
.how-grid .num { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--ink); color: var(--accent); font: 800 18px/1 var(--display); margin-bottom: 20px; }
.how-grid h3 { font-size: 21px; margin-bottom: 8px; }
.how-grid p { color: var(--muted); }

.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feat { padding: 28px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); transition: transform .2s, box-shadow .2s; }
.feat:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.ico { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--tip-ink); display: grid; place-items: center; margin-bottom: 20px; }
.feat h3 { font-size: 19px; margin-bottom: 8px; }
.feat p { color: var(--muted); font-size: 15px; }

.cmp { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); }
.cmp-row { display: grid; grid-template-columns: .8fr 1fr 1fr; }
.cmp-row > span { padding: 16px 22px; border-top: 1px solid var(--line); font-size: 15px; }
.cmp-row > span[role="rowheader"] { font-weight: 600; }
.cmp-row > span[role="cell"]:not(.us) { color: var(--muted); }
.cmp-h > span { border-top: 0; font-weight: 700; font-size: 14px; color: var(--muted); }
.cmp .us { background: var(--accent-soft); font-weight: 600; color: var(--ink); }
.cmp-h .us { color: var(--tip-ink); }
.cmp-row:not(.cmp-h) .us::before { content: "✓"; display: inline-block; margin-right: 8px; color: #0FA653; font-weight: 800; }

.use-groups { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.use-group { padding: 28px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.use-group h3 { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-family: var(--font); margin-bottom: 18px; }
.use-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.use-list li { position: relative; padding-left: 20px; color: var(--muted); font-size: 16px; }
.use-list li::before { content: ""; position: absolute; left: 0; top: .6em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.use-list b { color: var(--ink); }

.faq-list { display: grid; gap: 10px; max-width: 820px; }
.faq-list details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 0 22px; }
.faq-list summary { list-style: none; cursor: pointer; padding: 18px 30px 18px 0; font-weight: 600; font-size: 17px; position: relative; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 24px; font-weight: 400; color: var(--muted); transition: transform .2s; }
.faq-list details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-list details p { padding: 0 0 20px; color: var(--muted); }

.final { text-align: center; padding-bottom: 40px; }
.final h2 { font-size: clamp(32px, 4.6vw, 54px); font-weight: 800; }
.final p { color: var(--muted); margin: 14px 0 28px; font-size: 18px; }
.foot { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; padding: 48px 24px 56px; margin-top: 72px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.foot-meta { margin-left: auto; }
.foot-cols { order: 5; width: 100%; display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; padding-top: 28px; margin-top: 8px; border-top: 1px solid var(--line); }
.foot-cols div { display: grid; gap: 8px; align-content: start; }
.foot-cols h3 { font: 700 12px/1.2 var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--ink); margin: 0 0 4px; }
.foot-cols a { color: var(--muted); text-decoration: none; }
.foot-cols a:hover { color: var(--ink); text-decoration: underline; }
.foot-mail { user-select: all; }
.foot .foot-meta { order: 6; }

/* ============ Content pages ============ */
.page { padding-bottom: 24px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 24px; font-size: 13px; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.crumbs > * + *::before { content: "/"; margin-right: 8px; color: var(--faint); }
.page-hero { padding-top: 40px; padding-bottom: 8px; }
.page-hero > *, .prose > * { max-width: 820px; }
.page-hero h1 { font-size: clamp(36px, 5.4vw, 62px); font-weight: 800; letter-spacing: -.04em; line-height: 1.02; margin: 4px 0 20px; }
.hero-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 28px; }
.prose { padding-top: 24px; }
.prose-sec { padding-top: 40px; }
.prose-sec h2 { font-size: clamp(24px, 2.8vw, 32px); font-weight: 800; margin-bottom: 14px; }
.prose-sec p { color: var(--ink-2); font-size: 17px; line-height: 1.65; max-width: 68ch; }
.prose-sec a { color: var(--ink); text-decoration-color: var(--accent); text-underline-offset: 3px; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 30px; font-size: 17px; line-height: 1.6; color: var(--ink-2); }
.ticks li::before { content: ""; position: absolute; left: 0; top: .35em; width: 18px; height: 18px; border-radius: 50%; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%230FA653' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.cmp-table { width: 100%; border-collapse: collapse; min-width: 560px; font-size: 15px; }
.cmp-table th, .cmp-table td { text-align: left; padding: 14px 18px; border-top: 1px solid var(--line); vertical-align: top; }
.cmp-table thead th { border-top: 0; font-size: 13px; color: var(--muted); }
.cmp-table tbody th { font-weight: 600; }
.cmp-table td { color: var(--muted); }
.cmp-table .us { background: var(--accent-soft); color: var(--ink); font-weight: 600; }
.verdict { margin-top: 40px; padding: 4px 28px 28px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.related { padding-top: 72px; }
.related h2 { font-size: 22px; font-weight: 800; margin-bottom: 18px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.related-grid.big { padding-top: 32px; }
.rel { display: grid; gap: 6px; padding: 22px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: transform .15s, box-shadow .15s, border-color .15s; }
.rel:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--line-2); }
.rel b { font: 700 18px/1.25 var(--display); letter-spacing: -.01em; }
.rel span { color: var(--muted); font-size: 15px; }
.cta-band { margin-top: 88px; padding: 56px 24px; text-align: center; border-radius: var(--r-lg); background: var(--ink); color: var(--bg); }
.cta-band h2 { font-size: clamp(28px, 4vw, 44px); font-weight: 800; color: var(--bg); }
.cta-band p { color: color-mix(in srgb, var(--bg) 70%, transparent); margin: 12px 0 26px; font-size: 17px; }
.beta-note { display: inline-block; margin: 8px 0 24px; padding: 10px 16px; border-radius: 99px; background: var(--accent-soft); color: var(--tip-ink); font-weight: 600; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
.plan { position: relative; display: grid; gap: 18px; padding: 30px 26px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.plan.featured { border: 2px solid var(--accent); box-shadow: var(--shadow-lg); }
.plan-tag { position: absolute; top: -13px; left: 24px; padding: 4px 12px; border-radius: 99px; background: var(--accent); color: var(--accent-ink); font-size: 12px; font-weight: 700; }
.plan h2 { font-size: 22px; font-weight: 800; }
.plan-price { display: grid; gap: 4px; }
.plan-price b { font: 800 44px/1 var(--display); letter-spacing: -.03em; }
.plan-price span { color: var(--muted); font-size: 14px; }
.plan .ticks li { font-size: 15px; }
@media (max-width: 960px) { .plans { grid-template-columns: 1fr; max-width: 520px; } }
.tpl-steps { margin: 0; padding-left: 22px; display: grid; gap: 10px; }
.tpl-steps li { font-size: 17px; line-height: 1.6; color: var(--ink-2); padding-left: 4px; }
.tpl-steps li::marker { color: #0FA653; font-weight: 700; }
.byline { color: var(--muted); font-size: 14px; padding-top: 8px; }
.installed { margin-top: 24px; padding: 14px 18px; border-radius: var(--r); background: var(--accent-soft); color: var(--tip-ink); font-weight: 600; }
@media (max-width: 960px) { .related-grid { grid-template-columns: 1fr 1fr; } .foot-cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .related-grid { grid-template-columns: 1fr; } .cta-band { margin-left: 16px; margin-right: 16px; width: auto; padding: 40px 20px; } .prose-sec p, .ticks li { font-size: 16px; } }

/* ============ Library ============ */
.library { padding-top: 8px !important; }
.search { height: 40px; width: 260px; max-width: 100%; padding: 0 14px; border-radius: 99px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); font: inherit; font-size: 15px; }
.lib-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; transition: transform .15s, box-shadow .15s; }
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.card-open { display: block; width: 100%; text-align: left; border: 0; padding: 0; background: none; }
.card-thumb { aspect-ratio: 16/10; background: var(--bg-2) center/cover no-repeat; border-bottom: 1px solid var(--line); }
.card-body { padding: 14px 16px 16px; }
.card-title { font-weight: 600; font-size: 15px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { font-size: 13px; color: var(--muted); margin-top: 6px; }
.card-del { position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; border-radius: 9px; border: 0; background: rgba(14,16,13,.7); color: #fff; display: grid; place-items: center; opacity: 0; transition: opacity .15s; }
.card:hover .card-del, .card-del:focus-visible { opacity: 1; }
.card-del svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.lib-empty { color: var(--muted); padding: 20px 0; }

/* ============ Recording ============ */
.rec { padding-top: 64px; padding-bottom: 80px; max-width: 880px; text-align: center; }
.rec-top { display: flex; align-items: center; justify-content: center; gap: 16px; }
.rec-badge { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 99px; background: color-mix(in srgb, var(--rec) 12%, transparent); color: var(--rec); font-weight: 700; font-size: 14px; }
.rec-time { font: 700 22px/1 var(--display); font-variant-numeric: tabular-nums; }
.rec-title { font-size: clamp(28px, 4vw, 40px); font-weight: 800; margin: 28px 0 12px; }
.rec-sub { color: var(--muted); max-width: 520px; margin: 0 auto; }
.rec-actions { display: flex; justify-content: center; gap: 12px; margin: 32px 0 24px; flex-wrap: wrap; }
.rec-actions .btn-ghost { height: 52px; }
.rec-live { display: inline-flex; align-items: center; gap: 10px; max-width: 100%; padding: 10px 18px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); font-size: 15px; }
.rec-live #rec-said { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mic { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); animation: blink 1s infinite; flex: none; }
.rec-strip { display: flex; gap: 12px; overflow-x: auto; padding: 28px 4px 12px; scroll-snap-type: x mandatory; min-height: 150px; justify-content: safe center; }
.rec-strip:empty::before { content: "Captured steps appear here as you work"; color: var(--faint); font-size: 14px; margin: auto; }
.thumb { flex: none; width: 168px; scroll-snap-align: end; text-align: left; animation: pop .35s cubic-bezier(.2,.8,.2,1.2); }
.thumb img { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); display: block; background: var(--bg-2); }
.thumb span { display: block; font-size: 12px; color: var(--muted); margin-top: 6px; font-weight: 600; }
@keyframes pop { from { transform: scale(.85); opacity: 0; } }
.rec-foot { display: flex; justify-content: center; gap: 24px; margin-top: 20px; font-size: 14px; flex-wrap: wrap; }

/* Picture-in-picture controls */
body.pip { margin: 0; height: 100vh; display: flex; align-items: center; gap: 10px; padding: 0 14px; background: var(--ink); color: var(--bg); font: 600 14px/1 var(--font); user-select: none; }
body.pip .pt { font: 700 18px/1 var(--display); font-variant-numeric: tabular-nums; }
body.pip .pn { color: var(--faint); font-weight: 500; font-size: 13px; }
body.pip .pb { margin-left: auto; display: flex; gap: 8px; }
body.pip button { height: 36px; padding: 0 12px; border-radius: 99px; border: 0; font-weight: 700; font-size: 13px; }
body.pip .pm { background: #2a2d27; color: #fff; }
body.pip .ps { background: var(--rec); color: #fff; }

/* ============ Processing ============ */
.proc { padding-top: 110px; padding-bottom: 120px; text-align: center; max-width: 560px; }
.proc h2 { font-size: clamp(28px, 4vw, 38px); font-weight: 800; margin: 34px 0 26px; }
.proc-orb { position: relative; width: 84px; height: 84px; margin: 0 auto; }
.proc-orb span { position: absolute; inset: 0; border-radius: 50%; border: 3px solid var(--accent); border-top-color: transparent; animation: spin 1.1s linear infinite; }
.proc-orb span:nth-child(2) { inset: 12px; border-color: var(--ink); border-bottom-color: transparent; animation-duration: 1.6s; animation-direction: reverse; }
.proc-orb span:nth-child(3) { inset: 30px; border: 0; background: var(--accent); animation: breathe 1.4s ease-in-out infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes breathe { 50% { transform: scale(.7); opacity: .6; } }
.proc-steps { list-style: none; padding: 0; margin: 0 auto; display: grid; gap: 12px; text-align: left; width: fit-content; }
.proc-steps li { display: flex; align-items: center; gap: 12px; color: var(--faint); font-weight: 500; transition: color .3s; }
.proc-steps li::before { content: ""; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line-2); flex: none; transition: all .3s; }
.proc-steps li.on { color: var(--ink); }
.proc-steps li.on::before { border-color: var(--accent); border-top-color: transparent; animation: spin .8s linear infinite; }
.proc-steps li.done { color: var(--ink); }
.proc-steps li.done::before { background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%2304210F' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; border-color: var(--accent); }

/* ============ Editor ============ */
.ed-bar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 8px; height: 60px; padding: 0 16px; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.ed-status { font-size: 13px; color: var(--muted); margin-left: 4px; display: flex; align-items: center; gap: 6px; }
.ed-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.ed-status.busy::before { background: var(--faint); animation: blink 1s infinite; }
.ed-bar-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.menu-wrap { position: relative; }
.menu { position: absolute; right: 0; top: calc(100% + 8px); width: 280px; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-lg); z-index: 30; animation: pop .15s ease-out; }
.menu button { display: grid; width: 100%; text-align: left; gap: 2px; padding: 10px 12px; border: 0; border-radius: 10px; background: none; }
.menu button:hover, .menu button:focus-visible { background: var(--bg-2); outline: none; }
.menu b { font-size: 14px; }
.menu span { font-size: 12.5px; color: var(--muted); }
.menu hr { border: 0; border-top: 1px solid var(--line); margin: 6px 4px; }

.ed { display: grid; grid-template-columns: 220px 1fr; min-height: calc(100vh - 60px); }
.rail { position: sticky; top: 60px; align-self: start; height: calc(100vh - 60px); overflow-y: auto; padding: 20px 12px 140px; border-right: 1px solid var(--line); }
.rail-h { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 0 6px 12px; }
.rail-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rail-item { display: flex; gap: 8px; align-items: flex-start; padding: 6px; border-radius: 10px; cursor: grab; border: 1.5px solid transparent; }
.rail-item:hover { background: var(--bg-2); }
.rail-item.drag { opacity: .4; }
.rail-item.over { border-color: var(--accent); }
.rail-item b { font-size: 12px; color: var(--muted); width: 16px; flex: none; padding-top: 2px; text-align: right; }
.rail-item img { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); display: block; }
.rail-item div { flex: 1; min-width: 0; }
.rail-item span { display: block; font-size: 12px; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.doc-wrap { padding: 44px 32px 200px; }
.doc { max-width: 780px; margin: 0 auto; }
[contenteditable] { outline: none; border-radius: 6px; transition: background .15s, box-shadow .15s; }
[contenteditable]:hover { background: var(--bg-2); box-shadow: 0 0 0 4px var(--bg-2); }
[contenteditable]:focus { background: var(--surface); box-shadow: 0 0 0 4px var(--surface), 0 0 0 5.5px var(--accent); }
[contenteditable]:empty::before { content: attr(data-ph); color: var(--faint); }
.doc-title { font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; }
.doc-sum { font-size: 18px; color: var(--muted); margin-top: 12px; }
.doc-meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin: 16px 0 12px; }
.doc-meta span { display: inline-flex; align-items: center; gap: 6px; }
.pill { padding: 3px 10px; border-radius: 99px; background: var(--bg-2); font-weight: 600; }
.pill.ai { background: var(--accent-soft); color: var(--tip-ink); }

.steps { list-style: none; margin: 0; padding: 0; }
.chapter { padding: 44px 0 6px; }
.chapter h2 { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.chapter + .step { border-top: 0; }
.rail-chapter { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 14px 6px 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.step { position: relative; display: flex; gap: 18px; padding: 30px 0; border-top: 1px solid var(--line); }
.step-n { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: var(--bg); display: grid; place-items: center; font-weight: 700; font-size: 15px; margin-top: 2px; }
.step-main { flex: 1; min-width: 0; }
.step-title { font-size: 20px; font-weight: 700; font-family: var(--display); letter-spacing: -.015em; }
.step-body { margin: 6px 0 14px; color: var(--ink-2); }
.step-body b { font-weight: 700; color: var(--ink); background: var(--accent-soft); padding: 0 4px; border-radius: 4px; }
.step-body code { font: .9em ui-monospace, Menlo, monospace; background: var(--bg-2); padding: 1px 5px; border-radius: 5px; }

.shot { position: relative; margin: 0; width: fit-content; max-width: 100%; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--bg-2); user-select: none; line-height: 0; }
.shot img { display: block; max-width: 100%; max-height: min(78vh, 760px); width: auto; height: auto; pointer-events: none; }
.shot.drawing { cursor: crosshair; }
.shot.drawing::after { content: attr(data-hint); position: absolute; left: 50%; top: 12px; transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 99px; font: 600 13px/1 var(--font); pointer-events: none; white-space: nowrap; }
.hl { position: absolute; border: 3px solid var(--accent); border-radius: 10px; box-shadow: 0 0 0 9999px rgba(8,10,8,.16), 0 0 18px rgba(23,201,100,.55); pointer-events: none; }
.redact { position: absolute; backdrop-filter: blur(9px) saturate(.6); -webkit-backdrop-filter: blur(9px) saturate(.6); background: rgba(96,102,94,.38); border-radius: 4px; outline: 1.5px dashed rgba(255,255,255,.8); }
.redact button { position: absolute; top: -10px; right: -10px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: var(--ink); color: var(--bg); font: 700 13px/1 var(--font); display: grid; place-items: center; opacity: 0; transition: opacity .15s; }
.shot:hover .redact button, .redact button:focus-visible { opacity: 1; }
.draft { position: absolute; border: 2px dashed var(--accent); background: rgba(23,201,100,.12); border-radius: 6px; pointer-events: none; }

.callout { display: flex; gap: 10px; align-items: baseline; margin-top: 12px; padding: 10px 14px; border-radius: 10px; font-size: 15px; }
.callout.tip { background: var(--tip); color: var(--tip-ink); }
.callout.warning { background: var(--warn); color: var(--warn-ink); }
.callout > b { flex: none; font-size: 13px; }
.callout [contenteditable] { flex: 1; color: var(--ink); }
.callout-x { margin-left: auto; border: 0; background: none; color: inherit; opacity: .6; font-size: 16px; padding: 0 2px; }
.callout-x:hover { opacity: 1; }

.step-tools { position: absolute; right: -58px; top: 28px; display: flex; flex-direction: column; gap: 2px; padding: 4px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); opacity: 0; transition: opacity .15s; }
.step:hover .step-tools, .step:focus-within .step-tools { opacity: 1; }
.tool { width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 8px; background: none; color: var(--ink); position: relative; }
.tool:hover:not(:disabled) { background: var(--bg-2); }
.tool.on { background: var(--accent-soft); color: var(--tip-ink); }
.tool svg { width: 18px; height: 18px; }
.tool[data-tip]:hover::after { content: attr(data-tip); position: absolute; right: calc(100% + 8px); top: 50%; transform: translateY(-50%); white-space: nowrap; background: var(--ink); color: var(--bg); padding: 6px 10px; border-radius: 8px; font: 600 12px/1 var(--font); pointer-events: none; }
.tool.danger:hover { color: var(--rec); }

.add-step { display: flex; gap: 8px; justify-content: center; padding: 26px 0; border-top: 1px solid var(--line); }

.preview .step-tools, .preview .redact button, .preview .add-step { display: none !important; }
.preview [contenteditable]:hover { background: none; box-shadow: none; }

/* command bar */
.cmd { position: fixed; left: 50%; bottom: 20px; transform: translateX(calc(-50% + 110px)); width: min(680px, calc(100vw - 260px)); z-index: 25; }
.cmd-chips { display: flex; gap: 8px; justify-content: center; margin-bottom: 10px; flex-wrap: wrap; }
.cmd-chips button { height: 32px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--line-2); background: var(--surface); font-size: 13px; font-weight: 600; box-shadow: var(--shadow); }
.cmd-chips button:hover { border-color: var(--ink); }
.cmd-box { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 16px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow-lg); }
.cmd-box svg { width: 20px; height: 20px; fill: var(--accent); }
.cmd-box input { flex: 1; min-width: 0; border: 0; background: none; outline: none; color: var(--ink); font: inherit; font-size: 15px; height: 36px; }
.cmd.busy .cmd-box { opacity: .6; pointer-events: none; }
.cmd.off .cmd-chips { display: none; }

/* ============ Overlays ============ */
.modal { border: 0; padding: 16px; border-radius: var(--r-lg); background: var(--surface); color: var(--ink); box-shadow: var(--shadow-lg); width: min(960px, calc(100vw - 32px)); }
.modal::backdrop { background: rgba(8,10,8,.55); backdrop-filter: blur(4px); }
.modal video { width: 100%; border-radius: 12px; background: #000; display: block; margin-bottom: 12px; }
.modal form { display: flex; justify-content: flex-end; }
.modal-sm { width: min(420px, calc(100vw - 32px)); padding: 24px; }
.modal-sm h3 { font-size: 20px; margin-bottom: 8px; }
.modal-sm p { color: var(--muted); margin-bottom: 20px; }

.toasts { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 60; display: grid; gap: 8px; justify-items: center; pointer-events: none; }
body[data-view="edit"] .toasts { bottom: 140px; }
.toast { display: flex; align-items: center; gap: 14px; padding: 12px 16px 12px 18px; border-radius: 99px; background: var(--ink); color: var(--bg); font-size: 14px; font-weight: 500; box-shadow: var(--shadow-lg); pointer-events: auto; animation: pop .2s ease-out; max-width: calc(100vw - 32px); }
.toast button { border: 0; background: none; color: var(--accent); font-weight: 700; padding: 0; }
.toast.err { background: var(--rec); color: #fff; }
.toast.err button { color: #fff; text-decoration: underline; }

/* ============ Responsive ============ */
@media (max-width: 1100px) {
  .step { flex-wrap: wrap; }
  .step-main { flex: 1 1 0; }
  .step-tools { position: static; order: 3; flex: 0 0 calc(100% - 52px); flex-direction: row; flex-wrap: wrap; opacity: 1; margin: 4px 0 0 52px; padding: 0; border: 0; background: none; box-shadow: none; }
  .tool[data-tip]:hover::after { display: none; }
}
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; padding-top: 40px; gap: 56px; }
  .hero-demo { max-width: 520px; }
  .nav { display: none; }
  .how-grid, .feat-grid { grid-template-columns: 1fr 1fr; }
  .ed { grid-template-columns: 1fr; }
  .rail { display: none; }
  .cmd { transform: translateX(-50%); width: calc(100vw - 32px); }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .top-in { height: 60px; }
  .lib-link { display: none; }
  .launch { gap: 22px; }
  .startt-btn { width: 112px; height: 112px; }
  .how-grid, .feat-grid, .use-groups { grid-template-columns: 1fr; }
  .use-group { padding: 22px; }
  .cmp-row { grid-template-columns: 1fr 1fr; }
  .cmp-row > span[role="rowheader"] { grid-column: 1 / -1; padding-bottom: 0; }
  .cmp-row > span[role="cell"] { border-top: 0; }
  .cmp-h > span:first-child { display: none; }
  .cmp-row > span { padding: 12px 14px; font-size: 14px; }
  section.wrap { padding-top: 64px; }
  .foot-meta { margin-left: 0; width: 100%; }
  .doc-wrap { padding: 28px 16px 220px; }
  .step { gap: 12px; }
  .step-n { width: 28px; height: 28px; font-size: 13px; }
  .step-tools { margin-left: 40px; flex-basis: calc(100% - 40px); }
  .ed-bar .btn-ghost { display: none; }
  .cmd { bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }
  .cmd-chips { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; margin: 0 -16px 8px; padding: 0 16px; }
  .cmd-chips::-webkit-scrollbar { display: none; }
  .cmd-chips button { flex: none; }
  .rec-chip { left: 8px; }
  .mock { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
@media print {
  .top, .ed-bar, .rail, .cmd, .step-tools, .toasts { display: none !important; }
}
