/* ===== Credix V1 — Trust Blue ===== */
:root{
  --navy:#0b1f3a;
  --blue:#1a56db;
  --blue-electric:#2f7bff;
  --sky:#eaf1ff;
  --ink:#12203a;
  --muted:#5b6b85;
  --line:#dbe3f0;
  --bg:#f5f8ff;
  --white:#fff;
  --ok:#16a34a;
  --radius:14px;
  --shadow:0 10px 40px rgba(16,40,90,.10);
  --font:'Segoe UI',system-ui,-apple-system,Roboto,Arial,sans-serif;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:var(--font);color:var(--ink);background:var(--white);line-height:1.6;font-size:16px}
h1,h2,h3,h4{color:var(--navy);line-height:1.2;margin:0 0 .5em}
h1{font-size:clamp(1.8rem,4vw,2.9rem);font-weight:800}
h2{font-size:clamp(1.5rem,3vw,2.1rem);font-weight:800}
h3{font-size:1.15rem;font-weight:700}
p{margin:0 0 1em}
a{color:var(--blue);text-decoration:none}
.container{width:min(1140px,92%);margin:0 auto}
.narrow{max-width:820px}
.center{text-align:center}
.footnote{font-size:.8rem;color:var(--muted);line-height:1.5}

/* placeholders */
.ph{display:inline-flex;align-items:center;justify-content:center;background:repeating-linear-gradient(45deg,#e6ecf7,#e6ecf7 10px,#dde6f5 10px,#dde6f5 20px);color:#8ea2c4;font-size:.75rem;font-weight:700;letter-spacing:.05em;border-radius:8px}
.ph-logo{width:42px;height:42px}
.ph-ico{width:26px;height:26px;font-size:1rem;flex:0 0 auto}
.ph-ico-lg{width:60px;height:60px;font-size:1.6rem;margin:0 auto 14px}
.ph-hero{width:100%;height:180px;margin-top:20px}
.ph-block{width:100%;min-height:280px}

/* real images */
.brand-logo{width:42px;height:42px;border-radius:11px;object-fit:contain;display:block}
.hero-img{width:100%;border-radius:14px;margin-top:22px;display:block;box-shadow:0 14px 44px rgba(0,0,0,.28)}
.step-ico{width:66px;height:66px;border-radius:16px;object-fit:contain;display:block;margin:0 auto 14px}
.req-ico{width:48px;height:48px;border-radius:12px;object-fit:contain;flex:0 0 auto}
.split-img{width:100%;border-radius:14px;display:block;object-fit:cover;box-shadow:0 10px 40px rgba(16,40,90,.12)}
.pt-mark{width:22px;height:22px;flex:0 0 auto;color:#4d8bff}

/* buttons */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;font-weight:700;padding:.85rem 1.5rem;border-radius:10px;cursor:pointer;border:2px solid transparent;transition:.15s;font-size:1rem}
.btn-primary{background:var(--blue);color:#fff;box-shadow:0 8px 24px rgba(26,86,219,.35)}
.btn-primary:hover{background:var(--blue-electric)}
.btn-ghost{border-color:#fff;color:#fff}
.btn-block{width:100%;margin-top:6px}

/* header */
.site-header{position:sticky;top:0;z-index:50;background:var(--navy);color:#fff}
.header-inner{display:flex;align-items:center;gap:24px;padding:14px 0}
.brand{display:flex;align-items:center;gap:10px;color:#fff;font-weight:800;font-size:1.25rem}
.nav{display:flex;gap:22px;margin-left:auto}
.nav a{color:#cdd8ee;font-weight:600}
.nav a:hover{color:#fff}
.nav-cta{margin-left:8px}

/* hero */
.hero{background:linear-gradient(160deg,var(--navy),#123a75);color:#fff;padding:56px 0 70px}
.hero-grid{display:grid;grid-template-columns:1.05fr .95fr;grid-template-areas:"head calc" "rest calc";column-gap:44px;row-gap:0;align-items:start}
.hero-head{grid-area:head}
.hero-rest{grid-area:rest}
.hero-grid .calc-card{grid-area:calc}
.hero h1{color:#fff}
.badge-marking{display:inline-block;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.25);color:#dbe8ff;padding:6px 14px;border-radius:999px;font-size:.85rem;font-weight:600;margin-bottom:18px}
.hero-offer{font-size:1.4rem;color:#cfe0ff}
.hero-offer strong{color:#fff}
.star{color:#8fb4ff}
.hero-points{list-style:none;padding:0;margin:6px 0 16px;display:grid;gap:12px}
.hero-points li{display:flex;align-items:center;gap:12px;font-weight:600;color:#eaf1ff}
.star-note{color:#a9bfe4;max-width:520px}

/* calculator */
.calc-card{background:#fff;color:var(--ink);border-radius:18px;padding:26px;box-shadow:var(--shadow)}
.calc-title{margin-bottom:20px}
.field{margin-bottom:22px}
.field-row{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:8px}
.field-row label{font-weight:700;color:var(--navy)}
.field-row output{font-weight:800;color:var(--blue);font-size:1.15rem}
input[type=range]{width:100%;-webkit-appearance:none;height:8px;border-radius:6px;background:linear-gradient(90deg,var(--blue) var(--fill,40%),#e2e9f6 var(--fill,40%));outline:none}
input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;width:24px;height:24px;border-radius:50%;background:#fff;border:5px solid var(--blue);cursor:pointer;box-shadow:0 2px 6px rgba(0,0,0,.2)}
input[type=range]::-moz-range-thumb{width:22px;height:22px;border-radius:50%;background:#fff;border:5px solid var(--blue);cursor:pointer}
.range-ends{display:flex;justify-content:space-between;font-size:.75rem;color:var(--muted);margin-top:6px}
/* numbers: never split across lines, never auto-translated (keeps the RO decimal comma) */
.num{white-space:nowrap}
.rep-example{background:var(--sky);border:1px solid #cfe0ff;border-radius:12px;padding:14px 16px;font-size:.9rem;margin:4px 0 18px}
.rep-title{font-weight:800;color:var(--navy);margin-bottom:6px}
.rep-example ul{margin:6px 0;padding-left:18px}
.rep-example li{margin-bottom:4px}
.rep-example .apr{margin:8px 0 0;font-weight:600;color:var(--navy)}
.calc-note{text-align:center;font-size:.8rem;color:var(--muted);margin:10px 0 0}

/* bands */
.band{padding:60px 0}
.band.alt{background:var(--bg)}
.band h2{margin-bottom:24px}
.stat-band{background:var(--navy);color:#fff}
.stat-band .stat-label{color:#b8c8e6;margin:0}
.stat-num{font-size:clamp(2.5rem,6vw,4rem);font-weight:800;color:#fff;margin:6px 0 0}

/* steps */
.steps{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
.step-card{position:relative;background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:28px 22px;text-align:center;box-shadow:0 4px 16px rgba(16,40,90,.05)}
.step-num{position:absolute;top:-16px;left:50%;transform:translateX(-50%);width:34px;height:34px;border-radius:50%;background:var(--blue);color:#fff;display:grid;place-items:center;font-weight:800}

/* requirements */
.req-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:16px;max-width:820px;margin:0 auto}
.req-item{display:flex;align-items:center;gap:14px;background:#fff;border:1px solid var(--line);border-radius:12px;padding:18px 20px;font-weight:600}

/* split */
.split{display:grid;grid-template-columns:1fr 1fr;gap:40px;align-items:center}

/* faq */
.faq details{background:#fff;border:1px solid var(--line);border-radius:12px;margin-bottom:12px;overflow:hidden}
.faq summary{cursor:pointer;padding:18px 22px;font-weight:700;color:var(--navy);list-style:none;position:relative}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:"+";position:absolute;right:22px;font-size:1.4rem;color:var(--blue);font-weight:400}
.faq details[open] summary::after{content:"–"}
.faq details p{padding:0 22px 18px;margin:0;color:var(--muted)}

/* footer */
.site-footer{background:#081627;color:#aebcd4;padding:50px 0 30px;font-size:.9rem}
.site-footer h4{color:#fff;font-size:1rem;margin:0 0 8px}
.footer-top{display:flex;justify-content:space-between;gap:30px;flex-wrap:wrap;border-bottom:1px solid #1c2c45;padding-bottom:24px;margin-bottom:24px}
.footer-brand{display:flex;flex-direction:column;gap:6px;max-width:420px}
.footer-brand a{color:#7fa8ff}
.footer-legal-mini{max-width:400px}
.legal-block{margin-bottom:20px}
.legal-block p{margin:0;line-height:1.55;font-size:.82rem}
.footer-links{display:flex;flex-wrap:wrap;gap:8px 22px;margin:24px 0;padding-top:20px;border-top:1px solid #1c2c45}
.footer-links a{color:#8ea6d0}
.copyright{text-align:center;color:#67789a;border-top:1px solid #1c2c45;padding-top:18px;margin:0}

/* sticky mobile CTA (hidden on desktop) */
.mobile-cta{display:none}

/* ===== apply modal ===== */
body.modal-open{overflow:hidden}
.modal{position:fixed;inset:0;z-index:200;display:none;padding:20px}
.modal.is-open{display:grid;place-items:center}
.modal-backdrop{position:absolute;inset:0;background:rgba(8,22,39,.75)}
.modal-card{position:relative;z-index:1;width:min(480px,100%);max-height:90vh;overflow-y:auto;background:#fff;border-radius:18px;padding:28px;box-shadow:0 30px 80px rgba(0,0,0,.45);animation:modalIn .18s ease-out}
@keyframes modalIn{from{opacity:0;transform:translateY(12px) scale(.98)}to{opacity:1;transform:none}}
.modal-x{position:absolute;top:10px;right:12px;background:none;border:0;font-size:1.9rem;line-height:1;color:var(--muted);cursor:pointer;padding:2px 9px;border-radius:8px}
.modal-x:hover{background:var(--bg);color:var(--navy)}
.modal-title{margin:0 0 6px;font-size:1.4rem}
.modal-sub{color:var(--muted);font-size:.88rem;margin:0 0 18px}

.order-box{background:var(--sky);border:1px solid #cfe0ff;border-radius:12px;padding:14px 16px;margin-bottom:20px}
.order-row{display:flex;justify-content:space-between;gap:12px;font-size:.9rem;padding:4px 0}
.order-row b{color:var(--navy);white-space:nowrap}
.order-row.total{border-top:1px dashed #a9c6f5;margin-top:6px;padding-top:10px}
.order-row.total b{color:var(--blue)}

.fld{margin-bottom:14px}
.fld label{display:block;font-weight:700;font-size:.86rem;margin-bottom:6px;color:var(--navy)}
.fld input{width:100%;padding:.8rem .9rem;border:1.5px solid var(--line);border-radius:10px;font:inherit;font-size:.95rem;outline:none;transition:.15s;background:#fff;color:var(--ink)}
.fld input:focus{border-color:var(--blue);box-shadow:0 0 0 3px rgba(26,86,219,.15)}
.err{display:block;color:#d92d20;font-size:.78rem;margin-top:5px}
.err:empty{display:none}

.consent{display:flex;gap:10px;align-items:flex-start;font-size:.82rem;color:var(--muted);margin:8px 0 4px;cursor:pointer;line-height:1.45}
.consent input{margin-top:2px;flex:0 0 auto;width:16px;height:16px;accent-color:var(--blue);cursor:pointer}
.modal-note{font-size:.74rem;color:var(--muted);text-align:center;margin:12px 0 0;line-height:1.5}

.modal-done{text-align:center}
.modal-done h3{margin:0 0 6px}
.done-ico{width:56px;height:56px;border-radius:50%;background:#e7f6ec;color:var(--ok);display:grid;place-items:center;font-size:1.8rem;font-weight:800;margin:0 auto 14px}
.modal-done pre{text-align:left;background:#0d1220;color:#c9d6f0;font-size:.72rem;line-height:1.45;padding:12px;border-radius:10px;overflow:auto;max-height:210px;margin:14px 0}

@media(max-width:640px){
  .modal{padding:12px}
  .modal-card{padding:22px 18px}
}

/* ===== responsive ===== */
@media(max-width:1024px){
  /* mobile & tablet: header is not sticky — scrolls away, doesn't follow on scroll */
  .site-header{position:static}
  .hero-grid{grid-template-columns:1fr;grid-template-areas:none;gap:30px}
  .hero-head,.hero-rest,.hero-grid .calc-card{grid-area:auto}
  .steps{grid-template-columns:1fr;gap:28px}
  .split{grid-template-columns:1fr;gap:24px}
}
@media(max-width:640px){
  .nav{display:none}
  .header-inner{gap:12px}
  .band{padding:44px 0}
  .hero{padding:36px 0 50px}
  /* mobile: calculator right after the H1, before the rest of the copy */
  .hero-grid{grid-template-areas:"head" "calc" "rest";gap:22px}
  .hero-head{grid-area:head}
  .hero-rest{grid-area:rest}
  .hero-grid .calc-card{grid-area:calc}
  .req-grid{grid-template-columns:1fr}
  .footer-top{flex-direction:column}
  .calc-card{padding:20px}
}
