/* ClinicEngines website v9. Colours are tokens only (src/tokens.mjs, written in by the build).
   Mobile first; logical properties throughout so RTL is the same design, not a mirror added later. */

:root {
  --bg: #FAF6F1;
  --bg-2: #F3ECE3;
  --surface: #FFFFFF;
  --surface-2: #F7F3EE;
  --ink: #241C24;
  --ink-soft: #5E535B;
  --line: rgba(36, 28, 36, .12);
  --line-strong: rgba(36, 28, 36, .24);
  --field: #8A7F88;
  --jade: #0E7A66;
  --jade-deep: #0A5A4B;
  --jade-tint: #E3F0EC;
  --on-jade: #FFFFFF;
  --gold: #B0894F;
  --gold-deep: #7A5A2C;
  --gold-tint: #F4ECDF;
  --rose-deep: #9C3B3B;
  --blush-tint: #F6E4DE;
  --focus: #0E7A66;
  --wa-bg: #EFE7DD;
  --wa-in: #FFFFFF;
  --wa-out: #D9FDD3;
  --wa-ink: #111B21;
  --wa-meta: #5B6B74;
  --wa-head: #0E7A66;
  --on-wa-head: #FFFFFF;
  --shadow: 0 18px 50px -24px rgba(36, 28, 36, .28);
  --shadow-sm: 0 2px 10px -4px rgba(36, 28, 36, .14);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #14171A;
  --bg-2: #181C20;
  --surface: #1C2125;
  --surface-2: #232A2F;
  --ink: #ECEEEA;
  --ink-soft: #A3ABA6;
  --line: rgba(255, 255, 255, .10);
  --line-strong: rgba(255, 255, 255, .22);
  --field: #7A847E;
  --jade: #3DBA9A;
  --jade-deep: #6BD3B8;
  --jade-tint: #173A33;
  --on-jade: #0A221C;
  --gold: #D2A85F;
  --gold-deep: #E2BE7F;
  --gold-tint: #3A3022;
  --rose-deep: #F1949A;
  --blush-tint: #432A2D;
  --focus: #6BD3B8;
  --wa-bg: #0B141A;
  --wa-in: #202C33;
  --wa-out: #005C4B;
  --wa-ink: #E9EDEF;
  --wa-meta: #C5D0D5;
  --wa-head: #1F2C34;
  --on-wa-head: #E9EDEF;
  --shadow: 0 18px 50px -24px rgba(0, 0, 0, .7);
  --shadow-sm: 0 2px 10px -4px rgba(0, 0, 0, .5);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #14171A;
    --bg-2: #181C20;
    --surface: #1C2125;
    --surface-2: #232A2F;
    --ink: #ECEEEA;
    --ink-soft: #A3ABA6;
    --line: rgba(255, 255, 255, .10);
    --line-strong: rgba(255, 255, 255, .22);
    --field: #7A847E;
    --jade: #3DBA9A;
    --jade-deep: #6BD3B8;
    --jade-tint: #173A33;
    --on-jade: #0A221C;
    --gold: #D2A85F;
    --gold-deep: #E2BE7F;
    --gold-tint: #3A3022;
    --rose-deep: #F1949A;
    --blush-tint: #432A2D;
    --focus: #6BD3B8;
    --wa-bg: #0B141A;
    --wa-in: #202C33;
    --wa-out: #005C4B;
    --wa-ink: #E9EDEF;
    --wa-meta: #C5D0D5;
    --wa-head: #1F2C34;
    --on-wa-head: #E9EDEF;
    --shadow: 0 18px 50px -24px rgba(0, 0, 0, .7);
    --shadow-sm: 0 2px 10px -4px rgba(0, 0, 0, .5);
    color-scheme: dark;
  }
}

