/* ============================================================
   مِيعاد | Meaad — marketing landing
   Light medical, momentum-led. Brand: navy #1A508B / cyan #00A8CC.
   ============================================================ */

:root {
  --bg: #F4F7F9;
  --primary: #1A508B;
  --primary-d: #143C66;
  --accent: #00A8CC;
  --accent-h: #0090b0;
  --accent-light: #E8F1F8;
  --border: #DDE3EA;
  --ink: #1A508B;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --white: #ffffff;

  --shadow-glass: 0 2px 6px rgba(26,80,139,0.07), 0 10px 24px -14px rgba(26,80,139,0.22);
  --shadow-glass-h: 0 4px 10px rgba(26,80,139,0.09), 0 20px 40px -16px rgba(26,80,139,0.3);
  --shadow-overlay: 0 8px 16px rgba(16,46,82,0.10), 0 40px 80px -28px rgba(26,80,139,0.34);

  --r-card: 18px;
  --r-btn: 12px;
  --maxw: 1200px;

  --font-body: 'Cairo', system-ui, 'Segoe UI', Tahoma, sans-serif;
  --font-head: 'Tajawal', 'Cairo', system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--slate-600);
  direction: rtl;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* Aurora — fixed soft brand washes behind everything */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -10; pointer-events: none;
  background:
    radial-gradient(560px 560px at 92% -6%, rgba(0,168,204,0.10), transparent 70%),
    radial-gradient(620px 620px at -6% 108%, rgba(26,80,139,0.10), transparent 70%),
    var(--bg);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.ico { width: 1em; height: 1em; display: inline-block; vertical-align: -0.125em; flex-shrink: 0; }

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

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-weight: 700; font-size: 15px;
  padding: 11px 22px; border-radius: var(--r-btn); border: 1px solid transparent;
  cursor: pointer; transition: all .2s ease; white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 4px 12px -6px rgba(0,168,204,.55); }
