/* HumanForce AI marketing site, v2. Palette A (Blue + Coral), light editorial. */

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../assets/fonts/plus-jakarta-sans-latin-wght.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  color-scheme: light;
  interpolate-size: allow-keywords;
  --primary: #0766B5;
  --primary-hover: #05558F;
  --primary-soft: #E7F0FA;
  --primary-text: #0766B5;
  --navy: #0F1A2E;
  --accent: #F07A5E;
  --accent-text: #B23E22;
  --accent-soft: #FDEDE8;
  --peach: #FBD3C7;

  --bg: #FAF9F7;
  --bg-2: #F3F1ED;
  --card: #FFFFFF;
  --card-2: #F8F7F4;
  --border: #E4E9F0;
  --border-strong: #D3DBE6;
  --text: #0F1A2E;
  --text-2: #475467;
  --text-3: #5F6B7D;
  --tone-2: #0766B5;
  --hl: rgba(240, 122, 94, .26);

  --ok: #1B7A47; --ok-bg: #E7F5EC;
  --wait: #9A5B00; --wait-bg: #FFF3DC;
  --late: #B42318; --late-bg: #FDECEA;

  /* chat (WhatsApp-like, green only here) */
  --wa-in: #FFFFFF;
  --wa-out: #DCF8C6;
  --wa-text: #111B21;
  --wa-meta: #667781;
  --wa-tick: #34B7F1;
  --wa-dot: #25A35A;
  --glass-bg: rgba(255, 255, 255, .4);
  --glass-head: rgba(255, 255, 255, .5);
  --glass-border: rgba(255, 255, 255, .75);
  --glass-shadow: 0 1px 0 rgba(255,255,255,.8) inset, 0 40px 80px -24px rgba(120, 40, 20, .35), 0 12px 32px -12px rgba(15, 26, 46, .18);

  /* funnel particle colours (read by JS) */
  --fp-1: #0766B5; --fp-2: #6AA8DE; --fp-3: #F07A5E; --fp-4: #F3A48F; --fp-guide: rgba(7, 102, 181, .045);
  --fp-wall: color-mix(in srgb, #0766B5 38%, #E4E9F0);
  --bk-tech: var(--navy);

  --focus: #0766B5;
  --shadow-sm: 0 1px 2px rgba(15, 26, 46, .06), 0 1px 1px rgba(15, 26, 46, .04);
  --shadow-md: 0 1px 2px rgba(15, 26, 46, .05), 0 12px 32px -12px rgba(15, 26, 46, .16);
  --shadow-lg: 0 2px 4px rgba(15, 26, 46, .04), 0 32px 72px -24px rgba(15, 26, 46, .26);
  --nav-glass: rgba(250, 249, 247, .72);
  --logo-l: block; --logo-d: none;

  --gutter: 16px;
  --container: 1200px;
  --nav-h: 64px;
  --r-sm: 8px; --r: 12px; --r-lg: 20px; --r-xl: 28px;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-spring: cubic-bezier(.34, 1.4, .64, 1);
  --ease: cubic-bezier(.4, 0, .2, 1);
  --t-fast: 160ms; --t: 240ms;

  --font: "Plus Jakarta Sans", system-ui, "Segoe UI", "Noto Sans", sans-serif;
  --font-ar: "Segoe UI", "Noto Sans Arabic", "Geeza Pro", Tahoma, sans-serif;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --primary-text: #6CB2F2; --primary-soft: rgba(108, 178, 242, .12);
  --accent: #FF8F75; --accent-text: #FFA48E; --accent-soft: rgba(255, 143, 117, .12);
  --bg: #0B1220; --bg-2: #0E1628; --card: #131C2E; --card-2: #182337;
  --border: #283550; --border-strong: #34446A;
  --text: #EEF2F8; --text-2: #B8C3D4; --text-3: #A3AFC2; --tone-2: #6CB2F2; --hl: rgba(255, 143, 117, .22);
  --ok: #7DD3A0; --ok-bg: rgba(27, 122, 71, .22);
  --wait: #F5C46B; --wait-bg: rgba(154, 91, 0, .24);
  --late: #FF9C92; --late-bg: rgba(180, 35, 24, .24);
  --wa-in: #1F2C40; --wa-out: #0F5A47; --wa-text: #E9EDEF; --wa-meta: #9FB0BF; --wa-tick: #53BDEB; --wa-dot: #3DDC84;
  --glass-bg: rgba(19, 28, 46, .55); --glass-head: rgba(19, 28, 46, .7); --glass-border: rgba(255, 255, 255, .12);
  --glass-shadow: 0 1px 0 rgba(255,255,255,.06) inset, 0 40px 80px -24px rgba(0, 0, 0, .6), 0 12px 32px -12px rgba(0, 0, 0, .5);
  --fp-1: #6CB2F2; --fp-2: #3F7FC0; --fp-3: #FF8F75; --fp-4: #F3A48F; --fp-guide: rgba(108, 178, 242, .08);
  --fp-wall: rgba(108, 178, 242, .45);
  --bk-tech: var(--text-2);
  --focus: #6CB2F2;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
  --shadow-md: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 28px -12px rgba(0, 0, 0, .55);
  --shadow-lg: 0 2px 4px rgba(0, 0, 0, .3), 0 32px 72px -20px rgba(0, 0, 0, .7);
  --nav-glass: rgba(11, 18, 32, .72);
  --logo-l: none; --logo-d: block;
}