@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 400;
  font-display: optional;
  src: url('fonts/ibm-plex-sans-arabic-arabic-400-normal.woff2') format('woff2');
  unicode-range: U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC,U+102E0-102FB,U+10E60-10E7E,U+10EC2-10EC4,U+10EFC-10EFF,U+1EE00-1EE03,U+1EE05-1EE1F,U+1EE21-1EE22,U+1EE24,U+1EE27,U+1EE29-1EE32,U+1EE34-1EE37,U+1EE39,U+1EE3B,U+1EE42,U+1EE47,U+1EE49,U+1EE4B,U+1EE4D-1EE4F,U+1EE51-1EE52,U+1EE54,U+1EE57,U+1EE59,U+1EE5B,U+1EE5D,U+1EE5F,U+1EE61-1EE62,U+1EE64,U+1EE67-1EE6A,U+1EE6C-1EE72,U+1EE74-1EE77,U+1EE79-1EE7C,U+1EE7E,U+1EE80-1EE89,U+1EE8B-1EE9B,U+1EEA1-1EEA3,U+1EEA5-1EEA9,U+1EEAB-1EEBB,U+1EEF0-1EEF1;
}
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 400;
  font-display: optional;
  src: url('fonts/ibm-plex-sans-arabic-latin-400-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 600;
  font-display: optional;
  src: url('fonts/ibm-plex-sans-arabic-arabic-600-normal.woff2') format('woff2');
  unicode-range: U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC,U+102E0-102FB,U+10E60-10E7E,U+10EC2-10EC4,U+10EFC-10EFF,U+1EE00-1EE03,U+1EE05-1EE1F,U+1EE21-1EE22,U+1EE24,U+1EE27,U+1EE29-1EE32,U+1EE34-1EE37,U+1EE39,U+1EE3B,U+1EE42,U+1EE47,U+1EE49,U+1EE4B,U+1EE4D-1EE4F,U+1EE51-1EE52,U+1EE54,U+1EE57,U+1EE59,U+1EE5B,U+1EE5D,U+1EE5F,U+1EE61-1EE62,U+1EE64,U+1EE67-1EE6A,U+1EE6C-1EE72,U+1EE74-1EE77,U+1EE79-1EE7C,U+1EE7E,U+1EE80-1EE89,U+1EE8B-1EE9B,U+1EEA1-1EEA3,U+1EEA5-1EEA9,U+1EEAB-1EEBB,U+1EEF0-1EEF1;
}
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 600;
  font-display: optional;
  src: url('fonts/ibm-plex-sans-arabic-latin-600-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400;
  font-display: optional;
  src: url('fonts/ibm-plex-sans-latin-400-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 600;
  font-display: optional;
  src: url('fonts/ibm-plex-sans-latin-600-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

:root {
  --r: 18px;
  --r-lg: 26px;
  --pill: 999px;
  --wrap: 1140px;
  --gutter: 16px;
  --band: clamp(56px, 8vw, 104px);
  --head: 64px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
html[lang="ar-JO"] { --font: 'IBM Plex Sans Arabic', 'Noto Sans Arabic', 'Segoe UI', Tahoma, sans-serif; --lh: 1.75; --lh-head: 1.3; }
html[lang="en"] { --font: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; --lh: 1.6; --lh-head: 1.15; }
@media (min-width: 600px) { :root { --gutter: 24px; } }
@media (min-width: 1024px) { :root { --gutter: 32px; --head: 72px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--head) + 16px); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 1.0625rem; line-height: var(--lh);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
body.menu-open { overflow: hidden; }
h1, h2, h3 { margin: 0; font-weight: 600; line-height: var(--lh-head); color: var(--ink); }
h1 { font-size: clamp(2rem, 1.35rem + 3.2vw, 3.4rem); }
h2 { font-size: clamp(1.55rem, 1.2rem + 1.6vw, 2.3rem); }
h3, .h3 { font-size: 1.1rem; line-height: 1.45; }
html[lang="en"] h1, html[lang="en"] h2 { letter-spacing: -.015em; }
p, ul, ol, figure { margin: 0; }
a { color: var(--jade-deep); text-underline-offset: .2em; }
img, svg { max-width: 100%; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
main:focus { outline: none; }
bdi { unicode-bidi: isolate; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap.narrow { max-width: 820px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip {
  position: absolute; inset-inline-start: 12px; top: -80px; z-index: 100;
  background: var(--surface); color: var(--ink); padding: 10px 16px; border-radius: 10px; box-shadow: var(--shadow);
}
.skip:focus { top: 12px; }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 10px 22px; border-radius: var(--pill); border: 1.5px solid transparent;
  font: inherit; font-weight: 600; line-height: 1.3; text-align: center; text-decoration: none; cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.btn .ico-svg { width: 20px; height: 20px; flex: none; }
.btn-sm { min-height: 42px; padding: 8px 16px; font-size: .95rem; }
.btn-lg { min-height: 54px; padding: 12px 28px; font-size: 1.05rem; }
.btn-primary { background: var(--jade); color: var(--on-jade); }
.btn-primary:hover { background: var(--jade-deep); }
.btn-quiet, .btn-wa { background: transparent; color: var(--jade-deep); border-color: var(--jade); }
.btn-quiet:hover, .btn-wa:hover { background: var(--jade-tint); }
.btn-on-jade { background: var(--on-jade); color: var(--jade); }
.btn-on-jade:hover { background: var(--jade-tint); color: var(--jade-deep); }
.btn-on-jade-quiet { background: transparent; color: var(--on-jade); border-color: var(--on-jade); }
.btn-on-jade-quiet:hover { background: var(--jade-deep); }
.text-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.text-link .ico-svg { width: 18px; height: 18px; }
[dir="rtl"] .flip { transform: scaleX(-1); }

.wa-try { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.wa-hint { font-size: .9rem; color: var(--ink-soft); max-width: 46ch; line-height: 1.55; }
.closing .wa-hint { color: var(--on-jade); }

/* ---------------------------------------------------------------- header + nav (one nav: a bar on desktop, the menu on phones) */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg); border-block-end: 1px solid transparent;
  transition: border-color .2s var(--ease);
}
@supports (backdrop-filter: blur(2px)) {
  .site-header { background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: saturate(1.4) blur(14px); }
}
.site-header.scrolled { border-block-end-color: var(--line); }
.bar { display: flex; align-items: center; gap: 12px; min-height: var(--head); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 1.08rem; }
.brand .logo { width: 32px; height: 32px; flex: none; }
.menu-btn {
  margin-inline-start: auto; display: inline-grid; place-items: center; width: 46px; height: 46px;
  border-radius: 12px; border: 1.5px solid var(--field); background: var(--surface); color: var(--ink); cursor: pointer;
}
.menu-btn .i-close, .menu-btn[aria-expanded="true"] .i-open { display: none; }
.menu-btn[aria-expanded="true"] .i-close { display: block; }

.nav { display: none; }
.nav-links { list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--ink); text-decoration: none; font-weight: 500; }
.nav-links a[aria-current="page"] { color: var(--jade-deep); font-weight: 600; }
.nav-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.lang-link { color: var(--ink); font-weight: 600; text-decoration: none; padding: 8px 6px; }
.lang-link:hover { color: var(--jade-deep); }

/* the theme control: three radios, a segmented control */
.theme-ctl { border: 0; margin: 0; padding: 0; min-inline-size: 0; }
html:not(.js) .theme-ctl { display: none; }
.seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: var(--pill); border: 1.5px solid var(--field); background: var(--surface); }
.seg-opt { position: relative; display: inline-flex; align-items: center; gap: 6px; min-height: 34px; min-width: 34px; padding: 0 8px; justify-content: center; border-radius: var(--pill); color: var(--ink-soft); cursor: pointer; }
.seg-opt input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.seg-opt .ico-svg { width: 18px; height: 18px; }
.seg-opt:has(input:checked) { background: var(--jade-tint); color: var(--jade-deep); }
.seg-opt:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.seg-opt .lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (max-width: 1179px) {
  .nav.open {
    display: flex; flex-direction: column; gap: 14px;
    position: fixed; inset-inline: 0; top: var(--head); max-height: calc(100dvh - var(--head)); overflow-y: auto;
    padding: 12px var(--gutter) 24px; background: var(--surface); border-block-end: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .nav-links a { display: block; padding: 11px 4px; font-size: 1.08rem; border-block-end: 1px solid var(--line); }
  .nav-tools { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .nav-tools .lang-link { grid-column: 1; align-self: center; }
  .nav-tools .theme-ctl { grid-column: 2; justify-self: end; }
  .seg-opt .lbl { position: static; width: auto; height: auto; overflow: visible; clip: auto; font-size: .85rem; }
  .seg-opt { padding: 0 10px; }
  .nav-tools .btn { width: 100%; }
  /* without JavaScript the menu cannot open: show the links under the bar instead */
  html:not(.js) .nav { display: block; width: 100%; padding-block-end: 12px; }
  html:not(.js) .bar { flex-wrap: wrap; }
  html:not(.js) .menu-btn { display: none; }
}
@media (max-width: 420px) {
  .nav-tools { grid-template-columns: 1fr; }
  .nav-tools .theme-ctl { grid-column: 1; justify-self: start; }
}
@media (min-width: 1180px) {
  .menu-btn { display: none; }
  .nav { display: flex; align-items: center; gap: 22px; margin-inline-start: auto; }
  .nav-links { display: flex; gap: 20px; }
  .nav-links a { padding: 6px 0; font-size: .98rem; }
  .nav-links a:hover { color: var(--jade-deep); }
  .nav-tools { flex-wrap: nowrap; }
}

/* ---------------------------------------------------------------- sections */
.band { padding-block: var(--band); }
.band.alt { background: var(--bg-2); }
.band.tight { padding-block-start: 8px; }
.sec-head { max-width: 760px; margin-block-end: clamp(28px, 4vw, 44px); }
.sec-head.center { text-align: center; margin-inline: auto; }
.eyebrow { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 10px; color: var(--jade-deep); font-weight: 600; font-size: .92rem; margin-block-end: 12px; }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--gold); border-radius: 2px; }
html[lang="en"] .eyebrow { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; }
html[lang="en"] .eyebrow .tag { text-transform: none; letter-spacing: 0; }
.lead { margin-block-start: 14px; font-size: 1.12rem; color: var(--ink-soft); max-width: 62ch; }
.sec-head.center .lead { margin-inline: auto; }
.more { margin-block-start: 28px; }
.actions { margin-block-start: 24px; display: flex; flex-wrap: wrap; gap: 12px; }
.note { font-size: .92rem; color: var(--ink-soft); }

.tag {
  display: inline-flex; align-items: center; padding: 2px 10px; border-radius: var(--pill);
  font-size: .78rem; font-weight: 600; line-height: 1.6; vertical-align: middle;
  background: var(--jade-tint); color: var(--jade-deep);
}
.tags { display: inline-flex; flex-wrap: wrap; gap: 6px; vertical-align: middle; }
.tag-complete { background: var(--gold-tint); color: var(--gold-deep); }
.tag-addon, .tag-doctors { background: transparent; color: var(--ink-soft); box-shadow: inset 0 0 0 1px var(--line-strong); }

/* hero */
.hero { position: relative; overflow: hidden; padding-block: clamp(36px, 7vw, 88px) var(--band); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(520px 380px at 88% 8%, var(--jade-tint), transparent 70%),
    radial-gradient(460px 340px at 8% 92%, var(--gold-tint), transparent 70%);
}
:root[data-theme="dark"] .hero::before { opacity: .55; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hero::before { opacity: .55; } }
.hero-grid { display: grid; gap: 40px; align-items: center; grid-template-columns: minmax(0, 1fr); }
.hero-copy h1 { margin-block-start: 4px; }
.hero-copy .lead { font-size: clamp(1.1rem, 1rem + .5vw, 1.3rem); }
.hero-actions { margin-block-start: 28px; display: flex; flex-wrap: wrap; align-items: flex-start; gap: 16px 20px; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.15fr .85fr; gap: 56px; } }
.page-hero { padding-block: clamp(36px, 6vw, 72px) 8px; }
.page-hero .sec-head { margin-block-end: 24px; }

/* grids */
.cards, .features, .steps, .addons, .channel-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 720px) {
  .cards.cols-3, .features.cols-2, .features.cols-3, .addons { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .cards.cols-3, .features.cols-3, .addons { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.card, .feature, .addon, .step, .channel, .note-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; min-width: 0;
}
.card h3 { margin-block: 12px 6px; }
.card p, .step p, .feature p, .addon p { color: var(--ink-soft); }
.feature { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: start; }
.feature h3 { margin-block-end: 4px; }
.feature h3 .tag { margin-inline-start: 4px; }
.features.compact .feature { padding: 18px; }
.f-ico { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--jade-tint); color: var(--jade-deep); flex: none; }
.f-ico .ico-svg { width: 22px; height: 22px; }
.step .num { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--jade-tint); color: var(--jade-deep); font-weight: 600; margin-block-end: 12px; }
.step h3 { margin-block-end: 4px; }

.split { display: grid; gap: 32px; grid-template-columns: minmax(0, 1fr); }
.split .features { align-content: start; }
@media (min-width: 1024px) {
  .split { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: start; }
  .split.with-mock { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
  .split.with-mock > :last-child { position: sticky; top: calc(var(--head) + 24px); }
}

/* channels */
.channel-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-block-end: 16px; }
.channel { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 18px; }
.ch-name { font-weight: 600; }
@media (max-width: 560px) { .channel-cards { grid-template-columns: minmax(0, 1fr); } .channel { flex-direction: row; align-items: center; } .channel .tag { margin-inline-start: auto; } }

/* ---------------------------------------------------------------- the mock screens */
.phone { width: 100%; max-width: 360px; margin-inline: auto; padding: 10px; border-radius: 36px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.phone-screen { border-radius: 28px; overflow: hidden; background: var(--wa-bg); }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--wa-head); color: var(--on-wa-head); }
.avatar { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--on-wa-head); color: var(--wa-head); font-weight: 600; flex: none; }
.who { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.who .name { font-weight: 600; font-size: .95rem; }
.who .status { font-size: .78rem; }
.chat { display: flex; flex-direction: column; gap: 8px; padding: 14px 12px 18px; }
.bubble {
  max-width: 86%; padding: 7px 11px 5px; border-radius: 14px; font-size: .93rem; line-height: 1.5;
  color: var(--wa-ink); background: var(--wa-in); box-shadow: 0 1px 1px rgba(0, 0, 0, .08); overflow-wrap: anywhere;
}
.bubble.in { align-self: flex-start; border-start-start-radius: 4px; }
.bubble.out { align-self: flex-end; background: var(--wa-out); border-start-end-radius: 4px; }
.bubble .t { display: block; text-align: end; font-size: .72rem; color: var(--wa-meta); margin-block-start: 2px; }
.bubble.typing { display: inline-flex; gap: 4px; padding: 12px 14px; }
.bubble.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--wa-meta); }

