/* Pup-a-gram website — brand tokens shared with the app
   cream #FFF8EC · green #1E5631 · brown #5F4B35 · muted #7A6E5F
   sand #F3E7D0 · hairline #D6C3A4 · red #B3261E                        */
:root {
  --cream: #FFF8EC;
  --sand: #F3E7D0;
  --hairline: #D6C3A4;
  --green: #1E5631;
  --green-deep: #143E22;
  --green-soft: #E4EFE6;
  --brown: #5F4B35;
  --muted: #7A6E5F;
  --red: #B3261E;
  --white: #FFFFFF;
  --focus: #1E5631;
  --radius: 20px;
  --radius-sm: 12px;
  --wrap: 1100px;
  --font: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--brown);
  background: var(--cream);
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--green); text-underline-offset: 0.15em; }
a:hover { color: var(--green-deep); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { color: var(--green); line-height: 1.2; margin: 0 0 0.5em; font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3.4vw, 2rem); margin-top: 1.4em; }
h3 { font-size: 1.2rem; margin-top: 1.3em; color: var(--brown); }
p, ul, ol { margin: 0 0 1em; }
ul, ol { padding-left: 1.4em; }
li + li { margin-top: 0.3em; }
strong { color: inherit; }
hr { border: 0; border-top: 1px solid var(--hairline); margin: 2.5rem 0; }
.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.fine { font-size: 0.9rem; color: var(--muted); }

/* skip link */
.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 100;
  background: var(--green); color: var(--white); padding: 10px 14px; border-radius: 8px;
}
.skip-link:focus { top: 8px; }

/* header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 248, 236, 0.96);
  border-bottom: 1px solid var(--hairline);
  backdrop-filter: blur(6px);
}
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 1.3rem; letter-spacing: 0.01em; text-decoration: none; color: var(--green);
  min-height: 44px;
}
.brand .paw { width: 34px; height: 34px; fill: var(--green); }
.site-nav { display: flex; flex-wrap: wrap; gap: 4px; }
.site-nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
  border-radius: 999px; text-decoration: none; font-weight: 600; color: var(--brown);
}
.site-nav a:hover { background: var(--sand); color: var(--green-deep); }
.site-nav a[aria-current="page"] { background: var(--green); color: var(--white); }
.nav-toggle {
  display: none; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px;
  border: 1.5px solid var(--green); border-radius: 999px; background: transparent;
  color: var(--green); font: inherit; font-weight: 700; cursor: pointer;
}
.nav-toggle-bars { width: 18px; height: 2px; background: currentColor; position: relative; display: inline-block; }
.nav-toggle-bars::before, .nav-toggle-bars::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: currentColor;
}
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }
  .site-nav { display: none; width: 100%; flex-direction: column; padding: 8px 0 14px; border-top: 1px solid var(--hairline); }
  .site-nav.is-open { display: flex; }
  .site-nav a { min-height: 48px; }
}

/* main */
main { padding: 32px 0 64px; }
main:focus { outline: none; }
.lede { font-size: 1.25rem; color: var(--brown); max-width: 60ch; }
.prose { max-width: 72ch; }
.prose h2 { margin-top: 2em; padding-top: 0.2em; }
.prose h2:first-of-type { margin-top: 1.2em; }
.meta { color: var(--muted); font-size: 0.95rem; margin-bottom: 1.5rem; }

