/* Bayqa landing: one stylesheet for every language page.
   Tokens mirror the product: Inter, the #2563eb brand blue of the mark. */

:root {
  --brand: #2563eb;
  --brand-dark: #1d4ed8;
  --brand-soft: #dbeafe;
  --brand-tint: #eff6ff;
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-2: #f8fafc;
  --ok: #15803d;
  --radius: 14px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --max: 1080px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

section[id] {
  scroll-margin-top: 100px;
}

a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}

a {
  color: var(--brand-dark);
}

img,
svg {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.125rem);
  font-weight: 700;
}

h3 {
  font-size: 1.125rem;
  font-weight: 600;
}

p {
  margin: 0 0 1em;
}

.wrap {
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--ink);
  text-decoration: none;
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px 20px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-nav a {
  color: var(--ink-2);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}

.site-nav a:hover {
  color: var(--brand-dark);
}

/* The section links are a desktop convenience; a phone keeps the language
   switcher and the app button only. */
.nav-links {
  display: contents;
}

@media (max-width: 899px) {
  .nav-links {
    display: none;
  }
}

.lang {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px;
  gap: 2px;
}

.lang a {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--ink-2);
}

.lang a[aria-current="page"] {
  background: var(--brand);
  color: #fff;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition:
    background 0.15s,
    border-color 0.15s;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
}

