/* eathumm.com: shared styles. Same tokens as the app (DesignSystem/Colors.swift). */
:root {
  --bg: #FFFFFF;
  --surface: #F2F1F3;
  --ink: #0A0A0A;
  --muted: #6B6870;
  --line: #E6E4E8;
  --accent: #7B5CFF;
  --accent-text: #6A48F5;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0A0A0A;
    --surface: #1D1C1F;
    --ink: #FFFFFF;
    --muted: #A6A2AB;
    --line: #2C2B30;
    --accent-text: #A08AFF;
  }
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-text); }
main { max-width: 680px; margin: 0 auto; padding: 32px 20px 64px; }

header.site { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { height: 34px; display: block; }

h1, h2 { font-weight: 900; letter-spacing: -0.035em; line-height: 1.05; }
h1 { font-size: 40px; margin: 48px 0 12px; }
h2 { font-size: 22px; margin: 36px 0 8px; letter-spacing: -0.02em; }
p.lede { font-size: 19px; color: var(--muted); margin: 0 0 28px; }
.muted { color: var(--muted); }

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 22px; border-radius: 999px;
  background: var(--ink); color: var(--bg); font-weight: 800; text-decoration: none;
}
.button.secondary { background: var(--surface); color: var(--ink); }
.buttons { display: flex; flex-wrap: wrap; gap: 10px; }

.card { border-radius: 28px; overflow: hidden; background: var(--surface); }
.card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.card .body { padding: 18px 20px 22px; }
.card h1 { margin: 0 0 4px; font-size: 32px; }
.badge {
  display: inline-block; margin-bottom: 10px; padding: 3px 10px; border-radius: 999px;
  background: var(--accent); color: #fff; font-size: 12px; font-weight: 900; letter-spacing: 0.04em;
}

footer.site { margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
footer.site a { color: var(--muted); margin-right: 16px; }
.legal h2 { font-size: 20px; }
.legal li { margin-bottom: 6px; }

/* Landing page (index.html) */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.landing { overflow-x: clip; }
.landing section, .nav, footer.wide { max-width: 1120px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }
.nav { display: flex; align-items: center; justify-content: space-between; padding-top: 20px; padding-bottom: 20px; }
.button.small { min-height: 40px; padding: 0 16px; font-size: 15px; }
.button:disabled { opacity: 0.5; }
button.button { border: 0; font: inherit; font-weight: 800; cursor: pointer; }

.display { font-size: clamp(44px, 6vw, 72px); font-weight: 900; letter-spacing: -0.045em; line-height: 0.98; margin: 0 0 20px; }
.eyebrow { font-size: 14px; font-weight: 800; color: var(--accent-text); margin: 0 0 16px; }
.section-title { font-size: clamp(32px, 4.5vw, 52px); font-weight: 900; letter-spacing: -0.04em; line-height: 1; margin: 0 0 16px; }

.hero {
  display: grid; grid-template-columns: 1.3fr 1fr; align-items: center; gap: 32px;
  padding-top: 40px; padding-bottom: 72px; position: relative;
}
.hero::before {
  content: ""; position: absolute; inset: -100px 0 0; z-index: -1; pointer-events: none;
  background: radial-gradient(60% 55% at 75% 40%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%);
}
.hero .lede { max-width: 520px; }

.join { display: flex; flex-wrap: wrap; gap: 10px; max-width: 480px; }
.join input {
  flex: 1 1 220px; min-height: 50px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--bg); color: var(--ink); font: inherit;
}
.join input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.join-note { flex-basis: 100%; margin: 4px 0 0 4px; font-size: 14px; }
.join-note.done { color: var(--accent-text); font-weight: 700; font-size: 17px; margin: 0; }

.phones { position: relative; height: 600px; }
.phone {
  width: 270px; border-radius: 44px; border: 9px solid #0A0A0A; background: #0A0A0A;
  box-shadow: 0 30px 60px -20px rgba(30, 10, 80, 0.35); display: block;
}
.phones .phone { position: absolute; top: 0; }
.phones .front { left: 4%; z-index: 2; }
.phones .back { right: 0; top: 60px; transform: rotate(6deg); opacity: 0.95; }

.band { padding-top: 40px; padding-bottom: 40px; }
.statement {
  margin: 0; padding: 48px 32px; border-radius: 40px; background: var(--ink); color: var(--bg);
  font-size: clamp(28px, 4vw, 48px); font-weight: 900; letter-spacing: -0.04em; line-height: 1.05; text-align: center;
}
.statement span { color: #A08AFF; }

.steps { padding-top: 72px; padding-bottom: 40px; }
.step-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.step { background: var(--surface); border-radius: 28px; padding: 28px; }
.step h3 { font-size: 22px; font-weight: 900; letter-spacing: -0.03em; margin: 14px 0 8px; }
.step p { margin: 0; color: var(--muted); }
.num {
  display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--accent); color: #fff; font-weight: 900;
}

.split { display: grid; grid-template-columns: auto 1fr; gap: 64px; align-items: center; padding-top: 72px; padding-bottom: 72px; }
.checks { list-style: none; padding: 0; margin: 20px 0 0; }
.checks li { padding-left: 30px; position: relative; margin-bottom: 10px; font-weight: 700; }
.checks li::before { content: ""; position: absolute; left: 0; top: 7px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); }

.cooks-cta { text-align: center; padding-top: 56px; padding-bottom: 56px; }
.cooks-cta .lede { max-width: 560px; margin: 0 auto 24px; }

.faq { max-width: 760px !important; padding-top: 40px; padding-bottom: 40px; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { font-weight: 800; font-size: 19px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: "+"; color: var(--muted); font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq p { color: var(--muted); margin: 10px 0 0; }

.final { text-align: center; padding-top: 88px; padding-bottom: 72px; }
.final .lede { margin-bottom: 24px; }
.final .join { margin: 0 auto; justify-content: center; }

footer.wide { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-bottom: 40px; margin-top: 0; }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; padding-top: 16px; }
  .phones { height: 470px; }
  .phone { width: 210px; border-radius: 36px; border-width: 7px; }
  .phones .front { left: 0; }
  .phones .back { right: 0; }
  .step-grid { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 32px; justify-items: center; }
  .split > div { width: 100%; }
}
