:root {
  /* Medical palette: clinical green-teal, deep navy text, mint and sky tints. */
  --primary: #0b8f7a;
  --primary-dark: #08705f;
  --primary-soft: #e3f5f0;
  --sky: #e8f3fb;
  --ink: #0d2a3a;
  --muted: #5b7180;
  --line: #e2ebef;
  --bg: #ffffff;
  --bg-soft: #f4faf8;
  --wa: #1fa855;
  --viber: #7360f2;
  --radius: 18px;
  --shadow: 0 18px 50px -20px rgba(13, 42, 58, 0.28);
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-dv: 'Noto Sans Thaana', 'Faruma', 'MV Waheed', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; }
html[lang="dv"] body { font-family: var(--font-dv); line-height: 1.9; }
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.02em; }
html[lang="dv"] h1, html[lang="dv"] h2, html[lang="dv"] h3 { letter-spacing: 0; line-height: 1.5; }
p { margin: 0 0 1em; }

.container { width: min(1120px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); }
.muted { color: var(--muted); }

/* Nav */
.nav { position: sticky; top: 0; z-index: 10; background: rgba(255, 255, 255, 0.88); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark { width: 34px; height: 34px; }
.brand-name { font-weight: 800; font-size: 1.35rem; letter-spacing: -0.03em; font-family: var(--font); }
.nav-links { display: flex; gap: 22px; margin-inline-start: auto; font-weight: 600; font-size: .95rem; color: var(--muted); }
.nav-links a:hover { color: var(--primary); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.lang-toggle { font: 600 .95rem var(--font-dv); background: var(--primary-soft); color: var(--primary-dark); border: 0; border-radius: 999px; padding: 8px 14px; cursor: pointer; }
html[lang="dv"] .lang-toggle { font-family: var(--font); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 22px; border-radius: 14px; font-weight: 700; font-size: 1rem; border: 2px solid transparent; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.btn svg { width: 22px; height: 22px; }
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: 9px 16px; font-size: .9rem; border-radius: 12px; }
.btn-wa { background: var(--wa); color: #fff; box-shadow: 0 10px 24px -12px var(--wa); }
.btn-viber { background: var(--viber); color: #fff; box-shadow: 0 10px 24px -12px var(--viber); }
.btn-light { background: #fff; color: var(--primary-dark); }
.btn-outline-light { border-color: rgba(255, 255, 255, .7); color: #fff; }
.btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 72px 0 88px; background:
  radial-gradient(800px 400px at 85% 10%, var(--sky), transparent 70%),
  radial-gradient(700px 420px at 5% 90%, var(--primary-soft), transparent 70%); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-block; font-weight: 700; font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; color: var(--primary); background: var(--primary-soft); padding: 6px 12px; border-radius: 999px; margin-bottom: 18px; }
html[lang="dv"] .eyebrow { text-transform: none; letter-spacing: 0; font-size: .9rem; }
h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); font-weight: 800; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 560px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 14px; }
.note { font-size: .9rem; color: var(--muted); }

/* Chat mockup */
.hero-card { position: relative; }
.hero-card::before { content: ""; position: absolute; inset: -18px; border-radius: 32px; background: linear-gradient(135deg, var(--primary), #3fb5d6); opacity: .14; transform: rotate(-3deg); }
.chat { position: relative; background: #fff; border-radius: 24px; padding: 18px; box-shadow: var(--shadow); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.chat-head { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.chat-head strong { display: block; font-family: var(--font); }
.chat-head span { font-size: .8rem; color: var(--wa); font-weight: 600; }
.bubble { max-width: 84%; padding: 10px 14px; border-radius: 16px; font-size: .95rem; }
.bubble.out { align-self: flex-end; background: #dcf8c6; border-bottom-right-radius: 4px; }
.bubble.in { align-self: flex-start; background: var(--bg-soft); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.bubble.photo { display: flex; gap: 8px; align-items: center; font-weight: 600; }
html[dir="rtl"] .bubble.out { align-self: flex-start; border-bottom-right-radius: 16px; border-bottom-left-radius: 4px; }
html[dir="rtl"] .bubble.in { align-self: flex-end; border-bottom-left-radius: 16px; border-bottom-right-radius: 4px; }

/* Sections */
.section { padding: 88px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { text-align: center; margin-bottom: 44px; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); font-weight: 800; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: 0 1px 0 rgba(13, 42, 58, .03); }
.step-icon { width: 52px; height: 52px; border-radius: 14px; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; margin-bottom: 18px; }
.step-icon svg { width: 26px; height: 26px; }
.step-num { position: absolute; top: 24px; inset-inline-end: 24px; font-weight: 800; font-size: 2.4rem; color: var(--primary-soft); font-family: var(--font); line-height: 1; }
.step h3 { font-size: 1.2rem; }
.step p { color: var(--muted); margin: 0; }

.why-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.features { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.features li { display: flex; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.f-icon { font-size: 1.5rem; width: 44px; height: 44px; flex: none; display: grid; place-items: center; background: var(--sky); border-radius: 12px; }
.features h3 { font-size: 1.05rem; margin-bottom: .25em; }
.features p { color: var(--muted); font-size: .95rem; margin: 0; }

.faq { border: 1px solid var(--line); border-radius: 14px; padding: 0 20px; margin-bottom: 12px; background: #fff; }
.faq summary { cursor: pointer; font-weight: 700; padding: 18px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--primary); font-size: 1.3rem; line-height: 1; }
.faq[open] summary::after { content: "−"; }
.faq p { color: var(--muted); padding-bottom: 18px; margin: 0; }

.cta-band { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; padding: 44px; border-radius: 28px; color: #fff; background: linear-gradient(135deg, var(--primary-dark), var(--primary) 55%, #2aa7c4); box-shadow: var(--shadow); }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, .88); margin: 0; }
.cta-band .cta-row { margin: 0; }

.footer { border-top: 1px solid var(--line); padding: 34px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .9rem; }
.footer-inner p { margin: 0; }

/* Responsive */
@media (max-width: 900px) {
  .hero-grid, .why-grid { grid-template-columns: 1fr; gap: 40px; }
  .steps { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-actions { margin-inline-start: auto; }
  .hero { padding: 48px 0 64px; }
  .section { padding: 64px 0; }
}
@media (max-width: 560px) {
  .features { grid-template-columns: 1fr; }
  .cta-band { padding: 28px; }
  .cta-row .btn { flex: 1 1 100%; }
  .nav .btn-wa { display: none; }
}
