/* ============================================
   Medify Website v2 — Refined Design
   ============================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Brand */
  --primary: #44BDDB;
  --primary-2: #5568AC;
  --sky-1: #0683AA;
  --sky-2: #1793BA;
  --sky-3: #28A3CA;
  --sky-4: #5BB1CC;
  --sky-6: #71CBE1;
  --sky-7: #94DCEA;
  --sky-8: #CDEBF1;
  --sky-9: #EDF7F9;
  --gray-1: #2C2C2C;
  --gray-2: #424242;
  --gray-3: #636363;
  --gray-4: #959595;
  --gray-5: #AEAEAE;
  --gray-6: #BFBFBF;
  --gray-7: #E8E8E8;
  --gray-8: #F7F7F7;
  --success: #76C0A5;
  --warning: #F5B142;
  --danger: #F58C6C;

  /* Type — 全站使用系統字體 */
  --f-en: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang TC', 'Microsoft JhengHei', 'Noto Sans TC', sans-serif;
  --f-tc: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang TC', 'Microsoft JhengHei', 'Noto Sans TC', sans-serif;
  --f-hw: 'Caveat', cursive;

  /* Radius + shadow */
  --r-lg: 28px;
  --r-md: 18px;
  --r-sm: 12px;
  --sh-card: 0 1px 2px rgba(85,104,172,0.04), 0 8px 24px rgba(85,104,172,0.06);
  --sh-lift: 0 4px 12px rgba(85,104,172,0.08), 0 24px 48px rgba(85,104,172,0.12);
  --sh-deep: 0 32px 64px rgba(10,40,80,0.14);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--f-tc);
  color: var(--gray-1);
  background: #ffffff;
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
img { max-width: 100%; display: block; }

/* Utility */
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 40px; }
.wrap-wide { max-width: 1440px; margin: 0 auto; padding: 0 40px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-en);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sky-1);
}
.eyebrow::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--sky-1);
}

h1, h2, h3, h4 { font-family: var(--f-en), var(--f-tc); color: var(--primary-2); line-height: 1.15; letter-spacing: -0.02em; }
h1 { font-weight: 800; }
h2 { font-weight: 800; }
h3 { font-weight: 700; }

.hw {
  font-weight: 900;
  color: var(--primary);
  display: inline-block;
  letter-spacing: 0.01em;
  padding-right: 0.1em;
}

/* ---------- BUTTONS (per design system) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--f-tc);
  font-size: 15px;
  font-weight: 600;
  border-radius: 999px;
  padding: 14px 28px;
  transition: transform 0.2s ease, box-shadow 0.25s ease, background 0.2s ease;
  white-space: nowrap;
  cursor: pointer;
}
.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 14px rgba(68,189,219,0.35);
}
.btn-primary:hover {
  background: var(--sky-2);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(68,189,219,0.5);
}
.btn-ghost {
  background: rgba(255,255,255,0.75);
  color: var(--primary-2);
  border: 1.5px solid rgba(85,104,172,0.18);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  background: white;
  border-color: var(--primary-2);
  transform: translateY(-2px);
}
.btn-dark {
  background: var(--primary-2);
  color: white;
}
.btn-dark:hover {
  background: #3f4e8f;
  transform: translateY(-2px);
}
.btn-sm { padding: 10px 20px; font-size: 13px; }

/* Arrow icon wrapper */
.btn .arr {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255,255,255,0.22);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
}
.btn:hover .arr { transform: rotate(-45deg); }
.btn-ghost .arr { background: var(--primary); color: white; }
.btn-ghost .arr svg { stroke: white; }

/* ================================================
   NAV
   ================================================ */
.nav {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  width: calc(100% - 40px);
  max-width: 1280px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px 12px 28px;
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(85,104,172,0.08);
  border-radius: 999px;
  box-shadow: 0 4px 24px rgba(85,104,172,0.06);
  transition: top 0.3s, box-shadow 0.3s;
}
.nav.scrolled {
  top: 12px;
  box-shadow: 0 8px 32px rgba(85,104,172,0.12);
}
.nav-logo img { height: 32px; width: auto; display: block; }
.nav-menu {
  display: flex;
  gap: 32px;
  align-items: center;
  list-style: none;
}
.nav-menu a {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-2);
  transition: color 0.2s;
}
.nav-menu a:hover { color: var(--primary); }

/* ================================================
   HERO
   ================================================ */
.hero {
  position: relative;
  padding: 140px 0 100px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 20% 15%, rgba(205,235,241,0.55), transparent 60%),
    radial-gradient(ellipse 70% 50% at 85% 30%, rgba(148,220,234,0.4), transparent 60%),
    radial-gradient(ellipse 60% 50% at 50% 90%, rgba(85,104,172,0.08), transparent 60%),
    linear-gradient(180deg, #F8FCFE 0%, #EDF7F9 100%);
}
.hero::before {
  /* Subtle grid */
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(85,104,172,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(85,104,172,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
  z-index: 2;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: white;
  border: 1px solid rgba(85,104,172,0.12);
  border-radius: 999px;
  padding: 6px 16px 6px 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-2);
  box-shadow: 0 2px 8px rgba(85,104,172,0.06);
}
.hero-tag-dot {
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--sky-2));
  display: inline-flex; align-items: center; justify-content: center;
  color: white; font-size: 14px;
}

