:root {
  --ink: #1c2430;
  --muted: #68717c;
  --line: #dedbd1;
  --paper: #fffaf0;
  --white: #ffffff;
  --navy: #17245c;
  --blue: #2e48aa;
  --teal: #087d8d;
  --green: #2f7355;
  --clay: #b5683c;
  --gold: #d6aa43;
  --soft: #f4eee2;
  --shadow: 0 24px 70px rgba(26, 32, 43, 0.16);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  min-height: 86px;
  padding: 14px clamp(18px, 4vw, 52px);
  border-bottom: 1px solid rgba(28, 36, 48, 0.08);
  background: rgba(255, 250, 240, 0.94);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 240px;
}

.brand img {
  width: 238px;
  max-height: 48px;
  object-fit: contain;
  object-position: left center;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 3vw, 34px);
  color: #242d38;
  font-weight: 780;
}

.main-nav a {
  padding: 10px 0;
  border-bottom: 2px solid transparent;
}

.main-nav a:hover {
  color: var(--teal);
  border-color: var(--gold);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.phone-link {
  color: var(--navy);
  font-weight: 850;
  white-space: nowrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 19px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 860;
  line-height: 1.1;
  text-align: center;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  color: #fff;
  background: var(--green);
  box-shadow: 0 14px 28px rgba(47, 115, 85, 0.22);
}

.button-primary:hover {
  background: #245f46;
}

.button-secondary {
  color: #173d40;
  border-color: #b7d8d5;
  background: #e6f5f2;
}

.button-light {
  color: #142133;
  background: #fff;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: clamp(520px, 70vh, 630px);
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #fff;
  isolation: isolate;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.02);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(13, 20, 36, 0.92), rgba(13, 20, 36, 0.64) 44%, rgba(13, 20, 36, 0.08)),
    linear-gradient(180deg, rgba(13, 20, 36, 0.08), rgba(13, 20, 36, 0.72));
}

.hero::after {
  content: "";
  position: absolute;
  right: clamp(18px, 6vw, 90px);
  bottom: 0;
  width: 150px;
  height: 82%;
  background:
    linear-gradient(var(--gold), var(--gold)) 0 0 / 8px 100% no-repeat,
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.2) 0 1px, transparent 1px 28px);
  opacity: 0.55;
  z-index: -1;
}

.hero-content {
  position: relative;
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
  padding: 44px 0 18px;
}

.eyebrow,
.card-kicker,
.panel-label {
  margin: 0 0 12px;
  color: var(--clay);
  font-size: 0.78rem;
  font-weight: 920;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #f4dca3;
}

.hero h1 {
  max-width: 750px;
  margin: 0;
  font-size: clamp(2.65rem, 5.4vw, 4.2rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 660px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  width: min(780px, 100%);
  margin: 24px 0 0;
}

.hero-stats div {
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.13);
  backdrop-filter: blur(12px);
}

.hero-stats dt {
  font-size: clamp(1.35rem, 2.7vw, 2.05rem);
  font-weight: 950;
}

.hero-stats dd {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.78);
}

.quick-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
  position: relative;
  z-index: 4;
  overflow: hidden;
  border: 1px solid rgba(28, 36, 48, 0.08);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.quick-strip a {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  border-right: 1px solid var(--line);
  color: var(--navy);
  font-weight: 900;
  text-align: center;
}

.quick-strip a:hover {
  color: var(--green);
  background: #f5fbf7;
}

.section {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(72px, 9vw, 112px) 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 36px;
}

.section h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.03;
  letter-spacing: 0;
}

.section-heading p:not(.eyebrow),
.split-copy p:not(.eyebrow),
.group-section p,
.site-footer p {
  color: var(--muted);
  font-size: 1.05rem;
}

.program-finder {
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) minmax(0, 1.18fr);
  gap: 20px;
  margin: 34px 0;
}

.finder-panel,
.finder-result,
.program-card,
.process-list,
.trust-grid article,
.state-result,
.faq-list details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 10px 28px rgba(32, 46, 76, 0.06);
}

.finder-panel {
  padding: 22px;
}

.segmented {
  display: grid;
  gap: 8px;
}

.segmented button,
.state-tabs button {
  min-height: 42px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fffdf8;
  font-weight: 820;
  cursor: pointer;
}

.segmented button.is-active,
.state-tabs button.is-active {
  color: #fff;
  border-color: var(--green);
  background: var(--green);
}

.finder-result {
  display: grid;
  gap: 16px;
  padding: 24px;
  background: #f8f4ea;
}

.finder-result h3 {
  margin: 0;
  font-size: 1.65rem;
}

.finder-result p {
  margin: 0;
  color: var(--muted);
}

.finder-tags,
.city-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.finder-tags li,
.city-list a,
.state-badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 10px;
  border-radius: 8px;
  color: #174934;
  background: #e5f2e9;
  font-weight: 780;
}

.program-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.program-card {
  overflow: hidden;
}

.program-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.program-card div {
  padding: 22px;
}

