:root {
  --bg: #fffbf7;
  --surface: #ffffff;
  --text: #2d2a26;
  --muted: #8c857b;
  --border: #ece3d8;
  --accent: #e07a5f;
  --accent-pressed: #b85f48;
  --accent-soft: #fff3eb;
  --radius: 16px;
  --radius-sm: 10px;
  --max: 1080px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial,
    sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent-pressed);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Nav ───────────────────────────────────────────── */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
  color: var(--text);
}
.brand:hover {
  text-decoration: none;
}
.brand .logo {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: block;
}
.nav-links a {
  margin-left: 22px;
  color: var(--muted);
  font-weight: 600;
  font-size: 15px;
}
.nav-links a:hover {
  color: var(--text);
  text-decoration: none;
}

/* ── Buttons ───────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-pressed);
  text-decoration: none;
}
.btn-ghost {
  background: var(--surface);
  border-color: var(--accent);
  color: var(--accent-pressed);
}
.btn-ghost:hover {
  background: var(--accent-soft);
  text-decoration: none;
}

/* ── Hero ──────────────────────────────────────────── */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  padding: 56px 0 72px;
}
.hero .kicker {
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 16px;
}
.hero h1 {
  font-size: clamp(38px, 6vw, 60px);
  line-height: 1.05;
  margin: 0 0 18px;
  letter-spacing: -0.5px;
}
.hero p.lede {
  font-size: 19px;
  color: var(--muted);
  margin: 0 0 28px;
  max-width: 36ch;
}
.hero .actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.hero-art {
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 40px;
  text-align: center;
  width: 100%;
  box-shadow: 0 20px 60px rgba(45, 42, 38, 0.06);
}
.hero-pet {
  position: relative;
  width: 200px;
  max-width: 70%;
  margin: 0 auto;
}
.hero-pet-body {
  width: 100%;
  height: auto;
  display: block;
}
.hero-pet-mouth {
  position: absolute;
  top: 45.6%;
  left: 35.8%;
  width: 21%;
  height: 5%;
}
/* Open-eyes overlay sits on the cat's closed/content eyes; hiding it briefly
   reveals them underneath, reading as a blink. Fractions match the app's pet. */
.hero-pet-eyes {
  position: absolute;
  top: 28%;
  left: 14.5%;
  width: 67%;
  height: auto;
  animation: blink 5s infinite;
}
@keyframes blink {
  0%,
  93%,
  100% {
    opacity: 1;
  }
  95.5%,
  97.5% {
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-pet-eyes {
    animation: none;
  }
}
.hero-bubble {
  display: inline-block;
  margin-top: 18px;
  padding: 12px 18px;
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  border-radius: 18px;
  color: var(--accent-pressed);
  font-weight: 600;
}

/* ── Sections ──────────────────────────────────────── */
.section {
  padding: 64px 0;
}
.section h2 {
  font-size: clamp(28px, 4vw, 38px);
  text-align: center;
  margin: 0 0 12px;
  letter-spacing: -0.3px;
}
.section .sub {
  text-align: center;
  color: var(--muted);
  font-size: 18px;
  margin: 0 auto 44px;
  max-width: 48ch;
}
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.feature .ico {
  font-size: 34px;
}
.feature h3 {
  margin: 14px 0 8px;
  font-size: 20px;
}
.feature p {
  margin: 0;
  color: var(--muted);
}

.cta {
  background: var(--accent-soft);
  border: 1px solid var(--border);
  border-radius: 28px;
  text-align: center;
  padding: 56px 24px;
  margin: 24px 0 8px;
}
.cta h2 {
  margin: 0 0 10px;
}
.cta p {
  color: var(--muted);
  font-size: 18px;
  margin: 0 0 26px;
}

/* ── Legal pages ───────────────────────────────────── */
.legal {
  padding: 32px 0 64px;
  max-width: 760px;
}
.legal h1 {
  font-size: clamp(30px, 5vw, 42px);
  margin: 16px 0 6px;
}
.legal .updated {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 32px;
}
.legal h2 {
  font-size: 22px;
  margin: 36px 0 10px;
}
.legal h3 {
  font-size: 17px;
  margin: 22px 0 6px;
  color: var(--text);
}
.legal p,
.legal li {
  color: #4a463f;
  font-size: 16px;
}
.legal ul {
  padding-left: 22px;
}
.legal .note {
  background: var(--accent-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  color: var(--accent-pressed);
  font-size: 15px;
}

/* ── Footer ────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px 0 48px;
  margin-top: 40px;
}
.footer .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer .copy {
  color: var(--muted);
  font-size: 15px;
}
.footer .links a {
  color: var(--muted);
  font-weight: 600;
  font-size: 15px;
  margin-left: 22px;
}
.footer .links a:hover {
  color: var(--text);
  text-decoration: none;
}

/* ── Responsive ────────────────────────────────────── */
@media (max-width: 960px) {
  .features {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 32px 0 48px;
  }
  .hero p.lede {
    max-width: none;
  }
  .nav-links {
    display: none;
  }
  .hero-card {
    padding: 32px;
  }
  .section {
    padding: 48px 0;
  }
  .footer .row {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer .links a {
    margin: 0 22px 0 0;
  }
}

@media (max-width: 600px) {
  .features {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 18px;
  }
  .section {
    padding: 40px 0;
  }
  .section .sub {
    font-size: 16px;
    margin-bottom: 32px;
  }
  .hero-card {
    padding: 24px;
  }
  .hero .actions {
    flex-direction: column;
    align-items: stretch;
  }
  .hero .actions .btn {
    width: 100%;
    text-align: center;
  }
  .feature {
    padding: 24px;
  }
  .cta {
    padding: 40px 20px;
  }
}
