/* Plateful marketing site.
   Tokens are copied from src/styles/tokens.css and src/styles/global.css
   so the site and the app read as one product. */

@font-face {
  font-family: 'Archivo';
  src: url('../fonts/archivo-latin-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Archivo';
  src: url('../fonts/archivo-latin-600-normal.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'Archivo';
  src: url('../fonts/archivo-latin-800-normal.woff2') format('woff2');
  font-weight: 800;
  font-display: swap;
}
@font-face {
  font-family: 'Archivo Black';
  src: url('../fonts/archivo-black-latin-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #14161b;
  --bg-deep: #111317;
  --surface: #20232a;
  --surface-raised: #292d35;
  --text: #f3f4ec;
  --text-2: #a5abb4;
  --border: #383c44;
  --lime: #d4fa5b;
  --lime-hover: #e2ff86;
  --on-lime: #182004;
  --lime-dim: rgba(212, 250, 91, 0.14);
  --purple: #b88af4;
  --on-purple: #1d0f33;
  --purple-dim: rgba(184, 138, 244, 0.16);
  --warning: #ffc861;
  --r-control: 10px;
  --r-card: 16px;
  --touch: 44px;
  --dur: 160ms;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --focus: 0 0 0 3px var(--bg), 0 0 0 5px var(--lime);
  --font-body: 'Archivo', 'Segoe UI', Arial, sans-serif;
  --font-display: 'Archivo Black', 'Arial Black', 'Segoe UI', Arial, sans-serif;
  --gutter: clamp(20px, 5vw, 64px);
  --cut: clamp(36px, 7vw, 112px);
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --dur: 0ms;
  }
  html {
    scroll-behavior: auto !important;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

button,
input {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

:focus-visible {
  outline: none;
  box-shadow: var(--focus);
  border-radius: 6px;
}

/* Sections and messages that receive focus from script only. */
[tabindex='-1']:focus {
  box-shadow: none;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

[hidden] {
  display: none !important;
}

.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;
}

/* Wording switch: "Create account" or "Request an invite". */
body[data-mode='signup'] [data-when='invite'],
body[data-mode='invite'] [data-when='signup'] {
  display: none;
}

.wrap {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.display {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 0.9;
  margin: 0;
}

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

.small {
  font-size: 0.875rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--touch);
  padding: 0 18px;
  border-radius: var(--r-control);
  border: 2px solid var(--border);
  background: var(--surface-raised);
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition:
    transform var(--dur) var(--ease),
    background var(--dur),
    border-color var(--dur);
}

.btn:active {
  transform: scale(0.97);
}

.btn:hover {
  border-color: var(--text-2);
}

.btn-primary {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--on-lime);
}

.btn-primary:hover {
  background: var(--lime-hover);
  border-color: var(--lime-hover);
}

.btn-quiet {
  background: transparent;
  border-color: transparent;
}

.btn-quiet:hover {
  background: var(--surface-raised);
  border-color: transparent;
}

.btn-lg {
  min-height: 56px;
  padding: 0 24px;
  font-size: 1.05rem;
}

.btn-block {
  width: 100%;
}

/* The parallelogram button from the app's "Start cooking". */
.btn-slant {
  border: 0;
  border-radius: 6px;
  min-height: 68px;
  padding: 0 44px;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(1.25rem, 3.4vw, 1.75rem);
  letter-spacing: 0.01em;
  clip-path: polygon(3% 0, 100% 0, 97% 100%, 0 100%);
}

.btn-slant:focus-visible {
  box-shadow: none;
  outline: 3px solid var(--text);
  outline-offset: -6px;
}

/* ---------- Header ---------- */
.site-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-block: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-right: auto;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.75rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand svg {
  width: 26px;
  height: 26px;
  fill: var(--lime);
}

.head-link {
  display: inline-flex;
  align-items: center;
  min-height: var(--touch);
  padding: 0 12px;
  font-weight: 600;
  text-decoration: none;
}

.head-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-bottom: calc(var(--cut) + clamp(56px, 8vw, 104px));
}

.hero-inner {
  position: relative;
}

.hero-title {
  font-size: clamp(3.5rem, 15.5vw, 11.5rem);
  line-height: 0.84;
  letter-spacing: -0.035em;
  position: relative;
  z-index: 1;
}

.hero-title a {
  display: block;
  width: fit-content;
  text-decoration: none;
  transition: color var(--dur);
}

.hero-title a:hover {
  color: var(--lime);
}

/* The film runs the full width of the page; the headline straddles its foot. */
.wide-film {
  position: relative;
  height: 56.25vw;
  background: #0d0e11 url('../media/hero-poster.jpg') center / cover no-repeat;
  overflow: hidden;
}

.wide-film video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Keep the top of the picture; anything trimmed comes off the faded foot. */
  object-position: center top;
  display: block;
}

/* Fades the foot of the film into the page so the headline reads on any frame. */
.wide-film::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 48%;
  background: linear-gradient(
    to top,
    var(--bg) 0,
    rgba(20, 22, 27, 0.92) 11%,
    rgba(20, 22, 27, 0.58) 30%,
    rgba(20, 22, 27, 0.22) 58%,
    rgba(20, 22, 27, 0) 100%
  );
  pointer-events: none;
}

.film-toggle {
  position: absolute;
  z-index: 2;
  top: 14px;
  right: max(14px, calc(var(--gutter) - 8px));
  width: var(--touch);
  height: var(--touch);
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(20, 22, 27, 0.78);
  color: var(--text);
  cursor: pointer;
}

.film-toggle:hover {
  background: var(--bg);
}

.film-toggle:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

.film-toggle .i-play,
.film-toggle[aria-pressed='true'] .i-pause {
  display: none;
}

.film-toggle[aria-pressed='true'] .i-play {
  display: block;
}

.hero-wide .hero-title {
  margin-top: -0.42em;
}

.hero-wide .hero-lede {
  margin-top: clamp(20px, 4vw, 32px);
}

@media (min-width: 940px) {
  .wide-film::after {
    height: 60%;
  }

  .wide-film {
    height: min(56.25vw, calc(100svh - 290px));
    min-height: 340px;
  }

  .hero-wide .hero-title {
    display: flex;
    gap: 0.26em;
    white-space: nowrap;
    font-size: min(5.5vw, 5rem);
    margin-top: -0.6em;
  }

  .wide-row {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    column-gap: clamp(40px, 5vw, 72px);
    align-items: start;
    margin-top: 32px;
  }

  .hero-wide .hero-lede,
  .hero-wide .import {
    margin-top: 0;
  }
}

.hero-lede {
  max-width: 34em;
  margin-top: clamp(24px, 4vw, 40px);
  font-size: clamp(1.125rem, 1.9vw, 1.375rem);
  position: relative;
  z-index: 1;
}

.import {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin-top: 28px;
}

.import-row {
  display: flex;
  gap: 8px;
  padding: 8px;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--r-card);
  transition: border-color var(--dur);
}