.btn-primary:hover {
  background: var(--brand-dark);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn-ghost:hover {
  border-color: var(--ink-2);
}

/* Hero */

.hero {
  padding: clamp(56px, 9vw, 112px) 0 clamp(40px, 6vw, 72px);
  background: radial-gradient(
    1200px 500px at 20% -10%,
    var(--brand-tint),
    transparent 70%
  );
}

.hero .wrap {
  display: grid;
  gap: 40px;
  align-items: center;
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .hero .wrap {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-dark);
  background: var(--brand-soft);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.lead {
  font-size: 1.2rem;
  color: var(--ink-2);
  max-width: 36em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-note {
  margin-top: 14px;
  font-size: 0.9rem;
  color: var(--muted);
}

/* A mock result card: the one screen that explains the product */

.result-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 20px 50px -30px rgba(15, 23, 42, 0.35);
  padding: 22px;
}

.result-card header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 4px 12px;
}

.result-card header strong {
  font-size: 1rem;
}

.result-card header span {
  font-size: 0.8rem;
  color: var(--muted);
}

.skill {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.skill .name {
  grid-column: 1;
  font-weight: 500;
  font-size: 0.95rem;
}

.skill .level {
  font-size: 0.9rem;
  color: var(--ink-2);
  grid-column: 1;
}

.pill {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 9px;
  border-radius: 999px;
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
}

.pill-strong {
  background: #dcfce7;
  color: var(--ok);
}

.pill-mid {
  background: #fef3c7;
  color: #b45309;
}

.pill-weak {
  background: var(--line);
  color: var(--ink-2);
}

@media (max-width: 480px) {
  .site-header .wrap {
    flex-wrap: wrap;
    padding-block: 10px;
    gap: 8px;
  }

  .site-nav {
    gap: 8px;
  }

  .site-nav .btn {
    padding: 8px 10px;
  }

  .skill {
    grid-template-columns: minmax(0, 1fr);
  }

  .pill {
    grid-column: 1;
    grid-row: auto;
    justify-self: start;
  }
}

.result-card footer {
  margin-top: 12px;
  font-size: 0.8rem;
  color: var(--muted);
}

/* Sections */

section {
  padding: clamp(48px, 7vw, 88px) 0;
}

section.alt {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  max-width: 44em;
  margin-bottom: 36px;
}

.section-head p {
  color: var(--ink-2);
  font-size: 1.1rem;
}

.grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 640px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1100px) {
  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.card p {
  color: var(--ink-2);
  margin: 0;
}

.step {
  position: relative;
}

.step .num {
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 14px;
}

/* Comparison */

.compare {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}

@media (min-width: 760px) {
  .compare {
    grid-template-columns: 1fr 1fr;
  }
}

.compare .card ul {
  margin: 0;
  padding-left: 1.2em;
  color: var(--ink-2);
}

.compare .card li + li {
  margin-top: 8px;
}

.compare .card.is-us {
  border-color: var(--brand);
  background: var(--brand-tint);
}

/* Audience */

.audience li {
  list-style: none;
}

.audience ul {
  padding: 0;
  margin: 0;
}

/* CTA */

.cta {
  background: var(--ink);
  color: #fff;
}

.cta h2 {
  color: #fff;
}

.cta p {
  color: #cbd5e1;
  max-width: 40em;
}

.cta .btn-primary {
  background: #fff;
  color: var(--ink);
}

.cta .btn-primary:hover {
  background: var(--brand-soft);
}

.cta ol {
  color: #e2e8f0;
  padding-left: 1.3em;
  margin: 0 0 24px;
}

.cta ol li + li {
  margin-top: 6px;
}

/* FAQ */

details {
  border-top: 1px solid var(--line);
  padding: 14px 0;
}

details:last-of-type {
  border-bottom: 1px solid var(--line);
}

summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  color: var(--muted);
  font-weight: 400;
}

details[open] summary::after {
  content: "–";
}

details p {
  color: var(--ink-2);
  margin: 10px 0 0;
  max-width: 50em;
}

/* Footer */

.site-footer {
  padding: 32px 0 40px;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--muted);
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.site-footer a {
  color: var(--muted);
}

/* Knowledge atlas: dark opening, editorial sections and interactive scenarios. */
:root {
  --max: 1200px;
  --bg: #fcfcfa;
  --bg-2: #f1f3f1;
  --muted: #536174;
  --radius: 20px;
  --night: #10151f;
  --mint: #a1f2d0;
  --lilac: #c8b5ff;
}
[hidden] {
  display: none !important;
}
button {
  font: inherit;
}
button:focus-visible,
[tabindex="0"]:focus-visible {
  outline: 3px solid #2563eb;
  outline-offset: 5px;
}
h1,
h2 {
  letter-spacing: -0.045em;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2.5rem, 4.8vw, 4.4rem);
  line-height: 1.04;
}
h2 {
  font-size: clamp(1.9rem, 3.7vw, 3rem);
}
.site-header {
  background: #10151ff5;
  border-color: #303a49;
  color: #fff;
}
.brand {
  color: #fff;
  font-size: 1.35rem;
}
.site-nav a {
  color: #e1e5ee;
}
.site-nav a:hover {
  color: var(--mint);
}
.lang {
  border-color: #435064;
}
.site-nav .btn-ghost {
  border-color: #566277;
}
.hero {
  background:
    radial-gradient(ellipse at 90% 20%, #213637 0, transparent 48%),
    var(--night);
  color: #fff;
  padding-block: clamp(60px, 8vw, 112px);
  overflow: hidden;
}
.hero .wrap > * {
  min-width: 0;
}
.hero .wrap {
  gap: 56px;
}
.hero .eyebrow {
  color: var(--mint);
  background: none;
  border: 1px solid #4a6662;
  font-size: 0.72rem;
  letter-spacing: 0.09em;
  padding: 7px 12px;
}
.hero .lead {
  color: #c6cdd9;
  font-size: 1.08rem;
  margin-top: 26px;
}
.hero-note {
  color: #aab6c6;
  font-size: 0.82rem;
  max-width: 38em;
}
.hero .btn-primary {
  background: var(--mint);
  color: #112b24;
}
.hero .btn-primary:hover {
  background: #c4ffe7;
}
.hero .btn-ghost {
  color: #edf2f8;
  border-color: #536274;
}
.btn {
  border-radius: 100px;
  padding: 14px 23px;
}
.hero-actions .btn-primary::after {
  content: "↗";
  margin-left: 10px;
}
.hero .result-card {
  background: #181f2a;
  border-color: #435064;
  box-shadow: 0 35px 90px #0005;
  padding: 24px;
  transform: rotate(1deg);
}
.result-card header {
  border-bottom: 1px solid #374453;
  padding-bottom: 16px;
}
.result-card header strong {
  color: #f2f5fc;
}
.result-card header span,
.result-card footer {
  color: #b2becf;
}
.skill {
  border-color: #344153;
}
.skill .name {
  color: #f3f5fa;
}
.skill .level {
  color: #b8c3d3;
  font-size: 0.8rem;
}
.pill-strong {
  background: #214c40;
  color: #a1f2d0;
}
.pill-mid {
  background: #42345e;
  color: #ded1ff;
}
.pill-weak {
  background: #344153;
  color: #e0e7f0;
}
/* The hero replay: one skill's estimate, answer by answer (illustrative). The
   bar heights are classes because the landing CSP allows no inline styles. */
.replay-card {
  margin: 0;
}
.replay-title {
  color: #f2f5fc;
  font-weight: 600;
  font-size: 0.95rem;
  margin: 0 0 2px;
}
.replay-scale {
  color: #9fb0c3;
  font-size: 0.75rem;
  margin: 0 0 10px;
}
.replay-steps {
  list-style: none;
  margin: 0;
  padding: 0;
}
.replay-steps li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 12px;
  padding-block: 7px;
  border-top: 1px solid #2c3746;
  animation: reveal 0.5s ease-out both;
}
.replay-steps li:nth-child(2) {
  animation-delay: 0.35s;
}
.replay-steps li:nth-child(3) {
  animation-delay: 0.7s;
}
.replay-steps li:nth-child(4) {
  animation-delay: 1.05s;
}
.replay-steps li:nth-child(5) {
  animation-delay: 1.4s;
}
.replay-steps li:nth-child(6) {
  animation-delay: 1.75s;
}
.replay-label {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 0.8rem;
  color: #c9d3e1;
}
.replay-label b {
  flex: none;
  width: 1em;
  text-align: center;
  color: #8b9caf;
}
.replay-label b.ok {
  color: var(--mint);
}
.replay-label b.no {
  color: #ffb4a8;
}
.bars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 36px;
}
.bars i {
  display: block;
  width: 18px;
  border-radius: 3px 3px 0 0;
  background: #3a4758;
  transform-origin: bottom;
  animation: grow-bar 0.6s ease-out both;
  animation-delay: inherit;
}
.bars i.top {
  background: var(--mint);
}
.v0 {
  height: 6%;
}
.v1 {
  height: 12%;
}
.v2 {
  height: 22%;
}
.v3 {
  height: 33%;
}
.v4 {
  height: 44%;
}
.v5 {
  height: 55%;
}
.v6 {
  height: 66%;
}
.v7 {
  height: 77%;
}
.v8 {
  height: 88%;
}
.v9 {
  height: 100%;
}
.replay-result {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  padding-top: 14px;
  border-top: 1px solid #374453;
  animation: reveal 0.6s ease-out 2.1s both;
}
.replay-level {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #f3f5fa;
}
.replay-result p {
  flex-basis: 100%;
  margin: 0;
  font-size: 0.82rem;
  color: #b8c3d3;
}
@keyframes grow-bar {
  from {
    transform: scaleY(0);
  }
  to {
    transform: scaleY(1);
  }
}
@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
section {
  padding-block: clamp(56px, 8vw, 112px);
}
.section-head {
  max-width: 760px;
}
.section-head p {
  max-width: 650px;
}
.journey-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 36px;
  border-block: 1px solid #cbd5d6;
  padding-block: 22px;
  margin-bottom: 42px;
}
.journey-strip span {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
}
.journey-strip b {
  color: #526577;
  font-size: 0.72rem;
  font-weight: 500;
}
.journey-strip span + span::before {
  content: "↗";
  color: #2563eb;
  margin-right: 12px;
}
#how .card {
  padding: 0 20px 0 0;
  background: transparent;
  border: none;
  border-radius: 0;
}
.step .num {
  width: auto;
  height: auto;
  border-radius: 0;
  color: #2563eb;
  background: none;
  font-size: 2.4rem;
  font-weight: 400;
  letter-spacing: -0.07em;
  margin-bottom: 28px;
}
.step .num::before {
  content: "0";
}
.step p {
  font-size: 0.94rem;
}
.compare .card {
  border: none;
  padding: clamp(24px, 4vw, 44px);
}
.compare .card.is-us {
  background: #e3ede8;
}
.compare h3 {
  font-size: 1.45rem;
  margin-bottom: 24px;
}
.compare li::marker {
  color: #29634f;
}
.compare .card li + li {
  margin-top: 16px;
}
.specimen {
  margin: 0 0 24px;
  padding: 10px 16px;
  border: 1px solid #d8dfe2;
  border-radius: 12px;
  background: #fff;
}
.specimen-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 12px;
  padding-block: 8px;
}
.specimen-row + .specimen-row {
  border-top: 1px solid #e6eaec;
}
.specimen-row span {
  min-width: 6.5em;
  font-size: 0.9rem;
  color: var(--ink-2);
}
.specimen-row b {
  font-size: 1.15rem;
  font-weight: 600;
}
.tag {
  margin-left: auto;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 600;
  background: #e2e8f0;
  color: #334155;
}
.tag-strong {
  background: #d3f2e3;
  color: #1d5c43;
}
#again .card h3 {
  font-size: 1.3rem;
}
.card .again-example {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 12px;
  margin-top: 20px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--bg-2);
  font-size: 0.9rem;
}
.card .again-note {
  margin-top: 8px;
  font-size: 0.78rem;
  color: var(--muted);
}
.audience-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 24px;
}
.audience-tabs button {
  cursor: pointer;
  padding: 12px 22px;
  border-radius: 100px;
  border: 1px solid #c2ccce;
  color: #334155;
  background: transparent;
}
.audience-tabs button[aria-selected="true"] {
  background: var(--night);
  color: #fff;
  border-color: var(--night);
}
.audience.has-tabs {
  display: block;
}
.audience.has-tabs .card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 64px;
  padding: clamp(24px, 5vw, 60px);
  background: #eceaf5;
  border: none;
}
.audience.has-tabs h3 {
  font-size: 2rem;
  align-self: end;
}
.audience.has-tabs p {
  max-width: 32em;
}
.scenario-example {
  padding: 24px;
  background: #fcfcfa;
  border: 1px solid #dddce7;
  border-radius: 14px;
  margin-block: 24px;
}
.has-tabs .scenario-example {
  grid-column: 2;
  grid-row: 1 / span 3;
  margin: 0;
}
.scenario-label {
  color: #59657a;
  font-size: 0.75rem;
}
.scenario-example ol {
  padding: 0;
  margin: 20px 0 0;
  counter-reset: scenario;
}
.scenario-example li {
  counter-increment: scenario;
  display: flex;
  align-items: baseline;
  gap: 15px;
  font-size: 0.9rem;
  padding-block: 12px;
  border-top: 1px solid #dce2e8;
}
.scenario-example li::before {
  content: "0" counter(scenario);
  color: #66539b;
  font-size: 0.75rem;
}
.scenario-link {
  display: inline-block;
  margin-top: 24px;
  font-weight: 600;
}
.ruled .card {
  background: none;
  border: none;
  border-top: 2px solid #9faeb2;
  padding: 24px 0;
  border-radius: 0;
}
.ruled h3 {
  font-size: 1.3rem;
}
.ruled p {
  font-size: 0.96rem;
}
.cta {
  background: var(--night);
  position: relative;
}
.cta .wrap {
  border-left: 3px solid var(--mint);
  padding-left: clamp(22px, 5vw, 64px);
}
.cta h2 {
  max-width: 850px;
}
.cta .btn-primary {
  background: var(--mint);
}
.cta ol {
  max-width: 48em;
  font-size: 0.94rem;
}
#faq .wrap {
  max-width: 900px;
}
#faq details {
  padding-block: 22px;
}
.site-footer {
  background: #f1f3f1;
}
@media (min-width: 900px) {
  .hero .wrap {
    grid-template-columns: 1.05fr 1fr;
  }
}
@media (max-width: 899px) {
  .hero .result-card {
    max-width: 600px;
    width: 100%;
    transform: none;
  }
}
@media (max-width: 640px) {
  .audience.has-tabs .card {
    grid-template-columns: 1fr;
  }
  .has-tabs .scenario-example {
    grid-column: 1;
    grid-row: auto;
    margin-top: 24px;
  }
  .audience.has-tabs h3 {
    font-size: 1.7rem;
  }
  .journey-strip {
    flex-direction: column;
    gap: 15px;
  }
  .journey-strip span + span::before {
    display: none;
  }
  .hero .result-card {
    padding: 18px;
  }
  .hero .eyebrow {
    letter-spacing: 0.03em;
  }
  .audience-tabs button {
    padding: 10px 15px;
    font-size: 0.9rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
