/* CuPet website — shared styles. Brand palette pulled from the app theme. */
:root {
  --yellow: #FFD23F;
  --yellow-dark: #E0B521;
  --ink: #1B1B1B;
  --surface: #FFF6D6;
  --soft: #F5EAD0;
  --pink: #FF6FB5;
  --danger: #E63946;
  --white: #ffffff;
  --muted: #5b5b5b;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(27, 27, 27, 0.08);
  --max: 1080px;
  --font: "Nunito", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
}

a { color: var(--ink); }

img { max-width: 100%; display: block; }

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

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 246, 214, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--soft);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
  text-decoration: none;
}
.brand img { height: 34px; width: auto; border-radius: 8px; }
.nav { display: flex; gap: 22px; align-items: center; }
.nav a {
  text-decoration: none;
  font-weight: 700;
  color: var(--ink);
  opacity: 0.8;
}
.nav a:hover { opacity: 1; }
.nav .btn { opacity: 1; }
.nav-toggle { display: none; background: none; border: 0; font-size: 26px; cursor: pointer; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--ink);
  color: var(--white);
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-yellow { background: var(--yellow); color: var(--ink); }
.btn-pink { background: var(--pink); color: var(--white); }
.btn-ghost { background: transparent; border: 2px solid var(--ink); color: var(--ink); }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(160deg, var(--yellow) 0%, var(--surface) 100%);
  padding: 80px 0 90px;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.05;
  margin: 0 0 16px;
  font-weight: 900;
}
.hero p { font-size: 19px; max-width: 520px; color: #2a2a2a; }
.hero-cta { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.hero-art {
  background: var(--white);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 28px;
  text-align: center;
}
.hero-art .emoji { font-size: 90px; line-height: 1; }
.hero-art h3 { margin: 14px 0 4px; }
.badge { display:inline-block; background: var(--pink); color:#fff; font-weight:800; padding:6px 14px; border-radius:999px; font-size:13px; letter-spacing:.5px; }

/* ---------- Sections ---------- */
section { padding: 70px 0; }
.section-title { text-align: center; font-size: clamp(28px, 4vw, 40px); font-weight: 900; margin: 0 0 10px; }
.section-sub { text-align: center; color: var(--muted); max-width: 620px; margin: 0 auto 48px; font-size: 18px; }

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  background: var(--white);
  border: 2px solid var(--soft);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--yellow); }
.card .ico { font-size: 40px; margin-bottom: 12px; }
.card h3 { margin: 0 0 8px; font-size: 20px; }
.card p { margin: 0; color: var(--muted); }

.alt { background: var(--surface); }

/* steps */
.steps { display:grid; grid-template-columns: repeat(4,1fr); gap:20px; counter-reset: step; }
.step { text-align:center; }
.step .num {
  width:54px;height:54px;border-radius:50%;background:var(--ink);color:#fff;
  display:flex;align-items:center;justify-content:center;font-weight:900;font-size:22px;margin:0 auto 14px;
}
.step h4 { margin:0 0 6px; }
.step p { color: var(--muted); margin:0; }

/* CTA band */
.cta-band { background: var(--ink); color: #fff; text-align:center; }
.cta-band h2 { font-size: clamp(26px,4vw,38px); margin:0 0 16px; }
.cta-band p { color:#ddd; margin:0 0 26px; font-size:18px; }
.store-badges { display:flex; gap:16px; justify-content:center; flex-wrap:wrap; }

/* ---------- Content pages ---------- */
.page { padding: 56px 0 80px; }
.page .container { max-width: 800px; }
.page h1 { font-size: 38px; margin: 0 0 6px; font-weight: 900; }
.page .updated { color: var(--muted); margin: 0 0 36px; font-size: 15px; }
.page h2 { font-size: 24px; margin: 36px 0 10px; }
.page h3 { font-size: 19px; margin: 24px 0 8px; }
.page p, .page li { color: #333; }
.page ul { padding-left: 20px; }
.page a { color: #b58a00; font-weight: 700; }

/* ---------- Forms ---------- */
.form-wrap {
  max-width: 640px; margin: 0 auto;
  background: var(--white); border: 2px solid var(--soft);
  border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow);
}
.field { margin-bottom: 18px; }
.field label { display:block; font-weight:800; margin-bottom:6px; }
.field input, .field select, .field textarea {
  width:100%; padding:13px 14px; border:2px solid var(--soft); border-radius:12px;
  font-family: inherit; font-size:16px; background:#fffdf5;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline:none; border-color: var(--yellow-dark);
}
.field textarea { min-height: 140px; resize: vertical; }
.form-note { font-size: 14px; color: var(--muted); margin-top: 4px; }
.alert { padding:14px 16px; border-radius:12px; margin-bottom:20px; font-weight:700; display:none; }
.alert.ok { background:#e7f7e9; color:#1c7a32; display:block; }
.alert.err { background:#fdecee; color:#b3243a; display:block; }

.contact-cards { display:grid; grid-template-columns: repeat(2,1fr); gap:20px; margin: 0 auto 40px; max-width:640px; }
.contact-cards .card { text-align:center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #cfcfcf; padding: 50px 0 30px; }
.site-footer .container { display:flex; justify-content:space-between; gap:30px; flex-wrap:wrap; }
.site-footer .brand { color:#fff; }
.site-footer a { color:#cfcfcf; text-decoration:none; display:block; margin:6px 0; }
.site-footer a:hover { color: var(--yellow); }
.footer-col h4 { color:#fff; margin:0 0 10px; }
.footer-bottom { text-align:center; color:#888; margin-top:36px; font-size:14px; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .features, .steps, .contact-cards { grid-template-columns: 1fr; }
  .nav {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; background: var(--surface); padding: 16px 20px;
    border-bottom: 1px solid var(--soft); gap: 14px;
  }
  .nav.open { display: flex; }
  .nav-toggle { display: block; }
}