.app { width: 100%; max-width: 440px; margin-inline: auto; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; }
.app-bar { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-block-end: 1px solid var(--line); font-weight: 600; }
.app-bar .logo { width: 26px; height: 26px; }
.tiles { display: grid; gap: 10px; padding: 14px; }
.tile { background: var(--surface-2); border-radius: 14px; padding: 12px 14px; }
.tile .q { font-size: .84rem; color: var(--ink-soft); }
.tile .v { font-weight: 600; }
.meter { height: 8px; margin-block: 8px 6px; border-radius: var(--pill); background: var(--jade-tint); overflow: hidden; }
.meter i { display: block; height: 100%; width: 62%; background: var(--jade); border-radius: inherit; }
.rows-title { padding: 4px 16px 0; font-weight: 600; font-size: .95rem; }
.rows { list-style: none; margin: 0; padding: 4px 16px 14px; }
.row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding-block: 10px; border-block-start: 1px solid var(--line); }
.row:first-child { border-block-start: 0; }
.row .svc { font-weight: 600; }
.row .when, .row .num { font-size: .84rem; color: var(--ink-soft); }
.row .num { text-align: end; }
.st { justify-self: end; font-size: .78rem; font-weight: 600; padding: 2px 10px; border-radius: var(--pill); }
.st-booked { background: var(--jade-tint); color: var(--jade-deep); }
.st-moved { background: var(--gold-tint); color: var(--gold-deep); }
.st-cancelled { background: var(--blush-tint); color: var(--rose-deep); }

