:root {
  --navy: #162c55;
  --navy-2: #0f2140;
  --blue: #147ae8;
  --blue-2: #5fb0ff;
  --ink: #243246;
  --muted: #5c6a7d;
  --soft: #f4f7fb;
  --pale: #eaf3ff;
  --white: #ffffff;
  --line: #d9e2ee;
  --warning: #a94442;
  --ok: #2a766b;
  --shadow: 0 24px 70px rgba(22, 44, 85, 0.13);
  --soft-shadow: 0 16px 42px rgba(22, 44, 85, 0.08);
  --radius: 8px;
  --radius-lg: 18px;
  --max: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--soft);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

img { max-width: 100%; }
a { color: inherit; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
main:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 30;
  padding: 10px 12px;
  color: var(--white);
  background: var(--navy);
  border-radius: var(--radius);
  font-weight: 800;
  text-decoration: none;
}

.skip-link:focus { top: 16px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid rgba(217, 226, 238, 0.95);
  backdrop-filter: blur(16px);
}

.notice-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  padding: 8px 18px;
  color: var(--white);
  background: var(--navy);
  font-size: 0.82rem;
  font-weight: 800;
}

.nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max);
  margin: 0 auto;
  padding: 12px 24px;
}

.brand {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex: 0 0 142px;
  width: 142px;
  height: 96px;
  overflow: hidden;
  color: var(--navy);
  font-weight: 900;
  text-decoration: none;
}

.brand img {
  position: absolute;
  top: -49px;
  left: -76px;
  display: block;
  width: auto;
  max-width: none;
  height: 200px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 0.9rem;
}

.nav-links a {
  color: var(--muted);
  border-radius: var(--radius);
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--navy); }

.nav-links .nav-cta {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 13px;
  color: var(--white);
  background: var(--blue);
  border: 1px solid var(--blue);
  border-radius: 999px;
  font-weight: 900;
}

.nav-toggle {
  display: none;
  min-height: 44px;
  padding: 8px 12px;
  color: var(--navy);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font: inherit;
  font-weight: 800;
}

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px 64px;
}

h1, h2, h3, p, li { overflow-wrap: anywhere; }

h1, h2, h3 {
  margin: 0;
  color: var(--navy);
  font-family: Manrope, Inter, ui-sans-serif, system-ui, sans-serif;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(2.7rem, 5.8vw, 5.6rem);
  line-height: 0.96;
  font-weight: 800;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.02;
  font-weight: 800;
}

h3 {
  font-size: 1.12rem;
  line-height: 1.2;
}

p { margin: 0; }

.eyebrow {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mini-label {
  margin: 0 0 8px;
  color: var(--blue);
  font-size: 0.73rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lede {
  max-width: 720px;
  color: var(--muted);
  font-size: clamp(1.04rem, 1.7vw, 1.2rem);
}

.statement {
  color: var(--navy);
  font-family: Manrope, Inter, sans-serif;
  font-size: clamp(1.24rem, 2vw, 1.65rem);
  font-weight: 800;
  line-height: 1.18;
}

.muted { color: var(--muted); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
}

.button.primary {
  color: var(--white);
  background: var(--blue);
  border-color: var(--blue);
  box-shadow: 0 12px 28px rgba(20, 122, 232, 0.22);
}

.button.secondary {
  color: var(--navy);
  background: var(--white);
}

.button.light {
  color: var(--navy);
  background: var(--white);
  border-color: var(--white);
  box-shadow: none;
}

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 12px;
  color: var(--blue);
  font-weight: 900;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.hero,
.page-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(430px, 1.18fr);
  gap: 36px;
  align-items: center;
  padding: 76px 0 56px;
}

.visual-led {
  grid-template-columns: minmax(0, 0.68fr) minmax(520px, 1.32fr);
  gap: 42px;
}

.visual-led .page-copy,
.visual-led .hero-copy { max-width: 560px; }

.hero-copy,
.page-copy,
.section-heading,
.stack {
  display: grid;
  gap: 16px;
}

.hero-actions,
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.visual-frame {
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.visual-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero .visual-frame,
.page-hero .visual-frame { aspect-ratio: 16 / 10; }

.visual-led .visual-frame { aspect-ratio: 5 / 4; }

.image-band { margin: 28px 0 0; }
.image-band .visual-frame,
.visual-frame.image-band { aspect-ratio: 16 / 7; }

#workflow .visual-frame.image-band { aspect-ratio: auto; }
#workflow .visual-frame img { height: auto; object-fit: contain; }

.section { padding: 72px 0; }
.section + .section { border-top: 1px solid rgba(217, 226, 238, 0.95); }

.section-heading {
  max-width: 780px;
  margin-bottom: 28px;
}

.center {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.center .lede {
  margin-right: auto;
  margin-left: auto;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 1.1fr);
  gap: 34px;
  align-items: center;
}

.split.reverse {
  grid-template-columns: minmax(360px, 1.1fr) minmax(0, 0.9fr);
}

.split.reverse .visual-frame { order: -1; }

.split.visual-first {
  grid-template-columns: minmax(0, 0.72fr) minmax(430px, 1.28fr);
  gap: 42px;
}

.split.reverse.visual-first {
  grid-template-columns: minmax(430px, 1.28fr) minmax(0, 0.72fr);
}

.split.visual-first .visual-frame { aspect-ratio: 16 / 9; }

.story-strip {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 24px;
  align-items: stretch;
}

.story-strip .visual-frame { min-height: 420px; }

.story-strip .stack {
  align-content: center;
  padding: 28px;
}

.scan-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 10px;
}

.scan-panel .panel {
  padding: 18px;
  box-shadow: none;
}

.visual-caption {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.card-grid {
  display: grid;
  gap: 18px;
}

.card-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card,
.panel,
.q-card,
.form-card,
.route-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--soft-shadow);
}

