@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap");

:root {
  --bg: #ffffff;
  --bg-soft: #f6f7fb;
  --surface: #ffffff;
  --ink: #0f1b33;
  --muted: #5b6478;
  --rule: #e4e7ee;
  --navy: #13233f;
  --accent: #e0532f;
  --cta: #c94223;
  --cta-hover: #b03819;
  --on-cta: #ffffff;
  --accent-soft: #ffede7;
  --ok: #12805c;
  --ok-soft: #e3f4ec;
  --bad: #c2341b;
  --bad-soft: #fdeae5;
  --ph: #ffe2d8;
  --shadow: 0 1px 2px rgba(15, 27, 51, .05), 0 12px 32px -12px rgba(15, 27, 51, .14);
  --font: "Plus Jakarta Sans", ui-sans-serif, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0b1120; --bg-soft: #0f1729; --surface: #131d33; --ink: #e8ecf5; --muted: #9aa4b8; --rule: #24304a;
  --navy: #1b2b4d; --accent: #ff7a5c; --cta: #e2562f; --cta-hover: #f06a45; --accent-soft: #3a2019;
  --ok: #4cc79a; --ok-soft: #12291f; --bad: #ff8f7a; --bad-soft: #3a1d17; --ph: #4a2a20;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 32px -12px rgba(0, 0, 0, .6); color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--font); }
a { color: inherit; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 760px) { .wrap { padding: 0 28px; } }
.narrow { max-width: 780px; }
.center { text-align: center; }
.hidden { display: none !important; }

h1, h2, h3 { letter-spacing: -.025em; color: var(--ink); }
h1 { font-size: clamp(36px, 5.6vw, 60px); line-height: 1.06; font-weight: 800; margin: 0 0 18px; }
h2 { font-size: clamp(28px, 3.8vw, 40px); line-height: 1.12; font-weight: 800; margin: 0 0 12px; }
h3 { font-size: 19px; line-height: 1.3; font-weight: 700; margin: 0 0 6px; }
.accent-text { color: var(--accent); }
.lead { font-size: clamp(17px, 1.9vw, 19px); color: var(--muted); max-width: 540px; margin: 0 0 24px; }
.section-lead { color: var(--muted); font-size: 18px; margin: 0 auto 36px; max-width: 620px; }
.chip, .eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--accent); background: var(--accent-soft); padding: 6px 12px; border-radius: 999px; margin: 0 0 18px; }
.kicker { display: block; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin: 0 0 10px; }
.fine { font-size: 13.5px; color: var(--muted); margin: 14px 0 0; }

/* nav */
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(--rule); }
header.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 0; font-size: 18px; font-weight: 800; letter-spacing: -.02em; text-decoration: none; color: var(--ink); white-space: nowrap; }
.logo::before { content: ""; width: 30px; height: 30px; background: url("/logo.svg") center / contain no-repeat; flex: none; margin-right: 9px; }
.logo span { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 22px; font-size: 15px; font-weight: 500; }
.nav-links .plain { text-decoration: none; color: var(--muted); }
.nav-links .plain:hover { color: var(--ink); }
@media (max-width: 640px) { .nav-links .plain { display: none; } }

.theme-toggle { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--rule); background: var(--surface); color: var(--ink); display: inline-grid; place-items: center; cursor: pointer; flex: none; padding: 0; }
.theme-toggle:hover { border-color: var(--muted); }
.theme-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .moon { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .moon { display: block; }
.nav-right { display: flex; align-items: center; gap: 14px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border-radius: 999px; border: 1px solid transparent; cursor: pointer; font: 700 16px/1.2 var(--font); text-decoration: none; transition: background .15s, transform .1s, box-shadow .15s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--cta); color: var(--on-cta); box-shadow: 0 6px 16px -6px color-mix(in srgb, var(--cta) 70%, transparent); }
.btn-primary:hover { background: var(--cta-hover); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--rule); }
.btn-ghost:hover { border-color: var(--muted); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-small { padding: 8px 16px; font-size: 14px; }
.btn-big { width: 100%; padding: 16px 24px; font-size: 17px; }
.btn[disabled] { opacity: .6; cursor: progress; }
.link-cta { font-weight: 700; color: var(--ink); }
.cta-row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }

