:root {
  --text-primary: #1F1815;
  --text-secondary: #5C5049;
  --text-muted: #7A6F67;
  --page-bg: #FCFAF6;
}

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

html {
  min-height: 100%;
  background:
    radial-gradient(ellipse 50% 55% at 75% 60%, rgba(239, 183, 147, 0.40), transparent 72%),
    var(--page-bg);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

header {
  padding: 28px 32px 0;
  display: flex;
  justify-content: center;
}

.brand {
  font-family: 'Cabinet Grotesk', sans-serif;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 64px 32px 48px;
  text-align: center;
}

.hero {
  max-width: 640px;
  margin-bottom: 64px;
}

h1 {
  font-family: 'Cabinet Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(40px, 6.2vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: var(--text-primary);
  margin: 0 0 20px;
  text-wrap: balance;
}

.subtitle {
  font-family: 'Figtree', sans-serif;
  font-weight: 400;
  font-size: clamp(17px, 1.4vw, 19px);
  line-height: 1.5;
  color: var(--text-secondary);
  max-width: 32ch;
  margin: 0 auto;
}

.device {
  width: 100%;
  max-width: 300px;
  padding: 10px;
  background: #0A0A0A;
  border-radius: 54px;
  box-shadow:
    0 1px 2px rgba(40, 20, 30, 0.08),
    0 8px 20px rgba(40, 20, 30, 0.10),
    0 24px 56px rgba(40, 20, 30, 0.14);
}

.device-screen {
  border-radius: 44px;
  overflow: hidden;
  background: var(--page-bg);
  aspect-ratio: 9 / 19.5;
}

.device-screen img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

footer {
  padding: 28px 32px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 14px;
  color: var(--text-muted);
}

.footer-meta {
  font-family: 'Figtree', sans-serif;
  font-weight: 400;
}

.footer-links {
  display: flex;
  gap: 22px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 180ms ease;
}

.footer-links a:hover {
  color: var(--text-primary);
}

/* Desktop: side-by-side hero */
@media (min-width: 900px) {
  main {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 96px;
    max-width: 1080px;
    width: 100%;
    margin: 0 auto;
    padding: 40px 48px 56px;
    text-align: left;
  }

  .hero {
    flex: 1 1 0;
    max-width: 520px;
    margin-bottom: 0;
  }

  .subtitle {
    margin: 0;
  }

  .device {
    flex: 0 0 auto;
    max-width: 300px;
  }
}

/* Mobile polish */
@media (max-width: 560px) {
  html {
    background:
      radial-gradient(ellipse 80% 40% at 50% 75%, rgba(239, 183, 147, 0.40), transparent 72%),
      var(--page-bg);
  }
  main { padding: 48px 24px 40px; }
  .hero { margin-bottom: 48px; }
  h1 { letter-spacing: -0.03em; }
  footer {
    flex-direction: column-reverse;
    gap: 12px;
    padding: 24px 24px 28px;
  }
}

/* === Legal pages === */
body.legal-page { background: var(--page-bg); }
html:has(body.legal-page) { background: var(--page-bg); }

main.legal {
  display: block;
  flex: initial;
  max-width: 760px;
  width: 100%;
  margin: 0 auto;
  padding: 48px 32px 72px;
  text-align: left;
}

.legal h1 {
  font-family: 'Cabinet Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(32px, 4.5vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  margin: 0 0 8px;
}

.legal .updated {
  font-family: 'Figtree', sans-serif;
  color: var(--text-muted);
  font-size: 14px;
  margin: 0 0 40px;
}

.legal h2 {
  font-family: 'Cabinet Grotesk', sans-serif;
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin: 40px 0 12px;
}

.legal p,
.legal li {
  font-family: 'Figtree', sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-secondary);
}

.legal p { margin: 0 0 16px; }

.legal ul,
.legal ol {
  margin: 0 0 16px;
  padding-left: 22px;
}

.legal li { margin-bottom: 8px; }

.legal a {
  color: var(--text-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 180ms ease;
}

.legal a:hover { color: var(--text-secondary); }

.legal address {
  font-style: normal;
  margin: 0 0 16px;
  font-family: 'Figtree', sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-secondary);
}

@media (max-width: 560px) {
  main.legal { padding: 32px 24px 56px; }
  .legal h2 { margin-top: 32px; }
}
