/* ============ Tokens ============ */
:root {
  --accent: #a53b29;
  --accent-soft: #ff6b5b;
  --accent-deep: #7a2c1e;
  --cream: #f9e3df;
  --cream-soft: #fdf3f1;
  --surface: #ffffff;
  --text: #3a2a24;
  --text-soft: #6b5850;
  --border: #ead9d4;
  --radius-lg: 24px;
  --radius-md: 16px;
  --shadow-soft: 0 12px 40px rgba(165, 59, 41, .12);
  --shadow-hover: 0 20px 60px rgba(165, 59, 41, .18);
  --font-display: "Nunito", "Segoe UI", system-ui, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ============ Reset ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--cream-soft);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-deep); }
ul { list-style: none; }

/* ============ Layout ============ */
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section--cream { background: var(--cream); }
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}
.section-sub { color: var(--text-soft); max-width: 560px; margin: 16px auto 0; }
.text-center { text-align: center; }
.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--cream);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: var(--shadow-soft); }
.btn-primary:hover { background: var(--accent-deep); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.btn-secondary { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn-secondary:hover { background: var(--cream); color: var(--accent-deep); transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid var(--accent-soft); outline-offset: 3px; }

/* ============ Nav ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(253, 243, 241, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; color: var(--text); }
.brand:hover { color: var(--text); }
.brand-mark {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  background: var(--accent); color: #fff;
  border-radius: 12px;
  font-size: 1.1rem;
}
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--text-soft); font-weight: 600; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--accent); }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.5rem; cursor: pointer; color: var(--text); }

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; gap: 4px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 10px 0; width: 100%; }
}

/* ============ Hero ============ */
.hero {
  padding: 88px 0 72px;
  background:
    radial-gradient(60% 80% at 80% 10%, rgba(255, 107, 91, .18), transparent 60%),
    var(--cream-soft);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 3.9rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--text);
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-lead { margin: 20px 0 32px; color: var(--text-soft); font-size: 1.12rem; max-width: 460px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-note { margin-top: 14px; color: var(--text-soft); font-size: .85rem; }
.hero-art { position: relative; }
.hero-art img { border-radius: var(--radius-lg); box-shadow: var(--shadow-hover); }
.hero-art::after {
  content: "🐾"; position: absolute; top: -18px; right: -10px;
  font-size: 2.6rem; transform: rotate(18deg);
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 56px; }
}

/* ============ Feature cards (bento) ============ */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
.feature-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  transition: transform .2s ease, box-shadow .2s ease;
}
/* Scroll reveal (enhanced by IntersectionObserver in main.js; gated behind .js
   so content stays visible when JS is disabled) */
html.js .feature-card, html.js .step, html.js .plan-card { opacity: 0; transform: translateY(12px); transition: opacity .4s ease, transform .4s ease; }
html.js .feature-card.is-in-view, html.js .step.is-in-view, html.js .plan-card.is-in-view { opacity: 1; transform: none; }
@media (min-width: 901px) {
  html.js .plan-card--featured.is-in-view { transform: scale(1.03); }
}

.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.feature-card--wide { grid-column: span 2; }
.feature-icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  font-size: 1.6rem;
  background: var(--cream);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
}
.feature-card h3 { font-family: var(--font-display); font-size: 1.18rem; margin-bottom: 8px; }
.feature-card p { color: var(--text-soft); font-size: .95rem; }
@media (max-width: 900px) {
  .features-grid { grid-template-columns: 1fr; }
  .feature-card--wide { grid-column: span 1; }
}

/* ============ Steps (how it works) ============ */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
.step {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  border: 1px solid var(--border);
  position: relative;
}
.step-num {
  font-family: var(--font-display); font-weight: 900; font-size: 2.6rem;
  color: var(--cream); position: absolute; top: 14px; right: 22px;
  -webkit-text-stroke: 1.5px var(--accent-soft);
}
.step h3 { font-family: var(--font-display); font-size: 1.2rem; margin: 12px 0 8px; }
.step p { color: var(--text-soft); font-size: .95rem; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }

/* ============ Pricing ============ */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; margin-top: 48px; }
.plan-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-soft);
}
.plan-card--featured {
  border: 2px solid var(--accent);
  box-shadow: var(--shadow-hover);
  transform: scale(1.03);
  background: linear-gradient(180deg, var(--cream-soft), var(--surface));
}
.plan-name { font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; }
.plan-price { margin: 14px 0 2px; font-family: var(--font-display); font-weight: 900; font-size: 2.6rem; }
.plan-price span { font-size: 1rem; font-weight: 600; color: var(--text-soft); }
.plan-desc { color: var(--text-soft); font-size: .92rem; margin-bottom: 20px; }
.plan-features { flex: 1; margin-bottom: 24px; }
.plan-features li { padding: 8px 0 8px 30px; position: relative; color: var(--text); font-size: .95rem; }
.plan-features li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.plan-card .btn { justify-content: center; }
@media (max-width: 900px) {
  .pricing-grid { grid-template-columns: 1fr; }
  .plan-card--featured { transform: none; }
}

/* ============ Legal pages ============ */
.legal { max-width: 760px; margin: 0 auto; }
.legal h1 { font-family: var(--font-display); font-weight: 900; font-size: 2.2rem; margin-bottom: 8px; }
.legal .updated { color: var(--text-soft); font-size: .85rem; margin-bottom: 32px; }
.legal h2 { font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; margin: 28px 0 10px; }
.legal p, .legal li { color: var(--text); font-size: .98rem; margin-bottom: 10px; }
.legal ul { list-style: disc; padding-left: 24px; }

/* ============ FAQ ============ */
.faq-list { max-width: 720px; margin: 40px auto 0; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); margin-bottom: 14px; overflow: hidden; }
.faq-q {
  width: 100%; text-align: left; background: none; border: 0;
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem;
  padding: 18px 22px; cursor: pointer; color: var(--text);
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq-q::after { content: "+"; font-size: 1.5rem; color: var(--accent); font-weight: 400; transition: transform .2s; }
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.faq-item.open .faq-a { max-height: 400px; }
.faq-a p { padding: 0 22px 18px; color: var(--text-soft); }
.faq-q:focus-visible, .nav-links a:focus-visible { outline: 3px solid var(--accent-soft); outline-offset: 3px; border-radius: 6px; }

/* ============ Footer ============ */
.footer { background: var(--text); color: #f3e9e5; padding: 56px 0 32px; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.footer .brand { color: #fff; }
.footer h4 { font-family: var(--font-display); font-size: .95rem; margin-bottom: 14px; letter-spacing: .06em; text-transform: uppercase; color: #e8c9c1; }
.footer a { color: #f3e9e5; }
.footer a:hover { color: var(--accent-soft); }
.footer-links li { margin-bottom: 8px; }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.14); font-size: .82rem; color: #cbbbb5; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
@media (max-width: 820px) { .footer-inner { grid-template-columns: 1fr; } }

/* ============ Contact ============ */
.contact-card {
  max-width: 640px; margin: 0 auto;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 40px;
  box-shadow: var(--shadow-soft);
}
.contact-card a { font-weight: 700; }

/* ============ Reduced motion ============ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  html.js .feature-card, html.js .step, html.js .plan-card { opacity: 1; transform: none; }
}
