/* ============================================================
   AngelPaw × Digitail-style design system
   Font: DM Sans · Ink #053E4A · Lime CTA #F4FFA1 · Teal #00778F
   ============================================================ */

:root {
  /* AP blue theme — logo blue #009BDD */
  --ink: #007cb3;
  --ink-deep: #00517a;
  --body: #52677a;
  --teal: #009bdd;
  --lime: #c9eafc;      /* light blue (was lime) */
  --lime-deep: #afe0fa;
  --peri: #009bdd;
  --peri-deep: #007cb3;
  --peri-light: #b5e3fa;
  --cream: #f0f7fc;
  --paper: #f6f6f5;
  --mint: #edf8fa;
  --white: #ffffff;
  --radius-xl: 40px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --shadow-card: 0 20px 50px rgba(5, 62, 74, 0.10);
  --shadow-soft: 0 8px 30px rgba(5, 62, 74, 0.07);
  --max: 1240px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "DM Sans", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 32px; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.08; letter-spacing: -0.02em; }
.h-hero { font-size: clamp(40px, 5.5vw, 72px); }
.h-xl { font-size: clamp(34px, 4vw, 56px); }
.h-lg { font-size: clamp(28px, 3vw, 40px); line-height: 1.15; }
.h-md { font-size: 24px; line-height: 1.25; }
.lead { color: var(--body); font-size: 19px; line-height: 1.55; font-weight: 400; }
p { color: var(--body); }

.kicker {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 18px;
}

