/* Tailbook site. Sticker Club: cream surface, paper cards, ink outlines, hard ink shadows.
   Pet colors (yellow, green, orange, blue) are decoration only. Red is for emergencies only. */

:root {
  color-scheme: light;
  --cream: #F8F5DC;
  --paper: #FFFDF3;
  --ink: #111;
  --ink-2: #4A4738;
  --rule: #111;
  --yellow: #FFC000;
  --green: #4BA275;
  --orange: #EB5A2B;
  --blue: #56BBEA;
  --red: #D7261E;

  --display: "Gabarito", "Arial Rounded MT Bold", system-ui, sans-serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(16px, 4vw, 40px);
  --max: 1160px;
  --radius: 18px;
  --shadow: 4px 4px 0 var(--ink);
  --shadow-sm: 3px 3px 0 var(--ink);
}

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 24px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.55;
  font-variant-numeric: tabular-nums;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 3px; }

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  border-radius: 6px;
  box-shadow: 0 0 0 6px var(--yellow);
}

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 10;
  background: var(--ink); color: var(--paper);
  padding: 10px 16px; border-radius: 10px; font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

h1, h2, h3 {
  font-family: var(--display);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}
h2 { font-size: clamp(34px, 5vw, 56px); font-weight: 900; }
h3 { font-size: 22px; font-weight: 800; line-height: 1.2; }
p { margin: 0; }

