/* ==========================================================================
   humanizetext.online — stylesheet
   White background · blue accents · Inter · mobile-first
   ========================================================================== */

:root {
  --blue-50: #EFF6FF;
  --blue-100: #DBEAFE;
  --blue-200: #BFDBFE;
  --blue-300: #93C5FD;
  --blue-500: #3B82F6;
  --blue-600: #2563EB;
  --blue-700: #1D4ED8;
  --blue-800: #1E40AF;

  --ink: #0F172A;
  --slate: #334155;
  --muted: #64748B;
  --line: #E2E8F0;
  --bg-soft: #F8FAFC;
  --white: #FFFFFF;

  --red: #DC2626;
  --red-bg: #FEF2F2;
  --green: #15803D;
  --green-bg: #F0FDF4;

  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
  --shadow-md: 0 10px 30px rgba(37, 99, 235, .10);
  --shadow-lg: 0 16px 48px rgba(15, 23, 42, .14);

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--slate);
  background: var(--white);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

img, svg { display: inline-block; vertical-align: middle; }

.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.icon-lg { width: 30px; height: 30px; }

a { color: var(--blue-700); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible { outline: 3px solid var(--blue-300); outline-offset: 2px; border-radius: 4px; }

.hidden { display: none !important; }
.hp { display: none !important; } /* honeypot */

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--blue-700); color: #fff; padding: 10px 18px; border-radius: 0 0 8px 0; z-index: 100;
}
.skip-link:focus { left: 0; }

.container { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }

.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 34px; height: 34px; border-radius: 9px; }
.brand-name { font-size: 1.06rem; font-weight: 700; color: var(--ink); letter-spacing: -.01em; }
.brand-name em { font-style: normal; color: var(--blue-600); }
.brand-light .brand-name { color: #fff; }
.brand-light .brand-name em { color: var(--blue-300); }

.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav > a { font-weight: 500; font-size: .95rem; color: var(--slate); }
.site-nav > a:hover { color: var(--blue-700); text-decoration: none; }
.site-nav > a.nav-cta,
.site-nav > a.nav-cta:hover { color: #fff; }
.nav-cta { margin-left: 6px; }

.nav-toggle {
  display: none;
  background: none; border: 1px solid var(--line); border-radius: var(--radius-sm);
  width: 44px; height: 44px; align-items: center; justify-content: center; cursor: pointer; color: var(--ink);
}
.nav-toggle .icon-x { display: none; }
.nav-toggle[aria-expanded="true"] .icon-x { display: block; }
.nav-toggle[aria-expanded="true"] .icon:not(.icon-x) { display: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font); font-weight: 600; font-size: .95rem; line-height: 1.2;
  border-radius: var(--radius-sm); border: 2px solid transparent;
  padding: 13px 24px; cursor: pointer; text-decoration: none !important;
  transition: background .16s ease, color .16s ease, border-color .16s ease, transform .16s ease;
  min-height: 44px;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--blue-600); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--blue-700); }
.btn-ghost { background: var(--blue-50); color: var(--blue-700); }
.btn-ghost:hover { background: var(--blue-100); }
.btn-sm { padding: 10px 18px; font-size: .88rem; }
.btn-lg { padding: 16px 30px; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: not-allowed; }

/* ---------- hero ---------- */
.hero { padding: 72px 0 80px; text-align: center; }
.eyebrow-chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--blue-50); color: var(--blue-800);
  font-size: .82rem; font-weight: 600; letter-spacing: .02em;
  border: 1px solid var(--blue-100); border-radius: 999px; padding: 7px 16px;
}
.eyebrow-chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--blue-600); }

.hero h1 {
  font-size: clamp(2.15rem, 5.2vw, 3.4rem);
  font-weight: 800; letter-spacing: -.025em; line-height: 1.12;
  color: var(--ink); margin: 22px auto 18px; max-width: 720px;
}
.hero h1 .hl { color: var(--blue-600); }

.hero-sub { font-size: clamp(1rem, 1.6vw, 1.13rem); max-width: 640px; margin: 0 auto 32px; color: var(--slate); }

.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

