:root {
  --bg: #fbf8f3;
  --surface: #ffffff;
  --surface-2: #f6f0e8;
  --ink: #1f1a2c;
  --muted: #5a5263;
  --line: #ece4d9;
  --brand: #4b3be6;
  --brand-ink: #3a2bc4;
  --brand-soft: #efedff;
  --sun: #ffb020;
  --dark: #1d1830;
  --sun-soft: #fff1d6;
  --radius: 18px;
  --max: 1160px;
  --shadow: 0 1px 2px rgba(60,40,20,.04), 0 24px 50px -24px rgba(90,60,30,.25);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.0625rem/1.65 system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; display: block; }
a { color: var(--brand-ink); text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.025em; margin: 0; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -80px; z-index: 100; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 10px; font-weight: 600; }
.skip:focus { top: 16px; }
.container { width: min(var(--max), 100% - 48px); margin-inline: auto; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.scrolled { border-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 780; font-size: 1.3rem; letter-spacing: -.02em; color: var(--ink); text-decoration: none; }
.brand img { width: 34px; height: 34px; }
.nav-links { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--ink); text-decoration: none; font-weight: 550; padding: 10px 14px; border-radius: 10px; }
.nav-links a:hover { background: var(--surface-2); }
@media (max-width: 860px) { .nav-links { display: none; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 14px; font: inherit; font-weight: 650; font-size: 1rem; text-decoration: none; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; transition: transform .1s, background .15s, box-shadow .15s; }
.btn:hover { background: var(--surface-2); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 10px 24px -10px rgba(75,59,230,.7); }
.btn-primary:hover { background: var(--brand-ink); }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 1.06rem; border-radius: 16px; }
.btn-light { background: #fff; color: var(--ink); border-color: #fff; }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.btn-ghost-light:hover { background: rgba(255,255,255,.08); }

/* Hero */
.hero { padding: 72px 0 96px; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: -35% -12% auto auto; width: 950px; height: 950px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255,176,32,.22), rgba(255,140,90,.10) 45%, transparent); z-index: -1; }
.hero::after { content: ''; position: absolute; left: -200px; bottom: -300px; width: 700px; height: 700px; border-radius: 50%; background: radial-gradient(closest-side, rgba(107,92,255,.10), transparent); z-index: -1; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; gap: 48px; } }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; font-weight: 650; color: #7a4a00; background: var(--sun-soft); padding: 6px 14px; border-radius: 999px; margin-bottom: 22px; }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); font-weight: 800; }
.hero h1 em { font-style: normal; background: linear-gradient(100deg, #5b4bf5, #8a5cf6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: 1.25rem; color: var(--muted); margin-top: 22px; max-width: 34em; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 34px; }
.fine { color: var(--muted); font-size: .92rem; margin-top: 16px; }

/* Demo */
.demo { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); overflow: hidden; }
.demo-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: #fcfaf7; }
.demo-bar i { width: 11px; height: 11px; border-radius: 50%; background: #e8dfd3; display: block; }
.demo-bar .url { margin-left: 10px; flex: 1; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 4px 12px; font-size: .82rem; color: var(--muted); }
.demo-body { padding: 18px; display: grid; gap: 14px; }
.demo-post { display: flex; align-items: center; gap: 10px; font-size: .92rem; }
.demo-post .avatar { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, #ffb86b, #e8473b); }
.demo-img { border-radius: 14px; overflow: hidden; aspect-ratio: 16/10; }
.sr-panel { background: var(--dark); color: #fff; border-radius: 16px; padding: 16px 18px; display: grid; gap: 10px; font-size: .98rem; }
.sr-label { font-size: .75rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: #a7a3c2; display: flex; align-items: center; gap: 8px; }
.sr-label svg { width: 16px; height: 16px; }
.sr-line { display: flex; gap: 10px; align-items: baseline; }
.sr-line .tag { flex: none; font-size: .7rem; font-weight: 800; letter-spacing: .06em; padding: 2px 7px; border-radius: 6px; }
.sr-line.before { color: #a7a3c2; }
.sr-line.before .tag { background: #3a3757; color: #d6d3ea; }
.sr-line.before span:last-child { text-decoration: line-through; text-decoration-color: rgba(255,255,255,.35); }
.sr-line.after .tag { background: var(--sun); color: var(--ink); }

.works-with { padding: 28px 0; border-block: 1px solid var(--line); background: var(--surface); }
.works-with .container { display: flex; align-items: center; justify-content: center; gap: 12px 36px; flex-wrap: wrap; color: var(--muted); font-weight: 600; }
.works-with strong { color: var(--ink); font-weight: 700; }

/* Sections */
section.block { padding: 110px 0; }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head.center { margin-inline: auto; text-align: center; }
.kicker { font-size: .85rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; color: var(--brand); margin-bottom: 14px; }
.section-head h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 780; }
.section-head p { font-size: 1.15rem; color: var(--muted); margin-top: 16px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; list-style: none; padding: 0; margin: 0; counter-reset: s; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; counter-increment: s; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--brand); color: #fff; font-weight: 800; margin-bottom: 18px; }
.steps h3 { font-size: 1.2rem; margin-bottom: 8px; }
.steps p { color: var(--muted); }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 960px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .features { grid-template-columns: 1fr; } }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.feature .ico { width: 48px; height: 48px; border-radius: 14px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; margin-bottom: 18px; }
.feature .ico svg { width: 24px; height: 24px; }
.feature h3 { font-size: 1.15rem; margin-bottom: 8px; }
.feature p { color: var(--muted); }

.privacy-band { background: var(--dark); color: #fff; border-radius: 28px; padding: 64px; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 860px) { .privacy-band { grid-template-columns: 1fr; padding: 40px 28px; } }
.privacy-band h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
.privacy-band p { color: #c9c6e0; margin-top: 16px; font-size: 1.1rem; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.checks li { display: flex; gap: 14px; align-items: flex-start; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: 14px; padding: 16px 18px; }
.checks li::before { content: '✓'; flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--sun); color: var(--ink); font-weight: 900; display: grid; place-items: center; font-size: .85rem; }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 420px)); gap: 24px; justify-content: center; }
@media (max-width: 860px) { .plans { grid-template-columns: 1fr; } }
.plan { background: var(--surface); border: 1.5px solid var(--line); border-radius: 24px; padding: 34px; display: flex; flex-direction: column; gap: 18px; position: relative; }
.plan.featured { border-color: var(--brand); box-shadow: var(--shadow); }
.plan .badge { position: absolute; top: -13px; left: 34px; background: var(--brand); color: #fff; font-size: .78rem; font-weight: 750; padding: 4px 12px; border-radius: 999px; }
.plan h3 { font-size: 1.3rem; }
.price { font-size: 3rem; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.price small { font-size: 1rem; font-weight: 550; color: var(--muted); letter-spacing: 0; }
.plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; flex: 1; }
.plan li { padding-left: 30px; position: relative; }
.plan li::before { content: ''; position: absolute; left: 0; top: 5px; width: 18px; height: 18px; border-radius: 50%; background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.5 2.5L14 7.5' stroke='%234b3be6' stroke-width='2.4' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/18px no-repeat; }
.plan .muted { color: var(--muted); font-size: .95rem; }
.access-note { text-align: center; margin-top: 32px; color: var(--muted); }

/* FAQ */
.faq { max-width: 820px; margin-inline: auto; display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 0 24px; }
.faq summary { cursor: pointer; list-style: none; padding: 20px 0; font-weight: 680; font-size: 1.08rem; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.5rem; line-height: 1; color: var(--brand); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 20px; color: var(--muted); }

.final { text-align: center; background: radial-gradient(70% 110% at 92% 0%, rgba(255,176,32,.30), transparent 60%), radial-gradient(120% 140% at 85% 0%, #5b4bf5 0%, #4232d6 50%, #2a1f9a 100%); color: #fff; border-radius: 32px; padding: 80px 32px; }
.final h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
.final p { color: #e3e0ff; margin: 16px auto 0; font-size: 1.15rem; max-width: 34em; }
.final .cta-row { justify-content: center; }

/* Footer */
.site-footer { padding: 64px 0 48px; margin-top: 110px; border-top: 1px solid var(--line); background: var(--surface); }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
.foot-grid h2 { font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 14px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot-grid a { color: var(--ink); text-decoration: none; }
.foot-grid a:hover { text-decoration: underline; }
.foot-note { color: var(--muted); margin-top: 14px; max-width: 30em; font-size: .95rem; }
.copyright { margin-top: 48px; color: var(--muted); font-size: .9rem; }

/* Legal / prose pages */
.prose { max-width: 760px; margin: 0 auto; padding: 64px 0 0; }
.prose h1 { font-size: clamp(2.2rem, 5vw, 3rem); font-weight: 800; }
.prose .updated { color: var(--muted); margin-top: 12px; }
.prose h2 { font-size: 1.5rem; margin: 48px 0 12px; }
.prose h3 { font-size: 1.15rem; margin: 28px 0 8px; }
.prose p, .prose ul, .prose ol { margin: 0 0 16px; }
.prose li { margin-bottom: 8px; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 20px; font-size: .97rem; }
.prose th, .prose td { text-align: left; padding: 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--surface-2); }
.callout { background: var(--brand-soft); border-radius: 16px; padding: 20px 24px; margin: 24px 0; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 28px; }
.keybox { font: 600 1.05rem/1.4 ui-monospace, 'SF Mono', Menlo, monospace; background: var(--surface-2); border: 1.5px dashed var(--brand); border-radius: 14px; padding: 18px; word-break: break-all; margin: 16px 0; }
.status-msg { padding: 14px 18px; border-radius: 12px; background: var(--surface-2); }
.status-msg.err { background: #fef3f2; color: #b42318; }
kbd { font: 600 .85rem/1 ui-monospace, Menlo, monospace; padding: 4px 7px; border-radius: 7px; border: 1px solid #c9c5e3; border-bottom-width: 2.5px; background: #fff; }
.demo-img svg { width: 100%; height: 100%; }
.demo { margin: 0; }
@media (max-width: 520px) { .sr-line { flex-direction: column; gap: 4px; } .hero { padding-top: 40px; } }

/* Warm note */
.note { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: start; background: var(--sun-soft); border-radius: 28px; padding: 48px; }
@media (max-width: 760px) { .note { grid-template-columns: 1fr; padding: 32px 24px; } }
.note .mark { width: 64px; height: 64px; }
.note h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.note p { color: #4a4250; font-size: 1.12rem; margin-top: 14px; max-width: 40em; }
.note .sign { font-weight: 650; color: var(--ink); }
.plan .trial { display: inline-block; font-size: .8rem; font-weight: 750; letter-spacing: .02em; color: #7a4a00; background: var(--sun-soft); border-radius: 999px; padding: 4px 12px; width: fit-content; }
.sr-panel { background: var(--dark); }
