/*
 * Marketing site styles. Tokens transcribed from the July 2026 dashboard
 * handoff (same source as apps/web/app/globals.css) — the site and the app
 * must read as one product. Outfit is self-hosted (no third-party fetch;
 * same two subset files as the app) and the weight axis covers 400–500
 * only: there is deliberately no bold on this page.
 *
 * No JavaScript anywhere — the CloudFront CSP (marketing-stack.ts) has no
 * script-src, and style-src 'self' also rules out style="" attributes.
 */

@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("/fonts/outfit-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7,
    U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F,
    U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("/fonts/outfit-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
    U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
    U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --navy: #0f2e3d;
  --navy-deep: #0a2431;
  --ink: #1f4759;
  --mint: #5dbdb4;
  --mint-light: #87d4ce;
  --mint-pale: #c4e8e4;
  --yellow: #f8d958;
  --canvas: #edeae3;
  --surface: #ffffff;
  --warm-1: #faf7f2;
  --divider: #e4dfd3;
  --card-border: rgba(15, 46, 61, 0.12);
  --divider-soft: rgba(15, 46, 61, 0.08);
  --on-navy: #ffffff;
  --on-navy-muted: rgba(255, 255, 255, 0.72);
  --on-navy-faint: rgba(255, 255, 255, 0.55);
  --on-navy-rule: rgba(255, 255, 255, 0.14);
  --radius-band: 16px;
  --radius-pill: 8px;
  --track-eyebrow: 0.28em;
  --track-wordmark: 0.34em;
  --measure: 34rem;
  --gutter: clamp(20px, 5vw, 56px);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Outfit", "Avenir Next", "Trebuchet MS", sans-serif;
  font-weight: 400;
  background: var(--canvas);
  color: var(--navy);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}

/* ---- shared atoms ------------------------------------------------------- */

.eyebrow {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: var(--track-eyebrow);
  text-transform: uppercase;
  color: var(--ink);
}

.wordmark {
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: var(--track-wordmark);
  text-transform: uppercase;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: var(--radius-pill);
  font: inherit;
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.btn-navy {
  background: var(--navy);
  color: var(--on-navy);
}
.btn-navy:hover {
  background: var(--ink);
}

.btn-mint {
  background: var(--mint);
  color: var(--navy-deep);
}
.btn-mint:hover {
  background: var(--mint-light);
  box-shadow: 0 0 0 4px rgba(93, 189, 180, 0.25);
}

.link-quiet {
  color: inherit;
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--mint);
  text-decoration-thickness: 2px;
}
.link-quiet:hover {
  color: var(--ink);
}

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

/* ---- header ------------------------------------------------------------- */

.top {
  max-width: 1120px;
  margin: 0 auto;
  padding: 26px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 30px);
}

/* ---- hero --------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  max-width: 1120px;
  margin: 6px auto 0;
  padding: clamp(64px, 9vw, 110px) var(--gutter) clamp(72px, 10vw, 120px);
  background: linear-gradient(160deg, var(--navy) 55%, var(--navy-deep));
  color: var(--on-navy);
  border-radius: var(--radius-band);
}

/* The mark, oversized and cropped by the band — the one piece of "image". */
.hero-mark {
  position: absolute;
  right: -120px;
  top: -60px;
  width: clamp(320px, 42vw, 560px);
  height: auto;
  opacity: 0.07;
  pointer-events: none;
}

.eyebrow-hero {
  color: var(--mint-light);
}

.hero h1 {
  margin-top: 22px;
  max-width: 13ch;
  font-size: clamp(2.4rem, 6vw, 4.3rem);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.015em;
}

.hero .lede {
  margin-top: 28px;
  max-width: var(--measure);
  font-size: 1.08rem;
  color: var(--on-navy-muted);
}

.hero .cta {
  margin-top: 40px;
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.hero .link-quiet {
  color: var(--on-navy-muted);
}
.hero .link-quiet:hover {
  color: var(--on-navy);
}

/* Load reveal — one orchestrated moment, CSS only. */
.r {
  opacity: 0;
  transform: translateY(14px);
  animation: rise 640ms cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}
.r1 { animation-delay: 60ms; }
.r2 { animation-delay: 160ms; }
.r3 { animation-delay: 280ms; }
.r4 { animation-delay: 400ms; }

@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .r {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* ---- platform ----------------------------------------------------------- */

.platform {
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(72px, 10vw, 128px) var(--gutter) 0;
}

.features {
  list-style: none;
  margin-top: 34px;
}

.features li {
  display: grid;
  grid-template-columns: minmax(72px, 220px) 1fr;
  gap: 12px clamp(16px, 4vw, 64px);
  padding: clamp(28px, 4vw, 44px) 0;
  border-top: 1px solid var(--divider);
}

.features .index {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--mint);
}
.features .index::after {
  content: " //";
  color: var(--divider);
}

.features h2 {
  font-size: clamp(1.35rem, 2.6vw, 1.8rem);
  font-weight: 500;
  letter-spacing: -0.01em;
}

.features p {
  margin-top: 10px;
  max-width: var(--measure);
  color: var(--ink);
}

/* ---- posture ------------------------------------------------------------ */

.posture {
  max-width: 1120px;
  margin: clamp(72px, 10vw, 128px) auto clamp(48px, 7vw, 84px);
  padding: clamp(48px, 6vw, 72px) var(--gutter);
  background: var(--warm-1);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-band);
}

.posture-head {
  margin-top: 20px;
  max-width: 22ch;
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.posture-head em {
  font-style: normal;
  /* the page's single yellow moment */
  background: linear-gradient(transparent 62%, var(--yellow) 62%);
}

.facts {
  list-style: none;
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 36px clamp(24px, 3vw, 44px);
}

.facts li {
  border-top: 2px solid var(--mint-pale);
  padding-top: 16px;
}

.facts h3 {
  font-size: 1.02rem;
  font-weight: 500;
}

.facts p {
  margin-top: 8px;
  font-size: 0.93rem;
  color: var(--ink);
}

/* ---- legal page ---------------------------------------------------------- */

.legal {
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 72px) var(--gutter) clamp(64px, 9vw, 110px);
}

.legal h1 {
  margin-top: 18px;
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 500;
  letter-spacing: -0.015em;
}

.legal section {
  margin-top: 44px;
  max-width: var(--measure);
  border-top: 1px solid var(--divider);
  padding-top: 20px;
}

.legal h2 {
  font-size: 1.1rem;
  font-weight: 500;
}

.legal p {
  margin-top: 12px;
  color: var(--ink);
}

/* ---- footer ------------------------------------------------------------- */

.foot {
  max-width: 1120px;
  margin: 0 auto;
  padding: 30px var(--gutter) 44px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  border-top: 1px solid var(--divider);
}

.foot .brand {
  color: var(--navy);
}

.foot-note {
  flex: 1;
  font-size: 0.85rem;
  color: var(--ink);
}

/* ---- small screens ------------------------------------------------------ */

@media (max-width: 640px) {
  .features li {
    grid-template-columns: 1fr;
  }
  .hero-mark {
    right: -160px;
  }
}
