/* Safeguard Cleaning — site styles. Design: Direction A (light). See docs/design.md in the project. */

:root {
  --navy: #0E2948;
  --navy-tile: #163A63;
  --blue: #0E64BB;
  --blue-hover: #0B55A0;
  --green: #7FB03B;
  --green-ink: #2E4A12;
  --tile: #F1F4F8;
  --tile-blue: #E6F0FA;
  --line: #E3E8EF;
  --body: #34475C;
  --muted: #4A5868;
  --on-dark: #DCEBFA;
  --on-dark-muted: #C7D6E8;
  --error: #B42318;
  --radius: 28px;
  --gap: 16px;
  --font: 'Archivo', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #FFFFFF; color: var(--navy); font-family: var(--font); line-height: 1.5; }
img { max-width: 100%; display: block; }
a { color: var(--blue); }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.on-dark :focus-visible { outline-color: var(--green); }
h1, h2, h3, p { margin: 0; }

.wrap { max-width: 1280px; margin: 0 auto; padding: 0 28px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 100; background: var(--navy); color: #FFFFFF; padding: 12px 18px; border-radius: 12px; font-weight: 700; }
.skip-link:focus { top: 16px; color: #FFFFFF; }

/* ---------- Type ---------- */
.eyebrow { font-size: 14px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); }
.display { font-weight: 900; font-stretch: 112%; letter-spacing: -1.5px; line-height: 0.98; }
.h1 { font-size: clamp(40px, 4.6vw, 68px); }
.h2 { font-size: clamp(34px, 4vw, 56px); line-height: 1; letter-spacing: -1px; margin-bottom: 32px; }
.lead { font-size: 19px; line-height: 1.55; color: var(--body); max-width: 540px; }
.body { font-size: 17px; line-height: 1.55; color: var(--body); }
.on-dark .body, .on-dark .lead { color: var(--on-dark); }

/* ---------- Buttons and links ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 56px; padding: 0 26px; border: 0; border-radius: 14px; font: inherit; font-size: 17px; font-weight: 700; text-decoration: none; cursor: pointer; transition: transform .15s ease, background-color .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--blue); color: #FFFFFF; }
.btn-primary:hover { background: var(--blue-hover); color: #FFFFFF; }
.btn-primary[disabled] { opacity: .7; cursor: wait; transform: none; }
.btn-lg { height: 60px; padding: 0 30px; font-size: 18px; }
.tlink { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; font-size: 17px; color: var(--navy); text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 calc(100% - 8px) / 0% 2px no-repeat; transition: background-size .25s ease; border: 0; padding: 0; cursor: pointer; font-family: inherit; background-color: transparent; }
.tlink:hover { background-size: 100% 2px; color: var(--navy); }
.tlink.blue, .tlink.blue:hover { color: var(--blue); }
.on-dark .tlink, .on-dark .tlink:hover { color: #FFFFFF; }
.cta-row { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }

/* ---------- Header and menu ---------- */
.site-header { border-bottom: 1px solid var(--line); background: #FFFFFF; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 96px; }
.logo-link { display: flex; align-items: center; }
.logo-link img { height: 68px; width: auto; }
.nav { display: flex; gap: 4px; }
.nav a { color: var(--navy); text-decoration: none; font-weight: 600; font-size: 16px; padding: 0 12px; min-height: 44px; display: inline-flex; align-items: center; border-radius: 10px; }
.nav a:hover { background: var(--tile); }
.menu-btn { display: none; align-items: center; gap: 10px; height: 48px; padding: 0 16px; border: 2px solid var(--navy); border-radius: 12px; background: #FFFFFF; color: var(--navy); font: inherit; font-size: 16px; font-weight: 700; cursor: pointer; }
.mobile-menu { position: fixed; inset: 0; z-index: 50; background: #FFFFFF; display: flex; flex-direction: column; padding: 20px 28px 32px; }
.mobile-menu[hidden] { display: none; }
.mobile-menu .top { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.mobile-menu .top img { height: 52px; width: auto; }
.mobile-menu .close { width: 48px; height: 48px; border: 2px solid var(--navy); border-radius: 12px; background: #FFFFFF; color: var(--navy); font-size: 26px; line-height: 1; cursor: pointer; }
.mobile-menu nav { display: flex; flex-direction: column; margin-top: 32px; }
.mobile-menu nav a { color: var(--navy); text-decoration: none; font-size: 32px; font-weight: 800; font-stretch: 110%; min-height: 64px; display: flex; align-items: center; border-bottom: 1px solid var(--line); }
.mobile-menu .btn { margin-top: auto; height: 60px; font-size: 18px; }
body.menu-open { overflow: hidden; }

/* ---------- Grid and tiles ---------- */
.g6 { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--gap); }
.s2 { grid-column: span 2; } .s3 { grid-column: span 3; } .s4 { grid-column: span 4; } .s6 { grid-column: span 6; } .r2 { grid-row: span 2; }
.tile { background: var(--tile); border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; gap: 18px; }
.tile.blue { background: var(--blue); color: #FFFFFF; }
.tile.blue .eyebrow, .tile.blue .body { color: var(--on-dark); }
.tile.green { background: var(--green); color: var(--navy); }
.tile.green .body { color: var(--navy); font-weight: 500; }
.tile.navy { background: var(--navy-tile); color: #FFFFFF; }
.tile-title { font-size: 28px; line-height: 1.05; font-weight: 900; font-stretch: 110%; }
.between { justify-content: space-between; }
.center { justify-content: center; }

section { scroll-margin-top: 16px; }
.section { padding: 72px 0; }
.band { background: var(--navy); color: #FFFFFF; padding: 96px 0; }

/* ---------- Hero ---------- */
.hero { padding: 32px 0 72px; }
.hero-main { padding: 52px 48px; justify-content: center; gap: 26px; }
.packages { padding: 52px 48px; justify-content: center; gap: 32px; min-height: 480px; }
.packages .eyebrow { color: var(--navy); }
.packages .words { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; font-size: clamp(44px, 4.8vw, 72px); line-height: 1.02; font-weight: 900; font-stretch: 115%; color: var(--green-ink); }
.packages .verdict { font-size: clamp(24px, 2.4vw, 32px); line-height: 1.12; font-weight: 800; font-stretch: 108%; max-width: 440px; }
.strike { position: relative; display: inline-block; }
.strike::after { content: ""; position: absolute; left: -4px; right: -4px; top: 54%; height: 5px; background: var(--navy); transform-origin: left center; transform: scaleX(0); animation: draw .45s ease-out forwards; }
.k1::after { animation-delay: .6s; } .k2::after { animation-delay: .95s; } .k3::after { animation-delay: 1.3s; }
.reveal { opacity: 0; animation: fade .4s ease-out 1.75s forwards; }
.enter { opacity: 0; transform: translateY(14px); animation: enter .6s ease-out forwards; }
.enter-2 { animation-delay: .12s; }
@keyframes draw { to { transform: scaleX(1); } }
@keyframes enter { to { opacity: 1; transform: none; } }
@keyframes fade { to { opacity: 1; } }

/* ---------- Pricing ---------- */
.factors { padding: 40px; justify-content: space-between; gap: 28px; }
.factor { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 18px 0; border-top: 3px solid var(--navy); }
.factor:last-child { border-bottom: 3px solid var(--navy); }
.factor span:first-child { font-size: clamp(22px, 2.2vw, 32px); font-weight: 800; font-stretch: 108%; }
.factor span:last-child { font-size: 15px; font-weight: 700; color: var(--blue); }
.offer-title { font-size: clamp(28px, 2.8vw, 38px); line-height: 1.05; font-weight: 900; font-stretch: 110%; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); margin: 0; padding: 0; list-style: none; }
.step { background: var(--navy-tile); border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; justify-content: space-between; gap: 48px; min-height: 280px; }
.step .num { font-size: 88px; line-height: .8; font-weight: 900; font-stretch: 120%; color: var(--green); }
.step .title { display: block; font-size: 22px; font-weight: 800; margin-bottom: 8px; }
.step .text { display: block; font-size: 16px; line-height: 1.5; color: var(--on-dark); }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); align-items: start; }
.faq details { background: var(--tile); border-radius: 22px; padding: 22px 28px; }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 20px; font-weight: 800; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq .plus { font-size: 32px; font-weight: 500; color: var(--blue); line-height: 1; transition: transform .2s ease; }
.faq details[open] .plus { transform: rotate(45deg); }
.faq details p { margin-top: 12px; font-size: 17px; line-height: 1.6; color: var(--body); }
.close-band { margin-top: 48px; background: var(--tile-blue); border-radius: 32px; padding: 56px 52px; display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.close-band > div { display: flex; flex-direction: column; gap: 14px; flex: 1 1 480px; }
.close-title { font-size: clamp(40px, 5.4vw, 80px); line-height: .92; font-weight: 900; font-stretch: 115%; letter-spacing: -2px; }

.pending { align-self: flex-start; border: 2px dashed var(--green-ink); color: var(--green-ink); font-size: 13px; font-weight: 700; padding: 5px 10px; border-radius: 8px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #FFFFFF; padding: 56px 0 40px; }
.site-footer .wrap.top { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; align-items: flex-start; }
.site-footer .about { display: flex; flex-direction: column; gap: 14px; max-width: 420px; }
.site-footer .name { font-size: 22px; font-weight: 900; font-stretch: 110%; }
.site-footer .about p { font-size: 15px; line-height: 1.6; color: var(--on-dark-muted); }
.site-footer nav { display: flex; gap: 8px 24px; flex-wrap: wrap; }
.site-footer .tlink { font-size: 15px; color: #FFFFFF; }
.site-footer .copy { margin-top: 28px; font-size: 14px; color: #A9BBD1; }

/* ---------- Quote page ---------- */
.quote-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: var(--gap); align-items: start; padding-top: 32px; padding-bottom: 64px; }
.form-tile { background: var(--tile); border-radius: var(--radius); padding: 48px; }
.form-step { display: flex; flex-direction: column; gap: 28px; }
.form-step[hidden] { display: none; }
.progress { display: flex; gap: 8px; }
.progress span { height: 10px; flex: 1; border-radius: 10px; background: #CBD5E1; }
.progress span.on { background: var(--blue); }
.form-head { display: flex; flex-direction: column; gap: 14px; }
.form-title { font-size: clamp(38px, 4.4vw, 62px); line-height: .95; font-weight: 900; font-stretch: 112%; letter-spacing: -1px; }
.form-title.sm { font-size: clamp(34px, 3.8vw, 52px); }
.toggle { border: 0; padding: 0; margin: 0; }
.toggle legend { font-weight: 700; font-size: 15px; padding: 0; margin-bottom: 10px; }
.toggle .opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; background: #FFFFFF; padding: 6px; border-radius: 16px; }
.toggle button { border: 0; border-radius: 12px; min-height: 52px; background: transparent; color: var(--navy); font: inherit; font-weight: 700; font-size: 17px; cursor: pointer; }
.toggle button[aria-pressed="true"] { background: var(--navy); color: #FFFFFF; font-weight: 800; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field[hidden] { display: none; }
.field label { font-weight: 700; font-size: 15px; }
.field input, .field select, .field textarea { font: inherit; font-size: 16px; color: var(--navy); background: #FFFFFF; border: 2px solid #8D9AAB; border-radius: 12px; padding: 12px 14px; min-height: 50px; width: 100%; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
.field [aria-invalid="true"] { border-color: var(--error); }
.field .err { color: var(--error); font-size: 14px; font-weight: 600; }
.field .err:empty { display: none; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 14px; line-height: 1.6; color: var(--muted); }
.form-alert { border-radius: 14px; padding: 14px 16px; font-size: 15px; font-weight: 600; background: #FDECEA; color: var(--error); }
.form-alert:empty { display: none; }
.success { background: var(--green); border-radius: 18px; padding: 20px 22px; display: flex; gap: 14px; align-items: center; }
.success strong { display: block; font-size: 18px; font-weight: 800; }
.success span { font-size: 15px; line-height: 1.5; font-weight: 500; }
.turnstile-box { min-height: 65px; }
.aside { display: flex; flex-direction: column; gap: var(--gap); }
.next-tile { background: var(--navy); color: #FFFFFF; border-radius: var(--radius); padding: 34px; display: flex; flex-direction: column; gap: 22px; }
.next-tile h2 { font-size: 28px; line-height: 1; font-weight: 900; font-stretch: 110%; }
.next-item { display: flex; gap: 16px; align-items: baseline; }
.next-item b { font-size: 40px; line-height: .8; font-weight: 900; color: var(--green); }
.next-item p { font-size: 17px; line-height: 1.45; color: var(--on-dark); }

/* ---------- Simple pages (privacy, 404) ---------- */
.prose { max-width: 760px; padding-top: 56px; padding-bottom: 96px; }
.prose h1 { font-size: clamp(38px, 4.4vw, 60px); line-height: 1; font-weight: 900; font-stretch: 112%; letter-spacing: -1px; margin-bottom: 12px; }
.prose h2 { font-size: 24px; font-weight: 800; margin: 36px 0 10px; }
.prose p, .prose li { font-size: 17px; line-height: 1.65; color: var(--body); }
.prose p + p { margin-top: 12px; }
.prose ul { padding-left: 22px; margin: 10px 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .g6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .s3, .s4, .s6 { grid-column: span 2; } .s2 { grid-column: span 1; } .r2 { grid-row: auto; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav, .head-cta { display: none; }
  .menu-btn { display: inline-flex; }
  .quote-layout { grid-template-columns: minmax(0, 1fr); }
  .packages { min-height: 0; }
}
@media (max-width: 620px) {
  .wrap { padding: 0 20px; }
  .g6, .steps, .faq, .grid2 { grid-template-columns: minmax(0, 1fr); }
  .s2, .s3, .s4, .s6 { grid-column: auto; }
  .hero-main, .packages, .factors { padding: 32px 26px; }
  .form-tile { padding: 28px 22px; }
  .close-band { padding: 40px 28px; }
  .cta-row .btn, .form-step .btn { width: 100%; }
  .logo-link img { height: 56px; }
  .site-header .wrap { height: 84px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .enter, .reveal { opacity: 1; transform: none; animation: none; }
  .strike::after { transform: scaleX(1); animation: none; }
  .btn, .tlink, .faq .plus { transition: none; }
}