.timeline-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; box-shadow: var(--shadow); max-width: 440px; width: 100%; margin-inline: auto; }
.tl-title { font-weight: 600; margin-block-end: 14px; }
.timeline { list-style: none; padding: 0; display: grid; gap: 0; }
.timeline li { position: relative; display: grid; grid-template-columns: 22px minmax(0, 1fr); column-gap: 12px; padding-block-end: 18px; }
.timeline li::before { content: ""; position: absolute; inset-inline-start: 10px; top: 16px; bottom: -2px; width: 2px; background: var(--line-strong); }
.timeline li.last::before { display: none; }
.timeline .dot { grid-row: span 2; width: 22px; height: 22px; border-radius: 50%; background: var(--jade-tint); box-shadow: inset 0 0 0 5px var(--surface), inset 0 0 0 22px var(--jade); position: relative; z-index: 1; }
.timeline li.first .dot { background: var(--surface-2); box-shadow: inset 0 0 0 2px var(--field); }
.timeline li.last .dot { background: var(--surface); box-shadow: inset 0 0 0 2px var(--field); }
.timeline .at { font-size: .84rem; color: var(--jade-deep); font-weight: 600; }
.timeline .what { color: var(--ink); }
.tl-note { display: flex; align-items: center; gap: 8px; padding-block-start: 12px; border-block-start: 1px solid var(--line); color: var(--ink-soft); font-size: .92rem; }
.tl-note .ico-svg { width: 20px; height: 20px; color: var(--jade-deep); flex: none; }

