/* The KMG Work site (work.kmg.zone): the landing page, and the app's privacy policy, terms and support.
   One 1200px column of bands; each band pairs a working screen (a browser frame or a phone) with what it does.
   Sections: tokens · base · header · hero · frames (browser, web app, phone, mobile app) · bands · trial · legal · motion. */

/* ── Tokens ─────────────────────────────────────────────────────────────────── */
:root {
  --bg: #f5f8fc;
  --surface: #ffffff;
  --surface-2: #eaf1fa;
  --ink: #0f1f36;
  --muted: #55657c;
  --line: #d6e0ec;
  --brand: #1a6be0;
  --brand-deep: #0d3672;
  --brand-soft: #e2edfc;
  --ok: #1d8a5a;
  --ok-soft: #e1f3ea;
  --warn: #b26b00;
  --warn-soft: #fbefd9;
  --bad: #c2352b;
  --bad-soft: #fbe5e2;
  --band: #0d2547;
  --band-ink: #e8f0fb;
  --band-muted: #9fb3cf;
  --wa: #25d366;
  --side: color-mix(in srgb, var(--brand) 82%, #000);
  --shadow-sm: 0 1px 2px rgba(13, 37, 71, .06), 0 4px 14px -6px rgba(13, 37, 71, .12);
  --shadow: 0 24px 60px -28px rgba(13, 37, 71, .35);
  --shadow-lg: 0 40px 90px -36px rgba(13, 37, 71, .45);
  --r-sm: 10px;
  --r: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --sec: clamp(64px, 9vw, 104px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --f-display: "Cairo", "Segoe UI", Tahoma, sans-serif;
  --f-body: "Cairo", "Segoe UI", Tahoma, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a1424; --surface: #111e33; --surface-2: #17283f; --ink: #e6eefa; --muted: #9aabc3; --line: #24385a;
    --brand: #4d93f5; --brand-deep: #9cc4ff; --brand-soft: #16305a;
    --ok: #4cc08b; --ok-soft: #123629; --warn: #e6a640; --warn-soft: #3a2b10; --bad: #f07a6f; --bad-soft: #3d1a18;
    --band: #060e1b; --band-ink: #e6eefa; --band-muted: #8ea2c0; --side: #163a73;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3), 0 4px 14px -6px rgba(0, 0, 0, .5);
    --shadow: 0 24px 60px -28px rgba(0, 0, 0, .7); --shadow-lg: 0 40px 90px -36px rgba(0, 0, 0, .8);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0a1424; --surface: #111e33; --surface-2: #17283f; --ink: #e6eefa; --muted: #9aabc3; --line: #24385a;
  --brand: #4d93f5; --brand-deep: #9cc4ff; --brand-soft: #16305a;
  --ok: #4cc08b; --ok-soft: #123629; --warn: #e6a640; --warn-soft: #3a2b10; --bad: #f07a6f; --bad-soft: #3d1a18;
  --band: #060e1b; --band-ink: #e6eefa; --band-muted: #8ea2c0; --side: #163a73;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3), 0 4px 14px -6px rgba(0, 0, 0, .5);
  --shadow: 0 24px 60px -28px rgba(0, 0, 0, .7); --shadow-lg: 0 40px 90px -36px rgba(0, 0, 0, .8);
  color-scheme: dark;
}

/* ── Base ───────────────────────────────────────────────────────────────────── */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--f-body); font-size: 16px; line-height: 1.75; -webkit-font-smoothing: antialiased; transition: background-color .3s, color .3s; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--surface); }
img { max-width: 100%; }
[hidden] { display: none !important; }
h1, h2, h3 { font-family: var(--f-display); text-wrap: balance; margin: 0; line-height: 1.3; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
/* The column grows with the screen up to a wide desktop's, its margins with it. */
.wrap { max-width: 1600px; margin: 0 auto; padding-left: max(clamp(16px, 4vw, 56px), env(safe-area-inset-left, 0px)); padding-right: max(clamp(16px, 4vw, 56px), env(safe-area-inset-right, 0px)); }
.num { font-variant-numeric: tabular-nums; }

/* A section's label: a small pill in the brand's pale step, a dot before it. */
.eyebrow { justify-self: start; display: inline-flex; align-items: center; gap: 8px; padding: 3px 12px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-deep); font-size: 13px; font-weight: 700; line-height: 1.7; }
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
.lead { color: var(--muted); font-size: 18px; max-width: 62ch; }

.sec { padding-block: var(--sec); }
/* A band that runs on from the one above it, and one that leads straight into the next. */
.sec.flush { padding-top: 0; }
.sec.tight { padding-bottom: clamp(40px, 5vw, 64px); }
.sec-head { display: grid; gap: 14px; margin-bottom: 40px; }
.sec-head h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 700; letter-spacing: -.01em; }
section { scroll-margin-top: 72px; }

/* Buttons */
.cta { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 24px; border-radius: 12px; background: var(--brand); color: #fff; font-weight: 700; text-decoration: none; justify-self: start;
  box-shadow: 0 12px 26px -14px var(--brand); transition: transform .25s var(--ease), box-shadow .25s var(--ease), filter .2s; }
.cta:hover { transform: translateY(-2px); filter: brightness(1.06); box-shadow: 0 18px 32px -14px var(--brand); }
.cta:active { transform: translateY(0); }
.cta-s { padding: 7px 16px; font-size: 14px; box-shadow: none; }
.cta-s:hover { box-shadow: 0 10px 20px -12px var(--brand); }

