/* The Customer-Centricity Gap — brand: UCLA blue system, Montserrat/Open Sans.
 * RTL-ready: physical left/right properties are avoided in favor of logical
 * (inline-start/end) properties throughout. */

@font-face {
  font-family: "Montserrat";
  src: url("/fonts/Montserrat.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Open Sans";
  src: url("/fonts/OpenSans.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Noto Sans Arabic";
  src: url("/fonts/NotoSansArabic.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --blue: #2774AE;
  --blue-dark: #003B5C;
  --blue-pale: #eaf2f9;
  --gold: #FFD100;
  --gold-dark: #FFB81C;
  --ink: #26323c;
  --ink-soft: #55636f;
  --line: #dde6ee;
  --bg: #f4f7fa;
  --white: #fff;
  --danger: #b3261e;
  --head: "Montserrat", "Noto Sans Arabic", "Segoe UI", sans-serif;
  --body: "Open Sans", "Noto Sans Arabic", "Segoe UI", sans-serif;
  --radius: 12px;
  --shadow: 0 2px 14px rgba(0, 59, 92, 0.08);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.6;
}

h1, h2, h3, h4 { font-family: var(--head); color: var(--blue-dark); line-height: 1.2; }

.topbar {
  background: var(--white);
  border-block-end: 4px solid var(--gold);
  box-shadow: var(--shadow);
}
.topbar-inner {
  max-width: 880px; margin-inline: auto; padding: 14px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.topbar img { height: 30px; display: block; }
.topbar .brandline { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); font-weight: 700; }
.lang-switch select {
  font-family: var(--body); font-size: 13px; padding: 5px 8px;
  border: 1px solid var(--line); border-radius: 8px; background: var(--white); color: var(--ink);
}

.wrap { max-width: 880px; margin-inline: auto; padding: 32px 20px 64px; }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 34px 38px; margin-block-end: 22px;
}
@media (max-width: 600px) { .card { padding: 22px 18px; } }

.eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  color: var(--blue); margin-block-end: 8px;
}
.lede { font-size: 17px; color: var(--ink-soft); }

.btn {
  display: inline-block; font-family: var(--head); font-weight: 700; font-size: 16px;
  background: var(--gold); color: var(--blue-dark); border: none; border-radius: 9px;
  padding: 13px 30px; cursor: pointer; text-decoration: none; transition: transform .06s, box-shadow .12s;
}
.btn:hover { box-shadow: 0 3px 12px rgba(0,59,92,.22); transform: translateY(-1px); }
.btn:disabled { opacity: .5; cursor: default; transform: none; box-shadow: none; }
.btn-secondary { background: var(--blue-pale); color: var(--blue-dark); }
.btn-line { background: transparent; border: 2px solid var(--blue); color: var(--blue); padding: 11px 28px; }

.hero-bullets { list-style: none; padding: 0; margin: 22px 0; }
.hero-bullets li {
  padding-inline-start: 30px; position: relative; margin-block-end: 10px; color: var(--ink);
}
.hero-bullets li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: 8px;
  width: 14px; height: 14px; border-radius: 4px; background: var(--gold);
}
.time-note { font-size: 13px; color: var(--ink-soft); margin-block-start: 12px; }

/* progress */
.progress { height: 8px; background: var(--blue-pale); border-radius: 99px; overflow: hidden; margin-block-end: 8px; }
.progress > div { height: 100%; background: var(--blue); border-radius: 99px; transition: width .35s; }
html[dir="rtl"] .progress > div { margin-inline-start: auto; }
.progress-label { font-size: 13px; color: var(--ink-soft); margin-block-end: 20px; }

/* question */
.q-text { font-size: 21px; font-family: var(--head); font-weight: 700; color: var(--blue-dark); margin-block-end: 20px; }
.opt {
  display: block; width: 100%; text-align: start; font-family: var(--body); font-size: 15.5px;
  background: var(--white); color: var(--ink); border: 2px solid var(--line); border-radius: 10px;
  padding: 14px 18px; margin-block-end: 10px; cursor: pointer; line-height: 1.5;
  transition: border-color .1s, background .1s;
}
.opt:hover { border-color: var(--blue); background: var(--blue-pale); }
.opt.dk { border-style: dashed; color: var(--ink-soft); font-size: 14px; }
.opt.selected { border-color: var(--blue); background: var(--blue-pale); }

