:root {
  --brand: #4f46e5; --brand-dark: #3730a3; --ink: #141826; --muted: #5d6275; --line: #e4e6ee;
  --bg: #ffffff; --alt: #f5f6fb; --accent: #fde68a;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ink);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); line-height: 1.6; }
a { color: var(--brand); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 22px; }
.narrow { max-width: 760px; }
.center { text-align: center; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); margin: 0 0 10px; }
.sub { color: var(--muted); font-size: 1.08rem; max-width: 680px; margin: 0 auto 36px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: inherit; font-weight: 650;
  background: var(--brand); color: #fff; border: 2px solid var(--brand); border-radius: 11px; padding: 9px 16px;
  text-decoration: none; cursor: pointer; transition: transform .12s, box-shadow .12s, background .12s; }
.btn:hover { background: var(--brand-dark); border-color: var(--brand-dark); transform: translateY(-1px); box-shadow: 0 6px 16px rgb(79 70 229 / 25%); }
.btn.ghost { background: #fff; color: var(--brand); }
.btn.ghost:hover { background: #eef0ff; box-shadow: none; }
.btn.big { padding: 13px 22px; font-size: 1.05rem; }
.btn.small { padding: 7px 13px; font-size: .92rem; }
.btn.full { width: 100%; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 10; background: rgb(255 255 255 / 88%); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.navin { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.logo { display: flex; align-items: center; gap: 9px; font-weight: 800; color: var(--ink); text-decoration: none; font-size: 1.08rem; }
.logomark { width: 30px; height: 30px; border-radius: 8px; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 1rem; }
.navlinks { display: flex; align-items: center; gap: 22px; }
.navlinks a:not(.btn) { color: var(--muted); text-decoration: none; font-weight: 550; font-size: .95rem; }
.navlinks a:not(.btn):hover { color: var(--ink); }
@media (max-width: 760px) { .navlinks a:not(.btn) { display: none; } }

/* Hero */
.hero { background: radial-gradient(1000px 500px at 85% 0%, #e0e7ff 0%, transparent 60%), radial-gradient(700px 400px at 0% 100%, #fef3c7 0%, transparent 60%); padding: 56px 0 72px; }
.herogrid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .herogrid { grid-template-columns: 1fr; } }
.eyebrow { display: inline-block; background: #eef0ff; color: var(--brand-dark); font-weight: 650; font-size: .85rem; padding: 5px 12px; border-radius: 999px; }
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); margin: 16px 0 16px; }
.hl { background: linear-gradient(transparent 62%, var(--accent) 62%); }
.lead { font-size: 1.17rem; color: var(--muted); margin: 0 0 26px; max-width: 560px; }
.ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
.checks { list-style: none; padding: 0; margin: 0; color: var(--muted); }
.checks li { padding-left: 28px; position: relative; margin: 6px 0; }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; background: #dcfce7; color: #15803d; font-size: .75rem; font-weight: 800; display: grid; place-items: center; margin-top: 3px; }
.heroplay { position: relative; }
.browser { background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 30px 60px -20px rgb(30 27 75 / 30%); overflow: hidden; }
.bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #f3f4f8; border-bottom: 1px solid var(--line); }
.bar i { width: 10px; height: 10px; border-radius: 50%; background: #d4d6e0; }
.bar span { margin-left: 10px; font-size: .78rem; color: var(--muted); background: #fff; padding: 3px 12px; border-radius: 6px; flex: 1; }
.browser iframe { width: 100%; height: 380px; min-height: 340px; border: 0; display: block; background: #fafbff; }
.tryme { text-align: center; color: var(--muted); font-weight: 600; font-size: .92rem; margin-top: 16px; }

/* Sections */
.section { padding: 84px 0; }
.section.alt { background: var(--alt); }
.cards4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 960px) { .cards4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cards4 { grid-template-columns: 1fr; } }
.card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.card h3 { margin: 10px 0 6px; font-size: 1.1rem; }
.card p { margin: 0; color: var(--muted); }
.ico { font-size: 1.6rem; width: 48px; height: 48px; border-radius: 12px; background: #eef0ff; display: grid; place-items: center; }

/* How it works + article mockup */
.ctxgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
@media (max-width: 900px) { .ctxgrid { grid-template-columns: 1fr; } }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 24px 0 0; }
.steps li { counter-increment: s; position: relative; padding-left: 54px; margin-bottom: 24px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 38px; height: 38px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; display: grid; place-items: center; }
.steps b { display: block; font-size: 1.1rem; }
.steps span { color: var(--muted); }
code { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; font-size: .9em; }
.article { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 22px; box-shadow: 0 20px 40px -24px rgb(0 0 0 / 25%); }
.ahead { display: flex; align-items: center; gap: 8px; font-size: .92rem; }
.alogo { width: 26px; height: 26px; border-radius: 7px; color: #fff; display: grid; place-items: center; font-weight: 800; font-size: .85rem; }
.amuted { color: var(--muted); }
.atitle { font-size: 1.35rem; font-weight: 800; margin: 14px 0 12px; letter-spacing: -0.01em; }
.aline { height: 10px; border-radius: 5px; background: #eceef4; margin: 9px 0; }
.aline.short { width: 60%; }
.abreak { margin: 22px 0 6px; font-weight: 750; color: #c2410c; }
.article iframe { width: 100%; height: 380px; border: 0; display: block; }
.caption { color: var(--muted); font-size: .8rem; text-align: center; margin: 12px 0 0; }

/* Themes */
.themes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 860px) { .themes { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .themes { grid-template-columns: 1fr; } }
.theme { border: 1px solid var(--line); border-radius: 16px; padding: 20px; background: #fff; }
.theme.custom { border-style: dashed; border-color: #a5b4fc; background: #f8f9ff; }
.temoji { font-size: 1.7rem; }
.theme h3 { margin: 6px 0 4px; }
.tsample { color: var(--ink); font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .85rem; letter-spacing: .5px; margin: 0 0 6px; }
.tcount { color: var(--muted); font-size: .85rem; margin: 0; }

/* Builder */
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
@media (max-width: 860px) { .cols { grid-template-columns: 1fr; } }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.previewpanel { padding: 10px; }
.previewpanel iframe { width: 100%; height: 380px; border: 0; display: block; }
label { display: block; font-weight: 650; font-size: .9rem; margin: 14px 0 5px; }
.opt { font-weight: 400; color: var(--muted); }
input, select, textarea { width: 100%; font: inherit; padding: 10px 12px; border: 1px solid #d6d9e4; border-radius: 10px; background: #fff; color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: transparent; }
input[type=color] { height: 46px; padding: 4px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 520px) { .row { grid-template-columns: 1fr; } }
textarea { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .78rem; height: 120px; resize: vertical; margin-top: 10px; }
.btns { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; align-items: center; }
.ok { color: #16a34a; font-weight: 650; font-size: .9rem; }
details { margin-top: 18px; }
details summary { cursor: pointer; font-weight: 650; color: var(--brand); }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; } }
.plan { position: relative; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 18px; padding: 28px; background: #fff; }
.plan.featured { border: 2px solid var(--brand); box-shadow: 0 24px 50px -24px rgb(79 70 229 / 45%); }
.badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--brand); color: #fff; font-size: .78rem; font-weight: 700; padding: 4px 12px; border-radius: 999px; white-space: nowrap; }
.plan h3 { margin: 0; font-size: 1.15rem; }
.price { font-size: 2.6rem; font-weight: 850; letter-spacing: -0.03em; margin: 8px 0 0; }
.price span { font-size: 1rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.pdesc { color: var(--muted); margin: 4px 0 16px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 24px; flex: 1; }
.plan li { padding-left: 24px; position: relative; margin: 8px 0; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: #16a34a; font-weight: 800; }

/* FAQ */
.faq { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; margin: 0 0 12px; }
.faq summary { color: var(--ink); font-size: 1.04rem; list-style: none; display: flex; justify-content: space-between; }
.faq summary::after { content: "+"; color: var(--brand); font-weight: 800; font-size: 1.2rem; }
.faq[open] summary::after { content: "–"; }
.faq summary::-webkit-details-marker { display: none; }
.faq p { color: var(--muted); margin: 10px 0 0; }

/* Signup */
.signup { background: linear-gradient(180deg, #eef0ff, #fff); }
.form { box-shadow: 0 24px 50px -28px rgb(30 27 75 / 30%); }
.form .btn { margin-top: 22px; }
.fine { text-align: center; color: var(--muted); font-size: .85rem; margin: 10px 0 0; }

.foot { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: .9rem; text-align: center; }
.foot a { color: var(--muted); }
