/* ==================== BASE & HERO SYSTEM ==================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  background-color: var(--surface-muted);
  color: var(--ink-800);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ==================== SHELL ==================== */
.ph {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 5rem 0 5.5rem;
  background-color: var(--surface-muted);
}

.ph-container {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

.ph-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 3.5rem;
  align-items: center;
}

.ph-grid.is-even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }

.ph-center {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.ph-center .ph-lead { margin-left: auto; margin-right: auto; }
.ph-center .ph-ctas,
.ph-center .ph-points,
.ph-center .ph-proof { justify-content: center; }

/* Soft brand mesh + fading grid behind the hero */
.ph-mesh::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 12% 18%, rgba(59, 123, 246, 0.14), transparent 38%),
    radial-gradient(circle at 88% 22%, rgba(99, 102, 241, 0.12), transparent 40%),
    radial-gradient(circle at 70% 95%, rgba(14, 165, 233, 0.10), transparent 42%),
    linear-gradient(180deg, #ffffff 0%, var(--surface-muted) 100%);
}

.ph-mesh::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(37, 99, 235, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.06) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 80%);
          mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 80%);
}

/* Dark navy variant (automation, security, small business) */
.ph-dark {
  color: #ffffff;
  background:
    radial-gradient(circle at 85% 10%, rgba(59, 123, 246, 0.38), transparent 42%),
    radial-gradient(circle at 5% 90%, rgba(99, 102, 241, 0.25), transparent 40%),
    linear-gradient(135deg, var(--ink-900), #13254a);
}

.ph-dark::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 60% 40%, #000 20%, transparent 80%);
          mask-image: radial-gradient(ellipse 70% 70% at 60% 40%, #000 20%, transparent 80%);
}

.ph-dark .ph-title { color: #ffffff; }
.ph-dark .ph-lead { color: #b6c4dc; }
.ph-dark .ph-eyebrow { color: #8fb4ff; }
.ph-dark .ph-points li { color: #d5def0; }
.ph-dark .ph-proof-text strong { color: #ffffff; }
.ph-dark .ph-proof-text span { color: var(--ink-400); }

/* Decorative blurred orbs */
.ph-orb {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
  pointer-events: none;
  animation: phDrift 14s ease-in-out infinite alternate;
}

/* ==================== TYPOGRAPHY ==================== */
.ph-badge {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  align-items: center;
  gap: 0.6rem;
  padding: 0.3rem 0.9rem 0.3rem 0.3rem;
  margin-bottom: 1.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-700);
  background-color: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.ph-badge b {
  padding: 0.2rem 0.6rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #ffffff;
  background: linear-gradient(180deg, var(--brand-500), var(--brand-600));
  border-radius: 999px;
}

.ph-dark .ph-badge {
  color: #d5def0;
  background-color: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: none;
}

.ph-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--brand-600);
}

.ph-eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background-color: currentColor;
}

.ph-title {
  font-size: clamp(2.3rem, 4.6vw, 3.35rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: var(--ink-900);
  margin-bottom: 1.25rem;
}

/* Headings use one solid colour: the highlighted phrase inherits the heading colour */
.ph-hl {
  color: inherit;
  background: none;
}

.ph-lead {
  max-width: 560px;
  font-size: 1.1rem;
  line-height: 1.65;
  color: var(--ink-600);
}

/* ==================== CTAs ==================== */
.ph-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.875rem;
  margin-top: 2rem;
}

.ph-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 50px;
  padding: 0 1.6rem;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 12px;
  transition: transform 0.2s var(--ease), box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.ph-btn svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.2s var(--ease);
}

.ph-btn:hover svg { transform: translateX(3px); }

.ph-btn.solid {
  color: #ffffff;
  background: linear-gradient(180deg, var(--brand-500), var(--brand-600));
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 10px 24px -4px rgba(37, 99, 235, 0.45);
}

.ph-btn.solid:hover {
  background: linear-gradient(180deg, var(--brand-600), var(--brand-700));
  transform: translateY(-2px);
}

.ph-btn.ghost {
  color: var(--ink-800);
  background-color: #ffffff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}

.ph-btn.ghost:hover { border-color: #cfe0fb; transform: translateY(-2px); }

.ph-dark .ph-btn.ghost {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: none;
}

.ph-dark .ph-btn.ghost:hover { background-color: rgba(255, 255, 255, 0.14); }

/* Check-list under the CTAs */
.ph-points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.4rem;
  margin-top: 1.75rem;
  list-style: none;
}

.ph-points li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink-600);
}

.ph-points li::before {
  content: "";
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat,
    linear-gradient(180deg, #34d399, #10b981);
}

/* Avatar social proof */
.ph-proof {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-top: 2rem;
}

.ph-proof-stack { display: flex; }

.ph-proof-stack img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 2.5px solid #ffffff;
  box-shadow: 0 4px 10px rgba(11, 19, 36, 0.12);
}

.ph-proof-stack img + img { margin-left: -10px; }

.ph-proof-text strong { display: block; font-size: 0.875rem; font-weight: 700; color: var(--ink-900); }
.ph-proof-text span { font-size: 0.8rem; color: var(--ink-500); }
.ph-proof-text .stars { color: #f59e0b; letter-spacing: 1px; }

/* ==================== MOCKUP PRIMITIVES ==================== */
.ph-stage {
  position: relative;
}

/* Browser window */
.ph-browser {
  position: relative;
  overflow: hidden;
  background-color: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.ph-browser-bar {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  height: 40px;
  padding: 0 1rem;
  background-color: #f8fafc;
  border-bottom: 1px solid var(--line);
}

.ph-dots { display: flex; gap: 6px; }
.ph-dots i { width: 10px; height: 10px; border-radius: 50%; background-color: #e2e8f0; }
.ph-dots i:nth-child(1) { background-color: #fca5a5; }
.ph-dots i:nth-child(2) { background-color: #fcd34d; }
.ph-dots i:nth-child(3) { background-color: #86efac; }

.ph-url {
  flex: 1;
  max-width: 320px;
  margin: 0 auto;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--ink-500);
  background-color: #ffffff;
  border: 1px solid var(--line);
  border-radius: 7px;
}

.ph-url svg { width: 11px; height: 11px; }

/* Phone */
.ph-phone {
  position: relative;
  width: 280px;
  height: 572px;
  padding: 11px;
  border-radius: 44px;
  background: linear-gradient(160deg, #1e293b, #0b1324);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 40px 80px -20px rgba(11, 19, 36, 0.45),
    0 12px 24px rgba(11, 19, 36, 0.15);
}

.ph-phone-screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: 34px;
  background-color: #ffffff;
}

.ph-phone-screen::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  z-index: 5;
  width: 86px;
  height: 24px;
  transform: translateX(-50%);
  border-radius: 999px;
  background-color: #0b1324;
}

.ph-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 40px;
  padding: 0 1.4rem;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--ink-900);
}

.ph-status i { display: inline-flex; gap: 3px; }
.ph-status i b { width: 3px; border-radius: 1px; background-color: currentColor; }
.ph-status i b:nth-child(1) { height: 4px; margin-top: 4px; }
.ph-status i b:nth-child(2) { height: 6px; margin-top: 2px; }
.ph-status i b:nth-child(3) { height: 8px; }

/* Floating glass card */
.ph-card {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 0.95rem 0.7rem 0.7rem;
  background-color: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  white-space: nowrap;
}

.ph-card strong { display: block; font-size: 0.8rem; font-weight: 700; color: var(--ink-900); line-height: 1.3; }
.ph-card span:not(.ph-ico):not(.ph-pill):not(.ph-av) { display: block; font-size: 0.72rem; color: var(--ink-500); line-height: 1.35; }

/* Icon tile */
.ph-ico {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  color: var(--ic, var(--brand-600));
  background-color: var(--ib, #e0edff);
}

.ph-ico svg,
svg.ph-i {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Gradient initials avatar */
.ph-av {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 0.66rem;
  font-weight: 800;
  color: #ffffff;
  background: var(--av, linear-gradient(135deg, #60a5fa, #2563eb));
}

/* Status pill */
.ph-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.15rem 0.55rem;
  font-size: 0.66rem;
  font-weight: 700;
  border-radius: 999px;
  color: var(--tc, var(--brand-700));
  background-color: var(--tb, #e0edff);
}

/* Photo frame used by industry pages */
.ph-photo {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: var(--shadow-lg);
}

.ph-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==================== ANIMATION ==================== */
.ph-in {
  animation: phUp 0.85s var(--ease) both;
}

.ph-in.d1 { animation-delay: 0.08s; }
.ph-in.d2 { animation-delay: 0.16s; }
.ph-in.d3 { animation-delay: 0.24s; }
.ph-in.d4 { animation-delay: 0.36s; }
.ph-in.d5 { animation-delay: 0.5s; }

.ph-float { animation: phFloat 6s ease-in-out infinite; }
.ph-float.f2 { animation-duration: 7s; animation-delay: -2s; }
.ph-float.f3 { animation-duration: 8s; animation-delay: -4s; }

/* A floating card that also fades in: wrap the float around the entrance */
.ph-pop { animation: phPop 0.7s var(--ease) both; }

@keyframes phUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: none; }
}

@keyframes phPop {
  from { opacity: 0; transform: scale(0.85) translateY(10px); }
  to { opacity: 1; transform: none; }
}

@keyframes phFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes phDrift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(30px, -20px) scale(1.1); }
}

@keyframes phPulse {
  0% { transform: scale(0.8); opacity: 0.7; }
  100% { transform: scale(2.2); opacity: 0; }
}

@keyframes phBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
  .ph { padding: 4rem 0 4.5rem; }
  .ph-grid,
  .ph-grid.is-even { grid-template-columns: 1fr; gap: 3rem; }
  .ph-copy { max-width: 680px; }
}

@media (max-width: 768px) {
  .ph-container { padding: 0 1.25rem; }
  .ph-lead { font-size: 1rem; }
}

@media (max-width: 580px) {
  .ph { padding: 3rem 0 3.5rem; }
  .ph-title { font-size: 2.15rem; }
  .ph-ctas .ph-btn { width: 100%; }
  .ph-card { padding: 0.55rem 0.75rem 0.55rem 0.55rem; }
  .ph-card .ph-ico { width: 30px; height: 30px; }
}

/* Base styles are always the finished, visible state, so turning animation off is safe */
@media (prefers-reduced-motion: reduce) {
  .ph *,
  .ph *::before,
  .ph *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ==================== FULL-COVER HERO (same design as the travel page hero) ==================== */
.container { max-width: 1280px; margin: 0 auto; padding: 0 2rem; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--brand-600);
}

.eyebrow::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background-color: currentColor; }

.btn-lg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 50px;
  padding: 0 1.75rem;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 12px;
  transition: transform 0.2s var(--ease), box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn-lg svg { width: 17px; height: 17px; stroke-width: 2.5; transition: transform 0.2s var(--ease); }
.btn-lg:hover svg { transform: translateX(3px); }

.btn-lg.solid {
  color: #ffffff;
  background: linear-gradient(180deg, var(--brand-500), var(--brand-600));
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 10px 24px -4px rgba(37, 99, 235, 0.45);
}

.btn-lg.solid:hover { background: linear-gradient(180deg, var(--brand-600), var(--brand-700)); transform: translateY(-2px); }

svg.ico { display: block; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.tv-hero {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: center;
  padding: 5rem 0;
  overflow: hidden;
  isolation: isolate;
  background-color: #f4f7fc;
}

/* The doctor sits in the middle of the photo, so it is pinned to the right and faded in from the left */
.tv-hero-bg {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: -2;
  width: 64%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 30%);
          mask-image: linear-gradient(90deg, transparent 0%, #000 30%);
}

.tv-hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }

/* Full-bleed overlay to ensure clear readability */
.tv-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.88) 40%, rgb(239 245 255 / 13%) 65%, rgba(239, 245, 255, 0) 88%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.25), rgba(11, 19, 36, 0.1));
}