.btn-primary:hover { background: var(--accent-h); transform: translateY(-1px); }
.btn-ghost { background: #fff; color: var(--primary); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--accent); background: var(--accent-light); }
.btn-lg { padding: 14px 30px; font-size: 16px; }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-block { width: 100%; }

/* ── Navbar ──────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50; transition: all .3s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(255,255,255,.82); backdrop-filter: blur(14px);
  border-bottom-color: var(--border); box-shadow: 0 4px 24px -16px rgba(26,80,139,.4);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo { height: 38px; width: auto; }
.brand-name { font-family: var(--font-head); font-weight: 800; color: var(--primary); font-size: 18px; }
.brand-sep { color: var(--accent); margin: 0 2px; }
.nav-links { display: flex; gap: 6px; }
.nav-links a { color: var(--slate-600); font-weight: 600; font-size: 15px; padding: 11px 16px; min-height: 44px; display: inline-flex; align-items: center; border-radius: 10px; transition: all .15s; }
.nav-links a:hover { color: var(--primary); background: var(--accent-light); }
.nav-cta { display: flex; gap: 10px; }
.nav-burger { display: none; flex-direction: column; gap: 5px; width: 44px; height: 44px; align-items: center; justify-content: center; background: #fff; border: 1px solid var(--border); border-radius: 12px; cursor: pointer; }
.nav-burger span { width: 24px; height: 2px; background: var(--primary); border-radius: 2px; transition: .25s; }
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-mobile {
  display: none; flex-direction: column; gap: 6px; padding: 0 20px;
  max-height: 0; overflow: hidden; transition: max-height .3s ease, padding .3s ease;
  background: rgba(255,255,255,.96); backdrop-filter: blur(14px); border-bottom: 1px solid var(--border);
}
.nav-mobile.open { max-height: 380px; padding: 14px 20px 20px; }
.nav-mobile a:not(.btn) { display: flex; align-items: center; min-height: 48px; padding: 12px 8px; font-weight: 600; color: var(--slate-700); border-bottom: 1px solid #eef2f6; }
.nav-mobile .btn { min-height: 46px; }

/* ── Eyebrow / headings ──────────────────────────────────── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700;
  color: var(--accent-h); background: var(--accent-light); border: 1px solid rgba(0,168,204,.2);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 18px;
}
.eyebrow.center { margin-inline: auto; }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--primary); line-height: 1.25; font-weight: 800; }
.grad { display: inline-block; white-space: nowrap; background: linear-gradient(120deg, var(--accent), var(--primary)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ── Sections ────────────────────────────────────────────── */
.section { padding: clamp(56px, 8vw, 104px) 0; position: relative; }
.section.alt { background: linear-gradient(180deg, rgba(255,255,255,.5), rgba(232,241,248,.35)); border-block: 1px solid rgba(221,227,234,.7); }
.head { text-align: center; max-width: 760px; margin: 0 auto clamp(34px,5vw,56px); }
.head h2 { font-size: clamp(26px, 4vw, 40px); margin-bottom: 14px; }
.head .sub { color: var(--slate-500); font-size: clamp(15px,2vw,17px); }

/* ── Hero ────────────────────────────────────────────────── */
.hero { position: relative; padding: clamp(48px,7vw,96px) 0 clamp(56px,8vw,100px); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero-grid {
  position: absolute; inset: 0; opacity: .05;
  background-image: linear-gradient(rgba(26,80,139,.6) 1px, transparent 1px), linear-gradient(90deg, rgba(26,80,139,.6) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 60% 30%, black 30%, transparent 80%);
  mask-image: radial-gradient(ellipse 70% 60% at 60% 30%, black 30%, transparent 80%);
}
.orb { position: absolute; border-radius: 50%; filter: blur(90px); }
.orb-a { width: 360px; height: 360px; top: -80px; right: -40px; background: rgba(0,168,204,.18); animation: floatA 14s ease-in-out infinite; }
.orb-b { width: 420px; height: 420px; bottom: -120px; left: -60px; background: rgba(26,80,139,.16); animation: floatB 18s ease-in-out infinite; }
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: clamp(28px,4vw,56px); }
.hero-copy h1 { font-size: clamp(30px, 5vw, 52px); line-height: 1.18; margin-bottom: 18px; letter-spacing: -.5px; }
.hero-copy .lead { font-size: clamp(16px,2.2vw,19px); color: var(--slate-500); max-width: 560px; margin-bottom: 26px; }
.hero-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 24px; }
.ready { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--slate-500); }
.live { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); display: inline-block; }
.hero-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.hero-chips li { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: var(--primary); background: rgba(255,255,255,.7); border: 1px solid var(--border); padding: 7px 13px; border-radius: 999px; }
.hero-chips .ico { color: var(--accent); font-size: 16px; }