.trust-row {
  list-style: none; display: flex; flex-wrap: wrap; gap: 10px 26px; justify-content: center;
  margin: 26px 0 0; padding: 0;
}
.trust-row li { display: inline-flex; align-items: center; gap: 7px; font-size: .88rem; font-weight: 500; color: var(--muted); }
.trust-row .icon { width: 16px; height: 16px; color: var(--green); stroke-width: 2.5; }

/* before/after score visual */
.score-visual {
  margin: 56px auto 0; max-width: 560px;
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px; align-items: center;
}
.score-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 14px; box-shadow: var(--shadow-sm); text-align: center;
}
.score-card .score-label { font-size: .74rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.score-card .score-value { font-size: 2.2rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.score-card .score-tag { font-size: .8rem; font-weight: 600; }
.score-card.bad .score-value { color: var(--red); }
.score-card.bad .score-tag { color: var(--red); }
.score-card.bad { border-color: #FECACA; background: var(--red-bg); }
.score-card.good .score-value { color: var(--green); }
.score-card.good .score-tag { color: var(--green); }
.score-card.good { border-color: #BBF7D0; background: var(--green-bg); }
.score-arrow { color: var(--blue-600); }
.score-arrow .icon { width: 26px; height: 26px; }
.score-caption { grid-column: 1 / -1; font-size: .78rem; color: var(--muted); margin-top: 2px; }

/* ---------- sections ---------- */
.section { padding: 84px 0; }
.soft { background: var(--bg-soft); }
.soft-blue { background: var(--blue-50); }

.kicker {
  font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em;
  color: var(--blue-600); margin-bottom: 10px;
}
.section-title {
  font-size: clamp(1.55rem, 3.4vw, 2.2rem); font-weight: 700; letter-spacing: -.02em;
  color: var(--ink); line-height: 1.2; max-width: 640px; margin-bottom: 14px;
}
.section-sub { font-size: 1.03rem; color: var(--muted); max-width: 620px; margin-bottom: 8px; }
.section .container > .kicker,
.section .container > .section-title,
.section .container > .section-sub { margin-left: auto; margin-right: auto; }
.section-sub + .grid, .section-title + .grid { margin-top: 34px; }
.section .container { text-align: left; }
#familiar .container, #how .container, #why .container, #quote .container, #faq .container, #contact .container, #pricing .container { text-align: center; }
#familiar .grid, #how .grid, #why .grid, #pricing .grid { text-align: left; }

.section-note {
  margin: 40px auto 0; max-width: 720px; text-align: center;
  font-size: 1.06rem; color: var(--ink); font-weight: 500; line-height: 1.75;
}

/* ---------- grids & cards ---------- */
.grid { display: grid; gap: 22px; margin-top: 38px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow-sm);
  transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease;
}
.card:hover { box-shadow: var(--shadow-md); border-color: var(--blue-200); }
.card h3 { font-size: 1.03rem; font-weight: 700; color: var(--ink); margin: 14px 0 8px; letter-spacing: -.01em; }
.card p { font-size: .92rem; color: var(--muted); }

.card-icon {
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--blue-50); color: var(--blue-600);
  display: flex; align-items: center; justify-content: center;
}
.card-icon .icon { width: 22px; height: 22px; }

/* ---------- steps ---------- */
.steps { list-style: none; counter-reset: step; padding: 0; }
.step { position: relative; padding-top: 4px; }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--blue-600); color: #fff; font-weight: 700; font-size: 1rem;
}
.step h3 { font-size: 1rem; font-weight: 700; color: var(--ink); margin: 14px 0 8px; letter-spacing: -.01em; }
.step p { font-size: .9rem; color: var(--muted); }

/* ---------- pricing ---------- */
.pricing-grid { align-items: stretch; }
.price-card { display: flex; flex-direction: column; }
.price { margin: 6px 0 4px; }
.price-amt { font-size: 2rem; font-weight: 800; color: var(--blue-700); letter-spacing: -.02em; }
.price-per { font-size: .88rem; font-weight: 500; color: var(--muted); margin-left: 4px; }
.price-custom { color: var(--ink); font-size: 1.5rem; }
.ticks { list-style: none; margin-top: 10px; }
.ticks li {
  position: relative; padding-left: 26px; font-size: .88rem; color: var(--slate); margin-bottom: 8px;
}
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 5px;
  width: 15px; height: 15px; border-radius: 50%;
  background: var(--blue-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232563EB' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 10px no-repeat;
  border: 1px solid var(--blue-100);
}
.price-card-alt { background: var(--bg-soft); }
.pricing-fine {
  margin: 30px auto 0; max-width: 760px; text-align: center;
  font-size: .88rem; color: var(--muted); line-height: 1.75;
}
.pricing-fine strong { color: var(--slate); }