/* ── Header ─────────────────────────────────────────────────────────────────── */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 9; background: color-mix(in srgb, var(--surface) 82%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s, background-color .3s; }
.top.scrolled { border-bottom-color: var(--line); box-shadow: 0 10px 30px -24px rgba(13, 37, 71, .5); }
.top .wrap { display: flex; align-items: center; gap: 10px; padding-block: 12px; }
.mark { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); white-space: nowrap; font-family: var(--f-display); font-weight: 700; font-size: 19px; }
.mark img { width: 52px; height: 52px; }
.nav { display: flex; gap: 6px; margin-inline: auto 14px; font-size: 15px; }
.nav a { position: relative; padding: 6px 12px; border-radius: 10px; text-decoration: none; color: var(--muted); transition: color .2s, background-color .2s; }
.nav a:hover { color: var(--ink); background: var(--surface-2); }
.nav a.on { color: var(--brand); }
.nav a::after { content: ""; position: absolute; inset-inline: 12px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--brand); transform: scaleX(0); transition: transform .35s var(--ease); }
.nav a.on::after { transform: none; }
.theme-btn { all: unset; cursor: pointer; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; color: var(--ink); border: 1px solid var(--line); background: var(--surface); flex: none; transition: color .2s, border-color .2s, transform .3s var(--ease); }
.theme-btn:hover { color: var(--brand); border-color: var(--brand); }
.theme-btn:active { transform: rotate(-20deg) scale(.95); }
.theme-btn:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.theme-btn svg { width: 19px; height: 19px; }
/* The language button: the other language's name, short. */
.lang-btn { all: unset; box-sizing: border-box; cursor: pointer; min-width: 38px; height: 38px; padding: 0 10px; border-radius: 10px; display: grid; place-items: center; flex: none;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-weight: 700; font-size: 14px; transition: color .2s, border-color .2s; }
.lang-btn:hover { color: var(--brand); border-color: var(--brand); }
.lang-btn:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.theme-btn .sun { display: none; }
.is-dark .theme-btn .sun { display: block; }
.is-dark .theme-btn .moon { display: none; }
/* How far down the page: a hairline in the brand colour under the header. */
.scroll-bar { position: absolute; inset-inline: 0; bottom: -1px; height: 2px; background: linear-gradient(to left, var(--brand), color-mix(in srgb, var(--brand) 40%, var(--ok))); transform-origin: right; transform: scaleX(var(--p, 0)); }
[dir="ltr"] .scroll-bar { transform-origin: left; background: linear-gradient(to right, var(--brand), color-mix(in srgb, var(--brand) 40%, var(--ok))); }
/* The document pages (privacy, terms, refund, support) open from the mobile app: a header with no way to the plans or
   the subscription (App Store 3.1.1), only the language and theme buttons at its end. */
.top.doc .lang-btn { margin-inline-start: auto; }
@media (max-width: 720px) {
  .nav, .top .cta-s { display: none; }
  .top .wrap > .lang-btn { margin-inline-start: auto; }
}