/* ── Browser mock frame ──────────────────────────────────── */
.browser { background: #fff; border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow-overlay); overflow: hidden; }
.tilt { transform: perspective(1400px) rotateY(3deg) rotateX(1.5deg); }
.tilt-r { transform: perspective(1400px) rotateY(-3deg) rotateX(1.5deg); }
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 11px 14px; background: #F4F7F9; border-bottom: 1px solid var(--border); }
.browser-bar span { width: 10px; height: 10px; border-radius: 50%; background: #cdd7e1; }
.browser-bar span:nth-child(1){ background:#ff8d8d } .browser-bar span:nth-child(2){ background:#ffd07a } .browser-bar span:nth-child(3){ background:#8fe0a4 }
.browser-url { margin-right: auto; font-size: 11px; color: var(--slate-400); font-style: normal; direction: ltr; letter-spacing: .3px; }
.browser-body { padding: 16px; }

/* Dashboard mock */
.mock-dashboard { display: flex; flex-direction: column; gap: 12px; background: #F8FAFC; }
.md-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.kpi { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 2px; box-shadow: var(--shadow-glass); }
.kpi-ico { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-size: 16px; margin-bottom: 4px; }
.kpi-ico.nv { background: var(--accent-light); color: var(--accent); } .kpi-ico.cy { background: #e0f5fb; color: var(--accent); } .kpi-ico.gr { background: #e7f7ee; color: #16a34a; }
.kpi b { font-size: 20px; color: var(--primary); font-variant-numeric: tabular-nums; }
.kpi small { font-size: 11px; color: var(--slate-400); }
.md-chart { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 12px; box-shadow: var(--shadow-glass); }
.md-chart-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.md-chart-head b { font-size: 13px; color: var(--primary); }
.trend { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 999px; }
.trend.up { color: #16a34a; background: #e7f7ee; }
.trend .ico { font-size: 13px; }
.area { width: 100%; height: 76px; display: block; }
.area.tall { height: 96px; }
.md-foot { display: flex; gap: 8px; }
.pill { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 600; color: var(--slate-600); background: #fff; border: 1px solid var(--border); padding: 5px 10px; border-radius: 999px; }
.pill .ico { color: var(--accent); font-size: 13px; }
.pill.ok { color: #16a34a; } .pill.ok .ico { color: #16a34a; }

/* ── band soft + marquee + metrics ───────────────────────── */
.band-soft { padding: 28px 0 clamp(40px,6vw,68px); border-bottom: 1px solid rgba(221,227,234,.7); }
.marquee { overflow: hidden; direction: ltr; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); margin-bottom: clamp(28px,4vw,44px); }
.marquee-track { display: flex; gap: 44px; width: max-content; animation: marquee 50s linear infinite; }
.marquee-track span { direction: rtl; display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-head); font-weight: 700; font-size: 18px; color: var(--slate-600); white-space: nowrap; }
.marquee-track .ico { color: var(--accent); opacity: .9; font-size: 22px; }
.metrics { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.metric { text-align: center; background: rgba(255,255,255,.7); border: 1px solid var(--border); border-radius: var(--r-card); padding: 22px 14px; box-shadow: var(--shadow-glass); }
.m-ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 23px; color: var(--accent); background: var(--accent-light); margin: 0 auto 14px; }
.metric b { display: block; font-family: var(--font-head); font-weight: 800; font-size: 21px; color: var(--primary); line-height: 1.25; }
.metric .unit { display: block; font-weight: 700; color: var(--accent-h); font-size: 14px; margin-top: 6px; }
.metric small { display: block; color: var(--slate-500); font-size: 13px; margin-top: 6px; }

/* ── Problem → promise ───────────────────────────────────── */
.pp-grid { display: flex; flex-direction: column; gap: 20px; }
.pp-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch; gap: 14px; }
.pp { border-radius: var(--r-card); padding: 22px; border: 1px solid var(--border); background: rgba(255,255,255,.8); backdrop-filter: blur(8px); box-shadow: var(--shadow-glass); }
.pp .ico { font-size: 26px; margin-bottom: 10px; display: block; }
.pp h3 { font-size: 17px; margin-bottom: 6px; }
.pp p { font-size: 14px; color: var(--slate-500); }
.pp-tag { display: inline-block; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 999px; margin-bottom: 12px; }
.pp.pain { border-color: #f3d6d6; background: linear-gradient(180deg, #fff, #fef4f4); }
.pp.pain .pp-tag { background: #fde8e8; color: #c0392b; } .pp.pain .ico { color: #d9756b; }
.pp.solution { border-color: rgba(0,168,204,.28); background: linear-gradient(180deg, #fff, #f1fbfd); }
.pp.solution .pp-tag.ok { background: var(--accent-light); color: var(--accent-h); } .pp.solution .ico { color: var(--accent); }
.pp-arrow { display: grid; place-items: center; color: var(--accent); font-size: 22px; }

/* ── Feature grid ────────────────────────────────────────── */
.feat-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.feat {
  position: relative; background: rgba(255,255,255,.82); backdrop-filter: blur(10px);
  border: 1px solid var(--border); border-radius: var(--r-card); padding: 26px 22px;
  box-shadow: var(--shadow-glass); transition: transform .25s ease, box-shadow .25s ease; overflow: hidden;
}
.feat::before { content: ""; position: absolute; inset-block-start: 0; inset-inline: 0; height: 3px; background: linear-gradient(90deg, var(--accent), var(--primary)); opacity: .85; }
.feat:hover { transform: translateY(-4px); box-shadow: var(--shadow-glass-h); }
.feat-ico { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; font-size: 24px; color: var(--accent); background: var(--accent-light); margin-bottom: 16px; transition: all .25s; }
.feat:hover .feat-ico { background: var(--accent); color: #fff; transform: scale(1.05); }
.feat h3 { font-size: 18px; margin-bottom: 8px; }
.feat p { font-size: 14px; color: var(--slate-500); }

/* ── Daily-speed delights ────────────────────────────────── */
.delight-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.delight {
  display: flex; align-items: flex-start; gap: 14px;
  background: rgba(255,255,255,.7); border: 1px solid var(--border);
  border-radius: var(--r-card); padding: 20px; box-shadow: var(--shadow-glass);
  transition: transform .25s ease, box-shadow .25s ease;
}
.delight:hover { transform: translateY(-3px); box-shadow: var(--shadow-glass-h); }
.d-ico { flex-shrink: 0; width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; font-size: 21px; color: #fff; background: linear-gradient(135deg, var(--accent), var(--primary)); box-shadow: 0 6px 14px -8px rgba(0,168,204,.7); }
.delight h3 { font-size: 16px; margin-bottom: 5px; }
.delight p { font-size: 13.5px; color: var(--slate-500); }

/* ── Audience cards (who is it for) ───────────────────────── */
.aud-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.aud { text-align: center; background: rgba(255,255,255,.82); backdrop-filter: blur(10px); border: 1px solid var(--border); border-radius: var(--r-card); padding: 32px 22px; box-shadow: var(--shadow-glass); transition: transform .25s ease, box-shadow .25s ease; }
.aud:hover { transform: translateY(-4px); box-shadow: var(--shadow-glass-h); }
.aud .feat-ico { margin-inline: auto; }
.aud h3 { font-size: 18px; margin-bottom: 8px; }
.aud p { font-size: 14px; color: var(--slate-500); }

/* ── Split sections ──────────────────────────────────────── */
.split-inner { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(28px,5vw,64px); }
.split-inner.reverse { direction: ltr; }
.split-inner.reverse > * { direction: rtl; }
.split-copy h2 { font-size: clamp(24px,3.4vw,34px); margin-bottom: 14px; }
.split-copy .sub { color: var(--slate-500); margin-bottom: 22px; font-size: 16px; }
.ticks { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.ticks li { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; color: var(--slate-700); }
.ticks .ico { color: var(--accent); font-size: 19px; margin-top: 3px; }
.hl-badge { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--accent-h); background: var(--accent-light); border: 1px solid rgba(0,168,204,.28); padding: 8px 16px; border-radius: 999px; margin-bottom: 20px; }
.steps { list-style: none; display: flex; flex-direction: column; gap: 16px; }
.steps li { display: flex; gap: 14px; }
.step-n { flex-shrink: 0; width: 34px; height: 34px; border-radius: 11px; background: var(--accent); color: #fff; font-family: var(--font-head); font-weight: 800; display: grid; place-items: center; }
.steps b { color: var(--primary); font-size: 16px; }
.steps p { font-size: 14px; color: var(--slate-500); }

/* Teeth mock */
.mock-teeth { background: #F8FAFC; }
.teeth-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.teeth-head b { color: var(--primary); } .muted { color: var(--slate-400); font-size: 12px; }
.rec-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.rt { font-size: 11.5px; font-weight: 700; padding: 6px 11px; border-radius: 999px; background: #fff; border: 1px solid var(--border); color: var(--slate-500); }
.rt.active { background: var(--accent-light); border-color: var(--accent); color: var(--accent-h); }
.teeth-row { display: grid; grid-template-columns: repeat(8,1fr); gap: 6px; margin-bottom: 8px; }
.tooth { aspect-ratio: 1; border-radius: 8px; background: #fff; border: 1px solid var(--border); display: grid; place-items: center; color: #cbd5e1; transition: all .3s; }
.tooth .ico { font-size: 24px; }
.tooth.lit-cy { background: var(--accent-light); border-color: var(--accent); color: var(--accent); }
.tooth.lit-am { background: #fef6e7; border-color: #f0b54a; color: #d98e1e; }
.tooth.lit-ok { background: #e7f7ee; border-color: #5cc98a; color: #16a34a; }
.teeth-legend { display: flex; gap: 16px; margin-top: 10px; font-size: 13px; font-weight: 600; color: var(--slate-600); }
.teeth-legend i.lg { width: 14px; height: 14px; border-radius: 5px; display: inline-block; margin-left: 6px; vertical-align: -2px; }
.lg.cy { background: var(--accent); } .lg.am { background: #f0b54a; } .lg.ok { background: #5cc98a; }

/* Calendar mock */
.mock-cal { background: #F8FAFC; }
.cal-cols { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; height: 300px; }
.cal-col { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.cal-doc { flex-shrink: 0; display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--slate-600); padding: 9px 10px; border-bottom: 1px solid var(--border); background: #F8FAFC; }
.cal-body { position: relative; flex: 1; }
.cal-doc i.d { width: 8px; height: 8px; border-radius: 50%; }
.d.cy { background: var(--accent); } .d.am { background: #f0b54a; } .d.pu { background: #8b5cf6; }
.appt { position: absolute; inset-inline: 6px; border-radius: 8px; padding: 6px 8px; color: #fff; font-size: 11px; box-shadow: 0 4px 10px -4px rgba(0,0,0,.2); }
.appt b { display: block; font-size: 11px; font-weight: 700; }
.appt small { opacity: .85; }
.appt.cy { background: var(--accent); } .appt.am { background: #e0a32f; } .appt.pu { background: #8b5cf6; }
.appt.busy { background: #b9c4d0; }

/* Invoice mock */
.mock-inv { background: #F8FAFC; }
.inv-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.inv-head b { color: var(--primary); }
.badge { font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.badge.ok { background: #fff3e0; color: #d97706; }
.badge.cy { background: var(--accent-light); color: var(--accent-h); }
.badge.late { background: #fde8e8; color: #c0392b; }
.inv-line { display: flex; justify-content: space-between; align-items: center; background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; font-size: 13px; }
.inv-line .cur { font-style: normal; font-weight: 700; font-size: 10px; color: var(--accent-h); background: var(--accent-light); padding: 2px 6px; border-radius: 6px; margin-left: 7px; }
.inv-line b { color: var(--primary); font-variant-numeric: tabular-nums; }
.inv-rate { font-size: 11.5px; color: var(--accent-h); background: var(--accent-light); border: 1px solid rgba(0,168,204,.25); border-radius: 8px; padding: 6px 10px; margin-bottom: 8px; display: inline-flex; gap: 5px; align-items: center; }
.inv-total { display: flex; justify-content: space-between; background: var(--primary); color: #fff; border-radius: 10px; padding: 11px 13px; font-weight: 700; }
.inv-total b { font-variant-numeric: tabular-nums; }
.inv-foot { display: flex; gap: 8px; margin-top: 12px; }

/* Permissions card */
.perm-card { background: #fff; border: 1px solid var(--border); border-radius: var(--r-card); box-shadow: var(--shadow-overlay); padding: 22px; }
.perm-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.perm-head b { color: var(--primary); }
.perm-grid { display: grid; grid-template-columns: 1fr auto auto auto; gap: 10px 14px; align-items: center; }
.perm-mod { font-size: 14px; font-weight: 600; color: var(--slate-700); }
.pm { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-size: 14px; }
.pm.on { background: var(--accent); color: #fff; }
.pm.off { background: #eef2f6; border: 1px dashed var(--border); }
.perm-scope { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); font-size: 13px; color: var(--slate-600); display: flex; align-items: center; gap: 8px; }
.perm-scope .ico { color: var(--accent); } .perm-scope b { color: var(--primary); }

/* Reports mock */
.mock-rep { background: #F8FAFC; }
.rep-kpis { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-bottom: 12px; }
.rep-kpis div { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 10px; text-align: center; }
.rep-kpis small { display: block; font-size: 11px; color: var(--slate-400); margin-bottom: 3px; }
.rep-kpis b { font-size: 17px; color: var(--primary); font-variant-numeric: tabular-nums; }
.rep-kpis b.amber { color: #d97706; }

/* Audit log */
.audit-card { background: #fff; border: 1px solid var(--border); border-radius: var(--r-card); box-shadow: var(--shadow-overlay); overflow: hidden; }
.audit-head { display: flex; justify-content: space-between; align-items: center; padding: 13px 16px; border-bottom: 1px solid var(--border); background: #F8FAFC; }
.audit-head b { color: var(--primary); font-size: 13px; }
.audit-list { padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.audit-item { display: flex; align-items: center; gap: 12px; padding: 10px; border: 1px solid var(--border); border-radius: 12px; }
.audit-item b { display: block; font-size: 13px; color: var(--primary); } .audit-item small { color: var(--slate-400); font-size: 11px; }
.ac { font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 999px; flex-shrink: 0; }
.ac.up { background: #fef6e7; color: #d97706; } .ac.add { background: #e7f7ee; color: #16a34a; } .ac.imp { background: #eef0ff; color: #6366f1; } .ac.del { background: #fde8e8; color: #c0392b; }

/* two-col info cards (lab + ai) */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.info-card { background: rgba(255,255,255,.82); backdrop-filter: blur(10px); border: 1px solid var(--border); border-radius: var(--r-card); padding: 28px; box-shadow: var(--shadow-glass); }
.info-card h3 { font-size: 20px; margin-bottom: 8px; }
.info-card > p { color: var(--slate-500); font-size: 15px; margin-bottom: 18px; }
.lab-rows { display: flex; flex-direction: column; gap: 8px; }
.lab-row { display: flex; justify-content: space-between; align-items: center; background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; font-size: 13px; color: var(--slate-700); }
.chat { display: flex; flex-direction: column; gap: 10px; }
.bubble { padding: 11px 14px; border-radius: 14px; font-size: 13.5px; max-width: 88%; }
.bubble.q { background: var(--accent-light); color: var(--primary); align-self: flex-start; border-bottom-right-radius: 4px; }
.bubble.a { background: #fff; border: 1px solid var(--border); color: var(--slate-700); align-self: flex-end; border-bottom-left-radius: 4px; display: flex; gap: 8px; }
.bubble.a .ico { color: var(--accent); font-size: 16px; flex-shrink: 0; margin-top: 2px; }

/* badge grid (security) */
.badge-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
.tbadge { text-align: center; background: rgba(255,255,255,.82); backdrop-filter: blur(10px); border: 1px solid var(--border); border-radius: var(--r-card); padding: 28px 20px; box-shadow: var(--shadow-glass); transition: transform .25s, box-shadow .25s; }
.tbadge:hover { transform: translateY(-4px); box-shadow: var(--shadow-glass-h); }
.tbadge .feat-ico { margin-inline: auto; }
.tbadge h3 { font-size: 16px; margin-bottom: 7px; }
.tbadge p { font-size: 13.5px; color: var(--slate-500); }

/* testimonials */
.quote-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.quote { background: rgba(255,255,255,.85); backdrop-filter: blur(10px); border: 1px solid var(--border); border-radius: var(--r-card); padding: 26px; box-shadow: var(--shadow-glass); }
.quote blockquote { font-size: 14.5px; color: var(--slate-700); line-height: 1.8; margin-bottom: 18px; position: relative; }
.quote blockquote::before { content: "“"; font-family: Georgia, serif; font-size: 48px; color: var(--accent); opacity: .3; line-height: 0; position: absolute; top: 14px; right: -6px; }
.quote figcaption { display: flex; align-items: center; gap: 12px; }
.qa { width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--primary)); color: #fff; display: grid; place-items: center; font-weight: 800; font-family: var(--font-head); flex-shrink: 0; }
.quote figcaption b { display: block; color: var(--primary); font-size: 14px; } .quote figcaption small { color: var(--slate-400); font-size: 12px; }

/* pricing */
.price-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; align-items: stretch; }
.price { position: relative; background: rgba(255,255,255,.9); border: 1px solid var(--border); border-radius: var(--r-card); padding: 30px 24px; box-shadow: var(--shadow-glass); display: flex; flex-direction: column; }
.price.featured { border: 2px solid var(--accent); box-shadow: var(--shadow-glass-h); transform: translateY(-8px); }
.price-tag { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; padding: 5px 16px; border-radius: 999px; box-shadow: 0 6px 14px -6px rgba(0,168,204,.7); }
.price h3 { font-size: 22px; margin-bottom: 6px; }
.price-for { font-size: 13.5px; color: var(--slate-500); margin-bottom: 20px; min-height: 40px; }
.price-feats { list-style: none; display: flex; flex-direction: column; gap: 11px; margin-bottom: 24px; flex: 1; }
.price-feats li { display: flex; align-items: flex-start; gap: 9px; font-size: 14px; color: var(--slate-700); }
.price-feats .ico { color: var(--accent); font-size: 17px; margin-top: 3px; flex-shrink: 0; }
.price-feats li.hot { font-weight: 700; color: var(--primary); }
.price-note { text-align: center; color: var(--slate-500); font-size: 14px; margin-top: 26px; }
.bill-lead { text-align: center; font-family: var(--font-head); font-weight: 800; color: var(--primary); font-size: clamp(18px,2.4vw,22px); margin-bottom: clamp(20px,3vw,28px); }
.bill-cards { margin-bottom: clamp(38px,5vw,58px); }

/* faq */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq details { background: rgba(255,255,255,.85); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-glass); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 22px; font-weight: 700; color: var(--primary); font-size: 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .chev { color: var(--accent); font-size: 18px; transition: transform .25s; flex-shrink: 0; transform: rotate(-90deg); }
.faq details[open] summary .chev { transform: rotate(90deg); }
.faq details p { padding: 0 22px 20px; color: var(--slate-500); font-size: 14.5px; }

/* final CTA band */
.cta-band { position: relative; background: linear-gradient(135deg, var(--primary), var(--primary-d)); overflow: hidden; padding: clamp(56px,8vw,92px) 0; text-align: center; }
.cta-bg { position: absolute; inset: 0; overflow: hidden; }
.cta-bg .orb-a { background: rgba(0,168,204,.3); top: -120px; right: 10%; }
.cta-bg .orb-b { background: rgba(255,255,255,.08); bottom: -140px; left: 8%; }
.cta-inner { position: relative; max-width: 700px; margin: 0 auto; }
.cta-logo { height: 64px; width: auto; margin: 0 auto 22px; }
.cta-band h2 { color: #fff; font-size: clamp(28px,4.5vw,44px); margin-bottom: 14px; }
.cta-band p { color: rgba(255,255,255,.78); font-size: 17px; margin-bottom: 28px; }
.cta-fine { display: block; margin-top: 16px; font-size: 13px; color: rgba(255,255,255,.6); }

/* footer */
.footer { background: var(--primary-d); color: rgba(255,255,255,.7); padding: 56px 0 0; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 32px; padding-bottom: 40px; }
.footer-logo { height: 48px; width: auto; margin-bottom: 16px; }
.footer-brand p { font-size: 14px; line-height: 1.8; color: rgba(255,255,255,.6); max-width: 360px; }
.footer-col h5 { color: #fff; font-family: var(--font-head); font-size: 15px; margin-bottom: 16px; }
.footer-col a { display: flex; align-items: center; gap: 7px; color: rgba(255,255,255,.65); font-size: 14px; padding: 6px 0; transition: color .15s; }
.footer-col a:hover { color: var(--accent); }
.footer-col a .ico { font-size: 15px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; padding-block: 22px; margin-top: 0; border-top: 1px solid rgba(255,255,255,.12); font-size: 12.5px; color: rgba(255,255,255,.5); }

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

/* stagger (hero) */
.stagger > * { animation: riseIn .6s cubic-bezier(.22,1,.36,1) both; }
.hero-inner.stagger > *:nth-child(1) { animation-delay: .05s; }
.hero-inner.stagger > *:nth-child(2) { animation-delay: .18s; }

/* sheen + glow */
.sheen { position: relative; overflow: hidden; }
.sheen::after { content: ""; position: absolute; top: 0; bottom: 0; left: -150%; width: 60%; background: linear-gradient(110deg, transparent, rgba(255,255,255,.5), transparent); transform: skewX(-18deg); pointer-events: none; }
.sheen:hover::after { animation: sheenSweep .9s ease; }
.glow-pulse { animation: glowPulse 2.2s ease-out infinite; }

/* draw line for charts (triggered by .in on ancestor) */
.area-line.draw { stroke-dasharray: 1; stroke-dashoffset: 1; }
.in .area-line.draw, .reveal.in .area-line.draw { animation: drawLine 1.5s cubic-bezier(.65,0,.35,1) forwards; }
/* hero chart draws on load */
.hero .area-line.draw { animation: drawLine 1.6s cubic-bezier(.65,0,.35,1) .4s forwards; }
.bell-ring { animation: bellRing 1s ease-in-out; }

/* ── Keyframes ───────────────────────────────────────────── */
@keyframes floatA { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(24px,-30px) scale(1.08); } }
@keyframes floatB { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-28px,26px) scale(1.12); } }
@keyframes riseIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes glowPulse { 0%,100% { box-shadow: 0 0 0 0 rgba(0,168,204,.5), 0 8px 20px -8px rgba(0,168,204,.6); } 50% { box-shadow: 0 0 0 12px rgba(0,168,204,0), 0 8px 20px -8px rgba(0,168,204,.6); } }
@keyframes sheenSweep { to { left: 160%; } }
@keyframes drawLine { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes bellRing { 0%,52%,100% { transform: rotate(0); } 8% { transform: rotate(16deg); } 16% { transform: rotate(-13deg); } 24% { transform: rotate(10deg); } 32% { transform: rotate(-7deg); } 40% { transform: rotate(4deg); } 46% { transform: rotate(-2deg); } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .feat-grid, .badge-grid, .delight-grid, .aud-grid { grid-template-columns: repeat(2,1fr); }
  .quote-grid, .price-grid, .metrics { grid-template-columns: repeat(2,1fr); }
  .nav-links { display: none; }
}
@media (max-width: 860px) {
  .nav-cta { display: none; }
  .nav-burger { display: flex; }
  .nav-mobile { display: flex; }
  .hero-inner, .split-inner, .split-inner.reverse, .two-col { grid-template-columns: 1fr; }
  .split-inner.reverse { direction: rtl; }
  .hero-visual { order: 2; }
  .tilt, .tilt-r { transform: none; }
  .pp-row { grid-template-columns: 1fr; }
  .pp-arrow { transform: rotate(-90deg); padding: 4px 0; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .feat-grid, .badge-grid, .delight-grid, .aud-grid, .quote-grid, .price-grid, .metrics, .md-row, .rep-kpis { grid-template-columns: 1fr; }
  .price.featured { transform: none; }
  .metrics { grid-template-columns: repeat(2,1fr); }
  .footer-inner { grid-template-columns: 1fr; }
  .cal-cols { height: 240px; }
  .hero-actions { gap: 10px; }
  .btn-lg { padding: 13px 22px; }
  .faq summary { padding: 18px; font-size: 15px; }
}
@media (max-width: 480px) {
  /* keep the product mocks legible + tap-friendly on the smallest phones */
  .kpi b { font-size: 16px; } .kpi small { font-size: 10px; }
  .metric b { font-size: clamp(28px,9vw,36px); } .metric { padding: 16px 12px; }
  .rep-kpis b { font-size: 15px; }
  .cal-cols { height: 200px; } .appt { font-size: 10px; } .cal-doc { padding: 6px; font-size: 11px; }
  .grad { white-space: normal; }
}

/* ── Reduced motion (keep LAST) ──────────────────────────── */
@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 !important; transform: none !important; }
  .area-line.draw { stroke-dashoffset: 0 !important; }
}
