/* Framewav waitlist — no framework, one stylesheet, one self-hosted font. */

@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("assets/InstrumentSerif-Italic.woff") format("woff");
}

:root {
  --bg: #05070f;
  --fg: #ffffff;
  --lime: #ccff00;
  --sand: #e6d9bd;                 /* beige sable */
  --soft: rgba(255, 255, 255, .64);
  --line: rgba(255, 255, 255, .12);
  --line-sand: rgba(230, 217, 189, .28);
  --card: rgba(255, 255, 255, .04);
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Inter, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--bg); }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* soft green halo at the top, like in the app */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(60rem 28rem at 50% -8%, rgba(204, 255, 0, .12), transparent 70%),
    radial-gradient(40rem 30rem at 100% 100%, rgba(204, 255, 0, .04), transparent 70%);
}

::selection { background: var(--lime); color: #000; }

a { color: inherit; }

.wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 46rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- header ---------- */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.1rem;
  padding-bottom: .5rem;
}
.top a.logo { display: inline-flex; line-height: 0; }
.top img { display: block; height: 3rem; width: auto; }

.pill {
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--lime);
  border: 1px solid rgba(204, 255, 0, .4);
  background: rgba(204, 255, 0, .06);
  border-radius: 999px;
  padding: .38rem .8rem;
  white-space: nowrap;
}

/* ---------- hero ---------- */
main { flex: 1; }

.hero {
  text-align: center;
  padding: clamp(2.6rem, 9vh, 5.5rem) 0 2rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  margin: 0 0 1.4rem;
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--sand);
}
.eyebrow::before, .eyebrow::after {
  content: "";
  width: 1.6rem;
  height: 1px;
  background: var(--line-sand);
}

h1 {
  margin: 0 0 1.3rem;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2.5rem, 9.2vw, 4.7rem);
  line-height: 1.02;
  letter-spacing: -.02em;
  text-wrap: balance;
}
h1 em {
  font-style: italic;
  color: var(--lime);
  text-shadow: 0 0 40px rgba(204, 255, 0, .3);
}

.sub {
  max-width: 31rem;
  margin: 0 auto;
  color: var(--soft);
  font-size: 1.06rem;
  text-wrap: balance;
}

/* ---------- form ---------- */
.form {
  max-width: 34rem;
  margin: 2.4rem auto 0;
  text-align: left;
}

.row {
  display: flex;
  gap: .6rem;
}

.form input[type="email"] {
  flex: 1 1 auto;
  min-width: 0;
  height: 3.4rem;
  padding: 0 1.2rem;
  font: inherit;
  font-size: 1rem;              /* 16px+ : no zoom on iOS */
  color: var(--fg);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: border-color .2s, box-shadow .2s;
}
.form input[type="email"]::placeholder { color: rgba(255, 255, 255, .42); }
.form input[type="email"]:focus {
  outline: none;
  border-color: var(--lime);
  box-shadow: 0 0 0 3px rgba(204, 255, 0, .14);
}

.btn {
  flex: 0 0 auto;
  height: 3.4rem;
  padding: 0 1.7rem;
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  color: #000;
  background: var(--lime);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 12px 40px -14px rgba(204, 255, 0, .55);
  transition: transform .2s cubic-bezier(.2, .7, .2, 1), box-shadow .2s, opacity .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 18px 50px -12px rgba(204, 255, 0, .6); }
.btn:active { transform: scale(.98); }
.btn:focus-visible, .form input:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

.consent {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  margin: 1rem .4rem 0;
  font-size: .82rem;
  line-height: 1.5;
  color: var(--soft);
  cursor: pointer;
}
.consent input {
  flex: 0 0 auto;
  width: 1.15rem;
  height: 1.15rem;
  margin: .12rem 0 0;
  accent-color: var(--lime);
  cursor: pointer;
}
.consent a { color: var(--sand); text-underline-offset: 3px; }
.consent a:hover { color: var(--lime); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; } /* honeypot */

.status {
  min-height: 1.4rem;
  margin: .9rem .4rem 0;
  font-family: var(--mono);
  font-size: .78rem;
  line-height: 1.5;
  color: var(--soft);
}
.status.is-error { color: #ff8f8f; }

.done {
  max-width: 34rem;
  margin: 2.4rem auto 0;
  padding: 1.6rem 1.4rem;
  text-align: center;
  border: 1px solid rgba(204, 255, 0, .35);
  border-radius: 1.4rem;
  background: rgba(204, 255, 0, .05);
}
.done:focus { outline: none; }
.done strong {
  display: block;
  margin-bottom: .3rem;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.8rem;
  color: var(--lime);
}
.done span { color: var(--soft); font-size: .95rem; }

/* ---------- facts ---------- */
.facts {
  display: flex;
  justify-content: center;
  gap: clamp(1.6rem, 7vw, 3.4rem);
  margin: 3.2rem 0 0;
  padding: 1.8rem 0 0;
  list-style: none;
  border-top: 1px solid var(--line-sand);
}
.facts li { text-align: center; }
.facts b {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 2.2rem;
  line-height: 1;
}
.facts span {
  font-family: var(--mono);
  font-size: .62rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--sand);
}

/* ---------- footer ---------- */
.foot {
  position: relative;
  z-index: 1;
  margin-top: 3rem;
  padding: 1.5rem 0 2rem;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .06em;
  color: var(--sand);
}
.foot .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.foot .brand { display: inline-flex; align-items: center; gap: .6rem; opacity: .9; }
.foot .brand img { display: block; height: 1.15rem; width: auto; }
.foot a { text-underline-offset: 3px; }
.foot a:hover { color: var(--lime); }

/* ---------- privacy page ---------- */
.doc { padding: 2.4rem 1.25rem 1rem; }
.doc h1 { font-size: clamp(2.2rem, 7vw, 3.4rem); text-align: left; margin-bottom: .6rem; }
.doc .meta { margin: 0 0 2.2rem; font-family: var(--mono); font-size: .74rem; letter-spacing: .08em; color: var(--sand); }
.doc h2 {
  margin: 2.2rem 0 .5rem;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.7rem;
  line-height: 1.15;
}
.doc p, .doc li { color: rgba(255, 255, 255, .8); font-size: .98rem; }
.doc ul { padding-left: 1.2rem; }
.doc li { margin: .3rem 0; }
.doc a { color: var(--sand); text-underline-offset: 3px; }
.doc a:hover { color: var(--lime); }
.doc .todo { color: var(--lime); background: rgba(204, 255, 0, .08); border-radius: .3rem; padding: 0 .3rem; }
.doc .back { display: inline-block; margin-top: 2rem; font-family: var(--mono); font-size: .78rem; }

/* ---------- small screens ---------- */
@media (max-width: 560px) {
  .row { flex-direction: column; }
  .btn { width: 100%; }
  .top img { height: 2.6rem; }
  .eyebrow::before, .eyebrow::after { width: .9rem; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero > * { animation: rise .8s cubic-bezier(.2, .7, .2, 1) both; }
  .hero > :nth-child(2) { animation-delay: .06s; }
  .hero > :nth-child(3) { animation-delay: .12s; }
  .hero > :nth-child(4) { animation-delay: .18s; }
  .hero > :nth-child(5) { animation-delay: .24s; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
