/* ---- Self-hosted variable fonts -------------------------------------------
   Latin subsets of the three families, served from this origin so no visitor
   IP reaches a third party and the site stays genuinely dependency-free.
   Variable, so one file covers every weight the design uses.
   All three are SIL Open Font Licence 1.1; see fonts/OFL.txt.
   font-display: swap so text is readable before the font lands. */
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('fonts/bricolage-grotesque-latin.woff2') format('woff2-variations');
}
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/instrument-sans-latin.woff2') format('woff2-variations');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url('fonts/jetbrains-mono-latin.woff2') format('woff2-variations');
}

/* Dogfolio landing site. Built from approved mockup C1.
   Identity source: the app's own design system (lib/tokens.ts v2 "Coastal Sand"). */

:root {
  --stage: #DDD6C8;
  --sand: #F7F5F1;
  --card: #FFFFFF;
  --ink: #10222E;
  --slate: #5B707D;
  --line: #E7E3DC;
  --sea: #0B6E8F;
  --seadk: #08506A;
  --sun: #E8853D;
  --sunink: #412402;
  --brass: #D9B45B;
  --overdue: #D2402F;
  --done: #1A7F5F;
  --body-muted: #425663;
  --display: 'Bricolage Grotesque', 'Arial Black', sans-serif;
  --sans: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', Consolas, monospace;
}

* { box-sizing: border-box; margin: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--sand);
  font-family: var(--sans);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 6px 0;
  font-weight: 600;
  z-index: 50;
}
.skip:focus { left: 0; }

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--sea);
  outline-offset: 2px;
}

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 32px; }