/* ---------- Header ---------- */
.site-head { padding: 18px 0; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display); font-weight: 900; font-size: 24px; text-decoration: none;
}
.brand img { width: 40px; height: 40px; border: 2px solid var(--ink); border-radius: 11px; box-shadow: var(--shadow-sm); }
.site-nav { display: flex; gap: 6px 22px; flex-wrap: wrap; font-weight: 600; font-size: 16px; }
.site-nav a { text-decoration: none; padding: 6px 0; }
.site-nav a:hover, .site-nav a[aria-current="page"] { text-decoration: underline; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 10px 22px;
  border: 2px solid var(--ink); border-radius: 14px;
  background: var(--paper); color: var(--ink);
  font: 700 17px/1.2 var(--body); text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform .08s ease, box-shadow .08s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.btn-ink { background: var(--ink); color: var(--paper); }

/* ---------- App Store area ---------- */
.store { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; }
.store-badge {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 56px; padding: 8px 20px 8px 16px;
  background: var(--ink); color: #fff; border: 2px solid var(--ink); border-radius: 14px;
  box-shadow: 4px 4px 0 var(--yellow), 4px 4px 0 2px var(--ink);
  text-decoration: none; line-height: 1.1;
}
.store-badge svg { width: 26px; height: 26px; flex: none; }
.store-badge small { display: block; font-size: 12px; font-weight: 500; }
.store-badge strong { display: block; font-size: 21px; font-weight: 700; font-family: var(--body); letter-spacing: -0.01em; }
.store-soon {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 56px; padding: 10px 20px;
  background: var(--paper); border: 2px dashed var(--ink); border-radius: 14px;
  font-weight: 700; font-size: 17px;
}
.store-soon svg { width: 22px; height: 22px; flex: none; }
.store-note { font-size: 15px; color: var(--ink-2); }

/* ---------- Hero ---------- */
.hero { padding: clamp(24px, 5vw, 56px) 0 clamp(56px, 8vw, 104px); }
.hero .wrap {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(32px, 5vw, 72px); align-items: center;
}
.wordmark {
  position: relative;
  display: inline-block;
  font-size: clamp(72px, 13vw, 168px);
  font-weight: 900;
  line-height: .86;
  letter-spacing: -0.035em;
  margin: 0 0 28px;
  padding-top: .12em;
}
.wordmark .sticker { position: absolute; }
.wordmark .s-dog { width: .52em; padding: .05em; right: -0.3em; top: -0.12em; transform: rotate(12deg); }
.promise {
  font-family: var(--display);
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 800;
  line-height: 1.12;
  max-width: 17ch;
  margin-bottom: 16px;
  text-wrap: balance;
}
.lede { font-size: 19px; color: var(--ink-2); max-width: 46ch; margin-bottom: 30px; }
.hero-art { position: relative; display: flex; justify-content: center; padding: 20px 0; }
.hero-art .disc {
  position: absolute; width: min(420px, 100%); aspect-ratio: 1; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: var(--yellow); border: 2px solid var(--ink); border-radius: 50%;
}
.hero-art .phone { position: relative; transform: rotate(-3deg); }
.hero-art .s-cat { position: absolute; width: 112px; left: -6px; bottom: 34px; transform: rotate(-10deg); z-index: 2; }
.hero-art .s-frenchie { position: absolute; width: 96px; right: 0; top: 4px; transform: rotate(9deg); z-index: 2; }

/* Die-cut sticker: paper border, ink outline, hard shadow */
.sticker {
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 50%;
  padding: 10px;
  box-shadow: var(--shadow-sm);
  aspect-ratio: 1;
}
.sticker img { width: 100%; height: 100%; }
.sticker.on-blue { background: var(--blue); }
.sticker.on-green { background: var(--green); }
.sticker.on-orange { background: var(--orange); }
.sticker.on-yellow { background: var(--yellow); }

/* ---------- Phone frame (pure HTML/CSS illustration) ---------- */
.phone {
  width: 300px; max-width: 100%;
  flex: none;
  background: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 48px;
  padding: 9px;
  box-shadow: 8px 8px 0 rgba(17,17,17,1);
  margin: 0;
}
.screen {
  position: relative;
  height: 600px;
  background: var(--cream);
  border-radius: 39px;
  overflow: hidden;
  padding: 46px 14px 16px;
  font-size: 13px; line-height: 1.35;
  display: flex; flex-direction: column; gap: 10px;
}
.screen::before { /* dynamic island */
  content: ""; position: absolute; top: 11px; left: 50%; transform: translateX(-50%);
  width: 92px; height: 26px; background: var(--ink); border-radius: 20px;
}
.status { position: absolute; top: 14px; left: 30px; right: 26px; display: flex; justify-content: space-between; font-weight: 700; font-size: 13px; }
.status .bars { display: flex; gap: 2px; align-items: flex-end; }
.status .bars i { width: 3px; background: var(--ink); border-radius: 1px; display: block; }
.status .batt { width: 22px; height: 11px; border: 1.5px solid var(--ink); border-radius: 3px; padding: 1px; }
.status .batt::after { content: ""; display: block; height: 100%; width: 70%; background: var(--ink); border-radius: 1px; }
.scr-title { font-family: var(--display); font-weight: 900; font-size: 26px; line-height: 1; letter-spacing: -0.01em; }
.scr-sub { color: var(--ink-2); font-size: 12px; }
.ui-card {
  background: var(--paper); border: 2px solid var(--ink); border-radius: 16px;
  box-shadow: var(--shadow-sm); padding: 10px 12px;
}
.ui-card h4 { margin: 0 0 2px; font-family: var(--display); font-weight: 800; font-size: 15px; line-height: 1.2; }
.ui-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.ui-row + .ui-row { border-top: 1.5px solid rgba(17,17,17,.14); margin-top: 7px; padding-top: 7px; }
.ui-k { color: var(--ink-2); }
.ui-v { font-weight: 700; text-align: right; }
.ui-btn {
  display: flex; justify-content: center; align-items: center; gap: 6px;
  background: var(--ink); color: var(--paper); border-radius: 13px;
  font-weight: 700; font-size: 14px; padding: 11px; border: 2px solid var(--ink);
}
.ui-btn.light { background: var(--paper); color: var(--ink); box-shadow: var(--shadow-sm); }
.ui-pill {
  display: inline-flex; align-items: center; gap: 5px;
  border: 1.5px solid var(--ink); border-radius: 999px; padding: 2px 9px;
  font-weight: 700; font-size: 11.5px; background: var(--paper); white-space: nowrap;
}
.ui-pill svg { width: 12px; height: 12px; }
.ico { width: 16px; height: 16px; flex: none; }
.roster { display: flex; gap: 8px; }
.chip {
  display: flex; align-items: center; gap: 6px;
  border: 2px solid var(--ink); border-radius: 999px; padding: 3px 10px 3px 3px;
  font-weight: 700; font-size: 12.5px; background: var(--paper);
}
.chip.sel { box-shadow: var(--shadow-sm); }
.ava { width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--ink); padding: 1px; flex: none; }
.ava.lg { width: 52px; height: 52px; border-width: 2px; padding: 3px; }
.bg-yellow { background: var(--yellow); }
.bg-blue { background: var(--blue); }
.bg-green { background: var(--green); }
.bg-orange { background: var(--orange); }
.pet-card { border-top: 10px solid var(--yellow); }
.pet-head { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
.pet-head .scr-sub { margin-top: 1px; }
.label-sm { font-weight: 800; font-family: var(--display); font-size: 14px; margin: 2px 2px -2px; }
.when { font-weight: 700; white-space: nowrap; }

/* range bar for lab values */
.range { position: relative; height: 10px; border: 1.5px solid var(--ink); border-radius: 6px; background: var(--paper); margin: 8px 0 4px; }
.range .in { position: absolute; top: 0; bottom: 0; left: 20%; right: 25%; background: rgba(75,162,117,.35); }
.range .dot { position: absolute; top: 50%; width: 12px; height: 12px; border-radius: 50%; background: var(--ink); border: 2px solid var(--paper); transform: translate(-50%, -50%); }
.range-legend { display: flex; justify-content: space-between; font-size: 11px; color: var(--ink-2); }
.spark { width: 100%; height: 34px; margin-top: 6px; }

/* breath counter */
.big-num { font-family: var(--display); font-weight: 900; font-size: 64px; line-height: .9; letter-spacing: -0.02em; }
.big-unit { font-weight: 700; font-size: 13px; }
.compare { display: flex; gap: 8px; margin-top: 10px; }
.compare > div { flex: 1; border: 1.5px solid var(--ink); border-radius: 10px; padding: 6px 8px; }
.compare b { display: block; font-family: var(--display); font-size: 18px; }
.log-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.log-grid span {
  border: 1.5px solid var(--ink); border-radius: 10px; background: var(--paper);
  text-align: center; font-weight: 700; font-size: 11px; padding: 7px 2px;
}
.ui-emerg { background: var(--red); color: #fff; border-color: var(--ink); }
.timer-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.timer-row .t { font-family: var(--display); font-weight: 900; font-size: 22px; }

/* walks + plans */
.heat { display: flex; gap: 10px; align-items: center; }
.heat .temp { font-family: var(--display); font-weight: 900; font-size: 34px; line-height: 1; }
.terrain { width: 100%; height: 30px; margin-top: 8px; }
.checks { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 6px; }
.checks li { display: flex; align-items: center; gap: 8px; }
.box { width: 18px; height: 18px; border: 2px solid var(--ink); border-radius: 6px; flex: none; display: grid; place-items: center; background: var(--paper); }
.box.on { background: var(--ink); }
.box.on::after { content: ""; width: 8px; height: 4px; border-left: 2px solid var(--paper); border-bottom: 2px solid var(--paper); transform: rotate(-45deg) translate(1px, -1px); }
.progress { height: 8px; border: 1.5px solid var(--ink); border-radius: 6px; overflow: hidden; margin-top: 6px; background: var(--paper); }
.progress i { display: block; height: 100%; width: 34%; background: var(--ink); }

/* ---------- Feature sections ---------- */
.feature { padding: clamp(56px, 8vw, 104px) 0; border-top: 2px solid var(--ink); }
.feature .wrap {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px); align-items: center;
}
.feature.flip .feature-art { order: -1; }
.feature-art { position: relative; display: flex; justify-content: center; padding: 16px 0; }
.feature-art .backing {
  position: absolute; inset: 6% 10%; border: 2px solid var(--ink); border-radius: 40px;
  transform: rotate(3deg);
}
.feature.flip .feature-art .backing { transform: rotate(-3deg); }
.feature-art .phone { position: relative; }
.feature-text h2 { margin-bottom: 18px; max-width: 14ch; }
.feature-text > p { font-size: 19px; color: var(--ink-2); max-width: 46ch; }
.ticks { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; max-width: 52ch; }
.ticks li { position: relative; padding-left: 34px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px;
  border: 2px solid var(--ink); border-radius: 7px; background: var(--paper);
  box-shadow: 2px 2px 0 var(--ink);
}
.ticks li::after {
  content: ""; position: absolute; left: 6px; top: 8px; width: 9px; height: 5px;
  border-left: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink); transform: rotate(-45deg);
}
.ticks strong { font-weight: 700; }
.fine { margin-top: 18px; font-size: 15px; color: var(--ink-2); max-width: 52ch; }

