:root {
  --ink: #161a2e; --ink2: #3d4460; --mute: #5d6480; --line: #dde1ee; --bg: #f7f8fc; --card: #fff;
  --acc: #3b3fd8; --acc-d: #2c2fb0; --acc-l: #ecedfd; --ok: #14805e; --red: #b8322a;
  --code-bg: #12142a; --code-ink: #e6e8f5;
  --r: 14px; --shadow: 0 1px 2px rgba(22, 26, 46, .06), 0 10px 30px rgba(22, 26, 46, .08);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.1rem/1.6 'Source Sans 3', system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: 'Manrope', system-ui, sans-serif; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.015em; }
h1 { font-size: clamp(2.4rem, 5.5vw, 3.8rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.2rem; }
.h1-sm { font-size: clamp(1.8rem, 4vw, 2.4rem); }
a { color: var(--acc); }
code { font: .92em 'JetBrains Mono', ui-monospace, monospace; background: var(--acc-l); padding: 1px 6px; border-radius: 5px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }
.btn { display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 10px; background: var(--acc); color: #fff;
  font: 700 1.05rem 'Manrope', sans-serif; padding: 14px 22px; cursor: pointer; text-decoration: none; transition: background .15s; }
.btn:hover { background: var(--acc-d); }
.btn:disabled { opacity: .65; cursor: wait; }
.btn-ghost { background: transparent; color: var(--acc); border: 2px solid var(--acc); padding: 12px 20px; }
.btn-ghost:hover { background: var(--acc-l); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; }

.top { background: #fff; border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: 800 1.2rem 'Manrope', sans-serif; }
.top-nav { display: flex; gap: 20px; }
.top-nav a { color: var(--ink2); text-decoration: none; font-weight: 600; }

.hero { padding: 56px 0; background: linear-gradient(180deg, #fff, var(--bg)); }
.hero-in { display: grid; grid-template-columns: 1.1fr 1fr; gap: 44px; align-items: center; }
.eyebrow { color: var(--acc); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .9rem; margin: 0 0 8px; }
.lead { font-size: 1.25rem; color: var(--ink2); }
.gen { box-shadow: var(--shadow); display: grid; gap: 16px; }
.field { display: grid; gap: 6px; font-weight: 700; }
.field input { font: inherit; font-weight: 400; border: 2px solid var(--line); border-radius: 10px; padding: 13px 14px; background: #fff; color: var(--ink); width: 100%; }
.field input:focus { outline: none; border-color: var(--acc); }
.consent { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; font-size: 1rem; color: var(--ink2); cursor: pointer; }
.consent input { width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--acc); }
.fine { font-size: .95rem; color: var(--mute); margin: 0; }
.err { color: var(--red); font-weight: 700; margin: 0; }

.band { padding: 60px 0; }
.band.alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sub { color: var(--ink2); margin-top: 0; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.checks { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin-top: 20px; }
.grid p { margin: 0; color: var(--ink2); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; margin-top: 20px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 22px; }
.stat b { display: block; font: 800 2.4rem 'Manrope', sans-serif; color: var(--acc); }
.stat span { color: var(--ink2); }

.result-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; }
.file { background: var(--code-bg); color: var(--code-ink); border-radius: var(--r); padding: 22px; margin: 0; max-height: 560px; overflow: auto;
  font: .95rem/1.55 'JetBrains Mono', ui-monospace, monospace; white-space: pre-wrap; word-break: break-word; }
.next { margin-top: 20px; }
.next p { color: var(--ink2); }

details { border-bottom: 1px solid var(--line); padding: 16px 0; }
summary { font: 700 1.12rem 'Manrope', sans-serif; cursor: pointer; }
details p { color: var(--ink2); margin: 10px 0 0; }

.foot { border-top: 1px solid var(--line); background: #fff; padding: 22px 0; color: var(--mute); }
.foot-in { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot p { margin: 0; }
.simple { padding: 40px 24px; }
.simple .brand { margin-bottom: 28px; }
.prose h2 { font-size: 1.35rem; margin-top: 1.6em; }
.prose li { margin-bottom: 6px; }

@media (max-width: 860px) {
  .hero-in, .two { grid-template-columns: 1fr; }
  .hero { padding: 36px 0; }
  .wrap { padding: 0 16px; }
  .top-nav { display: none; }
  .band { padding: 44px 0; }
}