.hero-title {
  font-size: clamp(36px, 4.2vw, 60px);
  font-weight: 800;
  line-height: 1.15;
  margin: 24px 0 28px;
  color: var(--primary-2);
  letter-spacing: -0.035em;
}
.hero-title .accent {
  background: linear-gradient(135deg, var(--primary) 0%, var(--sky-1) 60%, var(--primary-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-style: italic;
  font-family: var(--f-en);
  /* Italic 讓 y 的尾巴探出 inline box；padding 撐出完整可見範圍 */
  display: inline-block;
  padding: 0.05em 0.15em 0.18em 0;
  line-height: 1.15;
}
.hero-title .hl {
  position: relative;
  display: inline-block;
  z-index: 1;
}
.hero-title .hl::after {
  content: '';
  position: absolute;
  left: -4%; right: -4%;
  bottom: 8%;
  height: 24%;
  background: var(--sky-8);
  z-index: -1;
  border-radius: 4px;
}

.hero-desc {
  font-size: 17px;
  line-height: 1.75;
  color: var(--gray-3);
  max-width: 520px;
  margin-bottom: 36px;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 16px;
}
.hero-trust-avatars { display: flex; }
.hero-trust-avatars .av {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 2px solid white;
  background: linear-gradient(135deg, var(--sky-6), var(--primary-2));
  margin-left: -8px;
  display: inline-flex; align-items: center; justify-content: center;
  color: white; font-size: 12px; font-weight: 700;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}
.hero-trust-avatars .av:first-child { margin-left: 0; }
.hero-trust-avatars .av:nth-child(2) { background: linear-gradient(135deg, var(--primary), var(--sky-1)); }
.hero-trust-avatars .av:nth-child(3) { background: linear-gradient(135deg, var(--sky-7), var(--sky-3)); }
.hero-trust-avatars .av:nth-child(4) { background: linear-gradient(135deg, var(--primary-2), #7a89c4); }
.hero-trust-avatars .av.plus { background: white; color: var(--primary-2); border: 1.5px dashed var(--primary); }
.hero-trust-txt .big {
  font-size: 15px; font-weight: 700; color: var(--primary-2);
}
.hero-trust-txt .small { font-size: 12px; color: var(--gray-3); }

/* --- Hero visual (right) --- */
.hero-visual {
  position: relative;
  aspect-ratio: 1 / 1.02;
  max-width: 580px;
  justify-self: end;
  width: 100%;
}

/* Main blob shape behind doctor */
.hv-blob {
  position: absolute;
  top: 2%; left: 6%;
  width: 88%; height: 88%;
  background:
    radial-gradient(circle at 35% 40%, rgba(255,255,255,0.35) 0%, transparent 55%),
    linear-gradient(135deg, var(--sky-7) 0%, var(--primary) 50%, var(--primary-2) 100%);
  border-radius: 58% 42% 55% 45% / 48% 55% 45% 52%;
  animation: blobMorph 18s ease-in-out infinite;
  box-shadow: 0 40px 80px rgba(68,189,219,0.25), inset 0 -30px 60px rgba(85,104,172,0.18);
}
@keyframes blobMorph {
  0%, 100% { border-radius: 58% 42% 55% 45% / 48% 55% 45% 52%; }
  33% { border-radius: 45% 55% 62% 38% / 55% 42% 58% 45%; }
  66% { border-radius: 52% 48% 38% 62% / 45% 58% 42% 55%; }
}

/* Dashed orbit ring */
.hv-orbit {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  border: 2px dashed rgba(85,104,172,0.2);
  border-radius: 50%;
  animation: spin 60s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* QR standee illustration — centered on the blob */
.hv-doctor {
  position: absolute;
  left: 50%;
  top: 52%;
  transform: translate(-50%, -50%);
  width: 118%;
  z-index: 2;
}
.hv-doctor-img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 24px 40px rgba(30, 58, 138, 0.22));
  animation: standeeFloat 6s ease-in-out infinite;
}
@keyframes standeeFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

/* Floating stat card */
.hv-stat {
  position: absolute;
  background: white;
  border-radius: 18px;
  padding: 14px 18px;
  box-shadow: var(--sh-lift);
  z-index: 4;
  animation: floatY 6s ease-in-out infinite;
}
.hv-stat-1 { top: 8%; right: -4%; animation-delay: 0s; }
.hv-stat-2 { bottom: 18%; left: -6%; animation-delay: -2s; }
.hv-stat-3 { bottom: 2%; right: 8%; animation-delay: -4s; }

.hv-stat .num {
  font-family: var(--f-en);
  font-size: 26px;
  font-weight: 800;
  color: var(--primary-2);
  letter-spacing: -0.02em;
  line-height: 1;
}
.hv-stat .num span { color: var(--primary); }
.hv-stat .lbl { font-size: 11px; color: var(--gray-3); margin-top: 4px; font-weight: 500; }
.hv-stat.mini {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px 10px 10px;
}
.hv-stat.mini .ico {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--sky-8);
  display: inline-flex; align-items: center; justify-content: center;
}

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

/* Sticker labels (handwritten) */
.hv-sticker {
  position: absolute;
  font-family: var(--f-hw);
  font-size: 22px;
  font-weight: 600;
  color: var(--primary-2);
  z-index: 5;
}
.hv-sticker.s1 { top: 4%; left: 10%; transform: rotate(-8deg); }
.hv-sticker.s2 { bottom: 10%; left: 42%; transform: rotate(6deg); color: #fff; text-shadow: 0 2px 10px rgba(30,58,138,0.25); }
.hv-sticker .arrow { display: block; color: var(--primary); font-size: 18px; margin-top: -4px; }

/* Decorative dots */
.hv-dot { position: absolute; border-radius: 50%; }
.hv-dot.d1 { width: 14px; height: 14px; background: var(--primary-2); top: 28%; left: -8%; }
.hv-dot.d2 { width: 8px; height: 8px; background: var(--primary); top: 60%; right: -2%; }
.hv-dot.d3 { width: 20px; height: 20px; background: var(--sky-8); bottom: 28%; left: 2%; }
.hv-dot.d4 { width: 10px; height: 10px; background: var(--sky-6); top: 14%; right: 20%; }

/* ================================================
   LOGO BAR
   ================================================ */
.logos {
  padding: 48px 0 32px;
  background: white;
  border-top: 1px solid var(--gray-7);
}
.logos-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 64px;
  flex-wrap: wrap;
}
.logos-label {
  font-family: var(--f-en);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-4);
}
.logo-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-en);
  font-size: 17px;
  font-weight: 700;
  color: var(--gray-5);
  letter-spacing: -0.01em;
  opacity: 0.7;
  transition: opacity 0.2s, color 0.2s;
}
.logo-item:hover { opacity: 1; color: var(--primary-2); }
.logo-item .mk {
  width: 22px; height: 22px; border-radius: 6px;
  background: currentColor;
  opacity: 0.7;
}

/* ================================================
   SECTION BASE
   ================================================ */
.section { padding: 120px 0; }
.section-head { max-width: 680px; margin-bottom: 64px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 {
  font-size: clamp(32px, 3.4vw, 48px);
  margin: 16px 0 20px;
}
.section-head .sub {
  font-size: 16px;
  color: var(--gray-3);
  line-height: 1.7;
}

/* ================================================
   FEATURES (new 3-hero layout)
   ================================================ */
.features {
  background: linear-gradient(180deg, white 0%, var(--sky-9) 100%);
}
.feat {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: center;
  padding: 80px 0;
  position: relative;
}
.feat:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 10%; right: 10%; bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--sky-6), transparent);
  opacity: 0.5;
}
.feat-2 { grid-template-columns: 1.1fr 1fr; }
.feat-2 .feat-copy { order: 2; }
.feat-2 .feat-visual { order: 1; }

.feat-idx {
  display: inline-block;
  font-family: var(--f-en);
  font-size: 64px;
  font-weight: 800;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  margin-bottom: 8px;
}
.feat-copy .b-tag { margin-bottom: 18px; }
.feat-copy h3 {
  font-size: clamp(32px, 3vw, 44px);
  font-weight: 800;
  color: var(--primary-2);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
}
.feat-copy > p {
  color: var(--gray-2);
  font-size: 16px;
  line-height: 1.75;
  margin-bottom: 24px;
  max-width: 500px;
}
.feat-copy > p b { color: var(--primary); font-weight: 700; }
.feat-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.feat-points li {
  display: flex; align-items: center; gap: 12px;
  font-size: 15px; color: var(--gray-2); font-weight: 500;
}
.feat-points .dot {
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--sky-8);
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  position: relative;
}
.feat-points .dot::after {
  content: ''; width: 7px; height: 7px; border-radius: 50%;
  background: var(--primary);
}

.feat-visual { position: relative; }

/* FV1 phone (questionnaire) */
.fv-phone {
  max-width: 360px;
  margin: 0 auto;
  background: white;
  border-radius: 32px;
  padding: 20px 22px 28px;
  box-shadow: 0 30px 80px rgba(85,104,172,0.18), 0 4px 14px rgba(85,104,172,0.08);
  border: 1px solid var(--sky-8);
}
.fv-phone-bar {
  width: 60px; height: 5px; border-radius: 3px;
  background: var(--sky-8);
  margin: 0 auto 18px;
}
.fv-q-label {
  background: var(--sky-9);
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary-2);
  margin-bottom: 16px;
}
.fv-q-opt {
  padding: 14px 18px;
  border: 1.5px solid var(--sky-8);
  border-radius: 14px;
  font-size: 15px;
  font-weight: 500;
  color: var(--gray-2);
  text-align: center;
  margin-bottom: 10px;
  transition: all 0.35s ease;
  background: white;
}
.fv-q-opt.is-on {
  border-color: var(--primary);
  background: rgba(68,189,219,0.08);
  color: var(--primary);
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(68,189,219,0.2);
}

