/*
 * Petbell site pages (templates/site.php): features, households, pricing, help, guides, tools.
 * Same look as the home page: black, SF Pro, white headings, grey body, blue pill buttons, purple accent line.
 * Content blocks (in each page's Custom HTML) use only the pb-* classes below; bin/pb-pages*.json holds them.
 */
body.pb-site {
  margin: 0;
  background: #000;
  color: #f5f5f7;
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
.pb-site *, .pb-site *::before, .pb-site *::after { box-sizing: border-box; min-width: 0; }
.pb-site img { max-width: 100%; height: auto; display: block; }
.pb-site a { color: #8e8cf0; }
.pb-site a:hover { color: #b3b2ff; }
.pb-site :focus-visible { outline: 2px solid #8e8cf0; outline-offset: 3px; border-radius: 6px; }
.pb-wrap { max-width: 1120px; margin: 0 auto; padding: 0 max(5vw, 20px); }

/* Navigation */
.pb-nav { position: sticky; top: 0; z-index: 10; background: rgba(0, 0, 0, .82); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid #1c1c1e; }
.pb-nav .pb-wrap { display: flex; align-items: center; gap: 8px 24px; flex-wrap: wrap; min-height: 60px; }
.pb-brand { display: flex; align-items: center; gap: 10px; color: #fff !important; text-decoration: none; font-weight: 700; font-size: 19px; min-height: 44px; }
.pb-brand img { width: 30px; height: 30px; border-radius: 8px; }
.pb-nav nav { flex: 1; }
.pb-nav ul { display: flex; gap: 4px 20px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.pb-nav ul a { color: #c7c7cc; text-decoration: none; font-size: 15px; display: inline-flex; align-items: center; min-height: 44px; }
.pb-nav ul a:hover, .pb-nav ul a[aria-current="page"] { color: #fff; }
.pb-nav .pb-get { margin-left: auto; }

/* Buttons */
.pb-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 22px; border-radius: 999px; background: #0062cc; color: #fff !important; text-decoration: none; font-weight: 600; font-size: 16px; border: 0; cursor: pointer; font-family: inherit; }
.pb-btn:hover { background: #0071eb; }
.pb-btn.pb-ghost { background: #1c1c1e; color: #f5f5f7 !important; }
.pb-btn.pb-ghost:hover { background: #2c2c2e; }
.pb-nav .pb-btn { min-height: 36px; padding: 6px 16px; font-size: 14px; }
.pb-stores { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin: 24px 0 0; }
.pb-stores a { display: inline-flex; min-height: 48px; align-items: center; }
.pb-stores img { height: 48px; width: auto; }

/* Breadcrumbs */
.pb-crumbs { font-size: 14px; color: #8e8e93; padding-top: 24px; }
.pb-main .pb-crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.pb-crumbs li + li::before { content: "›"; margin-right: 4px; color: #48484a; }
.pb-crumbs a { color: #8e8e93; text-decoration: none; }
.pb-crumbs a:hover { color: #fff; }

/* Type */
.pb-main h1 { font-size: clamp(36px, 6vw, 60px); line-height: 1.05; letter-spacing: -.025em; font-weight: 800; margin: 0 0 18px; text-wrap: balance; color: #fff; }
.pb-main h2 { font-size: clamp(28px, 4vw, 42px); line-height: 1.1; letter-spacing: -.02em; font-weight: 800; margin: 0 0 14px; text-wrap: balance; color: #fff; }
.pb-main h3 { font-size: 21px; line-height: 1.25; font-weight: 700; margin: 0 0 8px; color: #fff; }
.pb-main p { margin: 0 0 14px; color: #c7c7cc; max-width: 68ch; }
.pb-main ul, .pb-main ol { color: #c7c7cc; padding-left: 22px; margin: 0 0 16px; }
.pb-main li { margin: 6px 0; }
.pb-main strong { color: #fff; }
.pb-kicker { color: #8e8cf0 !important; font-weight: 700; font-size: 17px; margin: 0 0 10px !important; }
.pb-lede { font-size: clamp(18px, 2.2vw, 21px); color: #c7c7cc; }
.pb-small { font-size: 14px !important; color: #8e8e93 !important; }

/* Sections */
.pb-section { padding: clamp(48px, 8vw, 104px) 0; }
.pb-section + .pb-section { border-top: 1px solid #1c1c1e; }
.pb-center { text-align: center; }
.pb-center p { margin-left: auto; margin-right: auto; }
.pb-center .pb-stores { justify-content: center; }

/* Hero: text beside a phone */
.pb-hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(28px, 6vw, 80px); align-items: center; padding: clamp(32px, 6vw, 72px) 0 clamp(48px, 8vw, 96px); }
.pb-hero.pb-solo { grid-template-columns: minmax(0, 1fr); max-width: 820px; padding-bottom: clamp(24px, 4vw, 48px); }

/* Phone frame around a real screenshot (600 x 1304 WebP, shown at 300 wide) */
.pb-phone { margin: 0 auto; width: min(300px, 100%); background: #1c1c1e; padding: 7px; border-radius: 44px; box-shadow: 0 0 0 1px #2c2c2e, 0 30px 80px rgba(88, 86, 214, .22); }
.pb-phone img { border-radius: 37px; width: 100%; aspect-ratio: 600 / 1304; object-fit: cover; }
.pb-phone figcaption { font-size: 14px; color: #8e8e93; text-align: center; padding: 10px 6px 4px; }
.pb-art { margin: 0 auto; max-width: 520px; }
.pb-art img { border-radius: 24px; }

/* Row: text beside a picture; .pb-flip puts the picture first */
.pb-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 80px); align-items: center; }
.pb-row.pb-flip > :first-child { order: 2; }

/* Cards */
.pb-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 16px; margin-top: 28px; }
.pb-card { background: #1c1c1e; border-radius: 24px; padding: 24px 24px 22px; display: flex; flex-direction: column; }
.pb-card p { font-size: 16px; }
.pb-card > a:last-child { margin-top: auto; font-weight: 600; text-decoration: none; display: inline-flex; min-height: 44px; align-items: center; }
a.pb-card { text-decoration: none; transition: background .2s; }
a.pb-card:hover { background: #2c2c2e; }
a.pb-card h3 { color: #fff; }
.pb-card .pb-thumb { width: 64px; margin: -4px 0 14px; }
.pb-card .pb-thumb img { border-radius: 12px; }

/* Steps */
.pb-steps { counter-reset: s; list-style: none; padding: 0 !important; display: grid; gap: 14px; }
.pb-steps li { counter-increment: s; background: #1c1c1e; border-radius: 20px; padding: 18px 20px 18px 68px; position: relative; margin: 0; }
.pb-steps li::before { content: counter(s); position: absolute; left: 20px; top: 18px; width: 32px; height: 32px; border-radius: 50%; background: #5856d6; color: #fff; font-weight: 700; display: grid; place-items: center; font-size: 15px; }

/* FAQ */
.pb-faq { max-width: 820px; }
.pb-faq details { border-top: 1px solid #2c2c2e; }
.pb-faq details:last-child { border-bottom: 1px solid #2c2c2e; }
.pb-faq summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; font-weight: 600; font-size: 18px; color: #fff; position: relative; min-height: 44px; }
.pb-faq summary::-webkit-details-marker { display: none; }
.pb-faq summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-size: 26px; color: #8e8cf0; font-weight: 400; }
.pb-faq details[open] summary::after { content: "−"; }
.pb-faq details > :not(summary) { margin-top: 0; }
.pb-faq details p:last-child { padding-bottom: 12px; }

/* Note */
.pb-note { background: #1c1c1e; border-radius: 18px; padding: 16px 20px; font-size: 16px; color: #c7c7cc; margin: 20px 0; max-width: 68ch; }
.pb-note strong { color: #fff; }

/* Tables (pricing, comparison) */
.pb-table-wrap { overflow-x: auto; margin: 24px 0; border-radius: 20px; background: #1c1c1e; }
.pb-table { width: 100%; border-collapse: collapse; font-size: 16px; min-width: 520px; }
.pb-table th, .pb-table td { padding: 14px 18px; text-align: left; border-top: 1px solid #2c2c2e; vertical-align: top; color: #c7c7cc; }
.pb-table thead th { border-top: 0; color: #fff; font-size: 15px; }
.pb-table td:first-child, .pb-table th:first-child { color: #fff; font-weight: 600; }
.pb-yes { color: #30d158 !important; font-weight: 600; }
.pb-no { color: #8e8e93 !important; }

/* Long reading (guides, help articles) */
.pb-prose { max-width: 720px; margin: 0 auto; }
.pb-prose h2 { font-size: clamp(24px, 3vw, 32px); margin-top: 44px; }
.pb-prose h3 { margin-top: 28px; }
.pb-prose p, .pb-prose li { font-size: 18px; line-height: 1.7; }
.pb-prose figure { margin: 32px auto; }
.pb-meta { font-size: 15px !important; color: #8e8e93 !important; }

/* Related links */
.pb-related { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0 !important; margin: 20px 0 0 !important; }
.pb-related a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 18px; border-radius: 999px; background: #1c1c1e; color: #f5f5f7; text-decoration: none; font-size: 15px; }
.pb-related a:hover { background: #2c2c2e; color: #fff; }

/* Call to action band (every site page) */
.pb-cta { text-align: center; padding: clamp(56px, 9vw, 112px) 0; border-top: 1px solid #1c1c1e; }
.pb-cta img.pb-icon { width: 80px; height: 80px; border-radius: 20px; margin: 0 auto 20px; }
.pb-cta h2 { font-size: clamp(28px, 4vw, 42px); line-height: 1.1; font-weight: 800; letter-spacing: -.02em; margin: 0 0 12px; color: #fff; }
.pb-cta p { color: #c7c7cc; margin: 0 auto; max-width: 52ch; }
.pb-cta .pb-stores { justify-content: center; }

/* Footer */
.pb-foot { border-top: 1px solid #1c1c1e; padding: 48px 0 32px; font-size: 15px; color: #8e8e93; }
.pb-foot-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: 28px; }
.pb-foot h2 { font-size: 14px; color: #fff; margin: 0 0 8px; font-weight: 600; }
.pb-foot ul { list-style: none; margin: 0; padding: 0; }
.pb-foot li a { color: #8e8e93; text-decoration: none; display: inline-flex; align-items: center; min-height: 36px; }
.pb-foot li a:hover { color: #fff; }
.pb-foot-base { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; margin-top: 36px; padding-top: 20px; border-top: 1px solid #1c1c1e; }
.pb-foot-base a { color: #8e8e93; }
.pb-social { display: flex; gap: 6px; }
.pb-social a { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; }
.pb-social img { width: 20px; height: 20px; }

/* Free tools (rota maker, handover sheet, checklist) */
.pb-tool { background: #1c1c1e; border-radius: 24px; padding: clamp(18px, 3vw, 32px); margin: 24px 0; }
.pb-tool label { display: block; font-weight: 600; color: #fff; margin: 14px 0 6px; font-size: 16px; }
.pb-tool input[type="text"], .pb-tool input[type="tel"], .pb-tool textarea, .pb-tool select { width: 100%; font: inherit; font-size: 16px; color: #fff; background: #000; border: 1px solid #3a3a3c; border-radius: 12px; padding: 11px 14px; min-height: 44px; }
.pb-tool textarea { min-height: 88px; resize: vertical; }
.pb-tool .pb-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 0 18px; }
.pb-tool .pb-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.pb-check { list-style: none; padding: 0 !important; }
.pb-check li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-top: 1px solid #2c2c2e; margin: 0; }
.pb-check input { width: 22px; height: 22px; margin-top: 3px; flex: none; accent-color: #5856d6; }
.pb-rota-out { overflow-x: auto; margin-top: 24px; }
.pb-rota-out table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 15px; background: #fff; color: #111; border-radius: 12px; overflow: hidden; }
.pb-rota-out th, .pb-rota-out td { border: 1px solid #d1d1d6; padding: 8px 10px; text-align: left; vertical-align: top; }
.pb-rota-out th { background: #f2f2f7; }
.pb-rota-out caption { text-align: left; font-weight: 700; color: #fff; padding: 0 0 10px; font-size: 18px; }

@media (max-width: 820px) {
  .pb-hero, .pb-row { grid-template-columns: minmax(0, 1fr); }
  .pb-row.pb-flip > :first-child { order: 0; }
  .pb-nav nav { order: 3; flex-basis: 100%; }
  .pb-nav ul { overflow-x: auto; flex-wrap: nowrap; }
  .pb-nav ul li { flex: none; }
  .pb-crumbs li[aria-current] { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
}

/* Printing a tool page prints only the tool's output */
@media print {
  body.pb-site { background: #fff; color: #000; }
  .pb-nav, .pb-crumbs, .pb-cta, .pb-foot, .pb-noprint, .pb-tool .pb-actions { display: none !important; }
  .pb-tool { background: #fff; padding: 0; }
  .pb-main h1, .pb-main h2, .pb-main h3, .pb-main p, .pb-main li, .pb-tool label { color: #000 !important; }
  .pb-tool input, .pb-tool input[type="text"], .pb-tool input[type="tel"], .pb-tool textarea, .pb-tool select { border: 1px solid #999 !important; background: #fff !important; color: #000 !important; }
  .pb-rota-out caption { color: #000; }
}
@media (prefers-reduced-motion: reduce) { a.pb-card { transition: none; } }
