/* ==========================================================================
   CorePaw Pro — design system (Bootstrap 5 + the CorePaw brand layer)
   Same family palette as CorePaw (teal / navy / coral) with a more operational
   feel: navy carries more weight, surfaces are warmer, cards are flatter and
   the accents mark state (late, due, offline) rather than decorate.
   Edit brand tokens in :root.
   ========================================================================== */

:root {
  /* Brand palette — the CorePaw family */
  --brand: #1BB0A6;          /* teal primary */
  --brand-deep: #148C84;     /* teal dark */
  --brand-soft: #E4F5F3;     /* teal wash */
  --accent-coral: #F0705F;   /* coral accent */
  --accent-coral-deep: #D85A49;
  --navy: #153A57;           /* CorePaw Pro navy — the operational anchor */
  --navy-deep: #0F2A40;
  --success: #1BB0A6;
  --warning: #D98324;
  --ink: #12293D;
  --surface: #F4F7F7;
  --surface-warm: #FAF8F5;

  /* Semantic */
  --foreground: var(--ink);
  --muted-foreground: #55697A;
  --border: #DCE5E9;
  --card: #FFFFFF;

  --radius: 1rem;

  /* Gradients */
  --gradient-brand: linear-gradient(135deg, #1BB0A6, #148C84);
  --gradient-navy: linear-gradient(135deg, #1D4A6B, #12293D);
  --gradient-hero:
    radial-gradient(58% 78% at 72% 14%, rgba(27,176,166,0.20), transparent 62%),
    radial-gradient(48% 66% at 6% 92%, rgba(21,58,87,0.10), transparent 62%),
    linear-gradient(180deg, #ffffff, var(--surface));

  /* Shadows */
  --shadow-elegant: 0 24px 48px -26px rgba(21,58,87,0.42);
  --shadow-card: 0 1px 2px rgba(18,41,61,.04), 0 12px 28px -18px rgba(18,41,61,.16);
  --shadow-phone: 0 44px 72px -30px rgba(18,41,61,.42), 0 24px 48px -28px rgba(27,176,166,.30);

  /* Bootstrap overrides */
  --bs-primary: #1BB0A6;
  --bs-body-color: #12293D;
  --bs-body-font-family: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
}

* { border-color: var(--border); }

html { scroll-behavior: smooth; }

body {
  font-family: var(--bs-body-font-family);
  color: var(--foreground);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 { letter-spacing: -0.022em; font-weight: 700; }

a { text-decoration: none; }
a:not(.btn):not(.nav-link):not(.dropdown-item):not(.store-badge):not(.navbar-brand):hover { text-decoration: underline; }

.text-muted-fg { color: var(--muted-foreground) !important; }

/* ---- Accessibility ---- */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 2000;
  background: var(--navy); color: #fff; padding: .75rem 1.25rem;
  border-radius: 0 0 .75rem 0; font-weight: 600;
}
.skip-link:focus { left: 0; color: #fff; }

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
  border-radius: .35rem;
}
.btn:focus-visible, .input:focus-visible, summary:focus-visible { outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

/* ---- Layout helpers ---- */
.container-px { max-width: 1280px; }
.section { padding-top: 4.5rem; padding-bottom: 4.5rem; }
@media (min-width: 768px) { .section { padding-top: 6.5rem; padding-bottom: 6.5rem; } }
.section-tight { padding-top: 3rem; padding-bottom: 3rem; }
.bg-surface { background: var(--surface); }
.bg-warm { background: var(--surface-warm); }
.bg-hero { background: var(--gradient-hero); }

.bg-hero.hero-center {
  background:
    radial-gradient(60% 70% at 50% 0%, rgba(27,176,166,0.16), transparent 70%),
    radial-gradient(50% 60% at 50% 100%, rgba(21,58,87,0.07), transparent 70%),
    linear-gradient(180deg, #ffffff, var(--surface));
}
.hero-center .section { padding-top: 3.25rem; padding-bottom: 3.25rem; }
@media (min-width: 768px) {
  .hero-center .section { padding-top: 4.5rem; padding-bottom: 3.75rem; }
}
.bg-ink { background: var(--gradient-navy); color: #fff; }
.bg-ink .text-muted-fg { color: rgba(255,255,255,0.72) !important; }
/* Text links in a dark band are white — but NOT the store badges, which invert to
   a white pill with ink-coloured content. This selector (0,2,1) outranks
   .store-badge--invert (0,1,0), so without the exclusion the label went white on
   white and the Apple glyph, which is fill="currentColor", vanished with it. The
   Google glyph has hardcoded fills, which is why one badge still looked half
   alive and made this read as a missing-image problem. */
.bg-ink a:not(.btn):not(.store-badge) { color: #fff; }

/* ---- Brand text & gradients ---- */
.text-gradient {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.gradient-brand { background: var(--gradient-brand); }
.gradient-navy { background: var(--gradient-navy); }

/* ---- Shadows / radii ---- */
.shadow-elegant { box-shadow: var(--shadow-elegant); }
.shadow-card { box-shadow: var(--shadow-card); }
.shadow-phone { box-shadow: var(--shadow-phone); }
.rounded-2xl { border-radius: 1.25rem; }
.rounded-3xl { border-radius: 1.75rem; }

/* ---- Cards ---- */
.card-soft {
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 1.5rem;
  box-shadow: var(--shadow-card);
}
.card-flat {
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 1.25rem;
}
.card-link { color: inherit; display: block; transition: transform .15s ease, box-shadow .15s ease; }
.card-link:hover { transform: translateY(-2px); box-shadow: var(--shadow-elegant); text-decoration: none; }

/* ---- Eyebrow ---- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 999px;
  padding: .3rem .8rem;
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted-foreground);
}
.eyebrow::before {
  content: "";
  width: .375rem; height: .375rem;
  border-radius: 999px;
  background: var(--brand);
  flex: 0 0 auto;
}

/* ---- Buttons ---- */
.btn-brand {
  background: var(--gradient-brand);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: .8rem 1.75rem;
  font-weight: 600;
  min-height: 2.75rem;
  box-shadow: 0 14px 28px -16px rgba(20,140,132,.85);
  transition: transform .15s ease, box-shadow .15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
}
.btn-brand:hover { color: #fff; transform: translateY(-1px); }
.btn-ghost {
  background: #fff;
  color: var(--foreground);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: .8rem 1.75rem;
  font-weight: 600;
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  transition: background .15s ease;
}
.btn-ghost:hover { background: var(--surface); color: var(--foreground); }
.btn-ghost-dark {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.4);
}
.btn-ghost-dark:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn-sm-pill { padding: .55rem 1.2rem; font-size: .875rem; min-height: 2.5rem; }
.cta-note { font-size: .82rem; color: var(--muted-foreground); }

/* ---- Navbar ---- */
.site-header {
  position: sticky; top: 0; z-index: 1030;
  transition: background .3s ease, box-shadow .3s ease;
  background: rgba(255,255,255,.92);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  border-bottom-color: rgba(220,229,233,.9);
  box-shadow: 0 8px 24px -20px rgba(18,41,61,.5);
}
.nav-link-brand {
  color: var(--muted-foreground);
  font-weight: 500;
  font-size: .92rem;
  padding: .5rem .25rem;
  transition: color .15s ease;
}
.nav-link-brand:hover, .nav-link-brand.active { color: var(--foreground); }
.nav-link-brand.dropdown-toggle::after { vertical-align: middle; margin-left: .3rem; opacity: .6; }
.navbar .dropdown-menu {
  border: 1px solid rgba(220,229,233,.9);
  border-radius: 1rem;
  box-shadow: var(--shadow-card);
  padding: .4rem;
  margin-top: .5rem;
}
.navbar .dropdown-item {
  border-radius: .6rem;
  font-size: .9rem;
  font-weight: 500;
  color: var(--muted-foreground);
  padding: .55rem .75rem;
}
.navbar .dropdown-item:hover, .navbar .dropdown-item:focus {
  background: var(--surface);
  color: var(--foreground);
}
.navbar .dropdown-item.active { background: var(--brand-soft); color: var(--brand-deep); }
/* Cap and scroll the EXPANDED HAMBURGER PANEL only, never the desktop nav row.
 *
 * Unscoped, this rule broke the Resources dropdown and nothing else. Bootstrap
 * gives .dropdown position:relative, so a plain dropdown's absolutely-positioned
 * menu resolves against its own <li> — which lives inside .navbar-collapse, and
 * an overflow value other than visible makes that a clipping box in BOTH axes.
 * The menu opened and was immediately clipped away, reading as "hidden behind
 * the page".
 *
 * Product and Solutions escaped it by accident: their <li> carries
 * .position-static (added so the mega panel can span the container), which
 * cancels the position:relative and moves the containing block ABOVE
 * .navbar-collapse — an ancestor that is static and therefore does not clip it.
 * That is why two of the three menus looked fine.
 *
 * Below lg the collapse is a real stacked panel that can outgrow the viewport,
 * which is what the cap was for. At lg and up it is a single flex row and needs
 * neither. */
@media (max-width: 991.98px) {
  .navbar-collapse { max-height: 80vh; overflow-y: auto; }
}

/* ---- Mega menu ----
   A menu of 27 near-identical page titles is a menu nobody reads, so each link
   carries a one-line description. On desktop the panel spans the container (the
   <li> is position-static so the absolutely-positioned menu measures against it);
   below lg it degrades to the same stacked list the rest of the nav uses. */
.mega-menu { border: 1px solid rgba(220,229,233,.9); border-radius: 1.25rem; box-shadow: var(--shadow-card); padding: 0; }
.mega-menu__inner { display: grid; gap: .5rem 2rem; padding: 1.25rem; }
.mega-col__title {
  font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .09em;
  color: var(--muted-foreground); margin: 0 0 .5rem .6rem;
}
.mega-link { display: block; border-radius: .75rem; padding: .5rem .6rem; color: var(--foreground); }
.mega-link:hover, .mega-link:focus { background: var(--surface); text-decoration: none; }
.mega-link.active { background: var(--brand-soft); }
.mega-link.active .mega-link__label { color: var(--brand-deep); }
.mega-link__label { display: block; font-size: .92rem; font-weight: 600; line-height: 1.3; }
.mega-link__blurb { display: block; font-size: .78rem; color: var(--muted-foreground); line-height: 1.35; margin-top: .1rem; }

@media (min-width: 992px) {
  .mega-menu {
    left: 0; right: 0; width: auto;
    max-width: 1280px; margin-inline: auto;
    max-height: calc(100vh - 6rem); overflow-y: auto;
  }
  .mega-menu__inner { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 1.5rem 2rem; }
}
@media (max-width: 991.98px) {
  .mega-menu { border: none; box-shadow: none; padding: 0; }
  .mega-menu__inner { padding: .25rem 0 .75rem; }
  .mega-col + .mega-col { margin-top: .75rem; }
  .mega-link__blurb { display: none; }   /* titles alone on a phone; blurbs would double the menu's height */
}
/* Without JS the Bootstrap dropdown never opens, so show every panel inline. */
.no-js .mega-menu, .no-js .navbar .dropdown-menu {
  display: block; position: static; border: none; box-shadow: none;
}


/* No JavaScript? Bootstrap's collapse never opens, so show the whole nav as a
   plain stacked list and hide the button that would do nothing. The site has to
   stay navigable without JS, and the footer alone is not navigation. */
.no-js .navbar-toggler { display: none; }
.no-js .navbar-collapse { display: block !important; }
@media (max-width: 991.98px) {
  .no-js .navbar-nav { width: 100%; }
  .no-js .navbar .dropdown-menu { display: block; position: static; border: none; box-shadow: none; padding-left: .5rem; }
}

/* ---- Logo ----
   The supplied lockup is already trimmed to its ink, so the breathing room
   around it is Bootstrap's: .navbar and .navbar-brand each add vertical padding.
   Zeroing the brand's and trimming the navbar's lets the mark grow without the
   header getting taller. */
.site-header .navbar { padding-top: .4rem; padding-bottom: .4rem; }
.site-header .navbar-brand { padding-top: 0; padding-bottom: 0; margin-right: 1rem; }
.cp-logo { height: 2.6rem; width: auto; display: block; }
@media (min-width: 992px) { .cp-logo { height: 3rem; } }
footer .cp-logo { height: 3rem; }

/* ---- Section heading ---- */
.section-title { font-size: clamp(1.8rem, 4vw, 2.9rem); font-weight: 700; line-height: 1.12; }
.section-sub { font-size: 1.1rem; color: var(--muted-foreground); }

/* ---- Badges / tiles ---- */
.icon-badge {
  display: grid; place-items: center;
  height: 2.75rem; width: 2.75rem;
  border-radius: .9rem;
  background: var(--brand-soft);
  color: var(--brand-deep);
  font-size: 1.35rem;
  flex: 0 0 auto;
}
.icon-badge--navy { background: rgba(21,58,87,.08); color: var(--navy); }
.check-badge {
  display: grid; place-items: center;
  height: 1.25rem; width: 1.25rem;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--success);
  color: #fff;
}
.social-link {
  height: 2.25rem; width: 2.25rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--border);
  transition: color .15s ease, transform .15s ease;
}
.social-link:hover { color: var(--brand); transform: translateY(-1px); }

/* ---- Homepage section nav ----
   The fluid single-scroll feel, without giving up the separate landing pages:
   these are anchors into this page, the header menu still reaches the rest of
   the site. Sticks under the header, scrolls sideways on a phone. */
:root { --header-h: 3.6rem; }
@media (min-width: 992px) { :root { --header-h: 4rem; } }

.section-nav {
  position: sticky; top: var(--header-h); z-index: 1020;
  background: rgba(255,255,255,.94);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.section-nav__list {
  display: flex; gap: .25rem;
  overflow-x: auto; scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
}
.section-nav__list::-webkit-scrollbar { display: none; }
.section-nav__list a {
  display: block; white-space: nowrap; scroll-snap-align: start;
  padding: .75rem .8rem; font-size: .85rem; font-weight: 600;
  color: var(--muted-foreground); border-bottom: 2px solid transparent;
}
.section-nav__list a:hover { color: var(--foreground); text-decoration: none; }
.section-nav__list a.is-current { color: var(--brand-deep); border-bottom-color: var(--brand); }

/* Anchor targets must clear both sticky bars, or a jump lands under them. */
[id="workflow"], [id="today"], [id="walks"], [id="reports"], [id="scheduling"],
[id="clients"], [id="messaging"], [id="invoicing"], [id="teams"], [id="offline"],
[id="corepaw"], [id="pricing"], [id="compare"], [id="faq"], [id="problem"] {
  scroll-margin-top: calc(var(--header-h) + 3.2rem);
}

/* Credibility strip */
.cred-strip { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: #fff; }
.cred-item { display: flex; align-items: center; gap: .65rem; padding: 1.1rem .25rem; font-size: .92rem; font-weight: 600; }
.cred-item svg { color: var(--brand); flex: 0 0 auto; }

/* Numbered step */
.step-num {
  display: grid; place-items: center;
  height: 2.5rem; width: 2.5rem; flex: 0 0 auto;
  border-radius: 999px; color: #fff; font-weight: 700; font-size: .9rem;
  background: var(--gradient-brand);
}

/* ---- Forms ---- */
.input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: .875rem;
  background: #fff;
  padding: .8rem 1rem;
  font-size: .95rem;
  min-height: 2.9rem;
  outline: none;
  color: var(--foreground);
}
.input:focus {
  box-shadow: 0 0 0 3px rgba(27,176,166,.25);
  border-color: var(--brand);
}
.input[aria-invalid="true"] { border-color: var(--accent-coral-deep); }
.input-pill { border-radius: 999px; padding: .9rem 1.4rem; }
.field-label {
  display: block; margin-bottom: .35rem;
  font-size: .72rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--muted-foreground);
}
.field-error { color: var(--accent-coral-deep); font-size: .82rem; margin: .35rem 0 0; font-weight: 600; }
.form-note { font-size: .8rem; color: var(--muted-foreground); }
.radio-pill {
  display: inline-flex; align-items: center; gap: .5rem;
  border: 1px solid var(--border); border-radius: 999px;
  padding: .55rem 1rem; cursor: pointer; font-size: .9rem; font-weight: 600;
  background: #fff; min-height: 2.5rem;
}
.radio-pill input { accent-color: var(--brand); }
.radio-pill:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-deep); }

.alert-soft {
  border-radius: 1rem; padding: 1rem 1.25rem; font-size: .92rem;
  border: 1px solid var(--border); background: #fff;
}
.alert-soft--error { border-color: rgba(216,90,73,.4); background: rgba(240,112,95,.08); color: var(--accent-coral-deep); }
.alert-soft--ok { border-color: rgba(27,176,166,.4); background: var(--brand-soft); color: var(--brand-deep); }

/* ---- FAQ / accordion ---- */
details.faq { padding: 1.35rem 1.5rem; }
details.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  font-size: 1.05rem; font-weight: 600;
  min-height: 2.5rem;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary .toggle {
  display: grid; place-items: center;
  height: 2rem; width: 2rem; flex: 0 0 auto;
  border-radius: 999px;
  background: var(--surface);
  transition: transform .2s ease;
}
details.faq[open] summary .toggle { transform: rotate(45deg); }

/* ---- Pricing ---- */
.toggle-pill {
  display: inline-flex; align-items: center; gap: .25rem;
  border: 1px solid var(--border); background: #fff;
  border-radius: 999px; padding: .25rem; box-shadow: var(--shadow-card);
}
.toggle-pill button {
  border: none; background: transparent;
  border-radius: 999px; padding: .55rem 1.25rem;
  font-size: .875rem; font-weight: 600; color: var(--muted-foreground);
  min-height: 2.5rem;
}
.toggle-pill button.active { background: var(--gradient-brand); color: #fff; }
.plan-featured { border: 2px solid var(--brand) !important; box-shadow: var(--shadow-elegant); }
.price-figure { font-size: clamp(2.2rem, 5vw, 3rem); font-weight: 800; line-height: 1; letter-spacing: -.03em; }
.seat-range { width: 100%; accent-color: var(--brand); height: 2.5rem; }

/* ---- Comparison table ---- */
.compare-wrap { overflow-x: auto; border-radius: 1.25rem; border: 1px solid var(--border); background: #fff; }
.compare { width: 100%; border-collapse: collapse; min-width: 40rem; font-size: .95rem; }
.compare th, .compare td { padding: .9rem 1.1rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
.compare thead th { background: var(--surface); font-weight: 700; font-size: .85rem; }
.compare tbody th { font-weight: 600; width: 34%; }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: none; }
.compare .yes { color: var(--brand-deep); font-weight: 600; }
.compare .no { color: var(--muted-foreground); }

/* ---- Phone mockup ---- */
.phone { position: relative; width: 290px; margin-inline: auto; max-width: 100%; }
@media (min-width: 576px) { .phone { width: 330px; } }
.phone::before {
  content: ""; position: absolute; inset: -1.75rem; z-index: -1;
  border-radius: 60px; opacity: .5; filter: blur(46px);
  background: var(--gradient-brand);
}
.phone-frame {
  position: relative;
  border-radius: 2.75rem;
  border: 9px solid #12293D;
  background: #12293D;
  box-shadow: var(--shadow-phone);
}
.phone-notch {
  position: absolute; left: 50%; top: .5rem; z-index: 20;
  height: 1.4rem; width: 6.5rem; transform: translateX(-50%);
  border-radius: 999px; background: #000;
}
.phone-screen {
  position: relative; overflow: hidden;
  border-radius: 2.1rem; background: #fff;
  aspect-ratio: 9 / 19;
}
.phone-screen > .screen-inner { position: absolute; inset: 0; display: flex; flex-direction: column; }

/* Two phones side by side in one column (used on /beta). They share the column,
   so the fixed width has to give way and the glow has to shrink with them. */
.phone-pair .phone { width: 100%; }
.phone-pair .phone::before { inset: -1rem; filter: blur(28px); }

/* Real-screenshot variant: the device frame is baked into the transparent image. */
.phone-img .phone-shot {
  display: block; width: 100%; height: auto;
  filter: drop-shadow(0 26px 42px rgba(18, 41, 61, .30));
}

/* phone screen internals */
.ps-pad { padding: 1.1rem; }
.ps-up { text-transform: uppercase; letter-spacing: .08em; font-size: .6rem; color: var(--muted-foreground); font-weight: 700; }
.ps-card { background: #fff; border-radius: 1.05rem; padding: .8rem; box-shadow: var(--shadow-card); }
.ps-soft { background: var(--surface); border-radius: 1.05rem; padding: .8rem; }
.ps-tabbar {
  margin-top: auto;
  display: grid; grid-template-columns: repeat(5,1fr); gap: .15rem;
  background: #fff; border-radius: 999px; padding: .3rem; box-shadow: var(--shadow-card);
}
.ps-tab { border-radius: 999px; padding: .35rem 0; text-align: center; font-size: .55rem; font-weight: 600; color: var(--muted-foreground); }
.ps-tab.active { background: var(--gradient-brand); color: #fff; }
.ps-chip { display: inline-block; border-radius: 999px; padding: .15rem .55rem; font-size: .55rem; font-weight: 700; letter-spacing: .03em; }
.ps-chip--late { background: rgba(240,112,95,.16); color: var(--accent-coral-deep); }
.ps-chip--ok { background: var(--brand-soft); color: var(--brand-deep); }
.ps-chip--wait { background: rgba(217,131,36,.14); color: var(--warning); }
.ps-row { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.ps-divider { height: 1px; background: var(--border); margin: .55rem 0; }
.progress-thin { height: .35rem; border-radius: 999px; background: var(--surface); overflow: hidden; }
.progress-thin > span { display: block; height: 100%; border-radius: 999px; }
.mockup-note { font-size: .7rem; color: var(--muted-foreground); text-align: center; margin: .75rem 0 0; }

/* ---- Timeline (how it works) ---- */
.timeline { position: relative; max-width: 48rem; margin-inline: auto; }
.timeline::before {
  content: ""; position: absolute; left: 1.5rem; top: .5rem; bottom: .5rem; width: 2px;
  background: linear-gradient(to bottom, var(--brand), rgba(27,176,166,.25), var(--navy));
}
@media (min-width: 768px) { .timeline::before { left: 2rem; } }
.timeline-num {
  position: relative; z-index: 10;
  display: grid; place-items: center;
  height: 3rem; width: 3rem; flex: 0 0 auto;
  border-radius: 999px; color: #fff; font-weight: 700; font-size: .875rem;
  background: var(--gradient-brand); box-shadow: var(--shadow-elegant);
}
@media (min-width: 768px) { .timeline-num { height: 4rem; width: 4rem; font-size: 1rem; } }

/* ---- Sticky CTA ---- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1040;
  background: rgba(255,255,255,.95);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-top: 1px solid var(--border);
  padding: .6rem 0;
  transform: translateY(110%);
  transition: transform .25s ease;
}
.sticky-cta.is-visible { transform: translateY(0); }
.sticky-cta__note { font-size: .82rem; color: var(--muted-foreground); }
/* Both badges stay on one line in the bar at every width; on the narrowest
   phones they share the row evenly rather than one of them wrapping away. */
.sticky-cta__stores { flex-wrap: nowrap; }
@media (max-width: 359.98px) {
  .sticky-cta__stores .store-badge { padding: .35rem .5rem; }
  .sticky-cta__stores .store-badge-text small { display: none; }
}
/* No JavaScript? Show it always rather than never. */
.no-js .sticky-cta { transform: translateY(0); }
@media (min-width: 992px) {
  .sticky-cta { left: auto; right: 1.5rem; bottom: 1.5rem; border-radius: 999px; border: 1px solid var(--border);
                box-shadow: var(--shadow-elegant); padding: .5rem .5rem .5rem 1.5rem; }
  .sticky-cta .container-px { padding: 0; max-width: none; }
}
body { padding-bottom: 4.5rem; }
@media (min-width: 992px) { body { padding-bottom: 0; } }

/* ---- Locked / permission states (used on the security + clients pages) ---- */
.locked-card {
  border: 1px dashed rgba(21,58,87,.28);
  background: repeating-linear-gradient(135deg, rgba(21,58,87,.03) 0 8px, transparent 8px 16px);
  border-radius: 1.25rem; padding: 1.1rem 1.25rem;
}
.locked-card__label { font-weight: 700; font-size: .9rem; color: var(--navy); }

/* ---- Misc ---- */
.divider { border-top: 1px solid var(--border); }
.tag-pill { border: 1px solid var(--border); background: #fff; border-radius: 999px; padding: .35rem 1.1rem; font-size: .85rem; font-weight: 600; }
.cat-pill { display: inline-block; border: 1px solid var(--border); background: #fff; border-radius: 999px; padding: .35rem 1rem; font-size: .72rem; font-weight: 600; color: var(--muted-foreground); transition: border-color .15s ease, color .15s ease; }
a.cat-pill:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }
.cat-pill.active, a.cat-pill.active:hover { border-color: transparent; color: #fff; background: var(--gradient-brand); }
.blog-thumb { aspect-ratio: 16/9; border-radius: 1.25rem; background: var(--gradient-navy); }
.roadmap-item { border-left: 3px solid var(--border); padding-left: 1rem; }

/* ---- Animations ---- */
@keyframes float-y { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.animate-float { animation: float-y 6s ease-in-out infinite; }
@keyframes fade-up { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.animate-fade-up { animation: fade-up .5s ease-out both; }

/* ---- Blog ---- */
.blog-hero { padding-top: 1.75rem; padding-bottom: 1.75rem; }
@media (min-width: 768px) { .blog-hero { padding-top: 2.25rem; padding-bottom: 2.25rem; } }
.blog-hero-bg {
  background:
    radial-gradient(70% 140% at 82% 0%, rgba(27,176,166,0.22), transparent 62%),
    linear-gradient(180deg, rgba(21,58,87,0.08) 0%, rgba(21,58,87,0.03) 55%, var(--surface) 100%);
}
.blog-featured { color: var(--foreground); transition: transform .15s ease, box-shadow .15s ease; }
.blog-featured:hover { transform: translateY(-3px); box-shadow: var(--shadow-elegant); text-decoration: none; }
.blog-featured-thumb { position: relative; aspect-ratio: 21/9; background: var(--gradient-navy); background-size: cover; background-position: center; }
.blog-featured-badge { position: absolute; top: 1rem; left: 1rem; background: rgba(255,255,255,.94); color: var(--ink); font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding: .3rem .7rem; border-radius: 999px; }
.blog-featured-excerpt { font-size: .9rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.blog-pagination .page-pill { display: inline-flex; align-items: center; justify-content: center; min-width: 2.5rem; padding: .45rem .9rem; border: 1px solid var(--border); border-radius: 999px; background: #fff; color: var(--muted-foreground); font-weight: 600; font-size: .875rem; }
.blog-pagination a.page-pill:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }
.blog-pagination .page-pill.active { border-color: transparent; color: #fff; background: var(--gradient-brand); }
.blog-pagination .page-ellipsis { color: var(--muted-foreground); padding: 0 .25rem; }

/* ---- Rich-text article body ---- */
.blog-body > :first-child { margin-top: 0; }
.blog-body > :last-child { margin-bottom: 0; }
.blog-body p { margin: 0 0 1.25rem; }
.blog-body h2 { font-size: 1.6rem; font-weight: 800; margin: 2.25rem 0 .75rem; line-height: 1.25; }
.blog-body h3 { font-size: 1.3rem; font-weight: 700; margin: 2rem 0 .5rem; }
.blog-body h4 { font-size: 1.1rem; font-weight: 700; margin: 1.75rem 0 .5rem; }
.blog-body ul, .blog-body ol { margin: 0 0 1.25rem; padding-left: 1.5rem; }
.blog-body li { margin-bottom: .4rem; }
.blog-body a { color: var(--brand-deep); text-decoration: underline; }
.blog-body blockquote {
  margin: 1.5rem 0; padding: .25rem 0 .25rem 1.25rem;
  border-left: 4px solid var(--brand); color: var(--muted-foreground); font-style: italic;
}
.blog-body table { width: 100%; margin: 1.5rem 0; border-collapse: collapse; font-size: .95rem; display: block; overflow-x: auto; }
.blog-body caption { text-align: left; font-weight: 700; margin-bottom: .5rem; }
.blog-body th, .blog-body td { border: 1px solid var(--border); padding: .6rem .75rem; text-align: left; vertical-align: top; }
.blog-body thead th { background: var(--surface); font-weight: 700; }

/* ---- Store badges ---- */
.store-badge {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .55rem 1rem; border-radius: .875rem;
  background: var(--ink); color: #fff; line-height: 1.1;
  transition: transform .15s ease, opacity .15s ease;
}
.store-badge:hover { color: #fff; transform: translateY(-1px); opacity: .94; text-decoration: none; }
.store-badge--invert { background: #fff; color: var(--ink); }
.store-badge--invert:hover { color: var(--ink); }
.store-badge--sm { padding: .35rem .7rem; border-radius: .7rem; gap: .45rem; }
.store-badge--sm .store-badge-text small { font-size: .55rem; }
.store-badge--sm .store-badge-text strong { font-size: .85rem; }
.store-badge-icon { display: inline-flex; }
.store-badge-text { display: flex; flex-direction: column; }
.store-badge-text small { font-size: .62rem; opacity: .8; }
.store-badge-text strong { font-size: .98rem; font-weight: 600; }

/* Badges in the header replace what used to be a single trial button, so they
   must never wrap onto a second line and double the navbar's height. Between
   the lg breakpoint and 1200px the nav is tightest, so the "Download on the" /
   "Get it on" lead line is dropped and the store name carries it alone. */
.site-header .header-cta { flex-wrap: nowrap; }
@media (min-width: 992px) and (max-width: 1199.98px) {
  .site-header .header-cta .store-badge { padding: .35rem .55rem; }
  .site-header .header-cta .store-badge-text small { display: none; }
}

/* ---- Print (pricing + legal pages) ---- */
@media print {
  .site-header, .sticky-cta, footer, .btn, .skip-link { display: none !important; }
  body { padding: 0; background: #fff; color: #000; }
  .section { padding: 1rem 0; }
  .card-soft, .card-flat { box-shadow: none; border: 1px solid #ccc; break-inside: avoid; }
  .bg-ink, .bg-surface, .bg-hero { background: #fff !important; color: #000 !important; }
  a[href^="/"]::after { content: " (corepawpro.co.uk" attr(href) ")"; font-size: .8em; }
}

/* Header install badges on a phone.
 *
 * These sit outside .navbar-collapse so they survive the hamburger. The wordmark
 * is dropped and only the glyph kept — two full badges will not fit beside the
 * logo and the toggler on a 360px screen. Each link keeps its aria-label, so the
 * accessible name is unchanged. */
.header-cta-mobile .store-badge { padding: .4rem .55rem; border-radius: .65rem; }
.header-cta-mobile .store-badge-text { display: none; }
.header-cta-mobile .store-badge svg { width: 20px; height: 20px; }
