:root {
  --blue-950: #092352;
  --blue-900: #0b2f6b;
  --blue-800: #16458c;
  --blue-100: #eaf1fb;
  --yellow: #ffd43b;
  --yellow-soft: #fff5bd;
  --ink: #14213d;
  --muted: #61708a;
  --line: #dbe3ef;
  --surface: #ffffff;
  --background: #f5f8fc;
  --success: #0f766e;
  --shadow: 0 20px 60px rgba(10, 42, 94, 0.12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--background);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--background); }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }

.site-header {
  min-height: 76px;
  padding: 14px max(24px, calc((100vw - 1180px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid rgba(219,227,239,.8);
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(14px);
}

.brand { display: grid; grid-template-columns: auto auto; align-items: end; width: fit-content; text-decoration: none; line-height: .95; }
.brand-pronto { color: var(--blue-900); font-size: 29px; font-weight: 850; letter-spacing: -1.5px; }
.brand-colf { background: var(--blue-900); color: var(--yellow); font-size: 19px; font-weight: 900; letter-spacing: .5px; padding: 5px 7px 6px; margin-left: 4px; border-radius: 7px; }
.brand-by { grid-column: 1 / -1; color: var(--muted); font-size: 9px; line-height: 1; margin-top: 5px; letter-spacing: 1.2px; text-transform: uppercase; }

nav { display: flex; align-items: center; gap: 26px; }
nav a { text-decoration: none; color: var(--ink); font-size: 14px; font-weight: 650; }
.nav-cta { display: inline-flex !important; align-items: center; border: 0; border-radius: 999px; background: var(--yellow); color: var(--blue-950); font-weight: 800; padding: 11px 17px; cursor: pointer; }

main { overflow: hidden; }
.hero {
  min-height: 520px;
  padding: 88px max(24px, calc((100vw - 1180px) / 2));
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(310px, .75fr);
  gap: 70px;
  align-items: center;
  color: white;
  background:
    radial-gradient(circle at 84% 16%, rgba(255,212,59,.24), transparent 24%),
    radial-gradient(circle at 5% 100%, rgba(51,101,174,.4), transparent 32%),
    linear-gradient(135deg, var(--blue-950), var(--blue-800));
}
.eyebrow { display: inline-block; font-size: 12px; font-weight: 850; letter-spacing: 1.4px; text-transform: uppercase; color: var(--yellow); margin-bottom: 16px; }
.hero h1 { max-width: 760px; margin: 0; font-size: clamp(42px, 6vw, 70px); line-height: 1.02; letter-spacing: -3.3px; }
.hero-copy > p { max-width: 680px; margin: 24px 0 30px; color: #dce8fb; font-size: 19px; line-height: 1.62; }
.button { min-height: 48px; padding: 0 20px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: 0; border-radius: 12px; text-decoration: none; font-weight: 800; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.button:hover { transform: translateY(-1px); }
.button.primary { background: var(--yellow); color: var(--blue-950); box-shadow: 0 8px 24px rgba(255,212,59,.18); }
.button.secondary { background: #fff; color: var(--blue-900); border: 1px solid var(--line); }
.button svg { width: 20px; height: 20px; }
.hero-card { justify-self: end; width: min(100%, 390px); min-height: 340px; padding: 40px; display: flex; flex-direction: column; justify-content: flex-end; border: 1px solid rgba(255,255,255,.2); border-radius: 30px; background: linear-gradient(145deg, rgba(255,255,255,.17), rgba(255,255,255,.07)); box-shadow: 0 30px 70px rgba(3,22,56,.24); }
.hero-icon { width: 92px; height: 92px; display: grid; place-items: center; color: white; background: rgba(255,255,255,.1); border-radius: 26px; margin-bottom: 34px; }
.hero-icon svg { width: 66px; height: 66px; }
.hero-card strong { font-size: 25px; line-height: 1.25; }
.hero-card > span { color: #dce8fb; font-size: 14px; line-height: 1.5; margin-top: 12px; }

.calculator-section, .documents-section { padding: 86px max(24px, calc((100vw - 1180px) / 2)); }
.section-heading { display: flex; gap: 17px; align-items: flex-start; margin-bottom: 34px; }
.section-heading h2 { margin: 0 0 8px; font-size: clamp(27px, 4vw, 38px); letter-spacing: -1.4px; }
.section-heading p { margin: 0; color: var(--muted); line-height: 1.55; }
.step-pill { flex: 0 0 auto; width: 36px; height: 36px; display: grid; place-items: center; background: var(--yellow); color: var(--blue-950); border-radius: 11px; font-weight: 900; }
.calculator-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr); gap: 26px; align-items: start; }
.config-card, .result-card, .document-card { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 12px 38px rgba(13,47,105,.07); }
.config-card { padding: 28px; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 19px; }
.field { display: grid; gap: 8px; }
.field > span { color: #34425b; font-size: 13px; font-weight: 750; }
.field select, .field > input, .field textarea, .custom-pay input { width: 100%; min-height: 48px; border: 1px solid #cfd9e8; border-radius: 11px; color: var(--ink); background: #fff; padding: 0 13px; outline: none; transition: border .18s, box-shadow .18s; }
.field textarea { padding-block: 11px; resize: vertical; }
.field select:focus, .field > input:focus, .field textarea:focus, .custom-pay input:focus, .money-input:focus-within, .number-input:focus-within { border-color: var(--blue-800); box-shadow: 0 0 0 3px rgba(22,69,140,.12); }
.number-input, .money-input { min-height: 48px; display: flex; align-items: center; border: 1px solid #cfd9e8; border-radius: 11px; background: #fff; overflow: hidden; }
.number-input button { width: 44px; align-self: stretch; border: 0; background: #f1f5fa; color: var(--blue-900); font-size: 22px; cursor: pointer; }
.number-input input { width: 100%; border: 0; text-align: center; outline: none; appearance: textfield; }
.number-input input::-webkit-inner-spin-button { appearance: none; }
.money-input > span { padding-left: 13px; color: var(--muted); font-weight: 700; }
.money-input input { min-width: 0; width: 100%; border: 0; outline: none; padding: 0 12px 0 7px; }
.money-input.compact { width: 142px; }
.minimum-box { margin: 22px 0; min-height: 78px; display: flex; align-items: center; gap: 18px; padding: 16px; background: var(--blue-100); border-radius: 14px; }
.minimum-box > div { display: grid; gap: 3px; margin-right: auto; }
.minimum-box span { font-size: 12px; color: var(--muted); }
.minimum-box strong { color: var(--blue-900); font-size: 18px; }
.text-button { border: 0; background: transparent; color: var(--blue-800); text-decoration: underline; font-weight: 750; font-size: 13px; cursor: pointer; }
.custom-pay { align-items: end; gap: 6px; }
.ratei-fieldset { margin: 0; padding: 0; border: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ratei-fieldset legend { padding: 0; margin-bottom: 11px; color: #34425b; font-size: 13px; font-weight: 750; }
.check-card { min-height: 82px; display: flex; gap: 9px; align-items: flex-start; padding: 13px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.check-card input { position: absolute; opacity: 0; pointer-events: none; }
.checkmark { flex: 0 0 auto; width: 18px; height: 18px; display: grid; place-items: center; border: 1.5px solid #9aa9be; border-radius: 5px; margin-top: 1px; }
.check-card input:checked + .checkmark { background: var(--blue-900); border-color: var(--blue-900); }
.check-card input:checked + .checkmark::after { content: "✓"; color: white; font-size: 12px; font-weight: 900; }
.check-card > span:last-child { display: grid; gap: 3px; }
.check-card strong { font-size: 13px; }
.check-card small { color: var(--muted); font-size: 10px; line-height: 1.35; }
.form-note { margin-top: 20px; padding: 12px 14px; color: #42516b; background: #f7f9fc; border-left: 3px solid var(--yellow); border-radius: 6px 10px 10px 6px; font-size: 12px; line-height: 1.5; }

.result-card { padding: 28px; position: sticky; top: 96px; overflow: hidden; }
.result-card::before { content: ""; position: absolute; width: 170px; height: 170px; border-radius: 50%; right: -80px; top: -80px; background: var(--yellow-soft); }
.result-header { position: relative; display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; }
.result-kicker { color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; }
.result-header h3 { margin: 4px 0 0; font-size: 23px; }
.year-badge { padding: 7px 10px; background: var(--blue-100); color: var(--blue-900); border-radius: 999px; font-size: 11px; font-weight: 800; }
.result-main { margin: 25px 0 13px; padding: 23px; display: grid; gap: 4px; background: var(--blue-900); color: white; border-radius: 18px; }
.result-main > span { font-size: 13px; color: #cbdcf6; }
.result-main strong { font-size: clamp(34px, 5vw, 46px); letter-spacing: -2px; }
.result-main small { color: var(--yellow); font-weight: 700; }
.worker-result { display: flex; justify-content: space-between; align-items: center; padding: 15px 17px; background: #edf8f6; border-radius: 14px; color: #0d554f; }
.worker-result > div { display: grid; gap: 3px; }
.worker-result span { font-size: 12px; }
.worker-result strong { font-size: 22px; }
.info-dot { width: 21px; height: 21px; display: grid; place-items: center; border: 1px solid #8bbeb8; border-radius: 50%; font-weight: 800; cursor: help; }
.breakdown { margin: 21px 0; }
.breakdown > div { display: flex; justify-content: space-between; gap: 20px; padding: 9px 0; border-bottom: 1px dashed #dce3ec; font-size: 13px; }
.breakdown dt { color: var(--muted); }
.breakdown dd { margin: 0; font-weight: 750; text-align: right; }
.worker-charge dd { color: #a43d45; }
.result-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.disclaimer { margin: 16px 0 0; color: var(--muted); font-size: 10.5px; line-height: 1.5; }
.disclaimer a { color: var(--blue-800); font-weight: 750; }
.print-summary { display: none; }
.print-brand { display: grid; gap: 2px; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 2px solid var(--blue-900); color: var(--blue-900); }
.print-brand strong { font-size: 25px; }
.print-brand span { font-size: 11px; text-transform: uppercase; letter-spacing: .8px; }

.documents-section { background: #edf3fb; }
.documents-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.document-card { padding: 23px; box-shadow: none; }
.document-title { display: flex; align-items: center; gap: 13px; }
.doc-icon { flex: 0 0 auto; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: var(--blue-900); color: white; font-weight: 900; }
.doc-icon.yellow { background: var(--yellow); color: var(--blue-950); }
.doc-icon.outline { background: white; color: var(--blue-900); border: 2px solid var(--blue-900); }
.document-title h3 { margin: 0; font-size: 18px; }
.document-title p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.checklist { padding: 0; margin: 22px 0; list-style: none; display: grid; gap: 12px; }
.checklist li { display: flex; align-items: flex-start; gap: 9px; color: #34425b; font-size: 12.5px; line-height: 1.4; }
.checklist label { display: flex; align-items: flex-start; gap: 9px; color: #34425b; font-size: 12.5px; line-height: 1.4; cursor: pointer; }
.checklist input { width: 16px; height: 16px; accent-color: var(--blue-900); margin-top: 1px; }
.list-check { flex: 0 0 auto; width: 17px; height: 17px; display: grid; place-items: center; margin-top: 1px; border-radius: 50%; background: #edf8f6; color: var(--success); font-size: 10px; font-weight: 900; }
.upload-zone { min-height: 90px; display: flex; justify-content: center; align-items: center; gap: 10px; padding: 15px; border: 1.5px dashed #aebdd1; border-radius: 13px; background: #fafcff; color: var(--blue-800); cursor: pointer; }
.upload-zone.dragging { border-color: var(--blue-800); background: var(--blue-100); }
.upload-zone input { display: none; }
.upload-zone svg { width: 24px; height: 24px; flex: 0 0 auto; }
.upload-zone > span { display: grid; gap: 3px; }
.upload-zone strong { font-size: 12px; }
.upload-zone small { color: var(--muted); font-size: 9.5px; }
.file-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.file-chip { max-width: 100%; padding: 5px 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; background: #edf8f6; color: #0d554f; border-radius: 7px; font-size: 10px; }
.privacy-note { margin-top: 25px; padding: 15px; display: flex; gap: 11px; background: var(--yellow-soft); color: var(--blue-950); border-radius: 13px; }
.privacy-note svg { width: 23px; height: 23px; flex: 0 0 auto; }
.privacy-note > span { display: grid; gap: 4px; }
.privacy-note strong { font-size: 12px; }
.privacy-note small { font-size: 10px; line-height: 1.45; }

.cta-section { margin: 64px calc(50% - 50vw) -86px; padding: 64px max(24px, calc((100vw - 1180px) / 2)); display: flex; align-items: center; justify-content: space-between; gap: 45px; background: var(--blue-950); color: white; }
.cta-section h2 { margin: 0 0 10px; font-size: clamp(27px, 4vw, 42px); letter-spacing: -1.5px; }
.cta-section p { max-width: 720px; margin: 0; color: #cbdcf6; line-height: 1.55; }
.yellow-text { margin-bottom: 12px; }
.yellow-button { flex: 0 0 auto; background: var(--yellow); color: var(--blue-950); }
footer { min-height: 94px; padding: 22px max(24px, calc((100vw - 1180px) / 2)); display: flex; align-items: center; gap: 34px; color: var(--muted); background: white; font-size: 12px; }
.footer-brand { display: grid; margin-right: auto; color: var(--blue-900); }
.footer-brand strong { font-size: 17px; }
.footer-brand span { font-size: 8px; letter-spacing: .8px; text-transform: uppercase; }

body.embed-mode .site-header,
body.embed-mode footer { display: none; }
body.embed-mode .hero { min-height: 400px; padding-block: 58px; }
body.embed-mode .calculator-section,
body.embed-mode .documents-section { padding-block: 62px; }
body.embed-mode .cta-section { margin-bottom: -62px; }

dialog { width: min(680px, calc(100% - 28px)); padding: 0; border: 0; border-radius: 24px; color: var(--ink); box-shadow: 0 28px 90px rgba(3,22,56,.35); }
dialog::backdrop { background: rgba(6,22,51,.62); backdrop-filter: blur(5px); }
.dialog-card { padding: 30px; position: relative; }
.dialog-card h2 { margin: 0; font-size: 27px; letter-spacing: -1px; }
.dialog-intro { color: var(--muted); line-height: 1.5; font-size: 13px; margin: 10px 0 22px; }
.dialog-close { position: absolute; right: 18px; top: 16px; width: 35px; height: 35px; border: 0; border-radius: 50%; background: #f1f4f8; color: var(--muted); font-size: 24px; cursor: pointer; }
.dialog-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-bottom: 15px; }
.confirmation-check { margin: 18px 0; display: flex; gap: 9px; align-items: flex-start; color: #42516b; font-size: 12px; line-height: 1.5; }
.confirmation-check input { width: 17px; height: 17px; accent-color: var(--blue-900); }
.dialog-actions { display: flex; justify-content: flex-end; gap: 9px; }
.dialog-actions .button:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.success-message { margin-top: 14px; padding: 12px; background: #edf8f6; color: var(--success); border-radius: 10px; font-size: 12px; font-weight: 700; text-align: center; }
.honeypot { position: absolute !important; left: -10000px !important; }
.form-status { min-height: 20px; margin: 13px 0 0; color: var(--muted); font-size: 12px; text-align: center; }
.form-status.success { padding: 12px; color: var(--success); background: #edf8f6; border-radius: 10px; font-weight: 700; }
.form-status.error { color: #a43d45; font-weight: 700; }

@media (max-width: 900px) {
  nav a { display: none; }
  .hero { grid-template-columns: 1fr; gap: 42px; padding-block: 70px; }
  .hero-card { justify-self: stretch; width: 100%; min-height: 250px; }
  .calculator-grid { grid-template-columns: 1fr; }
  .result-card { position: static; }
  .documents-grid { grid-template-columns: 1fr 1fr; }
  .details-card { grid-column: 1 / -1; }
  .cta-section { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 620px) {
  .site-header { min-height: 68px; padding-inline: 16px; }
  .brand-pronto { font-size: 25px; }
  .brand-colf { font-size: 16px; }
  .nav-cta { padding: 9px 12px; font-size: 12px; }
  .hero { min-height: auto; padding: 56px 18px; }
  .hero h1 { font-size: 42px; letter-spacing: -2px; }
  .hero-copy > p { font-size: 16px; }
  .hero-card { padding: 27px; }
  .calculator-section, .documents-section { padding: 62px 16px; }
  .section-heading { gap: 12px; }
  .config-card, .result-card { padding: 20px; border-radius: 19px; }
  .field-grid, .dialog-grid { grid-template-columns: 1fr; }
  .ratei-fieldset { grid-template-columns: 1fr; }
  .minimum-box { align-items: flex-start; flex-wrap: wrap; }
  .documents-grid { grid-template-columns: 1fr; }
  .details-card { grid-column: auto; }
  .result-actions { grid-template-columns: 1fr; }
  .cta-section { margin-bottom: -62px; padding: 52px 18px; }
  .yellow-button { width: 100%; }
  footer { align-items: flex-start; flex-direction: column; gap: 10px; }
  .dialog-card { padding: 25px 20px 20px; }
  .dialog-actions { display: grid; grid-template-columns: 1fr; }
}

@media print {
  @page { size: A4; margin: 16mm; }
  body { background: white; color: #111; }
  .site-header, .hero, .config-card, .documents-section, .cta-section, footer, dialog, .result-actions, .disclaimer { display: none !important; }
  .calculator-section { padding: 0; }
  .section-heading { margin-bottom: 18px; }
  .calculator-grid { display: block; }
  .result-card { position: static; border: 0; box-shadow: none; padding: 0; overflow: visible; }
  .result-card::before { display: none; }
  .result-main { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .worker-result { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .print-summary { display: block; margin: 18px 0; padding: 14px; border: 1px solid #ccd4df; border-radius: 10px; font-size: 12px; line-height: 1.6; }
}
