/* ==========================================================
   MedicalVisible — landing page
   Light, clinical, premium. Mobile-first.
   ========================================================== */

:root {
  --bg: #FAFAF8;
  --bg-tint: #F3F4F1;
  --surface: #FFFFFF;
  --ink: #0B1320;
  --ink-2: #2E3847;
  --muted: #667085;
  --line: #E6E7E3;
  --line-2: #D9DBD5;

  --accent: #0C6B60;        /* clinical teal */
  --accent-ink: #08534A;
  --accent-soft: #E3F1EE;
  --accent-line: #BFDDD6;

  --g-blue: #1A0DAB;        /* Google result link */
  --g-green: #006621;
  --star: #F4B400;
  --pin: #D93025;
  --warn-soft: #FBEFEA;
  --warn-ink: #9A3B1B;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(11, 19, 32, .05), 0 1px 1px rgba(11, 19, 32, .03);
  --shadow: 0 1px 2px rgba(11, 19, 32, .04), 0 8px 24px -6px rgba(11, 19, 32, .10);
  --shadow-lg: 0 2px 4px rgba(11, 19, 32, .04), 0 24px 60px -18px rgba(11, 19, 32, .22);

  --font: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --g-font: Arial, "Helvetica Neue", Helvetica, sans-serif;

  --gutter: 20px;
  --section-y: 72px;
  --header-h: 64px;
}

@media (min-width: 768px) {
  :root { --gutter: 32px; --section-y: 112px; --header-h: 72px; }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-2);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
h1, h2, h3 { color: var(--ink); margin: 0; font-weight: 600; letter-spacing: -0.025em; line-height: 1.12; text-wrap: balance; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
abbr { text-decoration: underline dotted; cursor: help; }
strong { color: var(--ink); font-weight: 600; }

.ico { width: 1em; height: 1em; flex: none; vertical-align: -0.125em; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.container.narrow { max-width: 820px; }

.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font: 600 16px/1.2 var(--font); text-decoration: none;
  padding: 14px 22px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: background .2s, transform .2s, box-shadow .2s, border-color .2s;
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 18px -6px rgba(12, 107, 96, .55); }
.btn-primary:hover { background: var(--accent-ink); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-sm { padding: 10px 16px; font-size: 14px; }
.btn-lg { padding: 17px 28px; font-size: 17px; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 250, 248, .82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.header-inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 32px; height: 32px; border-radius: 9px; background: var(--ink); color: #fff; display: grid; place-items: center; }
.brand-mark svg { width: 18px; height: 18px; color: #fff; }
.brand-name { font-weight: 700; font-size: 19px; letter-spacing: -0.02em; }
.main-nav { display: none; gap: 28px; }
.main-nav a { color: var(--ink-2); text-decoration: none; font-size: 15px; }
.main-nav a:hover { color: var(--ink); }
@media (min-width: 1000px) { .main-nav { display: flex; } }
@media (max-width: 480px) { .header-cta { padding: 9px 14px; font-size: 13px; } .header-cta .xs-hide { display: none; } .header-actions { gap: 8px; } .brand-name { font-size: 17px; } }

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14px; color: var(--ink-2); background: var(--surface);
  border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; margin-bottom: 28px;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.kicker { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: var(--accent); margin-bottom: 18px; }
.section-head { max-width: 780px; margin-bottom: 56px; }
.section-head h2, .split h2 { font-size: clamp(30px, 4.4vw, 50px); }
.section-lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-2); margin-top: 22px; max-width: 680px; }
.side-title { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 0 0 14px; }

/* ---------- Sections ---------- */
.section { padding: var(--section-y) 0; }
.section-tint { background: var(--bg-tint); }
/* Same background back to back: don't double the gap */
.section-tint + .section-tint,
.section:not(.section-tint):not(.audit) + .section:not(.section-tint):not(.audit) { padding-top: 0; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); }

.split { display: grid; gap: 56px; align-items: center; }
@media (min-width: 960px) {
  .split { grid-template-columns: 1.05fr .95fr; gap: 80px; }
}
.split h2 { margin-bottom: 24px; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .caret { animation: none !important; }
}

/* ==========================================================
   Google-style mockups (shared)
   ========================================================== */
.demo-tag {
  position: absolute; top: 12px; right: 12px;
  font: 600 10.5px/1 var(--font); letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); background: var(--bg-tint); border: 1px solid var(--line);
  padding: 5px 8px; border-radius: 6px;
}
.demo-tag.static { position: static; display: inline-block; margin-top: 12px; }