.tv-hero-container { position: relative; width: 100%; }
.tv-hero-inner { position: relative; }

/* Copy */
.tv-copy { max-width: 620px; }

.tv-copy h1 {
  font-size: clamp(2.3rem, 5vw, 50px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.035em;
  color: var(--ink-900);
  margin-bottom: 1.25rem;
}

.tv-copy p { max-width: 540px; font-size: 1.1rem; line-height: 1.65; color: var(--ink-600); }

/* Feature points */
.tv-points { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; margin-top: 1.75rem; }
.tv-point-card { display: flex; align-items: flex-start; gap: 0.875rem; }

.tv-point-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  color: #2563eb;
  background-color: #e0edff;
}

.tv-point-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.tv-point-text { display: flex; flex-direction: column; }
.tv-point-title { margin-bottom: 0.2rem; font-size: 0.875rem; font-weight: 700; line-height: 1.3; color: #183777; }
.tv-point-desc { font-size: 0.775rem; line-height: 1.4; color: var(--ink-500); }

/* CTAs */
.tv-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: 2rem; }

.tv-play { display: inline-flex; align-items: center; gap: 0.75rem; font-size: 0.95rem; font-weight: 600; color: var(--ink-700); transition: color 0.2s ease; }

.tv-play-btn {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  color: var(--brand-600);
  background-color: #ffffff;
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.5), 0 10px 22px -8px rgba(11, 19, 36, 0.35);
  transition: transform 0.2s var(--ease);
}