/* accent word inside a headline — solid logo blue, no gradient */
.grad { color: #009bdd; }
/* periwinkle underline accent (like "#1 rated") */
.uline {
  background-image: linear-gradient(90deg, var(--peri-light), var(--peri-light));
  background-repeat: no-repeat;
  background-size: 100% 10px;
  background-position: 0 92%;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 999px;
  padding: 14px 28px;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-lime { background: var(--lime); color: var(--ink-deep); box-shadow: 0 1px 0 rgba(5,62,74,.12), 0 6px 18px rgba(5,62,74,.08); }
.btn-lime:hover { background: var(--lime-deep); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: var(--ink-deep); }
.btn-ghost { background: #fff; color: var(--ink); box-shadow: var(--shadow-soft); }
.btn .arrow { font-size: 15px; transition: transform .18s ease; }
.btn:hover .arrow { transform: translate(2px, -2px); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--teal);
  font-size: 16px;
}
.link-arrow::after { content: "→"; transition: transform .18s ease; }
.link-arrow:hover::after { transform: translateX(4px); }

/* circular arrow chip on cards */
.circ {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: grid; place-items: center;
  border: 1.5px solid rgba(255,255,255,.7);
  color: #fff; font-size: 17px;
  backdrop-filter: blur(4px);
  transition: background .18s ease;
}
.circ.dark { border-color: rgba(5,62,74,.25); color: var(--ink); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(5,62,74,.06);
}
.nav-inner {
  max-width: 1360px; margin: 0 auto;
  display: flex; align-items: center; gap: 36px;
  padding: 14px 32px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; font-size: 24px; font-weight: 800; letter-spacing: -0.01em; color: var(--ink); }
.nav-logo { flex: none; }
.nav-logo img { height: 40px; width: auto; max-width: none; }
.nav-links { display: flex; gap: 28px; margin: 0 auto; align-items: center; }
.nav-mega { display: flex; align-items: center; }
.nav-links a { font-weight: 600; font-size: 15.5px; color: var(--ink); opacity: .9; padding: 10px 0; }
.nav-links a:hover, .nav-links a.active { color: var(--teal); opacity: 1; }
.nav-cta { display: flex; align-items: center; gap: 22px; }
.nav-cta .signin { font-weight: 600; font-size: 15.5px; }
.nav-burger { display: none; background: none; border: none; font-size: 26px; color: var(--ink); cursor: pointer; }

/* ---------- Sections ---------- */
section { padding: 96px 0; }
.sec-cream { background: var(--cream); }
.sec-paper { background: var(--paper); }
.sec-mint { background: linear-gradient(180deg, var(--mint) 0%, #fff 100%); }

/* big rounded sheet sections (digitail wraps sections in giant rounded cards) */
.sheet {
  background: var(--cream);
  border-radius: var(--radius-xl);
  margin: 24px;
  padding: 96px 0;
}
@media (min-width: 1400px) { .sheet { margin: 24px auto; max-width: 1392px; } }

.sec-head { text-align: center; max-width: 780px; margin: 0 auto 64px; }
.sec-head .lead { margin-top: 20px; }

/* ---------- Fetcher-skeleton hero (gradient + grid, 3D portal collage) ---------- */
.fhero {
  position: relative; overflow: hidden; text-align: center;
  background: linear-gradient(180deg, #ffffff 0%, #eaf6fd 34%, #c9eafc 100%);
  padding: 74px 0 90px;
}
.fhero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.55) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.55) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(180deg, transparent 8%, #000 60%);
}
.fhero .wrap { position: relative; }
.fhero .tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--lime); color: var(--ink-deep);
  font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: 7px 16px; border-radius: 999px;
}
.fhero h1 { font-size: clamp(40px, 5.6vw, 76px); max-width: 15ch; margin: 26px auto 20px; }
.fhero .lead { max-width: 620px; margin: 0 auto 34px; }
.fhero .hero-ctas { justify-content: center; }
.fhero .pawgrid { margin: 52px auto 0; }
.fhero .pawgrid li { text-shadow: none; }

/* 3D portal collage */
.collage {
  position: relative; margin: 76px auto 0; max-width: 1180px;
  display: flex; justify-content: center; align-items: center;
  perspective: 1600px; min-height: 400px;
}
.pcard { position: relative; transition: transform .5s cubic-bezier(.2,.9,.3,1); }
.pcard .browser {
  background: #fff; border-radius: 14px; overflow: hidden;
  box-shadow: 0 34px 80px rgba(0,60,90,.28);
  border: 1px solid rgba(0,124,179,.12);
}
.pcard .bbar { display: flex; align-items: center; gap: 6px; padding: 10px 13px; background: #f2f8fc; border-bottom: 1px solid rgba(0,124,179,.1); position: relative; }
.pcard .bbar i { width: 9px; height: 9px; border-radius: 50%; }
.pcard .bbar i:nth-child(1){background:#f87171}.pcard .bbar i:nth-child(2){background:#fbbf24}.pcard .bbar i:nth-child(3){background:#34d399}
.pcard .bbar b { position: absolute; left: 50%; transform: translateX(-50%); font-size: 11px; font-weight: 700; color: var(--body); white-space: nowrap; }
.pcard img { width: 100%; display: block; }
/* side cards share one image window regardless of source ratio */
.pc-l img, .pc-r img { aspect-ratio: 4 / 3; object-fit: cover; object-position: left top; }
.pc-l { width: 30%; z-index: 1; transform: rotateY(24deg) translateX(6%) scale(.96); }
.pc-c { width: 44%; z-index: 3; transform: translateY(-12px); }
.pc-r { width: 30%; z-index: 1; transform: rotateY(-24deg) translateX(-6%) scale(.96); }
.pc-l:hover { transform: rotateY(12deg) translateX(4%) scale(1); z-index: 4; }
.pc-c:hover { transform: translateY(-20px) scale(1.02); z-index: 5; }
.pc-r:hover { transform: rotateY(-12deg) translateX(-4%) scale(1); z-index: 4; }
.pb {
  position: absolute; left: var(--bx,auto); top: var(--by,auto); right: var(--br,auto); bottom: var(--bb,auto);
  opacity: 0; transform: scale(.6); z-index: 6;
  transition: transform .5s cubic-bezier(.3,1.6,.45,1) var(--d,0s), opacity .3s ease var(--d,0s);
  pointer-events: none;
}
.pcard:hover .pb { opacity: 1; transform: scale(1); }
.pb-in {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.94); backdrop-filter: blur(8px);
  border: 1px solid rgba(0,155,221,.25); border-radius: 100px;
  padding: 6px 14px 6px 7px;
  font-size: 13px; font-weight: 700; color: var(--ink-deep); white-space: nowrap;
  box-shadow: 0 14px 36px rgba(0,60,90,.22);
  animation: pbFloat var(--fd,5s) ease-in-out var(--fdel,0s) infinite alternate;
}
.pb-in i { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font-style: normal; font-size: 13px; background: var(--ic,#d9f1fc); }
@keyframes pbFloat { from { transform: translateY(-4px) rotate(-1.2deg); } to { transform: translateY(5px) rotate(1.2deg); } }
@media (max-width: 860px) {
  .collage { flex-direction: column; gap: 26px; perspective: none; min-height: 0; }
  .pc-l, .pc-c, .pc-r { width: min(88%, 460px); transform: none; }
  .pb { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .pb-in { animation: none; }
  .pcard, .pb { transition-duration: .01s; }
}

/* ---------- Trust band (serif line on AP blue) ---------- */
.trustband { background: #009bdd; padding: 64px 0; text-align: center; }
.trust-line {
  max-width: 820px; margin: 0 auto;
  font-family: 'Fraunces', serif; font-weight: 500;
  font-size: clamp(24px, 3.2vw, 40px); line-height: 1.3; letter-spacing: -0.01em;
  color: #fff;
}
.trust-line em { font-style: italic; color: var(--ink-deep); }

/* ---------- Journey tracker ---------- */
.journeysec { padding: 96px 0 110px; text-align: center; background: #fff; }
.journey { position: relative; max-width: 1000px; margin: 96px auto 10px; padding: 74px 8px 12px; }
.jtrack { position: relative; height: 4px; background: rgba(0,155,221,.22); border-radius: 4px; margin: 0 40px; z-index: 1; }
.jfill { position: absolute; left: 0; top: 0; bottom: 0; width: 0%; background: #009bdd; border-radius: 4px; }
.jdot {
  position: absolute; top: 50%; left: 0%;
  width: 22px; height: 22px; margin: -11px 0 0 -11px;
  background: #fff; border: 3.5px solid #009bdd; border-radius: 50%;
  box-shadow: 0 6px 16px rgba(0,124,179,.35);
  z-index: 1;
}
.jstops { position: absolute; left: 40px; right: 40px; top: 74px; height: 0; z-index: 2; }
.jstop { position: absolute; top: 0; transform: translateX(-50%); width: 130px; }
.jstop .node {
  width: 68px; height: 68px; margin: -34px auto 12px;
  background: #fff; border: 2.5px solid rgba(0,124,179,.28); border-radius: 50%;
  display: grid; place-items: center;
  transition: border-color .3s, box-shadow .3s, transform .3s;
  position: relative; z-index: 2;
  overflow: hidden;
}
.jstop .node img { width: 80%; height: 80%; object-fit: contain; }
.jstop.lit .node { border-color: #009bdd; box-shadow: 0 6px 20px rgba(0,155,221,.35); transform: scale(1.08); }
.jstop .lbl { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); line-height: 1.35; }
.jstop.lit .lbl { color: var(--ink-deep); }
.jnote {
  position: absolute; bottom: 46px; transform: translateX(-50%) translateY(10px) scale(.92);
  background: #fff; border-radius: 16px 16px 16px 4px;
  box-shadow: 0 16px 40px rgba(0,81,122,.18);
  padding: 11px 16px 11px 12px;
  display: flex; align-items: center; gap: 10px;
  font-size: 13.5px; font-weight: 600; color: var(--ink-deep); white-space: nowrap;
  opacity: 0; transition: opacity .35s ease, transform .35s ease;
  z-index: 4;
}
.jnote .av { flex: none; width: 26px; height: 26px; border-radius: 50%; background: #009bdd; color: #fff; display: grid; place-items: center; font-size: 11px; font-weight: 800; }
.jnote.show { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
@media (max-width: 760px) {
  .jstop { width: 84px; } .jstop .lbl { font-size: 10px; }
  .jnote { display: none; }
}

/* ---------- Pillars (alternating rows with check lists) ---------- */
.pillars { padding: 40px 0 30px; }
.pillar { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; padding: 58px 0; }
.pillar:nth-child(even) .txt { order: 2; }
.pillar h2 { font-size: clamp(28px, 3.4vw, 42px); margin-bottom: 18px; }
.pillar .txt p { margin-bottom: 20px; font-size: 17px; }
.pillar ul { display: grid; gap: 12px; margin: 8px 0 26px; }
.pillar li { padding-left: 32px; position: relative; color: var(--ink); font-weight: 500; text-align: left; font-size: 16px; }
.pillar li::before {
  content: '✓'; position: absolute; left: 0; top: 1px;
  width: 22px; height: 22px; border-radius: 50%;
  background: #d9f1fc; color: var(--ink);
  font-weight: 800; font-size: 12px;
  display: flex; align-items: center; justify-content: center;
}
.pillar .shot { border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-card); border: 1px solid rgba(0,124,179,.12); background: #fff; }
.pillar .shot img { width: 100%; display: block; }
@media (max-width: 1020px) {
  .pillar { grid-template-columns: 1fr; gap: 36px; }
  .pillar:nth-child(even) .txt { order: 0; }
}

/* ---------- Day tabs (fetcher tabbar + white panel) ---------- */
.daysec { background: linear-gradient(180deg, var(--mist), #d9f1fc); padding: 96px 0; text-align: center; }
.tabbar { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-bottom: 42px; }
.tabbar button {
  font-family: inherit; font-weight: 700; font-size: 14px; letter-spacing: .06em; text-transform: uppercase;
  padding: 12px 24px; border-radius: 100px;
  border: 1.5px solid rgba(0,124,179,.2); background: #fff; color: var(--body);
  cursor: pointer; transition: all .18s;
}
.tabbar button.on { background: #009bdd; color: #fff; border-color: #009bdd; }
.day-panel {
  display: none; grid-template-columns: 400px 1fr; gap: 44px; align-items: center; text-align: left;
  padding: 24px 0;
}
.day-panel.on { display: grid; }
.day-panel h3 { font-size: 26px; margin-bottom: 12px; }
.day-panel .shot { border-radius: 14px; overflow: hidden; border: 1px solid rgba(0,124,179,.12); }
.day-panel .shot img { width: 100%; display: block; }
@media (max-width: 860px) { .day-panel { grid-template-columns: 1fr; } }

/* ---------- Lifecycle band (blue, translucent cards) ---------- */
.lifeband { background: #009bdd; padding: 96px 0; }
.lifeband h2 { color: #fff; text-align: center; margin-bottom: 52px; font-size: clamp(28px, 3.6vw, 44px); }
.lgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.lcard { background: rgba(255,255,255,.42); border: 1px solid rgba(255,255,255,.6); border-radius: 20px; padding: 28px; }
.lcard .ico { width: 46px; height: 46px; border-radius: 12px; background: #fff; display: grid; place-items: center; margin-bottom: 16px; overflow: hidden; }
.lcard .ico img { width: 30px; height: 30px; object-fit: contain; }
.lcard h3 { color: var(--ink-deep); font-size: 18px; margin-bottom: 8px; }
.lcard p { font-size: 14.5px; color: #063a52; }
@media (max-width: 1020px) { .lgrid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .lgrid { grid-template-columns: 1fr; } }

/* ---------- Network hero: giant ghost map with depth & drift ---------- */
.nethero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #f2f9fe 55%, #e3f2fc 100%) !important;
  padding-bottom: 40px;
  min-height: min(calc(52vw + 240px), 900px);
}
.nethero .wrap { position: relative; z-index: 5; }
.nmap {
  position: absolute;
  left: 50%; top: 150px;
  width: min(1240px, 94vw);   /* fully contained — every state stays visible */
  transform: translateX(-50%);
  pointer-events: none;
  will-change: transform;
}
.nmap img {
  width: 100%;
  display: block;
  mix-blend-mode: multiply;   /* melts the map's white background into the gradient */
  user-select: none;
  -webkit-user-drag: none;
}
.nmap.nbase img { opacity: .10; }
.nmap.nsoft { opacity: 0; transition: opacity .35s ease; }
.nethero:hover .nmap.nsoft { opacity: .30; }
.nmap.nsoft img {
  -webkit-mask-image: radial-gradient(circle 300px at var(--mx, 50%) var(--my, 40%), #000 0 40%, transparent 100%);
  mask-image: radial-gradient(circle 300px at var(--mx, 50%) var(--my, 40%), #000 0 40%, transparent 100%);
}
@media (prefers-reduced-motion: reduce) {
  .nmap { transform: translateX(-50%) !important; }
  .nmap.nsoft { display: none; }
  .nmap.nbase img { opacity: .14; }
}

/* ---------- Magazine benefit cards (network page) ---------- */
.mag { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.m-card {
  background: #fff; border: 1.5px solid rgba(0,124,179,.12); border-radius: 20px;
  overflow: hidden; text-align: left;
  transition: transform .2s, box-shadow .2s;
  display: flex; flex-direction: column;
}
.m-card:hover { transform: translateY(-5px); box-shadow: 0 22px 50px rgba(0,81,122,.13); }
.m-card .cover {
  background: linear-gradient(135deg, #e8f6fd, #d3edfb);
  height: 190px; overflow: hidden; flex: none;
}
.m-card .cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.m-card .body { padding: 22px 24px 26px; }
.m-card h3 { font-size: 17.5px; margin-bottom: 8px; }
.m-card p { font-size: 14px; }
.m-card.lead-card { background: #009bdd; border-color: #009bdd; }
.m-card.lead-card .cover { background: rgba(255,255,255,.14); }
.m-card.lead-card h3 { color: #fff; }
.m-card.lead-card p { color: rgba(255,255,255,.92); }
@media (max-width: 1020px) { .mag { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .mag { grid-template-columns: 1fr; } }

/* ---------- Light gradient CTA ---------- */
.fcta { background: linear-gradient(135deg, #c9eafc, #9bd9f6); padding: 110px 0; text-align: center; }
.fcta h2 { font-size: clamp(32px, 4.6vw, 56px); max-width: 20ch; margin: 0 auto 18px; }
.fcta p { max-width: 520px; margin: 0 auto 34px; color: var(--ink); font-weight: 500; }

/* capability checklist — checked grid, deliberately not buttons */
.pawgrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 200px));
  gap: 14px 40px;
  max-width: 660px;
}
.pawgrid li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--ink);
  text-shadow: 0 1px 2px rgba(255,255,255,.55), 0 0 14px rgba(255,255,255,.5);
  white-space: nowrap;
}
.pawgrid .mark {
  flex: none;
  width: 26px; height: 26px;
  border-radius: 9px;
  background: #009bdd;
  color: #fff;
  display: grid; place-items: center;
  font-size: 13px;
  box-shadow: 0 4px 12px rgba(0, 124, 179, .35);
  text-shadow: none;
}
@media (max-width: 900px) {
  .pawgrid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .pawgrid { grid-template-columns: 1fr; }
  .pawgrid li { white-space: normal; }
}
.grad-light { color: #009bdd; }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 0; text-align: center; background: linear-gradient(180deg, #fff 0%, var(--cream) 100%); }
.hero .tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--lime); color: var(--ink-deep);
  font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: 7px 16px; border-radius: 999px; margin-bottom: 28px;
}
.hero h1 { max-width: 900px; margin: 0 auto 24px; }
.hero .lead { max-width: 620px; margin: 0 auto 36px; }
.hero-ctas { display: flex; gap: 16px; justify-content: center; margin-bottom: 56px; flex-wrap: wrap; }

/* pill chips row (hero feature tabs) */
.chips { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 0; }
.chip {
  font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink); background: #fff;
  border: 1px solid rgba(5,62,74,.12);
  padding: 10px 18px; border-radius: 999px;
}
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }

/* hero visual band: soft teal gradient with floating UI cards */
.hero-band {
  margin-top: -10px;
  background: linear-gradient(180deg, rgba(163,244,255,0) 0%, rgba(163,244,255,.55) 30%, rgba(198,206,255,.35) 100%);
  padding: 70px 0 90px;
}
.hero-cards { display: flex; gap: 24px; justify-content: center; align-items: flex-start; }
.ui-card {
  background: #fff; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.ui-card img { width: 100%; }

/* ---------- Logo strip ---------- */
.logos { display: grid; grid-template-columns: 1.2fr 2fr; gap: 60px; align-items: center; }
.logos-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px 48px; align-items: center; }
.logos-grid .logo-item { text-align: center; font-weight: 700; color: var(--body); font-size: 15px; }
.logos-grid .logo-item img { height: 84px; width: auto; max-width: 100%; margin: 0 auto; object-fit: contain; mix-blend-mode: multiply; }

/* ---------- Bare stats row (numbers with hairline dividers) ---------- */
.stats-row { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; }
.stats-row .s { padding: 8px 32px; border-left: 1.5px solid rgba(5, 62, 74, .12); }
.stats-row .s:first-child { border-left: none; }
.stats-row .num { font-size: clamp(40px, 4vw, 60px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; color: var(--ink); }
.stats-row .lbl { color: var(--body); font-size: 15.5px; margin-top: 8px; max-width: 300px; margin-inline: auto; }

/* ---------- Feature rows (alternating) ---------- */
.frow {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: center;
  padding: 72px 0;
}
.frow.flip .fmedia { order: 2; }
.fmedia { position: relative; }
.fmedia .photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  aspect-ratio: 5/4;
}
.fmedia .photo img { width: 100%; height: 100%; object-fit: cover; }
/* free-floating transparent screen collage — no card frame, screens breathe */
.fmedia .photo.free {
  border-radius: 0;
  overflow: visible;
  box-shadow: none;
  aspect-ratio: auto;
  background: transparent;
}
.fmedia .photo.free img {
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 20px 34px rgba(0, 81, 122, .14));
}
.fbody h2 { margin-bottom: 20px; }
.fbody p { font-size: 17.5px; margin-bottom: 26px; }

/* stat card (logo | stat | label | arrow) */
.stat-card {
  margin-top: 44px;
  display: flex; align-items: center; gap: 24px;
  background: #fff; border-radius: 20px;
  padding: 26px 30px;
  box-shadow: var(--shadow-soft);
}
.stat-card .brand { font-weight: 800; font-size: 18px; padding-right: 24px; border-right: 1.5px solid rgba(5,62,74,.12); }
.stat-card .num { font-size: 40px; font-weight: 700; letter-spacing: -0.02em; }
.stat-card .lbl { color: var(--body); font-size: 14.5px; line-height: 1.35; max-width: 180px; }
.stat-card .circ { margin-left: auto; flex: none; }

/* ---------- Card grid (3-up) ---------- */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.card {
  background: #fff; border-radius: var(--radius-lg);
  padding: 38px 34px;
  box-shadow: var(--shadow-soft);
}
.card .ico {
  width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center; font-size: 24px;
  background: var(--mint); margin-bottom: 22px;
}
.card h3 { font-size: 21px; margin-bottom: 12px; font-weight: 700; }
.card p { font-size: 15.5px; }
.card ul { margin-top: 14px; }
.card ul li { color: var(--body); font-size: 15px; padding: 5px 0 5px 26px; position: relative; }
.card ul li::before { content: "✓"; position: absolute; left: 0; color: var(--teal); font-weight: 700; }

/* ---------- Photo case-study cards ---------- */
.case-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.case-card {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  aspect-ratio: 3/4.1; color: #fff;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 22px;
  background: var(--ink);
}
.case-card > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.case-card::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(0,20,25,.55) 0%, rgba(0,20,25,0) 32%, rgba(0,20,25,0) 55%, rgba(0,20,25,.72) 100%);
}
.case-card .top, .case-card .bot { position: relative; z-index: 2; }
.case-card .top { display: flex; justify-content: space-between; align-items: flex-start; }
.case-card .who { font-weight: 700; font-size: 15.5px; line-height: 1.3; }
.case-card .who small { display: block; font-weight: 500; opacity: .85; font-size: 13px; }
.case-card .bot { font-size: 19px; font-weight: 700; line-height: 1.3; }

/* ---------- Spotlight (photo + quote + stats on gradient card) ---------- */
.spot {
  display: grid; grid-template-columns: 380px 1fr; gap: 56px;
  background: linear-gradient(115deg, #d9f1fc 0%, #e3f4ff 45%, #e5ecff 100%);
  border-radius: var(--radius-xl);
  padding: 22px;
  align-items: center;
}
.spot .photo { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 3/4; position: relative; }
.spot .photo img { width: 100%; height: 100%; object-fit: cover; }
/* transparent cutout portrait: fills the frame, standing on the card's bottom edge */
.spot .photo.cut img { object-fit: contain; object-position: bottom center; }
.spot-body { padding: 26px 40px 26px 0; }
.spot-body h2 { margin-bottom: 18px; }
.spot-body blockquote { font-size: 20px; font-weight: 600; color: var(--ink); line-height: 1.45; margin-bottom: 36px; }
.spot-stats { display: flex; gap: 56px; align-items: center; flex-wrap: wrap; }
.spot-stats .s .num { font-size: 46px; font-weight: 700; letter-spacing: -0.02em; }
.spot-stats .s .lbl { color: var(--body); font-size: 14.5px; }

/* ---------- Quote / testimonial cards ---------- */
.quote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.qcard { background: #fff; border-radius: var(--radius-lg); padding: 34px 30px; box-shadow: var(--shadow-soft); display: flex; flex-direction: column; }
.qcard p { font-size: 16px; color: var(--ink); font-weight: 500; line-height: 1.55; flex: 1; }
.qcard p::before { content: "“"; } .qcard p::after { content: "”"; }
.qcard .who { margin-top: 24px; font-weight: 700; font-size: 15px; }
.qcard .who small { display: block; font-weight: 500; color: var(--body); font-size: 13.5px; margin-top: 2px; }

/* ---------- Pill tabs ---------- */
.ptabs { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 52px; }
.ptab {
  font-family: inherit; font-size: 16.5px; font-weight: 600; color: var(--ink);
  background: #fff; border: none; cursor: pointer;
  padding: 15px 30px; border-radius: 999px;
  box-shadow: var(--shadow-soft);
  transition: background .18s ease, color .18s ease;
}
.ptab.on { background: var(--ink); color: #fff; }

/* tab panel: gradient grid card */
.tab-panel {
  display: none;
  background:
    linear-gradient(115deg, rgba(217,241,252,.8) 0%, rgba(227,244,255,.85) 50%, rgba(229,236,255,.8) 100%);
  border-radius: var(--radius-xl);
  padding: 64px;
}
.tab-panel.on { display: block; }
.tp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.tp-grid h3 { font-size: clamp(26px, 2.6vw, 38px); margin-bottom: 16px; }
.tp-grid .photo { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-card); aspect-ratio: 4/3; }
.tp-grid .photo img { width: 100%; height: 100%; object-fit: cover; }
.tp-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 48px; }
.tp-cols h4 { font-size: 17px; margin-bottom: 12px; }
.tp-cols li { color: var(--ink); font-size: 14.5px; padding: 4px 0 4px 24px; position: relative; opacity: .85; }
.tp-cols li::before { content: "✓"; position: absolute; left: 0; color: var(--teal); font-weight: 700; }

/* ---------- Feature link columns ---------- */
.flinks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.flinks h4 { font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); margin-bottom: 18px; }
.flinks li a { display: block; padding: 6px 0; color: var(--ink); font-weight: 500; font-size: 15.5px; opacity: .85; }
.flinks li a:hover { color: var(--teal); opacity: 1; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { background: #fff; border-radius: var(--radius-md); box-shadow: var(--shadow-soft); margin-bottom: 14px; overflow: hidden; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 17px; padding: 22px 28px; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 24px; font-weight: 400; color: var(--teal); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 28px 24px; font-size: 15.5px; }

/* ---------- Pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.plan { background: #fff; border-radius: var(--radius-lg); padding: 40px 34px; box-shadow: var(--shadow-soft); display: flex; flex-direction: column; position: relative; }
.plan.hot { outline: 2.5px solid var(--ink); }
.plan .flag { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--lime); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 6px 16px; border-radius: 999px; }
.plan h3 { font-size: 22px; }
.plan .price { font-size: 44px; font-weight: 700; margin: 16px 0 4px; letter-spacing: -0.02em; }
.plan .per { color: var(--body); font-size: 14px; margin-bottom: 24px; }
.plan ul { flex: 1; margin-bottom: 28px; }
.plan ul li { color: var(--body); font-size: 15px; padding: 6px 0 6px 26px; position: relative; }
.plan ul li::before { content: "✓"; position: absolute; left: 0; color: var(--teal); font-weight: 700; }

/* ---------- Pre-footer CTA (photo band) ---------- */
.cta-band {
  position: relative;
  min-height: 420px;
  display: flex; align-items: center;
  overflow: hidden;
  background: var(--ink-deep);
}
.cta-band > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.cta-band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,26,32,.82) 0%, rgba(0,26,32,.25) 65%); }
.cta-band .wrap { position: relative; z-index: 2; }
.cta-band h2 { color: #fff; max-width: 560px; margin-bottom: 30px; }

/* ---------- Footer (solid AP blue, fetcher-style) ---------- */
footer {
  background: #009bdd;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  margin-top: -40px;
  position: relative; z-index: 3;
  padding: 80px 0 36px;
  color: #eaf7ff;
}
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 44px; margin-bottom: 64px; }
.foot-brand .nav-logo { margin-bottom: 16px; }
.foot-brand .nav-logo img { filter: brightness(0) invert(1); }
.foot-brand p { font-weight: 600; color: #fff; font-size: 16px; margin-bottom: 22px; max-width: 240px; }
.foot-brand .note { font-weight: 400; color: rgba(255,255,255,.8); font-size: 13.5px; margin: 28px 0 10px; }
.news { display: flex; border-bottom: 1.5px solid rgba(255,255,255,.55); max-width: 280px; }
.news input { border: none; outline: none; font-family: inherit; font-size: 14.5px; padding: 10px 0; flex: 1; background: transparent; color: #fff; }
.news input::placeholder { color: rgba(255,255,255,.7); }
.news button { border: none; background: none; font-family: inherit; font-weight: 700; font-size: 14.5px; color: #fff; cursor: pointer; }
.foot-grid h4 { font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: #fff; margin-bottom: 18px; font-weight: 700; }
.foot-grid li a { display: block; padding: 5px 0; font-size: 15px; color: #eaf7ff; opacity: .92; }
.foot-grid li a:hover { color: #fff; opacity: 1; text-decoration: underline; }
.foot-grid ul li img { background: #fff; border-radius: 10px; padding: 6px; }
.foot-base { display: flex; align-items: center; gap: 28px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.35); color: rgba(255,255,255,.9); font-size: 14px; flex-wrap: wrap; }
.foot-base .soc { display: flex; align-items: center; gap: 10px; }
.foot-base .soc a { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(7,40,70,.18), 0 0 0 1px rgba(255,255,255,.6); transition: transform .18s ease, box-shadow .18s ease; line-height: 0; }
.foot-base .soc a svg { width: 17px; height: 17px; display: block; }
.foot-base .soc a.soc-x svg { width: 15px; height: 15px; }
.foot-base .soc a.soc-yt svg { width: 19px; height: 19px; }
.foot-base .soc a:hover, .foot-base .soc a:focus-visible { transform: translateY(-2px); box-shadow: 0 8px 16px rgba(7,40,70,.25), 0 0 0 1px rgba(255,255,255,.8); }
.foot-base .soc a:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (max-width: 600px) { .foot-base .soc { gap: 12px; } .foot-base .soc a { width: 36px; height: 36px; } .foot-base .soc a svg { width: 19px; height: 19px; } .foot-base .soc a.soc-x svg { width: 16px; height: 16px; } .foot-base .soc a.soc-yt svg { width: 21px; height: 21px; } }
@media (prefers-reduced-motion: reduce) { .foot-base .soc a { transition: none; } .foot-base .soc a:hover { transform: none; } }
.foot-base .legal { margin-left: auto; display: flex; gap: 22px; }
.foot-base .legal a:hover { color: #fff; text-decoration: underline; }

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

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  section { padding: 68px 0; }
  .nav-links, .nav-cta .signin { display: none; }
  .nav-burger { display: block; margin-left: auto; }
  .nav-cta { margin-left: auto; }
  .nav.open .nav-links {
    display: flex; flex-direction: column; gap: 4px;
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; padding: 18px 32px 26px;
    /* Keep every expanded platform link reachable below the sticky header. */
    max-height: calc(100vh - var(--mobile-nav-height, 64px));
    max-height: calc(100dvh - var(--mobile-nav-height, 64px));
    overflow-y: auto;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
    align-items: stretch;
    border-bottom: 1px solid rgba(5,62,74,.08);
  }
  .nav.open .nav-links > * { flex-shrink: 0; }
  .nav-mega { flex-direction: column; align-items: stretch; }
  .logos, .frow, .tp-grid, .spot { grid-template-columns: 1fr; gap: 40px; }
  .frow.flip .fmedia { order: 0; }
  .grid3, .quote-grid, .plans { grid-template-columns: 1fr 1fr; }
  .case-grid { grid-template-columns: 1fr 1fr; }
  .flinks { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .tab-panel { padding: 36px; }
  .spot .photo { max-width: 420px; }
  .spot-body { padding: 10px 16px 20px; }
}
@media (max-width: 640px) {
  .nav-inner { gap: 12px; padding: 12px 16px; }
  .nav-logo img { height: 30px; }
  .nav-cta { gap: 10px; }
  .nav-cta .btn { padding: 10px 16px; font-size: 14px; }
  .grid3, .quote-grid, .plans, .case-grid, .tp-cols { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr; gap: 28px; }
  .stats-row .s { border-left: none; border-top: 1.5px solid rgba(5, 62, 74, .12); padding-top: 28px; }
  .stats-row .s:first-child { border-top: none; padding-top: 0; }
  .stat-card { flex-wrap: wrap; }
  .hero-cards { flex-direction: column; align-items: center; }
  .foot-grid { grid-template-columns: 1fr; }
  .sheet { margin: 12px; border-radius: var(--radius-lg); }
}


/* ---------- Mega menu (All-in-One Platform dropdown) ---------- */
.nav-mega .nav-mega-trigger .caret { font-size: 10px; margin-left: 4px; opacity: .7; }
.mega {
  position: fixed;
  top: 69px;
  left: 50%;
  width: min(1160px, calc(100vw - 32px));
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 30px 70px rgba(0, 81, 122, .18), 0 2px 10px rgba(0, 81, 122, .08);
  padding: 26px 36px 34px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(8px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
  z-index: 200;
}
.mega::before { content: ""; position: absolute; top: -24px; left: 0; right: 0; height: 24px; }
.nav-mega:hover .mega,
.nav-mega:focus-within .mega,
.nav-mega.open .mega { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.mega-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.mega-head .eyebrow { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--body); font-weight: 700; }
.mega-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 34px; }
.mcol-head { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16px; color: var(--ink); margin-bottom: 13px; }
.mcol-head .mico {
  flex: none;
  width: 34px; height: 34px;
  border-radius: 10px;
  background: var(--mint);
  color: var(--teal);
  display: grid; place-items: center;
  font-size: 15px;
}
.mcol ul li a {
  display: block;
  padding: 6px 0 6px 14px;
  border-left: 1.5px solid rgba(0, 124, 179, .15);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  opacity: .85;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mcol ul li a:hover { color: var(--teal); opacity: 1; border-left-color: var(--teal); }
@media (max-width: 1020px) {
  .mega {
    position: static;
    width: auto;
    box-shadow: none;
    border-radius: 0;
    padding: 6px 0 14px;
    display: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none;
  }
  .nav-mega:hover .mega, .nav-mega:focus-within .mega { display: none; }
  .nav-mega.open .mega { display: block; transform: none; }
  .mega-cols { grid-template-columns: 1fr; gap: 18px; }
  .mcol ul li a { white-space: normal; }
}

/* ---------- Language switcher (flag dropdown) ---------- */
html.i18n-loading body { visibility: hidden; }
.lang-switch { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px 0 10px;
  border: 1px solid rgba(0, 124, 179, .18); border-radius: 999px; background: rgba(255,255,255,.72);
  color: var(--ink); font: 600 12.5px/1 "DM Sans", sans-serif; letter-spacing: .06em; cursor: pointer;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.lang-btn:hover, .lang-switch.open .lang-btn { border-color: rgba(0, 124, 179, .45); background: #fff; box-shadow: var(--shadow-soft); }
.lang-btn:focus-visible { outline: 2px solid rgba(0,124,179,.45); outline-offset: 2px; }
.lang-flag-wrap {
  display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 16px;
  border-radius: 3px; overflow: hidden; box-shadow: 0 0 0 1px rgba(15, 40, 70, .12);
  flex: 0 0 auto;
}
.lang-flag { display: block; width: 22px; height: 16px; }
.lang-chev { opacity: .7; transition: transform .2s; flex: 0 0 auto; }
.lang-switch.open .lang-chev { transform: rotate(180deg); }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 10px); min-width: 210px; margin: 0; padding: 6px; list-style: none;
  background: #fff; border: 1px solid rgba(0, 124, 179, .12); border-radius: 16px; box-shadow: var(--shadow-card);
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .18s, transform .18s, visibility .18s; z-index: 200;
}
.lang-switch.open .lang-menu { opacity: 1; visibility: visible; transform: none; }
.lang-menu li {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; cursor: pointer;
  color: var(--ink-deep); font-size: 14.5px; font-weight: 500; outline: none;
}
.lang-menu li:hover, .lang-menu li:focus-visible { background: var(--cream); }
.lang-menu .ln { flex: 1 1 auto; }
.lang-menu .lc { font-size: 11px; font-weight: 700; letter-spacing: .08em; color: var(--body); opacity: .75; }
.lang-menu li[aria-selected="true"] { color: var(--ink); font-weight: 700; background: rgba(0,124,179,.06); }
.lang-menu li[aria-selected="true"]::after { content: "✓"; margin-left: 4px; color: var(--teal); font-size: 13px; }
@media (max-width: 760px) {
  .lang-btn { height: 34px; padding: 0 10px 0 8px; gap: 6px; }
  .lang-btn .lang-code { font-size: 11.5px; }
  .lang-menu { right: -4px; min-width: 196px; }
}
/* footer: Empower family logo */
.foot-family{display:flex;flex-direction:column;align-items:center;gap:10px;margin:36px 0 8px}
.foot-family .ff-lbl{font-size:12px;font-weight:700;letter-spacing:.16em;text-transform:uppercase;color:rgba(255,255,255,.85)}
.foot-family .ff-panel{display:block;width:min(440px,100%);background:#fff;border-radius:18px;padding:16px 22px;box-shadow:0 8px 24px rgba(0,40,80,.15)}
.foot-family img{display:block;width:100%;height:auto}
@media(max-width:600px){.foot-family .ff-panel{padding:12px 14px;border-radius:14px}}

/* ---------- Nav fixes: centered mega trigger, no mobile overflow ---------- */
@media (min-width: 1021px) {
  .nav-inner { position: relative; }
  .nav-links { position: absolute; top: 0; bottom: 0; left: 0; right: 0; margin: 0; justify-content: center; pointer-events: none; }
  .nav-links > * { pointer-events: auto; }
  .nav-cta { margin-left: auto; }
}
@media (max-width: 640px) {
  .nav-cta { gap: 8px; min-width: 0; }
  .lang-btn { padding: 0 8px; gap: 4px; }
  .lang-btn .lang-code { display: none; }
  .nav-cta .btn { padding: 9px 12px; font-size: 13px; white-space: nowrap; }
  .nav-burger { flex: none; padding: 0 0 0 2px; font-size: 24px; }
}
@media (max-width: 400px) {
  .nav-inner { gap: 8px; padding: 12px; }
  .nav-logo img { height: 26px; }
  .nav-cta .btn .arrow { display: none; }
}
@media (max-width: 1020px) { .spot { grid-template-columns: 1fr !important; } }

/* Footer: Empower family panel sits under the Services/Platform/Company columns */
@media (min-width:1021px){
  .foot-grid>.foot-awards{grid-column:5;grid-row:1/span 2}
  .foot-grid>.foot-family{grid-column:2/5;grid-row:2;align-self:start;align-items:flex-start;margin:-8px 0 0}
  .foot-grid>.foot-family .ff-panel{width:min(400px,100%);padding:14px 20px}
}
@media (max-width:1020px){
  .foot-grid>.foot-family{grid-column:1/-1;margin:8px 0 0}
}
/* Mega menu: keep columns inside the panel on 1021-1200px screens */
.mega-cols>*{min-width:0}
@media (min-width:1021px) and (max-width:1200px){.mega{padding:24px 26px 30px}.mega-cols{gap:22px}.mcol ul li a{white-space:normal}}

/* ---------- Home: vet onboarding video (How it works, For Veterinarians) ---------- */
.day-panel.vetvid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.day-panel .shot.vv {
  position: relative; aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden;
  border: 1px solid rgba(0,124,179,.14);
  background: linear-gradient(135deg, #eef8fe 0%, #d7eefb 100%);
  box-shadow: 0 28px 60px -30px rgba(0,62,104,.45), 0 2px 8px rgba(0,62,104,.06);
}
.vv video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; background: transparent; }
.vv-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 78px; height: 78px; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
  display: grid; place-items: center; background: rgba(255,255,255,.94);
  box-shadow: 0 12px 30px -6px rgba(0,62,104,.35), 0 0 0 10px rgba(255,255,255,.38);
  transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}
.vv-play svg { width: 28px; height: 28px; margin-left: 4px; fill: #009bdd; }
.vv-play:hover { transform: translate(-50%, -50%) scale(1.06); box-shadow: 0 14px 34px -6px rgba(0,62,104,.42), 0 0 0 14px rgba(255,255,255,.42); }
.vv-play:focus-visible { outline: 3px solid #009bdd; outline-offset: 6px; }
.vv-dur {
  position: absolute; right: 14px; bottom: 14px; padding: 6px 11px; border-radius: 100px;
  background: rgba(8,40,66,.74); color: #fff; font-size: 12px; font-weight: 700; line-height: 1; letter-spacing: .04em;
  transition: opacity .2s ease;
}
.vv.playing .vv-play, .vv.playing .vv-dur { opacity: 0; pointer-events: none; }
@media (max-width: 860px) {
  .day-panel.vetvid { grid-template-columns: 1fr; }
  .vv-play { width: 62px; height: 62px; box-shadow: 0 10px 24px -6px rgba(0,62,104,.35), 0 0 0 8px rgba(255,255,255,.38); }
  .vv-play svg { width: 22px; height: 22px; }
  .day-panel .shot.vv { border-radius: 16px; }
}

/* ---------- Flowbox / #apflow (from live index.html inline; importer dropped it) ---------- */
.flowbox{position:relative;width:70vw;margin-left:calc(50% - 35vw);aspect-ratio:3000/620;overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch;background:#fff;cursor:ew-resize;scrollbar-width:none}.flowbox::-webkit-scrollbar{display:none}
.flowbox::after{content:'';display:block;width:var(--fw,100%);height:1px}
.flowscale{position:absolute;top:0;left:0;width:3000px;height:620px;transform-origin:0 0}
#apflow .c{background:transparent}
#apflow .c{width:3000px;height:620px;background:#fff;position:relative;font-family:inherit}
#apflow svg{position:absolute;top:0;left:0}
#apflow .n{position:absolute;width:190px;height:190px;border-radius:50%;background:#fff;border:5px solid #bfe3f2;box-sizing:border-box;display:flex;align-items:center;justify-content:center;overflow:hidden}
#apflow .n img{width:66%;height:66%;object-fit:contain;mix-blend-mode:multiply}
#apflow .n.two{gap:4px}
#apflow .n.two img{width:42%;height:70%}
#apflow .n{transition:border-color .35s,border-width .35s,box-shadow .35s}#apflow svg circle{transition:stroke .3s}
#apflow .f{border:8px solid #12a3e3;box-shadow:0 0 0 6px rgba(18,163,227,.12),0 0 38px 10px rgba(18,163,227,.35)}
#apflow .lb{position:absolute;width:260px;text-align:center;color:var(--ink);font-weight:700;font-size:23px;letter-spacing:.14em;text-transform:uppercase;line-height:1.4}
#apflow .sl{transition:color .3s,opacity .3s,text-shadow .3s}#apflow .sl.on{color:#12a3e3;opacity:1;text-shadow:0 0 14px rgba(18,163,227,.55)}#apflow svg .sp{transition:stroke .3s,filter .3s}#apflow svg .sp.on{filter:drop-shadow(0 0 8px rgba(18,163,227,.7))}@media (prefers-reduced-motion:reduce){#apflow .sl,#apflow svg .sp,#apflow .n,#apflow svg circle{transition:none}}
#apflow .sl .sub{display:block;font-size:16px;font-weight:500;letter-spacing:.1em;opacity:.75;margin-top:2px}
#apflow .sl{position:absolute;width:300px;margin-left:-40px;text-align:center;color:var(--ink);font-weight:600;font-size:24px;letter-spacing:.14em;text-transform:uppercase;opacity:.85;line-height:1.3}

/* ---------- .cflags (from live index.html inline; importer dropped it) ---------- */
.cflags{display:flex;flex-wrap:wrap;justify-content:center;gap:14px;margin:20px 0 0 50%;width:480px;max-width:calc(100vw - 32px);transform:translateX(-50%)}.cflag{display:inline-block;width:46px;height:32px;border-radius:6px;overflow:hidden;box-shadow:0 1px 3px rgba(11,61,99,.25),0 0 0 1px rgba(11,61,99,.08)}.cflag svg{display:block;width:100%;height:100%}@media(max-width:600px){.cflags{gap:10px;width:200px}.cflag{width:40px;height:28px;border-radius:5px}}

/* ---------- Home inline styles from live index.html (importer dropped companion <style> tags) ---------- */
/* Scoped to the hero that carries the product carousel (nested or next sibling); unscoped, these
   took 54px off the top of every feature-page .fhero and shrank the gap under its CTAs. */
.fhero .ap-hero-carousel{background:transparent;padding:8px 0 0;margin:0}.fhero:has(.ap-hero-carousel) .hero-ctas,.fhero:has(+ .ap-hero-carousel) .hero-ctas{margin-bottom:8px}main section.fhero:has(.ap-hero-carousel),main section.fhero:has(+ .ap-hero-carousel){padding-top:20px}.fhero #ap-products.ap-hero-carousel{padding-top:0}

/* ---------- Footer: undistorted award cards + compact small-screen layout ----------
   The footer markup is CMS HTML (site.aprFooter.html), so only the classes the rules above already
   rely on are used here. main.js tags each link column (.foot-col / .foot-col-js / .is-open) and
   turns its heading into a disclosure button on narrow screens; without JS every list stays open. */
/* The four badges are ~1.67:1 sources (257x154, 514x308) capped to 150px wide by inline styles; height stays
   auto so the intrinsic ratio is kept, and contain guards the two that also carry width/height attributes. */
.foot-grid > .foot-awards img { object-fit: contain; height: auto; }

@media (max-width: 1020px) {
  footer { padding: 56px 0 28px; }
  .foot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 24px; margin-bottom: 40px; }
  .foot-grid > .foot-brand, .foot-grid > .foot-awards { grid-column: 1 / -1; }
  /* awards: one wrapping horizontal strip instead of a stacked column. The CMS <ul> carries an inline
     style="display:flex; flex-direction:column; gap:12px", so the direction and wrap need !important. */
  .foot-grid > .foot-awards ul { display: flex; flex-direction: row !important; flex-wrap: wrap !important; align-items: flex-start; gap: 12px; }
  .foot-grid > .foot-awards li { flex: 0 1 auto; min-width: 0; }
  .foot-grid > .foot-awards li a { display: block; padding: 0; }
  .foot-grid > .foot-family { margin-top: 0; }
}
@media (max-width: 640px) {
  footer { padding: 44px 0 24px; }
  .foot-grid { grid-template-columns: minmax(0, 1fr); gap: 0; margin-bottom: 24px; }
  .foot-grid > .foot-brand { margin-bottom: 24px; }
  .foot-grid > .foot-brand p { margin-bottom: 18px; }
  .foot-grid > .foot-brand .note { margin: 22px 0 6px; }
  .foot-grid > .foot-brand .news { max-width: none; }
  /* link groups: stacked, hairline-separated, 44px+ tap targets */
  .foot-col { border-top: 1px solid rgba(255, 255, 255, .3); }
  .foot-col h4 { margin: 0; }
  .foot-col:not(.foot-col-js) h4 { padding: 14px 0 6px; }
  .foot-col ul { padding: 0 0 10px; }
  .foot-col-js:not(.is-open) ul { display: none; }
  /* link columns only: the awards list also holds an <a> around one badge and must not get this */
  .foot-grid > :not(.foot-brand):not(.foot-awards):not(.foot-family) li a { display: flex; align-items: center; min-height: 44px; padding: 6px 0; }
  .foot-col-btn {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    width: 100%; min-height: 52px; padding: 14px 0; border: 0; background: none;
    color: inherit; font: inherit; letter-spacing: inherit; text-transform: inherit; text-align: left;
    cursor: pointer; -webkit-tap-highlight-color: transparent;
  }
  .foot-col-btn::after {
    content: ""; flex: none; width: 9px; height: 9px; margin: 0 6px 4px 0;
    border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
    transform: rotate(45deg); transition: transform .2s ease, margin .2s ease;
  }
  .foot-col.is-open .foot-col-btn::after { transform: rotate(-135deg); margin: 4px 6px 0 0; }
  .foot-col-btn:focus-visible { outline: 2px solid #fff; outline-offset: -2px; border-radius: 4px; }
  /* no-JS fallback: a link column that main.js has not tagged still reads as a separated group */
  .foot-grid > :not(.foot-brand):not(.foot-awards):not(.foot-family):not(.foot-col):has(h4) { border-top: 1px solid rgba(255, 255, 255, .3); padding: 14px 0 4px; }
  /* awards: two per row (the inline gap is 12px), each badge fills its cell up to the inline 150px cap and
     keeps its intrinsic ratio via height:auto */
  .foot-grid > .foot-awards { border-top: 1px solid rgba(255, 255, 255, .3); padding-top: 20px; }
  .foot-grid > .foot-awards li { flex: 0 0 calc(50% - 6px); max-width: calc(50% - 6px); }
  .foot-grid > .foot-awards img { width: 100%; height: auto; }
  .foot-grid > .foot-family { margin: 24px 0 0; }
  .foot-base { gap: 16px 24px; padding-top: 22px; }
  .foot-base .legal { gap: 18px; }
}
@media (prefers-reduced-motion: reduce) { .foot-col-btn::after { transition: none; } }
/* Trakiv chip (links to https://trakiv.com/): on phones the pill is ~27px tall, so extend its hit area to
   ~45px with an invisible pseudo-element; the visible pill, its hover/focus styling and the other chips stay as-is. */
@media (max-width: 600px) {
  .foot-family .ef a.ef-trakiv::before { content: ""; position: absolute; left: 0; right: 0; top: -9px; bottom: -9px; }
}

.awards-blk{margin-top:64px;text-align:center}.awards-h{margin:0 auto 28px;max-width:820px;font-size:clamp(24px,2.6vw,36px);line-height:1.2;text-wrap:balance}.awards-cards{display:flex;justify-content:center;gap:32px;flex-wrap:wrap}.award-card{flex:0 0 auto;display:block;border-radius:16px;overflow:hidden;box-shadow:0 2px 10px rgba(11,61,99,.06);transition:transform .2s,box-shadow .2s}.award-card:hover{transform:translateY(-3px);box-shadow:0 12px 28px rgba(11,61,99,.12)}.award-card img{display:block;width:300px;max-width:100%;height:auto}@media(max-width:640px){.awards-cards{flex-direction:column;align-items:center}.award-card{flex:none}}
