@font-face {
  font-family: 'Baloo 2';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/fonts/baloo2-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url('/fonts/nunito-latin.woff2') format('woff2');
}

:root {
  /* Lifted from AppColors — the same palette the app itself paints with. */
  --mint: #BFEEDD;
  --mint-deep: #8FDDC3;
  --mint-wash: #EAF8F1;
  --coral: #F98D6E;
  --coral-deep: #F16A4C;
  --cream: #FCE7AC;
  --cream-wash: #FDF4D8;
  --ink: #33281F;
  --ink-soft: #6B5A4E;
  --paper: #FFFDF8;
  --rule: #EFE4D6;

  --display: 'Baloo 2', ui-rounded, 'Segoe UI', system-ui, sans-serif;
  --body: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--mint);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

.stage {
  max-width: 49rem;
  margin: 0 auto;
  padding: clamp(1.75rem, 5vw, 3.5rem) clamp(1rem, 4vw, 2rem) 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.wordmark {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: 0.02em;
  color: #2A6552;
}

/* The cat straddles the mint/paper seam, the way the illustration in the app
   rises past the coral/cream band boundary instead of being clipped by it. */
.mark {
  display: block;
  width: clamp(104px, 24vw, 136px);
  height: auto;
  margin: clamp(0.75rem, 3vw, 1.25rem) 0 clamp(-40px, -9vw, -56px);
  position: relative;
  z-index: 1;
}

/* One continuous sheet of paper for the document and its footer, so the
   card has a single silhouette and its shadow has nothing to fall onto. */
.paper {
  width: 100%;
  background: var(--paper);
  border-radius: 28px;
  box-shadow: 0 18px 44px rgba(42, 101, 82, 0.16);
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
}

.sheet {
  padding: clamp(3.5rem, 11vw, 4.75rem) clamp(1.4rem, 5vw, 3.25rem) clamp(2.5rem, 6vw, 3.5rem);
}

h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.15rem, 7vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0;
  text-align: center;
}

.meta {
  margin: 0.75rem 0 0;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.lede {
  margin: clamp(1.75rem, 4vw, 2.25rem) 0 0;
  font-size: clamp(1.0625rem, 2.4vw, 1.1875rem);
  line-height: 1.65;
}

/* --- The ledger: the page's thesis, stated before any prose. --- */
.ledger {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: clamp(0.75rem, 2vw, 1rem);
  margin: clamp(2rem, 5vw, 2.75rem) 0 0;
}

@media (max-width: 41rem) {
  .ledger { grid-template-columns: 1fr; }
}

.panel {
  border-radius: 20px;
  padding: clamp(1.15rem, 3.5vw, 1.5rem);
}

.panel--stays { background: var(--mint-wash); }
.panel--leaves { background: var(--cream-wash); }

.panel h2, .panel h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: 0.01em;
  margin: 0 0 0.85rem;
}

.panel ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}

.panel li {
  position: relative;
  padding-left: 1.4rem;
  font-size: 0.9375rem;
  line-height: 1.55;
}

.panel li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.52em;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 3px;
}

.panel--stays li::before { background: var(--mint-deep); }
.panel--leaves li::before { background: var(--coral); }

.panel__nothing {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.1rem, 6.5vw, 2.75rem);
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--coral-deep);
  margin: 0.2rem 0 0;
}

.panel__note {
  margin: 0.95rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

/* --- Body sections --- */
section.doc { margin-top: clamp(2.25rem, 5vw, 3rem); }

section.doc h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.3rem, 3.4vw, 1.5rem);
  line-height: 1.25;
  margin: 0 0 0.65rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
}

section.doc h2::before {
  content: "";
  display: block;
  width: 2.25rem;
  height: 4px;
  border-radius: 2px;
  background: var(--coral);
  margin-bottom: 1.1rem;
}

section.doc p { margin: 0 0 1rem; }
section.doc p:last-child { margin-bottom: 0; }

section.doc > ul {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

section.doc > ul li {
  position: relative;
  padding-left: 1.5rem;
}

section.doc > ul li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 0.62em;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--coral);
}

strong { font-weight: 800; }