/* ---------------------------------------------------------------- the live demo */
.demo { display: grid; gap: 32px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1024px) { .demo { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; } }
.demo-copy .note { margin-block: -16px 20px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-block-end: 24px; }
.chip, .quick button {
  font: inherit; font-size: .92rem; padding: 7px 14px; border-radius: var(--pill); cursor: pointer;
  background: var(--surface); color: var(--jade-deep); border: 1.5px solid var(--jade);
}
.chip:hover, .quick button:hover { background: var(--jade-tint); }
.demo-phone { max-width: 400px; }
.demo-log { height: 380px; overflow-y: auto; overscroll-behavior: contain; }
.quick { display: flex; flex-wrap: wrap; gap: 6px; align-self: flex-start; }
.quick button { font-size: .85rem; padding: 5px 12px; background: var(--wa-in); }
.composer { display: flex; gap: 8px; padding: 10px; background: var(--wa-head); }
.composer input {
  flex: 1; min-width: 0; min-height: 44px; padding: 8px 14px; border-radius: var(--pill);
  border: 1.5px solid var(--field); background: var(--surface); color: var(--ink); font: inherit;
}
.composer .send { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--on-wa-head); color: var(--wa-head); cursor: pointer; flex: none; }
.composer .send .ico-svg { width: 20px; height: 20px; }

