/* New Saudi Riyal sign (U+20C1, SAMA glyph, MIT font from the "riyal" package). Only that one character uses it. */
@font-face { font-family: "SaudiRiyal"; src: url("../fonts/riyal.woff2") format("woff2"), url("../fonts/riyal.woff") format("woff"); unicode-range: U+20C1; font-display: swap; }
/* =========================================================
   MR1 Smart Solutions — Lead generation landing page
   Design system + components (RTL first)
   ========================================================= */

:root {
  /* Brand */
  --navy: #10224F;
  --navy-2: #0B1838;
  --blue: #1674E8;          /* accents, icons, decoration */
  --blue-ink: #0F63CF;      /* text & buttons on white (AA contrast) */
  --cyan: #00C6E8;
  --white: #FFFFFF;
  --bg: #F5F7FB;
  --line: #E6EBF3;
  --text: #17233D;
  --muted: #5B6B82;
  --wa: #1DA851;
  --danger: #C62D3A;
  --success: #12805C;

  /* Type */
  --font: "SaudiRiyal", "Cairo", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  --fs-xs: .8125rem;
  --fs-sm: .9375rem;
  --fs-base: 1.0625rem;
  --fs-lg: 1.25rem;
  --fs-xl: clamp(1.6rem, 1.2rem + 1.6vw, 2.35rem);
  --fs-hero: clamp(2rem, 1.2rem + 3.2vw, 3.45rem);

  /* Shape */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 30px;
  --shadow-sm: 0 1px 2px rgba(16, 34, 79, .06);
  --shadow-md: 0 10px 30px -12px rgba(16, 34, 79, .18);
  --shadow-lg: 0 30px 70px -28px rgba(16, 34, 79, .35);

  --header-h: 76px;
  --container: 1200px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::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;
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: 1.8;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; line-height: 1.35; color: var(--navy); font-weight: 800; }
p { margin: 0; }
a { color: var(--blue-ink); text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }

.ic { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; inset-inline-start: 16px; top: -60px; z-index: 200; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: var(--r-sm); }
.skip-link:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; border-radius: 6px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }

/* ---------- Buttons ---------- */
.btn {
  --pad-y: 12px; --pad-x: 22px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: var(--pad-y) var(--pad-x);
  border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 700; font-size: var(--fs-sm); line-height: 1.4;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s, color .2s, border-color .2s;
  white-space: nowrap; text-decoration: none; position: relative;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-sm { --pad-y: 9px; --pad-x: 16px; font-size: var(--fs-xs); }
.btn-lg { --pad-y: 15px; --pad-x: 26px; font-size: 1rem; }
.btn-block { width: 100%; }

.btn-primary { background: var(--blue-ink); color: #fff; box-shadow: 0 10px 24px -10px rgba(15, 99, 207, .7); }
.btn-primary:hover { background: #0B57B8; box-shadow: 0 14px 30px -12px rgba(15, 99, 207, .8); transform: translateY(-1px); }
.btn-outline { background: #fff; color: var(--navy); border-color: #CBD5E4; }
.btn-outline:hover { border-color: var(--blue); color: var(--blue-ink); }
.btn-ghost { background: var(--bg); color: var(--navy); }
.btn-ghost:hover { background: #EAF1FC; color: var(--blue-ink); }
.btn-white { background: #fff; color: var(--navy); }
.btn-white:hover { background: #EAF6FD; transform: translateY(-1px); }
.btn-outline-light { color: #fff; border-color: rgba(255,255,255,.4); }
.btn-outline-light:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: #188F45; }
.btn .ic { width: 1.2em; height: 1.2em; }
.btn[disabled] { opacity: .7; cursor: not-allowed; }

.link-btn { background: none; border: 0; padding: 0; color: var(--blue-ink); font-weight: 700; display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-sm); }
.link-btn:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s, transform .3s var(--ease);
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px -18px rgba(16,34,79,.35); }
.site-header.is-hidden { transform: translateY(-100%); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand img { height: 46px; width: auto; }
.main-nav { display: flex; gap: 4px; margin-inline-start: auto; }
.main-nav a { color: var(--text); font-weight: 600; font-size: var(--fs-sm); padding: 8px 12px; border-radius: 999px; transition: background-color .2s, color .2s; }
.main-nav a:hover, .main-nav a.is-active { color: var(--blue-ink); background: #EEF4FD; }
.header-actions { display: flex; align-items: center; gap: 10px; }

.country-select { position: relative; display: inline-flex; align-items: center; }
.country-select select {
  appearance: none; -webkit-appearance: none;
  border: 1px solid var(--line); background: #fff; border-radius: 999px;
  padding: 7px 14px; padding-inline-end: 34px; font-size: var(--fs-xs); font-weight: 700; color: var(--navy); cursor: pointer;
}
.country-select .ic { position: absolute; inset-inline-end: 12px; pointer-events: none; width: 14px; height: 14px; color: var(--muted); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: calc(var(--header-h) + 56px) 0 88px; overflow: hidden; isolation: isolate; }
.hero-grid-bg {
  position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(to right, rgba(16,34,79,.055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(16,34,79,.055) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 70% 65% at 30% 45%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 65% at 30% 45%, #000 20%, transparent 75%);
}
.hero::after { /* soft brand glow behind the visual */
  content: ""; position: absolute; z-index: -1; width: 620px; height: 620px; left: -120px; top: 60px;
  background: radial-gradient(circle, rgba(0,198,232,.16), rgba(22,116,232,.08) 40%, transparent 70%);
  filter: blur(10px);
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.08fr 1fr; gap: 48px; align-items: center; }

.hero-kicker { display: inline-flex; align-items: center; gap: 10px; font-size: var(--fs-sm); font-weight: 700; color: var(--blue-ink); margin-bottom: 18px; }
.signal { display: inline-flex; align-items: flex-end; gap: 3px; height: 16px; }
.signal i { width: 4px; border-radius: 2px; background: linear-gradient(var(--cyan), var(--blue)); }
.signal i:nth-child(1) { height: 30%; } .signal i:nth-child(2) { height: 55%; } .signal i:nth-child(3) { height: 78%; } .signal i:nth-child(4) { height: 100%; }

.hero-title { font-size: var(--fs-hero); font-weight: 900; line-height: 1.3; letter-spacing: -.01em; }
.hero-title .line { display: block; text-wrap: balance; }
.hero-title .line + .line { color: var(--blue-ink); }
.hero-lead { margin-top: 22px; font-size: var(--fs-lg); color: var(--muted); max-width: 34em; line-height: 1.85; }
.hero-ctas { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-assurances { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: var(--fs-sm); color: var(--muted); font-weight: 600; }
.hero-assurances li { display: inline-flex; align-items: center; gap: 6px; }
.hero-assurances .ic { color: var(--success); }

/* Hero composition */
.hero-visual { position: relative; height: 540px; perspective: 1400px; }
.traces { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.traces .trace { fill: none; stroke: var(--blue); stroke-opacity: .35; stroke-width: 1.6; stroke-dasharray: 6 8; animation: dash 14s linear infinite; }
.traces circle { fill: var(--cyan); }

.mk {
  position: absolute; background: #fff; border-radius: var(--r-md);
  border: 1px solid rgba(16,34,79,.08);
  box-shadow: var(--shadow-lg);
  will-change: transform;
}
.mk-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); direction: ltr; }
.mk-bar i { width: 9px; height: 9px; border-radius: 50%; background: #E3E8F0; }
.mk-bar i:nth-child(1) { background: #FF6B6B; } .mk-bar i:nth-child(2) { background: #FFC94D; } .mk-bar i:nth-child(3) { background: #3DD68C; }
.mk-bar span { margin-inline: auto; font-size: 11px; color: var(--muted); background: var(--bg); padding: 2px 14px; border-radius: 999px; font-family: system-ui, sans-serif; }

.mk-browser { top: 18px; left: 7%; width: 76%; animation: float 9s ease-in-out infinite; }
.site { padding: 16px 18px 20px; }
.site-nav { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--navy); }
.site-nav b { margin-inline-end: auto; font-weight: 800; }
.site-nav span { width: 34px; height: 6px; border-radius: 4px; background: var(--line); }
.site-hero { margin-top: 16px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 16px; align-items: center; }
.site-h { font-size: 17px; font-weight: 800; color: var(--navy); line-height: 1.5; }
.site-s { font-size: 12px; color: var(--muted); margin-top: 4px; }
.site-btn { display: inline-block; margin-top: 10px; font-size: 11px; font-weight: 700; color: #fff; background: var(--blue-ink); padding: 5px 14px; border-radius: 999px; }
.site-img { height: 112px; border-radius: 12px; background:
  linear-gradient(160deg, rgba(0,198,232,.55), rgba(22,116,232,.85) 55%, var(--navy)),
  repeating-linear-gradient(90deg, rgba(255,255,255,.15) 0 2px, transparent 2px 22px); position: relative; overflow: hidden; }
.site-img::after { content: ""; position: absolute; inset: auto 12% 0 12%; height: 62%; background:
  linear-gradient(90deg, rgba(255,255,255,.9) 0 18%, transparent 18% 22%, rgba(255,255,255,.75) 22% 52%, transparent 52% 56%, rgba(255,255,255,.85) 56% 100%);
  clip-path: polygon(0 40%, 18% 40%, 18% 0, 52% 0, 52% 25%, 56% 25%, 56% 15%, 100% 15%, 100% 100%, 0 100%); opacity: .9; }
.site-cards { margin-top: 16px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.site-cards span { height: 46px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); }

.mk-dash { bottom: 48px; left: 0; width: 46%; padding: 16px; animation: float 8s ease-in-out -2s infinite; }
.dash-head { display: flex; justify-content: space-between; align-items: baseline; font-size: 12px; }
.dash-head b { color: var(--navy); font-weight: 800; font-size: 13px; }
.dash-head span { color: var(--muted); font-size: 11px; }
.dash-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.dash-kpis div { background: var(--bg); border-radius: 10px; padding: 8px 10px; }
.dash-kpis small { display: block; font-size: 10.5px; color: var(--muted); }
.dash-kpis b { font-size: 18px; color: var(--navy); font-family: system-ui, sans-serif; font-weight: 800; }
.dash-chart { margin-top: 10px; width: 100%; height: 54px; }
.dash-bars { display: flex; align-items: flex-end; gap: 6px; height: 34px; margin-top: 6px; }
.dash-bars i { flex: 1; height: var(--h); border-radius: 4px 4px 2px 2px; background: linear-gradient(var(--cyan), var(--blue)); opacity: .85; }

.mk-phone { top: 104px; right: 0; width: 31%; aspect-ratio: 9 / 18.5; border-radius: 30px; padding: 9px; background: var(--navy); border: 0; animation: float 7s ease-in-out -4s infinite; }
.ph-notch { position: absolute; top: 15px; left: 50%; transform: translateX(-50%); width: 34%; height: 13px; border-radius: 999px; background: var(--navy); z-index: 2; }
.ph-screen { height: 100%; border-radius: 22px; background: linear-gradient(180deg, #EEF5FF, #fff 40%); padding: 34px 12px 12px; display: flex; flex-direction: column; gap: 8px; overflow: hidden; }
.ph-hello { font-size: 10.5px; color: var(--muted); }
.ph-title { font-size: 13px; font-weight: 800; color: var(--navy); line-height: 1.3; }
.ph-card { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; font-size: 11px; font-weight: 700; color: var(--navy); }
.ph-card i { width: 18px; height: 18px; border-radius: 6px; background: #E5F0FD; }
.ph-card-main { flex-direction: column; align-items: flex-start; gap: 0; background: linear-gradient(135deg, var(--blue-ink), var(--navy)); border: 0; color: #fff; padding: 12px; }
.ph-card-main span { font-size: 10.5px; font-weight: 600; opacity: .85; }
.ph-tab { margin-top: auto; display: flex; justify-content: space-around; padding: 8px 4px 2px; border-top: 1px solid var(--line); }
.ph-tab i { width: 16px; height: 16px; border-radius: 5px; background: var(--line); }
.ph-tab i.on { background: var(--blue); }

.mk-video { bottom: 70px; right: 31%; width: 25%; padding: 8px; animation: float 10s ease-in-out -6s infinite; }
.vid-frame { position: relative; aspect-ratio: 4 / 5; border-radius: 12px; overflow: hidden;
  background: radial-gradient(circle at 30% 25%, rgba(0,198,232,.9), transparent 45%), radial-gradient(circle at 75% 80%, rgba(22,116,232,.9), transparent 50%), var(--navy);
  display: grid; place-items: center; }
.vid-badge { position: absolute; top: 8px; inset-inline-start: 8px; background: rgba(255,255,255,.18); color: #fff; font-size: 10px; font-weight: 800; padding: 1px 8px; border-radius: 999px; font-family: system-ui, sans-serif; backdrop-filter: blur(4px); }
.vid-play { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.95); color: var(--navy); display: grid; place-items: center; box-shadow: 0 8px 20px rgba(0,0,0,.25); }
.vid-play .ic { width: 16px; height: 16px; fill: currentColor; stroke: none; margin-inline-start: -2px; }
.vid-caption { position: absolute; bottom: 8px; inset-inline: 8px; color: #fff; font-size: 10px; font-weight: 700; text-align: center; background: rgba(0,0,0,.28); border-radius: 6px; padding: 2px 4px; line-height: 1.6; }
.vid-wave { display: flex; align-items: center; gap: 3px; height: 22px; margin-top: 8px; }
.vid-wave i { flex: 1; height: 30%; border-radius: 2px; background: var(--blue); opacity: .6; animation: wave 1.2s ease-in-out infinite; }
.vid-wave i:nth-child(3n) { animation-delay: -.3s; } .vid-wave i:nth-child(3n+1) { animation-delay: -.6s; } .vid-wave i:nth-child(4n) { animation-delay: -.9s; }
.vid-meta { display: flex; justify-content: space-between; font-size: 10px; color: var(--muted); font-family: system-ui, sans-serif; margin-top: 2px; }

/* AI bubble in hero */
.ai-bubble {
  position: absolute; left: 21%; bottom: -6px; z-index: 5;
  display: flex; align-items: flex-start; gap: 12px; max-width: 330px; text-align: start;
  background: rgba(255,255,255,.96); border: 1px solid rgba(22,116,232,.22); border-radius: 20px; border-top-left-radius: 6px;
  padding: 14px 16px; box-shadow: 0 24px 50px -20px rgba(16,34,79,.45);
  transition: transform .25s var(--ease), box-shadow .25s;
  animation: bubble-in .7s var(--ease) 1.1s both;
}
.ai-bubble:hover { transform: translateY(-3px); box-shadow: 0 30px 60px -22px rgba(16,34,79,.5); }
.ai-avatar { position: relative; flex: none; width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; color: #fff; background: linear-gradient(140deg, var(--cyan), var(--blue) 45%, var(--navy)); }
.ai-avatar .ic { width: 22px; height: 22px; }
.ai-avatar.sm { width: 34px; height: 34px; border-radius: 11px; }
.ai-avatar.sm .ic { width: 18px; height: 18px; }
.ai-dot { position: absolute; bottom: -2px; inset-inline-end: -2px; width: 12px; height: 12px; border-radius: 50%; background: #2BD47D; border: 2px solid #fff; }
.ai-text { font-size: var(--fs-sm); font-weight: 600; color: var(--navy); line-height: 1.7; min-height: 48px; display: block; }
.ai-typing { display: inline-flex; gap: 4px; padding-top: 14px; }
.ai-typing i, .typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); opacity: .4; animation: blink 1.2s infinite; }
.ai-typing i:nth-child(2), .typing i:nth-child(2) { animation-delay: .2s; }
.ai-typing i:nth-child(3), .typing i:nth-child(3) { animation-delay: .4s; }
.ai-msg { display: none; }
.ai-bubble.is-typed .ai-typing { display: none; }
.ai-bubble.is-typed .ai-msg { display: block; animation: fade-in .4s ease both; }

/* ---------- Sections ---------- */
.section { padding: 104px 0; }
.section-head { max-width: 660px; margin-bottom: 48px; }
.section-head h2, .assistant-copy h2, .quote-copy h2, .faq h2 { font-size: var(--fs-xl); font-weight: 800; }
.section-head p { margin-top: 12px; color: var(--muted); font-size: var(--fs-lg); line-height: 1.8; }
.fine-print { margin-top: 22px; font-size: var(--fs-xs); color: var(--muted); }

/* ---------- Services ---------- */
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.service-card {
  --mx: 50%; --my: 0%;
  position: relative; display: flex; flex-direction: column; gap: 10px;
  padding: 26px 24px 22px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line);
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s; overflow: hidden; isolation: isolate;
}
.service-card::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .3s;
  background: radial-gradient(360px circle at var(--mx) var(--my), rgba(0,198,232,.12), transparent 60%); }
.service-card:hover { transform: translateY(-4px); border-color: rgba(22,116,232,.45); box-shadow: var(--shadow-md); }
.service-card:hover::before { opacity: 1; }
.svc-icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: #EDF4FE; color: var(--blue-ink); margin-bottom: 6px; transition: background-color .3s, color .3s, transform .3s var(--ease); }
.svc-icon .ic { width: 26px; height: 26px; stroke-width: 1.8; }
.service-card:hover .svc-icon { background: var(--blue-ink); color: #fff; transform: rotate(-6deg); }
.service-card h3 { font-size: 1.2rem; }
.service-card > p { color: var(--muted); font-size: var(--fs-sm); line-height: 1.8; }
.svc-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.svc-tags li { font-size: var(--fs-xs); font-weight: 600; color: var(--navy); background: var(--bg); padding: 2px 10px; border-radius: 999px; }
.svc-price { margin-top: auto; padding-top: 12px; font-size: var(--fs-xs); color: var(--muted); border-top: 1px dashed var(--line); }
.svc-price b { color: var(--navy); font-size: 1rem; font-weight: 800; }
.svc-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%;
  border: 0; border-radius: 14px; background: var(--bg); color: var(--navy); font-weight: 800; font-size: var(--fs-sm);
  padding: 12px 16px; transition: background-color .25s, color .25s;
}
.svc-cta .ic { transition: transform .25s var(--ease); }
.svc-cta:hover, .service-card:hover .svc-cta { background: var(--blue-ink); color: #fff; }
.svc-cta:hover .ic { transform: translateX(-4px); }

/* ---------- Assistant showcase ---------- */
.assistant { background: var(--bg); position: relative; overflow: hidden; }
.assistant-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.assistant-copy > p { margin-top: 14px; color: var(--muted); font-size: var(--fs-lg); max-width: 32em; }
.assist-points { margin: 30px 0 34px; display: grid; gap: 18px; }
.assist-points li { display: flex; gap: 14px; align-items: flex-start; }
.pt-ic { flex: none; width: 40px; height: 40px; border-radius: 12px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; color: var(--blue-ink); }
.assist-points b { display: block; color: var(--navy); font-weight: 800; }
.assist-points span { color: var(--muted); font-size: var(--fs-sm); }

.convo-preview { margin: 0; background: #fff; border-radius: var(--r-xl); border: 1px solid var(--line); box-shadow: var(--shadow-lg); overflow: hidden; }
.cp-head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.cp-head b { display: block; color: var(--navy); font-size: var(--fs-sm); line-height: 1.4; }
.cp-head small { color: var(--muted); font-size: var(--fs-xs); }
.cp-body { padding: 22px 20px 26px; display: flex; flex-direction: column; gap: 12px; }

.msg { max-width: 86%; padding: 10px 16px; border-radius: 18px; font-size: var(--fs-sm); line-height: 1.75; white-space: pre-line; overflow-wrap: anywhere; }
.msg.bot { align-self: flex-start; background: var(--bg); color: var(--text); border-start-start-radius: 6px; }
.msg.user { align-self: flex-end; background: var(--blue-ink); color: #fff; border-start-end-radius: 6px; }
.msg.system { align-self: center; max-width: 100%; background: #FFF7E6; color: #7A4B00; font-size: var(--fs-xs); border-radius: 12px; text-align: center; }
.msg.error { align-self: stretch; max-width: 100%; background: #FDEDEE; color: #8A1C26; }

/* ---------- Work (bento) ---------- */
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-flow: dense; gap: 18px; }
.work-card { border-radius: var(--r-lg); border: 1px solid var(--line); background: #fff; overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .3s, transform .3s var(--ease); }
.work-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.w-wide { grid-column: span 2; }
.w-tall { grid-row: span 2; }
.work-card:nth-child(4) { grid-column: 1 / -1; flex-direction: row; }
.work-card:nth-child(4) .work-shot { flex: 1.4; }
.work-card:nth-child(4) .work-info { flex: 1; justify-content: center; }
.work-shot { position: relative; background: var(--bg); min-height: 210px; overflow: hidden; }
.work-info { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.work-info h3 { font-size: 1.15rem; }
.work-info p { color: var(--muted); font-size: var(--fs-sm); }
.work-info .link-btn { margin-top: 6px; }
.demo-tag { font-size: 12px; font-weight: 700; color: #7A4B00; background: #FFF4DB; border-radius: 999px; padding: 1px 10px; }

.shot-corporate { padding: 22px 22px 0; background: linear-gradient(160deg, #E9F3FF, #F5F7FB); }
.shot-corporate > .mk-bar, .shot-corporate .sc-body { background: #fff; }
.shot-corporate > .mk-bar { border-radius: 12px 12px 0 0; border: 1px solid var(--line); border-bottom: 0; }
.sc-body { border: 1px solid var(--line); border-top: 0; padding: 18px; height: 170px; }
.sc-hero { padding: 18px; border-radius: 12px; background: linear-gradient(120deg, var(--navy), var(--blue-ink)); color: #fff; }
.sc-hero b { display: block; font-size: 1rem; font-weight: 800; }
.sc-hero span { display: inline-block; margin-top: 8px; font-size: 11px; background: #fff; color: var(--navy); padding: 2px 12px; border-radius: 999px; font-weight: 700; }
.sc-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 12px; }
.sc-row i { height: 36px; border-radius: 8px; background: var(--bg); }

.shot-app { display: grid; place-items: center; min-height: 360px; background: linear-gradient(170deg, #EAF8FC, #F5F7FB 60%); flex: 1; }
.mini-phone { width: 190px; aspect-ratio: 9/17.5; background: #fff; border-radius: 28px; border: 8px solid var(--navy); padding: 18px 12px; display: flex; flex-direction: column; gap: 10px; box-shadow: var(--shadow-lg); }
.mini-phone p { font-weight: 800; color: var(--navy); font-size: 14px; }
.mp-search { height: 26px; border-radius: 999px; background: var(--bg); }
.mp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mp-grid i { aspect-ratio: 1; border-radius: 12px; background: linear-gradient(140deg, #DCEBFF, #F0F9FC); }
.mp-grid i:nth-child(2) { background: linear-gradient(140deg, #C9F2FA, #EAF4FF); }
.mp-cart { margin-top: auto; background: var(--blue-ink); color: #fff; font-size: 11px; font-weight: 700; text-align: center; border-radius: 12px; padding: 6px; }

.shot-dash { display: flex; gap: 12px; padding: 20px; }
.sd-side { width: 38px; background: var(--navy); border-radius: 12px; padding: 10px 8px; display: flex; flex-direction: column; gap: 10px; }
.sd-side i { height: 20px; border-radius: 6px; background: rgba(255,255,255,.18); }
.sd-side i.on { background: var(--cyan); }
.sd-main { flex: 1; display: flex; flex-direction: column; gap: 10px; }
.sd-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.sd-kpis span { height: 42px; border-radius: 10px; background: #fff; border: 1px solid var(--line); }
.sd-chart { flex: 1; background: #fff; border: 1px solid var(--line); border-radius: 12px; display: flex; align-items: flex-end; gap: 8px; padding: 14px; min-height: 110px; }
.sd-chart i { flex: 1; height: var(--h); border-radius: 5px 5px 2px 2px; background: linear-gradient(var(--blue), rgba(22,116,232,.35)); transition: height .6s var(--ease); }
.work-card:hover .sd-chart i { filter: saturate(1.3); }

.shot-medical { padding: 22px; display: flex; flex-direction: column; gap: 12px; background: linear-gradient(160deg, #EFFBF7, #F5F7FB); }
.sm-card { display: flex; gap: 10px; align-items: center; background: #fff; border-radius: 14px; padding: 12px; border: 1px solid var(--line); }
.sm-ic { width: 36px; height: 36px; border-radius: 10px; background: #E3F6EF; color: var(--success); display: grid; place-items: center; }
.sm-card b { display: block; font-size: 13px; color: var(--navy); line-height: 1.4; }
.sm-card small { font-size: 11px; color: var(--muted); }
.sm-ecg { width: 100%; height: 44px; }
.sm-ecg path { fill: none; stroke: var(--success); stroke-width: 2; stroke-dasharray: 400; stroke-dashoffset: 400; animation: ecg 3.5s linear infinite; }
.sm-slots { display: flex; gap: 8px; }
.sm-slots span { flex: 1; text-align: center; font-size: 12px; font-weight: 700; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 4px 0; font-family: system-ui, sans-serif; color: var(--navy); }
.sm-slots .on { background: var(--success); color: #fff; border-color: var(--success); }

.shot-video { display: flex; align-items: center; justify-content: center; gap: 18px; padding: 24px; min-height: 260px; background: linear-gradient(150deg, #0E1E47, #13306F); }
.sv-frame { position: relative; border-radius: 14px; overflow: hidden; color: #fff; display: flex; flex-direction: column; justify-content: flex-end; padding: 14px; box-shadow: 0 20px 40px -20px rgba(0,0,0,.6); }
.sv-frame b { font-size: 14px; font-weight: 800; line-height: 1.5; }
.sv-frame small { font-size: 11px; opacity: .8; }
.v916 { width: 128px; aspect-ratio: 9/16; background: radial-gradient(circle at 50% 30%, rgba(255,214,140,.85), transparent 45%), linear-gradient(180deg, #5B2A86, #1B1035); }
.v169 { width: 300px; aspect-ratio: 16/9; background: radial-gradient(circle at 25% 30%, rgba(0,198,232,.8), transparent 45%), linear-gradient(135deg, var(--blue-ink), var(--navy)); align-items: flex-start; }
.v169 .vid-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -60%); }

/* ---------- Process ---------- */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; position: relative; counter-reset: none; }
.steps::before { content: ""; position: absolute; top: 24px; inset-inline: 10% 10%; height: 2px; background: repeating-linear-gradient(to left, var(--blue) 0 8px, transparent 8px 16px); opacity: .35; }
.steps li { position: relative; display: flex; flex-direction: column; gap: 6px; }
.step-n { width: 50px; height: 50px; border-radius: 16px; display: grid; place-items: center; background: #fff; border: 1.5px solid var(--blue); color: var(--blue-ink); font-weight: 900; font-size: 1.2rem; margin-bottom: 10px; position: relative; z-index: 1; transition: background-color .4s, color .4s; }
.steps li.is-lit .step-n { background: var(--blue-ink); color: #fff; }
.steps b { color: var(--navy); font-weight: 800; font-size: 1.05rem; }
.steps p { color: var(--muted); font-size: var(--fs-sm); }

/* ---------- Quote / form ---------- */
.quote { background: linear-gradient(180deg, #fff, var(--bg)); }
.quote-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.quote-copy { position: sticky; top: calc(var(--header-h) + 32px); }
.quote-copy > p { margin-top: 14px; color: var(--muted); font-size: var(--fs-lg); }
.after-list { margin: 28px 0; display: grid; gap: 14px; }
.after-list li { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; color: var(--navy); }
.after-list .ic { margin-top: 6px; color: var(--blue-ink); }
.alt-contact { padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.alt-contact p { width: 100%; color: var(--muted); font-size: var(--fs-sm); font-weight: 600; }

.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); padding: 34px; box-shadow: var(--shadow-lg); position: relative; }
.lead-form { display: grid; gap: 18px; }
.demo-banner { display: flex; gap: 10px; align-items: flex-start; background: #FFF7E6; color: #6E4500; border: 1px solid #F6DFAE; padding: 12px 14px; border-radius: 14px; font-size: var(--fs-xs); line-height: 1.7; }
.demo-banner .ic { margin-top: 3px; }
.field { display: grid; gap: 6px; }
.field-row { display: grid; grid-template-columns: .8fr 1.2fr; gap: 14px; }
.field label { font-weight: 700; font-size: var(--fs-sm); color: var(--navy); }
.opt { color: var(--muted); font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; border: 1.5px solid #D9E1EC; border-radius: 14px; background: #fff;
  padding: 12px 14px; font-size: 1rem; line-height: 1.5; transition: border-color .2s, box-shadow .2s;
}
.field select { appearance: none; -webkit-appearance: none; padding-inline-end: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%235B6B82' stroke-width='2' stroke-linecap='round' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: left 14px center; }
.field textarea { resize: vertical; min-height: 110px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #BFCBDC; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(22,116,232,.14); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: var(--fs-xs); font-weight: 600; min-height: 0; }
.field-error:empty { display: none; }
.phone-input { display: flex; direction: ltr; border: 1.5px solid #D9E1EC; border-radius: 14px; overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.phone-input:focus-within { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(22,116,232,.14); }
.field.has-error .phone-input { border-color: var(--danger); }
.phone-input .dial { display: grid; place-items: center; padding: 0 12px; background: var(--bg); color: var(--navy); font-weight: 700; font-family: system-ui, sans-serif; font-size: .95rem; border-inline-end: 1px solid #D9E1EC; }
.phone-input input { border: 0 !important; box-shadow: none !important; border-radius: 0; text-align: left; font-family: system-ui, sans-serif; letter-spacing: .02em; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: var(--fs-xs); color: var(--muted); line-height: 1.8; cursor: pointer; }
.consent input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--blue-ink); flex: none; }
.form-status { font-size: var(--fs-sm); font-weight: 600; text-align: center; }
.form-status:empty { display: none; }
.form-status.is-error { color: var(--danger); }

.spinner { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,.4); border-top-color: #fff; animation: spin .8s linear infinite; }
.is-loading .spinner { display: inline-block; }
.is-loading .btn-label { opacity: .8; }

.form-result { text-align: center; padding: 28px 8px; display: grid; justify-items: center; gap: 12px; }
.form-result:focus { outline: none; }
.result-icon { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: #E3F6EF; color: var(--success); }
.result-icon .ic { width: 30px; height: 30px; stroke-width: 2.5; }
.form-result.is-demo .result-icon { background: #FFF4DB; color: #A26A00; }
.form-result h3 { font-size: 1.4rem; }
.form-result p { color: var(--muted); max-width: 30em; }
.form-result .ref { color: var(--navy); background: var(--bg); padding: 6px 16px; border-radius: 999px; }
.result-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 6px; }

/* ---------- FAQ ---------- */
.faq-inner { display: grid; grid-template-columns: .7fr 1.3fr; gap: 48px; align-items: start; }
.faq-list { display: grid; gap: 10px; }
.faq-list details { border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; transition: border-color .2s, box-shadow .2s; }
.faq-list details[open] { border-color: rgba(22,116,232,.4); box-shadow: var(--shadow-sm); }
.faq-list summary { list-style: none; cursor: pointer; padding: 18px 22px; font-weight: 700; color: var(--navy); display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%230F63CF' stroke-width='2.5' stroke-linecap='round' viewBox='0 0 24 24'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center no-repeat; transition: transform .25s var(--ease); }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { padding: 0 22px 20px; color: var(--muted); }

/* ---------- Final CTA ---------- */
.final-cta { padding: 0 0 104px; }
.final-inner {
  position: relative; overflow: hidden; isolation: isolate; text-align: center;
  background: var(--navy); color: #fff; border-radius: 36px; padding: 84px 32px;
}
.final-inner::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(to right, rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(to bottom, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 40px 40px; mask-image: radial-gradient(ellipse at center, #000, transparent 75%); -webkit-mask-image: radial-gradient(ellipse at center, #000, transparent 75%); }
.final-inner::after { content: ""; position: absolute; z-index: -1; width: 520px; height: 520px; top: -260px; left: 50%; transform: translateX(-50%); background: radial-gradient(circle, rgba(0,198,232,.35), transparent 65%); }
.final-traces { position: absolute; inset-inline-start: -20px; bottom: 10px; width: 360px; opacity: .5; z-index: -1; }
.final-traces path { fill: none; stroke: var(--cyan); stroke-width: 1.5; stroke-dasharray: 5 7; animation: dash 16s linear infinite; }
.final-traces circle { fill: var(--cyan); }
.final-inner h2 { color: #fff; font-size: clamp(1.8rem, 1.2rem + 2.4vw, 3rem); font-weight: 900; }
.final-inner p { margin: 16px auto 0; max-width: 36em; color: rgba(255,255,255,.78); font-size: var(--fs-lg); }
.final-actions { margin-top: 34px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg); border-top: 1px solid var(--line); padding: 56px 0 28px; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-brand img { height: 52px; width: auto; }
.footer-brand p { margin-top: 12px; color: var(--muted); font-size: var(--fs-sm); max-width: 28em; }
.footer-links { display: grid; gap: 6px; align-content: start; }
.footer-links a { color: var(--text); font-weight: 600; font-size: var(--fs-sm); }
.footer-links a:hover { color: var(--blue-ink); }
.footer-contact { display: grid; gap: 8px; align-content: start; font-size: var(--fs-sm); }
.footer-contact a { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font-weight: 600; }
.footer-contact a:hover { color: var(--blue-ink); }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: var(--fs-xs); color: var(--muted); }

/* ---------- Floating chat launcher ---------- */
.chat-launcher {
  position: fixed; z-index: 60; bottom: 24px; inset-inline-end: 24px;
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px 12px 16px;
  border: 0; border-radius: 999px; background: var(--navy); color: #fff; font-weight: 800; font-size: var(--fs-sm);
  box-shadow: 0 18px 40px -14px rgba(16,34,79,.7);
  transition: transform .25s var(--ease), box-shadow .25s, opacity .25s;
}
.chat-launcher::before { content: ""; position: absolute; inset: -4px; border-radius: inherit; border: 2px solid var(--cyan); opacity: 0; animation: ring 3.2s ease-out 2s infinite; pointer-events: none; }
.chat-launcher:hover { transform: translateY(-2px); box-shadow: 0 22px 46px -14px rgba(16,34,79,.8); }
.chat-launcher .ic { width: 22px; height: 22px; color: var(--cyan); }
.chat-launcher.is-hidden { opacity: 0; pointer-events: none; transform: translateY(12px); }
.launcher-badge { position: absolute; top: -4px; inset-inline-start: -4px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--cyan); color: var(--navy); font-size: 11px; font-weight: 900; display: grid; place-items: center; }

/* ---------- Chat panel ---------- */
.chat-panel {
  position: fixed; z-index: 70; bottom: 24px; inset-inline-end: 24px;
  width: min(410px, calc(100vw - 32px)); height: min(680px, calc(100dvh - 48px));
  display: flex; flex-direction: column;
  background: #fff; border-radius: 26px; border: 1px solid rgba(16,34,79,.1);
  box-shadow: 0 40px 90px -30px rgba(16,34,79,.55);
  overflow: hidden; transform-origin: bottom left;
  animation: panel-in .32s var(--ease) both;
}
.chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 14px 12px 16px; background: linear-gradient(120deg, var(--navy), #163A86); color: #fff; }
.chat-head .ai-avatar { width: 40px; height: 40px; }
.chat-head .ai-dot { border-color: var(--navy); }
.chat-id { flex: 1; min-width: 0; }
.chat-id h2 { color: #fff; font-size: 1rem; font-weight: 800; line-height: 1.4; }
.chat-status { font-size: 12px; color: rgba(255,255,255,.75); display: flex; align-items: center; gap: 6px; }
.chat-controls { display: flex; gap: 2px; }
.icon-btn { width: 36px; height: 36px; border-radius: 10px; border: 0; background: transparent; color: rgba(255,255,255,.85); display: grid; place-items: center; transition: background-color .2s; }
.icon-btn:hover { background: rgba(255,255,255,.12); color: #fff; }
.icon-btn .ic { width: 18px; height: 18px; }

.chat-progress { height: 3px; background: #E8EEF7; }
.chat-progress span { display: block; height: 100%; width: 0; background: linear-gradient(to left, var(--cyan), var(--blue)); transition: width .5s var(--ease); margin-inline-start: 0; }
.chat-mode { font-size: 11.5px; font-weight: 600; color: #6E4500; background: #FFF7E6; padding: 5px 16px; text-align: center; line-height: 1.6; }

.chat-log { flex: 1; overflow-y: auto; padding: 18px 16px 8px; display: flex; flex-direction: column; gap: 10px; overscroll-behavior: contain; scroll-behavior: smooth; }
.chat-log .msg { animation: msg-in .28s var(--ease) both; }
.typing { align-self: flex-start; display: inline-flex; gap: 5px; padding: 14px 16px; background: var(--bg); border-radius: 18px; border-start-start-radius: 6px; }

.summary-card { align-self: stretch; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; font-size: var(--fs-xs); animation: msg-in .3s var(--ease) both; }
.summary-card h4 { margin: 0; padding: 10px 14px; background: var(--bg); color: var(--navy); font-size: var(--fs-sm); font-weight: 800; display: flex; align-items: center; gap: 8px; }
.summary-card dl { margin: 0; padding: 8px 14px 12px; display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; }
.summary-card dt { color: var(--muted); font-weight: 600; }
.summary-card dd { margin: 0; color: var(--navy); font-weight: 700; overflow-wrap: anywhere; }
.estimate-card { align-self: stretch; border-radius: 16px; padding: 14px 16px; background: linear-gradient(135deg, #EAF3FF, #E8FAFD); border: 1px solid #CFE3FB; animation: msg-in .3s var(--ease) both; }
.estimate-card small { display: block; color: var(--muted); font-size: 12px; font-weight: 600; }
.estimate-card b { display: block; color: var(--navy); font-size: 1.25rem; font-weight: 900; margin: 2px 0; }
.estimate-card p { font-size: 12px; color: var(--muted); line-height: 1.7; }

.chat-quick { display: flex; flex-wrap: wrap; gap: 8px; padding: 6px 16px 10px; max-height: 172px; overflow-y: auto; }
.chat-quick:empty { display: none; }
.qr {
  border: 1.5px solid #CFDBEC; background: #fff; color: var(--navy); border-radius: 999px;
  padding: 8px 14px; font-size: var(--fs-sm); font-weight: 700; line-height: 1.4; transition: border-color .2s, background-color .2s, color .2s, transform .15s;
  min-height: 42px;
}
.qr:hover { border-color: var(--blue); color: var(--blue-ink); }
.qr:active { transform: scale(.97); }
.qr[aria-pressed="true"] { background: #EAF2FD; border-color: var(--blue); color: var(--blue-ink); }
.qr[aria-pressed="true"]::before { content: ""; display: inline-block; width: 13px; height: 13px; margin-inline-end: 5px; vertical-align: -1px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat; }
.qr.qr-primary { background: var(--blue-ink); border-color: var(--blue-ink); color: #fff; }
.qr.qr-primary:hover { background: #0B57B8; color: #fff; }
.qr.qr-wa { background: var(--wa); border-color: var(--wa); color: #fff; }
.qr.qr-muted { border-style: dashed; color: var(--muted); }

.chat-tools { display: flex; gap: 6px; padding: 8px 12px 0; border-top: 1px solid var(--line); }
.chip-btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; background: transparent; color: var(--muted); font-size: 12.5px; font-weight: 700; padding: 6px 8px; border-radius: 10px; }
.chip-btn:hover { background: var(--bg); color: var(--navy); }
.chip-btn.chip-wa .ic { color: var(--wa); }

.chat-input { display: flex; gap: 8px; padding: 8px 12px 6px; align-items: center; }
.chat-input input { flex: 1; min-width: 0; border: 1.5px solid #D9E1EC; border-radius: 999px; padding: 11px 16px; font-size: 1rem; background: var(--bg); transition: border-color .2s, background-color .2s; }
.chat-input input:focus { outline: none; border-color: var(--blue); background: #fff; }
.send-btn { flex: none; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--blue-ink); color: #fff; display: grid; place-items: center; transition: background-color .2s, transform .15s; }
.send-btn:hover { background: #0B57B8; }
.send-btn .ic { transform: scaleX(-1); width: 19px; height: 19px; }
.send-btn[disabled] { background: #A9BCD6; }
.chat-privacy { display: flex; gap: 6px; align-items: flex-start; padding: 2px 16px 12px; font-size: 11px; color: var(--muted); line-height: 1.6; }
.chat-privacy .ic { width: 13px; height: 13px; margin-top: 2px; flex: none; }

.chat-mini {
  position: fixed; z-index: 60; bottom: 24px; inset-inline-end: 24px;
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 8px;
  border: 1px solid var(--line); background: #fff; border-radius: 999px; box-shadow: var(--shadow-md);
  font-weight: 700; font-size: var(--fs-sm); color: var(--navy);
}
.mini-progress { font-size: 12px; color: var(--blue-ink); font-family: system-ui, sans-serif; background: #EAF2FD; border-radius: 999px; padding: 0 8px; }

/* ---------- Mobile sticky bar ---------- */
.mobile-bar { display: none; }

/* ---------- Consent banner & toast ---------- */
.consent-banner {
  position: fixed; z-index: 80; bottom: 20px; left: 50%; transform: translateX(-50%);
  width: min(720px, calc(100vw - 32px));
  display: flex; align-items: center; gap: 18px; padding: 16px 20px;
  background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg);
  font-size: var(--fs-sm); color: var(--text);
}
.consent-actions { display: flex; gap: 8px; flex: none; }
.toast { position: fixed; z-index: 90; top: calc(var(--header-h) + 14px); left: 50%; transform: translateX(-50%); background: var(--navy); color: #fff; padding: 10px 18px; border-radius: 12px; font-size: var(--fs-sm); font-weight: 600; box-shadow: var(--shadow-md); max-width: calc(100vw - 32px); text-align: center; animation: fade-in .25s ease both; }

/* ---------- Motion ---------- */
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@keyframes dash { to { stroke-dashoffset: -280; } }
@keyframes wave { 0%, 100% { height: 25%; } 50% { height: 95%; } }
@keyframes blink { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes bubble-in { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes msg-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes panel-in { from { opacity: 0; transform: translateY(16px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes ring { 0% { opacity: .7; transform: scale(1); } 70%, 100% { opacity: 0; transform: scale(1.18); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes ecg { to { stroke-dashoffset: 0; } }

/* Hero intro: pre-state only when JS + GSAP will run it */
.js-intro .hero-title .line, .js-intro .hero-lead, .js-intro .hero-ctas, .js-intro .hero-assurances, .js-intro .hero-kicker { opacity: 0; }
.js-intro .mk { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .mk { animation: none !important; }
  .ai-bubble .ai-typing { display: none; }
  .ai-bubble .ai-msg { display: block; }
}

/* ---------- Real project case (SNP Expo) ---------- */
.case-card {
  --case: #1F6F5C; --case-soft: #E8F3EF;
  display: grid; grid-template-columns: .85fr 1.15fr; gap: 40px; align-items: center;
  margin-bottom: 22px; padding: 36px; border-radius: var(--r-xl);
  background: linear-gradient(135deg, #fff 30%, var(--case-soft));
  border: 1px solid #D4E7E0; box-shadow: var(--shadow-md);
}
.case-brand { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.case-brand img { height: 56px; width: auto; }
.real-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 800; color: var(--case); background: var(--case-soft); border: 1px solid #C4E0D6; border-radius: 999px; padding: 3px 12px; }
.real-tag .ic { width: 14px; height: 14px; stroke-width: 3; }
.case-info h3 { font-size: 1.45rem; line-height: 1.45; }
.case-sub { color: var(--muted); font-size: var(--fs-sm); font-weight: 600; margin-top: 4px; }
.case-features { margin: 20px 0 26px; display: grid; gap: 10px; }
.case-features li { display: flex; gap: 10px; align-items: flex-start; font-size: var(--fs-sm); color: var(--text); line-height: 1.8; }
.case-features .ic { margin-top: 6px; color: var(--case); stroke-width: 2.6; width: 16px; height: 16px; }
.case-shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; align-items: end; }
.case-phone { margin: 0; display: grid; gap: 10px; justify-items: center; }
.case-phone picture { display: block; border-radius: 26px; padding: 7px; background: #0F2A24; box-shadow: 0 26px 50px -24px rgba(15, 42, 36, .55); transition: transform .35s var(--ease); }
.case-phone img { border-radius: 20px; width: 100%; height: auto; }
.case-phone:nth-child(2) picture { transform: translateY(-22px); }
.case-card:hover .case-phone picture { transform: translateY(-4px); }
.case-card:hover .case-phone:nth-child(2) picture { transform: translateY(-28px); }
.case-phone figcaption { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.nowrap { white-space: nowrap; }

.w-row { flex-direction: row; }
.w-row .work-shot { flex: 1.3; }
.w-row .work-info { flex: 1; justify-content: center; }

/* ---------- SNP: motion ---------- */
.case-phone picture { position: relative; overflow: hidden; translate: 0 0; }
.case-shots[data-inview] .case-phone { opacity: 0; translate: 0 36px; transition: opacity .7s var(--ease), translate .8s var(--ease); }
.case-shots[data-inview] .case-phone:nth-child(2) { transition-delay: .12s; }
.case-shots[data-inview] .case-phone:nth-child(3) { transition-delay: .24s; }
.case-shots.in-view .case-phone { opacity: 1; translate: 0 0; }
.case-shots.in-view .case-phone picture { animation: phone-float 6s ease-in-out infinite; }
.case-shots.in-view .case-phone:nth-child(2) picture { animation-delay: -2s; }
.case-shots.in-view .case-phone:nth-child(3) picture { animation-delay: -4s; }
@keyframes phone-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
/* scan line over the camera area of the scanner screen */
.scanline { position: absolute; z-index: 2; inset-inline: 9%; top: 22%; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, #4BE3B0, transparent); box-shadow: 0 0 14px 3px rgba(75, 227, 176, .55); opacity: 0; }
.case-shots.in-view .scanline { opacity: 1; animation: scan 2.6s ease-in-out infinite alternate; }
@keyframes scan { from { top: 20%; } to { top: 44%; } }
.fan-dots { display: none; }

/* ---------- MEDRA ---------- */
.case-medra {
  --med: #0E2A5C; --med-teal: #12A39A; --med-soft: #E7F6F4;
  display: block; background: linear-gradient(160deg, #fff 40%, #EEF6FB); border-color: #D6E6F2;
}
.medra-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.medra-brand { display: flex; align-items: center; gap: 10px; }
.medra-mark { width: 44px; height: 44px; }
.medra-brand span { font-family: system-ui, sans-serif; font-weight: 800; font-size: 1.5rem; letter-spacing: .06em; color: var(--med); }
.medra-tag { color: var(--med-teal); background: var(--med-soft); border-color: #BFE7E2; }
.medra-intro { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: end; margin: 18px 0 28px; }
.medra-intro h3 { font-size: 1.45rem; }
.medra-intro .case-sub { font-size: var(--fs-base); line-height: 1.85; margin-top: 8px; max-width: 46em; }
.medra-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.medra-modules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.mod { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px 14px 18px; display: flex; flex-direction: column; gap: 6px; transition: border-color .3s, box-shadow .3s, transform .3s var(--ease); }
.mod:hover { border-color: #BFDCEB; box-shadow: var(--shadow-md); transform: translateY(-3px); }
.mod h4 { margin: 8px 4px 0; font-size: 1.05rem; color: var(--navy); font-weight: 800; line-height: 1.5; }
.mod > p { margin: 0 4px; color: var(--muted); font-size: var(--fs-sm); line-height: 1.75; }
.mod-vis { position: relative; height: 132px; border-radius: 14px; background: linear-gradient(160deg, #F3F8FC, #EEF6F8); overflow: hidden; padding: 14px; display: flex; flex-direction: column; justify-content: center; gap: 8px; }
.medra-note { margin-top: 16px; font-size: var(--fs-xs); color: var(--muted); }

/* RPM */
.rpm-row { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--navy); }
.pill { font-size: 11px; font-weight: 800; border-radius: 999px; padding: 1px 10px; }
.pill-alert { background: #FDECEC; color: #B4232F; }
.in-view .pill-alert { animation: pill-pulse 2s ease-in-out infinite; }
@keyframes pill-pulse { 50% { box-shadow: 0 0 0 5px rgba(180, 35, 47, .12); } }
.ecg { width: 100%; height: 34px; }
.ecg path { fill: none; stroke: var(--med-teal); stroke-width: 2.2; stroke-dasharray: 420; stroke-dashoffset: 420; }
.in-view .ecg path { animation: ecg 3.2s linear infinite; }
.rpm-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.rpm-stats span { background: #fff; border-radius: 9px; padding: 3px 8px; font-size: 10.5px; color: var(--muted); line-height: 1.5; }
.rpm-stats b { display: block; color: var(--navy); font-size: 13px; font-family: system-ui, sans-serif; }
.rpm-stats .t-watch { color: #A26A00; font-family: var(--font); }

/* Devices flow */
.v-flow { flex-direction: row; align-items: center; justify-content: space-between; gap: 0; padding: 14px 10px; }
.v-flow .node { display: grid; justify-items: center; gap: 4px; flex: none; }
.v-flow .node .ic { width: 38px; height: 38px; padding: 9px; border-radius: 12px; background: #fff; color: var(--med); border: 1px solid #D6E6F2; box-sizing: border-box; }
.v-flow .node-hub .ic { background: var(--med); color: #fff; border-color: var(--med); }
.v-flow small { font-size: 10.5px; font-weight: 700; color: var(--muted); }
.v-flow .link { position: relative; flex: 1; height: 2px; margin: 0 4px 18px; background: repeating-linear-gradient(to left, #9CC6DA 0 5px, transparent 5px 9px); }
.v-flow .link em { position: absolute; top: -3px; inset-inline-start: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--med-teal); box-shadow: 0 0 8px var(--med-teal); opacity: 0; }
.in-view .v-flow .link em { animation: hop 3s linear infinite; }
.in-view .v-flow .link:nth-of-type(2) em { animation-delay: 1s; }
.in-view .v-flow .link:nth-of-type(3) em { animation-delay: 2s; }
@keyframes hop { 0% { inset-inline-start: 0; opacity: 0; } 5% { opacity: 1; } 30% { inset-inline-start: calc(100% - 8px); opacity: 1; } 34%, 100% { inset-inline-start: calc(100% - 8px); opacity: 0; } }

/* NFC card */
.v-card { align-items: center; perspective: 600px; }
.pcard { position: relative; width: 168px; height: 104px; border-radius: 12px; padding: 12px 14px; color: #fff; display: flex; flex-direction: column; justify-content: flex-end;
  background: radial-gradient(circle at 85% 15%, rgba(46,196,182,.55), transparent 50%), linear-gradient(135deg, #163E80, var(--med)); box-shadow: 0 16px 30px -14px rgba(14,42,92,.7); }
.pcard b { font-family: system-ui, sans-serif; font-size: 12px; letter-spacing: .12em; }
.pcard small { font-family: system-ui, sans-serif; font-size: 10px; opacity: .75; letter-spacing: .1em; }
.pcard-chip { position: absolute; top: 14px; inset-inline-end: 14px; width: 26px; height: 20px; border-radius: 4px; background: linear-gradient(135deg, #F4D68A, #C9A24A); }
.pcard-waves { position: absolute; top: 12px; inset-inline-start: 14px; width: 24px; height: 24px; }
.pcard-waves i { position: absolute; inset: 0; border: 2px solid rgba(255,255,255,.85); border-radius: 50%; clip-path: inset(0 0 0 55%); opacity: 0; }
.in-view .pcard { animation: card-tilt 5s ease-in-out infinite; }
.in-view .pcard-waves i { animation: wave-out 1.8s ease-out infinite; }
.in-view .pcard-waves i:nth-child(2) { animation-delay: .6s; }
.in-view .pcard-waves i:nth-child(3) { animation-delay: 1.2s; }
@keyframes card-tilt { 0%, 100% { transform: rotateY(-14deg) rotateX(6deg); } 50% { transform: rotateY(10deg) rotateX(-4deg); } }
@keyframes wave-out { from { transform: scale(.4); opacity: 1; } to { transform: scale(1.5); opacity: 0; } }

/* Funnel */
.v-funnel { gap: 6px; }
.v-funnel span { display: block; width: 0; height: 22px; border-radius: 7px; background: linear-gradient(to left, var(--med), #2A6BC0); color: #fff; font-size: 11px; line-height: 22px; padding-inline: 10px; white-space: nowrap; overflow: hidden; transition: width 1s var(--ease); }
.v-funnel span:nth-child(2) { background: linear-gradient(to left, #1F5AA8, #3C86D6); transition-delay: .15s; }
.v-funnel span:nth-child(3) { background: linear-gradient(to left, #1B8C9A, #2EB5B0); transition-delay: .3s; }
.v-funnel span:nth-child(4) { background: linear-gradient(to left, var(--med-teal), #4BD1C2); transition-delay: .45s; }
.in-view .v-funnel span { width: var(--w); }

/* Journey */
.v-journey ol { display: flex; justify-content: space-between; position: relative; margin: 0; padding: 0; list-style: none; }
.v-journey ol::before { content: ""; position: absolute; top: 8px; inset-inline: 8px; height: 2px; background: #CFE2EC; }
.v-journey li { position: relative; display: grid; justify-items: center; gap: 4px; }
.v-journey li i { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 2px solid #CFE2EC; }
.v-journey small { font-size: 10px; color: var(--muted); font-weight: 700; white-space: nowrap; }
.in-view .v-journey li i { animation: step-lit 6s infinite; }
.in-view .v-journey li:nth-child(2) i { animation-delay: .8s; }
.in-view .v-journey li:nth-child(3) i { animation-delay: 1.6s; }
.in-view .v-journey li:nth-child(4) i { animation-delay: 2.4s; }
.in-view .v-journey li:nth-child(5) i { animation-delay: 3.2s; }
@keyframes step-lit { 0%, 8% { background: #fff; border-color: #CFE2EC; } 12%, 80% { background: var(--med-teal); border-color: var(--med-teal); box-shadow: 0 0 0 4px rgba(18,163,154,.15); } 90%, 100% { background: #fff; border-color: #CFE2EC; box-shadow: none; } }
.j-label { font-size: 10.5px; color: var(--muted); text-align: center; margin-top: 8px; line-height: 1.6; }

/* Chat */
.v-chat { justify-content: flex-end; gap: 6px; }
.v-chat .demo-tag { position: absolute; top: 10px; inset-inline-end: 10px; font-size: 10.5px; }
.v-chat .b { margin: 0; max-width: 84%; font-size: 11.5px; line-height: 1.6; padding: 5px 10px; border-radius: 12px; opacity: 0; translate: 0 6px; }
.v-chat .b-user { align-self: flex-end; background: var(--med); color: #fff; border-start-end-radius: 4px; }
.v-chat .b-bot { align-self: flex-start; background: #fff; color: var(--text); border-start-start-radius: 4px; }
.v-chat .b-opts { align-self: flex-start; display: flex; gap: 6px; padding: 0; }
.v-chat .b-opts i { font-style: normal; font-size: 10.5px; font-weight: 700; color: var(--med); border: 1px solid #BFD3E8; background: #fff; border-radius: 999px; padding: 2px 9px; }
.in-view .v-chat .b { animation: chat-in 7s infinite; }
.in-view .v-chat .b-bot { animation-delay: .9s; }
.in-view .v-chat .b-opts { animation-delay: 1.6s; }
@keyframes chat-in { 0% { opacity: 0; translate: 0 6px; } 6%, 85% { opacity: 1; translate: 0 0; } 95%, 100% { opacity: 0; translate: 0 0; } }

@media (prefers-reduced-motion: reduce) {
  .case-shots[data-inview] .case-phone { opacity: 1; translate: none; }
  .scanline { display: none; }
  .v-funnel span { width: var(--w); }
  .v-chat .b { opacity: 1; translate: none; }
  .ecg path { stroke-dashoffset: 0; }
}

/* MR1 recommendation card in chat */
.advice-card { align-self: stretch; border-radius: 16px; padding: 12px 14px; background: #fff; border: 1.5px solid #CFE0F7; box-shadow: 0 8px 20px -14px rgba(15,99,207,.45); animation: msg-in .3s var(--ease) both; }
.advice-card h4 { margin: 0 0 6px; display: flex; align-items: center; gap: 6px; font-size: var(--fs-sm); color: var(--blue-ink); font-weight: 800; }
.advice-card h4 .ic { width: 16px; height: 16px; }
.advice-card p { font-size: 13px; line-height: 1.85; color: var(--text); white-space: pre-line; }

/* =========================================================
   Hero smart form (main conversion element)
   ========================================================= */
.quote { padding-top: 72px; background: linear-gradient(180deg, var(--bg), #fff); border-top: 1px solid var(--line); }
.quote-form { padding: 26px 28px 24px; border-radius: 28px; }
.smart-form { gap: 16px; }
.sf-head { display: grid; gap: 14px; }
.sf-title { font-size: 1.3rem; font-weight: 800; line-height: 1.5; }
.sf-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; counter-reset: none; }
.sf-steps li { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--muted); padding-top: 8px; border-top: 3px solid var(--line); transition: border-color .3s, color .3s; }
.sf-steps li span { flex: none; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; background: var(--bg); color: var(--muted); font-family: system-ui, sans-serif; transition: background-color .3s, color .3s; }
.sf-steps li.is-current { color: var(--navy); border-color: var(--blue); }
.sf-steps li.is-current span { background: var(--blue-ink); color: #fff; }
.sf-steps li.is-done { color: var(--success); border-color: #8FD3B6; }
.sf-steps li.is-done span { background: #E3F6EF; color: var(--success); }
.sf-step { display: grid; gap: 16px; animation: step-in .35s var(--ease) both; }
@keyframes step-in { from { opacity: 0; transform: translateX(-12px); } to { opacity: 1; transform: none; } }
.sf-group { display: grid; gap: 8px; }
.sf-q { font-weight: 800; color: var(--navy); font-size: var(--fs-sm); }
.sf-q small { font-weight: 600; color: var(--muted); font-size: 12px; margin-inline-start: 4px; }
.sf-input { width: 100%; border: 1.5px solid #D9E1EC; border-radius: 12px; padding: 9px 12px; font-size: .95rem; transition: border-color .2s, box-shadow .2s; }
.sf-input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(22,116,232,.14); }

/* option cards (service) */
.opt-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.opt-card { position: relative; cursor: pointer; }
.opt-card input, .chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opt-card span { display: grid; justify-items: center; gap: 6px; text-align: center; padding: 12px 6px 10px; border-radius: 14px; border: 1.5px solid #D9E1EC; background: #fff; font-size: 12.5px; font-weight: 700; color: var(--navy); line-height: 1.4; transition: border-color .2s, background-color .2s, color .2s, transform .15s; }
.opt-card .ic { width: 24px; height: 24px; color: var(--blue-ink); stroke-width: 1.8; }
.opt-card:hover span { border-color: #A9C5EA; }
.opt-card input:checked + span { border-color: var(--blue-ink); background: #EEF4FD; box-shadow: 0 0 0 3px rgba(22,116,232,.12); }
.opt-card input:focus-visible + span, .chip input:focus-visible + span { outline: 3px solid var(--cyan); outline-offset: 2px; }

/* chips (sector, field, plan, features, assets) */
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chips-col { display: grid; gap: 7px; }
.chip { cursor: pointer; position: relative; }
.chip span { display: inline-flex; align-items: center; gap: 4px; padding: 6px 13px; border-radius: 999px; border: 1.5px solid #D9E1EC; background: #fff; font-size: 13px; font-weight: 700; color: var(--navy); line-height: 1.5; transition: border-color .2s, background-color .2s, color .2s; }
.chips-col .chip span { border-radius: 12px; width: 100%; padding: 8px 14px; }
.chip:hover span { border-color: #A9C5EA; }
.chip input:checked + span { background: var(--blue-ink); border-color: var(--blue-ink); color: #fff; }
.chip input[type="checkbox"]:checked + span::before { content: ""; width: 12px; height: 12px; flex: none; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat; }
.chip.is-suggested span { border-style: dashed; }
.chip.is-suggested input:checked + span { border-style: solid; }

.sf-insight { display: grid; gap: 10px; }
.sf-insight:empty { display: none; }
.sf-nav { display: flex; gap: 10px; align-items: center; margin-top: 2px; }
.sf-nav [data-sf-next], .sf-nav [data-submit] { flex: 1; }
.ic.flip { transform: scaleX(-1); }
.quote-form .form-result { padding: 40px 8px; }

/* Sticky "request your project" (desktop) */
.sticky-cta {
  position: fixed; z-index: 58; bottom: 24px; inset-inline-start: 24px;
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px;
  border-radius: 999px; background: var(--blue-ink); color: #fff; font-weight: 800; font-size: var(--fs-sm);
  box-shadow: 0 18px 40px -14px rgba(15,99,207,.8);
  opacity: 0; transform: translateY(16px) scale(.96); pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease), background-color .2s;
}
.sticky-cta .ic { width: 20px; height: 20px; }
.sticky-cta.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.sticky-cta:hover { background: #0B57B8; transform: translateY(-2px); }
.sticky-cta.is-visible::after { content: ""; position: absolute; inset: -4px; border-radius: inherit; border: 2px solid var(--blue); opacity: 0; animation: ring 3.2s ease-out 1s infinite; }

/* ---------- SoftCloud ERP ---------- */
.case-sc { --sc: #0A3D62; --sc-blue: #1E88E5; --sc-tint: #E6F1FD; background: linear-gradient(135deg, #fff 35%, #F0F6FF); border-color: #D0E3F5; grid-template-columns: .9fr 1.1fr; }
.sc-brand { display: flex; align-items: center; gap: 8px; }
.sc-mark { width: 44px; height: 44px; }
.sc-brand span { font-family: system-ui, sans-serif; font-size: 1.35rem; font-weight: 700; color: var(--sc); letter-spacing: -.01em; }
.sc-brand b { color: var(--sc-blue); font-weight: 800; }
.sc-tag { color: var(--sc-blue); background: var(--sc-tint); border-color: #C4DCF6; }
.case-sc .case-features .ic { color: var(--sc-blue); }
.sc-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.sc-vis { position: relative; padding: 26px 30px 54px 10px; }
.sc-app { display: flex; gap: 10px; background: #fff; border: 1px solid #D0E3F5; border-radius: 18px; padding: 12px; box-shadow: 0 30px 60px -30px rgba(10,61,98,.45); }
.sc-side { width: 38px; flex: none; background: var(--sc); border-radius: 12px; padding: 10px 8px; display: flex; flex-direction: column; gap: 9px; }
.sc-side i { height: 18px; border-radius: 6px; background: rgba(255,255,255,.18); }
.sc-side i.on { background: var(--sc-blue); }
.sc-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.sc-top { display: flex; justify-content: space-between; align-items: baseline; font-size: 12px; }
.sc-top b { color: var(--sc); font-size: 14px; font-weight: 800; }
.sc-top span { color: #5A7A96; font-size: 11px; }
.sc-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.sc-kpis div { background: #F0F6FF; border-radius: 10px; padding: 7px 10px; line-height: 1.5; }
.sc-kpis small { display: block; font-size: 10.5px; color: #5A7A96; }
.sc-kpis b { font-family: system-ui, sans-serif; font-size: 15px; color: var(--sc); }
.sc-kpis em { font-style: normal; display: block; font-family: system-ui, sans-serif; font-size: 10.5px; color: #5A7A96; }
.sc-kpis em.up { color: #138A5E; }
.sc-chart { height: 120px; display: flex; align-items: flex-end; gap: 8px; padding: 12px; border: 1px solid #E3EEF9; border-radius: 12px; }
.sc-chart i { flex: 1; height: 8%; border-radius: 5px 5px 2px 2px; background: linear-gradient(var(--sc-blue), rgba(30,136,229,.3)); transition: height 1s var(--ease); }
.sc-chart i:nth-child(2n) { transition-delay: .08s; } .sc-chart i:nth-child(3n) { transition-delay: .16s; }
.in-view .sc-chart i { height: var(--h); }

.sc-float { position: absolute; z-index: 2; display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid #D0E3F5; border-radius: 14px; padding: 9px 12px; box-shadow: 0 18px 36px -20px rgba(10,61,98,.5); font-size: 12px; line-height: 1.5; opacity: 0; translate: 0 14px; transition: opacity .6s var(--ease), translate .6s var(--ease); }
.sc-float b { display: block; color: var(--sc); font-size: 12.5px; }
.sc-float small { color: #5A7A96; font-size: 11px; }
.in-view .sc-float { opacity: 1; translate: 0 0; }
.sc-invoice { top: -6px; inset-inline-end: -4px; transition-delay: .3s; }
.sc-alert { bottom: 66px; inset-inline-end: 0; transition-delay: .7s; }
.sc-payroll { bottom: 70px; inset-inline-start: 30px; color: #138A5E; font-weight: 700; transition-delay: 1.1s; }
.sc-payroll .ic { width: 15px; height: 15px; stroke-width: 3; }
.in-view .sc-invoice { animation: sc-bob 6s ease-in-out 1s infinite; }
.in-view .sc-alert { animation: sc-bob 6s ease-in-out 3s infinite; }
@keyframes sc-bob { 0%, 100% { transform: none; } 50% { transform: translateY(-6px); } }
.sc-qr { display: grid; grid-template-columns: repeat(3, 8px); gap: 2px; padding: 3px; border: 1px solid #D0E3F5; border-radius: 4px; }
.sc-qr i { width: 8px; height: 8px; background: var(--sc); border-radius: 1px; }
.sc-qr i:nth-child(2), .sc-qr i:nth-child(6), .sc-qr i:nth-child(7) { background: transparent; }
.sc-alert .dot { width: 10px; height: 10px; border-radius: 50%; background: #E8A317; box-shadow: 0 0 0 4px rgba(232,163,23,.18); flex: none; }
.in-view .sc-alert .dot { animation: pill-pulse 1.8s ease-in-out infinite; }

.sc-marquee { position: absolute; inset-inline: 0; bottom: 14px; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); direction: ltr; }
.sc-track { display: flex; gap: 8px; width: max-content; }
.in-view .sc-track { animation: marquee 32s linear infinite; }
.sc-track span { font-size: 12px; font-weight: 700; color: var(--sc); background: #fff; border: 1px solid #D0E3F5; border-radius: 999px; padding: 3px 12px; white-space: nowrap; direction: rtl; }
@keyframes marquee { to { transform: translateX(-50%); } }
.sc-note { position: absolute; top: 2px; inset-inline-start: 56px; font-size: 11px; color: #5A7A96; }

@media (prefers-reduced-motion: reduce) {
  .sc-float { opacity: 1; translate: none; }
  .sc-chart i { height: var(--h); }
}

.case-brand { flex-wrap: wrap; }
.real-tag { white-space: nowrap; }

/* SoftCloud real logo */
.sc-logo img { height: 52px; width: auto; }

/* ---------- EONE × Perfect Line (real project in the bento grid) ---------- */
.shot-eone { --eo-navy: #052B55; --eo-gold: #D6A53A; --eo-cyan: #08A7C6; padding: 20px 20px 0; background: linear-gradient(160deg, #E7F1FA, #F5F7FB); }
.shot-eone > .mk-bar { background: #fff; border-radius: 12px 12px 0 0; border: 1px solid var(--line); border-bottom: 0; }
.eo-site { background: var(--eo-navy); color: #fff; padding: 12px 16px 14px; border: 1px solid #0E4580; border-top: 0; }
.eo-nav { display: flex; align-items: center; gap: 8px; font-size: 11px; }
.eo-nav b { margin-inline-end: auto; font-family: system-ui, sans-serif; font-weight: 800; font-size: 12px; letter-spacing: .02em; }
.eo-nav b em { font-style: normal; color: var(--eo-gold); }
.eo-nav span { width: 28px; height: 5px; border-radius: 3px; background: rgba(255,255,255,.22); }
.eo-nav i { font-style: normal; font-weight: 700; background: var(--eo-gold); color: var(--eo-navy); padding: 2px 10px; border-radius: 999px; }
.eo-hero { display: grid; grid-template-columns: 1fr 1.05fr; gap: 10px; align-items: center; margin-top: 10px; }
.eo-copy small { color: var(--eo-gold); font-size: 10.5px; font-weight: 700; }
.eo-h { font-size: 19px; font-weight: 900; line-height: 1.4; }
.eo-s { font-size: 11px; color: #B8CCE0; }
.eo-track { margin-top: 8px; display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); border-radius: 10px; padding: 4px 10px; font-size: 10.5px; }
.eo-track span { font-family: system-ui, sans-serif; color: #fff; font-weight: 700; }
.eo-track b { color: #7BE0C3; font-weight: 700; }
.eo-map svg { width: 100%; height: auto; overflow: visible; }
.eo-route { fill: none; stroke: rgba(8,167,198,.55); stroke-width: 1.6; stroke-dasharray: 4 5; }
.in-view .eo-route { animation: dash 9s linear infinite; }
.eo-ship { fill: var(--eo-gold); filter: drop-shadow(0 0 4px rgba(214,165,58,.9)); }
.eo-city circle { fill: #fff; stroke: var(--eo-cyan); stroke-width: 2; }
.eo-dest circle { fill: var(--eo-gold); stroke: #fff; }
.eo-city text { fill: #CFE0F0; font-size: 9px; font-weight: 700; text-anchor: middle; font-family: var(--font); }
.eo-lanes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 10px; }
.eo-lanes span { background: rgba(255,255,255,.07); border-radius: 8px; padding: 4px 8px; font-size: 10px; color: #CFE0F0; line-height: 1.6; }
.eo-lanes b { display: block; color: #fff; font-size: 11px; font-family: system-ui, sans-serif; }
.eo-tag { color: #0E6E58; background: #E3F6EF; border-color: #BFE6D6; }
.work-links { display: flex; align-items: center; gap: 18px; margin-top: 6px; }
.link-btn.muted { color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .eo-ship { display: none; } }
.eo-nav i { white-space: nowrap; }
@media (max-width: 640px) { .eo-nav span { display: none; } .eo-nav b { font-size: 11px; } }

/* single-colour vector icons in quick replies, chips and bot messages */
.qr { display: inline-flex; align-items: center; gap: 7px; }
.qr .ic { width: 17px; height: 17px; color: var(--blue-ink); flex: none; }
.qr.qr-primary .ic, .qr.qr-wa .ic { color: currentColor; }
.chip span .ic { width: 15px; height: 15px; flex: none; color: var(--blue-ink); }
.chip input:checked + span .ic { color: currentColor; }
.msg.has-icon .ic { display: inline-block; width: 17px; height: 17px; vertical-align: -3px; margin-inline-end: 6px; color: var(--blue-ink); }

/* ---------- SoftCloud: real screenshots ---------- */
.sc-browser { position: relative; background: #fff; border: 1px solid #D0E3F5; border-radius: 16px; overflow: hidden; box-shadow: 0 34px 70px -34px rgba(10,61,98,.55); }
.sc-browser .mk-bar { background: #F6FAFE; }
.sc-tabs { display: flex; gap: 6px; padding: 8px 10px; border-bottom: 1px solid #E3EEF9; background: #fff; overflow-x: auto; scrollbar-width: none; }
.sc-tabs::-webkit-scrollbar { display: none; }
.sc-tabs button { flex: none; font: inherit; font-size: 12.5px; font-weight: 700; color: #5A7A96; background: transparent; border: 1px solid transparent; border-radius: 999px; padding: 4px 14px; cursor: pointer; transition: background .25s, color .25s; }
.sc-tabs button:hover { color: var(--sc); background: #F0F6FF; }
.sc-tabs button.on { color: #fff; background: var(--sc-blue); }
.sc-tabs button:focus-visible { outline: 2px solid var(--sc-blue); outline-offset: 2px; }
.sc-screens { position: relative; aspect-ratio: 1600 / 840; background: #F4F7FB; }
.sc-screen { position: absolute; inset: 0; opacity: 0; transform: scale(1.015); transition: opacity .6s var(--ease), transform 1.2s var(--ease); }
.sc-screen.on { opacity: 1; transform: none; }
.sc-screen img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.sc-screens::after { content: ""; position: absolute; inset: auto 0 0; height: 4px; background: linear-gradient(90deg, var(--sc-blue), #6FB6F2); transform-origin: right; transform: scaleX(0); }
.sc-screens.ticking::after { animation: sc-tick var(--sc-dur, 5s) linear forwards; }
@keyframes sc-tick { to { transform: scaleX(1); } }
.case-sc .sc-vis { padding: 26px 14px 58px 6px; }
.case-sc .sc-invoice { top: 0; inset-inline-end: -10px; }
.case-sc .sc-payroll { bottom: 72px; inset-inline-start: -8px; inset-inline-end: auto; background: #fff; }
.case-sc .sc-note { top: 2px; inset-inline-start: 10px; }

/* ---------- EONE × Perfect Line showcase ---------- */
.case-eo { --eo-navy: #052B55; --eo-gold: #D6A53A; --eo-cyan: #08A7C6; --case: #0B5F86; --case-soft: #E5F0F8; background: linear-gradient(135deg, #fff 30%, #E9F1F8); border-color: #CFE0EE; grid-template-columns: .9fr 1.1fr; }
.eo-logo { display: inline-flex; align-items: baseline; gap: 6px; font-family: system-ui, sans-serif; font-weight: 800; font-size: 1.3rem; color: var(--eo-navy); letter-spacing: .01em; }
.eo-logo em { font-style: normal; color: var(--eo-gold); }
.case-eo .eo-tag { color: #0E6E58; background: #E3F6EF; border-color: #BFE6D6; }
.case-eo .case-features .ic { color: var(--eo-cyan); }
.eo-btn { background: var(--eo-navy); border-color: var(--eo-navy); }
.eo-btn:hover { background: #0A3F78; }

.eo-vis { position: relative; padding: 24px 0 40px 70px; }
.eo-browser { background: #fff; border: 1px solid #CFE0EE; border-radius: 16px; overflow: hidden; box-shadow: 0 34px 70px -34px rgba(5,43,85,.6); }
.eo-browser .mk-bar { background: #F5F8FB; }
.eo-vis .eo-site { border: 0; padding: 14px 18px 16px; background: radial-gradient(120% 90% at 0% 0%, #0B4A86 0%, var(--eo-navy) 55%, #031D3B 100%); }
.eo-vis .eo-nav { font-size: 11px; color: #B8CCE0; }
.eo-vis .eo-nav span { width: auto; height: auto; background: none; border-radius: 0; font-weight: 600; }
.eo-vis .eo-hero { grid-template-columns: 1fr 1.1fr; margin-top: 14px; }
.eo-vis .eo-h { font-size: 22px; line-height: 1.35; margin: 4px 0 6px; }
.eo-search { margin-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 8px; background: #fff; border-radius: 10px; padding: 4px 4px 4px 4px; max-width: 220px; box-shadow: 0 8px 20px -10px rgba(0,0,0,.5); }
.eo-search span { padding-inline: 8px; font-family: system-ui, sans-serif; font-size: 11px; font-weight: 700; color: #6B7F95; }
.eo-search b { font-size: 11px; background: var(--eo-gold); color: var(--eo-navy); padding: 4px 12px; border-radius: 8px; }
.eo-dots circle { fill: rgba(255,255,255,.22); }
.eo-vis .eo-lanes span { display: grid; gap: 1px; padding: 6px 10px; border: 1px solid rgba(255,255,255,.1); font-size: 10px; color: #8FB0CF; }
.eo-vis .eo-lanes b { font-size: 11.5px; font-family: var(--font); }
.eo-vis .eo-lanes em { font-style: normal; color: var(--eo-gold); font-weight: 700; font-family: system-ui, sans-serif; font-size: 11px; }

.eo-phone { position: absolute; z-index: 3; inset-inline-end: auto; left: 0; bottom: 0; width: 176px; padding: 7px; border-radius: 30px; background: #0A1626; box-shadow: 0 30px 60px -22px rgba(3,29,59,.75), inset 0 0 0 1.5px #2A3A50; opacity: 0; translate: 0 30px; transition: opacity .7s var(--ease) .25s, translate .8s var(--ease) .25s; }
.in-view .eo-phone { opacity: 1; translate: 0 0; }
.eo-notch { position: absolute; top: 12px; left: 50%; width: 52px; height: 14px; margin-left: -26px; border-radius: 10px; background: #0A1626; z-index: 2; }
.eo-app { border-radius: 24px; overflow: hidden; background: #F3F6FA; padding: 30px 11px 12px; display: grid; gap: 8px; }
.eo-app-top { display: flex; justify-content: space-between; align-items: baseline; }
.eo-app-top b { font-size: 12.5px; color: var(--eo-navy); }
.eo-app-top span { font-family: system-ui, sans-serif; font-size: 9.5px; font-weight: 700; color: #6B7F95; }
.eo-app-route { display: flex; align-items: center; gap: 6px; font-size: 10px; font-weight: 800; color: var(--eo-navy); background: #fff; border-radius: 12px; padding: 8px; }
.eo-app-route i { position: relative; flex: 1; height: 4px; border-radius: 4px; background: #DCE6F0; }
.eo-app-route i::before { content: ""; position: absolute; inset-block: 0; right: 0; width: 72%; border-radius: 4px; background: linear-gradient(270deg, var(--eo-cyan), var(--eo-navy)); }
.eo-app-route em { position: absolute; top: 50%; right: 72%; width: 11px; height: 11px; margin: -5.5px -5.5px 0 0; border-radius: 50%; background: var(--eo-gold); box-shadow: 0 0 0 4px rgba(214,165,58,.25); }
.in-view .eo-app-route em { animation: pill-pulse 1.8s ease-in-out infinite; }
.eo-app-eta { display: flex; justify-content: space-between; align-items: center; background: var(--eo-navy); color: #fff; border-radius: 12px; padding: 7px 10px; }
.eo-app-eta small { font-size: 9.5px; color: #B8CCE0; }
.eo-app-eta b { font-size: 11.5px; color: var(--eo-gold); }
.eo-steps { list-style: none; margin: 0; padding: 8px 10px; background: #fff; border-radius: 12px; display: grid; gap: 6px; }
.eo-steps li { position: relative; padding-inline-start: 18px; line-height: 1.35; }
.eo-steps li::before { content: ""; position: absolute; inset-inline-start: 0; top: 3px; width: 9px; height: 9px; border-radius: 50%; border: 2px solid #C9D6E3; background: #fff; }
.eo-steps li:not(:last-child)::after { content: ""; position: absolute; inset-inline-start: 5.5px; top: 15px; bottom: -6px; width: 2px; background: #E3EAF2; }
.eo-steps li.done::before { background: var(--eo-cyan); border-color: var(--eo-cyan); }
.eo-steps li.done::after { background: var(--eo-cyan); }
.eo-steps li.now::before { background: var(--eo-gold); border-color: var(--eo-gold); box-shadow: 0 0 0 3px rgba(214,165,58,.25); }
.eo-steps b { display: block; font-size: 10.5px; color: var(--eo-navy); }
.eo-steps li:not(.done):not(.now) b { color: #8A9AAC; }
.eo-steps small { font-size: 9px; color: #7A8CA0; }
.eo-app-cta { text-align: center; font-size: 10.5px; font-weight: 800; color: #fff; background: #1FA855; border-radius: 10px; padding: 7px; }

.eo-float { position: absolute; z-index: 4; display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid #CFE0EE; border-radius: 14px; padding: 9px 12px; box-shadow: 0 18px 36px -20px rgba(5,43,85,.55); font-size: 12px; line-height: 1.5; opacity: 0; translate: 0 14px; transition: opacity .6s var(--ease) .8s, translate .6s var(--ease) .8s; }
.eo-float b { display: block; color: var(--eo-navy); font-size: 12.5px; }
.eo-float small { color: #5A7A96; font-size: 11px; }
.in-view .eo-float { opacity: 1; translate: 0 0; animation: sc-bob 6s ease-in-out 2s infinite; }
.eo-quote { top: 0; inset-inline-end: -10px; }
.eo-fi { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #E3F6EF; color: #138A5E; flex: none; }
.eo-fi .ic { width: 15px; height: 15px; stroke-width: 3; }
.eo-note { top: 2px; inset-inline-start: 80px; }

/* remaining concept cards: two side by side */
.work-duo { grid-template-columns: 1fr 2fr; }
.work-duo .work-card:nth-child(n) { grid-column: auto; }

@media (prefers-reduced-motion: reduce) {
  .eo-phone, .eo-float { opacity: 1; translate: none; transition: none; }
  .sc-screen { transition: none; }
}
/* EONE composition tuning */
.eo-vis { padding: 30px 0 34px 104px; }
.eo-phone { width: 150px; bottom: 0; padding: 6px; border-radius: 26px; }
.eo-app { border-radius: 21px; padding: 26px 9px 10px; gap: 7px; }
.eo-notch { top: 10px; width: 44px; margin-left: -22px; height: 12px; }
.eo-app-route { font-size: 9.5px; padding: 7px; }
.eo-steps { padding: 8px 9px; gap: 7px; }
.eo-steps b { font-size: 10px; }
.eo-quote { inset-inline-end: auto; inset-inline-start: -8px; top: 4px; }
.eo-note { inset-inline-start: auto; inset-inline-end: 0; top: 4px; }
.eo-vis .eo-hero { align-items: end; }
.eo-vis { padding-left: 122px; }
.eo-phone { left: -6px; }
.eo-app-eta { gap: 6px; padding: 6px 8px; }
.eo-app-eta small { font-size: 9px; white-space: nowrap; }
.eo-app-eta b { font-size: 10.5px; white-space: nowrap; }
/* Saudi Riyal sign as inline vector (no font needed) */
.sar { display: inline-block; width: .9em; height: 1em; vertical-align: -.12em; fill: currentColor; stroke: none; }