a {
  color: var(--coral-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color 0.15s ease;
}

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

a:focus-visible {
  outline: 2px solid var(--coral-deep);
  outline-offset: 3px;
  border-radius: 3px;
}

.contact {
  margin-top: 1.25rem;
  padding: clamp(1.1rem, 3vw, 1.35rem);
  background: var(--mint-wash);
  border-radius: 18px;
  font-size: 0.9375rem;
}

.contact p { margin: 0; }

.page-footer {
  padding: 0 clamp(1.4rem, 5vw, 3.25rem) clamp(2rem, 5vw, 2.5rem);
  text-align: center;
  font-size: 0.8125rem;
  color: #2A6552;
}

.page-footer__inner {
  border-top: 1px solid var(--rule);
  padding-top: 1.5rem;
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* Footer nav. Quieter than body links — it repeats on every page and should
   sit under the content, not compete with it. */
.page-footer__inner { line-height: 1.9; }

.page-footer a {
  color: inherit;
  text-decoration-color: rgba(42, 101, 82, 0.45);
}

.page-footer a:hover { color: var(--coral-deep); }

/* ==========================================================================
   Home page. Everything above is shared with the privacy and support
   documents; everything below is scoped to .home so adding it could not
   change how those two render.
   ========================================================================== */

.home .sheet { padding-top: clamp(2.5rem, 7vw, 3.5rem); }

.home h1 { font-size: clamp(2.1rem, 6.2vw, 3.15rem); }

.home .lede {
  margin-left: auto;
  margin-right: auto;
  max-width: 34rem;
  text-align: center;
  color: var(--ink-soft);
}

/* --- Call to action --- */
.cta {
  margin: clamp(1.75rem, 4vw, 2.25rem) 0 0;
  text-align: center;
}

/* Apple's badge, so no styling of the badge itself — only the link box
   around it, sized so the artwork stays above the 40px minimum the
   guidelines set and keeps clear space on every side. */
.cta__badge {
  display: inline-block;
  line-height: 0;
  border-radius: 8px;
}

.cta__badge img {
  display: block;
  height: 3.5rem;
  width: auto;
}

.cta__badge:focus-visible {
  outline: 3px solid var(--coral-deep);
  outline-offset: 4px;
  border-radius: 8px;
}

.cta__note {
  margin: 0.9rem 0 0;
  font-size: 0.875rem;
  color: var(--ink-soft);
}

/* --- The Pet Zone: the app's own frame, rebuilt in markup. The cat
   straddles the coral/cream seam here for the same reason it does in the
   app — that overlap is what the whole card is arranged around. --- */
.petzone {
  position: relative;
  margin: clamp(2rem, 5vw, 2.75rem) 0 0;
  border-radius: 24px;
  overflow: hidden;
  isolation: isolate;
}

.petzone__coral {
  background: linear-gradient(180deg, var(--coral) 0%, var(--coral-deep) 100%);
  padding: clamp(1.1rem, 3.5vw, 1.5rem) clamp(1.2rem, 4vw, 1.75rem) clamp(7.5rem, 19vw, 10.5rem);
}

.petzone__title {
  margin: 0 0 0.9rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.05rem, 3vw, 1.25rem);
  color: var(--paper);
}

.petzone__gauge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.petzone__meter {
  flex: 1;
  height: 0.85rem;
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.42);
  overflow: hidden;
}

.petzone__meter span {
  display: block;
  height: 100%;
  width: 62%;
  border-radius: 999px;
  background: var(--paper);
  transform-origin: left center;
  animation: petzone-fill 1.1s cubic-bezier(0.22, 0.9, 0.3, 1) both;
}

@keyframes petzone-fill {
  from { transform: scaleX(0.06); }
  to   { transform: scaleX(1); }
}

.petzone__label {
  font-size: 0.8125rem;
  font-weight: 700;
  color: rgba(255, 253, 248, 0.92);
  white-space: nowrap;
}

.petzone__cream {
  background: var(--cream);
  height: clamp(4.5rem, 14vw, 6.75rem);
}

/* The mat, then the cat on top of it, both anchored to the cream band. */
.petzone__mat {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: clamp(1rem, 3vw, 1.5rem);
  width: min(54%, 18rem);
  height: clamp(1.6rem, 4.5vw, 2.25rem);
  border-radius: 999px;
  background: var(--cream-wash);
  border: 4px solid var(--coral-deep);
}

.petzone__cat {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: clamp(1.9rem, 5.5vw, 2.7rem);
  width: clamp(140px, 32vw, 196px);
  height: auto;
}

/* --- How it works: a real sequence, so the steps are numbered. --- */
.steps {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding: clamp(1.05rem, 3vw, 1.3rem) clamp(1.1rem, 3vw, 1.4rem) clamp(1.05rem, 3vw, 1.3rem) 4rem;
  background: var(--mint-wash);
  border-radius: 18px;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: clamp(1.1rem, 3vw, 1.4rem);
  top: clamp(1.05rem, 3vw, 1.3rem);
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--coral-deep);
  color: var(--paper);
  font-family: var(--display);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
}

.steps h3 {
  margin: 0 0 0.3rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.0625rem;
}

.steps p { margin: 0; font-size: 0.9375rem; line-height: 1.6; }

/* --- Feature list --- */
/* Scoped under .home and given two classes on purpose: the shared
   `section.doc > ul li::before` rule is a coral circle and outranks a
   single-class selector, so an unscoped .features would silently lose. */
.home .features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem 1.5rem;
}

@media (max-width: 41rem) {
  .home .features { grid-template-columns: 1fr; }
}

.home .features li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.9375rem;
  line-height: 1.55;
}

.home .features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.52em;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 3px;
  background: var(--mint-deep);
}

/* --- FAQ. Question-shaped headings with self-contained answers: the same
   shape a person skims and an answer engine quotes. --- */
.faq h3 {
  margin: 1.5rem 0 0.4rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.0625rem;
  line-height: 1.35;
}

.faq h3:first-of-type { margin-top: 0; }

.faq p { margin: 0 0 0.5rem; font-size: 0.9375rem; }

/* The meter fills once on load. It is the page's only motion, and it is
   there because a fullness meter that arrives full says nothing. */
@media (prefers-reduced-motion: reduce) {
  .petzone__meter span { animation: none; }
}
