:root {
  --paper: #f5efe4;
  --paper-raised: #ffffff;
  --paper-sunken: #ebe0cd;
  --ink: #2b241c;
  --ink-soft: #6b5d4d;
  --ink-faint: #a89880;
  --border: rgba(43, 36, 28, 0.12);

  --coral: #ff6b4a;
  --coral-strong: #e6512f;
  --coral-soft: rgba(255, 107, 74, 0.14);

  --teal: #0f7a6b;
  --teal-strong: #0a5b50;
  --teal-soft: rgba(15, 122, 107, 0.14);

  --rose: #c2477a;
  --rose-strong: #9c3560;
  --rose-soft: rgba(194, 71, 122, 0.14);

  --mustard: #e8a33d;

  --shadow: 0 20px 45px rgba(43, 36, 28, 0.12);
  --radius-card: 22px;
  --radius-pill: 999px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

h1, h2, h3 {
  font-family: "Baloo 2", "Manrope", sans-serif;
  font-weight: 700;
  line-height: 1.15;
  margin: 0;
}

p {
  margin: 0;
}

a {
  color: inherit;
}

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

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

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(245, 239, 228, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Baloo 2", sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: var(--coral-strong);
  text-decoration: none;
}

.brand svg {
  width: 30px;
  height: 30px;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0 96px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 520px;
  background: radial-gradient(60% 60% at 30% 20%, var(--coral-soft), transparent 70%),
    radial-gradient(50% 50% at 80% 10%, var(--teal-soft), transparent 70%),
    radial-gradient(45% 45% at 60% 60%, var(--rose-soft), transparent 70%);
  pointer-events: none;
}

.hero .wrap {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  background: var(--paper-raised);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-soft);
  margin-bottom: 22px;
}

.hero-pill .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
}

.hero h1 {
  font-size: 46px;
  letter-spacing: -0.01em;
}

.hero h1 span {
  color: var(--coral-strong);
}

.hero-sub {
  margin-top: 20px;
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 46ch;
}

.kind-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}

.kind-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 14px;
  color: #fff;
}

.kind-chip.lost { background: var(--coral); }
.kind-chip.found { background: var(--teal); }
.kind-chip.adoption { background: var(--rose); }

.hero-actions {
  margin-top: 36px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.store-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 14px;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.store-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(43, 36, 28, 0.22);
}

.store-badge small {
  display: block;
  font-weight: 500;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.7);
}

.hero-note {
  font-size: 13px;
  color: var(--ink-faint);
}

/* ---------- Hero art ---------- */

.hero-art {
  position: relative;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-art .ring {
  position: absolute;
  border-radius: 50%;
  border: 1.5px dashed var(--border);
}

.hero-art .ring.r1 { inset: 6%; }
.hero-art .ring.r2 { inset: 20%; border-color: var(--coral-soft); }

.hero-art .paw-halo {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: var(--paper-raised);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-art .paw-halo svg {
  width: 110px;
  height: 110px;
}

.floaty {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 16px;
  background: var(--paper-raised);
  box-shadow: var(--shadow);
  font-size: 13px;
  font-weight: 700;
}

.floaty .swatch {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.floaty.f1 { top: 6%; left: -4%; color: var(--coral-strong); }
.floaty.f1 .swatch { background: var(--coral); }

.floaty.f2 { bottom: 12%; right: -6%; color: var(--teal-strong); }
.floaty.f2 .swatch { background: var(--teal); }

.floaty.f3 { bottom: -2%; left: 14%; color: var(--rose-strong); }
.floaty.f3 .swatch { background: var(--rose); }

/* ---------- Section shell ---------- */

section {
  padding: 88px 0;
}

.section-head {
  max-width: 56ch;
  margin: 0 auto 48px;
  text-align: center;
}

.eyebrow {
  display: block;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--coral-strong);
  margin-bottom: 12px;
}

.section-head h2 {
  font-size: 32px;
}

.section-head p {
  margin-top: 14px;
  color: var(--ink-soft);
  font-size: 16px;
}

/* ---------- How it works ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.step {
  background: var(--paper-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 28px 24px;
  position: relative;
}

.step .num {
  position: absolute;
  top: -14px;
  left: 24px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-family: "Baloo 2", sans-serif;
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step .icon-halo {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--coral-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.step .icon-halo svg {
  width: 22px;
  height: 22px;
  color: var(--coral-strong);
}

.step h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.step p {
  color: var(--ink-soft);
  font-size: 14.5px;
}

/* ---------- Category cards ---------- */

.categories {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.category-card {
  border-radius: var(--radius-card);
  padding: 30px 26px;
  color: #fff;
  position: relative;
  overflow: hidden;
  min-height: 240px;
  display: flex;
  flex-direction: column;
}

.category-card.lost { background: linear-gradient(160deg, var(--coral-strong), var(--coral)); }
.category-card.found { background: linear-gradient(160deg, var(--teal-strong), var(--teal)); }
.category-card.adoption { background: linear-gradient(160deg, var(--rose-strong), var(--rose)); }

.category-card .icon-halo {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.category-card .icon-halo svg {
  width: 24px;
  height: 24px;
}

.category-card h3 {
  font-size: 21px;
  margin-bottom: 10px;
}

.category-card p {
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.9);
  flex: 1;
}

.category-card .tag {
  align-self: flex-start;
  margin-top: 18px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.18);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
}

/* ---------- Trust ---------- */

.trust {
  background: var(--paper-sunken);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.trust-item {
  display: flex;
  gap: 16px;
}

.trust-item .icon-halo {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--paper-raised);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(43, 36, 28, 0.08);
}

.trust-item .icon-halo svg {
  width: 20px;
  height: 20px;
  color: var(--teal-strong);
}

.trust-item h3 {
  font-size: 16px;
  margin-bottom: 6px;
}

.trust-item p {
  font-size: 14px;
  color: var(--ink-soft);
}

/* ---------- Final CTA ---------- */

.final-cta {
  text-align: center;
}

.final-cta-card {
  background: var(--ink);
  color: #fff;
  border-radius: 28px;
  padding: 64px 32px;
  position: relative;
  overflow: hidden;
}

.final-cta-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(50% 80% at 20% 0%, rgba(255, 107, 74, 0.35), transparent 60%),
    radial-gradient(50% 80% at 85% 100%, rgba(15, 122, 107, 0.35), transparent 60%);
}

.final-cta-card > * {
  position: relative;
}

.final-cta-card h2 {
  font-size: 30px;
  max-width: 26ch;
  margin: 0 auto;
}

.final-cta-card p {
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 15px;
}

.final-cta-card .store-row {
  justify-content: center;
  margin-top: 30px;
}

.final-cta-card .store-badge {
  opacity: 1;
  background: #fff;
  color: var(--ink);
}

.final-cta-card .store-badge small {
  color: var(--ink-faint);
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
}

.site-footer .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--ink-faint);
}

.site-footer .brand {
  font-size: 15px;
}

.site-footer .brand svg {
  width: 20px;
  height: 20px;
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .hero .wrap {
    grid-template-columns: 1fr;
  }

  .hero-art {
    max-width: 320px;
    margin: 0 auto;
  }

  .hero h1 {
    font-size: 36px;
  }

  .steps,
  .categories,
  .trust-grid {
    grid-template-columns: 1fr;
  }

  section {
    padding: 64px 0;
  }

  .final-cta-card {
    padding: 48px 24px;
  }
}

@media (prefers-color-scheme: dark) {
  /* Deliberately not adapting to dark mode -- the app itself never does
     either (see clouiapp-app/src/constants/theme.ts), the warm cream
     palette is the brand, not a light-mode default. */
}
