/* =========================================================
   Elevator School — Elevator Ambassador Landing Page
   Brand colors: #002368 (blue) · #FFD700 (gold) · #ffffff (white)
   ========================================================= */

:root {
  --blue: #002368;
  --blue-dark: #001a4d;
  --gold: #FFD700;
  --white: #ffffff;

  --ink: #16243d;          /* primary text */
  --muted: #5b6b7f;        /* secondary text */
  --bg-soft: #f3f6fb;      /* light section background */
  --line: #e2e8f2;         /* borders */

  --radius: 16px;
  --maxw: 1140px;
  --shadow: 0 18px 44px rgba(0, 35, 104, 0.12);
  --shadow-sm: 0 8px 22px rgba(0, 35, 104, 0.08);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --display: "Sora", var(--font);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--white);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 { font-family: var(--display); line-height: 1.15; letter-spacing: -0.02em; color: var(--blue); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin-bottom: 16px; }
h3 { font-size: 1.25rem; }
a { color: inherit; text-decoration: none; transition: color 0.2s ease; }
img { max-width: 100%; }

.accent { color: var(--gold); }
.center { text-align: center; }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 14px;
}
.eyebrow.center { display: block; text-align: center; }

.lead { font-size: 1.12rem; color: var(--ink); margin-bottom: 14px; }
p { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.96rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.btn--primary {
  background: var(--gold);
  color: var(--blue);
  box-shadow: 0 10px 24px rgba(255, 215, 0, 0.35);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(255, 215, 0, 0.5); }
.btn--ghost { border-color: var(--blue); color: var(--blue); background: transparent; }
.btn--ghost:hover { background: var(--blue); color: var(--white); }
.btn--gold-solid { background: var(--gold); color: var(--blue); }
.btn--gold-solid:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(0, 0, 0, 0.2); }
.btn--lg { padding: 16px 34px; font-size: 1.05rem; }
.btn--full { width: 100%; }

/* ---------- Announcement bar ---------- */
.announce {
  background: var(--blue);
  color: var(--white);
  text-align: center;
  font-size: 0.9rem;
  padding: 9px 16px;
  font-weight: 500;
}
.announce p { color: var(--white); }
.announce strong { color: var(--gold); }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav__links { display: flex; gap: 28px; }
.nav__links a { color: var(--muted); font-weight: 500; font-size: 0.95rem; }
.nav__links a:hover { color: var(--blue); }
.nav__cta { padding: 10px 22px; }

