/* ==========================================================================
   Edite Labs — v7 styles
   Calm, light, minimal. One accent. Mockups are the centrepiece.
   ========================================================================== */

:root {
  --bg: #f7f6f3;
  --bg-2: #efede8;
  --white: #fff;
  --ink: #1d1d1f;
  --ink-2: #424245;
  --muted: #6e6e73;
  --line: rgba(29, 29, 31, .08);
  --line-2: rgba(29, 29, 31, .14);

  --accent: #0e7a5f;
  --accent-ink: #0b654e;
  --accent-bright: #3fbf93;
  --accent-soft: #e4f2ec;
  --amber: #9a5b06;
  --amber-dot: #e39a2d;
  --amber-soft: #fbf0dd;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", Inter, "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;

  --container: 1120px;
  --container-wide: 1280px;
  --gutter: clamp(20px, 4vw, 40px);
  --section-y: clamp(96px, 13vw, 168px);

  --shadow-mock: 0 1px 2px rgba(0, 0, 0, .04), 0 14px 32px -12px rgba(0, 0, 0, .14), 0 44px 80px -32px rgba(0, 0, 0, .16);
  --shadow-soft: 0 1px 2px rgba(0, 0, 0, .04), 0 10px 30px -14px rgba(0, 0, 0, .14);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: -.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
@supports (overflow: clip) { body { overflow-x: clip; } }
h1, h2, h3, h4, h5, h6, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
b, strong { font-weight: 600; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
main:focus { outline: none; }

.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: 999px;
  background: var(--ink); color: #fff; font-size: 14px; font-weight: 500;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.container--wide { max-width: calc(var(--container-wide) + var(--gutter) * 2); }
.br-wide { display: none; }
@media (min-width: 760px) { .br-wide { display: inline; } }

.icon { width: 16px; height: 16px; flex: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: 999px;
  font-size: 15px; font-weight: 500; letter-spacing: -.01em; white-space: nowrap;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.btn:active { transform: scale(.98); }
.btn--sm { height: 36px; padding: 0 16px; font-size: 14px; }
.btn--lg { height: 52px; padding: 0 26px; font-size: 16px; }
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-ink); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #000; }
.btn--quiet { background: var(--white); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn--quiet:hover { box-shadow: inset 0 0 0 1px rgba(29, 29, 31, .3); }
.btn--quiet .icon { transition: transform .2s var(--ease); }
.btn--quiet:hover .icon { transform: translateX(2px); }

.link { color: var(--accent); text-decoration: underline; text-decoration-color: rgba(14, 122, 95, .35); text-underline-offset: 3px; }
.link:hover { text-decoration-color: currentColor; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 246, 243, .78);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background-color .3s var(--ease);
}
.header.is-scrolled { border-bottom-color: var(--line); }
.header__inner { display: flex; align-items: center; gap: 24px; height: 64px; }

.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.brand__mark { width: 28px; height: 28px; }
.brand__name { font-size: 17px; font-weight: 600; letter-spacing: -.02em; }
.brand--sm .brand__mark { width: 24px; height: 24px; }
.brand--sm .brand__name { font-size: 15px; }

.nav { margin-left: auto; display: none; }
.nav__links { display: flex; gap: 4px; }
.nav__links a {
  display: block; padding: 8px 12px; border-radius: 999px;
  font-size: 14px; color: var(--ink-2);
  transition: color .2s var(--ease), background-color .2s var(--ease);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a.is-active { color: var(--ink); background: rgba(29, 29, 31, .05); }
.header__cta { display: none; }

.menu-toggle {
  margin-left: auto; width: 40px; height: 40px; border-radius: 999px;
  display: grid; place-content: center; gap: 6px;
}
.menu-toggle span { display: block; width: 18px; height: 1.6px; border-radius: 2px; background: var(--ink); transition: transform .3s var(--ease); }
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.8px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.8px) rotate(-45deg); }

.mobile-menu {
  position: absolute; left: 0; right: 0; top: 100%;
  background: rgba(247, 246, 243, .98);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
  padding: 8px 0 28px;
  max-height: calc(100vh - 64px); overflow-y: auto;
}
.mobile-menu li a { display: block; padding: 14px 0; font-size: 22px; font-weight: 600; letter-spacing: -.02em; border-bottom: 1px solid var(--line); }
.mobile-menu__cta { width: 100%; margin-top: 24px; }

@media (min-width: 940px) {
  .nav, .header__cta { display: flex; }
  .menu-toggle, .mobile-menu { display: none !important; }
}

/* ---------- Shared type ---------- */
.eyebrow { font-size: 15px; font-weight: 500; color: var(--muted); letter-spacing: -.005em; }
.section { padding: var(--section-y) 0; }
.section--white { background: var(--white); }
.section--snug { padding-top: clamp(72px, 9vw, 120px); }
.section-head { max-width: 760px; margin: 0 auto clamp(40px, 5vw, 64px); text-align: center; }
.section-title {
  margin-top: 14px;
  font-size: clamp(36px, 5.2vw, 60px); font-weight: 600; line-height: 1.05; letter-spacing: -.035em;
  text-wrap: balance;
}
.section-lede { max-width: 620px; margin: 20px auto 0; font-size: clamp(17px, 1.6vw, 20px); line-height: 1.5; color: var(--muted); text-wrap: pretty; }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(64px, 11vw, 128px); }
.hero__copy { text-align: center; }
.hero__title {
  margin: 0 auto; max-width: 15ch;
  font-size: clamp(44px, 7.4vw, 96px); font-weight: 600; line-height: 1.02; letter-spacing: -.045em;
  text-wrap: balance;
}
.hero__lede {
  margin: 24px auto 0; max-width: 600px;
  font-size: clamp(18px, 1.9vw, 21px); line-height: 1.5; color: var(--muted); text-wrap: pretty;
}
.hero__ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; }
@media (min-width: 760px) { .hero__title { max-width: 13ch; } }