/* FV2 charts */
.fv-card {
  background: white;
  border-radius: 24px;
  padding: 24px 26px;
  border: 1px solid var(--sky-8);
  box-shadow: 0 14px 40px rgba(85,104,172,0.1);
}
.fv-card + .fv-card { margin-top: 16px; }
.fv-card-hd { margin-bottom: 14px; }
.fv-card-title { font-size: 15px; font-weight: 700; color: var(--primary-2); }
.fv-card-sub { font-size: 12px; color: var(--gray-4); margin-top: 2px; }
.fv-metric {
  font-family: var(--f-en);
  font-size: 52px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
}
.fv-metric-u { font-size: 28px; color: var(--sky-3); margin-left: 2px; }
.fv-bars {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 120px;
  padding: 6px 0 24px;
  border-top: 1px dashed var(--sky-8);
  margin-bottom: 0;
}
.fv-bar {
  flex: 1;
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
}
.fv-bar-fill {
  width: 100%;
  background: linear-gradient(180deg, var(--primary) 0%, var(--sky-3) 100%);
  border-radius: 6px 6px 0 0;
  height: 0;
  transition: height 0.9s cubic-bezier(0.4,0,0.2,1);
}
.fv-bar:nth-child(4) .fv-bar-fill {
  background: linear-gradient(180deg, var(--primary-2) 0%, var(--primary) 100%);
}
.fv-bar-l {
  position: absolute;
  bottom: -20px;
  font-size: 10.5px;
  color: var(--gray-4);
  white-space: nowrap;
}
.fv-card-sub-card { padding: 14px 18px; }
.fv-item {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  align-items: center;
  border-bottom: 1px solid var(--sky-9);
}
.fv-item:last-child { border-bottom: none; }
.fv-thumb {
  width: 44px; height: 44px; border-radius: 8px;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--sky-8), var(--sky-7));
}
.fv-thumb-1 { background: linear-gradient(135deg, #c7e4ee, #94DCEA); }
.fv-thumb-2 { background: linear-gradient(135deg, #d4e0ff, #a5b4fc); }
.fv-thumb-3 { background: linear-gradient(135deg, #ffe4d4, #fcd34d); }
.fv-item .t { font-size: 12.5px; font-weight: 600; color: var(--gray-1); line-height: 1.4; }
.fv-item .s { font-size: 10.5px; color: var(--gray-4); margin-top: 2px; }

/* FV3 SDM phone */
.sdm-phone {
  max-width: 400px;
  margin: 0 auto;
  background: linear-gradient(180deg, #E6F4F8 0%, #CDEBF1 100%);
  border-radius: 32px;
  padding: 24px 22px 28px;
  box-shadow: 0 30px 80px rgba(85,104,172,0.2);
  border: 1px solid rgba(255,255,255,0.6);
  position: relative;
}
.sdm-back {
  width: 36px; height: 36px;
  background: white;
  border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 20px;
  color: var(--primary-2);
  box-shadow: 0 2px 8px rgba(85,104,172,0.1);
  margin-bottom: 16px;
}
.sdm-crumb {
  display: inline-block;
  background: rgba(255,255,255,0.7);
  padding: 5px 12px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
  color: var(--primary-2);
  margin-bottom: 10px;
}
.sdm-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary-2);
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}
.sdm-group { background: white; border-radius: 18px; padding: 16px 14px; margin-bottom: 14px; }
.sdm-group-hd {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-2);
  margin-bottom: 12px;
}
.sdm-ico {
  width: 24px; height: 24px; border-radius: 6px;
  background: var(--sky-9);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px;
}
.sdm-opt {
  display: flex; gap: 10px;
  padding: 10px 12px;
  border: 1.5px solid transparent;
  border-radius: 12px;
  background: var(--sky-9);
  margin-bottom: 8px;
  transition: all 0.35s ease;
}
.sdm-opt:last-child { margin-bottom: 0; }
.sdm-opt.is-sdm-on {
  border-color: var(--primary);
  background: white;
  box-shadow: 0 4px 14px rgba(68,189,219,0.18);
}
.sdm-radio {
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 1.5px solid var(--sky-6);
  flex-shrink: 0;
  margin-top: 2px;
  position: relative;
  background: white;
  transition: all 0.3s ease;
}
.sdm-opt.is-sdm-on .sdm-radio {
  background: var(--primary);
  border-color: var(--primary);
}
.sdm-opt.is-sdm-on .sdm-radio::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='3.5 8.5 6.5 11.5 12.5 5'/></svg>") center/10px 10px no-repeat;
}
.sdm-opt.is-sdm-on .sdm-radio::before { content: none; }
.sdm-opt-t {
  font-size: 13px; font-weight: 700; color: var(--gray-1);
  display: flex; align-items: center; gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 3px;
}
.sdm-badge {
  background: var(--sky-8);
  color: var(--primary-2);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
}
.sdm-opt-d { font-size: 11px; color: var(--gray-3); line-height: 1.55; }

@media (max-width: 900px) {
  .feat { grid-template-columns: 1fr; gap: 40px; padding: 60px 0; }
  .feat-2 .feat-copy { order: 1; }
  .feat-2 .feat-visual { order: 2; }
  .feat-idx { font-size: 48px; }
  .fv-phone, .sdm-phone { max-width: 340px; }
}

/* ================================================
   MULTI-SCENARIO
   ================================================ */
.scn-wrap {
  background: linear-gradient(180deg, var(--sky-9) 0%, white 100%);
  padding: 100px 0 120px;
  overflow: hidden;
}
.scn-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.scn-phone-holder {
  position: relative;
  display: flex;
  justify-content: center;
}
.scn-phone-holder::before {
  content: '';
  position: absolute;
  inset: -40px;
  background: radial-gradient(ellipse at center, rgba(68,189,219,0.18) 0%, transparent 65%);
  z-index: 0;
}
.scn-phone {
  width: 320px;
  min-height: 640px;
  background: #F6FBFC;
  border: 10px solid #1a1a1a;
  border-radius: 48px;
  padding: 14px 16px 24px;
  position: relative;
  box-shadow: 0 40px 80px rgba(30,58,80,0.25), 0 6px 18px rgba(30,58,80,0.12);
  z-index: 1;
}
.scn-notch {
  position: absolute;
  top: 10px; left: 50%;
  transform: translateX(-50%);
  width: 100px; height: 24px;
  background: #1a1a1a;
  border-radius: 20px;
  z-index: 2;
}
.scn-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 16px 12px;
  font-family: var(--f-en);
  font-size: 13px;
  font-weight: 600;
  color: #1a1a1a;
}
.scn-status .r { display: inline-flex; gap: 4px; align-items: center; }
.scn-scene { display: none; }
.scn-scene.is-active { display: block; animation: scnFade 0.35s ease; }
@keyframes scnFade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.scn-head { padding: 4px 4px 24px; }
.scn-logo { height: 20px; }

.scn-hero {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-bottom: 16px;
  padding: 0 4px;
}
.scn-hero-t { font-size: 20px; font-weight: 800; color: var(--primary); letter-spacing: -0.01em; }
.scn-hero-s { font-size: 11px; color: var(--gray-2); margin-top: 4px; line-height: 1.55; }
.scn-hero-ill {
  width: 96px; height: 76px;
  border-radius: 12px;
  background:
    radial-gradient(circle at 30% 40%, #94DCEA 0%, transparent 50%),
    radial-gradient(circle at 70% 70%, #5568AC 0%, transparent 55%),
    linear-gradient(135deg, #CDEBF1, #EDF7F9);
  position: relative;
}
.scn-hero-ill::after {
  content: ''; position: absolute;
  right: 10px; bottom: 10px;
  width: 26px; height: 18px;
  background: white;
  border-radius: 4px;
  box-shadow: -6px -2px 0 white, -14px -5px 0 white;
  opacity: 0.7;
}

.scn-sect {
  background: white;
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 10px;
  box-shadow: 0 1px 3px rgba(85,104,172,0.06);
}
.scn-sect-hd {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13px; font-weight: 700; color: var(--primary);
  padding-bottom: 8px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--sky-9);
}
.scn-sect-hd em {
  font-style: normal;
  font-size: 10px;
  color: var(--primary);
  background: var(--sky-8);
  padding: 2px 7px;
  border-radius: 6px;
  font-weight: 600;
}
.scn-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 0;
  font-size: 12.5px;
  color: var(--gray-2);
}
.scn-chk {
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 1.5px solid var(--sky-6);
  background: white;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  line-height: 0;
}
.scn-chk.on { background: var(--primary); border-color: var(--primary); color: white; }
.scn-chk.on svg { display: block; }

.scn-card-big {
  background: white;
  border-radius: 16px;
  padding: 18px 16px;
  margin-bottom: 12px;
}
.scn-card-t { font-size: 16px; font-weight: 800; color: var(--primary-2); margin-bottom: 4px; }
.scn-card-s { font-size: 11px; color: var(--gray-3); margin-bottom: 14px; line-height: 1.5; }
.scn-progress { display: grid; gap: 10px; }
.scn-p-row {
  display: grid;
  grid-template-columns: 80px 1fr 40px;
  gap: 8px;
  align-items: center;
  font-size: 11px;
  color: var(--gray-2);
}
.scn-p-row b { color: var(--primary); font-weight: 700; font-size: 11px; text-align: right; }
.scn-p-bar {
  height: 6px;
  background: var(--sky-9);
  border-radius: 3px;
  overflow: hidden;
  display: block;
}
.scn-p-bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--primary) 0%, var(--sky-3) 100%);
  border-radius: 3px;
}
.scn-note {
  display: flex; align-items: center; gap: 8px;
  background: var(--sky-9);
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 11px;
  color: var(--primary-2);
  font-weight: 600;
}
.scn-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--primary);
  animation: pulse 1.4s ease-in-out infinite;
}