/* ---------------------------------------------------------------- closing band */
.closing { background: var(--jade); color: var(--on-jade); border-radius: var(--r-lg); padding: clamp(28px, 6vw, 64px); text-align: center; }
.closing h2 { color: var(--on-jade); }
.closing p { margin-block-start: 12px; font-size: 1.1rem; }
.closing-actions { margin-block-start: 28px; display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: 16px 20px; }
.closing .wa-try { align-items: center; }
.closing .wa-hint { text-align: center; }

/* ---------------------------------------------------------------- how it works */
.toc-inline ol { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.toc-inline a { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: var(--pill); background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: .95rem; }
[dir="rtl"] .toc-inline a { padding: 6px 6px 6px 14px; }
.toc-inline a:hover { border-color: var(--jade); }
.toc-inline .n, .chap-n { display: inline-grid; place-items: center; min-width: 26px; height: 26px; border-radius: 50%; background: var(--jade-tint); color: var(--jade-deep); font-weight: 600; font-size: .85rem; }
.note-card { display: grid; gap: 16px; align-items: center; }
.note-card h2 { font-size: 1.3rem; }
.note-card p { color: var(--ink-soft); }
@media (min-width: 760px) { .note-card { grid-template-columns: auto minmax(0, 1fr) auto; padding: 26px 30px; } }
.faq { display: grid; gap: 10px; }
.qa { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.qa summary { cursor: pointer; padding: 16px 20px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; color: var(--jade-deep); font-size: 1.3rem; line-height: 1; }
.qa[open] summary::after { content: "−"; }
.qa p { padding: 0 20px 18px; color: var(--ink-soft); }

/* ---------------------------------------------------------------- packages */
.packages { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); padding-block-start: 16px; }
@media (min-width: 960px) { .packages { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; } }
.package { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px 24px 24px; min-width: 0; }
.package.best { border: 2px solid var(--jade); box-shadow: var(--shadow); }
.best-badge { position: absolute; top: -14px; inset-inline-start: 22px; padding: 3px 12px; border-radius: var(--pill); background: var(--jade); color: var(--on-jade); font-size: .82rem; font-weight: 600; }
.package h3 { font-size: 1.45rem; }
.pitch { margin-block-start: 6px; color: var(--ink-soft); }
.pk-lead { margin-block-start: 18px; font-weight: 600; }
.pk-items { list-style: none; padding: 0; margin-block: 14px 26px; display: grid; gap: 10px; }
.pk-items li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; }
.pk-items .ico-svg { width: 20px; height: 20px; color: var(--jade); margin-block-start: 3px; }
.package .btn { margin-block-start: auto; }
.addon { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: start; }
.addon h3 { margin-block-end: 4px; }
.addon-foot { margin-block-start: 24px; display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }
.branch-link { display: inline-flex; align-items: center; gap: 10px; padding: 14px 20px; border-radius: var(--r); background: var(--surface); border: 1.5px solid var(--jade); font-weight: 600; text-decoration: none; }
.branch-link:hover { background: var(--jade-tint); }
.branch-link .ico-svg { width: 20px; height: 20px; flex: none; }
.no-contract { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.no-contract .ico-svg { width: 20px; height: 20px; color: var(--jade); }
.two-cards { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 860px) { .two-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.two-cards .card { padding: 28px; }
.two-cards h2 { font-size: 1.35rem; margin-block-end: 10px; }

/* ---------------------------------------------------------------- contact */
.contact-grid { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 960px) { .contact-grid { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: start; } }
.form { display: grid; gap: 18px; padding: clamp(20px, 4vw, 32px); }
.form h2 { font-size: 1.35rem; }
.form .hint { color: var(--ink-soft); font-size: .92rem; margin-block-start: -10px; }
.form-grid { display: grid; gap: 18px; }
@media (min-width: 640px) { .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.field { display: grid; gap: 6px; min-width: 0; border: 0; margin: 0; padding: 0; }
.field > label, .field > legend { font-weight: 600; padding: 0; }
.req { color: var(--rose-deep); }
.opt { color: var(--ink-soft); font-weight: 400; font-size: .9rem; }
.form input:not([type="checkbox"]), .form select, .form textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; border-radius: 12px; border: 1.5px solid var(--field);
  background: var(--surface); color: var(--ink); font: inherit;
}
.form textarea { resize: vertical; }
.form input:focus-visible, .form select:focus-visible, .form textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--jade); border-radius: 12px; }
.form [aria-invalid="true"] { border-color: var(--rose-deep); }
.err { color: var(--rose-deep); font-size: .9rem; font-weight: 500; }
.check-grid { display: grid; gap: 8px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .check-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-block-start: 4px; accent-color: var(--jade); flex: none; }
.form-status:not(:empty), .form-alert:not(:empty) { padding: 14px 16px; border-radius: 12px; color: var(--ink); }
.form-status:not(:empty) { background: var(--jade-tint); }
.form-alert:not(:empty) { background: var(--blush-tint); }
.form-alert a { color: var(--ink); font-weight: 600; }
.form .btn[disabled] { opacity: .75; cursor: progress; }
.hp { display: none !important; }
.contact-side { display: grid; gap: 16px; }
.contact-side .card { padding: 24px; }
.contact-side .card p { margin-block-start: 6px; color: var(--ink-soft); }
.contact-side .wa-try { margin-block-start: 16px; }
.email-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; overflow-wrap: anywhere; }
.email-link .ico-svg { width: 20px; height: 20px; flex: none; }

