@font-face {
  font-family: "Fredoka";
  src: url("assets/fonts/Fredoka.ttf") format("truetype");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("assets/fonts/Nunito.ttf") format("truetype");
  font-weight: 200 1000;
  font-display: swap;
}

:root {
  --cabbage: #7FC48C;
  --slaw-mint: #D6F0D0;
  --sky: #BFE3F5;
  --sky-wash: #E7F4FB;
  --butter: #FFE7A3;
  --peach: #FFC9A9;
  --lavender: #D6C7F0;
  --cream: #FFFDF7;
  --ink: #2E3D34;
  --ink-soft: #6B7F70;
  --yes-deep: #5FB374;

  --display: "Fredoka", "Arial Rounded MT Bold", system-ui, sans-serif;
  --body: "Nunito", system-ui, sans-serif;
  --outline: 3px solid var(--ink);
  --radius: 24px;
  --gutter: clamp(20px, 6.5vw, 96px);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.45;
  text-wrap: pretty;
}

a { color: var(--ink); }
a:hover { color: var(--yes-deep); }

h1, h2 { margin: 0; font-family: var(--display); font-weight: 600; }
p { margin: 0; }

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 12px 22px;
  border: var(--outline);
  border-radius: var(--radius);
  box-shadow: 0 5px 0 var(--ink);
  font: 600 17px var(--display);
  color: var(--ink);
  text-decoration: none;
  transition: transform 80ms ease, box-shadow 80ms ease;
}
.button:hover { color: var(--ink); }
.button:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--ink); }
.button-primary { background: var(--cabbage); }

/* Top bar */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 28px var(--gutter);
  background: var(--sky-wash);
  border-bottom: var(--outline);
}
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-mark { width: 44px; height: 44px; }
.brand-name { font: 600 26px var(--display); }

/* Hero */
.hero {
  display: flex;
  align-items: center;
  gap: 72px;
  padding: 96px var(--gutter) 80px;
  max-width: 1440px;
  margin: 0 auto;
}
.hero-copy { display: flex; flex-direction: column; gap: 24px; flex: 1 1 0; max-width: 700px; }
.hero h1 { font-size: clamp(42px, 5vw, 72px); line-height: 1.05; }
.lede { font-size: clamp(18px, 1.5vw, 22px); }

.stores {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  align-self: flex-start;
  gap: 0;
  margin-top: 12px;
  padding: 6px 10px;
  background: var(--lavender);
  border: var(--outline);
  border-radius: var(--radius);
  box-shadow: 0 5px 0 rgba(46, 61, 52, .18);
}
/* Official store badges: artwork unmodified; 1/4-height clear space via padding. */
.store {
  display: inline-flex;
  padding: 14px;
  border-radius: 14px;
  line-height: 0;
  transition: transform 80ms ease;
}
.store img { display: block; height: 56px; width: auto; }
/* Google's PNG ships with its own transparent margin: no extra padding, scaled so the visible badge is 56px. */
.store-google { padding: 0; }
.store-google img { height: 83px; }
.store:active { transform: translateY(2px); }

.hero-art {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 460px;
  height: 460px;
  background: var(--slaw-mint);
  border: var(--outline);
  border-radius: 52px;
  box-shadow: 0 8px 0 rgba(46, 61, 52, .2);
}
.hero-art img { width: 360px; height: 360px; }

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  padding: 0 var(--gutter) 96px;
  max-width: 1440px;
  margin: 0 auto;
}
.step {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px;
  border: var(--outline);
  border-radius: var(--radius);
  box-shadow: 0 5px 0 rgba(46, 61, 52, .18);
}
.step-sky { background: var(--sky-wash); }
.step-butter { background: var(--butter); }
.step-mint { background: var(--slaw-mint); }
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--cream);
  border: var(--outline);
  border-radius: 999px;
  font: 600 20px var(--display);
}
.step h2 { font-size: 26px; }

/* Footer */
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 32px var(--gutter);
  background: var(--ink);
  color: var(--cream);
  font-size: 15px;
}
.footer-legal { display: flex; flex-direction: column; gap: 6px; }
.footer-copyright { font-weight: 700; }
.footer-copyright a { color: inherit; text-decoration: none; cursor: pointer; }
.footer-copyright a:hover { color: inherit; }
.footer-made { color: var(--sky); }
.footer-credit { color: var(--sky); font-size: 13px; margin-top: 6px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 28px; }
.footer-links a { color: var(--cream); font-weight: 700; }
.footer-links a:hover { color: var(--sky); }

/* Phone */
@media (max-width: 900px) {
  .topbar { padding-top: 18px; padding-bottom: 18px; }
  .brand-name { font-size: 22px; }
  .button { padding: 10px 16px; font-size: 15px; }

  .hero { flex-direction: column; align-items: stretch; gap: 36px; padding: 40px var(--gutter) 48px; }
  .hero-copy { gap: 18px; max-width: none; }
  /* Badges side by side at Apple's 40px minimum; Google scaled to the same visible height. */
  .stores { justify-content: center; align-self: stretch; flex-wrap: nowrap; padding: 4px 6px; }
  .store { padding: 10px; }
  .store img { height: 40px; }
  .store-google { padding: 0; }
  .store-google img { height: 60px; }
  .hero-art { align-self: center; width: min(350px, 100%); height: 300px; border-radius: 36px; }
  .hero-art img { width: 240px; height: 240px; }

  .steps { grid-template-columns: repeat(1, minmax(0, 1fr)); gap: 18px; padding-bottom: 48px; }
  .step { padding: 22px; }
  .step h2 { font-size: 23px; }

  .footer { flex-direction: column; align-items: flex-start; gap: 20px; padding: 28px var(--gutter); }
  .footer-links { gap: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .button, .store { transition: none; }
}

/* Legal pages (privacy.html, terms.html — generated by `just web-legal`) */
.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px var(--gutter) 96px;
  box-sizing: content-box;
}
.legal h1 { font-size: clamp(36px, 4vw, 52px); line-height: 1.1; margin-bottom: 12px; }
.legal h2 { font-size: 28px; margin: 48px 0 14px; }
.legal h3 { margin: 28px 0 10px; font: 600 21px var(--display); }
.legal p, .legal ul, .legal table { margin: 0 0 16px; }
.legal ul { padding-left: 24px; }
.legal li { margin-bottom: 8px; }
.legal li::marker { color: var(--yes-deep); }
.legal code { font-size: .92em; }
.legal table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: var(--outline);
  border-radius: 16px;
  overflow: hidden;
}
.legal th, .legal td { padding: 12px 16px; text-align: left; vertical-align: top; }
.legal th { background: var(--slaw-mint); font-family: var(--display); font-weight: 600; }
.legal tbody tr:nth-child(even) { background: var(--sky-wash); }
.legal td + td, .legal th + th { border-left: 2px solid rgba(46, 61, 52, .15); }
.legal a { overflow-wrap: anywhere; }

@media (max-width: 900px) {
  .legal { padding: 36px var(--gutter) 56px; }
  .legal h2 { font-size: 24px; margin-top: 36px; }
  .legal th, .legal td { padding: 10px 12px; font-size: 15px; }
}