/* ---------- calculator ---------- */
#quote .container { text-align: center; }
#step3, #step4 { scroll-margin-top: 96px; }
.calculator {
  margin: 36px auto 0; max-width: 720px; text-align: left;
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  box-shadow: var(--shadow-lg); padding: 34px 30px;
}
.cstep { border: none; margin: 0; }
.cstep + .cstep { margin-top: 30px; }
.cstep legend {
  font-size: 1.02rem; font-weight: 700; color: var(--ink);
  display: flex; align-items: center; gap: 10px; padding: 0; margin-bottom: 16px;
  letter-spacing: -.01em;
}
.step-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--blue-50); color: var(--blue-700);
  font-size: .85rem; font-weight: 700; border: 1px solid var(--blue-100);
}

/* doc type radio cards */
.opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.opt { cursor: pointer; }
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opt-body {
  display: flex; flex-direction: column; gap: 8px; height: 100%;
  border: 2px solid var(--line); border-radius: var(--radius-sm);
  padding: 16px 14px; background: #fff;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.opt-body .icon { width: 22px; height: 22px; color: var(--muted); transition: color .15s ease; }
.opt-text strong { display: block; font-size: .92rem; font-weight: 700; color: var(--ink); line-height: 1.3; }
.opt-text small { display: block; font-size: .78rem; color: var(--muted); margin-top: 3px; }
.opt:hover .opt-body { border-color: var(--blue-300); }
.opt input:checked + .opt-body {
  border-color: var(--blue-600); background: var(--blue-50); box-shadow: var(--shadow-sm);
}
.opt input:checked + .opt-body .icon { color: var(--blue-600); }
.opt input:focus-visible + .opt-body { outline: 3px solid var(--blue-300); outline-offset: 2px; }

/* dropzone */
.dropzone {
  display: block; position: relative; cursor: pointer;
  border: 2px dashed var(--blue-200); border-radius: var(--radius);
  background: rgba(239, 246, 255, .55);
  padding: 30px 20px; text-align: center;
  transition: border-color .15s ease, background .15s ease;
}
.dropzone:hover, .dropzone.dragover { border-color: var(--blue-600); background: var(--blue-100); }
.dropzone input[type="file"] {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; cursor: pointer; font-size: 0;
}
.dz-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; }
.dz-empty .icon-lg { color: var(--blue-600); }
.dz-title { font-size: .98rem; font-weight: 600; color: var(--ink); }
.dz-browse { color: var(--blue-700); text-decoration: underline; text-underline-offset: 3px; }
.dz-sub { font-size: .82rem; color: var(--muted); }
.dz-file {
  display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap;
  pointer-events: none;
}
.dz-file .icon { color: var(--blue-600); width: 24px; height: 24px; }
.dz-name { font-weight: 600; color: var(--ink); font-size: .95rem; word-break: break-all; }
.dz-change { font-size: .82rem; color: var(--blue-700); text-decoration: underline; text-underline-offset: 3px; }

.mode-link {
  display: block; margin: 14px auto 0; background: none; border: none; cursor: pointer;
  font-family: var(--font); font-size: .88rem; font-weight: 500; color: var(--blue-700);
  text-decoration: underline; text-underline-offset: 3px;
  min-height: 44px; padding: 8px;
}

