/* Values from the blob brand book (san-francisco/design, brand.json) */

@font-face {
  font-family: Jost;
  src: url("fonts/Jost-Variable.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --gummy: #17c765;
  --klein: #2f3dff;
  --grape: #7a48f0;
  --gum: #ff5aa6;
  --acid: #d5ff3f;
  --sun: #ffd92e;

  --page: #f4f4f1;
  --tint: #ecf5ed;
  --lift: #ffffff;
  --soft: #11111312;
  --line: #11111329;
  --edge: #11111375;
  --ink: #111113;
  --quiet: #636363;
  --go: #111113;
  --go-word: #f4f4f1;

  --control: 52px;
  --target: 44px;
  --box: 14px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #111113;
    --tint: #0f1811;
    --lift: #202023;
    --soft: #f4f4f112;
    --line: #f4f4f129;
    --edge: #f4f4f175;
    --ink: #f4f4f1;
    --quiet: #a2a2a1;
    --go: #f4f4f1;
    --go-word: #111113;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: Jost, system-ui, sans-serif;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.45;
}

a { color: inherit; }

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

/* ── Hero ── */

.hero {
  background: var(--tint);
  border-radius: 0 0 48px 48px;
  padding-bottom: 72px;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
}

.logo { display: block; height: 34px; width: auto; }

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: center;
  padding-top: 48px;
}

.hero-blob {
  width: 100%;
  height: auto;
  animation: bob 4s ease-in-out infinite;
}

@keyframes bob {
  0%, 100% { translate: 0 0; rotate: 0deg; }
  50% { translate: 0 -10px; rotate: -2deg; }
}

h1 {
  margin: 0 0 20px;
  font-weight: 700;
  font-size: clamp(38px, 6.4vw, 68px);
  line-height: 0.98;
  letter-spacing: -0.035em;
}

h2 {
  margin: 0 0 16px;
  font-weight: 700;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  max-width: 20em;
}

h3 { margin: 12px 0 6px; font-size: 22px; line-height: 1.15; letter-spacing: -0.01em; }

.lead { margin: 0 0 24px; font-size: 19px; max-width: 34em; }

.kicker { margin: 0 0 8px; font-size: 14px; font-weight: 600; color: var(--quiet); }

/* ── Form ── */

.signup { margin-top: 8px; max-width: 560px; }

.label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 600; }

.row { display: flex; gap: 10px; flex-wrap: wrap; }

.field {
  flex: 1 1 240px;
  height: var(--control);
  border: 0;
  border-radius: var(--box);
  background: var(--lift);
  color: var(--ink);
  padding: 0 16px;
  font: inherit;
  box-shadow: inset 0 0 0 1.5px var(--edge);
}
.field::placeholder { color: var(--quiet); }
.field:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--ink); }

.signup .quiet { margin: 10px 0 0; }

.hidden { position: absolute; left: -9999px; }

/* ── Buttons: pills that squish ── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: var(--control);
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: var(--go);
  color: var(--go-word);
  font: inherit;
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: scale 180ms cubic-bezier(0.3, 1.6, 0.5, 1);
}
.btn:active { scale: 0.94; transition-duration: 60ms; }
.btn-quiet { background: var(--soft); color: var(--ink); }
.btn-small { height: var(--target); padding: 0 16px; font-size: 14px; }

@media (prefers-reduced-motion: reduce) {
  .btn, .btn:active { transition: none; scale: none; }
  .hero-blob { animation: none; }
}

/* ── Sections ── */

.block { padding-top: 88px; }

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
}

.card {
  background: var(--lift);
  border-radius: 32px;
  padding: 24px 24px 28px;
  box-shadow: inset 0 0 0 1.5px var(--line);
}
.card img { display: block; width: 84px; height: auto; }
.card p { margin: 0; color: var(--quiet); }

.split {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: center;
}

.pills { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }

.pill {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 60px;
  padding: 0 22px 0 16px;
  border-radius: 999px;
  background: var(--soft);
  font-size: 19px;
  font-weight: 600;
}
.pill em { margin-left: auto; font-style: normal; font-size: 14px; font-weight: 400; color: var(--quiet); }
.pill.is-now { background: var(--lift); box-shadow: inset 0 0 0 2px var(--ink); }

.dot { width: 22px; height: 22px; border-radius: 50%; background: var(--c); flex: none; }

.story {
  display: flex;
  gap: 32px;
  align-items: center;
  background: var(--tint);
  border-radius: 40px;
  padding: 40px;
}
.story img { width: 120px; height: auto; flex: none; }
.story .lead { margin-bottom: 20px; }

.foot {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 56px;
  padding-bottom: 40px;
}

.quiet { font-size: 14px; line-height: 1.4; color: var(--quiet); }

/* ── Small screens ── */

@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; gap: 24px; padding-top: 16px; }
  .hero-blob { order: -1; width: 140px; }
  .cards { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .story { flex-direction: column; align-items: flex-start; padding: 28px; }
  .story img { width: 96px; }
  .block { padding-top: 64px; }
}

@media (max-width: 480px) {
  .signup .btn { width: 100%; }
  .hero { border-radius: 0 0 32px 32px; padding-bottom: 48px; }
}
