/* Khidma, look A "Always open" (film-led direction slice, 9 Nov 2026, fix round 1).
   Shared by index.html (Arabic, RTL) and en.html (English, LTR).
   Logical properties everywhere so the two directions mirror.
   Colour roles: neutral ink carries the page; the footage carries the first screen;
   amber is the one accent (main action, booking tick, scene progress);
   indigo appears only in the logo tile and the chat accents. */

:root {
  --ink: #0b0d17;            /* neutral ink: shade, solid header, featured plan, closing band */
  --ink-deep: #07080e;       /* footer */
  --text: #12141d;           /* body text on light grounds */
  --text-2: #50545f;         /* secondary text on light grounds */
  --indigo: #4f46e5;         /* logo tile and chat accents only */
  --indigo-ink: #4338ca;
  --amber: #ffb547;
  --amber-hover: #ffc56e;
  --paper: #f6f4ef;
  --white: #ffffff;
  --line: rgba(11, 13, 23, 0.12);
  --wrap: 1320px;
  --gut: clamp(16px, 4.2vw, 64px);
  --head-h: 72px;
  --font: Cairo, sans-serif;
  --ease-out: cubic-bezier(0.22, 0.7, 0.2, 1);
}
html[lang="en"] { --font: Inter, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--head-h) + 12px); }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
p, h1, h2, h3, ul { margin: 0; }
ul { padding: 0; list-style: none; }
.ar { font-family: Cairo, sans-serif; }   /* any Arabic word on the English page */
.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;
}
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.icon { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Focus: ink on light grounds, white on dark grounds and over the film */
:focus-visible { outline: 3px solid var(--text); outline-offset: 3px; border-radius: 6px; }
.on-dark :focus-visible, .on-dark:focus-visible { outline-color: #ffffff; }

.skip {
  position: absolute; inset-inline-start: 12px; top: -60px; z-index: 60;
  background: var(--white); color: var(--text); padding: 10px 16px; border-radius: 10px;
  font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- Header: over the film at the top, solid ink once the page scrolls ---------- */
.top {
  position: fixed; top: 0; inset-inline: 0; z-index: 40;
  height: var(--head-h);
  background-color: transparent;
  color: #fff;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}
.top.is-solid, .js-off .top { background-color: var(--ink); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06); }
.top .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand-link { display: inline-flex; align-items: center; text-decoration: none; border-radius: 12px; flex: none; }
/* The mark, typeset as on the live site: always right to left, tile then wordmark. */
.brand {
  display: flex; align-items: center; gap: 11px;
  direction: rtl;
  font-family: Cairo, sans-serif; font-weight: 900; font-size: 23px; letter-spacing: -0.01em; line-height: 1;
  color: #fff;
}
.brand .glyph {
  width: 38px; height: 38px; border-radius: 11px;
  background: linear-gradient(150deg, #4f46e5, #211d63);
  display: grid; place-items: center;
  color: #fff; font-size: 20px; font-weight: 900;
  box-shadow: 0 8px 18px -8px rgba(11, 13, 23, 0.6);
}
.nav { display: flex; align-items: center; gap: clamp(6px, 2vw, 28px); font-size: 15px; font-weight: 600; }
.nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding-inline: 6px;
  text-decoration: none; color: #fff; border-radius: 8px;
  white-space: nowrap;
}
.nav a:hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1.5px; }
.nav .lang {
  border: 1.5px solid rgba(255, 255, 255, 0.6); border-radius: 999px; padding-inline: 16px; min-height: 40px;
  background: rgba(11, 13, 23, 0.32);
}
.nav .lang:hover { border-color: #fff; text-decoration: none; }

/* ---------- Actions ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border-radius: 12px;
  font-size: 16px; font-weight: 700; line-height: 1.2; text-decoration: none; white-space: nowrap;
  border: 1.5px solid transparent;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
html[lang="en"] .btn { font-weight: 600; letter-spacing: -0.005em; }
.btn-primary { background: var(--amber); color: var(--ink); }
.btn-primary:hover { background: var(--amber-hover); }
.btn-line { border-color: rgba(11, 13, 23, 0.3); color: var(--text); background: var(--white); }
.btn-line:hover { border-color: var(--text); }
/* Secondary action over the film: a plain link with an icon, so the footage keeps the stage */
.link-cta {
  display: inline-flex; align-items: center; gap: 9px;
  min-height: 52px; padding-inline: 8px;
  font-size: 16px; font-weight: 700; line-height: 1.2; color: #fff; white-space: nowrap;
  text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 7px;
  text-decoration-color: rgba(255, 255, 255, 0.55);
  border-radius: 10px;
}
html[lang="en"] .link-cta { font-weight: 600; }
.link-cta:hover { text-decoration-color: #fff; text-decoration-thickness: 2px; }
.link-cta .icon { width: 20px; height: 20px; }

/* ---------- Hero: the footage carries the first screen ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: clamp(600px, 100svh, 920px);
  background: var(--ink) url("film/dental-poster.jpg") center / cover no-repeat;
  color: #fff;
}
.film { position: absolute; inset: 0; z-index: -2; }
.film video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: var(--pos, 50%) 50%;
  opacity: 0; transition: opacity 0.8s ease;
  pointer-events: none;
}
.film video.is-on { opacity: 1; z-index: 2; }
/* iPhone: never show the system play glyph over the film */
.film video::-webkit-media-controls-start-playback-button { display: none !important; -webkit-appearance: none; }
.film video::-webkit-media-controls { display: none !important; }

/* Neutral ink only where text sits: a band under the header for the nav, one under the film bar,
   and the copy shade below, which is attached to the copy block so it always covers exactly the words
   at any width and fades out just beyond them. The far side stays clear so the footage colours read true. */
.shade {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(11, 13, 23, 0.68) 0, rgba(11, 13, 23, 0.64) 58px, rgba(11, 13, 23, 0) 150px),
    linear-gradient(to top, rgba(11, 13, 23, 0.55) 0, rgba(11, 13, 23, 0) 140px);
}
.hero-copy { position: relative; }
.hero-copy::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  inset-block: -100vh;            /* the full hero height; the hero clips the overflow */
  inset-inline-start: -100vw;     /* from the screen's start edge */
  inset-inline-end: -200px;       /* to 200 px beyond the words, where it has faded out */
}
[dir="rtl"] .hero-copy::before { background: linear-gradient(to left, rgba(11, 13, 23, 0.8) 0, rgba(11, 13, 23, 0.76) calc(100% - 200px), rgba(11, 13, 23, 0.38) calc(100% - 110px), rgba(11, 13, 23, 0) 100%); }
[dir="ltr"] .hero-copy::before { background: linear-gradient(to right, rgba(11, 13, 23, 0.8) 0, rgba(11, 13, 23, 0.76) calc(100% - 200px), rgba(11, 13, 23, 0.38) calc(100% - 110px), rgba(11, 13, 23, 0) 100%); }

.hero-inner {
  position: relative;
  max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut);
  min-height: inherit;
  /* the phone column never shrinks below the phone; the copy column gives way instead */
  display: grid; grid-template-columns: minmax(0, 37rem) minmax(min-content, 1fr); column-gap: clamp(24px, 3vw, 48px);
  align-items: center;
}
.hero-copy { padding-block: calc(var(--head-h) + 40px) 112px; }
.hero h1 {
  font-size: clamp(2.05rem, 1.25rem + 2.85vw, 4rem);
  font-weight: 800; line-height: 1.42; letter-spacing: 0;
  text-wrap: balance;
}
html[lang="en"] .hero h1 { font-weight: 700; line-height: 1.04; letter-spacing: -0.032em; }
.hero .lead {
  margin-top: 18px; max-width: 33em;
  font-size: clamp(1.0625rem, 0.96rem + 0.42vw, 1.3125rem); font-weight: 500; line-height: 1.85;
  color: #fff;
}
html[lang="en"] .hero .lead { margin-top: 22px; line-height: 1.6; font-weight: 400; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 30px; }
.fine { margin-top: 14px; font-size: 14px; color: rgba(255, 255, 255, 0.9); }

/* The phone: a crisp HTML phone in the foreground, playing the chat for the clip on screen.
   It stands clear of the header and of the film bar at every desktop width. */
.hero-phone { align-self: end; justify-self: start; margin-block: calc(var(--head-h) + 20px) 74px; display: flex; align-items: flex-start; }
.phone {
  width: 300px; aspect-ratio: 300 / 624; margin: 0;
  width: clamp(236px, calc((100svh - var(--head-h) - 118px) * 0.4808), 300px);   /* whole phone fits the first screen */
  padding: 9px; border-radius: 48px;
  background: linear-gradient(160deg, #3b3e48 0%, #111218 36%, #0b0c10 100%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16) inset, 0 50px 90px -30px rgba(5, 6, 10, 0.8), 0 18px 40px -18px rgba(5, 6, 10, 0.55);
}
.screen {
  position: relative; height: 100%; border-radius: 40px; overflow: hidden;
  background: #f1ece4;
  display: flex; flex-direction: column;
  font-family: var(--font);
}
.island { position: absolute; top: 10px; left: 50%; width: 88px; height: 25px; margin-left: -44px; border-radius: 20px; background: #050608; z-index: 3; }
.chat-head {
  padding: 46px 14px 12px; background: #15171f; color: #fff;
  display: flex; align-items: center; gap: 10px;
}
.avatar {
  width: 36px; height: 36px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: #e6e7ec; color: var(--ink); font-weight: 800; font-size: 16px;
}
.who { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.who b { font-size: 15px; font-weight: 700; }
.who span { font-size: 12px; color: rgba(255, 255, 255, 0.8); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat { flex: 1; padding: 12px 12px 12px; display: flex; flex-direction: column; gap: 9px; transition: opacity 0.18s ease; }
.chat.is-clearing { opacity: 0; }
.msg {
  position: relative; max-width: 86%;
  padding: 8px 11px 6px; border-radius: 14px;
  font-size: 14.5px; line-height: 1.6; color: #14151c;
  box-shadow: 0 1px 1px rgba(11, 13, 23, 0.12);
}
.msg.in { align-self: flex-start; background: #ffffff; border-start-start-radius: 4px; }
.msg.out { align-self: flex-end; background: #e6e4ff; border-start-end-radius: 4px; }
.msg .by { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--indigo-ink); margin-bottom: 2px; }
.mini-mark {
  width: 16px; height: 16px; border-radius: 5px; flex: none;
  display: grid; place-items: center;
  background: linear-gradient(150deg, #4f46e5, #211d63);
  color: #fff; font: 900 10px/1 Cairo, sans-serif;
}
.msg .meta { display: flex; justify-content: flex-end; align-items: center; gap: 4px; margin-top: 1px; font-size: 11px; color: #55586a; line-height: 1.2; }
.msg .meta .icon { width: 15px; height: 15px; color: var(--indigo); }
.typing { align-self: flex-end; display: flex; gap: 4px; padding: 11px 13px; border-radius: 14px; background: #e6e4ff; border-start-end-radius: 4px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: #6d68c9; opacity: 0.35; animation: dot 0.9s infinite ease-in-out; }
.typing i:nth-child(2) { animation-delay: 0.15s; }
.typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes dot { 0%, 100% { opacity: 0.3; } 50% { opacity: 1; } }
.booked {
  align-self: center; margin-top: 4px; max-width: 94%;
  display: flex; align-items: center; gap: 9px;
  padding: 9px 12px 9px 10px; border-radius: 14px;
  background: #ffffff; color: var(--ink);
  font-size: 13px; font-weight: 700; line-height: 1.45;
  box-shadow: 0 6px 16px -8px rgba(11, 13, 23, 0.35);
}
.booked .tick { width: 30px; height: 30px; border-radius: 9px; flex: none; display: grid; place-items: center; background: var(--amber); color: var(--ink); }
.booked .tick .icon { width: 17px; height: 17px; }
.composer { margin: 0 10px 14px; padding: 10px 14px; border-radius: 999px; background: #fff; color: #5f6272; font-size: 13px; }

/* Staged reveal for the playing chat (JS adds .is-staged, then .show on each step) */
.chat.is-staged [data-step] { opacity: 0; transform: translateY(6px); }
.chat.is-staged [data-step].show { opacity: 1; transform: none; transition: opacity 0.26s var(--ease-out), transform 0.26s var(--ease-out); }
.chat [data-step="typing"] { display: none; }
.chat.is-staged [data-step="typing"].show { display: flex; }

/* The owner card beside the phone (look B's "booking box", added on his pick of A, 9 Nov 2026).
   The booking the chat just made lands in the owner's diary, then the morning summary shows the one
   question that needs the owner, with Khidma's draft. It follows the film scene. Without the script,
   or with reduced motion, the finished card shows. */
.hero-phone .phone { flex: none; position: relative; z-index: 1; min-height: 0; }
.ow {
  position: relative; z-index: 2; flex: none; margin: 0;
  width: clamp(296px, 21vw, 320px);
  margin-inline-start: -16px;                       /* overlaps the phone's outer edge */
  margin-top: clamp(36px, calc(100svh - 680px), 112px);   /* lower on tall screens, higher on short ones so the open card ends with the phone */
  font-family: var(--font);
}
.ow-card {
  background: #fffdf9; color: #17143a;
  border-radius: 22px; padding: 16px;
  font-size: 14.5px; line-height: 1.55;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 46px 90px -34px rgba(2, 1, 16, 0.95), 0 18px 36px -20px rgba(2, 1, 16, 0.7);
}
html[lang="en"] .ow-card { line-height: 1.42; }
.ow-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ow-title { display: flex; align-items: center; gap: 8px; font-size: 15.5px; font-weight: 800; }
html[lang="en"] .ow-title { font-weight: 700; }
.ow-title .icon { width: 18px; height: 18px; color: var(--indigo); }
.ow-day { font-size: 13px; font-weight: 700; color: #5f5b78; }
.ow-body { transition: opacity 0.18s ease; }
.ow-body.is-clearing { opacity: 0; }
.ow-slots { margin-top: 10px; display: grid; gap: 5px; }
.ow-slot { display: grid; grid-template-columns: 40px minmax(0, 1fr); align-items: stretch; gap: 9px; }
.ow-time { font-size: 13px; font-weight: 700; color: #5f5b78; padding-top: 6px; font-variant-numeric: tabular-nums; }
.ow-blk { position: relative; display: flex; align-items: center; min-height: 34px; padding: 5px 11px; border-radius: 10px; font-size: 13px; }
.ow-blk.busy { background: #f0ebe2; color: #5f5b78; }
.ow-blk.free { border: 1.5px dashed #d3c9b6; color: #5f5b78; }
.ow-cell { position: relative; display: grid; }
.ow-cell > * { grid-area: 1 / 1; }
.ow-blk.new {
  flex-direction: column; align-items: flex-start; justify-content: center;
  padding: 6px 11px 7px; padding-inline-end: 46px; line-height: 1.35;
  background: #eeecff; border-inline-start: 3px solid var(--indigo);
}
.ow-blk.new b { font-size: 14px; font-weight: 800; color: #17143a; }
html[lang="en"] .ow-blk.new b { font-weight: 700; }
.ow-blk.new small { margin-top: 2px; font-size: 12px; font-weight: 600; color: #3730a3; }
.ow-new { position: absolute; top: 6px; inset-inline-end: 8px; padding: 1px 8px; border-radius: 99px; background: var(--indigo); color: #fff; font-size: 11.5px; font-weight: 800; line-height: 1.6; }
.ow-blk.under { opacity: 0; }                       /* finished state: the new booking sits on the free slot */
.ow-morning { display: grid; grid-template-rows: 1fr; }
.ow-morning-in { min-height: 0; overflow: hidden; }
.ow-when { display: flex; align-items: center; gap: 7px; margin-top: 12px; padding-top: 10px; border-top: 1px solid #ece5d8; font-size: 12.5px; font-weight: 700; color: #5f5b78; }
.ow-when .icon { width: 16px; height: 16px; color: var(--indigo); }
.ow-sum { margin-top: 4px; font-size: 15px; font-weight: 800; line-height: 1.5; color: #17143a; }
html[lang="en"] .ow-sum { font-weight: 700; line-height: 1.32; }
.ow-q, .ow-d { border-radius: 12px; padding: 7px 11px 8px; }
.ow-q { margin-top: 8px; background: #f3efe7; }
.ow-d { margin-top: 7px; background: #f6f5ff; border: 1.5px dashed #b9b3f0; }
.ow-label { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; line-height: 1.5; color: #5f5b78; }
.ow-d .ow-label { color: #3730a3; }
.ow-label .icon { width: 15px; height: 15px; }
.ow-q p, .ow-d p { font-size: 14px; font-weight: 600; line-height: 1.5; color: #17143a; }
html[lang="en"] .ow-q p, html[lang="en"] .ow-d p { line-height: 1.38; }
/* staged: the slot is free, the booking lands, then the morning summary opens */
.ow.is-staged [data-step="slot"] .ow-blk.under { opacity: 1; transition: opacity 0.3s ease; }
.ow.is-staged [data-step="slot"] .ow-blk.new { opacity: 0; transform: scale(0.96); }
.ow.is-staged [data-step="slot"].show .ow-blk.under { opacity: 0; }
.ow.is-staged [data-step="slot"].show .ow-blk.new { opacity: 1; transform: none; transition: opacity 0.45s var(--ease-out), transform 0.45s var(--ease-out); animation: ow-land 1.5s var(--ease-out) 1; }
@keyframes ow-land { 0% { box-shadow: 0 0 0 0 rgba(79, 70, 229, 0.45); } 100% { box-shadow: 0 0 0 14px rgba(79, 70, 229, 0); } }
.ow.is-staged [data-step="sum"] { transition: grid-template-rows 0.65s var(--ease-out), opacity 0.5s ease; }
.ow.is-staged [data-step="sum"]:not(.show) { grid-template-rows: 0fr; opacity: 0; }
.ow.no-anim [data-step], .ow.no-anim .ow-blk { transition: none !important; animation: none !important; }   /* a new scene resets at once */
/* the confirmed booking travels from the chat into the diary */
.ow-travel {
  position: absolute; z-index: 6; top: 0; left: 0; pointer-events: none;
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  padding: 6px 14px 6px 12px; border-radius: 999px;
  background: var(--indigo); color: #fff;
  font-family: var(--font); font-size: 14px; font-weight: 800; line-height: 1.4;
  box-shadow: 0 14px 30px -10px rgba(2, 1, 16, 0.7);
}
html[lang="en"] .ow-travel { font-weight: 700; }
.ow-travel .icon { width: 16px; height: 16px; }

/* Film bar: which trade is on screen, and the pause control */
.film-bar {
  position: absolute; bottom: 22px; inset-inline: 0; z-index: 3;
  max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut);
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px;
  pointer-events: none;
}
.film-bar > * { pointer-events: auto; }
.scenes { display: flex; flex-wrap: wrap; gap: 4px 6px; max-width: 37rem; }
.scene-btn {
  position: relative; border: 0; background: transparent; cursor: pointer;
  min-height: 36px; padding: 6px 10px 9px; border-radius: 8px;
  font-size: 13.5px; font-weight: 600; color: rgba(255, 255, 255, 0.86);
}
.scene-btn:hover { color: #fff; }
.scene-btn[aria-pressed="true"] { color: #fff; }
.scene-btn::after {
  content: ""; position: absolute; inset-inline: 10px; bottom: 3px; height: 2px; border-radius: 2px;
  background: rgba(255, 255, 255, 0.28);
}
.scene-btn .bar {
  position: absolute; inset-inline-start: 10px; bottom: 3px; height: 2px; width: 0; border-radius: 2px;
  background: var(--amber); z-index: 1;
}
.scene-btn[aria-pressed="true"] .bar { width: calc(100% - 20px); }
.hero.is-running .scene-btn[aria-pressed="true"] .bar { width: 0; animation: fill var(--scene-ms, 4000ms) linear forwards; }
.hero.is-held .scene-btn[aria-pressed="true"] .bar { animation-play-state: paused; }
@keyframes fill { from { width: 0; } to { width: calc(100% - 20px); } }
.film-toggle {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 42px; padding: 0 16px 0 14px; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.55); background: rgba(11, 13, 23, 0.62); color: #fff;
  font-size: 13px; font-weight: 600;
}
.film-toggle:hover { background: rgba(11, 13, 23, 0.82); border-color: #fff; }
.film-toggle .icon { width: 15px; height: 15px; fill: currentColor; stroke: none; }
.js-off .scenes, .js-off .film-toggle { display: none; }
/* Without the script there is no pause control, so the hero rests on its poster (the clip's first frame) */
.js-off .film video { display: none; }
.scene-now { display: none; }

/* ---------- Section 2: one tall photo panel per trade ---------- */
.trades { padding-block: clamp(64px, 8vw, 120px) clamp(56px, 7vw, 104px); background: var(--paper); }
.kicker { font-size: 14px; font-weight: 700; color: var(--text-2); letter-spacing: 0; }
html[lang="en"] .kicker { letter-spacing: 0.01em; }
.sec-head { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 16px 64px; align-items: end; margin-bottom: clamp(28px, 4vw, 48px); }
.sec-head h2, .pricing h2, .closing h2 {
  margin-top: 10px;
  font-size: clamp(1.75rem, 1.1rem + 2vw, 2.9rem); font-weight: 800; line-height: 1.45;
  text-wrap: balance;
}
html[lang="en"] .sec-head h2, html[lang="en"] .pricing h2, html[lang="en"] .closing h2 { font-weight: 700; line-height: 1.1; letter-spacing: -0.025em; }
.sec-head .sub { font-size: 17px; line-height: 1.85; color: var(--text-2); max-width: 36em; }
html[lang="en"] .sec-head .sub { line-height: 1.6; }

.rail {
  max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut);
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px;
}
.panel {
  position: relative; overflow: hidden; border-radius: 18px;
  min-height: 560px; background: var(--ink); color: #fff;
  display: flex; flex-direction: column; justify-content: flex-end;
  isolation: isolate;
}
.panel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.panel::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to bottom, rgba(11, 13, 23, 0) 0%, rgba(11, 13, 23, 0) 36%, rgba(11, 13, 23, 0.84) 54%, rgba(11, 13, 23, 0.96) 68%, rgba(11, 13, 23, 0.97) 100%);
}
.panel-top { position: absolute; top: 12px; inset-inline: 12px; display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.panel-trade {
  font-size: 14.5px; font-weight: 800; line-height: 1.35; color: #fff;
  padding: 6px 12px 7px; border-radius: 999px; background: rgba(11, 13, 23, 0.8);
}
html[lang="en"] .panel-trade { font-weight: 700; letter-spacing: -0.005em; }
.panel-body { padding: 0 16px 18px; display: flex; flex-direction: column; gap: 10px; }
.line { padding: 9px 12px 10px; border-radius: 14px; font-size: 14.5px; line-height: 1.6; color: #14151c; }
.line .by { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; margin-bottom: 1px; }
.line.q { background: #ffffff; border-start-start-radius: 4px; margin-inline-end: 10%; }
.line.q .by { color: #575a68; }
.line.a { background: #e6e4ff; border-start-end-radius: 4px; margin-inline-start: 10%; }
.line.a .by { color: var(--indigo-ink); }
.result { display: flex; align-items: flex-start; gap: 10px; padding-top: 4px; font-size: 14.5px; font-weight: 700; line-height: 1.5; color: #fff; }
.result .tick { width: 28px; height: 28px; border-radius: 9px; flex: none; display: grid; place-items: center; background: var(--amber); color: var(--ink); }
.result .tick .icon { width: 16px; height: 16px; }

/* ---------- Pricing ---------- */
.pricing { background: var(--white); padding-block: clamp(64px, 8vw, 120px); border-top: 1px solid var(--line); }
.pricing .sec-head { align-items: end; }
.pricing .trial { font-size: 17px; color: var(--text-2); }
.regions { display: inline-flex; flex-wrap: wrap; gap: 6px; padding: 6px; border-radius: 16px; background: var(--paper); border: 1px solid var(--line); }
.regions button {
  min-height: 44px; padding: 0 18px; border-radius: 11px; border: 0; cursor: pointer;
  background: transparent; color: var(--text); font-size: 15px; font-weight: 700;
  transition: background-color 0.18s ease, color 0.18s ease;
}
html[lang="en"] .regions button { font-weight: 600; }
.regions button:hover { background: rgba(11, 13, 23, 0.06); }
.regions button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.region-note { margin-top: 12px; font-size: 14px; color: var(--text-2); min-height: 1.6em; }
.plans { margin-top: 28px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.plan {
  display: flex; flex-direction: column;
  padding: 28px 26px 26px; border-radius: 20px; background: var(--white); border: 1px solid var(--line);
}
.plan h3 { font-size: 20px; font-weight: 800; }
html[lang="en"] .plan h3 { font-weight: 700; letter-spacing: -0.01em; }
.price { margin-top: 14px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price b { font-size: clamp(2.4rem, 1.9rem + 1.2vw, 3.1rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.01em; }
html[lang="en"] .price b { font-weight: 700; letter-spacing: -0.03em; }
.price .cur { font-size: 16px; font-weight: 700; color: var(--text-2); }
.per { font-size: 14px; color: var(--text-2); }
.quota { margin-top: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line); font-size: 15.5px; font-weight: 700; }
.plan ul { margin-top: 4px; margin-bottom: 26px; }
.plan li { padding-block: 10px; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 1.55; color: var(--text-2); }
.plan li:last-child { border-bottom: 0; }
.plan .btn { margin-top: auto; width: 100%; }
.plan.featured { background: var(--ink); border-color: var(--ink); color: #fff; }
.plan.featured .cur, .plan.featured .per, .plan.featured li { color: rgba(255, 255, 255, 0.84); }
.plan.featured .quota, .plan.featured li { border-color: rgba(255, 255, 255, 0.16); }
.pricing .note { margin-top: 22px; font-size: 14.5px; color: var(--text-2); max-width: 52em; }

/* ---------- Closing band (a still from the film under ink) and footer ---------- */
.closing {
  color: #fff; padding-block: clamp(72px, 9vw, 128px);
  background:
    linear-gradient(rgba(11, 13, 23, 0.8), rgba(11, 13, 23, 0.72)),
    var(--ink) url("film/restaurant-poster.jpg") center 42% / cover no-repeat;
}
.closing .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 56px; align-items: end; }
.closing h2 { margin-top: 0; }
.closing p { margin-top: 10px; font-size: 18px; color: #fff; }
.closing .actions { margin-top: 0; }
.foot { background: var(--ink-deep); color: rgba(255, 255, 255, 0.8); font-size: 14px; }
.foot .wrap { min-height: 76px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding-block: 14px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.foot a { display: inline-flex; align-items: center; min-height: 40px; text-decoration: none; color: rgba(255, 255, 255, 0.86); border-radius: 6px; }
.foot a:hover { color: #fff; text-decoration: underline; text-underline-offset: 5px; }

/* ---------- Laptops 1024 to 1360 ---------- */
@media (max-width: 1360px) {
  .hero-inner { grid-template-columns: minmax(0, 34rem) minmax(min-content, 1fr); }
  .phone { width: 284px; width: clamp(236px, calc((100svh - var(--head-h) - 118px) * 0.4808), 284px); }
  .panel { min-height: 540px; }
  .line, .result { font-size: 14px; }
}
/* Small laptops and tablets on their side: the copy column gives the phone and the card room */
@media (min-width: 901px) and (max-width: 1180px) {
  .hero-inner { grid-template-columns: minmax(0, 30rem) minmax(min-content, 1fr); }
  .phone { width: 256px; width: clamp(236px, calc((100svh - var(--head-h) - 118px) * 0.4808), 256px); }
  .ow { width: 262px; margin-top: 36px; }
  .ow-card { padding: 13px; }
  .ow-slot { grid-template-columns: 36px minmax(0, 1fr); gap: 7px; }
}
@media (max-width: 1180px) {
  .rail { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(250px, 30%); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gut); padding-bottom: 14px; }
  .panel { scroll-snap-align: start; }
}

/* ---------- Tablets and phones: film full screen, ink only behind the words ---------- */
@media (max-width: 900px) {
  :root { --head-h: 60px; }
  .nav { font-size: 14px; }
  .brand { font-size: 21px; gap: 9px; }
  .brand .glyph { width: 34px; height: 34px; font-size: 18px; }
  .hero { min-height: max(640px, 100svh); }
  .shade { background: linear-gradient(to top, rgba(11, 13, 23, 0.5) 0, rgba(11, 13, 23, 0) 22%); }
  /* phones: the copy shade runs from the top of the screen to 80 px below the actions, then fades */
  .hero-copy::before { inset-inline: -100vw; inset-block-start: -100vh; inset-block-end: -80px; }
  [dir="rtl"] .hero-copy::before, [dir="ltr"] .hero-copy::before {
    background: linear-gradient(to bottom, rgba(11, 13, 23, 0.8) 0, rgba(11, 13, 23, 0.74) calc(100% - 80px), rgba(11, 13, 23, 0.3) calc(100% - 36px), rgba(11, 13, 23, 0) 100%);
  }
  /* phones: the first screen is unchanged (copy, film, the phone rising from the bottom edge, scene label and pause);
     the phone continues below it and the owner card overlaps the phone's foot, over its message box */
  .hero-inner { display: block; min-height: 0; }
  .hero-copy { padding-block: calc(var(--head-h) + 26px) 0; }
  .hero .lead { margin-top: 12px; }
  .actions { margin-top: 20px; gap: 6px 14px; }
  .fine { display: none; }
  .hero-phone { position: relative; margin: 28px 0 0; padding-bottom: 30px; flex-direction: column; align-items: flex-end; }   /* JS sets margin-top so the phone starts at 64% of the first screen */
  .phone { width: 220px; padding: 7px; border-radius: 38px; }
  .ow { align-self: flex-start; width: min(320px, calc(100% - 28px)); margin: -52px 0 0; }
  .ow-card { padding: 15px; }
  .composer { visibility: hidden; }                                 /* under the card on phones */
  .screen { border-radius: 32px; }
  .island { top: 8px; width: 70px; height: 20px; margin-left: -35px; }
  .chat-head { padding: 36px 10px 9px; gap: 8px; }
  .avatar { width: 30px; height: 30px; font-size: 14px; }
  .who b { font-size: 13.5px; }
  .who span { font-size: 11px; }
  .chat { padding: 9px 9px 9px; gap: 7px; }
  .msg { font-size: 12.5px; padding: 6px 9px 5px; border-radius: 12px; }
  .msg .by { font-size: 10.5px; }
  .msg .meta { font-size: 10px; }
  .booked { font-size: 11.5px; padding: 7px 9px 7px 8px; gap: 7px; }
  .booked .tick { width: 24px; height: 24px; border-radius: 7px; }
  .booked .tick .icon { width: 14px; height: 14px; }
  .film-bar {
    top: calc(max(640px, 100svh) - 18px); bottom: auto; transform: translateY(-100%);   /* the foot of the first screen, beside the phone */
    inset-inline: 0; margin: 0; padding-inline: 16px calc(220px + 26px);
    flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 8px;
  }
  .scenes { display: none; }
  .scene-now { display: block; font-size: 13px; font-weight: 700; color: #fff; padding: 5px 10px; border-radius: 8px; background: rgba(11, 13, 23, 0.72); white-space: nowrap; }
  .film-toggle { white-space: nowrap; min-height: 40px; padding: 0 13px 0 11px; gap: 6px; font-size: 12.5px; background: rgba(11, 13, 23, 0.72); }
  .regions { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .regions button { padding: 0 10px; }
  .sec-head { grid-template-columns: 1fr; }
  .rail { grid-auto-columns: 78%; }
  .panel { min-height: 0; aspect-ratio: 3 / 5.1; max-height: 600px; }
  .plans { grid-template-columns: 1fr; }
  .closing .wrap { grid-template-columns: 1fr; align-items: start; }
}
@media (max-width: 420px) {
  .top .wrap { gap: 10px; }
  .nav { gap: 2px; }
  .nav a { padding-inline: 4px; }
  .nav .lang { padding-inline: 10px; }
  .btn { font-size: 15px; padding-inline: 20px; }
  .link-cta { font-size: 15px; padding-inline: 4px; }
}
@media (max-width: 355px) {
  .nav .hide-xs { display: none; }
}
/* Very narrow phones: the pause control becomes a round icon button (its label stays for screen readers) */
/* Narrow phones: the phone keeps its size so every chat fits (it now shows in full on scroll);
   the pause control becomes a round icon button (its label stays for screen readers) */
@media (max-width: 370px) {
  .scene-now { display: none; }
  .film-bar { padding-inline: 14px calc(220px + 22px); }
  .film-toggle { width: 44px; height: 44px; min-height: 44px; padding: 0; justify-content: center; }
  .film-toggle [data-label] { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (max-width: 340px) {
  .phone { width: 200px; aspect-ratio: 200 / 480; }
  .film-bar { padding-inline: 12px calc(200px + 20px); }
}

/* ---------- Reduced motion: the finished state, no fades ---------- */
@media (prefers-reduced-motion: reduce) {
  .film video, .chat, .chat.is-staged [data-step].show, .btn, .regions button, .top, .ow-body, .ow [data-step], .ow .ow-blk { transition: none !important; }
  .ow .ow-blk.new { animation: none !important; }
  .typing i { animation: none; opacity: 0.6; }
  .hero.is-running .scene-btn[aria-pressed="true"] .bar { width: calc(100% - 20px); animation: none; }
}
