/* ESA / funding page — structured, calm, submit-ready (scoped .page-esa) */

.page-esa {
  background: #f1f4fa;
  color: var(--ink);
}

.page-esa .esa-hero .btn--ghost,
.page-esa .esa-section .btn--ghost {
  background: rgba(12, 16, 40, 0.04);
  color: var(--ink);
  border: 1px solid rgba(12, 16, 40, 0.14);
}
.page-esa .esa-hero .btn--ghost:hover,
.page-esa .esa-section .btn--ghost:hover {
  border-color: rgba(12, 16, 40, 0.22);
}

.page-esa main > section {
  position: relative;
}

.esa-hero {
  padding: clamp(88px, 14vw, 120px) 20px 56px;
  overflow: hidden;
  border-bottom: 1px solid rgba(12, 16, 40, 0.06);
}
.esa-hero__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, #e8edf7 0%, #f4f6fb 42%, #eef1f8 100%);
  pointer-events: none;
}
.esa-hero__glow {
  position: absolute;
  width: min(480px, 90vw);
  height: min(320px, 50vh);
  right: -8%;
  top: 10%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(74, 86, 196, 0.08) 0%, transparent 70%);
  pointer-events: none;
}
.esa-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  gap: 36px;
  align-items: center;
}
@media (min-width: 900px) {
  .esa-hero__inner {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.75fr);
  }
}
.esa-hero__eyebrow {
  margin: 0 0 10px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(12, 16, 40, 0.45);
}
.esa-hero__h1 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4.2vw, 2.65rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 14px;
  color: var(--ink);
}
.esa-hero__sub {
  margin: 0 0 22px;
  font-size: clamp(1rem, 2vw, 1.12rem);
  font-weight: 600;
  color: rgba(12, 16, 40, 0.68);
  max-width: 44ch;
  line-height: 1.5;
}
.esa-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.esa-hero__device {
  display: flex;
  justify-content: center;
  align-items: center;
}
.esa-hero__device .phone {
  width: min(220px, 58vw);
  box-shadow: 0 28px 64px rgba(31, 35, 82, 0.14);
}
.esa-hero__device .phone__screen:not(.is-app-shot) {
  background-image: none !important;
  background: linear-gradient(165deg, #e2e8f0 0%, #cbd5e1 45%, #e0e7ff 100%);
}

.esa-section {
  padding: 48px 20px 52px;
}
.esa-section--alt {
  background: #fff;
}
.esa-section--muted {
  background: #f8fafc;
}
.esa-section__inner {
  max-width: 1040px;
  margin: 0 auto;
}
.esa-section__head {
  max-width: 52ch;
  margin-bottom: 28px;
}
.esa-section__head .h2 {
  margin-top: 6px;
}
.esa-section__head .lead {
  margin-bottom: 0;
}

.esa-qual-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .esa-qual-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .esa-qual-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
.esa-qual-card {
  padding: 20px 18px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(12, 16, 40, 0.08);
  box-shadow: 0 10px 32px rgba(31, 35, 82, 0.05);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.esa-qual-card:hover {
  border-color: rgba(74, 86, 196, 0.2);
  box-shadow: 0 14px 40px rgba(31, 35, 82, 0.08);
}
.esa-qual-card h3 {
  margin: 0 0 8px;
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--dawn-deep);
}
.esa-qual-card p {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(12, 16, 40, 0.62);
  line-height: 1.45;
}

.esa-steps {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 880px) {
  .esa-steps {
    grid-template-columns: repeat(4, 1fr);
  }
}
.esa-step {
  display: flex;
  gap: 14px;
  padding: 18px 16px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(12, 16, 40, 0.08);
}
.esa-step__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(74, 86, 196, 0.1);
  color: var(--dawn-deep);
}
.esa-step__icon svg {
  width: 22px;
  height: 22px;
}
.esa-step__num {
  margin: 0 0 4px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(12, 16, 40, 0.45);
}
.esa-step p {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.35;
}