.searchbar {
  display: flex; align-items: center; gap: 10px;
  font: 15px/1.2 var(--g-font); color: #202124;
  background: #fff; border: 1px solid #DFE1E5; border-radius: 999px;
  padding: 11px 16px; box-shadow: 0 1px 6px rgba(32, 33, 36, .12);
}
.searchbar .ico { color: #9AA0A6; }
.searchbar.sm { font-size: 13px; padding: 8px 12px; }
.caret { width: 1.5px; height: 18px; background: #202124; margin-left: -8px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.q-chip {
  display: inline-flex; align-items: center; gap: 8px;
  font: 500 14.5px/1.2 var(--g-font); color: #202124;
  background: #fff; border: 1px solid #DFE1E5; border-radius: 999px;
  padding: 9px 14px; box-shadow: var(--shadow-sm); white-space: nowrap;
}
.q-chip .ico { color: #5F6368; }
.q-chip.light { background: rgba(255, 255, 255, .95); }
.q-inline { font-family: var(--g-font); font-size: .92em; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 1px 7px; color: #202124; white-space: nowrap; }

.stars { font: 13px/1.3 var(--g-font); color: #70757A; margin: 2px 0; }
.stars i, .star { font-style: normal; color: var(--star); letter-spacing: 1px; }

.mini-map { position: relative; height: 150px; border-radius: 12px; overflow: hidden; }
.mini-map.short { height: 90px; }
.mini-map > svg, .fb-map > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.pin {
  position: absolute; transform: translate(-50%, -100%);
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--pin); color: #fff; display: grid; place-items: center;
  font: 700 11px/1 var(--g-font); box-shadow: 0 3px 8px rgba(0, 0, 0, .25);
}
.pin::after { content: ""; position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%); border: 5px solid transparent; border-top: 7px solid var(--pin); border-bottom: 0; }
.pin-you { background: var(--accent); width: 32px; height: 32px; font-size: 14px; z-index: 2; }
.pin-you::after { border-top-color: var(--accent); }

/* ---------- Hero ---------- */
.hero { padding: 48px 0 40px; position: relative; }
.hero::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 720px; z-index: -1;
  background: radial-gradient(60% 60% at 80% 20%, rgba(12, 107, 96, .07), transparent 70%);
}
.hero-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 1024px) {
  .hero { padding: 80px 0 56px; }
  .hero-grid { grid-template-columns: 1.02fr .98fr; gap: 64px; }
}
.hero h1 { font-size: clamp(38px, 5.6vw, 66px); letter-spacing: -0.035em; line-height: 1.04; }
.hero .lead { font-size: clamp(18px, 1.8vw, 21px); margin: 26px 0 10px; max-width: 560px; color: var(--ink-2); }
.hero-note { font-size: 15px; color: var(--muted); margin-bottom: 32px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 520px) { .cta-row .btn { width: 100%; white-space: normal; } }
.hero-lang { margin-top: 28px; font-size: 14.5px; color: var(--muted); max-width: 520px; padding-left: 14px; border-left: 2px solid var(--accent-line); }