/* hero */
.hero { background: radial-gradient(1100px 480px at 85% -10%, var(--accent-soft), transparent 60%), var(--bg); padding: 48px 0 64px; }
.hero-grid { display: grid; gap: 40px; align-items: start; }
@media (min-width: 980px) { .hero-grid { grid-template-columns: .92fr 1.08fr; gap: 56px; align-items: center; } .hero { padding: 72px 0 88px; } }
.checks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink); font-weight: 500; }
.checks li::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 2px; border-radius: 50%; background: var(--cta) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 12px no-repeat; }

/* tool card */
.tool { background: var(--surface); border: 1px solid var(--rule); border-radius: 20px; box-shadow: var(--shadow); padding: 20px; }
@media (min-width: 760px) { .tool { padding: 26px; } }
.tool-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.tool-head h3 { font-size: 18px; margin: 0; }
.badge-free { font-size: 12px; font-weight: 700; color: var(--ok); background: var(--ok-soft); padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.step-label { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; margin: 0 0 8px; }
.step-num { width: 24px; height: 24px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 12px; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.seg { display: inline-flex; background: var(--bg-soft); border: 1px solid var(--rule); border-radius: 999px; padding: 3px; margin-left: auto; }
.seg button { border: 0; background: transparent; font: 600 13px var(--font); color: var(--muted); padding: 5px 12px; border-radius: 999px; cursor: pointer; }
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(15, 27, 51, .12); }

.drop { position: relative; border: 2px dashed color-mix(in srgb, var(--accent) 45%, var(--rule)); background: color-mix(in srgb, var(--accent-soft) 45%, var(--surface)); border-radius: 14px; padding: 22px 16px; text-align: center; cursor: pointer; transition: background .15s, border-color .15s; }
.drop:hover, .drop.over { border-color: var(--accent); background: var(--accent-soft); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop-icon { width: 40px; height: 40px; margin: 0 auto 8px; border-radius: 10px; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e0532f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3v4a1 1 0 0 0 1 1h4'/%3E%3Cpath d='M17 21H7a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h7l5 5v11a2 2 0 0 1-2 2z'/%3E%3Cpath d='M12 11v6M9.5 13.5L12 11l2.5 2.5'/%3E%3C/svg%3E") center / 22px no-repeat; box-shadow: 0 1px 3px rgba(15, 27, 51, .1); }
.drop strong { display: block; font-size: 15px; }
.drop strong u { color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.drop small { color: var(--muted); font-size: 13px; }
.file-ok { display: flex; align-items: center; gap: 10px; background: var(--ok-soft); color: var(--ok); border-radius: 12px; padding: 10px 14px; font-size: 14px; font-weight: 600; }
.file-ok button { margin-left: auto; background: none; border: 0; color: inherit; font: 600 13px var(--font); text-decoration: underline; cursor: pointer; }

/* forms */
label { display: block; font-weight: 700; font-size: 15px; margin: 0 0 8px; }
.hint { font-weight: 500; color: var(--muted); font-size: 13.5px; }
textarea, input[type="text"] { width: 100%; font: 15px/1.55 var(--font); color: var(--ink); background: var(--bg-soft); border: 1px solid var(--rule); border-radius: 12px; padding: 12px 14px; transition: border-color .15s, box-shadow .15s, background .15s; }
textarea { min-height: 150px; resize: vertical; }
.tall textarea, textarea.tall { min-height: 230px; }
textarea::placeholder, input::placeholder { color: var(--muted); }
textarea:focus, input:focus { outline: none; background: var(--surface); border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
.field { margin-bottom: 16px; }
.two-col { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
@media (max-width: 760px) { .two-col { grid-template-columns: 1fr; } }
.counter { font-size: 12px; color: var(--muted); text-align: right; margin-top: 4px; }
.counter.over { color: var(--bad); font-weight: 700; }
.privacy { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 13px; color: var(--muted); margin-top: 12px; text-align: center; }
.privacy::before { content: ""; width: 14px; height: 14px; flex: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b6478' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='11' width='14' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E") center / contain no-repeat; }

.error { background: var(--bad-soft); color: var(--bad); border-radius: 12px; padding: 12px 14px; margin: 14px 0 0; font-weight: 600; font-size: 15px; }
.loading { display: flex; align-items: center; gap: 12px; color: var(--muted); margin: 18px 0; font-size: 15px; }
.spinner { width: 18px; height: 18px; border: 2.5px solid var(--rule); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* results */
.md h3 { font-size: 18px; margin: 22px 0 6px; }
.md h3:first-child { margin-top: 4px; }
.md h4 { font-size: 15px; margin: 16px 0 6px; }
.md p { margin: 0 0 12px; }
.md ul { margin: 0 0 14px; padding-left: 20px; }
.md li { margin: 4px 0; }
.md .ph, .ph { background: var(--ph); color: inherit; border-radius: 4px; padding: 0 4px; }
.free-out:not(:empty) { margin-top: 20px; padding: 18px 18px 6px; background: var(--bg-soft); border: 1px solid var(--rule); border-radius: 14px; }
.free-out h3 { font-size: 17px; }
.free-out > h3:first-child { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); }

.upsell { margin-top: 18px; border-radius: 16px; background: var(--navy); color: #e8ecf5; padding: 22px; }
.upsell h3 { color: #fff; font-size: 20px; margin-bottom: 6px; }
.upsell p { color: #b9c3d6; margin: 0 0 4px; font-size: 15px; }
.locked { list-style: none; padding: 0; margin: 14px 0 18px; display: grid; gap: 8px; }
.locked li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: #e8ecf5; }
.locked li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 3px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff7a5c' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='11' width='14' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E") center / contain no-repeat; }
.upsell .guarantee { color: #b9c3d6; text-align: center; }

/* trust strip */
.trust-strip { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); background: var(--bg-soft); }
.trust-strip .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; padding-top: 22px; padding-bottom: 22px; }
.trust-item { display: flex; gap: 12px; align-items: center; font-size: 14.5px; color: var(--muted); }
.trust-item b { display: block; color: var(--ink); font-size: 15px; }
.ti-ico { width: 38px; height: 38px; border-radius: 10px; background: var(--surface); border: 1px solid var(--rule); flex: none; display: grid; place-items: center; }
.ti-ico svg { width: 20px; height: 20px; stroke: var(--accent); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* sections */
section { padding: 80px 0; }
.soft { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 44px; }

.steps { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); counter-reset: s; }
.step { background: var(--surface); border: 1px solid var(--rule); border-radius: 18px; padding: 24px; position: relative; }
.step::before { counter-increment: s; content: counter(s); width: 34px; height: 34px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); font-weight: 800; display: grid; place-items: center; margin-bottom: 14px; }
.step p { margin: 0; color: var(--muted); }

.kit-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.kit-card { background: var(--surface); border: 1px solid var(--rule); border-radius: 18px; padding: 22px; box-shadow: 0 1px 2px rgba(15, 27, 51, .04); }
.kit-card .tag { display: inline-block; font-size: 12px; font-weight: 700; color: var(--accent); background: var(--accent-soft); border-radius: 999px; padding: 3px 10px; margin-bottom: 12px; }
.kit-card p { color: var(--muted); margin: 0 0 14px; font-size: 15px; }
.preview { background: var(--bg-soft); border: 1px solid var(--rule); border-radius: 12px; padding: 14px; font-size: 14px; line-height: 1.5; }
.preview .q { font-weight: 700; margin-bottom: 6px; }
.preview ul { margin: 6px 0 0; padding-left: 18px; color: var(--muted); }
.kit-card.wide { grid-column: 1 / -1; }
@media (min-width: 980px) { .kit-card.wide { display: grid; grid-template-columns: .9fr 1.1fr; gap: 28px; align-items: center; } .kit-card.wide p { margin-bottom: 0; } }

.compare { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 860px) { .compare { grid-template-columns: 1fr 1fr; } }
.compare > div { background: var(--surface); border: 1px solid var(--rule); border-radius: 18px; padding: 26px; }
.compare .after { border: 2px solid var(--accent); }
.compare .tag { display: inline-block; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 3px 10px; margin-bottom: 14px; }
.compare .before .tag { color: var(--muted); background: var(--bg-soft); }
.compare .after .tag { color: var(--accent); background: var(--accent-soft); }
.compare .before p { color: var(--muted); }
.compare p, .compare li { font-size: 15.5px; }
.compare ul { padding-left: 18px; margin: 0; }

/* pricing */
.price-card { max-width: 520px; margin: 0 auto; background: var(--surface); border: 2px solid var(--accent); border-radius: 24px; padding: 32px 28px; box-shadow: var(--shadow); text-align: center; }
.price { font-size: 60px; font-weight: 800; letter-spacing: -.04em; line-height: 1; margin: 10px 0 4px; }
.price s { font-size: 24px; color: var(--muted); font-weight: 600; margin-left: 10px; letter-spacing: 0; }
.price-card ul { list-style: none; padding: 0; margin: 22px 0 24px; text-align: left; display: grid; gap: 12px; }
.price-card li { display: flex; gap: 10px; align-items: flex-start; }
.price-card li::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 2px; border-radius: 50%; background: var(--cta) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 12px no-repeat; }
.guarantee { font-size: 13px; color: var(--muted); margin-top: 14px; }

/* faq */
details { background: var(--surface); border: 1px solid var(--rule); border-radius: 14px; padding: 16px 20px; margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 700; font-size: 16.5px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--accent); font-size: 22px; line-height: 1; font-weight: 600; }
details[open] summary::after { content: "–"; }
details p { color: var(--muted); margin: 10px 0 0; }

/* final cta */
.final { background: var(--navy); color: #e8ecf5; border-radius: 24px; padding: 44px 28px; text-align: center; }
.final h2 { color: #fff; }
.final p { color: #b9c3d6; margin: 0 auto 24px; max-width: 520px; }

/* generic card (kit, success pages) */
.card { background: var(--surface); border: 1px solid var(--rule); border-radius: 18px; padding: 22px; box-shadow: 0 1px 2px rgba(15, 27, 51, .04); }
@media (min-width: 760px) { .card { padding: 30px; } }
.output-toolbar { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; margin: 24px 0 12px; }
.kit-section { margin-bottom: 16px; }
.kit-section-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-bottom: 1px solid var(--rule); padding-bottom: 12px; margin-bottom: 8px; }
.kit-section-head h2 { font-size: 22px; margin: 0; }
.code-box { font: 800 clamp(24px, 6vw, 38px)/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .06em; background: var(--accent-soft); color: var(--ink); border: 2px dashed var(--accent); border-radius: 14px; padding: 18px; text-align: center; margin: 18px 0; word-break: break-all; }
.uses { font-size: 13px; color: var(--muted); font-weight: 500; }

/* legal pages */
.legal { padding-top: 40px; padding-bottom: 24px; }
.legal h1 { font-size: clamp(32px, 5vw, 44px); margin-bottom: 6px; }
.legal h2 { font-size: 22px; margin: 30px 0 8px; }
.legal .updated { font-size: 13px; color: var(--muted); margin-top: 0; }

/* footer */
footer { padding: 36px 0 60px; color: var(--muted); font-size: 14px; border-top: 1px solid var(--rule); margin-top: 32px; }
footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--ink); }

.sticky-cta { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 20; display: none; }
@media (max-width: 760px) { .sticky-cta.show { display: block; } }

@media print {
  header.nav, footer, #kit-form, .output-toolbar, .loading, .sticky-cta, main > p, .kit-section-head .btn, h1, .section-lead { display: none !important; }
  body { background: #fff; color: #000; }
  .card { border: none; padding: 0; box-shadow: none; }
  .kit-section { break-inside: auto; margin-bottom: 24px; }
}
