/* The public site (Stage 2 pre-launch): the brand palette and the review page's Figma tokens. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/site/assets/inter.woff2") format("woff2");
}

:root {
  --page: #eef6f8;
  --card: #fff;
  --line: #d9ebef;
  --ink: #111827;
  --primary: #22243b;
  --text: #17182d;
  --text-2: #4f5962;
  --action: #c65e20;
  --cream: #fff7ed;
  --cream-line: #fed7aa;
  --ember-text: #a84e1c;
  --error: #b42318;
  --shadow: 0 10px 30px rgba(17, 24, 39, 0.06);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family:
    "Inter",
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3 {
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

h1 {
  font-size: clamp(34px, 6vw, 54px);
  font-weight: 700;
}

h2 {
  font-size: clamp(24px, 3.4vw, 30px);
  font-weight: 700;
}

h3 {
  font-size: 18px;
  font-weight: 650;
}

a {
  color: var(--primary);
}

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

.narrow {
  max-width: 640px;
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.small {
  font-size: 14px;
  color: var(--text-2);
}

/* Header and footer */
.top {
  padding: 18px 0;
}

.top-row,
.foot-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 650;
  font-size: 20px;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.mark {
  display: block;
  flex: none;
}

.foot {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
  margin-top: 24px;
  font-size: 14px;
  color: var(--text-2);
}

.foot-row {
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 12px 28px;
}

.foot a {
  color: var(--text-2);
}

/* Buttons and fields */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 20px;
  border-radius: 10px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  flex: none;
}

.button.small {
  height: 40px;
  padding: 0 14px;
  font-size: 15px;
}

.button.primary {
  background: var(--primary);
  color: #fff;
}

.button.outline {
  background: var(--card);
  border-color: var(--line);
  color: var(--primary);
}

input[type="email"],
input[type="text"] {
  height: 48px;
  min-width: 0;
  flex: 1;
  padding: 0 14px;
  border: 1px solid #c3d6db;
  border-radius: 10px;
  background: var(--card);
  color: var(--text);
  font: inherit;
}

input[aria-invalid="true"] {
  border-color: var(--error);
}

.button:focus-visible,
input:focus-visible,
a:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* The join form */
.join {
  margin-top: 28px;
  max-width: 520px;
}

.join-row,
.share {
  display: flex;
  gap: 10px;
}

.error {
  margin-top: 8px;
  color: var(--error);
  font-size: 14px;
  font-weight: 500;
}

.notice {
  margin-top: 10px;
  font-size: 13px;
  color: var(--text-2);
}

/* A field people never see; a bot that fills it is thanked and ignored. */
.trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Hero */
.hero {
  padding: 40px 0 56px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.85fr);
  gap: 48px;
  align-items: center;
}

.lede {
  margin-top: 18px;
  font-size: 18px;
  color: var(--text-2);
}

.hero .small {
  margin-top: 18px;
}

.tomorrow {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.tomorrow h2 {
  margin-top: 6px;
  font-size: 22px;
}

.tomorrow ul {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
}

.tomorrow li {
  display: flex;
  gap: 14px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.when {
  flex: none;
  width: 88px;
  color: var(--text-2);
  font-size: 14px;
  padding-top: 1px;
}

.badge {
  display: inline-block;
  margin-top: 14px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--cream);
  border: 1px solid var(--cream-line);
  color: var(--ember-text);
  font-size: 14px;
  font-weight: 600;
}

/* Sections */
.how,
.who,
.founding,
.again {
  padding: 48px 0;
}

.cards {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  counter-reset: step;
}

.cards li {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
  counter-increment: step;
}

.cards li::before {
  content: counter(step);
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-weight: 650;
  font-size: 15px;
}

.cards p {
  margin-top: 8px;
  color: var(--text-2);
}

.promise {
  background: var(--cream);
  border-top: 1px solid var(--cream-line);
  border-bottom: 1px solid var(--cream-line);
  padding: 40px 0;
}

.promise p {
  font-size: clamp(22px, 3.4vw, 30px);
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--ink);
  max-width: 780px;
}

.who p {
  font-size: 18px;
  max-width: 760px;
}

.founding p {
  margin-top: 12px;
  font-size: 18px;
  max-width: 760px;
}

.again {
  border-top: 1px solid var(--line);
}

/* Short pages: joined, leave, not found */
.message {
  padding: 56px 0 72px;
}

.message p {
  margin-top: 16px;
}

.message form,
.message .share {
  margin-top: 24px;
}

/* The privacy notice */
.prose {
  padding: 32px 0 56px;
}

.prose h2 {
  margin-top: 32px;
  font-size: 22px;
}

.prose p {
  margin-top: 12px;
}

@media (max-width: 760px) {
  .hero {
    padding-top: 16px;
  }

  .hero-grid,
  .cards {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-grid {
    gap: 36px;
  }

  .join-row,
  .share {
    flex-direction: column;
  }

  .join-row input,
  .share input {
    flex: none;
  }

  .button {
    width: 100%;
  }

  .top .button.small {
    width: auto;
  }
}