/* ── Hero ───────────────────────────────────────────────────────────────────── */
.hero { position: relative; padding-block: clamp(48px, 7vw, 88px) clamp(48px, 6vw, 72px); overflow: hidden; isolation: isolate; }
/* A soft light behind the screens, and a faint grid fading out from it. */
.hero::before { content: ""; position: absolute; inset: -20% -10% auto auto; width: 70%; height: 120%; z-index: -1;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--brand) 18%, transparent), transparent); }
[dir="rtl"] .hero::before { inset: -20% auto auto -10%; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -2; opacity: .55;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 25% 40%, #000, transparent 75%); mask-image: radial-gradient(ellipse 60% 70% at 25% 40%, #000, transparent 75%); }
[dir="ltr"] .hero::after { -webkit-mask-image: radial-gradient(ellipse 60% 70% at 75% 40%, #000, transparent 75%); mask-image: radial-gradient(ellipse 60% 70% at 75% 40%, #000, transparent 75%); }
.hero .wrap { width: 100%; display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.6fr); gap: clamp(40px, 5vw, 80px); align-items: center; }
.hero h1 { font-size: clamp(34px, 3.5vw, 60px); font-weight: 800; letter-spacing: -.015em; line-height: 1.22; }
.hero h1 span { background: linear-gradient(to left, var(--brand), color-mix(in srgb, var(--brand) 55%, var(--ok))); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-copy { display: grid; gap: 22px; min-width: 0; }
/* On a desktop the hero fills the first screen, its content centred in it. */
@media (min-width: 1100px) { .hero { min-height: min(900px, calc(100svh - 64px)); display: flex; align-items: center; } }
.stage { position: relative; min-width: 0; padding-bottom: 34px; }
.stage .browser { margin-inline-end: clamp(60px, 8%, 120px); }
/* The hero's browser is a window, wider than tall, whatever the column's width. */
.stage .app { min-height: 0; aspect-ratio: 16 / 10; }
.stage .main { overflow: hidden; }
/* The section's phone at its own size, shrunk whole: the same layout, nothing squeezed. */
.stage .phone { position: absolute; inset-inline-end: 0; bottom: 0; width: 290px; zoom: .74; box-shadow: var(--shadow-lg); }
/* Between a tablet and a wide desktop the phone shrinks, so the window behind it stays in view. */
@media (min-width: 901px) and (max-width: 1240px) { .stage .phone { zoom: .6; } }
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .stage .browser { margin-inline-end: 0; }
  .stage .phone { position: relative; margin: -90px auto 0; inset: auto; }
  .stage .app { aspect-ratio: auto; min-height: 390px; }
}

/* ── Browser frame and the web app inside it ───────────────────────────────── */
.browser { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; min-width: 0; }
.browser .bar { display: flex; align-items: center; gap: 8px; padding: 9px 14px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.browser .dots { display: flex; gap: 6px; }
.browser .dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.browser .dots i:nth-child(1) { background: #f26b5b; } .browser .dots i:nth-child(2) { background: #f4bf4f; } .browser .dots i:nth-child(3) { background: #3dc764; }
.browser .url { flex: 1; text-align: center; font-size: 12px; color: var(--muted); background: var(--surface); border-radius: 6px; padding: 2px 10px; direction: ltr; transition: color .2s; }

/* The web app's frame as it draws it: the sidebar on the brand colour, the top bar, the page. */
.app { display: grid; grid-template-columns: 158px minmax(0, 1fr); min-height: 390px; font-size: 13px; background: var(--bg); }
.side { display: flex; flex-direction: column; min-width: 0; background: var(--side); color: #fff; }
.sb-id { display: flex; align-items: center; justify-content: center; gap: 8px; height: 52px; flex: none; border-bottom: 1px solid rgba(255, 255, 255, .12); font-family: var(--f-display); font-size: 13px; }
.sb-id img { width: 38px; height: 38px; }
.sb-nav { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; align-content: start; flex: 1; padding: 8px; }
.sb-foot { padding: 8px; border-top: 1px solid rgba(255, 255, 255, .12); }
.ni { position: relative; min-width: 0; display: flex; align-items: center; gap: 8px; padding: 6px 9px; border-radius: 7px; font-size: 12px; font-weight: 500; white-space: nowrap; transition: background-color .25s; }
.ni > span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.ni svg { width: 15px; height: 15px; flex: none; color: rgba(255, 255, 255, .75); }
.ni.on { background: rgba(255, 255, 255, .14); font-weight: 600; }
.ni.on svg { color: #dbe8ff; }
.ni.on::before { content: ""; position: absolute; inset-inline-start: 0; top: 6px; bottom: 6px; width: 3px; border-radius: 3px; background: #dbe8ff; }
.ni i { margin-inline-start: auto; min-width: 18px; padding: 0 5px; border-radius: 999px; background: #fff; color: var(--side); font-size: 10px; font-style: normal; font-weight: 700; line-height: 18px; text-align: center; }
.main { display: grid; align-content: start; min-width: 0; }
.tbar { display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 14px; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 70%, var(--surface)); }
.tbar > b { flex: 1; min-width: 0; font-family: var(--f-display); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jump { display: flex; align-items: center; gap: 5px; width: 160px; height: 26px; padding: 0 8px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); color: var(--muted); font-size: 11px; }
.jump > span { flex: 1; white-space: nowrap; overflow: hidden; }
.jump svg { width: 12px; height: 12px; flex: none; }
.jump kbd { padding: 0 4px; border: 1px solid var(--line); border-radius: 4px; font: inherit; font-size: 9px; direction: ltr; }
.tb-bell { width: 28px; height: 28px; display: grid; place-items: center; flex: none; border-radius: 7px; color: var(--muted); }
.tb-bell svg { width: 16px; height: 16px; }
.tb-user { display: flex; align-items: center; gap: 6px; flex: none; }
.tb-user b { display: block; font-size: 11px; line-height: 1.3; }
.tb-user small { display: block; color: var(--muted); font-size: 9.5px; line-height: 1.3; }
.stage .jump { width: 120px; }
.stage .jump kbd, .stage .tb-user > span:last-child { display: none; }
.pg { padding: 14px 16px; display: grid; gap: 12px; align-content: start; min-width: 0; }
.pg h4, .main h4 { margin: 0; font-family: var(--f-display); font-size: 15px; }
.chip { padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: 11.5px; white-space: nowrap; }
.chip.on { border-color: transparent; background: var(--brand-soft); color: var(--brand-deep); font-weight: 600; }
/* The page in numbers: a card per number washed in its tone, its icon a solid badge of it. */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 10px; }
.stat { --tone: var(--brand); display: flex; align-items: center; gap: 10px; min-width: 0; padding: 10px 12px; border-radius: 12px;
  background: color-mix(in srgb, var(--tone) 7%, var(--surface)); border: 1px solid color-mix(in srgb, var(--tone) 18%, var(--surface)); }
.stat.ok { --tone: var(--ok); } .stat.warn { --tone: var(--warn); } .stat.bad { --tone: var(--bad); }
.stat small { display: block; color: var(--muted); font-size: 11.5px; white-space: nowrap; }
.stat strong { font-family: var(--f-display); font-size: 20px; line-height: 1.25; }
.ti { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; background: var(--brand-soft); color: var(--brand); }
.ti svg { width: 18px; height: 18px; }
.stat .ti { border-radius: 8px; background: var(--tone); color: #fff; box-shadow: 0 4px 10px -4px color-mix(in srgb, var(--tone) 60%, transparent); }
[dir="ltr"] .tbl { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.tbl table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.tbl th, .tbl td { text-align: start; padding: 7px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; vertical-align: middle; }
.tbl th { background: var(--brand-soft); color: var(--brand-deep); font-weight: 600; font-size: 11.5px; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr { transition: background-color .2s; }
.tbl tbody tr:hover { background: color-mix(in srgb, var(--surface-2) 55%, transparent); }
.pill { display: inline-block; padding: 1px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600; }
.p-ok { background: var(--ok-soft); color: var(--ok); }
.p-warn { background: var(--warn-soft); color: var(--warn); }
.p-bad { background: var(--bad-soft); color: var(--bad); }
.p-info { background: var(--brand-soft); color: var(--brand-deep); }
/* The web app's own parts (features/employees, dashboard): its typeface, the page tabs, the segmented switches, the
   breakdowns, the tables in their cards, and the homepage's panels. */
.app { font-family: "IBM Plex Sans Arabic", var(--f-body); }
.sb-id { justify-content: center; gap: 10px; }
.sb-prod { display: flex; align-items: center; gap: 6px; white-space: nowrap; font-size: 12px; }
.sb-div { width: 1px; align-self: stretch; margin-block: 12px; background: rgba(255, 255, 255, .22); }
.sb-org { display: grid; place-items: center; }
.sb-org svg { width: 24px; height: 24px; }
.sb-ver { display: grid; padding: 8px 9px 0; color: rgba(255, 255, 255, .7); font-size: 9.5px; line-height: 1.5; }
.ni i.late { background: var(--bad); color: #fff; }
.tb-user > svg { width: 12px; height: 12px; color: var(--muted); }
.pg > h4 { font-size: 14px; }
.ptabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); font-size: 12px; white-space: nowrap; overflow: hidden; }
.ptabs span { padding: 6px 10px; color: var(--muted); font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.ptabs span.on { color: var(--ink); font-weight: 600; border-bottom-color: var(--brand); }
.bar2 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sgm { display: inline-flex; gap: 2px; padding: 3px; border-radius: 8px; background: var(--surface-2); font-size: 11px; white-space: nowrap; }
.sgm span { padding: 2px 9px; border-radius: 6px; color: var(--muted); }
.sgm span.on { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgba(13, 37, 71, .12); }
.abtn { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border-radius: 7px; border: 1px solid var(--line); background: var(--surface); font-size: 11px; font-weight: 600; white-space: nowrap; }
.abtn svg { width: 13px; height: 13px; }
.abtn.pri { border-color: transparent; background: color-mix(in srgb, var(--brand) 82%, #000); color: #fff; }
.stat.info { --tone: #175cd3; }
.stat.sel { border-color: var(--tone); box-shadow: inset 0 0 0 1px var(--tone); background: color-mix(in srgb, var(--tone) 12%, var(--surface)); }
.grp { display: grid; grid-template-columns: 120px minmax(0, 1fr); align-items: center; gap: 6px 10px; padding: 6px 10px; border-radius: 10px; border: 1px solid var(--line); border-inline-start: 3px solid var(--brand); background: var(--surface); }
.grp > b { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--brand-deep); }
.grp > b svg { width: 14px; height: 14px; color: var(--brand); }
.grp > div { display: flex; flex-wrap: wrap; gap: 6px; }
.ct { display: inline-flex; align-items: center; gap: 6px; padding: 2px 4px 2px 10px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--brand) 28%, var(--surface)); background: color-mix(in srgb, var(--brand) 8%, var(--surface)); font-size: 11px; white-space: nowrap; }
[dir="rtl"] .ct { padding: 2px 10px 2px 4px; }
.ct i { min-width: 18px; padding: 0 5px; border-radius: 999px; background: var(--surface); font-style: normal; font-weight: 700; text-align: center; line-height: 16px; }
.tcard { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); overflow: hidden; }
.tool { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 10px; }
.tool:empty { display: none; }
.tool .search { flex: 0 1 220px; }
.tool .cnt { color: var(--muted); font-size: 11px; white-space: nowrap; }
.tool .sp { flex: 1; }
.tool .ttl { display: flex; align-items: center; gap: 6px; font-size: 12.5px; }
.tool .ttl svg { width: 14px; height: 14px; color: var(--muted); }
.tcard .tbl { border: 0; border-radius: 0; }
.tcard .tool + .tbl { border-top: 1px solid var(--line); }
.tbl th { background: var(--brand-soft); color: var(--muted); font-weight: 600; font-size: 11px; }
.rn { color: var(--muted); }
.shd { display: inline-flex; align-items: center; gap: 6px; }
.shd i { width: 8px; height: 8px; border-radius: 50%; }
.app .pill::before { content: ""; display: inline-block; width: 5px; height: 5px; margin-inline-end: 5px; border-radius: 50%; background: currentColor; vertical-align: middle; }
.phead { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.phead h4 { font-family: var(--f-display); font-size: 16px; margin: 0; }
/* The homepage. */
.main { container-type: inline-size; }
.hhead { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--brand) 14%, var(--line));
  background: linear-gradient(to left, color-mix(in srgb, var(--brand) 12%, var(--surface)), color-mix(in srgb, var(--brand) 3%, var(--surface))); }
[dir="ltr"] .hhead { background: linear-gradient(to right, color-mix(in srgb, var(--brand) 12%, var(--surface)), color-mix(in srgb, var(--brand) 3%, var(--surface))); }
.hhead h3 { font-size: 17px; color: var(--brand-deep); margin: 2px 0; }
.hdate { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 10.5px; }
.hdate svg { width: 12px; height: 12px; }
.hmeta { display: flex; gap: 6px; color: var(--muted); font-size: 10.5px; }
.hmeta span + span::before { content: "·"; margin-inline-end: 6px; }
.hbtns { display: flex; gap: 6px; }
.hgrid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 12px; align-items: start; }
.hmain, .hside { display: grid; gap: 8px; align-content: start; min-width: 0; }
.hgrid h5 { display: flex; justify-content: space-between; align-items: center; margin: 2px 0 0; font-size: 12px; font-weight: 600; }
.hgrid h5 a { color: var(--brand); font-weight: 500; font-size: 11px; text-decoration: underline; }
.tasks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.task { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 12px; border-inline-start: 4px solid var(--ok); background: color-mix(in srgb, var(--ok) 8%, var(--surface)); }
.task .ti { width: 30px; height: 30px; border-radius: 8px; background: var(--ok); color: #fff; }
.task .ti svg { width: 15px; height: 15px; }
.task b { flex: 1; font-size: 11.5px; font-weight: 600; }
.task strong { font-size: 18px; color: var(--ok); }
.task > svg { width: 13px; height: 13px; color: var(--muted); }
[dir="ltr"] .task > svg { transform: scaleX(-1); }
.panel { padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); display: grid; gap: 6px; }
.panel h5 { margin: 0 0 2px; }
.ent { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-top: 1px solid var(--line); }
.ent > div { flex: 1; min-width: 0; }
.ent b { display: block; font-size: 11.5px; }
.ent small, .act small { display: flex; gap: 8px; color: var(--muted); font-size: 10px; }
.ent .at { color: var(--muted); font-size: 10px; white-space: nowrap; }
.shorts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 8px; }
.shorts > span { display: flex; align-items: center; gap: 6px; padding: 5px 2px; font-size: 11px; font-weight: 600; white-space: nowrap; overflow: hidden; }
.shorts .ti { width: 24px; height: 24px; border-radius: 7px; background: color-mix(in srgb, var(--brand) 82%, #000); color: #fff; }
.shorts .ti svg { width: 13px; height: 13px; }
.act { display: flex; gap: 8px; padding: 4px 0; }
.act > i { width: 8px; height: 8px; margin-top: 5px; border-radius: 50%; border: 2px solid var(--muted); flex: none; }
.act.high > i { border-color: var(--bad); }
.act b { font-size: 11.5px; }
.act .lvl { margin-inline-start: 6px; padding: 0 6px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: 9.5px; }
.act.high .lvl { background: var(--bad-soft); color: var(--bad); }
@container (max-width: 640px) {
  .hgrid { grid-template-columns: minmax(0, 1fr); }
  .hside, .hbtns, .ent .at { display: none; }
}
.btn-s { display: inline-block; padding: 4px 12px; border-radius: 8px; background: var(--brand); color: #fff; font-size: 12px; font-weight: 600; }
.who { display: flex; align-items: center; gap: 8px; }
.who small { display: block; color: var(--muted); font-size: 11px; }
.av { width: 28px; height: 28px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-deep); display: grid; place-items: center; font-size: 12px; font-weight: 700; flex: none; }
.search { flex: 1 1 180px; display: flex; align-items: center; gap: 6px; padding: 5px 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--muted); font-size: 12px; }
.search svg { width: 14px; height: 14px; }
@media (max-width: 760px) { .jump > span, .jump kbd, .tb-user > span:last-child { display: none; } .jump { width: auto; } }
@media (max-width: 560px) { .app { grid-template-columns: minmax(0, 1fr); } .side { display: none; } }

/* ── Phone frame and the mobile app inside it ──────────────────────────────── */
.phone { position: relative; width: 260px; max-width: 100%; aspect-ratio: 9 / 19; background: linear-gradient(160deg, #1c2638, #070b14); border-radius: 40px; padding: 9px; box-shadow: var(--shadow), inset 0 0 0 1.5px rgba(255, 255, 255, .08); }
/* The camera island over the status bar. */
.phone::before { content: ""; position: absolute; top: 17px; left: 50%; width: 30%; height: 18px; border-radius: 999px; background: #05070c; transform: translateX(-50%); z-index: 2; }
.screen { height: 100%; border-radius: 31px; background: var(--bg); overflow: hidden; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; font-size: 12px; position: relative; container-type: inline-size; }
.sbar { display: flex; justify-content: space-between; padding: 10px 22px 4px; font-size: 11px; font-weight: 600; direction: ltr; }
.pbody { padding: 6px 14px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; align-content: start; overflow: hidden; }
.tabs-b { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line); background: var(--surface); padding: 6px 2px 14px; }
.tabs-b button { all: unset; cursor: pointer; display: grid; justify-items: center; gap: 2px; color: var(--muted); position: relative; transition: color .2s; }
.tabs-b button svg { width: 18px; height: 18px; }
.tabs-b button.on { color: var(--ink); font-weight: 700; }
.tabs-b button > span:last-child { white-space: nowrap; font-size: 8.5px; }
.tabs-b .ind { position: relative; width: 40px; height: 22px; border-radius: 999px; display: grid; place-items: center; transition: background-color .3s var(--ease), transform .3s var(--ease); }
.tabs-b button.on .ind { background: var(--brand-soft); color: var(--brand-deep); }
.tabs-b button:active .ind { transform: scale(.92); }
.tabs-b .badge { position: absolute; top: -5px; inset-inline-end: 2px; background: var(--bad); color: #fff; font-size: 9px; border-radius: 999px; padding: 0 5px; line-height: 15px; }
.ava { width: 32px; height: 32px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-deep); display: grid; place-items: center; font-weight: 700; flex: none; }
.ptitle { font-family: var(--f-display); font-size: 15px; font-weight: 600; }
.seg { display: flex; gap: 6px; flex-wrap: wrap; }
.seg span { padding: 2px 10px; border-radius: 999px; border: 1px solid var(--line); font-size: 10.5px; }
.seg span.on { background: var(--brand); color: #fff; border-color: var(--brand); }
.li { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.li > div { line-height: 1.45; min-width: 0; }
.pcard { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; display: grid; gap: 6px; }
.pcard small { color: var(--muted); }
.pcard .kv { display: flex; justify-content: space-between; }
.svc { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.svc div { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px; display: grid; gap: 4px; line-height: 1.4; }
.svc i { width: 26px; height: 26px; border-radius: 8px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; }
.svc i svg { width: 15px; height: 15px; }
.acts { display: flex; gap: 6px; }
.acts span { flex: 1; text-align: center; padding: 4px 0; border-radius: 8px; font-weight: 600; font-size: 11px; }
/* The app's home: the greeting, the day card, the watch-face punch button. */
.greet { display: flex; align-items: center; gap: 8px; }
.greet > div { flex: 1; line-height: 1.4; min-width: 0; }
.greet .ava { width: 38px; height: 38px; font-size: 15px; }
.greet b { font-family: var(--f-display); font-size: 14.5px; }
.greet small { color: var(--muted); }
.gl { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 1px; }
.gl small { font-size: 10.5px; }
.clk { display: inline-flex; align-items: center; gap: 3px; padding: 1px 7px; border-radius: 999px; background: var(--surface-2); font-size: 10.5px; }
.clk svg { width: 11px; height: 11px; color: var(--muted); }
.greet .clk b { font-family: inherit; font-size: 10.5px; font-weight: 600; }
.bell { position: relative; width: 32px; height: 32px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-deep); display: grid; place-items: center; flex: none; }
.bell svg { width: 17px; height: 17px; }
.bell i { position: absolute; top: -2px; inset-inline-end: -2px; min-width: 15px; height: 15px; border-radius: 999px; background: var(--bad); color: #fff; font-size: 9px; font-style: normal; font-weight: 700; display: grid; place-items: center; }
.day { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 11px; display: grid; gap: 10px; }
.dh { display: flex; align-items: center; gap: 5px; }
.dh svg { width: 14px; height: 14px; color: var(--muted); flex: none; }
.dh small { flex: 1; color: var(--muted); font-size: 10.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dh .num { direction: ltr; unicode-bidi: isolate; }
.dh .pill { font-size: 10px; }
.tt { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.t { min-width: 0; display: flex; align-items: center; gap: 7px; padding: 7px; border-radius: 10px; background: color-mix(in srgb, var(--surface-2) 70%, transparent); }
.t > span { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; flex: none; background: var(--surface-2); color: var(--muted); }
.t > span svg { width: 15px; height: 15px; }
.t small { display: block; color: var(--muted); font-size: 9.5px; line-height: 1.3; }
.t b { font-size: 12.5px; line-height: 1.3; }
.t.good { background: color-mix(in srgb, var(--ok-soft) 60%, transparent); }
.t.good > span { background: var(--ok-soft); color: var(--ok); }
.punch { display: grid; justify-items: center; gap: 7px; padding-top: 4px; }
.watch { position: relative; width: 74cqw; aspect-ratio: 1; display: grid; place-items: center; }
.watch > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.watch .glow { opacity: .2; animation: glow 2.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes glow { 50% { opacity: .32; transform: scale(1.25); } }
.pbtn { position: relative; width: 73.5%; aspect-ratio: 1; border-radius: 50%; display: grid; place-content: center; justify-items: center; gap: .5cqw; color: #fff; text-align: center;
  background: linear-gradient(to bottom left, #ca564e, #962a22); border: 3px solid rgba(255, 255, 255, .18); animation: breathe 2.4s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { box-shadow: 0 8px 20px rgba(192, 54, 44, .28); } 50% { box-shadow: 0 8px 32px rgba(192, 54, 44, .42); } }
.pbtn svg { width: 9cqw; height: 9cqw; opacity: .9; }
.pbtn b { font-family: var(--f-display); font-size: 8cqw; font-weight: 800; line-height: 1.1; direction: ltr; }
.pbtn small { font-size: 3.5cqw; opacity: .85; line-height: 1.25; max-width: 30cqw; }
.plabel { font-family: var(--f-display); font-size: 13.5px; }
.zone { display: inline-flex; align-items: center; gap: 4px; padding: 3px 11px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 10.5px; font-weight: 600; }
.zone svg { width: 12px; height: 12px; color: var(--brand); }

/* ── Bands ──────────────────────────────────────────────────────────────────── */
/* The features strip: four facts, each under its icon, rules between them. */
.facts { background: var(--band); color: var(--band-ink); }
.facts .wrap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding-block: 44px; }
.facts .wrap > div { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 14px; align-content: start; padding-inline: 24px; border-inline-start: 1px solid color-mix(in srgb, var(--band-ink) 12%, transparent); }
.facts .wrap > div:first-child { padding-inline-start: 0; border: 0; }
.facts .fi { grid-row: span 2; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--brand) 22%, transparent); color: #9cc4ff; }
.facts .fi svg { width: 22px; height: 22px; }
.facts h3 { font-size: 17px; margin-bottom: 4px; }
.facts p { color: var(--band-muted); font-size: 14.5px; }
@media (max-width: 960px) {
  .facts .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 0; }
  .facts .wrap > div:nth-child(odd) { padding-inline-start: 0; border: 0; }
}
@media (max-width: 520px) {
  .facts .wrap { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .facts .wrap > div { padding-inline: 0; border: 0; }
}

/* BioTime: what it does, and the path a punch takes from the device to the app. */
.bio { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 48px; align-items: center; padding: clamp(24px, 4vw, 48px); border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--surface); box-shadow: var(--shadow-sm); }
.bio-text { display: grid; gap: 14px; }
.bio-text h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 700; }
.bio-list { display: grid; gap: 10px; margin: 6px 0 0; padding: 0; list-style: none; }
.bio-list li { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.bio-list li::before { content: "✓"; width: 22px; height: 22px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); display: grid; place-items: center; font-size: 12px; font-weight: 700; flex: none; }
.bio-flow { display: flex; align-items: center; padding: 34px 18px; border-radius: var(--r-lg); background: var(--surface-2);
  background-image: radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--brand) 18%, transparent) 1px, transparent 0); background-size: 18px 18px; }
.node { display: grid; justify-items: center; gap: 4px; width: 104px; flex: none; text-align: center; }
.node .ti { width: 60px; height: 60px; border-radius: 18px; background: var(--surface); box-shadow: 0 14px 28px -16px var(--brand), 0 0 0 1px var(--line); margin-bottom: 6px; transition: transform .4s var(--ease); }
.node:hover .ti { transform: translateY(-3px); }
.node .ti svg { width: 28px; height: 28px; }
.node .ti img { width: 36px; height: 36px; }
.node .ti--logo { overflow: hidden; }
.node .ti--logo img { width: 100%; height: 100%; }
.node b { font-family: var(--f-display); font-size: 14px; }
.node small { color: var(--muted); font-size: 12px; }
/* The link: a dashed track, and a pulse travelling along it from the device towards the app. */
.bio-flow .link { position: relative; flex: 1; min-width: 20px; height: 2px; margin-bottom: 44px; background: repeating-linear-gradient(to left, color-mix(in srgb, var(--brand) 55%, transparent) 0 6px, transparent 6px 12px); }
.bio-flow .link::after { content: ""; position: absolute; top: 50%; right: 0; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 22%, transparent); animation: travel 2.4s var(--ease) infinite; }
.bio-flow .link + .node + .link::after { animation-delay: 1.2s; }
[dir="ltr"] .bio-flow .link::after { right: auto; left: 0; animation-name: travel-ltr; }
@keyframes travel-ltr { 0% { left: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { left: calc(100% - 8px); opacity: 0; } }
@keyframes travel { 0% { right: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { right: calc(100% - 8px); opacity: 0; } }
@media (max-width: 900px) { .bio { grid-template-columns: minmax(0, 1fr); gap: 32px; } }
@media (max-width: 480px) { .bio-flow { padding: 26px 10px; } .node { width: 84px; } }

/* The mobile app: what it does beside the phone. */
.mob { background: linear-gradient(to bottom, var(--bg), var(--surface-2) 18%, var(--surface-2) 82%, var(--bg)); }
.mob-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(40px, 6vw, 80px); align-items: center; }
.mob-feats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.mob-feats > div { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 14px; align-content: start; padding: 16px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; }
.mob-feats > div:last-child:nth-child(odd) { grid-column: 1 / -1; }
.mob-feats > div:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); border-color: color-mix(in srgb, var(--brand) 30%, var(--line)); }
.mob-feats .ti { grid-row: span 2; width: 40px; height: 40px; border-radius: 12px; }
.mob-feats .ti svg { width: 20px; height: 20px; }
.mob-feats h3 { font-size: 16px; }
.mob-feats p { color: var(--muted); font-size: 14.5px; line-height: 1.6; }
.mob .phone { width: 290px; }
.stores { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 28px; }
.stores span { display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border-radius: 12px; background: var(--ink); color: var(--bg); font-weight: 700; font-size: 14px; }
.stores svg { width: 18px; height: 18px; }
@media (max-width: 900px) { .mob-grid { grid-template-columns: minmax(0, 1fr); } .mob .phone { margin: 0 auto; order: -1; } }
@media (max-width: 560px) { .mob-feats { grid-template-columns: minmax(0, 1fr); } }

/* The web app tour: the screens to pick from, and the frame showing the picked one at a steady height. */
.tour { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 32px; align-items: start; }
.tour-list { position: relative; display: grid; gap: 6px; }
.tour-list button { all: unset; cursor: pointer; padding: 12px 14px; border-radius: var(--r); display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 12px; row-gap: 2px; align-items: center; border: 1px solid transparent;
  transition: background-color .25s, border-color .25s, box-shadow .3s var(--ease), transform .3s var(--ease); }
.tour-list button:hover { background: var(--surface-2); }
.tour-list button:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.tour-list button[aria-selected="true"] { background: var(--surface); border-color: var(--line); box-shadow: var(--shadow-sm); }
.tour-list .ti { grid-row: span 2; width: 40px; height: 40px; border-radius: 12px; background: var(--surface-2); color: var(--muted); transition: background-color .3s, color .3s, transform .3s var(--ease); }
.tour-list .ti svg { width: 20px; height: 20px; }
.tour-list button[aria-selected="true"] .ti { background: var(--brand); color: #fff; transform: scale(1.04); }
.tour-list button b { font-family: var(--f-display); font-size: 16px; font-weight: 600; transition: color .25s; }
.tour-list button[aria-selected="true"] b { color: var(--brand); }
.tour-list button span { font-size: 14px; color: var(--muted); line-height: 1.55; }
.tour-view { display: grid; gap: 16px; min-width: 0; }
.tour .app { height: clamp(470px, 38vw, 560px); }
.tour .main { overflow: hidden; }
@media (max-width: 900px) {
  .tour { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .tour-list { grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
  .tour-list::-webkit-scrollbar { display: none; }
  .tour-list button { padding: 8px 12px; }
  .tour-list button > span:last-child { display: none; }
  .tour-list .ti { grid-row: auto; width: 32px; height: 32px; }
}
@media (max-width: 560px) { .tour .app { height: auto; min-height: 420px; } }

/* The prices: a card per plan with its monthly and yearly price, and the quote card beside them. */
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.plan { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 24px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; }
.plan:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); border-color: color-mix(in srgb, var(--brand) 30%, var(--line)); }
.plan h3 { font-family: var(--f-display); font-size: 18px; font-weight: 700; }
.plan-for { color: var(--muted); font-size: 14.5px; }
.plan-price { display: flex; align-items: baseline; gap: 8px; margin-top: 4px; }
.plan-price s { color: var(--muted); font-size: 18px; font-weight: 600; text-decoration-thickness: 2px; }
.plan-off { margin-top: 10px; padding: 1px 10px; border-radius: 999px; background: var(--ok-soft); color: var(--ok); font-size: 12.5px; font-weight: 700; }
.plan-sar { color: var(--ink); font-size: 14px; font-weight: 600; }
main[lang="en"] .plan-sar { display: none; }
.plan-price b { font-family: var(--f-display); font-size: 36px; font-weight: 800; line-height: 1.25; }
.plan-price span { color: var(--muted); font-size: 14px; }
.plan-year { color: var(--muted); font-size: 14px; }
.plan .cta { align-self: stretch; margin-top: auto; }
.plan-year { margin-bottom: 4px; }
.plan-feats { display: grid; gap: 6px; margin: 10px 0 18px; padding: 12px 0 0; list-style: none; border-top: 1px solid var(--line); align-self: stretch; }
.plan-feats li { position: relative; padding-inline-start: 26px; font-size: 13.5px; line-height: 1.55; }
.plan-feats li::before { content: "✓"; position: absolute; inset-inline-start: 0; top: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-size: 10px; font-weight: 700; flex: none; }
.plan-free { border-color: color-mix(in srgb, var(--ok) 35%, var(--line)); }
/* The quote, for more employees or an installation on the organization's own server: one bar under the plans. */
.plan-wide { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 16px; padding: 18px 24px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface-2); }
.plan-wide h3 { font-family: var(--f-display); font-size: 18px; font-weight: 700; }
.plan-wide p { color: var(--muted); font-size: 14.5px; }
.plan-wide .cta { flex: none; }
@media (max-width: 560px) { .plan-wide { flex-direction: column; align-items: stretch; } }
.plans-note { margin-top: 16px; color: var(--muted); font-size: 14px; }
@media (max-width: 1000px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .plans { grid-template-columns: minmax(0, 1fr); } }

/* The questions: their heading kept in view beside them, each answer opening under its question. */
.faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.faq .sec-head { position: sticky; top: 96px; margin: 0; }
.cta-ghost { background: var(--surface); color: var(--brand); border: 1px solid color-mix(in srgb, var(--brand) 35%, var(--line)); box-shadow: none; }
.cta-ghost:hover { box-shadow: var(--shadow-sm); }
.faq-list { display: grid; gap: 10px; }
.faq-list details { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); transition: border-color .3s, box-shadow .3s; }
.faq-list details[open] { border-color: color-mix(in srgb, var(--brand) 35%, var(--line)); box-shadow: var(--shadow-sm); }
.faq-list summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; border-radius: var(--r);
  font-family: var(--f-display); font-size: 16.5px; font-weight: 700; line-height: 1.5; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:hover { color: var(--brand); }
.faq-list summary i { position: relative; width: 28px; height: 28px; flex: none; border-radius: 50%; background: var(--surface-2); transition: background-color .3s; }
.faq-list summary i::before, .faq-list summary i::after { content: ""; position: absolute; top: 50%; left: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; border-radius: 2px; background: var(--brand); transition: transform .4s var(--ease), background-color .3s; }
.faq-list summary i::after { transform: rotate(90deg); }
.faq-list details[open] summary i { background: var(--brand); }
.faq-list details[open] summary i::before, .faq-list details[open] summary i::after { background: #fff; }
.faq-list details[open] summary i::after { transform: rotate(0deg); }
.faq-list details > p, .faq-list .ans { padding: 0 20px 18px; color: var(--muted); }
.faq-list .ans { display: grid; gap: 10px; }
.faq-list .ans ul { display: grid; gap: 6px; margin: 0; padding-inline-start: 20px; }
.faq-list .ans b { color: var(--ink); }
.faq-list .ans .note { padding: 10px 14px; border-radius: 10px; background: var(--surface-2); font-size: 14px; line-height: 1.7; }
/* The answer slides open where the browser can size it (and simply shows where it cannot). */
:root { interpolate-size: allow-keywords; }
.faq-list details::details-content { block-size: 0; overflow: hidden; transition: block-size .4s var(--ease), content-visibility .4s allow-discrete; }
.faq-list details[open]::details-content { block-size: auto; }
@media (max-width: 900px) { .faq { grid-template-columns: minmax(0, 1fr); gap: 24px; } .faq .sec-head { position: static; } }

/* ── Trial ──────────────────────────────────────────────────────────────────── */
.trial { position: relative; overflow: hidden; isolation: isolate; display: grid; gap: 32px; padding: clamp(28px, 5vw, 56px); border-radius: var(--r-xl); border: 1px solid color-mix(in srgb, var(--brand) 16%, var(--line));
  background: linear-gradient(135deg, var(--brand-soft), var(--surface-2)); }
.trial::before { content: ""; position: absolute; z-index: -1; width: 420px; height: 420px; inset-block-start: -180px; inset-inline-end: -120px; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--brand) 22%, transparent), transparent); }
.trial .sec-head { margin: 0; }
/* The start card: what the trial gives and its three steps beside the form; one column on narrow screens. */
.trial-start { grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: clamp(32px, 5vw, 64px); align-items: center; }
@media (max-width: 900px) { .trial-start { grid-template-columns: minmax(0, 1fr); } }
.trial-intro { display: grid; gap: 20px; align-content: start; }
.trial-intro h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 700; letter-spacing: -.01em; }
.trial-intro .lead { margin: 0; }
.perks { display: flex; flex-wrap: wrap; gap: 10px 22px; padding: 0; margin: 0; list-style: none; }
.perks li { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; }
.perks svg { width: 22px; height: 22px; padding: 4px; flex: none; border-radius: 50%; background: var(--brand); color: #fff; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.steps { display: grid; padding: 0; margin: 4px 0 0; list-style: none; counter-reset: s; }
.steps li { counter-increment: s; position: relative; display: grid; grid-template-columns: 36px minmax(0, 1fr); column-gap: 14px; align-items: center; padding-block: 8px; }
.steps li::before { content: counter(s, arabic-indic); grid-row: span 2; width: 36px; height: 36px; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--brand) 40%, var(--line)); background: var(--surface); color: var(--brand); font-weight: 700; display: grid; place-items: center; }
[dir="ltr"] .steps li::before { content: counter(s); }
.steps li:last-child::before { background: var(--brand); border-color: var(--brand); color: #fff; }
.steps li:not(:last-child)::after { content: ""; position: absolute; inset-inline-start: 17px; top: 46px; bottom: -6px; border-inline-start: 2px dashed color-mix(in srgb, var(--brand) 35%, transparent); }
.steps b { font-size: 16px; font-weight: 700; line-height: 1.5; }
.steps small { color: var(--muted); font-size: 14px; line-height: 1.5; }

/* The WhatsApp button floating at the page's corner. */
.wa { position: fixed; bottom: 22px; inset-inline-end: 22px; z-index: 50; width: 56px; height: 56px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center;
  box-shadow: 0 12px 28px -10px rgba(18, 140, 70, .7); transition: transform .3s var(--ease), box-shadow .3s; }
.wa::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--wa); z-index: -1; animation: ping 3.2s var(--ease) 2s infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: .45; } 60%, 100% { transform: scale(1.6); opacity: 0; } }
.wa:hover { transform: scale(1.08); }
.wa:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
.wa svg { width: 30px; height: 30px; }
@media (max-width: 560px) { .wa { width: 50px; height: 50px; bottom: 16px; inset-inline-end: 16px; } .wa svg { width: 26px; height: 26px; } }

