/*
 * Visual tokens mirror the in-app design system (see
 * `sweetest/src/theme.js`): warm cream canvas, dusty-rose accent that
 * matches the app icon, soft layered shadows over outlines, and a
 * single rounded-corner family. Anything new on this site should pull
 * from these tokens so the web and the app feel like one product.
 */
:root {
  /* Surface ramp */
  --bg: #faf7f5;          /* warm cream — app canvas */
  --surface: #ffffff;     /* primary card surface */
  --surface-muted: #f5f1ee;

  /* Brand — dusty rose, matched to the iOS app icon. `accent` is the
   * tinted brand colour; `accent-strong` is reserved for body-text
   * links and hovers where contrast on white needs to be higher. */
  --accent: #ee9fb8;
  --accent-strong: #b96c87;
  --accent-pressed: #d5829d;
  --accent-soft: #fbe7ee;

  /* Text */
  --text: #1a1a1a;
  --muted: #6e6e73;
  --subtle: #a0a0a6;

  /* Lines */
  --border: #e5e5ea;
  --border-soft: #f1f1f4;

  --max-width: 720px;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 48px 24px 96px;
}

.hero {
  text-align: center;
  padding: 24px 0 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}

.hero h1 {
  font-size: 44px;
  margin: 0 0 8px;
  letter-spacing: -0.025em;
  color: var(--accent-strong);
}

.tagline {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

/*
 * Landing variant of the hero. Used by index.html (not the legal pages),
 * which carries a beta badge above the wordmark and a CTA below the
 * tagline. Removes the bottom border so the CTA breathes into the next
 * section without a visible seam.
 */
.hero--landing {
  border-bottom: none;
  padding-top: 12px;
  padding-bottom: 8px;
  margin-bottom: 24px;
}

.beta-badge {
  display: inline-block;
  margin-bottom: 16px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.cta-row {
  margin-top: 28px;
}

.cta {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  border-bottom: none;
  transition: transform 120ms ease, box-shadow 120ms ease,
    background 120ms ease;
}

.cta:hover {
  border-bottom: none;
}

.cta--primary {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(238, 159, 184, 0.32);
}

.cta--primary:hover {
  background: var(--accent-pressed);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(213, 130, 157, 0.36);
}

.cta-helper {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.cta-helper--inline {
  margin-top: 16px;
  text-align: left;
}

/*
 * Marketing sections — features, the pilot-cities call-out, and the
 * onboarding steps. They reuse the existing `h2` / `p` rhythm so the
 * visual relationship with the legal pages stays tight.
 */
.features,
.cities,
.steps,
.footer-meta {
  margin-bottom: 24px;
}

.feature-list {
  list-style: none;
  padding: 0;
}

.feature-list li {
  padding: 16px 18px;
  margin-bottom: 12px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  box-shadow: 0 2px 6px rgba(26, 26, 26, 0.04);
}

.feature-list li strong {
  color: var(--text);
}

/*
 * Pilot-cities block. Four cards in a 2-up grid (1-up on the smallest
 * screens). Each card is a city name with its emoji anchor mirrored
 * from the in-app rankings hero, and the surrounding copy frames the
 * "we'd love help here" pitch.
 */
.cities-intro {
  margin-bottom: 16px;
}

.city-grid {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (max-width: 420px) {
  .city-grid {
    grid-template-columns: 1fr;
  }
}

.city-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  box-shadow: 0 2px 6px rgba(26, 26, 26, 0.04);
}

.city-card__emoji {
  font-size: 28px;
  line-height: 1;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--accent-soft);
}

.city-card__label {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}

.cities-helper {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.steps ol {
  padding-left: 22px;
}

.steps ol li {
  margin-bottom: 10px;
}

.legal-header {
  margin-bottom: 24px;
}

.legal-header .breadcrumb {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 8px;
}

.legal-header .breadcrumb a {
  color: var(--muted);
}

.legal-header h1 {
  margin: 0 0 4px;
  font-size: 32px;
  letter-spacing: -0.02em;
}

.legal-header .effective {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
}

h2 {
  font-size: 22px;
  margin: 32px 0 12px;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 18px;
  margin: 24px 0 8px;
}

p, ul, ol {
  margin: 0 0 16px;
}

ul, ol {
  padding-left: 24px;
}

li {
  margin-bottom: 6px;
}

/* Body links lean on the darker rose so they stay legible on white;
 * brand-coloured surfaces (badge, CTA, wordmark) keep the softer
 * `--accent` so the page still reads as the app's pink. */
a {
  color: var(--accent-strong);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 120ms ease;
}

a:hover {
  border-bottom-color: var(--accent-strong);
}

.links {
  list-style: none;
  padding: 0;
}

.links li {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.links a {
  font-size: 18px;
  font-weight: 500;
}

.footer {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

code {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
}