.scn-timeline { display: grid; gap: 10px; }
.scn-tl {
  display: grid; grid-template-columns: 16px 1fr; gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 11px;
  background: rgba(255,255,255,0.7);
}
.scn-tl b { display: block; color: var(--primary-2); font-size: 12px; margin-bottom: 2px; }
.scn-tl span:not(.scn-tl-dot) { color: var(--gray-3); }
.scn-tl-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--sky-7);
  margin-top: 3px;
  border: 2px solid white;
  box-shadow: 0 0 0 1px var(--sky-6);
}
.scn-tl.is-done .scn-tl-dot { background: var(--primary); box-shadow: 0 0 0 1px var(--primary); }
.scn-tl.is-now { background: white; border: 1.5px solid var(--primary); }
.scn-tl.is-now .scn-tl-dot { background: var(--primary); box-shadow: 0 0 0 1px var(--primary), 0 0 0 6px rgba(68,189,219,0.2); }

.scn-chat { margin-top: 12px; display: grid; gap: 8px; }
.scn-chat-b {
  max-width: 80%;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 11.5px;
  line-height: 1.5;
}
.scn-chat-b.them { background: var(--sky-9); color: var(--gray-2); align-self: flex-start; justify-self: start; border-radius: 12px 12px 12px 2px; }
.scn-chat-b.ai { background: white; color: var(--gray-1); border: 1px solid var(--sky-8); align-self: flex-start; border-radius: 12px 12px 2px 12px; }
.scn-chat-b.ai em { display: block; font-style: normal; font-size: 10px; color: var(--primary); margin-top: 4px; }

/* Scene one-shot animations — play once when scene becomes active */
@keyframes scnSlideUpOnce {
  0%   { opacity: 0; transform: translateY(12px); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes scnBarFillOnce {
  0%   { transform: scaleX(0); }
  100% { transform: scaleX(1); }
}
@keyframes scnPopOnce {
  0%   { opacity: 0; transform: scale(0.5); }
  60%  { opacity: 1; transform: scale(1.2); }
  100% { opacity: 1; transform: scale(1); }
}

/* SDM scene */
.scn-scene[data-scn="sdm"].is-active .scn-sect {
  opacity: 0;
  animation: scnSlideUpOnce 0.55s cubic-bezier(0.22,1,0.36,1) forwards;
}
.scn-scene[data-scn="sdm"].is-active .scn-sect:nth-of-type(1) { animation-delay: 0.15s; }
.scn-scene[data-scn="sdm"].is-active .scn-sect:nth-of-type(2) { animation-delay: 0.35s; }
.scn-scene[data-scn="sdm"].is-active .scn-sect:nth-of-type(3) { animation-delay: 0.55s; }
.scn-scene[data-scn="sdm"].is-active .scn-chk.on svg {
  opacity: 0;
  animation: scnPopOnce 0.4s cubic-bezier(0.34,1.56,0.64,1) forwards;
  animation-delay: 1.25s;
  transform-origin: center;
}

/* Nurse scene — bars fill in place */
.scn-scene[data-scn="nurse"].is-active .scn-p-bar i {
  transform-origin: left center;
  transform: scaleX(0);
  animation: scnBarFillOnce 0.9s cubic-bezier(0.22,1,0.36,1) forwards;
}
.scn-scene[data-scn="nurse"].is-active .scn-p-row:nth-of-type(1) .scn-p-bar i { animation-delay: 0.2s; }
.scn-scene[data-scn="nurse"].is-active .scn-p-row:nth-of-type(2) .scn-p-bar i { animation-delay: 0.35s; }
.scn-scene[data-scn="nurse"].is-active .scn-p-row:nth-of-type(3) .scn-p-bar i { animation-delay: 0.5s; }
.scn-scene[data-scn="nurse"].is-active .scn-p-row:nth-of-type(4) .scn-p-bar i { animation-delay: 0.65s; }

/* Therapy scene */
.scn-scene[data-scn="therapy"].is-active .scn-tl,
.scn-scene[data-scn="therapy"].is-active .scn-chat-b {
  opacity: 0;
  animation: scnSlideUpOnce 0.5s cubic-bezier(0.22,1,0.36,1) forwards;
}
.scn-scene[data-scn="therapy"].is-active .scn-tl:nth-of-type(1) { animation-delay: 0.15s; }
.scn-scene[data-scn="therapy"].is-active .scn-tl:nth-of-type(2) { animation-delay: 0.28s; }
.scn-scene[data-scn="therapy"].is-active .scn-tl:nth-of-type(3) { animation-delay: 0.41s; }
.scn-scene[data-scn="therapy"].is-active .scn-tl:nth-of-type(4) { animation-delay: 0.54s; }
.scn-scene[data-scn="therapy"].is-active .scn-chat-b.them { animation-delay: 0.75s; }
.scn-scene[data-scn="therapy"].is-active .scn-chat-b.ai { animation-delay: 0.95s; }

.scn-copy h2.scn-h2 {
  font-size: clamp(32px, 3.2vw, 46px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--primary-2);
  margin: 14px 0 18px;
  font-weight: 800;
}
.scn-copy .sub { max-width: 500px; margin-bottom: 28px; }
.scn-tabs { display: grid; gap: 10px; max-width: 440px; }
.scn-tab {
  text-align: left;
  padding: 14px 18px;
  border: 1.5px solid var(--sky-8);
  background: white;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex; flex-direction: column; gap: 2px;
  font-family: inherit;
}
.scn-tab:hover { border-color: var(--sky-6); }
.scn-tab.is-active {
  border-color: var(--primary);
  background: linear-gradient(135deg, rgba(68,189,219,0.08), rgba(85,104,172,0.04));
  box-shadow: 0 4px 14px rgba(68,189,219,0.15);
}
.scn-tab-t { font-size: 15px; font-weight: 700; color: var(--primary-2); }
.scn-tab.is-active .scn-tab-t { color: var(--primary); }
.scn-tab-s { font-size: 12px; color: var(--gray-4); }

@media (max-width: 900px) {
  .scn-grid { grid-template-columns: 1fr; gap: 48px; }
  .scn-phone { width: 280px; min-height: 560px; }
}

/* ================================================
   legacy bento (kept for fallback, not used)
   ================================================ */
.features {
  background: linear-gradient(180deg, white 0%, var(--sky-9) 100%);
}
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: minmax(220px, auto);
  gap: 20px;
}
.bento-card {
  position: relative;
  background: white;
  border-radius: var(--r-lg);
  padding: 32px;
  overflow: hidden;
  border: 1px solid rgba(85,104,172,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  min-height: 240px;
}
.bento-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--sh-lift);
}

.b-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--f-en);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 14px;
}
.b-tag::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--primary);
}
.bento-card h3 { font-size: 22px; margin-bottom: 10px; letter-spacing: -0.02em; }
.bento-card p { color: var(--gray-3); font-size: 14.5px; line-height: 1.65; }

