:root {
  --color-primary: #43cea2;
  --color-accent: #185a9d;
  --rc-navy: #0d1b3d;
  --rc-navy-2: #142657;
  --rc-ink: #101b42;
  --rc-muted: #5d6993;
  --rc-line: #dfe5f6;
  --rc-soft: #f3f6ff;
  --rc-card: #fff;
  --rc-danger: #a61b32;
  --rc-radius: 20px;
  --rc-shadow: 0 20px 50px rgba(14, 29, 72, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  min-width: 320px;
  color: var(--rc-ink);
  background: linear-gradient(180deg, #f9faff 0%, #eef2ff 36%, #fff 100%);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Inter, Helvetica, Arial, sans-serif;
  line-height: 1.55;
}
body.mobile-menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button, input, select { font: inherit; }
h1, h2, h3, h4 { color: #0e1b46; line-height: 1.16; margin: 0; }
p { margin: 0; }
.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 1000; background: #fff; color: #111; padding: 10px 14px; border-radius: 8px; }
.skip-link:focus { top: 12px; }

.site-header { position: sticky; top: 0; z-index: 60; background: rgba(10,18,46,.94); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(255,255,255,.08); box-shadow: 0 20px 45px rgba(8,16,44,.18); }
.site-header .nav-container { display: flex; align-items: center; gap: 24px; justify-content: space-between; min-height: 84px; color: #f5f7ff; position: relative; z-index: 65; }
.site-header .brand { display: flex; align-items: center; gap: 12px; color: #f5f7ff; font-weight: 700; font-size: 20px; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.site-header .brand-logo-wrap, .site-footer .brand-logo-wrap { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; min-width: 48px; flex: 0 0 48px; border-radius: 14px; overflow: hidden; background: linear-gradient(135deg,var(--color-primary),var(--color-accent)); padding: 3px; box-shadow: 0 8px 18px rgba(0,0,0,.16); }
.site-header .brand-logo, .site-footer .brand-logo { width: 100%; height: 100%; object-fit: contain; border-radius: 10px; }
.site-header .brand-name { line-height: 1; }
.site-header .nav-main { display: flex; align-items: center; gap: 20px; margin: auto; }
.site-header .nav-link { color: rgba(244,247,255,.85); font-weight: 600; font-size: 15px; position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 7px 0; transition: .2s color; white-space: nowrap; }
.site-header .nav-link.active, .site-header .nav-link:hover { color: #fff; }
.site-header .nav-item { position: relative; display: flex; align-items: center; }
.site-header .nav-item .dropdown { position: absolute; top: 100%; left: 0; margin-top: 0; background: rgba(15,27,66,.98); border: 1px solid rgba(255,255,255,.1); border-radius: 14px; padding: 10px; display: none; min-width: 220px; box-shadow: 0 18px 45px rgba(8,16,44,.34); }
.site-header .nav-item:hover .dropdown, .site-header .nav-item:focus-within .dropdown { display: block; }
.site-header .dropdown-link { display: flex; align-items: center; gap: 8px; padding: 9px 12px; color: rgba(240,244,255,.86); border-radius: 10px; font-weight: 600; font-size: 14px; line-height: 1.28; transition: .2s background-color,.2s color; }
.site-header .dropdown-link:hover, .site-header .dropdown-link.active { background: rgba(255,255,255,.12); color: #fff; }
.site-header .nav-cta { margin-left: auto; }
.site-header .btn-phone { display: inline-flex; align-items: center; justify-content: center; padding: 12px 18px; border-radius: 14px; background: linear-gradient(135deg,var(--color-primary),var(--color-accent)); color: #fff; font-weight: 700; box-shadow: 0 18px 38px rgba(16,24,64,.35); white-space: nowrap; }
.nav-toggle { display: none; flex-direction: column; gap: 4px; background: none; border: 0; cursor: pointer; padding: 12px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: #fff; border-radius: 4px; transition: .25s transform,.25s opacity; }
.nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.mobile-menu { display: none; }
.mobile-menu__header, .mobile-close { display: none; }

.rc-hero { position: relative; overflow: hidden; padding: 76px 0 62px; color: #f5f7ff; background: radial-gradient(circle at 82% 20%, color-mix(in srgb, var(--color-primary) 28%, transparent), transparent 34%), linear-gradient(135deg, var(--rc-navy), var(--rc-navy-2)); }
.rc-hero::after { content: ""; position: absolute; width: 360px; height: 360px; right: -120px; bottom: -220px; border-radius: 50%; background: color-mix(in srgb, var(--color-accent) 30%, transparent); filter: blur(2px); }
.rc-hero .container { position: relative; z-index: 1; }
.rc-eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; color: rgba(255,255,255,.9); background: rgba(255,255,255,.1); font-size: 14px; font-weight: 700; }
.rc-hero h1 { max-width: 940px; margin-top: 18px; color: #fff; font-size: clamp(38px, 6vw, 66px); letter-spacing: -.025em; }
.rc-hero p { max-width: 760px; margin-top: 18px; color: rgba(237,242,255,.86); font-size: clamp(17px, 2vw, 20px); }
.rc-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.rc-btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; padding: 13px 20px; border: 0; border-radius: 14px; cursor: pointer; font-weight: 750; line-height: 1.2; transition: transform .2s ease, box-shadow .2s ease; }
.rc-btn:hover { transform: translateY(-2px); }
.rc-btn:focus-visible, .rc-card-link:focus-visible, .rc-field input:focus-visible, .rc-field select:focus-visible, summary:focus-visible { outline: 3px solid color-mix(in srgb, var(--color-primary) 52%, #fff); outline-offset: 3px; }
.rc-btn-primary { color: #fff; background: linear-gradient(135deg,var(--color-primary),var(--color-accent)); box-shadow: 0 16px 34px rgba(0,0,0,.24); }
.rc-btn-secondary { color: var(--rc-ink); background: #fff; border: 1px solid var(--rc-line); }

.rc-section { padding: 72px 0; }
.rc-section-tight { padding-top: 0; }
.rc-section-soft { background: rgba(243,246,255,.68); border-block: 1px solid #e9edfb; }
.rc-section-header { max-width: 800px; margin: 0 auto 34px; text-align: center; }
.rc-section-header h2 { font-size: clamp(29px, 4vw, 42px); }
.rc-section-header p { margin-top: 12px; color: var(--rc-muted); font-size: 17px; }

.rc-hub-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.rc-hub-card { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 28px; border: 1px solid var(--rc-line); border-radius: var(--rc-radius); background: #fff; box-shadow: 0 16px 38px rgba(18,31,71,.08); }
.rc-icon { width: 50px; height: 50px; display: grid; place-items: center; flex: 0 0 auto; color: #fff; border-radius: 16px; background: linear-gradient(135deg,var(--color-primary),var(--color-accent)); }
.rc-icon svg { width: 27px; height: 27px; }
.rc-hub-card h2 { font-size: 21px; }
.rc-hub-card p { color: var(--rc-muted); flex-grow: 1; }
.rc-card-link { color: var(--color-accent); font-weight: 750; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }

.rc-calculator-shell { display: grid; grid-template-columns: minmax(0, 1.28fr) minmax(310px, .72fr); gap: 24px; align-items: start; }
.rc-panel { min-width: 0; padding: 30px; border: 1px solid var(--rc-line); border-radius: var(--rc-radius); background: rgba(255,255,255,.96); box-shadow: var(--rc-shadow); }
.rc-panel h2 { margin-bottom: 8px; font-size: clamp(25px, 3vw, 32px); }
.rc-panel-intro { color: var(--rc-muted); margin-bottom: 24px; }
.rc-form { display: grid; gap: 20px; }
.rc-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.rc-field { min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.rc-field-full { grid-column: 1 / -1; }
.rc-field label, .rc-field legend { color: #172451; font-weight: 700; }
.rc-field small { color: #6c7699; font-size: 13px; }
.rc-field input, .rc-field select { width: 100%; min-height: 48px; padding: 11px 13px; color: var(--rc-ink); border: 1px solid #cfd7ef; border-radius: 12px; background: #fbfcff; }
.rc-field input:focus, .rc-field select:focus { border-color: var(--color-accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--color-primary) 18%, transparent); outline: none; }
.rc-check { display: flex; flex-direction: row; align-items: center; gap: 10px; min-height: 48px; padding: 10px 13px; border: 1px solid #cfd7ef; border-radius: 12px; background: #fbfcff; }
.rc-check input { width: 18px; min-height: 18px; height: 18px; flex: 0 0 auto; accent-color: var(--color-accent); }
.rc-fieldset { grid-column: 1 / -1; min-width: 0; margin: 0; padding: 0; border: 0; }
.rc-fieldset legend { margin-bottom: 8px; }
.rc-radio-row { display: flex; flex-wrap: wrap; gap: 10px; }
.rc-radio { display: flex; align-items: center; gap: 8px; padding: 10px 13px; border: 1px solid #cfd7ef; border-radius: 12px; background: #fbfcff; }
.rc-radio input { accent-color: var(--color-accent); }
.rc-form-actions { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 4px; }
.rc-form-error { min-height: 24px; color: var(--rc-danger); font-weight: 700; }
.rc-hidden { display: none !important; }

.rc-results { position: sticky; top: 108px; color: #fff; border: 1px solid rgba(255,255,255,.1); background: linear-gradient(145deg,var(--rc-navy),#172c62); }
.rc-results h2 { color: #fff; }
.rc-results > p { color: rgba(231,237,255,.76); }
.rc-results-status { min-height: 19px; margin: -8px 0 0; padding: 0; color: #6c7699; font-size: 13px; line-height: 1.45; }
.rc-results-status.rc-status-stale { color: #8a6715; }
.rc-results-status.rc-status-complete { color: #28725f; }
.rc-result-grid { display: grid; gap: 12px; margin-top: 20px; }
.rc-result-card { min-width: 0; padding: 15px 16px; border: 1px solid rgba(255,255,255,.12); border-radius: 14px; background: rgba(255,255,255,.08); }
.rc-result-card span { display: block; color: rgba(228,235,255,.72); font-size: 13px; font-weight: 650; }
.rc-result-card strong { display: block; margin-top: 3px; color: #fff; font-size: 21px; overflow-wrap: anywhere; }
.rc-result-card.rc-result-primary { background: linear-gradient(135deg,color-mix(in srgb, var(--color-primary) 70%, #12214b),color-mix(in srgb, var(--color-accent) 75%, #12214b)); }
.rc-result-notes { display: grid; gap: 7px; margin: 18px 0 0; padding-left: 20px; color: rgba(235,240,255,.8); font-size: 14px; }
.rc-diagram { margin-top: 20px; padding: 14px; border-radius: 14px; background: rgba(255,255,255,.96); color: var(--rc-ink); }
.rc-diagram svg { width: 100%; height: auto; max-height: 230px; }

.rc-copy-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.rc-copy-card { padding: 28px; border: 1px solid var(--rc-line); border-radius: var(--rc-radius); background: #fff; box-shadow: 0 16px 38px rgba(18,31,71,.07); }
.rc-copy-card h2, .rc-copy-card h3 { margin-bottom: 12px; }
.rc-copy-card p, .rc-copy-card li { color: var(--rc-muted); }
.rc-copy-card p + p { margin-top: 16px; }
.rc-copy-card ul { margin: 0; padding-left: 20px; }
.rc-local-content { max-width: 1080px; margin: 0 auto; }
.rc-local-content p { color: var(--rc-muted); font-size: 17px; line-height: 1.75; }
.rc-local-content p + p { margin-top: 18px; }
.rc-local-content .rc-authority-reference { margin-top: 26px; padding: 18px 20px; color: #384875; border: 1px solid #cdd8f6; border-left: 5px solid var(--color-accent); border-radius: 14px; background: #f4f7ff; font-size: 16px; }
.rc-authority-reference a { color: #163f92; font-weight: 750; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.rc-related { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.rc-related a { display: flex; align-items: center; justify-content: space-between; min-height: 76px; padding: 18px; color: #162658; border: 1px solid var(--rc-line); border-radius: 15px; background: #fff; font-weight: 750; box-shadow: 0 12px 28px rgba(18,31,71,.06); }
.rc-related a::after { content: "→"; color: var(--color-accent); font-size: 20px; }
.rc-faq { max-width: 1120px; margin: 0 auto; display: grid; gap: 16px; }
.rc-faq details { padding: 22px 26px; border: 1px solid var(--rc-line); border-radius: 16px; background: #fff; box-shadow: 0 10px 26px rgba(18,31,71,.05); }
.rc-faq summary { display: flex; justify-content: space-between; gap: 24px; cursor: pointer; color: #12204c; font-size: 17px; font-weight: 750; line-height: 1.45; list-style: none; }
.rc-faq summary::-webkit-details-marker { display: none; }
.rc-faq summary::after { content: "+"; color: var(--color-accent); font-size: 22px; line-height: 1; }
.rc-faq details[open] summary::after { content: "−"; }
.rc-faq details p { max-width: 980px; margin-top: 14px; color: var(--rc-muted); font-size: 16px; line-height: 1.7; }
.rc-disclaimer { padding: 20px 22px; color: #384875; border: 1px solid #cdd8f6; border-left: 5px solid var(--color-accent); border-radius: 14px; background: #f4f7ff; }
.rc-cta { padding: 42px; text-align: center; color: #fff; border-radius: 24px; background: radial-gradient(circle at top, color-mix(in srgb, var(--color-primary) 24%, transparent), transparent 55%), var(--rc-navy); box-shadow: var(--rc-shadow); }
.rc-cta h2 { color: #fff; }
.rc-cta p { max-width: 700px; margin: 12px auto 22px; color: rgba(235,240,255,.82); }

.site-footer { padding: 64px 0 0; background: linear-gradient(180deg,#0f1738 0%,#070e26 100%); border-top: 1px solid rgba(255,255,255,.08); color: #9aa7d4; }
.site-footer .footer-grid { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); align-items: flex-start; }
.site-footer h3, .site-footer h4 { color: #fff; margin: 0 0 14px; font-weight: 700; }
.site-footer .footer-brand-heading { display: flex; align-items: center; gap: 16px; margin: 0 0 18px; }
.site-footer .footer-brand-heading h3 { margin: 0; }
.site-footer p { margin: 0 0 18px; color: rgba(213,220,255,.85); line-height: 1.6; }
.site-footer .link-stack { display: flex; flex-direction: column; gap: 10px; }
.site-footer .link-stack a { color: rgba(214,224,255,.85); font-weight: 600; }
.site-footer .footer-phone { display: inline-flex; align-items: center; justify-content: center; padding: 12px 18px; border-radius: 14px; background: linear-gradient(135deg,var(--color-primary),var(--color-accent)); color: #fff; font-weight: 700; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; color: rgba(214,224,255,.82); font-weight: 600; font-size: 15px; }
.site-footer ul span { color: rgba(255,255,255,.72); margin-right: 6px; }
.site-footer .footer-bottom { margin-top: 36px; padding: 24px; border-top: 1px solid rgba(255,255,255,.08); text-align: center; font-size: 14px; color: rgba(180,196,255,.6); }
.site-footer .footer-bottom p { margin: 0; }
.site-footer .footer-disclaimer { padding: 18px 0; border-top: 1px solid rgba(255,255,255,.08); }
.site-footer .footer-disclaimer p { margin: 0; line-height: 1.45; font-size: 14px; color: rgba(213,220,255,.72); }

@media (max-width: 1024px) {
  .site-header .nav-main, .site-header .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .mobile-menu { display: block; position: fixed; inset: 0; z-index: 75; height: 100vh; max-height: 100vh; padding: calc(var(--nav-offset, 84px) + 24px) 24px 40px; overflow-y: auto; overscroll-behavior: contain; color: #fff; background: rgba(10,18,46,.98); transform: translateY(-100%); transition: .3s transform ease; pointer-events: none; }
  .mobile-menu.open { transform: translateY(0); pointer-events: auto; }
  .mobile-menu__header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
  .mobile-menu__header .brand { display: flex; }
  .mobile-close { display: inline-grid; place-items: center; width: 44px; height: 44px; color: #fff; border: 1px solid rgba(255,255,255,.22); border-radius: 12px; background: rgba(255,255,255,.08); font-size: 28px; cursor: pointer; }
  .mobile-links { display: flex; flex-direction: column; gap: 12px; }
  .mobile-link { color: rgba(244,247,255,.9); font-weight: 700; }
  .mobile-link.active { color: #fff; }
  .mobile-sublink { padding-left: 18px; color: rgba(225,232,255,.76); font-size: 14px; }
  .mobile-cta { margin-top: 12px; display: inline-flex; justify-content: center; padding: 12px 18px; border-radius: 12px; background: linear-gradient(135deg,var(--color-primary),var(--color-accent)); color: #fff; font-weight: 700; }
  .rc-hub-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rc-calculator-shell { grid-template-columns: 1fr; }
  .rc-results { position: static; }
}

@media (max-width: 720px) {
  .container { padding-inline: 18px; }
  .site-header .nav-container { min-height: 74px; }
  .site-header .brand { font-size: 16px; letter-spacing: .04em; }
  .site-header .brand-logo-wrap { width: 42px; height: 42px; min-width: 42px; flex-basis: 42px; }
  .rc-hero { padding: 56px 0 48px; }
  .rc-hero h1 { font-size: clamp(34px, 11vw, 48px); overflow-wrap: anywhere; }
  .rc-section { padding: 54px 0; }
  .rc-hub-grid, .rc-copy-grid, .rc-related { grid-template-columns: 1fr; }
  .rc-form-grid { grid-template-columns: 1fr; }
  .rc-field-full, .rc-fieldset { grid-column: auto; }
  .rc-panel { padding: 22px; }
  .rc-cta { padding: 32px 22px; }
}

@media (max-width: 420px) {
  .container { padding-inline: 15px; }
  .site-header .brand-name { max-width: 190px; white-space: normal; }
  .rc-panel { padding: 18px; border-radius: 16px; }
  .rc-hub-card { padding: 22px; }
  .rc-form-actions .rc-btn { width: 100%; }
  .rc-radio-row { flex-direction: column; }
  .rc-radio { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
