/* Callya waitlist site (CM-T5a, UX.9.1). No colour literals here: every colour is a token from tokens.css (CC-46). */
@font-face {
  font-family: "Manrope";
  src: url("/assets/fonts/Manrope-Variable.latin.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("/assets/fonts/IBMPlexSansArabic-400.arabic.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("/assets/fonts/IBMPlexSansArabic-500.arabic.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("/assets/fonts/IBMPlexSansArabic-700.arabic.woff2") format("woff2");
  font-weight: 600 700;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: var(--font-weight-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--brand-ink);
  background: var(--brand-surface-alt);
}
html[lang="ar"] body { font-family: var(--font-arabic); line-height: 1.75; }
img, svg { display: block; max-width: 100%; }
a { color: var(--brand-accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--brand-accent); outline-offset: 3px; border-radius: var(--radius-sm); }
h1, h2, h3 { font-weight: var(--font-weight-headline); line-height: 1.15; margin: 0; color: var(--brand-primary); letter-spacing: -0.01em; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { letter-spacing: 0; line-height: 1.35; }
p { margin: 0; }

.skip { position: absolute; inset-inline-start: 16px; top: -64px; z-index: 50; padding: 10px 16px; background: var(--brand-primary); color: var(--brand-surface-alt); border-radius: var(--radius-md); }
.skip:focus { top: 12px; }
.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header (UX.3.1 marketing shell, waitlist variant: no Sign in / trial until the Phase-3 app exists). */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--brand-surface-alt); border-bottom: 1px solid var(--brand-border); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 72px; }
.logo { display: inline-flex; color: var(--brand-primary); text-decoration: none; }
.logo svg { width: 148px; height: auto; }
.logo .arrow { fill: var(--brand-accent); }
.logo .loop, .logo .wordmark { fill: var(--brand-primary); }
.wordmark { font-family: "Manrope", sans-serif; font-weight: 700; letter-spacing: -6.5px; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.lang-switch { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 10px; color: var(--brand-primary); font-weight: var(--font-weight-medium); text-decoration: none; border-radius: var(--radius-md); }
.lang-switch:hover { background: var(--brand-surface); }
.lang-switch svg { width: 18px; height: 18px; }

/* Buttons (UX.1.4: accent Action Blue/white for the one forward action; secondary Navy outline; >= 16 px, 600). */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: var(--radius-md); font: inherit; font-size: 1rem; font-weight: 600; text-decoration: none; cursor: pointer; border: 2px solid transparent; transition: background-color .15s ease, color .15s ease; }
.btn-accent { background: var(--brand-accent); color: var(--brand-surface-alt); }
.btn-accent:hover { background: var(--brand-primary); }
.btn-secondary { background: transparent; color: var(--brand-primary); border-color: var(--brand-primary); }
.btn-secondary:hover { background: var(--brand-primary); color: var(--brand-surface-alt); }
.btn-sm { min-height: 44px; padding: 0 16px; }
.btn[disabled] { opacity: .7; cursor: progress; }

/* Hero */
.hero { background: var(--brand-surface); padding: 72px 0 80px; }
.hero .wrap { display: grid; grid-template-columns: 1.25fr 1fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.5rem, 6vw, 4rem); }
.hero .support { margin-top: 20px; font-size: 1.1875rem; color: var(--brand-secondary-text); max-width: 36ch; }
html[lang="ar"] .hero .support { max-width: 40ch; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero .reassure { margin-top: 20px; font-size: .9375rem; font-weight: var(--font-weight-medium); color: var(--brand-secondary-text); }
.emblem-stage { display: grid; place-items: center; aspect-ratio: 1; max-width: 360px; justify-self: center; width: 100%; background: var(--brand-surface-alt); border: 1px solid var(--brand-border); border-radius: 50%; }
.emblem-stage svg { width: 62%; overflow: visible; }
.emblem-stage .loop { fill: var(--brand-primary); }
.emblem-stage .arrow { fill: var(--brand-accent); transform-box: fill-box; transform-origin: center; animation: next-step 2.8s cubic-bezier(.4, 0, .2, 1) infinite; }
html[dir="rtl"] .emblem-stage svg { transform: none; } /* the brand mark is never mirrored */
@keyframes next-step {
  0%, 30% { transform: translateX(0); opacity: 1; }
  55% { transform: translateX(14%); opacity: 0; }
  56% { transform: translateX(-14%); opacity: 0; }
  80%, 100% { transform: translateX(0); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .emblem-stage .arrow { animation: none; }
  .btn { transition: none; }
}

/* Sections */
section { padding: 80px 0; }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(1.75rem, 3.6vw, 2.5rem); }
.section-head p { margin-top: 12px; color: var(--brand-secondary-text); font-size: 1.0625rem; }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; list-style: none; margin: 0; padding: 0; }
.card { background: var(--brand-surface-alt); border: 1px solid var(--brand-border); border-radius: var(--radius-lg); padding: 24px; }
.card .num { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--brand-surface); color: var(--brand-primary); font-weight: 700; margin-bottom: 16px; }
.card h3 { font-size: 1.25rem; }
.card p { margin-top: 8px; color: var(--brand-secondary-text); }