/* Grid areas */
.b-1 { grid-column: span 3; grid-row: span 2; background: linear-gradient(135deg, #5568AC 0%, #7a89c4 100%); color: white; }
.b-1 .b-tag { color: rgba(255,255,255,0.85); }
.b-1 .b-tag::before { background: white; }
.b-1 h3 { color: white; }
.b-1 p { color: rgba(255,255,255,0.82); }
.b-2 { grid-column: span 3; grid-row: span 1; }
.b-3 { grid-column: span 3; grid-row: span 1; background: var(--primary); color: white; }
.b-3 h3, .b-3 p { color: white; }
.b-3 .b-tag { color: rgba(255,255,255,0.85); }
.b-3 .b-tag::before { background: white; }
.b-4 { grid-column: span 2; grid-row: span 1; }
.b-5 { grid-column: span 2; grid-row: span 1; }
.b-6 { grid-column: span 2; grid-row: span 1; }

/* Bento visuals */
.b-phone-mock {
  margin-top: auto;
  align-self: center;
  position: relative;
  width: 180px;
  aspect-ratio: 9/16;
  background: linear-gradient(180deg, rgba(255,255,255,0.18), rgba(255,255,255,0.05));
  border: 1.5px solid rgba(255,255,255,0.25);
  border-radius: 28px;
  padding: 10px;
  backdrop-filter: blur(8px);
}
.b-phone-mock .screen {
  width: 100%; height: 100%;
  background: white;
  border-radius: 18px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.b-phone-mock .bar { height: 8px; background: var(--sky-8); border-radius: 4px; }
.b-phone-mock .bar.sh { width: 60%; }
.b-phone-mock .pill {
  padding: 8px 12px;
  border: 1.5px solid var(--sky-8);
  border-radius: 999px;
  font-size: 10px;
  color: var(--gray-3);
  text-align: center;
  font-weight: 500;
}
.b-phone-mock .pill.on {
  border-color: var(--primary);
  color: var(--primary);
  font-weight: 700;
  background: rgba(68,189,219,0.06);
}

.b-chart {
  margin-top: auto;
  position: relative;
  height: 80px;
  display: flex;
  align-items: flex-end;
  gap: 6px;
}
.b-chart .bar {
  flex: 1;
  background: linear-gradient(180deg, rgba(255,255,255,0.9), rgba(255,255,255,0.4));
  border-radius: 4px 4px 0 0;
  min-height: 20%;
  transition: height 0.4s ease;
}

.b-ai-bubble {
  margin-top: auto;
  background: var(--sky-9);
  border-radius: 16px;
  padding: 14px 16px;
  font-size: 13px;
  color: var(--gray-2);
  display: flex;
  align-items: center;
  gap: 10px;
}
.b-ai-bubble .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
  animation: pulse 1.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 0.4; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.15); }
}

.b-icon {
  width: 44px; height: 44px;
  border-radius: 14px;
  background: var(--sky-8);
  color: var(--primary-2);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}

/* ================================================
   STEPS
   ================================================ */
.steps { background: white; }
.steps-head { text-align: center; max-width: 720px; margin: 0 auto 80px; }
.steps-head h2 { font-size: clamp(32px, 3.4vw, 46px); margin: 14px 0 16px; }
.steps-head .sub { color: var(--gray-3); font-size: 16px; }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
}
.steps-grid::before {
  content: '';
  position: absolute;
  top: 130px; left: 12%; right: 12%;
  height: 2px;
  background-image: linear-gradient(90deg, var(--sky-6) 50%, transparent 50%);
  background-size: 12px 2px;
  z-index: 0;
}
.step-card {
  position: relative;
  background: white;
  border: 1px solid var(--sky-8);
  border-radius: var(--r-lg);
  padding: 28px;
  z-index: 1;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.step-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: var(--sh-lift);
}
.step-visual {
  height: 240px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--sky-9), var(--sky-8));
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.step-num {
  font-family: var(--f-en);
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.step-card h3 { font-size: 20px; margin-bottom: 8px; }
.step-card p { color: var(--gray-3); font-size: 14px; line-height: 1.65; }

/* Step visuals — tiny UI mocks */
.sv-questionnaire {
  display: flex; flex-direction: column; gap: 10px;
  padding: 22px 22px;
  width: 85%;
}
.sv-questionnaire .q {
  background: white;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 11px;
  color: var(--gray-2);
  border: 1px solid var(--sky-8);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.sv-questionnaire .q.on {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  font-weight: 600;
}

.sv-ai {
  position: relative;
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
}
.sv-ai-core {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  display: flex; align-items: center; justify-content: center;
  color: white;
  box-shadow: 0 8px 24px rgba(68,189,219,0.4);
  z-index: 2;
}
.sv-ai::before, .sv-ai::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 2px solid var(--sky-6);
  animation: pulseRing 2.6s ease-out infinite;
}
.sv-ai::before { width: 110px; height: 110px; }
.sv-ai::after { width: 160px; height: 160px; animation-delay: 0.8s; }
@keyframes pulseRing {
  0% { opacity: 0.8; transform: translate(-50%,-50%) scale(0.6); }
  100% { opacity: 0; transform: translate(-50%,-50%) scale(1.1); }
}

.sv-chat {
  display: flex; flex-direction: column; gap: 6px;
  padding: 16px;
  width: 92%;
}
.sv-chat .bub {
  font-size: 10.5px;
  padding: 7px 11px;
  border-radius: 10px;
  max-width: 80%;
  line-height: 1.4;
}
.sv-chat .bub.them { background: white; color: var(--gray-2); border: 1px solid var(--sky-8); align-self: flex-start; border-radius: 10px 10px 10px 2px; }
.sv-chat .bub.me { background: var(--primary); color: white; align-self: flex-end; border-radius: 10px 10px 2px 10px; }

/* ================================================
   COMPARISON TABLE
   ================================================ */
.compare-wrap {
  background: linear-gradient(180deg, white 0%, var(--sky-9) 100%);
  padding: 60px 0 96px;
}
.compare-h2 { white-space: nowrap; }
@media (max-width: 720px) {
  .compare-h2 { white-space: normal; }
}
.compare-card {
  background: white;
  border: 1.5px solid var(--sky-8);
  border-radius: var(--r-lg);
  padding: 28px 40px 32px;
  box-shadow: 0 2px 20px rgba(85,104,172,0.04);
}
.compare-tbl {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}
.compare-tbl th,
.compare-tbl td {
  padding: 22px 16px;
  text-align: center;
  vertical-align: middle;
}
.compare-tbl th.c-feature,
.compare-tbl td.c-feature {
  text-align: left;
  width: 46%;
  font-size: 16px;
  font-weight: 500;
  color: var(--gray-2);
}
.compare-tbl thead th {
  font-size: 17px;
  font-weight: 600;
  color: var(--gray-3);
  padding-bottom: 18px;
}
.compare-tbl thead th.c-medify img {
  height: 28px;
  width: auto;
  display: inline-block;
  vertical-align: middle;
}
.compare-tbl tbody tr {
  border-top: 1px solid var(--sky-8);
}
.compare-tbl td.c-social,
.compare-tbl td.c-medify {
  width: 27%;
}
.compare-tbl .ck,
.compare-tbl .cx {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  font-size: 22px;
  font-weight: 600;
  line-height: 1;
}
.compare-tbl .ck { color: var(--gray-3); }
.compare-tbl .ck.on {
  color: white;
  font-weight: 700;
  background: var(--primary);
  border-radius: 8px;
  width: 28px; height: 28px;
  font-size: 18px;
}
.compare-tbl .cx { color: #C9CDD4; font-weight: 400; }

@media (max-width: 720px) {
  .compare-card { padding: 18px 16px 22px; }
  .compare-tbl th, .compare-tbl td { padding: 16px 6px; }
  .compare-tbl th.c-feature, .compare-tbl td.c-feature { font-size: 14px; width: 50%; }
  .compare-tbl thead th { font-size: 14px; }
  .compare-tbl thead th.c-medify img { height: 22px; }
}

/* ================================================
   STATS STRIP
   ================================================ */
.stats {
  background: var(--primary-2);
  padding: 64px 0;
  color: white;
  position: relative;
  overflow: hidden;
}
.stats::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 10% 50%, rgba(68,189,219,0.3), transparent 40%),
    radial-gradient(circle at 90% 50%, rgba(148,220,234,0.2), transparent 40%);
}
.stats-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stats-cell .n {
  font-family: var(--f-en);
  font-size: clamp(36px, 4.4vw, 56px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: white;
}
.stats-cell .n span { color: var(--sky-7); }
.stats-cell .n .stat-num { color: white; }
.stats-cell .l {
  font-size: 13px;
  color: rgba(255,255,255,0.72);
  margin-top: 8px;
  letter-spacing: 0.04em;
}

/* ================================================
   TESTIMONIALS
   ================================================ */
.testimonials { background: var(--sky-9); position: relative; overflow: hidden; }
.test-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.test-card {
  background: white;
  border-radius: var(--r-lg);
  padding: 32px 28px 28px;
  position: relative;
  border: 1px solid rgba(85,104,172,0.06);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s, box-shadow 0.3s;
}
.test-card:hover { transform: translateY(-4px); box-shadow: var(--sh-lift); }
.test-card .quote {
  font-family: var(--f-en);
  font-size: 60px;
  line-height: 0.5;
  color: var(--sky-6);
  margin-bottom: 16px;
  height: 28px;
}
.test-card .body {
  font-size: 15px;
  color: var(--gray-2);
  line-height: 1.75;
  margin-bottom: 24px;
  flex: 1;
}
.test-foot {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 20px;
  border-top: 1px dashed var(--sky-8);
}
.test-ava {
  width: 52px; height: 52px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--sky-8);
  flex-shrink: 0;
  border: 2px solid white;
  box-shadow: 0 2px 8px rgba(85,104,172,0.12);
}
.test-ava img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
/* Align all heads to Dr. Sun's top-of-head height (~14% padding from top) */
.test-ava.ava-ho img { transform: scale(1.04) translateY(2%); transform-origin: center top; }
.test-ava.ava-tsai img { transform: scale(1.09) translateY(8%); transform-origin: center top; }
.test-who .n { font-size: 14px; font-weight: 700; color: var(--primary-2); }
.test-who .r { font-size: 12px; color: var(--gray-4); }
.test-rate {
  margin-left: auto;
  display: flex; gap: 2px;
  color: var(--warning);
  font-size: 14px;
}