/* ---------- Stays on your phone ---------- */
.local { background: var(--ink); color: var(--paper); padding: clamp(56px, 8vw, 96px) 0; }
.local .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 80px); align-items: start; }
.local h2 { max-width: 12ch; }
.local p { font-size: 19px; color: #E9E6CC; max-width: 46ch; }
.local p + p { margin-top: 14px; }
.local a { color: var(--paper); }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.facts li {
  display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: 14px; align-items: baseline;
  border: 2px solid var(--paper); border-radius: 16px; padding: 14px 18px;
}
.facts b { font-family: var(--display); font-size: 22px; font-weight: 800; min-width: 7.5ch; color: var(--paper); }
.facts span { color: #E9E6CC; font-size: 17px; }

/* ---------- Won't do ---------- */
.wont { padding: clamp(56px, 8vw, 104px) 0; }
.note {
  background: var(--paper); border: 2px solid var(--ink); border-radius: 24px;
  box-shadow: 6px 6px 0 var(--ink);
  padding: clamp(24px, 4vw, 48px);
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 56px);
}
.note h2 { margin-bottom: 14px; }
.note-intro { color: var(--ink-2); font-size: 19px; max-width: 34ch; }
.wont-list { list-style: none; margin: 0; padding: 0; }
.wont-list li { padding: 18px 0; border-bottom: 2px solid var(--ink); }
.wont-list li:first-child { padding-top: 0; }
.wont-list h3 { margin-bottom: 4px; }
.wont-list p { color: var(--ink-2); }
.emergency {
  grid-column: 1 / -1;
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--red); color: #fff;
  border: 2px solid var(--ink); border-radius: 18px; padding: 18px 20px;
  box-shadow: var(--shadow);
}
.emergency svg { width: 28px; height: 28px; flex: none; margin-top: 2px; }
.emergency p { font-size: 18px; }
.emergency strong { font-family: var(--display); font-weight: 800; font-size: 20px; line-height: 1.25; display: block; margin-bottom: 4px; }
.emergency a { color: #fff; font-weight: 700; white-space: nowrap; }

/* ---------- FAQ ---------- */
.faq { padding: clamp(56px, 8vw, 104px) 0; border-top: 2px solid var(--ink); }
.faq .wrap { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.faq-side p { color: var(--ink-2); margin-top: 14px; max-width: 30ch; }
.qa { display: grid; gap: 14px; }
.qa details {
  background: var(--paper); border: 2px solid var(--ink); border-radius: 16px;
  box-shadow: var(--shadow-sm);
}
.qa summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 16px 20px; font-family: var(--display); font-weight: 800; font-size: 20px; line-height: 1.25;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: ""; flex: none; width: 26px; height: 26px; border: 2px solid var(--ink); border-radius: 50%;
  background:
    linear-gradient(var(--ink), var(--ink)) center / 12px 2.5px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 2.5px 12px no-repeat,
    var(--cream);
}
.qa details[open] summary::after {
  background: linear-gradient(var(--ink), var(--ink)) center / 12px 2.5px no-repeat, var(--yellow);
}
.qa summary:focus-visible { border-radius: 14px; }
.qa .a { padding: 0 20px 18px; color: var(--ink-2); max-width: 62ch; }
.qa .a p + p { margin-top: 10px; }

/* ---------- Footer ---------- */
.site-foot { border-top: 2px solid var(--ink); padding: 36px 0 44px; font-size: 16px; }
.site-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 18px; }
.foot-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-weight: 600; }
.foot-links span { color: var(--ink-2); }
.foot-small { color: var(--ink-2); font-size: 15px; }