@media (min-width: 768px) { :root { --gutter: 32px; --nav-h: 72px; } }
@media (min-width: 1440px) { :root { --gutter: 40px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
@media (min-width: 1024px) { body { font-size: 18px; } }
body.menu-open { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--primary-text); text-underline-offset: 3px; }
h1, h2, h3 { margin: 0; color: var(--text); text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
main:focus { outline: none; }
::selection { background: rgba(7, 102, 181, .2); }
[lang="ar"] { font-family: var(--font-ar); }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }

.ic {
  width: 20px; height: 20px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.75;
  stroke-linecap: round; stroke-linejoin: round;
}
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 1000;
  background: var(--primary); color: #fff; padding: 12px 18px; border-radius: 999px;
  font-weight: 600; text-decoration: none; transform: translateY(-160%);
  transition: transform var(--t) var(--ease-out);
}
.skip-link:focus { transform: none; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.logo-on-light { display: var(--logo-l); }
.logo-on-dark { display: var(--logo-d); }

/* ---------- Type ---------- */
.display {
  font-size: clamp(42px, 5.5vw + 8px, 100px);
  line-height: 1;
  font-weight: 760;
  letter-spacing: -.035em;
}
.display .line { display: block; }
.display .dot { margin-left: -.07em; }
.h2 {
  font-size: clamp(32px, 2.6vw + 20px, 58px);
  line-height: 1.06;
  font-weight: 740;
  letter-spacing: -.035em;
}
.tone-2 {
  color: var(--tone-2);
  background-image: linear-gradient(transparent 64%, var(--hl) 64%, var(--hl) 90%, transparent 90%);
  background-repeat: no-repeat; background-size: 100% 100%;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  padding: 0 .06em; margin: 0 -.06em;
  transition: background-size 1100ms var(--ease-out) 250ms;
}
.js .tone-2:not(.is-lit) { background-size: 0% 100%; }
/* the hero line is split into words; it keeps a quieter two-tone gradient instead */
.display .tone-2 { background: none; padding: 0; margin: 0; }
.display .tone-2 .w { background: linear-gradient(100deg, var(--primary) 0%, #3F86CB 60%, color-mix(in srgb, var(--primary) 70%, var(--accent)) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sub, .lede { color: var(--text-2); }
.lede { font-size: clamp(18px, .6vw + 15px, 22px); line-height: 1.55; }
.sub { font-size: clamp(17px, .3vw + 16px, 19px); max-width: 60ch; }

/* ---------- Buttons ---------- */
.btn {
  --bh: 48px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--bh); padding: 0 22px; border-radius: 999px;
  font-weight: 650; font-size: 16px; letter-spacing: -.005em; line-height: 1;
  text-decoration: none; border: 1px solid transparent; white-space: nowrap;
  touch-action: manipulation; user-select: none;
  transition: background-color var(--t) var(--ease), border-color var(--t) var(--ease), box-shadow var(--t) var(--ease), color var(--t) var(--ease);
  will-change: transform;
}
.btn .ic { width: 18px; height: 18px; }
.btn-sm { --bh: 44px; padding: 0 18px; font-size: 15px; }
.btn-lg { --bh: 56px; padding: 0 28px; font-size: 17px; }
.btn-block { width: 100%; }
.btn-primary {
  background: var(--primary); color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 1px 2px rgba(7,102,181,.3), 0 10px 24px -10px rgba(7,102,181,.6);
}
.btn-primary:hover { background: var(--primary-hover); }
.btn-primary:active { box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 1px 2px rgba(7,102,181,.3); }
.btn-ghost {
  background: color-mix(in srgb, var(--card) 70%, transparent);
  color: var(--text); border-color: var(--border-strong);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.btn-ghost:hover { border-color: var(--text-3); background: var(--card); }
.btn-ghost .ic { color: var(--primary-text); }
.btn-secondary { background: var(--card); color: var(--text); border-color: var(--border-strong); }
.btn-secondary:hover { border-color: var(--text-3); }
.btn-loading { display: none; align-items: center; gap: 10px; }
.btn.is-loading .btn-label { display: none; }
.btn.is-loading .btn-loading { display: inline-flex; }
.btn[disabled] { cursor: progress; opacity: .85; }
.spin { animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.icon-btn {
  width: 44px; height: 44px; display: inline-grid; place-items: center;
  border-radius: 999px; border: 1px solid transparent; background: transparent; color: var(--text-2);
  transition: background-color var(--t) var(--ease), color var(--t) var(--ease);
}
.icon-btn:hover { background: color-mix(in srgb, var(--text) 6%, transparent); color: var(--text); }

/* ---------- Nav ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 100; }
.nav-inner {
  position: relative; height: var(--nav-h);
  display: flex; align-items: center; gap: 24px;
  max-width: 1360px; margin: 0 auto; padding: 0 var(--gutter);
}
.nav::before {
  content: ""; position: absolute; inset: 0;
  background: var(--nav-glass);
  backdrop-filter: saturate(1.6) blur(18px); -webkit-backdrop-filter: saturate(1.6) blur(18px);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
  opacity: 0; transition: opacity var(--t) var(--ease);
}
.nav.is-scrolled::before, .nav.menu-is-open::before { opacity: 1; }
.nav-logo { display: block; flex: none; padding: 10px 0; }
.nav-logo img { height: 20px; width: auto; }
@media (min-width: 768px) { .nav-logo img { height: 22px; } }
.nav-links { display: none; gap: 4px; margin: 0 auto; }
.nav-links a, .nav-signin {
  color: var(--text-2); text-decoration: none; font-weight: 550; font-size: 15px;
  padding: 10px 14px; border-radius: 999px; min-height: 44px; display: inline-flex; align-items: center;
  transition: color var(--t) var(--ease), background-color var(--t) var(--ease);
}
.nav-links a:hover, .nav-signin:hover { color: var(--text); background: color-mix(in srgb, var(--text) 5%, transparent); }
.nav-actions { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-signin, .nav-cta { display: none; }
.ic-moon { display: none; }
:root.is-dark .ic-sun { display: none; }
:root.is-dark .ic-moon { display: block; }
.menu-btn .ic-close { display: none; }
.menu-btn[aria-expanded="true"] .ic-open { display: none; }
.menu-btn[aria-expanded="true"] .ic-close { display: block; }
@media (min-width: 640px) { .nav-cta { display: inline-flex; margin-left: 6px; } }
@media (min-width: 1024px) {
  .nav-links { display: flex; }
  .nav-actions { margin-left: 0; }
  .nav-signin { display: inline-flex; }
  .menu-btn { display: none; }
}
.menu-sheet {
  position: relative; padding: 8px var(--gutter) 24px;
  display: grid; gap: 16px;
  opacity: 0; transform: translateY(-8px);
  transition: opacity 220ms var(--ease), transform 260ms var(--ease-out);
}
.menu-sheet[hidden] { display: none; }
.menu-sheet.is-open { opacity: 1; transform: none; }
.menu-sheet nav { display: grid; }
.menu-sheet nav a {
  color: var(--text); text-decoration: none; font-size: 20px; font-weight: 650; letter-spacing: -.01em;
  padding: 14px 4px; border-bottom: 1px solid var(--border); min-height: 52px;
}
@media (min-width: 1024px) { .menu-sheet { display: none !important; } }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: calc(var(--nav-h) + clamp(28px, 4.4vw, 64px));
  overflow-x: clip;
  isolation: isolate;
}
.hero::before { /* warm wash behind the stage */
  content: ""; position: absolute; z-index: -1; left: 50%; top: 38%;
  width: 1600px; height: 1100px; transform: translateX(-50%);
  background:
    radial-gradient(closest-side, color-mix(in srgb, var(--peach) 55%, transparent), transparent 70%),
    radial-gradient(40% 40% at 20% 70%, color-mix(in srgb, var(--primary) 7%, transparent), transparent 70%);
  opacity: .9; pointer-events: none;
}
:root.is-dark .hero::before { opacity: .22; }
.hero-copy { text-align: center; max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }
.hero-copy .display { margin: 0 auto; }
.hero-lede { max-width: 40ch; margin: 24px auto 0; }
.hero-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }

/* word reveal */
.js .display .w { display: inline-block; opacity: 0; filter: blur(14px); transform: translate3d(0, .32em, 0); }
.js .hero.is-loaded .display .w {
  opacity: 1; filter: blur(0); transform: none;
  transition: opacity 900ms var(--ease-out), filter 900ms var(--ease-out), transform 1000ms var(--ease-out);
  transition-delay: calc(var(--i) * 70ms + 80ms);
}
.js .hero-lede, .js .hero-ctas, .js .stage { opacity: 0; transform: translate3d(0, 18px, 0); }
.js .hero.is-loaded .hero-lede, .js .hero.is-loaded .hero-ctas, .js .hero.is-loaded .stage {
  opacity: 1; transform: none;
  transition: opacity 900ms var(--ease-out), transform 1000ms var(--ease-out);
}
.js .hero.is-loaded .hero-lede { transition-delay: 560ms; }
.js .hero.is-loaded .hero-ctas { transition-delay: 680ms; }
.js .hero.is-loaded .stage { transition-delay: 820ms; transition-duration: 1200ms; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 20px;
  padding: 6px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 650; letter-spacing: .02em;
  color: var(--primary-text); background: var(--primary-soft);
}
/* ---------- Stage (sculpture + chat) ---------- */
.stage {
  position: relative; margin: clamp(40px, 5vw, 64px) auto 0;
  max-width: 1320px; height: 640px;
  perspective: 1400px;
}
.sculpture {
  position: absolute; left: 50%; top: 50%;
  width: 600px; height: 600px; margin: -300px 0 0 -300px;
  pointer-events: none;
}
.sc-glow {
  position: absolute; inset: -10% -30% -10% 6%;
  background: radial-gradient(closest-side, rgba(251, 211, 199, .55), rgba(253, 237, 232, .35) 50%, transparent 76%);
  filter: blur(30px);
  animation: glow-drift 16s ease-in-out infinite alternate;
}
.sc-glow-blue {
  inset: 2% 18% 6% -34%;
  background: radial-gradient(closest-side, rgba(7, 102, 181, .10), rgba(231, 240, 250, .45) 52%, transparent 78%);
  animation-duration: 20s; animation-direction: alternate-reverse;
}
:root.is-dark .sc-glow { background: radial-gradient(closest-side, rgba(255, 143, 117, .14), rgba(255, 143, 117, .05) 50%, transparent 76%); }
:root.is-dark .sc-glow-blue { background: radial-gradient(closest-side, rgba(108, 178, 242, .14), rgba(108, 178, 242, .04) 52%, transparent 78%); }
@keyframes glow-drift { from { transform: translate3d(-2%, -1%, 0) scale(1); } to { transform: translate3d(2%, 2%, 0) scale(1.06); } }

.chat-wrap {
  position: absolute; left: 50%; top: 0;
  width: min(392px, calc(100vw - 32px)); transform-style: preserve-3d;
  margin-left: calc(min(392px, calc(100vw - 32px)) / -2);
  z-index: 3;
}
.chat {
  position: relative; height: 580px; display: flex; flex-direction: column;
  border-radius: 30px; overflow: hidden;
  background: var(--glass-bg);
  backdrop-filter: blur(26px) saturate(1.5); -webkit-backdrop-filter: blur(26px) saturate(1.5);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transform-style: preserve-3d;
}
.glass-sheen {
  position: absolute; inset: 0; z-index: 5; pointer-events: none; border-radius: inherit;
  background: radial-gradient(420px circle at var(--gx, 30%) var(--gy, 0%), rgba(255, 255, 255, .5), rgba(255,255,255,0) 45%);
  mix-blend-mode: soft-light; opacity: .7; transition: opacity 400ms var(--ease);
}
.stage.has-pointer .glass-sheen { opacity: 1; }
.chat::after { /* top edge highlight */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 6;
  background: linear-gradient(180deg, rgba(255,255,255,.55), rgba(255,255,255,0) 18%);
  mix-blend-mode: soft-light;
}
.chat-head {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px;
  background: var(--glass-head);
  border-bottom: 1px solid color-mix(in srgb, var(--glass-border) 70%, transparent);
}
.chat-avatar {
  width: 40px; height: 40px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: linear-gradient(135deg, #0766B5, #4C90D4); color: #fff; font-weight: 750; font-size: 14px; letter-spacing: .02em;
}
.chat-title { min-width: 0; display: grid; line-height: 1.25; }
.chat-title b { font-size: 15px; font-weight: 700; color: var(--text); }
.chat-title small { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--text-3); }
.chat-title small .ic { width: 13px; height: 13px; color: var(--wa-dot); }
.lang-chip {
  margin-left: auto; flex: none; display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px; border-radius: 999px; font-size: 12px; font-weight: 600;
  background: color-mix(in srgb, var(--card) 70%, transparent); border: 1px solid var(--glass-border);
  color: var(--text-3);
}
.lang-chip .lc-ar { font-size: 12.5px; transition: color 300ms var(--ease); }
.lang-chip .lc-en { color: var(--text); transition: color 300ms var(--ease); }
.lang-chip.is-ar .lc-ar { color: var(--text); }
.lang-chip.is-ar .lc-en { color: var(--text-3); }
.lang-chip .lc-dot { opacity: .6; }

.chat-view {
  position: relative; flex: 1; min-height: 0; overflow: hidden;
  padding: 10px 12px 8px;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 40px);
  mask-image: linear-gradient(180deg, transparent 0, #000 40px);
}
.chat-track { display: flex; flex-direction: column; gap: 6px; will-change: transform; }
.chat-day { align-self: center; margin: 4px 0 6px; }
.chat-day span {
  font-size: 11.5px; font-weight: 600; color: var(--wa-meta); padding: 4px 10px; border-radius: 8px;
  background: color-mix(in srgb, var(--wa-in) 85%, transparent);
}
.msg {
  position: relative; max-width: 84%;
  padding: 7px 10px 6px; border-radius: 12px;
  font-size: 14px; line-height: 1.42; color: var(--wa-text);
  box-shadow: 0 1px .5px rgba(11, 20, 26, .13);
}
.msg p { display: inline; }
.msg.in { align-self: flex-start; background: var(--wa-in); border-top-left-radius: 4px; }
.msg.out { align-self: flex-end; background: var(--wa-out); border-top-right-radius: 4px; }
.msg.ar { font-size: 15px; line-height: 1.55; }
.msg .meta {
  float: inline-end; margin: 6px 0 -4px 10px; position: relative; top: 2px;
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 11px; color: var(--wa-meta); line-height: 1; font-family: var(--font);
}
.msg.ar .meta { margin: 6px 10px -4px 0; }
.ticks { width: 16px; height: 11px; fill: none; stroke: var(--wa-tick); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.quiz-tag {
  display: block; width: max-content; margin-bottom: 4px;
  font-size: 11px; font-weight: 700; letter-spacing: .02em; color: var(--accent-text);
  background: var(--accent-soft); padding: 2px 8px; border-radius: 6px;
}
.msg.typing {
  display: none; align-self: flex-start; gap: 4px; padding: 12px 14px;
}
.msg.typing.is-on { display: inline-flex; width: max-content; animation: msg-in 260ms var(--ease-out); }
.msg.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--wa-meta); opacity: .5; animation: dot 1.2s infinite ease-in-out; }
.msg.typing i:nth-child(2) { animation-delay: .15s; }
.msg.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 60%, 100% { transform: translateY(0); opacity: .45; } 30% { transform: translateY(-4px); opacity: 1; } }
.js .chat:not(.is-static) .chat-track > [data-msg] { display: none; }
.js .chat:not(.is-static) .chat-track > [data-msg].is-shown { display: block; animation: msg-in 420ms var(--ease-out) both; }
@keyframes msg-in { from { opacity: 0; transform: translate3d(0, 10px, 0) scale(.97); } to { opacity: 1; transform: none; } }
.msg.in.is-shown { transform-origin: 0 100%; }
.msg.out.is-shown { transform-origin: 100% 100%; }
.chat.is-static .chat-view { overflow-y: auto; -webkit-mask-image: none; mask-image: none; }
.chat.is-static .chat-track { will-change: auto; }
.chat-compose {
  display: flex; align-items: center; gap: 8px; padding: 10px 12px 14px;
}
.cc-field {
  flex: 1; height: 40px; border-radius: 999px; display: flex; align-items: center; padding: 0 16px;
  background: color-mix(in srgb, var(--wa-in) 88%, transparent); color: var(--wa-meta); font-size: 14px;
}
.cc-send { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #1DA851; color: #fff; }
.cc-send .ic { width: 17px; height: 17px; }

/* score pop */
.score-pop {
  position: absolute; z-index: 4; left: 40px; top: 368px; width: 272px;
  padding: 16px; border-radius: 20px;
  background: var(--card); border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  opacity: 0; transform: translate3d(40px, 12px, 0) scale(.9);
  transition: opacity 500ms var(--ease-out), transform 1100ms var(--ease-out);
  pointer-events: none;
}
.score-pop.is-out { opacity: 1; transform: translate3d(var(--pop-x, 400px), 0, 0) scale(1); }
.score-pop.is-gone { opacity: 0; transition-duration: 500ms; }
.sp-top { display: flex; align-items: center; gap: 12px; }
.sp-score {
  width: 52px; height: 52px; border-radius: 16px; flex: none; display: grid; place-items: center;
  font-size: 22px; font-weight: 780; letter-spacing: -.03em; color: #fff;
  background: linear-gradient(140deg, #0766B5, #3F86CB);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 8px 18px -8px rgba(7,102,181,.7);
}
.sp-top b { display: block; font-size: 15px; color: var(--text); }
.sp-top small { font-size: 12.5px; color: var(--text-3); }
.sp-reasons { margin-top: 12px; display: grid; gap: 6px; }
.sp-reasons li { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; line-height: 1.4; color: var(--text-2); }
.sp-reasons .ic { width: 15px; height: 15px; color: var(--ok); margin-top: 2px; stroke-width: 2.4; }

/* floating side cards */
.float-card {
  position: absolute; z-index: 2; display: none;
  padding: 16px; border-radius: 20px;
  background: color-mix(in srgb, var(--card) 82%, transparent);
  backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3);
  border: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
  box-shadow: var(--shadow-md);
}
.fc-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.fc-head b { display: block; font-size: 15px; line-height: 1.3; }
.fc-head small { font-size: 12.5px; color: var(--text-3); }
.fc-ic { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); flex: none; }
.fc-ic-blue { background: var(--primary-soft); color: var(--primary-text); }
.fc-ic .ic { width: 18px; height: 18px; }
.req-list { display: grid; gap: 8px; }
.req-list li { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--text-2); }
.req-list .ic { width: 15px; height: 15px; color: var(--primary-text); stroke-width: 2.4; }
.fc-foot { display: block; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--border-strong); font-size: 12.5px; color: var(--text-3); font-weight: 550; }
.mini-list { display: grid; gap: 4px; }
.mini-list li {
  display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 12px;
  transition: background-color 500ms var(--ease), transform 700ms var(--ease-out), opacity 500ms var(--ease);
}
.ml-av {
  width: 32px; height: 32px; border-radius: 50%; flex: none; display: grid; place-items: center;
  font-size: 11.5px; font-weight: 700; color: #fff; background: linear-gradient(135deg, #F07A5E, #F3A48F);
}
.ml-av.av-2 { background: linear-gradient(135deg, #0766B5, #6AA8DE); }
.ml-av.av-3 { background: linear-gradient(135deg, #3F5A7F, #7C93B2); }
.ml-av.av-4 { background: linear-gradient(135deg, #B23E22, #F07A5E); }
.ml-name { flex: 1; min-width: 0; font-size: 13.5px; font-weight: 650; line-height: 1.25; }
.ml-name small { display: block; font-weight: 500; font-size: 12px; color: var(--text-3); }
.ml-score { font-weight: 750; font-size: 15px; letter-spacing: -.02em; color: var(--text); }
.ml-new { background: var(--primary-soft); }
.ml-new .ml-score { color: var(--primary-text); }
.js .shortlist-card:not(.has-new) .ml-new { opacity: 0; transform: translate3d(0, -6px, 0) scale(.97); }
.js .shortlist-card:not(.has-new) .mini-list li:not(.ml-new) { transform: translate3d(0, -48px, 0); }
.js .shortlist-card .mini-list li:last-child { transition-property: background-color, transform, opacity; }
.js .shortlist-card:not(.has-new) .mini-list li:last-child { opacity: 1; }
.js .shortlist-card.has-new .mini-list li:last-child { opacity: .5; }

@media (min-width: 1100px) {
  .sculpture { width: 920px; height: 920px; margin: -460px 0 0 -460px; top: 47%; }
  .float-card { display: block; }
  .req-card { width: 252px; left: calc(50% - 196px - 318px); top: 318px; }
  .shortlist-card { width: 284px; left: calc(50% + 196px + 44px); top: 36px; }
  .score-pop { --pop-x: 400px; top: 384px; }
}
@media (max-width: 1099px) {
  .score-pop { left: auto; right: 12px; top: auto; bottom: 74px; width: min(272px, calc(100% - 24px)); transform: translate3d(0, 24px, 0) scale(.94); }
  .score-pop.is-out { transform: translate3d(var(--pop-x, 34px), 0, 0) scale(1); }
}
@media (max-width: 767px) {
  .stage { height: 600px; }
  .sculpture { transform: scale(.9); }
  .chat { height: 540px; }
  .score-pop { --pop-x: 0px; right: 12px; }
}
@media (max-width: 420px) {
  .sculpture { transform: scale(.78); }
}

/* ---------- Sections ---------- */
section { position: relative; }
.sec-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.sec-head .sub { margin-top: 18px; }

/* reveal */
.js [data-reveal] { opacity: 0; transform: translate3d(0, 24px, 0); }
.js [data-reveal].is-in {
  opacity: 1; transform: none;
  transition: opacity 800ms var(--ease-out), transform 900ms var(--ease-out);
  transition-delay: calc(var(--i, 0) * 60ms);
}

/* ---------- Funnel ---------- */
.funnel-sec { margin-top: clamp(72px, 10vw, 140px); }
.funnel-head { text-align: center; }
.funnel-head .h2 { max-width: 24ch; margin: 0 auto; }
.funnel-head .sub { margin: 16px auto 0; max-width: 54ch; }
.funnel-stage { position: relative; margin: 40px auto 0; width: calc(100% - var(--gutter) * 2); max-width: 1320px; }
.funnel-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.f-sources li, .f-gate .g-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13.5px; font-weight: 650; color: var(--text);
}
.f-sources li {
  position: absolute; padding: 8px 12px 8px 10px; border-radius: 999px; white-space: nowrap;
  background: var(--card); border: 1px solid var(--border); box-shadow: var(--shadow-sm);
}
.f-sources .ic { width: 16px; height: 16px; color: var(--primary-text); }
.f-gate { position: absolute; }
.g-line { position: absolute; background: var(--border-strong); transition: background-color 500ms var(--ease), box-shadow 500ms var(--ease); }
.g-label {
  position: absolute; flex-direction: column; align-items: flex-start !important; gap: 0 !important;
  padding: 8px 12px; border-radius: 12px; background: var(--card); border: 1px solid var(--border);
  box-shadow: var(--shadow-sm); white-space: nowrap; line-height: 1.3;
  transition: border-color 500ms var(--ease), transform 600ms var(--ease-out), box-shadow 500ms var(--ease);
}
.g-label b { font-size: 14px; color: var(--text-3); transition: color 500ms var(--ease); }
.g-label small { font-size: 12px; color: var(--text-3); font-weight: 500; }
.f-gate.is-on .g-line { background: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 14%, transparent), 0 0 24px color-mix(in srgb, var(--primary) 50%, transparent); }
.f-gate.is-on .g-label { border-color: color-mix(in srgb, var(--primary) 45%, var(--border)); box-shadow: var(--shadow-md); }
.f-gate.is-on .g-label b { color: var(--primary-text); }
.f-top { display: grid; gap: 10px; }
.top-card {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px;
  background: var(--card); border: 1px solid var(--border); box-shadow: var(--shadow-md);
  transition: opacity 600ms var(--ease-out), transform 800ms var(--ease-out);
  transition-delay: calc(var(--k) * 110ms);
}
.js .f-top:not(.is-on) .top-card { opacity: 0; transform: translate3d(24px, 0, 0) scale(.96); }
.tc-rank {
  width: 28px; height: 28px; border-radius: 9px; flex: none; display: grid; place-items: center;
  font-weight: 750; font-size: 13px; color: var(--accent-text); background: var(--accent-soft);
}
.top-card:first-child .tc-rank { color: #fff; background: var(--accent); }
:root.is-dark .top-card:first-child .tc-rank { color: #2A0F08; }
.tc-body { flex: 1; min-width: 0; line-height: 1.3; }
.tc-body b { display: block; font-size: 14.5px; }
.tc-body small { font-size: 12.5px; color: var(--text-3); white-space: nowrap; }
.tc-score { font-size: 20px; font-weight: 780; letter-spacing: -.03em; color: var(--primary-text); }
.funnel-note {
  display: flex; align-items: center; justify-content: center; gap: 8px; text-align: center;
  margin-top: 28px; font-size: 15px; color: var(--text-2); font-weight: 550;
}
.funnel-note .ic { width: 18px; height: 18px; color: var(--primary-text); }

/* vertical (phones, tablets) */
@media (max-width: 1023px) {
  .funnel-stage { --fh: 440px; height: auto; padding-top: var(--fh); }
  .funnel-canvas { bottom: auto; height: var(--fh); }
  .f-sources li { top: 0; left: calc((var(--v) * 2 + 1) / 6 * 100%); transform: translateX(-50%); font-size: 12.5px; padding: 6px 10px 6px 8px; }
  .f-sources li .ic { width: 14px; height: 14px; }
  .f-gate { left: 0; right: 0; top: calc(64px + var(--u) * (var(--fh) - 88px)); }
  .g-line { left: 0; right: 0; height: 2px; top: -1px; border-radius: 2px; }
  .g-label { left: 0; top: 0; transform: translateY(-50%); padding: 6px 10px; }
  .g-label small { display: none; }
  .f-top { position: relative; margin: 8px auto 0; max-width: 480px; }
}
@media (min-width: 1024px) {
  .funnel-sec { height: 280vh; }
  .funnel-sticky { position: sticky; top: 0; height: 100vh; min-height: 680px; display: flex; flex-direction: column; justify-content: center; padding-top: var(--nav-h); }
  .funnel-stage { height: clamp(280px, 38vh, 420px); flex: none; }
  .f-sources li { left: 0; top: calc((var(--v) * 2 + 1) / 6 * 100%); transform: translateY(-50%); }
  .funnel-stage { margin-top: 84px; margin-bottom: 72px; }
  .f-gate { top: 0; bottom: 0; left: calc(170px + var(--u) * (100% - 470px)); }
  .g-line { top: 4%; bottom: 4%; width: 2px; left: -1px; border-radius: 2px; }
  .g-label { top: -8px; left: 0; transform: translate(-50%, -100%); }
  .f-gate[data-gate="1"] .g-label { top: auto; bottom: -8px; transform: translate(-50%, 100%); }
  .f-top { position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 290px; }
  .funnel-note { margin-top: 0; }
}

/* ---------- How it works: see css/how.css ---------- */
.how { padding-top: clamp(96px, 12vw, 160px); }

.win {
  position: relative; border-radius: 18px; overflow: hidden;
  background: var(--card); border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}
.win-bar {
  display: flex; align-items: center; gap: 6px; padding: 11px 14px;
  border-bottom: 1px solid var(--border); background: var(--card-2);
  font-size: 12.5px; font-weight: 650; color: var(--text-3);
}
.win-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--border-strong); }
.win-bar span { margin-left: 8px; }
.win-body { padding: 18px; }

.w-chat { display: grid; gap: 8px; background: color-mix(in srgb, var(--wa-out) 14%, var(--card)); }
.wc-msg { max-width: 82%; padding: 8px 12px; border-radius: 12px; font-size: 14px; line-height: 1.45; color: var(--wa-text); box-shadow: 0 1px .5px rgba(11,20,26,.13); }
.wc-msg.in { background: var(--wa-in); border-top-left-radius: 4px; justify-self: start; }
.wc-msg.out { background: var(--wa-out); border-top-right-radius: 4px; justify-self: end; }
.wc-hr {
  display: flex; align-items: center; gap: 10px; margin-top: 6px; padding: 10px 12px; border-radius: 12px;
  background: var(--card); border: 1px dashed var(--border-strong);
}
.wc-hr-av { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--primary); color: #fff; font-size: 11px; font-weight: 750; }
.wc-hr b { display: block; font-size: 13.5px; }
.wc-hr small { font-size: 12px; color: var(--text-3); }

.ws-head { display: flex; align-items: center; gap: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.ws-num { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; flex: none; font-size: 24px; font-weight: 780; letter-spacing: -.03em; color: #fff; background: linear-gradient(140deg, #0766B5, #3F86CB); }
.ws-head b { display: block; font-size: 16px; }
.ws-head small { font-size: 13px; color: var(--text-3); }
.ws-head .pill { margin-left: auto; }
.pill { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 650; white-space: nowrap; }
.pill-ok { background: var(--ok-bg); color: var(--ok); }
/* "Coming soon" badge for features not live yet (WhatsApp interview) */
.soon {
  display: inline-block; vertical-align: middle; margin-left: 6px; padding: 2px 8px; border-radius: 999px;
  font-size: 11.5px; font-weight: 700; line-height: 1.5; letter-spacing: .02em; white-space: nowrap;
  color: var(--accent-text); background: var(--accent-soft);
}
.ws-rows { display: grid; }
.ws-rows li { display: grid; grid-template-columns: 92px 1fr; gap: 2px 12px; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.ws-rows li:last-child { border-bottom: 0; padding-bottom: 0; }
.ws-rows span:nth-child(2) { font-weight: 650; }
.ws-rows em { grid-column: 2; font-style: normal; color: var(--text-3); font-size: 13px; }
.st { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; grid-row: span 2; align-self: start; padding: 3px 8px 3px 6px; border-radius: 8px; width: max-content; }
.st .ic { width: 14px; height: 14px; stroke-width: 2.2; }
.st-met { color: var(--ok); background: var(--ok-bg); }
.st-part { color: var(--wait); background: var(--wait-bg); }
.st-miss { color: var(--late); background: var(--late-bg); }

.cal-days { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.cal-days span { display: grid; justify-items: center; gap: 2px; padding: 8px 0; border-radius: 12px; font-size: 12px; color: var(--text-3); border: 1px solid var(--border); }
.cal-days b { font-size: 17px; color: var(--text); }
.cal-days .on { background: var(--primary); border-color: var(--primary); color: rgba(255,255,255,.85); }
.cal-days .on b { color: #fff; }
.cal-slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.cal-slots span { display: inline-flex; align-items: center; justify-content: center; gap: 4px; padding: 9px 0; border-radius: 10px; font-size: 13.5px; font-weight: 650; border: 1px solid var(--border-strong); color: var(--text); }
.cal-slots .taken { color: var(--text-3); text-decoration: line-through; border-style: dashed; opacity: .7; }
.cal-slots .picked { background: var(--primary-soft); border-color: var(--primary); color: var(--primary-text); }
.cal-slots .ic { width: 14px; height: 14px; stroke-width: 2.4; }
.cal-confirm { display: grid; gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); }
.cal-confirm span { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--text-2); }
.cal-confirm .ic { width: 16px; height: 16px; color: var(--primary-text); }

.wd-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.wd-name { flex: 1; min-width: 0; line-height: 1.3; }
.wd-name b { display: block; font-size: 14.5px; }
.wd-name small { font-size: 12.5px; color: var(--text-3); }
.wd-btns { display: flex; gap: 6px; }
.mini-btn { padding: 6px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 650; border: 1px solid var(--border-strong); color: var(--text); }
.mini-btn.primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.wd-log { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 13px; color: var(--text-3); }
.wd-log .ic { width: 15px; height: 15px; }

.w-in { display: grid; }
.wi-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.wi-row:first-child { padding-top: 0; }
.wi-row:last-child { border-bottom: 0; padding-bottom: 0; }
.wi-ic { width: 34px; height: 34px; border-radius: 10px; flex: none; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary-text); }
.wi-ic .ic { width: 17px; height: 17px; }
.wi-name { flex: 1; min-width: 0; line-height: 1.3; }
.wi-name b { display: block; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wi-name b[dir="rtl"] { text-align: left; unicode-bidi: plaintext; }
.wi-name small { font-size: 12.5px; color: var(--text-3); }
.wi-row em { display: inline-flex; align-items: center; gap: 5px; font-style: normal; font-size: 12.5px; font-weight: 700; color: var(--ok); background: var(--ok-bg); padding: 3px 8px 3px 6px; border-radius: 8px; }
.wi-row em .ic { width: 14px; height: 14px; stroke-width: 2.2; }

/* ---------- Bento ---------- */
.platform { padding-top: clamp(96px, 12vw, 160px); }
.bento { display: grid; gap: 16px; }
@media (min-width: 768px) { .bento { grid-template-columns: repeat(2, 1fr); } .b-wide { grid-column: span 2; } }
@media (min-width: 1024px) {
  .bento { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .b-sources { grid-column: 1 / span 2; }
  .b-pool { grid-column: 3; }
  .b-mail { grid-column: 1; grid-row: 2; }
  .b-score { grid-column: 2 / span 2; grid-row: 2; }
  .b-fits { grid-column: 1 / span 2; grid-row: 3; }
  .b-compare { grid-column: 3; grid-row: 3; }
}
.bcard {
  position: relative; isolation: isolate;
  display: flex; flex-direction: column; gap: 24px;
  padding: 28px; border-radius: 24px; min-height: 340px;
  background: var(--card); border: 1px solid var(--border);
  box-shadow: var(--shadow-sm); overflow: hidden;
}
.b-wide { display: grid; grid-template-columns: 1fr; }
@media (min-width: 768px) {
  .b-wide { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; gap: 32px; }
}
.bcard::before { /* cursor-follow glow border */
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; z-index: 2; pointer-events: none;
  background: radial-gradient(320px circle at var(--mx, -400px) var(--my, -400px), color-mix(in srgb, var(--primary) 85%, transparent), color-mix(in srgb, var(--accent) 60%, transparent) 30%, transparent 62%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity 400ms var(--ease);
}
.bcard::after { /* soft inner glow */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, -400px) var(--my, -400px), color-mix(in srgb, var(--primary) 6%, transparent), transparent 60%);
  opacity: 0; transition: opacity 400ms var(--ease);
}
.bento.has-pointer .bcard::before, .bento.has-pointer .bcard::after { opacity: 1; }
.b-copy h3 { font-size: 21px; font-weight: 720; letter-spacing: -.02em; }
.b-copy p { margin-top: 8px; color: var(--text-2); font-size: 16px; max-width: 46ch; }
.b-vis { position: relative; margin-top: auto; min-height: 150px; }
.b-wide .b-vis { margin-top: 0; }

/* fits */
.vis-fits { display: grid; gap: 12px; }
.vf-cand { display: flex; align-items: center; gap: 10px; font-size: 13.5px; line-height: 1.3; }
.vf-cand b { display: block; font-size: 14.5px; }
.vf-cand small { color: var(--text-3); }
.vf-jobs { display: grid; gap: 8px; }
.vf-jobs li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--card); border: 1px solid var(--border); font-size: 13.5px; font-weight: 600; box-shadow: var(--shadow-sm); }
.vf-jobs li.also { border-style: dashed; color: var(--text-2); font-weight: 550; }
.vf-jobs li span { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.vf-jobs .ic { width: 14px; height: 14px; color: var(--accent-text); flex: none; }
.vf-score { font-style: normal; font-weight: 750; color: var(--primary-text); }
.bento .vf-jobs li.also { transition: transform 500ms var(--ease-spring); }
.bcard:hover .vf-jobs li.also { transform: translateX(6px); }
.bcard:hover .vf-jobs li.also + li.also { transform: translateX(12px); }
/* compare */
.vis-compare { display: flex; gap: 10px; align-items: flex-end; }
.vc-col { flex: 1; display: grid; justify-items: center; gap: 6px; padding: 14px 8px; border-radius: 14px; background: var(--card); border: 1px solid var(--border); box-shadow: var(--shadow-sm); transition: transform 500ms var(--ease-spring); }
.vc-col b { font-size: 20px; font-weight: 780; letter-spacing: -.02em; color: var(--primary-text); }
.vc-col i { width: 70%; height: 6px; border-radius: 3px; background: var(--border); }
.vc-col i.on { background: color-mix(in srgb, var(--primary) 70%, var(--card)); }
.bcard:hover .vc-col:nth-child(1) { transform: translateY(-8px); }
.bcard:hover .vc-col:nth-child(2) { transform: translateY(-4px); }

/* sources */
.vis-sources { display: grid; gap: 14px; }
.vs-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.vs-chips span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--card-2); border: 1px solid var(--border); }
.vs-chips .ic { width: 15px; height: 15px; color: var(--primary-text); }
.vs-stack { position: relative; height: 160px; }
.vs-doc {
  position: absolute; top: 10px; width: 112px; height: 136px; padding: 14px 12px; border-radius: 12px;
  background: var(--card); border: 1px solid var(--border); box-shadow: var(--shadow-md);
  display: grid; align-content: start; gap: 7px;
  transition: transform 600ms var(--ease-spring);
}
.vs-doc i { height: 6px; border-radius: 3px; background: var(--border); }
.vs-doc i:nth-child(1) { width: 70%; background: color-mix(in srgb, var(--primary) 30%, var(--border)); }
.vs-doc i:nth-child(3) { width: 55%; }
.vs-doc em { margin-top: auto; position: absolute; bottom: 12px; left: 12px; right: 12px; font-style: normal; font-size: 11.5px; font-weight: 650; color: var(--text-3); }
.vs-doc[dir="rtl"] em { text-align: right; font-size: 12.5px; }
.vs-doc.d1 { left: 0; transform: rotate(-6deg); }
.vs-doc.d2 { left: 84px; transform: rotate(1deg); z-index: 1; }
.vs-doc.d3 { left: 158px; transform: rotate(7deg); }
.vs-job {
  position: absolute; right: 0; bottom: -4px; z-index: 2;
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 12px;
  font-size: 13px; font-weight: 650; background: var(--ok-bg); color: var(--ok);
  transition: transform 500ms var(--ease-spring), opacity 400ms var(--ease);
}
.vs-job .ic { width: 15px; height: 15px; stroke-width: 2.4; }
.b-sources:hover .vs-doc.d1 { transform: translate3d(14px, -8px, 0) rotate(-2deg); }
.b-sources:hover .vs-doc.d2 { transform: translate3d(0, -14px, 0) rotate(0deg); }
.b-sources:hover .vs-doc.d3 { transform: translate3d(-14px, -8px, 0) rotate(2deg); }
.b-sources:hover .vs-job { transform: translate3d(0, -6px, 0) scale(1.04); }

/* pool */
.vis-pool { display: grid; gap: 10px; align-content: end; }
.vp-job { font-size: 13.5px; color: var(--text-2); padding: 10px 12px; border-radius: 12px; border: 1px dashed var(--border-strong); }
.vp-job b { color: var(--primary-text); margin-right: 6px; }
.vp-sugg { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 14px; background: var(--card); border: 1px solid var(--border); box-shadow: var(--shadow-md); }
.vp-sugg > span:nth-child(2) { flex: 1; min-width: 0; font-size: 13.5px; line-height: 1.3; }
.vp-sugg b { display: block; }
.vp-sugg small { color: var(--text-3); font-size: 12px; }
.vp-tag { display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 700; color: var(--accent-text); background: var(--accent-soft); }
.vp-tag .ic { width: 12px; height: 12px; }
.b-pool:hover .vp-sugg { animation: slide-in 700ms var(--ease-out); }
@keyframes slide-in { from { opacity: 0; transform: translate3d(28px, 0, 0); } to { opacity: 1; transform: none; } }

/* book */
.vis-book { display: grid; gap: 12px; align-content: end; }
.vb-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.vb-grid span { height: 30px; border-radius: 8px; background: var(--card-2); border: 1px solid var(--border); }
.vb-grid .t { background: repeating-linear-gradient(135deg, var(--border) 0 4px, transparent 4px 8px); }
.vb-grid .pick { background: var(--primary); border-color: var(--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 18%, transparent); }
.vb-chip { justify-self: start; display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 12px; font-size: 13px; font-weight: 650; background: var(--primary-soft); color: var(--primary-text); }
.vb-chip .ic { width: 15px; height: 15px; }
.b-book:hover .vb-grid .pick { animation: pick 900ms var(--ease-out); }
.b-book:hover .vb-chip { animation: slide-up 600ms var(--ease-out) 150ms both; }
@keyframes pick { 0% { transform: scale(1); } 35% { transform: scale(.82); } 70% { transform: scale(1.12); } 100% { transform: scale(1); } }
@keyframes slide-up { from { opacity: 0; transform: translate3d(0, 10px, 0); } to { opacity: 1; transform: none; } }

/* mail */
.vis-mail { padding: 8px 0; }
.vm-card { position: relative; padding: 16px; border-radius: 16px; background: var(--card); border: 1px solid var(--border); box-shadow: var(--shadow-md); transition: transform 600ms var(--ease-spring); }
.vm-row { display: flex; gap: 12px; padding: 6px 0; font-size: 13.5px; border-bottom: 1px solid var(--border); }
.vm-row span { width: 64px; flex: none; color: var(--text-3); }
.vm-row b { font-weight: 650; min-width: 0; overflow-wrap: anywhere; }
.vm-lines { display: grid; gap: 7px; padding-top: 12px; }
.vm-lines i { height: 6px; border-radius: 3px; background: var(--border); }
.vm-lines i.s { width: 60%; }
.vm-sent { position: absolute; right: -6px; top: -4px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 700; color: #fff; background: var(--primary); box-shadow: 0 10px 20px -10px rgba(7,102,181,.8); }
.vm-sent .ic { width: 14px; height: 14px; }
.b-mail:hover .vm-card { transform: translate3d(0, -6px, 0) rotate(-1deg); }
.b-mail:hover .vm-sent { animation: fly 900ms var(--ease-out); }
@keyframes fly { 0% { transform: translate3d(-30px, 14px, 0) scale(.8); opacity: 0; } 60% { opacity: 1; } 100% { transform: none; opacity: 1; } }

/* roles */
.vis-roles { display: grid; gap: 14px; }
.vr-roles { display: flex; flex-wrap: wrap; gap: 8px; }
.vr-roles span { padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 650; border: 1px solid var(--border-strong); }
.vr-roles span:nth-child(2) { background: var(--primary); border-color: var(--primary); color: #fff; }
.vr-log { display: grid; gap: 6px; }
.vr-log li { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 12px; background: var(--card-2); border: 1px solid var(--border); font-size: 13px; color: var(--text-2); }
.vr-log li b { color: var(--text); font-weight: 650; }
.vr-log .ic { width: 15px; height: 15px; color: var(--text-3); }
.vr-log time { margin-left: auto; color: var(--text-3); font-size: 12px; }
.vr-log li.new { background: var(--primary-soft); border-color: color-mix(in srgb, var(--primary) 30%, var(--border)); }
.vr-log li.new .ic { color: var(--primary-text); }
.b-roles:hover .vr-log li.new { animation: slide-down 600ms var(--ease-out); }
.b-roles:hover .vr-log li:not(.new) { animation: nudge 600ms var(--ease-out); }
@keyframes slide-down { from { opacity: 0; transform: translate3d(0, -14px, 0); } to { opacity: 1; transform: none; } }
@keyframes nudge { from { transform: translate3d(0, -40px, 0); } to { transform: none; } }

/* quality */
.vis-quality ul { display: grid; gap: 8px; }
.vis-quality li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--border); font-size: 14px; font-weight: 600; }
.q-ic { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--ok-bg); color: var(--ok); }
.q-ic .ic { width: 14px; height: 14px; stroke-width: 2.6; }
.b-quality:hover .q-ic { animation: pop 500ms var(--ease-spring) both; }
.b-quality:hover li:nth-child(2) .q-ic { animation-delay: 120ms; }
.b-quality:hover li:nth-child(3) .q-ic { animation-delay: 240ms; }
@keyframes pop { 0% { transform: scale(.4); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }

/* ---------- Highlight block (blue): Booking ---------- */
.booking { padding-top: clamp(96px, 12vw, 160px); }
.hl-block {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; gap: 40px;
  padding: clamp(28px, 5vw, 72px);
  border-radius: clamp(24px, 3vw, 36px);
  background: linear-gradient(150deg, #0A6CBD 0%, #0766B5 45%, #05558F 100%);
  color: #fff;
  box-shadow: 0 40px 80px -40px rgba(7, 102, 181, .6);
}
.hl-block::before {
  content: ""; position: absolute; z-index: -1; right: -10%; top: -30%; width: 70%; height: 120%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, .16), transparent 70%);
}
.hl-block::after {
  content: ""; position: absolute; z-index: -1; left: -10%; bottom: -40%; width: 60%; height: 90%;
  background: radial-gradient(closest-side, rgba(240, 122, 94, .28), transparent 70%);
}
.hl-block .h2 { color: #fff; }
.hl-block .tone-2 { color: var(--peach); --hl: rgba(255, 255, 255, .14); } /* a light marker: coral over blue reads as a smudge */
.sb-lede { margin-top: 18px; font-size: 18px; color: rgba(255, 255, 255, .86); max-width: 46ch; }
.rules { display: grid; gap: 4px; margin-top: 32px; }
.rules li { display: flex; gap: 14px; padding: 14px 0; border-top: 1px solid rgba(255, 255, 255, .18); font-size: 16px; line-height: 1.5; color: rgba(255, 255, 255, .86); }
.rules li b { color: #fff; font-weight: 700; }
.r-ic { width: 34px; height: 34px; border-radius: 10px; flex: none; display: grid; place-items: center; background: rgba(255, 255, 255, .13); border: 1px solid rgba(255,255,255,.18); }
.r-ic .ic { width: 17px; height: 17px; color: #fff; }
@media (min-width: 1024px) { .hl-block { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; } }

/* Booking picture: the candidate's booking card over the team calendar (MOBILE_DESIGN.md v3, 6) */
/* 768-1199: one column in the phone order (H2, sub, picture, points), the picture at most 600px wide */
@media (min-width: 768px) and (max-width: 1199px) {
  .hl-block.bk-block { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .bk-copy { display: contents; }
  .bk-block .h2 { order: 1; }
  .bk-block .sb-lede { order: 2; }
  .bk-block .bk-vis { order: 3; width: 100%; max-width: 600px; margin-top: 32px; }
  .bk-block .rules { order: 4; }
}
/* 1200 and up: two equal columns; the short copy is centred against the calendar picture, which sets the height */
@media (min-width: 1200px) {
  .hl-block.bk-block { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; padding: 56px; align-items: center; }
  .bk-block .h2 { font-size: clamp(2.25rem, 3.3vw, 2.75rem); }
  .bk-block .sb-lede { margin-top: 16px; font-size: 18px; }
  .bk-block .rules { margin-top: 24px; gap: 0; }
  .bk-block .rules li { padding: 12px 0; font-size: 16px; line-height: 1.5; }
}
/* the nav link lands with the block just under the header */
#booking { scroll-margin-top: calc(16px - clamp(96px, 12vw, 160px)); }
.bk-vis { position: relative; display: flex; flex-direction: column; align-items: flex-start; min-width: 0; color: var(--text); }
.bk-book, .bk-cal { background: var(--card); border: 1px solid var(--border); border-radius: 20px; box-shadow: var(--shadow-lg); }
.bk-book { position: relative; z-index: 2; width: 280px; max-width: 100%; padding: 16px; transform: rotate(-1.5deg); }
.bk-book .fc-head { margin-bottom: 14px; }
.bk-slots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.bk-slot {
  position: relative; isolation: isolate; height: 36px; display: grid; place-items: center; border-radius: 999px;
  border: 1px solid var(--border); font-size: 13px; font-weight: 650; color: var(--text); font-variant-numeric: tabular-nums; white-space: nowrap;
}
.bk-pick { border-color: var(--primary); color: transparent; }
.bk-pick::before { content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: inherit; background: var(--primary); }
.bk-pick::after { content: "Tue 10:30"; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; }
.bk-btn { display: grid; margin-top: 10px; height: 36px; border-radius: 999px; background: var(--primary); color: #fff; font-size: 14px; font-weight: 700; overflow: hidden; }
.bk-btn > span { grid-area: 1 / 1; display: flex; align-items: center; justify-content: center; gap: 6px; }
.bk-booked { background: var(--ok); color: #fff; }
:root.is-dark .bk-booked { color: #0B1220; }
.bk-booked .ic { width: 16px; height: 16px; stroke-width: 2.4; }
.bk-confirm { opacity: 0; }
.bk-cal { align-self: stretch; position: relative; z-index: 1; margin-top: -8px; padding: 16px; min-width: 0; }
.bk-chead { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 12px; line-height: 1.3; }
.bk-chead b { font-size: 15px; font-weight: 700; }
.bk-chead small { grid-column: 1; font-size: 13px; color: var(--text-3); }
.bk-seg { grid-column: 2; grid-row: 1 / span 2; display: inline-flex; height: 28px; padding: 2px; border-radius: 999px; border: 1px solid var(--border); font-size: 12.5px; font-weight: 650; color: var(--text-3); }
.bk-seg span { display: grid; place-items: center; padding: 0 10px; border-radius: 999px; }
.bk-seg .is-on { background: var(--primary-soft); color: var(--primary-text); }
.bk-grid {
  display: grid; grid-template-columns: 44px repeat(5, minmax(0, 1fr)); grid-template-rows: 24px repeat(4, 56px); gap: 6px; margin-top: 12px;
  background-image: repeating-linear-gradient(180deg, var(--border) 0 1px, transparent 1px 62px);
  background-repeat: no-repeat; background-position: 0 30px; background-size: 100% calc(100% - 30px);
}
.bk-grid .c1 { grid-column: 2; } .bk-grid .c2 { grid-column: 3; } .bk-grid .c3 { grid-column: 4; } .bk-grid .c4 { grid-column: 5; } .bk-grid .c5 { grid-column: 6; }
.bk-grid .r1 { grid-row: 2; } .bk-grid .r2 { grid-row: 3; } .bk-grid .r3 { grid-row: 4; } .bk-grid .r4 { grid-row: 5; }
.bk-day { grid-row: 1; align-self: center; text-align: center; font-size: 12.5px; font-weight: 700; color: var(--text-3); white-space: nowrap; }
.bk-grid time { grid-column: 1; padding-top: 6px; font-size: 12.5px; font-weight: 600; color: var(--text-3); font-variant-numeric: tabular-nums; }
.bk-ev {
  position: relative; display: grid; align-content: center; gap: 2px; min-width: 0; padding: 6px 8px 6px 9px;
  border-radius: 8px; background: var(--primary-soft); border-left: 3px solid var(--primary); line-height: 1.25;
}
.bk-ev b { font-size: 13px; font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; }
.bk-ev small { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 600; color: var(--text-2); white-space: nowrap; overflow: hidden; }
.bk-ev small .ic { width: 12px; height: 12px; }
.bk-tech { background: color-mix(in srgb, var(--bk-tech) 10%, var(--card)); border-left-color: var(--bk-tech); }
.bk-new { isolation: isolate; background: none; border-left-color: transparent; }
.bk-new::before { content: ""; position: absolute; inset: 0 0 0 -3px; z-index: -1; border-radius: inherit; background: color-mix(in srgb, var(--accent-soft) 70%, var(--card)); border-left: 3px solid var(--accent); }
.bk-new::after {
  content: "Offered"; position: absolute; inset: 0 0 0 -3px; display: grid; place-items: center; border-radius: inherit;
  border: 1px dashed var(--border-strong); background: var(--card); color: var(--text-3); font-size: 12.5px; font-weight: 600; opacity: 0;
}
.bk-off { background: transparent; border: 1px dashed var(--border-strong); place-items: center; color: var(--text-3); font-size: 12.5px; font-weight: 600; opacity: 0; }
.bk-legend { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 12px; font-size: 13px; color: var(--text-3); }
.bk-legend span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.bk-legend span::before { content: ""; width: 10px; height: 4px; border-radius: 2px; background: var(--primary); }
.bk-legend .lg-tech::before { background: var(--bk-tech); }
.bk-chip {
  position: absolute; z-index: 3; bottom: -14px; right: 16px; display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px;
  border-radius: 999px; background: var(--card); box-shadow: var(--shadow-md); color: var(--primary-text); font-size: 13px; font-weight: 700; white-space: nowrap;
}
.bk-chip .ic { width: 16px; height: 16px; }
/* the play (6.5): the final state is the default, so no-JS and reduced motion show it; .is-play runs it once */
.js .bk-vis:not(.is-play) .bk-pick { color: var(--text); border-color: var(--border); }
.js .bk-vis:not(.is-play) .bk-pick::before, .js .bk-vis:not(.is-play) .bk-pick::after { opacity: 0; }
.js .bk-vis:not(.is-play) .bk-confirm { opacity: 1; }
.js .bk-vis:not(.is-play) .bk-booked { opacity: 0; }
.js .bk-vis:not(.is-play) .bk-off { opacity: 1; }
.js .bk-vis:not(.is-play) .bk-new::after { opacity: 1; }
.js .bk-vis:not(.is-play) .bk-new::before, .js .bk-vis:not(.is-play) .bk-new > * { opacity: 0; transform: scale(.92); }
.js .bk-vis:not(.is-play) .bk-chip { opacity: 0; transform: translate3d(0, 8px, 0); }
.bk-vis.is-play .bk-pick { animation: bk-press 240ms var(--ease) 300ms both; transition: color 0s linear 360ms, border-color 0s linear 360ms; }
.bk-vis.is-play .bk-pick::before, .bk-vis.is-play .bk-pick::after { transition: opacity 240ms var(--ease) 360ms; }
.bk-vis.is-play .bk-confirm, .bk-vis.is-play .bk-booked { transition: opacity 240ms var(--ease) 700ms; }
.bk-vis.is-play .bk-off, .bk-vis.is-play .bk-new::after { transition: opacity 300ms var(--ease) 1100ms; }
.bk-vis.is-play .bk-new::before, .bk-vis.is-play .bk-new > * { transition: opacity 420ms var(--ease) 1100ms, transform 420ms var(--ease-spring) 1100ms; }
.bk-vis.is-play .bk-chip { transition: opacity 320ms var(--ease) 1700ms, transform 320ms var(--ease-out) 1700ms; }
@keyframes bk-press { 0% { transform: scale(1); } 50% { transform: scale(.96); } 100% { transform: scale(1); } }

/* Product score card (5.1, 5.2) */
.sw-card { padding: 18px 20px; border-radius: 16px; background: var(--card); border: 1px solid var(--border); box-shadow: var(--shadow-md); display: grid; gap: 12px; }
.sw-head { display: flex; align-items: center; gap: 12px; }
.sw-head > div { flex: 1; min-width: 0; line-height: 1.3; text-wrap: balance; }
.sw-head b { display: block; font-size: 16px; }
.sw-head small { font-size: 13px; color: var(--text-3); }
.sw-score { display: grid; justify-items: end; line-height: 1; }
.sw-score b { font-size: 36px; font-weight: 780; letter-spacing: -.035em; color: var(--primary-text); font-variant-numeric: tabular-nums; }
.sw-score small { margin-top: 4px; font-size: 12.5px; font-weight: 700; color: var(--ok); }
.sw-label { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); padding-top: 12px; border-top: 1px solid var(--border); }
.sw-reasons { display: grid; gap: 8px; }
.sw-reasons li { display: flex; align-items: center; gap: 10px; font-size: 14.5px; font-weight: 550; }
.sw-reasons .ic { width: 18px; height: 18px; flex: none; stroke-width: 2.4; padding: 2px; border-radius: 6px; }
.sw-reasons .met .ic { color: var(--ok); background: var(--ok-bg); }
.sw-reasons .miss { color: var(--text-2); }
.sw-reasons .miss .ic { color: var(--late); background: var(--late-bg); }
.sw-reasons em { font-style: normal; font-size: 12.5px; color: var(--text-3); font-weight: 500; }
.sw-foot { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; background: var(--card-2); font-size: 13px; color: var(--text-2); font-weight: 550; }
.sw-foot .ic { width: 16px; height: 16px; color: var(--primary-text); }
@media (min-width: 768px) {
  .js .b-score .sw-reasons li { opacity: 0; transform: translate3d(-8px, 0, 0); }
  .js .b-score.is-in .sw-reasons li { opacity: 1; transform: none; transition: opacity 500ms var(--ease-out), transform 600ms var(--ease-out); }
  .js .b-score.is-in .sw-reasons li:nth-child(2) { transition-delay: 120ms; }
  .js .b-score.is-in .sw-reasons li:nth-child(3) { transition-delay: 240ms; }
  .js .b-score.is-in .sw-reasons li:nth-child(4) { transition-delay: 360ms; }
}

/* ---------- FAQ ---------- */
.faq { padding-top: clamp(96px, 12vw, 160px); }
.faq-grid { display: grid; gap: 32px; }
.faq-head .sub { margin-top: 14px; }
@media (min-width: 1024px) { .faq-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 72px; } .faq-head { position: sticky; top: calc(var(--nav-h) + 32px); align-self: start; } }
.qa { border-bottom: 1px solid var(--border); }
.qa:first-child { border-top: 1px solid var(--border); }
.qa summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 64px; padding: 18px 0; cursor: pointer; list-style: none;
  font-size: 18px; font-weight: 650; letter-spacing: -.01em;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover > span { color: var(--primary-text); }   /* not the nested .soon badge */
.qa-ic {
  width: 32px; height: 32px; padding: 7px; border-radius: 50%; border: 1px solid var(--border-strong);
  transition: transform 300ms var(--ease-out), background-color 300ms var(--ease), color 300ms var(--ease), border-color 300ms var(--ease);
}
.qa[open] .qa-ic { transform: rotate(45deg); background: var(--primary); border-color: var(--primary); color: #fff; }
.qa-body p { padding: 0 48px 22px 0; color: var(--text-2); font-size: 16.5px; }
.qa::details-content { block-size: 0; overflow: clip; transition: block-size 340ms var(--ease-out), content-visibility 340ms allow-discrete; }
.qa[open]::details-content { block-size: auto; }

/* ---------- Demo ---------- */
.demo { margin-top: clamp(96px, 12vw, 160px); padding: clamp(80px, 10vw, 140px) 0; overflow: clip; isolation: isolate; }
.demo::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: linear-gradient(180deg, var(--bg) 0%, color-mix(in srgb, var(--primary-soft) 70%, var(--bg)) 45%, color-mix(in srgb, var(--accent-soft) 80%, var(--bg)) 100%);
}
.ribbon { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.ribbon svg { position: absolute; left: -15%; top: 0; width: 130%; height: 100%; animation: ribbon-drift 26s ease-in-out infinite alternate; will-change: transform; }
:root.is-dark .ribbon { opacity: .55; }
@keyframes ribbon-drift { from { transform: translate3d(-5%, 10px, 0) scaleY(.94); } to { transform: translate3d(4%, -12px, 0) scaleY(1.06); } }
.demo-grid { display: grid; gap: 40px; align-items: start; }
@media (min-width: 1024px) { .demo-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 72px; } }
.demo-copy .sub { margin-top: 18px; }
.demo-points { display: grid; gap: 12px; margin-top: 28px; }
.demo-points li { display: flex; gap: 12px; align-items: flex-start; font-size: 16.5px; color: var(--text-2); }
.demo-points .ic { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--card); color: var(--primary-text); stroke-width: 2.6; box-shadow: var(--shadow-sm); margin-top: 1px; }

.form-card {
  padding: clamp(22px, 3vw, 36px); border-radius: 28px;
  background: color-mix(in srgb, var(--card) 88%, transparent);
  backdrop-filter: blur(20px) saturate(1.3); -webkit-backdrop-filter: blur(20px) saturate(1.3);
  border: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
  box-shadow: var(--shadow-lg);
}
.form-grid { display: grid; gap: 4px 16px; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } .field-full { grid-column: 1 / -1; } }
.field { display: grid; gap: 6px; align-content: start; }
.field > label { font-size: 14.5px; font-weight: 650; }
.optional { font-weight: 500; color: var(--text-3); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 11px 14px; border-radius: 12px;
  background: var(--card); border: 1px solid var(--border-strong); color: var(--text); font-size: 16px;
  transition: border-color var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.field textarea { resize: vertical; min-height: 92px; }
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%235F6B7D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 18px;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--text-3); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 18%, transparent);
}
.field.is-invalid input, .field.is-invalid select { border-color: var(--late); }
.field.is-invalid input:focus, .field.is-invalid select:focus { box-shadow: 0 0 0 4px color-mix(in srgb, var(--late) 16%, transparent); }
.phone { display: grid; grid-template-columns: 116px 1fr; gap: 8px; }
.field-hint { font-size: 13px; color: var(--text-3); }
.field-error { min-height: 20px; font-size: 13.5px; color: var(--late); font-weight: 550; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; color: var(--text-2); }
.check input { width: 22px; height: 22px; margin: 1px 0 0; flex: none; accent-color: var(--primary); cursor: pointer; }
.check label { cursor: pointer; }
.hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-alert {
  display: flex; gap: 12px; margin: 4px 0 16px; padding: 14px 16px; border-radius: 14px;
  background: var(--late-bg); color: var(--text); font-size: 14.5px;
}
.form-alert[hidden] { display: none; }
.form-alert > .ic { color: var(--late); margin-top: 2px; }
.form-alert .btn { margin-top: 10px; }
.form-success { text-align: center; padding: 40px 12px; }
.form-success:focus { outline: none; }
.success-ic { width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; background: var(--ok-bg); color: var(--ok); animation: pop 600ms var(--ease-spring) both; }
.success-ic .ic { width: 30px; height: 30px; stroke-width: 2.4; }
.form-success h3 { font-size: 24px; letter-spacing: -.02em; }
.form-success p { margin-top: 8px; color: var(--text-2); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 56px 0 28px; }
.footer-inner { display: grid; gap: 32px; }
@media (min-width: 768px) { .footer-inner { grid-template-columns: 1fr auto; align-items: start; } }
.footer-logo { display: inline-block; padding: 8px 0; }
.footer-logo img { height: 22px; width: auto; }
.footer-brand p { margin-top: 12px; color: var(--text-3); font-size: 15px; max-width: 42ch; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 8px; }
.footer-links a, .footer-base a { color: var(--text-2); text-decoration: none; font-size: 15px; font-weight: 550; padding: 10px 8px; min-height: 44px; display: inline-flex; align-items: center; }
.footer-links a:hover, .footer-base a:hover { color: var(--text); }
.footer-base { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--border); color: var(--text-3); font-size: 14px; }
.footer-by { color: var(--text-3); font-weight: 500; }
.footer-by::before { content: "·"; margin: 0 8px; }
@media (max-width: 767px) { .footer-base { align-items: flex-start; } .footer-base a { margin: -12px -8px 0 0; } /* the link text sits on the copyright's line; the 44px hit area reaches into the padding above */ .footer-by { display: block; margin-top: 2px; } .footer-by::before { content: none; } }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0ms !important; }
  .js .display .w, .js .hero-lede, .js .hero-ctas, .js .stage, .js [data-reveal] { opacity: 1 !important; filter: none !important; transform: none !important; }
  .js .shortlist-card .mini-list li { opacity: 1 !important; transform: none !important; }
  .js .f-top .top-card { opacity: 1 !important; transform: none !important; }
  .glint { display: none; }
}

/* ==========================================================================
   PHONES (below 768px). docs/website/MOBILE_DESIGN.md, pass 4, with section 3A
   (Apple design language). Every rule below sits in a max-width: 767px query,
   so tablets and desktop compute exactly as before.
   ========================================================================== */
.menu-theme { display: none; }

@media (max-width: 767px) {
  /* ---------- Tokens (AP1-AP5, AP10) ---------- */
  :root {
    --nav-h: 56px;
    --gutter: max(20px, env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
    --sec-gap: 64px;
    --r-block: 28px; --r-card: 20px; --r-in: 12px;
    --ease-ios: cubic-bezier(.32, .72, 0, 1);
    --m-fast: 160ms; --m: 240ms; --m-slow: 320ms;
    --chrome-fill: color-mix(in srgb, var(--text) 8%, transparent);
  }
  html { scroll-padding-top: calc(var(--nav-h) + env(safe-area-inset-top, 0px) + 8px); }
  body { font-size: 1rem; line-height: 1.5; }
  a, button, summary, label, select, input, textarea { touch-action: manipulation; }

  /* continuous corners where the browser has them (AP5) */
  @supports (corner-shape: squircle) {
    .chat, .hl-block, .form-card, .bcard, .bcard .b-vis, .how .hx-step, .how .hx-scene,
    .faq-list, .f-top, .field input, .field select, .field textarea { corner-shape: squircle; } /* never on 999px capsules */
  }

  /* ---------- Type ramp (AP1, AP2) ---------- */
  .display { font-size: min(2.5rem, 11.5vw); line-height: 1.05; } /* the vw cap only bites at large text sizes */
  .h2 { font-size: 1.875rem; line-height: 1.12; letter-spacing: -.03em; }
  .sub { font-size: 1rem; line-height: 1.5; }
  .lede { font-size: 1.0625rem; line-height: 1.5; }
  .tone-2 { transition: none; }
  .js .tone-2:not(.is-lit) { background-size: 100% 100%; }

  /* ---------- Header: thick material + hairline (AP6) ---------- */
  .nav { padding-top: env(safe-area-inset-top, 0px); }
  .nav::before {
    opacity: 1;
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid transparent;
    transition: border-color var(--m-fast) var(--ease);
  }
  .nav.is-scrolled::before { border-bottom-color: var(--border); }
  .nav.menu-is-open::before { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .nav::after {
    content: ""; position: fixed; inset: 0; z-index: -1; background: rgba(0, 0, 0, .4);
    opacity: 0; visibility: hidden; transition: opacity var(--m-fast) var(--ease), visibility 0s linear var(--m-fast);
  }
  .nav.menu-is-open::after { opacity: 1; visibility: visible; transition: opacity var(--m) var(--ease), visibility 0s; }
  .nav.menu-is-open .nav-cta { opacity: 0; visibility: hidden; }
  .nav-inner { height: var(--nav-h); gap: 12px; }
  .nav-logo { padding: 13px 0; }
  .nav-logo img { height: 18px; }
  .nav-actions { gap: 8px; }
  .nav-actions > [data-theme-toggle] { display: none; }
  .nav-cta {
    display: inline-flex; position: relative; margin-left: 0;
    --bh: 36px; padding: 0 14px; font-size: min(.9375rem, 16px); font-weight: 600; /* the header keeps its size at large text, like a system bar */
    transition: opacity var(--m-fast) var(--ease), visibility 0s;
  }
  .nav-cta::after { content: ""; position: absolute; inset: -4px 0; } /* 44px hit area (AP4) */
  .btn-primary, .btn-primary:active { box-shadow: var(--shadow-sm); } /* AP12: no glow or inner highlight on buttons */
  .nav-cta.btn-primary, .nav-cta.btn-primary:active { box-shadow: none; }
  .nav-cta.is-hidden { opacity: 0; visibility: hidden; transition: opacity 110ms var(--ease), visibility 0s linear 110ms; }

  /* menu sheet: scrollable, opaque, with the theme switch row */
  .menu-sheet {
    max-height: calc(100dvh - var(--nav-h) - env(safe-area-inset-top, 0px));
    overflow-y: auto; overscroll-behavior: contain;
    padding: 8px var(--gutter) calc(24px + env(safe-area-inset-bottom, 0px));
    transition: opacity 180ms var(--ease), transform 240ms var(--ease-ios);
  }
  .menu-sheet nav a { display: flex; align-items: center; font-size: 1.25rem; }
  .menu-theme {
    display: flex; align-items: center; gap: 12px; width: 100%; min-height: 52px; padding: 0 4px;
    border: 0; border-bottom: 1px solid var(--border); background: none; color: var(--text);
    font-size: 1.0625rem; font-weight: 600; text-align: left; margin-top: -16px;
  }
  .menu-theme > .ic { color: var(--text-2); }
  .mt-label { flex: 1; }
  .mt-switch {
    position: relative; flex: none; width: 51px; height: 31px; border-radius: 999px;
    background: color-mix(in srgb, var(--text) 16%, transparent);
    transition: background-color var(--m) var(--ease);
  }
  .mt-switch i {
    position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%;
    background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .2);
    transition: transform var(--m) var(--ease-ios);
  }
  .menu-theme[aria-checked="true"] .mt-switch { background: #34C759; }
  .menu-theme[aria-checked="true"] .mt-switch i { transform: translateX(20px); }

  /* ---------- Hero (v2, section 3): the four desktop cards, re-stacked as a cascade ---------- */
  .hero { padding-top: calc(var(--nav-h) + env(safe-area-inset-top, 0px) + 16px); }
  .hero-copy { padding: 0 var(--gutter); }
  .eyebrow { margin-bottom: 12px; padding: 0 12px; height: 28px; font-size: .8125rem; font-weight: 650; }
  .hero-lede { max-width: 34ch; margin-top: 12px; }
  .hero-ctas { flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 4px; margin-top: 20px; }
  .hero-ctas .btn-primary { --bh: 50px; width: 100%; font-size: 1.0625rem; }
  /* "See how it works ›": a text link with a 44px hit area */
  .hero-ctas .btn-ghost, .hero-ctas .btn-ghost:hover {
    --bh: 44px; width: auto; align-self: center; padding: 0 8px; gap: 6px;
    background: none; border: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none;
    color: var(--primary-text); font-size: 1.0625rem; font-weight: 600;
  }
  .hero-ctas .btn-ghost .ic { display: none; }
  .hero-ctas .btn-ghost::after { content: ""; flex: none; width: 7px; height: 7px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); }
  /* no entrance on phones: the H1 is the LCP element and paints at once */
  .js .display .w, .js .hero.is-loaded .display .w { display: inline; opacity: 1; filter: none; transform: none; transition: none; }
  /* locked H1 breaks: "Every applicant / heard. / Only the best / shortlisted." Plain greedy wrapping
     gives exactly these breaks (balance would give "Only the / best shortlisted."), with or without JS */
  .display .line { text-wrap: wrap; }
  .js .hero-lede, .js .hero-ctas, .js .stage,
  .js .hero.is-loaded .hero-lede, .js .hero.is-loaded .hero-ctas, .js .hero.is-loaded .stage { opacity: 1; transform: none; transition: none; }

  /* stage: normal flow, story order chat -> job card -> score card -> shortlist; only the glow is absolute */
  .stage {
    position: relative; display: flex; flex-direction: column; align-items: flex-start;
    height: auto; max-width: none; perspective: none; margin: 20px var(--gutter) 0; padding-bottom: 8px;
  }
  .chat-wrap { display: contents; }
  .sculpture { display: block; position: absolute; left: 50%; top: 20px; width: 120%; height: 420px; margin: 0; transform: translateX(-50%); z-index: 0; }
  .sc-glow { filter: none; animation: none; }

  /* chat window: solid, fixed height (messages arriving never move the page) */
  .chat {
    order: 1; z-index: 1; align-self: stretch; width: auto;
    /* the hero's main object: about two thirds of the visible screen under the header (v3.2) */
    height: 420px; height: clamp(420px, (100svh - 56px) * .66, 600px); min-height: 0; transform: none;
    background: var(--card); border: 1px solid var(--border); border-radius: var(--r-card);
    -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: var(--shadow-md);
  }
  .glass-sheen, .chat::after { display: none; }
  .chat-head {
    display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; grid-template-areas: "av t t" "av s chip";
    align-items: center; column-gap: 10px; row-gap: 2px; padding: 9px 12px; background: var(--card-2);
  }
  .chat-avatar { grid-area: av; width: 36px; height: 36px; }
  .chat-title { display: contents; }
  .chat-title b { grid-area: t; font-size: .9375rem; }
  .chat-title small { grid-area: s; min-width: 0; font-size: .8125rem; white-space: nowrap; }
  .lang-chip { grid-area: chip; margin: 0; padding: 0 8px; font-size: .8125rem; line-height: 1.35; }
  .lang-chip .lc-ar { font-size: .8125rem; }
  .chat-view {
    display: flex; flex-direction: column; justify-content: flex-start; overflow: hidden;
    padding: 10px 14px; -webkit-mask-image: none; mask-image: none;
    background: color-mix(in srgb, var(--wa-out) 12%, var(--card));
  }
  .chat.is-done .chat-view, .chat.is-static .chat-view { overflow-y: auto; }
  .chat-track { will-change: auto; gap: 8px; }
  .chat-day { margin: 0 0 6px; }
  .msg { font-size: 1rem; line-height: 1.42; padding: 8px 12px 7px; max-width: 86%; }
  .msg.ar { font-size: 1.0625rem; }
  .quiz-tag { font-size: .8125rem; }
  /* nothing readable under 13px on phones (A7) */
  .msg .meta, .chat-day span, .chat-title small { font-size: .8125rem; }
  .chat-day span { padding: 2px 8px; }
  .ml-av { font-size: .8125rem; }

  /* the three cards over the chat: one card style, alternating sides, slightly rotated */
  .float-card {
    display: block; position: relative; left: auto; top: auto;
    background: var(--card); -webkit-backdrop-filter: none; backdrop-filter: none;
    border: 1px solid var(--border); box-shadow: var(--shadow-md);
  }
  .float-card, .score-pop { padding: 16px; border-radius: var(--r-card); }
  .req-card { order: 2; z-index: 2; align-self: flex-start; width: 80%; max-width: 320px; margin-top: 12px; --rot: -2deg; transform: rotate(var(--rot)); }
  .score-pop {
    order: 3; z-index: 3; position: relative; left: auto; right: auto; top: auto; bottom: auto;
    align-self: flex-end; width: 76%; max-width: 300px; margin-top: -6px; box-shadow: var(--shadow-md); /* -8px less the 2px the rotated corners add */
    --rot: 2deg; opacity: 0; transform: rotate(var(--rot)) translate3d(0, 8px, 0) scale(.94);
    transition: opacity var(--m-slow) var(--ease-ios), transform var(--m-slow) var(--ease-ios);
  }
  .score-pop.is-out { opacity: 1; transform: rotate(var(--rot)); }
  .shortlist-card { order: 4; z-index: 4; align-self: flex-start; width: 82%; max-width: 320px; margin-top: -8px; --rot: -1.5deg; transform: rotate(var(--rot)); }
  .fc-head b { font-size: .9375rem; }
  .fc-head small, .fc-foot, .req-list li, .sp-reasons li, .sp-top small, .ml-name small { font-size: .8125rem; }
  .fc-ic { width: 32px; height: 32px; }
  .req-list { gap: 4px; }
  .sp-score { width: 48px; height: 48px; }
  .mini-list { gap: 2px; }
  .mini-list li { min-height: 40px; padding: 4px 8px; gap: 10px; }
  .ml-name { font-size: .875rem; line-height: 1.18; }
  .ml-score { font-size: .9375rem; }
  .shortlist-card .ml-av { width: 28px; height: 28px; }
  /* row pitch 42px (40px row + 2px gap) */
  .js .shortlist-card:not(.has-new) .mini-list li:not(.ml-new) { transform: translate3d(0, -42px, 0); }

  /* ---------- Section rhythm (AP3) ---------- */
  #funnel, #product, #booking, #faq { padding-top: var(--sec-gap); }
  #funnel { margin-top: 0; }
  #how, #demo { margin-top: var(--sec-gap); padding: 56px 0 48px; }
  #how { padding: 48px 0 48px; }
  .sec-head { margin-bottom: 24px; }
  .sec-head .sub, .faq-head .sub { margin-top: 12px; }

  /* no scroll reveals on phones: everything is in place at load (v2, O6) */
  .js [data-reveal], .js [data-reveal].is-in { opacity: 1; transform: none; transition: none; }

  /* ---------- Funnel (v3, section 4): an animated vertical funnel, top to bottom ---------- */
  .funnel-head { text-align: left; }
  .funnel-head .h2, .funnel-head .sub { margin-left: 0; margin-right: 0; }
  .funnel-head .sub { margin-top: 12px; }
  .funnel-stage {
    --fh: 190px; --fh: clamp(190px, 100svh - 472px, 248px);
    position: relative; height: auto; padding-top: var(--fh); margin: 16px var(--gutter) 0; width: auto;
  }
  .funnel-canvas { display: block; position: absolute; left: 0; right: 0; top: 0; bottom: auto; width: 100%; height: var(--fh); }
  .f-sources li {
    position: absolute; top: 0; left: calc((var(--v) * 2 + 1) / 6 * 100%); transform: translateX(-50%);
    height: 28px; padding: 0; background: none; border: 0; box-shadow: none; gap: 4px;
    font-size: .8125rem; font-weight: 650; color: var(--text-2); white-space: nowrap;
  }
  .f-sources li .ic { width: 14px; height: 14px; }
  .f-gates { position: absolute; inset: 0 0 auto 0; height: var(--fh); margin: 0; }
  .f-gate { position: absolute; left: 0; right: 0; bottom: auto; top: calc(32px + var(--gu) * (var(--fh) - 32px)); height: 0; }
  .f-gate[data-gate="0"] { --gu: .28; --hw: .14; }
  .f-gate[data-gate="1"] { --gu: .57; --hw: .113; }
  .f-gate[data-gate="2"] { --gu: .86; --hw: .089; } /* hw(u) at each gate, as a share of W */
  .g-line {
    position: absolute; top: -1px; height: 2px; width: auto; bottom: auto;
    left: calc(50% - var(--hw) * 100%); right: calc(50% - var(--hw) * 100%);
    border-radius: 2px; background: var(--fp-wall); box-shadow: none;
  }
  .f-gate.is-on .g-line { background: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 16%, transparent); }
  .g-label, .f-gate.is-on .g-label {
    position: absolute; inset: 0; transform: none; padding: 0; border: 0; border-radius: 0;
    background: none; box-shadow: none; white-space: normal;
  }
  .g-label b {
    position: absolute; right: calc(50% + var(--hw) * 100% + 8px); top: 0; transform: translateY(-50%);
    font-size: .9375rem; line-height: 1.25; text-align: right; color: var(--text-3); white-space: nowrap;
  }
  /* the right-anchored label has no room beside it: the "Coming soon" badge stacks under the word */
  .g-label b .soon { display: block; width: max-content; margin: 3px 0 0 auto; }
  .g-label small {
    display: block; position: absolute; left: calc(50% + var(--hw) * 100% + 8px); right: 0; top: 0;
    transform: translateY(-50%); font-size: .8125rem; line-height: 1.3; color: var(--text-3);
    transition: color 500ms var(--ease);
  }
  .f-gate.is-on .g-label b { color: var(--primary-text); }
  .f-gate.is-on .g-label small { color: var(--text-2); }
  /* the ranked list keeps v2's inset grouped look; its rows drop in when the play reaches it */
  .f-top {
    margin: 8px 0 0; max-width: none; gap: 0; grid-template-columns: minmax(0, 1fr);
    background: var(--card); border: 1px solid var(--border); border-radius: var(--r-card); overflow: hidden;
  }
  .top-card {
    min-width: 0; min-height: 48px; padding: 6px 16px; border: 0; border-radius: 0; background: none; box-shadow: none;
    transition: none;
  }
  .js .f-top:not(.is-on) .top-card { opacity: 0; transform: translate3d(0, -8px, 0); }
  .f-top { transition: background-color 320ms var(--ease-ios), border-color 320ms var(--ease-ios); }
  .js .f-top:not(.is-on) { background-color: transparent; border-color: transparent; } /* no empty frame before the rows drop in */
  .f-top.is-on .top-card {
    transition: opacity 320ms var(--ease-ios), transform 320ms var(--ease-ios);
    transition-delay: calc(var(--k) * 110ms);
  }
  .top-card + .top-card { background: linear-gradient(var(--border), var(--border)) no-repeat 16px 0 / calc(100% - 16px) 1px; }
  .tc-body b { font-size: .9375rem; font-weight: 600; }
  .tc-body small { display: block; font-size: .8125rem; overflow: hidden; text-overflow: ellipsis; }
  .tc-score { font-size: 1.25rem; font-weight: 750; }
  .funnel-note { margin-top: 12px; font-size: 1rem; line-height: 1.45; align-items: flex-start; text-align: left; justify-content: flex-start; }
  .funnel-note .ic { margin-top: 2px; flex: none; }

  /* ---------- How it works band (5.3) ---------- */
  #how { background: var(--bg-2); }
  :root.is-dark #how { background: color-mix(in srgb, var(--card) 62%, var(--bg)); box-shadow: inset 0 1px 0 var(--border), inset 0 -1px 0 var(--border); }

  /* ---------- Product (v3, section 5): a horizontal swipe row with snap, peek, dots and "n of 6" ---------- */
  .bento {
    --pc-w: calc((100vw - 2 * var(--gutter)) / 1.14);
    display: flex; align-items: stretch; gap: var(--gutter); margin: 0 calc(var(--gutter) * -1);
    padding: 4px var(--gutter) 12px; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none;
  }
  .bento::-webkit-scrollbar { display: none; }
  .bento:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; border-radius: var(--r-card); }
  .bento > .bcard {
    flex: 0 0 var(--pc-w); scroll-snap-align: start; position: relative; top: auto; transform: none;
    min-height: 0; padding: 20px; gap: 16px; display: flex; flex-direction: column;
    border-radius: var(--r-card); box-shadow: var(--shadow-sm);
  }
  .bcard::before, .bcard::after { display: none; }
  .pr-ui { display: flex; align-items: center; justify-content: space-between; height: 24px; margin-top: 4px; }
  .pr-dots { display: flex; gap: 6px; }
  .pr-dots i {
    width: 6px; height: 6px; border-radius: 3px; background: var(--border-strong);
    transition: width var(--m) var(--ease-ios), background-color var(--m) var(--ease-ios);
  }
  .pr-dots i.is-on { width: 18px; background: var(--primary); }
  .pr-count { font-size: .8125rem; font-weight: 600; color: var(--text-3); font-variant-numeric: tabular-nums; }
  .b-copy h3 { font-size: 1.25rem; line-height: 1.25; font-weight: 700; }
  .b-copy p { margin-top: 8px; font-size: 1rem; line-height: 1.45; }
  .bcard .b-vis {
    flex: 1 1 auto; min-height: 176px; height: auto; margin-top: 0; overflow: visible;
    display: grid; grid-template-columns: minmax(0, 1fr); align-content: center; padding: 12px; border-radius: var(--r-in); background: var(--card-2);
  }
  /* flatter pictures: inner items keep their fill, lose border and shadow (one nesting level less) */
  .vm-card, .vf-jobs li, .vc-col, .vp-sugg, .vp-job, .sw-card { border-color: transparent; box-shadow: none; }
  .vp-sugg { flex-wrap: wrap; }
  .vis-sources { gap: 10px; }
  .vs-chips { flex-wrap: wrap; gap: 6px; }
  .vs-chips span { padding: 4px 10px; font-size: .8125rem; }
  .vs-stack { height: auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; align-content: start; padding: 4px 3px 0; }
  .vs-doc { position: relative; top: auto; left: auto !important; right: auto !important; width: auto; height: 80px; padding: 10px; gap: 6px; box-shadow: var(--shadow-sm); }
  .vs-doc.d1 { transform: rotate(-3deg); }
  .vs-doc.d2 { transform: none; }
  .vs-doc.d3 { transform: rotate(3deg); }
  .vs-doc em { left: 8px; right: 8px; bottom: 8px; font-size: .8125rem; line-height: 1.2; white-space: nowrap; }
  .vs-doc[dir="rtl"] em { font-size: .8125rem; }
  .vs-job { position: relative; right: auto; bottom: auto; grid-column: 1 / -1; justify-self: center; padding: 6px 12px; font-size: .8125rem; }
  .vis-pool { align-content: center; }
  .vp-job { font-size: .8125rem; }
  .vp-tag, .vf-cand small, .vp-sugg small { font-size: .8125rem; }
  .vis-mail { display: grid; gap: 8px; }
  .vm-sent { position: relative; right: auto; top: auto; order: -1; justify-self: end; padding: 4px 10px; font-size: .8125rem; box-shadow: none; }
  .vm-card { padding: 4px 12px 12px; }
  .vm-row { padding: 4px 0; font-size: .8125rem; gap: 8px; }
  .vm-row span { width: 60px; }
  .vm-lines { padding-top: 10px; }
  .vf-jobs { gap: 6px; }
  .vf-jobs li { padding: 8px 12px; font-size: .8125rem; }
  .bcard .vis-compare { display: flex; align-items: center; justify-content: center; }
  .vc-col { align-self: center; }
  .vc-col { padding: 10px 6px; }
  /* the score card (v2 phone sizes): name and role on one line, the score on its own row under them */
  /* the picture panel is the card here: no box inside the box (one nesting level less) */
  .bcard .vis-score { padding: 0; }
  .sw-card { padding: 12px; gap: 10px; border-radius: var(--r-in); background: transparent; }
  .sw-label { padding-top: 8px; font-size: .8125rem; line-height: 1.3; letter-spacing: .06em; }
  .sw-reasons { gap: 6px; }
  .sw-reasons li { font-size: .9375rem; line-height: 1.35; }
  .sw-reasons em { font-size: .8125rem; }
  .sw-foot { padding: 8px 10px; font-size: .8125rem; line-height: 1.3; border-radius: 8px; background: var(--card); }
  .sw-head small, .sw-score small { font-size: .8125rem; }
  .sw-score b { font-size: 2rem; }
  .sw-head { flex-wrap: wrap; row-gap: 8px; }
  .sw-head > div { flex: 1 1 calc(100% - 44px); }
  .sw-score { flex: 1 0 100%; display: flex; align-items: baseline; gap: 8px; }

  /* ---------- Booking (v3, 6.4): its own phone layout, H2, sub, picture, then the points ---------- */
  .hl-block {
    padding: 24px 16px 16px; gap: 0; border-radius: var(--r-block);
    box-shadow: var(--shadow-sm);
  }
  .hl-block::after { display: none; }
  .bk-copy { display: contents; }
  .bk-block .h2 { order: 1; }
  .bk-block .sb-lede { order: 2; margin-top: 12px; font-size: 1rem; line-height: 1.5; }
  .bk-block .bk-vis { order: 3; margin-top: 20px; }
  .bk-block .rules { order: 4; }
  /* the points use the full width: the icon sits on the lead line (F7) */
  .rules { margin-top: 36px; gap: 12px; }
  .rules li { display: block; padding: 0; border-top: 0; font-size: 1rem; line-height: 1.45; }
  .rules li > div { display: inline; }
  .r-ic { display: inline-grid; width: 28px; height: 28px; margin: -4px 8px 0 0; vertical-align: middle; border-radius: 8px; }
  .r-ic .ic { width: 16px; height: 16px; }
  #booking { scroll-margin-top: calc(8px - var(--sec-gap)); }
  .bk-book { width: 86%; max-width: 300px; padding: 14px; }
  .bk-book .fc-head { margin-bottom: 12px; }
  .bk-slot { font-size: .8125rem; }
  .bk-btn { height: 40px; font-size: .9375rem; }
  .bk-cal { padding: 12px 12px 30px; } /* room for the reminder chip on the bottom edge */
  .bk-grid { grid-template-columns: 44px repeat(2, minmax(0, 1fr)); grid-template-rows: 24px repeat(4, 52px); background-image: repeating-linear-gradient(180deg, var(--border) 0 1px, transparent 1px 58px); }
  .bk-grid .c1, .bk-grid .c2, .bk-grid .c5 { display: none; }
  .bk-grid .c3 { grid-column: 2; }
  .bk-grid .c4 { grid-column: 3; }
  .bk-day, .bk-grid time, .bk-ev b, .bk-ev small, .bk-off, .bk-new::after { font-size: .8125rem; }
  .bk-seg { height: 32px; font-size: .8125rem; }
  .bk-chip { bottom: -14px; right: 12px; height: 32px; font-size: .8125rem; } /* on the calendar's bottom edge, as on desktop */
  .bk-legend { flex-wrap: nowrap; gap: 4px 12px; font-size: .8125rem; }

  /* ---------- FAQ: inset grouped list (5.6, AP8) ---------- */
  .faq-grid { gap: 24px; }
  .faq-list { background: var(--card); border: 1px solid var(--border); border-radius: var(--r-card); overflow: hidden; }
  .faq-list .qa, .faq-list .qa:first-child { border: 0; }
  .faq-list .qa + .qa { background: linear-gradient(var(--border), var(--border)) no-repeat 16px 0 / calc(100% - 16px) 1px; }
  .faq-list .qa summary { min-height: 56px; padding: 12px 16px; gap: 12px; font-size: 1.0625rem; line-height: 1.35; font-weight: 600; letter-spacing: -.01em; }
  .faq-list .qa summary:hover > span { color: inherit; }
  .faq-list .qa-ic { flex: none; border-color: var(--border-strong); color: var(--text-2); transition: transform var(--m) var(--ease-ios), background-color var(--m) var(--ease); }
  .faq-list .qa[open] .qa-ic { background: var(--chrome-fill); border-color: transparent; color: var(--text); }
  .faq-list .qa-body p { padding: 0 16px 16px; font-size: 1rem; line-height: 1.6; }
  .faq-list .qa::details-content { block-size: auto; opacity: 0; transition: opacity 140ms var(--ease), content-visibility 140ms allow-discrete; }
  .faq-list .qa[open]::details-content { opacity: 1; transition-duration: 200ms; }

  /* ---------- Demo (5.7) ---------- */
  #demo { background: var(--bg-2); overflow: visible; }
  #demo::before, .ribbon { display: none; }
  :root.is-dark #demo { background: color-mix(in srgb, var(--card) 62%, var(--bg)); box-shadow: inset 0 1px 0 var(--border); }
  .demo-grid { gap: 24px; }
  .demo-copy .sub { margin-top: 12px; }
  .demo-points { margin-top: 16px; gap: 8px; }
  .demo-points li { font-size: 1rem; line-height: 1.45; color: var(--text); }
  /* the form: iOS inset grouped rows on the band, no card box (v2, section 9) */
  .form-card { padding: 0; background: none; border: 0; box-shadow: none; border-radius: 0; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .form-grid { gap: 0; grid-template-columns: minmax(0, 1fr); }
  .form-grid > .field-full { grid-column: auto; }
  .form-grid > .field:nth-child(-n+6) {
    position: relative; gap: 0; padding: 8px 16px 2px;
    background: var(--card); border: 1px solid var(--border); border-width: 0 1px;
  }
  .form-grid > .field:nth-child(1), .form-grid > .field:nth-child(5) { border-top-width: 1px; border-radius: var(--r-card) var(--r-card) 0 0; }
  .form-grid > .field:nth-child(4), .form-grid > .field:nth-child(6) { border-bottom-width: 1px; border-radius: 0 0 var(--r-card) var(--r-card); }
  .form-grid > .field:nth-child(5) { margin-top: 24px; }
  .form-grid > .field:is(:nth-child(2), :nth-child(3), :nth-child(4), :nth-child(6)) {
    background-image: linear-gradient(var(--border), var(--border)); background-repeat: no-repeat;
    background-position: 16px 0; background-size: calc(100% - 16px) 1px;
  }
  .field > label { font-size: .8125rem; line-height: 1.3; font-weight: 600; color: var(--text-2); }
  .form-grid > .field :is(input[type="text"], input[type="email"], input[type="tel"], select, textarea),
  .form-grid > .field :is(input[type="text"], input[type="email"], input[type="tel"], select, textarea):hover {
    min-height: 44px; padding: 0; border: 0; border-radius: 0; background-color: transparent; box-shadow: none; font-size: 1rem;
  }
  .form-grid > .field select { padding-right: 32px; background-position: right 0 center; }
  .form-grid > .field textarea[id] { min-height: 80px; padding: 8px 0 6px; }
  .form-grid > .field:focus-within { z-index: 1; box-shadow: inset 0 0 0 2px var(--focus); }
  .form-grid > .field :is(input, select, textarea):focus { outline: none; box-shadow: none; }
  .phone { grid-template-columns: 96px minmax(0, 1fr); gap: 12px; }
  .form-grid > .field .phone select, .form-grid > .field .phone select:hover, .form-grid > .field .phone select:focus { box-shadow: 1px 0 0 var(--border-strong); }
  .form-grid > .field ::placeholder { color: var(--text-3); opacity: 1; }
  .field-hint { font-size: .8125rem; line-height: 1.35; padding-bottom: 6px; }
  /* P5: a straight red bar inside the row, clear of the rounded corners */
  .form-grid > .field:nth-child(-n+6).is-invalid::before {
    content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px; border-radius: 0 2px 2px 0; background: var(--late);
  }
  .field.is-invalid > label { color: var(--late); }
  .field-error { min-height: 0; font-size: .9375rem; }
  .field-error:empty { display: none; }
  .form-grid > .field:nth-child(8) { margin-top: 16px; padding: 0 4px; }
  .check { min-height: 44px; align-items: flex-start; font-size: .9375rem; line-height: 1.45; }
  .check input { width: 24px; height: 24px; margin: 5px 0 0; } /* centred on the label's first line */
  .check label { flex: 1; padding: 6px 0; }
  .demo-form > .btn[type="submit"] { --bh: 50px; margin-top: 16px; }
  .form-alert { border-radius: var(--r-in); }
  .form-success { padding: 24px 16px; background: var(--card); border: 1px solid var(--border); border-radius: var(--r-card); }
  .form-success { animation: fade-in-ios var(--m) var(--ease) both; }

  /* ---------- Footer (5.8) ---------- */
  .footer { padding: 48px 0 calc(24px + env(safe-area-inset-bottom, 0px)); }
  .footer-inner { gap: 24px; }
  .footer-logo { padding: 13px 0; }
  .footer-logo img { height: 18px; }
  .footer-brand p { margin-top: 8px; font-size: .9375rem; }
  .footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 0 8px; }
  .footer-links a { padding: 0; min-height: 44px; font-size: .9375rem; }
  .footer-base { margin-top: 24px; font-size: .8125rem; }

  /* privacy page (no JS there): keep its pill, size its headings */
  .nav-cta.nav-cta-keep { opacity: 1; visibility: visible; }
  .sec-head h1 { font-size: 2rem; line-height: 1.15; letter-spacing: -.02em; margin-top: 4px; }
  .qa-body h2 { font-size: 1.3125rem; line-height: 1.25; letter-spacing: -.01em; margin: 8px 0; }
}

