/* ============================================================================
   Petophill, marketing website design system
   Soft editorial · liquid glassmorphism · warm & pet-first.
   Brand DNA mirrors the app: forest green + sage + peach + warm cream.
   Body = Nunito · Display = Fredoka (rounded, friendly, premium).
   ========================================================================== */

/* ── Design tokens ───────────────────────────────────────────────────── */
:root {
  /* brand */
  --forest: #3F7D63;
  --forest-deep: #2F5E4A;
  --forest-ink: #1B4332;
  --sage: #7BD6AA;
  --mint: #6FC79B;
  --peach: #F2997B;
  --peach-deep: #D9754F;
  --sunshine: #F4B740;
  --coral: #E07A5F;

  /* surfaces */
  --cream: #F7F4EE;
  --cream-deep: #EFE9DD;
  --sand: #F3E8D6;
  --ink: #15201A;
  --ink-soft: #46514A;
  --muted: #6B736C;
  --faint: #98A09A;
  --white: #ffffff;

  /* glass */
  --glass: rgba(255,255,255,0.62);
  --glass-strong: rgba(255,255,255,0.84);
  --glass-border: rgba(255,255,255,0.65);
  --glass-edge: rgba(255,255,255,0.85);
  --hairline: rgba(27,67,50,0.10);

  /* gradients */
  --grad-primary: linear-gradient(135deg, #3F7D63 0%, #6FC79B 100%);
  --grad-deep: linear-gradient(135deg, #2F5E4A 0%, #4E9D78 100%);
  --grad-warm: linear-gradient(135deg, #F4B740 0%, #F2997B 55%, #E07A5F 100%);
  --grad-peach: linear-gradient(135deg, #F8B79E 0%, #F2997B 100%);
  --grad-mint: linear-gradient(135deg, #7BD6AA 0%, #5BB98C 100%);
  --grad-mesh: linear-gradient(160deg, #F7F4EE 0%, #F3E2CF 50%, #E7D8C0 100%);

  /* type */
  --font-body: 'Nunito', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-display: 'Fredoka', 'Nunito', system-ui, sans-serif;

  /* shape */
  --r-sm: 14px;  --r-md: 20px;  --r-lg: 28px;  --r-xl: 36px;  --pill: 999px;

  /* shadow */
  --sh-soft: 0 10px 30px -12px rgba(26,18,11,0.20);
  --sh-card: 0 24px 60px -24px rgba(26,18,11,0.30);
  --sh-float: 0 40px 90px -30px rgba(27,67,50,0.40);
  --sh-glow: 0 18px 50px -16px rgba(63,125,99,0.45);

  /* layout */
  --maxw: 1180px;
  --nav-h: 74px;
}

/* ── Reset ───────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 17px;
  font-weight: 500;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }
:focus-visible { outline: 3px solid rgba(63,125,99,0.55); outline-offset: 3px; border-radius: 6px; }

/* ── Ambient background mesh ─────────────────────────────────────────── */
.bg-mesh {
  position: fixed; inset: 0; z-index: -2;
  background: var(--grad-mesh);
}
.bg-blobs { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bg-blobs span {
  position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.5;
}
.blob-1 { width: 520px; height: 520px; top: -160px; left: -120px; background: radial-gradient(circle, rgba(123,214,170,0.7), transparent 70%); }
.blob-2 { width: 480px; height: 480px; top: 30%; right: -160px; background: radial-gradient(circle, rgba(242,153,123,0.55), transparent 70%); }
.blob-3 { width: 460px; height: 460px; bottom: -160px; left: 25%; background: radial-gradient(circle, rgba(244,183,64,0.40), transparent 70%); }

/* ── Layout helpers ──────────────────────────────────────────────────── */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; position: relative; }
.section-sm { padding: 64px 0; }
.center { text-align: center; }
.grid { display: grid; gap: 24px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 600; font-size: 13px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--forest);
  background: rgba(63,125,99,0.10); padding: 7px 15px; border-radius: var(--pill);
  border: 1px solid rgba(63,125,99,0.18);
}
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { margin: 18px 0 14px; }
.section-head p { color: var(--ink-soft); font-size: 19px; }

/* ── Typography ──────────────────────────────────────────────────────── */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.08; letter-spacing: -0.01em; color: var(--ink); }
h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); }
.lead { font-size: clamp(1.05rem, 2vw, 1.3rem); color: var(--ink-soft); }
.text-grad { background: var(--grad-warm); -webkit-background-clip: text; background-clip: text; color: transparent; }
.text-forest { color: var(--forest); }

/* ── Buttons ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-display); font-weight: 600; font-size: 16px;
  padding: 15px 28px; border-radius: var(--pill); transition: transform .18s ease, box-shadow .18s ease, background .2s ease;
  min-height: 52px; white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--grad-primary); color: #fff; box-shadow: var(--sh-glow); }
.btn-primary:hover { box-shadow: 0 24px 60px -16px rgba(63,125,99,0.6); }
.btn-warm { background: var(--grad-warm); color: #fff; box-shadow: 0 18px 50px -16px rgba(224,122,95,0.5); }
.btn-ghost { background: var(--glass); color: var(--ink); border: 1px solid var(--glass-border); backdrop-filter: blur(12px); box-shadow: var(--sh-soft); }
.btn-ghost:hover { background: var(--glass-strong); }
.btn svg { width: 20px; height: 20px; }

/* ── Glass card ──────────────────────────────────────────────────────── */
.glass {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(22px) saturate(1.2);
  -webkit-backdrop-filter: blur(22px) saturate(1.2);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-card);
  position: relative;
}
.glass::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(160deg, rgba(255,255,255,0.6), rgba(255,255,255,0) 45%);
  opacity: 0.7;
}