/* ---------- nav ---------- */
.site-head { background: var(--stage); }
.nav { display: flex; justify-content: space-between; align-items: center; padding: 22px 0; position: relative; z-index: 3; }
.wordmark { font-family: var(--display); font-weight: 800; font-size: 24px; letter-spacing: -0.03em; color: var(--ink); text-decoration: none; }
.navlinks { display: flex; gap: 28px; font-size: 15px; font-weight: 600; color: var(--slate); }
.navlinks a { text-decoration: none; color: #4A5E6B; }
.navlinks a:hover { color: var(--ink); }
.navcta {
  background: var(--sea); color: #fff; font-weight: 700; font-size: 15px;
  padding: 10px 18px; border-radius: 6px; text-decoration: none;
  transition: transform 120ms ease, background 120ms ease;
}
.navcta:hover { background: var(--seadk); transform: translateY(-1px); }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 34px 0 90px; }
.herogrid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 24px; align-items: center; position: relative; z-index: 2; }
.kicker { font-family: var(--mono); font-size: 13px; font-weight: 600; letter-spacing: 0.16em; color: var(--seadk); margin-bottom: 18px; }
h1 { font-family: var(--display); font-weight: 800; font-size: clamp(44px, 5.6vw, 78px); line-height: 0.98; letter-spacing: -0.035em; }
.tickwrap { position: relative; white-space: nowrap; }
.tickwrap svg { position: absolute; left: 0; bottom: -12px; width: 100%; height: 22px; overflow: visible; }
.tickwrap .wipe {
  width: 0;
  animation: tickwipe 420ms 300ms cubic-bezier(0.2, 0, 0, 1) forwards;
}
@keyframes tickwipe { to { width: 240px; } }
.lede { font-size: 19px; line-height: 1.55; color: #4A5E6B; font-weight: 500; max-width: 470px; margin-top: 24px; }
.founding-offer {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 16px;
  align-items: center;
  max-width: 470px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(16, 34, 46, 0.22);
}
.founding-date { display: block; text-decoration: none; }
.founding-day {
  display: block;
  font-family: var(--display);
  font-size: 52px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.82;
  color: var(--sun);
}
.founding-month {
  display: block;
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1.15;
  text-transform: uppercase;
  color: var(--ink);
}
.founding-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.09em;
  line-height: 1.2;
  text-transform: uppercase;
}
.founding-copy > p:last-child {
  margin-top: 5px;
  color: var(--body-muted);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
}
.ctarow { display: flex; align-items: center; gap: 20px; margin-top: 34px; flex-wrap: wrap; }
.bigcta {
  background: var(--sea); color: #fff; font-weight: 700; font-size: 18px;
  padding: 16px 28px; border-radius: 8px; box-shadow: 0 10px 26px rgba(11, 110, 143, 0.28);
  text-decoration: none; display: inline-block;
  transition: transform 120ms ease, background 120ms ease;
}
.bigcta:hover { background: var(--seadk); transform: translateY(-1px); }
.qrcard { background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; display: flex; gap: 12px; align-items: center; }
.qrcard svg { width: 62px; height: 62px; flex-shrink: 0; display: block; }
.qt { font-size: 13px; font-weight: 600; color: var(--slate); line-height: 1.35; max-width: 130px; }
.factline { margin-top: 26px; font-family: var(--mono); font-size: 13px; font-weight: 500; color: #4A5E6B; letter-spacing: 0.02em; }
.pawstage { position: absolute; inset: 0; opacity: 0.05; z-index: 1; pointer-events: none; }

/* card stack */
.stack { position: relative; height: 430px; }
.ghost { position: absolute; left: 52%; top: 60px; width: 400px; height: 252px; transform: translateX(-50%) rotate(-7deg); background: #CEC6B4; border-radius: 24px; opacity: 0.55; }
.memcard {
  position: absolute; left: 52%; top: 30px; width: 430px; height: 272px;
  transform: translateX(-50%) rotate(4deg); border-radius: 24px;
  background: linear-gradient(155deg, #17ADC7 0%, #0C8DA8 100%);
  box-shadow: 0 30px 60px rgba(11, 110, 143, 0.38); overflow: hidden; color: #fff;
}
.memcard .pawbg { position: absolute; inset: 0; opacity: 0.13; }
.memcard .in { position: relative; padding: 22px 26px; height: 100%; }
.mc-top { display: flex; justify-content: space-between; align-items: flex-start; }
.mc-label { font-size: 14px; font-weight: 700; letter-spacing: 0.14em; }
.mc-chip { width: 44px; height: 32px; border-radius: 7px; background: var(--brass); }
.mc-id { display: flex; align-items: center; gap: 18px; margin-top: 20px; }
.mc-portrait { width: 92px; height: 92px; border-radius: 50%; background: #F3E9D8; border: 3px solid var(--brass); overflow: hidden; flex-shrink: 0; }
.mc-portrait img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mc-name { font-size: 33px; font-weight: 800; letter-spacing: -0.01em; font-family: var(--display); }
.mc-breed { font-size: 14px; font-weight: 600; opacity: 0.88; letter-spacing: 0.03em; margin-top: 2px; }
.mc-chipno { position: absolute; left: 26px; bottom: 20px; }
.mc-chipno .l { font-size: 10px; font-weight: 700; letter-spacing: 0.12em; opacity: 0.75; }
.mc-chipno .v { font-family: var(--mono); font-size: 16px; font-weight: 600; letter-spacing: 0.05em; margin-top: 3px; }
.mc-days { position: absolute; right: 26px; bottom: 18px; text-align: center; background: rgba(255, 255, 255, 0.16); border-radius: 14px; padding: 9px 15px; }
.mc-days .n { font-size: 31px; font-weight: 800; line-height: 1; font-family: var(--display); }
.mc-days .l { font-size: 10px; font-weight: 700; letter-spacing: 0.12em; opacity: 0.85; margin-top: 2px; }

/* ---------- sections ---------- */
section.band { padding: 64px 0; border-top: 1px solid var(--line); }
.slabel { font-family: var(--mono); font-size: 13px; font-weight: 600; letter-spacing: 0.16em; color: var(--sea); margin-bottom: 14px; }
h2 { font-family: var(--display); font-weight: 800; font-size: clamp(30px, 3.4vw, 44px); letter-spacing: -0.03em; line-height: 1.05; max-width: 560px; }
.sgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.scopy p { font-size: 17px; line-height: 1.6; color: var(--body-muted); font-weight: 500; margin-top: 20px; max-width: 460px; }
.phone { width: 238px; border-radius: 32px; background: #0F1417; padding: 8px; box-shadow: 0 24px 70px rgba(15, 20, 23, 0.22); margin: 0 auto; }
.phone img { width: 100%; height: auto; display: block; border-radius: 25px; }
.pcap { text-align: center; font-family: var(--mono); font-size: 12px; color: var(--slate); margin-top: 14px; letter-spacing: 0.04em; }

/* six pockets */
.pockets { margin-top: 8px; list-style: none; padding: 0; }
.pocket { display: flex; gap: 16px; align-items: baseline; padding: 15px 0; border-bottom: 1px solid var(--line); }
.pocket:last-child { border-bottom: none; }
.pocket .pn { font-weight: 700; font-size: 16.5px; flex-shrink: 0; width: 120px; }
.pocket .pd { font-size: 15px; color: var(--slate); font-weight: 500; line-height: 1.45; }
.pnote { font-size: 15px; color: var(--slate); font-weight: 500; line-height: 1.45; margin-top: 18px; max-width: 460px; }

/* day counts */
.countrow { display: flex; gap: 56px; margin-top: 26px; }
.countrow .n { font-family: var(--display); font-weight: 800; font-size: 56px; letter-spacing: -0.02em; line-height: 1; }
.countrow .over .n { color: var(--overdue); }
.countrow .l { font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: 0.13em; color: var(--slate); margin-top: 6px; }

/* emergency */
.em { background: var(--card); }

/* install */
.install { background: var(--stage); position: relative; overflow: hidden; }
.install .wrap { position: relative; z-index: 2; }
.install .slabel { color: var(--seadk); }
.steps { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 30px; max-width: 640px; }
.step { background: var(--sand); border: 1px solid #CEC6B4; border-radius: 14px; padding: 20px 22px; }
.step .sh { font-weight: 700; font-size: 16px; margin-bottom: 8px; }
.step .sd { font-size: 14.5px; color: var(--body-muted); font-weight: 500; line-height: 1.5; }
.step .sd b { font-weight: 700; }

/* footer */
footer { background: var(--sand); border-top: 1px solid var(--line); padding: 40px 0 56px; }
.frow { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap; }
.ftag { font-size: 14px; color: var(--slate); font-weight: 500; margin-top: 8px; max-width: 300px; line-height: 1.5; }
.flinks { display: flex; gap: 26px; font-size: 14px; font-weight: 600; flex-wrap: wrap; }
.flinks a { color: var(--sea); text-decoration: none; }
.flinks a:hover { text-decoration: underline; }
.fnote { font-family: var(--mono); font-size: 12px; color: var(--slate); margin-top: 26px; }

/* ---------- back to top ---------- */
.totop {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 20;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: var(--sea);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(11, 110, 143, 0.32);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 240ms cubic-bezier(0.2, 0, 0, 1), transform 240ms cubic-bezier(0.2, 0, 0, 1), background 120ms ease;
}
.totop.show { opacity: 1; transform: none; pointer-events: auto; }
.totop:hover { background: var(--seadk); }
html:not(.js) .totop { display: none; }

/* ---------- reveal on scroll (JS adds .seen) ---------- */
.js .rv { opacity: 0; transform: translateY(8px); transition: opacity 240ms cubic-bezier(0.2, 0, 0, 1), transform 240ms cubic-bezier(0.2, 0, 0, 1); }
.js .rv.seen { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
  .js .rv { opacity: 1; transform: none; }
  .tickwrap .wipe { width: 240px; }
  .totop { transition: none; transform: none; }
}

/* ---------- mobile ---------- */
@media (max-width: 900px) {
  .wrap { padding: 0 22px; }
  .navlinks { display: none; }
  .herogrid { grid-template-columns: 1fr; gap: 8px; }
  .hero { padding: 18px 0 56px; }
  .founding-offer { grid-template-columns: 72px 1fr; gap: 14px; margin-top: 22px; padding-top: 18px; }
  .founding-day { font-size: 47px; }
  .founding-copy > p:last-child { font-size: 14px; }
  h1 .tickwrap svg { bottom: -10px; height: 22px; }
  .stack { height: 300px; margin-top: 26px; }
  .memcard { width: 330px; height: 209px; border-radius: 19px; top: 20px; }
  .ghost { width: 306px; height: 193px; top: 44px; }
  .mc-portrait { width: 70px; height: 70px; }
  .mc-name { font-size: 26px; }
  .mc-days .n { font-size: 24px; }
  .mc-chipno .v { font-size: 13px; }
  .mc-id { margin-top: 14px; }
  section.band { padding: 56px 0; }
  .sgrid { grid-template-columns: 1fr; gap: 40px; }
  .sgrid .shot { order: 2; }
  .pocket .pn { width: 104px; font-size: 15.5px; }
  .steps { grid-template-columns: 1fr; }
  .countrow { gap: 36px; }
  .countrow .n { font-size: 42px; }
}