.brand { display: flex; align-items: center; gap: 10px; }
.brand__mark {
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--blue);
  color: var(--gold);
  font-size: 0.95rem;
  flex: none;
}
.brand__logo { height: 42px; width: auto; display: block; flex: none; }
.brand__logo--footer {
  height: 56px;
  background: var(--white);
  padding: 8px 12px;
  border-radius: 12px;
}
.brand__text { font-family: var(--display); font-weight: 700; font-size: 1.02rem; line-height: 1.1; color: var(--blue); }
.brand__text small { display: block; font-size: 0.66rem; font-weight: 500; color: var(--muted); letter-spacing: 0.05em; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-bottom: 80px;
  background:
    radial-gradient(900px 520px at 82% -10%, rgba(255, 215, 0, 0.18), transparent 60%),
    radial-gradient(760px 520px at -5% 10%, rgba(0, 35, 104, 0.10), transparent 60%),
    var(--white);
  border-bottom: 1px solid var(--line);
}
.hero__inner { padding: 92px 24px 100px; max-width: 860px; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); margin: 6px 0 14px; color: var(--blue); }
.hero__tagline {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.1rem, 2.4vw, 1.5rem);
  color: var(--gold);
  -webkit-text-stroke: 0.6px var(--blue);
  letter-spacing: 0.02em;
  margin-bottom: 26px;
}
.hero__sub { font-size: 1.3rem; font-weight: 600; color: var(--blue); max-width: 620px; margin-bottom: 14px; }
.hero__desc { font-size: 1.08rem; color: var(--muted); max-width: 620px; margin-bottom: 34px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Hero stats strip ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 64px;
  padding: 28px;
  background: var(--blue);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.stat { text-align: center; padding: 4px 8px; position: relative; }
.stat + .stat::before {
  content: "";
  position: absolute; left: 0; top: 50%;
  transform: translateY(-50%);
  height: 60%; width: 1px;
  background: rgba(255, 255, 255, 0.18);
}
.stat strong {
  font-family: var(--display);
  display: block;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  color: var(--gold);
  line-height: 1.1;
}
.stat span { font-size: 0.82rem; color: rgba(255, 255, 255, 0.82); }

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section--alt { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section__sub {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
  font-size: 1.08rem;
  color: var(--muted);
}

/* ---------- Benefits cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 48px;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--gold); box-shadow: var(--shadow); }
.card__emoji {
  display: grid; place-items: center;
  width: 54px; height: 54px;
  border-radius: 14px;
  background: rgba(0, 35, 104, 0.08);
  font-size: 1.6rem;
  margin-bottom: 18px;
}
.card h3 { margin-bottom: 8px; }
.card--cta { background: var(--blue); border-color: var(--blue); }
.card--cta h3, .card--cta p { color: var(--white); }
.card--cta p { opacity: 0.85; }
.card--cta .card__emoji { background: rgba(255, 255, 255, 0.12); }
.card__link { display: inline-block; margin-top: 14px; color: var(--gold); font-weight: 700; }
.card__link:hover { text-decoration: underline; }

/* ---------- Criteria ---------- */
.criteria {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.criteria__item {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
}
.criteria__num {
  font-family: var(--display);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--gold);
  -webkit-text-stroke: 1.2px var(--blue);
  display: block;
  margin-bottom: 12px;
}
.criteria__item h3 { margin-bottom: 8px; }
.criteria__note {
  margin-top: 38px;
  margin-bottom: 28px;
  font-size: 1.2rem;
  font-weight: 700;
  font-family: var(--display);
  color: var(--blue);
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Bonus stack ---------- */
.bonus {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-top: 48px;
}
.bonus__item {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 26px 28px;
  box-shadow: var(--shadow-sm);
}
.bonus__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
}
.bonus__head h3 { font-size: 1.12rem; }
.bonus__value {
  flex: none;
  background: rgba(0, 35, 104, 0.08);
  color: var(--blue);
  font-weight: 800;
  font-size: 0.82rem;
  padding: 5px 12px;
  border-radius: 999px;
  white-space: nowrap;
}

/* ---------- Scarcity banner ---------- */
.scarcity {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 44px;
  padding: 30px 34px;
  border-radius: var(--radius);
  background:
    radial-gradient(500px 240px at 85% 0%, rgba(255, 215, 0, 0.22), transparent 60%),
    var(--blue);
  box-shadow: var(--shadow);
}
.scarcity__text {
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  margin: 0;
}
.scarcity__text strong { color: var(--gold); }

/* ---------- Hero urgency pill ---------- */
.hero__pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 215, 0, 0.16);
  border: 1px solid var(--gold);
  color: var(--blue);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 8px 16px;
  border-radius: 999px;
  margin-bottom: 22px;
  transition: transform 0.15s ease, background 0.2s ease;
}
.hero__pill:hover { transform: translateY(-2px); background: rgba(255, 215, 0, 0.28); }

/* ---------- Structured bonus stack ---------- */
.bonus-groups {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-top: 48px;
}
.bonus-group {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.bonus-group--limited { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(255, 215, 0, 0.35), var(--shadow-sm); }
.bonus-group__head { margin-bottom: 18px; }
.bonus-group__tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  background: rgba(0, 35, 104, 0.08);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.bonus-group__tag--hot { color: var(--blue); background: var(--gold); }
.bonus-group__head h3 { font-size: 1.3rem; }
.bonus-list { list-style: none; display: grid; gap: 12px; }
.bonus-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--line);
  color: var(--ink);
  font-weight: 500;
}
.bonus-list li:last-child { border-bottom: none; padding-bottom: 0; }
.bonus-list li::before { content: "✓"; color: var(--gold); -webkit-text-stroke: 1px var(--blue); font-weight: 800; order: -1; flex: none; }
.bonus-list li span { flex: 1; }
.bonus-list b { flex: none; color: var(--blue); font-weight: 800; font-size: 0.9rem; }
.bonus-group__note { margin-top: 16px; font-size: 0.9rem; font-weight: 600; color: var(--blue); }