.card,
.panel,
.route-card {
  display: grid;
  gap: 10px;
  padding: 24px;
}

.card p,
.panel p,
.route-card p,
.q-card p { color: var(--muted); }

.section-soft,
.systems-section,
.proof-section,
.cta-panel,
.coming-soon,
.local-section {
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 38px 34px;
}

.section-soft,
.proof-section,
.local-section {
  background: linear-gradient(180deg, rgba(255,255,255,0.9), rgba(234,243,255,0.52));
}

.systems-section {
  color: var(--white);
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
}

.systems-section h2,
.systems-section h3,
.systems-section p { color: var(--white); }

.systems-section .eyebrow { color: #9ccfff; }
.systems-section .visual-frame { border-color: rgba(255, 255, 255, 0.25); }

.flow-list,
.check-list,
.number-list,
.resource-list,
.footer-links {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.flow-list li,
.check-list li,
.number-list li {
  position: relative;
  padding: 14px 16px 14px 42px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.flow-list li::before,
.check-list li::before {
  content: "";
  position: absolute;
  top: 21px;
  left: 17px;
  width: 11px;
  height: 11px;
  background: var(--blue);
  border-radius: 999px;
  box-shadow: 0 0 0 6px rgba(20, 122, 232, 0.11);
}

.number-list { counter-reset: steps; }
.number-list li { counter-increment: steps; }

.number-list li::before {
  content: counter(steps, decimal-leading-zero);
  position: absolute;
  left: 14px;
  top: 13px;
  color: var(--blue);
  font-family: Manrope, Inter, sans-serif;
  font-size: 0.78rem;
  font-weight: 900;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: process;
}

.process-steps li {
  position: relative;
  min-width: 0;
  padding: 28px 22px 30px;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 5px solid var(--blue);
  border-radius: var(--radius-lg);
  box-shadow: var(--soft-shadow);
  counter-increment: process;
}

.process-steps li::before {
  content: counter(process, decimal-leading-zero);
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 22px;
  color: var(--white);
  background: var(--navy);
  border-radius: 50%;
  font-family: Manrope, Inter, sans-serif;
  font-size: 1.2rem;
  font-weight: 900;
}

.process-steps h3 { margin: 0 0 8px; color: var(--navy); }
.process-steps p { margin: 0; color: var(--muted); }

.q-grid { position: relative; }

.q-grid::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 10%;
  left: 10%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(20,122,232,0.25), transparent);
}

.q-card {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  align-content: start;
  min-height: 250px;
  padding: 22px;
  text-align: center;
}

.q-grid .q-card {
  transform: translateY(0);
}

.q-grid .q-card:nth-child(2) {
  transform: translateY(-14px);
}

.q-card.alert { box-shadow: inset 0 5px 0 #d95757, var(--soft-shadow); }
.q-card.check { box-shadow: inset 0 5px 0 var(--blue), var(--soft-shadow); }
.q-card.tip { box-shadow: inset 0 5px 0 var(--navy), var(--soft-shadow); }

.q-mark {
  display: block;
  width: min(100%, 232px);
  height: auto;
  margin: 0 auto;
  border-radius: var(--radius);
}

.status-pill {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 32px;
  padding: 5px 10px;
  color: var(--navy);
  background: var(--pale);
  border: 1px solid #b8d7fb;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
}

.boundary { border-left: 5px solid var(--blue); }
.boundary.warning { border-left-color: var(--warning); }
.boundary.ok { border-left-color: var(--ok); }

.cta-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
}

.cta-panel h2,
.cta-panel p,
.cta-panel .eyebrow { color: var(--white); }

.coming-soon { background: linear-gradient(135deg, #ffffff, #edf6ff); }

.coming-soon .status-pill {
  color: var(--white);
  background: var(--navy);
  border-color: var(--navy);
}

.social-grid {
  display: grid;
  grid-template-columns: minmax(340px, 1.2fr) minmax(0, 0.8fr);
  gap: 24px;
  align-items: center;
}

.social-grid.visual-first {
  grid-template-columns: minmax(480px, 1.42fr) minmax(0, 0.58fr);
}

.social-grid.visual-first .visual-frame { aspect-ratio: 16 / 10; }

.empty-proof {
  display: grid;
  gap: 12px;
}

.empty-proof .panel { border-style: dashed; }
.resource-tile { min-height: 160px; }

.tool-section {
  display: grid;
  gap: 20px;
}

.tool-card {
  display: grid;
  gap: 16px;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--soft-shadow);
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.tool-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.audience-card,
.filter-chip {
  display: grid;
  gap: 8px;
  min-height: 100%;
  padding: 18px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--soft-shadow);
  text-decoration: none;
}

.audience-card:hover,
.filter-chip:hover {
  border-color: rgba(20, 122, 232, 0.45);
}

.audience-card strong,
.tool-output strong { color: var(--navy); }

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.field-grid .full { grid-column: 1 / -1; }

.check-row,
.task-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 12px;
  background: rgba(244, 247, 251, 0.9);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.check-row input,
.task-row input {
  width: auto;
  min-height: auto;
  margin-top: 5px;
}

.tool-output {
  display: grid;
  gap: 10px;
  min-height: 72px;
  padding: 16px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.tool-output.custom,
.tool-output.warning { border-left: 5px solid var(--warning); }
.tool-output.ok { border-left: 5px solid var(--ok); }

.price-lines,
.result-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.price-lines li,
.result-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(217, 226, 238, 0.8);
}

.resource-controls,
.faq-controls,
.calendar-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-chip {
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 999px;
  box-shadow: none;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.filter-chip[aria-pressed="true"] {
  color: var(--white);
  background: var(--navy);
  border-color: var(--navy);
}

.resource-results,
.faq-list,
.task-list,
.checklist-list {
  display: grid;
  gap: 12px;
}

.faq-item,
.resource-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.faq-item button {
  display: flex;
  justify-content: space-between;
  width: 100%;
  padding: 16px 18px;
  color: var(--navy);
  background: transparent;
  border: 0;
  font: inherit;
  font-weight: 900;
  text-align: left;
  cursor: pointer;
}

.faq-panel,
.resource-card {
  padding: 18px;
}

.faq-panel[hidden] { display: none; }

.error-text {
  color: var(--warning);
  font-weight: 800;
}

.copy-status {
  color: var(--ok);
  font-weight: 800;
}

pre {
  max-width: 100%;
  overflow: auto;
  white-space: pre-wrap;
  font: 0.88rem/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.form-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
  gap: 24px;
  align-items: start;
}

.form-card {
  display: grid;
  gap: 14px;
  padding: 24px;
}

.form-note {
  color: var(--navy);
  background: var(--pale);
  border: 1px solid #b8d7fb;
  border-radius: var(--radius);
  padding: 11px 12px;
  font-weight: 800;
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 750;
}

input,
textarea,
select {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  color: var(--muted);
  background: #eef3f9;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font: inherit;
}

textarea {
  min-height: 104px;
  resize: vertical;
}

button[disabled] {
  justify-self: start;
  min-height: 44px;
  padding: 10px 14px;
  color: var(--muted);
  background: #e8edf5;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 900;
  cursor: not-allowed;
}

.site-footer {
  color: var(--muted);
  background: var(--white);
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(260px, 0.8fr);
  gap: 24px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 30px 24px;
}

.footer-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.footer-links a {
  display: flex;
  align-items: center;
  min-height: 44px;
  color: var(--navy);
  font-weight: 800;
  text-decoration: none;
}

.footer-note {
  padding: 14px 24px;
  color: var(--white);
  background: var(--navy);
  text-align: center;
  font-weight: 800;
}

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

@media (max-width: 1120px) {
  .nav-links {
    gap: 9px;
    font-size: 0.84rem;
  }

  .brand { flex-basis: 120px; width: 120px; height: 80px; }
  .brand img { top: -42px; left: -66px; height: 170px; }
  .card-grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tool-grid.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 940px) {
  .nav { align-items: center; }
  .nav-toggle { display: inline-flex; }
  .process-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .nav-links {
    display: none;
    position: absolute;
    left: 18px;
    right: 18px;
    top: calc(100% + 8px);
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
  }

  .nav-links.open { display: flex; }
  .nav-links a { padding: 8px 4px; }
  .nav-links .nav-cta { width: fit-content; padding: 10px 14px; }

  .hero,
  .page-hero,
  .split,
  .split.reverse,
  .split.visual-first,
  .split.reverse.visual-first,
  .social-grid,
  .social-grid.visual-first,
  .form-layout,
  .cta-panel,
  .story-strip,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .split.reverse .visual-frame { order: 0; }
  .story-strip .visual-frame { min-height: 0; }
  .scan-panel { grid-template-columns: 1fr; }

  .hero,
  .page-hero { padding-top: 56px; }

  .card-grid.three { grid-template-columns: 1fr; }
  .tool-grid,
  .tool-grid.three,
  .field-grid { grid-template-columns: 1fr; }
  .field-grid .full { grid-column: auto; }
  .q-grid::before { display: none; }
  .q-card { min-height: auto; }
}

@media (max-width: 620px) {
  .process-steps { grid-template-columns: 1fr; }

  main,
  .nav {
    padding-right: 18px;
    padding-left: 18px;
  }

  .notice-bar span { text-align: center; }
  .brand { flex-basis: 102px; width: 102px; height: 72px; }
  .brand img { top: -36px; left: -58px; height: 148px; }

  .hero,
  .page-hero {
    padding-top: 44px;
    padding-bottom: 36px;
  }

  .section { padding: 48px 0; }

  .card-grid.two,
  .card-grid.four { grid-template-columns: 1fr; }

  .section-soft,
  .systems-section,
  .proof-section,
  .cta-panel,
  .coming-soon,
  .local-section {
    padding: 24px 18px;
    border-radius: 20px;
  }

  .visual-frame { border-radius: 14px; }
  .image-band .visual-frame,
  .visual-frame.image-band,
  .visual-led .visual-frame,
  .split.visual-first .visual-frame { aspect-ratio: 4 / 3; }

  .hero-actions,
  .cta-row {
    flex-direction: column;
    align-items: stretch;
  }

  .button { width: 100%; }
  .footer-links { grid-template-columns: 1fr; }
}

@media print {
  .site-header,
  .site-footer,
  .hero-actions,
  .nav,
  .notice-bar,
  .visual-frame,
  .button,
  .filter-chip,
  [data-homeiq-action] {
    display: none !important;
  }

  body {
    color: #000;
    background: #fff;
  }

  main {
    max-width: none;
    padding: 0;
  }

  .section,
  .section-soft,
  .systems-section,
  .proof-section,
  .cta-panel,
  .coming-soon,
  .local-section,
  .tool-card,
  .card,
  .panel {
    padding: 12px 0;
    background: #fff !important;
    border: 0;
    box-shadow: none;
  }

  h1, h2, h3, p, li, span, strong {
    color: #000 !important;
  }

  .tool-output,
  .check-row,
  .task-row,
  .resource-card,
  .faq-item {
    break-inside: avoid;
    background: #fff;
  }
}
