:root {
  --navy: #0b1f3a;
  --navy-2: #12305a;
  --ruby: #b80f2e;
  --ruby-dark: #960c25;
  --ink: #1b2430;
  --muted: #55606e;
  --line: #dde3ea;
  --tint: #f4f6fa;
  --white: #fff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(11, 31, 58, .12);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  padding-bottom: 68px;
}
img, svg { max-width: 100%; }
a { color: var(--ruby); }
a:hover { color: var(--ruby-dark); }
h1, h2, h3 { color: var(--navy); line-height: 1.15; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 7vw, 3.2rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 4.6vw, 2.3rem); letter-spacing: -.01em; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }

.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 800px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 8px; top: -60px; background: var(--ruby); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 200; }
.skip-link:focus { top: 8px; }
:focus-visible { outline: 3px solid #ffb703; outline-offset: 2px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; text-align: center;
  line-height: 1.2; transition: background .15s, transform .15s, border-color .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-ruby { background: var(--ruby); color: #fff; box-shadow: 0 6px 16px rgba(184, 15, 46, .3); }
.btn-ruby:hover { background: var(--ruby-dark); color: #fff; }
.btn-outline-light { border-color: rgba(255,255,255,.7); color: #fff; background: transparent; }
.btn-outline-light:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn-large { padding: 17px 28px; font-size: 1.1rem; min-height: 56px; }
.btn-small { padding: 10px 18px; font-size: .95rem; box-shadow: none; }
.btn-block { display: flex; width: 100%; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 100; background: #fff; border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); }
.brand-text { font-weight: 800; font-size: 1.1rem; line-height: 1.1; }
.brand-text span { display: block; font-size: .78rem; font-weight: 700; color: var(--ruby); letter-spacing: .04em; text-transform: uppercase; }
.nav-toggle { width: 48px; height: 48px; border: 1px solid var(--line); background: #fff; border-radius: 12px; cursor: pointer; display: grid; place-items: center; }
.nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after {
  display: block; width: 22px; height: 3px; background: var(--navy); border-radius: 2px; position: relative; transition: transform .2s, opacity .2s;
}
.nav-toggle .bars::before, .nav-toggle .bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle .bars::before { top: -7px; }
.nav-toggle .bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { top: 0; transform: rotate(-45deg); }

.site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
.site-nav.open { display: block; }
.site-nav ul { list-style: none; margin: 0; padding: 12px 20px 20px; display: grid; gap: 4px; }
.site-nav a:not(.btn) { display: block; padding: 12px 8px; color: var(--navy); font-weight: 600; text-decoration: none; border-radius: 8px; }
.site-nav a:not(.btn):hover, .site-nav a[aria-current="page"] { color: var(--ruby); background: var(--tint); }
.site-nav .btn { width: 100%; margin-top: 8px; }

/* Hero */
.hero { background: radial-gradient(circle at 85% 0%, #1c4a86 0%, transparent 45%), linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff; padding: 36px 0 48px; }
.hero h1 { color: #fff; }
.hero-grid { display: grid; gap: 32px; }
.eyebrow { font-size: .85rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #ffb3c0; margin-bottom: 12px; }
.eyebrow-ruby { color: var(--ruby); }
.eyebrow-light { color: #ffb3c0; }
.lead { font-size: 1.15rem; color: #dbe5f3; max-width: 36em; }
.hero-actions { display: flex; flex-direction: column; gap: 12px; margin: 24px 0; }
.hero-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; color: #dbe5f3; font-weight: 600; }
.hero-points li { position: relative; padding-left: 28px; }
.hero-points li::before { content: ""; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; border-radius: 50%; background: var(--ruby) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round' d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/70% no-repeat; }

/* Form card */
.form-card { background: #fff; color: var(--ink); border-radius: 18px; padding: 24px 20px; box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.form-card h2 { font-size: 1.5rem; margin-bottom: .3em; }
.form-card-flat { box-shadow: var(--shadow); border: 1px solid var(--line); }
.form-note { color: var(--muted); font-size: .98rem; }
.field { margin-bottom: 16px; }
.field-row { display: grid; gap: 0 16px; }
label { display: block; font-weight: 700; color: var(--navy); margin-bottom: 6px; font-size: .98rem; }
.optional { font-weight: 400; color: var(--muted); }
input[type="text"], input[type="tel"], input[type="email"], input[type="date"], select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fff; padding: 13px 14px; min-height: 52px;
  border: 2px solid #c3ccd8; border-radius: 10px; transition: border-color .15s, box-shadow .15s;
}
textarea { resize: vertical; min-height: 110px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--navy-2); box-shadow: 0 0 0 4px rgba(18, 48, 90, .18); }
.touched:invalid { border-color: var(--ruby); background: #fff6f7; }
.field-error { color: var(--ruby-dark); font-size: .9rem; font-weight: 600; margin: 6px 0 0; }
.field.check { display: flex; gap: 12px; align-items: flex-start; }
.field.check input { width: 24px; height: 24px; margin-top: 2px; flex: none; accent-color: var(--ruby); }
.field.check label { font-weight: 500; color: var(--ink); margin: 0; }
.fine-print { font-size: .85rem; color: var(--muted); margin: 14px 0 0; }
[data-rubyai-success] { margin-top: 16px; padding: 16px; border-radius: 10px; background: #e8f6ee; color: #14532d; font-weight: 600; border: 1px solid #a7dbbb; }

/* Sections */
.section { padding: 56px 0; }
.section-tint { background: var(--tint); }
.section-navy { background: linear-gradient(160deg, var(--navy), var(--navy-2)); color: #e6edf7; }
.section-navy h2 { color: #fff; }
.section-head { max-width: 720px; margin-bottom: 32px; }
.section-head p { color: var(--muted); font-size: 1.1rem; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.step-num { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--ruby); color: #fff; font-weight: 800; font-size: 1.3rem; margin-bottom: 14px; }
.step p { color: var(--muted); margin: 0; }

.cards { display: grid; gap: 18px; }
.card { background: #fff; border-radius: var(--radius); padding: 24px; border: 1px solid var(--line); border-top: 4px solid var(--ruby); }
.card p { color: var(--muted); margin: 0; }
.icon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 14px; background: #fde7eb; color: var(--ruby); margin-bottom: 14px; }
.card-cta { background: var(--navy); border-color: var(--navy); border-top-color: var(--ruby); }
.card-cta h3 { color: #fff; }
.card-cta p { color: #dbe5f3; margin-bottom: 16px; }

.two-col { display: grid; gap: 32px; }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.check-list li { position: relative; padding: 16px 16px 16px 56px; background: var(--tint); border-radius: var(--radius); }
.check-list li::before { content: ""; position: absolute; left: 16px; top: 18px; width: 26px; height: 26px; border-radius: 50%; background: var(--ruby) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/70% no-repeat; }
.check-list strong { color: var(--navy); }

.todo-list { list-style: none; counter-reset: todo; padding: 0; margin: 0; display: grid; gap: 12px; }
.todo-list li { counter-increment: todo; position: relative; padding: 14px 16px 14px 62px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); border-radius: var(--radius); }
.todo-list li::before { content: counter(todo); position: absolute; left: 14px; top: 12px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--ruby); color: #fff; font-weight: 800; }
.todo-list strong { color: #fff; }

.faq details { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; background: #fff; }
.faq summary { cursor: pointer; padding: 18px 54px 18px 18px; font-weight: 700; color: var(--navy); list-style: none; position: relative; min-height: 56px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 1.6rem; color: var(--ruby); line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details[open] { border-color: var(--navy-2); }
.faq details p { padding: 0 18px 18px; margin: 0; color: var(--muted); }

.cta-band { background: var(--ruby); color: #fff; padding: 52px 0; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band .hero-actions { align-items: stretch; margin-bottom: 0; }
.cta-band .btn-ruby { background: #fff; color: var(--ruby-dark); box-shadow: none; }
.cta-band .btn-ruby:hover { background: #f3f3f3; color: var(--ruby-dark); }

/* Inner pages */
.page-hero { background: linear-gradient(160deg, var(--navy), var(--navy-2)); color: #fff; padding: 44px 0 40px; }
.page-hero h1 { color: #fff; }
.contact-grid { display: grid; gap: 28px; }
.side { display: grid; gap: 18px; align-content: start; }
.side-card { background: var(--tint); border-radius: var(--radius); padding: 22px; }
.side-card h2 { font-size: 1.25rem; }
.side-card p:last-child { margin-bottom: 0; }
.side-card-navy { background: var(--navy); color: #dbe5f3; }
.side-card-navy h2 { color: #fff; }
.side-card-alert { background: #fff3f4; border: 1px solid #f3c1ca; }
.mini-steps { margin: 0; padding-left: 1.3em; display: grid; gap: 8px; }
.prose h2 { font-size: 1.4rem; margin-top: 1.8em; }
.prose li { margin-bottom: .4em; }

/* Footer */
.site-footer { background: #07142a; color: #c5d0e0; padding: 44px 0 20px; font-size: .98rem; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; gap: 28px; }
.footer-brand { font-size: 1.25rem; font-weight: 800; color: #fff; margin-bottom: .4em; }
.footer-title { font-weight: 800; color: #fff; margin-bottom: .6em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-phone { font-size: 1.4rem; font-weight: 800; text-decoration: none; }
.legal { border-top: 1px solid rgba(255,255,255,.15); margin-top: 32px; padding-top: 20px; font-size: .88rem; color: #aebbd0; }

/* Sticky call bar (phones) */
.call-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; display: flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 60px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: var(--ruby); color: #fff; font-weight: 800; font-size: 1.1rem; text-decoration: none;
  box-shadow: 0 -6px 20px rgba(0,0,0,.2);
}
.call-bar:hover { background: var(--ruby-dark); color: #fff; }

/* Tablet */
@media (min-width: 640px) {
  .hero-actions { flex-direction: row; flex-wrap: wrap; }
  .cta-band .hero-actions { justify-content: center; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .field-row { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
  .form-card { padding: 30px; }
}

/* Desktop */
@media (min-width: 900px) {
  body { padding-bottom: 0; }
  .call-bar { display: none; }
  .nav-toggle { display: none; }
  .site-nav { display: block; position: static; border: 0; box-shadow: none; background: transparent; }
  .site-nav ul { display: flex; align-items: center; gap: 2px; padding: 0; }
  .site-nav .btn { width: auto; margin: 0 0 0 10px; }
  .hero { padding: 64px 0 72px; }
  .hero-grid { grid-template-columns: 1.1fr .9fr; align-items: center; gap: 56px; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .two-col { grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
  .section { padding: 84px 0; }
  .contact-grid { grid-template-columns: 1.4fr 1fr; gap: 40px; }
  .page-hero { padding: 64px 0 56px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}