@import url("https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600;700;800;900&family=Oswald:wght@500;600;700&display=swap");

:root {
  --background: #ffffff;
  --foreground: #1f2937;
  --card: #ffffff;
  --secondary: #f4f6f9;
  --muted: #6b7280;
  --border: #e2e8f0;
  --navy: #273d68;
  --navy-dark: #1c2d50;
  --tx-red: #a93426;
  --tx-blue: #2c4d82;
  --yellow: #f6c23e;
  --font-sans: "Geist", Arial, sans-serif;
  --font-heading: "Oswald", Impact, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
}

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

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

button,
select {
  font: inherit;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.main {
  flex: 1;
}

.container {
  width: min(100% - 32px, 1280px);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--navy-dark);
  color: white;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-size: clamp(1.05rem, 1vw + 0.8rem, 1.25rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.icon {
  width: 1.35rem;
  height: 1.35rem;
  flex: 0 0 auto;
}

.icon-lg {
  width: 1.75rem;
  height: 1.75rem;
}

.info-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.info-hero__media,
.subsidy-hero__media {
  position: absolute;
  inset: 0;
}

.info-hero__media img,
.subsidy-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.info-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(28, 45, 80, 0.9), rgba(28, 45, 80, 0.55), rgba(28, 45, 80, 0.25));
}

.info-hero__content {
  position: relative;
  width: min(100% - 32px, 768px);
  margin: 0 auto;
  padding: clamp(80px, 11vw, 144px) 0;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  border-radius: 999px;
  background: var(--tx-red);
  color: white;
  padding: 4px 16px;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.h1,
.h2,
.h3 {
  margin: 0;
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0;
  line-height: 1.05;
}

.h1 {
  margin-top: 20px;
  color: white;
  font-size: clamp(2.5rem, 8vw, 4.75rem);
  font-weight: 700;
}

.h2 {
  color: var(--navy);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
}

.h3 {
  color: var(--navy);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.025em;
}

.lead {
  max-width: 42rem;
  margin: 20px auto 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  line-height: 1.7;
}

.section {
  padding: clamp(56px, 7vw, 96px) 0;
}

.section--secondary,
.site-footer {
  background: var(--secondary);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  text-align: center;
}

.stat__value {
  margin: 0;
  color: var(--tx-red);
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
}

.stat__label {
  margin: 8px auto 0;
  color: var(--muted);
  line-height: 1.55;
}

.section-intro {
  max-width: 42rem;
  margin: 0 auto;
  text-align: center;
}

.section-intro p,
.copy p {
  color: var(--muted);
  font-size: clamp(1rem, 1.2vw, 1.125rem);
  line-height: 1.75;
}

.cards-grid {
  display: grid;
  gap: 24px;
  margin-top: 48px;
}

.card {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
  padding: 24px;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
}

.icon-badge {
  display: inline-flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: white;
}

.bg-navy {
  background: var(--navy);
}

.bg-blue {
  background: var(--tx-blue);
}

.bg-red {
  background: var(--tx-red);
}

.card p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.split {
  display: grid;
  gap: 40px;
  align-items: center;
}

.image-frame {
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.15);
}

.site-footer__inner {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 32px 0;
}

.footer-mark {
  display: inline-flex;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: var(--navy);
  color: white;
}

.site-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.6;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.site-footer strong {
  color: var(--navy);
}

.subsidy-hero {
  position: relative;
  overflow: hidden;
}

.subsidy-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(255,255,255,0.1), rgba(255,255,255,0.68), white);
}

.hero-mobile-bg {
  display: block;
  object-position: top;
}

.hero-desktop-bg {
  display: none;
  object-position: left center;
}

.subsidy-hero__content {
  position: relative;
  width: min(100% - 32px, 1280px);
  margin: 0 auto;
  padding: clamp(48px, 7vw, 112px) 0;
}

.subsidy-copy {
  max-width: 48rem;
  margin: 0 auto;
  text-align: center;
}

.subsidy-title {
  margin: 0;
  color: var(--navy);
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 7vw, 4rem);
  font-weight: 700;
  line-height: 1.05;
  text-transform: uppercase;
}

.subsidy-title .amount {
  display: block;
  color: var(--tx-red);
  font-size: clamp(4rem, 12vw, 8rem);
}

.subsidy-copy p {
  max-width: 38rem;
  margin: 20px auto 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.2vw, 1.125rem);
  line-height: 1.7;
  letter-spacing: 0.015em;
}

.button-row {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}

