/* =========================================================
   Cliniva — Marketing site design system
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  --brand-50: #f0fdfa;
  --brand-100: #ccfbf1;
  --brand-200: #99f6e4;
  --brand-300: #5eead4;
  --brand-400: #2dd4bf;
  --brand-500: #14b8a6;
  --brand-600: #0d9488;
  --brand-700: #0f766e;
  --brand-800: #115e59;
  --brand-900: #134e4a;

  --violet-500: #6366f1;
  --violet-600: #4f46e5;

  --ink: #0b1220;
  --ink-2: #1e293b;
  --muted: #5b6b7f;
  --line: rgb(15 23 42 / 0.09);
  --line-strong: rgb(15 23 42 / 0.14);

  --bg: #ffffff;
  --bg-soft: #f5f9f9;
  --bg-elev: #ffffff;
  --card: #ffffff;

  --shadow-sm: 0 1px 2px rgb(15 23 42 / 0.05), 0 6px 16px -10px rgb(15 23 42 / 0.18);
  --shadow-md: 0 2px 4px rgb(15 23 42 / 0.05), 0 18px 44px -18px rgb(15 23 42 / 0.28);
  --shadow-lg: 0 8px 24px -12px rgb(15 23 42 / 0.2), 0 40px 80px -32px rgb(13 148 136 / 0.35);

  --r-sm: 10px;
  --r: 16px;
  --r-lg: 22px;
  --r-xl: 30px;

  --maxw: 1180px;
  --nav-h: 72px;

  color-scheme: light;
}

[data-theme='dark'] {
  --ink: #eef3f8;
  --ink-2: #cbd5e1;
  --muted: #92a3b8;
  --line: rgb(255 255 255 / 0.10);
  --line-strong: rgb(255 255 255 / 0.18);

  --bg: #070d16;
  --bg-soft: #0b1320;
  --bg-elev: #0e1826;
  --card: #0e1826;

  --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.4), 0 6px 16px -10px rgb(0 0 0 / 0.6);
  --shadow-md: 0 2px 4px rgb(0 0 0 / 0.4), 0 18px 44px -18px rgb(0 0 0 / 0.7);
  --shadow-lg: 0 8px 24px -12px rgb(0 0 0 / 0.55), 0 40px 80px -32px rgb(0 0 0 / 0.8);

  color-scheme: dark;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'IBM Plex Sans Arabic', 'IBM Plex Sans', ui-sans-serif, system-ui, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.75;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
ul { list-style: none; padding: 0; }

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

::selection { background: var(--brand-200); color: var(--brand-900); }
[data-theme='dark'] ::selection { background: var(--brand-700); color: #fff; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 20px;
}

.section { padding-block: clamp(64px, 9vw, 116px); position: relative; }
.section--soft { background: var(--bg-soft); }
.section--tight { padding-block: clamp(48px, 6vw, 76px); }

.section-head { max-width: 680px; margin-bottom: clamp(32px, 4vw, 52px); }
.section-head--center { margin-inline: auto; text-align: center; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { line-height: 1.3; font-weight: 700; letter-spacing: -0.01em; }

.h-display {
  font-size: clamp(2.1rem, 5.4vw, 3.85rem);
  line-height: 1.18;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.h1 { font-size: clamp(1.9rem, 4.4vw, 3rem); line-height: 1.22; font-weight: 800; }
.h2 { font-size: clamp(1.55rem, 3.1vw, 2.35rem); font-weight: 800; letter-spacing: -0.015em; }
.h3 { font-size: clamp(1.15rem, 1.8vw, 1.4rem); font-weight: 700; }

.lead {
  font-size: clamp(1.02rem, 1.5vw, 1.18rem);
  color: var(--muted);
  line-height: 1.95;
}

.muted { color: var(--muted); }
.small { font-size: 0.9rem; }
.tiny { font-size: 0.8rem; }

.grad-text {
  background: linear-gradient(105deg, var(--brand-600), var(--brand-400) 45%, var(--violet-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--brand-700);
  background: var(--brand-50);
  border: 1px solid var(--brand-200);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
[data-theme='dark'] .eyebrow {
  color: var(--brand-300);
  background: rgb(20 184 166 / 0.10);
  border-color: rgb(20 184 166 / 0.28);
}
.eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--brand-500);
  box-shadow: 0 0 0 4px rgb(20 184 166 / 0.18);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.97rem;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }

.btn-primary {
  background: linear-gradient(135deg, var(--brand-600), var(--brand-500));
  color: #fff;
  box-shadow: 0 10px 24px -12px rgb(13 148 136 / 0.9);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 34px -14px rgb(13 148 136 / 0.95); }

.btn-ghost {
  background: var(--bg-elev);
  border-color: var(--line-strong);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--brand-400); color: var(--brand-700); }
[data-theme='dark'] .btn-ghost:hover { color: var(--brand-300); }

.btn-quiet { background: transparent; color: var(--ink-2); padding-inline: 12px; }
.btn-quiet:hover { color: var(--brand-600); }

.btn-light { background: #fff; color: var(--brand-800); }
.btn-light:hover { transform: translateY(-2px); }

.btn-outline-light { border-color: rgb(255 255 255 / 0.35); color: #fff; background: rgb(255 255 255 / 0.06); }
.btn-outline-light:hover { background: rgb(255 255 255 / 0.14); }

.btn-lg { padding: 15px 30px; font-size: 1.02rem; }
.btn-block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- Navbar ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background .25s ease, box-shadow .25s ease;
}
.nav.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px -24px rgb(15 23 42 / 0.5);
}
.nav__inner {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 20px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.22rem; letter-spacing: -0.02em; }
.brand__mark {
  width: 36px; height: 36px;
  border-radius: 11px;
  background: linear-gradient(140deg, var(--brand-500), var(--brand-700));
  display: grid; place-items: center;
  color: #fff;
  box-shadow: 0 8px 18px -10px rgb(13 148 136 / 0.95);
  flex: none;
}
.brand__mark svg { width: 20px; height: 20px; }

.nav__links { display: flex; align-items: center; gap: 4px; margin-inline-start: auto; }
.nav__links a {
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-2);
  transition: background .18s ease, color .18s ease;
}
.nav__links a:hover { background: var(--bg-soft); color: var(--ink); }
.nav__links a.is-active { color: var(--brand-700); background: var(--brand-50); font-weight: 600; }
[data-theme='dark'] .nav__links a:hover { background: rgb(255 255 255 / 0.06); }
[data-theme='dark'] .nav__links a.is-active { color: var(--brand-300); background: rgb(20 184 166 / 0.12); }

.nav__actions { display: flex; align-items: center; gap: 10px; }

.icon-btn {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  cursor: pointer;
  transition: border-color .18s ease, transform .18s ease, color .18s ease;
  flex: none;
}
.icon-btn:hover { border-color: var(--brand-400); color: var(--brand-600); transform: translateY(-1px); }
.icon-btn svg { width: 19px; height: 19px; }
.theme-toggle .moon { display: none; }
[data-theme='dark'] .theme-toggle .sun { display: none; }
[data-theme='dark'] .theme-toggle .moon { display: block; }

.nav__burger { display: none; }

.mobile-menu {
  position: fixed;
  inset: var(--nav-h) 0 auto 0;
  z-index: 55;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  padding: 18px 20px 26px;
  box-shadow: var(--shadow-md);
  transform: translateY(-12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.mobile-menu.is-open { opacity: 1; transform: none; pointer-events: auto; }
.mobile-menu a {
  display: block;
  padding: 13px 14px;
  border-radius: 12px;
  font-weight: 600;
  color: var(--ink-2);
  border-bottom: 1px solid var(--line);
}
.mobile-menu a:last-of-type { border-bottom: 0; }
.mobile-menu .btn { margin-top: 14px; }

/* ---------- Decorative backgrounds ---------- */
.glow { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.glow::before,
.glow::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
}
.glow::before {
  width: 520px; height: 520px;
  inset-inline-end: -140px; top: -220px;
  background: radial-gradient(circle, var(--brand-300), transparent 68%);
}
.glow::after {
  width: 460px; height: 460px;
  inset-inline-start: -160px; top: 120px;
  background: radial-gradient(circle, #c7d2fe, transparent 68%);
}
[data-theme='dark'] .glow::before { opacity: 0.22; }
[data-theme='dark'] .glow::after { opacity: 0.18; }

.grid-lines {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 62px 62px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 75%);
}