/* profile step */
.profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; margin-block: 18px; }
@media (max-width: 600px) { .profile-grid { grid-template-columns: 1fr; } }
.field label { display: block; font-size: 13px; font-weight: 700; color: var(--blue-dark); margin-block-end: 5px; }
.field select, .field input {
  width: 100%; font-family: var(--body); font-size: 15px; padding: 10px 12px;
  border: 1.5px solid var(--line); border-radius: 8px; background: var(--white); color: var(--ink);
}
.field select:focus, .field input:focus { outline: 2px solid var(--blue); border-color: var(--blue); }

/* interstitial */
.interstitial { text-align: center; padding-block: 30px; }
.interstitial .pulse {
  width: 52px; height: 52px; margin: 0 auto 18px; border-radius: 50%;
  background: var(--blue-pale); position: relative;
}
.interstitial .pulse::after {
  content: ""; position: absolute; inset: 14px; border-radius: 50%; background: var(--blue);
  animation: pulse 1.2s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { transform: scale(.85); opacity:.7; } 50% { transform: scale(1.1); opacity:1; } }

/* result */
.gap-headline { font-size: 30px; margin: 6px 0 4px; }
.dim-bars { margin-block: 22px; }
.dim-bar { margin-block-end: 14px; }
.dim-bar .row1 { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; }
.dim-bar .name { font-family: var(--head); font-weight: 700; color: var(--blue-dark); }
.dim-bar .band { color: var(--ink-soft); font-size: 12.5px; text-transform: uppercase; letter-spacing: .05em; }
.dim-bar .track { height: 12px; background: var(--blue-pale); border-radius: 99px; margin-block-start: 5px; overflow: hidden; }
.dim-bar .fill { height: 100%; border-radius: 99px; background: var(--blue); }
.dim-bar.weakest .fill { background: var(--gold-dark); }
.dim-bar.weakest .band { color: var(--gold-dark); font-weight: 700; }

.bench-line { background: var(--blue-pale); border-inline-start: 4px solid var(--blue); padding: 12px 16px; border-radius: 8px; font-size: 14.5px; margin-block: 18px; }
.bench-line .n-note { display: block; font-size: 12.5px; color: var(--ink-soft); margin-block-start: 4px; }

.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-block-start: 20px; }

/* email gate */
.gate { border: 2px solid var(--blue); }
.gate form { display: flex; flex-direction: column; gap: 12px; margin-block-start: 14px; }
.gate .email-row { display: flex; gap: 10px; flex-wrap: wrap; }
.gate input[type="email"] {
  flex: 1; min-width: 220px; font-size: 15px; padding: 12px 14px;
  border: 1.5px solid var(--line); border-radius: 8px;
}
.consent { display: flex; gap: 9px; align-items: flex-start; font-size: 13px; color: var(--ink-soft); }
.consent input { margin-block-start: 3px; }
.gate .error { color: var(--danger); font-size: 13.5px; }

.footer { font-size: 12.5px; color: var(--ink-soft); max-width: 880px; margin-inline: auto; padding: 0 20px 40px; }

.hidden { display: none !important; }

/* ---- embedded mode -------------------------------------------------------
 * Inside a host page (LearnWorlds) the widget must read as part of that page,
 * not as a bolted-on frame: no masthead, no footer, no page background, no
 * card shadow, and no internal scrollbar (the parent grows the iframe to fit
 * via the postMessage bridge in embed-child.js). Accent + font can be handed
 * in from the host so headings match the surrounding page. */
body.embed { background: transparent; }
body.embed .topbar,
body.embed .footer { display: none; }
/* Flex gap rather than card margins: a bottom margin on the last VISIBLE card
 * collapses out of the body box, which makes the height the frame reports 22px
 * short. Gaps only apply between rendered children, so the measured height is
 * exact at every step. */
body.embed .wrap {
  padding: 0; max-width: none;
  display: flex; flex-direction: column; gap: 22px;
}
body.embed .card {
  box-shadow: none;
  border-radius: var(--radius);
  padding: 26px 28px;
  margin-block-end: 0;
}
@media (max-width: 600px) { body.embed .card { padding: 20px 16px; } }
/* Frameless variant: the host page already provides a container/box. */
body.embed.embed-flat .card { border: 0; padding: 0; background: transparent; }