.btn {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  padding: 14px 28px;
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.035em;
  transition: background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

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

.btn-red {
  background: var(--tx-red);
  color: white;
}

.btn-red:hover {
  background: #922c21;
}

.btn-blue {
  background: var(--tx-blue);
  color: white;
}

.btn-outline {
  border: 2px solid var(--navy);
  background: white;
  color: var(--navy);
}

.features-section {
  padding: 0 0 24px;
}

.feature-grid {
  display: grid;
  gap: 16px;
}

.feature-card {
  display: flex;
  min-height: 90px;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: white;
  padding: 20px;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
}

.feature-card .h3 {
  flex: 1;
}

.how-section {
  padding: 24px 0 48px;
}

.how-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: white;
  padding: clamp(24px, 4vw, 40px);
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
}

.how-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
}

.rule {
  display: none;
  width: 64px;
  height: 2px;
  background: var(--tx-red);
}

.steps-grid {
  display: grid;
  gap: 24px;
  margin-top: 32px;
}

.step-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.step-number {
  display: inline-flex;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: white;
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(28, 45, 80, 0.62);
  padding: 16px;
}

.modal-backdrop.is-open {
  display: flex;
}

.modal-card {
  width: min(100%, 448px);
  border-radius: 16px;
  background: white;
  padding: clamp(24px, 5vw, 32px);
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.35);
}