/* notices */
.notice {
  border-radius: var(--radius-sm); padding: 14px 18px; margin: 1.2rem 0 1.6rem;
  border: 1px solid var(--hairline); background: var(--sand);
}
.notice.draft {
  background: #FFF1D6; border-color: #E6C27A; color: #5A4312;
}
.notice.draft strong { color: #7A4B00; }
.notice.info { background: var(--green-soft); border-color: #BBD2C0; }
.notice.warn { background: #FBE9E7; border-color: #E8B4AE; color: #6B1F18; }
.todo {
  background: #FFF1D6; color: #7A4B00; border-bottom: 2px dotted #C98A1B;
  padding: 0 4px; border-radius: 3px; font-weight: 600;
}

/* buttons / pills */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px; border-radius: 999px; text-decoration: none; font-weight: 700;
  background: var(--green); color: var(--white); border: 1.5px solid var(--green);
}
.button:hover { background: var(--green-deep); color: var(--white); }
.button.secondary { background: transparent; color: var(--green); }
.button.secondary:hover { background: var(--green-soft); }
.store-badges { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.2rem 0 0.4rem; }
.store-badge {
  display: inline-flex; flex-direction: column; justify-content: center;
  min-height: 56px; padding: 8px 18px; border-radius: 12px;
  background: var(--white); border: 1.5px dashed var(--hairline); color: var(--muted);
  font-size: 0.85rem; line-height: 1.25; cursor: default;
}
.store-badge strong { color: var(--brown); font-size: 1rem; }

/* hero */
.hero {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center;
  padding: 24px 0 8px;
}
.hero h1 { margin-bottom: 0.4em; }
.hero-art { display: flex; justify-content: center; }
.hero-art svg { width: min(100%, 360px); height: auto; filter: drop-shadow(0 18px 30px rgba(95, 75, 53, 0.18)); }
.eyebrow {
  display: inline-block; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--green); background: var(--green-soft); padding: 6px 12px; border-radius: 999px; margin-bottom: 14px;
}
@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; gap: 24px; }
  .hero-art { order: -1; }
  .hero-art svg { width: min(100%, 260px); }
}

/* feature grid */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin: 1rem 0 0; padding: 0; list-style: none; }
.features li { margin: 0; }
.card {
  background: var(--white); border: 1px solid var(--hairline); border-radius: var(--radius);
  padding: 22px 22px 18px; height: 100%;
}
.card h3 { margin-top: 0.2em; }
.card .icon {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  background: var(--green-soft); color: var(--green); margin-bottom: 10px;
}
.card .icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.card p { margin-bottom: 0; color: var(--brown); }

/* sections */
.section { margin-top: 3.2rem; }
.section-head { max-width: 62ch; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 820px) { .two-col { grid-template-columns: 1fr; } }
.steps { counter-reset: step; list-style: none; padding: 0; }
.steps li {
  counter-increment: step; position: relative; padding: 0 0 0 52px; margin: 0 0 16px;
}
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 36px; height: 36px; border-radius: 50%; background: var(--green); color: var(--white);
  display: grid; place-items: center; font-weight: 700;
}
.checklist { list-style: none; padding: 0; }
.checklist li { padding-left: 30px; position: relative; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 0.45em; width: 16px; height: 16px; border-radius: 50%;
  background: var(--green); mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2 8.5l4 4 8-9' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2 8.5l4 4 8-9' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
}
table { border-collapse: collapse; width: 100%; margin: 1rem 0 1.5rem; font-size: 0.97rem; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--hairline); }
th { color: var(--green); background: var(--sand); }
@media (max-width: 640px) {
  table, thead, tbody, tr, th, td { display: block; }
  thead { position: absolute; left: -9999px; }
  tr { border: 1px solid var(--hairline); border-radius: var(--radius-sm); margin-bottom: 12px; background: var(--white); }
  td { border: 0; padding: 8px 14px; }
  td::before { content: attr(data-label); display: block; font-weight: 700; color: var(--green); }
}
dl.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; }
dl.kv dt { font-weight: 700; }
dl.kv dd { margin: 0; }
@media (max-width: 640px) { dl.kv { grid-template-columns: 1fr; } dl.kv dd { margin-bottom: 8px; } }
.toc { background: var(--white); border: 1px solid var(--hairline); border-radius: var(--radius-sm); padding: 16px 20px; margin: 1.5rem 0 2rem; }
.toc ol { margin: 0.4rem 0 0; columns: 2; column-gap: 24px; }
.toc li { break-inside: avoid; }
@media (max-width: 640px) { .toc ol { columns: 1; } }
code { font-family: Consolas, "Courier New", monospace; font-size: 0.95em; background: var(--sand); padding: 1px 5px; border-radius: 4px; }

/* footer */
.site-footer { border-top: 1px solid var(--hairline); background: var(--sand); padding: 36px 0 24px; color: var(--brown); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 28px; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand { font-weight: 800; color: var(--green); font-size: 1.15rem; margin-bottom: 0.3em; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links a { display: inline-block; min-height: 40px; line-height: 40px; }
.copyright { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--hairline); }

/* print: legal pages */
@media print {
  .site-header, .site-footer, .skip-link, .nav-toggle { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  a { color: #000; text-decoration: underline; }
  .notice.draft { border: 2px solid #000; }
}