.hero-stage {
  position: relative; margin-top: clamp(56px, 8vw, 96px);
  border-radius: clamp(28px, 3vw, 40px); overflow: hidden;
  display: flex; justify-content: center;
  padding: clamp(36px, 5vw, 64px) 16px 0;
  background:
    radial-gradient(70% 60% at 18% 8%, #ebe5da 0%, rgba(235, 229, 218, 0) 70%),
    radial-gradient(60% 60% at 88% 96%, #dce9e2 0%, rgba(220, 233, 226, 0) 70%),
    radial-gradient(50% 50% at 70% 20%, #e8e9ec 0%, rgba(232, 233, 236, 0) 70%),
    #eceae4;
}
/* From 1024px the copy sits beside the phone, and the phone is sized to the
   viewport so its top and the first bubbles are above the fold (e.g. 1024x640). */
@media (min-width: 1024px) {
  .hero { padding-top: 28px; }
  .hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(40px, 5vw, 72px); align-items: center; }
  .hero__copy { text-align: left; padding-bottom: 24px; }
  .hero__title { margin: 0; max-width: 11ch; font-size: clamp(48px, 5.2vw, 72px); }
  .hero__lede { margin-left: 0; max-width: 470px; }
  .hero__ctas { justify-content: flex-start; margin-top: 32px; }
  .hero-stage { margin-top: 0; padding: 36px 44px 0; }
}

/* Shared window chrome */
.win { background: var(--white); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-mock), 0 0 0 1px rgba(0, 0, 0, .05); min-width: 0; }
.win__bar { display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 14px; background: #f4f3f0; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.win__dots { display: inline-flex; gap: 7px; flex: none; }
.win__dots i { width: 11px; height: 11px; border-radius: 50%; background: #dad8d3; }
.win__title { font-weight: 500; color: var(--ink-2); flex: 1; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.win__search { flex: none; height: 24px; padding: 0 12px 0 10px; display: none; align-items: center; border-radius: 7px; background: var(--white); box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); width: 140px; }
@media (min-width: 720px) { .win__search { display: inline-flex; } }

@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* Animated-in step (generic) */
.is-pending { display: none !important; }
.is-fading { opacity: 0 !important; transition: opacity .5s var(--ease) !important; }
.is-paused, .is-paused * { animation-play-state: paused !important; }
.is-enter { animation: stepIn .5s var(--ease) both; }
@keyframes stepIn { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }

/* ---------- (a) Phone / chat ---------- */
.phone {
  width: min(330px, 100%); height: 660px; padding: 10px; flex: none;
  border-radius: 54px; background: #1d1d1f;
  box-shadow: var(--shadow-mock), inset 0 0 0 1.5px #3a3a3c;
}
.phone__screen { position: relative; height: 100%; border-radius: 45px; overflow: hidden; background: #f2f1ed; display: flex; flex-direction: column; }
.phone__status { position: relative; flex: none; height: 50px; display: flex; align-items: center; justify-content: space-between; padding: 6px 28px 0 34px; background: rgba(255, 255, 255, .86); }
.phone__time { font-size: 15px; font-weight: 600; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.phone__island { position: absolute; left: 50%; top: 11px; width: 92px; height: 27px; margin-left: -46px; border-radius: 20px; background: #0b0b0c; }
.phone__icons { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); }
.phone__icons svg { height: 11px; width: auto; fill: currentColor; }
.chat__header { flex: none; display: flex; align-items: center; gap: 10px; padding: 6px 16px 12px 14px; background: rgba(255, 255, 255, .86); border-bottom: 1px solid var(--line); }
.chat__back { width: 10px; height: 17px; color: var(--accent); }
.chat__logo { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-size: 15px; font-weight: 700; }
.chat__who { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.chat__who b { font-size: 15px; letter-spacing: -.015em; }
.chat__who span { font-size: 11.5px; color: var(--muted); }
.chat__body { flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: 10px 12px 6px; }
.chat__track { display: flex; flex-direction: column; gap: 7px; }
.chat__day { align-self: center; font-size: 11px; font-weight: 500; color: #56565b; margin: 2px 0 4px; }
.msg { max-width: 82%; padding: 8px 12px 9px; border-radius: 19px; font-size: 14px; line-height: 1.36; letter-spacing: -.01em; }
.msg--out { align-self: flex-end; background: var(--ink); color: #fff; border-bottom-right-radius: 6px; }
.msg--in { align-self: flex-start; background: var(--white); color: var(--ink); border-bottom-left-radius: 6px; box-shadow: 0 1px 1px rgba(0, 0, 0, .04); }
.msg--card { max-width: 86%; padding: 6px 6px 9px; }
.slots { display: grid; gap: 5px; margin-top: 8px; }
.slots span { display: block; padding: 6px 10px; border-radius: 11px; box-shadow: inset 0 0 0 1px var(--line-2); font-size: 13px; font-weight: 500; color: var(--ink-2); text-align: center; }
.slots .is-picked { background: var(--accent-soft); box-shadow: inset 0 0 0 1px rgba(14, 122, 95, .35); color: var(--accent); }
.typing { display: none; align-self: flex-start; gap: 4px; padding: 12px 14px; border-radius: 19px; border-bottom-left-radius: 6px; background: var(--white); }
.typing.is-active { display: inline-flex; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: #b8b8bd; animation: typing 1.2s infinite ease-in-out; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-3px); opacity: 1; } }
.chat__composer { flex: none; display: flex; align-items: center; gap: 8px; padding: 8px 12px 26px; background: rgba(255, 255, 255, .86); border-top: 1px solid var(--line); }
.chat__plus { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: rgba(29, 29, 31, .06); color: var(--muted); font-size: 18px; line-height: 1; }
.chat__input { flex: 1; height: 34px; display: flex; align-items: center; padding: 0 14px; border-radius: 17px; background: var(--white); box-shadow: inset 0 0 0 1px var(--line-2); font-size: 14px; color: var(--muted); }
.chat__send { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; }
.chat__send svg { width: 15px; height: 15px; }

@keyframes click { 0% { transform: scale(.2); opacity: 1; } 100% { transform: scale(1.3); opacity: 0; } }

/* ---------- How it works ---------- */
.steps { display: grid; gap: 16px; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.step { padding: 28px; border-radius: 28px; background: var(--white); }
.step__num { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.step__title { margin-top: 20px; font-size: 21px; font-weight: 600; line-height: 1.25; letter-spacing: -.02em; }
.step__text { margin-top: 6px; font-size: 17px; line-height: 1.45; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq__list { max-width: 760px; margin: 0 auto; border-top: 1px solid var(--line); }
.qa { border-bottom: 1px solid var(--line); }
.qa summary {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 24px 0; cursor: pointer; list-style: none;
  font-size: clamp(17px, 1.6vw, 19px); font-weight: 500; letter-spacing: -.015em; line-height: 1.35;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary:focus-visible { outline-offset: 4px; }
.qa__icon { position: relative; flex: none; width: 28px; height: 28px; border-radius: 50%; background: rgba(29, 29, 31, .05); transition: background-color .2s; }
.qa__icon::before, .qa__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.6px; margin: -.8px 0 0 -5.5px; border-radius: 2px; background: var(--ink); transition: transform .35s var(--ease); }
.qa__icon::after { transform: rotate(90deg); }
.qa[open] .qa__icon::after { transform: rotate(0deg); }
.qa summary:hover .qa__icon { background: rgba(29, 29, 31, .09); }
.qa__a p { padding: 0 52px 26px 0; font-size: 16.5px; line-height: 1.6; color: var(--muted); }
.qa[open] .qa__a { animation: faqIn .45s var(--ease); }
@keyframes faqIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* ---------- Contact ---------- */
.contact__card {
  text-align: center; padding: clamp(56px, 8vw, 112px) clamp(22px, 6vw, 96px);
  border-radius: clamp(28px, 3vw, 40px); background: var(--white); box-shadow: 0 0 0 1px var(--line);
}
.contact__mark { display: inline-block; width: 52px; height: 52px; }
.contact__title { margin-top: 28px; font-size: clamp(36px, 5.6vw, 68px); font-weight: 600; line-height: 1.04; letter-spacing: -.04em; text-wrap: balance; }
.contact__text { margin: 20px auto 0; max-width: 560px; font-size: clamp(17px, 1.6vw, 19px); line-height: 1.55; color: var(--muted); text-wrap: pretty; }
.contact__ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; }
.contact { padding-top: clamp(72px, 9vw, 120px); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 36px 0 44px; }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14px; color: var(--muted); }
.footer__links a:hover { color: var(--ink); }
.footer__legal { font-size: 13.5px; color: var(--muted); }
@media (max-width: 720px) { .footer__inner { flex-direction: column; align-items: flex-start; } }

/* ---------- 404 ---------- */
.error { min-height: calc(100vh - 64px); min-height: calc(100svh - 64px); display: grid; place-items: center; text-align: center; padding: 64px 0 96px; }
.error__code { font-size: 15px; font-weight: 600; color: var(--accent); font-variant-numeric: tabular-nums; }
.error__title { margin-top: 14px; font-size: clamp(40px, 6.4vw, 76px); font-weight: 600; line-height: 1.04; letter-spacing: -.045em; text-wrap: balance; }
.error__text { margin: 20px auto 0; max-width: 480px; font-size: 18px; line-height: 1.55; color: var(--muted); }
.error__ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; }

/* ---------- Hero: clinic booking chat ---------- */
.phone--hero { margin-bottom: -30px; }
@media (min-width: 760px) { .phone--hero { width: 340px; height: 700px; } }
@media (min-width: 1024px) { .phone--hero { height: clamp(500px, calc(100vh - 100px), 700px); height: clamp(500px, calc(100svh - 100px), 700px); } }
.chat__logo--clinic svg { width: 16px; height: 16px; }
.bk { -webkit-mask-image: linear-gradient(transparent, #000 40px); mask-image: linear-gradient(transparent, #000 40px); }
.bk__track.is-gliding { transition: transform .5s var(--ease); }
.slots--row { grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 8px 0; }
.slots--row span { padding: 6px 2px; font-size: 12.5px; white-space: nowrap; transition: background-color .4s var(--ease), box-shadow .4s var(--ease), color .4s var(--ease); }
.bk-sum { display: block; padding: 10px 12px 11px; border-radius: 14px; background: #f7f7f5; box-shadow: inset 0 0 0 1px var(--line); }
.bk-sum > span { display: block; }
.bk-sum__label { font-size: 12px; font-weight: 600; color: var(--muted); }
.bk-sum__when { margin-top: 4px; font-size: 17px; font-weight: 600; letter-spacing: -.02em; }
.bk-sum__what { margin-top: 1px; font-size: 12.5px; line-height: 1.35; color: var(--ink-2); }
.bk-sum .bk-sum__meta { display: flex; justify-content: space-between; gap: 8px; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.bk-sum__meta span:last-child { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.bk-sum__btn {
  position: relative; display: flex; align-items: center; justify-content: center; height: 36px; margin-top: 6px;
  border-radius: 12px; background: var(--accent); color: #fff; font-size: 14px; font-weight: 600;
  transition: background-color .3s var(--ease), color .3s var(--ease), transform .15s;
}
.bk-sum__btn::after { content: ""; position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; background: rgba(255, 255, 255, .4); transform: scale(0); opacity: 0; }
.bk-sum__btn.is-press { transform: scale(.96); }
.bk-sum__btn.is-press::after { animation: click .45s var(--ease); }
.bk-sum__btn-b { display: none; align-items: center; gap: 6px; }
.bk-sum__btn-b svg { width: 14px; height: 14px; }
.bk-sum__btn.is-done { background: var(--accent-soft); color: var(--accent); }
.bk-sum__btn.is-done .bk-sum__btn-a { display: none; }
.bk-sum__btn.is-done .bk-sum__btn-b { display: inline-flex; animation: stepIn .4s var(--ease) both; }
.chat__input { min-width: 0; overflow: hidden; }
.chat__input.is-drafting { justify-content: flex-end; }
.bk__draft { flex: none; color: var(--ink); white-space: nowrap; }
.bk__draft:empty { display: none; }
.chat__input.is-drafting .bk__ph { display: none; }
.bk__draft.is-typing::after { content: ""; display: inline-block; width: 1.5px; height: 1.1em; margin-left: 1px; vertical-align: -.18em; background: var(--accent); animation: pulse 1s steps(1) infinite; }

/* Clinic-side satellite: the doctor's afternoon, filled by the chat (wide screens) */
.slotcard { display: none; }
@media (min-width: 1360px) {
  .hero-stage { gap: 36px; }
  .slotcard {
    display: block; flex: none; align-self: flex-start; width: 268px; margin-top: 150px; padding: 16px;
    border-radius: 22px; background: rgba(255, 255, 255, .9);
    box-shadow: var(--shadow-mock), 0 0 0 1px rgba(0, 0, 0, .04);
  }
}
.slotcard__head { display: flex; align-items: center; gap: 10px; padding: 0 2px 14px; border-bottom: 1px solid var(--line); }
.slotcard__icon { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.slotcard__icon svg { width: 18px; height: 18px; }
.slotcard__who { display: flex; flex-direction: column; line-height: 1.3; }
.slotcard__who b { font-size: 14px; }
.slotcard__who span { font-size: 12px; color: var(--muted); }
.slotcard__list { display: grid; gap: 6px; margin-top: 12px; }
.sl { display: grid; grid-template-columns: 54px minmax(0, 1fr); align-items: center; gap: 8px; font-size: 12.5px; }
.sl time { color: var(--muted); font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sl__busy, .sl__open, .sl__held, .sl__booked { display: flex; align-items: center; height: 40px; padding: 0 12px; border-radius: 10px; }
.sl__busy { background: rgba(29, 29, 31, .05); }
.sl__busy .bar { width: 62%; }
.sl:nth-child(3) .sl__busy .bar { width: 48%; }
.sl__open { box-shadow: inset 0 0 0 1px var(--line-2); color: var(--muted); }
.sl__cell { display: grid; }
.sl__cell > * { grid-area: 1 / 1; transition: opacity .4s var(--ease), transform .4s var(--ease); }
.sl__held { box-shadow: inset 0 0 0 1.5px rgba(14, 122, 95, .45); background: rgba(228, 242, 236, .5); color: var(--accent); font-weight: 600; }
.sl__booked { justify-content: space-between; gap: 8px; background: var(--accent-soft); box-shadow: inset 3px 0 0 var(--accent); }
.sl__booked b { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sl__booked .st { background: var(--white); }
.sl--target .sl__held, .sl--target .sl__booked { opacity: 0; transform: scale(.97); }
.sl--target.is-held .sl__open, .sl--target.is-booked .sl__open { opacity: 0; }
.sl--target.is-held .sl__held { opacity: 1; transform: none; }
.sl--target.is-booked .sl__booked { opacity: 1; transform: none; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }

/* ---------- Bento tiles (use cases, trust) ----------
   One card language for the page: a tile is the opposite of its ground
   (cream on white sections, white on cream). Final state is the default
   (no JS, reduced motion, print). Under .js a tile waits in its "before"
   state until main.js adds .is-played once in view. */
.bento { display: grid; gap: 16px; }
@media (min-width: 700px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile--span, .tile--wide { grid-column: 1 / -1; }
}
@media (min-width: 1024px) {
  .bento--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bento--3 .tile--span { grid-column: span 2; }
}
.tile { position: relative; display: flex; flex-direction: column; min-width: 0; overflow: hidden; border-radius: 28px; background: var(--bg); }
.section:not(.section--white) .tile { background: var(--white); }
.tile__copy { max-width: 520px; padding: 28px 28px 0; font-size: 17px; line-height: 1.45; color: var(--muted); text-wrap: pretty; }
.tile__copy h3, .tile__copy p { display: inline; font: inherit; }
.tile__copy h3 { color: var(--ink); font-weight: 600; letter-spacing: -.015em; }
.tasks { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.tasks li { padding: 4px 11px; border-radius: 999px; background: var(--white); box-shadow: inset 0 0 0 1px var(--line); font-size: 13px; font-weight: 500; line-height: 1.45; color: var(--ink-2); }
.tile__pic { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; min-width: 0; padding: 28px; }
.tile__pic--bleed { padding-right: 0; }
.tile__pic--bleed .msg--out { margin-right: 28px; }
@media (min-width: 700px) {
  .tile--wide { flex-direction: row; align-items: center; }
  .tile--wide .tile__copy { flex: 1; padding: 32px 36px; }
  .tile--wide .tile__pic { flex: none; width: min(440px, 48%); padding: 28px 32px 28px 0; }
}
@media (max-width: 419px) {
  .tile__copy { padding: 24px 22px 0; }
  .tile__pic { padding: 24px 20px 22px; }
  .tile__pic--bleed { padding-right: 0; }
  .tile__pic--bleed .msg--out { margin-right: 20px; }
}

/* Statuses and initials shared by the tile visuals */
.st { display: inline-flex; align-items: center; gap: 5px; justify-self: start; padding: 3px 9px 3px 7px; border-radius: 999px; background: rgba(29, 29, 31, .055); color: var(--ink-2); font-size: 11.5px; font-weight: 600; line-height: 1.3; white-space: nowrap; }
.st svg { width: 12px; height: 12px; flex: none; }
.st--ok { background: var(--accent-soft); color: var(--accent); }
.st--warn { background: var(--amber-soft); color: var(--amber); }
.dav { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #ecebe7; font-size: 10.5px; font-weight: 700; letter-spacing: 0; }
.dav--a { background: #efe5d6; color: #6b4e22; }
.dav--b { background: #dcebe4; color: #0b654e; }
.dav--c { background: #e1e6ee; color: #22364f; }
.dav--d { background: #f2e1dc; color: #7c3a2b; }
.dav--e { background: #e5e5ea; color: #424245; }
.dav--f { background: #f6e8cf; color: #6e4a07; width: 34px; height: 34px; font-size: 11.5px; }
.dav--g { background: var(--accent-soft); color: var(--accent); }
.bar { display: block; height: 7px; border-radius: 4px; background: rgba(29, 29, 31, .08); }

/* Healthcare (hero tile): today's bookings, bleeding off the tile's foot */
.tile--dash .tile__pic { padding-bottom: 0; }
.dash { width: 100%; margin-bottom: -44px; }
.dash__body { padding: 16px 18px 0; }
.dash__head { display: flex; align-items: baseline; gap: 10px; padding: 0 4px 12px; }
.dash__h { font-size: 17px; font-weight: 600; letter-spacing: -.02em; }
.dash__date { font-size: 13px; color: var(--muted); }
.dash__seg { margin-left: auto; align-self: center; display: inline-flex; padding: 2px; border-radius: 9px; background: rgba(29, 29, 31, .055); font-size: 12px; font-weight: 500; }
.dash__seg span { padding: 3px 10px; border-radius: 7px; color: var(--muted); }
.dash__seg .is-on { background: var(--white); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
.drow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 4px; border-top: 1px solid var(--line); font-size: 13px; }
.drow--cols { display: none; padding: 6px 4px; font-size: 11.5px; color: var(--muted); }
.drow__time { display: none;  color: var(--ink-2); font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.drow__who { display: grid; grid-template-columns: 28px minmax(0, 1fr); column-gap: 10px; align-items: center; min-width: 0; }
.drow__who .dav { grid-row: span 2; }
.drow__who b, .drow__sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.drow__who b { font-weight: 600; line-height: 1.3; }
.drow__sub { font-size: 12px; line-height: 1.3; color: var(--muted); }
.drow__svc { display: none; min-width: 0; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (min-width: 560px) {
  .drow { grid-template-columns: 70px minmax(0, 1fr) minmax(0, 1fr) 132px; padding-left: 8px; padding-right: 8px; }
  .drow__svc, .drow__time { display: block; }
  .drow--cols { display: grid; }
  .drow__sub { display: none; }
  .drow__who .dav { grid-row: auto; }
}
.drow--filler { padding-bottom: 20px; }
.drow--filler > .bar--w1 { display: none; }
@media (min-width: 560px) { .drow--filler > .bar--w1 { display: block; } }
.drow--filler .dav { background: rgba(29, 29, 31, .06); }
.bar--w1 { width: 46px; }
.bar--w2 { width: 58%; }
.bar--w3 { width: 66%; }
.bar--w4 { width: 92px; }
.drow-new { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .7s var(--ease); }
.drow-new__clip { min-height: 0; overflow: hidden; }
.drow--new { transition: opacity .5s var(--ease) .25s; }
.tile.is-played .drow--new { animation: rowHi 2.6s var(--ease) .6s both; }
@keyframes rowHi { from { background-color: #edf6f1; } to { background-color: rgba(237, 246, 241, 0); } }
.js .tile--dash:not(.is-played) .drow-new { grid-template-rows: 0fr; }
.js .tile--dash:not(.is-played) .drow--new { opacity: 0; }

/* Retail: two products in the chat, a third (filler) running off the edge */
.prods { display: flex; gap: 8px; margin-top: 4px; }
.prod { flex: none; width: 124px; display: flex; flex-direction: column; gap: 1px; padding: 6px 6px 10px; border-radius: 16px; background: var(--white); box-shadow: 0 1px 1px rgba(0, 0, 0, .04), 0 0 0 1px var(--line); font-size: 12.5px; color: var(--muted); }
.prod b { margin-top: 7px; padding: 0 4px; font-size: 13px; color: var(--ink); }
.prod > span:last-child { padding: 0 4px; }
.prod__img { height: 104px; border-radius: 11px; background: linear-gradient(160deg, #3a3a3d, #1d1d1f); }
.prod__img--b { background: linear-gradient(160deg, #4a4642, #232120); }
.prod--filler .prod__img { background: rgba(29, 29, 31, .07); }
.prod--filler .bar { width: 70%; margin: 11px 4px 0; }
.prod--filler .bar--short { width: 40%; margin-top: 7px; }

/* Logistics: a parcel's steps, the delivery window moved by the customer */
.trk { padding: 14px; border-radius: 18px; background: var(--white); box-shadow: var(--shadow-soft), 0 0 0 1px rgba(0, 0, 0, .04); }
.trk__head { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.trk__icon { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--bg-2); color: var(--ink-2); }
.trk__icon svg { width: 18px; height: 18px; }
.trk__who { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.trk__who b { font-size: 13.5px; }
.trk__who span { font-size: 11.5px; color: var(--muted); }
.trk__steps { display: grid; gap: 2px; margin-top: 10px; }
.trk__steps li { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 34px; font-size: 13px; color: var(--ink-2); }
.trk__steps i { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; }
.trk__steps i svg { width: 12px; height: 12px; }
.trk__steps time { font-size: 12px; color: var(--muted); }
.trk__next i { background: var(--white); box-shadow: inset 0 0 0 2px var(--accent); }
.trk__swap { display: grid; min-width: 0; font-weight: 600; color: var(--ink); }
.trk__swap > span { grid-area: 1 / 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: opacity .4s var(--ease) .9s, transform .4s var(--ease) .9s; }
.trk__a { opacity: 0; transform: translateY(-6px); }
.trk__chip { transition: opacity .4s var(--ease) 1.2s; }
.js .tile--ship:not(.is-played) .trk__a { opacity: 1; transform: none; }
.js .tile--ship:not(.is-played) .trk__b { opacity: 0; transform: translateY(6px); }
.js .tile--ship:not(.is-played) .trk__chip { opacity: 0; }

/* Small conversation tiles (hospitality, retail, services) */
.mini { display: flex; flex-direction: column; gap: 7px; }
.mini .msg { max-width: 90%; }
.mini__stamp { align-self: center; display: inline-flex; align-items: center; gap: 6px; margin-bottom: 6px; font-size: 12px; font-weight: 500; color: var(--muted); text-align: center; }
.mini__stamp svg { width: 13px; height: 13px; flex: none; }
.mini__thread { display: flex; flex-direction: column; gap: 7px; }
[lang="ar"] { font-family: "SF Arabic", "Geeza Pro", "Noto Sans Arabic", "Segoe UI", Tahoma, var(--font); letter-spacing: 0; }
.mini__thread .msg { font-size: 15px; line-height: 1.5; }
[dir="rtl"] .msg--out { border-bottom-right-radius: 19px; border-bottom-left-radius: 6px; }
[dir="rtl"] .msg--in { border-bottom-left-radius: 19px; border-bottom-right-radius: 6px; }
[data-b] { transition: opacity .5s var(--ease), transform .5s var(--ease); }
[data-b="2"] { transition-delay: 1s; }
[data-b="3"] { transition-delay: 2s; }
[data-b="4"] { transition-delay: 3s; }
.js .tile:not(.is-played) [data-b] { opacity: 0; transform: translateY(8px) scale(.98); }

/* Calendar sync: one booking, two calendars */
.sync__event { position: relative; display: flex; flex-direction: column; gap: 1px; padding: 12px 14px 12px 22px; border-radius: 14px; background: var(--white); box-shadow: var(--shadow-soft), 0 0 0 1px rgba(0, 0, 0, .04); }
.sync__event::before { content: ""; position: absolute; left: 10px; top: 12px; bottom: 12px; width: 3px; border-radius: 2px; background: var(--accent); }
.sync__when { font-size: 15px; font-weight: 600; letter-spacing: -.015em; }
.sync__what { font-size: 12.5px; color: var(--muted); }
.sync__cals { position: relative; display: grid; gap: 10px; margin-left: 24px; padding-top: 14px; }
.sync__cals::before { content: ""; position: absolute; left: 0; top: 0; bottom: 25px; width: 1.5px; background: rgba(14, 122, 95, .4); transform-origin: top; transition: transform .6s var(--ease); }
.sync__cal { position: relative; display: flex; align-items: center; gap: 10px; margin-left: 20px; padding: 9px 12px 9px 9px; border-radius: 12px; background: var(--white); box-shadow: 0 0 0 1px var(--line); font-size: 13px; font-weight: 500; }
.sync__cal::before { content: ""; position: absolute; right: 100%; top: 50%; width: 20px; height: 1.5px; background: rgba(14, 122, 95, .4); transform-origin: left; transition: transform .35s var(--ease) .5s; }
.sync__cal + .sync__cal::before { transition-delay: .7s; }
.sync__icon { flex: none; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--bg-2); color: var(--ink-2); }
.sync__icon svg { width: 16px; height: 16px; }
.sync__name { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sync__ok { flex: none; display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 600; color: var(--accent); transition: opacity .4s var(--ease) .9s; }
.sync__cal + .sync__cal .sync__ok { transition-delay: 1.1s; }
.sync__ok svg { width: 12px; height: 12px; }
.js .tile--sync:not(.is-played) .sync__cals::before { transform: scaleY(0); }
.js .tile--sync:not(.is-played) .sync__cal::before { transform: scaleX(0); }
.js .tile--sync:not(.is-played) .sync__ok { opacity: 0; }

/* Human hand-off */
.ho { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 18px; background: var(--white); box-shadow: var(--shadow-soft), 0 0 0 1px rgba(0, 0, 0, .04); }
.ho__head { display: flex; align-items: center; gap: 10px; }
.ho__who { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.ho__who b { font-size: 13.5px; }
.ho__who span { font-size: 11.5px; color: var(--muted); }
.ho__st { margin-left: auto; display: grid; }
.ho__st > .st { grid-area: 1 / 1; justify-self: end; transition: opacity .3s var(--ease) 1.3s; }
.ho__st-a { opacity: 0; }
.ho .msg--in { max-width: 94%; background: var(--bg); box-shadow: none; }
.section:not(.section--white) .ho { background: var(--bg); box-shadow: none; }
.section:not(.section--white) .ho .msg--in { background: var(--white); }
.ho__note { font-size: 12px; line-height: 1.35; color: var(--muted); }
.ho__foot { display: grid; align-items: center; min-height: 47px; padding-top: 12px; border-top: 1px solid var(--line); }
.ho__foot > * { grid-area: 1 / 1; }
.ho__btn { justify-self: start; display: inline-flex; align-items: center; height: 34px; padding: 0 16px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 600; opacity: 0; visibility: hidden; transition: opacity .3s var(--ease) 1.2s, visibility 0s linear 1.5s; }
.ho__joined { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 500; color: var(--ink-2); transition: opacity .4s var(--ease) 1.4s, transform .4s var(--ease) 1.4s; }
.ho__joined .dav { width: 24px; height: 24px; font-size: 10.5px; }
.tile.is-played .ho__btn { animation: press .3s var(--ease) .85s; }
@keyframes press { 50% { transform: scale(.93); } }
.js .tile--handoff:not(.is-played) .ho__st-a { opacity: 1; }
.js .tile--handoff:not(.is-played) .ho__st-b { opacity: 0; }
.js .tile--handoff:not(.is-played) .ho__btn { opacity: 1; visibility: visible; }
.js .tile--handoff:not(.is-played) .ho__joined { opacity: 0; transform: translateY(6px); }

/* Data: residency and privacy, the one dark tile */
.bento .tile.tile--host { background: var(--ink); }
.tile--host .tile__copy { color: #a1a1a6; }
.tile--host .tile__copy h3 { color: #f5f5f7; }
.res { padding: 4px 16px; border-radius: 18px; background: #2a2a2d; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); color: #a1a1a6; font-size: 13px; }
.res__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; }
.res__row + .res__row { border-top: 1px solid rgba(255, 255, 255, .08); }
.res__row b { color: #f5f5f7; font-weight: 600; white-space: nowrap; }
.res__icon { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(63, 191, 147, .16); color: var(--accent-bright); }
.res__icon svg { width: 18px; height: 18px; }
.res__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.res__txt b { font-size: 14px; }
.res__txt span { font-size: 12px; }
.tog { flex: none; position: relative; width: 44px; height: 26px; border-radius: 999px; background: var(--accent-bright); transition: background-color .3s var(--ease) .7s; }
.tog i { position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transform: translateX(18px); transition: transform .35s var(--ease) .7s; }
.js .tile--host:not(.is-played) .tog { background: #48484a; }
.js .tile--host:not(.is-played) .tog i { transform: none; }

/* ---------- Mobile mockup tuning ---------- */
@media (max-width: 560px) {
  .phone { height: 620px; border-radius: 50px; }
  .phone__screen { border-radius: 41px; }
  .win__bar { gap: 10px; padding: 0 12px; }
  .win__dots i { width: 9px; height: 9px; }
}

/* ---------- Reveal on scroll ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }
.js [data-delay="1"] { transition-delay: .08s; }
.js [data-delay="2"] { transition-delay: .16s; }
.js [data-delay="3"] { transition-delay: .24s; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- Print ---------- */
@media print {
  .header, .skip-link { display: none !important; }
  body { background: #fff; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