.tv-play-btn svg { width: 18px; height: 18px; margin-left: 2px; fill: currentColor; }
.tv-play:hover { color: var(--brand-600); }
.tv-play:hover .tv-play-btn { transform: scale(1.06); }

/* Floating trust chip (top right inside container) */
.tv-chip {
  position: absolute;
  top: 0;
  right: 2rem;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 1rem 0.6rem 0.6rem;
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.tv-chip-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(180deg, var(--brand-500), var(--brand-600));
}

.tv-chip-icon svg { width: 18px; height: 18px; }
.tv-chip strong { display: block; font-size: 0.825rem; font-weight: 700; line-height: 1.4; color: var(--ink-900); }
.tv-chip span { font-size: 0.825rem; line-height: 1.4; color: var(--ink-600); }

/* Entrance animation */
.js .tv-anim { opacity: 0; transform: translateY(18px); animation: tvUp 0.8s var(--ease) forwards; }
.js .tv-anim.d1 { animation-delay: 0.08s; }
.js .tv-anim.d2 { animation-delay: 0.16s; }
.js .tv-anim.d3 { animation-delay: 0.24s; }
.js .tv-anim.d4 { animation-delay: 0.32s; }

@keyframes tvUp { to { opacity: 1; transform: none; } }

@media (max-width: 1024px) {
  .tv-hero { min-height: 560px; padding: 4rem 0; }
  .tv-hero::before {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.88) 40%, rgba(239, 245, 255, 0.4) 65%, rgba(239, 245, 255, 0) 88%),
                linear-gradient(180deg, rgb(255 255 255 / 0%), rgb(11 19 36 / 0%));
  }
}

@media (max-width: 768px) {
  .container { padding: 0 1.25rem; }
  .tv-hero { min-height: 0; padding: 5rem 0 3.5rem; }
  .tv-hero-bg { width: 100%; -webkit-mask-image: none; mask-image: none; }
  .tv-hero::before {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.86) 65%, rgba(255, 255, 255, 0.45) 100%);
  }
  .tv-chip { top: -3.5rem; right: 1.25rem; padding: 0.4rem 0.8rem 0.4rem 0.4rem; }
  .tv-chip-icon { width: 30px; height: 30px; }
  .tv-chip span { display: none; }
}