/* hover sticks after a tap on touch screens: keep bento pictures at rest (phones) */
@media (max-width: 767px) and (hover: none) {
  a, button, summary { -webkit-tap-highlight-color: transparent; }
  .b-sources:hover .vs-doc.d1 { transform: rotate(-4deg); }
  .b-sources:hover .vs-doc.d2 { transform: none; }
  .b-sources:hover .vs-doc.d3 { transform: rotate(4deg); }
  .b-sources:hover .vs-job, .b-mail:hover .vm-card,
  .bcard:hover .vf-jobs li.also, .bcard:hover .vf-jobs li.also + li.also,
  .bcard:hover .vc-col:nth-child(1), .bcard:hover .vc-col:nth-child(2) { transform: none; }
  .b-pool:hover .vp-sugg, .b-mail:hover .vm-sent { animation: none; }
}
/* Product pictures play once each time their card snaps in (phones, motion allowed; v3, 5.5).
   The start state holds while the card is not .is-on, with no transition, so a card resets out of sight. */
@media (max-width: 767px) and (prefers-reduced-motion: no-preference) {
  .js .bento.is-row .bcard:not(.is-on) .vs-doc { translate: 0 12px; opacity: 0; transition: none; }
  .js .bento.is-row .bcard:not(.is-on) .vs-job { scale: .9; opacity: 0; transition: none; }
  .bento.is-row .bcard.is-on .vs-doc { transition: translate 420ms var(--ease-ios), opacity 420ms var(--ease-ios); }
  .bento.is-row .bcard.is-on .vs-doc.d2 { transition-delay: 80ms; }
  .bento.is-row .bcard.is-on .vs-doc.d3 { transition-delay: 160ms; }
  .bento.is-row .bcard.is-on .vs-job { transition: scale 320ms var(--ease-spring) 360ms, opacity 240ms var(--ease) 360ms; }

  .js .bento.is-row .bcard:not(.is-on) .vp-sugg { translate: 28px 0; opacity: 0; transition: none; }
  .js .bento.is-row .bcard:not(.is-on) .vp-tag { scale: .8; transition: none; }
  .bento.is-row .bcard.is-on .vp-sugg { animation: slide-in 600ms var(--ease-ios) both; }
  .bento.is-row .bcard.is-on .vp-tag { transition: scale 320ms var(--ease-spring) 400ms; }

  .js .bento.is-row .bcard:not(.is-on) .vm-sent { translate: -30px 14px; scale: .8; opacity: 0; transition: none; }
  .js .bento.is-row .bcard:not(.is-on) .vm-row { opacity: 0; transition: none; }
  .bento.is-row .bcard.is-on .vm-sent { animation: fly 700ms var(--ease-out) both; }
  .bento.is-row .bcard.is-on .vm-row { transition: opacity 300ms var(--ease) 100ms; }
  .bento.is-row .bcard.is-on .vm-row:nth-child(2) { transition-delay: 160ms; }
  .bento.is-row .bcard.is-on .vm-row:nth-child(3) { transition-delay: 220ms; }

  .js .bento.is-row .bcard:not(.is-on) .sw-reasons li { translate: -8px 0; opacity: 0; transition: none; }
  .bento.is-row .bcard.is-on .sw-reasons li { transition: translate 400ms var(--ease-ios), opacity 400ms var(--ease-ios); }
  .bento.is-row .bcard.is-on .sw-reasons li:nth-child(2) { transition-delay: 120ms; }
  .bento.is-row .bcard.is-on .sw-reasons li:nth-child(3) { transition-delay: 240ms; }
  .bento.is-row .bcard.is-on .sw-reasons li:nth-child(4) { transition-delay: 360ms; }

  .js .bento.is-row .bcard:not(.is-on) .vf-jobs li.also { translate: 16px 0; opacity: 0; transition: none; }
  .bento.is-row .bcard.is-on .vf-jobs li.also { transition: translate 420ms var(--ease-ios), opacity 420ms var(--ease-ios); }
  .bento.is-row .bcard.is-on .vf-jobs li.also + li.also { transition-delay: 120ms; }

  .js .bento.is-row .bcard:not(.is-on) .vc-col i.on { scale: 0 1; transition: none; }
  .js .bento.is-row .bcard:not(.is-on) .vc-col b { opacity: 0; transition: none; }
  .bento.is-row .vc-col i.on { transform-origin: 0 50%; }
  .bento.is-row .bcard.is-on .vc-col i.on { transition: scale 360ms var(--ease-ios); }
  .bento.is-row .bcard.is-on .vc-col i.on:nth-of-type(2) { transition-delay: 60ms; }
  .bento.is-row .bcard.is-on .vc-col i.on:nth-of-type(3) { transition-delay: 120ms; }
  .bento.is-row .bcard.is-on .vc-col i.on:nth-of-type(4) { transition-delay: 180ms; }
  .bento.is-row .bcard.is-on .vc-col b { transition: opacity 300ms var(--ease) 300ms; }
}
/* press feedback (M8) */
@media (max-width: 767px) and (prefers-reduced-motion: no-preference) {
  .btn { transition: background-color var(--t) var(--ease), border-color var(--t) var(--ease), box-shadow var(--t) var(--ease), color var(--t) var(--ease), opacity var(--m-fast) var(--ease), visibility 0s, transform 100ms var(--ease); }
  .btn:active { transform: scale(.98); }
}
@media (max-width: 389px) {
  :root { --sec-gap: 56px; }
  .display { font-size: min(2.25rem, 11.5vw); }
  .h2 { font-size: 1.75rem; }
}
@media (max-width: 374px) {
  :root { --gutter: max(16px, env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px)); }
  .nav-logo img, .footer-logo img { height: 16px; }
  .nav-logo, .footer-logo { padding: 14px 0; }
  .bento > .bcard { padding: 16px; gap: 12px; }
  .bcard .b-vis { border-radius: 8px; min-height: 156px; }
  .bcard .b-vis:not(.vis-score) { padding: 10px; }
  .sw-card { padding: 10px; gap: 8px; }
  .sw-head { row-gap: 4px; }
  .float-card, .score-pop { padding: 14px; }
}
@media (max-width: 359px) {
  .display { font-size: min(2.125rem, 11.5vw); }
  .h2 { font-size: 1.625rem; }
  .b-copy h3 { font-size: 1.125rem; }
  .nav-cta:not(.nav-cta-keep) { display: none; }
}
@keyframes msg-in-ios { from { opacity: 0; transform: translate3d(0, 8px, 0); } to { opacity: 1; transform: none; } }
@keyframes fade-in-ios { from { opacity: 0; } to { opacity: 1; } }

/* Reduce Transparency (AP11) and browsers without backdrop blur: an opaque header */
@media (max-width: 767px) and (prefers-reduced-transparency: reduce) {
  .nav::before { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  @media (max-width: 767px) { .nav::before { background: var(--bg); } }
}
/* Reduce Motion (AP11): final states at load */
@media (max-width: 767px) and (prefers-reduced-motion: reduce) {
  .js .f-top:not(.is-on), .js .f-top:not(.is-on) .top-card { opacity: 1; transform: none; }
}
