/* ---------- tokens ---------- */
:root {
  --bg: #fbfaf7;
  --bg-soft: #f3f1ec;
  --surface: #ffffff;
  --text: #17171c;
  --muted: #64646e;
  --line: #e7e4dd;
  --accent: #4f46e5;
  --accent-soft: #eeedfd;
  --accent-ink: #ffffff;
  --coral: #e5533d;
  --coral-soft: #fdece8;
  --good: #16865a;
  --good-soft: #e3f4ec;
  --warn: #b7791f;
  --warn-soft: #fdf3e1;
  --shadow: 0 1px 2px rgba(23, 23, 28, .04), 0 8px 24px rgba(23, 23, 28, .06);
  --shadow-lg: 0 2px 4px rgba(23, 23, 28, .04), 0 24px 60px rgba(23, 23, 28, .10);
  --radius: 16px;
  --radius-sm: 10px;
  --font: "Plus Jakarta Sans", Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111114;
    --bg-soft: #18181d;
    --surface: #1c1c22;
    --text: #f1f0ee;
    --muted: #a1a1ab;
    --line: #2c2c34;
    --accent: #8b85ff;
    --accent-soft: #24233d;
    --accent-ink: #0f0f14;
    --coral: #ff7a63;
    --coral-soft: #3a211d;
    --good: #4cc68f;
    --good-soft: #17302a;
    --warn: #e5ad55;
    --warn-soft: #36291a;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, .3), 0 24px 60px rgba(0, 0, 0, .4);
  }
}

/* ---------- base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.6 var(--font); -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { letter-spacing: -0.025em; line-height: 1.12; margin: 0; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 880px; }
.muted { color: var(--muted); }
.hint { font-size: 14px; color: var(--muted); }
.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;
}
.section { padding: 88px 0; }
.section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); margin: 14px 0 12px; }
.section-head p { color: var(--muted); font-size: 18px; margin: 0; }

/* ---------- header ---------- */
header.top {
  position: sticky; top: 0; z-index: 20; backdrop-filter: saturate(1.4) blur(12px);
  background: color-mix(in srgb, var(--bg) 82%, transparent); border-bottom: 1px solid transparent;
}
header.top.scrolled { border-bottom-color: var(--line); }
header.top .wrap { display: flex; justify-content: space-between; align-items: center; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--text); font-size: 17px; }
.brand:hover { text-decoration: none; }
.logo {
  width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent), #8b5cf6); color: #fff; font-size: 14px;
}
.nav { display: flex; align-items: center; gap: 22px; font-size: 15px; }
.nav a { color: var(--muted); font-weight: 500; }
.nav a:hover { color: var(--text); text-decoration: none; }
.nav .links { display: flex; gap: 22px; }
.nav a.btn, .nav a.btn:hover { color: var(--accent-ink); }
.nav .langs a { margin-left: 8px; font-size: 13px; }
.nav .langs a.on { color: var(--text); font-weight: 700; }
@media (max-width: 760px) { .nav .links { display: none; } }

/* ---------- buttons & forms ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--accent); color: var(--accent-ink); border: 0; border-radius: 12px;
  padding: 14px 22px; font: inherit; font-weight: 700; cursor: pointer; white-space: nowrap;
  box-shadow: 0 6px 16px color-mix(in srgb, var(--accent) 30%, transparent);
  transition: transform .15s, box-shadow .15s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: 0 10px 24px color-mix(in srgb, var(--accent) 35%, transparent); }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); box-shadow: none; }
.btn.small { padding: 9px 14px; font-size: 14px; border-radius: 10px; }
.btn.block { width: 100%; }
label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
input, select, textarea {
  width: 100%; padding: 13px 14px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--surface); color: var(--text); font: inherit; transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft);
}
textarea { min-height: 340px; line-height: 1.6; }
.actions { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; align-items: center; }
.banner {
  background: var(--warn-soft); border: 1px solid color-mix(in srgb, var(--warn) 40%, transparent);
  border-radius: var(--radius-sm); padding: 12px 16px; font-size: 14px; margin: 16px 0;
}
.banner.error { background: var(--coral-soft); border-color: color-mix(in srgb, var(--coral) 40%, transparent); }

/* ---------- hero ---------- */
.hero { padding: 64px 0 72px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } }
.hero h1 { font-size: clamp(36px, 5.6vw, 60px); margin: 18px 0 18px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { font-size: 19px; color: var(--muted); margin: 0 0 28px; max-width: 540px; }

.check-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; box-shadow: var(--shadow);
}
.check-row { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 10px; }
.check-row.second { grid-template-columns: 1fr auto; margin-top: 10px; }
@media (max-width: 620px) { .check-row, .check-row.second { grid-template-columns: 1fr; } }
.check-card input, .check-card select { background: var(--bg); }
.more { margin-top: 12px; }
.more summary { cursor: pointer; font-size: 14px; color: var(--muted); font-weight: 600; list-style: none; }
.more summary::-webkit-details-marker { display: none; }
.more summary::before { content: "+ "; }
.more[open] summary::before { content: "− "; }
.more .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
@media (max-width: 620px) { .more .grid { grid-template-columns: 1fr; } }
.check-note { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 14px; font-size: 13px; color: var(--muted); }
.check-note span::before { content: "✓ "; color: var(--good); font-weight: 700; }

