/* =========================================================
   Kratern Labs: kratern.com
   Design language: DESIGN.md (Apple design analysis) plus the
   "Kratern overrides" section at the end of that file.
   In short: one accent colour (Kratern blue) for things you
   can click, near-black ink, white / parchment / dark tiles,
   no gradients, no card shadows (only the phone has one).
   ========================================================= */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin-wght-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 {
  --blue: #2a5ee6;          /* Kratern blue: the only accent */
  --blue-hover: #2453d1;
  --blue-on-dark: #6e95ff;  /* links and outlines on dark tiles */
  --blue-tint: rgba(42, 94, 230, 0.08);
  --ink: #1d1d1f;
  --ink-80: #424245;
  --ink-56: #6e6e73;
  --canvas: #ffffff;
  --parchment: #f5f5f7;
  --pearl: #fafafc;
  --tile: #272729;
  --black: #000000;
  --hairline: #d2d2d7;
  --hairline-soft: rgba(0, 0, 0, 0.08);
  --on-dark: #f5f5f7;
  --on-dark-muted: #a1a1a6;
  --bubble-in: #e9e9eb;
  --error: #c4291c;

  --font: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial,
          "Geeza Pro", "Segoe UI Arabic", "Noto Sans Arabic", sans-serif;

  --pill: 980px;
  --r-card: 18px;
  --r-panel: 28px;
  --r-input: 12px;
  --max: 1080px;
  --gutter: 24px;
  --tile-pad: clamp(72px, 10vw, 128px);
  --shadow-product: 3px 5px 30px 0 rgba(0, 0, 0, 0.22);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 64px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.022em;
  color: var(--ink);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
[hidden] { display: none !important; }
::selection { background: rgba(42, 94, 230, 0.2); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.on-dark :focus-visible { outline-color: var(--blue-on-dark); }
.on-dark a:not(.btn) { color: var(--blue-on-dark); }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: #fff; color: var(--ink); padding: 10px 16px; border-radius: var(--pill);
}
.skip-link:focus { top: 8px; }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Tiles (full-bleed sections) ---------- */
.tile { padding: var(--tile-pad) 0; }
.tile--parchment { background: var(--parchment); }
.tile--dark { background: var(--tile); color: var(--on-dark); }
.tile--black { background: var(--black); color: var(--on-dark); }

/* ---------- Type ---------- */
.section-head { max-width: 860px; margin: 0 auto clamp(40px, 6vw, 72px); text-align: center; }
.section-head .lead { margin: 18px auto 0; max-width: 680px; }
.eyebrow { display: block; font-size: 17px; line-height: 1.24; font-weight: 600; color: var(--ink-56); margin-bottom: 12px; }
.on-dark .eyebrow { color: var(--on-dark-muted); }
.h2 { font-size: clamp(32px, 4.8vw, 52px); line-height: 1.08; font-weight: 600; letter-spacing: -0.02em; }
.lead { font-size: clamp(19px, 1.9vw, 22px); line-height: 1.42; letter-spacing: -0.012em; color: var(--ink-80); }
.on-dark .lead { color: var(--on-dark-muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 11px 22px;
  border-radius: var(--pill); border: 1px solid transparent;
  font: inherit; font-size: 17px; line-height: 1.18; letter-spacing: -0.022em;
  cursor: pointer; white-space: nowrap; text-decoration: none !important;
  transition: transform 0.12s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn:active { transform: scale(0.95); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-hover); }
.btn-secondary { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn-secondary:hover { background: var(--blue-tint); }
.on-dark .btn-secondary { color: var(--blue-on-dark); border-color: var(--blue-on-dark); }
.on-dark .btn-secondary:hover { background: rgba(110, 149, 255, 0.12); }
.btn-sm { min-height: 30px; padding: 5px 14px; font-size: 13px; letter-spacing: -0.01em; }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.linkbtn {
  appearance: none; background: none; border: 0; padding: 8px 0; margin: 0;
  font: inherit; font-size: 15px; color: var(--blue); cursor: pointer;
}
.linkbtn:hover { text-decoration: underline; }

/* ---------- Global nav ---------- */
.gnav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(0, 0, 0, 0.82);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  color: #fff;
}
.gnav__inner {
  max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter);
  height: 52px; display: flex; align-items: center; gap: 32px;
}
.gnav__logo { display: flex; align-items: center; gap: 9px; flex: none; }
.gnav__logo img { height: 24px; width: auto; }
.gnav__logo .gnav__word { height: 14px; }
.gnav__links { display: flex; gap: 30px; list-style: none; margin: 0 0 0 auto; padding: 0; }
.gnav__links a { color: rgba(255, 255, 255, 0.82); font-size: 13px; letter-spacing: -0.01em; }
.gnav__links a:hover { color: #fff; text-decoration: none; }
.gnav__cta { flex: none; }

/* ---------- Hero ---------- */
.hero { background: var(--parchment); padding-top: clamp(56px, 8vw, 96px); text-align: center; overflow: hidden; }
.hero__title { font-size: clamp(44px, 7.4vw, 84px); line-height: 1.03; letter-spacing: -0.03em; font-weight: 600; }
.hero__lead { max-width: 660px; margin: 22px auto 0; }
.hero__ctas { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-top: 32px; }
.hero__meta {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 0;
  list-style: none; padding: 0; margin: 22px 0 0; font-size: 14px; color: var(--ink-56);
}
.hero__meta li + li::before { content: "\00b7"; margin: 0 10px; }
.hero__stage {
  position: relative; width: min(100%, 880px); margin: clamp(48px, 7vw, 72px) auto 0;
  padding: 0 var(--gutter) clamp(56px, 8vw, 96px);
  display: flex; flex-direction: column; align-items: center;
}
.hero__caption { margin-top: 18px; font-size: 13px; color: var(--ink-56); }

/* Floating status cards around the phone (desktop only) */
.float {
  position: absolute; z-index: 2;
  display: flex; align-items: center; gap: 12px; text-align: left;
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  border: 1px solid var(--hairline-soft); border-radius: 16px;
  padding: 12px 16px 12px 12px; font-size: 14px; line-height: 1.3;
}
.float strong { display: block; font-weight: 600; letter-spacing: -0.01em; }
.float small { display: block; font-size: 13px; color: var(--ink-56); }
.float__icon {
  width: 36px; height: 36px; border-radius: 10px; background: var(--parchment);
  display: grid; place-items: center; flex: none; color: var(--ink);
}
.float__icon svg { width: 18px; height: 18px; }
.float--a { left: 0; top: 96px; }
.float--b { right: 0; top: 236px; }
.float--c { left: 24px; top: 396px; }

/* ---------- Phone mock-up ---------- */
.device {
  position: relative; width: 300px; height: 612px; flex: none;
  background: #1d1d1f; border-radius: 54px; padding: 11px;
  box-shadow: var(--shadow-product);
}
.screen {
  height: 100%; border-radius: 44px; overflow: hidden; background: #fff;
  display: flex; flex-direction: column; text-align: left;
}
.status {
  display: flex; justify-content: space-between; align-items: center;
  padding: 15px 26px 6px; font-size: 14px; font-weight: 600; letter-spacing: -0.01em;
}
.status svg { height: 11px; width: auto; }
.chat-head {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 16px 12px; border-bottom: 1px solid var(--hairline-soft); text-align: left;
}
.chat-head__avatar {
  width: 36px; height: 36px; border-radius: 50%; flex: none;
  background: var(--parchment); color: var(--ink);
  display: grid; place-items: center; font-size: 15px; font-weight: 600;
}
.chat-head__name { display: block; font-size: 15px; font-weight: 600; line-height: 1.2; }
.chat-head__sub { display: block; font-size: 12px; line-height: 1.3; color: var(--ink-56); }
.chat {
  flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px;
  padding: 14px 12px; background: var(--pearl); overflow: hidden;
}
.msg {
  max-width: 84%; padding: 9px 13px 7px; border-radius: 18px;
  font-size: 14.5px; line-height: 1.36; letter-spacing: -0.01em;
}
.msg time { display: block; margin-top: 3px; font-size: 11px; line-height: 1.2; text-align: right; opacity: 0.66; }
.msg--in { align-self: flex-start; background: var(--bubble-in); color: var(--ink); border-bottom-left-radius: 6px; }
.msg--out { align-self: flex-end; background: var(--blue); color: #fff; border-bottom-right-radius: 6px; }
[dir="rtl"] .msg--in { border-bottom-left-radius: 18px; border-bottom-right-radius: 6px; }
[dir="rtl"] .msg--out { border-bottom-right-radius: 18px; border-bottom-left-radius: 6px; }
[dir="rtl"] .msg time { text-align: left; }
.chat-event {
  align-self: center; margin-top: 2px; font-size: 12px; color: var(--ink-56);
  background: #fff; border: 1px solid var(--hairline-soft); border-radius: var(--pill); padding: 5px 12px;
}
.chat-input {
  margin: 0 12px 16px; height: 38px; border-radius: 19px; border: 1px solid var(--hairline);
  display: flex; align-items: center; padding: 0 14px; font-size: 13px; color: var(--ink-56); background: #fff;
}

/* ---------- Statement ---------- */
.statement { text-align: center; }
.statement__title { font-size: clamp(36px, 5.8vw, 68px); line-height: 1.05; letter-spacing: -0.03em; font-weight: 600; max-width: 13em; margin: 0 auto; }
.statement__text { max-width: 36em; margin: 28px auto 0; font-size: clamp(19px, 2vw, 24px); line-height: 1.42; color: var(--on-dark-muted); }
.statement__text sup { font-size: 0.55em; line-height: 0; }
.statement__fn { margin-top: 28px; font-size: 12px; color: var(--on-dark-muted); }

/* ---------- The system: modules ---------- */
.modules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.module {
  background: var(--parchment); border-radius: var(--r-card);
  padding: 34px 30px 30px; display: flex; flex-direction: column; min-height: 290px;
}
.module__tag { font-size: 14px; font-weight: 600; color: var(--ink-56); letter-spacing: -0.01em; }
.module__title { font-size: 26px; line-height: 1.15; font-weight: 600; letter-spacing: -0.02em; margin: 10px 0 12px; }
.module p:not(.module__tag) { color: var(--ink-80); }
.module .chip { margin-top: auto; }
.module p + .chip { margin-top: 22px; }
.chip {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; font-weight: 600; letter-spacing: 0;
  padding: 6px 11px; border-radius: var(--pill);
  background: #fff; color: var(--ink-80); border: 1px solid var(--hairline-soft);
}
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }

/* ---------- Split (Arabic and English) ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 88px); align-items: center; }
.split__copy .lead { margin-top: 18px; }
.split__visual { display: flex; flex-direction: column; align-items: center; }
.chatcard { width: 100%; max-width: 420px; background: #fff; color: var(--ink); border-radius: 30px; overflow: hidden; }
.chatcard .chat { padding: 18px 16px 22px; }
.chatcard .msg { font-size: 15px; }
.caption-dark { margin-top: 14px; font-size: 13px; color: var(--on-dark-muted); text-align: center; }

/* ---------- Reporting ---------- */
.metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.metric { border-top: 1px solid var(--hairline); padding-top: 22px; }
.metric__name { font-size: clamp(24px, 2.6vw, 30px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
.metric p { margin-top: 8px; color: var(--ink-56); }
.report {
  margin: clamp(48px, 6vw, 72px) auto 0; max-width: 820px;
  border: 1px solid var(--hairline); border-radius: var(--r-panel); padding: clamp(22px, 3vw, 34px);
}
.report__head { display: flex; justify-content: space-between; align-items: baseline; gap: 6px 16px; flex-wrap: wrap; }
.report__title { font-size: 19px; font-weight: 600; letter-spacing: -0.015em; }
.report__period { font-size: 14px; color: var(--ink-56); }
.report__grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px;
  background: var(--hairline-soft); border: 1px solid var(--hairline-soft);
  border-radius: 14px; overflow: hidden; margin-top: 20px;
}
.report__cell { background: #fff; padding: 18px 18px 16px; }
.report__value { font-size: clamp(26px, 3vw, 34px); font-weight: 600; letter-spacing: -0.025em; line-height: 1.1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.report__value small { font-size: 0.48em; font-weight: 600; color: var(--ink-56); letter-spacing: 0; margin-left: 5px; }
.report__value small.pre { margin: 0 5px 0 0; }
.report__label { margin-top: 6px; font-size: 14px; color: var(--ink-56); }
.report__note { margin-top: 14px; font-size: 12px; color: var(--ink-56); }

/* ---------- Clinics ---------- */
.specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.spec { background: #fff; border-radius: var(--r-card); padding: clamp(28px, 4vw, 44px); }
.spec .eyebrow { margin-bottom: 8px; }
.spec__title { font-size: clamp(24px, 2.6vw, 30px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
.checklist { list-style: none; margin: 26px 0 0; padding: 0; }
.checklist li { position: relative; padding: 14px 0 14px 30px; border-top: 1px solid var(--hairline-soft); color: var(--ink-80); }
.checklist li::before,
.plan__list li::before {
  content: ""; position: absolute; left: 3px; top: 21px;
  width: 11px; height: 6px; border-left: 2px solid var(--ink); border-bottom: 2px solid var(--ink);
  transform: rotate(-45deg);
}
.specs-note { text-align: center; margin-top: 28px; color: var(--ink-56); }

/* ---------- Compliance ---------- */
.rules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px 40px; }
.rule { border-top: 1px solid rgba(255, 255, 255, 0.16); padding-top: 22px; }
.rule h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.015em; margin-bottom: 8px; color: var(--on-dark); }
.rule p { color: var(--on-dark-muted); }
.rules-note { margin-top: 48px; text-align: center; font-size: 13px; color: var(--on-dark-muted); }

/* ---------- Getting started ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; list-style: none; padding: 0; margin: 0; }
.step__num { font-size: clamp(44px, 5vw, 64px); font-weight: 300; line-height: 1; letter-spacing: -0.03em; color: var(--ink-56); }
.step h3 { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; margin: 18px 0 10px; }
.step p:not(.step__num) { color: var(--ink-80); }

/* ---------- Pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.plan {
  position: relative; background: #fff; border-radius: var(--r-card);
  border: 1px solid var(--hairline-soft); padding: 30px 28px 26px;
  display: flex; flex-direction: column;
}
.plan--featured { border: 2px solid var(--blue); padding: 29px 27px 25px; }
.plan__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 28px; }
.plan__name { font-size: 21px; font-weight: 600; letter-spacing: -0.015em; }
.plan__tag { font-size: 12px; font-weight: 600; letter-spacing: 0; padding: 5px 10px; border-radius: var(--pill); background: var(--blue-tint); color: var(--blue); white-space: nowrap; }
.plan__label { margin-top: 20px; font-size: 14px; color: var(--ink-56); }
.plan__price { margin-top: 2px; font-size: clamp(32px, 3.3vw, 40px); font-weight: 600; letter-spacing: -0.025em; line-height: 1.1; white-space: nowrap; }
.plan__price .per { font-size: 17px; font-weight: 400; letter-spacing: -0.01em; color: var(--ink-56); margin-left: 2px; }
.plan__setup { margin-top: 6px; font-size: 14px; color: var(--ink-56); }
.plan__desc { margin-top: 16px; font-size: 15px; color: var(--ink-80); }
.plan__list {
  list-style: none; margin: 20px 0 26px; padding: 20px 0 0;
  border-top: 1px solid var(--hairline-soft); display: grid; gap: 10px;
}
.plan__list li { position: relative; padding-left: 26px; font-size: 15px; line-height: 1.4; }
.plan__list li::before { left: 2px; top: 6px; }
.plan__list li.is-lead { padding-left: 0; font-weight: 600; }
.plan__list li.is-lead::before { display: none; }
.plan__list .soon { display: inline-block; margin-left: 6px; font-size: 11px; font-weight: 600; letter-spacing: 0; padding: 2px 8px; border-radius: var(--pill); background: var(--parchment); color: var(--ink-56); vertical-align: 1px; }
.plan .btn { margin-top: auto; width: 100%; }
.plan__fine { margin-top: 12px; font-size: 12px; line-height: 1.4; color: var(--ink-56); text-align: center; }
.guarantee { max-width: 760px; margin: 44px auto 0; text-align: center; }
.guarantee p { font-size: 15px; color: var(--ink-80); }
.guarantee strong { color: var(--ink); font-weight: 600; }
.guarantee .pricing-fine { margin-top: 10px; font-size: 12px; color: var(--ink-56); }

/* ---------- Booking ---------- */
.booker {
  position: relative; max-width: 880px; margin: 0 auto;
  background: var(--parchment); border-radius: var(--r-panel); padding: clamp(22px, 4vw, 44px);
}
.bk-row { display: flex; justify-content: space-between; align-items: baseline; gap: 4px 16px; flex-wrap: wrap; margin-bottom: 14px; }
.bk-row--times { margin-top: 30px; }
.bk-row h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.015em; }
.bk-note { font-size: 14px; color: var(--ink-56); }
.bk-days { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.bk-day {
  appearance: none; margin: 0; font: inherit; color: var(--ink); background: #fff;
  border: 1px solid var(--hairline); border-radius: 16px; padding: 14px 6px 12px;
  display: flex; flex-direction: column; align-items: center; gap: 1px; cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.12s;
}
.bk-day:hover { border-color: #aeaeb2; }
.bk-day:active { transform: scale(0.97); }
.bk-day[aria-pressed="true"] { border-color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); }
.bk-day__top, .bk-day__month { font-size: 13px; color: var(--ink-56); letter-spacing: -0.01em; }
.bk-day__num { font-size: 30px; font-weight: 600; line-height: 1.15; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.bk-day[aria-pressed="true"] .bk-day__top,
.bk-day[aria-pressed="true"] .bk-day__month { color: var(--blue); }
.bk-times { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
.bk-time {
  appearance: none; margin: 0; font: inherit; font-size: 15px; letter-spacing: -0.01em;
  color: var(--ink); background: #fff; border: 1px solid var(--hairline); border-radius: var(--pill);
  min-height: 44px; padding: 0 12px; cursor: pointer; font-variant-numeric: tabular-nums;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.12s;
}
.bk-time:hover { border-color: var(--blue); color: var(--blue); }
.bk-time:active { transform: scale(0.95); }
.bk-time[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }
.bk-summary {
  display: flex; align-items: center; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap;
  background: #fff; border-radius: 14px; padding: 14px 18px; margin-bottom: 26px;
}
.bk-summary__when { display: block; font-weight: 600; }
.bk-summary__tz { display: block; font-size: 14px; color: var(--ink-56); }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 600; letter-spacing: -0.01em; }
.field .opt { font-weight: 400; color: var(--ink-56); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; margin: 0;
  font: inherit; font-size: 17px; letter-spacing: -0.012em; color: var(--ink);
  background: #fff; border: 1px solid var(--hairline); border-radius: var(--r-input); padding: 12px 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 96px; resize: vertical; line-height: 1.4; }
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%236e6e73' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
.field input::placeholder, .field textarea::placeholder { color: #8e8e93; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(42, 94, 230, 0.16);
}
.field.is-invalid input, .field.is-invalid select { border-color: var(--error); }
.field__error { font-size: 13px; line-height: 1.35; color: var(--error); }
.field__error:empty { display: none; }
.consent {
  grid-column: 1 / -1; display: grid; grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 12px; align-items: start;
}
.consent input { width: 20px; height: 20px; min-height: 0; margin: 1px 0 0; padding: 0; accent-color: var(--blue); cursor: pointer; }
.consent label { font-size: 14px; font-weight: 400; line-height: 1.45; color: var(--ink-80); letter-spacing: -0.01em; }
.consent .field__error { grid-column: 2; }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.bk-actions { display: flex; align-items: center; gap: 12px 18px; flex-wrap: wrap; margin-top: 26px; }
.bk-actions .btn { min-width: 220px; }
.bk-status { font-size: 14px; color: var(--ink-56); }
.bk-status:empty { display: none; }
/* Kept in the layout when empty (no display:none) so screen readers announce it. */
.bk-notice { margin: 0 0 18px; font-size: 15px; font-weight: 600; color: var(--ink); }
.bk-notice:empty { margin: 0; }
.bk-empty { padding: 20px 0; text-align: center; color: var(--ink-80); }
.bk-done { text-align: center; padding: clamp(12px, 3vw, 32px) 0; }
.bk-done__icon {
  width: 64px; height: 64px; border-radius: 50%; background: var(--blue); color: #fff;
  display: grid; place-items: center; margin: 0 auto 20px;
}
.bk-done__icon svg { width: 28px; height: 28px; }
.bk-done[data-mode="ok"] .ic-mail,
.bk-done[data-mode="email"] .ic-check { display: none; }
.bk-done h3 { font-size: clamp(28px, 3.4vw, 36px); font-weight: 600; letter-spacing: -0.02em; outline: none; }
.bk-done p { color: var(--ink-80); max-width: 32em; margin: 12px auto 0; }
.bk-done__actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.bk-done .bk-done__alt { margin-top: 16px; font-size: 14px; color: var(--ink-56); }
.bk-done .linkbtn { margin-top: 14px; }
.bk-alt { text-align: center; margin-top: 22px; color: var(--ink-56); font-size: 15px; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--hairline); }
.faq details:first-child { border-top: 1px solid var(--hairline); }
.faq summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 22px 44px 22px 0; font-size: 19px; line-height: 1.3; font-weight: 600; letter-spacing: -0.015em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 8px; top: 50%;
  width: 9px; height: 9px; border-right: 2px solid var(--ink-56); border-bottom: 2px solid var(--ink-56);
  transform: translateY(-70%) rotate(45deg); transition: transform 0.25s ease;
}
.faq details[open] summary::after { transform: translateY(-25%) rotate(-135deg); }
.faq summary:hover { color: var(--blue); }
.faq details p { padding: 0 44px 24px 0; color: var(--ink-80); }

/* ---------- Founder ---------- */
.founder { text-align: center; }
.founder__avatar {
  width: 88px; height: 88px; border-radius: 50%; margin: 0 auto 28px;
  background: #3a3a3c; color: #fff; display: grid; place-items: center;
  font-size: 30px; font-weight: 600; letter-spacing: -0.02em;
}
.founder__quote { font-size: clamp(30px, 4.4vw, 48px); line-height: 1.1; font-weight: 600; letter-spacing: -0.025em; }
.founder__text { max-width: 36em; margin: 22px auto 0; font-size: 19px; color: var(--on-dark-muted); }
.founder__cta { margin-top: 32px; }

/* ---------- Footer ---------- */
.footer { background: var(--parchment); color: var(--ink-80); font-size: 12px; line-height: 1.4; padding: 40px 0 32px; }
.footer__top {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; flex-wrap: wrap;
  padding-bottom: 24px; border-bottom: 1px solid var(--hairline);
}
.footer__logo img { height: 26px; width: auto; }
.footer__cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer h4 { font-size: 12px; font-weight: 600; letter-spacing: -0.01em; margin: 0 0 6px; color: var(--ink); }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { line-height: 2.2; }
.footer a { color: var(--ink-80); }
.footer__legal { display: flex; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; padding-top: 16px; color: var(--ink-56); }

/* ---------- Legal pages ---------- */
.legal { max-width: 760px; margin: 0 auto; padding: clamp(56px, 8vw, 96px) var(--gutter); }
.legal h1 { font-size: clamp(36px, 5vw, 48px); line-height: 1.1; letter-spacing: -0.025em; }
.legal .updated { margin-top: 10px; font-size: 14px; color: var(--ink-56); }
.legal h2 { font-size: 21px; font-weight: 600; letter-spacing: -0.015em; margin: 40px 0 10px; }
.legal p, .legal li { color: var(--ink-80); }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 20px; margin: 10px 0 0; }
.legal li { margin: 6px 0; }

/* ---------- Motion ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); transition-delay: var(--d, 0ms); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* =========================================================
   Interactive layer: live demos, calculator, scroll effects.
   Driven by main.js, demo.js and calculator.js, and switched
   off for visitors who prefer reduced motion (end of block).
   ========================================================= */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.no-js .js-only { display: none; }

@keyframes k-fade-up { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes k-msg-in { from { opacity: 0; transform: translateY(10px) scale(0.94); } to { opacity: 1; transform: none; } }
@keyframes k-dot { 0%, 60%, 100% { opacity: 0.35; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
@keyframes k-caret { 50% { opacity: 0; } }
@keyframes k-bar { to { transform: scaleX(1); } }
@keyframes k-grow { from { transform: scaleY(0); } to { transform: none; } }
@keyframes k-pop { from { opacity: 0; transform: scale(0.4); } to { opacity: 1; transform: none; } }
@keyframes k-draw { to { stroke-dashoffset: 0; } }

/* Nav: reading progress and the section you're in */
.gnav__progress {
  position: absolute; left: 0; right: 0; bottom: 0; height: 2px; pointer-events: none;
  background: var(--blue-on-dark); transform-origin: 0 50%; transform: scaleX(var(--p, 0));
}
.gnav__links a { transition: color 0.2s ease; }
.gnav__links a[aria-current="true"] { color: #fff; }

/* Hero headline: words rise in one after another */
.js .hero__title.reveal { opacity: 1; transform: none; }
.js .hero__title .hw {
  display: inline-block; opacity: 0; transform: translateY(0.38em); filter: blur(6px);
  transition: opacity 0.9s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1), filter 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: calc(var(--i, 0) * 130ms + 60ms);
}
.js .hero__title.is-in .hw { opacity: 1; transform: none; filter: none; }

/* Hero: floating cards appear as the demo books the patient, and drift with the pointer */
.float {
  translate: calc(var(--px, 0) * 1px) calc(var(--py, 0) * 1px);
  transition: opacity 0.6s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1.2), translate 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.js .is-scripted .float { opacity: 0; transform: translateY(14px) scale(0.94); }
.js .is-scripted .float.is-on { opacity: 1; transform: none; }

/* Chat playback */
.msg.is-new, .chat-event.is-new { animation: k-msg-in 0.42s cubic-bezier(0.2, 0.8, 0.2, 1.1) both; }
.msg--out.is-new { transform-origin: 100% 100%; }
.msg--in.is-new { transform-origin: 0 100%; }
[dir="rtl"] .msg--out.is-new, .msg--out.is-new[dir="rtl"] { transform-origin: 0 100%; }
[dir="rtl"] .msg--in.is-new, .msg--in.is-new[dir="rtl"] { transform-origin: 100% 100%; }
.msg[dir="rtl"] { text-align: right; }
.msg--out[dir="rtl"] { border-bottom-right-radius: 18px; border-bottom-left-radius: 6px; }
.msg--in[dir="rtl"] { border-bottom-left-radius: 18px; border-bottom-right-radius: 6px; }
.msg[dir="rtl"] time { text-align: left; }
.msg--typing { display: inline-flex; align-items: center; gap: 4px; padding: 13px 14px; }
.msg--typing span { width: 7px; height: 7px; border-radius: 50%; background: #8e8e93; animation: k-dot 1.2s ease-in-out infinite; }
.msg--typing span:nth-child(2) { animation-delay: 0.15s; }
.msg--typing span:nth-child(3) { animation-delay: 0.3s; }
.msg--staff { background: #fff; border: 1px solid var(--hairline); }
.msg__who { display: block; font-size: 11.5px; font-weight: 600; color: var(--blue); margin-bottom: 2px; }
.chat-input { overflow: hidden; white-space: nowrap; }
.chat-input.is-typing { color: var(--ink); }
.chat-input.is-typing::after { content: ""; flex: none; width: 1.5px; height: 17px; margin-left: 1px; background: var(--blue); animation: k-caret 1s steps(1) infinite; }
[data-presence] { transition: color 0.2s ease; }
[data-presence].is-typing { color: var(--blue); }

/* Hero: ask the demo clinic */
.ask { margin-top: 26px; text-align: center; animation: k-fade-up 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.ask__label { font-size: 14px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); margin-bottom: 12px; }
.ask__chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 540px; }
.ask__chip {
  appearance: none; margin: 0; font: inherit; font-size: 14px; letter-spacing: -0.01em; line-height: 1.2;
  color: var(--blue); background: #fff; border: 1px solid var(--hairline); border-radius: var(--pill);
  min-height: 38px; padding: 8px 15px; cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background-color 0.2s, opacity 0.2s, transform 0.12s;
}
.ask__chip:hover { border-color: var(--blue); }
.ask__chip:active { transform: scale(0.95); }
.ask__chip[aria-disabled="true"] { cursor: default; opacity: 0.5; }
.ask__chip[aria-disabled="true"]:hover { border-color: var(--hairline); }
.ask__chip[aria-disabled="true"]:active { transform: none; }
.ask__chip.is-used { color: var(--ink-56); }
.ask__chip.is-used::before { content: "\2713\00a0"; }
.hero__replay { padding: 0 0 0 4px; font-size: 13px; }

/* Statement: big number and text that lights up as you scroll */
.stat { margin: clamp(36px, 5vw, 56px) auto 0; }
.stat__num { font-size: clamp(88px, 15vw, 176px); font-weight: 600; line-height: 1; letter-spacing: -0.045em; font-variant-numeric: tabular-nums; color: var(--on-dark); }
.stat__label { max-width: 22em; margin: 14px auto 0; font-size: clamp(19px, 2vw, 24px); line-height: 1.35; font-weight: 600; letter-spacing: -0.015em; color: var(--on-dark); }
.stat__label sup { font-size: 0.55em; line-height: 0; margin-left: 2px; }
.statement__text { margin-top: clamp(36px, 5vw, 56px); }
.js [data-highlight].is-split { color: rgba(245, 245, 247, 0.26); }
.hl-w { transition: color 0.4s ease; }
.hl-w.is-lit { color: var(--on-dark); }

/* The system: tabbed tour beside a live phone */
.sys { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "list stage"; gap: clamp(32px, 5vw, 80px); align-items: start; max-width: 980px; margin: 0 auto; }
.sys__list { grid-area: list; display: flex; flex-direction: column; }
.sys__tab {
  position: relative; display: flex; flex-direction: column; justify-content: flex-start; width: 100%; margin: 0; padding: 22px 0;
  appearance: none; background: none; border: 0; border-top: 1px solid var(--hairline);
  font: inherit; color: inherit; text-align: left; cursor: pointer;
}
.sys__tab:last-child { border-bottom: 1px solid var(--hairline); }
.sys__tab:focus-visible { outline-offset: 4px; }
.sys__tag { display: block; font-size: 14px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink-56); transition: color 0.3s ease; }
.sys__title { display: block; margin-top: 4px; font-size: clamp(21px, 2.2vw, 26px); line-height: 1.2; font-weight: 600; letter-spacing: -0.02em; color: var(--ink-56); transition: color 0.3s ease; }
.sys__tab:hover .sys__title, .sys__tab[aria-selected="true"] .sys__title { color: var(--ink); }
.sys__tab[aria-selected="true"] .sys__tag { color: var(--blue); }
.sys__desc { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.5s cubic-bezier(0.2, 0.7, 0.2, 1); }
.sys__desc-in { min-height: 0; overflow: hidden; display: flex; flex-direction: column; }
.sys__tab[aria-selected="true"] .sys__desc { grid-template-rows: 1fr; }
.sys__text { display: block; padding-top: 10px; color: var(--ink-80); font-size: 17px; line-height: 1.47; }
.sys__desc .chip { margin: 14px 0 2px; }
.sys__bar { position: absolute; left: 0; right: 0; top: -1px; height: 2px; overflow: hidden; pointer-events: none; }
.sys__bar i { display: block; height: 100%; background: var(--blue); transform: scaleX(0); transform-origin: 0 50%; }
.sys.is-playing .sys__tab[aria-selected="true"] .sys__bar i { animation: k-bar var(--dur, 7000ms) linear forwards; }
.sys.is-held .sys__bar i, .sys.is-offscreen .sys__bar i { animation-play-state: paused !important; }
.sys__dots { display: none; }
.sys__stage { grid-area: stage; display: flex; flex-direction: column; align-items: center; padding-top: 8px; }
.scenes { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.scene { flex: 1; min-height: 0; display: flex; flex-direction: column; outline: none; }
.scene:focus-visible { box-shadow: inset 0 0 0 2px var(--blue); border-radius: 0 0 44px 44px; }
.js .scene:not([hidden]) { animation: k-fade-up 0.45s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.sys__foot { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 18px; }
.sys__caption { font-size: 13px; color: var(--ink-56); }
.sys__play {
  appearance: none; width: 32px; height: 32px; border-radius: 50%; border: 0; padding: 0;
  background: var(--parchment); color: var(--ink); display: grid; place-items: center; cursor: pointer;
  transition: background-color 0.2s, transform 0.12s;
}
.sys__play:hover { background: #e8e8ed; }
.sys__play:active { transform: scale(0.92); }
.sys__play svg { width: 12px; height: 12px; }
.sys__play .ic-play, .sys__play[data-state="paused"] .ic-pause { display: none; }
.sys__play[data-state="paused"] .ic-play { display: block; }

/* Scene: unified inbox */
.inbox { list-style: none; margin: 0; padding: 0; flex: 1; min-height: 0; display: flex; flex-direction: column; background: var(--pearl); overflow: hidden; }
.inbox__row { display: flex; gap: 12px; padding: 12px 16px; background: #fff; border-bottom: 1px solid var(--hairline-soft); }
.inbox__row.is-new { animation: k-msg-in 0.45s cubic-bezier(0.2, 0.8, 0.2, 1.05) both; transform-origin: 50% 0; }
.inbox__row--soon { margin-top: auto; border-top: 1px solid var(--hairline-soft); border-bottom: 0; background: var(--pearl); }
.inbox__row--soon .inbox__who, .inbox__row--soon .inbox__text { color: var(--ink-56); }
.inbox__ch { width: 36px; height: 36px; flex: none; border-radius: 50%; background: var(--parchment); color: var(--ink-80); display: grid; place-items: center; }
.inbox__ch svg { width: 18px; height: 18px; }
.inbox__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.inbox__top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.inbox__who { font-size: 14.5px; font-weight: 600; letter-spacing: -0.01em; }
.inbox__top time { font-size: 12px; color: var(--ink-56); }
.inbox__text { font-size: 13px; color: var(--ink-80); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inbox__state { align-self: flex-start; margin-top: 6px; padding: 2px 9px; border-radius: var(--pill); font-size: 11.5px; font-weight: 600; letter-spacing: 0; background: var(--parchment); color: var(--ink-56); transition: background-color 0.3s, color 0.3s; }
.inbox__state.is-done { background: var(--blue-tint); color: var(--blue); }
.inbox__state.is-new { background: var(--ink); color: #fff; }

/* Scene: Monday report */
.rpage { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 12px; padding: 10px 18px 18px; background: #fff; overflow: hidden; }
.rpage__kicker { font-size: 12px; font-weight: 600; color: var(--blue); }
.rpage__title { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.rpage__period { font-size: 12.5px; color: var(--ink-56); }
.rpage__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.rpage__cell { background: var(--parchment); border-radius: 12px; padding: 10px 12px; }
.rpage__v { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; white-space: nowrap; font-variant-numeric: tabular-nums; }
.rpage__v small { margin-left: 4px; font-size: 11px; font-weight: 600; letter-spacing: 0; color: var(--ink-56); }
.rpage__v small.pre { margin: 0 3px 0 0; }
.rpage__l { font-size: 11.5px; color: var(--ink-56); }
.rpage__chart { background: var(--parchment); border-radius: 12px; padding: 10px 12px 8px; }
.rpage__ct { font-size: 11.5px; color: var(--ink-56); margin-bottom: 20px; }
.rpage__bars { display: flex; align-items: flex-end; gap: 7px; height: 78px; }
.rpage__bars span { position: relative; flex: 1; height: calc(var(--v) * 1%); border-radius: 4px 4px 2px 2px; background: #c7c7cc; transform-origin: 50% 100%; }
.rpage__bars span:has(b) { background: var(--blue); }
.rpage__bars b { position: absolute; left: 50%; top: -17px; transform: translateX(-50%); font-size: 11px; font-weight: 600; color: var(--blue); }
.rpage__days { display: flex; gap: 7px; margin-top: 5px; }
.rpage__days span { flex: 1; text-align: center; font-size: 10.5px; color: var(--ink-56); }
.rpage__note { font-size: 12.5px; line-height: 1.4; color: var(--ink-80); }
.js .scene:not([hidden]) .rpage__bars span { animation: k-grow 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; animation-delay: calc(var(--i, 0) * 70ms + 250ms); }
.js .scene:not([hidden]) .rpage__cell { animation: k-msg-in 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.js .scene:not([hidden]) .rpage__cell:nth-child(2) { animation-delay: 80ms; }
.js .scene:not([hidden]) .rpage__cell:nth-child(3) { animation-delay: 160ms; }
.js .scene:not([hidden]) .rpage__cell:nth-child(4) { animation-delay: 240ms; }

/* Arabic and English: language switch */
.seg { display: inline-flex; gap: 2px; padding: 3px; margin-bottom: 18px; border-radius: var(--pill); background: rgba(255, 255, 255, 0.1); }
.seg__btn {
  appearance: none; margin: 0; border: 0; border-radius: var(--pill); min-height: 34px; padding: 6px 18px;
  font: inherit; font-size: 14px; letter-spacing: -0.01em; color: var(--on-dark); background: transparent; cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease;
}
.seg__btn:hover { background: rgba(255, 255, 255, 0.08); }
.seg__btn[aria-pressed="true"] { background: #fff; color: var(--ink); }
.chatcard .chat { min-height: 380px; }

/* Cost calculator */
.calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); max-width: 980px; margin: 0 auto; align-items: start; }
.calc__inputs { display: grid; gap: 30px; padding-top: 6px; }
.range__top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.range label { font-size: 17px; font-weight: 600; letter-spacing: -0.015em; color: var(--on-dark); }
.range output { font-size: 17px; color: var(--on-dark); white-space: nowrap; font-variant-numeric: tabular-nums; }
.range__hint { margin-top: 6px; font-size: 14px; color: var(--on-dark-muted); }
.range input[type="range"] {
  --fill: 50%;
  -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 28px; margin: 10px 0 0;
  background: transparent; cursor: pointer;
}
.range input[type="range"]:focus { outline: none; }
.range input[type="range"]:focus-visible { outline: 2px solid var(--blue-on-dark); outline-offset: 4px; border-radius: 8px; }
.range input[type="range"]::-webkit-slider-runnable-track {
  height: 4px; border-radius: 2px;
  background: linear-gradient(to right, var(--blue-on-dark) var(--fill), rgba(255, 255, 255, 0.18) var(--fill));
}
.range input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 26px; height: 26px; margin-top: -11px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 5px rgba(0, 0, 0, 0.4); transition: transform 0.15s ease;
}
.range input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.12); }
.range input[type="range"]::-moz-range-track { height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.18); }
.range input[type="range"]::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--blue-on-dark); }
.range input[type="range"]::-moz-range-thumb { width: 26px; height: 26px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 1px 5px rgba(0, 0, 0, 0.4); }
.calc__result { background: var(--black); border-radius: var(--r-panel); padding: clamp(24px, 3.4vw, 36px); }
.calc__label { font-size: 15px; color: var(--on-dark-muted); }
.calc__big { margin-top: 6px; font-size: clamp(48px, 6.4vw, 76px); line-height: 1.05; font-weight: 600; letter-spacing: -0.035em; white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--on-dark); }
.calc__cur { margin-right: 10px; font-size: 0.36em; letter-spacing: 0; color: var(--on-dark-muted); vertical-align: 0.9em; }
.calc__per { margin-top: 4px; font-size: 17px; color: var(--on-dark); }
.calc__year { margin-top: 2px; font-size: 14px; color: var(--on-dark-muted); font-variant-numeric: tabular-nums; }
.calc__bars { display: grid; gap: 16px; margin-top: 26px; }
.cbar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; font-size: 14px; }
.cbar__label { color: var(--on-dark-muted); }
.cbar__value { color: var(--on-dark); font-variant-numeric: tabular-nums; }
.cbar__track { grid-column: 1 / -1; height: 10px; border-radius: 5px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.cbar__fill { display: block; height: 100%; width: 0; border-radius: 5px; background: var(--on-dark); transition: width 0.55s cubic-bezier(0.2, 0.7, 0.2, 1); }
.cbar--plan .cbar__fill { background: var(--blue-on-dark); }
.calc__be { margin-top: 22px; font-size: 15px; line-height: 1.45; color: var(--on-dark); }
.calc__cta { margin-top: 22px; }
.calc__cta .btn { width: 100%; white-space: normal; text-align: center; }
.calc__fine { margin-top: 12px; font-size: 12px; line-height: 1.45; color: var(--on-dark-muted); }

/* Pricing: cards lift on hover; card groups arrive one after another */
.js .plan.reveal {
  transition: opacity 0.8s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1), translate 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), border-color 0.3s ease;
  transition-delay: var(--d, 0ms), var(--d, 0ms), 0ms, 0ms;
}
@media (hover: hover) {
  .plan { transition: translate 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), border-color 0.3s ease; }
  .plan:hover { translate: 0 -6px; }
  .plan:not(.plan--featured):hover { border-color: var(--hairline); }
}
.plans .plan.reveal:nth-child(2), .rules .rule.reveal:nth-child(3n+2), .steps .step.reveal:nth-child(2),
.metrics .metric.reveal:nth-child(2), .specs .spec.reveal:nth-child(2) { --d: 90ms; }
.plans .plan.reveal:nth-child(3), .rules .rule.reveal:nth-child(3n), .steps .step.reveal:nth-child(3),
.metrics .metric.reveal:nth-child(3) { --d: 180ms; }

/* Booking: steps slide in, times cascade, the tick draws itself */
.js .bk-step:not([hidden]) { animation: k-fade-up 0.45s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.bk-times .bk-time { animation: k-fade-up 0.35s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.bk-times .bk-time:nth-child(4n+2) { animation-delay: 25ms; }
.bk-times .bk-time:nth-child(4n+3) { animation-delay: 50ms; }
.bk-times .bk-time:nth-child(4n+4) { animation-delay: 75ms; }
.bk-done__icon { animation: k-pop 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.3) both; }
.bk-done[data-mode="ok"] .ic-check path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: k-draw 0.45s 0.3s cubic-bezier(0.65, 0, 0.35, 1) forwards; }

/* FAQ answers fade in as they open */
.faq details[open] p { animation: k-fade-up 0.35s cubic-bezier(0.2, 0.7, 0.2, 1) both; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .js .hero__title .hw { opacity: 1; transform: none; filter: none; }
  .btn:active, .bk-day:active, .bk-time:active, .ask__chip:active, .sys__play:active { transform: none; }
  .plan:hover { translate: none; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important; transition-delay: 0s !important;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 1068px) {
  .modules { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plans { grid-template-columns: minmax(0, 1fr); max-width: 560px; margin: 0 auto; }
  .rules { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .float { display: none; }
}
@media (max-width: 833px) {
  .gnav__links { display: none; }
  .gnav__cta { margin-left: auto; }
  .split { grid-template-columns: minmax(0, 1fr); }
  .split__copy { text-align: center; }
  .specs { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}
@media (max-width: 734px) {
  :root { --gutter: 20px; }
  .modules { grid-template-columns: minmax(0, 1fr); }
  .module { min-height: 0; }
  .metrics { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .report__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rules { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .bk-days { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bk-times { grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); }
  .hero__meta { flex-direction: column; align-items: center; gap: 4px; }
  .hero__meta li + li::before { content: none; }
  .bk-actions .btn { width: 100%; }
  .faq summary { font-size: 17px; }
  .faq details p { padding-right: 0; }
  .footer__cols { gap: 40px; }
}
@media (max-width: 419px) {
  .hero__ctas .btn { width: 100%; }
}
@media (max-width: 359px) {
  .device { width: 280px; height: 572px; border-radius: 50px; }
  .screen { border-radius: 40px; }
}
/* Responsive rules for the interactive layer */
@media (max-width: 833px) {
  /* The tour becomes a swipeable row of cards above the phone */
  .sys { grid-template-columns: minmax(0, 1fr); grid-template-areas: "list" "dots" "stage"; gap: 16px; }
  .sys__list {
    flex-direction: row; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
    margin: 0 calc(-1 * var(--gutter)); padding: 2px var(--gutter) 6px; scroll-padding: 0 var(--gutter);
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .sys__list::-webkit-scrollbar { display: none; }
  .sys__tab, .sys__tab:last-child {
    flex: 0 0 min(84%, 380px); scroll-snap-align: start; overflow: hidden;
    border: 1px solid var(--hairline); border-radius: var(--r-card); padding: 18px 20px 20px;
  }
  .sys__tab[aria-selected="true"] { border-color: var(--ink-56); }
  .sys__title { color: var(--ink); font-size: 21px; }
  .sys__desc { grid-template-rows: 1fr; }
  .sys__text { font-size: 15px; }
  .sys__bar { top: auto; bottom: 0; height: 3px; }
  .sys__dots { grid-area: dots; display: flex; justify-content: center; gap: 8px; }
  .sys__dots span { width: 7px; height: 7px; border-radius: 4px; background: var(--hairline); transition: width 0.3s ease, background-color 0.3s ease; }
  .sys__dots span.is-on { width: 20px; background: var(--ink-56); }
  .sys__stage { margin-top: 12px; }
  .calc { grid-template-columns: minmax(0, 1fr); }
  .chatcard .chat { min-height: 0; }
}
@media (max-width: 359px) {
  .rpage { padding: 8px 14px 14px; gap: 10px; }
  .rpage__bars { height: 64px; }
}
@media print {
  .js .reveal { opacity: 1; transform: none; }
  .gnav { position: static; }
  .js .hero__title .hw, .js .is-scripted .float { opacity: 1; transform: none; filter: none; }
  .gnav__progress, .ask, .sys__foot { display: none; }
}