.import-row:focus-within {
  border-color: var(--lime);
}

.import-input {
  flex: 1;
  min-width: 0;
  min-height: 52px;
  padding: 0 12px;
  background: transparent;
  border: 0;
  font-size: 1.0625rem;
}

.import-input::placeholder {
  color: var(--text-2);
}

.import-input:focus-visible {
  box-shadow: none;
}

.import-error {
  margin-top: 10px;
  color: var(--warning);
  font-weight: 600;
}

.samples {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 0.9375rem;
  font-weight: 600;
  transition:
    background var(--dur),
    border-color var(--dur);
}

button.chip:hover {
  background: var(--surface-raised);
  border-color: var(--text-2);
}

.progress {
  display: grid;
  gap: 6px;
  margin-top: 18px;
}

.progress li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-2);
  font-weight: 600;
}

.progress li::before {
  content: '';
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--border);
  flex: none;
}

.progress li.is-active {
  color: var(--text);
}

.progress li.is-active::before {
  border-color: var(--lime);
  border-top-color: transparent;
  animation: spin 0.7s linear infinite;
}

.progress li.is-done {
  color: var(--text);
}

.progress li.is-done::before {
  background: var(--lime);
  border-color: var(--lime);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.demo-note {
  margin-top: 14px;
}

/* ---------- Slanted bands ---------- */
.band {
  position: relative;
  margin-top: calc(var(--cut) * -1);
  padding-top: calc(var(--cut) + clamp(48px, 7vw, 96px));
  padding-bottom: calc(var(--cut) + clamp(56px, 8vw, 112px));
  clip-path: polygon(0 var(--cut), 100% 0, 100% 100%, 0 100%);
}

.band-deep {
  background: var(--bg-deep);
}

.band-purple {
  background: var(--purple);
  color: var(--on-purple);
}

.band-base {
  background: var(--bg);
}

.band-last {
  padding-bottom: clamp(56px, 8vw, 112px);
}

.split {
  display: grid;
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

@media (min-width: 940px) {
  .split {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  }
}

.band-title {
  font-size: clamp(3rem, 10vw, 7.5rem);
}

.band-copy {
  max-width: 30em;
  margin-top: 20px;
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
}

.points {
  display: grid;
  gap: 10px;
  max-width: 30em;
  margin-top: 24px;
}

.points li {
  padding-left: 22px;
  position: relative;
}

.points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 12px;
  height: 12px;
  background: currentColor;
  clip-path: polygon(40% 0, 100% 0, 60% 100%, 0 100%);
}

/* ---------- Demo panels (mirror the app's cards) ---------- */
.panel {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: clamp(16px, 2.6vw, 28px);
}

.band-purple .panel {
  border-color: var(--on-purple);
  box-shadow: 10px 10px 0 var(--on-purple);
}

.recipe-head {
  display: flex;
  gap: 16px;
  align-items: center;
}

/* The recipe's photo, framed the way the app shows it. */
.recipe-photo {
  position: relative;
  aspect-ratio: 16 / 9;
  max-height: 260px;
  width: 100%;
  margin-bottom: 16px;
  border-radius: 14px;
  background: hsl(28 55% 24%);
  overflow: hidden;
}

.recipe-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.art-stripes {
  position: absolute;
  right: -10px;
  bottom: 14px;
  width: 72px;
  height: 40px;
  background: repeating-linear-gradient(-60deg, var(--lime) 0 9px, transparent 9px 18px);
  clip-path: polygon(30% 0, 100% 0, 70% 100%, 0 100%);
}

.recipe-title {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(1.35rem, 3vw, 1.9rem);
  line-height: 1;
  letter-spacing: -0.01em;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: 8px;
  color: var(--text-2);
  font-size: 0.9375rem;
}

.flag {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-top: 18px;
  padding: 12px 14px;
  border-radius: var(--r-control);
  border: 1px solid var(--warning);
  color: var(--warning);
  font-size: 0.9375rem;
}

.flag p {
  flex: 1 1 16em;
}

.flag strong {
  font-weight: 800;
}

.flag.is-clear {
  border-color: var(--border);
  color: var(--text-2);
}

.list-label {
  margin-top: 20px;
  font-size: 0.9375rem;
  color: var(--text-2);
}

.ings {
  margin-top: 8px;
}

.ings li {
  border-top: 1px solid var(--border);
  transition:
    opacity 260ms var(--ease),
    transform 260ms var(--ease);
}

.ings li.is-waiting {
  opacity: 0;
  transform: translateY(8px);
}

@media (prefers-reduced-motion: reduce) {
  .ings li {
    transition: none;
  }
}

.tick {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: var(--touch);
  padding: 6px 0;
  cursor: pointer;
}

.tick input {
  appearance: none;
  flex: none;
  width: 22px;
  height: 22px;
  margin: 0;
  border: 2px solid var(--text-2);
  border-radius: 6px;
  background: transparent;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.tick input::after {
  content: '';
  width: 10px;
  height: 6px;
  border-left: 3px solid var(--on-lime);
  border-bottom: 3px solid var(--on-lime);
  transform: translateY(-1px) rotate(-45deg) scale(0);
  transition: transform var(--dur) var(--ease);
}

.tick input:checked {
  background: var(--lime);
  border-color: var(--lime);
}

.tick input:checked::after {
  transform: translateY(-1px) rotate(-45deg) scale(1);
}

.tick input:checked + .tick-text {
  color: var(--text-2);
  text-decoration: line-through;
}

.tick-text {
  flex: 1;
}

.qty {
  font-weight: 800;
}

.qty-unclear {
  color: var(--warning);
  font-weight: 800;
}

.tag {
  flex: none;
  font-size: 0.8125rem;
  color: var(--text-2);
}

/* Cook */
.cook-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.stepper {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
}

.stepper-btn {
  width: var(--touch);
  height: var(--touch);
  border-radius: var(--r-control);
  border: 2px solid var(--border);
  background: var(--surface-raised);
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1;
}

.stepper-btn:hover {
  border-color: var(--text-2);
}

.stepper-value {
  min-width: 5.5em;
  text-align: center;
}

.bar {
  height: 6px;
  margin-top: 16px;
  border-radius: 999px;
  background: var(--surface-raised);
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: var(--purple);
  border-radius: 999px;
  transition: width 260ms var(--ease);
}

.step-count {
  font-weight: 800;
}

.step-text {
  margin-top: 20px;
  min-height: 5.6em;
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  font-weight: 600;
  line-height: 1.3;
}

.step-ings {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
  min-height: 36px;
}

.timer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  min-height: var(--touch);
}

.timer-clock {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 2rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  min-width: 3.4em;
}

.timer.is-up .timer-clock {
  color: var(--lime);
}

.cook-nav {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}

.cook-nav .btn {
  flex: 1;
}

/* Shop */
.shop-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.seg {
  display: inline-flex;
  padding: 4px;
  border-radius: 12px;
  background: var(--bg);
  border: 1px solid var(--border);
}

.seg label {
  position: relative;
  cursor: pointer;
}

.seg input {
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
  cursor: pointer;
}

.seg span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 16px;
  border-radius: 8px;
  font-weight: 700;
  transition:
    background var(--dur),
    color var(--dur);
}

