/* Tastii marketing + legal site — shared styles.
   Brand-aligned with the app: Inter Tight, brand blue #2845F5, cream surface.
   Auto dark mode via prefers-color-scheme. */

:root {
  --bg: #faf8f3;
  --surface: #f4f4f6;
  --text: #0e0e14;
  --muted: #5e6770;
  --brand: #2845f5;
  --rule: rgba(14, 14, 20, 0.1);
  --max: 760px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e0e14;
    --surface: #1c1c22;
    --text: #f2efe7;
    --muted: #a0a4ad;
    --brand: #5d77ff;
    --rule: rgba(255, 255, 255, 0.1);
  }
}

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

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter Tight', -apple-system, BlinkMacSystemFont, 'Segoe UI',
    Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--brand);
  text-decoration: none;
}
a:hover {
  opacity: 0.75;
}

/* ---- Site header (shared) ---- */
.site-header {
  width: 100%;
  border-bottom: 1px solid var(--rule);
}
.site-header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--brand);
  line-height: 1.1;
}
.nav {
  display: flex;
  gap: 20px;
  font-size: 15px;
  font-weight: 600;
}
.nav a {
  color: var(--text);
  opacity: 0.8;
}
.nav a:hover {
  opacity: 1;
  color: var(--brand);
}

/* ---- Footer (shared) ---- */
footer {
  width: 100%;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px 24px 44px;
}
.footer-links {
  margin-bottom: 8px;
}
.footer-links a {
  margin: 0 8px;
}

/* ---- Landing ---- */
main.landing {
  flex: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 72px 24px 56px;
  width: 100%;
  text-align: center;
}
.hero-wordmark {
  font-size: clamp(56px, 11vw, 92px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.1;
  padding: 0.06em 0;
  color: var(--brand);
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(26px, 4.4vw, 36px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  max-width: 600px;
  margin: 0 auto 16px;
}
.lede {
  color: var(--muted);
  font-size: clamp(16px, 2.2vw, 19px);
  max-width: 520px;
  margin: 0 auto 36px;
}
.badge {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 56px;
}
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  text-align: left;
}
.feature {
  padding: 22px;
  border: 1.5px solid var(--rule);
  border-radius: 16px;
  background: var(--surface);
}
.feature-title {
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 6px;
}
.feature-desc {
  color: var(--muted);
  font-size: 14px;
}

/* ---- Legal pages ---- */
main.legal {
  flex: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 48px 24px 56px;
  width: 100%;
}
main.legal h1 {
  font-size: clamp(30px, 5vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.legal-meta {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 28px;
}
main.legal h2 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 32px 0 10px;
}
main.legal p {
  margin-bottom: 14px;
  color: var(--text);
}
main.legal p + p {
  margin-top: -2px;
}
