/* ==========================================================================
   thrive.money — coming-soon teaser
   Design language: white canvas · Ink type · Lime as the single accent.
   Sans-only type system (matches the app's v3 tokens):
   Space Grotesk (display) × Hanken Grotesk (text) × Geist Mono (labels).
   ========================================================================== */

:root {
  --surface: #ffffff;
  --surface-2: #f6f6f4;
  --line: #e5e5e0;
  --line-soft: #eeeee9;

  --ink: #0e0f0c;
  --ink-2: #2a2c26;
  --muted: #75786e;
  --muted-2: #a3a59b;

  --lime: #c9f26b;
  --lime-deep: #b8de2c;
  --danger: #d94b3d;

  --r-pill: 999px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  --font-display: "Space Grotesk", system-ui, -apple-system, sans-serif;
  --font-body: "Hanken Grotesk", system-ui, -apple-system, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SFMono-Regular", monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--lime); color: var(--ink); }
a { color: inherit; text-decoration: none; }

/* --------------------------------------------------------------------------
   Layout — one calm screen
   -------------------------------------------------------------------------- */

.teaser {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 24px;
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 32px 32px;
}

/* Wordmark with the lime highlighter sweep */
.wordmark {
  position: relative;
  display: inline-block;
  justify-self: start;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 26px;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ink);
  padding: 0 4px;
}
.wordmark::before {
  content: "";
  position: absolute;
  left: -3px;
  right: -3px;
  top: 34%;
  bottom: 8%;
  background: var(--lime);
  transform: skewX(-6deg);
  z-index: -1;
}

/* --------------------------------------------------------------------------
   The message
   -------------------------------------------------------------------------- */

.teaser-body {
  align-self: center;
  padding: 24px 0;
}

.eyebrow {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 26px;
  display: inline-flex;
  align-items: center;
  gap: 11px;
}
.eyebrow .pip {
  width: 6px;
  height: 6px;
  border-radius: 1px;
  background: var(--lime-deep);
  animation: pulse-dot 2.4s var(--ease-out) infinite;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(184, 222, 44, 0.55); }
  50% { box-shadow: 0 0 0 7px rgba(184, 222, 44, 0); }
}

h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(19px, 4.7vw, 37px);
  line-height: 1.14;
  letter-spacing: -0.03em;
  margin: 0;
  color: var(--ink);
}
h1 em {
  font-style: normal;
  font-weight: 600;
}

.turn {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(18px, 4.2vw, 32px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 22px 0 0;
  color: var(--ink);
}

/* Lime highlighter sweep on the turn line */
.sweep {
  position: relative;
  display: inline-block;
  white-space: nowrap;
}
.sweep::before {
  content: "";
  position: absolute;
  left: -0.1em;
  right: -0.1em;
  top: 34%;
  bottom: 6%;
  background: var(--lime);
  transform: skewX(-6deg);
  z-index: -1;
}

.teaser-sub {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.5;
  color: var(--muted);
  margin: 30px 0 0;
  max-width: 46ch;
}

/* --------------------------------------------------------------------------
   Waitlist
   -------------------------------------------------------------------------- */

.btn {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  border-radius: var(--r-pill);
  padding: 13px 26px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.22s var(--ease-out), box-shadow 0.22s var(--ease-out);
  white-space: nowrap;
}
.btn-lime {
  background: var(--lime);
  color: var(--ink);
  border-color: var(--lime-deep);
}
.btn-lime:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 32px -10px rgba(203, 242, 60, 0.5);
}
.btn-lime:active { transform: scale(0.97); }

.waitform {
  display: flex;
  gap: 10px;
  margin: 34px 0 0;
  max-width: 460px;
}
.waitform input {
  flex: 1;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  background: var(--surface-2);
  border: 1.5px solid var(--line);
  border-radius: var(--r-pill);
  padding: 13px 20px;
  outline: none;
  transition: border-color 0.2s var(--ease-out);
  min-width: 0;
}
.waitform input::placeholder { color: var(--muted-2); }
.waitform input:focus { border-color: var(--ink); }

.wait-note {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin: 18px 0 0;
}
.wait-note.done { color: var(--lime-deep); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.teaser-foot {
  align-self: end;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
}
.teaser-foot p {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--muted-2);
  margin: 0;
}
.teaser-foot a { transition: color 0.2s var(--ease-out); }
.teaser-foot a:hover { color: var(--ink); }

/* --------------------------------------------------------------------------
   Reveal (staggered entrance)
   -------------------------------------------------------------------------- */

/* JS orchestrates entrance so it can wait for the board to settle.
   No-JS falls back to everything visible (no flash: the .js flag is set
   synchronously in <head> before first paint). */
.reveal { opacity: 0; transform: translateY(9px); }
html:not(.js) .reveal { opacity: 1; transform: none; }
.reveal.in { animation: rise 0.7s var(--ease-out) forwards; }
@keyframes rise {
  to { opacity: 1; transform: none; }
}

/* Headline — plain, readable; each line breaks cleanly (no mid-word wrap) */
.flap-line { display: block; white-space: nowrap; }

/* Turn line — the lime highlighter strokes in left→right */
.turn .sweep::before {
  transform: skewX(-6deg) scaleX(0);
  transform-origin: left center;
}
html:not(.js) .turn .sweep::before { transform: skewX(-6deg) scaleX(1); }
.turn.in .sweep::before {
  animation: sweepdraw 0.5s var(--ease-out) 0.12s forwards;
}
@keyframes sweepdraw {
  to { transform: skewX(-6deg) scaleX(1); }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .turn .sweep::before { transform: skewX(-6deg) scaleX(1) !important; }
}

@media (max-width: 560px) {
  .teaser { padding: 28px 22px 24px; }
  .waitform { flex-direction: column; }
  .teaser-foot { flex-direction: column; gap: 8px; }
}