.seg input:checked + span {
  background: var(--lime);
  color: var(--on-lime);
}

.seg input:focus-visible + span {
  box-shadow: var(--focus);
}

.also {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding: 4px 8px 4px 12px;
  border: 1px dashed var(--border);
  border-radius: var(--r-control);
}

.also-thumb {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
}

.aisle {
  margin: 20px 0 0;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  text-transform: uppercase;
  font-size: 1rem;
  letter-spacing: 0.01em;
  color: var(--purple);
}

.shop-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}

.shop-foot p {
  flex: 1 1 18em;
}

.estimate {
  margin-top: 6px;
  color: var(--text-2);
  font-size: 0.875rem;
}

/* ---------- Plan demo ---------- */
.week {
  display: grid;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.week li {
  display: grid;
  grid-template-columns: 3.2em 44px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 62px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--r-control);
  background: var(--bg);
}

.week li.is-empty {
  border-style: dashed;
  background: transparent;
  color: var(--text-2);
}

.week-day {
  font-family: var(--font-display);
  font-style: italic;
  text-transform: uppercase;
  color: var(--purple);
}

.week img,
.week-gap {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
}

.week-gap {
  border: 1px dashed var(--border);
}

.week-title {
  display: block;
  font-weight: 800;
}

.week-meta {
  display: block;
  color: var(--text-2);
  font-size: 0.875rem;
}

