/* Palette mirrors iosApp/Rattitude/DesignSystem/CozyColor.swift so the site and the app feel
   like one product. The app has no dark theme, so neither does the site. */
:root {
  --canvas: #FAF9FB;
  --tint: #FFEEF2;
  --text: #1A1D2E;
  --text-mid: #5A5F7A;
  --brand: #E85D75;
  --brand-soft: #FF758F;
  --accent-bg: #FFF0F3;
  --border: #E2E5F5;
  --divider: #EBEEF8;
  --violet: #EDE9FF;
  --violet-end: #D0C3FF;
  --peach: #FDE8D3;
  --peach-end: #F9C5A0;
  --safe: #22C55E;
  --limit: #F59E0B;
  --toxic: #EF4444;
  --radius: 24px;
  --shadow: 0 10px 30px rgba(232, 93, 117, 0.12);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  font-family: "Quicksand", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight: 500;
  line-height: 1.6;
  overflow-x: hidden;
}
h1, h2, h3, .brand { font-family: "Fredoka", "Quicksand", sans-serif; font-weight: 600; line-height: 1.15; margin: 0; }
a { color: var(--brand); }
img { max-width: 100%; display: block; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(250, 249, 251, 0.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--divider); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 1.25rem; color: var(--text); text-decoration: none; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.nav { display: flex; gap: 18px; font-weight: 600; font-size: 0.95rem; }
.nav a { color: var(--text-mid); text-decoration: none; }
.nav a:hover { color: var(--brand); }
@media (max-width: 560px) { .nav .hide-sm { display: none; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border-radius: 999px; font-family: "Fredoka", sans-serif; font-weight: 500; font-size: 1.05rem; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-store { background: var(--text); color: #fff; box-shadow: 0 8px 20px rgba(26, 29, 46, 0.2); }
.btn-store svg { width: 22px; height: 22px; fill: currentColor; }
.btn-store small { display: block; font-size: 0.7rem; font-weight: 400; opacity: .8; line-height: 1; }
.btn-store span { line-height: 1.1; text-align: left; }
.btn-ghost { background: #fff; color: var(--brand); border: 2px solid var(--tint); }

/* Hero */
.hero { position: relative; padding: 72px 0 56px; background: radial-gradient(1200px 500px at 85% -10%, var(--tint), transparent 60%), radial-gradient(800px 400px at -10% 110%, var(--violet), transparent 60%); }
.hero .wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px; align-items: center; }
.eyebrow { display: inline-block; background: var(--accent-bg); color: var(--brand); border: 1px solid var(--tint); padding: 6px 14px; border-radius: 999px; font-weight: 700; font-size: 0.85rem; margin-bottom: 18px; }
.hero h1 { font-size: clamp(2.3rem, 5.5vw, 3.8rem); letter-spacing: -0.01em; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero p.lead { font-size: 1.2rem; color: var(--text-mid); margin: 18px 0 28px; max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-art { position: relative; aspect-ratio: 1; max-width: 420px; justify-self: center; width: 100%; }
.hero-art .blob { position: absolute; inset: 6%; border-radius: 50%; background: linear-gradient(145deg, var(--peach), var(--tint) 55%, var(--violet)); box-shadow: var(--shadow); }
.hero-art .mascot { position: absolute; inset: 8% 8% 12%; width: 84%; animation: bob 3.2s ease-in-out infinite; }
.hero-art .bubble { position: absolute; background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 10px 14px; font-weight: 700; font-size: 0.9rem; box-shadow: var(--shadow); white-space: nowrap; }
.hero-art .b1 { top: 8%; left: -4%; animation: float 4s ease-in-out infinite; }
.hero-art .b2 { bottom: 14%; right: -6%; animation: float 4.6s ease-in-out infinite .6s; }
@keyframes bob { 0%, 100% { transform: translateY(0) } 50% { transform: translateY(-10px) } }
@keyframes float { 0%, 100% { transform: translateY(0) } 50% { transform: translateY(-6px) } }
@media (prefers-reduced-motion: reduce) { .hero-art .mascot, .hero-art .bubble { animation: none; } }
@media (max-width: 820px) {
  .hero { padding: 40px 0 32px; }
  .hero .wrap { grid-template-columns: 1fr; text-align: center; }
  .hero p.lead { margin-left: auto; margin-right: auto; }
  .cta { justify-content: center; }
  .hero-art { max-width: 300px; order: -1; }
  .hero-art .b1 { left: 0; }
  .hero-art .b2 { right: 0; }
}

/* Sections */
section.block { padding: 64px 0; }
.section-title { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.section-title h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
.section-title p { color: var(--text-mid); font-size: 1.1rem; margin: 12px 0 0; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } }
.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; transition: transform .2s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card .icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-size: 1.6rem; margin-bottom: 14px; background: var(--accent-bg); }
.card:nth-child(3n+2) .icon { background: var(--violet); }
.card:nth-child(3n) .icon { background: var(--peach); }
.card h3 { font-size: 1.25rem; margin-bottom: 8px; }
.card p { margin: 0; color: var(--text-mid); }

/* Bulochka highlight */
.feature-band { background: linear-gradient(135deg, var(--tint), var(--violet)); border-radius: 32px; padding: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
@media (max-width: 820px) { .feature-band { grid-template-columns: 1fr; padding: 24px; } }
.feature-band h2 { font-size: clamp(1.7rem, 4vw, 2.3rem); margin-bottom: 12px; }
.feature-band p { color: var(--text-mid); margin: 0 0 12px; }
.chat { display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 88%; padding: 12px 16px; border-radius: 20px; font-size: 0.98rem; }
.msg.me { align-self: flex-end; background: var(--brand); color: #fff; border-bottom-right-radius: 6px; }
.msg.bot { align-self: flex-start; background: #fff; border: 1px solid var(--border); border-bottom-left-radius: 6px; }
.msg.bot b { font-family: "Fredoka", sans-serif; color: var(--brand); display: block; font-weight: 500; font-size: 0.85rem; }
.pills { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.pill { font-size: 0.85rem; font-weight: 700; padding: 4px 12px; border-radius: 999px; background: #fff; }
.pill.safe { color: var(--safe); } .pill.limit { color: var(--limit); } .pill.toxic { color: var(--toxic); }

/* Pricing note */
.note { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center; }
.note .coin { font-size: 2.4rem; }
.note h3 { font-size: 1.3rem; margin-bottom: 6px; }
.note p { margin: 0; color: var(--text-mid); }
@media (max-width: 560px) { .note { grid-template-columns: 1fr; text-align: center; } }

/* Final CTA */
.final { text-align: center; padding: 64px 0 80px; }
.final img { width: 96px; height: 96px; border-radius: 22px; margin: 0 auto 18px; box-shadow: var(--shadow); }
.final h2 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin-bottom: 10px; }
.final p { color: var(--text-mid); margin: 0 0 24px; }
.disclaimer { font-size: 0.9rem; color: var(--text-mid); max-width: 640px; margin: 28px auto 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--divider); padding: 28px 0 40px; color: var(--text-mid); font-size: 0.92rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer a { color: var(--text-mid); text-decoration: none; font-weight: 600; }
.site-footer a:hover { color: var(--brand); }

/* Legal pages */
.legal { max-width: 800px; margin: 0 auto; padding: 40px 16px 64px; line-height: 1.75; }
.legal h1 { font-size: clamp(2rem, 5vw, 2.6rem); margin-bottom: 6px; }
.legal h2 { font-size: 1.4rem; margin-top: 2.2em; padding-bottom: 6px; border-bottom: 2px solid var(--tint); }
.legal h3 { font-size: 1.12rem; margin-top: 1.6em; }
.legal .last-updated { color: var(--text-mid); margin-top: 0; }
.legal .table-wrap { overflow-x: auto; }
.legal table { border-collapse: collapse; width: 100%; margin-top: 1em; font-size: 0.95em; background: #fff; }
.legal th, .legal td { text-align: left; padding: 10px; border: 1px solid var(--border); vertical-align: top; }
.legal th { background: var(--accent-bg); }
.legal .steps { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 20px 20px 44px; }
.legal .callout { background: var(--accent-bg); border: 1px solid var(--tint); border-radius: 18px; padding: 16px 20px; }