.section > .container { position: relative; z-index: 1; }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(56px, 8vw, 104px) clamp(56px, 8vw, 96px); position: relative; overflow: hidden; }
.hero__grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.hero__copy { max-width: 620px; }
.hero p.lead { margin-top: 20px; }
.hero .btn-row { margin-top: 30px; }

.hero__proof { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 28px; color: var(--muted); font-size: 0.9rem; }
.hero__proof span { display: inline-flex; align-items: center; gap: 7px; }
.hero__proof svg { width: 17px; height: 17px; color: var(--brand-600); flex: none; }

.hero--inner { padding-block: clamp(50px, 7vw, 86px) clamp(34px, 4vw, 54px); text-align: center; }
.hero--inner .lead { margin-inline: auto; max-width: 660px; margin-top: 18px; }
.hero--inner .btn-row { justify-content: center; margin-top: 28px; }

/* ---------- App mockup ---------- */
.mock {
  position: relative;
  border-radius: var(--r-xl);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  padding: 16px;
  transform: perspective(1400px) rotateY(6deg) rotateX(2deg);
  transition: transform .5s ease;
}
.mock:hover { transform: perspective(1400px) rotateY(2deg) rotateX(0); }
[dir='ltr'] .mock { transform: perspective(1400px) rotateY(-6deg) rotateX(2deg); }