.program-card h3,
.process-list h3,
.trust-grid h3 {
  margin: 0 0 10px;
  font-size: 1.25rem;
}

.program-card p:not(.card-kicker),
.process-list p,
.trust-grid p,
.faq-list p {
  margin: 0;
  color: var(--muted);
}

.program-card a {
  display: inline-flex;
  margin-top: 18px;
  color: var(--green);
  font-weight: 880;
}

.split-section {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 44px;
  align-items: center;
  width: 100%;
  max-width: none;
  padding-inline: max(18px, calc((100vw - var(--max)) / 2));
  background: #e8f1ee;
}

.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.process-list {
  display: grid;
  gap: 0;
  overflow: hidden;
}

.process-list div {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 14px 18px;
  padding: 24px;
  border-bottom: 1px solid var(--line);
}

.process-list div:last-child {
  border-bottom: 0;
}

.process-list span {
  grid-row: span 2;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 8px;
  color: #1d2634;
  background: var(--gold);
  font-weight: 950;
}

.locations-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 20px;
}

.state-tabs {
  display: grid;
  gap: 8px;
  align-content: start;
}

.state-result {
  min-height: 318px;
  padding: 28px;
}

.state-result header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 22px;
}

.state-result h3 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.45rem);
}

.city-list a {
  color: #173d73;
  background: #edf3ff;
}

.trust-section {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 28px;
  align-items: start;
  width: 100%;
  max-width: none;
  padding-inline: max(18px, calc((100vw - var(--max)) / 2));
  background: #19212b;
  color: #fff;
}

.trust-section .eyebrow {
  color: #f4dca3;
}

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

.trust-grid article {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
  padding: 22px;
}

.trust-grid p {
  color: rgba(255, 255, 255, 0.76);
}

.group-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.group-section div {
  max-width: 720px;
}

.faq-section {
  padding-top: 20px;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-list details {
  padding: 20px 22px;
}

.faq-list summary {
  cursor: pointer;
  color: var(--navy);
  font-weight: 920;
}

.faq-list p {
  padding-top: 12px;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: start;
  padding: 46px clamp(18px, 4vw, 52px);
  border-top: 1px solid var(--line);
  background: #f4eee2;
}

.footer-brand {
  margin-bottom: 12px;
}

.footer-links {
  display: grid;
  gap: 10px;
  min-width: 190px;
  color: var(--navy);
  font-weight: 850;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .brand {
    min-width: 0;
  }

  .nav-toggle {
    display: block;
  }

  .main-nav,
  .header-actions {
    grid-column: 1 / -1;
    display: none;
    width: 100%;
  }

  .site-header.is-open .main-nav,
  .site-header.is-open .header-actions {
    display: grid;
    justify-content: stretch;
  }

  .main-nav {
    gap: 0;
  }

  .main-nav a {
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
  }

  .header-actions {
    grid-template-columns: 1fr;
    padding-top: 8px;
  }

  .quick-strip,
  .program-grid,
  .trust-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .program-finder,
  .split-section,
  .locations-layout,
  .trust-section {
    grid-template-columns: 1fr;
  }

  .trust-copy {
    max-width: 760px;
  }
}

@media (max-width: 640px) {
  .site-header {
    min-height: 76px;
  }

  .brand img {
    width: 224px;
    max-height: 42px;
  }

  .hero {
    min-height: 620px;
  }

  .hero-media img {
    object-position: 62% center;
  }

  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(13, 20, 36, 0.34), rgba(13, 20, 36, 0.9)),
      linear-gradient(90deg, rgba(13, 20, 36, 0.82), rgba(13, 20, 36, 0.25));
  }

  .hero::after {
    display: none;
  }

  .hero h1 {
    font-size: clamp(2.45rem, 12vw, 3.3rem);
  }

  .hero-content {
    padding-bottom: 28px;
  }

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

  .hero-stats div {
    padding: 10px;
  }

  .hero-stats dt {
    font-size: 1.05rem;
  }

  .hero-stats dd {
    font-size: 0.78rem;
    line-height: 1.25;
  }

  .quick-strip,
  .program-grid,
  .trust-grid,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .quick-strip {
    margin-top: 0;
  }

  .quick-strip a {
    min-height: 64px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .process-list div {
    grid-template-columns: 1fr;
  }

  .process-list span {
    grid-row: auto;
  }

  .group-section {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }
}

.motion-hero {
  min-height: clamp(650px, 86vh, 780px);
  color: var(--ink);
  background:
    linear-gradient(115deg, #fffaf0 0 48%, rgba(232, 241, 238, 0.92) 48% 100%),
    linear-gradient(180deg, rgba(214, 170, 67, 0.14), rgba(214, 170, 67, 0));
}

.motion-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(23, 36, 92, 0.05) 1px, transparent 1px),
    linear-gradient(180deg, rgba(23, 36, 92, 0.05) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
}

.motion-hero .hero-content {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  padding: 64px 0 54px;
}