/* ---------- Guarantees ---------- */
.guarantees {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.guarantee {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  text-align: center;
}
.guarantee__icon {
  display: grid; place-items: center;
  width: 64px; height: 64px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: rgba(0, 35, 104, 0.07);
  font-size: 1.9rem;
}
.guarantee h3 { margin-bottom: 8px; }

/* ---------- Urgency + scarcity grid ---------- */
.urgency-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 48px;
}
.urgency-card {
  background: var(--blue);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  box-shadow: var(--shadow);
}
.urgency-card__icon { font-size: 2rem; display: block; margin-bottom: 14px; }
.urgency-card h3 { color: var(--gold); font-size: 1.1rem; margin-bottom: 8px; }
.urgency-card p { color: rgba(255, 255, 255, 0.85); font-size: 0.92rem; }

/* ---------- Process steps ---------- */
.process {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  margin-top: 48px;
}
.process__step {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  position: relative;
}
.process__num {
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--gold);
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.3rem;
}
.process__step h3 { font-size: 1rem; color: var(--blue); }

/* ---------- CTA bands ---------- */
.cta-band {
  background: var(--blue);
  color: var(--white);
  padding: 64px 0;
}
.cta-band--final {
  background:
    radial-gradient(600px 300px at 80% 0%, rgba(255, 215, 0, 0.22), transparent 60%),
    var(--blue);
}
.cta-band__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-band__inner--center { flex-direction: column; text-align: center; }
.cta-band h2 { color: var(--white); margin-bottom: 8px; }
.cta-band p { color: rgba(255, 255, 255, 0.85); max-width: 520px; margin: 0; }

/* ---------- Registration form ---------- */
.apply__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.apply__form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: var(--shadow);
}
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 7px; color: var(--ink); }
.field input,
.field textarea {
  width: 100%;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--ink);
  font-family: inherit;
  font-size: 0.95rem;
  resize: vertical;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field input:focus,
.field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0, 35, 104, 0.12); }
.field input::placeholder,
.field textarea::placeholder { color: #9aa6bd; }
.form__msg {
  margin-top: 16px;
  text-align: center;
  color: var(--blue);
  font-weight: 700;
  background: rgba(255, 215, 0, 0.18);
  border-radius: 10px;
  padding: 12px;
}

/* ---------- Testimonials ---------- */
.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.testimonial {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow-sm);
  position: relative;
}
.testimonial::before {
  content: "“";
  font-family: Georgia, serif;
  font-size: 4rem;
  line-height: 1;
  color: var(--gold);
  position: absolute;
  top: 12px; right: 22px;
  opacity: 0.55;
}
.testimonial blockquote { color: var(--ink); font-size: 1.02rem; margin-bottom: 20px; }
.testimonial figcaption { display: flex; align-items: center; gap: 12px; }
.testimonial__avatar {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--gold);
  font-family: var(--display);
  font-weight: 800;
  flex: none;
}
.testimonial figcaption strong { display: block; color: var(--blue); font-size: 0.95rem; }
.testimonial figcaption small { color: var(--muted); font-size: 0.82rem; }
.placeholder-note { margin-top: 28px; color: var(--muted); font-style: italic; }

/* ---------- Badge generator ---------- */
.badge__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.badge__form { margin-top: 26px; }
.badge__preview { display: grid; place-items: start; margin-top: 32px; }

.badge-card {
  width: 100%;
  max-width: 360px;
  background:
    radial-gradient(400px 220px at 80% 0%, rgba(255, 215, 0, 0.22), transparent 60%),
    var(--blue);
  color: var(--white);
  border-radius: 22px;
  padding: 32px 30px 26px;
  box-shadow: 0 26px 60px rgba(0, 35, 104, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.12);
  position: relative;
  overflow: hidden;
}
.badge-card__top { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; }
.badge-card__top .brand__mark { background: var(--gold); color: var(--blue); }
.badge-card__brand { font-family: var(--display); font-weight: 700; color: var(--white); }
.badge-card__seal {
  position: absolute;
  top: 26px; right: -34px;
  transform: rotate(45deg);
  background: var(--gold);
  color: var(--blue);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  padding: 5px 44px;
}
.badge-card__title {
  color: var(--gold);
  font-size: 1.5rem;
  margin-bottom: 18px;
}
.badge-card__name {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--white);
  margin-bottom: 4px;
  word-break: break-word;
}
.badge-card__email { color: rgba(255, 255, 255, 0.8); font-size: 0.92rem; margin-bottom: 22px; word-break: break-word; }
.badge-card__foot {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding-top: 14px;
  font-size: 0.82rem;
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.04em;
}
.badge-card.is-generated { animation: badgePop 0.5s ease; }
@keyframes badgePop {
  0% { transform: scale(0.94); }
  55% { transform: scale(1.04); }
  100% { transform: scale(1); }
}

