/* lifestack · NED founding cohort · /ned
   Brand: deep teal #01505D, orange #FF4500, white. Inter 400/600.
   Rules: orange never used for body text; white text on teal; wordmark always lowercase. */

/* Fonts: self-hosted Inter. PLACEHOLDER: download inter-v19-latin-regular.woff2 and
   inter-v19-latin-600.woff2 from Google Fonts (or gwfh.mranftl.com) into assets/. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("inter-v19-latin-regular.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("inter-v19-latin-600.woff2") format("woff2");
}

:root {
  --teal: #01505D;
  --orange: #FF4500;
  --white: #FFFFFF;
  --teal-tint: rgba(1, 80, 93, 0.10);
  --measure: 68ch;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 400;
  line-height: 1.6;
  color: var(--teal);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

/* Bands */
.band { padding: 4.5rem 1.5rem; }
.band-white { background: var(--white); }
.band-teal { background: var(--teal); color: var(--white); }
.band-teal a { color: var(--white); }

.wrap { max-width: 62rem; margin: 0 auto; }
.wrap.narrow { max-width: var(--measure); }
.centre { text-align: center; }

/* Type */
h1 {
  font-weight: 600;
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 1.25rem 0 1.5rem;
}
h2 {
  font-weight: 600;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 1.5rem;
}
h3 { font-weight: 600; font-size: 1.1rem; margin-bottom: 0.5rem; }
p + p { margin-top: 1.1rem; }

.subhead {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  max-width: 44rem;
  margin-bottom: 1.75rem;
}

.eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  opacity: 0.85;
}
/* The wordmark is never uppercased; caps applied only to the rest of the line. */
.eyebrow .caps { text-transform: uppercase; }
.wordmark { text-transform: none; }

.pull { color: var(--teal); font-weight: 600; }

.micro { font-size: 0.85rem; opacity: 0.85; margin-top: 1rem; }

.closing { font-size: clamp(1.15rem, 2.4vw, 1.5rem); font-weight: 400; margin-bottom: 2rem; }

/* Hero */
.hero { position: relative; padding-top: 3rem; padding-bottom: 6rem; overflow: hidden; }
.hero .logo { display: block; height: 44px; width: auto; margin-bottom: 4rem; }
.squares { position: absolute; top: 3.5rem; right: 2rem; }
.squares span {
  display: block; width: 22px; height: 22px; background: var(--orange);
  margin-left: 0; margin-bottom: 6px;
}
.squares span:nth-child(2) { transform: translateX(28px); }
.squares span:nth-child(3) { transform: translateX(56px); }

/* Buttons: orange is reserved for the CTA. White 600 text on orange passes contrast at this size only. */
.btn {
  display: inline-block;
  background: var(--orange);
  color: var(--white);
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  padding: 0.9rem 1.75rem;
  border-radius: 4px;
}
.btn:hover { filter: brightness(0.92); }
.btn:focus-visible { outline: 3px solid var(--white); outline-offset: 3px; }
.band-white .btn:focus-visible { outline-color: var(--teal); }

/* Cards */
.cards { display: grid; gap: 1.25rem; margin: 2rem 0; }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.cards.two { grid-template-columns: repeat(2, 1fr); }
.cards.four { grid-template-columns: repeat(4, 1fr); }
.card {
  border: 1px solid var(--teal-tint);
  border-radius: 6px;
  padding: 1.5rem;
  background: var(--white);
  color: var(--teal);
}
.card-eyebrow {
  color: var(--orange);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.card p { font-size: 0.95rem; }

/* People */
.person .portrait {
  width: 100%; aspect-ratio: 1; border-radius: 6px;
  background: var(--teal-tint); margin-bottom: 1rem;
}

/* Steps */
.steps { margin: 2.5rem 0; padding-left: 1.4rem; max-width: var(--measure); }
.steps li { margin-bottom: 1rem; }
.steps li::marker { color: var(--orange); font-weight: 600; }

/* Teal panel */
.panel-teal {
  background: var(--teal); color: var(--white);
  border-radius: 6px; padding: 2rem;
  max-width: var(--measure); margin-top: 1rem;
  font-size: 1.05rem;
}

/* Diagnostic */
#diagnostic { scroll-margin-top: 1rem; }
.scoreapp-facade { margin-top: 2rem; }
.scoreapp-facade iframe {
  width: 100%; min-height: 640px; border: 0; border-radius: 6px; background: var(--white);
}
.fallback { text-decoration: underline; }

/* Footer */
.footer { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.footer .micro a { text-decoration: underline; }

/* Mobile */
@media (max-width: 900px) {
  .cards.four { grid-template-columns: repeat(2, 1fr); }
  .cards.three { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .band { padding: 3rem 1.25rem; }
  .cards.two, .cards.four { grid-template-columns: 1fr; }
  .squares { top: 2.5rem; right: 1.25rem; }
  .squares span { width: 16px; height: 16px; }
  .squares span:nth-child(2) { transform: translateX(20px); }
  .squares span:nth-child(3) { transform: translateX(40px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
