/* PetLogrrr — site styles.
   Tokens transcribed from src/theme.ts so the site and the app read as one product. */

:root {
  --ac: #6CB0E8;
  --ac-dark: #5391CC;
  --ac-text: #2E73A8;
  --ink: #1F2C3C;
  --ink3: #41474F;
  --muted: #5E6671;
  --muted2: #6A7079;
  --faint: #8A9099;
  --bg: #EEF4FB;
  --card: #FFFFFF;
  --green-text: #3E8A5E;
  --amber-bg: rgba(217,161,74,0.10);
  --amber-line: rgba(217,161,74,0.28);
  --amber-ink: #8A6A1E;
  --hairline: rgba(49,60,74,0.08);
  --hairline-strong: rgba(49,60,74,0.14);
  --ac-08: rgba(108,176,232,0.08);
  --ac-12: rgba(108,176,232,0.12);
  --ac-28: rgba(108,176,232,0.28);
  --radius-card: 26px;
  --radius-lg: 18px;
  --shadow-card: 0 6px 14px rgba(40,70,110,0.06);
  --shadow-soft: 0 2px 6px rgba(40,70,110,0.05);
  --shadow-cta: 0 9px 22px rgba(108,176,232,0.38);
  --display: 'Fredoka', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink3);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap { width: 100%; max-width: 1060px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(238,244,251,0.86);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--hairline);
}
.site-header .inner { display: flex; align-items: center; gap: 18px; height: 66px; }
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; margin-right: auto; }
.brand .paw {
  width: 34px; height: 34px; border-radius: 17px; background: var(--ac);
  display: grid; place-items: center; font-size: 17px; box-shadow: var(--shadow-soft);
}
.brand .name { font-family: var(--display); font-weight: 700; font-size: 19px; color: var(--ink); letter-spacing: -0.2px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  font-family: var(--body); font-weight: 600; font-size: 14.5px; color: var(--muted);
  text-decoration: none; padding: 8px 12px; border-radius: 10px;
}
.nav a:hover { color: var(--ac-text); background: var(--ac-08); }
.nav a[aria-current="page"] { color: var(--ac-text); }

/* ---------- hero ---------- */
.hero { padding: 74px 0 58px; text-align: center; }
.hero h1 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(32px, 5.2vw, 52px); line-height: 1.12; letter-spacing: -0.8px;
  color: var(--ink); margin: 0 auto 18px; max-width: 15ch;
}
.hero .lede {
  font-size: clamp(16px, 2vw, 19px); color: var(--muted);
  max-width: 56ch; margin: 0 auto; line-height: 1.55;
}

/* Split hero: copy left, product right. Breaks the all-centered rhythm and gets a
   phone above the fold instead of a wall of centered text. */
.hero-split { padding: 66px 0 54px; }
.hero-split .cols {
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: 48px; align-items: center;
}
.hero-split .copy { text-align: left; }
.hero-split h1 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(31px, 4.3vw, 46px); line-height: 1.14; letter-spacing: -0.8px;
  color: var(--ink); margin: 0 0 16px; max-width: 17ch;
}
.hero-split .lede {
  font-size: clamp(16px, 1.6vw, 18.5px); color: var(--muted);
  margin: 0; line-height: 1.6; max-width: 46ch;
}
.hero-split .cta-row { justify-content: flex-start; }
.hero-split .btn-note { text-align: left; }
.hero-split .stage { display: grid; place-items: center; }
.hero-split .phone { max-width: 258px; }
.hero .herobadge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--ac-12); color: var(--ac-text);
  font-family: var(--body); font-weight: 700; font-size: 12.5px;
  letter-spacing: 0.3px; text-transform: uppercase;
  padding: 7px 13px; border-radius: 999px; margin-bottom: 20px;
}

