@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600&family=Zilla+Slab:wght@400;600&display=swap");

:root {
  color-scheme: light;
  --ink: #0e2f7f;
  --ink-soft: rgba(14, 47, 127, 0.72);
  --accent: #0e2f7f;
  --accent-strong: #0b255f;
  --mist: #eef1f7;
  --glow: rgba(14, 47, 127, 0.2);
  --shadow: 0 18px 50px rgba(14, 47, 127, 0.2);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  border: 0;
  padding: 0;
  min-height: 100%;
  background-color: var(--mist);
  color: var(--ink);
  font-family: "Space Grotesk", "Trebuchet MS", sans-serif;
}

body {
  background-image:
    radial-gradient(circle at 15% 20%, rgba(14, 47, 127, 0.1), transparent 55%),
    radial-gradient(circle at 85% 18%, rgba(14, 47, 127, 0.18), transparent 45%),
    linear-gradient(135deg, #f5f7fb 0%, #ffffff 55%, #eef1f7 100%);
}

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

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 32px 7vw 40px;
  gap: 44px;
}

.split {
  position: relative;
  overflow: hidden;
}

.split::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(14, 47, 127, 0.12) 0%, rgba(14, 47, 127, 0.12) 52%, transparent 52%),
    linear-gradient(120deg, rgba(14, 47, 127, 0.2) 0%, rgba(14, 47, 127, 0.2) 48%, transparent 48%);
  z-index: 0;
  opacity: 0;
  animation: backdrop-in 800ms ease-out forwards;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.brand-logo {
  height: 44px;
  width: auto;
  display: block;
  filter: drop-shadow(0 8px 18px rgba(14, 47, 127, 0.18));
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.75fr);
  gap: 32px;
  align-items: center;
  justify-items: center;
  margin-top: auto;
  margin-bottom: auto;
}

.split-hero {
  position: relative;
  z-index: 1;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
}

.hero-copy {
  position: relative;
  z-index: 1;
  animation: rise 700ms ease-out both;
}

.hero-eyebrow {
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-strong);
  margin-bottom: 16px;
}

h1 {
  font-family: "Zilla Slab", "Times New Roman", serif;
  font-size: clamp(2.6rem, 2.4rem + 1.6vw, 3.6rem);
  margin: 0 0 18px;
  line-height: 1.1;
}

.hero-lede {
  font-size: 1.15rem;
  color: var(--ink-soft);
  margin: 0 0 28px;
  line-height: 1.6;
}

.hero-hint {
  margin: -12px 0 22px;
  font-size: 0.98rem;
  color: var(--ink-soft);
}

.inline-link {
  color: var(--accent-strong);
  border-bottom: 2px solid rgba(14, 47, 127, 0.35);
  padding-bottom: 2px;
  font-weight: 600;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.hero-help {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  color: var(--ink-soft);
  flex-wrap: wrap;
  justify-content: center;
  text-align: center;
  font-family: "Zilla Slab", "Times New Roman", serif;
  font-weight: 600;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #ffffff;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: 0 12px 26px rgba(14, 47, 127, 0.25);
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.cta:hover,
.cta:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(14, 47, 127, 0.3);
}

.secondary-note {
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  animation: fade-in 750ms ease-out both;
  animation-delay: 140ms;
  overflow: visible;
}

.hero-illustration {
  width: min(100%, 720px);
  height: auto;
  filter: drop-shadow(0 18px 40px rgba(14, 47, 127, 0.28));
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: reveal-in 700ms ease-out forwards;
  animation-delay: var(--delay, 0s);
}

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--ink-soft);
  font-size: 0.9rem;
  position: relative;
  z-index: 1;
  flex-wrap: wrap;
  gap: 12px;
}

.instructions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
  position: relative;
  z-index: 2;
}

.instruction-card {
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  border-radius: 20px;
}

.instruction-card img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 16px 34px rgba(14, 47, 127, 0.18);
  background: #ffffff;
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.instruction-card:hover img,
.instruction-card:focus-visible img {
  transform: scale(1.03);
  box-shadow: 0 20px 40px rgba(14, 47, 127, 0.25);
}

.instructions-secondary {
  display: grid;
  gap: 28px;
  position: relative;
  z-index: 2;
  justify-items: center;
  text-align: center;
}

.instructions-block {
  display: grid;
  gap: 14px;
  justify-items: center;
}

.instructions-note {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.instructions-intro {
  margin: 14px auto 0;
  max-width: 760px;
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--ink-soft);
}

.instruction-small {
  width: min(100%, 540px);
}

.instruction-small img {
  transform-origin: top center;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 25, 58, 0.72);
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 200ms ease, visibility 200ms ease;
  z-index: 10;
  padding: 24px;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox-image {
  max-width: 95vw;
  max-height: 90vh;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 24px 60px rgba(14, 47, 127, 0.4);
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: #ffffff;
  color: var(--accent-strong);
  font-size: 26px;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(14, 47, 127, 0.25);
}

.instructions-header {
  position: relative;
  z-index: 2;
  text-align: center;
}

.instructions-header h2 {
  margin: 0;
  font-size: clamp(1.4rem, 1.2rem + 1vw, 2rem);
  font-family: "Zilla Slab", "Times New Roman", serif;
  color: var(--accent-strong);
}

.instructions-text {
  margin: 18px auto 0;
  max-width: 900px;
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--ink-soft);
  text-align: left;
}

.instructions-text p {
  margin: 0 0 14px;
}

.instructions-text strong {
  color: var(--accent-strong);
}

.section-divider {
  height: 2px;
  width: min(680px, 100%);
  background: rgba(14, 47, 127, 0.2);
  border-radius: 999px;
  align-self: center;
  position: relative;
  z-index: 2;
}

.mail-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(14, 47, 127, 0.25);
  color: var(--accent-strong);
  font-weight: 600;
  background: rgba(255, 255, 255, 0.8);
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.mail-btn:hover,
.mail-btn:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(14, 47, 127, 0.2);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes reveal-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes backdrop-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .split::before {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 900px) {
  .page {
    padding: 24px 6vw 32px;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .footer {
    flex-direction: column;
    gap: 6px;
    text-align: center;
  }

  .instructions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .hero-actions {
    align-items: flex-start;
  }

  .cta {
    width: 100%;
  }
}