/* ---------------------------------------------------------------- privacy: v8's markup, new design */
.legal-hero { padding-block: clamp(36px, 6vw, 72px) 12px; }
.legal-hero .sec-head { margin-block-end: 0; }
.legal-hero .meta { margin-block-start: 10px; color: var(--ink-soft); }
.legal { padding-block: 16px var(--band); }
.legal-grid { display: grid; gap: 24px; }
@media (min-width: 901px) { .legal-grid { grid-template-columns: 280px minmax(0, 1fr); gap: 48px; align-items: start; } .toc { position: sticky; top: calc(var(--head) + 20px); } }
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 6px 8px; }
.toc summary { cursor: pointer; padding: 10px 10px; font-weight: 600; }
.toc ol { list-style: none; padding: 0 0 8px; margin: 0; display: grid; gap: 2px; }
.toc a { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 6px; padding: 7px 10px; border-radius: 10px; color: var(--ink-soft); text-decoration: none; font-size: .92rem; line-height: 1.45; }
.toc a:hover, .toc a.on { background: var(--jade-tint); color: var(--jade-deep); }
.toc .n { font-weight: 600; }
.legal-body { min-width: 0; max-width: 760px; }
.legal-body section { padding-block-end: 28px; margin-block-end: 28px; border-block-end: 1px solid var(--line); }
.legal-body section:last-child { border-block-end: 0; }
.legal-body h2 { font-size: 1.35rem; display: flex; gap: 12px; align-items: baseline; margin-block-end: 12px; }
.legal-body h2 .n { flex: none; display: inline-grid; place-items: center; min-width: 32px; height: 32px; padding-inline: 6px; border-radius: var(--pill); background: var(--jade-tint); color: var(--jade-deep); font-size: .9rem; }
.legal-body h3 { margin-block: 18px 8px; }
.legal-body p, .legal-body li { color: var(--ink); }
.legal-body p + p, .legal-body p + ul, .legal-body p + ol, .legal-body ul + p, .legal-body ol + p { margin-block-start: 12px; }
.legal-body ul, .legal-body ol { padding-inline-start: 22px; display: grid; gap: 6px; margin-block-start: 8px; }
.legal-body .lede { font-size: 1.08rem; }
.legal-body .todo { background: var(--gold-tint); color: var(--gold-deep); padding: 0 6px; border-radius: 6px; }
.legal-body .tbl { overflow-x: auto; margin-block: 14px; border: 1px solid var(--line); border-radius: 14px; }
.legal-body table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.legal-body th, .legal-body td { text-align: start; padding: 10px 12px; border-block-end: 1px solid var(--line); vertical-align: top; }
.legal-body th { background: var(--surface-2); font-weight: 600; }
.legal-body tr:last-child td { border-block-end: 0; }
.notice-bubble { margin-block-start: 12px; max-width: 520px; padding: 12px 14px; border-radius: 14px; border-start-start-radius: 4px; background: var(--wa-in); color: var(--wa-ink); box-shadow: var(--shadow-sm); }
.ltr { direction: ltr; unicode-bidi: isolate; }
.legal-body a { overflow-wrap: anywhere; }

