:root {
  --teal: #00CCC4;
  --teal-dark: #13798C;
  --sky: #D4F9FA;
  --canvas: #F6F3EF;
  --ink: #292B33;
  --ink-soft: #5F6370;
  --surface: #FCFAF8;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  padding: 0;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--ink);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
}

/* The app's home header: pale cyan fading down into the oat canvas. */
.page {
  min-height: 100%;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 48px 24px 40px;
  background: linear-gradient(180deg, var(--sky) 0%, var(--canvas) 62%);
}

.buddy {
  display: block;
  /* The canvas carries its own bleed so the wobble is never clipped. */
  margin: 0 auto;
}

.copy {
  text-align: center;
  max-width: 30rem;
  margin-top: 28px;
}

.wordmark {
  margin: 0;
  font-size: clamp(2rem, 9vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--ink);
}

.soon {
  display: inline-block;
  margin-top: 18px;
  padding: 7px 16px;
  border-radius: 999px;
  background: var(--teal);
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.blurb {
  margin: 20px auto 0;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 26rem;
}

.socials {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 34px;
}

.socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 2px 10px rgba(41, 43, 51, .08);
  transition: transform .18s ease, background-color .18s ease, color .18s ease;
}

.socials a:hover,
.socials a:focus-visible {
  transform: translateY(-3px);
  background: var(--teal);
  color: var(--ink);
}

.socials a:focus-visible { outline: 3px solid var(--teal-dark); outline-offset: 3px; }

.socials svg { width: 24px; height: 24px; fill: currentColor; }

.foot {
  margin-top: 40px;
  font-size: 0.75rem;
  color: var(--ink-soft);
  opacity: .8;
  text-align: center;
}

@media (max-width: 480px) {
  .copy { margin-top: 20px; }
  .socials { gap: 12px; }
  .socials a { width: 48px; height: 48px; }
}

/* ---- Legal pages (terms, privacy): a plain reading column on the canvas. */
.legal {
  max-width: 44rem;
  margin: 0 auto;
  padding: 40px 24px 64px;
  line-height: 1.65;
}

.legal-back {
  display: inline-block;
  margin-bottom: 24px;
  color: var(--teal-dark);
  font-weight: 700;
  text-decoration: none;
}

.legal h1 {
  margin: 0 0 6px;
  font-size: clamp(1.75rem, 6vw, 2.25rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.legal .updated {
  margin: 0 0 32px;
  color: var(--ink-soft);
  font-size: 0.9375rem;
}

.legal h2 {
  margin: 40px 0 8px;
  font-size: 1.25rem;
  line-height: 1.3;
}

.legal h3 {
  margin: 24px 0 4px;
  font-size: 1.0625rem;
}

.legal p,
.legal li {
  font-size: 1rem;
}

.legal ul {
  padding-left: 1.25rem;
}

.legal a {
  color: var(--teal-dark);
}

.legal .footer-links {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid rgba(41, 43, 51, 0.1);
  color: var(--ink-soft);
  font-size: 0.9375rem;
}
