:root {
  --brand: #0f766e;
  --brand-dark: #115e59;
  --brand-soft: #ccfbf1;
  --brand-faint: #f0fdfa;
  --ink: #10201e;
  --muted: #61706d;
  --surface: #ffffff;
  --surface-alt: #f7faf9;
  --line: #dfe8e5;
  --wa-green: #21c063;
  --wa-bg: #efeae2;
  --shadow-sm: 0 10px 30px rgba(31, 54, 49, 0.08);
  --shadow-lg: 0 30px 80px rgba(25, 54, 48, 0.18);
  --radius-sm: 14px;
  --radius-md: 22px;
  --radius-lg: 34px;
  --font-sans: "DM Sans", "Tajawal", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 82% 6%, color-mix(in srgb, var(--brand-soft) 55%, transparent), transparent 28rem),
    linear-gradient(180deg, #fbfdfc 0%, #ffffff 34%, #f7faf9 100%);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.page-shell { width: min(100%, 1480px); margin: 0 auto; overflow: clip; }
.site-header {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 72px);
  border-bottom: 1px solid rgba(214, 226, 222, 0.72);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(18px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.brand { display: inline-flex; align-items: center; gap: 12px; min-width: 0; min-height: 44px; }
.brand-logo-wrap {
  width: 46px;
  height: 46px;
  border-radius: 15px;
  background: var(--brand-faint);
  border: 1px solid color-mix(in srgb, var(--brand) 16%, white);
  display: grid;
  place-items: center;
  overflow: hidden;
  flex: 0 0 auto;
}
.brand-logo { width: 100%; height: 100%; object-fit: contain; padding: 5px; }
.brand-monogram { font-weight: 800; color: var(--brand-dark); letter-spacing: -0.04em; }
.brand-copy { display: flex; flex-direction: column; min-width: 0; }
.brand-copy strong { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-copy small { color: var(--muted); font-size: 12px; margin-top: 2px; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.online-pill {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 9px 13px;
  border-radius: 999px;
  background: #f1fbf4;
  border: 1px solid #d7f2df;
  color: #25733e;
  font-size: 12px;
  font-weight: 700;
}
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #29b95e; box-shadow: 0 0 0 5px rgba(41, 185, 94, 0.12); }

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, .98fr);
  gap: clamp(44px, 7vw, 112px);
  align-items: center;
  padding: clamp(72px, 10vw, 132px) clamp(20px, 6vw, 86px) 88px;
}
.hero-copy { max-width: 690px; }
.eyebrow {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand-dark);
  background: var(--brand-faint);
  border: 1px solid color-mix(in srgb, var(--brand) 16%, white);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .015em;
}
.eyebrow svg { width: 15px; height: 15px; }
h1, h2, h3, p { margin-top: 0; }
h1 {
  margin-bottom: 24px;
  margin-top: 22px;
  font-size: clamp(46px, 6vw, 82px);
  line-height: .98;
  letter-spacing: -0.065em;
  max-width: 900px;
}
h2 { font-size: clamp(32px, 4vw, 54px); line-height: 1.02; letter-spacing: -0.045em; }
h3 { font-size: 21px; letter-spacing: -0.025em; margin-bottom: 10px; }
.hero-description { max-width: 640px; color: var(--muted); line-height: 1.72; font-size: clamp(17px, 2vw, 20px); }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.button {
  border: 0;
  border-radius: 14px;
  min-height: 48px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  cursor: pointer;
  font-weight: 800;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.button:hover { transform: translateY(-2px); }
.button svg { width: 18px; height: 18px; }
.button-primary { color: white; background: var(--brand); box-shadow: 0 12px 26px color-mix(in srgb, var(--brand) 24%, transparent); }
.button-primary:hover { background: var(--brand-dark); box-shadow: 0 16px 34px color-mix(in srgb, var(--brand) 30%, transparent); }
.button-secondary { border: 1px solid var(--line); background: white; }
.button-ghost { background: transparent; color: var(--ink); }
.button-small { min-height: 44px; padding: 0 15px; font-size: 13px; }
.button-large { min-height: 56px; padding: 0 24px; }
.button-full { width: 100%; }

.trust-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; border-top: 1px solid var(--line); margin-top: 42px; padding-top: 24px; }
.trust-row div { display: flex; flex-direction: column; gap: 5px; }
.trust-row strong { font-size: 15px; }
.trust-row span { color: var(--muted); font-size: 12px; line-height: 1.45; }

.phone-stage { position: relative; display: grid; place-items: center; min-height: 680px; }
.ambient-glow {
  position: absolute;
  width: 570px;
  height: 570px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--brand-soft) 80%, white), transparent 67%);
  filter: blur(4px);
}
.phone {
  position: relative;
  z-index: 2;
  width: min(100%, 390px);
  height: 710px;
  border: 9px solid #16201f;
  border-radius: 48px;
  overflow: hidden;
  background: var(--wa-bg);
  box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(255,255,255,.18);
  display: flex;
  flex-direction: column;
}
.phone::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .28;
  background-image:
    radial-gradient(circle at 25px 25px, rgba(87, 109, 100, .15) 2px, transparent 2.5px),
    radial-gradient(circle at 65px 65px, rgba(87, 109, 100, .11) 1.5px, transparent 2px);
  background-size: 90px 90px;
}
.phone-topbar {
  height: 36px;
  position: relative;
  z-index: 2;
  background: #f7fbfa;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
  font-size: 11px;
  font-weight: 800;
}
.phone-camera { position: absolute; left: 50%; transform: translateX(-50%); top: 7px; width: 104px; height: 23px; background: #111; border-radius: 999px; }
.phone-status { display: flex; gap: 4px; align-items: center; }
.phone-status svg { width: 12px; height: 12px; }
.chat-header {
  min-height: 65px;
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  color: white;
  background: #075e54;
}
.icon-button { width: 44px; height: 44px; flex: 0 0 44px; display: grid; place-items: center; border: 0; background: transparent; color: inherit; border-radius: 50%; padding: 0; cursor: pointer; }
.icon-button svg { width: 19px; height: 19px; }
.chat-avatar { width: 38px; height: 38px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; background: white; color: var(--brand-dark); font-size: 12px; font-weight: 900; }
.chat-heading { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.chat-heading strong { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-heading span { font-size: 10px; opacity: .82; }
.chat-messages { position: relative; z-index: 1; flex: 1; overflow-y: auto; padding: 18px 13px 12px; scroll-behavior: smooth; }
.chat-messages::-webkit-scrollbar { width: 0; }
.chat-message { max-width: 83%; padding: 9px 10px 7px; margin-bottom: 8px; border-radius: 10px; box-shadow: 0 1px 1px rgba(0,0,0,.08); font-size: 12px; line-height: 1.48; animation: messageIn .26s ease both; }
.chat-message.assistant { background: #fff; border-top-left-radius: 3px; }
.chat-message.patient { background: #d9fdd3; margin-left: auto; border-top-right-radius: 3px; }
.message-time { display: block; text-align: right; color: #72807b; font-size: 8px; margin-top: 3px; }
.typing-message { width: 54px; display: flex; gap: 4px; align-items: center; padding: 13px; }
.typing-message i { width: 6px; height: 6px; border-radius: 50%; background: #81918c; animation: typing 1.1s infinite ease-in-out; }
.typing-message i:nth-child(2) { animation-delay: .12s; }
.typing-message i:nth-child(3) { animation-delay: .24s; }
.quick-replies { position: relative; z-index: 2; display: flex; gap: 7px; overflow-x: auto; padding: 8px 10px 10px; }
.quick-replies::-webkit-scrollbar { display: none; }
.quick-reply { min-height: 44px; flex: 0 0 auto; border-radius: 999px; border: 1px solid #75c7ae; background: rgba(255,255,255,.94); color: #066653; padding: 8px 13px; font-size: 11px; font-weight: 800; cursor: pointer; }
.quick-reply:disabled { opacity: .45; cursor: default; }
.chat-composer { min-height: 58px; position: relative; z-index: 2; display: flex; align-items: center; gap: 7px; padding: 8px; background: #f0f2f5; color: #6b7774; }
.composer-field { height: 44px; flex: 1; display: flex; align-items: center; padding: 0 14px; border-radius: 999px; background: white; font-size: 12px; }
.send-button { width: 44px; height: 44px; flex: 0 0 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: #00a884; color: white; cursor: pointer; }
.send-button svg { width: 17px; }
.replay-button { position: relative; z-index: 3; min-height: 44px; border: 1px solid var(--line); background: rgba(255,255,255,.92); border-radius: 999px; padding: 10px 14px; margin-top: 18px; display: inline-flex; gap: 8px; align-items: center; color: var(--muted); cursor: pointer; font-size: 12px; font-weight: 800; box-shadow: var(--shadow-sm); }
.replay-button svg { width: 15px; }

.proof-strip { margin: 0 clamp(20px, 6vw, 86px); min-height: 88px; padding: 18px clamp(18px, 4vw, 38px); display: flex; align-items: center; justify-content: center; gap: clamp(16px, 3vw, 34px); border: 1px solid var(--line); border-radius: 24px; background: rgba(255,255,255,.82); box-shadow: var(--shadow-sm); }
.proof-strip span { display: inline-flex; gap: 9px; align-items: center; font-size: 13px; font-weight: 800; }
.proof-strip span svg { width: 20px; color: var(--brand); }
.proof-arrow { width: 18px; color: #9aaba6; }
.section-block { padding: 124px clamp(20px, 6vw, 86px); }
.section-heading { max-width: 760px; margin-bottom: 46px; }
.section-heading h2 { margin: 20px 0 16px; }
.section-heading p { color: var(--muted); font-size: 17px; line-height: 1.7; max-width: 660px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature-card { position: relative; min-height: 300px; padding: 30px; border: 1px solid var(--line); border-radius: var(--radius-md); background: white; box-shadow: 0 15px 40px rgba(24, 48, 43, .06); }
.feature-number { position: absolute; top: 22px; right: 24px; color: #a8b6b2; font-size: 12px; font-weight: 800; }
.feature-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 15px; background: var(--brand-faint); color: var(--brand); margin-bottom: 52px; }
.feature-icon svg { width: 22px; }
.feature-card p { color: var(--muted); font-size: 14px; line-height: 1.65; }
.results-section { padding: 0 clamp(20px, 6vw, 86px); }
.results-panel { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(40px, 8vw, 120px); align-items: center; padding: clamp(40px, 7vw, 82px); border-radius: var(--radius-lg); background: linear-gradient(135deg, #0b3f39, var(--brand-dark)); color: white; box-shadow: var(--shadow-lg); }
.results-panel h2 { margin: 20px 0 0; max-width: 650px; }
.eyebrow-light { color: white; background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.15); }
.results-list { display: grid; gap: 14px; }
.results-list div { min-height: 56px; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 15px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.1); }
.results-list svg { width: 20px; flex: 0 0 auto; color: #9df2c2; }
.results-list span { font-size: 14px; line-height: 1.5; }
.cta-section { padding: 110px clamp(20px, 6vw, 86px); }
.cta-card { display: grid; grid-template-columns: 1.15fr .85fr; gap: 44px; align-items: center; padding: clamp(34px, 6vw, 70px); border: 1px solid var(--line); border-radius: var(--radius-lg); background: white; box-shadow: var(--shadow-sm); }
.cta-card h2 { margin: 20px 0 14px; }
.cta-card p { color: var(--muted); line-height: 1.7; max-width: 700px; }
.cta-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.cta-actions span { color: var(--muted); font-size: 12px; }
.site-footer { min-height: 86px; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px clamp(20px, 6vw, 86px); border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }

.cta-dialog { width: min(92vw, 460px); border: 0; border-radius: 26px; padding: 34px; box-shadow: 0 35px 100px rgba(16, 32, 30, .28); }
.cta-dialog::backdrop { background: rgba(10, 24, 22, .52); backdrop-filter: blur(5px); }
.dialog-close { position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: white; cursor: pointer; }
.dialog-close svg { width: 17px; }
.dialog-icon { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 17px; background: var(--brand-faint); color: var(--brand); }
.dialog-icon svg { width: 25px; }
.cta-dialog h2 { font-size: 30px; margin: 24px 0 12px; }
.cta-dialog p { color: var(--muted); line-height: 1.65; }
.dialog-summary { display: grid; grid-template-columns: auto 1fr; gap: 9px 16px; margin: 24px 0; padding: 18px; background: var(--surface-alt); border-radius: 16px; font-size: 13px; }
.dialog-summary span { color: var(--muted); }
.dialog-summary strong { text-align: right; }
#copy-status { display: block; min-height: 18px; margin-top: 10px; text-align: center; color: var(--brand-dark); }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .58s ease, transform .58s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-delay { transition-delay: .1s; }

@keyframes messageIn { from { opacity: 0; transform: translateY(7px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); opacity: .45; } 30% { transform: translateY(-4px); opacity: 1; } }

@media (max-width: 980px) {
  .section-grid { grid-template-columns: 1fr; padding-top: 68px; }
  .hero-copy { max-width: 780px; }
  .phone-stage { min-height: auto; margin-top: 10px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: 250px; }
  .feature-icon { margin-bottom: 38px; }
  .results-panel, .cta-card { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .site-header { min-height: 70px; padding: 12px 16px; }
  .brand-logo-wrap { width: 40px; height: 40px; border-radius: 13px; }
  .brand-copy strong { max-width: 155px; }
  .online-pill { display: none; }
  .section-grid { padding: 52px 18px 64px; gap: 42px; }
  h1 { font-size: clamp(42px, 13vw, 62px); }
  .hero-description { font-size: 16px; }
  .hero-actions { align-items: stretch; }
  .hero-actions .button { width: 100%; }
  .trust-row { gap: 12px; }
  .trust-row strong { font-size: 13px; }
  .trust-row span { font-size: 10px; }
  .phone-stage { width: calc(100vw - 24px); margin-left: calc((100% - (100vw - 24px)) / 2); }
  .phone { height: 665px; width: min(100%, 370px); border-width: 7px; border-radius: 42px; }
  .ambient-glow { width: 430px; height: 430px; }
  .proof-strip { overflow-x: auto; justify-content: flex-start; border-radius: 19px; margin: 0 18px; }
  .proof-strip span { flex: 0 0 auto; }
  .section-block { padding: 92px 18px; }
  .section-heading { margin-bottom: 28px; }
  .feature-card { padding: 24px; }
  .results-section { padding: 0 18px; }
  .results-panel { border-radius: 26px; padding: 34px 22px; }
  .cta-section { padding: 76px 18px; }
  .cta-card { border-radius: 26px; padding: 30px 22px; }
  .button-large { width: 100%; }
  .site-footer { flex-direction: column; align-items: flex-start; padding: 24px 18px; }
}

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