/* ---------------------------------------------------------------- footer */
.footer { background: var(--bg-2); border-block-start: 1px solid var(--line); padding-block: 48px 28px; margin-block-start: 0; }
.foot-grid { display: grid; gap: 32px; }
@media (min-width: 860px) { .foot-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr); } }
.foot-brand p { margin-block-start: 12px; color: var(--ink-soft); max-width: 36ch; }
.foot-social a { display: inline-flex; align-items: center; gap: 8px; color: var(--jade-deep); font-weight: 600; text-decoration: none; }
.foot-social a:hover { text-decoration: underline; }
.foot-social .ico-svg { width: 20px; height: 20px; flex: none; }
.foot-nav { display: grid; gap: 24px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 600px) { .foot-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.foot-h { font-weight: 600; margin-block-end: 10px; }
.foot-col ul { list-style: none; padding: 0; display: grid; gap: 8px; }
.foot-col a { color: var(--ink-soft); text-decoration: none; overflow-wrap: anywhere; }
.foot-col a:hover { color: var(--jade-deep); text-decoration: underline; }
.foot-col .foot-email { overflow-wrap: normal; }            /* wraps only after the @ (a <wbr>), never inside a word */
.foot-bottom { margin-block-start: 36px; padding-block-start: 20px; border-block-start: 1px solid var(--line); color: var(--ink-soft); font-size: .9rem; }

/* ---------------------------------------------------------------- shadows only where they read; motion only when wanted */
.card, .feature, .addon, .step, .channel { box-shadow: var(--shadow-sm); }
html.theme-anim, html.theme-anim *, html.theme-anim *::before, html.theme-anim *::after {
  transition: background-color .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease), fill .3s var(--ease) !important;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .bubble.typing i { animation: blink 1.2s infinite ease-in-out; }
  .bubble.typing i:nth-child(2) { animation-delay: .15s; }
  .bubble.typing i:nth-child(3) { animation-delay: .3s; }
  @keyframes blink { 0%, 80%, 100% { opacity: .35; } 40% { opacity: 1; } }
}
@media print { .site-header, .footer, .closing, .demo, .skip { display: none; } }
