/* Mawedi — one stylesheet, no framework. Phone first; logical properties only (margin-inline,
   inset-inline, padding-inline…), so the same rules serve Arabic and Hebrew (both right-to-left)
   and would serve a left-to-right language without a change.

   The colours are the clinic app's own tokens (src/app/globals.css there), converted from oklch to
   hex so an older phone draws them too. The font is the app's: Rubik, which carries Arabic,
   Hebrew and Latin; the three files are the ones the app's build serves, kept here so the page
   asks no other site for anything.

   Motion is decoration only: every animation is off under prefers-reduced-motion, and the page is
   complete without it. The positions `.s0…`, `.l1…`, `.h10…` at the very end are generated by build.mjs. */

@font-face {
  font-family: "Rubik";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("fonts/rubik-arabic.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-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;
}
@font-face {
  font-family: "Rubik";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("fonts/rubik-hebrew.woff2") format("woff2");
  unicode-range: U+0307-0308, U+0590-05FF, U+20AA, U+25CC, U+FB1D-FB4F;
}
@font-face {
  font-family: "Rubik";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("fonts/rubik-latin.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 {
  --ink: #142221;
  --muted: #5a6665;
  --line: #d6e1e0;
  --page: #f0f9f4;
  --paper: #ffffff;
  --soft: #eaf5f1;
  --accent: #007a7b;
  --accent-strong: #006869;
  --tint: #d3f3eb;
  --deep: #223131;
  --coral-dark: #8d1b17;
  --coral-tint: #ffe4de;
  --ok: #358e61;
  --ok-dark: #1e6b43;
  --ok-tint: #cdf3db;
  --blue-dark: #1f5a8a;
  --blue-tint: #dcecf8;
  --amber-dark: #8a5700;
  --amber-tint: #ffedcf;
  --pink-dark: #8a2a52;
  --pink-tint: #fbe0ea;
  --grey-dark: #44504f;
  --grey-tint: #e7eceb;
  --red-dark: #8d1b17;
  --red-tint: #ffe4de;
  --wa: #0f7a63;
  --wa-strong: #0b6b56;
  --r: 20px;
  --r-lg: 28px;
  --shadow-1: 0 1px 2px rgba(20, 34, 33, 0.04), 0 10px 26px -14px rgba(20, 34, 33, 0.22);
  --shadow-2: 0 2px 4px rgba(20, 34, 33, 0.05), 0 26px 50px -26px rgba(20, 34, 33, 0.38);
  --shadow-3: 0 2px 6px rgba(20, 34, 33, 0.06), 0 44px 90px -44px rgba(20, 34, 33, 0.5);
  --font: "Rubik", system-ui, -apple-system, "Segoe UI", "Noto Sans Arabic", "Noto Sans Hebrew", Arial, sans-serif;
  --gutter: clamp(16px, 5vw, 32px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background-color: var(--page);
  background-image:
    radial-gradient(38% 440px at 88% 0, rgba(120, 214, 190, 0.5), transparent 72%),
    radial-gradient(34% 400px at 6% 140px, rgba(186, 222, 255, 0.5), transparent 72%),
    radial-gradient(40% 360px at 60% 680px, rgba(255, 230, 190, 0.32), transparent 72%);
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
svg { display: block; flex: none; }
a { color: inherit; }
b, strong { font-weight: 600; }
small { font-size: 0.86em; }
i { font-style: normal; }

.wrap { width: min(100% - 2 * var(--gutter), 1120px); margin-inline: auto; }
.wrap-narrow { width: min(100% - 2 * var(--gutter), 760px); }
.icon { width: 24px; height: 24px; }
.nowrap { white-space: nowrap; }
.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: 8px; top: -64px; z-index: 80; padding: 10px 16px; border-radius: 10px; background: #fff; font-weight: 600; }
.skip:focus { top: 8px; }
:focus-visible { outline: 3px solid #5fb8b9; outline-offset: 3px; border-radius: 6px; }

/* ───────── header: a floating bar */
.site-header { position: sticky; top: 8px; z-index: 40; margin-top: 8px; pointer-events: none; }
.header-bar {
  pointer-events: auto;
  display: flex; align-items: center; gap: 12px;
  width: min(100% - 2 * var(--gutter), 1120px); min-height: 60px; margin-inline: auto;
  padding-block: 6px; padding-inline: 14px 8px;
  border: 1px solid rgba(255, 255, 255, 0.8); border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  -webkit-backdrop-filter: blur(16px) saturate(1.5); backdrop-filter: blur(16px) saturate(1.5);
  box-shadow: 0 10px 34px -16px rgba(20, 34, 33, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-mark { width: 38px; height: 38px; border-radius: 11px; }
.brand-text { display: flex; align-items: baseline; gap: 8px; line-height: 1.1; }
.brand-primary { font-weight: 700; font-size: 1.4rem; }
.brand-secondary { font-weight: 500; font-size: 0.92rem; color: var(--muted); }
.nav { display: none; margin-inline-start: 14px; gap: 2px; }
.nav a { white-space: nowrap; padding: 8px 12px; border-radius: 99px; text-decoration: none; color: var(--muted); font-weight: 500; font-size: 0.95rem; transition: background 0.15s, color 0.15s; }
.nav a:hover { background: var(--soft); color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }
.lang-switch { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 99px; border: 1.5px solid var(--line); background: #fff; color: var(--accent-strong); font-weight: 600; font-size: 0.95rem; text-decoration: none; transition: border-color 0.15s; }
.lang-switch:hover { border-color: var(--accent); }
.link-quiet { padding: 8px 10px; color: var(--muted); font-weight: 500; font-size: 0.95rem; text-decoration: none; }
.link-quiet:hover { color: var(--ink); }
@media (min-width: 1060px) { .nav { display: flex; } } /* six links: the Hebrew labels need the room */
@media (max-width: 420px) { .brand-secondary { display: none; } .header-bar { gap: 10px; } }
@media (max-width: 380px) {
  .header-bar { gap: 8px; padding-inline: 10px 6px; }
  .header-actions { gap: 6px; }
  .brand { gap: 8px; }
  .brand-primary { font-size: 1.25rem; }
  .lang-switch { padding: 0 10px; font-size: 0.9rem; }
  .header-actions .btn-sm { padding: 0 12px; gap: 6px; font-size: 0.9rem; }
}

/* The narrowest phones (320 px) in Hebrew, where the wordmark is the longer Latin one: the button keeps
   its icon and keeps its name for a screen reader. */
@media (max-width: 350px) {
  .header-actions .btn-sm span { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
  .header-actions .btn-sm { padding: 0 11px; }
}

/* ───────── buttons */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 28px; overflow: hidden; border: 1.5px solid transparent; border-radius: 99px; font-weight: 600; font-size: 1.0625rem; line-height: 1.2; text-decoration: none; cursor: pointer; transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease; }
.btn .icon { width: 22px; height: 22px; }
.btn-wa { background: linear-gradient(180deg, #16876f, #0f7a63); color: #fff; box-shadow: 0 12px 26px -14px rgba(15, 122, 99, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.22); }
.btn-wa::after { content: ""; position: absolute; inset-block: 0; inset-inline-start: -60%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.28), transparent); transform: skewX(-20deg); transition: inset-inline-start 0.6s ease; }
.btn-wa:hover { transform: translateY(-2px); box-shadow: 0 18px 30px -14px rgba(15, 122, 99, 1), inset 0 1px 0 rgba(255, 255, 255, 0.22); }
.btn-wa:hover::after { inset-inline-start: 120%; }
.btn-ghost { background: rgba(255, 255, 255, 0.85); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent); transform: translateY(-2px); }
.btn-ghost .icon { color: var(--accent); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 0.95rem; box-shadow: none; }
.btn-sm .icon { width: 18px; height: 18px; }

/* ───────── hero */
.hero { position: relative; overflow: clip; padding: clamp(28px, 5vw, 64px) 0 clamp(48px, 7vw, 96px); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(rgba(0, 122, 123, 0.16) 1px, transparent 1.3px); background-size: 24px 24px; -webkit-mask-image: radial-gradient(60% 55% at 50% 30%, #000 10%, transparent 75%); mask-image: radial-gradient(60% 55% at 50% 30%, #000 10%, transparent 75%); pointer-events: none; }
.hero-in { position: relative; display: grid; gap: 52px; align-items: center; }
.hero-copy { max-width: 640px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 5px 14px; border: 1px solid rgba(0, 122, 123, 0.18); border-radius: 99px; background: rgba(255, 255, 255, 0.7); color: var(--accent-strong); font-weight: 600; font-size: 0.92rem; box-shadow: 0 6px 16px -10px rgba(0, 122, 123, 0.5); }
.eyebrow .icon { width: 18px; height: 18px; }
h1 { margin-top: 20px; font-size: clamp(2.1rem, 6.8vw, 3.7rem); line-height: 1.2; font-weight: 700; letter-spacing: -0.015em; text-wrap: balance; }
.lang-ar h1 { line-height: 1.5; letter-spacing: 0; }
h1 .mark { background: linear-gradient(100deg, #007a7b 10%, #22a37a 90%); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.lead { margin-top: 20px; font-size: clamp(1.06rem, 2.5vw, 1.28rem); line-height: 1.75; color: var(--muted); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.cta-row .btn { flex: 1 1 230px; }
@media (min-width: 640px) { .cta-row .btn { flex: 0 1 auto; } }
.cta-wide { justify-content: center; }
.points { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.points li { display: inline-flex; align-items: center; gap: 7px; padding: 6px 14px; border: 1px solid var(--line); border-radius: 99px; background: rgba(255, 255, 255, 0.72); color: var(--ink); font-weight: 500; font-size: 0.93rem; }
.points .icon { width: 17px; height: 17px; color: var(--ok); }
.todo-note { display: inline-block; margin-top: 12px; padding: 4px 12px; border-radius: 8px; background: var(--coral-tint); color: var(--coral-dark); font-weight: 600; font-size: 0.92rem; }
@media (min-width: 900px) { .hero-in { grid-template-columns: 1.06fr 0.94fr; gap: 64px; } }

/* The picture of the message */
.hero-visual { position: relative; display: grid; justify-items: center; }
.halo { position: absolute; inset-block-start: -2%; width: min(500px, 110%); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(167, 226, 208, 0.95) 0%, rgba(167, 226, 208, 0) 66%); z-index: 0; }
.phone-stage { position: relative; z-index: 1; width: min(100%, 300px); }
.float-toast { position: absolute; z-index: 2; inset-block-start: -40px; inset-inline-end: -8px; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: var(--shadow-2); font-size: 0.86rem; line-height: 1.35; }
.float-toast .icon { width: 22px; height: 22px; color: var(--accent); }
.float-toast small { display: block; color: var(--muted); font-size: 0.8rem; }
.float-board { position: absolute; z-index: 2; inset-block-start: 46%; inset-inline-start: -176px; display: none; min-width: 176px; gap: 8px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: var(--shadow-2); font-size: 0.86rem; }
.float-board li { display: flex; align-items: center; gap: 8px; }
.float-board li span { flex: 1; color: var(--muted); }
.float-board li b { font-size: 1.05rem; }
.float-board .tone-green b { color: var(--ok-dark); }
.float-board .tone-blue b { color: var(--blue-dark); }
.float-board .tone-red b { color: var(--red-dark); }
@media (min-width: 1100px) { .float-board { display: grid; } }
@media (min-width: 420px) { .float-toast { inset-inline-end: -26px; } }
.fig-caption { position: relative; z-index: 1; max-width: 300px; margin-top: 18px; color: var(--muted); font-size: 0.86rem; line-height: 1.5; text-align: center; }
.dot { display: inline-block; flex: none; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.dot.tone-green { color: var(--ok); }
.dot.tone-blue { color: #2f8fd0; }
.dot.tone-red { color: #cf4a3f; }
.dot.tone-amber { color: #d28a14; }
.dot.tone-grey { color: #7c8988; }
.dot.tone-pink { color: #c24b78; }
.dot-blue { color: #2f8fd0; }

/* ───────── sections */
.section { padding: clamp(52px, 8vw, 104px) 0; }
.section-head { max-width: 720px; margin-bottom: clamp(28px, 4.5vw, 52px); }
.kicker { display: inline-flex; align-items: center; padding: 3px 12px; border-radius: 99px; background: var(--tint); color: var(--accent-strong); font-weight: 600; font-size: 0.86rem; }
h2 { margin-top: 12px; font-size: clamp(1.7rem, 4.8vw, 2.55rem); line-height: 1.28; font-weight: 700; letter-spacing: -0.01em; text-wrap: balance; }
.lang-ar h2 { line-height: 1.55; letter-spacing: 0; }
.section-head p { margin-top: 12px; color: var(--muted); }
h3 { font-size: 1.15rem; line-height: 1.45; font-weight: 600; }
.lang-ar h3 { line-height: 1.6; }

/* the small pictures in the grid */
.v-wa { display: grid; gap: 8px; justify-items: start; }
.v-bub { max-width: 100%; padding: 10px 12px 0; overflow: hidden; border-radius: 14px; background: #fff; box-shadow: var(--shadow-1); font-size: 0.86rem; line-height: 1.55; color: var(--ink); }
.v-bub > b { display: block; margin-bottom: 2px; }
.v-bub .wa-actions-in { margin: 8px -12px 0; }
.v-dim { margin-top: 4px; color: var(--muted); font-size: 0.82rem; }
.v-link { display: flex; align-items: center; gap: 8px; margin: 8px -12px 0; padding: 9px 12px; border-top: 1px solid #ececec; color: #0b6fa5; font-weight: 600; }
.v-link .icon { width: 18px; height: 18px; }
.v-chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border: 1px dashed #8fd3c2; border-radius: 99px; background: #fff; color: var(--accent-strong); font-weight: 600; font-size: 0.84rem; }
.v-chip .icon { width: 17px; height: 17px; }
.v-stats { display: grid; gap: 8px; }
.v-stats .tile { grid-template-columns: 1fr auto; align-items: center; }
.v-stats .tile .bar { grid-column: 1 / -1; }
.v-stats .tile b { font-size: 1.35em; }
.v-chat { font-size: 12px; }
.v-cal { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; height: 100%; }
.v-col { display: flex; flex-direction: column; }
.v-col-head { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; font-weight: 600; font-size: 0.82rem; }
.v-col-body { position: relative; flex: 1; min-height: 168px; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.v-notes { display: grid; gap: 8px; }
.v-note { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 14px; background: #fff; box-shadow: var(--shadow-1); }
.v-note .icon { width: 20px; height: 20px; }
.v-note b { display: block; font-size: 0.88rem; line-height: 1.35; }
.v-note small { color: var(--muted); }
.v-note.tone-green .icon { color: var(--ok); }
.v-note.tone-red .icon { color: #cf4a3f; }
.v-note.tone-blue .icon { color: #2f8fd0; }
.v-book { display: grid; gap: 8px; padding: 14px; border-radius: 16px; background: #fff; box-shadow: var(--shadow-1); font-size: 0.9rem; }
.v-book small { color: var(--muted); margin-top: -6px; }
.v-slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.v-slot { padding: 7px 0; border: 1px solid var(--line); border-radius: 10px; font-weight: 600; font-size: 0.84rem; text-align: center; }
.v-slot-on { border-color: var(--accent); background: var(--accent); color: #fff; }
.v-bars { display: flex; align-items: stretch; gap: 12px; height: 150px; padding-top: 6px; }
.v-bar { display: grid; flex: 1; grid-template-rows: 1fr auto; justify-items: center; align-items: end; gap: 6px; }
.v-bar i { display: block; width: 100%; border-radius: 8px 8px 4px 4px; background: linear-gradient(#007a7b, #46b9a6); }
.v-bar small { color: var(--muted); font-size: 0.72rem; line-height: 1.2; text-align: center; }
.v-dev { display: flex; align-items: flex-end; justify-content: center; gap: 26px; }
.v-fig { display: grid; justify-items: center; gap: 12px; color: #c8dad6; font-size: 0.8rem; }
.v-phone { display: grid; align-content: start; gap: 5px; width: 54px; height: 100px; padding: 10px 7px; border: 3px solid #9fe8d6; border-radius: 13px; }
.v-laptop { position: relative; display: grid; align-content: start; gap: 5px; width: 130px; height: 84px; padding: 10px; border: 3px solid #9fe8d6; border-radius: 9px 9px 4px 4px; }
.v-laptop::after { content: ""; position: absolute; inset-inline: -14px; bottom: -11px; height: 7px; border-radius: 0 0 9px 9px; background: #9fe8d6; }
.v-phone i, .v-laptop i { display: block; height: 8px; border-radius: 3px; background: rgba(159, 232, 214, 0.32); }
.v-phone i:first-child, .v-laptop i:first-child { width: 60%; background: rgba(159, 232, 214, 0.6); }
.v-sep { display: flex; align-items: center; gap: 10px; }
.v-clinic { display: grid; flex: 1; gap: 7px; padding: 12px; border: 1.5px solid rgba(159, 232, 214, 0.4); border-radius: 14px; }
.v-clinic b { color: #fff; font-size: 0.86rem; }
.v-clinic i { display: block; height: 7px; border-radius: 3px; background: rgba(159, 232, 214, 0.28); }
.v-lock { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 50%; background: #9fe8d6; color: #173030; }
.v-lock .icon { width: 22px; height: 22px; }

/* ───────── pictures of screens */
.screens { padding-top: clamp(36px, 5vw, 64px); background: linear-gradient(var(--page), #fff 14%, var(--soft) 100%); }
.shots { display: flex; gap: 22px; margin-inline: calc(var(--gutter) * -1); padding: 12px var(--gutter) 30px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.shot { display: flex; flex: 0 0 clamp(270px, 78vw, 300px); flex-direction: column; align-items: center; gap: 16px; scroll-snap-align: center; }
@media (min-width: 1000px) {
  .shots { justify-content: center; gap: 32px; margin-inline: 0; padding-inline: 0; overflow: visible; }
  .shot { flex: 0 1 300px; }
  .shot:nth-child(2) { translate: 0 -22px; }
}
figcaption { max-width: 300px; color: var(--muted); font-size: 0.95rem; line-height: 1.55; text-align: center; }
.tag { display: table; margin: 8px auto 0; padding: 1px 9px; border-radius: 99px; background: var(--tint); color: var(--accent-strong); font-weight: 600; font-size: 0.76rem; white-space: nowrap; }
.device { position: relative; width: 100%; aspect-ratio: 300 / 600; padding: 9px; border-radius: 40px; background: linear-gradient(160deg, #1d3130, #0e1b1a); box-shadow: var(--shadow-3), inset 0 0 0 1.5px rgba(255, 255, 255, 0.08); }
.device-notch { position: absolute; inset-block-start: 15px; inset-inline: 0; z-index: 2; width: 80px; height: 20px; margin-inline: auto; border-radius: 12px; background: #0e1b1a; }
.device-screen { position: relative; height: 100%; overflow: hidden; border-radius: 32px; background: var(--page); font-size: 12px; line-height: 1.45; }
.app { display: flex; flex-direction: column; height: 100%; gap: 10px; padding: 40px 12px 0; }
.app-head h4 { font-size: 1.5em; line-height: 1.3; font-weight: 700; }
.app-head p { margin-top: 2px; color: var(--muted); font-size: 0.92em; line-height: 1.4; }
.app-head-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 4px 11px; border: 1px solid var(--line); border-radius: 99px; background: #fff; font-weight: 600; font-size: 0.95em; line-height: 1.5; }
.chip-on { border-color: #9fdccb; background: var(--tint); color: var(--accent-strong); }
.chip-n { padding: 0 6px; border-radius: 99px; background: #ce5247; color: #fff; font-size: 0.85em; line-height: 1.6; }
.chip .icon { width: 12px; height: 12px; transform: rotate(90deg); }

.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tile { display: grid; gap: 1px; padding: 8px 10px 9px; border-radius: 14px; background: #fff; box-shadow: var(--shadow-1); }
.tile-label { display: flex; align-items: center; gap: 5px; font-weight: 600; font-size: 0.9em; }
.tile b { font-size: 1.7em; line-height: 1.15; font-weight: 700; }
.bar { width: 100%; height: 4px; margin-top: 2px; }
.bar-bg { fill: #e8efee; }
.bar-fg { fill: currentColor; opacity: 0.85; }
.tile.tone-grey { color: var(--grey-dark); }
.tile.tone-green { color: var(--ok-dark); }
.tile.tone-blue { color: var(--blue-dark); }
.tile.tone-amber { color: var(--amber-dark); }
.tile.tone-red { color: var(--red-dark); }
.tile.tone-pink { color: var(--pink-dark); }
.tile .dot { color: currentColor; }

.rows { display: grid; gap: 6px; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; border-radius: 12px; background: #fff; box-shadow: var(--shadow-1); }
.row-main { display: grid; line-height: 1.35; }
.row-main small { color: var(--muted); font-size: 0.9em; }
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 99px; font-weight: 600; font-size: 0.92em; white-space: nowrap; }
.pill .icon { width: 15px; height: 15px; }
.pill.tone-green { background: var(--ok-tint); color: var(--ok-dark); }
.pill.tone-blue { background: var(--blue-tint); color: var(--blue-dark); }
.pill.tone-red { background: var(--red-tint); color: var(--red-dark); }

.chat-list { overflow: hidden; border-radius: 14px; background: #fff; box-shadow: var(--shadow-1); }
.chat-row { display: flex; align-items: flex-start; gap: 10px; padding: 10px; border-bottom: 1px solid var(--line); }
.chat-row:last-child { border-bottom: 0; }
.av { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--tint); color: var(--accent-strong); font-weight: 700; }
.chat-main { display: grid; flex: 1; gap: 2px; min-width: 0; }
.chat-top { display: flex; justify-content: space-between; gap: 6px; }
.chat-top small { color: var(--muted); }
.chat-text { overflow: hidden; color: var(--muted); font-size: 0.95em; text-overflow: ellipsis; white-space: nowrap; }
.tag-chip { justify-self: start; padding: 0 8px; border-radius: 99px; background: var(--amber-tint); color: var(--amber-dark); font-weight: 600; font-size: 0.85em; }
.badge { display: grid; place-items: center; flex: none; align-self: center; min-width: 20px; height: 20px; border-radius: 99px; background: var(--accent); color: #fff; font-weight: 700; font-size: 0.85em; }

.agenda { display: grid; gap: 8px; }
.slot { display: flex; align-items: stretch; gap: 10px; }
.slot-time { flex: none; width: 36px; padding-top: 7px; color: var(--muted); font-weight: 600; font-size: 0.95em; }
.slot-card { display: grid; flex: 1; padding: 6px 10px; border: 1.5px solid transparent; border-inline-start: 4px solid var(--accent); border-radius: 12px; background: #fff; box-shadow: var(--shadow-1); line-height: 1.35; }
.slot-card small { color: var(--muted); }
.slot-pending .slot-card { border: 1.5px dashed #7fb2d6; border-inline-start: 4px solid #2f8fd0; background: #f4faff; }
.slot-free .slot-card { align-content: center; border: 1.5px dashed #b9cfcb; border-inline-start-width: 1.5px; background: repeating-linear-gradient(135deg, transparent 0 6px, rgba(0, 122, 123, 0.06) 6px 12px); box-shadow: none; color: var(--accent-strong); }
.legend { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 0.9em; }
.legend-box { width: 16px; height: 10px; border: 1.5px dashed #7fb2d6; border-radius: 3px; }
.week { display: flex; justify-content: space-between; gap: 2px; margin-top: auto; padding: 5px; border-radius: 14px; background: #fff; box-shadow: var(--shadow-1); }
.day { display: grid; flex: 1; place-items: center; padding: 3px 0; border-radius: 10px; color: var(--muted); line-height: 1.3; }
.day b { color: var(--ink); font-size: 1.15em; }
.day-on { background: var(--tint); }

.tabbar { display: flex; align-items: center; justify-content: space-around; margin: 0 -12px; padding: 6px 4px 9px; border-top: 1px solid var(--line); background: rgba(255, 255, 255, 0.97); }
.app > .tabbar:last-child { margin-top: auto; }
.week + .tabbar { margin-top: 0; }
.tab { display: grid; justify-items: center; gap: 1px; color: var(--muted); font-weight: 600; font-size: 0.82em; }
.tab .icon { width: 20px; height: 20px; }
.tab-on { color: var(--accent-strong); }
.fab { display: grid; place-items: center; width: 42px; height: 42px; margin-top: -20px; border-radius: 14px; background: var(--accent); color: #fff; box-shadow: 0 10px 18px -10px rgba(0, 122, 123, 0.9); }
.fab .icon { width: 22px; height: 22px; }

/* The blocks of a day: a column of sixteen quarter-hours, the same in the window and in the small picture. */
.blk { position: absolute; inset-inline: 4px; display: grid; align-content: center; overflow: hidden; padding: 0.3em 0.7em; border-radius: 0.7em; font-size: 0.92em; line-height: 1.25; }
.blk b { font-size: 1em; }
.blk small { color: var(--muted); font-size: 0.9em; }
.col-blue .blk.st-confirmed { background: #e6f2fb; border-inline-start: 4px solid #2f8fd0; }
.col-amber .blk.st-confirmed { background: #fff2dc; border-inline-start: 4px solid #e0952b; }
.blk.st-pending { background: #fff; border: 1.5px dashed #7fb2d6; }
.col-amber .blk.st-pending { border-color: #e0b36b; }
.blk.st-free { place-content: center; border: 1.5px dashed #9fd6c7; background: repeating-linear-gradient(135deg, transparent 0 6px, rgba(0, 122, 123, 0.07) 6px 12px); color: var(--accent-strong); font-weight: 600; text-align: center; }
.blk.st-off { place-content: center; background: repeating-linear-gradient(135deg, #eef2f1 0 6px, #e3e9e8 6px 12px); color: var(--muted); text-align: center; }

/* The computer's calendar in a browser window. Everything inside is sized in em, and the window's
   font-size is a share of its own width, so the picture scales as one. Hidden on a phone: the
   phone's own picture is above. */
.win-fig { display: none; flex-direction: column; align-items: center; gap: 18px; margin-top: clamp(40px, 6vw, 72px); }
@media (min-width: 900px) { .win-fig { display: flex; } }
.win-wrap { width: 100%; max-width: 1040px; container-type: inline-size; }
.win { overflow: hidden; border: 1px solid var(--line); border-radius: 1.4em; background: #fff; box-shadow: var(--shadow-3); font-size: 14px; font-size: 1.5cqw; line-height: 1.4; }
.win-bar { display: flex; align-items: center; gap: 0.5em; padding: 0.85em 1.1em; border-bottom: 1px solid var(--line); background: #f1f6f5; }
.win-bar i { width: 0.8em; height: 0.8em; border-radius: 50%; background: #d3dedd; }
.win-body { display: grid; grid-template-columns: 14em 1fr; }
.win-side { display: flex; flex-direction: column; gap: 1em; padding: 1.2em 1em; border-inline-end: 1px solid var(--line); background: #f7fbf9; }
.win-brand { display: flex; align-items: center; gap: 0.7em; }
.win-logo { display: grid; place-items: center; width: 2.5em; height: 2.5em; border-radius: 0.8em; background: var(--accent); color: #fff; }
.win-logo .icon { width: 1.4em; height: 1.4em; }
.win-brand b { display: block; font-size: 1.05em; line-height: 1.3; }
.win-brand small { color: var(--muted); }
.win-nav { display: grid; gap: 0.15em; }
.win-nav li { padding: 0.5em 0.8em; border-radius: 0.8em; color: var(--muted); font-weight: 500; }
.win-nav .on { background: var(--tint); color: var(--accent-strong); font-weight: 600; }
.win-branches { display: grid; gap: 0.4em; margin-top: auto; padding: 0.7em; border: 1px solid var(--line); border-radius: 1em; background: #fff; }
.win-branches small { color: var(--muted); }
.win-branches span { padding: 0.4em 0.7em; border-radius: 0.7em; font-weight: 600; }
.win-branches .on { background: var(--tint); color: var(--accent-strong); }
.win-main { display: grid; align-content: start; gap: 1em; padding: 1.1em 1.4em 1.4em; }
.win-top { display: flex; align-items: center; justify-content: space-between; gap: 1em; }
.win-search { display: flex; flex: 1; align-items: center; gap: 0.6em; max-width: 26em; padding: 0.55em 1em; border: 1px solid var(--line); border-radius: 99px; background: #fff; color: var(--muted); }
.win-search .icon { width: 1.2em; height: 1.2em; }
.win-new { display: inline-flex; align-items: center; gap: 0.4em; padding: 0.6em 1.2em; border-radius: 99px; background: var(--accent); color: #fff; font-weight: 600; box-shadow: 0 10px 18px -10px rgba(0, 122, 123, 0.9); }
.win-new .icon { width: 1.2em; height: 1.2em; }
.win-head { display: flex; flex-wrap: wrap; align-items: center; gap: 1.2em; }
.win-head > b { font-size: 1.5em; }
.win-views { display: inline-flex; padding: 0.25em; border-radius: 99px; background: #eaf2f0; }
.win-views i { padding: 0.35em 1em; border-radius: 99px; color: var(--muted); font-weight: 600; }
.win-views .on { background: #fff; color: var(--ink); box-shadow: var(--shadow-1); }
.win-sum { display: inline-flex; align-items: center; gap: 0.5em; margin-inline-start: auto; color: var(--ok-dark); font-weight: 600; }
.win-sum .icon { width: 1.3em; height: 1.3em; }
.w-cal { display: grid; grid-template-columns: 3.4em 1fr; gap: 0.6em; }
.w-hours { display: grid; grid-template-rows: repeat(4, 6em); padding-top: 3.7em; color: var(--muted); font-size: 0.9em; }
.w-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1em; }
.w-col-head { display: grid; align-content: center; height: 3em; margin-bottom: 0.7em; line-height: 1.3; }
.w-col-head b { display: flex; align-items: center; gap: 0.5em; }
.w-col-head small { color: var(--muted); }
.w-col-body { position: relative; height: 24em; border: 1px solid var(--line); border-radius: 1em; background-color: #fbfdfc; background-image: repeating-linear-gradient(to bottom, transparent 0, transparent calc(6em - 1px), var(--line) calc(6em - 1px), var(--line) 6em); }
.w-col-body .blk { font-size: 0.95em; }

/* ───────── how to start, price, questions, closing */
.go-list { display: grid; gap: 14px; }
@media (min-width: 900px) { .go-list { grid-template-columns: repeat(4, 1fr); gap: 20px; } }
.go { position: relative; display: flex; align-items: flex-start; gap: 14px; padding: 22px; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; box-shadow: var(--shadow-1); transition: transform 0.25s ease, box-shadow 0.25s ease; }
.go:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
@media (min-width: 900px) { .go { flex-direction: column; } }
.go-n { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 14px; background: linear-gradient(160deg, #0b9a8c, #007a7b); color: #fff; font-weight: 700; box-shadow: 0 12px 20px -12px rgba(0, 122, 123, 0.9); }
.go p { margin-top: 4px; color: var(--muted); font-size: 0.99rem; }

.price { padding-top: 0; }
.price-card { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding: clamp(26px, 4vw, 42px); overflow: hidden; border: 1px solid #bfe6da; border-radius: var(--r-lg); background: linear-gradient(135deg, #d3f3eb 0%, #eaf8f3 55%, #fff 100%); }
.price-card::before { content: ""; position: absolute; inset-block-start: -80px; inset-inline-end: -60px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(0, 122, 123, 0.16), transparent 70%); }
.price-card > * { position: relative; }
.price-card h2 { margin-top: 0; font-size: 1.6rem; }
.price-card p { margin-top: 6px; font-size: 1.12rem; }

.faq { padding-top: 0; }
.qa-list { display: grid; gap: 10px; }
.qa { border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: var(--shadow-1); transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.qa[open] { border-color: #bfe6da; box-shadow: var(--shadow-2); }
.qa summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; padding: 14px 20px; list-style: none; cursor: pointer; font-weight: 600; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary .icon { width: 22px; height: 22px; padding: 3px; border-radius: 50%; background: var(--tint); color: var(--accent-strong); transition: transform 0.2s ease; }
.qa[open] summary .icon { transform: rotate(45deg); }
.qa-a { padding: 0 20px 18px; color: var(--muted); }

.final { position: relative; overflow: hidden; padding: clamp(56px, 9vw, 108px) 0; background: #1d2d2d; color: #fff; text-align: center; }
.final::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 90% at 88% 0, rgba(0, 170, 150, 0.45), transparent 70%), radial-gradient(42% 80% at 8% 100%, rgba(90, 140, 255, 0.26), transparent 70%); }
.final-in { position: relative; }
.final h2 { margin-top: 0; font-size: clamp(1.8rem, 5.2vw, 2.8rem); }
.final p { margin-top: 10px; color: #c8dad6; font-size: 1.1rem; }
.final .btn-ghost { border-color: rgba(255, 255, 255, 0.35); background: transparent; color: #fff; }
.final .btn-ghost .icon { color: #9fe8d6; }
.final .btn-ghost:hover { border-color: #9fe8d6; }
.final .todo-note { margin-top: 14px; }

.site-footer { padding: 34px 0 44px; background: #172323; color: #b9cbc7; font-size: 0.96rem; }
.footer-in { display: grid; gap: 18px; }
.footer-brand { display: flex; align-items: center; gap: 12px; color: #fff; }
.footer-brand p { margin-top: 2px; color: #b9cbc7; font-size: 0.92rem; line-height: 1.5; }
.footer-brand .brand-secondary { color: #b9cbc7; }
.footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; }
.footer-links a { color: #fff; text-decoration: none; font-weight: 500; }
.footer-links a:hover { text-decoration: underline; }
.footer-links .lang-switch { color: var(--accent-strong); }
.legal { max-width: 60em; color: #98aca8; font-size: 0.86rem; line-height: 1.6; }

/* ───────── motion (decoration only) */
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(0.96); } to { opacity: 1; transform: none; } }
@keyframes typing { 0% { opacity: 0; max-height: 0; padding-block: 0; } 12% { opacity: 1; max-height: 36px; padding-block: 10px; } 88% { opacity: 1; max-height: 36px; padding-block: 10px; } 100% { opacity: 0; max-height: 0; padding-block: 0; } }
@keyframes dots { 0%, 80%, 100% { transform: scale(0.6); opacity: 0.5; } 40% { transform: scale(1); opacity: 1; } }
@keyframes drop { from { opacity: 0; transform: translateY(-14px) scale(0.96); } to { opacity: 1; transform: none; } }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }
@keyframes rise { from { opacity: 0; transform: translateY(30px) scale(0.985); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: no-preference) {
  .float-toast { animation: drop 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) both 4.7s, bob 6s ease-in-out 5.4s infinite; }
  .float-board { animation: drop 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) both 5.1s, bob 7s ease-in-out 5.8s infinite; }
  @supports (animation-timeline: view()) {
    .reveal { animation: rise linear both; animation-timeline: view(); animation-range: entry 4% cover 26%; }
  }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* WhatsApp, drawn the way WhatsApp draws a business chat: a bubble with a tail, its buttons as separate
   bars under it, a reply that quotes what it answers, a message field at the foot. The colours and
   the drawing are ours, not WhatsApp's artwork. Right-to-left: an incoming bubble sits at the
   start (right) side and an outgoing one at the end (left), as WhatsApp mirrors itself. */

[hidden] { display: none !important; }

.wa-phone { padding: 9px; border-radius: 40px; background: linear-gradient(160deg, #1d3130, #0e1b1a); box-shadow: var(--shadow-3), inset 0 0 0 1.5px rgba(255, 255, 255, 0.08); }
.wa-screen { position: relative; display: flex; flex-direction: column; height: 600px; overflow: hidden; border-radius: 32px; background: #efeae2; font-size: 12.5px; line-height: 1.55; }

.wa-top { display: flex; align-items: center; flex: none; gap: 9px; padding: 16px 12px 9px 10px; border-bottom: 1px solid #e3ded4; background: #fff; }
.wa-back { display: grid; place-items: center; color: #54656f; }
.wa-back .icon { width: 20px; height: 20px; }
.wa-avatar { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--tint); color: var(--accent-strong); }
.wa-avatar .icon { width: 21px; height: 21px; }
.wa-who { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.wa-who b { font-size: 14px; }
.wa-who small { color: #667781; font-size: 11.5px; }
.wa-tools { display: flex; gap: 15px; margin-inline-start: auto; color: #54656f; }
.wa-tools .icon { width: 20px; height: 20px; }

.wa-chat { display: flex; flex: 1; flex-direction: column; justify-content: flex-end; gap: 6px; min-height: 0; padding: 10px 10px 12px; overflow: hidden; background-color: #efeae2; background-image: radial-gradient(rgba(0, 0, 0, 0.04) 1px, transparent 1px); background-size: 14px 14px; }
.wa-chat > * { flex: none; }
.wa-sep { align-self: center; padding: 2px 10px; border-radius: 8px; background: #fff; color: #667781; font-size: 11px; box-shadow: 0 1px 1px rgba(11, 20, 26, 0.1); }
.wa-notice { align-self: center; max-width: 88%; padding: 6px 12px; border-radius: 10px; background: #fcf4cb; color: #54656f; font-size: 11.5px; text-align: center; box-shadow: 0 1px 1px rgba(11, 20, 26, 0.1); }
.wa-msg { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; max-width: 94%; }
.wa-msg-out { align-self: flex-end; align-items: flex-end; max-width: 80%; }
.wa-bubble { position: relative; padding: 7px 10px 4px; border-radius: 10px; background: #fff; box-shadow: 0 1px 1px rgba(11, 20, 26, 0.13); color: #111b21; }
.wa-in::before { content: ""; position: absolute; top: 0; inset-inline-start: -7px; border-top: 8px solid #fff; border-inline-start: 8px solid transparent; }
.wa-out { background: #d9fdd3; }
.wa-out::before { content: ""; position: absolute; top: 0; inset-inline-end: -7px; border-top: 8px solid #d9fdd3; border-inline-end: 8px solid transparent; }
.wa-in { border-start-start-radius: 0; }
.wa-out { border-start-end-radius: 0; }
.wa-bubble p + p { margin-top: 6px; }
.wa-head { display: block; margin-bottom: 3px; font-weight: 600; }
.wa-foot { display: block; margin-top: 5px; color: #667781; font-size: 11px; }
.wa-time { display: flex; align-items: center; justify-content: flex-end; gap: 3px; margin-top: 1px; color: #667781; font-size: 10.5px; }
.wa-time .icon { width: 15px; height: 15px; color: #53bdeb; }
.wa-rtext { display: block; }
.wa-quote { display: grid; margin: -1px 0 5px; padding: 4px 8px; border-inline-start: 4px solid #06cf9c; border-radius: 6px; background: rgba(11, 20, 26, 0.06); line-height: 1.35; }
.wa-quote b { color: #06a77d; font-size: 11.5px; }
.wa-quote span { color: #54656f; font-size: 12px; }

.wa-btns { display: grid; gap: 2px; width: 100%; }
.wa-btn { position: relative; display: flex; align-items: center; justify-content: center; gap: 7px; width: 100%; padding: 9px 10px; overflow: hidden; border: 0; border-radius: 8px; background: #fff; box-shadow: 0 1px 1px rgba(11, 20, 26, 0.13); color: #027eb5; font: inherit; font-weight: 500; cursor: default; }
button.wa-btn { cursor: pointer; }
.wa-btn .icon { width: 17px; height: 17px; }
[dir="rtl"] .icon-reply { transform: scaleX(-1); }
.wa-btn.tapped::after, .c-btn.tapped::after, .slot-freebtn.tapped::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle, rgba(2, 126, 181, 0.32), transparent 62%); animation: ripple 0.5s ease-out both; pointer-events: none; }

.wa-input { display: flex; align-items: center; flex: none; gap: 8px; padding: 8px 10px 14px; background: #efeae2; }
.wa-field { display: flex; flex: 1; align-items: center; min-height: 38px; padding: 0 14px; border-radius: 99px; background: #fff; color: #111b21; }
.wa-ph { color: #8696a0; }
.wa-in-icon { display: grid; place-items: center; color: #8696a0; }
.wa-in-icon .icon { width: 21px; height: 21px; }
.wa-round { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; background: #00a884; color: #fff; }
.wa-round .icon { width: 20px; height: 20px; }
.wa-send { display: none; }
.wa-input.typing .wa-ph, .wa-input.typing .wa-mic { display: none; }
.wa-input.typing .wa-send { display: grid; }

/* The page the instructions button opens, inside the phone */
.wa-page { position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column; background: #fff; animation: pagein 0.32s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.wa-page-top { display: flex; align-items: center; gap: 10px; padding: 36px 12px 10px; border-bottom: 1px solid var(--line); background: #f7f8f8; }
.wa-x { display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 50%; background: transparent; color: #54656f; cursor: pointer; }
.wa-x .icon { width: 20px; height: 20px; }
.wa-page-body { flex: 1; padding: 14px 14px 20px; overflow-y: auto; background: linear-gradient(#f1faf6, #fff 240px); font-size: 13px; line-height: 1.6; }
.pg-chip { display: inline-block; padding: 2px 12px; border-radius: 99px; background: var(--tint); color: var(--accent-strong); font-weight: 600; font-size: 0.9em; }
.pg-title { display: block; margin-top: 8px; font-size: 1.35em; line-height: 1.35; font-weight: 700; }
.pg-intro { margin-top: 4px; color: var(--muted); }
.pg-steps { display: grid; gap: 10px; margin-top: 12px; }
.pg-step { padding: 10px 12px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: var(--shadow-1); }
.pg-badge { display: inline-block; padding: 1px 10px; border-radius: 99px; font-weight: 600; font-size: 0.85em; }
.pg-avoid { border-color: #f3c6bf; }
.pg-avoid .pg-badge { background: var(--red-tint); color: var(--red-dark); }
.pg-normal .pg-badge { background: var(--ok-tint); color: var(--ok-dark); }
.pg-appointments .pg-badge { background: var(--blue-tint); color: var(--blue-dark); }
.pg-step small { display: block; margin-top: 4px; color: var(--muted); font-weight: 600; }
.pg-step p { margin-top: 2px; }
.pg-step strong { color: var(--accent-strong); }
.pg-avoid strong { color: var(--red-dark); }
.pg-closing { margin-top: 14px; font-weight: 600; text-align: center; color: var(--accent-strong); }
.pg-phone { margin-top: 6px; text-align: center; color: var(--muted); }

/* ───────── the first screen: the message plays out by itself (CSS only; still, and complete, without motion) */
.hl-n0, .hl-w0 { display: none; }
.float-board b { position: relative; display: inline-block; min-width: 1em; text-align: end; }
.hl-n1, .hl-w1 { display: inline; }
@keyframes hl-sep { 0% { opacity: 0; } 3% { opacity: 1; } 92% { opacity: 1; } 97%, 100% { opacity: 0; } }
@keyframes hl-1 { 0%, 3% { opacity: 0; max-height: 0; transform: translateY(14px) scale(0.97); } 8% { opacity: 1; max-height: 520px; transform: none; } 92% { opacity: 1; max-height: 520px; transform: none; } 97%, 100% { opacity: 0; max-height: 0; } }
@keyframes hl-tap { 0%, 17% { opacity: 0; transform: scale(0.3); } 18% { opacity: 1; transform: scale(0.6); } 23% { opacity: 0; transform: scale(1.6); } 100% { opacity: 0; } }
@keyframes hl-2 { 0%, 20% { opacity: 0; max-height: 0; transform: translateY(12px); } 25% { opacity: 1; max-height: 160px; transform: none; } 92% { opacity: 1; max-height: 160px; transform: none; } 97%, 100% { opacity: 0; max-height: 0; } }
@keyframes hl-3 { 0%, 30% { opacity: 0; max-height: 0; transform: translateY(12px); } 35% { opacity: 1; max-height: 240px; transform: none; } 92% { opacity: 1; max-height: 240px; transform: none; } 97%, 100% { opacity: 0; max-height: 0; } }
@keyframes hl-toast { 0%, 38% { opacity: 0; transform: translateY(-14px) scale(0.96); } 43% { opacity: 1; transform: none; } 90% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }
@keyframes hl-board { 0%, 5% { opacity: 0; transform: translateY(10px); } 10% { opacity: 1; transform: none; } 90% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }
@keyframes hl-old { 0%, 38% { opacity: 1; } 39%, 100% { opacity: 0; } }
@keyframes hl-new { 0%, 38% { opacity: 0; } 39%, 92% { opacity: 1; } 97%, 100% { opacity: 0; } }
@media (prefers-reduced-motion: no-preference) {
  .hl-sep { animation: hl-sep 14s infinite both; }
  .hl-msg1 { animation: hl-1 14s infinite both; overflow: hidden; }
  .hl-msg2 { animation: hl-2 14s infinite both; overflow: hidden; }
  .hl-msg3 { animation: hl-3 14s infinite both; overflow: hidden; }
  .hl-tapbtn::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle, rgba(2, 126, 181, 0.34), transparent 62%); opacity: 0; animation: hl-tap 14s infinite both; }
  .hero-visual .float-toast { animation: hl-toast 14s infinite both; }
  .hero-visual .float-board { animation: hl-board 14s infinite both; }
  .hl-n0, .hl-w0 { display: inline; animation: hl-old 14s infinite both; }
  .hl-n1, .hl-w1 { position: absolute; inset-inline-end: 0; top: 0; animation: hl-new 14s infinite both; }
}

@keyframes ripple { from { opacity: 1; transform: scale(0.4); } to { opacity: 0; transform: scale(1.7); } }
@keyframes pagein { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes sheetup { from { transform: translateY(100%); } to { transform: none; } }

/* The features: an index of all of them, then four groups, each a row of cards with a small picture.
   On a phone a group is a row you swipe; on a wide screen it is a grid. */

.features { padding-bottom: clamp(36px, 5vw, 64px); background: linear-gradient(#fff, var(--page) 38%); }
.glance { margin-bottom: clamp(32px, 5vw, 56px); padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--r-lg); background: rgba(255, 255, 255, 0.82); box-shadow: var(--shadow-1); }
.glance > b { display: block; margin-bottom: 12px; color: var(--muted); font-size: 0.95rem; font-weight: 600; }
.glance ul { display: flex; flex-wrap: wrap; gap: 8px; }
.glance a { display: inline-flex; align-items: center; gap: 7px; padding: 6px 14px 6px 12px; border: 1px solid var(--line); border-radius: 99px; background: #fff; font-size: 0.92rem; font-weight: 500; text-decoration: none; transition: border-color 0.15s, background 0.15s, color 0.15s, transform 0.15s; }
.glance a:hover { transform: translateY(-1px); border-color: var(--accent); background: var(--tint); color: var(--accent-strong); }
.glance .icon { width: 17px; height: 17px; color: var(--accent); }

.fgroup + .fgroup { margin-top: clamp(40px, 6vw, 76px); }
.fgroup-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; margin-bottom: 14px; }
.fgroup-head h3 { font-size: clamp(1.3rem, 3.4vw, 1.8rem); font-weight: 700; }
.fgroup-head p { color: var(--muted); }

.frow { display: flex; gap: 14px; margin-inline: calc(var(--gutter) * -1); padding: 6px var(--gutter) 22px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.fcard { display: flex; flex: 0 0 min(84vw, 340px); flex-direction: column; gap: 18px; padding: 22px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; box-shadow: var(--shadow-1); scroll-snap-align: center; transition: transform 0.25s ease, box-shadow 0.25s ease; }
.fcard:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.fcard:target { box-shadow: 0 0 0 3px #5fb8b9, var(--shadow-2); }
.fcard-text { display: flex; flex-direction: column; gap: 8px; }
.b-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 15px; background: var(--tint); color: var(--accent-strong); }
.b-icon .icon { width: 24px; height: 24px; }
.fcard h4 { margin-top: 4px; font-size: 1.12rem; line-height: 1.45; font-weight: 600; }
.lang-ar .fcard h4 { line-height: 1.6; }
.fcard p { color: var(--muted); font-size: 0.97rem; }
.card-list { display: grid; gap: 6px; margin-top: 2px; font-size: 0.94rem; }
.card-list li { position: relative; padding-inline-start: 20px; }
.card-list li::before { content: ""; position: absolute; inset-inline-start: 2px; top: 0.78em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.fcard-vis { display: grid; align-content: center; min-height: 156px; margin-top: auto; padding: 14px; border-radius: 18px; background: var(--soft); }
.fcard-feature { border-color: #bfe6da; background: linear-gradient(135deg, #d9f5ed 0%, #fff 72%); }
.fcard-feature .b-icon { background: #fff; }
.fcard-feature .fcard-vis { background: rgba(255, 255, 255, 0.7); }
.fcard-dark { border-color: #2c4545; background: linear-gradient(160deg, #264040, #172626); color: #fff; }
.fcard-dark p { color: #c8dad6; }
.fcard-dark .b-icon { background: rgba(255, 255, 255, 0.1); color: #9fe8d6; }
.fcard-dark .fcard-vis { background: rgba(255, 255, 255, 0.06); }

@media (min-width: 900px) {
  .frow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-inline: 0; padding-inline: 0; overflow: visible; }
  .frow-4 { grid-template-columns: repeat(2, 1fr); }
  .fcard { flex: none; }
}
@media (min-width: 1180px) { .frow-4 { grid-template-columns: repeat(4, 1fr); } }

/* the small pictures in the cards (the ones that need more than the base stylesheet's) */
.v-wa .wa-actions-in { margin: 8px -12px 0; }
.wa-actions-in span { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 9px; border-top: 1px solid #ececec; color: #027eb5; font-weight: 600; text-align: center; }
.wa-actions-in .icon { width: 15px; height: 15px; }
.c-wl-main { display: grid; flex: 1; min-width: 0; line-height: 1.35; }
.c-wl-main small { color: var(--muted); }
.c-kind { padding: 1px 9px; border-radius: 99px; font-weight: 600; font-size: 0.82em; white-space: nowrap; }
.c-kind.tone-red { background: var(--red-tint); color: var(--red-dark); }
.c-kind.tone-amber { background: var(--amber-tint); color: var(--amber-dark); }
.v-text { display: grid; gap: 8px; padding: 14px; border-radius: 14px; background: #fff; box-shadow: var(--shadow-1); font-size: 0.9rem; }
.v-text small { color: var(--muted); font-weight: 600; }
.v-text p { padding: 8px 10px; border: 1.5px dashed #9fd6c7; border-radius: 10px; background: #f6fcfa; }
.v-ok { display: inline-flex; align-items: center; justify-self: start; gap: 5px; padding: 2px 10px; border-radius: 99px; background: var(--ok-tint); color: var(--ok-dark); font-weight: 600; font-size: 0.82rem; }
.v-ok .icon { width: 15px; height: 15px; }
.v-list { display: grid; gap: 10px; padding: 12px; border-radius: 14px; background: #fff; box-shadow: var(--shadow-1); font-size: 0.9rem; }
.v-list header { display: grid; line-height: 1.35; }
.v-list header small { color: var(--muted); }
.v-list ul { display: grid; gap: 8px; }
.v-wl { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 12px; background: var(--soft); }
.v-fu { display: grid; gap: 10px; font-size: 0.9rem; }
.v-fu ul { display: grid; gap: 8px; }
.v-fu li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: #fff; box-shadow: var(--shadow-1); }
.v-call { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--tint); color: var(--accent-strong); }
.v-call .icon { width: 17px; height: 17px; }
.v-today { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.v-today li { display: grid; padding: 10px 12px; border-radius: 14px; background: #fff; box-shadow: var(--shadow-1); line-height: 1.25; }
.v-today b { font-size: 1.55rem; line-height: 1.15; color: var(--accent-strong); }
.v-today small { color: var(--muted); }
.v-file { display: grid; gap: 10px; padding: 12px; border-radius: 14px; background: #fff; box-shadow: var(--shadow-1); font-size: 0.9rem; }
.v-file-head { display: flex; align-items: center; gap: 10px; }
.v-file-head > span:last-child { display: grid; line-height: 1.3; }
.v-file-head small { color: var(--muted); }
.v-file ul { display: grid; gap: 6px; }
.v-file li { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 10px; background: var(--soft); }
.v-file li .icon { width: 16px; height: 16px; color: var(--ok); }
.v-sheet { display: grid; gap: 10px; padding: 12px; border-radius: 14px; background: #fff; box-shadow: var(--shadow-1); font-size: 0.88rem; }
.v-fchips { display: flex; flex-wrap: wrap; gap: 6px; }
.v-fchip { display: inline-flex; flex-direction: column; padding: 3px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--soft); font-weight: 600; line-height: 1.3; }
.v-fchip small { color: var(--muted); font-weight: 500; font-size: 0.78em; }
.v-go { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 36px; border-radius: 99px; background: var(--wa); color: #fff; font-weight: 600; }
.v-go .icon { width: 17px; height: 17px; }
.v-hours { display: grid; gap: 6px; padding: 10px; border-radius: 14px; background: #fff; box-shadow: var(--shadow-1); font-size: 0.78rem; }
.v-h-head, .v-h-row { display: grid; grid-template-columns: 4.6em repeat(5, 1fr); align-items: center; gap: 4px; }
.v-h-head small { color: var(--muted); font-weight: 600; text-align: center; }
.v-h-row b { font-size: 0.95em; line-height: 1.25; }
.v-h-row i { padding: 5px 0; border-radius: 8px; background: var(--tint); color: var(--accent-strong); font-weight: 600; text-align: center; }
.v-h-row i.v-off { background: repeating-linear-gradient(135deg, #eef2f1 0 5px, #e3e9e8 5px 10px); color: var(--muted); }
.v-team { display: grid; gap: 8px; }
.v-team li { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 12px; background: #fff; box-shadow: var(--shadow-1); font-size: 0.86rem; }
.v-team b { flex: 1; }
.v-sw { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.v-sw i { position: relative; width: 28px; height: 16px; border-radius: 99px; background: #cfdcd9; }
.v-sw i::after { content: ""; position: absolute; top: 2px; inset-inline-start: 2px; width: 12px; height: 12px; border-radius: 50%; background: #fff; transition: inset-inline-start 0.2s; }
.v-sw.on i { background: var(--accent); }
.v-sw.on i::after { inset-inline-start: 14px; }

/* The demo: two phones side by side (one at a time on a small screen) and a dock that says what to do
   next. The page is complete without the script: the stage is shown only where scripting is on. */

.demo { background: linear-gradient(var(--page), #fff 10%, var(--soft)); }
.stage { display: none; }
@media (scripting: enabled) { .stage { display: block; } .demo-nojs { display: none; } }
.js .stage { display: block; }
.js .demo-nojs { display: none; }
.demo-nojs { padding: 12px 16px; border-radius: 14px; background: var(--amber-tint); color: var(--amber-dark); font-weight: 500; }

.stage-top { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 18px; }
.views { display: flex; gap: 6px; width: fit-content; margin: 0 auto 18px; padding: 4px; border-radius: 99px; background: #e2efeb; }
.view-btn { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 20px; border: 0; border-radius: 99px; background: transparent; color: var(--muted); font: inherit; font-weight: 600; cursor: pointer; transition: background 0.15s, color 0.15s; }
.view-btn[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: var(--shadow-1); }
.view-btn .icon { width: 18px; height: 18px; }
@media (min-width: 900px) { .views { display: none; } }

.devices { display: flex; justify-content: center; gap: clamp(32px, 7vw, 96px); }
.dev { position: relative; width: min(100%, 322px); height: 650px; padding: 9px; border-radius: 42px; background: linear-gradient(160deg, #1d3130, #0e1b1a); box-shadow: var(--shadow-3), inset 0 0 0 1.5px rgba(255, 255, 255, 0.08); transition: box-shadow 0.35s ease; }
.dev-notch { position: absolute; inset-block-start: 16px; inset-inline: 0; z-index: 8; width: 84px; height: 22px; margin-inline: auto; border-radius: 13px; background: #0e1b1a; }
.dev-screen { position: relative; display: flex; flex-direction: column; height: 100%; overflow: hidden; border-radius: 34px; font-size: 13px; line-height: 1.5; }
.dev .wa-top { padding-top: 40px; }
.dev .wa-chat { padding-bottom: 8px; }
@media (max-width: 899px) {
  .stage[data-view="clinic"] .dev-patient, .stage[data-view="patient"] .dev-clinic { display: none; }
}
@media (min-width: 900px) {
  .stage[data-active="clinic"] .dev-clinic, .stage[data-active="patient"] .dev-patient { box-shadow: 0 0 0 3px rgba(0, 122, 123, 0.4), 0 0 60px -10px rgba(0, 150, 140, 0.55), var(--shadow-3); }
}

/* the front desk's screen: the phone app */
.c-ui { gap: 10px; padding: 42px 12px 0; background: var(--page); }
.c-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.c-top small { color: var(--accent-strong); font-weight: 600; }
.c-date { display: block; font-size: 1.35em; line-height: 1.3; font-weight: 700; }
.c-bell { position: relative; display: grid; place-items: center; flex: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--ink); cursor: pointer; }
.c-bell .icon { width: 21px; height: 21px; }
.c-badge { position: absolute; inset-block-start: -6px; inset-inline-start: -4px; display: grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 99px; background: #ce5247; color: #fff; font-weight: 700; font-size: 0.82em; animation: pop 0.35s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.c-board { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.c-stat { display: grid; justify-items: start; padding: 8px 10px; border-radius: 14px; background: #fff; box-shadow: var(--shadow-1); line-height: 1.2; }
.c-stat b { font-size: 1.55em; line-height: 1.15; }
.c-stat small { color: var(--muted); }
.c-stat.tone-green b { color: var(--ok-dark); }
.c-stat.tone-blue b { color: var(--blue-dark); }
.c-stat.tone-red b { color: var(--red-dark); }
.c-stat .dot { margin-bottom: 2px; }
.c-agenda { display: grid; gap: 7px; }
.c-agenda .slot-card { padding: 5px 10px; }
.slot-freebtn { position: relative; display: grid; place-content: center; overflow: hidden; border: 1.5px dashed #8fd3c2; border-inline-start-width: 1.5px; background: repeating-linear-gradient(135deg, transparent 0 6px, rgba(0, 122, 123, 0.08) 6px 12px); box-shadow: none; color: var(--accent-strong); font: inherit; font-weight: 600; text-align: center; cursor: pointer; }
.slot-live .slot-card { animation: pop 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.slot-live .slot-pending { border: 1.5px dashed #7fb2d6; border-inline-start: 4px solid #2f8fd0; background: #f4faff; }
.slot-confirmed-live { border-inline-start: 4px solid var(--accent); }

.c-toast { position: absolute; z-index: 9; inset-block-start: 48px; inset-inline: 12px; display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 16px; background: #fff; box-shadow: var(--shadow-2); font-weight: 600; animation: drop 0.45s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.c-toast .icon { width: 21px; height: 21px; }
.c-toast.tone-green .icon { color: var(--ok); }
.c-toast.tone-red .icon { color: #cf4a3f; }
.c-toast.tone-blue .icon { color: #2f8fd0; }
.c-sheet, .c-panel { position: absolute; z-index: 7; inset-inline: 0; bottom: 0; padding: 10px 16px 20px; border-radius: 28px 28px 0 0; background: #fff; box-shadow: 0 -22px 44px -22px rgba(20, 34, 33, 0.4); animation: sheetup 0.38s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.c-grab { display: block; width: 42px; height: 4px; margin: 0 auto 10px; border-radius: 2px; background: var(--line); }
.c-sheet-title { display: block; font-size: 1.2em; font-weight: 700; }
.c-fields { display: grid; gap: 6px; margin: 10px 0 14px; }
.c-fields div { display: flex; justify-content: space-between; gap: 10px; padding: 8px 12px; border-radius: 12px; background: var(--soft); }
.c-fields dt { color: var(--muted); }
.c-fields dd { margin: 0; font-weight: 600; }
.c-sheet-book { width: 100%; min-height: 48px; }
.c-card { position: absolute; z-index: 8; inset-inline: 10px; padding: 12px; border-radius: 20px; background: #fff; box-shadow: var(--shadow-2); animation: drop 0.45s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.c-cancel { inset-block-start: 100px; display: grid; grid-template-columns: auto 1fr; gap: 8px 10px; align-items: center; border: 1.5px solid #f0c987; background: #fff8ea; }
.c-card-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #ffe3ae; color: var(--amber-dark); }
.c-card-icon .icon { width: 19px; height: 19px; }
.c-card-main { display: grid; line-height: 1.35; }
.c-card-main small { color: var(--muted); }
.c-card-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
.c-btn { position: relative; display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 16px; overflow: hidden; border: 1.5px solid var(--line); border-radius: 99px; background: #fff; color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; }
.c-btn .icon { width: 16px; height: 16px; }
.c-btn-primary { border-color: var(--accent); background: var(--accent); color: #fff; }
.c-waitlist header { display: grid; margin-bottom: 10px; line-height: 1.35; }
.c-waitlist header small { color: var(--muted); }
.c-waitlist ul { display: grid; gap: 8px; }
.c-waitlist li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 14px; background: var(--soft); }
.c-finish { inset-block-end: 74px; display: grid; gap: 10px; border: 1.5px solid #bfe6da; }
.c-tick { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; font: inherit; font-weight: 600; text-align: start; cursor: pointer; }
.c-box { display: grid; place-items: center; flex: none; width: 24px; height: 24px; border: 2px solid #b9cfcb; border-radius: 8px; color: transparent; transition: background 0.15s, border-color 0.15s, color 0.15s; }
.c-box .icon { width: 16px; height: 16px; }
.c-tick.on { border-color: #8fd3c2; background: #f2fbf8; }
.c-tick.on .c-box { border-color: var(--accent); background: var(--accent); color: #fff; }
.c-done { min-height: 46px; }
.c-done:disabled { opacity: 0.45; box-shadow: none; cursor: not-allowed; }
.c-checkups { position: absolute; z-index: 6; inset-inline: 10px; inset-block-end: 76px; padding: 10px 12px; border: 1.5px solid #f3c6d4; border-radius: 18px; background: #fff; box-shadow: var(--shadow-2); animation: drop 0.45s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.c-checkups > small { display: flex; align-items: center; gap: 6px; color: var(--pink-dark); font-weight: 600; }
.c-checkups > small .icon { width: 16px; height: 16px; }
.c-row { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.c-ui .tabbar { margin-top: auto; }

/* what to press next, and what happened */
.is-hint { animation: ring 1.7s ease-out infinite; }
@keyframes ring { 0% { box-shadow: 0 0 0 0 rgba(0, 150, 140, 0.55); } 70% { box-shadow: 0 0 0 13px rgba(0, 150, 140, 0); } 100% { box-shadow: 0 0 0 0 rgba(0, 150, 140, 0); } }
.wa-btn.is-hint { animation-name: ring-blue; }
@keyframes ring-blue { 0% { box-shadow: 0 0 0 0 rgba(2, 126, 181, 0.55); } 70% { box-shadow: 0 0 0 11px rgba(2, 126, 181, 0); } 100% { box-shadow: 0 0 0 0 rgba(2, 126, 181, 0); } }
.btn.tapped { transform: scale(0.97); }

.dock { position: sticky; inset-block-end: 12px; z-index: 30; display: grid; gap: 10px; align-items: center; width: min(100%, 860px); margin: 24px auto 0; padding: 12px 16px; border: 1px solid rgba(255, 255, 255, 0.85); border-radius: 24px; background: rgba(255, 255, 255, 0.9); -webkit-backdrop-filter: blur(14px) saturate(1.5); backdrop-filter: blur(14px) saturate(1.5); box-shadow: var(--shadow-2); }
@media (min-width: 720px) { .dock { grid-template-columns: auto 1fr auto; gap: 20px; } }
.dock-dots { display: flex; align-items: center; gap: 6px; }
.dock-dots li { display: flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 600; font-size: 0.78rem; }
.dock-dots li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: #cfdcd9; transition: background 0.25s; }
.dock-dots li.on::before { background: var(--accent); }
.dock-dots li.cur { color: var(--ink); }
.dock-dots li span { display: none; }
.dock-dots li.cur span { display: inline; }
.dock-say { display: grid; align-items: center; min-height: 3.2em; }
.dock-say p { font-weight: 500; line-height: 1.55; animation: pop 0.35s ease both; }
.dock-cta { display: flex; justify-content: flex-end; min-height: 40px; }
.dock-cta .btn { animation: ring 1.8s ease-out infinite; }
.dock-cta .btn .icon { width: 18px; height: 18px; }
[dir="rtl"] .dock-cta .btn .icon { transform: scaleX(-1); }

@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(0.97); } to { opacity: 1; transform: none; } }
@keyframes drop { from { opacity: 0; transform: translateY(-14px) scale(0.96); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .is-hint, .dock-cta .btn { animation: none; }
  .is-hint { outline: 3px solid #5fb8b9; outline-offset: 2px; }
}

/* The case study: one real clinic's month. Every card carries its dates and the rule it is counted by; an estimate says it is
   one. The bars' widths are the generated classes `.pw0`…`.pw100` (the Content-Security-Policy refuses inline styles). */

.proof { border-block: 1px solid var(--line); background: linear-gradient(180deg, #fff 0%, var(--page) 100%); }

.pstats { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
@media (min-width: 640px) { .pstats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; } }

.pstat { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 22px; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; box-shadow: var(--shadow-1); }
.pnum-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.pnum { display: inline-flex; align-items: baseline; gap: 7px; color: var(--accent-strong); font-size: clamp(2.3rem, 6vw, 3.1rem); font-weight: 800; line-height: 1.05; font-variant-numeric: tabular-nums; }
.pnum small { color: var(--muted); font-size: 0.4em; font-weight: 600; }
.ptext { font-size: 1rem; line-height: 1.7; }
.pnote { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-weight: 600; }
.chip-est { padding: 1px 9px; border-color: #e6cf9a; background: var(--amber-tint); color: var(--amber-dark); font-size: 0.8rem; font-weight: 600; }
.prule { margin-top: auto; padding-top: 10px; border-top: 1px dashed var(--line); color: var(--muted); font-size: 0.82rem; line-height: 1.65; }
.prule b { color: var(--ink); font-weight: 600; }

.ptiming { margin-top: clamp(28px, 4vw, 44px); padding: clamp(20px, 3vw, 32px); border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; box-shadow: var(--shadow-1); }
.ptiming h3 { font-size: clamp(1.2rem, 3vw, 1.55rem); font-weight: 700; }
.ptlead { margin-top: 8px; max-width: 46em; color: var(--muted); }
.pbars { display: grid; gap: 16px; margin-top: 20px; }
.pbar-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 16px; margin-bottom: 6px; font-weight: 500; }
.pbar-val { color: var(--muted); font-variant-numeric: tabular-nums; }
.pbar-val b { color: var(--ink); font-weight: 700; }
.pbar-track { height: 14px; overflow: hidden; border-radius: 7px; background: var(--coral-tint); }
.pbar-fill { height: 100%; border-radius: 7px; background: var(--accent); }
.plegend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 14px; color: var(--muted); font-size: 0.88rem; }
.plegend i { display: inline-block; width: 14px; height: 10px; margin-inline-end: 6px; border-radius: 3px; vertical-align: middle; }
.plegend .k-yes { background: var(--accent); }
.plegend .k-no { border: 1px solid #f0b5a8; background: var(--coral-tint); }
.ptiming .prule { margin-top: 18px; }

.pmethod { margin-top: clamp(20px, 3vw, 32px); padding: 18px 20px; border: 1px solid var(--line); border-radius: 20px; background: rgba(255, 255, 255, 0.7); color: var(--muted); font-size: 0.86rem; line-height: 1.8; }
.pmethod ul { display: grid; gap: 6px; margin-top: 8px; padding-inline-start: 1.1em; list-style: disc; }
.pmethod strong { color: var(--ink); font-weight: 600; }

.proof-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; margin-top: clamp(24px, 4vw, 40px); }
.proof-cta h3 { font-size: clamp(1.25rem, 3vw, 1.7rem); font-weight: 700; }
.proof-cta .cta-row { margin-top: 0; }

/* the price card: the amount first, then what it is per */
.price-card .price-amount { margin-top: 6px; color: var(--accent-strong); font-size: clamp(2.6rem, 8vw, 3.8rem); font-weight: 800; line-height: 1.05; }
.price-card .price-per { margin-top: 2px; font-weight: 600; }

/* generated by build.mjs */
.s0{top:0.000%}
.s1{top:6.250%}
.s2{top:12.500%}
.s3{top:18.750%}
.s4{top:25.000%}
.s5{top:31.250%}
.s6{top:37.500%}
.s7{top:43.750%}
.s8{top:50.000%}
.s9{top:56.250%}
.s10{top:62.500%}
.s11{top:68.750%}
.s12{top:75.000%}
.s13{top:81.250%}
.s14{top:87.500%}
.s15{top:93.750%}
.l1{height:calc(6.250% - 3px)}
.l2{height:calc(12.500% - 3px)}
.l3{height:calc(18.750% - 3px)}
.l4{height:calc(25.000% - 3px)}
.l5{height:calc(31.250% - 3px)}
.l6{height:calc(37.500% - 3px)}
.h10{height:10%}
.h20{height:20%}
.h30{height:30%}
.h40{height:40%}
.h50{height:50%}
.h60{height:60%}
.h70{height:70%}
.h80{height:80%}
.h90{height:90%}
.h100{height:100%}
.pw0{width:0%}
.pw1{width:1%}
.pw2{width:2%}
.pw3{width:3%}
.pw4{width:4%}
.pw5{width:5%}
.pw6{width:6%}
.pw7{width:7%}
.pw8{width:8%}
.pw9{width:9%}
.pw10{width:10%}
.pw11{width:11%}
.pw12{width:12%}
.pw13{width:13%}
.pw14{width:14%}
.pw15{width:15%}
.pw16{width:16%}
.pw17{width:17%}
.pw18{width:18%}
.pw19{width:19%}
.pw20{width:20%}
.pw21{width:21%}
.pw22{width:22%}
.pw23{width:23%}
.pw24{width:24%}
.pw25{width:25%}
.pw26{width:26%}
.pw27{width:27%}
.pw28{width:28%}
.pw29{width:29%}
.pw30{width:30%}
.pw31{width:31%}
.pw32{width:32%}
.pw33{width:33%}
.pw34{width:34%}
.pw35{width:35%}
.pw36{width:36%}
.pw37{width:37%}
.pw38{width:38%}
.pw39{width:39%}
.pw40{width:40%}
.pw41{width:41%}
.pw42{width:42%}
.pw43{width:43%}
.pw44{width:44%}
.pw45{width:45%}
.pw46{width:46%}
.pw47{width:47%}
.pw48{width:48%}
.pw49{width:49%}
.pw50{width:50%}
.pw51{width:51%}
.pw52{width:52%}
.pw53{width:53%}
.pw54{width:54%}
.pw55{width:55%}
.pw56{width:56%}
.pw57{width:57%}
.pw58{width:58%}
.pw59{width:59%}
.pw60{width:60%}
.pw61{width:61%}
.pw62{width:62%}
.pw63{width:63%}
.pw64{width:64%}
.pw65{width:65%}
.pw66{width:66%}
.pw67{width:67%}
.pw68{width:68%}
.pw69{width:69%}
.pw70{width:70%}
.pw71{width:71%}
.pw72{width:72%}
.pw73{width:73%}
.pw74{width:74%}
.pw75{width:75%}
.pw76{width:76%}
.pw77{width:77%}
.pw78{width:78%}
.pw79{width:79%}
.pw80{width:80%}
.pw81{width:81%}
.pw82{width:82%}
.pw83{width:83%}
.pw84{width:84%}
.pw85{width:85%}
.pw86{width:86%}
.pw87{width:87%}
.pw88{width:88%}
.pw89{width:89%}
.pw90{width:90%}
.pw91{width:91%}
.pw92{width:92%}
.pw93{width:93%}
.pw94{width:94%}
.pw95{width:95%}
.pw96{width:96%}
.pw97{width:97%}
.pw98{width:98%}
.pw99{width:99%}
.pw100{width:100%}

.chooser{min-height:100vh;display:grid;place-items:center;padding:24px}
.chooser-in{display:grid;justify-items:center;gap:14px;text-align:center}
.chooser-in .logo-mark{width:64px;height:64px;border-radius:18px}
.chooser-in h1{margin:0;font-size:2rem;line-height:1.3}
.chooser-sub{margin:0;color:var(--muted)}
.chooser-buttons{display:flex;flex-wrap:wrap;justify-content:center;gap:12px;margin-top:10px}