/* ---------- FAQ ---------- */
.faq { max-width: 800px; }
.faq details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 22px;
  margin-top: 14px;
  box-shadow: var(--shadow-sm);
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-family: var(--display);
  color: var(--blue);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); -webkit-text-stroke: 1.4px var(--blue); font-size: 1.4rem; font-weight: 800; flex: none; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 12px; }

/* ---------- Footer ---------- */
.footer { background: var(--blue); color: var(--white); padding-top: 56px; }
.footer__inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 36px;
  padding-bottom: 40px;
}
.footer__brand p { margin-top: 14px; max-width: 280px; color: rgba(255, 255, 255, 0.75); }
.footer__col h4 { font-size: 0.95rem; margin-bottom: 14px; color: var(--gold); }
.footer__col a { display: block; color: rgba(255, 255, 255, 0.8); margin-bottom: 9px; font-size: 0.92rem; }
.footer__col a:hover { color: var(--gold); }
.footer__location { color: rgba(255, 255, 255, 0.75); font-size: 0.92rem; margin-top: 4px; }
.footer .brand__mark { background: var(--gold); color: var(--blue); }
.footer .brand__text,
.footer .brand__text small { color: var(--white); }
.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding: 22px 24px;
  text-align: center;
}
.footer__bottom p { font-size: 0.85rem; color: rgba(255, 255, 255, 0.7); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav__links { display: none; }
  .apply__inner,
  .badge__inner { grid-template-columns: 1fr; gap: 36px; }
  .cards,
  .criteria,
  .bonus,
  .bonus-groups,
  .guarantees,
  .urgency-grid,
  .testimonials { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 22px; }
  .stat + .stat::before { display: none; }
  .process { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .cards,
  .criteria,
  .bonus,
  .bonus-groups,
  .guarantees,
  .urgency-grid,
  .testimonials,
  .stats,
  .process,
  .footer__inner { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  .hero__inner { padding: 60px 24px 68px; }
  .scarcity { flex-direction: column; text-align: center; align-items: stretch; }
  .scarcity .btn { width: 100%; }
  .nav__cta { display: none; }
}

/* =========================================================
   Scroll animations — Apple-style reveal & easing
   ========================================================= */

/* Smoother, momentum-like easing for anchor scrolling */
html { scroll-behavior: smooth; scroll-padding-top: 88px; }

:root {
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-back: cubic-bezier(0.34, 1.32, 0.64, 1);
}

/* Base hidden state for reveal-on-scroll elements */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition:
    opacity 0.9s var(--ease-out-expo),
    transform 0.9s var(--ease-out-expo);
  transition-delay: var(--reveal-delay, 0s);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Variant: gentle scale-in (used for cards / badge) */
.reveal--scale {
  transform: translateY(34px) scale(0.96);
}
.reveal--scale.is-visible {
  transform: translateY(0) scale(1);
}

/* Interactive lift on cards beyond hover (depth feel) */
.card,
.criteria__item,
.testimonial,
.badge-card { transition: transform 0.4s var(--ease-out-expo), box-shadow 0.4s var(--ease-out-expo), border-color 0.2s ease; }

/* ---------- Hero entrance ---------- */
.hero__inner > * {
  opacity: 0;
  transform: translateY(28px);
  animation: heroIn 1s var(--ease-out-expo) forwards;
}
.hero__inner > .eyebrow      { animation-delay: 0.05s; }
.hero__inner > h1            { animation-delay: 0.15s; }
.hero__inner > .hero__tagline{ animation-delay: 0.28s; }
.hero__inner > .hero__sub    { animation-delay: 0.40s; }
.hero__inner > .hero__desc   { animation-delay: 0.50s; }
.hero__inner > .hero__actions{ animation-delay: 0.62s; }

@keyframes heroIn {
  to { opacity: 1; transform: translateY(0); }
}

/* Subtle floating glow behind the hero */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(520px 320px at 75% 18%, rgba(255, 215, 0, 0.12), transparent 60%);
  animation: floatGlow 9s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes floatGlow {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-22px, 18px, 0); }
}

/* ---------- Nav scroll state ---------- */
.nav { transition: box-shadow 0.3s ease, background 0.3s ease, height 0.3s ease; }
.nav.is-scrolled {
  box-shadow: 0 8px 28px rgba(0, 35, 104, 0.10);
  background: rgba(255, 255, 255, 0.96);
}

