/* FRED landing page. Colors and copy per the 2026-10-09 feedback. */

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("fonts/archivo-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("fonts/archivo-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;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/ibm-plex-mono-400-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/ibm-plex-mono-400-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 {
  --bg: #FBFAF4;      /* sulphur yellow, lightened */
  --ink: #23271A;     /* olive black */
  --accent: #A3204A;  /* oxblood */
  --label: #5E6B37;   /* dark olive, small labels */
  --line: rgba(35, 39, 26, 0.14);
  --pad: clamp(20px, 3vw, 44px);
  --sans: 'Archivo', Helvetica, Arial, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, Menlo, Consolas, monospace;
}

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

html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-snap-type: y proximity;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

[hidden] { display: none !important; }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }

:focus { outline: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.accent { color: var(--accent); }

.label {
  margin: 0;
  font-family: var(--mono);
  font-size: clamp(11px, 0.9vw, 13px);
  line-height: 1.6;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--label);
}

/* ---------- Screen 1: hero ---------- */

.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 320px;
  container-type: size;
  scroll-snap-align: start;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  padding:
    max(var(--pad), env(safe-area-inset-top))
    max(var(--pad), env(safe-area-inset-right))
    max(var(--pad), env(safe-area-inset-bottom))
    max(var(--pad), env(safe-area-inset-left));
}

.hero__top,
.hero__bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.hero__top { align-items: center; }
.hero__bottom { align-items: flex-end; }

.logo {
  font-weight: 900;
  font-stretch: 110%;
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--accent);
}

.hero__middle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 0;
}

.hero__title {
  margin: 0;
  font-weight: 900;
  font-stretch: 110%;
  font-size: min(24cqw, 42cqh);
  line-height: 0.8;
  letter-spacing: -0.045em;
  text-transform: uppercase;
}
.hero__title span { display: block; }