/* chat mock */
.chat {
  background: var(--surface); border: 1px solid var(--line); border-radius: 22px;
  box-shadow: var(--shadow-lg); overflow: hidden; position: relative;
}
.chat-top { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.chat-top i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); display: inline-block; }
.chat-top b { margin-left: 8px; color: var(--text); font-weight: 600; }
.chat-body { padding: 22px 20px 26px; min-height: 380px; display: flex; flex-direction: column; gap: 14px; }
.msg { max-width: 88%; padding: 12px 15px; border-radius: 16px; font-size: 15px; line-height: 1.5; }
.msg.user { align-self: flex-end; background: var(--accent); color: var(--accent-ink); border-bottom-right-radius: 6px; }
.msg.ai { align-self: flex-start; background: var(--bg-soft); border-bottom-left-radius: 6px; }
.msg.ai ol { margin: 8px 0 0; padding-left: 20px; }
.msg.ai li { margin: 4px 0; }
.msg.ai li b { font-weight: 700; }
.verdict {
  align-self: stretch; display: flex; gap: 12px; align-items: center; padding: 12px 14px;
  border-radius: 14px; background: var(--coral-soft); color: var(--text); font-size: 14px;
  border: 1px dashed color-mix(in srgb, var(--coral) 55%, transparent);
}
.verdict .x { width: 28px; height: 28px; flex: none; border-radius: 50%; background: var(--coral); color: #fff; display: grid; place-items: center; font-weight: 800; }
.typing span { display: inline-block; width: 6px; height: 6px; margin-right: 4px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite; }
.typing span:nth-child(2) { animation-delay: .2s; }
.typing span:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.reveal { opacity: 0; transform: translateY(6px); transition: opacity .45s, transform .45s; }
.reveal.on { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- logos strip ---------- */
.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.strip .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 36px; padding: 22px 20px; color: var(--muted); font-size: 14px; }
.strip b { color: var(--text); font-size: 16px; font-weight: 700; }

/* ---------- cards / grids ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; margin: 18px 0; box-shadow: var(--shadow);
}
.card h2 { font-size: 21px; margin-bottom: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 860px) { .grid-3 { grid-template-columns: 1fr; } }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.feature .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-size: 20px; margin-bottom: 16px; }
.feature h3 { font-size: 19px; margin-bottom: 8px; }
.feature p { color: var(--muted); margin: 0; }
.step-n { font-size: 13px; font-weight: 700; color: var(--accent); margin-bottom: 8px; display: block; }

/* why-now */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 32px; } }
.split h2 { font-size: clamp(28px, 4vw, 40px); margin: 14px 0 16px; }
.split p { color: var(--muted); font-size: 17px; }
.checklist { list-style: none; padding: 0; margin: 20px 0 0; }
.checklist li { padding: 8px 0 8px 32px; position: relative; }
.checklist li::before { content: "✓"; position: absolute; left: 0; top: 8px; width: 22px; height: 22px; border-radius: 50%; background: var(--good-soft); color: var(--good); display: grid; place-items: center; font-size: 12px; font-weight: 800; }
.compare { display: grid; gap: 12px; }
.compare .row { display: flex; align-items: center; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.compare .row .tag-old { font-size: 12px; font-weight: 700; color: var(--muted); background: var(--bg-soft); border-radius: 999px; padding: 4px 10px; white-space: nowrap; }
.compare .row .tag-new { font-size: 12px; font-weight: 700; color: var(--accent); background: var(--accent-soft); border-radius: 999px; padding: 4px 10px; white-space: nowrap; }

/* sample report preview */
.preview { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-lg); padding: 28px; }
.preview-grid { display: grid; grid-template-columns: 220px 1fr; gap: 32px; align-items: center; }
@media (max-width: 760px) { .preview-grid { grid-template-columns: 1fr; } }