footer { padding-block: 36px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; }
footer .mark { color: var(--ink); font-size: 17px; }
footer .mark img { width: 44px; height: 44px; }
footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
footer nav a { text-decoration: none; transition: color .2s; }
footer nav a:hover { color: var(--brand); }

/* ── Legal pages ────────────────────────────────────────────────────────────── */
.legal { padding-block: 48px 72px; }
.legal .wrap { max-width: 820px; display: grid; gap: 28px; }
.legal-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.legal-head h1 { font-size: clamp(28px, 4vw, 38px); }
.legal-head p { color: var(--muted); }
.lang { all: unset; cursor: pointer; padding: 7px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); font-weight: 600; font-size: 14px; transition: color .2s, border-color .2s; }
.lang:hover { border-color: var(--brand); color: var(--brand); }
.lang:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.sheet { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 32px; display: grid; gap: 14px; min-width: 0; box-shadow: var(--shadow-sm); }
.sheet h2 { font-size: 20px; margin-top: 12px; }
.sheet p { color: var(--muted); }
.sheet .lead2 { color: var(--ink); font-size: 17px; }
.sheet a { color: var(--brand); }
.promises { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
.promises li { padding: 5px 14px; border-radius: 999px; background: var(--ok-soft); color: var(--ok); font-weight: 600; font-size: 14px; }
.qa { display: grid; gap: 12px; padding: 0; margin: 0; list-style: none; }
.qa li { display: grid; gap: 2px; padding: 14px 16px; border-radius: var(--r); background: var(--surface-2); }
.qa li span { color: var(--muted); }
@media (max-width: 560px) { .sheet { padding: 22px 18px; } }

/* ── Motion ─────────────────────────────────────────────────────────────────── */
/* Entering: the hero's lines one after another, then its screens. */
@keyframes rise { from { transform: translateY(18px); opacity: .001; } to { transform: none; opacity: 1; } }
.hero-copy > * { animation: rise .8s var(--ease) both; }
.hero-copy > :nth-child(2) { animation-delay: .08s; }
.hero-copy > :nth-child(3) { animation-delay: .16s; }
.hero-copy > :nth-child(4) { animation-delay: .24s; }
.stage .browser { animation: rise .9s var(--ease) .2s both; }
.stage .phone { animation: rise .9s var(--ease) .38s both, float 7s ease-in-out 1.4s infinite; }
@keyframes float { 50% { translate: 0 -8px; } }
.wa { animation: pop .6s var(--ease) 1s both; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }

/* Scrolling: a part rises into place as it comes into view, its items one after another (the script marks them). */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.js [data-reveal].in { opacity: 1; transform: none; }

/* A screen changing inside a frame: the new one fades in and settles. */
.swap { animation: swap .5s var(--ease); }
@keyframes swap { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.swap .stat, .swap .grp, .swap .task, .swap .li, .swap .pcard, .swap .svc > div { animation: rise .55s var(--ease) both; }
.swap .stat:nth-child(2), .swap .task:nth-child(2), .swap .li:nth-of-type(2), .swap .pcard:nth-of-type(2), .swap .svc > div:nth-child(2) { animation-delay: .06s; }
.swap .stat:nth-child(3), .swap .li:nth-of-type(3), .swap .pcard:nth-of-type(3) { animation-delay: .12s; }
.swap .stat:nth-child(4), .swap .li:nth-of-type(4) { animation-delay: .18s; }
.swap .li:nth-of-type(5) { animation-delay: .24s; }
.swap .swap .swap .swap .swap .watch .arc { animation: draw 1.4s var(--ease) .1s both; }
@keyframes draw { from { stroke-dasharray: 0 999; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* ── Trial form and the page that follows it (trial.js) ─────────────────────── */
.trial-form { display: grid; gap: 16px; align-content: start; padding: clamp(20px, 3vw, 32px); border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); }
.trial-form > .cta { justify-self: stretch; padding-block: 14px; border: 0; cursor: pointer; font: 700 17px var(--f-body); }
.trial-form label { display: grid; gap: 6px; font-weight: 600; font-size: 15px; }
.trial-form input { inline-size: 100%; padding: 11px 14px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-weight: 400; }
.trial-form input:focus { outline: 2px solid color-mix(in srgb, var(--brand) 60%, transparent); outline-offset: 1px; border-color: var(--brand); }
.trial-form small { color: var(--muted); font-size: 13px; font-weight: 400; }
.trial-addr { display: flex; align-items: center; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--surface); }
.trial-addr input { border: 0; background: transparent; min-inline-size: 0; }
.trial-addr i { padding-inline-end: 14px; color: var(--muted); font-style: normal; }
.trial-code { display: flex; gap: 12px; align-items: end; flex-wrap: wrap; }
.trial-code[hidden] { display: none; }
.trial-code label { flex: 0 1 220px; }
.trial-code input { font-size: 22px; letter-spacing: 6px; text-align: center; }
.trial-msg { margin: 0; font-weight: 600; color: var(--ok); }
.trial-msg:empty, .trial-check:empty { display: none; }
.trial-msg.bad { color: var(--bad); }
.trial-wait { color: var(--ink); font-size: 18px; }
.trial-form .trial-consent { display: flex; align-items: flex-start; gap: 10px; font-weight: 500; }
.trial-form .trial-consent input { inline-size: 20px; block-size: 20px; flex: none; margin: 2px 0 0; padding: 0; accent-color: var(--brand); }
.trial-consent a { color: var(--brand); }

/* The other integrations, under BioTime's card. */
.integ { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.integ > div { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 14px; align-content: start; padding: 20px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), border-color .3s var(--ease); }
.integ > div:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--brand) 30%, var(--line)); }
.integ .ti { grid-row: span 2; width: 44px; height: 44px; border-radius: 12px; }
.integ .ti svg { width: 22px; height: 22px; }
.integ h3 { font-size: 16px; }
.integ p { color: var(--muted); font-size: 14.5px; line-height: 1.6; }
@media (max-width: 900px) { .integ { grid-template-columns: minmax(0, 1fr); } }
/* Who the app is for: four kinds of organization side by side, two by two on a tablet. */
.integ.four { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 0; }
@media (max-width: 1100px) { .integ.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .integ.four { grid-template-columns: minmax(0, 1fr); } }