.mock__bar { display: flex; align-items: center; gap: 7px; padding: 4px 6px 14px; }
.mock__bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.mock__bar i:first-child { background: #f87171; }
.mock__bar i:nth-child(2) { background: #fbbf24; }
.mock__bar i:nth-child(3) { background: #34d399; }
.mock__bar span { margin-inline-start: auto; font-size: 0.72rem; color: var(--muted); }

.mock__body { display: grid; gap: 12px; }

.mrow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }

.mstat {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 13px;
}
.mstat b { display: block; font-size: 1.12rem; font-weight: 800; letter-spacing: -0.02em; }
.mstat small { color: var(--muted); font-size: 0.72rem; }
.mstat--brand { background: linear-gradient(140deg, var(--brand-600), var(--brand-700)); border-color: transparent; color: #fff; }
.mstat--brand small { color: rgb(255 255 255 / 0.78); }

.mlist { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.mlist__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 14px; background: var(--bg-soft);
  font-size: 0.82rem; font-weight: 700;
  border-bottom: 1px solid var(--line);
}
.mlist__head em { font-style: normal; color: var(--brand-600); font-size: 0.74rem; font-weight: 600; }
.mitem {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 0.82rem;
}
.mitem:last-child { border-bottom: 0; }
.mitem .av {
  width: 30px; height: 30px; border-radius: 10px; flex: none;
  display: grid; place-items: center;
  background: var(--brand-50); color: var(--brand-700);
  font-size: 0.72rem; font-weight: 700;
}
[data-theme='dark'] .mitem .av { background: rgb(20 184 166 / 0.14); color: var(--brand-300); }
.mitem .who { display: grid; line-height: 1.5; }
.mitem .who small { color: var(--muted); font-size: 0.72rem; }
.mitem .pill { margin-inline-start: auto; }

.pill {
  font-size: 0.68rem; font-weight: 700;
  padding: 4px 10px; border-radius: 999px;
  background: var(--brand-50); color: var(--brand-700);
  border: 1px solid var(--brand-200);
}
.pill--amber { background: #fffbeb; color: #b45309; border-color: #fde68a; }
.pill--sky { background: #eff6ff; color: #1d4ed8; border-color: #bfdbfe; }
.pill--rose { background: #fff1f2; color: #be123c; border-color: #fecdd3; }
[data-theme='dark'] .pill { background: rgb(20 184 166 / 0.12); border-color: rgb(20 184 166 / 0.28); color: var(--brand-300); }
[data-theme='dark'] .pill--amber { background: rgb(251 191 36 / 0.12); border-color: rgb(251 191 36 / 0.3); color: #fcd34d; }
[data-theme='dark'] .pill--sky { background: rgb(59 130 246 / 0.12); border-color: rgb(59 130 246 / 0.3); color: #93c5fd; }
[data-theme='dark'] .pill--rose { background: rgb(244 63 94 / 0.12); border-color: rgb(244 63 94 / 0.3); color: #fda4af; }

.bars { display: flex; align-items: flex-end; gap: 7px; height: 78px; padding: 12px 14px 0; }
.bars i {
  flex: 1;
  border-radius: 6px 6px 3px 3px;
  background: linear-gradient(180deg, var(--brand-400), var(--brand-600));
  opacity: 0.85;
  animation: grow .9s cubic-bezier(.22,1,.36,1) both;
}
@keyframes grow { from { transform: scaleY(.15); opacity: 0; } to { transform: scaleY(1); opacity: .85; } }
.bars i { transform-origin: bottom; }

.float-card {
  position: absolute;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  padding: 12px 14px;
  display: flex; align-items: center; gap: 10px;
  font-size: 0.8rem; font-weight: 600;
  animation: floaty 5.5s ease-in-out infinite;
}
.float-card small { display: block; color: var(--muted); font-weight: 500; font-size: 0.72rem; }
.float-card .ico {
  width: 32px; height: 32px; border-radius: 10px; flex: none;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(140deg, var(--brand-500), var(--brand-700));
}
.float-card .ico svg { width: 17px; height: 17px; }
.float-card--a { inset-inline-start: -30px; top: -26px; }
.float-card--b { inset-inline-end: -26px; bottom: -22px; animation-delay: -2.6s; }
.float-card--b .ico { background: linear-gradient(140deg, var(--violet-500), var(--violet-600)); }

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

.mock-wrap { position: relative; }

/* ---------- Cards / grids ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  position: relative;
  overflow: hidden;
}
.card--hover:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--brand-300); }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 0.94rem; line-height: 1.85; }

.card__icon {
  width: 46px; height: 46px;
  border-radius: 14px;
  display: grid; place-items: center;
  background: var(--brand-50);
  color: var(--brand-700);
  margin-bottom: 16px;
  border: 1px solid var(--brand-100);
}
.card__icon svg { width: 22px; height: 22px; }
[data-theme='dark'] .card__icon { background: rgb(20 184 166 / 0.12); border-color: rgb(20 184 166 / 0.25); color: var(--brand-300); }
.card__icon--violet { background: #eef2ff; border-color: #e0e7ff; color: var(--violet-600); }
[data-theme='dark'] .card__icon--violet { background: rgb(99 102 241 / 0.14); border-color: rgb(99 102 241 / 0.3); color: #a5b4fc; }

/* ---------- Stats strip ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.stats > div { background: var(--card); padding: 26px 22px; text-align: center; }
.stats b { display: block; font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; letter-spacing: -0.02em; color: var(--brand-600); }
.stats span { color: var(--muted); font-size: 0.88rem; }

/* ---------- Feature split rows ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 68px);
  align-items: center;
}
.split + .split { margin-top: clamp(56px, 7vw, 92px); }
.split--flip .split__media { order: -1; }

.ticks { display: grid; gap: 12px; margin-top: 22px; }
.ticks li { display: flex; gap: 11px; align-items: flex-start; color: var(--ink-2); font-size: 0.96rem; }
.ticks svg { width: 21px; height: 21px; flex: none; color: var(--brand-600); margin-top: 3px; }

/* ---------- Dental chart mock ---------- */
.teeth {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 7px;
}
.teeth i {
  aspect-ratio: 3/4;
  border-radius: 8px 8px 12px 12px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  display: block;
  transition: transform .2s ease;
}
.teeth i:hover { transform: translateY(-3px); }
.teeth i.t-done { background: linear-gradient(180deg, var(--brand-400), var(--brand-600)); border-color: transparent; }
.teeth i.t-plan { background: #fde68a; border-color: #fcd34d; }
.teeth i.t-alert { background: #fda4af; border-color: #fb7185; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 14px; font-size: 0.78rem; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend em { width: 11px; height: 11px; border-radius: 4px; display: inline-block; }

/* ---------- Invoice mock ---------- */
.inv { display: grid; gap: 9px; font-size: 0.85rem; }
.inv__row { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 9px; border-bottom: 1px dashed var(--line-strong); }
.inv__row:last-child { border-bottom: 0; }
.inv__row b { font-variant-numeric: tabular-nums; }
.inv__total { font-size: 1.05rem; font-weight: 800; color: var(--brand-700); }
[data-theme='dark'] .inv__total { color: var(--brand-300); }
.progress { height: 8px; border-radius: 999px; background: var(--bg-soft); overflow: hidden; border: 1px solid var(--line); }
.progress i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--brand-500), var(--brand-700)); }

/* ---------- Dark band ---------- */
.band {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0b1220 0%, #10312e 55%, #0b1220 100%);
  color: #fff;
}
.band::before {
  content: '';
  position: absolute;
  width: 640px; height: 640px;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(20 184 166 / .35), transparent 65%);
  inset-inline-end: -180px; top: -240px;
  filter: blur(30px);
}
.band::after {
  content: '';
  position: absolute;
  width: 520px; height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(99 102 241 / .3), transparent 65%);
  inset-inline-start: -180px; bottom: -240px;
  filter: blur(30px);
}
.band .container { position: relative; z-index: 1; }
.band .lead, .band .muted { color: rgb(255 255 255 / 0.74); }
.band .eyebrow { background: rgb(255 255 255 / 0.10); border-color: rgb(255 255 255 / 0.22); color: #99f6e4; }
.band .card {
  background: rgb(255 255 255 / 0.055);
  border-color: rgb(255 255 255 / 0.12);
  backdrop-filter: blur(8px);
  box-shadow: none;
}
.band .card p { color: rgb(255 255 255 / 0.72); }
.band .card__icon { background: rgb(255 255 255 / 0.10); border-color: rgb(255 255 255 / 0.18); color: #5eead4; }
.band .ticks li { color: rgb(255 255 255 / 0.82); }
.band .ticks svg { color: #5eead4; }

/* ---------- Chat mock (AI) ---------- */
.chat { display: grid; gap: 12px; }
.bubble {
  max-width: 86%;
  padding: 12px 15px;
  border-radius: 18px;
  font-size: 0.9rem;
  line-height: 1.8;
  box-shadow: var(--shadow-sm);
}
.bubble--me {
  margin-inline-start: auto;
  background: linear-gradient(135deg, var(--brand-600), var(--brand-700));
  color: #fff;
  border-end-end-radius: 6px;
}
.bubble--ai {
  background: rgb(255 255 255 / 0.08);
  border: 1px solid rgb(255 255 255 / 0.14);
  color: rgb(255 255 255 / 0.92);
  border-end-start-radius: 6px;
}
.typing { display: inline-flex; gap: 4px; align-items: center; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: #5eead4; animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; }
.typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 60%, 100% { opacity: .25; } 30% { opacity: 1; } }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: s; }
.step { position: relative; padding-top: 12px; }
.step__n {
  width: 44px; height: 44px; border-radius: 14px;
  display: grid; place-items: center;
  font-weight: 800; font-size: 1.05rem;
  background: var(--brand-600); color: #fff;
  box-shadow: 0 10px 22px -12px rgb(13 148 136 .9);
  margin-bottom: 16px;
}
.step h3 { margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 0.94rem; }

/* ---------- Quote ---------- */
.quote {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: clamp(28px, 4vw, 46px);
  box-shadow: var(--shadow-md);
  position: relative;
}
.quote__mark { font-size: 4rem; line-height: 1; color: var(--brand-200); font-weight: 800; }
[data-theme='dark'] .quote__mark { color: rgb(20 184 166 / 0.28); }
.quote p { font-size: clamp(1.05rem, 2vw, 1.3rem); line-height: 1.95; font-weight: 500; }
.quote__by { display: flex; align-items: center; gap: 12px; margin-top: 22px; }
.quote__by .av {
  width: 44px; height: 44px; border-radius: 14px; flex: none;
  background: linear-gradient(140deg, var(--brand-500), var(--brand-700));
  color: #fff; display: grid; place-items: center; font-weight: 700;
}

/* ---------- CTA ---------- */
.cta-band { text-align: center; }
.cta-band .btn-row { justify-content: center; margin-top: 28px; }

/* ---------- Pricing ---------- */
.switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  margin-top: 26px;
}
.switch button {
  border: 0; background: transparent; cursor: pointer;
  padding: 9px 20px; border-radius: 999px;
  font-weight: 600; font-size: 0.92rem; color: var(--muted);
  transition: background .2s ease, color .2s ease, box-shadow .2s ease;
}
.switch button.is-on { background: var(--card); color: var(--ink); box-shadow: var(--shadow-sm); }
.switch .save { font-size: 0.72rem; color: var(--brand-600); font-weight: 700; }

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
.plan {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease;
  display: flex; flex-direction: column;
}
.plan:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.plan--featured {
  border-color: transparent;
  box-shadow: var(--shadow-lg);
  background:
    linear-gradient(var(--card), var(--card)) padding-box,
    linear-gradient(140deg, var(--brand-500), var(--violet-500)) border-box;
  border: 1.5px solid transparent;
  position: relative;
}
.plan__tag {
  position: absolute; top: -13px; inset-inline-start: 50%; transform: translateX(50%);
  background: linear-gradient(135deg, var(--brand-600), var(--violet-600));
  color: #fff; font-size: 0.72rem; font-weight: 700;
  padding: 5px 16px; border-radius: 999px;
  white-space: nowrap;
}
[dir='ltr'] .plan__tag { transform: translateX(-50%); }
.plan h3 { font-size: 1.28rem; }
.plan__desc { color: var(--muted); font-size: 0.9rem; margin-top: 6px; min-height: 48px; }
.plan__price { display: flex; align-items: baseline; gap: 8px; margin: 18px 0 4px; }
.plan__price b { font-size: 2.5rem; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.plan__price span { color: var(--muted); font-size: 0.88rem; }
.plan__note { color: var(--muted); font-size: 0.8rem; min-height: 22px; }
.plan .btn { margin: 22px 0 20px; }
.plan ul { display: grid; gap: 11px; font-size: 0.92rem; }
.plan ul li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-2); }
.plan ul svg { width: 19px; height: 19px; flex: none; color: var(--brand-600); margin-top: 3px; }
.plan ul li.off { color: var(--muted); }
.plan ul li.off svg { color: var(--muted); opacity: .6; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--card); box-shadow: var(--shadow-sm); }
table.cmp { width: 100%; border-collapse: collapse; min-width: 640px; font-size: 0.92rem; }
table.cmp th, table.cmp td { padding: 14px 18px; text-align: start; border-bottom: 1px solid var(--line); }
table.cmp thead th { background: var(--bg-soft); font-weight: 700; font-size: 0.88rem; white-space: nowrap; }
table.cmp tbody tr:last-child td { border-bottom: 0; }
table.cmp td:not(:first-child), table.cmp th:not(:first-child) { text-align: center; }
table.cmp tbody tr:hover { background: var(--bg-soft); }
table.cmp .yes { color: var(--brand-600); font-weight: 700; }
table.cmp .no { color: var(--muted); opacity: .55; }
table.cmp .sec td { background: var(--bg-soft); font-weight: 700; color: var(--ink); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; max-width: 820px; margin-inline: auto; }
.faq details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 4px 20px;
  box-shadow: var(--shadow-sm);
  transition: border-color .2s ease;
}
.faq details[open] { border-color: var(--brand-300); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 0;
  font-weight: 600;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '';
  width: 10px; height: 10px; flex: none;
  border-inline-end: 2px solid var(--muted);
  border-block-end: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform .22s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq p { color: var(--muted); font-size: 0.94rem; padding-bottom: 18px; line-height: 1.9; }

/* ---------- Contact ---------- */
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 7px; }
.field label { font-size: 0.88rem; font-weight: 600; }
.field label em { color: #e11d48; font-style: normal; }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 13px 15px;
  border-radius: 13px;
  border: 1px solid var(--line-strong);
  background: var(--bg);
  transition: border-color .18s ease, box-shadow .18s ease;
  font-size: 0.95rem;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--brand-500);
  box-shadow: 0 0 0 4px rgb(20 184 166 / 0.15);
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: .8; }
.form-note { font-size: 0.82rem; color: var(--muted); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.contact-card {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--card);
  box-shadow: var(--shadow-sm);
  transition: border-color .2s ease, transform .2s ease;
}
.contact-card:hover { border-color: var(--brand-300); transform: translateY(-3px); }
.contact-card .ico {
  width: 42px; height: 42px; border-radius: 13px; flex: none;
  display: grid; place-items: center;
  background: var(--brand-50); color: var(--brand-700);
  border: 1px solid var(--brand-100);
}
[data-theme='dark'] .contact-card .ico { background: rgb(20 184 166 / 0.12); border-color: rgb(20 184 166 / 0.25); color: var(--brand-300); }
.contact-card .ico svg { width: 20px; height: 20px; }
.contact-card b { display: block; font-size: 0.95rem; }
.contact-card span { color: var(--muted); font-size: 0.9rem; word-break: break-word; }

/* ---------- Chips nav ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 9px; justify-content: center; }
.chips a {
  padding: 9px 17px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--card);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-2);
  transition: all .18s ease;
}
.chips a:hover { border-color: var(--brand-400); color: var(--brand-700); transform: translateY(-2px); }
[data-theme='dark'] .chips a:hover { color: var(--brand-300); }

/* ---------- Footer ---------- */
.footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  padding-block: clamp(46px, 6vw, 70px) 26px;
}
.footer__grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr; gap: 34px; }
.footer h4 { font-size: 0.95rem; margin-bottom: 14px; }
.footer ul { display: grid; gap: 10px; }
.footer a { color: var(--muted); font-size: 0.92rem; transition: color .18s ease; }
.footer a:hover { color: var(--brand-600); }
.footer__about p { color: var(--muted); font-size: 0.92rem; max-width: 330px; margin-top: 14px; }
.footer__bottom {
  margin-top: 36px; padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  color: var(--muted); font-size: 0.86rem;
}
.socials { display: flex; gap: 8px; margin-top: 18px; }
.socials a {
  width: 38px; height: 38px; border-radius: 12px;
  display: grid; place-items: center;
  border: 1px solid var(--line); background: var(--card);
  transition: all .18s ease;
}
.socials a:hover { border-color: var(--brand-400); color: var(--brand-600); transform: translateY(-2px); }
.socials svg { width: 18px; height: 18px; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s cubic-bezier(.22,1,.36,1), transform .6s cubic-bezier(.22,1,.36,1); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr; }
  .mock-wrap { max-width: 560px; margin-inline: auto; }
  .mock { transform: none; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
  .plans { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .plan--featured { order: -1; }
}

@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav__actions .btn { display: none; }
  .nav__burger { display: grid; }
  .grid-3, .steps { grid-template-columns: 1fr; }
  .split, .grid-2 { grid-template-columns: 1fr; }
  .split--flip .split__media { order: 0; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .float-card--a { inset-inline-start: -8px; }
  .float-card--b { inset-inline-end: -4px; }
}

@media (max-width: 560px) {
  .grid-4 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .float-card { display: none; }
  .btn { width: 100%; }
  .btn-row { flex-direction: column; align-items: stretch; }
  .hero__proof { gap: 8px 16px; }
}

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

/* ---------- Print ---------- */
@media print {
  .nav, .mobile-menu, .cta-band, .footer { display: none !important; }
  body { background: #fff; color: #000; }
}