@media (max-width: 580px) {
  .tv-points { grid-template-columns: 1fr; gap: 1.15rem; }
  .tv-copy h1 { font-size: 2.1rem; }
  .tv-ctas { gap: 0.875rem; }
  .tv-ctas .btn-lg { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .js .tv-anim { opacity: 1; transform: none; animation: none; }
}

/* ==================== PAGE SECTIONS ==================== */
.hx-sec { position: relative; padding: 6.5rem 0; overflow: hidden; }
.hx-sec.white { background-color: var(--surface); }
.hx-sec.tint { background: linear-gradient(180deg, #f0fdfa, #f6f9fe); }
.hx-wrap { position: relative; max-width: 1280px; margin: 0 auto; padding: 0 2rem; }
.hx-sec h2, .hx-sec h3, .hx-sec h4 { color: var(--ink-900); }
.hx-eb { display: inline-flex; align-items: center; gap: 0.5rem; margin-bottom: 0.9rem; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: #0f766e; }
.hx-eb::before { content: ""; width: 16px; height: 16px; background: linear-gradient(#14b8a6 0 0) center / 100% 5px no-repeat, linear-gradient(#14b8a6 0 0) center / 5px 100% no-repeat; }
.hx-h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); font-weight: 800; line-height: 1.15; letter-spacing: -0.035em; }
.hx-p { margin-top: 1rem; font-size: 1.03rem; line-height: 1.75; color: var(--ink-600); }
.hx-head { max-width: 760px; margin: 0 auto 3.5rem; text-align: center; }

.rv-on [data-rv] { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.rv-on [data-rv].in { opacity: 1; transform: none; }

/* ---------- 1. ECG monitor ---------- */
.hx-pulse-wrap { display: grid; grid-template-columns: 1fr 1.15fr; gap: 4rem; align-items: center; }
.hx-helps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.55rem 1.2rem; margin-top: 1.6rem; padding: 0; list-style: none; }
.hx-helps li { display: flex; align-items: flex-start; gap: 0.55rem; font-size: 0.9rem; font-weight: 600; line-height: 1.45; color: var(--ink-700); }
.hx-helps li::before { content: ""; flex-shrink: 0; width: 18px; height: 18px; margin-top: 1px; border-radius: 6px; background: #ccfbf1 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f766e' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat; }
.hx-monitor { position: relative; padding: 1.4rem; border-radius: 28px; background: linear-gradient(160deg, #0f2a2e, #071517); border: 6px solid #1f3b40; box-shadow: 0 40px 70px -32px rgba(7, 21, 23, 0.8), inset 0 0 40px rgba(20, 184, 166, 0.08); }
.hx-chans { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.hx-chans span { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.3rem 0.65rem; font-size: 0.74rem; font-weight: 700; color: #99f6e4; background-color: rgba(20, 184, 166, 0.1); border: 1px solid rgba(20, 184, 166, 0.25); border-radius: 999px; }
.hx-chans span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background-color: #2dd4bf; animation: hxBlink 1.4s ease-in-out infinite; }
.hx-chans span:nth-child(2)::before { animation-delay: 0.3s; } .hx-chans span:nth-child(3)::before { animation-delay: 0.6s; } .hx-chans span:nth-child(4)::before { animation-delay: 0.9s; } .hx-chans span:nth-child(5)::before { animation-delay: 1.2s; }
.hx-screen { position: relative; margin-top: 1.1rem; height: 170px; border-radius: 14px; background-color: #041012; background-image: linear-gradient(rgba(45, 212, 191, 0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(45, 212, 191, 0.07) 1px, transparent 1px); background-size: 22px 22px; overflow: hidden; }
.hx-screen svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hx-screen .base { fill: none; stroke: rgba(45, 212, 191, 0.25); stroke-width: 2; }
.hx-screen .beat { fill: none; stroke: #5eead4; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 0.28 0.72; stroke-dashoffset: 1; filter: drop-shadow(0 0 6px #2dd4bf); animation: hxBeat 3.2s linear infinite; }
.hx-screen .lbl { position: absolute; top: 0.7rem; left: 0.9rem; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: #5eead4; }
.hx-screen .bpm { position: absolute; top: 0.6rem; right: 0.9rem; font-size: 0.72rem; font-weight: 700; color: #99f6e4; }
.hx-vitals { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.7rem; margin-top: 1rem; }
.hx-vitals div { padding: 0.8rem 0.7rem; border-radius: 14px; background-color: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.07); }
.hx-vitals b { display: block; font-size: 1.45rem; font-weight: 800; line-height: 1; color: var(--c); }
.hx-vitals small { display: block; margin-top: 0.4rem; font-size: 0.7rem; line-height: 1.3; color: #94a3b8; }
.hx-vitals div:nth-child(1) { --c: #5eead4; } .hx-vitals div:nth-child(2) { --c: #7dd3fc; } .hx-vitals div:nth-child(3) { --c: #fcd34d; } .hx-vitals div:nth-child(4) { --c: #f9a8d4; }
.hx-note { margin-top: 0.9rem; font-size: 0.7rem; color: #5f7f84; text-align: right; }
@keyframes hxBeat { to { stroke-dashoffset: 0; } }
@keyframes hxBlink { 50% { opacity: 0.3; } }

/* ---------- 2. Appointment calendar ---------- */
.hx-cal-wrap { display: grid; grid-template-columns: 1.15fr 1fr; gap: 4rem; align-items: center; }
.hx-cal { position: relative; padding: 1.4rem; border-radius: 26px; background-color: #fff; border: 1px solid var(--line); box-shadow: 0 40px 70px -40px rgba(11, 19, 36, 0.45); }
.hx-cal-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.hx-cal-h b { font-size: 1rem; font-weight: 800; color: var(--ink-900); }
.hx-cal-h span { font-size: 0.75rem; font-weight: 700; color: #0f766e; padding: 0.25rem 0.6rem; background-color: #ccfbf1; border-radius: 999px; }
.hx-grid { display: grid; grid-template-columns: 44px repeat(5, 1fr); grid-template-rows: 26px repeat(6, 46px); gap: 4px; }
.hx-grid .d { grid-row: 1; align-self: center; text-align: center; font-size: 0.72rem; font-weight: 800; color: var(--ink-500); text-transform: uppercase; letter-spacing: 0.05em; }
.hx-grid .t { grid-column: 1; align-self: start; font-size: 0.68rem; font-weight: 600; color: var(--ink-400); }
.hx-grid .t:nth-of-type(6) { grid-row: 2; } .hx-grid .t:nth-of-type(7) { grid-row: 3; } .hx-grid .t:nth-of-type(8) { grid-row: 4; } .hx-grid .t:nth-of-type(9) { grid-row: 5; } .hx-grid .t:nth-of-type(10) { grid-row: 6; } .hx-grid .t:nth-of-type(11) { grid-row: 7; }
.hx-grid .d:nth-of-type(1) { grid-column: 2; } .hx-grid .d:nth-of-type(2) { grid-column: 3; } .hx-grid .d:nth-of-type(3) { grid-column: 4; } .hx-grid .d:nth-of-type(4) { grid-column: 5; } .hx-grid .d:nth-of-type(5) { grid-column: 6; }
.hx-grid .bg { grid-column: 2 / 7; grid-row: 2 / 8; border-radius: 12px; background-image: linear-gradient(var(--line-soft) 1px, transparent 1px); background-size: 100% 50px; background-color: #fbfdfe; }
.hx-apt { position: relative; z-index: 1; display: grid; align-content: center; padding: 0.3rem 0.55rem; border-radius: 9px; border-left: 3px solid var(--c); background-color: var(--bg); font-size: 0.7rem; line-height: 1.3; color: var(--ink-700); transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.5s ease; }
.hx-apt b { font-size: 0.74rem; font-weight: 800; color: var(--ink-900); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hx-apt.teal { --c: #14b8a6; --bg: #ccfbf1; } .hx-apt.blue { --c: #3b82f6; --bg: #dbeafe; } .hx-apt.amber { --c: #f59e0b; --bg: #fef3c7; } .hx-apt.pink { --c: #ec4899; --bg: #fce7f3; }
.hx-apt.a1 { grid-column: 2; grid-row: 2 / 4; } .hx-apt.a2 { grid-column: 3; grid-row: 3; } .hx-apt.a3 { grid-column: 4; grid-row: 2; } .hx-apt.a4 { grid-column: 4; grid-row: 5 / 7; }
.hx-apt.a5 { grid-column: 5; grid-row: 4; } .hx-apt.a6 { grid-column: 6; grid-row: 3 / 5; } .hx-apt.a7 { grid-column: 2; grid-row: 6; } .hx-apt.a8 { grid-column: 3; grid-row: 5 / 7; } .hx-apt.a9 { grid-column: 6; grid-row: 6 / 8; } .hx-apt.a10 { grid-column: 5; grid-row: 7; }
.rv-on .hx-cal:not(.in) .hx-apt { opacity: 0; transform: scale(0.6); }
.hx-cal.in .hx-apt { transition-delay: calc(var(--i, 1) * 0.09s + 0.3s); }
.hx-apt.a2 { --i: 2; } .hx-apt.a3 { --i: 3; } .hx-apt.a4 { --i: 4; } .hx-apt.a5 { --i: 5; } .hx-apt.a6 { --i: 6; } .hx-apt.a7 { --i: 7; } .hx-apt.a8 { --i: 8; } .hx-apt.a9 { --i: 9; } .hx-apt.a10 { --i: 10; }
.hx-toast { position: absolute; z-index: 3; display: flex; align-items: center; gap: 0.7rem; padding: 0.75rem 0.95rem; border-radius: 16px; background-color: #fff; border: 1px solid var(--line); box-shadow: 0 22px 40px -18px rgba(11, 19, 36, 0.45); font-size: 0.76rem; line-height: 1.35; color: var(--ink-500); animation: hxToast 6s var(--ease) infinite; }
.hx-toast i { display: grid; place-items: center; flex-shrink: 0; width: 34px; height: 34px; font-style: normal; font-size: 1rem; border-radius: 10px; background-color: #ccfbf1; }
.hx-toast b { display: block; font-size: 0.82rem; color: var(--ink-900); }
.hx-toast.t1 { right: -1.5rem; top: -1.6rem; }
.hx-toast.t2 { left: -1.8rem; bottom: -1.6rem; animation-delay: 3s; }
.hx-toast.t2 i { background-color: #fef3c7; }
.hx-tracks { display: grid; gap: 1rem; margin-top: 1.6rem; }
.hx-track { display: grid; grid-template-columns: 46px 1fr; gap: 0.2rem 0.9rem; padding: 1rem 1.1rem; border-radius: 18px; background-color: #fff; border: 1px solid var(--line); }
.hx-track i { grid-row: span 2; display: grid; place-items: center; width: 46px; height: 46px; font-style: normal; font-size: 1.25rem; border-radius: 14px; background-color: #f0fdfa; }
.hx-track h3 { font-size: 1rem; font-weight: 700; }
.hx-track p { font-size: 0.84rem; line-height: 1.5; color: var(--ink-500); }
@keyframes hxToast { 0%, 8% { opacity: 0; transform: translateY(12px) scale(0.96); } 14%, 70% { opacity: 1; transform: none; } 80%, 100% { opacity: 0; transform: translateY(-8px); } }

/* ---------- 3. Rx pad ---------- */
.hx-rx-wrap { display: grid; grid-template-columns: 1.2fr 1fr; gap: 3.5rem; align-items: start; }
.hx-rx { position: relative; padding: 2.2rem 2.2rem 2rem; border-radius: 6px 6px 22px 22px; background-color: #fffefb; border: 1px solid #ece7da; box-shadow: 0 2px 0 #f3efe4, 0 5px 0 #ece7da, 0 40px 60px -40px rgba(11, 19, 36, 0.5); }
.hx-rx::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 10px; border-radius: 6px 6px 0 0; background: repeating-linear-gradient(90deg, #14b8a6 0 18px, #0f766e 18px 36px); }
.hx-rx-h { display: flex; align-items: center; gap: 1rem; padding-bottom: 1.1rem; border-bottom: 2px solid #ece7da; }
.hx-rx-h img { width: 40px; height: 40px; }
.hx-rx-h b { display: block; font-size: 1.05rem; font-weight: 800; color: var(--ink-900); }
.hx-rx-h small { font-size: 0.78rem; color: var(--ink-500); }
.hx-rx-h em { margin-left: auto; font-family: Georgia, "Times New Roman", serif; font-size: 2.6rem; font-style: italic; font-weight: 700; line-height: 1; color: #0f766e; }
.hx-rx-cols { display: grid; grid-template-columns: 1fr 34px 1fr; gap: 0.2rem; margin-top: 1rem; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase; color: var(--ink-400); }
.hx-rx-cols span:last-child { color: #0f766e; }
.hx-rx-row { display: grid; grid-template-columns: 1fr 34px 1fr; align-items: center; gap: 0.2rem; padding: 0.85rem 0; border-bottom: 1px dashed #e7e1d2; }
.hx-rx-row .sym { font-size: 0.9rem; line-height: 1.45; color: var(--ink-500); }
.hx-rx-row .sym::before { content: "✕"; margin-right: 0.45rem; font-size: 0.72rem; font-weight: 800; color: #ef4444; }
.hx-rx-row .arr { width: 22px; height: 2px; background-color: #14b8a6; position: relative; }
.hx-rx-row .arr::after { content: ""; position: absolute; right: -2px; top: -4px; border: 5px solid transparent; border-left-color: #14b8a6; border-right: 0; }
.hx-rx-row .cure { font-size: 0.92rem; font-weight: 700; line-height: 1.45; color: var(--ink-900); }
.hx-rx-sign { display: flex; justify-content: flex-end; margin-top: 1.4rem; }
.hx-rx-sign svg { width: 170px; height: 50px; fill: none; stroke: #1e3a8a; stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke-dashoffset 1.8s ease 0.8s; }
.rv-on .hx-rx:not(.in) .hx-rx-sign svg { stroke-dashoffset: 1; }
.hx-fac { display: grid; gap: 0.8rem; margin-top: 1.6rem; }
.hx-fac div { display: flex; align-items: center; gap: 1rem; padding: 0.9rem 1.1rem; border-radius: 16px; background-color: #fff; border: 1px solid var(--line); transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease); }
.hx-fac div:hover { transform: translateX(6px); box-shadow: -6px 0 0 #14b8a6; }
.hx-fac i { display: grid; place-items: center; flex-shrink: 0; width: 44px; height: 44px; font-style: normal; font-size: 1.25rem; border-radius: 50%; background-color: #f0fdfa; border: 2px solid #99f6e4; }
.hx-fac h3 { font-size: 0.98rem; font-weight: 700; }
.hx-fac p { font-size: 0.82rem; color: var(--ink-500); }

/* ---------- 4. Clipboard + FAQ ---------- */
.hx-pick-wrap { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 4rem; align-items: start; }
.hx-board { position: relative; padding: 1.4rem; border-radius: 22px; background: linear-gradient(160deg, #b98a5a, #8b5e34); box-shadow: 0 40px 60px -35px rgba(80, 45, 15, 0.7); }
.hx-clip { position: absolute; left: 50%; top: -18px; width: 120px; height: 40px; margin-left: -60px; border-radius: 10px 10px 6px 6px; background: linear-gradient(180deg, #e2e8f0, #94a3b8); box-shadow: 0 6px 10px -4px rgba(0, 0, 0, 0.35); z-index: 2; }
.hx-clip::after { content: ""; position: absolute; left: 50%; top: 8px; width: 34px; height: 12px; margin-left: -17px; border-radius: 8px; background-color: #64748b; }
.hx-sheet { padding: 2.4rem 1.6rem 1.6rem; border-radius: 10px; background-color: #fff; background-image: linear-gradient(transparent 38px, #e0f2fe 38px, #e0f2fe 39px, transparent 39px); background-size: 100% 40px; background-position: 0 18px; }
.hx-sheet h3 { font-size: 1.08rem; font-weight: 800; }
.hx-sheet > small { display: block; margin-top: 0.2rem; font-size: 0.8rem; color: var(--ink-500); }
.hx-chk { display: grid; gap: 0.95rem; margin: 1.3rem 0 0; padding: 0; list-style: none; }
.hx-chk li { display: grid; grid-template-columns: 26px 1fr; gap: 0.1rem 0.8rem; }
.hx-chk svg { grid-row: span 2; width: 26px; height: 26px; border: 2px solid #94a3b8; border-radius: 6px; fill: none; stroke: #0f766e; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.hx-chk svg path { stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke-dashoffset 0.5s ease; }
.hx-chk li:nth-child(1) svg path { transition-delay: 0.4s; } .hx-chk li:nth-child(2) svg path { transition-delay: 0.8s; } .hx-chk li:nth-child(3) svg path { transition-delay: 1.2s; } .hx-chk li:nth-child(4) svg path { transition-delay: 1.6s; } .hx-chk li:nth-child(5) svg path { transition-delay: 2s; }
.rv-on .hx-board:not(.in) .hx-chk svg path { stroke-dashoffset: 1; }
.hx-chk b { font-size: 0.95rem; font-weight: 700; color: var(--ink-900); }
.hx-chk span { font-size: 0.82rem; line-height: 1.45; color: var(--ink-500); }
.hx-why { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 1.4rem; }
.hx-why span { padding: 0.4rem 0.8rem; font-size: 0.8rem; font-weight: 700; color: #0f766e; background-color: #f0fdfa; border: 1px solid #99f6e4; border-radius: 999px; }
.hx-faq { display: grid; grid-template-columns: 1fr 1.1fr; gap: 1rem; margin-top: 1.8rem; }
.hx-faq input { position: absolute; opacity: 0; pointer-events: none; }
.hx-qs { display: grid; gap: 0.5rem; align-content: start; }
.hx-qs label { display: block; padding: 0.85rem 1rem; font-size: 0.88rem; font-weight: 700; line-height: 1.4; color: var(--ink-700); background-color: #fff; border: 1px solid var(--line); border-radius: 14px; cursor: pointer; transition: all 0.3s var(--ease); }
.hx-qs label:hover { border-color: #5eead4; }
.hx-as { position: relative; padding: 1.6rem; border-radius: 20px; background: linear-gradient(160deg, #0f766e, #134e4a); color: #ccfbf1; }
.hx-as::before { content: "?"; position: absolute; right: 1.2rem; bottom: 0.2rem; font-size: 7rem; font-weight: 800; line-height: 1; color: rgba(255, 255, 255, 0.07); }
.hx-a { display: none; }
.hx-a h3 { font-size: 1.1rem; font-weight: 800; color: #fff; }
.hx-a p { margin-top: 0.7rem; font-size: 0.94rem; line-height: 1.7; }
#hxq1:checked ~ .hx-qs label[for="hxq1"], #hxq2:checked ~ .hx-qs label[for="hxq2"], #hxq3:checked ~ .hx-qs label[for="hxq3"], #hxq4:checked ~ .hx-qs label[for="hxq4"], #hxq5:checked ~ .hx-qs label[for="hxq5"], #hxq6:checked ~ .hx-qs label[for="hxq6"] { color: #fff; background-color: #0f766e; border-color: #0f766e; }
#hxq1:checked ~ .hx-as .a1, #hxq2:checked ~ .hx-as .a2, #hxq3:checked ~ .hx-as .a3, #hxq4:checked ~ .hx-as .a4, #hxq5:checked ~ .hx-as .a5, #hxq6:checked ~ .hx-as .a6 { display: block; animation: hxIn 0.45s var(--ease); }
.hx-faq input:focus-visible ~ .hx-qs label { outline: none; }
#hxq1:focus-visible ~ .hx-qs label[for="hxq1"], #hxq2:focus-visible ~ .hx-qs label[for="hxq2"], #hxq3:focus-visible ~ .hx-qs label[for="hxq3"], #hxq4:focus-visible ~ .hx-qs label[for="hxq4"], #hxq5:focus-visible ~ .hx-qs label[for="hxq5"], #hxq6:focus-visible ~ .hx-qs label[for="hxq6"] { outline: 2px solid var(--brand-500); outline-offset: 2px; }
@keyframes hxIn { from { opacity: 0; transform: translateY(8px); } }

@media (max-width: 1024px) {
  .hx-pulse-wrap, .hx-cal-wrap, .hx-rx-wrap, .hx-pick-wrap { grid-template-columns: 1fr; gap: 3rem; }
  .hx-toast.t1 { right: 0.5rem; } .hx-toast.t2 { left: 0.5rem; }
}
@media (max-width: 680px) {
  .hx-sec { padding: 4.5rem 0; }
  .hx-wrap { padding: 0 1rem; }
  .hx-helps, .hx-faq { grid-template-columns: 1fr; }
  .hx-vitals { grid-template-columns: repeat(2, 1fr); }
  .hx-grid { grid-template-columns: 34px repeat(5, 1fr); grid-template-rows: 26px repeat(6, 40px); }
  .hx-apt { padding: 0.2rem 0.3rem; font-size: 0; }
  .hx-apt b { font-size: 0.6rem; }
  .hx-toast { position: relative; left: auto; right: auto; top: auto; bottom: auto; margin-top: 0.8rem; animation: none; }
  .hx-rx { padding: 2rem 1.2rem 1.6rem; }
  .hx-rx-row, .hx-rx-cols { grid-template-columns: 1fr 26px 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .hx-screen .beat { animation: none; stroke-dasharray: none; }
  .hx-chans span::before, .hx-toast { animation: none; }
}
.hx-toast.t1 { top: -3.8rem; right: -1rem; }
.hx-toast.t2 { bottom: -3.4rem; }
.hx-cal-wrap { padding-top: 2rem; padding-bottom: 2rem; }
@media (max-width: 680px) { .hx-toast.t1, .hx-toast.t2 { top: auto; bottom: auto; right: auto; } .hx-cal-wrap { padding-top: 0; padding-bottom: 0; } }
/* ==================== END PAGE SECTIONS ==================== */


/* ==================== SEO SECTIONS (page design) ==================== */
.kw-section, .alt-section, .rel-section {
  --kw-accent: #0f766e;
  --kw-accent-ink: color-mix(in srgb, #0f766e 82%, #000);
  --kw-tint: color-mix(in srgb, #0f766e 9%, #fff);
  --kw-tint-2: color-mix(in srgb, #0f766e 16%, #fff);
  --kw-ink: var(--ink-900, #0b1324);
  --kw-text: var(--ink-600, #475569);
  --kw-line: var(--line, #e6ebf2);
  position: relative;
  padding: 6rem 0;
  background-color: var(--surface, #fff);
}
.kw-inner, .rel-inner, .alt-inner { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }

/* Badge: same pill as the page headers (ph-badge) */
.kw-badge {
  display: inline-flex; width: fit-content; max-width: 100%; align-items: center; gap: 0.6rem;
  padding: 0.3rem 0.9rem 0.3rem 0.3rem; margin-bottom: 1.4rem; font-size: 0.8rem; font-weight: 600;
  color: var(--ink-700, #334155); background-color: rgba(255, 255, 255, 0.85); border: 1px solid var(--kw-line);
  border-radius: 999px; box-shadow: var(--shadow-md, 0 8px 24px rgba(11, 19, 36, 0.06));
}
.kw-badge b {
  padding: 0.2rem 0.6rem; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  color: #fff; background: linear-gradient(180deg, var(--brand-500, #3b7bf6), var(--brand-600, #2563eb)); border-radius: 999px;
}

/* ---------- Keyword section: copy + product panel ---------- */
.kw-section .kw-inner { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 4.5rem; align-items: center; }
.kw-section.kw-flip .kw-copy { order: 2; }
.kw-copy h2 { margin: 0 0 1.1rem; font-size: clamp(2rem, 3.6vw, 2.75rem); font-weight: 800; line-height: 1.12; letter-spacing: -0.035em; color: var(--kw-ink); }
.kw-lead { margin: 0 0 1.75rem; font-size: 1.05rem; line-height: 1.75; color: var(--kw-text); }
.kw-lead strong { color: var(--kw-ink); }
.kw-list { display: grid; gap: 1.1rem; margin: 0; padding: 0; list-style: none; }
.kw-item { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 0.9rem; align-items: start; }
.kw-check { display: grid; place-items: center; width: 28px; height: 28px; margin-top: 1px; color: var(--kw-accent-ink); background: var(--kw-tint-2); border-radius: 8px; }
.kw-check svg { width: 15px; height: 15px; stroke-width: 3; }
.kw-item h3 { margin: 0 0 0.25rem; font-size: 1rem; font-weight: 700; line-height: 1.4; color: var(--kw-ink); }
.kw-item p { margin: 0; font-size: 0.92rem; line-height: 1.65; color: var(--kw-text); }
.kw-item a, .alt-card a { font-weight: 700; color: var(--kw-accent-ink); text-decoration: none; }

.kw-visual { position: relative; padding: 2rem 1rem 3rem; }
.kw-visual::before { content: ""; position: absolute; inset: 8% 4%; background: radial-gradient(closest-side, var(--kw-tint-2), transparent); filter: blur(10px); }
.kw-panel { position: relative; overflow: hidden; background: var(--surface, #fff); border: 1px solid var(--kw-line); border-radius: 22px; box-shadow: var(--shadow-lg, 0 24px 60px -12px rgba(11, 19, 36, 0.18)); }
.kw-panel-head { display: flex; align-items: center; gap: 0.8rem; padding: 1rem 1.25rem; color: #fff; background: linear-gradient(135deg, var(--kw-accent), var(--kw-accent-ink)); }
.kw-panel-logo { display: grid; place-items: center; width: 38px; height: 38px; background: rgba(255, 255, 255, 0.18); border-radius: 11px; }
.kw-panel-logo svg { width: 19px; height: 19px; }
.kw-panel-head strong { display: block; font-size: 0.95rem; font-weight: 700; }
.kw-panel-head small { display: block; font-size: 0.72rem; opacity: 0.8; }
.kw-live { display: inline-flex; align-items: center; gap: 0.4rem; margin-left: auto; padding: 0.25rem 0.6rem; font-size: 0.7rem; font-weight: 700; color: var(--kw-accent-ink); background: #fff; border-radius: 999px; }
.kw-live i { width: 6px; height: 6px; background: #22c55e; border-radius: 50%; box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2); }
.kw-ico { display: grid; place-items: center; flex-shrink: 0; width: 36px; height: 36px; color: var(--kw-accent-ink); background: var(--kw-tint); border-radius: 10px; }
.kw-ico svg { width: 17px; height: 17px; }
.kw-panel-rows { margin: 0; padding: 0.4rem 0; list-style: none; }
.kw-panel-rows li { display: flex; align-items: center; gap: 0.85rem; padding: 0.8rem 1.25rem; border-bottom: 1px solid var(--line-soft, #f0f3f8); }
.kw-panel-rows li:last-child { border-bottom: 0; }
.kw-row-txt { flex: 1; min-width: 0; font-size: 0.88rem; font-weight: 600; color: var(--kw-ink); }
.kw-panel-rows em { display: inline-flex; align-items: center; gap: 0.25rem; font-size: 0.72rem; font-style: normal; font-weight: 700; color: #15803d; }
.kw-panel-rows em svg { width: 13px; height: 13px; stroke-width: 3; }
.kw-panel-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; margin: 0; padding: 1.1rem; list-style: none; }
.kw-panel-tiles li { display: flex; flex-direction: column; gap: 0.6rem; padding: 1rem; background: var(--surface-muted, #f7f9fc); border: 1px solid var(--line-soft, #f0f3f8); border-radius: 14px; }
.kw-panel-tiles b { font-size: 0.85rem; font-weight: 700; line-height: 1.35; color: var(--kw-ink); }
.kw-panel-tiles em { width: fit-content; padding: 0.15rem 0.5rem; font-size: 0.68rem; font-style: normal; font-weight: 700; color: #15803d; background: #dcfce7; border-radius: 999px; }
.kw-panel-foot { display: flex; justify-content: space-between; gap: 1rem; padding: 0.85rem 1.25rem; font-size: 0.75rem; color: var(--ink-500, #64748b); background: var(--surface-muted, #f7f9fc); border-top: 1px solid var(--line-soft, #f0f3f8); }
.kw-panel-foot b { color: var(--kw-accent-ink); }
.kw-toast { position: absolute; bottom: 0; left: 0; display: flex; align-items: center; gap: 0.7rem; max-width: 280px; padding: 0.75rem 1rem 0.75rem 0.75rem; background: var(--surface, #fff); border: 1px solid var(--kw-line); border-radius: 16px; box-shadow: var(--shadow-lg, 0 24px 60px -12px rgba(11, 19, 36, 0.18)); }
.kw-toast-ico { display: grid; place-items: center; flex-shrink: 0; width: 34px; height: 34px; color: #fff; background: linear-gradient(180deg, #22c55e, #16a34a); border-radius: 10px; }
.kw-toast-ico svg { width: 17px; height: 17px; stroke-width: 3; }
.kw-toast b { display: block; font-size: 0.82rem; font-weight: 700; line-height: 1.3; color: var(--kw-ink); }
.kw-toast small { display: block; font-size: 0.72rem; color: var(--ink-500, #64748b); }

/* ---------- Related solutions: one rounded card with tinted link chips ---------- */
.rel-section { padding-top: 2rem; }
.rel-card { padding: 2.25rem; background: var(--surface, #fff); border: 1px solid var(--kw-line); border-radius: 28px; box-shadow: 0 18px 50px -30px rgba(11, 19, 36, 0.25); }
.rel-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; margin-bottom: 1.75rem; }
.rel-top .kw-badge { margin-bottom: 0.9rem; }
.rel-top h2 { margin: 0; font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 800; line-height: 1.15; letter-spacing: -0.03em; color: var(--kw-ink); }
.rel-all { flex-shrink: 0; display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.65rem 1.1rem; font-size: 0.88rem; font-weight: 700; color: var(--kw-ink); text-decoration: none; background: var(--surface, #fff); border: 1px solid var(--kw-line); border-radius: 12px; box-shadow: var(--shadow-md, 0 8px 24px rgba(11, 19, 36, 0.06)); transition: border-color 0.2s ease, color 0.2s ease; }
.rel-all:hover { color: var(--brand-600, #2563eb); border-color: var(--brand-600, #2563eb); }
.rel-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; margin: 0; padding: 0; list-style: none; }
.rel-grid a { display: flex; align-items: center; gap: 0.9rem; height: 100%; padding: 0.95rem 1rem; text-decoration: none; background: var(--surface, #fff); border: 1px solid var(--kw-line); border-radius: 16px; transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease; }
.rel-grid a:hover { background: var(--surface, #fff); border-color: color-mix(in srgb, var(--kw-accent) 40%, #fff); transform: translateY(-2px); }
.rel-grid a:focus-visible { outline: 3px solid color-mix(in srgb, var(--kw-accent) 40%, transparent); outline-offset: 2px; }
.rel-ico { display: grid; place-items: center; flex-shrink: 0; width: 40px; height: 40px; color: #fff; background: var(--kw-accent); border-radius: 12px; box-shadow: 0 2px 6px rgba(11, 19, 36, 0.06); }
.rel-ico svg { width: 19px; height: 19px; }
.rel-txt { flex: 1; min-width: 0; }
.rel-txt strong { display: block; font-size: 0.95rem; font-weight: 700; color: var(--kw-ink); }
.rel-txt-desc { display: block; margin-top: 0.15rem; font-size: 0.8rem; line-height: 1.45; color: var(--kw-text); }
.rel-arrow { flex-shrink: 0; color: var(--kw-accent); transition: transform 0.2s ease; }
.rel-grid a:hover .rel-arrow { transform: translateX(3px); }

/* Breadcrumb in the hero, above the badge */
.crumbs { position: relative; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 0.4rem; margin: 0 0 1.1rem; padding: 0; list-style: none; font-size: 0.85rem; color: var(--ink-500, #64748b); }
.crumbs li { display: inline-flex; align-items: center; gap: 0.4rem; }
.crumbs li + li::before { content: "›"; color: var(--ink-400, #94a3b8); }
.crumbs a { font-weight: 600; color: #2563eb; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs [aria-current="page"] { font-weight: 600; color: #0b1324; }

/* Contextual links in body copy: no underline, keep the paragraph colour */
main p a.ctx-link { color: inherit; font-weight: 600; text-decoration: none; }

@media (max-width: 1000px) {
  .kw-section .kw-inner { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
  .kw-section.kw-flip .kw-copy { order: 0; }
  .kw-visual { max-width: 520px; width: 100%; margin: 0 auto; }
  .rel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .kw-section, .rel-section, .alt-section { padding: 3.5rem 0; }
  .rel-section { padding-top: 1rem; }
  .kw-inner, .rel-inner, .alt-inner { padding: 0 1rem; }
  .kw-visual { padding: 1rem 0 3.5rem; }
  .kw-toast { left: 0.5rem; right: auto; }
  .rel-card { padding: 1.5rem 1.1rem; border-radius: 22px; }
  .rel-top { flex-direction: column; align-items: flex-start; }
  .rel-grid, .alt-grid { grid-template-columns: minmax(0, 1fr); }
  .alt-card:last-child:nth-child(3n + 1) { grid-column: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .rel-grid a, .rel-arrow { transition: none; }
}
/* Hero badge sits inside the H1 (keyword first); keep it looking like the normal badge */
main h1 .ph-badge.h1-badge {
  display: flex; width: fit-content; max-width: 100%; margin: 0 0 1.4rem;
  font-size: 0.8rem; font-weight: 600; line-height: 1.4; letter-spacing: 0; text-transform: none;
  -webkit-text-fill-color: currentColor;
}
main h1 .ph-badge.h1-badge b { display: inline; }
main h1 .ph-badge.h1-badge b::before { content: attr(data-label); }
/* ==================== END SEO SECTIONS ==================== */