/* pricing */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
@media (max-width: 900px) { .pricing { grid-template-columns: 1fr; } }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; }
.plan.featured { border: 2px solid var(--accent); box-shadow: var(--shadow-lg); position: relative; }
.plan .badge { position: absolute; top: -12px; left: 24px; background: var(--accent); color: var(--accent-ink); font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.plan h3 { font-size: 18px; }
.plan .price { font-size: 40px; font-weight: 800; letter-spacing: -0.03em; margin: 12px 0 4px; }
.plan .price small { font-size: 15px; font-weight: 600; color: var(--muted); }
.plan p { color: var(--muted); margin: 0 0 16px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 24px; flex: 1; }
.plan li { padding: 6px 0 6px 26px; position: relative; font-size: 15px; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--good); font-weight: 800; }

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

.cta-band { background: linear-gradient(135deg, var(--accent), #7c3aed); color: #fff; border-radius: 28px; padding: 56px 32px; text-align: center; }
.cta-band h2 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 12px; }
.cta-band p { opacity: .85; font-size: 18px; margin: 0 0 26px; }
.cta-band .btn { background: #fff; color: #1b1b2f; box-shadow: none; }

/* ---------- report ---------- */
.report-head { padding: 40px 0 8px; }
.report-head h1 { font-size: clamp(30px, 4.5vw, 46px); margin: 12px 0 8px; }
.pill { display: inline-block; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.pill.yes { background: var(--good-soft); color: var(--good); }
.pill.no { background: var(--coral-soft); color: var(--coral); }
.pill.tier { background: var(--warn-soft); color: var(--warn); }
.pill.full { background: var(--accent-soft); color: var(--accent); }

.score-card { display: grid; grid-template-columns: 240px 1fr; gap: 36px; align-items: center; }
@media (max-width: 760px) { .score-card { grid-template-columns: 1fr; justify-items: center; text-align: center; } }
.ring { --p: 0; --c: var(--coral); width: 200px; height: 200px; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--c) calc(var(--p) * 1%), var(--bg-soft) 0); }
.ring > div { width: 158px; height: 158px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; text-align: center; }
.ring .v { font-size: 46px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.ring .l { font-size: 13px; color: var(--muted); margin-top: 4px; }
.ring.good { --c: var(--good); } .ring.warn { --c: var(--warn); } .ring.bad { --c: var(--coral); }
.ring.small { width: 140px; height: 140px; } .ring.small > div { width: 108px; height: 108px; } .ring.small .v { font-size: 32px; }
.verdict-text h2 { font-size: clamp(22px, 3vw, 30px); margin-bottom: 10px; }
.verdict-text p { color: var(--muted); margin: 0 0 14px; font-size: 17px; }
.mini-stats { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 8px; }
.mini-stats div b { display: block; font-size: 24px; letter-spacing: -0.02em; }
.mini-stats div span { font-size: 13px; color: var(--muted); }

.quote { border-left: 4px solid var(--accent); background: var(--bg-soft); border-radius: 0 14px 14px 0; padding: 18px 20px; }
.quote .q { font-weight: 700; margin-bottom: 10px; }
.quote pre { white-space: pre-wrap; font: 15px/1.6 var(--font); margin: 0; color: var(--text); max-height: 280px; overflow: hidden; }
.quote .src { font-size: 13px; color: var(--muted); margin-top: 10px; }

.bars { display: grid; gap: 12px; }
.bars .b { display: grid; grid-template-columns: minmax(120px, 240px) 1fr 52px; gap: 14px; align-items: center; font-size: 15px; }
@media (max-width: 560px) { .bars .b { grid-template-columns: 1fr 52px; } .bars .b .track { grid-column: 1 / -1; grid-row: 2; } }
.bars .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bars .track { height: 12px; border-radius: 6px; background: var(--bg-soft); overflow: hidden; }
.bars .track i { display: block; height: 100%; border-radius: 6px; background: color-mix(in srgb, var(--muted) 55%, transparent); }
.bars .b.you { font-weight: 800; }
.bars .b.you .track i { background: var(--accent); }
.bars .pct { text-align: right; font-variant-numeric: tabular-nums; color: var(--muted); }
.bars .b.you .pct { color: var(--text); }
.bars .b.blur { filter: blur(5px); user-select: none; pointer-events: none; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 12px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
td.num, th.num { text-align: right; white-space: nowrap; }
.bar { height: 8px; border-radius: 4px; background: var(--bg-soft); overflow: hidden; min-width: 80px; }
.bar i { display: block; height: 100%; background: var(--accent); }
.tag { font-size: 12px; color: var(--accent); margin-left: 6px; font-weight: 700; }

.recs { list-style: none; padding: 0; margin: 0; counter-reset: rec; }
.recs li { padding: 16px 0 16px 50px; border-bottom: 1px solid var(--line); position: relative; color: var(--muted); }
.recs li:last-child { border-bottom: 0; }
.recs li::before {
  counter-increment: rec; content: counter(rec); position: absolute; left: 0; top: 16px; width: 34px; height: 34px;
  border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-weight: 800;
}
.recs b { display: block; margin-bottom: 3px; color: var(--text); font-size: 16px; }
.recs li.blur { filter: blur(5px); user-select: none; }

.locked { position: relative; }
.locked .veil { position: absolute; inset: 0; background: linear-gradient(to bottom, transparent, var(--surface) 70%); display: flex; align-items: flex-end; justify-content: center; padding-bottom: 6px; }
.upsell { border: 2px solid var(--accent); background: linear-gradient(180deg, var(--accent-soft), var(--surface) 60%); }
.upsell h2 { font-size: 24px; margin-bottom: 8px; }
.upsell p { margin: 0 0 10px; color: var(--muted); }
.upsell ul { list-style: none; padding: 0; margin: 14px 0 6px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 20px; }
@media (max-width: 560px) { .upsell ul { grid-template-columns: 1fr; } }
.upsell li::before { content: "✓ "; color: var(--good); font-weight: 800; }

details.answer { border-top: 1px solid var(--line); padding: 12px 0; }
details.answer summary { cursor: pointer; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
details.answer pre { white-space: pre-wrap; font: 14px/1.6 var(--font); background: var(--bg-soft); padding: 14px; border-radius: 12px; margin: 10px 0 0; }

.progress { height: 10px; background: var(--bg-soft); border-radius: 6px; overflow: hidden; margin: 18px 0; }
.progress i { display: block; height: 100%; background: var(--accent); transition: width .4s; }
.loading-card { text-align: center; padding: 56px 26px; }
.loading-card .spinner { width: 46px; height: 46px; border-radius: 50%; border: 4px solid var(--accent-soft); border-top-color: var(--accent); margin: 0 auto 20px; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

footer.site { border-top: 1px solid var(--line); margin-top: 72px; padding: 32px 0 48px; color: var(--muted); font-size: 14px; }
footer.site .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
footer.site p { margin: 0 0 6px; max-width: 620px; }

@media print {
  :root { --bg: #fff; --surface: #fff; --bg-soft: #f4f4f4; --text: #000; --line: #ddd; --shadow: none; --shadow-lg: none; }
  header.top, .actions, .no-print, footer.site { display: none !important; }
  .card { break-inside: avoid; box-shadow: none; }
}

/* admin: automation */
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px 18px; margin-bottom: 12px; }
.grid2 input, .grid2 select { margin-top: 6px; }
.checks { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 8px; }
label.check { display: flex; align-items: center; gap: 8px; font-weight: 500; color: var(--text); margin: 6px 0; }
label.check input { width: auto; margin: 0; }
