@font-face { font-family: "Space Grotesk"; src: url("/fonts/space-grotesk.woff2") format("woff2"); font-weight: 500 700; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("/fonts/figtree.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }

/* Morgan tokens, shared with the app (askmorgan app/globals.css). */
:root {
  --paper: #f3f0e8;
  --surface: #fffdf8;
  --sunk: #ebe7dc;
  --ink: #111015;
  --ink-soft: #555159;
  --line: rgb(17 16 21 / 0.09);
  --mint: #b8f1d6;
  --mint-ink: #1d5e40;
  --amber: #dd902e;
  --amber-ink: #8a4f0c;
  --c1: #2a8a5e;
  --display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --body: "Figtree", ui-sans-serif, system-ui, sans-serif;
  /* 8px rhythm */
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s6: 48px; --s8: 64px; --s12: 96px; --s16: 128px;
  --page: min(1180px, 100% - 2 * var(--s3));
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--paper); color: var(--ink); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--body); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
h1, h2, p, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
p, li, figcaption { text-wrap: pretty; } /* no one-word last lines */
.ask, .headline, .example-ask { text-wrap: balance; }
a { color: inherit; text-underline-offset: 3px; }
::selection { background: var(--mint); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* The app's highlighter: mint under the lower half of the line. */
mark, .headline strong {
  color: inherit;
  background: linear-gradient(transparent 58%, var(--mint) 58%, var(--mint) 92%, transparent 92%);
}

h1, h2 { font-family: var(--display); font-weight: 600; letter-spacing: -0.03em; line-height: 1.02; text-wrap: balance; }
h1 { font-size: clamp(48px, 7.4vw, 104px); }
h2 { font-size: clamp(32px, 4.2vw, 56px); max-width: 18ch; }

/* Header */
.top { width: var(--page); margin: 0 auto; padding: var(--s3) 0; display: flex; justify-content: space-between; align-items: center; }
.wordmark { display: inline-flex; align-items: center; gap: var(--s1); font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: -0.02em; text-decoration: none; }
.wordmark svg { width: 32px; height: 32px; }
.top-link { font-weight: 600; font-size: 15px; padding: var(--s1) var(--s2); border-radius: 999px; border: 1px solid var(--line); text-decoration: none; }
.top-link:hover { background: var(--surface); }

/* Hero */
.hero {
  width: var(--page); margin: 0 auto; padding: var(--s8) 0 var(--s12);
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: var(--s8); align-items: center;
}
.lede { margin-top: var(--s3); max-width: 34em; font-size: clamp(18px, 1.6vw, 20px); color: var(--ink-soft); }
.fine { margin-top: var(--s2); font-size: 14px; color: var(--ink-soft); }

/* Waitlist */
.waitlist { margin-top: var(--s4); display: flex; flex-wrap: wrap; gap: var(--s1); max-width: 520px; }
.waitlist input[type="email"] {
  flex: 1 1 16rem; min-width: 0; height: 56px; padding: 0 var(--s2);
  font: inherit; color: var(--ink); background: var(--surface);
  border: 1px solid rgb(17 16 21 / 0.18); border-radius: 14px;
}
.waitlist input[type="email"]::placeholder { color: #75707a; }
.waitlist button {
  flex: 0 0 auto; height: 56px; padding: 0 var(--s3);
  font: inherit; font-weight: 600; color: var(--paper); background: var(--ink);
  border: 0; border-radius: 14px; cursor: pointer;
}
.waitlist button:hover { background: #2a2830; }
.waitlist button:disabled { opacity: 0.6; cursor: progress; }
.waitlist-status { flex-basis: 100%; min-height: 1.6em; font-size: 15px; font-weight: 500; color: var(--mint-ink); }
.waitlist-status:empty { min-height: 0; }

/* Signature: a real-looking Morgan answer */
.answer-card {
  position: relative; padding: var(--s4); background: var(--surface); border-radius: 28px;
  box-shadow: 0 1px 0 var(--line), 0 24px 64px -24px rgb(17 16 21 / 0.22);
  rotate: 1.2deg;
}
.card-tag {
  position: absolute; top: var(--s3); right: var(--s3);
  font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--ink-soft); background: var(--sunk); padding: 2px var(--s1); border-radius: 6px;
}
.ask {
  margin-left: auto; margin-top: var(--s4); width: fit-content; max-width: 85%;
  padding: 12px var(--s2); background: var(--sunk); border-radius: 18px 18px 4px 18px; font-size: 15px;
}
.headline { margin-top: var(--s3); font-family: var(--display); font-weight: 500; font-size: clamp(20px, 2vw, 24px); line-height: 1.3; letter-spacing: -0.01em; }
.headline strong { font-weight: 600; }

.expiry { margin-top: var(--s3); display: grid; gap: 12px; font-size: 14px; font-variant-numeric: tabular-nums; }
.expiry li {
  display: grid; grid-template-columns: 1fr auto; align-items: baseline; column-gap: var(--s2); row-gap: 6px;
  padding-bottom: 12px; border-bottom: 1px solid var(--line);
}
.expiry li:nth-child(1) { --days: 22; --tone: var(--amber); }
.expiry li:nth-child(2) { --days: 34; }
.expiry li:nth-child(3) { --days: 46; }
.expiry li:nth-child(4) { --days: 55; border-bottom: 0; padding-bottom: 0; }
.who { font-weight: 600; }
.who small { font-weight: 400; color: var(--ink-soft); font-size: 13px; margin-left: 6px; }
.when { color: var(--ink-soft); }
.bar { height: 8px; border-radius: 4px; background: var(--tone, var(--c1)); width: calc(var(--days) / 60 * 100%); transform-origin: left; }
.left { font-size: 13px; color: var(--ink-soft); }
.expiry li:nth-child(1) .left { color: var(--amber-ink); font-weight: 600; }
.source {
  margin-top: var(--s3); display: inline-flex; gap: 6px; font-size: 13px; color: var(--ink-soft);
  padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px;
}

/* One earned moment: the card lands, then the bars grow in order. */
@media (prefers-reduced-motion: no-preference) {
  html.js .answer-card { opacity: 0; transform: translateY(24px) scale(0.98); }
  html.js .answer-card.is-in { opacity: 1; transform: none; transition: opacity 0.5s ease-out, transform 0.7s linear(0, 0.36, 0.86, 1.04, 1.01, 1); }
  html.js .answer-card .bar { transform: scaleX(0); }
  html.js .answer-card.is-in .bar { transform: none; transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); }
  html.js .answer-card.is-in li:nth-child(1) .bar { transition-delay: 0.45s; }
  html.js .answer-card.is-in li:nth-child(2) .bar { transition-delay: 0.55s; }
  html.js .answer-card.is-in li:nth-child(3) .bar { transition-delay: 0.65s; }
  html.js .answer-card.is-in li:nth-child(4) .bar { transition-delay: 0.75s; }
}

/* Examples */
.examples, .trust, .join { width: var(--page); margin: 0 auto; padding: var(--s12) 0; border-top: 1px solid var(--line); }
.example-list { margin-top: var(--s6); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s3); }
.example-list li { padding: var(--s3); background: var(--surface); border-radius: 20px; display: grid; align-content: start; gap: 12px; }
.example-tag { font-size: 13px; font-weight: 600; color: var(--mint-ink); }
.example-ask { font-family: var(--display); font-weight: 500; font-size: 21px; line-height: 1.3; letter-spacing: -0.01em; }
.example-gets { color: var(--ink-soft); font-size: 16px; }

/* Trust */
.trust-list { margin-top: var(--s6); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s4); }
.trust-list li { padding-top: var(--s2); border-top: 2px solid var(--ink); font-family: var(--display); font-weight: 500; font-size: 20px; line-height: 1.35; letter-spacing: -0.01em; }

/* Join */
.join { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s4); align-items: end; }
.join .waitlist { margin-top: 0; justify-self: end; width: 100%; }

/* Footer */
.bottom {
  width: var(--page); margin: 0 auto; padding: var(--s4) 0 var(--s6);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s2);
  font-size: 14px; color: var(--ink-soft); border-top: 1px solid var(--line);
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: var(--s4); gap: var(--s6); }
  .answer-card { rotate: 0deg; }
  .example-list, .trust-list { grid-template-columns: 1fr; }
  .join { grid-template-columns: 1fr; }
  .join .waitlist { justify-self: stretch; }
  .examples, .trust, .join { padding: var(--s8) 0; }
}
@media (max-width: 480px) {
  .who small { display: block; margin-left: 0; }
  .answer-card { padding: var(--s3); border-radius: 22px; }
  .waitlist button { flex: 1 1 100%; }
}
