/* Pawdex marketing site stylesheet. No external fonts, no frameworks.
 * The colour tokens, the focus ring and the reduced-motion rules live in each
 * page's inline <style id="base"> (identical on all three pages), because the
 * self-test cannot read an external sheet's rules over file://. */

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-rounded);
  line-height: 1.55;
  overflow-x: hidden;
}

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

a { color: var(--link); text-decoration-thickness: 2px; }
a:hover { text-decoration-style: wavy; }

h1, h2, h3, h4 { font-weight: 700; line-height: 1.15; margin: 0 0 0.5em; }
p { margin: 0 0 1em; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--surface);
  color: var(--text);
  padding: 0.6em 1em;
  border-radius: var(--radius-sm);
  z-index: 100;
}
.skip-link:focus { left: 1em; top: 1em; }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
}

section { padding: clamp(2.5rem, 6vw, 5rem) 0; }
section + section { border-top: 1px solid var(--border); }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
}

.section-title { font-size: clamp(1.5rem, 1rem + 2vw, 2.25rem); }
.section-lede { max-width: 42em; color: var(--muted); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  justify-content: center;
  border: none;
  border-radius: 999px;
  padding: 0.85em 1.6em;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.btn-brand {
  background: linear-gradient(135deg, var(--brand-1), var(--brand-2), var(--brand-3));
  color: var(--on-brand);
}
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--border);
}

/* ---------- site header / nav ---------- */
.site-header {
  padding: 1.25rem 0;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand-mark { height: 2rem; width: auto; }
.site-nav ul {
  display: flex;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
.site-nav a { color: var(--text); font-weight: 600; text-decoration: none; }
.site-nav a:hover { color: var(--link); }

/* ---------- hero ---------- */
#hero .wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 860px) {
  #hero .wrap { grid-template-columns: 1.1fr 0.9fr; }
}
.hero-copy .brand-mark { height: 2.75rem; margin-bottom: 1.5rem; }
.hero-tagline { font-size: clamp(1.6rem, 1.1rem + 2.4vw, 2.75rem); margin-bottom: 0.5rem; }
.hero-subtagline { font-size: 1.15rem; font-weight: 700; color: var(--link); margin-bottom: 1.25rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; margin-top: 1.5rem; }

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.6em 1em;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted);
}
.store-badge svg { width: 1.4em; height: 1.4em; flex: none; }

.waitlist-form {
  margin-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: flex-start;
}
.waitlist-form .field { display: flex; flex-direction: column; gap: 0.35rem; flex: 1 1 14rem; }
.waitlist-form label { font-weight: 700; font-size: 0.9rem; }
.waitlist-form input[type="email"] {
  font: inherit;
  padding: 0.75em 1em;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border);
  background: var(--surface);
  color: var(--text);
  min-width: 0;
}
.waitlist-form .form-alert {
  flex-basis: 100%;
  color: var(--link);
  font-weight: 700;
  min-height: 1.2em;
}

/* phone mock-up + Pawmon card, built entirely in HTML/CSS */
.phone-stage { display: flex; justify-content: center; }
.phone {
  width: min(280px, 80vw);
  aspect-ratio: 9 / 18.5;
  background: linear-gradient(160deg, var(--brand-1), var(--brand-2) 55%, var(--brand-3));
  border-radius: 2.5rem;
  padding: 0.6rem;
  box-shadow: 0 25px 60px -20px rgba(26, 31, 77, 0.45);
}
.phone-screen {
  height: 100%;
  background: var(--surface);
  border-radius: 2rem;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.pawmon-card {
  background: var(--bg);
  border-radius: var(--radius-md);
  border: 2px solid var(--border);
  padding: 1.1rem;
  text-align: left;
}
.pawmon-card__type {
  margin: 0 0 0.3rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: var(--link);
}
.pawmon-card__name { margin: 0 0 0.6rem; font-size: 1.25rem; }
.pawmon-card__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem 0.8rem;
  margin: 0 0 0.6rem;
}
.pawmon-card__stats div { display: flex; justify-content: space-between; font-size: 0.85rem; }
.pawmon-card__stats dt { color: var(--muted); font-weight: 600; }
.pawmon-card__stats dd { margin: 0; font-weight: 700; }
.pawmon-card__moves { font-size: 0.8rem; color: var(--muted); margin: 0 0 0.6rem; }
.pawmon-card__stray { font-size: 0.8rem; font-weight: 700; color: var(--link); margin: 0; }

/* ---------- how it works ---------- */
#how ol {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
}
#how li {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem; height: 2.25rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-1), var(--brand-3));
  color: var(--on-brand);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

/* ---------- demo ---------- */
.demo-grid {
  display: grid;
  gap: 2rem;
  margin-top: 2rem;
}
@media (min-width: 760px) {
  .demo-grid { grid-template-columns: 1fr 1fr; align-items: start; }
}
.demo-controls { display: grid; gap: 1rem; }
.demo-controls .field { display: flex; flex-direction: column; gap: 0.35rem; }
.demo-controls label { font-weight: 700; }
.demo-controls select {
  font: inherit;
  padding: 0.65em 1em;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border);
  background: var(--surface);
  color: var(--text);
}
.demo-stray-field { flex-direction: row !important; align-items: center; gap: 0.6rem !important; }
#demo-card { min-height: 10rem; }
.demo-pawmon-card { max-width: 24rem; }

