/* ESSALUDNET landing — hand-written CSS, no framework. */

@font-face {
  font-family: "Bricolage";
  src: url("/assets/fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2-variations"),
       url("/assets/fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-latin-wght-normal.woff2") format("woff2-variations"),
       url("/assets/fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --mint: #2EE6B6;
  --aqua: #13B9D8;
  --blue: #1D4ED8;
  --navy: #0A2540;
  --navy-2: #0B3B8C;
  --violet: #7C8CF0;

  --bg: #F4F9FB;
  --bg-2: #E9F3F7;
  --surface: #FFFFFF;
  --ink: #0A2540;
  --ink-2: #33506D;
  --muted: #557089;
  --line: rgba(10, 37, 64, .1);
  --line-2: rgba(10, 37, 64, .16);
  --glass: rgba(255, 255, 255, .7);
  --shadow: 0 1px 2px rgba(10, 37, 64, .06), 0 12px 40px -12px rgba(10, 37, 64, .18);
  --grad: linear-gradient(100deg, #098F75 0%, #0B80A6 45%, #1D4ED8 100%);
  --accent-ink: #0B7894;
  --grad-bright: linear-gradient(100deg, #2EE6B6 0%, #13B9D8 45%, #1D4ED8 100%);
  --blob-op: .5;
  --grid-op: .5;

  --font-display: "Bricolage", ui-sans-serif, system-ui, "Segoe UI", sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, "Segoe UI", Roboto, sans-serif;

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1280px;
  --radius: 28px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #06162A;
    --bg-2: #0A1F38;
    --surface: #0C223D;
    --ink: #EAF5FB;
    --ink-2: #C3D6E6;
    --muted: #94ADC4;
    --line: rgba(234, 245, 251, .1);
    --line-2: rgba(234, 245, 251, .17);
    --glass: rgba(8, 26, 48, .66);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 18px 50px -18px rgba(0, 0, 0, .6);
    --grad: var(--grad-bright);
    --accent-ink: #5FD6EC;
    --blob-op: .3;
    --grid-op: .35;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #06162A;
  --bg-2: #0A1F38;
  --surface: #0C223D;
  --ink: #EAF5FB;
  --ink-2: #C3D6E6;
  --muted: #94ADC4;
  --line: rgba(234, 245, 251, .1);
  --line-2: rgba(234, 245, 251, .17);
  --glass: rgba(8, 26, 48, .66);
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 18px 50px -18px rgba(0, 0, 0, .6);
  --grad: var(--grad-bright);
  --accent-ink: #5FD6EC;
  --blob-op: .3;
  --grid-op: .35;
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color .5s var(--ease), color .5s var(--ease);
}
@supports (overflow: clip) { body { overflow-x: clip; } }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 650; letter-spacing: -.02em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
address { font-style: normal; }
::selection { background: var(--aqua); color: #fff; }
:focus-visible { outline: 3px solid var(--aqua); outline-offset: 3px; border-radius: 10px; }

.wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }

.skip {
  position: fixed; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 12px; font-weight: 600;
  transition: top .2s;
}
.skip:focus { top: 16px; }

.grad-text {
  font-style: normal;
  background: var(--grad);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  animation: gradShift 8s ease-in-out infinite alternate;
}
@keyframes gradShift { to { background-position: 100% 0; } }
.muted-ink { color: var(--muted); }

/* ---------- Atmosphere ---------- */
.atmos { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.atmos__blob {
  position: absolute; width: 60vmax; height: 60vmax; border-radius: 50%;
  filter: blur(80px); opacity: var(--blob-op); will-change: transform;
}
.atmos__blob--a { background: radial-gradient(circle at 50% 50%, rgba(46, 230, 182, .55), transparent 62%); left: -18vmax; top: -22vmax; animation: driftA 22s ease-in-out infinite alternate; }
.atmos__blob--b { background: radial-gradient(circle at 50% 50%, rgba(19, 185, 216, .5), transparent 62%); right: -22vmax; top: 4vmax; animation: driftB 26s ease-in-out infinite alternate; }
.atmos__blob--c { background: radial-gradient(circle at 50% 50%, rgba(29, 78, 216, .38), transparent 62%); left: 20vmax; bottom: -34vmax; animation: driftC 30s ease-in-out infinite alternate; }
@keyframes driftA { to { transform: translate3d(12vmax, 8vmax, 0) scale(1.1); } }
@keyframes driftB { to { transform: translate3d(-10vmax, 12vmax, 0) scale(.92); } }
@keyframes driftC { to { transform: translate3d(-8vmax, -10vmax, 0) scale(1.08); } }
.atmos__grid {
  position: absolute; inset: 0; opacity: var(--grid-op);
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 0%, transparent 70%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 0%, transparent 70%);
}
.atmos__grain {
  position: absolute; inset: -50%; opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.cursor-glow {
  position: fixed; left: 0; top: 0; width: 520px; height: 520px; margin: -260px 0 0 -260px;
  border-radius: 50%; pointer-events: none; z-index: 0;
  background: radial-gradient(circle, rgba(19, 185, 216, .16), rgba(46, 230, 182, .06) 40%, transparent 68%);
  opacity: 0; transition: opacity .6s var(--ease);
  will-change: transform;
}
.has-pointer .cursor-glow { opacity: 1; }

/* ---------- Buttons ---------- */
.btn {
  --bh: 48px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--bh); padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: .98rem; letter-spacing: -.005em; white-space: nowrap;
  transition: transform .35s var(--ease-out), background-color .3s, color .3s, border-color .3s, box-shadow .3s;
  will-change: transform;
}
.btn svg { width: 19px; height: 19px; flex: none; transition: transform .35s var(--ease-out); }
.btn:hover svg { transform: translateX(2px); }
.btn--sm { --bh: 40px; padding: 0 16px; font-size: .9rem; }
.btn--lg { --bh: 56px; padding: 0 28px; font-size: 1.02rem; }
.btn--xl { --bh: 64px; padding: 0 32px; font-size: 1.1rem; }
.btn--primary {
  color: #fff; background: var(--navy);
  background-image: linear-gradient(100deg, var(--navy) 0%, var(--navy-2) 60%, var(--blue) 100%);
  box-shadow: 0 10px 30px -10px rgba(29, 78, 216, .6), inset 0 1px 0 rgba(255, 255, 255, .18);
}
.btn--primary::after {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px;
  background: var(--grad-bright); opacity: 0; transition: opacity .3s;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.btn--primary:hover::after { opacity: 1; }
:root[data-theme="dark"] .btn--primary { background-image: linear-gradient(100deg, #0B6F8C 0%, var(--blue) 100%); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn--primary { background-image: linear-gradient(100deg, #0B6F8C 0%, var(--blue) 100%); } }
.btn--ghost { color: var(--ink); background: var(--glass); border-color: var(--line-2); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.btn--ghost:hover { border-color: var(--aqua); }
.btn--light { color: var(--navy); background: #fff; box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .5); }
.btn--light:hover { background: #E8FFF8; }
.btn--outline-light { color: #fff; border-color: rgba(255, 255, 255, .35); }
.btn--outline-light:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }
.btn--text-light { color: #fff; padding: 0 8px; }
.btn--text-light span { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .35s var(--ease-out); }
.btn--text-light:hover span { background-size: 100% 1px; }

/* ---------- Nav ---------- */
.nav { position: fixed; top: 14px; left: 0; right: 0; z-index: 50; padding: 0 var(--gutter); pointer-events: none; }
.nav__bar {
  pointer-events: auto;
  max-width: 1180px; margin: 0 auto; height: 60px; padding: 0 10px 0 18px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: var(--glass); border: 1px solid var(--line); border-radius: 999px;
  backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px);
  box-shadow: var(--shadow);
  transition: transform .5s var(--ease-out), background-color .4s;
}
.nav.is-scrolled .nav__bar { background: color-mix(in srgb, var(--bg, #0A1628) 82%, transparent); border-color: var(--line-2); }
.nav__brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.12rem; letter-spacing: -.01em; }
.nav__brand img { width: 30px; height: 30px; transition: transform .6s var(--ease-out); }
.nav__brand:hover img { transform: rotate(90deg); }
.nav__links { display: flex; gap: 4px; }
.nav__links a { display: block; padding: 8px 14px; border-radius: 999px; font-size: .94rem; font-weight: 500; color: var(--ink-2); transition: color .2s, background-color .2s; }
.nav__links a:hover, .nav__links a.is-active, .nav__links a[aria-current="page"] { color: var(--ink); background: var(--line); }
.nav__links a[aria-current="page"] { font-weight: 650; }
/* Five links + brand + actions: tighten the bar on narrow desktops before the burger takes over. */
@media (min-width: 901px) and (max-width: 1120px) {
  .nav__links a { padding: 8px 10px; }
  .nav__cta { display: none; }
}
.nav__actions { display: flex; align-items: center; gap: 8px; }
.theme-toggle {
  position: relative; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); background: transparent;
  display: grid; place-items: center; overflow: hidden;
}
.theme-toggle svg { position: absolute; width: 19px; height: 19px; transition: transform .6s var(--ease-out), opacity .4s; }
.theme-toggle__moon { transform: translateY(140%) rotate(-60deg); opacity: 0; }
.is-dark .theme-toggle__sun { transform: translateY(-140%) rotate(60deg); opacity: 0; }
.is-dark .theme-toggle__moon { transform: none; opacity: 1; }
.nav__burger { display: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); background: transparent; position: relative; }
.nav__burger span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .4s var(--ease-out); }
.nav__burger span:first-child { top: 15px; }
.nav__burger span:last-child { top: 22px; }
.nav__burger[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav__burger { display: block; }
  .nav__cta { display: none; }
  .nav__links {
    position: absolute; top: 70px; left: var(--gutter); right: var(--gutter);
    flex-direction: column; gap: 2px; padding: 10px;
    background: var(--surface); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow);
    opacity: 0; visibility: hidden; transform: translateY(-8px) scale(.98); transform-origin: top center;
    transition: opacity .3s, transform .4s var(--ease-out), visibility 0s .4s;
    pointer-events: auto;
  }
  .nav__links.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .3s, transform .4s var(--ease-out); }
  .nav__links a { padding: 14px 16px; font-size: 1.05rem; }
}

/* ---------- Chips / eyebrows ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 10px;
  border-radius: 999px; border: 1px solid var(--line-2); background: var(--glass);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-size: .86rem; font-weight: 500; color: var(--ink-2); line-height: 1.35;
}
.chip__dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--mint); flex: none; }
.chip__dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--mint); opacity: .6; animation: ping 2.2s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(.6); opacity: .8; } 100% { transform: scale(2); opacity: 0; } }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .78rem; font-weight: 650; letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
}
.eyebrow span { width: 22px; height: 2px; border-radius: 2px; background: var(--grad-bright); }
.eyebrow--light { color: rgba(255, 255, 255, .78); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(120px, 16vh, 168px) 0 clamp(40px, 6vw, 72px); min-height: min(100svh, 980px); display: flex; flex-direction: column; justify-content: center; }
/* The spinning orbit's bounding box can poke past a phone's edge and add a few px of sideways scroll. */
@supports (overflow: clip) { .hero { overflow-x: clip; } }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); align-items: center; gap: clamp(24px, 4vw, 64px); }
.hero__title {
  margin: 26px 0 26px;
  font-size: clamp(2.75rem, 6.3vw, 6.6rem);
  line-height: .94; letter-spacing: -.045em; font-weight: 700;
  font-variation-settings: "wdth" 100;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.hero__title .line__in { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--ease-out); }
.hero__title .line:nth-child(2) .line__in { transition-delay: .09s; }
.hero__title .line:nth-child(3) .line__in { transition-delay: .18s; }
.is-loaded .hero__title .line__in { transform: none; }
.hero__lead { max-width: 36rem; font-size: clamp(1.05rem, 1.35vw, 1.2rem); color: var(--ink-2); line-height: 1.6; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.hero__stage { position: relative; }
.stage { position: relative; aspect-ratio: 1; width: 100%; max-width: 520px; margin: 0 auto; transform-style: preserve-3d; will-change: transform; transition: transform .8s var(--ease-out); }
.stage__halo { position: absolute; inset: 8%; border-radius: 50%; background: radial-gradient(circle, rgba(46, 230, 182, .38), rgba(19, 185, 216, .16) 40%, transparent 68%); animation: breathe 6s ease-in-out infinite; will-change: transform, opacity; }
@keyframes breathe { 50% { transform: scale(1.08); opacity: .8; } }
.stage__ring { position: absolute; border-radius: 50%; border: 1px solid var(--line-2); }
.stage__ring--1 { inset: 4%; border-style: dashed; animation: spin 80s linear infinite; }
.stage__ring--2 { inset: 16%; border-color: rgba(19, 185, 216, .35); }
.stage__ring--3 { inset: 28%; border-color: var(--line); }
@keyframes spin { to { transform: rotate(360deg); } }
.orbit { position: absolute; inset: 4%; animation: spin 70s linear infinite; will-change: transform; }
.orbit__pill {
  position: absolute; display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px 8px 10px; border-radius: 999px; white-space: nowrap;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
  font-family: var(--font-display); font-weight: 650; font-size: .95rem; color: var(--ink);
  animation: spin 70s linear infinite reverse;
}
.orbit__pill i { width: 10px; height: 10px; border-radius: 50%; }
/* The pills are links to each product: hovering one stops the orbit so it is easy to click. */
.orbit__pill { cursor: pointer; z-index: 2; transition: scale .3s var(--ease-out), border-color .3s, box-shadow .3s; }
.orbit__pill:hover, .orbit__pill:focus-visible { scale: 1.08; border-color: var(--aqua); box-shadow: var(--shadow), 0 0 0 4px rgba(19, 185, 216, .18), 0 0 24px rgba(19, 185, 216, .35); }
.orbit:has(.orbit__pill:hover), .orbit:has(.orbit__pill:hover) .orbit__pill, .orbit:focus-within, .orbit:focus-within .orbit__pill { animation-play-state: paused !important; }
.orbit__pill--hce { left: 50%; top: 0; translate: -50% -50%; }
.orbit__pill--hce i { background: var(--blue); box-shadow: 0 0 0 4px rgba(29, 78, 216, .18); }
.orbit__pill--df { left: 93.3%; top: 75%; translate: -50% -50%; }
.orbit__pill--df i { background: var(--aqua); box-shadow: 0 0 0 4px rgba(19, 185, 216, .2); }
.orbit__pill--pc { left: 6.7%; top: 75%; translate: -50% -50%; }
.orbit__pill--pc i { background: var(--mint); box-shadow: 0 0 0 4px rgba(46, 230, 182, .22); }
.robot { position: absolute; left: 50%; top: 50%; width: 52%; translate: -50% -52%; overflow: visible; }
.robot__body { animation: hover 4s ease-in-out infinite; }
@keyframes hover { 50% { transform: translateY(-5px); } }
.robot__bulb { transform-box: fill-box; transform-origin: center; animation: bulb 1.8s ease-in-out infinite; }
@keyframes bulb { 50% { transform: scale(1.25); opacity: .75; } }
.stage.is-paused *, .stage.is-paused { animation-play-state: paused !important; }
.robot__shine { transform: rotate(20deg); animation: sweep 5s ease-in-out 1.6s infinite; }
@keyframes sweep { 0% { transform: translateX(0) rotate(20deg); } 45%, 100% { transform: translateX(260px) rotate(20deg); } }
.robot__eyes { transform-box: fill-box; transform-origin: center; animation: blink 4.6s ease-in-out 1.4s infinite; }
@keyframes blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
.robot__look { transition: transform .25s linear; }
.robot__trace { stroke-dasharray: 100; stroke-dashoffset: 100; animation: draw 1.2s var(--ease) .6s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.robot__hub { transform-box: fill-box; transform-origin: center; animation: beat 1.6s ease-in-out infinite; }
@keyframes beat { 50% { transform: scale(1.3); } }
.stage__shadow { position: absolute; left: 34%; right: 34%; bottom: 13%; height: 18px; border-radius: 50%; background: radial-gradient(closest-side, rgba(10, 37, 64, .28), transparent); animation: shadow 4s ease-in-out infinite; }
@keyframes shadow { 50% { transform: scaleX(.88); opacity: .7; } }

.equation {
  margin-top: clamp(28px, 5vw, 56px);
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px;
  font-family: var(--font-display); font-size: clamp(1.15rem, 2vw, 1.6rem); font-weight: 600; letter-spacing: -.02em;
}
.equation__term { padding: 8px 18px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--glass); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: transform .4s var(--ease-out), border-color .3s; }
.equation__term:hover { transform: translateY(-3px); border-color: var(--aqua); }
.equation__term--result { color: #fff; border-color: transparent; background: linear-gradient(100deg, #0A8F77 0%, #0B7FA6 50%, #1D4ED8 100%); background-size: 200% 100%; animation: gradShift 6s ease-in-out infinite alternate; text-shadow: 0 1px 8px rgba(10, 37, 64, .35); }
.equation__op { color: var(--muted); font-weight: 500; }

@media (max-width: 900px) {
  .hero { min-height: 0; padding-top: 112px; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__stage { order: -1; max-width: 340px; width: 78%; margin: 0 auto -8px; }
  .hero__title { margin: 20px 0; }
  .orbit__pill { font-size: .8rem; padding: 6px 10px 6px 8px; }
}
@media (max-width: 480px) {
  .hero__ctas .btn { width: 100%; }
  .equation__term { padding: 6px 14px; }
}

/* ---------- Marquee ---------- */
.marquee {
  position: relative; overflow: hidden; padding: 22px 0; margin-top: clamp(16px, 4vw, 40px);
  border-block: 1px solid var(--line);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee__track { display: flex; width: max-content; align-items: center; gap: 28px; animation: marquee 50s linear infinite; }
.marquee__track span { font-family: var(--font-display); font-size: clamp(1.2rem, 2.4vw, 1.9rem); font-weight: 600; letter-spacing: -.02em; white-space: nowrap; color: var(--ink-2); }
.marquee__track b { font-size: 1rem; color: var(--accent-ink); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Manifesto ---------- */
.manifesto { padding: clamp(96px, 14vw, 180px) 0 clamp(64px, 10vw, 120px); }
.manifesto__text {
  margin-top: 28px; max-width: 22ch;
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(2rem, 5.4vw, 4.6rem); line-height: 1.04; letter-spacing: -.035em;
}
.manifesto__text .w { color: var(--ink); transition: color .25s linear; }
.js .manifesto__text .w { color: color-mix(in srgb, var(--ink) 18%, transparent); }
.js .manifesto__text .w.on { color: var(--ink); }
@supports not (color: color-mix(in srgb, red, blue)) { .js .manifesto__text .w { opacity: .2; } .js .manifesto__text .w.on { opacity: 1; } }

/* ---------- Section heads ---------- */
.section-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-title { margin: 20px 0 18px; font-size: clamp(2.3rem, 5.4vw, 4.6rem); line-height: .98; letter-spacing: -.04em; font-weight: 700; }
.section-lead { font-size: clamp(1.02rem, 1.3vw, 1.15rem); color: var(--ink-2); max-width: 38rem; }
.section-head--center .section-lead { margin-inline: auto; }

/* ---------- Products (stacked sticky cards) ---------- */
.products { padding: clamp(40px, 6vw, 80px) 0 clamp(48px, 7vw, 96px); }
.stack { display: grid; gap: 28px; }
.pcard {
  --accent: var(--aqua);
  position: relative;
  border-radius: clamp(24px, 3vw, 40px); overflow: hidden; color: #fff;
  background: #071A31;
  box-shadow: 0 40px 80px -40px rgba(6, 22, 42, .7), inset 0 0 0 1px rgba(255, 255, 255, .06);
}
.pcard::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 80% at 100% 0%, color-mix(in srgb, var(--accent) 45%, transparent), transparent 70%),
    radial-gradient(50% 60% at 0% 100%, color-mix(in srgb, var(--accent2, var(--blue)) 30%, transparent), transparent 70%);
}
.pcard::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse at 80% 20%, #000, transparent 65%); mask-image: radial-gradient(ellipse at 80% 20%, #000, transparent 65%);
}
.pcard--hce { --accent: #1D4ED8; --accent2: #13B9D8; background: #071833; }
.pcard--df { --accent: #13B9D8; --accent2: #2EE6B6; background: #05202F; }
.pcard--pc { --accent: #2EE6B6; --accent2: #1D4ED8; background: #06202A; }
.pcard__inner { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); padding: clamp(28px, 4.5vw, 64px); align-items: center; }
.pcard__meta { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.pcard__num { font-family: var(--font-display); font-weight: 700; font-size: .95rem; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .16); }
.pcard__tag { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 650; color: rgba(255, 255, 255, .75); }
.pcard__title { font-size: clamp(2.4rem, 5vw, 4.4rem); line-height: .95; letter-spacing: -.045em; font-weight: 750; }
.pcard--hce .pcard__title, .pcard--df .pcard__title, .pcard--pc .pcard__title {
  background: linear-gradient(100deg, #fff 30%, color-mix(in srgb, var(--accent) 60%, #fff)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.pcard__solve { margin: 18px 0 24px; font-size: clamp(1.02rem, 1.3vw, 1.14rem); color: rgba(255, 255, 255, .84); max-width: 34rem; }
.pcard__features { display: grid; gap: 12px; margin-bottom: 28px; }
.pcard__features li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; font-size: .98rem; color: rgba(255, 255, 255, .8); line-height: 1.5; }
.pcard__features strong { color: #fff; font-weight: 600; }
.pcard__features svg { width: 24px; height: 24px; padding: 4px; border-radius: 50%; color: #06202A; background: color-mix(in srgb, var(--accent) 70%, #fff); margin-top: 1px; }
.pcard--hce .pcard__features svg { background: #8FB2FF; }
.pcard__ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.pcard__note { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; color: rgba(255, 255, 255, .72); padding-left: 6px; }
.pcard__note svg { width: 16px; height: 16px; }
.pcard__plan { margin-top: 20px; font-size: .92rem; color: rgba(255, 255, 255, .78); display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.pill-free { display: inline-flex; padding: 4px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; letter-spacing: .02em; color: #04302A; background: var(--mint); }
.pill-free--soft { background: rgba(46, 230, 182, .16); color: #9FF5DE; border: 1px solid rgba(46, 230, 182, .35); }
.pcard__legal { margin-top: 12px; font-size: .8rem; color: rgba(255, 255, 255, .6); max-width: 34rem; line-height: 1.5; }
.pcard__more { margin-top: 18px; display: flex; align-items: center; gap: 8px; font-size: .95rem; font-weight: 600; }
.pcard__more svg { width: 18px; height: 18px; flex: none; transition: transform .35s var(--ease-out); }
.pcard__more:hover svg { transform: translateX(3px); }
.pcard__legal a, .pcard__more a { color: #fff; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .45); text-underline-offset: 3px; }
.pcard__legal a:hover, .pcard__more a:hover { text-decoration-color: #fff; }
/* "Coming soon" label for features that are built but not switched on yet. */
.soon { display: inline-flex; vertical-align: 1px; margin-left: 4px; padding: 2px 9px; border-radius: 999px; font-size: .72rem; font-weight: 700; letter-spacing: .02em; white-space: nowrap; background: rgba(255, 181, 71, .2); color: #7A4A00; }
.pcard .soon, .tile--privacy .soon { background: rgba(255, 181, 71, .18); color: #FFCF85; }
:root[data-theme="dark"] .soon { color: #FFCF85; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .soon { color: #FFCF85; } }

@media (max-width: 960px) {
  .pcard__inner { grid-template-columns: 1fr; min-height: 0; }
  .pcard__visual { order: -1; }
}
@media (max-width: 480px) {
  .pcard__ctas .btn--light, .pcard__ctas .btn--outline-light { flex: 1 1 100%; }
}

/* ---------- Product demos (interactive mockups) ---------- */
.pcard__visual { position: relative; min-width: 0; }
.demo { position: relative; display: grid; gap: 16px; }
.mock { position: relative; min-width: 0; }
.sk { display: block; height: 8px; border-radius: 6px; background: rgba(255, 255, 255, .16); }
.sk.light { background: #DCE7EF; }
.w35 { width: 35%; } .w45 { width: 45%; } .w50 { width: 50%; } .w55 { width: 55%; } .w60 { width: 60%; } .w70 { width: 70%; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
@keyframes pop { from { opacity: 0; transform: scale(.9); } }
@keyframes nudge { 50% { transform: scale(1.05); } }
@keyframes caret { 50% { opacity: 0; } }
/* Demos stop their loops while off-screen. */
.demo.is-off *, .demo.is-off *::after { animation-play-state: paused !important; }

.demo__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.demo__play {
  display: inline-flex; align-items: center; gap: 9px; height: 42px; padding: 0 18px 0 8px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .24); background: rgba(255, 255, 255, .08); color: #fff; font-weight: 650; font-size: .92rem;
  transition: background-color .25s, border-color .25s, transform .3s var(--ease-out);
}
.demo__play svg { width: 28px; height: 28px; padding: 7px 6px 7px 8px; border-radius: 50%; background: var(--mint); color: #04302A; flex: none; }
.demo__play:hover { background: rgba(255, 255, 255, .14); border-color: rgba(46, 230, 182, .7); }
.demo__play:active { transform: scale(.97); }
.demo__status { flex: 1 1 200px; min-width: 0; font-size: .86rem; line-height: 1.45; color: rgba(255, 255, 255, .78); }

/* 01 · HCE */
.mock--hce { border-radius: 18px; background: #0E2A4D; border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7); overflow: hidden; }
.mock__chrome { display: flex; align-items: center; gap: 6px; padding: 12px 14px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.mock__chrome i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .22); }
.mock__url { margin-left: 10px; font-size: .72rem; color: rgba(255, 255, 255, .6); padding: 3px 10px; border-radius: 999px; background: rgba(255, 255, 255, .06); }
.hce { display: grid; gap: 12px; padding: 14px 16px 18px; }
.hce__steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.hce__step {
  width: 100%; min-height: 42px; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 6px 4px;
  border-radius: 12px; border: 1px solid rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .05); color: rgba(255, 255, 255, .78);
  font-size: .8rem; font-weight: 650; transition: background-color .3s, border-color .3s, color .3s;
}
.hce__step b { display: grid; place-items: center; width: 20px; height: 20px; flex: none; border-radius: 50%; font-size: .7rem; background: rgba(255, 255, 255, .14); color: #fff; transition: background-color .3s, color .3s; }
.hce__step:hover { border-color: rgba(143, 178, 255, .6); color: #fff; }
.hce__step.is-done b { background: var(--mint); color: #04302A; }
.hce__step[aria-current] { background: #1D4ED8; border-color: #6B92FF; color: #fff; box-shadow: 0 8px 20px -10px rgba(29, 78, 216, .9); }
.hce__step[aria-current] b { background: #fff; color: #1D4ED8; }
.hce__bar { height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.hce__bar i { display: block; height: 100%; background: linear-gradient(90deg, #2EE6B6, #13B9D8, #6B92FF); transform-origin: left center; transform: scaleX(var(--p, .25)); transition: transform .6s var(--ease-out); }
.hce__patient { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08); }
.av { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, #3A6BA8, #1D3A63); }
.hce__patient strong { display: block; font-size: .9rem; line-height: 1.3; }
.hce__patient small { display: block; font-size: .72rem; color: rgba(255, 255, 255, .62); }
.badge { font-style: normal; font-size: .68rem; font-weight: 700; padding: 4px 9px; border-radius: 999px; white-space: nowrap; }
.badge--wait { background: rgba(255, 181, 71, .18); color: #FFCF85; }
.badge--draft { background: rgba(19, 185, 216, .2); color: #7FE0F2; }
.badge--done { background: rgba(46, 230, 182, .18); color: #8FF2D6; }
.hce__panes { display: grid; }
.hce__pane {
  grid-area: 1 / 1; display: grid; gap: 10px; align-content: start;
  visibility: hidden; opacity: 0; transform: translateY(10px);
  transition: opacity .35s, transform .5s var(--ease-out), visibility 0s .5s;
}
.hce__pane.is-on { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
.hce__h { display: flex; justify-content: space-between; gap: 8px; font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #9DBBFF; }
.hce__h span { letter-spacing: 0; text-transform: none; font-weight: 600; color: rgba(255, 255, 255, .58); }
.hce__fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.hce__fields li { display: grid; gap: 2px; min-width: 0; padding: 9px 11px; border-radius: 12px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .08); }
.hce__fields span { font-size: .64rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
.hce__fields b { font-size: .84rem; font-weight: 650; overflow-wrap: anywhere; }
.hce__fields b.later { font-weight: 500; font-style: italic; color: rgba(255, 255, 255, .6); }
.hce__fields li:has(.later) { border-style: dashed; background: transparent; }
.hce__vitals { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.hce__vitals li { display: grid; justify-items: center; gap: 1px; padding: 10px 4px; border-radius: 12px; background: #fff; color: var(--navy); }
.hce__vitals span { font-size: .66rem; font-weight: 700; color: #557089; }
.hce__vitals b { font-family: var(--font-display); font-size: clamp(.92rem, 2.2vw, 1.08rem); font-weight: 700; font-variant-numeric: tabular-nums; }
.hce__vitals small { font-size: .62rem; color: #557089; }
.hce__note { display: flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 600; color: #8FF2D6; }
.hce__note i { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 3px rgba(46, 230, 182, .25); }
.hce__exam { display: grid; gap: 8px; padding: 12px; border-radius: 12px; background: rgba(255, 255, 255, .05); }
.hce__search { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 12px; border-radius: 12px; border: 1.5px solid #13B9D8; background: #fff; color: var(--navy); font-size: .8rem; }
.hce__search span { font-weight: 600; color: #557089; }
.hce__search b { display: inline-flex; align-items: center; font-weight: 700; }
.hce__search i { font-style: normal; padding-right: 3px; border-right: 2px solid #0A2540; }
.hce__cie { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: rgba(19, 185, 216, .14); border: 1px solid rgba(19, 185, 216, .5); font-size: .8rem; line-height: 1.35; }
.hce__cie b { font-family: var(--font-display); font-size: .82rem; padding: 4px 8px; border-radius: 8px; background: #13B9D8; color: #04232E; }
.hce__med { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 6px; padding: 12px; border-radius: 12px; background: #fff; color: var(--navy); }
.hce__med b { font-family: var(--font-display); color: #0B3B8C; }
.hce__med strong { display: block; font-size: .88rem; }
.hce__med small { display: block; font-size: .76rem; color: #557089; }
.hce__done { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 12px; background: rgba(46, 230, 182, .14); border: 1px solid rgba(46, 230, 182, .5); color: #C2FCEB; font-size: .86rem; font-weight: 700; }
.hce__done svg { width: 26px; height: 26px; flex: none; padding: 5px; border-radius: 50%; background: var(--mint); color: #04302A; }
/* Entrances replay every time a pane turns on. */
.hce__pane.is-on li, .hce__pane.is-on .hce__note { animation: rise .5s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 110ms + 120ms); }
.hce__pane.is-on .hce__search i { animation: typeIn .7s steps(3) .25s both; }
.hce__pane.is-on .hce__cie { animation: rise .5s var(--ease-out) 1s both; }
.hce__pane.is-on .hce__med { animation: rise .5s var(--ease-out) .15s both; }
.hce__pane.is-on .hce__done { animation: pop .55s var(--ease-out) .6s both; }
@keyframes typeIn { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }

/* 02 · DoctorFirm */
.mock--df { display: grid; justify-items: center; }
.df-voice, .df-sign { position: relative; z-index: 2; border-radius: 18px; background: rgba(255, 255, 255, .97); color: var(--navy); box-shadow: 0 24px 50px -18px rgba(0, 0, 0, .6); }
.df-voice { justify-self: start; width: min(100%, 380px); display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 12px; padding: 12px 16px 12px 12px; margin-bottom: -26px; }
.df-mic { position: relative; width: 50px; height: 50px; border: 0; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #13B9D8, #1D4ED8); box-shadow: 0 8px 20px -8px rgba(29, 78, 216, .9); transition: transform .3s var(--ease-out); }
.df-mic svg { width: 22px; height: 22px; }
.df-mic::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid #13B9D8; opacity: .5; pointer-events: none; }
.demo--df:not(.is-filled) .df-mic::after { animation: ping 1.8s var(--ease) infinite; }
.df-mic:hover { transform: scale(1.06); }
.df-voice__label { display: flex; align-items: center; gap: 8px; min-height: 22px; font-size: .74rem; font-weight: 700; color: #557089; }
.df-voice .wave { display: flex; align-items: center; gap: 3px; height: 18px; }
.df-voice .wave i { width: 3px; height: 100%; border-radius: 3px; background: #13B9D8; transform: scaleY(.3); }
.demo--df.is-listening .wave i { animation: wave 1.1s ease-in-out infinite; }
.wave i:nth-child(2) { animation-delay: -.2s; } .wave i:nth-child(3) { animation-delay: -.4s; } .wave i:nth-child(4) { animation-delay: -.6s; }
.wave i:nth-child(5) { animation-delay: -.8s; } .wave i:nth-child(6) { animation-delay: -.3s; } .wave i:nth-child(7) { animation-delay: -.5s; }
@keyframes wave { 0%, 100% { transform: scaleY(.25); } 50% { transform: scaleY(1); } }
.df-voice__text { min-height: 2.8em; margin-top: 3px; font-size: .86rem; font-weight: 600; line-height: 1.4; color: var(--navy); }
.df-voice__text.is-hint { font-weight: 500; color: #6B8399; }
.demo--df.is-listening .df-voice__text::after { content: ""; display: inline-block; width: 2px; height: 1em; margin-left: 2px; vertical-align: -2px; background: #13B9D8; animation: caret 1s steps(1) infinite; }
.paper {
  width: min(330px, 92%); display: flex; flex-direction: column; gap: 12px; padding: 40px 22px 44px; border-radius: 14px;
  background: #fff; color: var(--navy); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7); transform: rotate(-1.5deg);
}
.paper__head { display: flex; gap: 10px; align-items: center; padding-bottom: 12px; border-bottom: 2px solid #13B9D8; }
.paper__head img { width: 30px; height: 30px; border-radius: 8px; }
.paper__head div { flex: 1; display: grid; gap: 6px; }
.paper__title { font-family: var(--font-display); font-weight: 700; letter-spacing: .14em; font-size: .78rem; color: #0B3B8C; }
.paper__pt { display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: .78rem; color: #33506D; }
.paper__pt span { font-weight: 700; color: #557089; }
.paper__rx { display: grid; gap: 10px; }
.rx { display: grid; grid-template-columns: 30px minmax(0, 1fr); align-items: start; }
.rx > b { font-family: var(--font-display); font-size: .82rem; line-height: 1.6; color: #0B3B8C; }
.rx__slot { display: grid; }
.rx__empty, .rx__med { grid-area: 1 / 1; }
.rx__empty { display: grid; gap: 8px; padding-top: 6px; transition: opacity .3s; }
.rx__med { opacity: 0; transform: translateY(6px); transition: opacity .4s, transform .5s var(--ease-out); }
.rx__med strong { display: block; font-size: .88rem; line-height: 1.35; }
.rx__med small { display: block; font-size: .76rem; color: #557089; }
.rx__calc { justify-self: start; margin-left: 30px; padding: 5px 9px; border-radius: 8px; font-size: .74rem; line-height: 1.4; background: #E6F7FC; color: #0B5C73; opacity: 0; transform: translateY(6px); transition: opacity .4s .3s, transform .5s var(--ease-out) .3s; }
.rx__calc b { color: var(--navy); white-space: nowrap; }
.demo--df.is-filled .rx__empty { opacity: 0; }
.demo--df.is-filled .rx__med, .demo--df.is-filled .rx__calc { opacity: 1; transform: none; }
.paper__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: 6px; }
.qr { width: 70px; height: 70px; flex: none; padding: 4px; background: #fff; border-radius: 6px; box-shadow: 0 0 0 1px #DCE7EF; opacity: .14; transition: opacity .5s; }
.qr rect { fill: #0A2540; }
.qr rect.o { fill: #fff; }
.seal { display: grid; gap: 4px; justify-items: end; text-align: right; padding: 8px 10px; border-radius: 10px; background: #EAFBF6; border: 1.5px dashed #2EE6B6; opacity: 0; transform: scale(1.4) rotate(-10deg); transition: opacity .3s, transform .5s cubic-bezier(.3, 1.6, .5, 1); }
.seal span:first-child { font-size: .62rem; color: #557089; font-weight: 600; }
.seal strong { font-size: .74rem; color: #0A6B57; }
.seal .sk { width: 70px; }
.demo--df.is-signed .qr { opacity: 1; }
.demo--df.is-signed .seal { opacity: 1; transform: rotate(-4deg); }
.df-sign { justify-self: end; display: grid; justify-items: center; gap: 7px; min-width: 180px; padding: 12px 16px; margin-top: -30px; }
.sign-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 20px; border: 0; border-radius: 999px; font-weight: 700; font-size: .92rem; color: #fff; background: linear-gradient(100deg, #0B6F8C, #1D4ED8); transition: opacity .3s, filter .3s, background-color .3s; }
.sign-btn svg { width: 16px; height: 16px; }
.sign-btn:disabled { cursor: default; opacity: .42; filter: grayscale(.5); }
.demo--df.is-ready .sign-btn { box-shadow: 0 0 0 4px rgba(19, 185, 216, .28); animation: nudge 1.6s ease-in-out infinite; }
.demo--df.is-signing .sign-btn, .demo--df.is-signed .sign-btn { opacity: 1; filter: none; }
.demo--df.is-signed .sign-btn { background: linear-gradient(100deg, #0A8F6F, #0B80A6); }
.df-pin { display: flex; gap: 7px; }
.df-pin i { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid #9DB3C6; transition: background-color .15s, border-color .15s; }
.df-pin i.on { background: var(--navy); border-color: var(--navy); }
.df-sign__label { font-size: .72rem; font-weight: 600; color: #557089; }

/* 03 · EssaludPC */
.mock--pc { --t: #2EE6B6; display: grid; gap: 12px; padding: 16px; border-radius: 22px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); }
.mock--pc[data-level="warm"] { --t: #FFB547; }
.mock--pc[data-level="hot"] { --t: #FF7A7A; }
.gauges { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.gauge { display: grid; justify-items: center; gap: 8px; padding: 12px 6px; border-radius: 16px; background: rgba(255, 255, 255, .05); border: 1px solid transparent; transition: border-color .3s, background-color .3s; }
.gauge--temp { --c: var(--t); }
.mock--pc[data-level="hot"] .gauge--temp { border-color: rgba(255, 122, 122, .55); background: rgba(255, 122, 122, .1); }
.gauge__ring { position: relative; width: 100%; max-width: 64px; }
.gauge svg { width: 100%; transform: rotate(-90deg); }
.gauge circle { fill: none; stroke: rgba(255, 255, 255, .12); stroke-width: 4; }
.gauge circle.val { stroke: var(--c); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--v) * 100); transition: stroke-dashoffset .6s var(--ease-out), stroke .4s; }
.js .pcard__visual:not(.is-in) .gauge circle.val { stroke-dashoffset: 100; }
.gauge__ring b { position: absolute; inset: 0; display: grid; place-items: center; font-size: .7rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.gauge > span { font-size: .68rem; font-weight: 600; color: rgba(255, 255, 255, .8); text-align: center; }
.chart { padding: 12px 14px; border-radius: 16px; background: rgba(255, 255, 255, .05); }
.chart svg { width: 100%; height: clamp(84px, 14vw, 120px); overflow: visible; }
.chart svg * { vector-effect: non-scaling-stroke; }
.chart__limit { stroke: rgba(255, 122, 122, .5); stroke-width: 1; stroke-dasharray: 3 3; }
.chart__area { fill: color-mix(in srgb, var(--t) 16%, transparent); transition: fill .4s; }
.chart__line { fill: none; stroke: var(--t); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: stroke .4s; }
.chart__label { display: block; margin-top: 6px; font-size: .7rem; color: rgba(255, 255, 255, .7); }
.pc-ctl { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 6px 12px; padding: 12px 14px; border-radius: 16px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .1); }
.pc-ctl__label { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 8px; font-size: .82rem; font-weight: 650; color: rgba(255, 255, 255, .9); }
.pc-ctl__label output { font-weight: 700; color: var(--t); transition: color .3s; }
.pc-ctl__range { --fill: 10%; width: 100%; height: 30px; margin: 0; background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer; }
.pc-ctl__range::-webkit-slider-runnable-track { height: 8px; border-radius: 8px; background: linear-gradient(90deg, var(--t) var(--fill), rgba(255, 255, 255, .16) var(--fill)); }
.pc-ctl__range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 24px; height: 24px; margin-top: -8px; border-radius: 50%; background: #fff; border: 4px solid var(--t); box-shadow: 0 4px 12px rgba(0, 0, 0, .45); }
.pc-ctl__range::-moz-range-track { height: 8px; border-radius: 8px; background: rgba(255, 255, 255, .16); }
.pc-ctl__range::-moz-range-progress { height: 8px; border-radius: 8px; background: var(--t); }
.pc-ctl__range::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 4px solid var(--t); box-shadow: 0 4px 12px rgba(0, 0, 0, .45); }
.pc-ctl__range:focus-visible { outline: 3px solid var(--aqua); outline-offset: 4px; border-radius: 10px; }
.pc-clean { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(46, 230, 182, .55); background: rgba(46, 230, 182, .12); color: #C2FCEB; font-size: .84rem; font-weight: 650; white-space: nowrap; transition: background-color .25s; }
.pc-clean svg { width: 17px; height: 17px; flex: none; }
.pc-clean:hover { background: rgba(46, 230, 182, .24); }
.demo--pc.is-booked .pc-clean { box-shadow: 0 0 0 4px rgba(46, 230, 182, .25); animation: nudge 1.6s ease-in-out infinite; }
.chat { border-radius: 16px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08); overflow: hidden; }
.chat__head { display: flex; align-items: center; gap: 8px; padding: 8px 12px; font-size: .8rem; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.chat__av { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #25D366; color: #04302A; font-size: .72rem; font-weight: 800; }
.chat__head small { margin-left: auto; font-size: .7rem; color: rgba(255, 255, 255, .6); }
.chat__body { display: grid; padding: 12px; }
.chat__msg { grid-area: 1 / 1; align-self: center; visibility: hidden; opacity: 0; transform: translateY(12px) scale(.97); transition: opacity .35s, transform .5s var(--ease-out), visibility 0s .5s; }
.chat__msg.is-on { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
.chat__msg--empty { justify-self: center; font-size: .84rem; color: rgba(255, 255, 255, .62); }
.chat__pair { display: grid; gap: 8px; }
.bubble { justify-self: start; max-width: 300px; padding: 10px 12px; border-radius: 4px 16px 16px 16px; background: #fff; color: #0E2A1A; font-size: .84rem; line-height: 1.45; box-shadow: 0 14px 30px -16px rgba(0, 0, 0, .6); }
.bubble--out { justify-self: end; border-radius: 16px 4px 16px 16px; background: #DCF8C6; font-weight: 600; }
.bubble--ok { display: flex; align-items: flex-start; gap: 8px; }
.bubble--ok svg { width: 20px; height: 20px; flex: none; padding: 3px; border-radius: 50%; background: var(--mint); color: #04302A; }
.bubble__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 10px; }
.bubble__btns button { min-height: 38px; padding: 4px 6px; border: 0; border-radius: 10px; font-size: .78rem; font-weight: 700; background: #E7F6EF; color: #0B6B53; transition: filter .2s; }
.bubble__btns button:first-child { background: #128C7E; color: #fff; }
.bubble__btns button:hover { filter: brightness(1.08); }
.bubble__btns button:focus-visible, .chat .bubble button:focus-visible { outline-color: #0B6B53; }

@media (max-width: 960px) {
  .demo { max-width: 620px; width: 100%; margin: 0 auto; }
}
@media (max-width: 520px) {
  .hce { padding: 12px 12px 14px; }
  .hce__step { flex-direction: column; gap: 3px; font-size: .7rem; min-height: 52px; }
  .hce__vitals { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .df-voice__text { min-height: 4.2em; }
  .paper { width: 96%; padding: 38px 16px 44px; }
  .df-sign { min-width: 0; }
  .gauges { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gauge { grid-template-columns: 56px minmax(0, 1fr); justify-items: start; align-items: center; padding: 8px 10px; }
  .gauge > span { text-align: left; }
  .pc-ctl { grid-template-columns: 1fr; }
  .pc-clean { justify-self: start; }
}

/* ---------- Clinics ---------- */
.clinics { padding: clamp(56px, 8vw, 120px) 0; position: relative; }
.journey { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; counter-reset: s; }
.journey__line { position: absolute; left: 10%; right: 10%; top: 25px; height: 2px; border-radius: 2px; background: var(--line-2); overflow: hidden; }
.journey__line::after { content: ""; position: absolute; inset: 0; background: var(--grad-bright); transform-origin: left center; transform: scaleX(var(--p, 0)); }
.journey__step { position: relative; display: grid; justify-items: center; align-content: start; text-align: center; gap: 10px; }
.journey__dot {
  position: relative; z-index: 1; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1.15rem;
  background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow);
  transition: background-color .5s, color .5s, border-color .5s;
}
.journey__step.is-in .journey__dot { background: var(--navy); color: #fff; border-color: transparent; }
.journey__step h3 { font-size: 1.25rem; letter-spacing: -.02em; }
.journey__step p { font-size: .93rem; color: var(--ink-2); line-height: 1.5; max-width: 22ch; }
.journey__prod { display: inline-flex; padding: 4px 11px; border-radius: 999px; font-size: .74rem; font-weight: 700; letter-spacing: .02em; }
.p-hce { background: rgba(29, 78, 216, .12); color: #1D4ED8; }
.p-df { background: rgba(19, 185, 216, .14); color: #086C84; }
.p-pc { background: rgba(46, 230, 182, .18); color: #087A60; }
:root[data-theme="dark"] .p-hce { background: rgba(124, 140, 240, .18); color: #AFC0FF; }
:root[data-theme="dark"] .p-df { background: rgba(19, 185, 216, .18); color: #7FE0F2; }
:root[data-theme="dark"] .p-pc { background: rgba(46, 230, 182, .16); color: #8FF2D6; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .p-hce { background: rgba(124, 140, 240, .18); color: #AFC0FF; }
  :root:not([data-theme="light"]) .p-df { background: rgba(19, 185, 216, .18); color: #7FE0F2; }
  :root:not([data-theme="light"]) .p-pc { background: rgba(46, 230, 182, .16); color: #8FF2D6; }
}
.journey__under { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px; margin: 40px auto 0; padding: 14px 20px; max-width: 760px; border-radius: 999px; border: 1px dashed var(--line-2); color: var(--ink-2); font-size: .95rem; text-align: center; }

@media (max-width: 900px) {
  .journey { grid-template-columns: 1fr; gap: 0; padding-left: 0; }
  .journey__line { display: none; }
  .journey::before { content: ""; position: absolute; left: 25px; top: 26px; bottom: 26px; width: 2px; background: linear-gradient(var(--aqua), var(--mint)); opacity: .5; }
  .journey__step { grid-template-columns: 52px 1fr; justify-items: start; text-align: left; column-gap: 18px; row-gap: 4px; padding-bottom: 26px; }
  .journey__dot { grid-row: span 3; }
  .journey__step p { max-width: none; }
  .journey__under { border-radius: 20px; }
}

.bundle {
  margin-top: clamp(48px, 7vw, 88px);
  display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(24px, 4vw, 56px); align-items: center;
  padding: clamp(28px, 4vw, 56px); border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
  position: relative; overflow: hidden;
}
.bundle::before { content: ""; position: absolute; width: 480px; height: 480px; right: -160px; top: -200px; border-radius: 50%; background: radial-gradient(circle, rgba(46, 230, 182, .3), transparent 65%); pointer-events: none; }
.bundle h3 { font-size: clamp(1.7rem, 3vw, 2.4rem); letter-spacing: -.03em; line-height: 1.05; }
.bundle__copy > p { margin: 14px 0 22px; color: var(--ink-2); max-width: 36rem; }
.bundle__list { display: grid; gap: 10px; }
.bundle__list li { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.bundle__list svg { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--mint); color: var(--navy); flex: none; }
.bundle__aside { position: relative; display: grid; gap: 18px; justify-items: start; }
.bundle__logos { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.bl { padding: 8px 14px; border-radius: 12px; font-family: var(--font-display); font-weight: 700; font-size: 1rem; color: #fff; }
.bl--hce { background: linear-gradient(135deg, #1D4ED8, #0B3B8C); }
.bl--df { background: linear-gradient(135deg, #0B7E9E, #0A6A86); }
.bl--pc { background: linear-gradient(135deg, #0B8467, #096E56); }
.bl-plus { color: var(--muted); font-weight: 600; }
.bundle__price { font-size: 1.05rem; color: var(--ink-2); }
.bundle__price strong { color: var(--ink); font-family: var(--font-display); font-size: 1.5rem; letter-spacing: -.02em; }
@media (max-width: 900px) { .bundle { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .bundle__aside .btn { width: 100%; } }

/* ---------- How we work ---------- */
.how { padding: clamp(48px, 7vw, 100px) 0; }
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tile {
  position: relative; overflow: hidden; padding: clamp(24px, 3vw, 36px); border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
  transition: transform .5s var(--ease-out), border-color .3s;
}
.tile:hover { transform: translateY(-4px); border-color: var(--line-2); }
.tile::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 0%), rgba(19, 185, 216, .12), transparent 60%); opacity: 0; transition: opacity .3s; }
.tile:hover::after { opacity: 1; }
.tile--wide { grid-column: span 2; }
.tile__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--grad-bright); color: #fff; margin-bottom: 22px; box-shadow: 0 10px 24px -10px rgba(19, 185, 216, .8); }
.tile__icon svg { width: 24px; height: 24px; }
.tile h3 { font-size: clamp(1.35rem, 2vw, 1.7rem); letter-spacing: -.025em; margin-bottom: 10px; }
.tile p { color: var(--ink-2); max-width: 46ch; }
.tile--local { min-height: 260px; padding-right: clamp(24px, 22%, 220px); }
.tile__deco { position: absolute; right: clamp(-10px, 2vw, 32px); bottom: -14px; width: clamp(110px, 16vw, 170px); opacity: .95; transform: rotate(-8deg); transition: transform .8s var(--ease-out); }
.tile--local:hover .tile__deco { transform: rotate(0) translateY(-6px); }
.tile--privacy { background: linear-gradient(160deg, #0A2540, #0B3B8C); color: #fff; border-color: transparent; }
.tile--privacy p { color: rgba(255, 255, 255, .84); }
.tile--honest { background: var(--bg-2); }
@media (max-width: 900px) {
  .bento { grid-template-columns: 1fr; }
  .tile--wide { grid-column: auto; }
  .tile--local { padding-right: clamp(24px, 3vw, 36px); padding-bottom: 130px; }
}
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: clamp(48px, 7vw, 88px); border-top: 1px solid var(--line); }
.step { padding-top: 26px; position: relative; }
.step::before { content: ""; position: absolute; top: -1px; left: 0; height: 2px; width: 0; background: var(--grad-bright); transition: width 1.2s var(--ease-out) .2s; }
.step.is-in::before { width: 100%; }
.step__n { font-family: var(--font-display); font-weight: 700; font-size: .95rem; color: var(--accent-ink); }
.step h3 { margin: 10px 0 8px; font-size: 1.4rem; letter-spacing: -.02em; }
.step p { color: var(--ink-2); max-width: 32ch; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; gap: 0; } .step { padding-bottom: 22px; } }

/* ---------- Contact ---------- */
.contact { padding: clamp(32px, 6vw, 80px) 0 clamp(64px, 9vw, 120px); }
.contact__card {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: clamp(28px, 5vw, 72px); align-items: center;
  padding: clamp(28px, 6vw, 80px); border-radius: clamp(28px, 4vw, 48px);
  background: #061A33; color: #fff;
  box-shadow: 0 50px 100px -50px rgba(6, 22, 42, .8);
}
.contact__glow { position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(50% 70% at 10% 10%, rgba(46, 230, 182, .45), transparent 70%),
  radial-gradient(50% 70% at 90% 100%, rgba(29, 78, 216, .6), transparent 70%),
  radial-gradient(40% 50% at 70% 20%, rgba(19, 185, 216, .35), transparent 70%);
  animation: glowShift 12s ease-in-out infinite alternate;
}
@keyframes glowShift { to { transform: scale(1.15) translate(-3%, 2%); } }
.contact__title { margin: 18px 0 16px; font-size: clamp(2.6rem, 6.4vw, 6rem); line-height: .92; letter-spacing: -.05em; font-weight: 750; }
.contact__lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: rgba(255, 255, 255, .84); margin-bottom: 32px; max-width: 30rem; }
.contact__list { display: grid; gap: 10px; }
.cl, .cl__main { display: flex; align-items: center; gap: 14px; }
.cl { padding: 14px 16px; border-radius: 18px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .1); transition: background-color .3s, transform .4s var(--ease-out); min-width: 0; }
a.cl:hover, .cl--mail:hover { background: rgba(255, 255, 255, .12); transform: translateX(4px); }
.cl > span:last-child, .cl__main > span:last-child { display: grid; min-width: 0; overflow-wrap: anywhere; font-weight: 600; }
.cl small { font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .66); }
.cl__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: rgba(255, 255, 255, .1); flex: none; }
.cl__icon svg { width: 20px; height: 20px; }
.cl--mail { justify-content: space-between; }
.cl__main { flex: 1; min-width: 0; }
.cl__copy { position: relative; flex: none; width: 40px; height: 40px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .2); background: transparent; color: #fff; display: grid; place-items: center; }
.cl__copy svg { width: 18px; height: 18px; }
.cl__copy:hover { background: rgba(255, 255, 255, .12); }
.cl__copied { position: absolute; bottom: calc(100% + 8px); right: 0; padding: 4px 10px; border-radius: 8px; background: #fff; color: var(--navy); font-size: .75rem; font-weight: 700; white-space: nowrap; opacity: 0; transform: translateY(4px); transition: opacity .3s, transform .3s; pointer-events: none; }
.cl__copied.show { opacity: 1; transform: none; }
@media (max-width: 900px) { .contact__card { grid-template-columns: 1fr; } }
@media (max-width: 480px) {
  .contact .btn--xl { width: 100%; font-size: 1rem; padding: 0 18px; }
  .contact__card { padding: 28px 18px; }
  .cl { padding: 12px; gap: 12px; }
  .cl__main { gap: 12px; }
  .cl__icon { width: 34px; height: 34px; border-radius: 10px; }
  .cl__copy { width: 34px; height: 34px; }
  .cl > span:last-child, .cl__main > span:last-child { font-size: .95rem; }
}

/* ---------- Footer ---------- */
.footer { padding: clamp(48px, 7vw, 80px) 0 28px; border-top: 1px solid var(--line); overflow: hidden; }
.footer__top { display: grid; grid-template-columns: 1fr 1.6fr; gap: 40px; }
.footer__brand p { margin-top: 14px; color: var(--ink-2); font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; letter-spacing: -.02em; }
.footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer__cols h2 { font-family: var(--font-body); font-size: .76rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.footer__cols ul { display: grid; gap: 10px; }
.footer__cols a, .footer__cols span { font-size: .95rem; color: var(--ink-2); }
.footer__cols a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .35s var(--ease-out), color .2s; }
.footer__cols a:hover { color: var(--ink); background-size: 100% 1px; }
.footer__word {
  margin: clamp(40px, 6vw, 72px) 0 18px; text-align: center; white-space: nowrap;
  font-family: var(--font-display); font-weight: 800; letter-spacing: -.06em; line-height: .8;
  font-size: clamp(2.6rem, 12.4vw, 13rem);
  background: linear-gradient(180deg, color-mix(in srgb, var(--ink) 14%, transparent), transparent 92%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  user-select: none;
}
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .86rem; color: var(--muted); }
@media (max-width: 760px) {
  .footer__top { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .footer__cols > div:last-child { grid-column: span 2; }
}

/* ---------- Product pages (/hce/, /doctorfirm/, /essaludpc/) ---------- */
.phero { position: relative; padding: clamp(112px, 15vh, 150px) 0 clamp(40px, 6vw, 72px); }
.crumbs { margin-bottom: clamp(20px, 3vw, 32px); }
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: .9rem; color: var(--muted); }
.crumbs li { display: inline-flex; align-items: center; gap: 8px; }
.crumbs li + li::before { content: "/"; color: var(--line-2); font-weight: 600; }
.crumbs a { color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.crumbs a:hover { color: var(--ink); text-decoration-color: currentColor; }
.crumbs [aria-current] { color: var(--ink); font-weight: 600; }
.phero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.phero__title { margin: 18px 0 20px; font-size: clamp(2.2rem, 4.4vw, 4rem); line-height: 1.02; letter-spacing: -.04em; font-weight: 700; text-wrap: balance; }
.phero__lead { max-width: 38rem; font-size: clamp(1.04rem, 1.3vw, 1.18rem); color: var(--ink-2); }
.phero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.phero__note { margin-top: 18px; max-width: 38rem; font-size: .93rem; color: var(--muted); }
.phero__note strong { color: var(--ink-2); }
.pcard--solo .pcard__inner { grid-template-columns: minmax(0, 1fr); padding: clamp(16px, 2.6vw, 30px); }
@media (max-width: 960px) {
  .phero { padding-top: 104px; }
  .phero__grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 480px) { .phero__ctas .btn { width: 100%; } }

.psec { padding: clamp(48px, 7vw, 96px) 0; }
.psec .section-head { margin-bottom: clamp(28px, 4vw, 48px); }
.psec .section-title { font-size: clamp(2rem, 4.2vw, 3.4rem); line-height: 1.02; }
.psec__split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.psec__split .section-head { margin-bottom: 0; }
@media (max-width: 900px) { .psec__split { grid-template-columns: minmax(0, 1fr); } }
.prose { display: grid; gap: 16px; max-width: 46rem; font-size: 1.06rem; color: var(--ink-2); }
.prose strong { color: var(--ink); font-weight: 650; }
.prose a, .faq a, .pnote a, .phero__note a { color: var(--accent-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.cards3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 900px) { .cards3 { grid-template-columns: minmax(0, 1fr); } }
.steps--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 0; }
@media (max-width: 960px) { .steps--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; } .steps--4 .step { padding-bottom: 22px; } }
@media (max-width: 560px) { .steps--4 { grid-template-columns: minmax(0, 1fr); } }
.flist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 32px; }
.flist li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; color: var(--ink-2); line-height: 1.5; }
.flist strong { color: var(--ink); font-weight: 650; }
.flist svg { width: 24px; height: 24px; padding: 4px; margin-top: 1px; border-radius: 50%; background: var(--mint); color: var(--navy); }
@media (max-width: 760px) { .flist { grid-template-columns: minmax(0, 1fr); } }
.pnote {
  position: relative; overflow: hidden; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(16px, 3vw, 32px); align-items: start;
  padding: clamp(24px, 4vw, 48px); border-radius: var(--radius); color: #fff;
  background: linear-gradient(160deg, #0A2540, #0B3B8C); box-shadow: var(--shadow);
}
.pnote .tile__icon { margin: 0; }
.pnote h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); letter-spacing: -.03em; line-height: 1.08; margin-bottom: 14px; }
.pnote p { color: rgba(255, 255, 255, .86); max-width: 52rem; }
.pnote p + p { margin-top: 12px; }
.pnote a { color: #fff; }
@media (max-width: 560px) { .pnote { grid-template-columns: minmax(0, 1fr); } }
.faq { display: grid; gap: 12px; max-width: 880px; }
.faq details { border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); transition: border-color .3s; }
.faq details[open] { border-color: var(--line-2); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; cursor: pointer; list-style: none; border-radius: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { font-family: var(--font-display); font-size: clamp(1.04rem, 1.4vw, 1.16rem); font-weight: 650; letter-spacing: -.015em; line-height: 1.35; }
.faq summary::after {
  content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-2);
  background: linear-gradient(currentColor, currentColor) center / 12px 2px no-repeat, linear-gradient(currentColor, currentColor) center / 2px 12px no-repeat;
  color: var(--accent-ink); transition: transform .35s var(--ease-out);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > p { padding: 0 22px 20px; color: var(--ink-2); max-width: 46rem; }
.related { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.rcard { display: grid; gap: 10px; align-content: start; }
.rcard h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); letter-spacing: -.025em; }
.rcard p { color: var(--ink-2); }
.rcard__link { display: inline; margin-top: 6px; font-weight: 650; color: var(--accent-ink); }
.rcard__link svg { display: inline-block; width: 18px; height: 18px; margin-left: 4px; vertical-align: -4px; transition: transform .35s var(--ease-out); }
.rcard__link:hover svg { transform: translateX(3px); }
.rcard__link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
@media (max-width: 760px) { .related { grid-template-columns: minmax(0, 1fr); } }
.contact__more { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom)); z-index: 45;
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  color: #fff; background: linear-gradient(135deg, var(--mint), var(--aqua) 50%, var(--blue));
  box-shadow: 0 12px 28px -10px rgba(19, 185, 216, .7), inset 0 0 0 1px rgba(255, 255, 255, .25);
  opacity: 0; visibility: hidden; translate: 0 16px;
  transition: opacity .3s, translate .4s var(--ease-out), visibility 0s .3s, scale .25s var(--ease-out), box-shadow .3s;
}
.to-top svg { width: 22px; height: 22px; rotate: 180deg; }
.to-top.is-on { opacity: 1; visibility: visible; translate: 0 0; transition-delay: 0s; }
.to-top:hover, .to-top:focus-visible { scale: 1.08; box-shadow: 0 0 0 4px rgba(19, 185, 216, .22), 0 0 28px rgba(19, 185, 216, .55); }
.to-top:active { scale: .96; }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease-out), transform .7s var(--ease-out); transition-delay: calc(var(--d, 0) * 60ms); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .reveal { opacity: 1; transform: none; }
  .hero__title .line__in { transform: none; }
  .robot__trace { stroke-dashoffset: 0; }
  .cursor-glow { display: none; }
  .js .manifesto__text .w { color: var(--ink); opacity: 1; }
  /* Demos still work by clicking: states change instantly, with only a gentle fade. */
  .hce__pane, .chat__msg, .rx__med, .rx__empty, .rx__calc, .seal, .qr { transition-property: opacity !important; transition-duration: .25s !important; }
  .js .pcard__visual:not(.is-in) .gauge circle.val { stroke-dashoffset: calc(100 - var(--v) * 100); }
  .journey__line::after { transform: none; }
  .step::before { width: 100%; }
  .pcard { transform: none !important; }
  .stage { transform: none !important; }
  .robot__body { animation: hover 5s ease-in-out infinite !important; }
  .robot__eyes { animation: blink 5s ease-in-out 1s infinite !important; }
  .robot__hub { animation: beat 2.4s ease-in-out infinite !important; }
  .robot__bulb { animation: bulb 2.4s ease-in-out infinite !important; }
  .stage__halo { animation: breathe 7s ease-in-out infinite !important; }
  /* Slow "solar system" orbit: the three product pills circle the robot and stay upright. */
  .orbit { animation: spin 90s linear infinite !important; }
  .orbit__pill { animation: spin 90s linear infinite reverse !important; }
  .stage__ring--1 { animation: spin 140s linear infinite !important; }
  .marquee__track { flex-wrap: wrap; width: auto; justify-content: center; padding: 0 16px; }
  .marquee__track > :nth-child(n+19) { display: none; }
}

/* ---------- 404 ---------- */
.notfound { min-height: 100svh; display: grid; place-content: center; justify-items: center; gap: 18px; padding: 24px 16px; text-align: center; }
.notfound img { width: 140px; }
.notfound h1 { font-size: clamp(2rem, 6vw, 3.4rem); letter-spacing: -.035em; }
.notfound p { color: var(--ink-2); max-width: 32rem; }
.notfound__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; margin-top: 8px; }
.notfound__links a { color: var(--accent-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* Text only for screen readers */
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
