/* Same palette, type and hero background as the main site (src/styles/app.css). */
@font-face {
  font-family: "Nunito Sans Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 200 1000;
  src: url("/fonts/nunito-sans-latin-wght-normal.woff2") format("woff2-variations");
}

@font-face {
  font-family: "Nunito Sans Variable";
  font-style: italic;
  font-display: swap;
  font-weight: 200 1000;
  src: url("/fonts/nunito-sans-latin-wght-italic.woff2") format("woff2-variations");
}

:root {
  --navy: #04243f;
  --mint: #69eabd;
  --green: #0aa77d;
  --on-dark: #ffffff;
  --on-dark-muted: #c3d1dc;
  --on-dark-subtle: #a9bccc;
  --font-sans: "Nunito Sans Variable", "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  overflow-x: clip;
  background:
    radial-gradient(56rem 32rem at 88% 92%, rgb(10 167 125 / 0.36), rgb(10 167 125 / 0) 70%),
    radial-gradient(44rem 26rem at 8% -10%, rgb(105 234 189 / 0.1), rgb(105 234 189 / 0) 70%),
    var(--navy);
  color: var(--on-dark);
  font: 400 1rem/1.6 var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.backdrop {
  position: absolute;
  inset: auto 0 0;
  width: 100%;
  height: min(26rem, 55vh);
  pointer-events: none;
}

/* On phones the chart sits lower and fainter so it stays behind the footer rather than the copy. */
@media (max-width: 559.98px) {
  .backdrop {
    height: min(18rem, 34vh);
    opacity: 0.75;
  }
}

.page {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  max-width: 52rem;
  margin: 0 auto;
  padding: max(3rem, env(safe-area-inset-top)) max(1.5rem, env(safe-area-inset-right)) 3rem max(1.5rem, env(safe-area-inset-left));
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 1.5rem);
  margin-bottom: clamp(2.5rem, 7vh, 4rem);
  color: var(--on-dark);
}

.brand-mark {
  width: clamp(4rem, 10vw, 5.75rem);
  height: clamp(4rem, 10vw, 5.75rem);
  color: var(--mint);
}

.brand-name {
  font-size: clamp(3.125rem, 7.75vw, 4.5rem);
  font-weight: 800;
  font-style: italic;
  letter-spacing: -0.02em;
  line-height: 1;
}

.eyebrow {
  margin: 0 0 1rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--mint);
}

.display {
  margin: 0;
  max-width: 15ch;
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.lead {
  margin: 1.5rem 0 0;
  max-width: 36rem;
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  line-height: 1.6;
  color: var(--on-dark-muted);
  text-wrap: pretty;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  align-self: flex-start;
  min-height: 2.75rem;
  margin: 2.5rem 0 0;
  padding: 0.625rem 1.25rem;
  border: 1px solid rgb(105 234 189 / 0.32);
  border-radius: 999px;
  background: rgb(105 234 189 / 0.08);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mint);
}

.status-dot {
  position: relative;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 12px rgb(105 234 189 / 0.7);
}

.footer {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  width: 100%;
  max-width: 52rem;
  margin: 0 auto;
  padding: 1.5rem max(1.5rem, env(safe-area-inset-right)) max(1.5rem, env(safe-area-inset-bottom)) max(1.5rem, env(safe-area-inset-left));
  font-size: 0.875rem;
  color: var(--on-dark-subtle);
}

.footer p {
  margin: 0;
}

.steps {
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.75rem;
}

.steps span {
  margin-inline: 0.2em;
  color: var(--green);
}

/* Entrance: the copy rises in, the chart line draws and the status dot breathes. All skipped for reduced motion. */
@media (prefers-reduced-motion: no-preference) {
  .page > * {
    animation: rise 700ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
  }

  .page > :nth-child(2) { animation-delay: 80ms; }
  .page > :nth-child(3) { animation-delay: 160ms; }
  .page > :nth-child(4) { animation-delay: 240ms; }
  .page > :nth-child(5) { animation-delay: 320ms; }

  .backdrop-line {
    stroke-dasharray: 1;
    animation: draw 1600ms cubic-bezier(0.3, 0.7, 0.2, 1) 200ms both;
  }

  .status-dot::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--mint);
    animation: pulse 2400ms ease-out infinite;
  }
}

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

@keyframes draw {
  from { stroke-dashoffset: 1; }
  to { stroke-dashoffset: 0; }
}

@keyframes pulse {
  0% { opacity: 0.7; transform: scale(1); }
  70%, 100% { opacity: 0; transform: scale(3); }
}

@media (prefers-contrast: more) {
  .lead,
  .footer {
    color: var(--on-dark);
  }
}

a.brand {
  align-self: flex-start;
  min-height: 2.75rem;
  border-radius: 0.5rem;
  text-decoration: none;
}

.link {
  color: var(--mint);
  font-weight: 700;
  text-underline-offset: 0.2em;
}

@media (hover: hover) {
  .link:hover {
    color: #8ff0cf;
  }
}

:focus-visible {
  outline: 3px solid var(--mint);
  outline-offset: 3px;
  border-radius: 0.5rem;
}
