/* DocSahab design system — tokens taken from the collateral boards (G. Design System) */
:root {
  --primary: #0d6e53;
  --primary-600: #0a5c45;
  --secondary: #00a982;
  --accent: #34d399;
  --mint: #e6faf3;
  --mint-2: #d2f4e6;
  --dark: #0b382e;
  --ink: #12231e;
  --muted: #5b6b66;
  --line: #dcebe5;
  --surface: #ffffff;
  --bg: #f7fcfa;
  --warn-bg: #fff7e6;
  --warn-ink: #8a5a00;
  --danger: #c2410c;

  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;
  --shadow-sm: 0 1px 2px rgba(11, 56, 46, .06), 0 2px 8px rgba(11, 56, 46, .05);
  --shadow: 0 6px 24px rgba(11, 56, 46, .08), 0 2px 6px rgba(11, 56, 46, .05);
  --shadow-lg: 0 24px 60px rgba(11, 56, 46, .14);
  --glow: 0 0 0 6px rgba(0, 169, 130, .12);

  --font: "Plus Jakarta Sans", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--secondary); }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; color: var(--dark); }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.section { padding: 88px 0; }
.section--mint { background: linear-gradient(180deg, var(--mint) 0%, #f3fcf8 100%); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 36px; flex-wrap: wrap; }
.section-head p { margin: 0; max-width: 560px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--secondary); margin-bottom: 10px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; background: var(--dark); color: #fff; padding: 10px 16px; border-radius: 10px; z-index: 200; }
.skip-link:focus { top: 12px; color: #fff; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 8px; }

/* Icons */
.icon { width: 1.25em; height: 1.25em; flex: none; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 0; cursor: pointer; border-radius: 999px; padding: 14px 24px; font-weight: 700; font-size: .98rem; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; white-space: nowrap; }
.btn .icon { transition: transform .2s ease; }
.btn:hover .icon--arrow { transform: translateX(3px); }
.btn--primary { background: linear-gradient(135deg, var(--secondary), var(--primary)); color: #fff; box-shadow: 0 8px 22px rgba(13, 110, 83, .28); }
.btn--primary:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 12px 28px rgba(13, 110, 83, .34); }
.btn--ghost { background: #fff; color: var(--primary); border: 1.5px solid var(--line); }
.btn--ghost:hover { border-color: var(--secondary); color: var(--primary); }
.btn--light { background: #fff; color: var(--primary); }
.btn--sm { padding: 10px 18px; font-size: .9rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }

/* Chips / badges */
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--mint); color: var(--primary); font-size: .8rem; font-weight: 700; }
.demo-tag { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: var(--warn-bg); color: var(--warn-ink); font-size: .72rem; font-weight: 700; letter-spacing: .02em; border: 1px solid #f5dfae; }

/* Cards */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 24px; }
.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }

/* Demo banner */
.demo-banner { background: var(--dark); color: #cfeee3; font-size: .82rem; text-align: center; padding: 8px 16px; }
.demo-banner strong { color: #fff; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.86); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid rgba(220,235,229,.8); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.35rem; color: var(--dark); letter-spacing: -.02em; }
.brand:hover { color: var(--dark); }
.brand svg { width: 38px; height: 38px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--ink); font-weight: 600; font-size: .94rem; padding: 8px 14px; border-radius: 999px; }
.nav a:hover { background: var(--mint); color: var(--primary); }
.nav a[aria-current="page"] { color: var(--primary); background: var(--mint); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.menu-toggle { display: none; background: none; border: 1.5px solid var(--line); border-radius: 12px; width: 44px; height: 44px; align-items: center; justify-content: center; cursor: pointer; color: var(--dark); }
.mobile-nav { display: none; }

/* Footer */
.site-footer { background: var(--dark); color: #b9d9cf; padding: 64px 0 28px; margin-top: 0; }
.site-footer a { color: #d7efe7; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; }
.footer-grid h4 { color: #fff; font-size: .95rem; margin-bottom: 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: .92rem; }
.site-footer .brand { color: #fff; }
.emergency { margin-top: 36px; padding: 16px 20px; border-radius: var(--radius-sm); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); font-size: .9rem; display: flex; gap: 12px; align-items: flex-start; }
.emergency strong { color: #fff; }
.footer-bottom { margin-top: 28px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .85rem; }

/* ===== INTRO SEQUENCE ===== */
.intro { position: fixed; inset: 0; z-index: 100; overflow: hidden; background: #062a22; }
.intro[hidden] { display: none; }
.intro-scene { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; visibility: hidden; }
.intro-skip { position: absolute; right: 20px; bottom: 20px; z-index: 5; background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.3); border-radius: 999px; padding: 10px 18px; font-weight: 700; cursor: pointer; backdrop-filter: blur(6px); }
.intro-skip:hover { background: rgba(255,255,255,.24); }
.intro-progress { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); display: flex; gap: 8px; z-index: 5; }
.intro-progress i { width: 26px; height: 4px; border-radius: 4px; background: rgba(255,255,255,.25); overflow: hidden; position: relative; }
.intro-progress i b { position: absolute; inset: 0; background: #fff; transform: scaleX(0); transform-origin: left; }

/* Scene 1: logo reveal */
.scene-logo { background: radial-gradient(circle at 50% 50%, #0f5a45 0%, #073428 45%, #041f18 100%); }
.scene-logo .ring { position: absolute; width: min(70vmin, 520px); height: min(70vmin, 520px); overflow: visible; transform: rotate(-90deg); }
.scene-logo .ring circle { fill: none; stroke: url(#ringGrad); stroke-width: 2.5; }
.scene-logo .ring-glow { position: absolute; width: min(70vmin, 520px); height: min(70vmin, 520px); border-radius: 50%; box-shadow: 0 0 28px rgba(52,211,153,.55), inset 0 0 28px rgba(52,211,153,.35); opacity: 0; }
.scene-logo .glow { position: absolute; width: min(60vmin, 440px); height: min(60vmin, 440px); border-radius: 50%; background: radial-gradient(circle, rgba(52,211,153,.35) 0%, rgba(52,211,153,0) 65%); }
.scene-logo .logo-lockup { position: relative; display: grid; justify-items: center; gap: 14px; color: #fff; }
.scene-logo .logo-lockup svg { width: min(18vmin, 120px); height: auto; filter: drop-shadow(0 0 22px rgba(52,211,153,.7)); }
.scene-logo .wordmark { font-size: clamp(2.4rem, 7vmin, 4.2rem); font-weight: 800; letter-spacing: -.03em; text-shadow: 0 0 30px rgba(52,211,153,.55); }
.particles { position: absolute; inset: 0; pointer-events: none; }
.particles span { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: #6ef0c3; box-shadow: 0 0 8px #6ef0c3; opacity: 0; }

/* Scene 2: doctor welcome */
.scene-welcome { background: radial-gradient(circle at 30% 40%, #c9f5e4 0%, #8fe3c4 45%, #3fbf95 100%); }
.scene-welcome .welcome-wrap { display: flex; align-items: center; gap: clamp(16px, 5vw, 64px); padding: 0 24px; max-width: 1000px; width: 100%; justify-content: center; }
/* Character renders are transparent cut-outs: no card frame; a soft glow behind and a fade at the cut edge let them sit in the scene. */
.scene-welcome .doc { width: min(44vw, 460px); position: relative; isolation: isolate; }
.scene-welcome .doc::before { content: ""; position: absolute; inset: 0 -18% 10%; z-index: -1; background: radial-gradient(closest-side, rgba(255,255,255,.7), rgba(255,255,255,0)); }
.scene-welcome .doc img { display: block; width: 100%; height: auto; filter: drop-shadow(0 18px 30px rgba(11,56,46,.22)); -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent 100%); mask-image: linear-gradient(to bottom, #000 70%, transparent 100%); }
.bubble { position: relative; background: #fff; border-radius: 28px; padding: clamp(18px, 3vw, 32px) clamp(22px, 4vw, 44px); box-shadow: var(--shadow-lg); }
.bubble::before { content: ""; position: absolute; left: -14px; top: 50%; width: 28px; height: 28px; background: #fff; transform: translateY(-50%) rotate(45deg); border-radius: 6px; }
.bubble small { display: block; font-size: clamp(1rem, 2.4vw, 1.6rem); font-weight: 700; color: var(--primary); }
.bubble strong { display: block; font-size: clamp(2rem, 6vw, 4rem); font-weight: 800; color: var(--dark); line-height: 1; letter-spacing: -.03em; }
.bubble .tag { display: inline-block; margin-top: 14px; padding: 8px 16px; border-radius: 999px; background: linear-gradient(135deg, var(--secondary), var(--primary)); color: #fff; font-weight: 700; font-size: clamp(.8rem, 1.6vw, 1rem); }
.sparkles { position: absolute; inset: 0; pointer-events: none; }
.sparkles i { position: absolute; width: 4px; height: 22px; border-radius: 4px; background: #fff; opacity: 0; }

/* Scene 3: care at home */
.scene-care { background: #cfeee3; }
.scene-care .care-img { position: absolute; inset: 0; background-size: cover; background-position: center; }
.scene-care .care-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(4,31,24,0) 35%, rgba(4,31,24,.55) 62%, rgba(4,31,24,.85) 100%); }
.scene-care .care-caption { position: absolute; left: 0; right: 0; bottom: 12vh; text-align: center; color: #fff; padding: 0 20px; }
.scene-care .care-caption h2 { color: #fff; font-size: clamp(1.8rem, 5vw, 3.4rem); text-shadow: 0 4px 24px rgba(0,0,0,.35); }
.scene-care .care-caption p { font-size: clamp(1rem, 2vw, 1.25rem); opacity: .92; }

/* ===== HERO ===== */
.hero { position: relative; overflow: hidden; background: radial-gradient(1200px 600px at 85% 20%, #c8f3e2 0%, rgba(200,243,226,0) 60%), linear-gradient(180deg, #f2fcf8 0%, #e9f9f2 100%); }
.hero .container { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 40px; padding-top: 64px; padding-bottom: 72px; }
.hero h1 span { background: linear-gradient(135deg, var(--secondary), var(--primary)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lead { font-size: 1.18rem; color: var(--muted); max-width: 520px; margin-bottom: 28px; }
.book-bar { display: flex; gap: 10px; background: #fff; padding: 8px; border-radius: 999px; box-shadow: var(--shadow); border: 1px solid var(--line); max-width: 560px; }
.book-bar .loc { flex: 1; display: flex; align-items: center; gap: 8px; padding: 0 8px 0 14px; color: var(--primary); min-width: 0; }
.book-bar select { flex: 1; border: 0; background: transparent; font-weight: 600; color: var(--ink); padding: 10px 4px; cursor: pointer; min-width: 0; }
.book-bar select:focus { outline: none; }
.book-bar:focus-within { box-shadow: var(--shadow), var(--glow); }
.hero-note { font-size: .85rem; color: var(--muted); margin-top: 12px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.hero-visual { position: relative; display: grid; place-items: center; min-height: 460px; }
.hero-halo { position: absolute; width: 440px; height: 440px; border-radius: 50%; background: radial-gradient(circle, rgba(0,169,130,.22) 0%, rgba(0,169,130,0) 70%); }
.hero-ring { position: absolute; width: 400px; height: 400px; border-radius: 50%; border: 2px solid rgba(0,169,130,.35); box-shadow: 0 0 40px rgba(52,211,153,.35), inset 0 0 40px rgba(52,211,153,.18); }
.hero-doc { position: relative; width: 430px; margin-top: 40px; }
.hero-doc img { display: block; width: 100%; height: auto; filter: drop-shadow(0 22px 34px rgba(11,56,46,.18)); -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent 100%); mask-image: linear-gradient(to bottom, #000 72%, transparent 100%); }
.join-intro { display: grid; grid-template-columns: 200px 1fr; gap: 28px; align-items: center; margin-bottom: 28px; }
.char-figure { position: relative; isolation: isolate; }
.char-figure::before { content: ""; position: absolute; left: 50%; top: 4%; width: 120%; aspect-ratio: 1; transform: translateX(-50%); z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, rgba(52,211,153,.28), rgba(52,211,153,0)); }
.char-figure::after { content: ""; position: absolute; left: 15%; right: 15%; bottom: -4px; height: 16px; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, rgba(11,56,46,.22), rgba(11,56,46,0)); }
.char-figure img { display: block; width: 100%; height: auto; }
.aside-figure { margin: -24px -24px 16px; padding-top: 18px; height: 272px; overflow: hidden; border-radius: inherit; border-bottom-left-radius: 0; border-bottom-right-radius: 0; background: radial-gradient(circle at 50% 70%, #c9f5e4 0%, var(--mint) 60%, #fff 100%); display: flex; justify-content: center; }
.aside-figure img { height: 340px; width: auto; filter: drop-shadow(0 14px 18px rgba(11,56,46,.16)); -webkit-mask-image: linear-gradient(to bottom, #000 66%, transparent 76%); mask-image: linear-gradient(to bottom, #000 66%, transparent 76%); }
/* Illustrated icons */
.picto { width: 48px; height: 48px; flex: none; display: block; }

/* Hero booking bar: separate location pill + button (board S4) */
.hero .book-bar { background: none; border: 0; box-shadow: none; padding: 0; gap: 12px; }
.hero .book-bar .loc { background: #fff; border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow-sm); padding: 4px 14px 4px 18px; }
.hero .book-bar:focus-within { box-shadow: none; }
.hero .book-bar .loc:focus-within { box-shadow: var(--glow); }
/* Quick services strip */
.quick-services { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 28px; max-width: 560px; background: rgba(255,255,255,.8); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-sm); padding: 6px; }
.quick-services a { display: grid; justify-items: center; gap: 6px; padding: 12px 6px; text-align: center; font-size: .8rem; font-weight: 700; color: var(--dark); border-radius: 14px; position: relative; transition: background .2s, transform .2s; }
.quick-services a + a::before { content: ""; position: absolute; left: 0; top: 22%; bottom: 22%; width: 1px; background: var(--line); }
.quick-services a:hover { background: var(--mint); color: var(--primary); transform: translateY(-2px); }
.quick-services .picto { width: 34px; height: 34px; }

/* Centered section head */
.center-head { text-align: center; margin-bottom: 40px; position: relative; }
.center-head p { margin: 0; }
.center-head .link-arrow { position: absolute; right: 0; bottom: 0; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .92rem; color: var(--primary); }
.link-arrow .icon { width: 1em; height: 1em; transition: transform .2s; }
.link-arrow:hover .icon { transform: translateX(3px); }

/* Services tiles (board S5) */
.svc-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
.svc-tile { display: grid; justify-items: center; align-content: start; gap: 14px; text-align: center; padding: 30px 16px 22px; background: linear-gradient(180deg, #fff 0%, #f4fcf8 100%); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow-sm); color: var(--dark); transition: transform .25s, box-shadow .25s, border-color .25s; }
.svc-tile .picto { width: 72px; height: 72px; transition: transform .35s cubic-bezier(.3,1.6,.5,1); }
.svc-tile b { font-size: 1rem; line-height: 1.25; min-height: 2.5em; display: grid; align-items: center; }
.svc-tile .go { width: 38px; height: 38px; border-radius: 50%; background: var(--mint); color: var(--primary); display: grid; place-items: center; transition: background .2s, color .2s; }
.svc-tile:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: #bfe8d8; color: var(--dark); }
.svc-tile:hover .picto { transform: scale(1.1) rotate(-4deg); }
.svc-tile:hover .go { background: var(--secondary); color: #fff; }

/* Why choose (board S6) */
.why-title { font-size: clamp(2rem, 3.6vw, 2.8rem); }
.why-title span { color: var(--secondary); }
.why-photo--soft { box-shadow: var(--shadow-lg); }
.tick-list { list-style: none; padding: 0; margin: 20px 0 28px; display: grid; gap: 14px; }
.tick-list li { display: flex; align-items: center; gap: 14px; font-weight: 600; font-size: 1.04rem; color: var(--dark); }
.tick-list .tk { width: 28px; height: 28px; border-radius: 50%; background: var(--secondary); color: #fff; display: grid; place-items: center; flex: none; box-shadow: 0 4px 10px rgba(0,169,130,.3); }
.tick-list .tk .icon { width: 16px; height: 16px; stroke-width: 3; }
.why-tiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.why-tiles div { display: grid; justify-items: center; gap: 8px; padding: 14px 6px; background: #fff; border: 1px solid var(--line); border-radius: 16px; text-align: center; font-size: .74rem; font-weight: 700; color: var(--dark); line-height: 1.25; }
.why-tiles .picto { width: 34px; height: 34px; }

/* Doctor cards (board S7) */
.doc-card { display: block; background: #fff; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-sm); color: var(--ink); transition: transform .25s, box-shadow .25s; }
.doc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: var(--ink); }
.doc-photo { position: relative; height: 170px; background: radial-gradient(circle at 50% 60%, #c9f5e4 0 38%, var(--mint) 39% 100%); display: flex; justify-content: center; align-items: flex-end; overflow: hidden; }
.doc-photo img { height: 100%; width: auto; object-fit: cover; }
.doc-photo .demo-tag { position: absolute; top: 12px; right: 12px; }
.doc-body { padding: 18px 22px 22px; }
.doc-body h3 { margin: 0 0 4px; font-size: 1.12rem; }
.doc-body p { margin: 0; color: var(--muted); font-size: .92rem; }
.doc-body p:first-of-type { color: var(--primary); font-weight: 600; }
.doc-body .rating { margin-top: 10px; color: var(--dark); font-weight: 800; }
.doc-body .rating span { color: #f5b301; font-size: 1.1rem; }
.doc-body .rating small { color: var(--muted); font-weight: 600; }

/* Customer story (board S8) */
.story { position: relative; display: grid; grid-template-columns: 1fr 1fr; align-items: center; min-height: 380px; border-radius: var(--radius-lg); overflow: hidden; background: linear-gradient(120deg, #e3f8ef 0%, #f6fdf9 100%); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.story-photo { position: absolute; inset: 0 0 0 auto; width: 52%; }
.story-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 28%); mask-image: linear-gradient(to right, transparent 0%, #000 28%); }
.story-card { position: relative; z-index: 1; margin: 36px; padding: 30px 30px 24px; background: rgba(255,255,255,.94); border-radius: 24px; box-shadow: var(--shadow); max-width: 480px; }
.story-card .q { position: absolute; top: 6px; left: 22px; font-size: 4.2rem; line-height: 1; color: var(--secondary); font-weight: 800; }
.story-card blockquote { margin: 26px 0 18px; font-size: 1.18rem; font-weight: 600; color: var(--dark); line-height: 1.5; }
.story-card figcaption { display: flex; gap: 12px; align-items: center; }
.story-card figcaption img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 2px solid var(--mint-2); }
.story-card figcaption b { display: block; color: var(--dark); }
.story-card figcaption small { color: var(--primary); font-weight: 600; }
.story-card .stars { color: #f5b301; letter-spacing: 2px; margin: 10px 0 8px; }
.story-dots { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); display: flex; gap: 8px; z-index: 2; }
.story-dots button { width: 10px; height: 10px; border-radius: 50%; border: 0; background: #b7e4d4; cursor: pointer; padding: 0; transition: width .25s, background .25s; }
.story-dots button[aria-selected="true"] { background: var(--secondary); width: 26px; border-radius: 6px; }

/* Dashboard preview phone (board S9) */
.phone-stage { position: relative; display: grid; place-items: center; padding: 20px 0; }
.phone-stage::before { content: ""; position: absolute; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, rgba(52,211,153,.3), rgba(52,211,153,0) 70%); }
.phone--tilt { transform: rotate(8deg); }
.p-card .chev { margin-left: auto; color: var(--muted); }
.p-card .chev .icon { transform: rotate(-90deg); width: 16px; height: 16px; }

/* How it works + van (board E) */
.how { display: grid; gap: 28px; }
.how-van { max-width: 640px; margin: 0 auto; width: 100%; }
.how-van img { width: 100%; height: auto; border-radius: 24px; -webkit-mask-image: radial-gradient(ellipse 75% 85% at 50% 50%, #000 60%, transparent 100%); mask-image: radial-gradient(ellipse 75% 85% at 50% 50%, #000 60%, transparent 100%); }

/* Ecosystem (intro scene 4) */
.eco { position: absolute; left: 8%; right: 8%; top: 6%; height: 52%; pointer-events: none; }
.eco-arc { position: absolute; inset: 0; width: 100%; height: 100%; filter: drop-shadow(0 0 6px rgba(255,255,255,.8)); }
.eco-b { position: absolute; width: clamp(64px, 9vw, 112px); height: clamp(64px, 9vw, 112px); margin: calc(clamp(64px, 9vw, 112px) / -2) 0 0 calc(clamp(64px, 9vw, 112px) / -2); border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 10px 30px rgba(4,31,24,.25), 0 0 0 6px rgba(255,255,255,.35); visibility: hidden; }
.eco-b .picto { width: 58%; height: 58%; }
.eco-b:nth-of-type(1) { left: 17.2%; top: 72.5%; }
.eco-b:nth-of-type(2) { left: 33.6%; top: 42.5%; }
.eco-b:nth-of-type(3) { left: 50%; top: 32.5%; }
.eco-b:nth-of-type(4) { left: 66.4%; top: 42.5%; }
.eco-b:nth-of-type(5) { left: 82.8%; top: 72.5%; }
.scene-care .cap-b { position: absolute; left: 0; right: 0; visibility: hidden; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 120%); background: var(--dark); color: #fff; padding: 12px 20px; border-radius: 14px; box-shadow: var(--shadow-lg); font-weight: 600; font-size: .92rem; z-index: 120; transition: transform .3s ease; max-width: calc(100% - 32px); }
.toast.is-on { transform: translate(-50%, 0); }

/* Services marketplace */
.service-card { display: flex; flex-direction: column; gap: 14px; padding: 26px 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: transform .25s ease, box-shadow .25s ease, border-color .25s; color: var(--ink); height: 100%; }
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #bfe8d8; color: var(--ink); }
.service-card .ic { width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; background: linear-gradient(135deg, var(--mint), #c9f3e2); color: var(--primary); }
.service-card .ic .icon { width: 30px; height: 30px; }
.service-card h3 { margin: 0; }
.service-card p { margin: 0; color: var(--muted); font-size: .92rem; flex: 1; }
.service-card .go { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--primary); font-size: .9rem; }

/* Why choose */
.why { display: grid; grid-template-columns: .95fr 1.05fr; gap: 48px; align-items: center; }
.why-photo { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 498/404; }
.why-photo img { width: 100%; height: 100%; object-fit: cover; }
.why-photo .badge { position: absolute; left: 16px; bottom: 16px; background: rgba(255,255,255,.95); border-radius: 16px; padding: 12px 16px; display: flex; gap: 10px; align-items: center; font-weight: 700; font-size: .9rem; box-shadow: var(--shadow); }
.why-list { display: grid; gap: 14px; margin-top: 24px; }
.why-item { display: flex; gap: 16px; align-items: flex-start; padding: 18px; background: #fff; border-radius: var(--radius-sm); border: 1px solid var(--line); }
.why-item .ic { width: 46px; height: 46px; border-radius: 14px; background: var(--mint); color: var(--primary); display: grid; place-items: center; flex: none; }
.why-item h3 { margin: 0 0 2px; font-size: 1.02rem; }
.why-item p { margin: 0; color: var(--muted); font-size: .92rem; }

/* Doctors */
.doctor-card { text-align: center; padding: 28px 22px; }
.avatar { width: 92px; height: 92px; border-radius: 50%; margin: 0 auto 14px; background: linear-gradient(135deg, #d6f6ea, #a8ead2); display: grid; place-items: center; color: var(--primary); position: relative; }
.avatar .icon { width: 42px; height: 42px; }
.doctor-card h3 { margin-bottom: 2px; }
.doctor-card .spec { color: var(--muted); font-size: .9rem; margin-bottom: 12px; }
.empty-note { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: var(--radius-sm); background: #fff; border: 1px dashed #bfe0d4; color: var(--muted); font-size: .92rem; }
.empty-note .icon { color: var(--secondary); margin-top: 2px; }

/* Stories */
.stories-empty { display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; padding: 32px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.quote-mark { width: 64px; height: 64px; border-radius: 20px; background: var(--mint); display: grid; place-items: center; color: var(--primary); font-size: 2.6rem; font-weight: 800; line-height: 1; }

/* Dashboard preview */
.dash-preview { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.feature-list { list-style: none; padding: 0; margin: 24px 0 28px; display: grid; gap: 14px; }
.feature-list li { display: flex; gap: 12px; align-items: center; font-weight: 600; }
.feature-list .ic { width: 40px; height: 40px; border-radius: 12px; background: var(--mint); color: var(--primary); display: grid; place-items: center; flex: none; }
.phone { width: 300px; margin: 0 auto; border-radius: 44px; background: #0e1f1a; padding: 12px; box-shadow: var(--shadow-lg); position: relative; }
.phone::before { content: ""; position: absolute; top: 20px; left: 50%; width: 90px; height: 22px; background: #0e1f1a; border-radius: 0 0 14px 14px; transform: translateX(-50%); z-index: 2; }
.phone-screen { background: linear-gradient(180deg, #f2fcf8, #fff); border-radius: 34px; padding: 44px 18px 22px; min-height: 560px; display: grid; gap: 12px; align-content: start; }
.phone-screen .p-brand { display: flex; align-items: center; gap: 8px; font-weight: 800; color: var(--dark); }
.phone-screen .p-brand svg { width: 26px; height: 26px; }
.p-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px; display: flex; gap: 12px; align-items: center; box-shadow: var(--shadow-sm); }
.p-card .ic { width: 38px; height: 38px; border-radius: 12px; background: var(--mint); color: var(--primary); display: grid; place-items: center; flex: none; }
.p-card b { display: block; font-size: .9rem; color: var(--dark); }
.p-card small { color: var(--muted); font-size: .76rem; }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; position: relative; counter-reset: step; }
.steps-line { position: absolute; top: 44px; left: 10%; right: 10%; height: 3px; background: repeating-linear-gradient(90deg, #9fdcc6 0 10px, transparent 10px 18px); z-index: 0; }
.steps-line b { position: absolute; inset: 0; background: linear-gradient(90deg, var(--secondary), var(--primary)); transform-origin: left; transform: scaleX(0); border-radius: 3px; }
.step { position: relative; z-index: 1; text-align: center; display: grid; justify-items: center; gap: 10px; }
.step .ic { width: 88px; height: 88px; border-radius: 50%; background: #fff; border: 2px solid var(--line); box-shadow: var(--shadow); display: grid; place-items: center; color: var(--primary); transition: transform .3s; }
.step .ic .icon { width: 36px; height: 36px; }
.step .ic .picto { width: 50px; height: 50px; }
.step:hover .ic { transform: translateY(-4px); }
.step .num { width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(135deg, var(--secondary), var(--primary)); color: #fff; font-weight: 800; font-size: .85rem; display: grid; place-items: center; margin-top: -24px; border: 3px solid #fff; }
.step h3 { margin: 4px 0 0; font-size: 1rem; }
.step p { margin: 0; color: var(--muted); font-size: .86rem; max-width: 200px; }

/* Final CTA */
.final-cta { position: relative; overflow: hidden; border-radius: var(--radius-lg); background: radial-gradient(800px 400px at 90% 10%, rgba(52,211,153,.35), transparent 60%), linear-gradient(135deg, var(--primary) 0%, var(--dark) 100%); color: #fff; padding: 56px; display: grid; grid-template-columns: 1.2fr .8fr; gap: 32px; align-items: center; }
.final-cta h2 { color: #fff; }
.final-cta p { color: #cdeee2; font-size: 1.1rem; }
.final-cta .book-bar { box-shadow: none; background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.25); }
.final-cta .book-bar .loc, .final-cta .book-bar select { color: #fff; }
.final-cta .book-bar select option { color: var(--ink); }
.final-cta h2 { font-size: clamp(2rem, 4vw, 3rem); }
.final-cta-copy { position: relative; z-index: 1; }
/* House image bleeds into the gradient instead of sitting in a box */
.final-cta-img { position: absolute; inset: 0 0 0 auto; width: 52%; }
.final-cta-img img { width: 100%; height: 100%; object-fit: cover; -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 45%); mask-image: linear-gradient(to right, transparent 0%, #000 45%); }

/* Page hero (inner pages) */
.page-hero { background: linear-gradient(180deg, var(--mint) 0%, var(--bg) 100%); padding: 64px 0 40px; }
.page-hero p { max-width: 640px; font-size: 1.1rem; color: var(--muted); }
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 12px; display: flex; gap: 6px; align-items: center; }

/* Service detail */
.detail { display: grid; grid-template-columns: 1.3fr .7fr; gap: 32px; align-items: start; }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; }
.check-list .icon { color: var(--secondary); margin-top: 3px; }
.sticky-card { position: sticky; top: 96px; }

/* Forms */
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-weight: 700; font-size: .9rem; color: var(--dark); }
.input, .select, textarea.input { width: 100%; border: 1.5px solid var(--line); background: #fff; border-radius: 14px; padding: 12px 14px; transition: border-color .2s, box-shadow .2s; }
.input:focus, .select:focus { outline: none; border-color: var(--secondary); box-shadow: var(--glow); }
.input[aria-invalid="true"] { border-color: var(--danger); }
.error { color: var(--danger); font-size: .82rem; font-weight: 600; min-height: 1em; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* Booking */
.booking { display: grid; grid-template-columns: 280px 1fr; gap: 28px; align-items: start; }
.stepper { list-style: none; padding: 20px; margin: 0; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); display: grid; gap: 4px; position: sticky; top: 96px; }
.stepper li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; font-weight: 600; color: var(--muted); font-size: .94rem; }
.stepper li .n { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; font-size: .82rem; font-weight: 800; flex: none; background: #fff; }
.stepper li.is-active { background: var(--mint); color: var(--dark); }
.stepper li.is-active .n { border-color: var(--secondary); color: var(--primary); }
.stepper li.is-done .n { background: var(--secondary); border-color: var(--secondary); color: #fff; }
.progress { height: 6px; background: var(--mint); border-radius: 6px; overflow: hidden; margin-bottom: 22px; }
.progress b { display: block; height: 100%; background: linear-gradient(90deg, var(--secondary), var(--primary)); transition: width .4s ease; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow-sm); }
.panel h2 { font-size: 1.6rem; }
.option-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.option { position: relative; display: grid; gap: 8px; justify-items: center; text-align: center; padding: 20px 14px; border: 2px solid var(--line); border-radius: 18px; cursor: pointer; background: #fff; font-weight: 700; transition: border-color .2s, box-shadow .2s, transform .2s; }
.option:hover { transform: translateY(-2px); }
.option input { position: absolute; opacity: 0; pointer-events: none; }
.option .icon { width: 30px; height: 30px; color: var(--primary); }
.option:has(input:checked) { border-color: var(--secondary); box-shadow: var(--glow); background: #f6fdfa; }
.option:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
.option .tick { position: absolute; top: 8px; right: 8px; width: 22px; height: 22px; border-radius: 50%; background: var(--secondary); color: #fff; display: none; place-items: center; }
.option:has(input:checked) .tick { display: grid; }
.option .tick .icon { width: 14px; height: 14px; color: #fff; }
.option small { font-weight: 500; color: var(--muted); font-size: .8rem; }
.dates { display: grid; grid-template-columns: repeat(7, minmax(64px, 1fr)); gap: 10px; overflow-x: auto; padding-bottom: 4px; }
.panel fieldset, .booking > *, .dash > *, .detail > *, .track > * { min-width: 0; }
.dash > div { grid-template-columns: minmax(0, 1fr); } /* fieldsets default to min-content width, which let the date row widen the page */
@media (max-width: 640px) { .dates { grid-template-columns: repeat(4, 1fr); overflow-x: visible; } }
.dates .option, .slots .option { padding: 12px 6px; gap: 2px; }
.dates .option b { font-size: 1.3rem; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
/* Booking — board-matched controls */
.input-icon { position: relative; display: flex; align-items: center; }
.input-icon > .icon { position: absolute; left: 14px; top: 14px; color: var(--secondary); pointer-events: none; }
.input-icon .input, .input-icon .select { padding-left: 44px; }
.input-icon .prefix { position: absolute; left: 42px; top: 12px; font-weight: 700; color: var(--dark); pointer-events: none; }
.input-icon .prefix + .input { padding-left: 82px; }
.option-grid--svc { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.option--svc { padding: 22px 12px 18px; }
.option--svc .picto { width: 52px; height: 52px; }
.option--svc span:last-child { font-size: .92rem; color: var(--dark); }
.option--svc .tick { top: -8px; right: -8px; width: 26px; height: 26px; box-shadow: 0 0 0 3px #fff; }
.month-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; color: var(--dark); }
.month-bar b { font-size: 1.05rem; }
.icon-btn { width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--line); background: #fff; display: grid; place-items: center; cursor: pointer; color: var(--primary); }
.icon-btn[data-week="-1"] .icon { transform: rotate(90deg); }
.icon-btn[data-week="1"] .icon { transform: rotate(-90deg); }
.icon-btn[disabled] { opacity: .35; cursor: not-allowed; }
.option--fill small { color: var(--muted); }
.option--fill:has(input:checked) { background: linear-gradient(135deg, var(--secondary), var(--primary)); border-color: var(--primary); color: #fff; box-shadow: 0 8px 18px rgba(13,110,83,.28); }
.option--fill:has(input:checked) small { color: #d9fbe9; }
.option--pill { border-radius: 999px; padding: 12px 8px; font-size: .92rem; }
.review-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 18px 0; }
.review-item { display: flex; gap: 14px; align-items: center; padding: 16px; border: 1px solid var(--line); border-radius: 18px; background: #fbfefd; }
.review-item .picto { width: 44px; height: 44px; }
.review-item b { display: block; color: var(--dark); }
.review-item small { color: var(--muted); }
.bill { border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; }
.bill-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; color: var(--dark); }
.pay-row { display: flex; gap: 10px; flex-wrap: wrap; }
.option--pay { grid-auto-flow: column; justify-items: start; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 14px; font-size: .92rem; }
.option--pay .icon { width: 20px; height: 20px; }
.confirm { text-align: center; padding: 12px 0; }
.confirm h2 { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center; }
.confirm-id { font-size: 1.05rem; color: var(--muted); margin: 0 0 6px; }
.confirm-id strong { color: var(--dark); letter-spacing: .04em; }
.confirm-when { display: inline-flex; gap: 8px; align-items: center; font-weight: 700; color: var(--dark); background: var(--mint); padding: 8px 16px; border-radius: 999px; }
.confirm-when .icon { color: var(--secondary); }
.confirm-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }
.linklike { background: none; border: 0; padding: 0; color: var(--primary); font-weight: 600; cursor: pointer; }
.linklike:hover { color: var(--secondary); }
.panel-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.summary-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px dashed var(--line); gap: 12px; }
.summary-row:last-child { border-bottom: 0; }
.summary-row.total { font-weight: 800; color: var(--dark); font-size: 1.1rem; border-top: 2px solid var(--line); border-bottom: 0; margin-top: 6px; padding-top: 14px; }
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; background: var(--warn-bg); color: var(--warn-ink); border: 1px solid #f5dfae; font-size: .9rem; margin: 16px 0; }
.notice--ok { background: var(--mint); color: var(--primary); border-color: #bfe8d8; }
.confirm-icon { width: 84px; height: 84px; border-radius: 50%; background: linear-gradient(135deg, var(--secondary), var(--primary)); color: #fff; display: grid; place-items: center; margin: 0 auto 18px; box-shadow: 0 0 0 10px var(--mint); }
.confirm-icon .icon { width: 42px; height: 42px; }

/* Dashboard page */
.dash { display: grid; grid-template-columns: 240px 1fr; gap: 24px; align-items: start; }
.side-nav { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; display: grid; gap: 4px; position: sticky; top: 96px; }
.side-nav a { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; color: var(--ink); font-weight: 600; font-size: .92rem; }
.side-nav a.is-active, .side-nav a:hover { background: var(--mint); color: var(--primary); }
.timeline { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.timeline li { display: flex; gap: 14px; position: relative; padding-bottom: 18px; color: var(--muted); }
.timeline li::before { content: ""; position: absolute; left: 11px; top: 24px; bottom: 0; width: 2px; background: var(--line); }
.timeline li:last-child::before { display: none; }
.timeline .dot { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line); background: #fff; flex: none; display: grid; place-items: center; }
.timeline li.done { color: var(--dark); font-weight: 600; }
.timeline li.done .dot { background: var(--secondary); border-color: var(--secondary); color: #fff; }
.timeline .dot .icon { width: 12px; height: 12px; }

/* Tracking (board: Service Tracking) */
.track { display: grid; grid-template-columns: 1.4fr .9fr; gap: 24px; align-items: start; }
.track-map { padding: 0; overflow: hidden; position: relative; }
.track-map svg { display: block; width: 100%; height: auto; }
.track-doc { position: absolute; left: 18px; top: 18px; display: flex; gap: 12px; align-items: center; background: #fff; padding: 10px 14px 10px 10px; border-radius: 18px; box-shadow: var(--shadow); max-width: calc(100% - 36px); }
.track-doc img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; background: var(--mint); }
.track-doc b { display: flex; gap: 8px; align-items: center; color: var(--dark); flex-wrap: wrap; }
.track-doc small { color: var(--muted); font-weight: 600; }
.timeline--live li.current { color: var(--primary); font-weight: 800; }
.timeline--live li.current .dot { box-shadow: 0 0 0 5px rgba(0,169,130,.18); }
.timeline .eta { color: var(--secondary); font-weight: 700; }

/* Records list (board: Reports & Health Records) */
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; }
.tabs button { white-space: nowrap; }
.tabs button { background: none; border: 0; padding: 12px 16px; font-weight: 700; color: var(--muted); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.tabs button[aria-selected="true"] { color: var(--primary); border-color: var(--secondary); }
.rec { display: flex; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.rec:last-child { border-bottom: 0; }
.rec .pdf { width: 44px; height: 52px; border-radius: 8px; background: #fff1f0; color: #dc2626; display: grid; place-items: center; font-size: .66rem; font-weight: 800; border: 1px solid #fecaca; flex: none; }
.rec div { flex: 1; min-width: 0; }
.rec b { display: block; color: var(--dark); }
.rec small { color: var(--muted); }

/* Dashboard (board D1) */
.dash-hello { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 16px; background: linear-gradient(120deg, var(--mint), #fff); }
.dash-hello h1 { font-size: 1.9rem; margin: 0; }
.dash-hello svg { width: 130px; height: auto; }
.tile { display: grid; gap: 6px; align-content: start; }
.tile .ic { width: 44px; height: 44px; border-radius: 14px; background: var(--mint); color: var(--primary); display: grid; place-items: center; margin-bottom: 4px; }
.tile b { color: var(--dark); }
.tile small { color: var(--muted); }
.tile .num { font-size: 1.6rem; font-weight: 800; color: var(--dark); line-height: 1; }
.tile a { font-weight: 700; font-size: .9rem; display: inline-flex; gap: 6px; align-items: center; margin-top: 6px; }
.followup { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; background: linear-gradient(120deg, #e3f8ef, #fff); }
.followup .picto { width: 52px; height: 52px; }

/* Admin (board E) */
.admin { display: grid; grid-template-columns: 220px 1fr; min-height: calc(100vh - 37px); }
.admin-side { background: var(--dark); color: #cfeee3; padding: 22px 14px; display: grid; gap: 4px; align-content: start; }
.admin-side .brand { color: #fff; margin: 0 8px 18px; font-size: 1.15rem; }
.admin-side .brand svg { width: 30px; height: 30px; }
.admin-side a { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; color: #cfeee3; font-weight: 600; font-size: .92rem; }
.admin-side a.is-active, .admin-side a:hover { background: rgba(255,255,255,.1); color: #fff; }
.admin-main { padding: 28px; display: grid; gap: 20px; align-content: start; background: var(--bg); }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.kpi small { color: var(--muted); font-weight: 600; }
.kpi b { display: block; font-size: 2rem; color: var(--dark); line-height: 1.1; margin-top: 4px; }
.kpi .up { color: var(--secondary); font-weight: 700; font-size: .85rem; }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th { text-align: left; color: var(--muted); font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.table td { padding: 12px; border-bottom: 1px solid var(--line); }
.status { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; }
.status--way { background: #dcfce7; color: #15803d; }
.status--prog { background: #fef3c7; color: #a16207; }
.status--done { background: #e0f2fe; color: #0369a1; }
.status--new { background: var(--mint); color: var(--primary); }
.bars { display: flex; align-items: flex-end; gap: 10px; height: 140px; padding-top: 10px; }
.bars i { flex: 1; background: linear-gradient(180deg, var(--accent), var(--secondary)); border-radius: 8px 8px 4px 4px; }

/* Help & support list (board: Support & Help) */
.help-list { list-style: none; padding: 0; margin: 0; }
.help-list a { display: flex; align-items: center; gap: 14px; padding: 16px 4px; border-bottom: 1px solid var(--line); color: var(--dark); font-weight: 700; }
.help-list a:hover { color: var(--primary); }
.help-list .ic { width: 40px; height: 40px; border-radius: 12px; background: var(--mint); color: var(--primary); display: grid; place-items: center; flex: none; }
.help-list .chev { margin-left: auto; color: var(--muted); }
.help-list .chev .icon { transform: rotate(-90deg); }

/* Services listing cards (board P1) */
.svc-card { display: flex; flex-direction: column; gap: 10px; padding: 26px; background: #fff; border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s; }
.svc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.svc-card-top { display: flex; justify-content: space-between; align-items: flex-start; }
.svc-card .picto { width: 64px; height: 64px; }
.svc-card h3 { margin: 6px 0 0; }
.svc-card p { margin: 0; }
.svc-card .muted { flex: 1; font-size: .94rem; }
.svc-card .from { color: var(--muted); }
.svc-card .from b { color: var(--dark); font-size: 1.3rem; }
.svc-card-actions { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 6px; }

/* Doctor profile */
.profile-head { display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.profile-ticks { margin: 0; gap: 10px; }
.profile-ticks li { font-size: .95rem; }

/* Platform ecosystem (board J) */
.eco-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.eco-cards .card { display: grid; gap: 8px; justify-items: start; }
.eco-cards .picto { width: 52px; height: 52px; }

/* FAQ */
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 4px 20px; margin-bottom: 12px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; color: var(--dark); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--secondary); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); }

.prose { max-width: 760px; }
.prose h2 { font-size: 1.4rem; margin-top: 1.6em; }
.prose ul { padding-left: 1.2em; }

/* Reveal animation base (only when JS motion is active) */
.motion-ready [data-reveal] { opacity: 0; transform: translateY(26px); }

/* Responsive */
@media (max-width: 1024px) {
  .grid--5 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .steps { grid-template-columns: repeat(3, 1fr); row-gap: 36px; }
  .steps-line { display: none; }
  .final-cta { grid-template-columns: 1fr; padding: 40px; }
  .final-cta-img { width: 100%; opacity: .28; }
  .svc-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .why-tiles { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .nav, .header-actions .btn--ghost { display: none; }
  .menu-toggle { display: inline-flex; }
  .mobile-nav.is-open { display: grid; gap: 4px; padding: 12px 20px 20px; border-top: 1px solid var(--line); background: #fff; }
  .mobile-nav a { padding: 12px 14px; border-radius: 12px; font-weight: 600; color: var(--ink); }
  .mobile-nav a:hover { background: var(--mint); }
  .hero .container { grid-template-columns: 1fr; padding-top: 40px; }
  .hero-visual { min-height: 380px; }
  .hero-ring { width: 300px; height: 300px; }
  .hero-halo { width: 340px; height: 340px; }
  .hero-doc { width: 290px; margin-top: 24px; }
  .join-intro { grid-template-columns: 130px 1fr; gap: 18px; }
  .why, .dash-preview, .detail, .booking, .dash, .track { grid-template-columns: 1fr; }
  .admin { grid-template-columns: 1fr; }
  .admin-side { grid-auto-flow: column; overflow-x: auto; align-items: center; padding: 12px; }
  .admin-side .brand { margin: 0 12px 0 0; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .admin-row { grid-template-columns: 1fr !important; }
  .dash-hello svg { width: 90px; }
  .eco-cards { grid-template-columns: 1fr; }
  .profile-head { grid-template-columns: 1fr; }
  .stepper, .side-nav, .sticky-card { position: static; }
  .stepper { grid-template-columns: repeat(3, 1fr); }
  .stories-empty { grid-template-columns: 1fr; text-align: left; }
  .grid--3 { grid-template-columns: 1fr 1fr; }
  .story { grid-template-columns: 1fr; min-height: 0; }
  .story-photo { position: relative; width: 100%; height: 260px; }
  .story-photo img { -webkit-mask-image: linear-gradient(to bottom, #000 60%, transparent 100%); mask-image: linear-gradient(to bottom, #000 60%, transparent 100%); }
  .story-card { margin: -60px 16px 48px; max-width: none; }
  .center-head .link-arrow { position: static; margin-top: 10px; }
}
@media (max-width: 640px) {
  .header-actions .btn--primary { display: none; }
  .brand { font-size: 1.2rem; }
  .demo-banner { font-size: .74rem; }
  .section { padding: 64px 0; }
  .container { padding: 0 16px; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .grid--5 { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .book-bar { flex-direction: column; border-radius: 22px; }
  .book-bar .loc { padding: 6px 10px; }
  .quick-services a { font-size: .7rem; padding: 10px 2px; }
  .quick-services .picto { width: 28px; height: 28px; }
  .hero .book-bar .loc { padding: 6px 14px; }
  .svc-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .svc-tile { padding: 22px 10px 18px; }
  .svc-tile .picto { width: 56px; height: 56px; }
  .why-tiles { grid-template-columns: repeat(2, 1fr); }
  .phone--tilt { transform: rotate(4deg) scale(.92); }
  .story-card { padding: 26px 20px 20px; }
  .story-card blockquote { font-size: 1.02rem; }
  .row-2 { grid-template-columns: 1fr; }
  .panel { padding: 22px; }
  .review-grid { grid-template-columns: 1fr; }
  .rec { flex-wrap: wrap; }
  .rec .btn { margin-left: 58px; }
  .option-grid--svc { grid-template-columns: repeat(2, 1fr); }
  .stepper { grid-template-columns: repeat(2, 1fr); padding: 12px; }
  .final-cta { padding: 28px 22px; }
  .scene-welcome .welcome-wrap { flex-direction: column; gap: 22px; }
  .scene-welcome .doc { width: min(64vw, 280px); }
  .bubble::before { left: 50%; top: -12px; transform: translateX(-50%) rotate(45deg); }
}

/* ===== ADMIN · DOCTORS ===== */
.adm-docs { min-width: 0; }
.adm-docs-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.adm-doc-form { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 28px; padding: 20px; margin-bottom: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
.adm-doc-fields { min-width: 0; }
.adm-doc-fields textarea.input { resize: vertical; min-height: 84px; font: inherit; }
.adm-doc-preview { position: sticky; top: 20px; align-self: start; max-width: 300px; }
.adm-doc-preview .doc-card { pointer-events: none; }
.adm-doc-table td { vertical-align: middle; }
.adm-doc { display: flex; align-items: center; gap: 12px; min-width: 200px; }
.adm-doc img { width: 46px; height: 46px; border-radius: 14px; object-fit: cover; object-position: 50% 20%; background: var(--mint); flex: none; }
.adm-doc b { display: block; color: var(--dark); }
.adm-doc small { color: var(--muted); }
.adm-actions { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.btn--danger { background: #fff; border: 1px solid #f3c6b4; color: var(--danger); }
.btn--danger:hover { background: #fff3ee; color: var(--danger); }
.adm-doc-table select { padding: 6px 10px; border-radius: 10px; border: 1px solid var(--line); font: inherit; font-size: .85rem; background: #fff; }
@media (max-width: 900px) { .adm-doc-form { grid-template-columns: 1fr; } .adm-doc-preview { position: static; } }

/* ===== POSTER HERO (oversized subject over giant lettering) ===== */
.poster { position: relative; overflow: hidden; isolation: isolate; background: radial-gradient(760px 520px at 50% 62%, #c3f1df 0%, rgba(195,241,223,0) 70%), linear-gradient(180deg, #f1fcf7 0%, #e2f7ee 100%); }
.poster::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 90px; z-index: 2; background: linear-gradient(180deg, rgba(247,252,250,0), var(--bg)); pointer-events: none; }
.poster-word { position: absolute; left: 0; right: 0; top: 56px; z-index: 0; margin: 0; text-align: center; white-space: nowrap; pointer-events: none; user-select: none;
  font-weight: 800; text-transform: uppercase; letter-spacing: -.055em; line-height: .8;
  font-size: min(17rem, calc(96vw / (var(--len, 5) * .66)));
  background: linear-gradient(180deg, var(--primary) 0%, var(--secondary) 70%, rgba(0,169,130,.35) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.poster-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) minmax(0, .85fr); grid-template-areas: "copy stage stats"; min-height: clamp(620px, 86vh, 780px); padding-top: 24px; }
.poster-crumbs { position: absolute; top: 20px; left: 20px; z-index: 3; font-size: .85rem; color: var(--muted); }
.poster-crumbs a { color: var(--muted); }
.poster-stage { grid-area: stage; position: relative; display: flex; justify-content: center; align-items: flex-end; }
.poster-subject { position: relative; display: block; height: min(100%, 700px); max-height: 700px; width: auto; max-width: none; margin-bottom: -4px;
  filter: drop-shadow(0 30px 40px rgba(11,56,46,.22)); -webkit-mask-image: linear-gradient(to bottom, #000 80%, transparent 99%); mask-image: linear-gradient(to bottom, #000 80%, transparent 99%); }
.poster-stage::before { content: ""; position: absolute; bottom: 4%; left: 50%; width: 82%; aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%; z-index: -1; background: radial-gradient(closest-side, rgba(255,255,255,.85), rgba(255,255,255,0)); }
.poster-photo { position: relative; align-self: flex-end; width: min(400px, 88%); aspect-ratio: 4 / 5; margin-bottom: 40px; border-radius: 200px 200px 28px 28px; overflow: hidden; border: 8px solid rgba(255,255,255,.9); box-shadow: var(--shadow-lg), 0 0 0 14px rgba(0,169,130,.10); background: var(--mint); }
.poster-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.demo-tag--ai { background: #ecebff; color: #4b3fb3; }
.rating--new { color: var(--secondary) !important; font-weight: 700; }
.doc-photo--avatar img { object-position: 50% 20%; }
.doc-photo--photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; }
.doc-photo--cutout img { width: auto; height: 112%; object-fit: contain; object-position: 50% 0; align-self: flex-start; margin-top: 10px; }
.poster-copy { grid-area: copy; position: relative; z-index: 3; align-self: end; padding-bottom: 72px; }
.poster-copy h1 { font-size: clamp(2rem, 3.4vw, 2.9rem); margin: 12px 0 6px; }
.poster-copy p { color: var(--muted); margin: 0 0 18px; }
.poster-copy .btn-row { display: flex; gap: 10px; flex-wrap: wrap; }
.poster-stats { grid-area: stats; position: relative; z-index: 3; align-self: end; display: grid; gap: 12px; padding-bottom: 72px; justify-items: start; }
.glass { display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 12px; border-radius: 18px; background: rgba(255,255,255,.66); -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3); border: 1px solid rgba(255,255,255,.9); box-shadow: 0 14px 34px rgba(11,56,46,.12); font-weight: 700; color: var(--dark); line-height: 1.2; }
.glass small { display: block; font-weight: 500; color: var(--muted); font-size: .78rem; }
.glass .gi { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; background: var(--mint); color: var(--primary); font-size: 1.1rem; }
.glass .gi .picto { width: 30px; height: 30px; }
.glass .gi .icon { width: 20px; height: 20px; }
.poster-stats .glass:nth-child(2) { margin-left: -44px; }
.poster-stats .glass:nth-child(3) { margin-left: -12px; }
.poster-stats .glass:nth-child(4) { margin-left: -60px; }
.poster-price { font-size: 2.4rem; font-weight: 800; color: var(--dark); margin: 0 0 16px; letter-spacing: -.02em; }
.poster-price small { font-size: .9rem; font-weight: 600; color: var(--muted); margin-right: 6px; letter-spacing: 0; }
@media (max-width: 1024px) {
  .poster-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "copy stage" "stats stats"; }
  .poster-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-bottom: 48px; margin-top: -24px; }
  .poster-stats .glass { margin-left: 0 !important; }
  .poster-subject { height: 600px; }
}
@media (max-width: 760px) {
  .poster-word { top: 58px; font-size: min(30vw, calc(90vw / (var(--len, 5) * .74))); }
  .poster-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "crumbs" "stage" "copy" "stats"; min-height: 0; padding-top: 0; }
  .poster-crumbs { grid-area: crumbs; position: relative; top: auto; left: auto; padding-top: 16px; font-size: .8rem; }
  .poster-stage { height: min(118vw, 500px); margin-top: 18px; }
  .poster-subject { height: 100%; -webkit-mask-image: linear-gradient(to bottom, #000 58%, transparent 90%); mask-image: linear-gradient(to bottom, #000 58%, transparent 90%); }
  .poster-photo { width: min(300px, 78%); margin-bottom: 36px; }
  .poster-copy { padding: 0 0 8px; margin-top: -28px; }
  .poster-stats { margin-top: 12px; gap: 10px; padding-bottom: 40px; }
  .glass { padding: 10px 12px 10px 10px; font-size: .9rem; }
  .glass .gi { width: 34px; height: 34px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .motion-ready [data-reveal] { opacity: 1; transform: none; }
}

/* ===== Immersive layer (assets/js/motion.js + assets/js/three-scenes.js) ===== */
.fx-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
/* Intro: 3D shield sits exactly where the flat logo was, so nothing shifts when it swaps in */
.scene-logo .logo-lockup > span:first-child { position: relative; display: grid; place-items: center; }
.fx-logo3d { position: absolute; left: 50%; top: 38%; width: min(36vmin, 240px); height: min(36vmin, 240px); transform: translate(-50%, -50%); pointer-events: none; }
.fx-logo-live .logo-lockup svg { visibility: hidden; }
/* Hero: WebGL doctor + orbit. The flat image fades out once the 3D one is drawn */
.hero-copy { position: relative; z-index: 3; }
.fx-hero3d { position: absolute; inset: -16% -24% -8%; pointer-events: none; z-index: 2; }
.hero-visual.fx-3d-live .hero-ring { visibility: hidden; }
/* Mountable 3D doctor scene (three-scenes.js): the image hides only after the aligned 3D doctor has faded in */
.fx-doc3d { position: absolute; pointer-events: none; }
.fx-poster3d { inset: -8% -34% -2%; z-index: 1; }
.fx-card3d { inset: -44px -6% 0; z-index: 1; }
.poster-stage.fx-3d-live .poster-subject, .dc-stage.fx-3d-live .dc-figure { visibility: hidden; }
@media (max-width: 760px) { .fx-poster3d { inset: -6% -10% -2%; } }
.hero-doc img { transition: opacity .8s ease; }
.hero-visual.fx-3d-live .hero-doc img { visibility: hidden; }
/* Card tilt glare */
.fx-tilt { position: relative; transform-style: preserve-3d; will-change: transform; }
.fx-glare { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 2; opacity: 0; transition: opacity .35s ease; background: radial-gradient(circle at var(--gx, 50%) var(--gy, 0%), rgba(255,255,255,.55), rgba(255,255,255,0) 55%); mix-blend-mode: overlay; }
.fx-tilt:hover .fx-glare { opacity: 1; }
/* Glass bubbles */
.fx-on .eco-b.fx-bubble { background: radial-gradient(circle at 32% 26%, rgba(255,255,255,.98) 0 8%, rgba(255,255,255,.72) 30%, rgba(230,250,243,.42) 68%, rgba(52,211,153,.28) 100%); -webkit-backdrop-filter: blur(10px) saturate(1.4); backdrop-filter: blur(10px) saturate(1.4); border: 1.5px solid rgba(255,255,255,.85); box-shadow: inset -10px -12px 22px rgba(13,110,83,.22), inset 8px 10px 16px rgba(255,255,255,.9), 0 18px 40px rgba(4,31,24,.35), 0 0 0 8px rgba(255,255,255,.14); }
.fx-on .eco-b.fx-bubble::after { content: ""; position: absolute; left: 18%; top: 12%; width: 34%; height: 20%; border-radius: 50%; background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(255,255,255,0)); transform: rotate(-24deg); pointer-events: none; }
.fx-on .svc-tile .picto.fx-bubble { position: relative; width: 92px; height: 92px; padding: 14px; border-radius: 50%; overflow: visible; background: radial-gradient(ellipse 26% 15% at 36% 20%, rgba(255,255,255,1), rgba(255,255,255,0)), radial-gradient(circle at 32% 26%, rgba(255,255,255,1) 0 10%, rgba(240,253,248,.9) 40%, rgba(201,245,228,.75) 75%, rgba(52,211,153,.35) 100%); box-shadow: inset -8px -10px 18px rgba(13,110,83,.16), inset 6px 8px 14px rgba(255,255,255,.95), 0 14px 26px rgba(11,56,46,.14); }
/* 3D dashboard phone */
.fx-phone-stage { perspective: 1300px; }
.fx-phone-wrap { position: relative; transform-style: preserve-3d; }
.fx-phone3d { transform-style: preserve-3d; box-shadow: 1px 1px 0 #1d3b33, 2px 2px 0 #1d3b33, 3px 3px 0 #1a352e, 4px 4px 0 #17302a, 5px 5px 0 #142b25, 0 40px 70px rgba(11,56,46,.35); }
.fx-phone3d .phone-screen { transform-style: preserve-3d; }
.fx-phone3d .p-card { transform: translateZ(26px); box-shadow: 0 12px 24px rgba(11,56,46,.14); }
.fx-phone3d .p-brand, .fx-phone3d .phone-screen > div:nth-child(2) { transform: translateZ(14px); }
.fx-pop { position: absolute; z-index: 3; font-size: .86rem; white-space: nowrap; }
.fx-pop--a { left: -96px; top: 4%; }
.fx-pop--b { right: -70px; top: 62%; }
@media (max-width: 760px) {
  .fx-hero3d { inset: -10% -14% -6%; }
  .fx-pop--a { left: -10px; } .fx-pop--b { right: -10px; }
  .fx-on .svc-tile .picto.fx-bubble { width: 76px; height: 76px; padding: 12px; }
}
@media (prefers-reduced-motion: reduce) { .fx-canvas, .fx-pop { display: none !important; } }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* ===== Doctor cards, poster style (same language as the profile page) ===== */
.doc-card--poster { overflow: visible; margin-top: 40px; padding: 0; background: #fff; isolation: isolate; }
.dc-stage { position: relative; height: 300px; container-type: inline-size; border-radius: 22px 22px 0 0; background: radial-gradient(circle at 50% 78%, #bff0dd 0 26%, rgba(191,240,221,0) 60%), linear-gradient(180deg, #e3f8f0 0%, #f2fcf8 100%); }
.dc-word { position: absolute; left: 0; right: 0; top: 12px; z-index: 0; text-align: center; font-weight: 800; line-height: .9; letter-spacing: -.045em; text-transform: uppercase; white-space: nowrap; overflow: hidden; pointer-events: none; font-size: min(5.6rem, calc(90cqw / (var(--len, 5) * .76))); background: linear-gradient(180deg, var(--primary) 0%, var(--secondary) 55%, rgba(0,169,130,.12) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.dc-figure { position: absolute; left: 50%; bottom: 0; z-index: 1; height: calc(100% + 40px); width: auto; max-width: none; transform: translateX(-50%); transform-origin: 50% 100%; filter: drop-shadow(0 18px 22px rgba(11,56,46,.16)); -webkit-mask-image: linear-gradient(to bottom, #000 82%, transparent 100%); mask-image: linear-gradient(to bottom, #000 82%, transparent 100%); transition: transform .55s cubic-bezier(.2,.8,.2,1); }
.dc-figure--photo { height: auto; width: 60%; bottom: 14px; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 12%; border-radius: 160px 160px 22px 22px; -webkit-mask-image: none; mask-image: none; border: 4px solid #fff; }
.doc-card--poster:hover .dc-figure { transform: translateX(-50%) translateY(-6px) scale(1.04); }
.dc-stage .demo-tag { position: absolute; top: 12px; right: 12px; z-index: 3; }
.dc-chip { position: absolute; z-index: 2; padding: 7px 12px 7px 7px; gap: 8px; font-size: .82rem; border-radius: 14px; transition: transform .4s ease; }
.dc-chip small { font-size: .7rem; }
.dc-chip .gi { width: 30px; height: 30px; border-radius: 10px; font-size: .95rem; color: #f5a524; }
.dc-chip .gi .icon { width: 16px; height: 16px; color: var(--primary); }
.dc-chip--a { left: 12px; bottom: 74px; }
.dc-chip--b { right: 12px; bottom: 22px; }
.doc-card--poster:hover .dc-chip--a { transform: translate(-4px, -4px); }
.doc-card--poster:hover .dc-chip--b { transform: translate(4px, -2px); }
.doc-card--poster .doc-body { position: relative; z-index: 2; padding: 18px 20px 20px; background: #fff; border-top: 1px solid var(--line); border-radius: 0 0 22px 22px; }
.doc-card--poster .doc-body h3 { margin: 0 0 4px; font-size: 1.15rem; }
.doc-card--poster .doc-body p { margin: 0; color: var(--muted); font-size: .9rem; }
.dc-go { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-weight: 700; font-size: .9rem; color: var(--primary); }
.dc-go .icon { width: 16px; height: 16px; transition: transform .25s; }
.doc-card--poster:hover .dc-go .icon { transform: translateX(4px); }
@media (max-width: 760px) { .dc-stage { height: 320px; } }

/* Hero: giant DOCSAHAB lettering behind the doctor (same treatment as the doctor cards) */
.hero-visual { container-type: inline-size; }
.hero-word { position: absolute; left: 50%; top: 4%; z-index: 0; transform: translateX(-50%); white-space: nowrap; pointer-events: none; text-transform: uppercase; font-weight: 800; line-height: .9; letter-spacing: -.045em; font-size: min(9rem, calc(112cqw / (8 * .72))); background: linear-gradient(180deg, var(--primary) 0%, var(--secondary) 55%, rgba(0,169,130,.1) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; opacity: .95; }
.hero-doc, .hero-ring { z-index: 1; }
@media (max-width: 760px) { .hero-word { top: 6%; font-size: calc(100cqw / (8 * .72)); } }

/* ===== Intro story (van arrives -> six journey cards) ===== */
.intro-skip { background: rgba(6,42,34,.55); }
.intro-skip:hover { background: rgba(6,42,34,.75); }
.intro-progress { padding: 7px 10px; border-radius: 999px; background: rgba(6,42,34,.45); backdrop-filter: blur(6px); }
.scene-arrive { background: linear-gradient(180deg, #d9f6ea 0%, #f3fff9 62%, #e9f9f2 100%); overflow: hidden; }
.arrive-svg { position: absolute; left: 50%; bottom: 0; height: min(78vh, 640px); width: auto; transform: translateX(-50%); overflow: visible; }
.arrive-caption { position: absolute; top: 12vh; left: 0; right: 0; z-index: 2; text-align: center; padding: 0 20px; }
.arrive-caption h2 { margin: 0; font-size: clamp(1.8rem, 4.4vw, 3.4rem); color: var(--dark); letter-spacing: -.03em; }
.scene-story { background: radial-gradient(900px 500px at 50% 0%, #c8f3e2 0%, rgba(200,243,226,0) 70%), linear-gradient(180deg, #f2fcf8 0%, #e6f8f0 100%); align-content: center; gap: 4vh; padding: 0 20px; }
.story-title { margin: 0; text-align: center; font-size: clamp(1.6rem, 3.6vw, 2.8rem); color: var(--dark); letter-spacing: -.03em; }
.story-title span { background: linear-gradient(135deg, var(--secondary), var(--primary)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.story-track { position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; width: min(1320px, 100%); }
@media (min-width: 761px) { .sc h3 { font-size: 1.02rem; } .sc { padding: 16px 12px 18px; } }
.story-line { position: absolute; left: 6%; right: 6%; top: 50%; height: 4px; border-radius: 4px; background: rgba(13,110,83,.12); }
.story-line b { position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(90deg, var(--secondary), var(--primary)); transform: scaleX(0); transform-origin: left; }
.sc { position: relative; z-index: 1; display: grid; justify-items: center; gap: 8px; padding: 14px 10px 16px; text-align: center; background: #fff; border: 1.5px solid var(--line); border-radius: 22px; box-shadow: 0 10px 26px rgba(11,56,46,.08); transition: border-color .3s, box-shadow .3s; }
.sc.is-on { border-color: #7fdcb9; box-shadow: 0 18px 40px rgba(0,169,130,.22), 0 0 0 5px rgba(52,211,153,.14); }
.sc-art { width: 100%; aspect-ratio: 4 / 3; border-radius: 16px; background: linear-gradient(180deg, #f2fcf8, #e6faf3); display: grid; place-items: center; overflow: hidden; }
.sc-art svg { width: 100%; height: 100%; display: block; }
.sc-num { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: .78rem; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--secondary), var(--primary)); border: 3px solid #fff; }
.sc h3 { margin: 0; font-size: .95rem; line-height: 1.2; color: var(--dark); }
.story-note { margin: 0; text-align: center; font-size: .8rem; color: var(--muted); }
@media (max-width: 760px) {
  .arrive-svg { width: 118vw; height: auto; bottom: 8vh; }
  .scene-arrive::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 8.2vh; background: #a9e4cc; }
  .arrive-caption { top: 14vh; }
  .story-track { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
  .story-line { display: none; }
  .sc { padding: 10px 8px 12px; border-radius: 18px; }
  .sc h3 { font-size: .82rem; }
  .scene-story { gap: 2.6vh; padding-bottom: 70px; }
}
@media (max-width: 760px) and (max-height: 700px) { .sc-art { aspect-ratio: 16 / 10; } }

/* ===== Intro: cinematic patient story (realistic scenes) ===== */
.scene-film { background: #071f19; overflow: hidden; perspective: 1400px; }
.film-bg { position: absolute; inset: -6%; }
.film-bg i { position: absolute; inset: 0; background-size: cover; background-position: center; filter: blur(34px) saturate(1.25) brightness(.62); transform: scale(1.12); opacity: 0; }
.film-vignette { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 50% 45%, rgba(4,20,16,0) 30%, rgba(4,20,16,.72) 100%), linear-gradient(180deg, rgba(4,20,16,.35), rgba(4,20,16,0) 30%, rgba(4,20,16,.55)); }
.film-streaks { position: absolute; inset: 0; pointer-events: none; opacity: 0; background: repeating-linear-gradient(90deg, rgba(255,255,255,0) 0 90px, rgba(255,255,255,.22) 90px 92px, rgba(255,255,255,0) 92px 260px); -webkit-mask-image: linear-gradient(180deg, transparent 30%, #000 55%, #000 75%, transparent 92%); mask-image: linear-gradient(180deg, transparent 30%, #000 55%, #000 75%, transparent 92%); }
.film-caption { position: absolute; top: 7vh; left: 0; right: 0; height: 6.4em; z-index: 3; text-align: center; pointer-events: none; }
.film-title { position: absolute; left: 0; right: 0; margin: 0; padding: 0 20px; color: #fff; font-size: clamp(1.7rem, 4vw, 3.2rem); letter-spacing: -.03em; line-height: 1.05; text-shadow: 0 6px 30px rgba(0,0,0,.35); opacity: 0; }
.film-title small { display: block; margin-bottom: 8px; font-size: .36em; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #6ef0c3; }
.film-stage { position: absolute; left: 50%; top: 53%; width: min(50vw, 660px, 78vh); aspect-ratio: 4 / 3; transform: translate(-50%, -50%); transform-style: preserve-3d; z-index: 2; }
.shot { position: absolute; inset: 0; margin: 0; opacity: 0; transform-style: preserve-3d; }
.shot-photo { position: absolute; inset: 0; overflow: hidden; border-radius: 26px; box-shadow: 0 40px 90px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.18); background: #0b2a22; }
.shot-photo img { width: 100%; height: 100%; object-fit: cover; display: block; filter: contrast(1.05) saturate(1.08); }
.shot-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, rgba(255,255,255,0) 35%, rgba(255,255,255,.28) 50%, rgba(255,255,255,0) 65%); transform: translateX(-120%); animation: none; }
.shot.is-on .shot-photo::after { animation: shotSweep 1.1s ease-out .15s 1 both; }
@keyframes shotSweep { to { transform: translateX(120%); } }
.van-flare { position: absolute; left: 64%; top: 73%; width: 18%; aspect-ratio: 1; transform: translate(-50%, -50%) scale(0); border-radius: 50%; background: radial-gradient(circle, rgba(255,250,215,.95) 0%, rgba(255,236,160,.45) 30%, rgba(255,236,160,0) 70%); mix-blend-mode: screen; }
.shot-ui { position: absolute; z-index: 3; white-space: nowrap; font-size: .92rem; padding: 10px 16px 10px 10px; transform: translateZ(60px); opacity: 0; }
.shot-ui .gi { width: 38px; height: 38px; border-radius: 12px; font-weight: 800; font-size: 1.1rem; }
.shot-ui .gi .picto { width: 28px; height: 28px; }
.shot-ui .ok-dot { background: var(--secondary); color: #fff; }
.shot-ui .ok-dot .icon { width: 20px; height: 20px; color: #fff; }
.shot-ui--br { right: -6%; bottom: 10%; } .shot-ui--bl { left: -6%; bottom: 10%; }
.shot-ui--tl { left: -6%; top: 10%; } .shot-ui--tr { right: -6%; top: 10%; }
.shot-ui--rx { bottom: -6%; }
.eta-bar { display: block; width: 130px; height: 6px; margin-top: 6px; border-radius: 6px; background: var(--mint); overflow: hidden; }
.eta-bar i { display: block; height: 100%; width: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--secondary), var(--primary)); transform: scaleX(0); transform-origin: left; }
.confetti { position: absolute; inset: -10%; pointer-events: none; transform: translateZ(80px); }
.confetti i { position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; border-radius: 2px; opacity: 0; }
.film-steps { position: absolute; left: 50%; bottom: 76px; transform: translateX(-50%); z-index: 3; display: flex; gap: clamp(10px, 2.4vw, 28px); margin: 0; padding: 0; list-style: none; }
.film-steps li { display: grid; justify-items: center; gap: 6px; color: rgba(255,255,255,.55); font-size: .78rem; font-weight: 700; transition: color .3s; }
.film-steps b { width: 12px; height: 12px; border-radius: 50%; border: 2px solid rgba(255,255,255,.45); transition: background .3s, border-color .3s, transform .3s; }
.film-steps li.is-on { color: #fff; } .film-steps li.is-on b { background: #34d399; border-color: #34d399; transform: scale(1.25); box-shadow: 0 0 14px #34d399; }
.film-steps li.is-done b { background: rgba(52,211,153,.7); border-color: rgba(52,211,153,.7); }
.film-note { position: absolute; left: 0; right: 0; bottom: 56px; z-index: 3; margin: 0; text-align: center; font-size: .72rem; color: rgba(255,255,255,.55); }
@media (max-width: 760px) {
  .film-stage { width: 86vw; top: 50%; }
  .film-caption { top: 9vh; }
  .shot-ui { font-size: .78rem; padding: 8px 12px 8px 8px; }
  .shot-ui .gi { width: 30px; height: 30px; }
  .shot-ui--br, .shot-ui--tr { right: -2%; } .shot-ui--bl, .shot-ui--tl { left: -2%; }
  .film-steps { bottom: 92px; gap: 10px; }
  .film-steps span { display: none; }
  .film-note { bottom: 74px; padding: 0 16px; }
}

/* Mobile fixes: centre the hero lettering without a % transform (GSAP would freeze it in px before the
   web font loads), keep the card 3D layer inside the screen, and never let anything widen the page. */
.hero-word { left: 0; right: 0; transform: none; display: flex; justify-content: center; }
html, body { overflow-x: clip; }
@media (max-width: 760px) {
  .fx-card3d { inset: -44px 0 0; }
  .hero .container { padding-bottom: 36px; }
  .hero-visual { min-height: 340px; }
}

/* ===== Intro: full-screen cinematic film (AI-generated photoreal scenes) ===== */
.scene-movie { background: #05140f; overflow: hidden; }
.mv-shot { position: absolute; inset: 0; overflow: hidden; opacity: 0; visibility: hidden; will-change: transform, opacity, clip-path; }
.mv-shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); will-change: transform; }
.mv-grade { position: absolute; inset: 0; pointer-events: none; background:
  linear-gradient(180deg, rgba(3,14,11,.45) 0%, rgba(3,14,11,0) 22%, rgba(3,14,11,0) 52%, rgba(3,14,11,.82) 100%),
  radial-gradient(ellipse at 50% 50%, rgba(0,0,0,0) 55%, rgba(0,0,0,.45) 100%); }
.mv-streaks { position: absolute; inset: 0; pointer-events: none; opacity: 0; background: repeating-linear-gradient(90deg, rgba(255,255,255,0) 0 120px, rgba(255,255,255,.28) 120px 122px, rgba(255,255,255,0) 122px 330px); mix-blend-mode: screen; }
.mv-leak { position: absolute; inset: -20%; pointer-events: none; opacity: 0; background: radial-gradient(ellipse at 30% 40%, rgba(255,214,150,.95), rgba(255,170,90,.5) 35%, rgba(255,170,90,0) 70%); mix-blend-mode: screen; }
.mv-glow { position: absolute; inset: 0; pointer-events: none; opacity: 0; background: radial-gradient(circle at 18% 22%, rgba(255,226,160,.7), rgba(255,226,160,0) 45%); mix-blend-mode: screen; }
.mv-uis { position: absolute; top: 15vh; right: 6vw; z-index: 3; width: 300px; height: 150px; }
.mv-ui { position: absolute; top: 0; right: 0; white-space: nowrap; font-size: .95rem; padding: 11px 18px 11px 11px; opacity: 0; visibility: hidden; box-shadow: 0 20px 50px rgba(0,0,0,.35); }
.mv-ui--2 { top: 74px; right: 36px; }
.mv-ui .gi { width: 40px; height: 40px; border-radius: 12px; font-weight: 800; font-size: 1.15rem; }
.mv-ui .gi .picto { width: 28px; height: 28px; }
.mv-ui .ok-dot { background: var(--secondary); color: #fff; } .mv-ui .ok-dot .icon { width: 20px; height: 20px; color: #fff; }
.mv-ui .rx { color: var(--primary); }
.mv-caption { position: absolute; left: 6vw; right: 6vw; bottom: 17vh; z-index: 3; height: 8.5em; pointer-events: none; }
.mv-title { position: absolute; left: 0; bottom: 0; max-width: 15ch; margin: 0; color: #fff; font-size: clamp(2rem, 4.6vw, 4rem); line-height: 1.02; letter-spacing: -.035em; text-shadow: 0 8px 40px rgba(0,0,0,.45); opacity: 0; visibility: hidden; }
.mv-title small { display: block; margin-bottom: 12px; font-size: max(.8rem, .26em); font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: #6ef0c3; }
.mv-steps { position: absolute; left: 6vw; bottom: 8.5vh; z-index: 3; display: flex; gap: clamp(12px, 2vw, 26px); margin: 0; padding: 0; list-style: none; }
.mv-steps li { position: relative; display: grid; gap: 8px; color: rgba(255,255,255,.5); font-size: .78rem; font-weight: 700; letter-spacing: .02em; }
.mv-steps b { display: block; width: clamp(38px, 5vw, 70px); height: 3px; border-radius: 3px; background: rgba(255,255,255,.25); overflow: hidden; }
.mv-steps b::after { content: ""; display: block; height: 100%; width: 100%; background: #34d399; transform: scaleX(var(--p, 0)); transform-origin: left; }
.mv-steps li.is-on { color: #fff; }
.mv-note { position: absolute; right: 6vw; bottom: 8.5vh; z-index: 3; margin: 0; font-size: .72rem; color: rgba(255,255,255,.55); }
@media (max-width: 760px) {
  .mv-uis { top: 13vh; left: 50%; right: auto; transform: translateX(-50%); width: min(300px, 88vw); }
  .mv-ui { left: 0; right: 0; margin: 0 auto; width: fit-content; font-size: .82rem; padding: 9px 14px 9px 9px; }
  .mv-ui--2 { top: 66px; right: 0; }
  .mv-ui .gi { width: 32px; height: 32px; }
  .mv-caption { bottom: 21vh; left: 20px; right: 20px; }
  .mv-title { font-size: clamp(1.8rem, 8.6vw, 2.6rem); }
  .mv-steps { left: 20px; right: 20px; bottom: 13vh; gap: 6px; }
  .mv-steps li { flex: 1; } .mv-steps b { width: 100%; } .mv-steps span { display: none; }
  .mv-note { left: 20px; right: 20px; bottom: 10vh; text-align: left; }
}
.mv-grade { z-index: 10; } .mv-streaks { z-index: 11; } .mv-leak, .mv-glow { z-index: 12; }
.mv-uis, .mv-caption, .mv-steps, .mv-note { z-index: 20; }
@media (max-width: 760px) { .mv-shot img { object-position: var(--mpos, var(--pos, 50% 50%)); } }
.intro-skip, .intro-progress { z-index: 40; }

/* ===== Care Assistant (booking step 1) ===== */
.tri { border: 1px solid var(--line); border-radius: 24px; background: #fff; box-shadow: var(--shadow-sm); overflow: hidden; display: flex; flex-direction: column; }
.tri-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: linear-gradient(135deg, var(--primary), var(--dark)); color: #fff; }
.tri-head b { display: block; font-size: 1rem; } .tri-head small { color: rgba(255,255,255,.8); font-size: .78rem; }
.tri-av { width: 40px; height: 40px; border-radius: 12px; background: #fff; display: grid; place-items: center; flex: none; }
.tri-av svg { width: 28px; height: 28px; }
.tri-voice { margin-left: auto; width: 40px; height: 40px; border-radius: 12px; border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.1); color: #fff; display: grid; place-items: center; cursor: pointer; }
.tri-voice[aria-pressed="true"] { background: #fff; color: var(--primary); }
.tri-log { height: min(52vh, 440px); overflow-y: auto; padding: 18px 16px 8px; display: flex; flex-direction: column; gap: 10px; background: linear-gradient(180deg, #f6fcf9, #fff); scroll-behavior: smooth; }
.tri-msg { max-width: 86%; padding: 11px 15px; border-radius: 18px; font-size: .95rem; line-height: 1.5; animation: triIn .3s ease both; }
@keyframes triIn { from { opacity: 0; transform: translateY(8px); } }
.tri-msg--bot { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 6px; color: var(--ink); box-shadow: 0 4px 14px rgba(11,56,46,.05); }
.tri-msg--user { align-self: flex-end; background: linear-gradient(135deg, var(--secondary), var(--primary)); color: #fff; border-bottom-right-radius: 6px; }
.tri-msg small { display: block; margin-top: 6px; color: var(--muted); font-size: .8rem; }
.tri-msg blockquote { margin: 8px 0; padding: 8px 12px; border-left: 3px solid var(--secondary); background: var(--mint); border-radius: 8px; font-style: italic; color: var(--dark); }
.tri-warn { margin: 10px 0; padding: 10px 12px; border-radius: 12px; background: #fff7e6; border: 1px solid #ffd99a; color: #7a4b00; font-size: .88rem; }
.tri-dots { display: inline-flex; gap: 4px; padding: 4px 2px; } .tri-dots i { width: 7px; height: 7px; border-radius: 50%; background: #9fcdbd; animation: triDot 1s infinite; }
.tri-dots i:nth-child(2) { animation-delay: .15s; } .tri-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes triDot { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-4px); } }
.tri-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 6px 16px 10px; }
.tri-chips:empty { display: none; }
.tri-chip { border: 1.5px solid #bfe8d8; background: #fff; color: var(--primary); font-weight: 700; font-size: .86rem; padding: 8px 14px; border-radius: 999px; cursor: pointer; transition: background .2s, color .2s, transform .15s; font-family: inherit; }
.tri-chip:hover { background: var(--mint); } .tri-chip:active { transform: scale(.97); }
.tri-chip[aria-pressed="true"] { background: var(--primary); color: #fff; border-color: var(--primary); }
.tri-chip--done { background: var(--dark); color: #fff; border-color: var(--dark); }
.tri-input { display: flex; align-items: flex-end; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); background: #fff; }
.tri-text { flex: 1; resize: none; border: 1.5px solid var(--line); border-radius: 16px; padding: 11px 14px; font: inherit; font-size: .95rem; line-height: 1.4; max-height: 140px; outline: none; }
.tri-text:focus { border-color: var(--secondary); box-shadow: var(--glow); }
.tri-mic, .tri-send { width: 46px; height: 46px; border-radius: 14px; border: 0; display: grid; place-items: center; cursor: pointer; flex: none; }
.tri-mic { background: var(--mint); color: var(--primary); position: relative; }
.tri-mic.is-on { background: #e5484d; color: #fff; }
.tri-mic.is-on::after { content: ""; position: absolute; inset: -5px; border-radius: 18px; border: 2px solid #e5484d; animation: triPulse 1.2s infinite; }
@keyframes triPulse { from { opacity: .9; transform: scale(.95); } to { opacity: 0; transform: scale(1.25); } }
.tri-send { background: linear-gradient(135deg, var(--secondary), var(--primary)); color: #fff; }
.tri-send .icon { width: 20px; height: 20px; }
.tri-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 16px 12px; font-size: .8rem; color: var(--muted); background: #fff; }
.tri-foot a { color: #c0392b; font-weight: 800; }
.tri-lang { display: inline-flex; background: var(--mint); border-radius: 999px; padding: 3px; }
.tri-lang button { border: 0; background: transparent; padding: 5px 12px; border-radius: 999px; font: inherit; font-weight: 700; color: var(--primary); cursor: pointer; }
.tri-lang button[aria-pressed="true"] { background: var(--primary); color: #fff; }
.tri-note { margin: 0; padding: 0 16px 12px; font-size: .74rem; color: var(--muted); background: #fff; }
.tri-alt { margin: 12px 4px 0; font-size: .9rem; color: var(--muted); }
.tri-sos { padding: 4px 2px; } .tri-sos b { color: #b42318; font-size: 1.02rem; } .tri-sos p { margin: 6px 0 10px; }
.tri-sos-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.tri-sos .btn--danger { background: #d92d20; border-color: #d92d20; color: #fff; }
.tri-msg:has(.tri-sos) { border-color: #f4b4ad; background: #fff5f4; max-width: 94%; }
.tri-strip { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin-bottom: 18px; border-radius: 16px; background: var(--mint); border: 1px solid #bfe8d8; }
.tri-strip .picto { width: 38px; height: 38px; flex: none; } .tri-strip b { display: block; color: var(--dark); } .tri-strip small { color: var(--muted); }
.tri-strip .linklike { margin-left: auto; }
.tri-tests { text-align: left; max-width: 560px; margin: 22px auto 0; padding: 18px; border-radius: 18px; border: 1px solid #bfe8d8; background: linear-gradient(180deg, #f2fcf8, #fff); }
.tri-tests > b { display: flex; align-items: center; gap: 10px; color: var(--dark); font-size: 1.05rem; } .tri-tests > b .picto { width: 34px; height: 34px; }
.tri-tests p { margin: 8px 0; color: var(--muted); font-size: .92rem; } .tri-tests ul { margin: 6px 0 12px; padding-left: 20px; color: var(--dark); font-weight: 600; }
.tri-tests-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 8px; } .tri-tests small { color: var(--muted); font-size: .78rem; }
@media (max-width: 760px) { .tri-log { height: 56vh; padding: 14px 12px 6px; } .tri-msg { max-width: 92%; font-size: .93rem; } .tri-chips { padding: 6px 12px 10px; } }
@media (max-width: 760px) { .tri-head { padding: 12px; } .tri-head b { font-size: .95rem; } .tri-head small { font-size: .72rem; } .tri-text { min-height: 46px; } }