.esa-checklist {
  margin: 0;
  padding: 0;
  list-style: none;
  max-width: 42ch;
}
.esa-checklist li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  color: rgba(12, 16, 40, 0.75);
  line-height: 1.45;
}
.esa-checklist li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  top: 0.05em;
  width: 1.25em;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--dawn-deep);
}

.esa-two-col {
  display: grid;
  gap: 32px;
  align-items: start;
}
@media (min-width: 860px) {
  .esa-two-col {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
  }
}

.esa-program-box {
  padding: 24px 22px;
  border-radius: 16px;
  background: linear-gradient(165deg, rgba(74, 86, 196, 0.06), rgba(52, 211, 153, 0.06));
  border: 1px solid rgba(12, 16, 40, 0.08);
}
.esa-program-box__title {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 800;
  margin: 0 0 12px;
  color: var(--ink);
}
.esa-program-box > p:first-of-type {
  margin: 0 0 16px;
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--ink);
  line-height: 1.45;
}
.esa-program-box .esa-checklist {
  max-width: none;
}

.esa-dash {
  border-radius: 18px;
  padding: 20px 18px;
  background: #fff;
  border: 1px solid rgba(12, 16, 40, 0.08);
  box-shadow: 0 18px 48px rgba(31, 35, 82, 0.07);
}
.esa-dash__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.esa-dash__title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
}
.esa-dash__badge {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(74, 86, 196, 0.1);
  color: var(--dawn-deep);
}
.esa-dash__rows {
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(12, 16, 40, 0.55);
}
.esa-dash__rows li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(12, 16, 40, 0.06);
}
.esa-dash__rows li:last-child {
  border-bottom: none;
}
.esa-dash__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.esa-dash__tag {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(12, 16, 40, 0.06);
  color: rgba(12, 16, 40, 0.72);
}

.esa-age-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}
@media (min-width: 800px) {
  .esa-age-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .esa-age-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
.esa-age-card {
  padding: 18px 16px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(12, 16, 40, 0.08);
}
.esa-age-card h3 {
  margin: 0 0 8px;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--dawn-deep);
}
.esa-age-card p {
  margin: 0;
  font-size: 0.86rem;
  font-weight: 600;
  color: rgba(12, 16, 40, 0.65);
  line-height: 1.45;
}

.esa-faq details {
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(12, 16, 40, 0.08);
  margin-bottom: 10px;
  padding: 4px 14px;
}
.esa-faq summary {
  font-weight: 800;
  cursor: pointer;
  padding: 12px 4px;
  list-style: none;
  color: var(--ink);
}
.esa-faq summary::-webkit-details-marker {
  display: none;
}
.esa-faq details[open] summary {
  color: var(--dawn-deep);
}
.esa-faq__a {
  padding: 0 4px 14px;
  font-size: 0.92rem;
  font-weight: 600;
  color: rgba(12, 16, 40, 0.68);
  line-height: 1.55;
}

.esa-final {
  padding: 64px 20px 72px;
  text-align: center;
  background: linear-gradient(165deg, #1e293b 0%, #1e1b4b 55%, #0f172a 100%);
  color: #e2e8f0;
}
.esa-final__inner {
  max-width: 520px;
  margin: 0 auto;
}
.esa-final h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.2vw, 2rem);
  font-weight: 800;
  margin: 0 0 12px;
  color: #fff;
}
.esa-final p {
  margin: 0 0 22px;
  font-weight: 600;
  color: rgba(226, 232, 240, 0.88);
  line-height: 1.5;
}
.esa-final__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.esa-final .btn--primary {
  background: #fff;
  color: var(--dawn-deep);
}
.esa-final .btn--ghost {
  border-color: rgba(255, 255, 255, 0.35);
  color: #e2e8f0;
}

.esa-seo-note {
  margin-top: 14px;
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(12, 16, 40, 0.55);
  line-height: 1.5;
  max-width: 62ch;
}
