:root {
  --blue: #0284c8;
  --blue-dark: #0369a1;
  --blue-soft: #e0f2fe;
  --bg: #f8fafc;
  --card: #ffffff;
  --ink: #000000;
  --body: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --radius: 12px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--body); font-family: Inter, sans-serif; }
button, input { font: inherit; }
button { cursor: pointer; }
.container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.calc-header { border-bottom: 1px solid var(--line); background: rgba(255,255,255,.94); }
.header-inner { display: flex; min-height: 78px; align-items: center; justify-content: space-between; }
.brand-link img { display: block; width: 116px; height: auto; }
.back-link { color: var(--blue-dark); font-size: .875rem; font-weight: 700; text-decoration: none; }
.hero { padding: 72px 0 42px; text-align: center; }
.eyebrow { margin: 0 0 12px; color: var(--blue); font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
h1, h2, h3 { margin-top: 0; color: var(--ink); font-family: Gabarito, sans-serif; }
h1 { max-width: 820px; margin: 0 auto 16px; font-size: clamp(2.35rem, 6vw, 4.5rem); line-height: .98; letter-spacing: -.04em; }
.hero-copy { max-width: 700px; margin: 0 auto; color: var(--muted); font-size: 1.05rem; line-height: 1.65; }
.profile-picker { display: flex; justify-content: center; gap: 10px; margin-top: 30px; }
.profile { min-height: 46px; border: 1px solid var(--line); border-radius: 10px; padding: 0 18px; background: var(--card); color: var(--body); font-weight: 700; }
.profile:hover, .profile.active { border-color: var(--blue); background: var(--blue); color: white; }
.profile-feedback { margin: 12px 0 0; color: var(--muted); font-size: .8rem; }
.profile-weights{display:flex;justify-content:center;flex-wrap:wrap;gap:8px;margin:12px 0 0}.profile-weights span{border:1px solid #cbd5e1;border-radius:999px;padding:6px 10px;background:#fff;color:var(--muted);font-size:.68rem}.profile-weights strong{margin-left:4px;color:var(--blue)}
.monthly-helper{display:flex;align-items:center;justify-content:space-between;gap:18px;max-width:720px;margin:22px auto 0;border:1px solid #bae6fd;border-radius:10px;padding:13px 15px;background:#f0f9ff;text-align:left}.monthly-helper strong,.monthly-helper span{display:block}.monthly-helper strong{color:var(--ink);font-size:.78rem}.monthly-helper span{margin-top:3px;color:var(--muted);font-size:.68rem}.monthly-helper label{position:relative;flex:0 0 170px;color:var(--body);font-size:.64rem;font-weight:700}.monthly-helper input{display:block;width:100%;height:38px;margin-top:4px;border:1px solid #cbd5e1;border-radius:7px;padding:0 55px 0 10px;background:#fff;text-align:right}.monthly-helper small{position:absolute;right:9px;bottom:11px;color:var(--muted)}
.calculator-layout { display: grid; grid-template-columns: 1fr; gap: 24px; padding-bottom: 70px; }
.groups { display: grid; gap: 16px; }
.variable-group { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.group-heading { display: flex; align-items: center; justify-content: space-between; width: 100%; border: 0; padding: 19px 20px; background: white; color: var(--ink); font-family: Gabarito, sans-serif; font-size: 1.1rem; font-weight: 800; text-align: left; }
.group-heading span { color: var(--muted); font: 600 .72rem Inter, sans-serif; }
.group-heading i { display: inline-block; margin-left: 12px; color: var(--blue); font-style: normal; transition: transform .2s; }
.variable-group.collapsed .group-heading i { transform: rotate(-90deg); }
.variable-group.collapsed .group-body { display: none; }
.group-body { border-top: 1px solid var(--line); }
.variable-row { display: grid; grid-template-columns: 26px minmax(0, 1fr) minmax(140px, 205px); align-items: center; gap: 12px; min-height: 68px; padding: 11px 18px; border-bottom: 1px solid #f1f5f9; opacity: .55; transition: background .18s, opacity .18s; }
.variable-row:last-child { border-bottom: 0; }
.variable-row.active { background: var(--blue-soft); opacity: 1; }
.variable-row label { color: var(--body); font-size: .86rem; font-weight: 600; line-height: 1.3; }
.variable-row label small{display:block;margin-top:4px;color:var(--muted);font-size:.65rem;font-weight:400;line-height:1.35}
.check { width: 19px; height: 19px; accent-color: var(--blue); }
.input-wrap { position: relative; }
.input-wrap span { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: .76rem; font-weight: 600; }
.input-wrap input { width: 100%; height: 42px; border: 1px solid #cbd5e1; border-radius: 8px; padding: 0 10px 0 36px; background: white; color: var(--ink); text-align: right; }
.input-wrap.percent input { padding-left: 10px; padding-right: 29px; }
.input-wrap.monthly input { padding-left: 68px; }
.input-wrap.support-rate input { padding-left: 48px; }
.input-wrap.percent span { right: 11px; left: auto; }
.input-wrap input:disabled { cursor: not-allowed; background: #f1f5f9; }
.hours-fields { display: grid; grid-template-columns: 1fr 1.15fr; gap: 8px; }
.result-panel { border: 1px solid #bae6fd; border-radius: var(--radius); padding: clamp(22px,4vw,34px); background: white; box-shadow: 0 18px 50px rgba(2,132,200,.09); }
.result-gate { position:fixed; z-index:9999; inset:0; display:grid; place-items:center; overflow:auto; padding:28px 18px; background:rgba(17,24,39,.985); color:#fff; box-shadow:0 0 36px rgba(2,132,200,.18); }
.result-gate[hidden]{display:none}.gate-card{width:min(520px,100%);max-height:none;text-align:center}.gate-card h2{margin:4px 0 8px;color:#fff;font-size:1.6rem}.gate-card>p:not(.eyebrow){color:#cbd5e1;font-size:.78rem;line-height:1.5}.gate-icon{display:grid;place-items:center;width:42px;height:42px;margin:0 auto 10px;border-radius:10px;background:rgba(2,132,200,.18);color:#7dd3fc}.gate-form{display:grid;gap:10px;margin-top:16px;text-align:left}.gate-form label{color:#e2e8f0;font-size:.68rem;font-weight:700}.gate-form input:not([type=checkbox]){display:block;width:100%;height:43px;margin-top:5px;border:1px solid #475569;border-radius:8px;padding:0 11px;background:#202a36;color:#fff}.gate-form button{min-height:44px;border:0;border-radius:8px;background:#0284c8;color:#fff;font-weight:800}.gate-form small{color:#94a3b8;text-align:center;font-size:.62rem}.consent{display:grid!important;grid-template-columns:18px 1fr;gap:8px;align-items:start;line-height:1.4;font-weight:500!important}.consent input{width:17px;height:17px;accent-color:#0284c8}.text-button{background:transparent!important;color:#7dd3fc!important}.gate-message{min-height:18px;margin:0;color:#7dd3fc;font-size:.7rem;text-align:center}.gate-locked{overflow:hidden;height:100vh}
.gate-form textarea{display:block;width:100%;margin-top:5px;border:1px solid #475569;border-radius:8px;padding:9px 11px;resize:vertical;background:#202a36;color:#fff;font:inherit}
.suggestion-form{display:grid;gap:11px;max-width:760px;margin:auto;text-align:center}.suggestion-form[hidden],.result-content[hidden]{display:none}.suggestion-form strong{color:var(--ink);font-family:Gabarito,sans-serif;font-size:clamp(1.35rem,3vw,2rem)}.suggestion-form p{margin:0;color:var(--muted);font-size:.8rem;line-height:1.5}.suggestion-form label{color:var(--body);font-size:.72rem;font-weight:700;text-align:left}.suggestion-form textarea{display:block;width:100%;margin-top:6px;border:1px solid #cbd5e1;border-radius:8px;padding:11px;resize:vertical}.suggestion-form button{min-height:44px;border:0;border-radius:8px;background:var(--blue);color:#fff;font-weight:800}.suggestion-form .skip-button{border:1px solid #cbd5e1;background:#fff;color:var(--body)}.suggestion-form small{min-height:16px;color:var(--blue-dark);text-align:center}.result-content{max-width:1000px;margin:auto}.result-thanks{margin:4px 0 0;color:var(--muted);font-size:.76rem;text-align:center}
.progress-heading, .progress-meta { display: flex; justify-content: space-between; gap: 12px; }
.progress-heading { color: var(--muted); font-size: .73rem; font-weight: 700; }
.progress-heading strong { color: var(--blue-dark); font-size: 1rem; }
.progress-track { height: 7px; margin: 10px 0 9px; overflow: hidden; border-radius: 999px; background: #e2e8f0; }
.progress-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--blue); box-shadow: 0 0 12px rgba(2,132,200,.35); transition: width .2s; }
.progress-meta { align-items: center; color: var(--muted); font-size: .72rem; }
.level { border-radius: 999px; padding: 4px 8px; background: var(--blue-soft); color: var(--blue-dark); font-weight: 800; }
.main-result { margin: 22px 0 17px; border-radius: 10px; padding: 18px; background: #f0f9ff; }
.main-result span, .main-result small { display: block; color: var(--muted); font-size: .76rem; }
.main-result strong { display: block; margin: 5px 0; color: var(--ink); font-family: Gabarito, sans-serif; font-size: clamp(1.8rem, 4vw, 2.35rem); line-height: 1; }
.result-grid { display: grid; grid-template-columns: 1fr 1fr; margin: 0; border: 1px solid var(--line); border-radius: 9px; }
.result-grid div { padding: 12px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.result-grid div:nth-child(even) { border-right: 0; }
.result-grid .wide { grid-column: 1/-1; border-right: 0; border-bottom: 0; }
.result-grid dt { color: var(--muted); font-size: .68rem; }
.result-grid dd { margin: 4px 0 0; color: var(--ink); font-size: .86rem; font-weight: 750; }
.breakdown { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 15px; }
.breakdown summary { color: var(--ink); font-size: .8rem; font-weight: 750; cursor: pointer; }
.breakdown-list { display: grid; gap: 7px; max-height: 220px; margin-top: 12px; overflow: auto; }
.breakdown-item { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); font-size: .72rem; }
.breakdown-item strong { color: var(--body); white-space: nowrap; }
.secondary-button { width: 100%; min-height: 43px; margin-top: 16px; border: 1px solid var(--blue); border-radius: 8px; background: white; color: var(--blue-dark); font-weight: 750; }
.lead-section { border-block: 1px solid var(--line); padding: 64px 0; background: #f0f9ff; }
.lead-card { display: grid; grid-template-columns: 1fr 1.1fr; align-items: center; gap: 60px; }
.lead-card h2 { margin-bottom: 12px; font-size: clamp(2rem, 4vw, 3rem); line-height: 1; }
.lead-card p { margin-bottom: 0; color: var(--muted); line-height: 1.6; }
.lead-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.lead-form label { color: var(--body); font-size: .74rem; font-weight: 700; }
.lead-form input { display: block; width: 100%; height: 48px; margin-top: 7px; border: 1px solid #cbd5e1; border-radius: 8px; padding: 0 13px; background: white; }
.lead-form button { grid-column: 1/-1; min-height: 50px; border: 0; border-radius: 8px; background: var(--blue); color: white; font-weight: 800; }
.lead-form button:hover { background: var(--blue-dark); }
.lead-message { grid-column: 1/-1; min-height: 20px; color: var(--blue-dark) !important; font-size: .78rem; font-weight: 700; }
.disclaimer { display: grid; grid-template-columns: 100px 1fr; gap: 20px; padding-block: 40px; font-size: .8rem; }
.disclaimer strong { color: var(--ink); }
.disclaimer p { margin: 0; color: var(--muted); line-height: 1.6; }
footer { border-top: 1px solid var(--line); background: white; }
footer .container { display: flex; min-height: 90px; align-items: center; justify-content: space-between; color: var(--muted); font-size: .75rem; }
footer img { width: 90px; }
input:focus-visible, button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid rgba(2,132,200,.25); outline-offset: 2px; }

@media (max-width: 900px) {
  .calculator-layout { grid-template-columns: 1fr; }
  .result-panel { position: static; }
  .lead-card { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 620px) {
  .container { width: min(100% - 24px, 1180px); }
  .calc-header .back-link { font-size: 0; }
  .calc-header .back-link span { font-size: 1rem; }
  .hero { padding: 50px 0 30px; }
  .profile-picker { display: grid; }
  .monthly-helper{display:grid}.monthly-helper label{width:100%;}
  .variable-row { grid-template-columns: 26px 1fr; padding: 14px; }
  .variable-row .input-wrap, .variable-row .hours-fields { grid-column: 2; }
  .lead-form { grid-template-columns: 1fr; }
  .lead-form button, .lead-message { grid-column: auto; }
  .disclaimer { grid-template-columns: 1fr; gap: 7px; }
}