/* Buttons get an Apple-y press feel */
.btn:active { transform: translateY(0) scale(0.97); }

/* ---------- Respect reduced-motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal,
  .reveal--scale {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .hero__inner > *,
  .hero::after,
  .badge-card.is-generated {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* =========================================================
   Landing page — "Start application" CTA box
   ========================================================= */
.apply__cta-box {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 32px;
  box-shadow: var(--shadow);
  text-align: center;
}
.apply__cta-box h3 { margin-bottom: 10px; }
.apply__cta-box p { margin-bottom: 22px; }
.apply__cta-box .btn { margin-bottom: 14px; }
.apply__cta-note { font-size: 0.85rem; color: var(--muted); margin-bottom: 0; }

/* =========================================================
   Application page (apply.html)
   ========================================================= */
.app-header {
  position: relative;
  overflow: hidden;
  padding: 56px 0 44px;
  background:
    radial-gradient(900px 480px at 85% -20%, rgba(255, 215, 0, 0.16), transparent 60%),
    radial-gradient(700px 480px at -5% 10%, rgba(0, 35, 104, 0.08), transparent 60%),
    var(--white);
  border-bottom: 1px solid var(--line);
}
.app-back {
  display: inline-block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 22px;
}
.app-back:hover { color: var(--blue); }
.app-header h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); margin: 4px 0 16px; }
.app-header__sub { font-size: 1.1rem; color: var(--muted); max-width: 620px; }

.app-steps {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
  padding: 0;
  counter-reset: step;
}
.app-steps__item {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--muted);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px 8px 8px;
}
.app-steps__item span {
  display: grid;
  place-items: center;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--bg-soft);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}
.app-steps__item.is-active { color: var(--blue); border-color: var(--blue); }
.app-steps__item.is-active span { background: var(--blue); color: var(--gold); }

/* ---- Layout ---- */
.app-body { padding-top: 56px; padding-bottom: 80px; }
.app-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 40px;
  align-items: start;
}
.app-form { padding: 36px; }
.app-form__title { font-size: 1.4rem; margin-bottom: 24px; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* Selects share the input look */
.field select {
  width: 100%;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--ink);
  font-family: inherit;
  font-size: 0.95rem;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0, 35, 104, 0.12); }

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 6px 0 22px;
  font-size: 0.9rem;
  color: var(--muted);
  cursor: pointer;
}
.checkbox input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--blue); flex: none; }

.app-form__secure { margin-top: 14px; text-align: center; font-size: 0.85rem; color: var(--muted); }
.app-form__error {
  margin-top: 12px;
  text-align: center;
  color: #b42318;
  background: #fdecea;
  border-radius: 10px;
  padding: 10px;
  font-size: 0.9rem;
  font-weight: 600;
}

/* ---- Order summary ---- */
.summary { position: sticky; top: 92px; }
.summary__card {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
}
.summary__title { font-size: 1.2rem; margin-bottom: 20px; }
.summary__line {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.summary__line strong { display: block; color: var(--blue); }
.summary__line span { font-size: 0.85rem; color: var(--muted); }
.summary__line b { color: var(--blue); font-weight: 800; white-space: nowrap; }

.summary__includes { list-style: none; padding: 18px 0; margin: 0; display: grid; gap: 11px; }
.summary__includes li { position: relative; padding-left: 26px; font-size: 0.92rem; color: var(--ink); }
.summary__includes li::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  width: 18px; height: 18px;
  display: grid; place-items: center;
  background: rgba(0, 35, 104, 0.08);
  color: var(--blue);
  border-radius: 5px;
  font-size: 0.7rem; font-weight: 800;
}
.summary__total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0 4px;
  border-top: 2px solid var(--line);
  font-family: var(--display);
}
.summary__total span { font-weight: 700; color: var(--ink); }
.summary__total b { font-size: 1.5rem; color: var(--blue); }

.summary__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 18px;
  font-size: 0.82rem;
  color: var(--muted);
}
.summary__help { margin-top: 18px; font-size: 0.88rem; text-align: center; }
.summary__help a { color: var(--blue); font-weight: 600; }

.footer__bottom--solo { border-top: none; }

/* ---- Application page responsive ---- */
@media (max-width: 880px) {
  .app-grid { grid-template-columns: 1fr; gap: 28px; }
  .summary { position: static; order: -1; }
}
@media (max-width: 520px) {
  .field-row { grid-template-columns: 1fr; }
  .app-form { padding: 26px 22px; }
}