.hero__claim {
  margin: clamp(20px, 3.5vh, 44px) 0 0;
  max-width: 26ch;
  font-size: clamp(19px, 2.4vw, 32px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.015em;
  text-wrap: pretty;
}

.scroll-cue {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.scroll-cue .label { font-size: 11px; letter-spacing: 0.18em; }
.scroll-cue:hover .label { color: var(--accent); }
.scroll-cue__line {
  display: block;
  width: 2px;
  height: clamp(32px, 6vh, 56px);
  background: var(--ink);
  animation: scroll-cue 1.8s cubic-bezier(.65, 0, .35, 1) infinite;
}
@keyframes scroll-cue {
  0%   { transform: scaleY(0); transform-origin: top; }
  45%  { transform: scaleY(1); transform-origin: top; }
  55%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---------- Screen 2: waitlist ---------- */

.waitlist {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  scroll-snap-align: start;
  overflow: hidden;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  border-top: 1px solid var(--line);
  padding:
    var(--pad)
    max(var(--pad), env(safe-area-inset-right))
    max(var(--pad), env(safe-area-inset-bottom))
    max(var(--pad), env(safe-area-inset-left));
}

.waitlist__body,
.waitlist__view {
  display: grid;
  gap: clamp(20px, 3.5vh, 40px);
  justify-items: center;
  width: 100%;
  text-align: center;
}
.waitlist__body {
  align-self: center;
  max-width: 900px;
  margin: 0 auto;
  padding: 32px 0;
}

.status { display: inline-flex; align-items: center; gap: 10px; letter-spacing: 0.16em; }
.status__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }

.headline {
  margin: 0;
  font-weight: 900;
  font-stretch: 110%;
  font-size: clamp(48px, 9vw, 150px);
  line-height: 0.86;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.lead {
  margin: 0;
  max-width: 40ch;
  font-size: clamp(16px, 1.4vw, 21px);
  font-weight: 600;
  line-height: 1.4;
  text-wrap: pretty;
}

.signup {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  width: 100%;
  max-width: 620px;
}

.field {
  flex: 1 1 240px;
  min-width: 0;
  height: 60px;
  padding: 0 24px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 500;
}
.field::placeholder { color: var(--label); opacity: 0.75; }
.field--share {
  display: flex;
  align-items: center;
  justify-content: center;
  border-color: var(--line);
  font-family: var(--mono);
  font-size: 15px;
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.button {
  height: 60px;
  padding: 0 34px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s;
}
.button:hover { background: var(--accent); }
.button--accent { background: var(--accent); }
.button--accent:hover { background: var(--ink); }

.label--fine { font-size: 12px; letter-spacing: 0.08em; }

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  letter-spacing: 0.12em;
}
.footer__nav { display: flex; flex-wrap: wrap; gap: 12px 24px; }

/* ---------- Larger screens: one screen per scroll, like the design ---------- */

@media (min-width: 768px) and (min-height: 560px) {
  html { scroll-snap-type: y mandatory; }
  .hero, .waitlist { scroll-snap-stop: always; }
  [data-parallax] { will-change: transform, opacity; }
}

/* ---------- Phones, portrait: let the wordmark fill the width ---------- */

@media (max-width: 700px) and (orientation: portrait) {
  .hero__title { font-size: min(33cqw, 26cqh); }
  .headline { font-size: clamp(48px, 16vw, 96px); }
}

@media (max-width: 520px) {
  .signup .button { flex: 1 1 100%; }
  .footer { justify-content: center; text-align: center; }
  .footer__nav { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

/* ---------- Waitlist form states ---------- */

/* Bot trap: off-screen instead of display:none, which simple bots skip. */
.trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.consent {
  margin: 0;
  max-width: 46ch;
  font-size: 13px;
  line-height: 1.5;
  color: var(--label);
  text-wrap: pretty;
}
.consent a { text-decoration: underline; }

.form-message {
  margin: 0;
  max-width: 46ch;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--accent);
}

.button[disabled] { opacity: 0.6; cursor: progress; }
.button--link { display: inline-flex; align-items: center; justify-content: center; }
.button--link:hover { color: var(--bg); }

.link-button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--label);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: underline;
  cursor: pointer;
}
.link-button:hover { color: var(--accent); }

.nowrap { white-space: nowrap; }
@media (max-width: 520px) { .nowrap { white-space: normal; word-break: break-all; } }

/* ---------- Content pages (legal, confirm, unsubscribe, 404) ---------- */

.page {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  padding:
    max(var(--pad), env(safe-area-inset-top))
    max(var(--pad), env(safe-area-inset-right))
    max(var(--pad), env(safe-area-inset-bottom))
    max(var(--pad), env(safe-area-inset-left));
}
/* Content pages scroll normally; the snapping is only for the two landing screens. */
html:has(.page) { scroll-snap-type: none; }

.page__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.page__top .logo { text-decoration: none; }
.page__top .logo:hover { color: var(--ink); }

.page__main { width: 100%; padding: clamp(40px, 8vh, 96px) 0; }
.page__main--center { align-self: center; display: grid; justify-items: center; text-align: center; }
.page__main--center .waitlist__view { max-width: 900px; }

.prose { max-width: 70ch; margin: 0 auto; font-size: 17px; line-height: 1.6; overflow-wrap: break-word; }
.prose h1 {
  margin: 0 0 0.6em;
  font-weight: 900;
  font-stretch: 110%;
  font-size: clamp(40px, 7vw, 84px);
  line-height: 0.9;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
.prose h2 {
  margin: 2em 0 0.5em;
  font-weight: 900;
  font-stretch: 110%;
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.prose h3 { margin: 1.6em 0 0.4em; font-size: 18px; font-weight: 700; }
.prose p, .prose ul, .prose ol { margin: 0 0 1em; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin: 0.2em 0; }
.prose a { color: var(--accent); text-decoration: underline; }
.prose a:hover { color: var(--ink); }
.prose strong { font-weight: 700; }
.prose__lang { margin: 0 0 24px; }
.prose__lang a { text-decoration: underline; }

.page__footer { margin-top: 0; }

/* Headlines that receive focus from script (for screen readers) show no focus ring. */
[tabindex="-1"]:focus, [tabindex="-1"]:focus-visible { outline: none; }