/* ---------- buttons ---------- */
.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--display); font-weight: 600; font-size: 16px;
  padding: 14px 26px; border-radius: 14px; text-decoration: none; border: 0; cursor: pointer;
}
/* Deeper brand blue so white text stays crisp (light-blue + white was too low-contrast). */
.btn-primary { background: var(--ac-text); color: #fff; box-shadow: 0 6px 16px rgba(46,115,168,0.26); }
.btn-primary:hover { background: #245f8b; }
.btn-ghost { background: #fff; color: var(--ink); box-shadow: var(--shadow-soft); }
.btn-ghost:hover { background: #fff; color: var(--ac-text); }
.btn-note { font-family: var(--body); font-size: 13px; color: var(--faint); margin-top: 14px; }

/* ---------- sections ---------- */
section.band { padding: 56px 0; }
.section-head { text-align: center; margin-bottom: 38px; }
.section-head h2 {
  font-family: var(--display); font-weight: 700; font-size: clamp(24px, 3.4vw, 33px);
  color: var(--ink); margin: 0 0 10px; letter-spacing: -0.4px;
}
.section-head p { color: var(--muted); margin: 0 auto; max-width: 54ch; }
.overline {
  font-family: var(--body); font-weight: 700; font-size: 11.5px; letter-spacing: 0.6px;
  text-transform: uppercase; color: var(--muted2); margin: 0 0 8px;
}

/* ---------- cards ---------- */
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--card); border-radius: var(--radius-card);
  padding: 24px; box-shadow: var(--shadow-card);
}
.card h3 { font-family: var(--display); font-weight: 600; font-size: 17.5px; color: var(--ink); margin: 14px 0 7px; }
.card p { margin: 0; font-size: 14.5px; color: var(--muted); line-height: 1.62; }
.card .ico {
  width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center;
  font-size: 20px; background: var(--ac-12);
}

/* ---------- herd roster ---------- */
.roster { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.pet {
  background: #fff; border-radius: var(--radius-lg); padding: 12px 12px 16px;
  text-align: center; box-shadow: var(--shadow-soft);
}
/* Photo frame. The emoji sits underneath as a fallback; the <img> covers it when the
   file exists, and its onerror removes it (revealing the emoji) if it doesn't. */
.pet .photo {
  position: relative; width: 100%; aspect-ratio: 3 / 4;
  border-radius: 14px; overflow: hidden; margin-bottom: 11px; background: var(--ac-12);
}
.pet .photo .emoji {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 4px; font-size: 34px;
}
.pet .photo .emoji .coming {
  font-family: var(--body); font-weight: 600; font-size: 10px; color: var(--muted2);
}
.pet .photo img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block;
}
.pet .pname { font-family: var(--display); font-weight: 600; font-size: 16.5px; color: var(--ink); margin-top: 0; }
.pet .ptag {
  display: inline-block; margin-top: 7px; font-family: var(--body); font-weight: 700;
  font-size: 10.5px; letter-spacing: 0.5px; text-transform: uppercase;
  padding: 3px 9px; border-radius: 999px;
}
.tag-dog { color: #9C6A2E; background: rgba(217,154,74,0.18); }
.tag-cat { color: #2E6BA0; background: rgba(87,151,206,0.18); }
.tag-horse { color: #5E7D3A; background: rgba(107,154,67,0.18); }

/* ---------- device frames ----------
   Placeholders until the iOS build exists. To swap in a real screenshot, drop a PNG in
   /assets and replace the .screen contents with:
     <img src="/assets/shot-today.png" alt="The Today screen">
   Shoot at 9:19.5 (a 1290x2796 iPhone screenshot fits with no cropping). */
.shots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; align-items: start; }
.shot { text-align: center; }
.phone {
  width: 100%; max-width: 232px; margin: 0 auto;
  aspect-ratio: 9 / 19.5; background: #1F2C3C;
  border-radius: 36px; padding: 8px;
  box-shadow: 0 18px 40px rgba(31,44,60,0.22), 0 2px 6px rgba(31,44,60,0.16);
}
.phone .screen {
  position: relative; width: 100%; height: 100%; overflow: hidden;
  border-radius: 29px; background: var(--bg);
  display: grid; place-items: center;
}
.phone .screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.phone .island {
  position: absolute; top: 9px; left: 50%; transform: translateX(-50%);
  width: 58px; height: 17px; border-radius: 999px; background: #1F2C3C; z-index: 2;
}
.shot-ph { padding: 22px 16px; }
.shot-ph .paw { font-size: 28px; opacity: 0.5; }
.shot-ph .lbl {
  font-family: var(--display); font-weight: 600; font-size: 14px;
  color: var(--muted2); margin-top: 8px;
}
.shot-ph .sub { font-family: var(--body); font-size: 11.5px; color: var(--faint); margin-top: 3px; }
.shot-cap {
  font-family: var(--display); font-weight: 600; font-size: 15.5px;
  color: var(--ink); margin-top: 16px;
}
.shot-sub { font-family: var(--body); font-size: 13.5px; color: var(--muted); margin-top: 3px; line-height: 1.5; }

/* App Store badge slot */
.badge-slot { display: inline-flex; align-items: center; gap: 10px; }
.badge-soon {
  display: inline-flex; align-items: center; gap: 9px;
  background: #1F2C3C; color: #fff; border-radius: 13px;
  padding: 11px 20px; font-family: var(--body); font-weight: 600; font-size: 14px;
}
.badge-soon .apple { font-size: 17px; line-height: 1; }
.badge-soon .stack { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.badge-soon .small { font-size: 10px; opacity: 0.72; font-weight: 400; }

/* ---------- callout ---------- */
.callout {
  background: #fff; border-radius: var(--radius-card); padding: 32px;
  box-shadow: var(--shadow-card); border-left: 4px solid var(--ac);
}
.callout.warn { border-left-color: #D9A14A; background: var(--amber-bg); box-shadow: none; border: 1px solid var(--amber-line); border-left: 4px solid #D9A14A; }
.callout h3 { font-family: var(--display); font-weight: 600; font-size: 19px; color: var(--ink); margin: 0 0 10px; }
.callout p { margin: 0 0 10px; color: var(--ink3); }
.callout p:last-child { margin-bottom: 0; }

.pull {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(19px, 2.6vw, 25px); line-height: 1.45; color: var(--ink);
  text-align: center; max-width: 22ch; margin: 0 auto;
}

/* ---------- legal / prose ---------- */
.prose-head { padding: 54px 0 26px; }
.prose-head h1 {
  font-family: var(--display); font-weight: 700; font-size: clamp(28px, 4vw, 40px);
  color: var(--ink); margin: 0 0 8px; letter-spacing: -0.5px;
}
.updated { font-size: 13.5px; color: var(--faint); }
.doc { background: #fff; border-radius: var(--radius-card); padding: 34px; box-shadow: var(--shadow-card); margin-bottom: 46px; }
.doc .intro { font-size: 16.5px; color: var(--ink); margin: 0 0 6px; }
.doc section { padding: 20px 0; border-top: 1px solid var(--hairline); }
.doc section:first-of-type { border-top: 0; }
.doc h3 { font-family: var(--display); font-weight: 600; font-size: 18px; color: var(--ink); margin: 0 0 7px; }
.doc p { margin: 0; color: var(--ink3); font-size: 15px; }
.doc a { color: var(--ac-text); }
.legalnav { display: flex; gap: 8px; margin-bottom: 26px; flex-wrap: wrap; }
.legalnav a {
  font-family: var(--body); font-weight: 600; font-size: 14px; text-decoration: none;
  color: var(--muted); background: #fff; padding: 9px 15px; border-radius: 999px;
  box-shadow: var(--shadow-soft);
}
.legalnav a[aria-current="page"] { background: var(--ac-text); color: #fff; box-shadow: var(--shadow-soft); }

/* ---------- email capture ---------- */
.notify {
  background: var(--ac); border-radius: var(--radius-card);
  padding: 44px 30px; text-align: center; box-shadow: var(--shadow-cta);
}
.notify .overline { color: rgba(255,255,255,0.82); }
.notify h2 { font-family: var(--display); font-weight: 700; font-size: clamp(24px, 3.2vw, 31px); color: #fff; margin: 0 0 10px; letter-spacing: -0.4px; }
.notify p.lead { color: rgba(255,255,255,0.92); max-width: 46ch; margin: 0 auto; line-height: 1.55; }
.notify form { display: flex; gap: 10px; max-width: 460px; margin: 22px auto 0; }
.notify input[type="email"] {
  flex: 1; min-width: 0; font-family: var(--body); font-size: 15px; color: var(--ink);
  background: #fff; border: 0; border-radius: 13px; padding: 14px 16px;
}
.notify input[type="email"]::placeholder { color: var(--faint); }
.notify button {
  font-family: var(--display); font-weight: 600; font-size: 15.5px; cursor: pointer;
  background: var(--ink); color: #fff; border: 0; border-radius: 13px; padding: 14px 24px;
  white-space: nowrap;
}
.notify button:hover { background: #16212e; }
.notify .fine { font-family: var(--body); font-size: 12.5px; color: rgba(255,255,255,0.8); margin-top: 13px; }
.notify .thanks {
  font-family: var(--display); font-weight: 600; font-size: 17px; color: #fff;
  margin: 22px 0 0; padding: 14px; background: rgba(255,255,255,0.14); border-radius: 14px;
}
/* Hero email capture — light-background variant (the .notify one is for the blue band).
   Input and button share the same border width + padding so their heights match exactly. */
.hero-notify { display: flex; gap: 10px; max-width: 440px; margin: 8px 0 0; }
.hero-notify input[type="email"] {
  flex: 1; min-width: 0; font-family: var(--body); font-size: 15px; color: var(--ink);
  background: #fff; border: 1.5px solid var(--hairline-strong); border-radius: 14px;
  padding: 14px 16px; transition: border-color .15s ease, box-shadow .15s ease;
}
.hero-notify input[type="email"]::placeholder { color: var(--faint); }
.hero-notify input[type="email"]:focus {
  outline: none; border-color: var(--ac); box-shadow: 0 0 0 3px var(--ac-12);
}
.hero-notify button {
  font-family: var(--display); font-weight: 600; font-size: 15.5px; cursor: pointer; white-space: nowrap;
  background: var(--ac-text); color: #fff; border: 1.5px solid var(--ac-text); border-radius: 14px;
  padding: 14px 24px; box-shadow: 0 6px 16px rgba(46,115,168,0.26);
  transition: background .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.hero-notify button:hover {
  background: #245f8b; border-color: #245f8b; box-shadow: 0 8px 20px rgba(46,115,168,0.34);
}
.thanks-inline { font-family: var(--display); font-weight: 600; font-size: 15.5px; color: var(--green-text); margin: 14px 0 0; }

@media (max-width: 560px) {
  .notify form { flex-direction: column; }
  .hero-notify { flex-direction: column; }
}

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--hairline); padding: 34px 0 44px; margin-top: 30px; }
.site-footer .row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 600; }
.site-footer a:hover { color: var(--ac-text); }
.site-footer .legalbits { margin-left: auto; display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer .fine { width: 100%; font-size: 13px; color: var(--faint); margin-top: 18px; line-height: 1.6; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .roster { grid-template-columns: repeat(2, 1fr); }
  /* Four phones side by side get too narrow to read below ~860px — go 2x2. */
  .shots { grid-template-columns: repeat(2, 1fr); gap: 26px; }
  .phone { max-width: 190px; }
  /* Stack the hero and re-centre it. A 50/50 split at tablet width leaves the headline
     in a column too narrow to read. */
  .hero-split .cols { grid-template-columns: 1fr; gap: 34px; }
  .hero-split .copy { text-align: center; }
  .hero-split h1 { max-width: 20ch; margin-left: auto; margin-right: auto; }
  .hero-split .lede { margin-left: auto; margin-right: auto; }
  .hero-split .cta-row { justify-content: center; }
  .hero-split .hero-notify { margin-left: auto; margin-right: auto; }
  .hero-split .btn-note { text-align: center; }
  .hero-split .phone { max-width: 228px; }
}
@media (max-width: 620px) {
  .grid-2, .grid-4 { grid-template-columns: 1fr; }
  /* One phone per row beats three thumbnails nobody can read. */
  .shots { grid-template-columns: 1fr; gap: 34px; }
  .phone { max-width: 240px; }
  .hero { padding: 52px 0 40px; }
  .doc { padding: 22px; }
  .site-footer .legalbits { margin-left: 0; width: 100%; }
}

/* ---------- mobile nav (hamburger) ----------
   Pure CSS: a visually-hidden checkbox holds the open/closed state; the <label>
   is the tappable hamburger. No JS to keep in sync across the 7 pages. */
.nav-toggle-cb { position: absolute; width: 1px; height: 1px; opacity: 0; margin: 0; pointer-events: none; }
.nav-toggle { display: none; }

@media (max-width: 640px) {
  .site-header .inner { gap: 10px; }
  .nav-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; padding: 0 11px; border-radius: 11px;
    cursor: pointer; -webkit-tap-highlight-color: transparent;
  }
  .nav-toggle span {
    display: block; height: 2px; width: 22px; background: var(--ink);
    border-radius: 2px; transition: transform .2s ease, opacity .15s ease;
  }
  .nav-toggle-cb:focus-visible ~ .nav-toggle { outline: 2px solid var(--ac); outline-offset: 2px; }
  /* Morph the three bars into an X when open. */
  .nav-toggle-cb:checked ~ .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle-cb:checked ~ .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav-toggle-cb:checked ~ .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* Full-width dropdown panel below the sticky header. */
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; display: none;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: #fff; border-bottom: 1px solid var(--hairline);
    box-shadow: var(--shadow-card); padding: 8px 16px 14px;
  }
  .nav-toggle-cb:checked ~ .nav { display: flex; }
  .nav a { padding: 14px 12px; font-size: 16px; border-radius: 12px; }
  .nav a:hover, .nav a[aria-current="page"] { background: var(--ac-08); }
}