.pastebox label { display: block; font-size: .88rem; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.pastebox textarea {
  width: 100%; font-family: var(--font); font-size: .95rem; line-height: 1.6; color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px;
  resize: vertical; background: #fff; transition: border-color .15s ease, box-shadow .15s ease;
}
.pastebox textarea:focus { outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 3px var(--blue-100); }
.paste-count { font-size: .82rem; color: var(--muted); margin-top: 7px; font-weight: 500; }

.count-status {
  margin: 14px 0 0; font-size: .9rem; font-weight: 600; color: var(--ink);
  display: flex; align-items: center; gap: 8px; min-height: 24px; flex-wrap: wrap;
}
.count-status .icon { width: 18px; height: 18px; }
.count-status.ok .icon { color: var(--green); }
.count-status.err { color: var(--red); }
.count-status.err .icon { color: var(--red); }

.spinner {
  width: 16px; height: 16px; border-radius: 50%; flex-shrink: 0;
  border: 2px solid var(--blue-100); border-top-color: var(--blue-600);
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* quote box */
.quote-box {
  background: var(--blue-50); border: 1px solid var(--blue-100);
  border-radius: var(--radius); padding: 8px 20px; margin-bottom: 18px;
}
.qrow {
  display: flex; justify-content: space-between; align-items: baseline; gap: 14px;
  padding: 11px 0; border-bottom: 1px solid var(--blue-100);
  font-size: .93rem;
}
.qrow span { color: var(--slate); }
.qrow strong { color: var(--ink); font-weight: 700; text-align: right; }
.qrow.qtotal { border-bottom: none; padding-top: 14px; }
.qrow.qtotal span { font-weight: 700; color: var(--ink); font-size: 1rem; }
.qrow.qtotal strong { font-size: 1.9rem; font-weight: 800; color: var(--blue-700); letter-spacing: -.02em; }
.qnote { color: var(--muted); font-weight: 400; font-size: .8rem; }
.qfine { font-size: .8rem; color: var(--muted); padding: 4px 0 12px; line-height: 1.6; }

/* step 4 */
.chip-summary {
  display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px;
  background: var(--ink); color: #fff; font-size: .85rem; font-weight: 600;
  line-height: 1.5;
  border-radius: 999px; padding: 10px 20px; margin-bottom: 20px;
}
.chip-summary .sep { opacity: .45; }

.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.field label { display: block; font-size: .88rem; font-weight: 600; color: var(--ink); margin-bottom: 7px; }
.field .req { color: var(--red); }
.field input {
  width: 100%; font-family: var(--font); font-size: .97rem; color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 13px 14px;
  background: #fff; min-height: 48px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus { outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 3px var(--blue-100); }
.field .hint { font-size: .78rem; color: var(--muted); margin-top: 6px; }
.field.error input, .field.error .wa-wrap input { border-color: var(--red); box-shadow: 0 0 0 3px var(--red-bg); }
.field.error .hint { color: var(--red); font-weight: 600; }

.wa-wrap { display: flex; }
.wa-cc {
  display: flex; align-items: center; padding: 0 13px;
  background: var(--blue-50); color: var(--blue-800); font-weight: 600; font-size: .95rem;
  border: 1px solid var(--line); border-right: none; border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}
.wa-wrap input { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }

#fldDeadline { grid-column: 1 / -1; }

.form-error {
  background: var(--red-bg); border: 1px solid #FECACA; color: var(--red);
  border-radius: var(--radius-sm); padding: 12px 16px; font-size: .88rem; font-weight: 500;
  margin-bottom: 16px;
}

.note {
  background: #FFFBEB; border: 1px solid #FDE68A; color: #92400E;
  border-radius: var(--radius-sm); padding: 12px 16px; font-size: .86rem; margin-bottom: 16px; line-height: 1.6;
}

.fine-print { font-size: .8rem; color: var(--muted); margin-top: 14px; text-align: center; line-height: 1.65; }

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 780px; }
.faq {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  margin-top: 12px; box-shadow: var(--shadow-sm); overflow: hidden;
}
.faq summary {
  list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 18px 22px; cursor: pointer; font-weight: 600; color: var(--ink); font-size: .98rem;
  min-height: 44px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq .chev { color: var(--blue-600); transition: transform .18s ease; width: 18px; height: 18px; }
.faq[open] .chev { transform: rotate(180deg); }
.faq[open] summary { border-bottom: 1px solid var(--line); }
.faq-body { padding: 16px 22px 20px; }
.faq-body p { font-size: .93rem; color: var(--slate); line-height: 1.75; }

/* ---------- contact ---------- */
.contact-wrap { text-align: center; }
.contact-mail {
  display: inline-flex; align-items: center; gap: 12px;
  background: #fff; border: 2px solid var(--blue-200); border-radius: var(--radius);
  color: var(--blue-700); font-weight: 700; font-size: clamp(1rem, 2.4vw, 1.2rem);
  padding: 18px 30px; margin: 30px 0 10px; box-shadow: var(--shadow-sm);
  transition: border-color .15s ease, box-shadow .15s ease;
  word-break: break-all;
}
.contact-mail:hover { text-decoration: none; border-color: var(--blue-600); box-shadow: var(--shadow-md); }
.contact-mail .icon { width: 24px; height: 24px; }
.contact-alt { font-size: .92rem; color: var(--muted); }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #CBD5E1; margin-top: auto; }
.footer-top {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 32px;
  padding: 52px 0 36px; flex-wrap: wrap;
}
.footer-brand p { font-size: .92rem; margin-top: 14px; max-width: 300px; color: #94A3B8; }
.footer-nav { display: flex; flex-direction: column; gap: 11px; }
.footer-nav a { color: #CBD5E1; font-size: .92rem; }
.footer-nav a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #1E293B; padding: 22px 0 30px; }
.footer-bottom p { font-size: .84rem; color: #94A3B8; }
.footer-fine { margin-top: 4px; font-size: .78rem !important; color: #94A3B8 !important; }

/* ---------- thank-you & 404 pages ---------- */
.page-center { text-align: center; padding: 90px 0 80px; }
.page-center h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 800; color: var(--ink); letter-spacing: -.02em; margin: 18px 0 12px; }
.page-center .lead { font-size: 1.05rem; color: var(--slate); max-width: 560px; margin: 0 auto; }
.big-check {
  width: 74px; height: 74px; border-radius: 50%; margin: 0 auto;
  background: var(--green-bg); border: 2px solid #BBF7D0; color: var(--green);
  display: flex; align-items: center; justify-content: center;
}
.big-check .icon { width: 34px; height: 34px; stroke-width: 2.4; }
.ref-pill {
  display: inline-block; background: var(--blue-50); border: 1px dashed var(--blue-300);
  color: var(--blue-800); font-weight: 700; font-size: 1.05rem; letter-spacing: .04em;
  border-radius: var(--radius-sm); padding: 10px 20px; margin: 18px 0 8px;
}
.next-steps { list-style: none; counter-reset: ns; max-width: 540px; margin: 36px auto 0; text-align: left; }
.next-steps li { position: relative; padding: 0 0 20px 52px; counter-increment: ns; }
.next-steps li::before {
  content: counter(ns); position: absolute; left: 0; top: -2px;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--blue-600); color: #fff; font-weight: 700;
  display: flex; align-items: center; justify-content: center; font-size: .95rem;
}
.next-steps strong { display: block; color: var(--ink); font-size: .98rem; margin-bottom: 3px; }
.next-steps p { font-size: .9rem; color: var(--muted); }
.page-note { font-size: .86rem; color: var(--muted); max-width: 520px; margin: 8px auto 30px; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 > article:last-child { grid-column: 1 / -1; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 460px; margin-left: auto; margin-right: auto; }
  .pricing-grid > article:last-child { grid-column: auto; }
}

@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 0; padding: 10px 24px 20px;
    box-shadow: var(--shadow-lg);
  }
  .site-nav.open { display: flex; }
  .site-nav > a { padding: 13px 0; border-bottom: 1px solid var(--bg-soft); font-size: 1rem; }
  .nav-cta { margin: 14px 0 0; justify-content: center; }

  .hero { padding: 48px 0 60px; }
  .hero-cta .btn { width: 100%; }
  .section { padding: 60px 0; }
  .grid { grid-template-columns: 1fr !important; gap: 16px; margin-top: 28px; }
  .calculator { padding: 26px 18px; border-radius: 14px; }
  .opts { grid-template-columns: 1fr; }
  .fields { grid-template-columns: 1fr; }
  .score-visual { grid-template-columns: 1fr 1fr; }
  .score-arrow { display: none; }
  .footer-top { flex-direction: column; gap: 26px; padding: 42px 0 28px; }
  .cstep { margin-bottom: 26px; }
}

/* ---------- motion & print ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

::selection { background: var(--blue-100); color: var(--blue-800); }