/* ── Navbar ──────────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 100; height: var(--nav-h);
  display: flex; align-items: center;
  transition: background .25s ease, box-shadow .25s ease, backdrop-filter .25s ease;
}
.nav.scrolled {
  background: rgba(247,244,238,0.72);
  backdrop-filter: blur(20px) saturate(1.3);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  box-shadow: 0 1px 0 var(--hairline), 0 14px 40px -28px rgba(26,18,11,0.4);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 600; font-size: 22px; color: var(--ink); }
.brand img { width: 38px; height: 38px; filter: drop-shadow(0 4px 8px rgba(27,67,50,0.25)); }
.brand-tx { display: flex; flex-direction: column; line-height: 1; }
.brand-tx small { font-family: var(--font-body); font-weight: 700; font-size: 10px; letter-spacing: .04em; color: var(--muted); margin-top: 3px; }
.footer .brand-tx small { color: var(--ink-soft); }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  font-family: var(--font-display); font-weight: 500; font-size: 15.5px; color: var(--ink-soft);
  padding: 9px 15px; border-radius: var(--pill); transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--forest); background: rgba(63,125,99,0.08); }
.nav-links a.active { color: var(--forest); background: rgba(63,125,99,0.12); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; width: 46px; height: 46px; border-radius: 14px; background: var(--glass); border: 1px solid var(--glass-border); align-items: center; justify-content: center; }
.nav-toggle svg { width: 24px; height: 24px; color: var(--ink); }

/* ── Hero ────────────────────────────────────────────────────────────── */
.hero { padding: 64px 0 40px; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.hero-copy h1 { margin: 22px 0 22px; }
.hero-copy .lead { max-width: 540px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 34px 0 28px; }
.hero-trust { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; color: var(--muted); font-size: 14.5px; font-weight: 600; }
.avatars { display: flex; }
.avatars span {
  width: 38px; height: 38px; border-radius: 50%; margin-left: -10px; border: 2.5px solid var(--cream);
  background-size: cover; display: grid; place-items: center; font-size: 18px;
}
.avatars span:first-child { margin-left: 0; }
.stars { color: var(--sunshine); letter-spacing: 2px; }

.hero-visual { position: relative; display: grid; place-items: center; min-height: 580px; }
.hero-visual .phone { z-index: 3; }
.hero-card {
  position: absolute; z-index: 4; padding: 14px 16px; border-radius: var(--r-md);
  display: flex; align-items: center; gap: 11px; font-weight: 700; font-size: 14px;
  background: var(--glass-strong); border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px); box-shadow: var(--sh-card);
}
.hero-card small { display: block; font-weight: 600; color: var(--muted); font-size: 12px; }
.hero-card .ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.hero-card-1 { top: 12%; left: -4%; animation: floaty 6s ease-in-out infinite; }
.hero-card-2 { bottom: 16%; right: -6%; animation: floaty 7s ease-in-out infinite 0.6s; }
.hero-card-3 { bottom: 4%; left: 4%; animation: floaty 5.5s ease-in-out infinite 1.1s; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

/* ── Phone mockup ────────────────────────────────────────────────────── */
.phone {
  width: 300px; height: 612px; border-radius: 46px; padding: 12px;
  background: linear-gradient(160deg, #20322a, #0e1612);
  box-shadow: var(--sh-float), inset 0 0 0 2px rgba(255,255,255,0.08);
  position: relative; flex: none;
}
.phone::after { /* side button */
  content: ""; position: absolute; right: -3px; top: 150px; width: 3px; height: 64px; border-radius: 3px; background: #20322a;
}
.phone-notch {
  position: absolute; top: 22px; left: 50%; transform: translateX(-50%); z-index: 6;
  width: 116px; height: 30px; background: #0c1310; border-radius: var(--pill);
}
.phone-screen {
  width: 100%; height: 100%; border-radius: 36px; overflow: hidden; position: relative;
  background: var(--grad-mesh); display: flex; flex-direction: column;
}
.phone-sm { width: 244px; height: 498px; border-radius: 38px; padding: 9px; }
.phone-sm .phone-screen { border-radius: 30px; }
.phone-sm .phone-notch { width: 92px; height: 24px; top: 16px; }

/* app status bar */
.app-status { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px 4px; font-size: 12px; font-weight: 800; color: var(--ink); }
.app-status .dots { display: flex; gap: 4px; align-items: center; }
.app-status .dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--ink); display: inline-block; opacity: .8; }