/* ---------- types ---------- */
#types ul {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
}
#types li {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  text-align: center;
}
#types svg { width: 3rem; height: 3rem; margin-bottom: 0.5rem; }
#types h3 { margin: 0; font-size: 1rem; }

/* ---------- safety ---------- */
#safety ul {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}
#safety li {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}
#safety svg { width: 1.75rem; height: 1.75rem; flex: none; }

/* ---------- shelters ---------- */
#shelters .wrap { display: grid; gap: 1.5rem; }
@media (min-width: 760px) {
  #shelters .wrap { grid-template-columns: 1.2fr 0.8fr; align-items: center; }
}
.shelter-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}

/* ---------- compare table ---------- */
.table-scroll { overflow-x: auto; margin-top: 1.5rem; }
table { border-collapse: collapse; width: 100%; min-width: 36rem; }
caption { text-align: left; font-weight: 700; margin-bottom: 0.75rem; }
th, td { text-align: left; padding: 0.75rem 1rem; border-bottom: 1px solid var(--border); vertical-align: top; }
thead th { background: var(--surface); }

/* ---------- FAQ ---------- */
#faq details {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
}
#faq summary { font-weight: 700; cursor: pointer; }
#faq p { margin-top: 0.75rem; margin-bottom: 0; color: var(--muted); }

/* ---------- footer ---------- */
footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
}
footer .wrap { display: flex; flex-direction: column; gap: 0.75rem; }
footer nav ul { list-style: none; display: flex; gap: 1.25rem; flex-wrap: wrap; padding: 0; margin: 0; }
footer p { color: var(--muted); font-size: 0.9rem; margin: 0; }

/* ---------- generic content helpers (privacy / press) ---------- */
.prose h2 { margin-top: 2rem; }
.prose ul { padding-left: 1.25rem; }
.press-assets {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
}
.press-assets li {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.press-assets img { max-height: 5rem; width: auto; }

/* ---------- additions for the built pages ---------- */
.wordmark { height: 3.25rem; width: auto; margin-bottom: 1.25rem; }
.form-note { flex-basis: 100%; font-size: 0.85rem; color: var(--muted); margin: 0; }
.phone-status { margin: 0 0 0.75rem; text-align: center; font-weight: 700; color: var(--text); }
.split-grid { display: grid; gap: 2rem; }
@media (min-width: 860px) { .split-grid { grid-template-columns: 1.3fr 1fr; align-items: center; } }
.split-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.split-points li { background: var(--surface); border-radius: var(--radius-md); padding: 1.1rem 1.25rem; }
#compete .split-points { grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); margin-top: 2rem; }
#compete h3, #partner h3 { font-size: 1.05rem; margin: 0 0 0.25rem; }
#compete .split-points p, #partner .split-points p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* discovery badge and the animated creature, drawn by Pawdex.creatureSvg */
.discovery-badge {
  margin: 0 0 0.6rem; padding: 0.35rem 0.75rem; border-radius: 999px;
  background: var(--brand-1); color: var(--on-brand);
  font-size: 0.8rem; font-weight: 800; text-align: center;
}
.discovery-badge--seen { background: var(--surface); color: var(--text); border-radius: var(--radius-sm); font-weight: 600; text-align: left; }
.creature {
  display: block; width: 7.5rem; height: 7.5rem; margin: 0 auto 0.5rem; overflow: visible;
  border-radius: 50%; background: radial-gradient(circle at 50% 60%, var(--surface) 0 62%, transparent 63%);
}
.phone .creature { width: 8.5rem; height: 8.5rem; background: radial-gradient(circle at 50% 60%, var(--bg) 0 62%, transparent 63%); }
.creature__body { transform-box: fill-box; transform-origin: 50% 100%; animation: breathe 3.2s ease-in-out infinite; }
.creature__eye { transform-box: fill-box; transform-origin: center; animation: blink 4.6s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.04, 0.97); } }
@keyframes blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(0.1); } }
.demo-stray-field input[type="checkbox"] { width: 1.5rem; height: 1.5rem; margin: 0; accent-color: var(--brand-2); }
#safety h3 { font-size: 1.05rem; margin-bottom: 0.25rem; }
#safety p, #types p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.page-head { padding-bottom: 0; }
.prose { max-width: 46rem; }
.facts-list { display: grid; grid-template-columns: max-content 1fr; gap: 0.5rem 1.5rem; margin: 0; }
.facts-list dt { font-weight: 700; }
.facts-list dd { margin: 0; }
@media (max-width: 480px) { .facts-list { grid-template-columns: 1fr; } .facts-list dd { margin-bottom: 0.5rem; } }

/* gentle motion, switched off by the reduced-motion block in <style id="base"> */
.phone { animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-8px); } }
.btn { transition: transform 0.15s ease; }
.btn:hover { transform: translateY(-1px); }
