/*
Theme Name: Livia Health
Theme URI: https://liviahealth.com/
Author: Livia Health
Description: Custom WordPress theme for Livia Health — Kenya's connected health platform. Includes page templates for every product, a social wall, awards, and a front-end publishing dashboard (provided by the Livia Core plugin).
Version: 2.6.5
Requires at least: 6.2
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: livia-health
Tags: healthcare, business, custom-menu, featured-images, blog, translation-ready, accessibility-ready
*/
:root {
  --wa-size: 60px;
  --wa-gap: 18px;
  --teal: #4AA691;
  --teal-600: #2E7568;
  --teal-700: #1F5F55;
  --navy: #12355B;
  --navy-700: #0d2846;
  --pink: #E9B2D2;
  --mint: #EAF8F1;
  --soft: #F6F9FB;
  --ink: #1F2933;
  --muted: #4B5563;
  --line: #E3E8EE;
  --white: #fff;
  --danger: #B42318;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .06);
  --shadow: 0 4px 16px rgba(16, 24, 40, .08);
  --shadow-lg: 0 18px 40px rgba(16, 24, 40, .14);
  --font-head: 'Montserrat', 'Segoe UI', Arial, sans-serif;
  --font-body: 'Open Sans', 'Segoe UI', Arial, sans-serif;
  --container: 1200px;
  --header-h: 72px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; font-family: var(--font-body); font-size: 1rem; line-height: 1.65; color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
img, svg, video, iframe { max-width: 100%; }
img { height: auto; display: block; }
h1, h2, h3, h4, h5, h6, .h3, .h4, .h5, .h6 { font-family: var(--font-head); color: var(--navy); line-height: 1.2; margin: 0 0 .6em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.25rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
h3, .h3 { font-size: clamp(1.25rem, 2.4vw, 1.6rem); }
.h4 { font-size: 1.25rem; }
h4, .h5 { font-size: 1.05rem; }
.h6 { font-size: .98rem; }
p { margin: 0 0 1em; }
a { color: var(--teal-600); text-underline-offset: 3px; }
a:hover { color: var(--teal-700); }
ul, ol { padding-left: 1.2em; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; border-radius: 4px; }
button { font: inherit; cursor: pointer; }
.icon { flex: none; vertical-align: middle; }
.sr-only, .hp { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 1000; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; font-weight: 700; }
.skip-link:focus { top: 12px; color: #fff; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.container--narrow { max-width: 820px; }
.container--article { max-width: 780px; }
.text-center { text-align: center; }
.text-accent { color: var(--teal-600); }
/* On dark backgrounds the accent is a light mint, so it stays readable. */
.hero .text-accent, .page-hero .text-accent, .section--navy .text-accent, .cta-band .text-accent, .get-app .text-accent { color: #8FE3CC; }
.text-teal { color: var(--teal); }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.mt { margin-top: 1.25rem; }
.mt-lg { margin-top: 2.5rem; }
.rounded { border-radius: var(--radius); }
.shadow { box-shadow: var(--shadow-lg); }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; }
.logo__mark { width: 34px; height: 34px; flex: none; }
.logo__text { font-family: var(--font-head); font-size: 1.35rem; letter-spacing: -.02em; line-height: 1; font-weight: 500; }
.logo__text b { font-weight: 800; }
.logo--light .logo__circle { fill: #fff; }
.logo--light .logo__drop { fill: var(--teal); }
.logo--light .logo__mark circle:last-child { fill: #fff; }
.logo--light .logo__text { color: #fff; }
.logo--dark .logo__circle { fill: var(--teal); }
.logo--dark .logo__drop { fill: #fff; }
.logo--dark .logo__text { color: var(--navy); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 46px; padding: .7rem 1.4rem; border-radius: var(--radius-sm); border: 2px solid transparent; font-family: var(--font-head); font-weight: 700; font-size: .875rem; letter-spacing: .03em; text-transform: uppercase; text-decoration: none; line-height: 1.2; transition: background-color .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--teal-600); color: #fff; border-color: var(--teal-600); box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--teal-700); border-color: var(--teal-700); color: #fff; }
.btn--white { background: #fff; color: var(--teal-600); border-color: #fff; }
.btn--white:hover { background: var(--mint); color: var(--teal-700); }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
.btn--outline-light:hover { background: #fff; color: var(--navy); border-color: #fff; }
.btn--outline { background: transparent; color: var(--teal-600); border-color: var(--teal); }
.btn--outline:hover { background: var(--teal); color: #fff; }
.btn--lg { min-height: 52px; padding: .85rem 1.75rem; font-size: .9rem; }
.btn--sm { min-height: 38px; padding: .45rem 1rem; font-size: .78rem; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.btn-row--center { justify-content: center; }
.link { background: none; border: 0; padding: 0; color: var(--teal-600); text-decoration: underline; font: inherit; }
.link-arrow { display: inline-flex; align-items: center; gap: .4rem; font-family: var(--font-head); font-weight: 700; font-size: .9rem; text-decoration: none; color: var(--teal-600); }
.link-arrow:hover .icon { transform: translateX(3px); }
.link-arrow .icon { transition: transform .2s; }

/* ---------- Labels ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: .4rem; font-family: var(--font-head); font-weight: 700; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--teal-600); margin: 0 0 .75rem; }
.eyebrow--light { color: #bfe8dd; }
.eyebrow--pink { color: var(--pink); }
.tag { display: inline-block; padding: .25rem .7rem; border-radius: 999px; background: var(--mint); color: var(--teal-700); font-family: var(--font-head); font-weight: 700; font-size: .7rem; letter-spacing: .05em; text-transform: uppercase; text-decoration: none; }
a.tag:hover { background: var(--teal); color: #fff; }
.badge-new { display: inline-block; padding: .1rem .45rem; border-radius: 999px; background: var(--pink); color: var(--navy); font-style: normal; font-size: .62rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; vertical-align: middle; }

/* ---------- Announcement + top bar ---------- */
.announce { background: var(--pink); color: var(--navy); text-align: center; font-size: .875rem; font-weight: 600; padding: .5rem 0; }
.announce a { color: var(--navy); text-decoration: none; display: inline-flex; align-items: center; gap: .35rem; }
.topbar { background: var(--topbar-bg, var(--navy)); color: rgba(255, 255, 255, .85); font-size: .8rem; display: none; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; min-height: 36px; gap: 1rem; }
.topbar__contacts { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.topbar a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: .35rem; }
.topbar a:hover { color: #9fe0cf; }
.topbar__hours { display: inline-flex; align-items: center; gap: .35rem; }
@media (min-width: 900px) { .topbar { display: block; } }

/* ---------- Header / navigation ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--header-bg, var(--teal)); box-shadow: 0 2px 10px rgba(18, 53, 91, .15); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 1rem; }
.brand { text-decoration: none; display: inline-flex; align-items: center; flex: none; margin-right: auto; line-height: 0; }
/* Header options (Customise → Livia: header & footer → Header). */
.site-header--static { position: relative; }
.site-header .container, .topbar .container { padding-left: var(--header-pad, 20px); padding-right: var(--header-pad, 20px); }
.site-header--full .container, .topbar--full .container { max-width: none; }
.brand .custom-logo { display: block; height: var(--logo-h-m, 40px); max-height: calc(var(--header-h) - 12px); width: auto; max-width: 60vw; object-fit: contain; }
.brand .logo__mark { width: calc(var(--logo-h-m, 40px) * .85); height: calc(var(--logo-h-m, 40px) * .85); }
.brand .logo__text { font-size: calc(var(--logo-h-m, 40px) * .54); }
@media (min-width: 900px) {
  .brand .custom-logo { height: var(--logo-h, 40px); max-width: 320px; }
  .brand .logo__mark { width: calc(var(--logo-h, 40px) * .85); height: calc(var(--logo-h, 40px) * .85); }
  .brand .logo__text { font-size: calc(var(--logo-h, 40px) * .54); }
}
.nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; border-radius: 8px; background: rgba(255, 255, 255, .12); color: #fff; }
.nav-toggle__close { display: none; }
.nav-open .nav-toggle__open { display: none; }
.nav-open .nav-toggle__close { display: block; }
.site-nav { position: fixed; inset: var(--header-h) 0 0 0; background: var(--teal-700); padding: 1rem 20px 2rem; overflow-y: auto; transform: translateX(100%); visibility: hidden; transition: transform .25s ease, visibility .25s; }
.nav-open .site-nav { transform: none; visibility: visible; }
.nav-list { list-style: none; margin: 0; padding: 0; }
.nav-link { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: .35rem; padding: .85rem .75rem; border: 0; border-radius: 8px; background: none; color: #fff; font-family: var(--font-head); font-weight: 600; font-size: 1rem; text-decoration: none; text-align: left; }
.nav-link:hover, .nav-link.is-active { background: rgba(255, 255, 255, .14); color: #fff; }
.has-menu > button .icon { transition: transform .2s; }
.has-menu > button[aria-expanded="true"] .icon { transform: rotate(180deg); }
.menu { list-style: none; margin: 0 0 .5rem; padding: .25rem 0 .25rem .75rem; display: none; }
.has-menu.is-open > .menu, .has-menu.is-open > div.menu { display: block; }
.menu ul { list-style: none; margin: 0; padding: 0; }
.menu a { display: block; padding: .6rem .75rem; border-radius: 8px; color: #fff; text-decoration: none; }
.menu a:hover, .menu a[aria-current="page"] { background: rgba(255, 255, 255, .12); }
.menu a strong { display: block; font-family: var(--font-head); font-size: .92rem; }
.menu a span span, .menu a > span:not(.menu__icon) > span { display: block; font-size: .78rem; opacity: .75; }
.menu a > span:not(.menu__icon) { display: block; }
.menu__icon-link { display: flex !important; gap: .75rem; align-items: flex-start; }
.menu__icon { display: inline-flex; width: 34px; height: 34px; border-radius: 8px; align-items: center; justify-content: center; background: rgba(255, 255, 255, .15); flex: none; }
.menu__title { margin: .25rem .75rem .35rem; font-family: var(--font-head); font-weight: 700; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; opacity: .7; color: #fff; }
.menu__footer { font-size: .82rem; font-weight: 600; }
.nav-login { position: relative; flex: none; margin-left: .5rem; }
.nav-login > .btn { min-height: 40px; padding: .4rem .85rem; font-size: .78rem; }
.nav-login > .btn .icon { width: 15px; height: 15px; }
.nav-login > .menu { position: absolute; right: 0; left: auto; top: calc(100% + 10px); width: min(320px, calc(100vw - 24px)); max-height: calc(100svh - var(--header-h) - 20px); overflow-y: auto; margin: 0; padding: .5rem; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); border: 1px solid var(--line); z-index: 120; }
.nav-login .menu a { color: var(--navy); }
.nav-login .menu a:hover { background: var(--mint); }
.nav-login .menu a span span, .nav-login .menu a > span:not(.menu__icon) > span { color: var(--muted); opacity: 1; }
.nav-login .menu__icon { background: var(--mint); color: var(--teal-600); }
.nav-login .menu__title { color: var(--navy); }
.nav-login .menu__footer { display: block; margin-top: .25rem; padding: .6rem .75rem; border-top: 1px solid var(--line); color: var(--teal-600) !important; }
.nav-login .menu__aff { border-top-color: var(--line); }
.nav-toggle { order: 2; }
.nav-login { order: 3; }
@media (max-width: 360px) { .nav-login > .btn .icon { display: none; } .nav-login > .btn { padding: .4rem .65rem; } }
body.nav-open { overflow: hidden; }

@media (min-width: 1100px) {
  .nav-toggle { display: none; }
  .site-nav { position: static; transform: none; visibility: visible; background: none; padding: 0; overflow: visible; display: flex; align-items: center; gap: 1rem; flex: 1; justify-content: flex-end; }
  .nav-list { display: flex; align-items: center; gap: .15rem; }
  .nav-link { width: auto; padding: .5rem .7rem; font-size: .9rem; color: rgba(255, 255, 255, .95); }
  .has-menu { position: relative; }
  .menu { position: absolute; left: 0; top: calc(100% + 10px); min-width: 280px; padding: .5rem; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); border: 1px solid var(--line); display: block; opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .18s, transform .18s, visibility .18s; }
  .menu--wide { min-width: 340px; }
  .menu--right { left: auto; right: 0; min-width: 300px; }
  .has-menu.is-open > .menu, .has-menu:focus-within > .menu { opacity: 1; visibility: visible; transform: none; }
  .menu a { color: var(--navy); }
  .menu a:hover, .menu a[aria-current="page"] { background: var(--mint); }
  .menu a span span, .menu a > span:not(.menu__icon) > span { color: var(--muted); opacity: 1; }
  .menu__icon { background: var(--mint); color: var(--teal-600); }
  .menu__title { color: var(--navy); }
  .menu__footer { display: block; margin-top: .25rem; padding: .6rem .75rem; border-top: 1px solid var(--line); color: var(--teal-600) !important; }
  .nav-login { order: 0; margin: 0 0 0 1rem; }
  .nav-login > .btn { min-height: 38px; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section--tight { padding: clamp(2.5rem, 5vw, 3.5rem) 0; }
.section--navy { background: var(--navy); color: rgba(255, 255, 255, .85); }
.section--navy h2, .section--navy h3 { color: #fff; }
.section--mint { background: var(--mint); }
.section--soft { background: var(--soft); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto clamp(2rem, 4vw, 3rem); }
.section-head p:last-child { margin-bottom: 0; color: var(--muted); }
.section--navy .section-head p:last-child { color: rgba(255, 255, 255, .75); }
.section-head--left { text-align: left; margin-left: 0; }
.section-head--compact { margin-bottom: 1.75rem; }
.section-head--split { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1rem; text-align: left; max-width: none; }
.section-head--split h2 { margin: 0; }

/* ---------- Home hero ---------- */
/* Seven slides share one living background. Each slide brings its own colours,
   which blend into the next one (the colour stops are registered so they animate). */
@property --c1 { syntax: "<color>"; inherits: true; initial-value: #2aa18a; }
@property --c2 { syntax: "<color>"; inherits: true; initial-value: #34b3c9; }
@property --c3 { syntax: "<color>"; inherits: true; initial-value: #2b8cc4; }
@property --c4 { syntax: "<color>"; inherits: true; initial-value: #d77fb1; }

.hero {
  --c1: #1F5F55; --c2: #1d6f86; --c3: #12355B; --c4: #8a3f6c;
  position: relative; overflow: hidden; color: #fff; isolation: isolate;
  display: flex; flex-direction: column;
  /* Fill the screen below the header (site.js measures the exact offset). */
  min-height: max(540px, calc(100svh - var(--hero-top, 108px)));
  background: var(--c1);
  transition: --c1 1.2s ease, --c2 1.2s ease, --c3 1.2s ease, --c4 1.2s ease;
}
.hero[data-active="app"]       { --c1: #8f3a68; --c2: #a8457a; --c3: #1d6f86; --c4: #1F5F55; }
.hero[data-active="md"]        { --c1: #12355B; --c2: #1b5c8c; --c3: #1d6f86; --c4: #3b4699; }
.hero[data-active="delivery"]  { --c1: #9a3f17; --c2: #a6581a; --c3: #8f3352; --c4: #1F5F55; }
.hero[data-active="pims"]      { --c1: #155e4a; --c2: #1F5F55; --c3: #2f6f35; --c4: #17706a; }
.hero[data-active="hmis"]      { --c1: #2f3594; --c2: #1b5c8c; --c3: #4a3994; --c4: #1d6f86; }
.hero[data-active="insurance"] { --c1: #1F5F55; --c2: #12355B; --c3: #7a2f58; --c4: #2E7568; }

.hero__media, .cta-band__media, .get-app__media, .page-hero__media { position: absolute; inset: 0; }
.hero__media img, .cta-band__media img, .get-app__media img, .page-hero__media img { width: 100%; height: 100%; object-fit: cover; }
/* The city photograph is kept as a soft texture under the colour, not a dark backdrop. */
.hero__media { opacity: .2; mix-blend-mode: luminosity; animation: hero-zoom 30s ease-in-out infinite alternate; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, rgba(8, 30, 45, .55), rgba(8, 30, 45, .25) 55%, rgba(8, 30, 45, .1)), linear-gradient(180deg, rgba(8, 30, 45, .2), transparent 40%, rgba(8, 30, 45, .35)); }
.hero h1, .hero__title, .hero__lead, .hero .eyebrow { text-shadow: 0 2px 14px rgba(5, 25, 40, .45); }

/* ---------- Animated background ---------- */
.hero__fx { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.hero__fx::before {
  content: ""; position: absolute; inset: -40%;
  background: conic-gradient(from 0deg at 50% 50%, var(--c1), var(--c2), var(--c3), var(--c1), var(--c4), var(--c1));
  filter: blur(70px) saturate(1.15);
  animation: hero-aurora 28s linear infinite;
}
.hero__fx::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(520px circle at var(--mx, 50%) var(--my, 40%), rgba(255, 255, 255, .1), transparent 60%),
    radial-gradient(60% 60% at 50% 45%, rgba(14, 60, 80, .28), transparent 75%);
}
.hero__orb { position: absolute; border-radius: 50%; filter: blur(50px); opacity: .32; mix-blend-mode: screen; }
.hero__orb--1 { width: 480px; height: 480px; left: -140px; top: -120px; background: radial-gradient(circle, rgba(127, 230, 200, .9), transparent 68%); animation: hero-drift-1 22s ease-in-out infinite; }
.hero__orb--2 { width: 420px; height: 420px; right: -120px; bottom: -140px; background: radial-gradient(circle, rgba(80, 190, 245, .9), transparent 68%); animation: hero-drift-2 26s ease-in-out infinite; }
.hero__orb--3 { width: 340px; height: 340px; right: 18%; top: 4%; background: radial-gradient(circle, rgba(240, 160, 205, .85), transparent 70%); animation: hero-drift-3 30s ease-in-out infinite; }

.hero__float { position: absolute; bottom: -60px; left: var(--x); width: var(--s, 34px); height: var(--s, 34px); display: grid; place-items: center; border-radius: 12px; color: #fff; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .3); backdrop-filter: blur(4px); opacity: 0; animation: hero-rise var(--t, 18s) linear infinite; animation-delay: var(--d, 0s); }
.hero__float .icon { width: 55%; height: 55%; }

.hero__pulse { position: absolute; left: 0; right: 0; bottom: 18%; height: 90px; opacity: .4; }
.hero__pulse svg { width: 100%; height: 100%; }
.hero__pulse path { fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1400; stroke-dashoffset: 1400; filter: drop-shadow(0 0 6px rgba(255, 255, 255, .8)); animation: hero-trace 7s linear infinite; }

.hero__wave { position: absolute; left: 0; bottom: -1px; z-index: 2; width: 200%; max-width: none; height: 46px; animation: hero-wave 16s linear infinite; pointer-events: none; }
.hero__wave path:first-child { fill: rgba(255, 255, 255, .35); }
.hero__wave path:last-child { fill: #fff; }

.hero__sweep { display: none; }

/* ---------- Slides ---------- */
.hero__slides { position: relative; z-index: 2; flex: 1; display: grid; }
.hero__slide { grid-area: 1 / 1; display: flex; align-items: center; min-width: 0; visibility: hidden; opacity: 0; transition: opacity .9s cubic-bezier(.4, 0, .2, 1), visibility 0s .9s; }
.hero__slide.is-active { visibility: visible; opacity: 1; transition: opacity .9s cubic-bezier(.4, 0, .2, 1), visibility 0s; z-index: 1; }
.hero__slide.is-leaving { visibility: visible; }

.hero__inner, .hero__split { position: relative; width: 100%; padding-top: clamp(2rem, 6vh, 4.5rem); padding-bottom: calc(clamp(1.25rem, 4vh, 3rem) + 100px); }

/* Home slide: centred, as before. */
.hero__inner { text-align: center; max-width: 980px; padding-left: 20px; padding-right: 20px; }
.hero h1, .hero__title { color: #fff; margin-bottom: clamp(.7rem, 2vh, 1.1rem); font-size: clamp(2rem, min(5.2vw, 6.6vh), 3.8rem); line-height: 1.1; letter-spacing: -.02em; text-shadow: 0 4px 30px rgba(8, 40, 70, .3); }
.hero__line { display: block; overflow: hidden; padding-bottom: .08em; }
.hero__slide.is-active .hero__line > span { display: inline-block; animation: hero-soft .9s cubic-bezier(.25, .8, .25, 1) .08s both; }
.hero__slide.is-active .hero__line + .hero__line > span { animation-delay: .14s; }
.hero__shine { background: linear-gradient(100deg, #fff 0%, #ffe3f1 25%, #fff 45%, #c9fff0 65%, #fff 100%); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; }
.hero__slide.is-active .hero__line > .hero__shine { animation: hero-soft .9s cubic-bezier(.25, .8, .25, 1) .14s both; }

.hero .eyebrow { display: inline-flex; align-items: center; gap: .55rem; padding: .4rem 1rem .4rem .5rem; border-radius: 999px; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .35); backdrop-filter: blur(8px); color: #fff; margin-bottom: clamp(.8rem, 2.4vh, 1.4rem); }
.hero__inner .eyebrow { padding-left: .75rem; }
.hero__slide.is-active .eyebrow { animation: hero-soft .9s cubic-bezier(.25, .8, .25, 1) both; }
.hero__live { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px rgba(255, 255, 255, .3); }
.hero__live::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #fff; animation: hero-ping 1.8s ease-out infinite; }
.hero__tag { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #fff; color: var(--c1); }

.hero__lead { font-size: clamp(.98rem, 1.5vw, 1.12rem); color: rgba(255, 255, 255, .93); max-width: 640px; margin: 0 auto; }
.hero__slide.is-active .hero__lead { animation: hero-soft .9s cubic-bezier(.25, .8, .25, 1) .2s both; }

.hero__chips { list-style: none; padding: 0; margin: clamp(1.1rem, 3.4vh, 2.2rem) auto 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: .7rem; max-width: 860px; perspective: 800px; }
.hero__chips li { position: relative; overflow: hidden; display: flex; align-items: center; gap: .7rem; padding: .75rem .9rem; border-radius: 14px; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .32); text-align: left; font-size: .78rem; color: rgba(255, 255, 255, .88); backdrop-filter: blur(10px); box-shadow: 0 10px 30px rgba(10, 50, 80, .18); transition: transform .3s, background .3s, box-shadow .3s; }
.hero__slide.is-active .hero__chips li { animation: hero-soft .9s cubic-bezier(.25, .8, .25, 1) .26s both; }
.hero__slide.is-active .hero__chips li:nth-child(2) { animation-delay: .3s; }
.hero__slide.is-active .hero__chips li:nth-child(3) { animation-delay: .34s; }
.hero__slide.is-active .hero__chips li:nth-child(4) { animation-delay: .38s; }
.hero__chips li:hover { transform: translateY(-4px); background: rgba(255, 255, 255, .24); box-shadow: 0 16px 36px rgba(10, 50, 80, .28); }
.hero__chips .icon { flex: none; width: 36px; height: 36px; padding: 9px; border-radius: 10px; color: #fff; background: linear-gradient(140deg, #ff9ccc, #c2588f); box-shadow: 0 6px 14px rgba(194, 88, 143, .4); }
.hero__chips li:nth-child(2) .icon { background: linear-gradient(140deg, #6fd3ff, #2b8cc4); box-shadow: 0 6px 14px rgba(43, 140, 196, .4); }
.hero__chips li:nth-child(3) .icon { background: linear-gradient(140deg, #8ff0cf, #2E7568); box-shadow: 0 6px 14px rgba(46, 117, 104, .4); }
.hero__chips li:nth-child(4) .icon { background: linear-gradient(140deg, #ffd38a, #e8893c); box-shadow: 0 6px 14px rgba(232, 137, 60, .4); }
.hero__chips strong { display: block; color: #fff; font-family: var(--font-head); font-size: .86rem; }
@media (min-width: 720px) { .hero__chips { grid-template-columns: repeat(4, 1fr); } }
/* Phones: compact cards (title only) and buttons side by side, so every slide fits one screen. */
@media (max-width: 719px) {
  .hero .eyebrow { font-size: .66rem; letter-spacing: .06em; }
  .hero__lead { font-size: .95rem; }
  .hero__chips { gap: .5rem; }
  .hero__chips li { padding: .55rem .6rem; gap: .5rem; font-size: 0; }
  .hero__chips strong { font-size: .78rem; line-height: 1.25; }
  .hero__chips .icon { width: 30px; height: 30px; padding: 7px; }
  .hero__ticks li { font-size: .78rem; }
  .hero .btn-row { flex-wrap: nowrap; justify-content: center; gap: .5rem; }
  .hero .btn--lg { padding: .8rem 1rem; font-size: .76rem; white-space: nowrap; }
}

.hero .btn-row { margin-top: clamp(1.2rem, 3.4vh, 2rem); }
.hero__slide.is-active .btn-row { animation: hero-soft .9s cubic-bezier(.25, .8, .25, 1) .32s both; }
.hero .btn--primary { background: #fff; color: var(--teal-700); border-color: #fff; box-shadow: 0 12px 30px rgba(10, 50, 80, .3); position: relative; overflow: hidden; }
.hero .btn--primary::before { content: ""; position: absolute; inset: -2px; border-radius: inherit; animation: hero-btn-ping 2.4s ease-out infinite; }
.hero .btn--primary:hover { background: var(--navy); border-color: var(--navy); color: #fff; transform: translateY(-2px); }
.hero .btn--outline-light { border-color: rgba(255, 255, 255, .8); backdrop-filter: blur(6px); }
.hero .btn--outline-light:hover { background: #fff; color: var(--teal-700); }

/* Product slides: copy on the left, a framed picture with floating cards on the right. */
.hero__split { display: grid; gap: 2.5rem; align-items: center; }
.hero__copy { text-align: center; }
.hero__copy .hero__lead { max-width: 560px; }
.hero__copy .btn-row { justify-content: center; }
.hero__ticks { list-style: none; padding: 0; margin: clamp(1rem, 2.6vh, 1.5rem) 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }
.hero__ticks li { display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .85rem .45rem .5rem; border-radius: 999px; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .3); font-size: .84rem; font-weight: 600; backdrop-filter: blur(8px); }
.hero__ticks .icon { width: 24px; height: 24px; padding: 5px; border-radius: 50%; background: #fff; color: var(--c1); }
.hero__slide.is-active .hero__ticks li { animation: hero-soft .9s cubic-bezier(.25, .8, .25, 1) .26s both; }
.hero__slide.is-active .hero__ticks li:nth-child(2) { animation-delay: .3s; }
.hero__slide.is-active .hero__ticks li:nth-child(3) { animation-delay: .34s; }

.hero__visual { display: none; position: relative; justify-self: center; width: min(100%, 500px); }
.hero__frame { position: relative; aspect-ratio: 5 / 4; max-height: calc(100svh - var(--hero-top, 108px) - 230px); margin-inline: auto; border-radius: 28px; overflow: hidden; border: 6px solid rgba(255, 255, 255, .85); box-shadow: 0 30px 60px rgba(10, 40, 70, .35); background: rgba(255, 255, 255, .2); }
.hero__frame img { width: 100%; height: 100%; object-fit: cover; }
.hero__slide.is-active .hero__frame { animation: hero-soft .9s cubic-bezier(.25, .8, .25, 1) .1s both; }
.hero__slide.is-active .hero__frame img { animation: hero-settle 2.4s cubic-bezier(.25, .8, .25, 1) both; }
.hero__ring { position: absolute; inset: -26px; border-radius: 40px; border: 2px dashed rgba(255, 255, 255, .45); pointer-events: none; }
.hero__slide.is-active .hero__ring { animation: hero-fade .9s ease .2s both; }
.hero__badge { position: absolute; z-index: 1; display: flex; align-items: center; gap: .6rem; padding: .65rem .9rem .65rem .65rem; border-radius: 16px; background: rgba(255, 255, 255, .95); color: var(--muted); font-size: .76rem; line-height: 1.3; box-shadow: 0 18px 40px rgba(10, 40, 70, .28); white-space: nowrap; }
.hero__badge strong { display: block; color: var(--navy); font-family: var(--font-head); font-size: .88rem; }
.hero__badge .icon { flex: none; width: 38px; height: 38px; padding: 10px; border-radius: 12px; color: #fff; background: linear-gradient(140deg, var(--c2), var(--c1)); }
.hero__badge--a { left: -34px; top: 14%; }
.hero__badge--b { right: -30px; bottom: 10%; }
.hero__badge--b .icon { background: linear-gradient(140deg, var(--c4), var(--c3)); }
.hero__slide.is-active .hero__badge--a { animation: hero-soft .9s cubic-bezier(.25, .8, .25, 1) .3s both, hero-bob 6s ease-in-out 1.2s infinite; }
.hero__slide.is-active .hero__badge--b { animation: hero-soft .9s cubic-bezier(.25, .8, .25, 1) .38s both, hero-bob 7s ease-in-out 1.3s infinite reverse; }

@media (min-width: 900px) {
  .hero__split { grid-template-columns: 1.05fr .95fr; gap: 3.5rem; }
  .hero__copy { text-align: left; }
  .hero__copy .hero__lead { margin: 0; }
  .hero__copy .btn-row, .hero__ticks { justify-content: flex-start; }
  .hero__visual { display: block; }
}

/* ---------- Slide controls ---------- */
.hero__nav { position: absolute; left: 0; right: 0; bottom: 56px; z-index: 4; }
html:not(.js) .hero__nav { display: none; }
.hero__nav-inner { display: flex; align-items: center; gap: .6rem; }
.hero__tabs { flex: 1; display: flex; gap: .4rem; min-width: 0; }
.hero__tab { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .45rem; padding: .35rem 0; border: 0; background: none; color: rgba(255, 255, 255, .7); font: 600 .74rem/1.2 var(--font-head); letter-spacing: .02em; text-align: left; cursor: pointer; transition: color .3s; }
.hero__tab:hover, .hero__tab.is-active { color: #fff; }
.hero__tab-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: none; }
.hero__tab-bar { position: relative; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .3); overflow: hidden; }
.hero__tab-bar i { position: absolute; inset: 0; border-radius: inherit; background: #fff; transform: scaleX(0); transform-origin: left; }
.hero__tab.is-active .hero__tab-bar i { animation: hero-progress 7s linear both; }
.hero.is-held .hero__tab.is-active .hero__tab-bar i { animation-play-state: paused; }
.hero.is-stopped .hero__tab.is-active .hero__tab-bar i { animation: none; transform: scaleX(1); }
.hero__arrow { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .5); background: rgba(255, 255, 255, .14); color: #fff; backdrop-filter: blur(8px); cursor: pointer; transition: background .25s, color .25s, transform .25s; }
.hero__arrow:hover { background: #fff; color: var(--c1); transform: scale(1.06); }
.hero__arrow--prev .icon { transform: rotate(180deg); }
.hero__tab:focus-visible, .hero__arrow:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.hero__pause-icon { width: 10px; height: 12px; border-left: 3px solid currentColor; border-right: 3px solid currentColor; }
.hero.is-stopped .hero__pause-icon { width: 0; height: 0; border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent currentColor; margin-left: 3px; }
@media (min-width: 720px) {
  .hero__tab-label { display: block; }
  .hero__tabs { gap: .9rem; }
}

@keyframes hero-aurora { to { transform: rotate(360deg); } }
@keyframes hero-soft { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes hero-zoom { from { transform: scale(1); } to { transform: scale(1.12); } }
@keyframes hero-drift-1 { 0%, 100% { transform: translate(0, 0); } 33% { transform: translate(120px, 80px); } 66% { transform: translate(60px, -60px); } }
@keyframes hero-drift-2 { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-140px, -90px); } }
@keyframes hero-drift-3 { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-90px, 90px) scale(1.2); } }
@keyframes hero-trace { 0% { stroke-dashoffset: 1400; } 55% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -1400; } }
@keyframes hero-rise { 0% { transform: translateY(0) rotate(0deg); opacity: 0; } 10% { opacity: .9; } 85% { opacity: .6; } 100% { transform: translateY(-110vh) rotate(25deg); opacity: 0; } }
@keyframes hero-wave { to { transform: translateX(-50%); } }
@keyframes hero-sweep { from { transform: translateX(-120%) skewX(-18deg); } to { transform: translateX(330%) skewX(-18deg); } }
@keyframes hero-up { from { transform: translateY(105%); } to { transform: none; } }
@keyframes hero-fade { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes hero-card { from { opacity: 0; transform: translateY(26px) rotateX(-35deg); } to { opacity: 1; transform: none; } }
@keyframes hero-out { to { opacity: 0; transform: translateX(-60px); filter: blur(8px); } }
@keyframes hero-out-visual { to { opacity: 0; transform: translateX(60px) scale(.94) rotate(2deg); } }
@keyframes hero-reveal { from { clip-path: inset(0 0 0 100% round 28px); transform: translateX(40px); } to { clip-path: inset(0 0 0 0 round 28px); transform: none; } }
@keyframes hero-settle { from { transform: scale(1.25); } to { transform: scale(1); } }
@keyframes hero-pop { from { opacity: 0; transform: translateY(20px) scale(.6); } to { opacity: 1; transform: none; } }
@keyframes hero-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes hero-progress { to { transform: scaleX(1); } }
@keyframes hero-shine { to { background-position: -250% 0; } }
@keyframes hero-sheen { 0%, 70% { left: -60%; } 100% { left: 130%; } }
@keyframes hero-ping { to { transform: scale(3.2); opacity: 0; } }
@keyframes hero-btn-ping { 0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .6); } 70%, 100% { box-shadow: 0 0 0 14px rgba(255, 255, 255, 0); } }

/* Reduced motion: no autoplay or movement; slides simply cross-fade when chosen. */
@media (prefers-reduced-motion: reduce) {
  .hero, .hero *, .hero *::before, .hero *::after, .hero__fx::before, .hero__media { animation: none !important; }
  .hero__float, .hero__arrow--pause { display: none; }
  .hero__pulse path { stroke-dashoffset: 0; }
  .hero__tab.is-active .hero__tab-bar i { transform: scaleX(1); }
}

/* ---------- Stats strip ---------- */
.stats { background: #fff; border-bottom: 1px solid var(--line); }
.stats__grid { display: grid; grid-template-columns: repeat(2, 1fr); }
.stat { padding: 1.4rem .75rem; text-align: center; }
.stat strong { display: block; font-family: var(--font-head); font-size: clamp(1.3rem, 2.8vw, 1.9rem); color: var(--teal-600); font-weight: 800; }
.stat span { font-size: .85rem; color: var(--muted); }
@media (min-width: 720px) { .stats__grid { grid-template-columns: repeat(4, 1fr); } .stat + .stat { border-left: 1px solid var(--line); } }

/* ---------- Tabs / product showcase ---------- */
.tabs__list { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-bottom: 2.25rem; }
.tabs__tab { display: inline-flex; align-items: center; gap: .45rem; padding: .6rem 1rem; border-radius: 999px; border: 1px solid var(--line); background: var(--soft); color: var(--muted); font-family: var(--font-head); font-weight: 700; font-size: .82rem; transition: all .2s; }
.tabs__tab:hover { color: var(--teal-600); background: var(--mint); }
.tabs__tab.is-active { background: var(--teal-600); border-color: var(--teal-600); color: #fff; box-shadow: var(--shadow-sm); }
.tabs__tab.is-active .badge-new { background: #fff; }
.js .tabs__panel:not(.is-active) { display: none; }
.tabs__panel + .tabs__panel { margin-top: 3rem; }
.js .tabs__panel + .tabs__panel { margin-top: 0; }
.product { display: grid; gap: 2rem; align-items: center; }
.product__media { position: relative; }
.product__media img { border-radius: var(--radius); box-shadow: var(--shadow-lg); aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.product__label { position: absolute; left: 16px; bottom: -14px; display: inline-flex; align-items: center; gap: .35rem; padding: .45rem .9rem; border-radius: 8px; background: var(--navy); color: #fff; font-family: var(--font-head); font-weight: 700; font-size: .8rem; box-shadow: var(--shadow); }
.product__body p { color: var(--muted); }
@media (min-width: 960px) { .product { grid-template-columns: 5fr 6fr; gap: 3.5rem; } }

.feature-list { list-style: none; padding: 0; margin: 1.25rem 0 1.75rem; display: grid; gap: .85rem; }
.feature-list li { display: flex; gap: .75rem; align-items: flex-start; }
.feature-list .icon { color: var(--teal); margin-top: 2px; }
.feature-list strong { display: block; font-family: var(--font-head); color: var(--navy); font-size: .95rem; }
.feature-list span { color: var(--muted); font-size: .92rem; }
.feature-list--light span { color: rgba(255, 255, 255, .82); }
.feature-list--light .icon { color: #7fd6c0; }

/* ---------- Steps ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 2rem; counter-reset: s; }
.steps li { text-align: center; position: relative; }
.steps__num { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 18px; background: var(--teal-600); color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; margin-bottom: 1rem; box-shadow: 0 10px 24px rgba(74, 166, 145, .35); }
.steps h3 { font-size: 1.1rem; margin-bottom: .4rem; }
.steps p { font-size: .92rem; margin: 0; }
.section--navy .steps p { color: rgba(255, 255, 255, .72); }
.steps--light p { color: var(--muted); }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } .steps--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .steps--4 { grid-template-columns: repeat(4, 1fr); } .steps--5 { grid-template-columns: repeat(5, 1fr); } }

.journey { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); }
.journey li { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--radius); padding: 1.25rem 1rem; text-align: center; }
.journey__icon { display: inline-flex; width: 48px; height: 48px; border-radius: 14px; background: var(--teal); color: #fff; align-items: center; justify-content: center; margin-bottom: .75rem; }
.journey strong { display: block; color: #fff; font-family: var(--font-head); margin-bottom: .25rem; }
.journey span:last-child { font-size: .85rem; color: rgba(255, 255, 255, .72); }
@media (min-width: 900px) { .journey { grid-template-columns: repeat(6, 1fr); } .journey:has(> :nth-child(5):last-child) { grid-template-columns: repeat(5, 1fr); } }

/* ---------- Cards ---------- */
.card-grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .card-grid { grid-template-columns: repeat(3, 1fr); } .card-grid--4 { grid-template-columns: repeat(4, 1fr); } .card-grid--5 { grid-template-columns: repeat(5, 1fr); } .card-grid--blog { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .card-grid--blog { grid-template-columns: repeat(3, 1fr); } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s, border-color .2s; }
.card p { color: var(--muted); font-size: .93rem; margin-bottom: 0; }
.card h3 { margin: .9rem 0 .4rem; }
.card--soft { background: var(--soft); box-shadow: none; border-color: transparent; }
.card--center { text-align: center; }
.card--compact { padding: 1.2rem; }
.card--compact p { font-size: .86rem; }
.card--hover:hover, .card--link:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #cfe9e1; }
.card--link { display: block; text-decoration: none; color: inherit; }
.card--active { border-color: var(--teal); background: var(--mint); }
.icon-badge { display: inline-flex; width: 46px; height: 46px; border-radius: 12px; align-items: center; justify-content: center; background: var(--mint); color: var(--teal-600); }
.icon-badge--lg { width: 64px; height: 64px; border-radius: 18px; }
.icon-badge--pink { background: #fbeaf3; color: #a2467b; }
.checklist { list-style: none; padding: 0; margin: 1rem 0 1.5rem; display: grid; gap: .55rem; }
.checklist li { display: flex; gap: .55rem; align-items: flex-start; font-size: .95rem; }
.checklist .icon { color: var(--teal); margin-top: 3px; }
.checklist--sm li { font-size: .86rem; color: var(--muted); }
.checklist--cols { grid-template-columns: 1fr; }
@media (min-width: 560px) { .checklist--cols { grid-template-columns: 1fr 1fr; } }

.gap-card__head { display: flex; gap: .8rem; align-items: center; margin-bottom: .75rem; }
.gap-card__head h3 { margin: 0; }
.gap-card__head small { display: block; font-family: var(--font-head); font-weight: 700; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: #a2467b; }
.gap-card__fix { margin-top: 1rem; padding: .9rem 1rem; border-radius: var(--radius-sm); background: var(--mint); }
.gap-card__fix strong { display: flex; align-items: center; gap: .35rem; font-family: var(--font-head); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--teal-700); margin-bottom: .25rem; }
.gap-card__fix p { color: var(--ink); font-size: .88rem; }

/* ---------- Testimonials & partners ---------- */
.testimonials { display: grid; gap: 1.25rem; max-width: 1000px; margin: 0 auto; }
@media (min-width: 860px) { .testimonials { grid-template-columns: repeat(2, 1fr); } }
.testimonial { margin: 0; background: #fff; border-radius: var(--radius); padding: 1.75rem; box-shadow: var(--shadow); border: 1px solid var(--line); display: flex; flex-direction: column; }
.testimonial__mark { color: var(--teal); opacity: .3; width: 32px; height: 32px; }
.testimonial blockquote { margin: .75rem 0 1.25rem; flex: 1; }
.testimonial blockquote p { font-style: italic; color: var(--ink); margin: 0; }
.testimonial figcaption { display: flex; align-items: center; gap: .75rem; font-size: .85rem; color: var(--muted); }
.testimonial figcaption strong { display: block; color: var(--navy); font-family: var(--font-head); font-size: .95rem; }
.avatar { display: inline-flex; width: 44px; height: 44px; border-radius: 50%; background: var(--mint); color: var(--teal-600); align-items: center; justify-content: center; font-family: var(--font-head); font-weight: 800; flex: none; }
.avatar--sm { width: 32px; height: 32px; font-size: .8rem; }
.partners { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (min-width: 640px) { .partners { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1000px) { .partners { grid-template-columns: repeat(7, 1fr); } }
.partner { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); height: 92px; display: flex; align-items: center; justify-content: center; padding: .9rem; }
.partner img { max-height: 56px; width: auto; max-width: 100%; object-fit: contain; filter: grayscale(1); opacity: .8; transition: filter .25s, opacity .25s; }
.partner:hover img { filter: none; opacity: 1; }
.partner[style] img { filter: none; opacity: 1; }
.partner span { font-family: var(--font-head); font-weight: 700; color: var(--navy); font-size: .9rem; text-align: center; }

/* ---------- Get the app ---------- */
.get-app { position: relative; overflow: hidden; color: rgba(255, 255, 255, .82); padding: clamp(3.5rem, 7vw, 5rem) 0; background: var(--navy); }
.get-app::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(18, 53, 91, .96), rgba(18, 53, 91, .84) 55%, rgba(18, 53, 91, .65)); }
.get-app__grid { position: relative; z-index: 2; display: grid; gap: 2rem; align-items: center; }
.get-app h2 { color: #fff; }
@media (min-width: 900px) { .get-app__grid { grid-template-columns: 1.1fr 1fr; gap: 4rem; } }
.app-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: .8rem; }
.app-steps li { display: flex; gap: 1rem; align-items: center; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--radius); padding: 1rem 1.1rem; font-size: .88rem; }
.app-steps li > span { display: inline-flex; width: 42px; height: 42px; border-radius: 10px; background: var(--teal); color: #fff; font-family: var(--font-head); font-weight: 800; align-items: center; justify-content: center; flex: none; }
.app-steps strong { display: block; color: #fff; font-family: var(--font-head); font-size: .95rem; }
.store-buttons { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.store-btn { display: inline-flex; align-items: center; gap: .6rem; padding: .55rem 1.1rem; min-height: 50px; border-radius: 10px; background: #fff; color: var(--ink); text-decoration: none; font-family: var(--font-head); font-weight: 700; font-size: .95rem; line-height: 1.1; box-shadow: var(--shadow-sm); }
.store-btn small { display: block; font-family: var(--font-body); font-weight: 400; font-size: .68rem; opacity: .7; }
.store-btn:hover { background: var(--mint); color: var(--ink); }
.store-buttons--dark { justify-content: center; }
.store-buttons--dark .store-btn { background: var(--ink); color: #fff; }
.store-buttons--dark .store-btn:hover { background: #000; color: #fff; }

/* ---------- Post cards ---------- */
.post-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s; }
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.post-card__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--mint); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.post-card:hover .post-card__media img { transform: scale(1.04); }
.post-card__placeholder { display: flex; height: 100%; align-items: center; justify-content: center; color: var(--teal); }
.post-card__body { padding: 1.25rem; display: flex; flex-direction: column; flex: 1; }
.post-card__meta { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; font-size: .78rem; color: var(--muted); margin-bottom: .6rem; }
.post-card__title { font-size: 1.05rem; margin: 0 0 .5rem; }
.post-card__title a { color: var(--navy); text-decoration: none; }
.post-card__title a:hover { color: var(--teal-600); }
.post-card__excerpt { font-size: .88rem; color: var(--muted); flex: 1; }
.post-card__date { font-size: .78rem; color: #6B7280; }

/* ---------- CTA bands ---------- */
.cta-band { position: relative; overflow: hidden; padding: clamp(4rem, 8vw, 6rem) 0; text-align: center; color: rgba(255, 255, 255, .85); background: var(--navy); }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: 1; background: rgba(18, 53, 91, .8); }
.cta-band__inner { position: relative; z-index: 2; max-width: 680px; }
.cta-band h2 { color: #fff; }
.cta-solid { background: var(--teal); color: rgba(255, 255, 255, .9); text-align: center; padding: clamp(3.5rem, 7vw, 5rem) 0; }
.cta-solid__inner { max-width: 680px; }
.cta-solid h2 { color: #fff; }

/* ---------- Dialog ---------- */
.dialog { border: 0; border-radius: 18px; padding: 2rem 1.75rem 1.75rem; max-width: 420px; width: calc(100% - 32px); text-align: center; box-shadow: var(--shadow-lg); }
.dialog::backdrop { background: rgba(18, 53, 91, .7); backdrop-filter: blur(3px); }
.dialog h2 { font-size: 1.35rem; }
.dialog p { color: var(--muted); }
.dialog__icon { display: flex; justify-content: center; margin-bottom: .75rem; }
.dialog__close { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--soft); color: var(--muted); display: inline-flex; align-items: center; justify-content: center; }
.dialog[open] { animation: pop .25s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.97); } to { opacity: 1; transform: none; } }

/* ---------- Inner page hero ---------- */
.page-hero { position: relative; overflow: hidden; background: linear-gradient(120deg, var(--navy), #1a4a7a); color: rgba(255, 255, 255, .85); padding: clamp(3rem, 7vw, 5rem) 0; }
.page-hero--image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(18, 53, 91, .9), rgba(18, 53, 91, .6)); }
.page-hero__inner { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; max-width: 820px; }
.page-hero__lead { font-size: clamp(1rem, 1.6vw, 1.12rem); max-width: 640px; margin-bottom: 0; }
.page-hero--split::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 15% 50%, rgba(74, 166, 145, .25), transparent 55%), radial-gradient(circle at 85% 15%, rgba(233, 178, 210, .18), transparent 45%); }
.page-hero__grid { position: relative; display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 980px) { .page-hero__grid { grid-template-columns: 1.05fr 1fr; gap: 3.5rem; } }
.page-hero__art img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 1.75rem; margin: 2rem 0 0; }
.hero-stats div { display: flex; flex-direction: column-reverse; }
.hero-stats dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: rgba(255, 255, 255, .6); }
.hero-stats dd { margin: 0; font-family: var(--font-head); font-weight: 800; font-size: 1.4rem; color: #fff; }
.hero-points { list-style: none; padding: 0; margin: 1.5rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; font-size: .85rem; }
.hero-points li { display: inline-flex; align-items: center; gap: .4rem; }
.hero-points .icon { color: #7fd6c0; }
.breadcrumbs ol { list-style: none; padding: 0; margin: 0 0 1.25rem; display: flex; flex-wrap: wrap; gap: .35rem; font-size: .82rem; }
.breadcrumbs li + li::before { content: "/"; margin-right: .35rem; opacity: .5; }
.breadcrumbs a { color: rgba(255, 255, 255, .8); text-decoration: none; }
.breadcrumbs a:hover { color: #fff; text-decoration: underline; }
.breadcrumbs span[aria-current] { color: #fff; }
.breadcrumbs--dark a { color: var(--muted); }
.breadcrumbs--dark a:hover { color: var(--teal-600); }
.breadcrumbs--dark span[aria-current] { color: var(--navy); }

/* ---------- Layout helpers ---------- */
.split { display: grid; gap: 2.5rem; align-items: center; }
.split--top { align-items: start; }
.split__media img { border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%; }
.split__media figcaption { font-size: .85rem; color: var(--muted); margin-top: .6rem; }
figure.split__media { margin: 0; }
@media (min-width: 960px) { .split { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.mini-grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr 1fr; margin-top: 1.25rem; }
.prose { font-size: 1.02rem; }
.prose h2 { font-size: 1.45rem; margin-top: 2.2rem; }
.prose h3 { font-size: 1.15rem; margin-top: 1.6rem; }
.prose ul, .prose ol { margin: 0 0 1.25em; }
.prose li { margin-bottom: .4em; }
.prose img { border-radius: var(--radius); margin: 1.5rem 0; }
.prose blockquote { margin: 1.5rem 0; padding: 1rem 1.25rem; border-left: 4px solid var(--teal); background: var(--mint); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.25rem 0; font-size: .92rem; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: .6rem .75rem; text-align: left; vertical-align: top; }
.prose th { background: var(--soft); font-family: var(--font-head); color: var(--navy); }
.prose iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: var(--radius); }
.prose .ql-align-center { text-align: center; }
.prose .ql-align-right { text-align: right; }
.prose--article { font-size: 1.06rem; line-height: 1.8; }

.with-sidebar { display: grid; gap: 2rem; }
/* Grid items default to min-width:auto, so a wide child (the scrolling FAQ pill
   nav) would stretch the column past the screen. Let the column shrink instead. */
.with-sidebar > * { min-width: 0; }
@media (min-width: 1000px) { .with-sidebar { grid-template-columns: 260px 1fr; gap: 3rem; } .with-sidebar--right { grid-template-columns: 1fr 280px; } }
.sticky { position: sticky; top: calc(var(--header-h) + 20px); }
.side-nav { list-style: none; padding: 0; margin: 0 0 1.5rem; display: flex; gap: .4rem; overflow-x: auto; }
.side-nav a { display: block; white-space: nowrap; padding: .55rem .9rem; border-radius: 999px; background: var(--soft); color: var(--muted); font-family: var(--font-head); font-weight: 600; font-size: .85rem; text-decoration: none; border: 1px solid var(--line); }
.side-nav a:hover, .side-nav a.is-active { background: var(--mint); color: var(--teal-700); border-color: #cfe9e1; }
@media (min-width: 1000px) { .side-nav { flex-direction: column; overflow: visible; } .side-nav a { border-radius: 8px; border: 0; border-left: 3px solid transparent; background: none; } .side-nav a.is-active { border-left-color: var(--teal); } }
.side-card { display: none; background: var(--soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; font-size: .9rem; }
.side-card strong { display: block; font-family: var(--font-head); color: var(--navy); margin-bottom: .25rem; }
.side-card p { color: var(--muted); }
.side-card--navy { background: var(--navy); border: 0; color: rgba(255, 255, 255, .8); }
.side-card--navy strong { color: #fff; }
.side-card--navy p { color: rgba(255, 255, 255, .75); }
@media (min-width: 1000px) { .side-card { display: block; } }
.side-link { display: inline-flex; align-items: center; gap: .35rem; margin-top: 1rem; font-size: .85rem; }

.service-list { display: grid; gap: 0; }
.service { display: grid; gap: 1.5rem; align-items: center; padding: 2.5rem 0; border-bottom: 1px solid var(--line); }
.service:first-child { padding-top: 0; }
.service:last-child { border-bottom: 0; }
.service__media img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.service__body h2 { margin-top: .75rem; }
.service__body p { color: var(--muted); }
@media (min-width: 760px) { .service { grid-template-columns: 1fr 1.1fr; gap: 2.5rem; } .service--flip .service__media { order: 2; } }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: .75rem; }
.faq { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.faq summary { list-style: none; display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding: 1.1rem 1.25rem; cursor: pointer; font-family: var(--font-head); font-weight: 700; color: var(--navy); font-size: .98rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq__chev { color: var(--muted); transition: transform .2s; }
.faq[open] .faq__chev { transform: rotate(180deg); }
.faq[open] summary { color: var(--teal-700); }
.faq__answer { padding: 0 1.25rem 1.1rem; color: var(--muted); }
.faq__answer p { margin: 0; }
.faq-group + .faq-group { margin-top: 2.5rem; }
.search-box { position: relative; display: flex; align-items: center; margin-bottom: 1.25rem; }
.search-box .icon { position: absolute; left: 14px; color: var(--muted); pointer-events: none; }
.search-box input { width: 100%; padding: .8rem 1rem .8rem 2.5rem; border-radius: 10px; border: 1px solid var(--line); background: #fff; font: inherit; font-size: .92rem; }
.search-box input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(74, 166, 145, .18); }
.empty-note { color: var(--muted); }

/* ---------- Blog ---------- */
.pills { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .5rem; margin-bottom: 1.5rem; scrollbar-width: thin; }
.pill { white-space: nowrap; padding: .5rem 1rem; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--muted); font-family: var(--font-head); font-weight: 600; font-size: .85rem; text-decoration: none; }
.pill span { opacity: .6; font-weight: 400; }
.pill:hover { color: var(--teal-700); border-color: #cfe9e1; }
.pill.is-active { background: var(--teal); border-color: var(--teal); color: #fff; }
.results-note { color: var(--muted); font-size: .9rem; }
.empty-state { text-align: center; background: #fff; border-radius: var(--radius); padding: 3rem 1.5rem; color: var(--muted); border: 1px solid var(--line); }
.empty-state .icon { color: var(--teal); margin-bottom: .75rem; }
.pagination { display: flex; justify-content: center; align-items: center; gap: 1.5rem; margin-top: 2.5rem; font-family: var(--font-head); font-size: .88rem; }
.pagination a { font-weight: 700; text-decoration: none; }
.pagination span { color: var(--muted); }

/* Single post: article on the right, colour-coded categories and a consult card on the left.
   On small screens the article comes first and the sidebar follows it. */
.article-layout { display: grid; gap: 2.5rem; padding-top: clamp(1.5rem, 4vw, 2.75rem); padding-bottom: 2.5rem; }
.article-layout > * { min-width: 0; }
@media (min-width: 1000px) {
  .article-layout { grid-template-columns: 270px minmax(0, 1fr); gap: 3rem; }
  .article-side { grid-column: 1; grid-row: 1; }
  .article { grid-column: 2; max-width: 820px; }
}
.article { padding: 0; }
.article .breadcrumbs ol { margin-bottom: 1.1rem; font-size: .8rem; }
.article .breadcrumbs li + li::before { content: "›"; opacity: .6; }
.article__header .tag { margin-bottom: 1rem; padding: .35rem .8rem; border-radius: 6px; background: #e6eef8; color: var(--navy); letter-spacing: .08em; }
.article__header .tag:hover { background: var(--navy); color: #fff; }
.article h1 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); font-weight: 800; line-height: 1.16; letter-spacing: -.015em; color: var(--navy); margin-bottom: .9rem; }
.article__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; color: var(--muted); font-size: .85rem; }
.article__image { margin: 1.75rem 0 2rem; padding: 10px; background: #fff; border-radius: calc(var(--radius) + 6px); box-shadow: var(--shadow-lg); }
.article__image img { border-radius: var(--radius); width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

/* Category list: every category carries its own Livia colour in --c. */
.cat-box { margin-bottom: 1.5rem; }
.cat-box__title { display: flex; align-items: center; gap: .5rem; margin: 0 0 .9rem; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: #C2588F; }
.cat-box__title::after { content: ""; flex: 1; height: 2px; border-radius: 2px; background: linear-gradient(90deg, #E9B2D2, transparent); }
.cat-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.cat-link { --tint: color-mix(in srgb, var(--c) 12%, #fff); position: relative; display: flex; align-items: center; gap: .7rem; padding: .6rem .7rem .6rem .6rem; border-radius: 10px; background: #fff; border: 1px solid var(--line); color: var(--ink); font-family: var(--font-head); font-weight: 600; font-size: .86rem; text-decoration: none; overflow: hidden; transition: transform .2s, border-color .2s, box-shadow .2s, background .2s; }
.cat-link::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--c); transform: scaleY(0); transition: transform .2s; }
.cat-link__icon { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 8px; background: var(--tint); color: var(--c); transition: background .2s, color .2s; }
.cat-link__name { flex: 1; }
.cat-link__count { min-width: 26px; padding: .1rem .45rem; border-radius: 999px; background: var(--tint); color: var(--c); font-size: .75rem; font-weight: 700; text-align: center; }
.cat-link:hover { transform: translateX(4px); border-color: color-mix(in srgb, var(--c) 40%, #fff); box-shadow: 0 6px 16px color-mix(in srgb, var(--c) 18%, transparent); }
.cat-link:hover::before { transform: scaleY(1); }
.cat-link:hover .cat-link__icon { background: var(--c); color: #fff; }
.cat-link.is-current { background: linear-gradient(120deg, var(--c), color-mix(in srgb, var(--c) 65%, #4AA691)); border-color: transparent; color: #fff; box-shadow: 0 10px 22px color-mix(in srgb, var(--c) 35%, transparent); }
.cat-link.is-current .cat-link__icon { background: rgba(255, 255, 255, .2); color: #fff; }
.cat-link.is-current .cat-link__count { background: #fff; color: var(--c); }
.cat-link.is-current::before { display: none; }

/* Consult card under the categories. */
/* The categories scroll away; the consult card stays in view beside the article. */
.article-side { display: flex; flex-direction: column; }
.article-side .sticky { position: static; flex: 1; }
@media (min-width: 1000px) { .article-side .consult-card { position: sticky; top: calc(var(--header-h) + 20px); } }
.consult-card { position: relative; overflow: hidden; padding: 1.6rem 1.4rem 1.4rem; border-radius: 16px; color: rgba(255, 255, 255, .85); background: radial-gradient(120% 80% at 100% 0%, rgba(233, 178, 210, .35), transparent 55%), linear-gradient(160deg, #1A4A7A 0%, var(--navy) 55%, #1F5F55 100%); box-shadow: 0 18px 40px rgba(18, 53, 91, .3); font-size: .88rem; }
.consult-card::before { content: ""; position: absolute; inset: 8px; border: 1.5px dashed rgba(255, 255, 255, .25); border-radius: 11px; pointer-events: none; }
.consult-card__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; margin-bottom: .9rem; box-shadow: 0 0 0 6px rgba(255, 255, 255, .06); }
.consult-card__pill { display: inline-block; padding: .25rem .7rem; border-radius: 999px; background: #E9B2D2; color: var(--navy); font-family: var(--font-head); font-weight: 800; font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; }
.consult-card__title { margin: .6rem 0 .4rem; color: #fff; font-size: 1.2rem; font-weight: 800; line-height: 1.25; }
.consult-card p { margin: 0 0 1.25rem; color: rgba(255, 255, 255, .78); }
.consult-card__btn { position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; gap: .45rem; width: 100%; padding: .8rem 1rem; border: 0; border-radius: 999px; background: #fff; color: var(--navy); font-family: var(--font-head); font-weight: 800; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; transition: transform .2s, background .2s, color .2s; }
.consult-card__btn:hover { background: var(--teal); color: #fff; transform: translateY(-2px); }
.consult-card__btn .icon { transition: transform .2s; }
.consult-card__btn:hover .icon { transform: translateX(3px); }
.consult-card__pulse { position: absolute; left: 0; right: 0; bottom: 64px; width: 100%; height: 40px; opacity: .18; pointer-events: none; }
.consult-card__pulse path { fill: none; stroke: #7fd6c0; stroke-width: 2; stroke-dasharray: 600; animation: hero-trace 7s linear infinite; }
@media (prefers-reduced-motion: reduce) { .consult-card__pulse path { animation: none; } }
.article__disclaimer { display: flex; gap: .5rem; align-items: flex-start; margin: 2rem 0; padding: 1rem 1.1rem; border-radius: var(--radius-sm); background: var(--soft); border: 1px solid var(--line); font-size: .88rem; color: var(--muted); }
.article__disclaimer .icon { color: var(--teal); margin-top: 3px; }
.article__tags { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: 1.5rem 0; font-size: .9rem; }
.article__tags strong { font-family: var(--font-head); color: var(--navy); }
.share { display: flex; gap: .6rem; align-items: center; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.share strong { font-family: var(--font-head); color: var(--navy); font-size: .9rem; }
.share a { display: inline-flex; width: 38px; height: 38px; border-radius: 50%; background: var(--soft); color: var(--navy); align-items: center; justify-content: center; }
.share a:hover { background: var(--teal); color: #fff; }
.preview-bar { background: #FFF4D6; color: #7A5300; text-align: center; padding: .6rem 1rem; font-size: .88rem; }

/* ---------- Certificate card ---------- */
.cert { display: flex; flex-direction: column; gap: 1.25rem; padding: 1.75rem; border-radius: 16px; border: 1px solid #cfe9e1; background: linear-gradient(135deg, #fff, var(--mint)); box-shadow: var(--shadow); margin-bottom: 2.5rem; }
.cert__badge { display: inline-flex; width: 76px; height: 76px; border-radius: 20px; background: var(--teal); color: #fff; align-items: center; justify-content: center; flex: none; }
.cert h2 { margin-bottom: .2rem; }
.cert__issuer { color: var(--muted); margin-bottom: 1rem; }
.cert__fields { display: grid; gap: .75rem; margin: 0; }
.cert__fields div { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: .7rem .9rem; }
.cert__fields dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.cert__fields dd { margin: 0; font-family: var(--font-head); font-weight: 700; color: var(--navy); }
@media (min-width: 640px) { .cert { flex-direction: row; } .cert__fields { grid-template-columns: 1fr 1fr; } }

/* ---------- Forms ---------- */
.form-card { background: #fff; border-radius: 16px; padding: clamp(1.25rem, 3vw, 2rem); box-shadow: var(--shadow-lg); color: var(--ink); }
.form-card--flat { box-shadow: none; border: 1px solid var(--line); background: var(--soft); }
.form-grid { display: grid; gap: 1rem; }
@media (min-width: 600px) { .form-grid { grid-template-columns: 1fr 1fr; } .field--full { grid-column: 1 / -1; } }
.field label { display: block; font-family: var(--font-head); font-weight: 700; font-size: .82rem; color: var(--navy); margin-bottom: .35rem; }
.field input, .field select, .field textarea { width: 100%; padding: .75rem .9rem; border-radius: 10px; border: 1px solid #cfd6de; background: #fff; font: inherit; font-size: .95rem; color: var(--ink); }
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(74, 166, 145, .18); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--danger); }
.field__error { display: block; color: var(--danger); font-size: .8rem; margin-top: .3rem; }
.check { display: flex; gap: .6rem; align-items: flex-start; font-size: .85rem; color: var(--muted); margin: 1.1rem 0; }
.check input { margin-top: .25rem; width: 18px; height: 18px; accent-color: var(--teal); flex: none; }
.form-note { display: flex; gap: .45rem; font-size: .8rem; color: var(--muted); }
.form-note .icon { color: #B7791F; margin-top: 2px; }
.contact-lines { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .75rem; }
.contact-lines li { display: flex; gap: .6rem; align-items: center; }
.contact-lines .icon { color: #7fd6c0; }
.section--navy a:not(.btn) { color: #9fe0cf; }
.contact-grid { display: grid; gap: 2.5rem; }
@media (min-width: 980px) { .contact-grid { grid-template-columns: 1.4fr 1fr; gap: 3.5rem; } }
.contact-cards { list-style: none; padding: 0; margin: 0; display: grid; gap: .8rem; }
.contact-card { display: flex; gap: 1rem; align-items: center; padding: 1.1rem; border-radius: var(--radius); background: var(--soft); border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: background .2s, border-color .2s; }
a.contact-card:hover { background: var(--mint); border-color: #cfe9e1; }
.contact-card small { display: block; font-family: var(--font-head); font-weight: 700; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--navy); }
.contact-card strong { display: block; color: var(--teal-600); }
.contact-card > span > span { font-size: .82rem; color: var(--muted); }
.map-embed iframe { display: block; width: 100%; height: 360px; border: 0; filter: grayscale(.15); }

/* ---------- PIMS / HMIS illustrations ---------- */
.mock { background: #fff; border-radius: 16px; box-shadow: var(--shadow-lg); overflow: hidden; color: var(--ink); max-width: 520px; width: 100%; justify-self: center; }
.mock__bar { display: flex; align-items: center; gap: 6px; padding: .6rem .9rem; background: var(--soft); border-bottom: 1px solid var(--line); }
.mock__bar i { width: 10px; height: 10px; border-radius: 50%; background: #e2e8f0; }
.mock__bar i:first-child { background: #f87171; } .mock__bar i:nth-child(2) { background: #fbbf24; } .mock__bar i:nth-child(3) { background: #34d399; }
.mock__bar span { margin-left: .6rem; font-size: .72rem; color: var(--muted); }
.mock__body { padding: 1.25rem; }
.mock__kpis { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin-bottom: 1.1rem; }
.mock__kpis--3 { grid-template-columns: repeat(3, 1fr); }
.mock__kpis div { background: var(--mint); border-radius: 10px; padding: .75rem; }
.mock__kpis small { display: block; font-size: .7rem; color: var(--muted); }
.mock__kpis strong { font-family: var(--font-head); font-size: 1.25rem; color: var(--navy); }
.mock__kpis em { font-style: normal; font-size: .7rem; font-weight: 700; color: var(--teal-600); margin-left: .3rem; }
.mock__label { display: block; font-family: var(--font-head); font-weight: 700; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: .5rem; }
.mock__list { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.mock__list li { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .55rem .7rem; border: 1px solid var(--line); border-radius: 8px; font-size: .8rem; }
.mock__list b { font-size: .75rem; color: var(--navy); }
.mock__note { margin: .9rem 0 0; font-size: .68rem; color: #94a3b8; text-align: right; }
.pill-status { padding: .15rem .5rem; border-radius: 999px; font-size: .68rem !important; }
.pill-status--wait { background: #FEF3C7; color: #92400E !important; }
.pill-status--busy { background: #DBEAFE; color: #1E40AF !important; }
.pill-status--done { background: #DCFCE7; color: #166534 !important; }
.receipt { background: #fff; color: var(--ink); border-radius: 16px; padding: 1.5rem; box-shadow: var(--shadow-lg); max-width: 380px; width: 100%; justify-self: center; font-size: .85rem; }
.receipt__head { display: flex; justify-content: space-between; align-items: center; padding-bottom: .75rem; border-bottom: 1px dashed #cbd5e1; font-family: var(--font-head); font-weight: 700; color: var(--navy); }
.receipt__head em { font-style: normal; font-size: .7rem; color: var(--teal-600); background: var(--mint); padding: .2rem .5rem; border-radius: 999px; }
.receipt__title { font-weight: 700; margin: .9rem 0 .5rem; }
.receipt ul { padding-left: 1rem; color: var(--muted); }
.receipt__total { display: flex; justify-content: space-between; border-top: 1px dashed #cbd5e1; padding-top: .7rem; }
.receipt__meta { font-size: .72rem; color: var(--muted); }
.receipt__ok { display: flex; align-items: center; gap: .35rem; color: var(--teal-700); font-weight: 700; margin: 0; }
.logo-strip { background: var(--soft); border-bottom: 1px solid var(--line); padding: 1.5rem 0; text-align: center; }
.logo-strip p { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; margin-bottom: .75rem; }
.logo-strip ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }
.logo-strip li { padding: .35rem .85rem; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-family: var(--font-head); font-weight: 700; font-size: .8rem; color: var(--navy); }
.service-catalog__title { font-family: var(--font-head); font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.service-catalog ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.service-catalog li { display: flex; justify-content: space-between; padding: .65rem .8rem; border-radius: 8px; background: var(--soft); font-size: .9rem; }
.service-catalog small { color: var(--muted); }
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.compare { width: 100%; border-collapse: collapse; background: #fff; font-size: .9rem; min-width: 560px; }
.compare th, .compare td { padding: .8rem 1rem; border-bottom: 1px solid var(--line); text-align: center; }
.compare th[scope="row"], .compare thead th:first-child { text-align: left; font-family: var(--font-body); font-weight: 600; color: var(--ink); }
.compare thead th { background: var(--navy); color: #fff; font-family: var(--font-head); font-size: .8rem; }
.compare thead th:last-child { background: var(--teal); }
.compare__us { background: var(--mint); }
.compare .yes { color: var(--teal); }
.compare .no { color: #94a3b8; }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer-bg, var(--teal-700)); color: rgba(255, 255, 255, .8); font-size: .92rem; }
.site-footer__grid { display: grid; gap: 2.25rem; padding: 3.5rem var(--footer-pad, 20px) 2.5rem; }
/* Footer options (Customise → Livia: header & footer → Footer). */
.site-footer .container { padding-left: var(--footer-pad, 20px); padding-right: var(--footer-pad, 20px); }
.site-footer--full .container { max-width: none; }
.site-footer__logo { display: inline-flex; line-height: 0; text-decoration: none !important; }
.site-footer__logo .footer-logo { height: var(--footer-logo-h, 40px); width: auto; max-width: 100%; }
.site-footer__logo .logo__mark { width: calc(var(--footer-logo-h, 40px) * .85); height: calc(var(--footer-logo-h, 40px) * .85); }
.site-footer__logo .logo__text { font-size: calc(var(--footer-logo-h, 40px) * .54); }
@media (min-width: 700px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .site-footer__grid { grid-template-columns: 1.5fr 1fr 1fr 1.3fr; } }
.site-footer a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
/* Footer link lists are always visible (the class "menu" is reserved for the header dropdowns). */
.site-footer .footer-links { position: static; min-width: 0; padding: 0; background: none; border: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; }
.site-footer__brand p { margin: 1rem 0 1.25rem; max-width: 340px; }
.site-footer__heading { color: #fff; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 1rem; }
.site-footer__heading--sm { margin-top: 1.5rem; }
/* Footer affiliate strip */
.footer-aff { position: relative; overflow: hidden; display: grid; gap: 1rem; align-items: center; margin: 2.5rem 0 0; padding: 1.25rem; border-radius: 18px; background: linear-gradient(120deg, rgba(255, 255, 255, .12), rgba(233, 178, 210, .18)); border: 1px solid rgba(255, 255, 255, .18); }
.footer-aff::after { content: ""; position: absolute; right: -40px; top: -60px; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(circle, rgba(233, 178, 210, .35), transparent 70%); pointer-events: none; }
.footer-aff__icon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: var(--pink); color: var(--navy); }
.footer-aff__text strong { display: block; color: #fff; font-family: var(--font-head); font-size: 1.1rem; }
.footer-aff__text span { color: rgba(255, 255, 255, .85); font-size: .92rem; }
.footer-aff__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; position: relative; z-index: 1; }
.footer-aff__btn { background: #fff; color: var(--teal-700) !important; border-color: #fff; text-decoration: none !important; display: inline-flex; align-items: center; gap: .4rem; }
.footer-aff__btn:hover { background: var(--pink); border-color: var(--pink); color: var(--navy) !important; }
.footer-aff__login { font-size: .85rem; font-weight: 600; }
@media (min-width: 900px) { .footer-aff { grid-template-columns: auto 1fr auto; padding: 1.25rem 1.5rem; } }
.menu__aff { border-top: 1px solid rgba(255, 255, 255, .15); margin-top: .25rem; padding-top: .7rem !important; }
@media (min-width: 1100px) { .menu__aff { border-top-color: var(--line); } }
.site-footer__contact li a, .site-footer__contact li span { display: inline-flex; gap: .55rem; align-items: flex-start; }
.site-footer__contact .icon { margin-top: 3px; }
.socials { display: flex !important; gap: .5rem !important; }
.socials a { display: inline-flex; width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, .14); align-items: center; justify-content: center; color: #fff; }
.socials a:hover { background: #fff; color: var(--teal-700); }
.site-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .15); font-size: .8rem; background: var(--footer-bottom-bg, transparent); }
.site-footer__bottom-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; padding-top: 1.1rem; padding-bottom: 1.1rem; }
.site-footer__bottom p { margin: 0; }
.heart { color: var(--pink); fill: var(--pink); }

/* ---------- Floating widgets ---------- */
@media (max-width: 560px) { :root { --wa-size: 56px; --wa-gap: 14px; } }
@media (max-height: 480px) { :root { --wa-size: 48px; --wa-gap: 10px; } }
.wa-float { position: fixed; right: var(--wa-gap); bottom: calc(var(--wa-gap) + env(safe-area-inset-bottom)); z-index: 96; }
.wa-float__btn { position: relative; width: var(--wa-size); height: var(--wa-size); padding: 0; border-radius: 50%; border: 0; background: #25D366; color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; box-shadow: 0 8px 24px rgba(37, 211, 102, .45); transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.wa-float__btn:hover { transform: scale(1.06); }
.wa-float__btn:active { transform: scale(.93); box-shadow: 0 4px 12px rgba(37, 211, 102, .5); }
.wa-float__btn:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }
.wa-float__btn[aria-expanded="true"] { background: #075E54; box-shadow: 0 8px 24px rgba(7, 94, 84, .4); }
.wa-float__close { display: none; }
.wa-float__btn[aria-expanded="true"] .wa-float__open { display: none; }
.wa-float__btn[aria-expanded="true"] .wa-float__close { display: block; }
.wa-float__panel { position: absolute; right: 0; bottom: calc(100% + 12px); width: min(340px, calc(100vw - 2 * var(--wa-gap))); max-height: calc(100vh - var(--wa-size) - 48px); max-height: calc(100dvh - var(--wa-size) - 48px); overflow-y: auto; overscroll-behavior: contain; background: #fff; border-radius: 16px; box-shadow: var(--shadow-lg); transform-origin: bottom right; animation: wa-in .18s ease-out; }
@keyframes wa-in { from { opacity: 0; transform: translateY(8px) scale(.97); } }
.wa-float__head { background: #075E54; color: #fff; padding: 1rem 1.1rem; }
.wa-float__head strong { display: block; font-family: var(--font-head); }
.wa-float__head span { font-size: .8rem; opacity: .85; }
.wa-float__panel ul { list-style: none; margin: 0; padding: .5rem; }
.wa-float__panel a { display: flex; justify-content: space-between; align-items: center; min-height: 48px; padding: .6rem .75rem; touch-action: manipulation; border-radius: 10px; color: var(--ink); text-decoration: none; font-size: .9rem; font-weight: 600; }
.wa-float__panel a:hover { background: #E7F8EE; }
/* Sits directly above the WhatsApp button, centred on it. */
.to-top { position: fixed; right: calc(var(--wa-gap) + (var(--wa-size) - 44px) / 2); bottom: calc(var(--wa-gap) + var(--wa-size) + 12px + env(safe-area-inset-bottom)); z-index: 90; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--navy); color: #fff; display: inline-flex; align-items: center; justify-content: center; box-shadow: var(--shadow); transition: transform .2s, background .2s; }
.to-top:hover { background: var(--teal-700); transform: translateY(-2px); }
.to-top:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
body.wa-open .to-top { opacity: 0; pointer-events: none; }
/* Phones: the chat panel fills the screen, so step aside while it is open. */
@media (max-width: 560px) {
  body:has(.lv-chat.is-open) .wa-float, body:has(.lv-chat.is-open) .to-top { opacity: 0; pointer-events: none; }
}
/* The hero's slide controls stay clear of the floating buttons on phones. */
@media (max-width: 719px) {
  .hero__nav { bottom: 92px; }
  .hero__inner, .hero__split { padding-bottom: calc(clamp(1.25rem, 4vh, 3rem) + 136px); }
}
.toasts { position: fixed; top: calc(var(--header-h) + 16px); right: 16px; left: 16px; z-index: 200; display: grid; gap: .6rem; justify-items: end; pointer-events: none; }
.toast { pointer-events: auto; display: flex; gap: .7rem; align-items: flex-start; max-width: 460px; padding: .95rem 1rem; border-radius: 12px; background: #fff; box-shadow: var(--shadow-lg); border-left: 5px solid var(--teal); font-size: .92rem; animation: pop .3s ease-out; }
.toast--error { border-left-color: var(--danger); }
.toast--success .icon:first-child { color: var(--teal); }
.toast--error .icon:first-child { color: var(--danger); }
.toast__close { border: 0; background: none; color: var(--muted); padding: 0; margin-left: auto; }

/* ---------- Error / message pages ---------- */
.error-page { padding: clamp(4rem, 10vw, 7rem) 0; }
.error-page__code { font-family: var(--font-head); font-weight: 800; font-size: clamp(4rem, 12vw, 7rem); line-height: 1; color: var(--mint); -webkit-text-stroke: 2px var(--teal); margin-bottom: 1rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ==========================================================================
   WordPress integration
   ========================================================================== */
.alignwide { max-width: min(1100px, 100%); margin-left: auto; margin-right: auto; }
.alignfull { max-width: 100%; }
.alignleft { float: left; margin: .4rem 1.5rem 1rem 0; }
.alignright { float: right; margin: .4rem 0 1rem 1.5rem; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text, .wp-element-caption, figcaption { font-size: .85rem; color: var(--muted); text-align: center; margin-top: .5rem; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wp-block-quote { border-left: 4px solid var(--teal); padding-left: 1.25rem; margin-left: 0; font-style: italic; }
.wp-block-image img { border-radius: var(--radius); }
.wp-block-button__link { display: inline-flex; align-items: center; min-height: 46px; padding: .7rem 1.4rem; border-radius: var(--radius-sm); background: var(--teal); color: #fff; font-family: var(--font-head); font-weight: 700; text-decoration: none; }
.wp-block-table table { width: 100%; border-collapse: collapse; }
.wp-block-table td, .wp-block-table th { border: 1px solid var(--line); padding: .6rem .75rem; }
.sticky .post-card { outline: 2px solid var(--teal); }
.custom-logo { max-height: 44px; width: auto; }

/* Blog layout */
.blog-layout { display: grid; gap: 2.5rem; }
@media (min-width: 1000px) { .blog-layout { grid-template-columns: 1fr 300px; gap: 3rem; } }
.widget { background: var(--soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; margin-bottom: 1.25rem; }
.widget__title { font-size: .95rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .75rem; }
.widget ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.widget a { text-decoration: none; }
.widget a:hover { text-decoration: underline; }
.search-form { display: flex; gap: .5rem; }
.search-form label { flex: 1; }
.search-form input[type="search"] { width: 100%; padding: .7rem .9rem; border: 1px solid #cfd6de; border-radius: 10px; font: inherit; }
.search-form input[type="search"]:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(74, 166, 145, .18); }
.search-form button { border: 0; background: var(--teal); color: #fff; border-radius: 10px; padding: 0 1rem; font-family: var(--font-head); font-weight: 700; cursor: pointer; }
.nav-links { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center; margin-top: 2.5rem; }
.nav-links .page-numbers { display: inline-flex; min-width: 42px; height: 42px; align-items: center; justify-content: center; padding: 0 .75rem; border: 1px solid var(--line); border-radius: 10px; background: #fff; text-decoration: none; font-family: var(--font-head); font-weight: 700; font-size: .9rem; color: var(--navy); }
.nav-links .page-numbers:hover { border-color: var(--teal); color: var(--teal-600); }
.nav-links .page-numbers.current { background: var(--teal); border-color: var(--teal); color: #fff; }
.post-nav { display: grid; gap: 1rem; margin-top: 2.5rem; }
@media (min-width: 700px) { .post-nav { grid-template-columns: 1fr 1fr; } }
.post-nav a { display: block; padding: 1.1rem 1.25rem; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; background: #fff; }
.post-nav a:hover { border-color: var(--teal); }
.post-nav small { display: block; color: var(--muted); font-size: .8rem; margin-bottom: .2rem; }
.post-nav strong { color: var(--navy); font-family: var(--font-head); }
.post-nav--next { text-align: right; }

/* Author box and article extras */
.author-box { display: flex; gap: 1rem; align-items: flex-start; background: var(--soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; margin: 2rem 0; }
.author-box img { border-radius: 50%; }
.author-box h2 { font-size: 1rem; margin-bottom: .25rem; }
.author-box p { margin: 0; font-size: .9rem; color: var(--muted); }
.reading-bar { position: fixed; top: 0; left: 0; height: 3px; background: var(--teal); width: 0; z-index: 200; transition: width .1s linear; }

/* ==========================================================================
   Awards & recognition
   ========================================================================== */
.awards { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 700px) { .awards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .awards { grid-template-columns: repeat(3, 1fr); } }
.award { display: flex; gap: 1rem; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow-sm); position: relative; overflow: hidden; transition: transform .2s, box-shadow .2s; }
.award::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: linear-gradient(180deg, var(--teal), var(--pink)); }
.award:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.award__badge { flex: none; width: 64px; height: 64px; border-radius: 16px; background: linear-gradient(135deg, var(--mint), #fff); color: var(--teal-600); display: flex; align-items: center; justify-content: center; overflow: hidden; border: 1px solid var(--line); }
.award__badge img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.award__year { display: inline-block; font-family: var(--font-head); font-weight: 800; font-size: .72rem; letter-spacing: .08em; color: var(--teal-600); background: var(--mint); padding: .15rem .5rem; border-radius: 999px; margin-bottom: .35rem; }
.award__issuer { font-size: .82rem; color: var(--muted); margin: 0 0 .4rem; font-weight: 600; }
.award__body p { font-size: .9rem; color: var(--muted); margin-bottom: .5rem; }
.award__body h3 { margin: 0 0 .15rem; }

/* ---------- Awards gallery (About page, [livia_awards layout="gallery"]) ---------- */
.agallery__filters { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin: -1rem 0 2rem; }
.agallery__filter { display: inline-flex; align-items: center; gap: .45rem; min-height: 40px; padding: .4rem 1rem; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--navy); font: 700 .82rem var(--font-head); cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s; }
.agallery__filter span { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 .35rem; border-radius: 999px; background: var(--mint); color: var(--teal-600); font-size: .72rem; }
.agallery__filter:hover { border-color: var(--teal); transform: translateY(-1px); }
.agallery__filter.is-active { background: var(--teal); border-color: var(--teal); color: #fff; }
.agallery__filter.is-active span { background: rgba(255, 255, 255, .22); color: #fff; }

.agallery__grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); grid-auto-rows: minmax(190px, auto); grid-auto-flow: dense; }
.agallery__tile { position: relative; grid-row: span 2; border-radius: 20px; overflow: hidden; isolation: isolate; box-shadow: 0 10px 30px rgba(18, 53, 91, .12); transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s; }
.agallery__tile[hidden] { display: none; }
.agallery__tile:hover { transform: translateY(-6px); box-shadow: 0 22px 44px rgba(18, 53, 91, .2); }
/* A sheen that crosses the tile on hover. */
.agallery__tile::after { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .28) 50%, transparent 65%); transform: translateX(-120%); transition: transform .9s ease; }
.agallery__tile:hover::after { transform: translateX(120%); }
@media (min-width: 900px) { .agallery__tile.is-feature { grid-column: span 2; } }

/* Photo tiles. */
.agallery__media { position: absolute; inset: 0; display: block; color: #fff; }
.agallery__img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .8, .2, 1); }
.agallery__tile:hover .agallery__img { transform: scale(1.06); }
.has-photo .agallery__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(12, 40, 70, .55) 62%, rgba(12, 40, 70, .9)); }
.has-photo .agallery__body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; pointer-events: none; }
.has-photo .agallery__link { pointer-events: auto; }
.agallery__zoom { position: absolute; top: 14px; right: 14px; z-index: 2; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .9); color: var(--navy); opacity: 0; transform: scale(.7); transition: opacity .25s, transform .25s; }
.agallery__tile:hover .agallery__zoom, .agallery__media:focus-visible .agallery__zoom { opacity: 1; transform: none; }
.agallery__count { position: absolute; top: 14px; left: 14px; z-index: 2; display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .65rem; border-radius: 999px; background: rgba(12, 40, 70, .6); backdrop-filter: blur(6px); font: 700 .72rem var(--font-head); }
.agallery__media:focus-visible { outline: 3px solid var(--pink); outline-offset: -3px; }

/* Tiles without a photo yet: a Livia-coloured card with a seal. */
.no-photo { display: flex; flex-direction: column; color: #fff; background: radial-gradient(120% 80% at 85% 0%, rgba(255, 255, 255, .18), transparent 55%), linear-gradient(150deg, #2aa18a, #1F5F55 55%, #12355B); }
.agallery__tile--award.no-photo { background: radial-gradient(120% 80% at 85% 0%, rgba(255, 255, 255, .2), transparent 55%), linear-gradient(150deg, #e9a23b, #c2588f 55%, #12355B); }
.agallery__tile--recognition.no-photo { background: radial-gradient(120% 80% at 85% 0%, rgba(255, 255, 255, .2), transparent 55%), linear-gradient(150deg, #d77fb1, #7b5cc4 55%, #12355B); }
.agallery__tile--membership.no-photo { background: radial-gradient(120% 80% at 85% 0%, rgba(255, 255, 255, .2), transparent 55%), linear-gradient(150deg, #3bb0e4, #2B8CC4 55%, #12355B); }
.agallery__seal { position: relative; display: grid; place-items: center; width: 108px; height: 108px; margin: 1.6rem 1.5rem .25rem; flex: none; }
.agallery__seal::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px dashed rgba(255, 255, 255, .55); animation: agallery-spin 24s linear infinite; }
.agallery__seal span { display: grid; place-items: center; width: 78px; height: 78px; border-radius: 50%; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .45); box-shadow: inset 0 0 0 6px rgba(255, 255, 255, .08), 0 10px 24px rgba(0, 0, 0, .18); backdrop-filter: blur(4px); }
.no-photo .agallery__body { margin-top: auto; }

.agallery__body { padding: 1.25rem 1.4rem 1.4rem; }
.agallery__meta { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 .55rem; }
.agallery__kind, .agallery__year { display: inline-block; padding: .2rem .6rem; border-radius: 999px; font: 700 .68rem var(--font-head); letter-spacing: .08em; text-transform: uppercase; background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .35); color: #fff; }
.agallery__year { background: var(--pink); border-color: var(--pink); color: var(--navy); }
.agallery__title { margin: 0 0 .2rem; color: #fff; font-size: 1.12rem; line-height: 1.25; }
.is-feature .agallery__title { font-size: clamp(1.2rem, 2vw, 1.5rem); }
.agallery__issuer { margin: 0 0 .5rem; font-size: .82rem; font-weight: 600; color: rgba(255, 255, 255, .85); }
.agallery__text { margin: 0 0 .6rem; font-size: .86rem; line-height: 1.5; color: rgba(255, 255, 255, .85); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.has-photo .agallery__text { -webkit-line-clamp: 2; }
.agallery__link { display: inline-flex; align-items: center; gap: .35rem; font: 700 .82rem var(--font-head); color: #fff; text-decoration: none; border-bottom: 2px solid rgba(255, 255, 255, .5); padding-bottom: 2px; }
.agallery__link:hover { border-color: #fff; color: #fff; }

/* Staggered reveal as the gallery scrolls into view. */
@media (prefers-reduced-motion: no-preference) {
  .js .agallery__tile { opacity: 0; transform: translateY(28px) scale(.97); }
  .js .agallery__tile.is-in { opacity: 1; transform: none; transition: opacity .6s ease calc(var(--i, 0) * 90ms), transform .7s cubic-bezier(.2, .8, .2, 1) calc(var(--i, 0) * 90ms), box-shadow .35s; }
  .js .agallery__tile.is-in:hover { transform: translateY(-6px); transition-delay: 0s; }
}
@media (prefers-reduced-motion: reduce) { .agallery__seal::before { animation: none; } }
@keyframes agallery-spin { to { transform: rotate(360deg); } }

/* ---------- Certificate copy on compliance pages ---------- */
.cert-show { max-width: 780px; margin: 0 auto 2.5rem; }
.cert-show .cert { margin-bottom: 0; }
.cert-show--copy { max-width: none; display: grid; gap: 2rem; align-items: start; }
.cert-show--copy .cert { flex-direction: column; }
@media (min-width: 960px) {
  .cert-show--copy { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 3rem; }
  .cert-show--copy .cert { position: sticky; top: calc(var(--header-h) + 24px); }
}
.cert__actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.25rem; }
.cert__actions .btn { display: inline-flex; align-items: center; gap: .4rem; }

.cert-copy { margin: 0; }
/* A sheet of paper with a second sheet peeking out behind it. */
.cert-copy__paper { position: relative; padding: 14px; border-radius: 10px; background: #fff; border: 1px solid var(--line); box-shadow: 0 2px 4px rgba(18, 53, 91, .06), 0 24px 50px rgba(18, 53, 91, .16); transition: transform .35s, box-shadow .35s; }
.cert-copy__paper::before { content: ""; position: absolute; inset: 10px -8px -10px 8px; z-index: -1; border-radius: 10px; background: var(--mint); border: 1px solid #cfe9e1; transform: rotate(1.6deg); }
.cert-copy__paper:hover { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(18, 53, 91, .06), 0 32px 60px rgba(18, 53, 91, .2); }
.cert-copy__link { position: relative; display: block; border-radius: 4px; overflow: hidden; outline-offset: 4px; }
.cert-copy__img { display: block; width: 100%; height: auto; max-height: 80vh; object-fit: contain; background: #fafafa; }
.cert-copy__zoom { position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .85rem; border-radius: 999px; background: rgba(18, 53, 91, .85); color: #fff; font: 700 .76rem var(--font-head); opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .25s; }
.cert-copy__link:hover .cert-copy__zoom, .cert-copy__link:focus-visible .cert-copy__zoom { opacity: 1; transform: none; }
@media (hover: none) { .cert-copy__zoom { opacity: 1; transform: none; } }
.cert-copy__pdf { display: block; width: 100%; aspect-ratio: 1 / 1.414; border: 0; border-radius: 4px; background: #fafafa; }
.cert-copy__fallback { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6rem; height: 100%; color: var(--teal-600); font-weight: 700; }
.cert-copy__empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6rem; aspect-ratio: 1 / 1.414; max-height: 75vh; margin-inline: auto; padding: 2rem; border: 2px dashed #b9dccf; border-radius: 6px; background: repeating-linear-gradient(135deg, #fbfefd, #fbfefd 12px, #f3faf7 12px, #f3faf7 24px); color: var(--teal-600); text-align: center; }
.cert-copy__empty strong { font-family: var(--font-head); color: var(--navy); font-size: 1.05rem; }
.cert-copy__empty span { max-width: 300px; font-size: .88rem; color: var(--muted); }
.cert-copy figcaption { margin-top: 1rem; text-align: center; font-size: .82rem; color: var(--muted); }

/* ---------- Lightbox (any [data-lightbox] link) ---------- */
.lightbox { width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(8, 24, 40, .92); color: #fff; overflow: hidden; }
.lightbox::backdrop { background: rgba(8, 24, 40, .6); }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox__figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: .9rem; max-width: calc(100vw - 32px); }
.lightbox__img { display: block; max-width: min(1200px, calc(100vw - 32px)); max-height: calc(100vh - 140px); width: auto; height: auto; border-radius: 8px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); background: #fff; }
.lightbox.is-changing .lightbox__img { opacity: 0; transform: scale(.97); }
.lightbox__img { transition: opacity .25s, transform .25s; }
.lightbox__caption { text-align: center; font-size: .9rem; color: rgba(255, 255, 255, .9); max-width: 680px; padding: 0 1rem; }
.lightbox__count { display: block; margin-top: .2rem; font: 700 .72rem var(--font-head); letter-spacing: .1em; color: rgba(255, 255, 255, .6); }
.lightbox__btn { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer; transition: background .2s, color .2s; }
.lightbox__btn:hover, .lightbox__btn:focus-visible { background: #fff; color: var(--navy); }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__prev .icon { transform: rotate(180deg); }
.lightbox__next { right: 16px; top: 50%; transform: translateY(-50%); }
.lightbox--single .lightbox__prev, .lightbox--single .lightbox__next { display: none; }
@media (max-width: 640px) { .lightbox__prev, .lightbox__next { top: auto; bottom: 16px; transform: none; } .lightbox__img { max-height: calc(100vh - 200px); } }

/* ==========================================================================
   Front-end publishing dashboard
   ========================================================================== */
.ld { max-width: 1100px; margin: 0 auto; padding: clamp(1.5rem, 4vw, 3rem) 20px 4rem; }
.ld--narrow { max-width: 460px; }
.ld-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-bottom: 1.5rem; }
.ld-head h2 { margin-bottom: .25rem; }
.ld-muted { color: var(--muted); font-size: .88rem; }
.ld-note { padding: .9rem 1.1rem; border-radius: var(--radius); margin-bottom: 1.25rem; border: 1px solid; font-size: .92rem; }
.ld-note--success { background: #F0FDF4; border-color: #BBF7D0; color: #14532D; }
.ld-note--error { background: #FEF2F2; border-color: #FECACA; color: #7F1D1D; }
.ld-filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.ld-filters input, .ld-filters select { padding: .55rem .8rem; border: 1px solid #cfd6de; border-radius: 10px; font: inherit; background: #fff; }
.ld-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.ld-table { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 640px; }
.ld-table th, .ld-table td { padding: .85rem 1rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.ld-table th { background: var(--soft); font-family: var(--font-head); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.ld-table tr:last-child td { border-bottom: 0; }
.ld-title { font-family: var(--font-head); font-weight: 700; color: var(--navy); text-decoration: none; display: block; }
.ld-title:hover { color: var(--teal-600); }
.ld-table small { display: block; color: var(--muted); font-size: .78rem; }
.ld-actions a { margin-right: .75rem; font-size: .85rem; }
.ld-badge { display: inline-block; padding: .15rem .6rem; border-radius: 999px; font-size: .72rem; font-weight: 700; background: #EEF2F6; color: #475569; }
.ld-badge--publish { background: #DCFCE7; color: #166534; }
.ld-badge--draft { background: #EEF2F6; color: #475569; }
.ld-badge--pending { background: #FEF3C7; color: #92400E; }
.ld-badge--future { background: #DBEAFE; color: #1E40AF; }
.ld-empty { text-align: center; padding: 3rem 1.5rem; background: var(--soft); border-radius: var(--radius); }
.ld-pagination { display: flex; gap: .4rem; justify-content: center; margin-top: 1.5rem; flex-wrap: wrap; }
.ld-pagination .page-numbers { display: inline-flex; min-width: 38px; height: 38px; align-items: center; justify-content: center; padding: 0 .7rem; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; background: #fff; }
.ld-pagination .current { background: var(--teal); color: #fff; border-color: var(--teal); }
.ld-grid { display: grid; gap: 1.5rem; }
@media (min-width: 1000px) { .ld-grid { grid-template-columns: 1fr 320px; align-items: start; } .ld-side { position: sticky; top: calc(var(--header-h) + 16px); } }
.ld-field { display: block; margin-bottom: 1rem; }
.ld-field label { display: block; font-family: var(--font-head); font-weight: 700; font-size: .85rem; color: var(--navy); margin-bottom: .35rem; }
.ld-field input[type="text"], .ld-field input[type="password"], .ld-field input[type="datetime-local"], .ld-field input[type="file"], .ld-field select, .ld-field textarea, .ld-form input[type="text"], .ld-form select, .ld-form textarea { width: 100%; padding: .7rem .9rem; border: 1px solid #cfd6de; border-radius: 10px; font: inherit; background: #fff; }
.ld-field input:focus, .ld-field select:focus, .ld-field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(74, 166, 145, .18); }
.ld-input-lg { font-size: 1.15rem !important; font-family: var(--font-head); font-weight: 700; }
.ld-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; margin-bottom: 1rem; }
.ld-box h3 { font-size: 1rem; margin-bottom: .9rem; }
.ld-box--danger { border-color: #FECACA; }
.ld-box summary { cursor: pointer; font-family: var(--font-head); font-weight: 700; color: var(--navy); }
.ld-check { display: flex; align-items: center; gap: .5rem; font-size: .9rem; margin: .5rem 0; }
.ld-thumb { max-width: 100%; height: auto; border-radius: 8px; margin-bottom: .6rem; }
.ld-cancel { display: block; text-align: center; margin-top: .75rem; font-size: .88rem; }
.ld-counter { display: block; font-size: .75rem; color: var(--muted); margin-top: .25rem; }
.ld-counter.is-over { color: var(--danger); font-weight: 700; }
.ld .btn--danger { background: #fff; border-color: #FCA5A5; color: var(--danger); }
.ld .btn--danger:hover { background: var(--danger); border-color: var(--danger); color: #fff; }
.ld form.wp-core-ui .button-primary, .ld .login-submit input { background: var(--teal); border-color: var(--teal); }
.ld #loginform { display: grid; gap: .75rem; }
.ld #loginform label { font-family: var(--font-head); font-weight: 700; font-size: .85rem; color: var(--navy); display: block; }
.ld #loginform input[type="text"], .ld #loginform input[type="password"] { width: 100%; padding: .7rem .9rem; border: 1px solid #cfd6de; border-radius: 10px; font: inherit; }
.ld #loginform input[type="submit"] { min-height: 46px; padding: .7rem 1.4rem; border-radius: var(--radius-sm); border: 2px solid var(--teal); background: var(--teal); color: #fff; font-family: var(--font-head); font-weight: 700; text-transform: uppercase; letter-spacing: .03em; font-size: .875rem; cursor: pointer; }
.ld .wp-editor-container { border-radius: 10px; overflow: hidden; border: 1px solid #cfd6de; }
.ld .mce-toolbar-grp { border-bottom: 1px solid var(--line) !important; }

@media print {
  .topbar, .site-header, .site-footer, .wa-float, .to-top, .cta-band, .toasts { display: none !important; }
}

/* ==========================================================================
   Shortcode & Elementor widget output
   The same Livia content dropped into a page builder. Styled here so a block
   placed in Elementor matches the designed pages.
   ========================================================================== */

.livia-facts { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.livia-fact { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1.35rem; box-shadow: var(--shadow-sm); }
.livia-fact h3 { margin: 0 0 .5rem; font-size: 1.02rem; color: var(--navy); }
.livia-fact__body { color: var(--ink); font-size: .92rem; line-height: 1.65; }
.livia-fact__body p:last-child { margin-bottom: 0; }
.livia-fact__tip { margin: .85rem 0 0; padding: .7rem .85rem; border-radius: 10px; background: var(--mint); border: 1px solid #cfe9e1; color: var(--teal-700); font-size: .85rem; line-height: 1.55; }

.livia-quotes { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.livia-quote { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow-sm); }
.livia-quote p { font-size: .95rem; line-height: 1.7; color: var(--ink); }
.livia-quote cite { display: block; margin-top: .9rem; font-style: normal; font-family: var(--font-head); font-weight: 700; color: var(--navy); }
.livia-quote cite span { display: block; font-weight: 400; font-size: .82rem; color: var(--muted); }

.livia-partners { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1.5rem 2.5rem; }
.livia-partners img { max-height: 46px; width: auto; opacity: .85; }

.livia-faqs { display: grid; gap: .6rem; }
.livia-faq { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1rem 1.15rem; }
.livia-faq summary { cursor: pointer; font-family: var(--font-head); font-weight: 700; color: var(--navy); }
.livia-faq > div { margin-top: .6rem; color: var(--muted); font-size: .92rem; line-height: 1.65; }

.livia-contact-info { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.livia-contact-info a { color: var(--teal-700); text-decoration: none; }
.livia-contact-info a:hover { text-decoration: underline; }

.livia-sc-form { max-width: 560px; }
.livia-sc-form .field { margin-bottom: 1rem; }
.livia-sc-form label { display: block; margin-bottom: .35rem; font-weight: 600; font-size: .9rem; color: var(--navy); }
.livia-sc-form input, .livia-sc-form textarea { width: 100%; padding: .75rem .9rem; border: 1px solid var(--line); border-radius: 10px; font: inherit; background: #fff; }
.livia-sc-form input:focus, .livia-sc-form textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(74, 166, 145, .18); }

/* Elementor sets its own container widths; keep Livia blocks readable inside them. */
.elementor-widget-livia_faqs .section-head,
.elementor-widget-livia_health_facts .section-head { margin-bottom: 1.25rem; }

/* Quick answer (AEO): [livia_answer question="…"]…[/livia_answer] */
.answer { margin: 0 0 2rem; padding: 1.1rem 1.25rem; border-radius: var(--radius); background: var(--mint); border-left: 4px solid var(--teal-600); }
.answer__q { margin: 0 0 .35rem; font-family: var(--font-head); font-weight: 700; color: var(--navy); }
.answer__text p { margin: 0 0 .5rem; }
.answer__text p:last-child { margin-bottom: 0; }

/* ---------- Services hero ---------- */
/* --ph is the phone's height: it follows the screen, so the whole phone always shows without scrolling. */
.shero { --ph: clamp(330px, calc(100svh - 300px), 420px); position: relative; overflow: hidden; color: rgba(255, 255, 255, .92); padding: 1.25rem 0 1.75rem; background: linear-gradient(125deg, #124A45 0%, #1F6358 48%, #2E7568 100%); }
.shero__glow { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(38% 62% at 76% 46%, rgba(95, 211, 186, .42), transparent 72%), radial-gradient(30% 44% at 8% 96%, rgba(233, 178, 210, .16), transparent 70%); }
.shero__grid { position: relative; display: grid; gap: 1.1rem; }
.shero .breadcrumbs ol { margin-bottom: .6rem; }
.shero .eyebrow { margin-bottom: .35rem; }
.shero .eyebrow .icon { width: 14px; height: 14px; }
.shero h1 { color: #fff; margin-bottom: .4rem; font-size: clamp(1.9rem, 3.3vw, 2.6rem); line-height: 1.14; }
.shero .text-accent { color: #BFF3E2; }
.shero__lead { margin: 0; max-width: 600px; font-size: clamp(.98rem, 1.4vw, 1.05rem); line-height: 1.5; }

/* The phone */
.shero__stage { position: relative; display: grid; place-items: center; min-height: calc(var(--ph) + 28px); }
.shero__ring { position: absolute; left: 50%; top: 50%; width: calc(var(--ph) * .74); height: calc(var(--ph) * .74); margin: calc(var(--ph) * -.37) 0 0 calc(var(--ph) * -.37); border-radius: 50%; border: 1px solid rgba(191, 243, 226, .4); animation: shero-ring 7s ease-out infinite; }
.shero__ring--2 { animation-delay: -2.33s; }
.shero__ring--3 { animation-delay: -4.66s; }
.shero__tilt { --ry: -9deg; --rx: 3deg; position: relative; z-index: 1; transform: perspective(1200px) rotateY(var(--ry)) rotateX(var(--rx)) rotateZ(2.5deg); transition: transform .5s cubic-bezier(.25, .8, .25, 1); will-change: transform; }
.shero__phone { position: relative; height: var(--ph); aspect-ratio: 9 / 18.6; padding: 8px; border-radius: 36px; background: linear-gradient(150deg, #33413f, #101716 60%); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .14), 0 26px 48px rgba(6, 32, 30, .55), 0 8px 18px rgba(6, 32, 30, .3); animation: shero-float 7s ease-in-out infinite; }
.shero__notch { position: absolute; z-index: 3; left: 50%; top: 14px; width: 62px; height: 16px; margin-left: -31px; border-radius: 10px; background: #0b1110; }
.shero__screen { position: relative; height: 100%; overflow: hidden; border-radius: 28px; background: #4BA791; }
.shero__view { position: absolute; inset: 0; opacity: 0; transform: translateY(-16px) scale(1.02); transition: opacity .35s ease, transform .35s ease; }
.shero__view.is-active { z-index: 1; opacity: 1; transform: none; animation: shero-view-in .7s cubic-bezier(.2, .85, .25, 1) both; }
.shero__view:nth-child(1) { --sc: #1F6358; }
.shero__view:nth-child(2) { --sc: #A8457A; }
.shero__view:nth-child(3) { --sc: #1B5C8C; }
.shero__view img { display: block; width: 100%; height: 74%; object-fit: cover; transform: scale(1.1); transition: transform 7s ease-out; }
.shero__view.is-active img { transform: scale(1); }
.shero__sheet { position: absolute; left: 0; right: 0; bottom: 0; min-height: 30%; display: flex; flex-direction: column; justify-content: center; gap: .45rem; padding: .7rem .75rem .8rem; border-radius: 20px 20px 0 0; background: #fff; }
.shero__sheet b { color: var(--navy); font-family: var(--font-head); font-size: .88rem; font-weight: 800; line-height: 1.2; }
.shero__pill { display: block; padding: .45rem; border-radius: 10px; background: var(--sc); color: #fff; font-family: var(--font-head); font-size: .7rem; font-weight: 700; text-align: center; }

/* Floating notes */
.shero__note { position: absolute; z-index: 2; display: flex; align-items: center; gap: .5rem; padding: .45rem .7rem .45rem .45rem; border-radius: 14px; background: #fff; color: var(--muted); font-size: .68rem; line-height: 1.25; white-space: nowrap; box-shadow: 0 16px 34px rgba(6, 32, 30, .32); opacity: 0; transform: translateY(-10px) scale(.96); transition: opacity .3s ease, transform .3s ease; }
.shero__note.is-active { opacity: 1; transform: none; animation: shero-note-in .7s cubic-bezier(.2, 1.2, .35, 1) both, shero-bob 5.5s ease-in-out .7s infinite; }
.shero__note--b.is-active { animation: shero-note-in .7s cubic-bezier(.2, 1.2, .35, 1) both, shero-bob 6.5s ease-in-out .7s infinite reverse; }
[data-shero-note="0"] { --sc: #1F6358; }
[data-shero-note="1"] { --sc: #A8457A; }
[data-shero-note="2"] { --sc: #1B5C8C; }
.shero__note strong { display: block; color: var(--navy); font-family: var(--font-head); font-size: .76rem; }
.shero__note .icon { flex: none; width: 30px; height: 30px; padding: 7px; border-radius: 10px; color: #fff; background: var(--sc); }
.shero__note--a { left: max(0px, calc(50% - var(--ph) * .46)); top: 14%; }
.shero__note--b { right: max(0px, calc(50% - var(--ph) * .46)); top: 48%; }

/* The one card that changes with the phone */
.shero__cards { display: grid; }
.shero__card { grid-area: 1 / 1; display: flex; align-items: center; gap: .8rem; padding: .75rem .95rem; border-radius: 16px; background: #fff; color: var(--muted); box-shadow: 0 16px 34px rgba(6, 32, 30, .3); opacity: 0; visibility: hidden; transform: translateY(-10px); transition: opacity .3s ease, transform .3s ease, visibility 0s .3s; }
.shero__card.is-active { opacity: 1; visibility: visible; transform: none; transition: none; animation: shero-card-in .7s cubic-bezier(.2, .85, .25, 1) both; }
.shero__card:nth-child(1), .shero__tabs li:nth-child(1) { --sc: #1F6358; }
.shero__card:nth-child(2), .shero__tabs li:nth-child(2) { --sc: #A8457A; }
.shero__card:nth-child(3), .shero__tabs li:nth-child(3) { --sc: #1B5C8C; }
.shero__icon { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--sc); color: #fff; }
.shero__text { min-width: 0; }
.shero__text strong { display: block; color: var(--navy); font-family: var(--font-head); font-size: 1.02rem; line-height: 1.25; }
.shero__text small { display: block; margin-top: .12rem; font-size: .86rem; line-height: 1.35; }

/* Choosing a service */
.shero__tabs { list-style: none; display: flex; gap: .4rem; margin: .55rem 0 0; padding: 0; }
.shero__tabs li { flex: 1 1 0; min-width: 0; }
.shero__tab { position: relative; overflow: hidden; width: 100%; min-height: 44px; padding: .35rem .4rem; border: 1px solid rgba(255, 255, 255, .28); border-radius: 12px; background: rgba(255, 255, 255, .09); color: #fff; font-family: var(--font-head); font-size: .76rem; font-weight: 700; line-height: 1.2; cursor: pointer; transition: background-color .3s ease, color .3s ease; touch-action: manipulation; }
.shero__tab:hover { background: rgba(255, 255, 255, .18); }
.shero__tab:focus-visible { outline: 3px solid #BFF3E2; outline-offset: 2px; }
.shero__tab.is-active { background: rgba(255, 255, 255, .24); border-color: rgba(255, 255, 255, .6); }
.shero__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; }
.shero__bar i { display: block; width: 100%; height: 100%; background: #BFF3E2; transform: scaleX(0); transform-origin: left; }
.shero__tab.is-active .shero__bar i { animation: shero-fill 7s linear forwards; }
.shero.is-paused .shero__bar i { animation-play-state: paused; }

/* Always there, whichever service is showing */
.shero .store-buttons { margin-top: .75rem; }
.shero .store-btn { min-height: 46px; }
.shero__foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: .15rem; }
.shero__blog { display: inline-flex; align-items: center; gap: .35rem; min-height: 40px; color: #fff; font-family: var(--font-head); font-size: .84rem; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.shero__blog:hover { color: #BFF3E2; }
.shero__pause { min-height: 40px; padding: 0 .25rem; border: 0; background: none; color: rgba(255, 255, 255, .86); font: inherit; font-size: .8rem; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.shero__pause:hover { color: #fff; }
.shero__pause:focus-visible { outline: 2px solid #BFF3E2; outline-offset: 2px; }

@media (min-width: 960px) {
  .shero { --ph: clamp(340px, calc(100svh - 200px), 560px); padding: 1rem 0 1.25rem; }
  .shero__grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); grid-template-rows: auto auto; grid-template-areas: "copy stage" "list stage"; align-content: center; align-items: center; column-gap: 2.5rem; row-gap: .8rem; }
  .shero__copy { grid-area: copy; align-self: end; }
  .shero__list { grid-area: list; align-self: start; }
  .shero__stage { grid-area: stage; }
  .shero__note { font-size: .74rem; padding: .55rem .85rem .55rem .55rem; }
  .shero__note strong { font-size: .84rem; }
  .shero__note .icon { width: 36px; height: 36px; padding: 9px; }
  .shero__tab { font-size: .82rem; }
}

@keyframes shero-ring { from { opacity: .7; transform: scale(.72); } to { opacity: 0; transform: scale(1.45); } }
@keyframes shero-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes shero-fill { to { transform: scaleX(1); } }
@keyframes shero-view-in { from { opacity: 0; transform: translateY(40px) scale(.94); } }
@keyframes shero-card-in { from { opacity: 0; transform: translateY(20px); } }
@keyframes shero-note-in { from { opacity: 0; transform: translateY(20px) scale(.85); } }
@keyframes shero-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }

@media (prefers-reduced-motion: reduce) {
  .shero__ring, .shero__phone, .shero__view.is-active, .shero__note.is-active, .shero__note--b.is-active, .shero__card.is-active { animation: none; }
  .shero__ring { opacity: .35; }
  .shero__ring--2, .shero__ring--3 { display: none; }
  .shero__view img, .shero__view.is-active img { transform: none; transition: none; }
  .shero__tab.is-active .shero__bar i { animation: none; transform: scaleX(1); }
  .shero__pause { display: none; }
}
