/* X Bank / X Takaful — shared site styles, "Noir" (brand-noir.md, 11 Nov 2026). Fictional brands.
   A premium private bank in black: near-black surfaces, white type, hairline borders, a lot of air,
   one accent (Clarity blue #344FB2) for buttons, active states, focus and the "Sara is working
   here" glow. Geist for Latin, IBM Plex Sans Arabic for Arabic. Desktop pages keep their working
   column on the left so the right third stays clear for the Clarity chat widget; phone pages render
   full-bleed on a phone and inside a drawn device on a desktop. One dark theme on purpose: the film
   must look the same on every machine. */

:root {
  color-scheme: dark;
  /* ---- Noir tokens (copied from brand-noir.md) ---- */
  --xb-page:      #0B0B0C;
  --xb-surface:   #141415;
  --xb-raised:    #1D1E1F;
  --xb-hairline:  #FFFFFF14;
  --xb-tint:      #FFFFFF0D;
  --xb-ink:       #F5F5F7;
  --xb-muted:     #A1A1A6;
  --xb-faint:     #6E6E73;
  --xb-accent:    #344FB2;
  --xb-accent-hi: #7D93F0;
  --xb-accent-glow: #344FB240;
  --xb-ok:        #3CCB7F;
  --xb-wait:      #F5A524;
  --xb-bad:       #F2555A;
  --xb-r-sm: 8px; --xb-r-md: 12px; --xb-r-lg: 16px; --xb-r-xl: 24px;

  /* ---- the names the pages use, mapped onto Noir ---- */
  --ink: var(--xb-ink);
  --ink-2: var(--xb-ink);
  --muted: var(--xb-muted);
  --faint: var(--xb-faint);
  --line: var(--xb-hairline);
  --line-2: var(--xb-tint);
  --bg: var(--xb-page);
  --surface: var(--xb-surface);
  --surface-2: var(--xb-raised);
  --ok: var(--xb-ok);
  --ok-soft: #3CCB7F1F;
  --warn: var(--xb-wait);
  --warn-glow: var(--xb-wait);
  --warn-soft: #F5A5241F;
  --info: var(--xb-accent-hi);
  --info-soft: #344FB22E;
  --danger: var(--xb-bad);
  --brand: var(--xb-accent);
  --brand-2: var(--xb-accent-hi);
  --brand-ink: var(--xb-page);
  --brand-soft: #344FB22E;
  /* retired wine/saffron/rose names, kept so nothing renders in the old colours */
  --xb-wine: var(--xb-raised); --xb-wine-2: var(--xb-accent-hi); --xb-wine-ink: var(--xb-page);
  --xb-saffron: var(--xb-accent); --xb-saffron-2: var(--xb-accent-hi); --xb-saffron-soft: #344FB22E;
  --xt-rose: var(--xb-ink); --xt-rose-2: var(--xb-muted); --xt-rose-ink: var(--xb-page); --xt-rose-soft: var(--xb-tint);

  --font: "Geist", "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-ar: "IBM Plex Sans Arabic", "Geist", "Geeza Pro", "Noto Sans Arabic", Tahoma, sans-serif;

  /* four sizes carry most surfaces: 13 / 15 / 22 / 40 (12 for eyebrows only) */
  --t-xs: 12px; --t-sm: 13px; --t-base: 15px; --t-md: 17px; --t-lg: 22px; --t-xl: 32px; --t-2xl: 44px;
  --r-sm: var(--xb-r-sm); --r: var(--xb-r-md); --r-lg: var(--xb-r-xl); --r-xl: var(--xb-r-xl);
  --shadow-1: inset 0 1px 0 #FFFFFF0A;
  --shadow-2: inset 0 1px 0 #FFFFFF0A, 0 24px 60px -30px #000000CC;
  --shadow-3: 0 0 0 1px var(--xb-hairline), 0 30px 80px -24px #000000E6;
  --glow: 0 0 0 1px var(--xb-accent), 0 0 0 6px var(--xb-accent-glow), 0 0 48px 6px var(--xb-accent-glow);
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
}
/* X Takaful has no colour of its own: the same accent, the same black. */
.brand-takaful { --brand: var(--xb-accent); }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; background: var(--xb-page); }
body {
  margin: 0;
  background: var(--xb-page);
  color: var(--xb-ink);
  font-family: var(--font);
  font-size: var(--t-base);
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
[lang="ar"], html[dir="rtl"] body { font-family: var(--font-ar); }
img, svg { max-width: 100%; }
a { color: var(--xb-accent-hi); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
button { font: inherit; color: inherit; }
::selection { background: #344FB266; color: #fff; }
:focus-visible { outline: 2px solid var(--xb-accent-hi); outline-offset: 2px; border-radius: 6px; }
.num, .tnum { font-variant-numeric: tabular-nums; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; text-wrap: balance; letter-spacing: -0.025em; font-weight: 500; }
p { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- bilingual pairs ---------- */
.bi { display: inline-flex; flex-wrap: wrap; align-items: baseline; column-gap: .5em; }
.bi > .ar { font-family: var(--font-ar); color: var(--xb-faint); font-weight: 400; font-size: .72em; letter-spacing: 0; }
html[dir="rtl"] .bi > .ar { order: -1; color: inherit; font-size: 1em; font-weight: inherit; }
html[dir="rtl"] .bi > .en { color: var(--xb-faint); font-weight: 400; font-size: .7em; }
.bi.solo-en > .ar { display: none; }
html[dir="rtl"] .bi.solo-en > .ar { display: inline; }
html[dir="rtl"] .bi.solo-en > .en { display: none; }

/* ---------- brand marks ---------- */
.xb-logo { display: inline-flex; align-items: center; gap: 10px; color: var(--xb-ink); text-decoration: none !important; }
.xb-logo svg { width: 30px; height: 30px; flex: none; display: block; color: var(--xb-ink); }
.xb-word { display: flex; flex-direction: column; line-height: 1; }
.xb-word b { font-family: "Geist", var(--font); font-weight: 600; font-size: 18px; letter-spacing: -0.04em; color: var(--xb-ink); }
.xb-word b .tk { color: var(--xb-muted); font-weight: 500; }
.xb-word small { font-family: var(--font-ar); font-size: 11px; font-weight: 400; color: var(--xb-faint); margin-top: 4px; letter-spacing: 0; }
.xb-logo.sm svg { width: 24px; height: 24px; }
.xb-logo.sm .xb-word b { font-size: 16px; }
.xb-logo.sm .xb-word small { font-size: 10px; }
.xb-logo.on-dark { color: var(--xb-ink); }
.cobrand { display: inline-flex; align-items: center; gap: 10px; padding-inline-start: 16px; margin-inline-start: 2px; border-inline-start: 1px solid var(--xb-hairline); color: var(--xb-faint); font-size: var(--t-sm); font-weight: 400; }
.cobrand .xb-logo svg { width: 20px; height: 20px; color: var(--xb-muted); }
.cobrand .xb-word b { font-size: 14px; }
.cobrand .xb-word small { display: none; }

/* ---------- top chrome ---------- */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--xb-page); }
.utility { background: var(--xb-page); color: var(--xb-faint); font-size: var(--t-xs); font-weight: 400; letter-spacing: .02em; border-bottom: 1px solid var(--xb-tint); }
.utility .in { display: flex; justify-content: space-between; gap: 16px; align-items: center; height: 34px; }
.utility nav { display: flex; gap: 22px; overflow: hidden; white-space: nowrap; }
.utility a { color: inherit; }
.utility a:hover { color: var(--xb-ink); text-decoration: none; }
.utility a.on { color: var(--xb-ink); }
.utility .xt-link { color: var(--xb-muted); }
.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.topnav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: #0B0B0CD9; backdrop-filter: saturate(1.2) blur(18px); -webkit-backdrop-filter: saturate(1.2) blur(18px); border-bottom: 1px solid var(--xb-hairline); }
.topnav .in { display: flex; align-items: center; gap: 36px; height: 72px; }
.mainlinks { display: flex; gap: 6px; align-items: stretch; height: 100%; }
.mainlinks a { display: flex; align-items: center; padding: 0 14px; color: var(--xb-muted); font-weight: 400; font-size: 14px; position: relative; text-decoration: none; transition: color .2s; }
.mainlinks a:hover { color: var(--xb-ink); text-decoration: none; }
.mainlinks a.on { color: var(--xb-ink); }
.mainlinks a.on::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: -1px; height: 1px; background: var(--xb-accent-hi); box-shadow: 0 0 12px 1px var(--xb-accent); }
.mainlinks .sep { display: none; }
.navright { margin-inline-start: auto; display: flex; align-items: center; gap: 10px; }
.iconbtn { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; border: 0; background: transparent; color: var(--xb-muted); cursor: pointer; position: relative; transition: background .2s, color .2s; }
.iconbtn:hover { background: var(--xb-tint); color: var(--xb-ink); }
.iconbtn .dot { position: absolute; top: 9px; right: 10px; width: 7px; height: 7px; border-radius: 50%; background: var(--xb-accent-hi); border: 2px solid var(--xb-page); }
.langbtn { height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--xb-hairline); background: transparent; font-family: var(--font-ar); font-weight: 400; font-size: 13px; cursor: pointer; color: var(--xb-muted); transition: border-color .2s, color .2s; }
html[dir="rtl"] .langbtn { font-family: var(--font); }
.langbtn:hover { border-color: #FFFFFF33; color: var(--xb-ink); }
.account-chip { display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 14px 0 4px; border-radius: 999px; background: var(--xb-tint); border: 1px solid var(--xb-hairline); font-weight: 500; font-size: 14px; cursor: pointer; color: var(--xb-ink); }
html[dir="rtl"] .account-chip { padding: 0 4px 0 14px; }
.avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 500; font-size: 13px; color: var(--xb-ink); background: var(--xb-raised); box-shadow: inset 0 0 0 1px #FFFFFF26; }
.account-chip .chev { color: var(--xb-faint); }

/* ---------- generic page bits ---------- */
.crumbs { display: flex; gap: 10px; align-items: center; color: var(--xb-faint); font-size: var(--t-sm); padding-block: 32px 10px; flex-wrap: wrap; }
.crumbs a { color: var(--xb-faint); }
.crumbs a:hover { color: var(--xb-ink); text-decoration: none; }
.crumbs .sl { color: #FFFFFF26; }
.eyebrow { font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--xb-faint); }
.card { background: var(--xb-surface); border: 1px solid var(--xb-hairline); border-radius: var(--xb-r-xl); box-shadow: var(--shadow-1); }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 11px; border-radius: 999px; font-size: 12px; font-weight: 500; background: var(--xb-tint); color: var(--xb-muted); white-space: nowrap; border: 1px solid var(--xb-hairline); letter-spacing: .01em; }
.chip.ok { background: var(--ok-soft); color: var(--xb-ok); border-color: #3CCB7F33; }
.chip.warn { background: var(--warn-soft); color: var(--xb-wait); border-color: #F5A52433; }
.chip.brand, .chip.info { background: var(--brand-soft); color: var(--xb-accent-hi); border-color: #344FB266; }
.chip.demo { background: var(--xb-ink); color: var(--xb-page); letter-spacing: .08em; font-size: 10.5px; border: 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 24px; border-radius: 999px; border: 1px solid transparent; font-weight: 500; font-size: 15px; letter-spacing: -0.005em; cursor: pointer; text-decoration: none !important; transition: background .2s, transform .1s, box-shadow .2s, border-color .2s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--xb-accent); color: #fff; box-shadow: inset 0 1px 0 #FFFFFF26, 0 10px 30px -12px var(--xb-accent); }
.btn.primary:hover { background: #3D5BC9; box-shadow: inset 0 1px 0 #FFFFFF26, 0 12px 36px -10px var(--xb-accent); }
.btn.primary[disabled] { background: var(--xb-raised); color: var(--xb-faint); box-shadow: none; cursor: not-allowed; }
.btn.ghost { background: transparent; border-color: var(--xb-hairline); color: var(--xb-ink); }
.btn.ghost:hover { border-color: #FFFFFF33; background: var(--xb-tint); }
.btn.link { background: none; color: var(--xb-accent-hi); padding: 0 6px; height: auto; border-radius: 6px; }
.btn.link:hover { color: #A9B7F7; }
.btn.block { width: 100%; }
.btn.lg { height: 54px; font-size: 16px; }
.btn.black { background: var(--xb-ink); color: var(--xb-page); }
.tick { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--ok-soft); color: var(--xb-ok); box-shadow: inset 0 0 0 1px #3CCB7F55; flex: none; }
.tick svg { width: 10px; height: 10px; }

/* fields */
.field { display: flex; flex-direction: column; gap: 8px; position: relative; min-width: 0; }
.field > label { font-size: 13px; font-weight: 400; color: var(--xb-muted); }
.control { position: relative; display: flex; align-items: center; height: 54px; border: 1px solid var(--xb-hairline); border-radius: var(--xb-r-md); background: var(--xb-raised); transition: border-color .25s, box-shadow .25s; }
.control:focus-within { border-color: var(--xb-accent); box-shadow: 0 0 0 4px var(--xb-accent-glow); }
.control input, .control select { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; padding: 0 16px; font: inherit; font-size: 16px; font-weight: 500; color: var(--xb-ink); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.control input::placeholder { color: var(--xb-faint); font-weight: 400; }
.control .pre { padding-inline-start: 16px; color: var(--xb-faint); font-weight: 400; font-size: 13px; letter-spacing: .06em; }
.control .pre + input { padding-inline-start: 8px; }
.control .state { margin-inline-end: 14px; display: none; }
.field.is-filled .control .state { display: inline-grid; }
.field .hint { font-size: 12.5px; color: var(--xb-faint); display: flex; gap: 6px; align-items: center; min-height: 18px; }
.field .hint .by { color: var(--xb-accent-hi); font-weight: 500; }
.field.is-sara .control { border-color: var(--xb-accent); box-shadow: var(--glow); }
.field.is-check .control { border-color: var(--xb-accent-hi); box-shadow: 0 0 0 4px var(--xb-accent-glow); }
.field .flag { position: absolute; inset-inline-end: 0; top: -2px; font-size: 11px; font-weight: 500; color: var(--xb-accent-hi); background: var(--brand-soft); padding: 2px 9px; border-radius: 999px; display: none; letter-spacing: .02em; }
.field.is-check .flag { display: inline-block; }
.field.is-fixed .flag { display: inline-block; color: var(--xb-ok); background: var(--ok-soft); }

/* ---------- Sara: the accent glow says "Sara is working here" ---------- */
.sara-target { position: relative; }
[data-section], .card, .block, .field { scroll-margin-top: 150px; scroll-margin-bottom: 40px; }
.sara-focus { box-shadow: var(--glow) !important; border-color: var(--xb-accent) !important; transition: box-shadow .4s, border-color .4s; animation: saraGlow 2.6s ease-in-out infinite; }
@keyframes saraGlow { 0%, 100% { box-shadow: 0 0 0 1px var(--xb-accent), 0 0 0 6px var(--xb-accent-glow), 0 0 40px 4px var(--xb-accent-glow); } 50% { box-shadow: 0 0 0 1px var(--xb-accent-hi), 0 0 0 7px #344FB24D, 0 0 64px 10px #344FB24D; } }
.sara-tip { position: absolute; z-index: 30; top: -14px; inset-inline-end: 18px; transform: translateY(-100%); width: max-content; max-width: min(340px, 80vw); background: var(--xb-raised); color: var(--xb-ink); border-radius: var(--xb-r-lg); padding: 12px 15px 13px; box-shadow: 0 0 0 1px #344FB299, 0 0 40px 2px var(--xb-accent-glow), 0 24px 50px -20px #000; font-size: 14px; line-height: 1.45; animation: tipIn .4s cubic-bezier(.2,.9,.3,1.1); }
.sara-tip::after { content: ""; position: absolute; bottom: -6px; inset-inline-end: 28px; width: 12px; height: 12px; background: var(--xb-raised); transform: rotate(45deg); border-radius: 2px; box-shadow: 1px 1px 0 #344FB299; }
.sara-tip .h { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--xb-accent-hi); margin-bottom: 5px; }
html[dir="rtl"] .sara-tip .h { letter-spacing: 0; text-transform: none; font-size: 12px; }
.sara-tip .b { font-weight: 400; }
.sara-tip .b.swap { animation: fadeSwap .35s; }
.orb { width: 14px; height: 14px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #C9D3FF, var(--xb-accent-hi) 40%, var(--xb-accent) 100%); box-shadow: 0 0 0 1px #FFFFFF1F, 0 0 12px var(--xb-accent-glow); flex: none; }
.orb.live { animation: orbPulse 1.8s ease-in-out infinite; }
@keyframes tipIn { from { opacity: 0; transform: translateY(calc(-100% + 8px)) scale(.97); } to { opacity: 1; transform: translateY(-100%); } }
@keyframes fadeSwap { from { opacity: .2; } to { opacity: 1; } }
@keyframes orbPulse { 0%,100% { box-shadow: 0 0 0 1px #FFFFFF1F, 0 0 8px var(--xb-accent-glow); } 50% { box-shadow: 0 0 0 4px #344FB233, 0 0 22px #344FB2AA; } }

.consent { position: fixed; z-index: 70; left: calc(20px + env(safe-area-inset-left, 0px)); bottom: calc(20px + env(safe-area-inset-bottom, 0px)); display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 6px 0 16px; border-radius: 999px; background: #141415F2; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); color: var(--xb-ink); font-size: 13.5px; font-weight: 400; box-shadow: 0 0 0 1px #344FB280, 0 0 36px 2px var(--xb-accent-glow), 0 20px 40px -20px #000; animation: rise .4s cubic-bezier(.2,.9,.3,1.1); }
html[dir="rtl"] .consent { left: auto; right: calc(20px + env(safe-area-inset-right, 0px)); padding: 0 16px 0 6px; }
.consent .rec { width: 8px; height: 8px; border-radius: 50%; background: var(--xb-accent-hi); box-shadow: 0 0 0 0 #7D93F099; animation: rec 1.8s infinite; }
.consent .sep { color: var(--xb-faint); }
.consent button { height: 32px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--xb-hairline); background: var(--xb-tint); color: var(--xb-ink); font-weight: 500; cursor: pointer; transition: background .2s; }
.consent button:hover { background: #FFFFFF1F; }
@keyframes rec { 0% { box-shadow: 0 0 0 0 #7D93F099; } 70% { box-shadow: 0 0 0 8px #7D93F000; } 100% { box-shadow: 0 0 0 0 #7D93F000; } }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.ask { position: fixed; z-index: 71; left: calc(20px + env(safe-area-inset-left, 0px)); bottom: calc(78px + env(safe-area-inset-bottom, 0px)); width: min(360px, calc(100vw - 40px)); background: var(--xb-surface); border: 1px solid #344FB266; border-radius: var(--xb-r-xl); box-shadow: 0 0 40px 2px var(--xb-accent-glow), 0 30px 60px -24px #000; padding: 18px; animation: rise .35s cubic-bezier(.2,.9,.3,1.1); }
html[dir="rtl"] .ask { left: auto; right: calc(20px + env(safe-area-inset-right, 0px)); }
.ask .who { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--xb-accent-hi); }
.ask .q { margin-top: 10px; font-size: 17px; font-weight: 500; line-height: 1.35; letter-spacing: -0.015em; }
.ask .fine { margin-top: 6px; font-size: 13px; color: var(--xb-muted); }
.ask .row { display: flex; gap: 8px; margin-top: 16px; }
.ask .row .btn { flex: 1; height: 44px; }
.ask .btn.pressed { transform: scale(.97); filter: brightness(1.15); }

.toast { position: fixed; z-index: 80; left: 50%; top: calc(88px + env(safe-area-inset-top, 0px)); transform: translateX(-50%); background: var(--xb-raised); color: var(--xb-ink); padding: 11px 18px; border-radius: 999px; font-weight: 400; font-size: 14px; box-shadow: var(--shadow-3); animation: rise .3s; display: flex; gap: 8px; align-items: center; }

/* "Sara is filling this in with you" banner */
.by-sara { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 500; color: var(--xb-accent-hi); background: var(--brand-soft); padding: 5px 12px 5px 7px; border-radius: 999px; box-shadow: 0 0 0 1px #344FB266, 0 0 24px var(--xb-accent-glow); }

/* ---------- Clarity widget slot ---------- */
#clarity-widget-slot { position: fixed; z-index: 65; right: calc(24px + env(safe-area-inset-right, 0px)); bottom: calc(24px + env(safe-area-inset-bottom, 0px)); width: 400px; max-width: calc(100vw - 48px); height: min(640px, calc(100vh - 140px)); pointer-events: none; }
#clarity-widget-slot > * { pointer-events: auto; }
#clarity-widget-slot.show-slot { border: 1px dashed #FFFFFF33; border-radius: 22px; background: var(--xb-tint); display: grid; place-items: center; color: var(--xb-faint); font-weight: 400; font-size: 13px; }
html[dir="rtl"] #clarity-widget-slot { right: auto; left: calc(24px + env(safe-area-inset-left, 0px)); }

/* stand-in call panel (?mock=1 only; the real Clarity widget replaces it) */
.mockcall { position: absolute; inset: 0; background: var(--xb-surface); border-radius: 24px; box-shadow: var(--shadow-3); border: 1px solid var(--xb-hairline); display: flex; flex-direction: column; overflow: hidden; animation: rise .4s; }
.mockcall .hd { display: flex; align-items: center; gap: 10px; padding: 16px 18px; border-bottom: 1px solid var(--xb-hairline); }
.mockcall .hd b { font-size: 14.5px; font-weight: 500; }
.mockcall .hd .live { margin-inline-start: auto; font-size: 12px; font-weight: 500; color: var(--xb-ok); display: flex; align-items: center; gap: 6px; }
.mockcall .hd .live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--xb-ok); }
.mockcall .tx { flex: 1; overflow: auto; padding: 18px; display: flex; flex-direction: column; justify-content: flex-end; gap: 12px; }
.mockcall .ln { font-size: 14px; line-height: 1.45; color: var(--xb-ink); animation: rise .3s; }
.mockcall .ln b { color: var(--xb-faint); font-weight: 500; font-size: 11px; display: block; letter-spacing: .08em; text-transform: uppercase; }
.mockcall .ln.reem { color: var(--xb-accent-hi); }
.mockcall .ft { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-top: 1px solid var(--xb-hairline); }
.mockcall .wave { display: flex; gap: 3px; align-items: center; height: 22px; flex: 1; }
.mockcall .wave i { width: 3px; border-radius: 2px; background: var(--xb-accent-hi); height: 30%; animation: wave 1s ease-in-out infinite; }
.mockcall .tm { font-size: 12.5px; color: var(--xb-faint); font-variant-numeric: tabular-nums; }
.mockcall .end { height: 34px; padding: 0 16px; border-radius: 999px; border: 0; background: var(--xb-bad); color: #fff; font-weight: 500; font-size: 13px; }
@keyframes wave { 0%,100% { height: 25%; } 50% { height: 95%; } }

/* ---------- footer ---------- */
.sitefoot { margin-top: 96px; background: var(--xb-page); border-top: 1px solid var(--xb-hairline); }
.sitefoot .in { padding-block: 36px 44px; display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; color: var(--xb-faint); font-size: var(--t-sm); }
.sitefoot nav { display: flex; gap: 22px; flex-wrap: wrap; }
.sitefoot nav a { color: var(--xb-faint); }
.sitefoot nav a:hover { color: var(--xb-ink); text-decoration: none; }
.fictional { display: inline-flex; align-items: center; gap: 8px; font-weight: 400; color: var(--xb-muted); }
.fictional::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--xb-accent-hi); box-shadow: 0 0 10px var(--xb-accent); }

/* ---------- phone pages ---------- */
.phone-stage { min-height: 100vh; display: grid; place-items: center; padding: 32px 16px; background: radial-gradient(900px 520px at 50% -12%, #344FB226, transparent 70%), var(--xb-page); }
.phone { width: 392px; height: min(848px, calc(100vh - 64px)); min-height: 640px; border-radius: 58px; padding: 11px; background: #161617; box-shadow: 0 0 0 1px #FFFFFF1F, inset 0 0 0 1px #FFFFFF0F, 0 50px 120px -40px #000, 0 0 120px -40px #344FB259; position: relative; }
.phone-screen { position: relative; width: 100%; height: 100%; border-radius: 47px; overflow: hidden; background: var(--xb-page); display: flex; flex-direction: column; isolation: isolate; }
.island { position: absolute; z-index: 20; top: 11px; left: 50%; transform: translateX(-50%); width: 122px; height: 35px; border-radius: 20px; background: #000; }
.statusbar, .urlbar { direction: ltr; }
.statusbar { flex: none; height: 52px; display: flex; align-items: center; justify-content: space-between; padding: 6px 30px 0 36px; font-weight: 600; font-size: 15.5px; letter-spacing: -.01em; color: var(--xb-ink); z-index: 10; font-family: -apple-system, "SF Pro Text", var(--font); }
.statusbar .icons { display: flex; gap: 6px; align-items: center; }
.statusbar svg { display: block; }
.urlbar { flex: none; display: flex; justify-content: center; padding: 0 14px 8px; z-index: 10; }
.urlbar > span { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 14px; border-radius: 10px; background: var(--xb-tint); font-size: 13px; font-weight: 400; color: var(--xb-muted); font-family: -apple-system, "SF Pro Text", var(--font); }
.phone-scroll { flex: 1; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; position: relative; scrollbar-width: none; }
.phone-scroll::-webkit-scrollbar { display: none; }
.homebar { position: absolute; z-index: 30; bottom: 8px; left: 50%; transform: translateX(-50%); width: 134px; height: 5px; border-radius: 3px; background: #FFFFFFCC; pointer-events: none; }
.phone-note { position: fixed; left: calc(16px + env(safe-area-inset-left, 0px)); bottom: calc(14px + env(safe-area-inset-bottom, 0px)); font-size: 12px; color: var(--xb-faint); }
@media (max-width: 600px), (max-height: 600px) and (max-width: 940px) {
  .phone-stage { display: block; padding: 0; background: var(--xb-page); min-height: 100vh; min-height: 100dvh; }
  .phone { width: 100%; height: 100vh; height: 100dvh; min-height: 0; border-radius: 0; padding: 0; background: none; box-shadow: none; }
  .phone-screen { border-radius: 0; }
  .island, .statusbar, .urlbar, .homebar, .phone-note { display: none; }
}
.phone-screen > .consent, .phone-screen > .ask, .phone-screen > .toast { position: absolute; }
.phone-screen > .consent { left: 16px; right: auto; bottom: 22px; }
.phone-screen > .ask { left: 12px; right: 12px; width: auto; bottom: 74px; }
.phone-screen > .toast { top: 64px; max-width: calc(100% - 32px); }
.phone-scroll [data-section], .phone-scroll .card { scroll-margin-top: 96px; scroll-margin-bottom: 24px; }
/* mobile app bar inside phone pages */
.appbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 20px 14px; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.mpage { padding: 6px max(16px, env(safe-area-inset-right, 0px)) 48px max(16px, env(safe-area-inset-left, 0px)); display: flex; flex-direction: column; gap: 12px; }
.mpage .card { border-radius: var(--xb-r-xl); }
.securechip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; color: var(--xb-ok); background: var(--ok-soft); height: 26px; padding: 0 10px; border-radius: 999px; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .utility nav.sec { display: none; }
  .topnav .in { gap: 14px; }
  .mainlinks a { padding: 0 9px; font-size: 14px; }
  .mainlinks a.on::after { left: 9px; right: 9px; }
  .account-chip .nm, .account-chip .chev, .iconbtn.hide-sm { display: none; }
  .account-chip { padding: 0 4px; }
  #clarity-widget-slot { width: calc(100vw - 32px); right: 16px; height: min(560px, calc(100vh - 120px)); }
}
@media (max-width: 560px) {
  .xb-logo .xb-word small { display: none; }
  .mainlinks { display: none; }
  .cobrand { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