/* ================================================
   PRICING
   ================================================ */
.pricing { background: white; }
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1080px;
  margin: 0 auto;
}
.price-card {
  position: relative;
  background: white;
  border: 1.5px solid var(--sky-8);
  border-radius: var(--r-lg);
  padding: 36px 32px;
  display: flex; flex-direction: column;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.price-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary);
  box-shadow: var(--sh-lift);
}
.price-card.pop {
  background: linear-gradient(180deg, var(--primary-2) 0%, #3f4e8f 100%);
  color: white;
  border-color: var(--primary-2);
  transform: translateY(-12px);
  box-shadow: var(--sh-deep);
}
.price-card.pop:hover { transform: translateY(-16px); }
.price-badge {
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: white;
  font-size: 12px; font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
  letter-spacing: 0.04em;
  box-shadow: 0 6px 16px rgba(68,189,219,0.4);
}
.price-tier {
  font-family: var(--f-en);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 10px;
}
.price-card.pop .price-tier { color: var(--sky-7); }
.price-name { font-size: 22px; font-weight: 700; margin-bottom: 4px; color: var(--primary-2); }
.price-card.pop .price-name { color: white; }
.price-desc { font-size: 13px; color: var(--gray-3); margin-bottom: 20px; }
.price-card.pop .price-desc { color: rgba(255,255,255,0.75); }
.price-amount {
  font-family: var(--f-en);
  font-size: 48px;
  font-weight: 800;
  line-height: 1;
  color: var(--primary-2);
  letter-spacing: -0.03em;
}
.price-card.pop .price-amount { color: white; }
.price-amount .per { font-size: 14px; font-weight: 500; color: var(--gray-3); margin-left: 4px; }
.price-card.pop .price-amount .per { color: rgba(255,255,255,0.7); }
.price-divider { height: 1px; background: var(--sky-8); margin: 24px 0; }
.price-card.pop .price-divider { background: rgba(255,255,255,0.15); }
.price-features { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; flex: 1; }
.price-features li {
  font-size: 14px;
  color: var(--gray-2);
  display: flex; align-items: flex-start; gap: 10px;
}
.price-card.pop .price-features li { color: rgba(255,255,255,0.92); }
.price-features li::before {
  content: '';
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--sky-8) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 20 20' fill='%2344BDDB'%3E%3Cpath d='M7 13.5 3.5 10l-1.4 1.4L7 16.3 17.9 5.4l-1.4-1.4L7 13.5Z'/%3E%3C/svg%3E") center/10px no-repeat;
  flex-shrink: 0;
  margin-top: 2px;
}
.price-card.pop .price-features li::before {
  background-color: rgba(255,255,255,0.15);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 20 20' fill='white'%3E%3Cpath d='M7 13.5 3.5 10l-1.4 1.4L7 16.3 17.9 5.4l-1.4-1.4L7 13.5Z'/%3E%3C/svg%3E");
}
.price-features li.soon { color: var(--gray-5); }
.price-features li.soon::before {
  background: #f1f1f1 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 20 20' fill='%23BFBFBF'%3E%3Ccircle cx='10' cy='10' r='4'/%3E%3C/svg%3E") center/10px no-repeat;
}
.price-card.pop .price-features li.soon { color: rgba(255,255,255,0.45); }
.price-cta { width: 100%; }

/* ================================================
   ENTERPRISE
   ================================================ */
.enterprise {
  background: linear-gradient(135deg, #1B2A5E 0%, #5568AC 100%);
  color: white;
  position: relative;
  overflow: hidden;
}
.enterprise::before {
  content: '';
  position: absolute;
  right: -5%; top: -5%;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(68,189,219,0.3), transparent 70%);
}
.ent-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: center;
}
.ent-grid h2 { color: white; font-size: clamp(32px, 3.6vw, 48px); }
.ent-grid .eyebrow { color: var(--sky-7); }
.ent-grid .eyebrow::before { background: var(--sky-7); }
.ent-grid .sub {
  font-size: 16px;
  color: rgba(255,255,255,0.82);
  margin: 16px 0 28px;
  line-height: 1.75;
}
.ent-features {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 24px;
  margin-bottom: 32px;
}
.ent-features li {
  font-size: 14.5px;
  color: rgba(255,255,255,0.92);
  display: flex; align-items: center; gap: 10px;
}
.ent-features li::before {
  content: '';
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 20 20' fill='white'%3E%3Cpath d='M7 13.5 3.5 10l-1.4 1.4L7 16.3 17.9 5.4l-1.4-1.4L7 13.5Z'/%3E%3C/svg%3E");
  background-position: center; background-repeat: no-repeat;
}
.ent-visual {
  position: relative;
}
.ent-visual-frame {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: linear-gradient(135deg, var(--sky-7), var(--primary));
  aspect-ratio: 4/3;
  box-shadow: 0 32px 64px rgba(0,0,0,0.3);
}
.ent-visual-frame img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.ent-badge {
  position: absolute;
  background: white;
  color: var(--primary-2);
  border-radius: 16px;
  padding: 12px 18px;
  box-shadow: var(--sh-lift);
  display: flex; align-items: center; gap: 10px;
}
.ent-badge-1 { top: -16px; right: 10%; animation: floatY 6s ease-in-out infinite; }
.ent-badge-2 { bottom: -20px; left: -4%; animation: floatY 7s ease-in-out infinite -2s; }
.ent-badge .ico {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--sky-8);
  display: flex; align-items: center; justify-content: center;
}
.ent-badge .tx .t { font-size: 13px; font-weight: 700; }
.ent-badge .tx .s { font-size: 11px; color: var(--gray-4); }

/* ================================================
   CONTACT
   ================================================ */
.contact { background: white; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: start;
}
.contact-head h2 { font-size: clamp(32px, 3.4vw, 46px); margin: 14px 0 18px; }
.contact-head .sub { color: var(--gray-3); margin-bottom: 28px; line-height: 1.75; }
.contact-meta { display: flex; flex-direction: column; gap: 20px; }
.contact-meta-item { display: flex; gap: 14px; align-items: flex-start; }
.contact-meta-item .ico {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--sky-9);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-meta-item .t { font-size: 13px; color: var(--gray-4); margin-bottom: 2px; }
.contact-meta-item .v { font-size: 15px; font-weight: 600; color: var(--primary-2); }

