:root {
  --ink: #17162d;
  --muted: #66657a;
  --paper: #fbfaf7;
  --panel: #ffffff;
  --line: #e8e5df;
  --brand: #6157ef;
  --brand-dark: #463ccd;
  --mint: #c9f7e7;
  --coral: #ff765d;
  --shadow: 0 18px 50px rgba(35, 29, 77, 0.10);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
.container { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.narrow { width: min(720px, calc(100% - 40px)); margin: 0 auto; }
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(251, 250, 247, .88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(232, 229, 223, .8);
}
.nav { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 850; letter-spacing: -.03em; font-size: 1.18rem; }
.brand-mark {
  width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px;
  color: white; background: var(--brand); box-shadow: 0 8px 18px rgba(97, 87, 239, .25);
}
.nav-links { display: flex; align-items: center; gap: 22px; color: var(--muted); font-size: .94rem; }
.nav-links a:hover { color: var(--ink); }
.button, button.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border: 1px solid transparent; border-radius: 12px;
  background: var(--brand); color: white; font-weight: 760; box-shadow: 0 7px 18px rgba(97, 87, 239, .18);
  transition: transform .16s ease, background .16s ease, box-shadow .16s ease;
}
.button:hover { transform: translateY(-1px); background: var(--brand-dark); box-shadow: 0 10px 24px rgba(97, 87, 239, .25); }
.button.secondary { background: white; color: var(--ink); border-color: var(--line); box-shadow: none; }
.button.secondary:hover { border-color: #cbc6bc; background: #fff; }
.button.ghost { background: transparent; color: var(--ink); border-color: transparent; box-shadow: none; }
.button.danger { color: #a42d2d; border-color: #efcaca; background: #fff8f8; box-shadow: none; }
.button.small { min-height: 36px; border-radius: 10px; padding: 0 13px; font-size: .88rem; }
.hero { overflow: hidden; position: relative; padding: 96px 0 78px; }
.hero::before {
  content: ""; position: absolute; width: 540px; height: 540px; border-radius: 50%;
  top: -300px; left: calc(50% - 50px); background: #e9e6ff; filter: blur(1px); z-index: -1;
}
.hero-grid { display: grid; grid-template-columns: 1.03fr .97fr; gap: 64px; align-items: center; }
.eyebrow { color: var(--brand-dark); font-size: .78rem; text-transform: uppercase; letter-spacing: .13em; font-weight: 850; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(3rem, 7vw, 5.45rem); line-height: .97; letter-spacing: -.065em; margin-bottom: 26px; max-width: 760px; }
h2 { font-size: clamp(2rem, 4.2vw, 3.4rem); line-height: 1.05; letter-spacing: -.045em; margin-bottom: 18px; }
h3 { font-size: 1.12rem; letter-spacing: -.018em; margin-bottom: 8px; }
.hero-copy { font-size: clamp(1.08rem, 2vw, 1.28rem); color: var(--muted); max-width: 590px; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.microcopy { color: var(--muted); font-size: .84rem; margin-top: 16px; }
.preview-shell { position: relative; }
.preview-shell::before { content: ""; position: absolute; inset: 12% -8% -10% 18%; border-radius: 44px; background: var(--mint); transform: rotate(4deg); }
.browser-card { position: relative; background: white; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); overflow: hidden; transform: rotate(-1deg); }
.browser-bar { height: 42px; display: flex; align-items: center; gap: 6px; padding: 0 15px; background: #f6f4f0; border-bottom: 1px solid var(--line); }
.browser-dot { width: 8px; height: 8px; border-radius: 50%; background: #d4d0c8; }
.browser-url { margin-left: 10px; background: #fff; border: 1px solid #e8e5df; border-radius: 8px; padding: 4px 12px; color: #8a8792; font-size: .72rem; flex: 1; }
.mock-body { padding: 30px; }
.mock-brand { color: var(--brand); font-weight: 800; font-size: .84rem; margin-bottom: 16px; }
.mock-title { font-size: 1.7rem; font-weight: 850; letter-spacing: -.035em; line-height: 1.05; margin-bottom: 18px; }
.mock-option { border: 1px solid var(--line); border-radius: 12px; padding: 13px; margin-top: 9px; display: flex; align-items: center; gap: 10px; font-size: .9rem; }
.mock-option.active { border-color: var(--brand); background: #f5f3ff; }
.radio { width: 16px; height: 16px; border: 2px solid #bbb7b0; border-radius: 50%; }
.active .radio { border: 5px solid var(--brand); }
.mock-result { margin-top: 18px; background: var(--ink); color: white; border-radius: 13px; padding: 15px 17px; display: flex; justify-content: space-between; align-items: center; }
.mock-result span { color: #c4c1d0; font-size: .76rem; }
.mock-result strong { font-size: 1.15rem; }
.section { padding: 86px 0; }
.section.alt { background: #f2f0eb; }
.section-head { max-width: 680px; margin-bottom: 42px; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 25px; }
.feature-number { color: var(--brand); font-weight: 900; font-size: .78rem; letter-spacing: .1em; margin-bottom: 30px; }
.feature p { color: var(--muted); margin-bottom: 0; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.check-list { display: grid; gap: 14px; }
.check { display: flex; gap: 12px; align-items: flex-start; }
.check-icon { flex: 0 0 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: var(--mint); color: #126b4d; font-weight: 900; }
.metric-panel { background: var(--ink); color: white; border-radius: 24px; padding: 30px; box-shadow: var(--shadow); }
.metric-panel p { color: #b9b6c8; }
.metric-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.metric { padding: 18px; border: 1px solid #36344b; border-radius: 14px; }
.metric span { display: block; color: #a9a6b8; font-size: .8rem; }
.metric strong { font-size: 1.7rem; letter-spacing: -.04em; }
.price-card { max-width: 760px; margin: 0 auto; background: white; border: 1px solid var(--line); border-radius: 24px; padding: 34px; box-shadow: var(--shadow); display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; }
.price { font-size: 3rem; letter-spacing: -.06em; font-weight: 880; }
.price small { font-size: 1rem; letter-spacing: 0; color: var(--muted); }
.pill { display: inline-flex; align-items: center; border-radius: 999px; padding: 6px 10px; background: #eeecff; color: var(--brand-dark); font-size: .75rem; font-weight: 820; }
.cta-band { background: var(--coral); border-radius: 28px; padding: 52px; display: flex; justify-content: space-between; align-items: center; gap: 30px; }
.cta-band h2 { max-width: 660px; margin-bottom: 0; }
.site-footer { padding: 38px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem; }
.footer-row { display: flex; justify-content: space-between; gap: 22px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 18px; }

/* Forms and authentication */
.auth-wrap { min-height: calc(100vh - 145px); display: grid; place-items: center; padding: 60px 0; }
.auth-card { width: min(470px, calc(100% - 40px)); background: white; border: 1px solid var(--line); border-radius: 22px; padding: 32px; box-shadow: var(--shadow); }
.auth-card h1 { font-size: 2.25rem; margin-bottom: 10px; }
.auth-card > p { color: var(--muted); }
.form-stack { display: grid; gap: 17px; }
.field { display: grid; gap: 7px; }
.field label, .label { font-weight: 730; font-size: .88rem; }
.field small { color: var(--muted); }
input[type="text"], input[type="email"], input[type="password"], input[type="number"], input[type="url"], input[type="tel"], textarea, select {
  width: 100%; border: 1px solid #dcd8d0; background: white; color: var(--ink); border-radius: 11px; padding: 11px 13px; outline: 0;
}
textarea { resize: vertical; min-height: 96px; }
input:focus, textarea:focus, select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(97, 87, 239, .12); }
.form-error, .notice { border-radius: 11px; padding: 12px 14px; font-size: .9rem; }
.form-error { background: #fff0ee; color: #9d3026; border: 1px solid #f2c8c1; }
.notice { background: #effaf6; color: #166149; border: 1px solid #c9eadf; }
.honeypot { position: absolute !important; left: -9999px !important; opacity: 0 !important; }

/* Product app */
.app-body { background: #f6f5f2; min-height: 100vh; }
.app-nav .container { min-height: 66px; display: flex; justify-content: space-between; align-items: center; }
.app-nav { background: var(--ink); color: white; }
.app-nav .brand-mark { background: white; color: var(--brand); }
.app-nav-links { display: flex; gap: 18px; align-items: center; color: #cac7d4; font-size: .9rem; }
.app-main { padding: 42px 0 70px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.page-head h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 7px; }
.page-head p { color: var(--muted); margin-bottom: 0; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; margin-bottom: 28px; }
.stat { background: white; border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.stat span { color: var(--muted); font-size: .82rem; }
.stat strong { display: block; font-size: 1.8rem; letter-spacing: -.04em; margin-top: 5px; }
.panel { background: white; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.panel-head { padding: 20px 22px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 15px; }
.panel-head h2 { font-size: 1.18rem; margin: 0; letter-spacing: -.02em; }
.empty { padding: 48px 24px; text-align: center; color: var(--muted); }
.card-list { display: grid; }
.list-row { padding: 18px 22px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center; }
.list-row:last-child { border-bottom: 0; }
.list-row p { margin: 4px 0 0; color: var(--muted); font-size: .86rem; }
.row-actions { display: flex; align-items: center; gap: 9px; }
.status { display: inline-flex; border-radius: 999px; padding: 5px 9px; font-size: .74rem; font-weight: 800; }
.status.live, .status.won { background: #e3f8ef; color: #197152; }
.status.draft, .status.contacted { background: #f1efff; color: #544ac5; }
.status.new { background: #fff2d7; color: #8a5a06; }
.status.lost { background: #f4f2ef; color: #77716a; }
.editor-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 22px; align-items: start; }
.editor-main, .editor-side { display: grid; gap: 18px; }
.form-panel { background: white; border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.form-panel h2 { font-size: 1.2rem; margin-bottom: 18px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.full { grid-column: 1 / -1; }
.question-card { background: white; border: 1px solid var(--line); border-radius: 18px; padding: 21px; }
.question-top { display: flex; justify-content: space-between; gap: 15px; align-items: flex-start; }
.option-list { display: grid; gap: 8px; margin: 15px 0; }
.option-row { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: .9rem; }
.option-price { color: var(--muted); font-variant-numeric: tabular-nums; }
.inline-form { display: grid; grid-template-columns: 1fr 110px 110px auto; gap: 8px; align-items: end; }
.share-box { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.code-box { background: #212034; color: #eeedf5; border-radius: 10px; padding: 12px; font: .78rem/1.45 ui-monospace, SFMono-Regular, Consolas, monospace; overflow-wrap: anywhere; }
.help { color: var(--muted); font-size: .83rem; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th, .data-table td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.data-table th { font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.data-table td { font-size: .9rem; }
.data-table tr:last-child td { border-bottom: 0; }

/* Public calculator */
.calculator-page { min-height: 100vh; background: #f4f2ee; padding: 30px 0 64px; }
.calc-brand { text-align: center; font-weight: 850; margin-bottom: 24px; }
.calc-brand span { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; color: white; margin-right: 7px; }
.calculator-shell { width: min(760px, calc(100% - 28px)); margin: 0 auto; background: white; border: 1px solid var(--line); border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); }
.calc-head { padding: 34px 36px 25px; border-bottom: 1px solid var(--line); }
.calc-head .business { color: var(--muted); font-weight: 740; font-size: .86rem; margin-bottom: 12px; }
.calc-head h1 { font-size: clamp(2rem, 6vw, 3.25rem); margin-bottom: 12px; }
.calc-head p { color: var(--muted); margin: 0; }
.calc-form { padding: 10px 36px 36px; }
.calc-question { padding: 26px 0; border-bottom: 1px solid var(--line); }
.calc-question h2 { font-size: 1.15rem; margin-bottom: 5px; letter-spacing: -.02em; }
.calc-question > p { color: var(--muted); font-size: .88rem; margin-bottom: 14px; }
.choice-list { display: grid; gap: 9px; }
.choice { position: relative; display: flex; align-items: center; gap: 12px; border: 1px solid #dedad3; border-radius: 12px; padding: 13px 14px; transition: border .15s ease, background .15s ease; cursor: pointer; }
.choice:hover { border-color: #aaa49a; }
.choice:has(input:checked) { border-color: var(--calc-accent, var(--brand)); background: color-mix(in srgb, var(--calc-accent, var(--brand)) 7%, white); }
.choice input { accent-color: var(--calc-accent, var(--brand)); width: 17px; height: 17px; }
.calc-result { position: sticky; bottom: 12px; margin: 24px 0; border-radius: 16px; padding: 20px 22px; background: var(--ink); color: white; box-shadow: 0 12px 28px rgba(23, 22, 45, .22); }
.calc-result span { color: #bdbacb; font-size: .82rem; }
.calc-result strong { display: block; font-size: 1.85rem; letter-spacing: -.04em; }
.lead-gate { padding-top: 10px; }
.lead-gate h2 { font-size: 1.35rem; }
.lead-gate > p { color: var(--muted); }
.privacy-check { display: flex; gap: 9px; align-items: flex-start; color: var(--muted); font-size: .8rem; }
.privacy-check input { margin-top: 3px; }
.powered { text-align: center; color: var(--muted); font-size: .76rem; margin-top: 16px; }
.success-page { min-height: 100vh; display: grid; place-items: center; background: #edf8f4; padding: 30px; }
.success-card { width: min(560px, 100%); background: white; border: 1px solid #cce7dc; border-radius: 24px; padding: 38px; text-align: center; box-shadow: var(--shadow); }
.success-icon { width: 54px; height: 54px; border-radius: 50%; background: var(--mint); color: #116e4d; display: grid; place-items: center; margin: 0 auto 20px; font-size: 1.5rem; font-weight: 900; }
.success-card h1 { font-size: 2.4rem; }
.legal { padding: 70px 0; }
.legal h1 { font-size: 3rem; }
.legal h2 { font-size: 1.5rem; margin-top: 36px; }
.legal p, .legal li { color: #545264; }

@media (max-width: 850px) {
  .hero-grid, .split, .editor-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 68px; }
  .preview-shell { width: min(560px, 100%); }
  .grid-3, .stats { grid-template-columns: 1fr; }
  .price-card { grid-template-columns: 1fr; }
  .inline-form { grid-template-columns: 1fr 1fr; }
  .inline-form .field:first-child { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  .container, .narrow { width: min(100% - 28px, 1120px); }
  .nav-links > a:not(.button) { display: none; }
  .nav-links { gap: 8px; }
  h1 { font-size: 3.1rem; }
  .hero { padding: 54px 0; }
  .section { padding: 62px 0; }
  .cta-band { padding: 32px 25px; align-items: flex-start; flex-direction: column; }
  .page-head { align-items: flex-start; flex-direction: column; }
  .form-grid { grid-template-columns: 1fr; }
  .calc-head, .calc-form { padding-left: 22px; padding-right: 22px; }
  .inline-form { grid-template-columns: 1fr; }
  .option-row { grid-template-columns: 1fr auto; }
  .option-row form { grid-column: 2; }
  .data-table { display: block; overflow-x: auto; white-space: nowrap; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