/* app top bar */
.app-top { display: flex; align-items: center; justify-content: space-between; padding: 6px 18px 12px; }
.app-top h4 { font-size: 21px; }
.app-top .row { display: flex; gap: 9px; }
.app-icbtn { width: 34px; height: 34px; border-radius: 12px; background: var(--glass); border: 1px solid var(--glass-border); display: grid; place-items: center; }
.app-icbtn svg { width: 18px; height: 18px; color: var(--forest); }

.app-body { flex: 1; overflow: hidden; padding: 0 14px; }

/* generic app card */
.acard { background: var(--white); border-radius: 20px; box-shadow: 0 12px 26px -16px rgba(26,18,11,0.3); border: 1px solid rgba(27,67,50,0.06); overflow: hidden; }

/* app bottom tab bar */
.app-tabs {
  margin: 10px 14px 14px; height: 60px; border-radius: 26px; display: flex; align-items: center; justify-content: space-around;
  background: rgba(255,255,255,0.7); border: 1px solid var(--glass-border); backdrop-filter: blur(12px);
  box-shadow: 0 14px 30px -16px rgba(26,18,11,0.4);
}
.app-tabs .t { width: 36px; height: 36px; border-radius: 14px; display: grid; place-items: center; color: var(--faint); }
.app-tabs .t svg { width: 22px; height: 22px; }
.app-tabs .t.on { background: var(--grad-primary); color: #fff; box-shadow: var(--sh-glow); }

/* mini avatars / pet chips */
.pet-chip { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-size: 30px; flex: none; border: 3px solid #fff; box-shadow: 0 6px 14px -6px rgba(26,18,11,0.4); }
.story-row { display: flex; gap: 12px; padding: 4px 4px 14px; overflow: hidden; }
.story-row .s { text-align: center; }
.story-row .ring { padding: 3px; border-radius: 50%; background: var(--grad-warm); }
.story-row .ring .pet-chip { width: 54px; height: 54px; border-width: 2.5px; }
.story-row small { font-size: 10px; font-weight: 700; color: var(--ink-soft); display: block; margin-top: 4px; }

/* feed post */
.post-head { display: flex; align-items: center; gap: 9px; padding: 11px; }
.post-head b { font-size: 13px; }
.post-head small { font-size: 10.5px; color: var(--muted); display: block; }
.post-media { height: 150px; background: var(--grad-mint); display: grid; place-items: center; font-size: 58px; }
.post-actions { display: flex; gap: 14px; padding: 10px 12px; color: var(--ink-soft); }
.post-actions svg { width: 21px; height: 21px; }
.post-actions svg:first-child { color: var(--coral); }

/* swatch helpers (soft tinted backgrounds) */
.bg-forest { background: var(--grad-primary); } .fg-forest { color: var(--forest); }
.bg-peach { background: var(--grad-peach); }
.bg-sun { background: var(--grad-warm); }
.bg-mint { background: var(--grad-mint); }
.tint-forest { background: rgba(63,125,99,0.12); color: var(--forest); }
.tint-peach { background: rgba(242,153,123,0.16); color: var(--peach-deep); }
.tint-sun { background: rgba(244,183,64,0.18); color: #B07d10; }
.tint-mint { background: rgba(123,214,170,0.20); color: var(--forest-deep); }

/* ── Feature cards ───────────────────────────────────────────────────── */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feat {
  padding: 30px; border-radius: var(--r-lg); background: var(--glass); border: 1px solid var(--glass-border);
  backdrop-filter: blur(18px); box-shadow: var(--sh-soft); transition: transform .22s ease, box-shadow .22s ease;
  position: relative; overflow: hidden;
}
.feat:hover { transform: translateY(-6px); box-shadow: var(--sh-card); }
.feat .ic { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; margin-bottom: 18px; color: #fff; box-shadow: var(--sh-soft); }
.feat .ic svg { width: 28px; height: 28px; }
.feat h3 { margin-bottom: 9px; }
.feat p { color: var(--ink-soft); font-size: 15.5px; }
.feat .tag { position: absolute; top: 22px; right: 22px; font-size: 11px; font-weight: 800; padding: 4px 10px; border-radius: var(--pill); letter-spacing: .04em; }

/* ── Stats band ──────────────────────────────────────────────────────── */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat { text-align: center; padding: 26px 16px; }
.stat .num { font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem,4vw,2.8rem); background: var(--grad-warm); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; }
.stat .lbl { color: var(--ink-soft); font-weight: 700; font-size: 14.5px; margin-top: 8px; }

/* ── Showcase (alternating) ──────────────────────────────────────────── */
.show { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.show + .show { margin-top: 110px; }
.show.rev .show-media { order: 2; }
.show-media { display: grid; place-items: center; position: relative; }
.show-copy .eyebrow { margin-bottom: 18px; }
.show-copy h2 { margin-bottom: 16px; }
.show-copy p { color: var(--ink-soft); font-size: 17.5px; margin-bottom: 22px; }
.tick { display: flex; flex-direction: column; gap: 13px; margin-bottom: 26px; }
.tick li { display: flex; align-items: flex-start; gap: 12px; font-weight: 600; color: var(--ink); }
.tick .ck { width: 26px; height: 26px; border-radius: 50%; background: var(--grad-primary); color: #fff; display: grid; place-items: center; flex: none; margin-top: 1px; }
.tick .ck svg { width: 15px; height: 15px; }

/* halo behind showcase phone */
.halo::before { content: ""; position: absolute; width: 380px; height: 380px; border-radius: 50%; filter: blur(70px); opacity: .55; z-index: 0; }
.halo.h-mint::before { background: radial-gradient(circle, rgba(123,214,170,0.8), transparent 70%); }
.halo.h-peach::before { background: radial-gradient(circle, rgba(242,153,123,0.7), transparent 70%); }
.halo.h-sun::before { background: radial-gradient(circle, rgba(244,183,64,0.6), transparent 70%); }
.halo .phone { position: relative; z-index: 1; }

/* ── Mascot section ──────────────────────────────────────────────────── */
.mascot-stage { position: relative; display: grid; place-items: center; min-height: 360px; }
.mascot {
  width: 200px; height: 200px; border-radius: 50%; background: var(--grad-mint);
  display: grid; place-items: center; font-size: 110px; box-shadow: var(--sh-float);
  animation: bob 4s ease-in-out infinite; position: relative;
}
@keyframes bob { 0%,100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-18px) rotate(2deg); } }
.mascot-bubble {
  position: absolute; top: 6%; right: 12%; background: #fff; color: var(--ink); padding: 12px 18px; border-radius: 22px 22px 22px 6px;
  font-weight: 700; box-shadow: var(--sh-card); font-size: 15px; max-width: 220px;
}

/* ── Steps ───────────────────────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 26px; counter-reset: step; }
.step { padding: 30px; border-radius: var(--r-lg); background: var(--glass); border: 1px solid var(--glass-border); backdrop-filter: blur(16px); box-shadow: var(--sh-soft); position: relative; }
.step .n { width: 46px; height: 46px; border-radius: 14px; background: var(--grad-primary); color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 22px; display: grid; place-items: center; margin-bottom: 16px; }
.step h3 { margin-bottom: 8px; }
.step p { color: var(--ink-soft); font-size: 15.5px; }

/* ── CTA band ────────────────────────────────────────────────────────── */
.cta-band { border-radius: var(--r-xl); padding: 64px 48px; text-align: center; position: relative; overflow: visible; background: var(--grad-deep); color: #fff; box-shadow: var(--sh-float); }
.cta-band::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(circle at 20% 20%, rgba(123,214,170,0.5), transparent 45%), radial-gradient(circle at 85% 80%, rgba(242,153,123,0.5), transparent 45%); }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.85); font-size: 19px; max-width: 560px; margin: 16px auto 32px; }
.cta-band .store-badges { justify-content: center; }

/* ── Store badges ────────────────────────────────────────────────────── */
.store-badges { display: flex; gap: 14px; flex-wrap: wrap; }
.store-badge {
  display: inline-flex; align-items: center; gap: 12px; padding: 11px 20px 11px 18px; border-radius: 16px;
  background: #15201A; color: #fff; transition: transform .18s ease, box-shadow .18s ease; box-shadow: var(--sh-soft);
  position: relative;
}
.store-badge:hover { transform: translateY(-3px); box-shadow: var(--sh-card); }
.store-badge svg { width: 28px; height: 28px; flex: none; }
.store-badge .sb { line-height: 1.12; text-align: left; }
.store-badge .sb small { display: block; font-size: 10.5px; opacity: .8; font-weight: 700; letter-spacing: .02em; margin-bottom: 1px; }
.store-badge .sb b { display: block; font-family: var(--font-display); font-weight: 600; font-size: 19px; }
.store-badge .soon { position: absolute; top: -9px; right: -8px; font-size: 9.5px; font-weight: 800; letter-spacing: .04em; background: var(--grad-warm); color: #fff; padding: 3px 8px; border-radius: var(--pill); box-shadow: var(--sh-soft); }
.cta-band .store-badge { background: #fff; color: var(--ink); }

/* ── Footer ──────────────────────────────────────────────────────────── */
.footer { padding: 72px 0 36px; margin-top: 40px; border-top: 1px solid var(--hairline); background: rgba(255,255,255,0.4); backdrop-filter: blur(10px); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 44px; }
.footer .brand { margin-bottom: 14px; }
.footer p { color: var(--ink-soft); font-size: 15px; max-width: 300px; }
.footer h5 { font-family: var(--font-display); font-weight: 600; font-size: 15px; margin-bottom: 14px; color: var(--ink); }
.footer ul li { margin-bottom: 10px; }
.footer ul a { color: var(--ink-soft); font-size: 15px; transition: color .2s; }
.footer ul a:hover { color: var(--forest); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; padding-top: 26px; border-top: 1px solid var(--hairline); color: var(--muted); font-size: 14px; }
.socials { display: flex; gap: 10px; }
.socials a { width: 40px; height: 40px; border-radius: 12px; background: var(--glass); border: 1px solid var(--glass-border); display: grid; place-items: center; color: var(--forest); transition: transform .18s, background .2s; }
.socials a:hover { transform: translateY(-2px); background: var(--glass-strong); }
.socials svg { width: 20px; height: 20px; }

/* ── Page hero (inner pages) ─────────────────────────────────────────── */
.page-hero { padding: 72px 0 36px; text-align: center; }
.page-hero h1 { margin: 18px auto 16px; max-width: 880px; }
.page-hero .lead { max-width: 640px; margin: 0 auto; }

/* ── FAQ ─────────────────────────────────────────────────────────────── */
.faq { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.faq details { background: var(--glass); border: 1px solid var(--glass-border); backdrop-filter: blur(14px); border-radius: var(--r-md); box-shadow: var(--sh-soft); overflow: hidden; }
.faq summary { list-style: none; cursor: pointer; padding: 20px 24px; font-family: var(--font-display); font-weight: 600; font-size: 18px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { width: 28px; height: 28px; border-radius: 50%; background: rgba(63,125,99,0.12); color: var(--forest); display: grid; place-items: center; flex: none; transition: transform .25s ease; font-size: 20px; }
.faq details[open] summary .pm { transform: rotate(45deg); }
.faq p { padding: 0 24px 22px; color: var(--ink-soft); font-size: 16px; }

/* ── Gallery ─────────────────────────────────────────────────────────── */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 40px 24px; justify-items: center; }
.gallery figure { display: grid; justify-items: center; gap: 16px; }
.gallery figcaption { text-align: center; }
.gallery figcaption b { font-family: var(--font-display); font-weight: 600; font-size: 18px; display: block; }
.gallery figcaption span { color: var(--muted); font-size: 14px; }

/* ── Reveal on scroll ────────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero-visual { min-height: 540px; }
  .hero-copy { text-align: center; }
  .hero-copy .lead { margin-inline: auto; }
  .hero-actions, .hero-trust { justify-content: center; }
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
  .show, .show.rev .show-media { grid-template-columns: 1fr; order: 0; }
  .show-media { order: -1 !important; }
  .show + .show { margin-top: 72px; }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .section { padding: 68px 0; }
  .nav-links, .nav-cta .btn-text { display: none; }
  .nav-toggle { display: flex; }
  .nav.open .nav-links {
    display: flex; flex-direction: column; position: absolute; top: var(--nav-h); left: 16px; right: 16px;
    background: rgba(247,244,238,0.96); backdrop-filter: blur(20px); padding: 14px; border-radius: var(--r-lg);
    box-shadow: var(--sh-card); border: 1px solid var(--glass-border); gap: 4px;
  }
  .nav.open .nav-links a { width: 100%; }
  .feat-grid, .stats, .gallery { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 48px 24px; }
  .hero-card-1 { left: 0; } .hero-card-2 { right: 0; }
}

/* ── Reduced motion ──────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ============================================================================
   DARK APP UI KIT, makes the phone mockups match the real Petophill app
   (dark mode · squircle peach avatars · green pill toggles · labelled tabs ·
   paw watermark · floating duck companion). Scoped to .phone-screen so the
   surrounding light website is unaffected.
   ========================================================================== */
:root {
  --app-bg: #0E1310;
  --app-card: #161D19;
  --app-card2: rgba(255,255,255,0.035);
  --app-line: rgba(255,255,255,0.08);
  --app-text: #F3F3EF;
  --app-muted: #9BA39C;
  --app-green: #86DFB4;
  --app-green-solid: #3F7D63;
  --app-peach: #FFB59E;
  --app-peach-solid: #F2997B;
}

/* dark screen + paw watermark */
.phone-screen.app {
  background-color: var(--app-bg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='92' height='92' viewBox='0 0 92 92'%3E%3Cg fill='%23ffffff' fill-opacity='0.028'%3E%3Cellipse cx='30' cy='36' rx='4.6' ry='6.4'/%3E%3Cellipse cx='44' cy='31' rx='4.6' ry='6.4'/%3E%3Cellipse cx='58' cy='36' rx='4.6' ry='6.4'/%3E%3Cellipse cx='44' cy='54' rx='11' ry='9'/%3E%3C/g%3E%3C/svg%3E");
}
.phone-screen.app .app-status,
.phone-screen.app .app-top h4 { color: var(--app-text); }
.phone-screen.app .app-status .dots i { background: var(--app-text); }
.phone-screen.app .app-icbtn { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.10); }
.phone-screen.app .app-icbtn svg { color: var(--app-green); }
.phone-screen.app .fg-forest { color: var(--app-green); }
.phone-screen.app .pet-chip { border-color: var(--app-bg); }
.phone-screen.app .acard { background: var(--app-card); border-color: var(--app-line); box-shadow: none; color: var(--app-text); }
.phone-screen.app .story-row small,
.phone-screen.app .post-head small { color: var(--app-muted); }
.phone-screen.app .post-actions { color: var(--app-text); }

/* labelled bottom tab bar */
.tabbar {
  margin: 8px 12px 12px; padding: 9px 4px 7px; border-radius: 26px; display: flex; justify-content: space-around;
  background: rgba(18,24,21,0.82); border: 1px solid var(--app-line); backdrop-filter: blur(12px);
  box-shadow: 0 14px 30px -16px rgba(0,0,0,0.6);
}
.tb { display: flex; flex-direction: column; align-items: center; gap: 3px; color: #7C857D; font-size: 8.5px; font-weight: 800; flex: 1; }
.tb .tbi { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; }
.tb svg { width: 19px; height: 19px; }
.tb.on { color: var(--app-green); }
.tb.on .tbi { background: rgba(134,223,180,0.16); box-shadow: 0 6px 16px -8px rgba(134,223,180,0.7); }

/* squircle avatar (peach border) */
.av-sq { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-size: 26px; border: 2px solid var(--app-peach-solid); overflow: hidden; flex: none; }
.av-sq.big { width: 60px; height: 60px; font-size: 30px; border-radius: 18px; }

/* tag pill (BUDDY / MATE) */
.tagpill { font-size: 8.5px; font-weight: 800; letter-spacing: 0.05em; color: var(--app-green); background: rgba(134,223,180,0.14); padding: 2px 8px; border-radius: 99px; }

/* segmented control */
.seg { display: flex; background: rgba(255,255,255,0.05); border: 1px solid var(--app-line); border-radius: 99px; padding: 4px; gap: 4px; margin-bottom: 12px; }
.seg span { flex: 1; text-align: center; padding: 9px 6px; border-radius: 99px; font-size: 11px; font-weight: 800; color: var(--app-muted); }
.seg .on { background: var(--app-green); color: #0C2018; }
.seg .on.peach { background: var(--app-peach-solid); color: #3a1a10; }

/* category chips */
.chips { display: flex; gap: 7px; overflow: hidden; margin-bottom: 12px; }
.chip { font-size: 10px; font-weight: 800; color: var(--app-muted); background: rgba(255,255,255,0.05); padding: 6px 11px; border-radius: 99px; white-space: nowrap; }
.chip.on { background: var(--app-green); color: #0C2018; }

/* product card */
.prod { background: var(--app-card); border: 1px solid var(--app-line); border-radius: 16px; overflow: hidden; }
.prod .pimg { height: 78px; display: grid; place-items: center; font-size: 34px; }
.prod .pbody { padding: 8px 9px 9px; }
.prod b { font-size: 10px; color: var(--app-text); display: block; }
.prod small { font-size: 8.5px; color: var(--app-muted); }
.prod .prow { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; }
.price { color: var(--app-green); font-weight: 800; font-size: 11.5px; }
.addbtn { width: 24px; height: 24px; border-radius: 50%; background: var(--app-peach-solid); color: #3a1a10; display: grid; place-items: center; font-size: 16px; font-weight: 800; line-height: 1; }
.star { color: var(--app-peach-solid); font-size: 9px; font-weight: 800; }

/* dark search bar */
.app-search { height: 38px; border-radius: 99px; background: rgba(255,255,255,0.05); border: 1px solid var(--app-line); display: flex; align-items: center; gap: 8px; padding: 0 13px; color: var(--app-muted); font-size: 11px; margin-bottom: 12px; }
.app-search svg { width: 15px; height: 15px; color: var(--app-muted); }

/* list rows (chats / recommended items) */
.srow { background: var(--app-card2); border: 1px solid rgba(255,255,255,0.06); border-radius: 18px; padding: 10px; display: flex; align-items: center; gap: 10px; margin-bottom: 9px; }
.srow .meta { flex: 1; min-width: 0; }
.srow .meta .nm { display: flex; align-items: center; gap: 7px; }
.srow .meta b { font-size: 12px; color: var(--app-text); }
.srow .meta .sub { font-size: 10px; color: var(--app-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.srow .time { font-size: 9px; color: var(--app-muted); align-self: flex-start; }

/* feature/banner tiles inside app */
.app-banner { border-radius: 18px; padding: 13px 14px; display: flex; align-items: center; gap: 12px; margin-bottom: 11px; }
.app-banner.green { background: var(--app-green); color: #0C2018; }
.app-banner .bi { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; flex: none; background: rgba(255,255,255,0.9); }
.app-banner b { font-size: 13px; display: block; }
.app-banner small { font-size: 10px; opacity: 0.85; }
.app-duo { display: flex; gap: 10px; margin-bottom: 12px; }
.app-duo .d { flex: 1; border-radius: 18px; padding: 13px; border: 1px solid var(--app-line); }
.app-duo .d .di { width: 40px; height: 40px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 9px; }
.app-duo .d b { font-size: 12px; color: var(--app-text); display: block; }
.app-duo .d small { font-size: 9.5px; color: var(--app-muted); }

/* wallet card */
.wallet-card { background: linear-gradient(150deg, #4E9D78, #2F5E4A); border-radius: 22px; padding: 16px; color: #fff; position: relative; overflow: hidden; margin-bottom: 14px; }
.wallet-card .wlbl { font-size: 9px; font-weight: 800; letter-spacing: 0.08em; opacity: 0.85; }
.wallet-card .wbal { font-family: var(--font-display); font-weight: 700; font-size: 34px; display: flex; align-items: center; gap: 8px; margin: 4px 0; }
.wallet-card .wbtns { display: flex; gap: 8px; margin-top: 12px; }
.wallet-card .wbtns span { flex: 1; text-align: center; padding: 9px; border-radius: 99px; font-size: 11px; font-weight: 800; }
.wallet-card .wbtns .solid { background: #fff; color: var(--app-green-solid); }
.wallet-card .wbtns .out { border: 1px solid rgba(255,255,255,0.6); color: #fff; }

/* empty state */
.app-empty { text-align: center; padding: 26px 10px; }
.app-empty .ei { width: 56px; height: 56px; border-radius: 50%; border: 2px solid var(--app-line); display: grid; place-items: center; margin: 0 auto 12px; color: var(--app-muted); }
.app-empty b { color: var(--app-text); font-size: 14px; font-family: var(--font-display); }
.app-empty p { color: var(--app-muted); font-size: 11px; margin: 5px 0 14px; }
.app-empty .ebtn { display: inline-block; padding: 9px 18px; border-radius: 99px; border: 1px solid var(--app-line); color: var(--app-text); font-size: 11px; font-weight: 800; }

/* floating mascot companion (the app mascot overlay) */
.companion { position: absolute; right: 12px; bottom: 80px; width: 60px; height: 60px; z-index: 8; animation: bob 4s ease-in-out infinite; filter: drop-shadow(0 8px 14px rgba(0,0,0,0.4)); }
.phone-sm .companion { width: 48px; height: 48px; bottom: 66px; right: 8px; }

/* ── Real pet cutouts, static (no motion) ────────────────────────────────
 * Three modes:
 *   .peek-btn, sits on TOP of a button/CTA band; the photo's straight bottom
 *                cut line aligns to the band's top line (peeking from the button).
 *   .peek-edge, flush to the right edge of the viewport, zero gap.
 *   .peek-bg, large background pet, sits BEHIND all content (never hides text). */
.peek img { display: block; width: 100%; height: auto; }
.peek.flip img { transform: scaleX(-1); }

/* button-top peeker, place INSIDE a .cta-band (which is position:relative) */
.peek-btn { position: absolute; left: 50%; transform: translateX(-50%); bottom: 100%; margin-bottom: -1px; z-index: 7; pointer-events: none; filter: drop-shadow(0 14px 22px rgba(27,67,50,0.28)); }

/* right-edge peeker, flush to the page's right border, no gap (escapes the
 * padded container to reach the true viewport right edge) */
.peek-edge { position: absolute; right: calc(50% - 50vw); z-index: 6; pointer-events: none; filter: drop-shadow(0 14px 22px rgba(27,67,50,0.22)); }

/* background pet, behind everything in its section, above the page mesh */
.peek-bg { position: absolute; z-index: -1; pointer-events: none; opacity: 0.85; filter: drop-shadow(0 16px 26px rgba(27,67,50,0.16)); }
.section:has(.peek-bg), .hero:has(.peek-bg) { isolation: isolate; }

@media (max-width: 1100px) { .peek-edge { display: none; } }
@media (max-width: 820px) { .peek-bg { display: none; } .peek-btn { width: 220px !important; } }
@media (max-width: 560px) { .peek-btn { display: none; } }

/* ── Pawfile / Health home screen (matches the app) ──────────────────── */
.pf-cover { position: relative; height: 138px; margin: 0 -14px 12px; display: flex; flex-direction: column; justify-content: flex-end; padding: 12px 15px; overflow: hidden; }
.pf-cover .cov { position: absolute; inset: 0; }
.pf-cover .cov::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 35%, rgba(0,0,0,0.62)); }
.pf-cover .covicons { position: absolute; top: 10px; right: 12px; display: flex; gap: 7px; z-index: 2; }
.pf-cover .covicons span { width: 26px; height: 26px; border-radius: 8px; background: rgba(0,0,0,0.32); display: grid; place-items: center; color: #fff; }
.pf-cover .covicons svg { width: 14px; height: 14px; }
.pf-cover .nm { position: relative; color: #fff; font-family: var(--font-display); font-weight: 600; font-size: 25px; line-height: 1; }
.pf-cover .meta { position: relative; color: rgba(255,255,255,0.92); font-size: 10.5px; font-weight: 700; margin-top: 4px; }
.pf-cover .status { position: relative; color: rgba(255,255,255,0.82); font-size: 10px; margin-top: 2px; }
.pf-score { background: var(--app-card); border: 1px solid var(--app-line); border-radius: 18px; padding: 12px; display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.pf-ring { width: 52px; height: 52px; flex: none; position: relative; display: grid; place-items: center; }
.pf-ring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.pf-ring b { font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--app-text); }
.pf-score .sc b { font-size: 13px; color: var(--app-text); display: block; }
.pf-score .sc small { font-size: 9.5px; color: var(--app-muted); }
.pf-score .sc .net { color: var(--app-green); font-weight: 800; }
.pf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-bottom: 10px; }
.pf-tile { background: var(--app-card); border: 1px solid var(--app-line); border-radius: 16px; padding: 11px; }
.pf-tile .ti { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; margin-bottom: 9px; }
.pf-tile .ti svg { width: 17px; height: 17px; }
.pf-tile .big { font-family: var(--font-display); font-weight: 700; font-size: 21px; color: var(--app-text); line-height: 1; }
.pf-tile .lab { font-size: 11.5px; font-weight: 800; color: var(--app-text); margin-top: 4px; }
.pf-tile .sub { font-size: 9px; color: var(--app-muted); margin-top: 1px; }
.pf-ai { background: linear-gradient(135deg, #5FAE86, #3F7D63); border-radius: 18px; padding: 11px 13px; display: flex; align-items: center; gap: 8px; position: relative; overflow: hidden; }
.pf-ai .ai-i { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,0.9); display: grid; place-items: center; flex: none; }
.pf-ai .ai-t { flex: 1; }
.pf-ai .ai-t b { color: #fff; font-family: var(--font-display); font-weight: 600; font-size: 14px; display: block; }
.pf-ai .ai-t small { color: rgba(255,255,255,0.88); font-size: 9.5px; line-height: 1.25; display: block; }
.pf-ai img { width: 52px; height: 52px; flex: none; margin: -6px -4px -10px 0; filter: drop-shadow(0 6px 10px rgba(0,0,0,0.3)); }

/* real mascot art inside the round stage + small floating mascots */
.mascot img { width: 74%; height: 74%; object-fit: contain; filter: drop-shadow(0 10px 16px rgba(27,67,50,0.28)); }
.mascot-mini { position: absolute; width: 90px; height: 90px; filter: drop-shadow(0 10px 16px rgba(27,67,50,0.25)); animation: bob 4.6s ease-in-out infinite; z-index: 5; }
.mascot-mini.m-cat { left: 2%; bottom: 14%; animation-delay: .5s; }
.mascot-mini.m-ham { right: 0%; top: 12%; width: 76px; height: 76px; animation-delay: 1.1s; }
.feat .mascot-row { display: flex; gap: 6px; }
.mascot-inline { width: 56px; height: 56px; }

/* connected / status muted line on dark */
.phone-screen.app .muted-d { color: var(--app-muted); }
.phone-screen.app .sub-d { color: var(--app-muted); font-size: 10px; }

/* ── Legal pages (privacy / terms / delete-account) ──────────────────── */
.legal-wrap { max-width: 880px; margin: 0 auto; padding: calc(var(--nav-h) + 44px) 22px 90px; }
.legal-head { text-align: center; margin-bottom: 26px; }
.legal-head h1 { font-family: var(--font-display); font-weight: 700; font-size: clamp(34px, 5.2vw, 54px); line-height: 1.04; color: var(--forest-ink); }
.legal-head .legal-meta { color: var(--muted); margin-top: 12px; font-size: 15px; }
.legal-card { background: var(--glass-strong); border: 1px solid var(--glass-border); border-radius: var(--r-lg); box-shadow: var(--sh-card); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); padding: clamp(26px, 4vw, 48px); }
.legal-card > :first-child { margin-top: 0; }
.legal-card h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(21px, 2.6vw, 26px); color: var(--forest-deep); margin-top: 36px; }
.legal-card h3 { font-size: 18px; font-weight: 800; color: var(--ink); margin-top: 24px; }
.legal-card p { color: var(--ink-soft); margin-top: 12px; }
.legal-card strong { color: var(--ink); }
.legal-card ul { margin-top: 12px; }
.legal-card li { color: var(--ink-soft); position: relative; padding-left: 24px; margin-top: 9px; }
.legal-card li::before { content: ""; position: absolute; left: 4px; top: 11px; width: 7px; height: 7px; border-radius: 50%; background: var(--mint); }
.legal-card a { color: var(--forest); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.legal-note { background: linear-gradient(135deg, rgba(111,199,155,0.16), rgba(244,183,64,0.12)); border-left: 4px solid var(--forest); border-radius: var(--r-sm); padding: 15px 18px; margin-top: 20px; color: var(--ink); }
.legal-note strong { color: var(--forest-ink); }
.legal-btn { display: inline-block; margin-top: 14px; padding: 13px 22px; border-radius: var(--pill); background: var(--grad-primary); color: #fff; font-weight: 800; box-shadow: var(--sh-glow); text-decoration: none; }