/* ---------- Document pages (privacy, terms, support) ---------- */
.doc-head { padding: clamp(28px, 5vw, 56px) 0 clamp(28px, 4vw, 40px); }
.doc-head h1 { font-size: clamp(48px, 8vw, 92px); font-weight: 900; letter-spacing: -0.03em; line-height: .95; }
.doc-head p { margin-top: 14px; color: var(--ink-2); font-size: 19px; max-width: 56ch; }
.doc { padding-bottom: clamp(56px, 8vw, 96px); }
.doc .wrap { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.toc {
  position: sticky; top: 24px;
  background: var(--paper); border: 2px solid var(--ink); border-radius: 16px; box-shadow: var(--shadow-sm);
  padding: 16px 18px; font-size: 15px;
}
.toc h2 { font-size: 17px; font-weight: 800; margin-bottom: 8px; }
.toc ol { margin: 0; padding-left: 20px; display: grid; gap: 4px; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }
.prose { max-width: 68ch; }
.prose section { padding: 0 0 28px; margin-bottom: 28px; border-bottom: 2px solid var(--ink); }
.prose section:last-child { border-bottom: 0; }
.prose h2 { font-size: clamp(26px, 3vw, 32px); font-weight: 800; margin-bottom: 12px; }
.prose h3 { font-size: 19px; margin: 18px 0 6px; }
.prose p, .prose li { color: #2B2920; }
.prose p + p { margin-top: 12px; }
.prose ul { padding-left: 22px; margin: 10px 0 0; display: grid; gap: 6px; }
.callout {
  background: var(--paper); border: 2px solid var(--ink); border-radius: 16px; box-shadow: var(--shadow-sm);
  padding: 16px 18px; margin: 16px 0 0;
}
.callout.red { background: var(--red); color: #fff; }
.callout.red p, .callout.red a { color: #fff; }
.mail {
  display: inline-flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 12px;
}
.mail code { font-family: var(--body); font-weight: 700; font-size: 17px; background: var(--paper); border: 2px dashed var(--ink); border-radius: 10px; padding: 6px 10px; word-break: break-all; }

/* 404 */
.lost { padding: clamp(40px, 8vw, 96px) 0; text-align: center; }
.lost .sticker { width: 160px; margin: 0 auto 28px; transform: rotate(-8deg); }
.lost h1 { font-size: clamp(48px, 9vw, 96px); font-weight: 900; letter-spacing: -0.03em; }
.lost p { color: var(--ink-2); margin: 14px auto 28px; max-width: 40ch; font-size: 19px; }
.lost .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero .wrap, .feature .wrap, .local .wrap, .note, .faq .wrap, .doc .wrap { grid-template-columns: 1fr; }
  .feature.flip .feature-art { order: 0; }
  .toc { position: static; }
  .hero-art { margin-top: 8px; }
  .wordmark { font-size: clamp(72px, 21vw, 168px); }
}
@media (max-width: 520px) {
  body { font-size: 17px; }
  .site-nav { gap: 4px 16px; font-size: 15px; }
  .brand { font-size: 22px; }
  .wordmark { margin-bottom: 22px; }
  .hero-art .s-cat { width: 84px; left: 0; bottom: 18px; }
  .hero-art .s-frenchie { width: 74px; right: 0; top: 0; }
  .facts li { grid-template-columns: 1fr; gap: 2px; }
  .qa summary { font-size: 18px; padding: 14px 16px; }
  .qa .a { padding: 0 16px 16px; }
  .emergency { flex-direction: column; gap: 8px; }
}

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

[hidden] { display: none !important; }

/* Support page */
.contact-card p { color: var(--ink-2); font-size: 15px; }
.contact-card p + p { margin-top: 10px; }
.contact-card .mail { margin-top: 14px; }
.contact-addr code { font-family: var(--body); font-weight: 700; font-size: 15px; color: var(--ink); background: var(--cream); border: 2px dashed var(--ink); border-radius: 10px; padding: 4px 8px; display: inline-block; word-break: break-all; }
.support .callout.red { margin: 0 0 22px; }
.callout p strong { font-weight: 800; }
.prose .callout + p { margin-top: 16px; }