.contact-form {
  background: var(--sky-9);
  border: 1px solid var(--sky-8);
  border-radius: var(--r-lg);
  padding: 40px;
}
.fg { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.fg label { font-size: 13px; font-weight: 600; color: var(--gray-2); }
.fg label .req { color: var(--danger); }
.fg input, .fg select, .fg textarea {
  padding: 12px 16px;
  border: 1.5px solid rgba(85,104,172,0.14);
  border-radius: 12px;
  font-size: 14.5px;
  font-family: inherit;
  background: white;
  color: var(--gray-1);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.fg select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'><path d='M1 1.5L6 6.5L11 1.5' stroke='%235568AC' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}
.fg input:focus, .fg select:focus, .fg textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(68,189,219,0.12);
}
.fg input::placeholder, .fg textarea::placeholder {
  color: rgba(44,44,44,0.32);
}
.fg select:invalid { color: rgba(44,44,44,0.32); }
.fg textarea { resize: vertical; min-height: 100px; }
.fg-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.check-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.check {
  display: flex; align-items: center; gap: 8px;
  font-size: 13.5px; color: var(--gray-2);
  padding: 10px 14px;
  background: white;
  border: 1.5px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.15s;
}
.check:hover { border-color: var(--sky-6); }
.check input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px; height: 18px;
  min-width: 18px;
  box-sizing: border-box;
  border: 1.5px solid var(--sky-6);
  border-radius: 5px;
  background: white;
  position: relative;
  cursor: pointer;
  margin: 0;
  padding: 0;
  flex-shrink: 0;
  flex-grow: 0;
  transition: all 0.15s;
}
.check input[type="checkbox"]:checked {
  background: var(--primary);
  border-color: var(--primary);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='3.5 8.5 6.5 11.5 12.5 5'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px 12px;
}
.check:has(input:checked) {
  border-color: var(--primary);
  background: rgba(68,189,219,0.05);
  color: var(--primary-2);
  font-weight: 600;
}

/* ================================================
   FAQ
   ================================================ */
.faq { background: var(--sky-9); }
.faq-grid {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: white;
  border: 1px solid rgba(85,104,172,0.08);
  border-radius: 18px;
  overflow: hidden;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.faq-item:hover { border-color: var(--sky-6); }
.faq-item.open { box-shadow: var(--sh-card); border-color: var(--primary); }
.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px;
  cursor: pointer;
  font-weight: 600;
  font-size: 15.5px;
  color: var(--primary-2);
  gap: 16px;
  user-select: none;
}
.faq-ico {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--sky-8);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 18px;
  transition: transform 0.3s, background 0.3s;
}
.faq-item.open .faq-ico {
  background: var(--primary);
  color: white;
  transform: rotate(45deg);
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.faq-a-inner {
  padding: 0 24px 22px;
  font-size: 14.5px;
  color: var(--gray-3);
  line-height: 1.75;
}
.faq-item.open .faq-a { max-height: 260px; }

/* ================================================
   CTA BANNER
   ================================================ */
.cta-banner {
  padding: 0 40px 80px;
}
.cta-inner {
  max-width: 1280px;
  margin: 0 auto;
  background:
    radial-gradient(circle at 20% 30%, rgba(68,189,219,0.25), transparent 50%),
    linear-gradient(135deg, var(--primary-2) 0%, #3f4e8f 100%);
  border-radius: var(--r-lg);
  padding: 80px 64px;
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-inner::before {
  content: '';
  position: absolute;
  top: -60%; right: -10%;
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(148,220,234,0.3), transparent 70%);
}
.cta-inner h2 {
  font-size: clamp(26px, 2.8vw, 40px);
  color: white;
  margin: 0 auto 20px;
  max-width: none;
  letter-spacing: -0.02em;
}
.cta-inner p {
  color: rgba(255,255,255,0.78);
  max-width: 560px;
  margin: 0 auto 36px;
  font-size: 16px;
  line-height: 1.7;
}
.cta-inner .btn-primary { background: white; color: var(--primary-2); }
.cta-inner .btn-primary:hover { background: var(--sky-9); }
.cta-inner .btn-primary .arr { background: var(--primary); color: white; }
.cta-inner .btn-ghost { background: rgba(255,255,255,0.1); color: white; border-color: rgba(255,255,255,0.3); }
.cta-inner .btn-ghost:hover { background: rgba(255,255,255,0.2); }

/* ================================================
   FOOTER
   ================================================ */
.footer {
  background: #0F1833;
  color: white;
  padding: 80px 0 24px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand .ftlogo {
  height: 36px; width: auto;
  filter: brightness(0) invert(1);
  margin-bottom: 20px;
}
.footer-brand p {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  line-height: 1.8;
  max-width: 360px;
}
.footer-contact {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.footer-contact p { font-size: 12.5px; color: rgba(255,255,255,0.45); margin-bottom: 4px; }
.footer-socials { display: flex; gap: 10px; margin-top: 18px; }
.footer-social {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.7);
  transition: all 0.2s;
}
.footer-social:hover { background: var(--primary); color: white; transform: translateY(-2px); }
.footer-col h4 {
  color: white;
  font-family: var(--f-en);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-col li { font-size: 14px; color: rgba(255,255,255,0.55); cursor: pointer; transition: color 0.2s; }
.footer-col li:hover, .footer-col a:hover { color: var(--sky-7); }
.footer-col a { color: inherit; }
.footer-bottom {
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.footer-bottom p { font-size: 12.5px; color: rgba(255,255,255,0.35); }
.footer-bottom a {
  font-size: 12.5px; color: rgba(255,255,255,0.45);
  margin-left: 20px;
}

/* ================================================
   REVEAL
   ================================================ */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.9s cubic-bezier(0.22,1,0.36,1), transform 0.9s cubic-bezier(0.22,1,0.36,1); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }
.reveal.d4 { transition-delay: 0.32s; }

/* Step-card inner stagger: questionnaire & chat children — looping like AI core */
@keyframes svFadeLoop {
  0%   { opacity: 0; transform: translateY(10px); }
  10%  { opacity: 1; transform: translateY(0); }
  85%  { opacity: 1; transform: translateY(0); }
  95%  { opacity: 0; transform: translateY(-6px); }
  100% { opacity: 0; transform: translateY(-6px); }
}
.step-card .sv-questionnaire .q,
.step-card .sv-chat .bub {
  opacity: 0;
}
.step-card.is-visible .sv-questionnaire .q,
.step-card.is-visible .sv-chat .bub {
  animation: svFadeLoop 5s cubic-bezier(0.22,1,0.36,1) infinite;
}
.step-card.is-visible .sv-questionnaire .q:nth-child(1),
.step-card.is-visible .sv-chat .bub:nth-child(1) { animation-delay: 0.5s; }
.step-card.is-visible .sv-questionnaire .q:nth-child(2),
.step-card.is-visible .sv-chat .bub:nth-child(2) { animation-delay: 0.9s; }
.step-card.is-visible .sv-questionnaire .q:nth-child(3),
.step-card.is-visible .sv-chat .bub:nth-child(3) { animation-delay: 1.3s; }
.step-card.is-visible .sv-questionnaire .q:nth-child(4),
.step-card.is-visible .sv-chat .bub:nth-child(4) { animation-delay: 1.7s; }

/* ================================================
   VIDEO SHOWCASE
================================================= */
.video-showcase {
  padding: 80px 0 72px;
  background:
    radial-gradient(circle at 12% 18%, rgba(68, 189, 219, 0.18) 0%, transparent 45%),
    radial-gradient(circle at 88% 82%, rgba(85, 104, 172, 0.16) 0%, transparent 50%),
    linear-gradient(180deg, #eaf4f9 0%, #dbe7f2 100%);
  position: relative;
  overflow: hidden;
}
.video-showcase::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 25% 30%, rgba(85, 104, 172, 0.06) 1.5px, transparent 1.5px),
    radial-gradient(circle at 75% 70%, rgba(68, 189, 219, 0.08) 1.5px, transparent 1.5px);
  background-size: 48px 48px, 72px 72px;
  pointer-events: none;
  opacity: 0.6;
}
.video-showcase > .wrap { position: relative; z-index: 1; }

.vs-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 36px auto 32px;
  padding: 6px;
  background: white;
  border-radius: 999px;
  width: fit-content;
  box-shadow: 0 4px 18px rgba(30, 58, 138, 0.08);
  border: 1px solid rgba(68, 189, 219, 0.18);
}
.vs-tab {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 10px 22px;
  font: inherit;
  font-weight: 600;
  font-size: 15px;
  color: var(--ink-2);
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: var(--f-tc);
}
.vs-tab:hover { color: var(--primary-2); background: rgba(68, 189, 219, 0.08); }
.vs-tab.is-active {
  background: var(--primary-2);
  color: white;
  box-shadow: 0 6px 18px rgba(85, 104, 172, 0.28);
}

.vs-panel { display: none; }
.vs-panel.is-active { display: block; }

.vs-carousel {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 12px;
}

.vs-track {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 18px;
  align-items: center;
  min-height: 360px;
}

.vs-slide {
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}
.vs-slide.is-side {
  opacity: 0.55;
  transform: scale(0.88);
}
.vs-slide.is-side:hover { opacity: 0.8; transform: scale(0.92); }
.vs-slide.is-main {
  opacity: 1;
  transform: scale(1);
  cursor: default;
}

.vs-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(135deg, #e6f4f8 0%, #cfe4ef 100%);
  box-shadow: 0 14px 40px rgba(30, 58, 138, 0.14);
}
.vs-slide.is-main .vs-thumb {
  aspect-ratio: 16 / 9;
  box-shadow: 0 24px 60px rgba(30, 58, 138, 0.22);
  border: 3px solid white;
}

.vs-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: var(--primary-2);
  display: grid;
  place-items: center;
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 24px rgba(30, 58, 138, 0.3);
  padding-left: 4px;
  transition: all 0.25s ease;
}
.vs-slide.is-main .vs-play {
  width: 72px;
  height: 72px;
}
.vs-slide:hover .vs-play { transform: translate(-50%, -50%) scale(1.08); }

.vs-cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  padding: 40px 16px 14px;
  background: linear-gradient(180deg, rgba(20,30,60,0) 0%, rgba(20,30,60,0.55) 100%);
  color: white;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}
