:root {
  --brand: #0b6e75; --brand-strong: #095a60; --brand-fg: #ffffff; --brand-soft: #e3f4f3;
  --bg: #ffffff; --bg-alt: #f7f7f7; --card: #ffffff; --line: #e1dfdd; --fg: #242424; --muted: #616161; --faint: #8a8886;
  --code-bg: #f3f2f1; --ok: #107c10; --warn: #c50f1f; --select: #cdeceb;
  --ui: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", sans-serif;
  --mono: "Cascadia Code", Consolas, "SF Mono", Menlo, monospace;
  --radius: 8px; --shadow: 0 1px 2px rgba(0,0,0,.06), 0 8px 24px rgba(0,0,0,.08);
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --brand: #4fc3c9; --brand-strong: #6fd0d5; --brand-fg: #0a0a0a; --brand-soft: #0b2f31;
  --bg: #1b1b1b; --bg-alt: #232323; --card: #292929; --line: #3d3d3d; --fg: #ffffff; --muted: #c8c8c8; --faint: #a0a0a0;
  --code-bg: #333333; --ok: #54b054; --warn: #f1707b; --select: #0d4f52;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.4); color-scheme: dark } }
:root[data-theme="dark"] {
  --brand: #4fc3c9; --brand-strong: #6fd0d5; --brand-fg: #0a0a0a; --brand-soft: #0b2f31;
  --bg: #1b1b1b; --bg-alt: #232323; --card: #292929; --line: #3d3d3d; --fg: #ffffff; --muted: #c8c8c8; --faint: #a0a0a0;
  --code-bg: #333333; --ok: #54b054; --warn: #f1707b; --select: #0d4f52;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.4); color-scheme: dark }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 16px/1.55 var(--ui); -webkit-font-smoothing: antialiased; }
a { color: var(--brand); }
code, kbd { font-family: var(--mono); font-size: .88em; background: var(--code-bg); padding: 1px 6px; border-radius: 4px; }
kbd { border: 1px solid var(--line); border-bottom-width: 2px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 12px; letter-spacing: -.01em; }
h1 { font-size: clamp(32px, 5vw, 52px); font-weight: 700; }
h2 { font-size: clamp(26px, 3.5vw, 36px); font-weight: 700; }
h3 { font-size: 19px; font-weight: 600; }
p { margin: 0 0 12px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.lead { font-size: 19px; color: var(--muted); max-width: 60ch; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; border: 1px solid transparent; border-radius: 6px; padding: 10px 18px; font: 600 15px var(--ui); text-decoration: none; cursor: pointer; transition: background .15s; }
.btn-primary { background: var(--brand); color: var(--brand-fg); }
.btn-primary:hover { background: var(--brand-strong); }
.btn-secondary { background: transparent; color: var(--fg); border-color: var(--line); }
.btn-secondary:hover { background: var(--bg-alt); }
.btn[disabled] { opacity: .6; cursor: default; }
.btn-lg { padding: 13px 24px; font-size: 16px; }

/* Header */
.nav { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 24px; height: 60px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--fg); text-decoration: none; font-size: 17px; }
.logo .mark { width: 28px; height: 28px; border-radius: 6px; background: #0b6e75; color: #fff; display: grid; place-items: center; font-size: 15px; font-weight: 700; }
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 15px; }
.nav-links a:hover { color: var(--fg); }
.nav .btn { padding: 7px 14px; font-size: 14px; }
@media (max-width: 760px) { .nav-links { display: none; } .nav .actions { margin-left: auto; } }

/* Sections */
section { padding: 88px 0; }
section.alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.eyebrow { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--brand); margin-bottom: 10px; }
.section-head { max-width: 680px; margin-bottom: 48px; }

/* Hero */
.hero { padding: 72px 0 80px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; align-items: center; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 18px; }
.hero .assure { display: flex; gap: 18px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.hero .assure span::before { content: "✓ "; color: var(--ok); font-weight: 700; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; } }

/* Mock viewer */
.mock { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); background: var(--card); font-size: 12px; line-height: 1.35; user-select: none; }
.mock .tb { background: #0b6e75; color: #fff; display: flex; align-items: center; gap: 10px; padding: 7px 10px; }
.mock .tb .o { width: 18px; height: 18px; border-radius: 4px; background: #fff; color: #0b6e75; display: grid; place-items: center; font-weight: 700; font-size: 11px; }
.mock .tb .open { border: 1px solid rgba(255,255,255,.5); border-radius: 3px; padding: 2px 8px; }
.mock .tb .sr { flex: 1; background: #fff; color: #616161; border-radius: 3px; padding: 3px 8px; max-width: 260px; margin-inline: auto; }
.mock .rb { display: flex; gap: 14px; padding: 5px 10px; border-bottom: 1px solid var(--line); color: var(--muted); background: var(--bg-alt); }
.mock .rb .on { color: var(--brand); border-bottom: 2px solid var(--brand); }
.mock .panes { display: grid; grid-template-columns: 26% 34% 40%; height: 300px; }
.mock .panes > div { border-right: 1px solid var(--line); overflow: hidden; }
.mock .panes > div:last-child { border-right: 0; }
.mock .fd { padding: 6px 0; }
.mock .fd div { padding: 3px 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock .fd .h { font-weight: 600; padding-top: 6px; }
.mock .fd .sel { background: var(--select); }
.mock .fd .n { float: right; color: var(--brand); font-weight: 600; }
.mock .ml div.m { padding: 6px 10px; border-bottom: 1px solid var(--line); }
.mock .ml .m.sel { background: var(--select); }
.mock .ml .m b { display: block; }
.mock .ml .m.unread b, .mock .ml .m.unread .s { color: var(--brand); }
.mock .ml .m .s { display: block; font-weight: 600; }
.mock .ml .m .p { color: var(--muted); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock .rp { padding: 12px 14px; }
.mock .rp .subj { font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.mock .rp .who { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; }
.mock .rp .av { width: 28px; height: 28px; border-radius: 50%; background: #8764b8; color: #fff; display: grid; place-items: center; font-weight: 600; }
.mock .rp .att { display: inline-flex; gap: 6px; align-items: center; border: 1px solid var(--line); border-radius: 4px; padding: 4px 8px; margin-bottom: 10px; }
.mock .rp .att i { background: #d13438; color: #fff; font-style: normal; font-size: 9px; font-weight: 700; padding: 1px 3px; border-radius: 2px; }
.mock .rp .line { height: 7px; background: var(--line); border-radius: 4px; margin: 7px 0; }
.mock .sb { border-top: 1px solid var(--line); background: var(--bg-alt); color: var(--muted); padding: 3px 10px; display: flex; justify-content: space-between; font-size: 11px; }
@media (max-width: 560px) { .mock .panes { grid-template-columns: 0 45% 55%; } .mock .panes > .fd { display: none; } .mock .panes { grid-template-columns: 45% 55%; } }

/* Feature grid */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.feature .ic { width: 40px; height: 40px; border-radius: 8px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; margin-bottom: 14px; }
.feature .ic svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.feature p { color: var(--muted); font-size: 15px; margin: 0; }
@media (max-width: 960px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }

/* Steps */
.steps { display: grid; gap: 28px; counter-reset: step; }
.step { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 40px; align-items: center; padding: 32px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.step .num { counter-increment: step; display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--brand); color: var(--brand-fg); font-weight: 700; margin-bottom: 14px; }
.step .num::before { content: counter(step); }
.step p, .step li { color: var(--muted); }
.step ul { padding-left: 20px; margin: 0; }
.step li { margin-bottom: 6px; }
@media (max-width: 860px) { .step { grid-template-columns: 1fr; gap: 24px; padding: 24px; } }

/* Snippets */
.snip { border: 1px solid var(--line); border-radius: 10px; background: var(--bg); overflow: hidden; font-size: 14px; box-shadow: var(--shadow); }
.snip .bar { display: flex; gap: 6px; align-items: center; padding: 8px 12px; border-bottom: 1px solid var(--line); background: var(--bg-alt); font-size: 12px; color: var(--muted); }
.snip .bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); display: inline-block; }
.snip .bar span { margin-left: 8px; }
.snip .in { padding: 20px; }
.field { display: block; border: 1px solid var(--line); border-radius: 6px; padding: 9px 12px; margin: 6px 0 12px; background: var(--card); }
.field.focus { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.codebox { display: flex; gap: 8px; margin: 8px 0 14px; }
.codebox b { width: 40px; height: 48px; border: 1px solid var(--line); border-radius: 6px; display: grid; place-items: center; font-size: 22px; background: var(--card); }
.fake-btn { display: inline-block; background: #0b6e75; color: #fff; border-radius: 5px; padding: 7px 14px; font-weight: 600; font-size: 13px; }
.path { font-family: var(--mono); font-size: 13px; background: var(--code-bg); border-radius: 6px; padding: 10px 12px; margin: 6px 0 12px; overflow-wrap: anywhere; }
.ops { width: 100%; border-collapse: collapse; font-size: 14px; }
.ops td { padding: 7px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.ops tr:last-child td { border-bottom: 0; }
.ops td:first-child { white-space: nowrap; padding-right: 16px; }
.ops td:last-child { color: var(--muted); }

/* Search cheat sheet */
.cheat { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.cheat .card { border: 1px solid var(--line); border-radius: 12px; background: var(--card); padding: 24px; }
@media (max-width: 860px) { .cheat { grid-template-columns: 1fr; } }

/* Pricing */
.pricing { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 48px; align-items: center; }
.price-card { border: 2px solid var(--brand); border-radius: 14px; padding: 32px; background: var(--card); box-shadow: var(--shadow); }
.price-card .amt { font-size: 40px; font-weight: 700; margin: 6px 0 4px; }
.price-card ul { list-style: none; padding: 0; margin: 20px 0 24px; }
.price-card li { padding: 6px 0 6px 28px; position: relative; }
.price-card li::before { content: "✓"; position: absolute; left: 4px; color: var(--ok); font-weight: 700; }
.price-card .btn { width: 100%; justify-content: center; }
@media (max-width: 860px) { .pricing { grid-template-columns: 1fr; } }

/* FAQ */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { font-weight: 600; font-size: 17px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: "+"; color: var(--brand); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); margin: 10px 0 0; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 32px 0; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; gap: 24px; flex-wrap: wrap; align-items: center; }
footer a { color: var(--muted); }
footer .sp { margin-left: auto; }

/* Auth and account cards */
.center { min-height: calc(100vh - 61px); display: grid; place-items: center; padding: 40px 16px; }
.panel { width: 100%; max-width: 440px; border: 1px solid var(--line); border-radius: 12px; padding: 32px; background: var(--card); box-shadow: var(--shadow); }
.panel.wide { max-width: 560px; }
.panel h1 { font-size: 26px; }
label.lbl { display: block; font-weight: 600; font-size: 14px; margin: 18px 0 6px; }
input.inp { width: 100%; font: 16px var(--ui); padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); color: var(--fg); }
input.inp:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
input.code { font: 600 26px var(--mono); letter-spacing: 10px; text-align: center; }
.panel .btn { width: 100%; justify-content: center; margin-top: 18px; }
.err { color: var(--warn); font-size: 14px; margin-top: 10px; min-height: 1em; }
.note { font-size: 14px; color: var(--muted); margin-top: 14px; }
.linkbtn { background: none; border: 0; color: var(--brand); font: inherit; padding: 0; cursor: pointer; text-decoration: underline; }
.status { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 8px; background: var(--bg-alt); margin: 18px 0; }
.dot { width: 10px; height: 10px; border-radius: 50%; flex: none; background: var(--faint); }
.dot.on { background: var(--ok); }
.banner { padding: 12px 16px; border-radius: 8px; background: var(--brand-soft); margin-bottom: 18px; font-size: 15px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; }
.row .btn { width: auto; flex: 1; }
.doc { max-width: 760px; padding: 56px 20px; margin: 0 auto; }
.doc h2 { font-size: 22px; margin-top: 32px; }
