:root {
  --bg: #f5f9f8;
  --bg-alt: #e9f1ef;
  --surface: #ffffff;
  --ink: #0f1f1d;
  --ink-2: #3b4e4a;
  --muted: #6a7d79;
  --line: #d8e4e1;
  --accent: #0f7f74;
  --accent-ink: #ffffff;
  --accent-soft: #d9f1ed;
  --green: #1f9d63;
  --amber: #c9831a;
  --dark: #0f1f1d;
  --dark-ink: #eef6f4;
  --shadow: 0 1px 2px rgba(15,31,29,.05), 0 12px 32px -12px rgba(15,31,29,.18);
  --radius: 14px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Archivo", var(--font);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1514; --bg-alt: #0f1f1d; --surface: #14211f; --ink: #eef6f4; --ink-2: #c0d0cc;
    --muted: #869894; --line: #233431; --accent: #35bdb4; --accent-ink: #052421; --accent-soft: #10302c; --dark: #071110;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 12px 32px -12px rgba(0,0,0,.6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b1514; --bg-alt: #0f1f1d; --surface: #14211f; --ink: #eef6f4; --ink-2: #c0d0cc;
  --muted: #869894; --line: #233431; --accent: #35bdb4; --accent-ink: #052421; --accent-soft: #10302c; --dark: #071110;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 12px 32px -12px rgba(0,0,0,.6);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); background: var(--bg); color: var(--ink); line-height: 1.6; font-size: 16px; overflow-x: hidden; }
img, svg { display: block; }
svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .88em; background: var(--bg-alt); border: 1px solid var(--line); padding: .05em .35em; border-radius: 5px; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; font-stretch: 112%; line-height: 1.06; margin: 0 0 .5em; letter-spacing: -.025em; }
h1 { font-weight: 800; font-stretch: 118%; letter-spacing: -.035em; }
h1, h2, h3 { text-wrap: balance; }
h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.05rem; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 780px; }
.small { font-size: .875rem; }
.muted { color: var(--muted); }
.center { text-align: center; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border-radius: 999px; border: 1px solid transparent; font-weight: 600; text-decoration: none; transition: transform .15s, background .15s, box-shadow .15s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 6px 18px -6px rgba(15,127,116,.6); }
.btn-primary:hover { filter: brightness(1.1); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { background: var(--surface); }
.btn-sm { padding: 9px 16px; font-size: .9rem; }
.btn-block { width: 100%; }
.btn-soon { background: var(--bg-alt); color: var(--ink-2); border: 1px dashed var(--muted); }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav.scrolled { border-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 1.25rem; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { text-decoration: none; color: var(--ink-2); font-weight: 500; font-size: .95rem; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.theme-toggle { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; }
.theme-toggle .i-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: block; }

/* Hero */
.hero { padding: 72px 0 64px; position: relative; }
.hero::before { content: ""; position: absolute; inset: -120px 0 auto; height: 620px; background: radial-gradient(600px 300px at 80% 30%, var(--accent-soft), transparent 70%); pointer-events: none; z-index: -1; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; font-weight: 600; color: var(--ink-2); background: var(--surface); border: 1px solid var(--line); padding: 6px 12px; border-radius: 999px; margin-bottom: 22px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px color-mix(in srgb, var(--green) 20%, transparent); }
h1 { font-size: clamp(2.4rem, 5.6vw, 4rem); margin-bottom: 20px; }
h1 em { font-style: normal; color: var(--accent); }
.lede { font-size: 1.15rem; color: var(--ink-2); max-width: 560px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 24px; }
.hero-meta { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--muted); font-size: .9rem; }
.hero-meta li::before { content: "✓ "; color: var(--green); font-weight: 700; }

.browser { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--bg-alt); }
.browser-bar > span { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.url { margin-left: 10px; flex: 1; font-size: .8rem; color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 3px 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cart { padding: 22px; }
.cart h3 { font-size: 1.1rem; }
.cart-items { list-style: none; margin: 0 0 12px; padding: 0; }
.cart-items li { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.thumb { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; font-size: 1.3rem; background: var(--bg-alt); }
.item-name { font-weight: 600; font-size: .92rem; line-height: 1.3; }
.item-sub { font-size: .8rem; color: var(--muted); }
.qty { display: flex; align-items: center; gap: 6px; font-size: .85rem; }
.qty button { width: 24px; height: 24px; border-radius: 6px; border: 1px solid var(--line); background: var(--surface); line-height: 1; }
.cart-total { display: flex; justify-content: space-between; margin: 6px 0 14px; }
.hint { display: flex; align-items: center; gap: 6px; justify-content: center; margin-top: 14px; font-size: .85rem; color: var(--muted); }

/* Cartlet buttons (styleable) */
.cartlet-row { display: flex; gap: 10px; margin-top: 12px; }
.cl-btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 14px; border-radius: 10px; font-weight: 600; font-size: .9rem; border: 1.5px solid var(--ink); background: var(--ink); color: var(--bg); transition: all .15s; }
.cl-btn:hover { transform: translateY(-1px); }
.cartlet-row[data-style="outline"] .cl-btn { background: transparent; color: var(--ink); }
.cartlet-row[data-style="soft"] .cl-btn { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.cartlet-row[data-style="text"] .cl-btn { background: none; border-color: transparent; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; flex: 0 0 auto; padding: 6px 4px; }
.cartlet-row.icon-only .cl-btn span { display: none; }
.cartlet-row.icon-only .cl-btn { flex: 0 0 auto; width: 44px; height: 44px; padding: 0; }
.hero .cartlet-row .cl-btn:first-child { animation: pulse 2.4s ease-in-out 1s 3; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(15,127,116,0); } 50% { box-shadow: 0 0 0 6px rgba(15,127,116,.35); } }

/* Strip */
.strip { border-block: 1px solid var(--line); background: var(--surface); }
.strip-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 28px; padding-block: 18px; font-size: .9rem; }
.strip-inner span { color: var(--muted); }
.strip-inner b { font-family: var(--display); font-weight: 600; color: var(--ink-2); }

/* Sections */
.section { padding: 96px 0; scroll-margin-top: 60px; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.section-head p { color: var(--ink-2); font-size: 1.08rem; }
.kicker { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }

/* Demo */
.demo-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.preview { padding: 22px; }
.note { display: flex; gap: 12px; background: var(--bg-alt); border-radius: 12px; padding: 14px; margin-bottom: 16px; }
.note p { margin: 2px 0 0; font-size: .9rem; color: var(--ink-2); font-style: italic; }
.avatar { flex: 0 0 36px; height: 36px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 700; }
.pick-list { list-style: none; margin: 0; padding: 0; }
.pick-list li { display: grid; grid-template-columns: 22px 44px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.pick-list li.out { opacity: .55; }
.pick-list input { width: 18px; height: 18px; accent-color: var(--accent); }
.pick-list label { display: contents; cursor: pointer; }
.price-col { text-align: right; font-weight: 600; font-size: .92rem; }
.price-col s { display: block; font-weight: 400; color: var(--muted); font-size: .8rem; }
.flag { display: inline-block; font-size: .7rem; font-weight: 700; padding: 1px 7px; border-radius: 999px; margin-left: 6px; vertical-align: 1px; }
.flag-down { background: color-mix(in srgb, var(--green) 15%, transparent); color: var(--green); }
.flag-out { background: color-mix(in srgb, var(--amber) 18%, transparent); color: var(--amber); }
.notify { font-size: .78rem; color: var(--accent); background: none; border: 0; padding: 0; text-decoration: underline; }
.preview-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-top: 16px; }
.merge { display: flex; flex-direction: column; gap: 4px; font-size: .85rem; color: var(--ink-2); }
.merge input { accent-color: var(--accent); }
.preview-actions { display: flex; gap: 8px; }
.demo-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.demo-points li { display: flex; gap: 16px; }
.demo-points p { color: var(--ink-2); margin: 0; font-size: .95rem; }
.demo-points h4 { margin-bottom: 4px; }
.badge-ico { flex: 0 0 40px; height: 40px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-weight: 700; }

/* Tabs */
.tabs { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; margin-bottom: 28px; }
.tabs button { padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-weight: 600; font-size: .92rem; color: var(--ink-2); }
.tabs button[aria-selected="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.tab-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 40px; box-shadow: var(--shadow); }
.tab-panel[hidden] { display: none; }
.tab-panel.active { animation: fadeUp .35s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.checks { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 28px; color: var(--ink-2); }
.checks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: color-mix(in srgb, var(--green) 16%, transparent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f9d63' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L19 7'/%3E%3C/svg%3E") center/11px no-repeat; }
.checks-pro li::before { background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f7f74' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center/10px no-repeat; }
.panel-visual { background: var(--bg-alt); border-radius: 16px; padding: 28px; min-height: 260px; display: grid; place-items: center; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.chips span { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; font-weight: 600; font-size: .88rem; animation: float 3s ease-in-out infinite; }
.chips span:nth-child(odd) { animation-delay: -1.5s; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
.saved-list { width: 100%; display: grid; gap: 10px; }
.saved { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.saved span { grid-column: 1; font-size: .85rem; color: var(--muted); }
.saved em { grid-row: 1 / 3; grid-column: 2; align-self: center; font-style: normal; font-weight: 600; font-size: .85rem; color: var(--accent); }
.link-builder { width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 8px 16px 16px; }
.lb-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.lb-row span { color: var(--muted); }
.tag { background: var(--accent-soft); color: var(--accent); padding: 0 8px; border-radius: 6px; }
.lb-url { margin-top: 14px; font-family: ui-monospace, Menlo, monospace; font-size: .85rem; background: var(--bg-alt); border-radius: 8px; padding: 8px 12px; text-align: center; }
.chart-card { width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.range { display: inline-flex; background: var(--bg-alt); border-radius: 8px; padding: 3px; margin-bottom: 12px; }
.range button { border: 0; background: none; padding: 4px 12px; border-radius: 6px; font-size: .82rem; font-weight: 600; color: var(--muted); }
.range button.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.1); }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.kpis span { display: block; font-size: .75rem; color: var(--muted); }
.kpis b { font-family: var(--display); font-size: 1.5rem; }
.bars { display: flex; align-items: flex-end; gap: 2px; height: 90px; }
.bars i { flex: 1; background: var(--accent); border-radius: 3px 3px 0 0; opacity: .85; transition: height .4s ease; min-height: 2px; }
.chart-card .small { margin: 8px 0 0; text-align: right; font-size: .72rem; }

/* Playground */
.playground { display: grid; grid-template-columns: 380px 1fr; gap: 32px; align-items: start; }
.pg-controls { display: grid; gap: 22px; }
fieldset { border: 0; padding: 0; margin: 0; }
legend { font-weight: 600; font-size: .9rem; margin-bottom: 8px; }
.seg { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.seg button { padding: 10px; border: 1px solid var(--line); background: var(--surface); border-radius: 10px; font-size: .88rem; font-weight: 500; }
.seg button.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.switch { display: flex; align-items: center; gap: 10px; font-weight: 500; cursor: pointer; }
.switch input { position: absolute; opacity: 0; }
.switch span { width: 42px; height: 24px; border-radius: 999px; background: var(--line); position: relative; transition: background .2s; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.switch input:checked + span { background: var(--accent); }
.switch input:checked + span::after { transform: translateX(18px); }
.switch input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.pg-stage { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 48px 32px 32px; box-shadow: var(--shadow); min-height: 340px; transition: all .3s; }
.stage-label { position: absolute; top: 14px; left: 18px; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.stage-skeleton { display: grid; gap: 14px; }
.sk { height: 12px; border-radius: 6px; background: var(--bg-alt); }
.sk-title { width: 40%; height: 18px; }
.sk-row { display: flex; gap: 14px; align-items: center; }
.sk-img { width: 54px; height: 54px; border-radius: 10px; flex: 0 0 auto; }
.sk-lines { flex: 1; display: grid; gap: 8px; }
.sk.short { width: 50%; }
.sk-btn { height: 42px; border-radius: 10px; background: color-mix(in srgb, var(--ink) 12%, transparent); }
.pg-stage[data-place="mini"] { max-width: 340px; margin-left: auto; }
.pg-stage[data-place="product"] .sk-row:nth-child(3) { display: none; }
.pg-stage[data-place="product"] .sk-img { width: 120px; height: 120px; }
.pg-stage[data-place="checkout"] .sk-row { display: none; }
.pg-stage[data-place="checkout"] .stage-skeleton::after { content: ""; height: 120px; border-radius: 10px; background: var(--bg-alt); }
.demo-row { margin-top: 18px; }

/* Dark section */
.section-dark { background: var(--dark); color: var(--dark-ink); }
.section-dark .section-head p, .section-dark p { color: #a9bcb8; }
.section-dark code { background: #1a2a28; border-color: #2a3d3a; color: var(--dark-ink); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.stat { border: 1px solid #2a3d3a; border-radius: 18px; padding: 28px; background: #14211f; }
.stat b { font-family: var(--display); font-size: 3.6rem; color: var(--accent); line-height: 1; }
.stat > span { font-family: var(--display); font-size: 1.2rem; font-weight: 600; margin-left: 6px; }
.stat p { margin: 12px 0 0; font-size: .95rem; }
.perf-list { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 32px; }
.perf-list li { padding-left: 24px; position: relative; color: #cfdedb; }
.perf-list li::before { content: "→"; position: absolute; left: 0; color: var(--accent); }

/* Dev */
.dev-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: center; }
.dev-grid p { color: var(--ink-2); }
.code { background: #0f1f1d; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid #1f302d; }
.code-tabs { display: flex; gap: 2px; padding: 8px; border-bottom: 1px solid #1f302d; }
.code-tabs button { background: none; border: 0; color: #869894; padding: 6px 12px; border-radius: 6px; font-size: .85rem; font-weight: 600; }
.code-tabs button.on { background: #1f302d; color: #eef6f4; }
.code pre { margin: 0; padding: 22px; overflow-x: auto; color: #eef6f4; font-size: .88rem; line-height: 1.7; }
.code pre code { background: none; border: 0; padding: 0; font-size: inherit; }
.code .c { color: #6f8480; }
.code .k { color: #6fe0d2; }
.code .s { color: #9fd99b; }

/* Pricing */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 920px; margin: 0 auto; }
.plan { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 32px; display: flex; flex-direction: column; gap: 22px; box-shadow: var(--shadow); }
.plan .checks { flex: 1; }
.plan .price { display: flex; align-items: baseline; gap: 10px; }
.plan .price b { font-family: var(--display); font-size: 2.6rem; }
.plan .price span { color: var(--muted); }
.plan-free { border: 2px solid var(--accent); }
.plan-pro { background: linear-gradient(160deg, var(--surface), var(--bg-alt)); }
.plan-pro .checks li { color: var(--muted); }
.ribbon { position: absolute; top: 22px; right: 22px; background: var(--ink); color: var(--bg); font-size: .75rem; font-weight: 700; padding: 5px 12px; border-radius: 999px; letter-spacing: .04em; }
.ribbon::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-right: 6px; vertical-align: 2px; animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: .2; } }
.plan-pro p { margin: -8px 0 0; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 28px; }
.steps li > b { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--ink); color: var(--bg); font-family: var(--display); margin-bottom: 16px; }
.steps p { color: var(--ink-2); margin: 0; font-size: .95rem; }

/* FAQ */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 0 22px; }
.faq summary { list-style: none; cursor: pointer; padding: 18px 0; font-weight: 600; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--accent); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-2); margin: 0 0 18px; }

/* CTA */
.cta { padding: 96px 0; text-align: center; background: radial-gradient(500px 220px at 50% 100%, var(--accent-soft), transparent 70%); }
.cta h2 { font-size: clamp(2rem, 5vw, 3.2rem); }
.cta p { color: var(--ink-2); font-size: 1.1rem; margin-bottom: 26px; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 32px 0; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer nav a { text-decoration: none; color: var(--ink-2); font-size: .92rem; }
.footer p { margin: 0; }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(8,18,17,.55); backdrop-filter: blur(3px); animation: fade .2s; }
.modal-card { position: relative; width: 100%; max-width: 460px; max-height: calc(100vh - 32px); overflow-y: auto; background: var(--surface); border-radius: 20px; padding: 28px; box-shadow: 0 30px 80px -20px rgba(0,0,0,.5); animation: pop .25s cubic-bezier(.2,.9,.3,1.2); }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(.94) translateY(10px); } }
.modal-x { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--bg-alt); font-size: 1.3rem; line-height: 1; }
.modal-card h3 { margin-bottom: 4px; }
.copy-field { display: flex; gap: 8px; margin: 16px 0 12px; }
.copy-field input, .note-field textarea, .save-form input { width: 100%; font: inherit; font-size: .92rem; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--ink); }
.note-field { display: grid; gap: 4px; margin-bottom: 14px; }
.note-field textarea { resize: vertical; }
.share-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 16px; }
.share-grid button { padding: 9px 6px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); font-size: .82rem; font-weight: 600; position: relative; padding-left: 20px; }
.share-grid button::before { content: ""; position: absolute; left: 10px; top: 50%; width: 7px; height: 7px; border-radius: 50%; background: var(--c); transform: translateY(-50%); }
.share-grid button:hover { border-color: var(--c); }
.qr-wrap { display: flex; gap: 16px; align-items: center; background: var(--bg-alt); border-radius: 14px; padding: 14px; }
.qr-wrap p { margin: 2px 0 8px; }
.qr { flex: 0 0 112px; height: 112px; background: #fff; border-radius: 10px; padding: 6px; }
.qr img, .qr svg { width: 100%; height: 100%; }
.save-form { display: grid; gap: 12px; margin-top: 16px; }
.save-form label { display: grid; gap: 4px; }
.saved-ok { text-align: center; padding: 16px 0 4px; }
.ok-ico { width: 56px; height: 56px; border-radius: 50%; background: color-mix(in srgb, var(--green) 16%, transparent); color: var(--green); display: grid; place-items: center; font-size: 1.6rem; font-weight: 700; margin: 0 auto 12px; animation: pop .3s; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--ink); color: var(--bg); padding: 10px 18px; border-radius: 999px; font-weight: 600; font-size: .9rem; opacity: 0; pointer-events: none; transition: all .25s; z-index: 200; max-width: calc(100vw - 32px); text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* Responsive */
@media (max-width: 960px) {
  .hero-grid, .demo-grid, .dev-grid, .playground { grid-template-columns: 1fr; }
  .hero { padding-top: 48px; }
  .hero-card { max-width: 480px; width: 100%; margin: 0 auto; }
  .tab-panel { grid-template-columns: 1fr; padding: 24px; }
  .stats, .steps { grid-template-columns: 1fr; }
  .perf-list { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}
@media (max-width: 700px) {
  .wrap { padding: 0 16px; }
  .section { padding: 64px 0; }
  .plans { grid-template-columns: 1fr; }
  .plan { padding: 24px; }
  .hero-actions .btn { width: 100%; white-space: normal; }
  .preview-foot { flex-direction: column; align-items: stretch; }
  .preview-actions .btn { flex: 1; }
  .tabs { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
  .tabs button { flex: 0 0 auto; }
  .pg-stage { padding: 44px 18px 20px; }
  .share-grid { grid-template-columns: repeat(2, 1fr); }
  .qr-wrap { flex-direction: column; text-align: center; }
  .footer-inner { flex-direction: column; text-align: center; }
  .nav-cta .btn { display: none; }
}

/* Video */
.video-section { background: var(--bg-alt); }
.video-frame { position: relative; max-width: 960px; margin: 0 auto; aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; background: #000; box-shadow: var(--shadow), 0 0 0 1px var(--line); }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-poster { position: absolute; inset: 0; padding: 0; border: 0; background: none; display: block; width: 100%; }
.video-poster img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease, filter .3s; }
.video-poster:hover img { transform: scale(1.02); filter: brightness(.92); }
.play { position: absolute; left: 50%; top: 50%; width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; box-shadow: 0 10px 30px -6px rgba(0,0,0,.45); transition: transform .2s; }
.play::before { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 2px solid rgba(255,255,255,.55); animation: ring 2s ease-out infinite; }
.play svg { margin-left: 4px; }
.video-poster:hover .play { transform: scale(1.08); }
@keyframes ring { from { transform: scale(.9); opacity: 1; } to { transform: scale(1.35); opacity: 0; } }
.video-len { position: absolute; right: 14px; bottom: 14px; background: rgba(0,0,0,.7); color: #fff; font-size: .8rem; font-weight: 600; padding: 3px 9px; border-radius: 6px; }
.video-note { text-align: center; margin: 18px 0 0; }
.video-note a { color: var(--ink-2); }
.logo img { border-radius: 9px; }
@media (max-width: 700px) { .video-frame { border-radius: 14px; } .play { width: 64px; height: 64px; margin: -32px 0 0 -32px; } }