.week li.is-new {
  animation: week-in 320ms var(--ease) both;
}

@keyframes week-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}

.week-note {
  margin-top: 14px;
}

@media (prefers-reduced-motion: reduce) {
  .week li.is-new {
    animation: none;
  }
}

/* ---------- Lower sections ---------- */
.h2 {
  font-size: clamp(2rem, 5.4vw, 3.75rem);
}

.sources {
  margin-top: clamp(24px, 4vw, 40px);
  border-bottom: 1px solid var(--border);
}

.source {
  display: grid;
  gap: 4px 32px;
  padding: 18px 0;
  border-top: 1px solid var(--border);
}

@media (min-width: 720px) {
  .source {
    grid-template-columns: 12em minmax(0, 1fr);
  }
}

.source h3 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 800;
}

.source p {
  max-width: 44em;
  color: var(--text-2);
}

.lower {
  margin-top: clamp(64px, 9vw, 120px);
}

.phones {
  display: grid;
  gap: clamp(24px, 4vw, 56px);
  margin-top: clamp(24px, 4vw, 40px);
}

@media (min-width: 720px) {
  .phones {
    grid-template-columns: 1fr 1fr;
  }
}

.phones h3 {
  margin: 0 0 10px;
  font-size: 1.125rem;
  font-weight: 800;
}

