/* self-hosted UI fonts (latin) */
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 400;
  font-display: optional;
  src: url(/fonts/ui/figtree-7073ac15.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 600;
  font-display: optional;
  src: url(/fonts/ui/figtree-7073ac15.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 800;
  font-display: optional;
  src: url(/fonts/ui/figtree-7073ac15.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* end fonts */
/* Gobble Bend. Layout follows the trend-site pattern (Try a Trend / Jump / Sendare): intro + example on the left,
   sticky tool card with a 3-step indicator on the right, then "trend in short", beat-by-beat, comparison, FAQ.
   Light page, white cards with thin borders, one accent (green-bean green) instead of the competitors' cranberry. */
:root {
  --bg: #F6F5F1; --card: #FFFFFF; --ink: #1F1A17; --muted: #625B55; --line: #E3DFD8;
  --accent: #2F6B3A; --accent-dark: #24552D; --accent-soft: #EAF2E6; --warn: #B4471C;
  --font: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--font); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.015em; margin: 0 0 .5em; font-weight: 800; }
h1 { font-size: clamp(2.1rem, 5.4vw, 3.3rem); }
h2 { font-size: clamp(1.45rem, 3.4vw, 2rem); }
h3 { font-size: 1.15rem; }
main { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

.top { position: sticky; top: 0; z-index: 5; background: rgba(246,245,241,.94); border-bottom: 1px solid var(--line); backdrop-filter: blur(6px); }
.bar { max-width: 1120px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 1.05rem; }
.mark { width: 30px; height: 30px; }
.top nav { display: flex; gap: 18px; }
.top nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: .95rem; padding: 8px 0; }
.top nav a:hover { color: var(--ink); }

.tagline { font-size: clamp(1.2rem, 2.6vw, 1.5rem); font-weight: 600; margin: -4px 0 12px; }
.lede { font-size: 1.08rem; color: #3B342F; max-width: 560px; margin: 0 0 14px; }
.chips { list-style: none; padding: 0; margin: 0 0 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 3px 12px; font-size: .85rem; font-weight: 600; }

/* Hero: intro left, tool right (tool first on phones, right after the intro text) */
.hero { display: grid; gap: 12px; grid-template-columns: 1fr; padding: 18px 0 40px; }
/* Phones: title, tool card, then the longer intro and the example (the tool must be on the first screen). */
.hero .intro { display: contents; }
.hero h1, .hero .tagline { order: 0; }
.tool { order: 1; margin: 6px 0 10px; }
.hero .lede, .hero .chips { order: 2; }
.phone { order: 3; }
@media (min-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr) 420px; align-items: start; gap: 48px; padding-top: 32px; }
  .tool { margin: 0; }
  .hero .intro { display: block; }
  .tool { position: sticky; top: 72px; }
}
.phone { margin: 0 auto; width: min(300px, 78vw); }
.phone > img { border: 8px solid var(--ink); border-radius: 30px; width: 100%; }
@media (min-width: 900px) { .phone { margin: 6px 0 0; } }
.phone figcaption { display: flex; align-items: center; gap: 8px; font-size: .82rem; color: var(--muted); padding-top: 10px; }
.phone figcaption img { width: 34px; height: 34px; border-radius: 50%; flex: none; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; }
.tool { padding: 20px; box-shadow: 0 10px 30px rgba(31,26,23,.06); }
.tool h2 { font-size: 1.35rem; margin-bottom: 14px; }
.stepper { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 6px 10px; white-space: nowrap; font-size: .78rem; font-weight: 600; color: var(--muted); counter-reset: s; }
.stepper li { counter-increment: s; display: flex; align-items: center; gap: 6px; }
.stepper li::before { content: counter(s); display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--line); color: var(--ink); font-size: .75rem; }
.stepper li.on { color: var(--ink); }
.stepper li.on::before { background: var(--accent); color: #fff; }

.drop { position: relative; display: flex; align-items: center; gap: 14px; border: 2px dashed #C9C2B8; border-radius: 14px; padding: 18px; cursor: pointer; background: #FBFAF7; min-height: 92px; }
.drop:hover, .drop.over, .drop:focus-within { border-color: var(--accent); background: var(--accent-soft); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; flex: none; }
.tips { list-style: none; padding: 0; margin: 12px 0 8px; display: flex; flex-wrap: wrap; gap: 6px; }
.tips li { font-size: .78rem; font-weight: 600; border-radius: 999px; padding: 2px 10px; }
.tips li.y { background: var(--accent-soft); color: var(--accent-dark); }
.tips li.y::before { content: "✓ "; }
.tips li.n { background: #F3EEE8; color: var(--muted); }
.tips li.n::before { content: "✕ "; }
.fine { font-size: .82rem; color: var(--muted); margin: 6px 0; }
.center { text-align: center; }
.confirm { background: #FBFAF7; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin: 12px 0 14px; }
.confirm label { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; padding: 5px 0; cursor: pointer; }
.confirm input { width: 20px; height: 20px; flex: none; margin-top: 2px; accent-color: var(--accent); }

.btn { display: block; width: 100%; font: 700 1.02rem var(--font); background: var(--accent); color: #fff; border: 0; border-radius: 999px;
  padding: 13px 20px; min-height: 50px; cursor: pointer; text-align: center; text-decoration: none; }
.btn:hover { background: var(--accent-dark); }
.btn[disabled] { background: #A9C2AC; cursor: not-allowed; }
.link { background: none; border: 0; padding: 4px 0; font: inherit; color: var(--muted); text-decoration: underline; cursor: pointer; }
.err { background: #FBEDE6; border-left: 4px solid var(--warn); padding: 10px 12px; border-radius: 8px; font-size: .92rem; }
.wait { display: flex; align-items: center; gap: 12px; padding: 18px 4px; }
.spin { width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--accent); animation: spin 1s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spin { animation: none; background: var(--accent); } }
.result > img { border-radius: 14px; width: 100%; max-width: 300px; margin: 0 auto 8px; border: 1px solid var(--line); }
.result h3 { margin-top: 14px; }
.prices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.price { position: relative; display: grid; gap: 2px; text-align: left; font: inherit; background: var(--card); border: 2px solid var(--line); border-radius: 14px; padding: 12px 14px; cursor: pointer; min-height: 64px; }
.price:hover, .price.sel { border-color: var(--accent); background: var(--accent-soft); }
.price span { font-size: 1.15rem; font-weight: 800; }
.price em { position: absolute; top: -10px; right: 10px; font-style: normal; font-size: .72rem; font-weight: 700; background: var(--accent); color: #fff; border-radius: 999px; padding: 1px 8px; }
.lead { margin-top: 14px; }
.lead p { font-size: .92rem; margin: 6px 0; }
.lead input { width: 100%; font: inherit; padding: 11px 14px; border: 1px solid #C9C2B8; border-radius: 12px; margin: 4px 0 10px; min-height: 48px; }

/* Content sections */
.split { display: grid; gap: 12px 48px; grid-template-columns: 1fr; padding: 36px 0; border-top: 1px solid var(--line); }
@media (min-width: 900px) { .split { grid-template-columns: 340px minmax(0, 1fr); } }
.split > div { max-width: 62ch; }
.beats { list-style: none; padding: 0; counter-reset: b; }
.beats li { counter-increment: b; display: flex; gap: 12px; margin-bottom: 10px; color: #3B342F; }
.beats li::before { content: counter(b); flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-dark); font-weight: 700; font-size: .8rem; margin-top: 1px; }
.compare { padding: 36px 0; border-top: 1px solid var(--line); }
.cols { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .cols { grid-template-columns: repeat(3, 1fr); } }
.cols .card { padding: 18px; }
.cols .card p { color: var(--muted); margin: 0; }
.cols .pick { background: var(--accent-soft); border-color: #C8DCC2; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 700; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; font-size: 1.3rem; line-height: 1; color: var(--muted); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 14px; color: #3B342F; }
.legal { max-width: 760px; margin: 0 auto; padding: 24px 16px 48px; }
.legal h2 { margin-top: 1.6em; font-size: 1.3rem; }
.legal p, .legal li { max-width: 560px; }

.foot { background: #EDEAE3; border-top: 1px solid var(--line); padding: 26px 16px 34px; font-size: .88rem; color: var(--muted); margin-top: 20px; }
.foot p, .foot nav { max-width: 600px; margin: 0 auto 10px; }
.foot p { max-width: 52ch; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot a { color: var(--ink); }
@media (max-width: 380px) { .tool { padding: 16px; } .stepper { font-size: .76rem; } .tips li { font-size: .74rem; } }

/* PawTrend additions: looping example videos, trend grid on the home page, language switch, two price tiers. */
.top nav .langs { display: inline-flex; gap: 8px; margin-left: 6px; }
.top nav .langs a { font-size: .8rem; padding: 2px 6px; border: 1px solid var(--line); border-radius: 6px; }
.hero-media { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 520px; }
.clip, .still { margin: 0; }
.clip video, .still > img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 16px; background: #222; display: block; }
.clip figcaption, .still figcaption { font-size: .8rem; color: var(--muted); padding-top: 6px; display: flex; align-items: center; gap: 6px; }
.still .pets { display: inline-flex; }
.still .pets img { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--bg); margin-right: -6px; }
.still .pets img:last-child { margin-right: 4px; }
.examples { padding: 36px 0; border-top: 1px solid var(--line); }
.clips { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); max-width: 760px; }
.homehero { padding: 28px 0 10px; max-width: 640px; }
.trends { padding: 10px 0 40px; }
.tgrid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.tcard { display: block; text-decoration: none; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 10px; }
.tcard:hover { border-color: var(--accent); }
.tcard .clip figcaption { display: none; }
.tmeta { display: flex; align-items: center; gap: 8px; padding: 10px 4px 2px; flex-wrap: wrap; }
.tmeta em { font-style: normal; font-size: .72rem; font-weight: 700; background: var(--accent); color: #fff; border-radius: 999px; padding: 1px 8px; }
.tmeta .go { margin-left: auto; color: var(--accent); font-weight: 600; font-size: .9rem; }
.drop.small { min-height: 64px; margin-top: 10px; padding: 12px 18px; }
.price small { font-size: .78rem; color: var(--muted); line-height: 1.35; }
@media (max-width: 899px) { .hero .hero-media { order: 3; } }
.top nav { align-items: center; gap: 16px; }
.top nav .langs a { white-space: nowrap; }
@media (max-width: 600px) { .top nav > a { display: none; } .top nav .langs { margin-left: 0; gap: 6px; } }