.hero-visual { position: relative; padding-bottom: 40px; }
.serp { position: relative; padding: 20px; }
.serp-top { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.g-logo { font: 700 22px/1 var(--g-font); letter-spacing: -1px; }
.g-logo b { font-weight: 700; }
.serp-top .searchbar { flex: 1; min-width: 0; }
.typed { white-space: nowrap; overflow: hidden; }
.serp-tabs { display: flex; gap: 18px; font: 13px/1 var(--g-font); color: #5F6368; border-bottom: 1px solid #EBEBEB; padding: 6px 4px 10px; margin-bottom: 14px; }
.serp-tabs .on { color: #1A73E8; box-shadow: 0 12px 0 -9px #1A73E8; }
.lp-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 10px; border-bottom: 1px solid #F0F0F0; border-radius: 10px; }
.lp-list li:last-child { border-bottom: 0; }
.lp-list strong { display: block; font: 600 15px/1.3 var(--g-font); color: var(--g-blue); }
.lp-list small { display: block; font: 12.5px/1.4 var(--g-font); color: #70757A; }
.lp-list em { font-style: normal; font-weight: 400; color: #70757A; font-size: 13px; margin-left: 4px; }
.lp-list .you { background: var(--accent-soft); border-color: transparent; box-shadow: inset 3px 0 0 var(--accent); }
.lp-list .you strong { color: var(--accent-ink); }
.lp-actions { display: flex; gap: 8px; color: #1A73E8; }
.lp-actions .ico { width: 30px; height: 30px; padding: 7px; border: 1px solid #DADCE0; border-radius: 50%; }

.stat-panel {
  position: absolute; right: -8px; bottom: -8px; width: 230px; padding: 16px 16px 12px;
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
}
.panel-title { font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 10px; display: flex; justify-content: space-between; }
.panel-title span { color: var(--muted); font-weight: 500; }
.stat-panel dl { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; }
.stat-panel dt { font-size: 11px; color: var(--muted); line-height: 1.2; }
.stat-panel dl > .wide { grid-column: 1 / -1; }
.stat-panel dd { margin: 2px 0 0; font-size: 17px; font-weight: 600; color: var(--ink); }
.spark { width: 100%; height: 40px; color: var(--accent); margin-top: 6px; }
.panel-foot { font-size: 10.5px; color: var(--muted); margin: 0; }
@media (max-width: 1023px) {
  .hero-visual { padding-bottom: 0; }
  .stat-panel { position: relative; right: auto; bottom: auto; width: auto; margin: -28px 12px 0 auto; max-width: 300px; }
}
@media (min-width: 1024px) { .stat-panel { right: -28px; bottom: -4px; } }

.trust-strip {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 36px;
  margin-top: 64px; padding-top: 28px; border-top: 1px solid var(--line);
  font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.trust-strip li { display: flex; align-items: center; }
@media (min-width: 768px) { .trust-strip li + li::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--line-2); margin: 0 18px 0 -18px; } }

/* ---------- SERP anatomy (phone) ---------- */
.serp-legend { display: grid; gap: 12px; margin: 22px 0 26px; }
.serp-legend li { display: flex; gap: 14px; align-items: flex-start; }
.serp-legend b { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: 13px; }
.ticks { display: grid; gap: 10px; margin: 0 0 24px; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12.5 4 4L18 8' fill='none' stroke='%230C6B60' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat;
}
.pull { margin: 8px 0 0; padding: 22px 24px; background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 0 var(--radius) var(--radius) 0; font-size: 18px; color: var(--ink); font-weight: 500; line-height: 1.5; }

.phone {
  position: relative; justify-self: center; width: min(100%, 360px);
  background: #0B1320; border-radius: 44px; padding: 12px; box-shadow: var(--shadow-lg);
}
.phone-screen { background: #fff; border-radius: 34px; padding: 26px 14px 18px; display: grid; gap: 10px; min-height: 560px; }
.phone .demo-tag { top: 26px; right: 26px; }
.zone { position: relative; border: 1.5px dashed transparent; border-radius: 14px; padding: 12px 12px 10px; font-family: var(--g-font); }
.zone-badge { position: absolute; left: -10px; top: -10px; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: #fff; font: 700 12px/24px var(--font); text-align: center; }
.zone-ad { border-color: #E3C9A8; background: #FFFBF4; }
.zone-map { border-color: var(--accent-line); background: #F7FBFA; }
.zone-org { border-color: #C9D3E6; background: #F8FAFE; }
.ad-label { font-size: 11px; font-weight: 700; color: #202124; margin: 0 0 4px; }
.r-title { font-size: 15px; color: #202124; margin: 6px 0 2px; }
.r-title.blue { color: var(--g-blue); }
.r-url { font-size: 12px; color: #4D5156; margin: 0; }
.r-meta { font-size: 12px; color: #70757A; margin: 0; }

/* ---------- Ads vs your clinic ---------- */

.vs { display: grid; gap: 14px; align-items: stretch; }
@media (min-width: 900px) { .vs { grid-template-columns: 1fr auto 1fr; gap: 20px; } }
.vs-card { border-radius: var(--radius-lg); padding: 32px 26px; }
@media (min-width: 768px) { .vs-card { padding: 40px 40px 36px; } }
.vs-tag { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; margin-bottom: 18px; }
.vs-card h3 { font-size: clamp(22px, 2.4vw, 28px); margin-bottom: 22px; }
.vs-card dl { margin: 0; display: grid; }
.vs-card dl > div { padding: 14px 0; border-top: 1px solid; }
.vs-card dt { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 4px; }
.vs-card dd { margin: 0; font-size: 17px; line-height: 1.45; }

.vs-ads { background: var(--surface); border: 1px solid var(--line); }
.vs-ads .vs-tag { background: var(--warn-soft); color: var(--warn-ink); }
.vs-ads dl > div { border-color: var(--line); }
.vs-ads dt { color: var(--muted); }
.vs-ads dd { color: var(--ink-2); }

.vs-you { background: linear-gradient(140deg, #0C6B60 0%, #13917F 100%); color: #fff; box-shadow: 0 24px 50px -20px rgba(12, 107, 96, .55); }
.vs-you h3 { color: #fff; }
.vs-you .vs-tag { background: rgba(255, 255, 255, .18); color: #fff; }
.vs-you dl > div { border-color: rgba(255, 255, 255, .22); }
.vs-you dt { color: rgba(255, 255, 255, .7); }
.vs-you dd { color: #fff; font-weight: 500; }

.vs-plus { justify-self: center; align-self: center; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line); color: var(--accent); font-size: 24px; font-weight: 500; box-shadow: var(--shadow); z-index: 1; margin: -26px 0; }
@media (min-width: 900px) { .vs-plus { margin: 0 -32px; } }

/* ---------- Example ---------- */
.example-grid { display: grid; gap: 40px; align-items: start; }
@media (min-width: 1000px) { .example-grid { grid-template-columns: 1.15fr .85fr; gap: 56px; } }
.browser { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 12px 14px; background: #F1F2EF; border-bottom: 1px solid var(--line); }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: #D6D8D3; }
.browser-bar span { margin-left: 12px; flex: 1; background: #fff; border-radius: 6px; font: 12px/1 var(--g-font); color: #5F6368; padding: 7px 10px; }
.site-nav { display: flex; align-items: center; gap: 18px; padding: 14px 20px; font: 13px/1 var(--g-font); color: #5F6368; }
.site-nav b { color: var(--ink); margin-right: auto; font-size: 15px; }
.site-btn { background: var(--accent); color: #fff; padding: 8px 12px; border-radius: 999px; font: 600 12px/1 var(--g-font); display: inline-block; }
.site-hero { position: relative; }
.site-hero img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.site-hero-text { position: absolute; left: 20px; bottom: 20px; right: 20px; max-width: 360px; background: rgba(255, 255, 255, .94); border-radius: 14px; padding: 18px; backdrop-filter: blur(6px); }
.site-h { font: 700 clamp(16px, 2vw, 22px)/1.2 var(--g-font); color: var(--ink); margin: 0 0 6px; }
.site-sub { font: 13px/1.4 var(--g-font); color: #5F6368; margin: 0 0 12px; }
@media (max-width: 560px) { .site-nav span:not(.site-btn) { display: none; } .site-hero-text { position: static; max-width: none; border-radius: 0; } }
.demo-cap { font-size: 12.5px; color: var(--muted); padding: 10px 16px; border-top: 1px solid var(--line); }

.query-list { display: grid; gap: 10px; margin-bottom: 36px; }
.query-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.q-src { font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.issues { display: grid; gap: 2px; }
.issues li { padding: 12px 0 12px 22px; border-top: 1px solid var(--line-2); position: relative; }
.issues li::before { content: ""; position: absolute; left: 0; top: 20px; width: 8px; height: 8px; border-radius: 50%; background: #E3A188; }
.issues strong { display: block; font-size: 15.5px; }
.issues span { display: block; font-size: 14px; color: var(--muted); line-height: 1.5; margin-top: 2px; }


/* ---------- AI search CTA ---------- */
.ai-section { padding-top: 24px; }
.ai-cta { display: grid; border-radius: 28px; overflow: hidden; box-shadow: 0 30px 70px -30px rgba(10, 110, 140, .55); }
@media (min-width: 960px) { .ai-cta { grid-template-columns: 1.25fr .75fr; } }
.ai-copy { background: linear-gradient(135deg, #0B7A6C 0%, #12A08C 45%, #1C8FD0 100%); color: #E8FBF7; padding: 40px 26px; }
@media (min-width: 768px) { .ai-copy { padding: 44px 48px; } }
.ai-copy h2 { color: #fff; font-size: clamp(26px, 3vw, 36px); letter-spacing: -0.03em; line-height: 1.12; }
.ai-copy mark { background: none; color: #fff; box-shadow: inset 0 -0.32em 0 rgba(255, 255, 255, .28); padding: 0 .04em; }
.ai-lead { font-size: 16px; line-height: 1.5; margin: 14px 0 24px; color: rgba(255, 255, 255, .9); max-width: 560px; }
.btn-light { background: #fff; color: var(--ink); box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .35); }
.btn-light:hover { transform: translateY(-1px); background: #F2FBF9; }
.btn-light .ico { color: var(--accent); }
@media (max-width: 520px) { .btn-light { width: 100%; white-space: normal; } }
.ai-trust { margin: 20px 0 0; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .22); font-size: 14px; color: rgba(255, 255, 255, .85); }

.ai-visual { position: relative; min-height: 300px; background: #DDEBE8; }
@media (max-width: 959px) { .ai-visual { min-height: 380px; } }
.ai-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 8%; }
.ai-chat { position: absolute; left: 18px; right: 18px; bottom: 18px; display: grid; gap: 10px; }
@media (min-width: 960px) { .ai-chat { left: 28px; right: 28px; bottom: 28px; } }
.ai-q { justify-self: end; max-width: 92%; margin: 0; background: var(--ink); color: #fff; font: 13px/1.35 var(--g-font); padding: 8px 12px; border-radius: 16px 16px 4px 16px; }
.ai-a { background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px); border-radius: 16px 16px 16px 4px; padding: 10px 12px; box-shadow: var(--shadow-lg); font: 13px/1.4 var(--g-font); color: #202124; }
.ai-a p { margin: 0 0 6px; }
.ai-a-head { display: flex; align-items: center; gap: 8px; font: 600 12px/1 var(--font) !important; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 6px !important; }
.ai-dot { width: 8px; height: 8px; border-radius: 50%; background: linear-gradient(135deg, #12A08C, #1C8FD0); }
.ai-pick { background: var(--accent-soft); border-radius: 8px; padding: 6px 8px; margin: 0 -4px !important; color: var(--accent-ink); }
.ai-pick b { color: var(--accent-ink); }
.ai-chat .demo-tag.static { justify-self: start; margin: 0; background: rgba(255, 255, 255, .9); }

/* ---------- Photo card ---------- */
.photo-card { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.photo-card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.photo-card.tall img { aspect-ratio: 4 / 5; object-position: 70% center; }
.photo-card figcaption { position: absolute; left: 16px; right: 16px; bottom: 16px; }
.photo-card.tall figcaption { background: rgba(11, 19, 32, .82); color: #fff; padding: 14px 16px; border-radius: 14px; font-size: 14.5px; backdrop-filter: blur(8px); display: flex; align-items: center; gap: 12px; }
.lang-badge { flex: none; display: inline-flex; align-items: center; gap: 6px; background: #fff; color: var(--ink); font-weight: 700; font-size: 12px; padding: 6px 10px; border-radius: 999px; }
@media (min-width: 960px) { .split-photo .photo-card { max-width: 480px; justify-self: end; } }

/* ---------- Pain: "recognise your clinic" ---------- */
.pain-grid { display: grid; gap: 16px; counter-reset: pain; }
@media (min-width: 760px) { .pain-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
.pain-grid li {
  position: relative; counter-increment: pain;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px 24px; box-shadow: var(--shadow-sm);
}
@media (min-width: 760px) { .pain-grid li { padding: 36px 40px 34px; } }
.pain-grid li::after {
  content: "0" counter(pain); position: absolute; top: 24px; right: 26px;
  font-size: 13px; font-weight: 600; letter-spacing: .08em; color: var(--line-2);
}
.pain-grid li p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.55; max-width: 460px; }
.pain-grid .pain-quote {
  color: var(--ink); font-size: clamp(20px, 2vw, 24px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.25;
  margin-bottom: 14px; padding: 0 36px 0 18px; border-left: 3px solid #E3A188; max-width: none;
}
.pain-foot { text-align: center; font-size: clamp(18px, 2vw, 22px); color: var(--ink); font-weight: 600; letter-spacing: -0.015em; margin: 44px auto 0; max-width: 720px; }

/* ---------- Specialties ---------- */
.spec-cards { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .spec-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .spec-cards { grid-template-columns: repeat(4, 1fr); gap: 16px; } }
.spec-cards li {
  position: relative; display: flex; flex-direction: column; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 22px 22px; min-height: 172px; box-shadow: var(--shadow-sm);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.spec-cards li:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--accent-line); }
.spec-cards h3 { font-size: 20px; letter-spacing: -0.02em; }
.spec-en { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
@media (max-width: 559px) { .spec-cards li { min-height: 0; padding: 20px; } .spec-cards .q-chip { margin-top: 16px !important; } }
.spec-cards .q-chip { margin-top: auto; font-size: 13px; padding: 7px 12px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.spec-cards li:hover .q-chip { border-color: var(--accent-line); }

.spec-banner {
  margin-top: 16px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px;
  background: var(--ink); color: #9AA4B2; border-radius: var(--radius); padding: 26px 28px;
}
.spec-banner p { margin: 0; font-size: 15px; }
.spec-banner .spec-banner-title { color: #fff; font-size: clamp(18px, 2vw, 22px); font-weight: 600; letter-spacing: -0.02em; margin-bottom: 4px; }
@media (max-width: 520px) { .spec-banner .btn { width: 100%; white-space: normal; } }

/* ---------- Dashboard ---------- */
.dash { padding: 20px; }
@media (min-width: 768px) { .dash { padding: 28px; } }
.dash-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.dash-title { margin: 0; font-weight: 600; color: var(--ink); }
.dash-range { font-size: 13px; color: var(--ink-2); border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; }
.kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 16px; }
@media (min-width: 900px) { .kpis { grid-template-columns: repeat(4, 1fr); gap: 14px; } }
.kpi, .mini-card, .chart-card { border: 1px solid var(--line); border-radius: 14px; padding: 16px; background: var(--surface); }
.kpi-l { font-size: 13px; font-weight: 600; color: var(--ink); margin: 0 0 10px; line-height: 1.3; }
.kpi-l small, .chart-title small { display: block; font-weight: 400; color: var(--muted); font-size: 12px; }
.kpi-v { font-size: clamp(26px, 3vw, 34px); font-weight: 600; color: var(--ink); letter-spacing: -0.02em; margin: 0; line-height: 1.1; font-variant-numeric: tabular-nums; }
.kpi-d { font-size: 13px; color: var(--accent); margin: 6px 0 0; font-weight: 500; }
.dash-main { display: grid; gap: 16px; margin-bottom: 16px; }
@media (min-width: 900px) { .dash-main { grid-template-columns: 1fr 300px; } }
.chart-title { font-size: 14px; font-weight: 600; color: var(--ink); margin: 0 0 14px; }
.chart { position: relative; height: 260px; }
.chart svg { width: 100%; height: 100%; overflow: visible; display: block; }
.chart .grid line { stroke: var(--line); stroke-width: 1; }
.chart .axis text { fill: var(--muted); font-size: 11px; font-family: var(--font); }
.chart .line { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .area { fill: url(#areaGrad); }
.chart .xhair { stroke: var(--ink); stroke-width: 1; stroke-dasharray: 3 3; opacity: 0; }
.chart .dot { fill: var(--accent); stroke: var(--surface); stroke-width: 2; opacity: 0; }
.chart .endlabel { fill: var(--ink); font-size: 12px; font-weight: 600; font-family: var(--font); }
.chart.hover .xhair, .chart.hover .dot { opacity: 1; }
.tip { position: absolute; top: 0; pointer-events: none; background: var(--ink); color: #fff; font-size: 12.5px; padding: 7px 10px; border-radius: 8px; white-space: nowrap; transform: translate(-50%, -110%); opacity: 0; transition: opacity .15s; box-shadow: var(--shadow); }
.tip b { font-size: 14px; }
.chart.hover .tip { opacity: 1; }
.side-stack { display: grid; gap: 16px; align-content: start; }
.hbars { display: grid; gap: 14px; }
.hbars li { display: grid; grid-template-columns: 112px 1fr 36px; align-items: center; gap: 10px; font-size: 13px; }
.hbars span { color: var(--ink-2); }
.hbars i { display: block; height: 10px; border-radius: 0 4px 4px 0; background: var(--accent); width: 0; transition: width 1s cubic-bezier(.2, .7, .2, 1) .3s; }
.reveal.in .hbars i, .no-js .hbars i { width: var(--w); }
.hbars b { text-align: right; color: var(--ink); font-variant-numeric: tabular-nums; }
.dash-tables { display: grid; gap: 16px; }
@media (min-width: 760px) { .dash-tables { grid-template-columns: 1fr 1fr; } }
.dash-tables > div { border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table th { text-align: left; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding: 0 0 8px; border-bottom: 1px solid var(--line); }
.data-table td { padding: 9px 0; border-bottom: 1px solid var(--line); color: var(--ink); font-family: var(--g-font); font-size: 13.5px; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table th:last-child, .data-table td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.dash-foot { font-size: 12.5px; color: var(--muted); margin: 16px 0 0; text-align: center; }

/* ---------- Story (example clinic) ---------- */
.story-step { display: flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); margin: 0 0 14px; }
.story-step b { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 12px; letter-spacing: 0; }
.story-text { font-size: 15.5px; color: var(--ink-2); margin: 0 0 14px; }
.example-side .query-list + .story-step { margin-top: 8px; }
.story-bottom { display: grid; gap: 16px; margin-top: 40px; }
@media (min-width: 860px) { .story-bottom { grid-template-columns: 1fr 1fr; gap: 20px; } }
.story-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px 26px; box-shadow: var(--shadow-sm); }
.story-card .ticks { margin: 0; gap: 10px; font-size: 15.5px; }
.story-data { margin-top: 56px; }
.story-data .story-step { margin-bottom: 18px; }
.dash-title small { display: inline-block; margin-left: 8px; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: var(--bg-tint); border: 1px solid var(--line); border-radius: 6px; padding: 3px 7px; vertical-align: 2px; }
.story-result { border-color: var(--accent-line); background: linear-gradient(180deg, var(--accent-soft), var(--surface) 70%); }
.results { display: grid; gap: 10px; }
.results li { display: flex; align-items: baseline; gap: 12px; border: 1px dashed var(--line-2); border-radius: 12px; padding: 12px 16px; color: var(--ink-2); font-size: 15px; }
.results span { display: block; }
.results small { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
.results b { flex: none; font-size: 26px; color: var(--accent); font-weight: 600; letter-spacing: -0.02em; min-width: 92px; }

/* ---------- Why ---------- */
.why-grid { display: grid; gap: 0; margin-top: 12px; }
@media (min-width: 600px) { .why-grid { grid-template-columns: 1fr 1fr; column-gap: 32px; } }
.why-grid li { padding: 16px 0; border-top: 1px solid var(--line-2); color: var(--muted); font-size: 15px; line-height: 1.45; }
.why-grid b { display: block; color: var(--ink); font-size: 16px; margin-bottom: 2px; }

/* ---------- Audit ---------- */
.audit { background: var(--ink); color: #C7CDD6; position: relative; overflow: hidden; }
.audit::before { content: ""; position: absolute; width: 700px; height: 700px; right: -200px; top: -250px; background: radial-gradient(closest-side, rgba(111, 209, 193, .14), transparent); pointer-events: none; }
.audit h2 { color: #fff; font-size: clamp(32px, 4.6vw, 54px); }
.audit .kicker { color: #6FD1C1; }
.audit .section-lead { color: #C7CDD6; }
.audit .side-title { color: #8C97A6; margin-top: 36px; }
.audit .ticks li { color: #E3E7EC; }
.audit .ticks li::before { background-color: rgba(111, 209, 193, .16); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12.5 4 4L18 8' fill='none' stroke='%236FD1C1' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.audit-grid { display: grid; gap: 48px; align-items: start; position: relative; }
@media (min-width: 1000px) { .audit-grid { grid-template-columns: 1fr 520px; gap: 72px; } }
.audit-form { padding: 24px; color: var(--ink-2); border: 0; }
@media (min-width: 768px) { .audit-form { padding: 32px; } }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field-row { display: grid; gap: 0 14px; }
@media (min-width: 520px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field label { font-size: 14px; font-weight: 500; color: var(--ink); }
.opt { color: var(--muted); font-weight: 400; }
.field input, .field select {
  font: 16px/1.3 var(--font); color: var(--ink); width: 100%;
  padding: 13px 14px; border: 1px solid var(--line-2); border-radius: 12px; background: #fff;
  transition: border-color .2s, box-shadow .2s; appearance: none; -webkit-appearance: none;
}
.field select { background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m7 10 5 5 5-5' fill='none' stroke='%23667085' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") right 12px center/18px no-repeat; padding-right: 40px; }
.field input:focus, .field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.field input[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: #C5361B; }
.field input::placeholder { color: #A3A9B3; }
.hp { position: absolute; left: -9999px; }
.audit-form .btn { margin-top: 8px; }
.form-note { font-size: 14px; color: var(--ink-2); text-align: center; margin: 14px 0 6px; }
.form-legal { font-size: 12.5px; color: var(--muted); text-align: center; margin: 0; }
.form-status { margin: 12px 0 0; font-size: 14.5px; text-align: center; font-weight: 500; }
.form-status:empty { display: none; }
.form-status.ok { color: var(--accent-ink); background: var(--accent-soft); padding: 12px; border-radius: 10px; }
.form-status.err { color: #9A2A12; background: #FBEAE5; padding: 12px; border-radius: 10px; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line-2); }
.faq details { border-bottom: 1px solid var(--line-2); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 0; font-size: clamp(17px, 1.8vw, 19px); font-weight: 600; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ico { width: 22px; height: 22px; color: var(--muted); transition: transform .25s; }
.faq details[open] summary .ico { transform: rotate(45deg); color: var(--accent); }
.faq details p { margin: -6px 0 22px; max-width: 680px; color: var(--ink-2); }

/* ---------- Final CTA ---------- */
.final { position: relative; overflow: hidden; padding: calc(var(--section-y) * 1.1) 0; background: var(--bg-tint); text-align: center; }
.final-inner { position: relative; z-index: 1; }
.final h2 { font-size: clamp(32px, 5vw, 60px); max-width: 900px; margin: 0 auto; letter-spacing: -0.035em; }
.final .section-lead { margin: 22px auto 36px; }
.final-bg { position: absolute; inset: 0; pointer-events: none; }
.fb { position: absolute; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); opacity: .55; }
.fb-serp { left: 4%; top: 14%; padding: 14px; rotate: -4deg; }
.fb-map { right: 5%; top: 10%; width: 220px; height: 150px; overflow: hidden; rotate: 5deg; }
.fb-dash { right: 12%; bottom: 10%; width: 240px; padding: 18px; color: var(--accent); rotate: -3deg; }
.fb-dash svg { width: 100%; height: 60px; }
@media (max-width: 900px) { .final-bg { display: none; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #9AA4B2; padding: 64px 0 110px; font-size: 15px; }
@media (min-width: 768px) { .site-footer { padding-bottom: 40px; } }
.site-footer .brand { color: #fff; }
.site-footer .brand-mark { background: #fff; }
.site-footer .brand-mark svg { color: var(--ink); }
.footer-grid { display: grid; gap: 36px; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-tag { margin-top: 16px; max-width: 360px; }
.footer-h { color: #fff; font-weight: 600; margin: 0 0 12px; font-size: 14px; }
.footer-grid ul { display: grid; gap: 6px; margin-bottom: 20px; }
.site-footer a { color: #C7CDD6; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-small { font-size: 14px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 40px; padding-top: 24px; display: grid; gap: 12px; }
.footer-disclaimer { font-size: 13px; line-height: 1.55; max-width: 820px; margin: 0; }
.footer-links { font-size: 13px; margin: 0; }

/* ---------- Sticky mobile CTA ---------- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
  background: rgba(250, 250, 248, .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  transform: translateY(110%); transition: transform .35s cubic-bezier(.2, .7, .2, 1);
}
.sticky-cta.show { transform: none; }
@media (min-width: 768px) { .sticky-cta { display: none; } }

/* ---------- Legal pages ---------- */
.legal { padding: 64px 0 96px; }
.legal h1 { font-size: clamp(32px, 4vw, 46px); margin-bottom: 12px; }
.legal h2 { font-size: 22px; margin: 36px 0 10px; }
.legal .updated { color: var(--muted); font-size: 14px; margin-bottom: 32px; }
.legal ul { list-style: disc; padding-left: 22px; margin-bottom: 1em; }

/* ---------- WhatsApp ---------- */
.header-actions { display: flex; align-items: center; gap: 10px; }
.wa-head {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  font: 600 14px/1 var(--font); color: var(--ink);
  padding: 9px 14px; border: 1px solid var(--line-2); border-radius: 999px; transition: border-color .2s, background .2s;
}
.wa-head .ico { width: 18px; height: 18px; color: #1FAF54; }
.wa-head:hover { border-color: #1FAF54; background: #F0FBF3; }
@media (max-width: 640px) { .wa-head span { display: none; } .wa-head { padding: 8px; } }
/* Phone: the floating WhatsApp button is enough; frees room for RU/EN + CTA */
@media (max-width: 480px) { .wa-head { display: none; } }

.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 70;
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: #25D366; color: #fff; box-shadow: 0 10px 26px -8px rgba(18, 140, 60, .6);
  transition: transform .2s, box-shadow .2s;
}
.wa-float svg { width: 30px; height: 30px; }
.wa-float:hover { transform: translateY(-2px) scale(1.04); box-shadow: 0 14px 30px -8px rgba(18, 140, 60, .7); }
@media (max-width: 767px) { .wa-float { right: 16px; bottom: calc(88px + env(safe-area-inset-bottom)); width: 52px; height: 52px; } .wa-float svg { width: 27px; height: 27px; } }

/* ---------- Language switch ---------- */
.lang-switch {
  display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 36px; padding: 0 10px;
  font: 600 13px/1 var(--font); letter-spacing: .04em; color: var(--ink); text-decoration: none;
  border: 1px solid var(--line-2); border-radius: 999px; transition: border-color .2s, background .2s;
}
.lang-switch:hover { border-color: var(--accent); background: var(--accent-soft); }
@media (max-width: 480px) { .lang-switch { min-width: 34px; height: 34px; padding: 0 8px; font-size: 12px; } }