.hero-copy-block {
  position: relative;
  z-index: 2;
}

.motion-hero .hero-kicker {
  color: var(--clay);
}

.slide-index {
  display: flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  margin-bottom: 18px;
  color: var(--navy);
  font-weight: 920;
}

.slide-index i {
  display: block;
  width: 64px;
  height: 2px;
  background: var(--gold);
}

.motion-hero h1 {
  max-width: 640px;
  color: var(--ink);
  font-size: clamp(3rem, 6.2vw, 5.7rem);
  text-wrap: balance;
  animation: heroReveal 780ms cubic-bezier(0.2, 0.9, 0.2, 1) both;
}

.motion-hero .hero-copy {
  max-width: 590px;
  color: #44505d;
}

.motion-hero .button-light {
  border-color: var(--line);
  background: #fff;
}

.hero-controls {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}

.hero-controls button {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--navy);
  background: #fff;
  box-shadow: 0 14px 28px rgba(26, 32, 43, 0.08);
  cursor: pointer;
  font-size: 1.9rem;
  line-height: 1;
}

.hero-controls button:hover {
  color: #fff;
  background: var(--navy);
}

.hero-stage {
  position: relative;
  min-height: 520px;
  perspective: 1200px;
}

.stage-frame {
  position: absolute;
  inset: 20px 36px 52px 0;
  overflow: hidden;
  border: 12px solid #fff;
  border-radius: 8px;
  background: #101722;
  box-shadow: var(--shadow);
  transform: rotate(-2deg);
  animation: stageIn 920ms cubic-bezier(0.2, 0.9, 0.2, 1) both;
}

.stage-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.92;
}

.stage-frame.is-paused::before,
.phone-preview.is-paused::before {
  content: "Play";
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: grid;
  min-width: 52px;
  min-height: 34px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: rgba(23, 36, 92, 0.74);
  font-size: 0.75rem;
  font-weight: 920;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.stage-caption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: #fff;
  background: rgba(13, 20, 36, 0.66);
  backdrop-filter: blur(12px);
}

.stage-caption span {
  color: #f4dca3;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stage-caption strong {
  font-size: 1.05rem;
}

.phone-preview {
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(210px, 36%);
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border: 10px solid #17245c;
  border-radius: 18px;
  background: #111827;
  box-shadow: 0 24px 54px rgba(23, 36, 92, 0.3);
  animation: floatPanel 5.5s ease-in-out infinite;
}

.phone-preview video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.floating-note {
  position: absolute;
  top: 0;
  right: 78px;
  max-width: 210px;
  padding: 16px 18px;
  border: 1px solid rgba(28, 36, 48, 0.1);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(26, 32, 43, 0.14);
  animation: floatPanel 6.4s ease-in-out -1.2s infinite;
}

.floating-note span {
  display: block;
  color: var(--clay);
  font-size: 0.76rem;
  font-weight: 920;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.floating-note strong {
  display: block;
  margin-top: 3px;
  color: var(--navy);
  font-size: 1.1rem;
}

.hero-copy-block.is-changing h1,
.hero-copy-block.is-changing .hero-copy,
.hero-copy-block.is-changing .hero-kicker {
  animation: heroReveal 520ms cubic-bezier(0.2, 0.9, 0.2, 1) both;
}

.quick-strip {
  margin-top: -28px;
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 680ms ease, transform 680ms cubic-bezier(0.2, 0.9, 0.2, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes heroReveal {
  from {
    opacity: 0;
    clip-path: inset(0 0 100% 0);
    transform: translateY(22px);
  }

  to {
    opacity: 1;
    clip-path: inset(0 0 0 0);
    transform: translateY(0);
  }
}

@keyframes stageIn {
  from {
    opacity: 0;
    transform: translateX(48px) rotate(2deg) scale(0.94);
  }

  to {
    opacity: 1;
    transform: rotate(-2deg) scale(1);
  }
}

@keyframes floatPanel {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-14px);
  }
}

@media (max-width: 980px) {
  .motion-hero .hero-content {
    grid-template-columns: 1fr;
    padding-top: 44px;
  }

  .hero-stage {
    min-height: 430px;
  }

  .stage-frame {
    inset: 0 74px 34px 0;
  }

  .floating-note {
    top: 14px;
    right: 0;
  }
}

@media (max-width: 640px) {
  .motion-hero {
    min-height: auto;
  }

  .motion-hero .hero-content {
    gap: 28px;
    padding: 36px 0 38px;
  }

  .motion-hero h1 {
    font-size: clamp(2.55rem, 12vw, 3.45rem);
  }

  .hero-controls {
    display: none;
  }

  .hero-stage {
    min-height: 360px;
  }

  .stage-frame {
    inset: 0 42px 28px 0;
    border-width: 8px;
  }

  .phone-preview {
    width: 132px;
    border-width: 7px;
    border-radius: 14px;
  }

  .floating-note {
    display: none;
  }

  .quick-strip {
    margin-top: 0;
  }
}

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