.steps {
  counter-reset: step;
  display: grid;
  gap: 8px;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 2em;
  color: var(--text-2);
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  font-weight: 800;
  color: var(--text);
}

.faq {
  max-width: 46em;
  margin-top: clamp(24px, 4vw, 40px);
  border-bottom: 1px solid var(--border);
}

.faq details {
  border-top: 1px solid var(--border);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
  padding: 12px 0;
  font-size: 1.125rem;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '';
  flex: none;
  width: 12px;
  height: 12px;
  border-right: 3px solid var(--lime);
  border-bottom: 3px solid var(--lime);
  transform: translateY(-3px) rotate(45deg);
  transition: transform var(--dur) var(--ease);
}

.faq details[open] summary::after {
  transform: translateY(3px) rotate(-135deg);
}

.faq details p {
  padding: 0 0 20px;
  color: var(--text-2);
}

.closer {
  position: relative;
  margin-top: clamp(72px, 10vw, 140px);
}

.closer-title {
  font-size: clamp(2.5rem, 9vw, 7rem);
}

.closer .btn-slant {
  margin-top: 28px;
}

.site-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  margin-top: clamp(64px, 9vw, 120px);
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--text-2);
  font-size: 0.9375rem;
}

.site-foot p {
  flex: 1 1 24em;
}

.site-foot a {
  text-underline-offset: 4px;
}

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

/* ---------- Signup page ---------- */
.signup {
  display: grid;
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
  padding-top: clamp(24px, 5vw, 64px);
  padding-bottom: clamp(56px, 8vw, 112px);
}

@media (min-width: 940px) {
  .signup {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  }
}

.signup-title {
  font-size: clamp(2.75rem, 8.4vw, 6.25rem);
}

.signup-lede {
  max-width: 30em;
  margin-top: 18px;
  font-size: 1.125rem;
  color: var(--text-2);
}

.form {
  display: grid;
  gap: 18px;
  max-width: 440px;
  margin-top: 28px;
}

.field label {
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
}

.field-box {
  display: flex;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--r-control);
  transition: border-color var(--dur);
}

.field-box:focus-within {
  border-color: var(--lime);
}

.field-box.is-bad {
  border-color: var(--warning);
}

.input {
  flex: 1;
  min-width: 0;
  min-height: 52px;
  padding: 0 14px;
  background: transparent;
  border: 0;
}

.input:focus-visible {
  box-shadow: none;
}

.show-btn {
  min-width: 64px;
  padding: 0 14px;
  background: transparent;
  border: 0;
  border-left: 1px solid var(--border);
  font-weight: 700;
  color: var(--text-2);
}

.show-btn:hover {
  color: var(--text);
}

.hint {
  margin-top: 6px;
  font-size: 0.875rem;
  color: var(--text-2);
}

.field-error {
  margin-top: 6px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--warning);
}

.form-alt {
  color: var(--text-2);
}

.form-alt a {
  color: var(--text);
  font-weight: 700;
  text-underline-offset: 4px;
}

.done {
  max-width: 440px;
  margin-top: 28px;
  padding: 20px;
  border: 2px solid var(--lime);
  border-radius: var(--r-card);
}

.done h2 {
  margin: 0 0 8px;
  font-size: 1.25rem;
  font-weight: 800;
}

.done p + p {
  margin-top: 8px;
}

.done a {
  font-weight: 700;
  text-underline-offset: 4px;
}

.done .btn {
  margin-top: 16px;
}

.gets {
  display: grid;
  margin-top: 20px;
}

.gets li {
  display: grid;
  gap: 2px;
  padding: 14px 0;
  border-top: 1px solid var(--border);
}

.gets strong {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  text-transform: uppercase;
  font-size: 1.125rem;
}

.gets span {
  color: var(--text-2);
}

/* ---------- Narrow phones ---------- */
@media (max-width: 520px) {
  .site-head .head-link {
    white-space: nowrap;
    padding: 0 6px;
  }

  .brand {
    font-size: 1.5rem;
  }
}

@media (max-width: 420px) {
  /* The footer and the signup page both carry "Sign in". */
  .site-head-home .head-link {
    display: none;
  }
}