.honesty { background: var(--brand-primary); color: var(--brand-surface-alt); }
.honesty .wrap { display: grid; grid-template-columns: auto 1fr; gap: 32px; align-items: center; }
.honesty h2 { color: var(--brand-surface-alt); font-size: clamp(1.75rem, 3.6vw, 2.5rem); }
.honesty p { margin-top: 12px; font-size: 1.1875rem; max-width: 52ch; }
.honesty .badge { display: grid; place-items: center; width: 88px; height: 88px; border-radius: var(--radius-lg); background: var(--brand-accent); }
.honesty .badge svg { width: 44px; height: 44px; fill: none; stroke: var(--brand-surface-alt); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.pricing { background: var(--brand-surface); }
.pricing .note { background: var(--brand-surface-alt); border: 1px solid var(--brand-border); border-inline-start: 4px solid var(--brand-accent); border-radius: var(--radius-lg); padding: 28px; font-size: 1.1875rem; font-weight: var(--font-weight-medium); max-width: 760px; }

/* Waitlist form */
.join .wrap { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: start; }
.join .lead { position: sticky; top: 104px; }
form.waitlist button[type="submit"] { width: 100%; }
form.waitlist { background: var(--brand-surface-alt); border: 1px solid var(--brand-border); border-radius: var(--radius-lg); padding: 28px; box-shadow: 0 8px 24px var(--shadow-color); }
.field { margin-bottom: 20px; }
.field > label, fieldset legend { display: block; font-weight: 600; margin-bottom: 6px; color: var(--brand-primary); }
.field input[type="text"], .field input[type="email"], .field select {
  width: 100%; min-height: 48px; padding: 10px 14px; font: inherit; color: var(--brand-ink);
  background: var(--brand-surface-alt); border: 1px solid var(--brand-secondary-text); border-radius: var(--radius-md);
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-inline-end: 40px; }
html[dir="rtl"] .field select { background-position: 16px 50%, 22px 50%; }
.field input:focus-visible, .field select:focus-visible { outline: 3px solid var(--brand-accent); outline-offset: 1px; border-color: var(--brand-accent); }
.field input[aria-invalid="true"], .field select[aria-invalid="true"], fieldset[aria-invalid="true"] { border-color: var(--brand-danger); }
fieldset { border: 1px solid var(--brand-border); border-radius: var(--radius-md); padding: 12px 14px 4px; margin: 0 0 20px; }
fieldset legend { padding: 0 6px; margin-inline-start: -6px; }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.check { display: flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--brand-accent); margin: 0; flex: none; }
.hint { font-size: .875rem; color: var(--brand-secondary-text); margin-top: 4px; }
.hp { position: absolute; inset-inline-start: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-error { display: none; margin-bottom: 16px; padding: 12px 14px; border-radius: var(--radius-md); border: 1px solid var(--brand-danger); color: var(--brand-danger); background: var(--brand-surface-alt); font-weight: var(--font-weight-medium); }
.form-error.show { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; }
.form-error button { min-height: 40px; padding: 0 14px; font: inherit; font-weight: 600; color: var(--brand-danger); background: transparent; border: 1px solid var(--brand-danger); border-radius: var(--radius-md); cursor: pointer; }
.success { display: none; padding: 28px; border-radius: var(--radius-lg); border: 1px solid var(--brand-success); background: var(--brand-surface-alt); }
.success.show { display: flex; gap: 16px; align-items: flex-start; }
.success svg { width: 28px; height: 28px; flex: none; fill: none; stroke: var(--brand-success); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.success p { font-size: 1.1875rem; font-weight: 600; color: var(--brand-primary); }

/* FAQ */
.faq { background: var(--brand-surface); }
.faq-list { max-width: none; }
.faq details { background: var(--brand-surface-alt); border: 1px solid var(--brand-border); border-radius: var(--radius-lg); margin-bottom: 12px; }
.faq summary { list-style: none; cursor: pointer; padding: 18px 20px; min-height: 44px; font-weight: 600; font-size: 1.0625rem; color: var(--brand-primary); display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--brand-accent); flex: none; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 20px 18px; color: var(--brand-secondary-text); }

/* Footer (UX.3.1 family footer; columns whose pages do not exist yet stay hidden, as UX.3.1 does for Customers/Blog). */
.site-footer { background: var(--brand-primary); color: var(--brand-surface-alt); padding: 56px 0 28px; }
.site-footer a { color: var(--brand-surface-alt); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.footer-top .logo svg { width: 148px; }
.footer-top .logo .loop, .footer-top .logo .wordmark { fill: var(--brand-surface-alt); }
.footer-col h2 { font-size: .875rem; text-transform: uppercase; letter-spacing: .08em; color: var(--brand-surface-alt); margin-bottom: 12px; }
html[lang="ar"] .footer-col h2 { text-transform: none; letter-spacing: 0; font-size: 1rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li a { display: inline-flex; min-height: 36px; align-items: center; }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--brand-secondary-text); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .9375rem; }
.footer-bottom .lang-switch { color: var(--brand-surface-alt); min-height: 36px; padding: 0; }
.footer-bottom .lang-switch:hover { background: transparent; text-decoration: underline; }

/* Cookie notice (UX.3.1): essential-only, one button. Dismissal is kept in localStorage, never a cookie. */
.cookie { position: fixed; inset-inline: 16px; bottom: 16px; z-index: 30; display: none; max-width: 720px; margin-inline: auto; padding: 14px 16px; gap: 12px 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: var(--brand-primary); color: var(--brand-surface-alt); border-radius: var(--radius-lg); box-shadow: 0 8px 24px var(--shadow-color); font-size: .9375rem; }
.cookie.show { display: flex; }
.cookie .btn { min-height: 44px; background: var(--brand-surface-alt); color: var(--brand-primary); }

@media (max-width: 960px) {
  .hero .wrap, .join .wrap { grid-template-columns: 1fr; }
  .emblem-stage { max-width: 220px; order: -1; }
  .cards { grid-template-columns: 1fr 1fr; }
  .join .lead { position: static; }
}
@media (max-width: 600px) {
  .hero { padding: 40px 0 56px; }
  section { padding: 56px 0; }
  .cards, .checks { grid-template-columns: 1fr; }
  .honesty .wrap { grid-template-columns: 1fr; }
  .header-actions .btn { display: none; }
  .logo svg { width: 140px; }
  form.waitlist { padding: 20px; }
  .hero .ctas .btn { flex: 1 1 100%; }
}