.modal-kicker {
  margin: 0;
  color: var(--tx-red);
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.modal-title {
  margin: 6px 0 0;
  color: var(--navy);
  font-family: var(--font-heading);
  font-size: clamp(1.55rem, 5vw, 2rem);
  font-weight: 700;
  line-height: 1.1;
  text-transform: uppercase;
}

.modal-options {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.answer-btn {
  width: 100%;
  justify-content: flex-start;
  text-align: left;
}

.recommended {
  position: relative;
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: flex-start;
  border: 0;
  border-radius: 8px;
  background: var(--tx-red);
  color: white;
  cursor: pointer;
  padding: 18px 20px;
  text-align: left;
  box-shadow: 0 0 0 2px var(--tx-red), 0 0 0 4px white;
}

.recommended strong {
  font-family: var(--font-heading);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.recommended small {
  margin-top: 4px;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
}

.recommended span {
  position: absolute;
  right: 12px;
  top: 12px;
  border-radius: 999px;
  background: white;
  color: var(--tx-red);
  padding: 3px 8px;
  font-family: var(--font-heading);
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
}

.call-card {
  text-align: center;
}

.call-card img {
  width: min(100%, 320px);
  margin: 0 auto;
}

.call-card p {
  color: var(--muted);
  line-height: 1.65;
}

.full-btn {
  width: 100%;
  min-height: 64px;
  margin-top: 24px;
  font-size: 1.125rem;
}

.flow-body {
  min-height: 100vh;
  background: #e9edf2;
}

.mobile-flow {
  width: min(100%, 500px);
  min-height: 100vh;
  margin: 0 auto;
}

.flow-start {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  background: #f2f1ec url("assets/patriot-bg-mobile.png") top center / cover no-repeat;
}

.flow-start__cta {
  margin-top: auto;
  padding: 125% 24px 34%;
}

.flow-start p {
  margin: 0;
  color: #002b5c;
  font-size: 1.125rem;
  font-weight: 700;
}

.start-button {
  display: flex;
  width: 100%;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  border: 1px solid #b22234;
  border-radius: 8px;
  background: #002b5c;
  color: white;
  cursor: pointer;
  margin-top: 12px;
  padding: 18px 24px;
  font-size: 1.25rem;
  font-weight: 800;
  text-align: left;
}

.flow-app {
  display: none;
  min-height: 100vh;
  background: white;
}

.flow-app.is-open {
  display: block;
}

.flow-header {
  background: #003366;
  padding: 20px;
  text-align: center;
}

.flow-header h1 {
  margin: 0;
  color: white;
  font-size: clamp(1.25rem, 5vw, 1.5rem);
}

.flow-content {
  padding: 24px 20px;
}

.flow-step {
  border-bottom: 1px solid #e2e6ec;
  padding: 24px 0;
  transition: opacity 200ms ease;
}

.flow-step:first-child {
  padding-top: 0;
}

.flow-step.is-disabled {
  pointer-events: none;
  opacity: 0.5;
}

.flow-step h2,
.flow-step h3 {
  margin: 0;
  color: #000;
}

.flow-step h2 {
  font-size: 1.25rem;
}

.flow-step h3 {
  margin-top: 12px;
  font-size: 1.125rem;
}

.flow-step p {
  color: #444;
  font-size: 1rem;
  line-height: 1.6;
}

.step-heading {
  display: flex;
  align-items: center;
  gap: 8px;
}

.green-check {
  display: inline-flex;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #43a047;
  color: white;
}

.green-check .icon {
  width: 18px;
  height: 18px;
}

.select-wrap {
  position: relative;
}

.flow-select {
  width: 100%;
  appearance: none;
  border: 1px solid #c9ced6;
  border-radius: 6px;
  background: white;
  color: #000;
  padding: 14px 42px 14px 16px;
  font-size: 1rem;
  outline: 0;
}

.select-wrap::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-bottom: 2px solid #003366;
  border-right: 2px solid #003366;
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

.processing-box {
  border: 1px solid #d4d9e0;
  background: #f7f9fb;
  padding: 20px;
}

.spinner {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  border: 2px solid #003366;
  border-top-color: transparent;
  border-radius: 999px;
  animation: spin 800ms linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.processing-current {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}

.processing-current p {
  margin: 0;
  color: #003366;
  font-weight: 700;
}

.processing-list {
  display: grid;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.processing-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #444;
  font-size: 0.9rem;
  font-weight: 600;
}

.approved-box {
  background: var(--yellow);
  color: #000;
  padding: 28px 22px 24px;
}

.approved-box h2 {
  font-size: 1.35rem;
  font-weight: 900;
}

.approved-box h3 {
  margin: 20px 0 20px;
  font-size: clamp(2.7rem, 10vw, 3.8rem);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1;
}

.approved-box .approved-intro {
  margin: 0 0 12px;
  color: #444;
  font-size: 1.15rem;
  font-weight: 900;
  line-height: 1.35;
}

.approved-list {
  display: grid;
  gap: 12px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.approved-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #000;
  font-size: 1.12rem;
  font-weight: 900;
  line-height: 1.25;
}

.approved-list .green-check {
  width: 30px;
  height: 30px;
}

.approved-list .green-check .icon {
  width: 20px;
  height: 20px;
}

.approved-box .amount-line {
  margin: 6px 0 18px;
  color: #000;
  font-size: clamp(3.8rem, 15vw, 5rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
}

.approved-box .benefit-label {
  margin: 0;
  color: #444;
  font-size: 1.15rem;
  font-weight: 900;
  line-height: 1.25;
}

.approved-box .approved-note {
  margin: 0;
  color: #000;
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1.35;
}

.verify-button,
.status-button {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  background: #003366;
  color: white;
  cursor: pointer;
  margin-top: 20px;
  padding: 16px 20px;
  font-size: 1.1rem;
  font-weight: 800;
}

.status-button {
  justify-content: space-between;
  background: var(--yellow);
  color: #000;
  margin-top: 24px;
  text-align: left;
}

.card-image {
  overflow: hidden;
  border-radius: 12px;
  margin-top: 20px;
}

.approval-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.62);
  padding: 24px;
}

.approval-backdrop.is-open {
  display: flex;
}

.approval-card {
  position: relative;
  width: min(100%, 400px);
  border-radius: 10px;
  background: white;
  padding: 24px;
  text-align: center;
}

.close-button {
  position: absolute;
  right: 12px;
  top: 10px;
  border: 0;
  background: transparent;
  color: #444;
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
}

.approval-card h3 {
  margin: 0;
  color: #003366;
  font-size: 1.125rem;
}

.approval-card p {
  color: #444;
  line-height: 1.6;
}

.hidden {
  display: none !important;
}

@media (min-width: 640px) {
  .rule {
    display: block;
  }
}

@media (min-width: 768px) {
  .container {
    width: min(100% - 48px, 1280px);
  }

  .site-header__inner {
    padding: 16px 0;
  }

  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .split {
    grid-template-columns: repeat(2, 1fr);
  }

  .order-first {
    order: -1;
  }

  .hero-mobile-bg {
    display: none;
  }

  .hero-desktop-bg {
    display: block;
  }

  .subsidy-hero__media::after {
    background: linear-gradient(to right, rgba(255,255,255,0), rgba(255,255,255,0.42), white);
  }

  .feature-grid,
  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .steps-grid {
    gap: 0;
  }

  .step-item {
    padding: 0 24px;
  }

  .step-item:not(:last-child) {
    border-right: 1px solid var(--border);
  }
}

@media (min-width: 1024px) {
  .cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