.vs-slide.is-main .vs-cap { font-size: 16px; padding: 56px 20px 18px; }

/* Placeholder thumbnails — use subtle gradients + patterns so they don't look broken */
.vs-ph-d1 { background: linear-gradient(135deg, #dbeafe 0%, #a5b4fc 100%); }
.vs-ph-d2 { background: linear-gradient(135deg, #e0f2fe 0%, #67a9d1 60%, #5568ac 100%); }
.vs-ph-d3 { background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%); }
.vs-ph-a1 { background: linear-gradient(135deg, #ccfbf1 0%, #5eead4 100%); }
.vs-ph-a2 { background: linear-gradient(135deg, #cffafe 0%, #44bddb 60%, #2b5a94 100%); }
.vs-ph-a3 { background: linear-gradient(135deg, #d1fae5 0%, #6ee7b7 100%); }
.vs-ph-p1 { background: linear-gradient(135deg, #fef3c7 0%, #fcd34d 100%); }
.vs-ph-p2 { background: linear-gradient(135deg, #fef9c3 0%, #fde68a 60%, #b45309 100%); }
.vs-ph-p3 { background: linear-gradient(135deg, #fce7f3 0%, #f9a8d4 100%); }

.vs-nav {
  appearance: none;
  border: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: white;
  color: var(--primary-2);
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 20px rgba(30, 58, 138, 0.18);
  flex-shrink: 0;
  transition: all 0.22s ease;
}
.vs-nav:hover {
  background: var(--primary-2);
  color: white;
  transform: scale(1.08);
}

@media (max-width: 820px) {
  .vs-track { grid-template-columns: 0.5fr 3fr 0.5fr; gap: 10px; min-height: 260px; }
  .vs-slide.is-side { opacity: 0.35; }
  .vs-slide.is-side .vs-cap { display: none; }
  .vs-nav { width: 40px; height: 40px; }
  .vs-tabs { flex-wrap: wrap; padding: 4px; }
  .vs-tab { padding: 8px 14px; font-size: 13px; }
}

/* ================================================
   RESPONSIVE
   ================================================ */
/* ================================================
   SCROLL REVEAL ANIMATIONS
   ================================================ */
:root {
  --reveal-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --reveal-dur: 900ms;
}

/* Base reveal — soft translate + fade + subtle blur */
[data-reveal] {
  opacity: 0;
  transform: translate3d(0, 24px, 0);
  filter: blur(6px);
  transition:
    opacity var(--reveal-dur) var(--reveal-ease),
    transform var(--reveal-dur) var(--reveal-ease),
    filter var(--reveal-dur) var(--reveal-ease);
  will-change: opacity, transform, filter;
}
[data-reveal].is-in {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  filter: blur(0);
}

/* Variant: smaller lift for inline/list items */
[data-reveal="soft"] {
  transform: translate3d(0, 14px, 0);
  filter: blur(4px);
  --reveal-dur: 750ms;
}

/* Variant: scale-in for cards / visual blocks */
[data-reveal="rise"] {
  transform: translate3d(0, 36px, 0) scale(0.985);
  filter: blur(8px);
}
[data-reveal="rise"].is-in {
  transform: translate3d(0, 0, 0) scale(1);
}

/* Variant: fade only — for hero visuals where motion would clash */
[data-reveal="fade"] {
  transform: none;
  filter: blur(4px);
}
[data-reveal="fade"].is-in { filter: blur(0); }

/* Stagger children of a reveal-group */
[data-reveal-group] > * {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  filter: blur(5px);
  transition:
    opacity 700ms var(--reveal-ease),
    transform 700ms var(--reveal-ease),
    filter 700ms var(--reveal-ease);
  will-change: opacity, transform, filter;
}
[data-reveal-group].is-in > * {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  filter: blur(0);
}
[data-reveal-group].is-in > *:nth-child(1)  { transition-delay: 40ms; }
[data-reveal-group].is-in > *:nth-child(2)  { transition-delay: 110ms; }
[data-reveal-group].is-in > *:nth-child(3)  { transition-delay: 180ms; }
[data-reveal-group].is-in > *:nth-child(4)  { transition-delay: 250ms; }
[data-reveal-group].is-in > *:nth-child(5)  { transition-delay: 320ms; }
[data-reveal-group].is-in > *:nth-child(6)  { transition-delay: 390ms; }
[data-reveal-group].is-in > *:nth-child(7)  { transition-delay: 460ms; }
[data-reveal-group].is-in > *:nth-child(8)  { transition-delay: 530ms; }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  [data-reveal],
  [data-reveal-group] > * {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }
}

@media (max-width: 1100px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { max-width: 460px; margin: 0 auto; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .b-1, .b-2, .b-3, .b-4, .b-5, .b-6 { grid-column: span 2; grid-row: span 1; }
  .steps-grid { grid-template-columns: 1fr; gap: 32px; }
  .steps-grid::before { display: none; }
  .test-grid { grid-template-columns: 1fr; }
  .price-grid { grid-template-columns: 1fr; max-width: 440px; }
  .price-card.pop { transform: none; }
  .ent-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .nav-menu { display: none; }
  .wrap, .wrap-wide { padding: 0 24px; }
  .section { padding: 80px 0; }
  .cta-banner { padding: 0 24px 60px; }
  .cta-inner { padding: 56px 32px; }
}
@media (max-width: 640px) {
  .fg-row { grid-template-columns: 1fr; }
  .check-grid { grid-template-columns: 1fr; }
  .ent-features { grid-template-columns: 1fr; }
  .contact-form { padding: 28px 24px; }
  .footer-top { grid-template-columns: 1fr; }
  .hero-title { font-size: 36px; }
}
