/* Iris 35 — elghaly house palette 5b (matches chatting.elghaly.dev). */

@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/outfit-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/outfit-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/outfit-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Cairo";
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url("/fonts/cairo-arabic-wght.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-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: "Cinzel Wordmark";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/cinzel-500-wordmark.woff2") format("woff2");
  unicode-range: U+0041, U+0045, U+0047, U+0048, U+004C, U+0059;
}

:root {
  color-scheme: dark;
  --bg: #5a4fc0;
  --bg-2: #6a5fd0;
  --card: #0d0b1f;
  --card-2: #17142f;
  --line: #1c1838;
  --line-2: #2e2856;
  --text: #ffffff;
  --muted: #b9b3e6;
  --gold: #c9c2ff;
  --gold-2: #e2deff;
  --gold-ink: #17123d;
  --pos: #7be3b0;
  --on-bg-line: rgba(255, 255, 255, 0.2);
  --shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 18px 40px -20px rgba(16, 10, 58, 0.6);
  --radius: 22px;
  --radius-sm: 20px;
  --font: "Outfit", "Cairo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --max: 72rem;
  --gutter: 1rem;
  /* legacy iris tokens */
  --ink: var(--text);
  --dim: var(--muted);
  --p: var(--gold);
  --g: var(--gold);
  --c: var(--gold-2);
  --l: var(--on-bg-line);
  --warn: #f5d76e;
  --bad: #ff8fa8;
}

html {
  background: var(--bg);
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  overflow-x: clip;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(180deg, var(--bg), var(--bg-2));
}

a {
  color: var(--gold-2);
  text-underline-offset: 3px;
}

/* ── top bar ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  margin: 0 -16px 8px;
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  border-bottom: 1px solid var(--on-bg-line);
}

@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .nav {
    background: color-mix(in srgb, var(--bg) 78%, transparent);
    -webkit-backdrop-filter: saturate(160%) blur(16px);
    backdrop-filter: saturate(160%) blur(16px);
  }
}

.nav__in {
  max-width: var(--max);
  min-height: 56px;
  margin: 0 auto;
  padding: 0.45rem 16px;
  padding-top: max(0.45rem, env(safe-area-inset-top));
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: nowrap;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  text-decoration: none;
  color: var(--text);
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--on-bg-line);
}

.brand-lockup .word {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--text);
}

.house-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex: none;
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.house-badge__dot {
  color: var(--gold);
  font-size: 0.65rem;
  line-height: 1;
}

.nav__links {
  display: none;
  gap: 0.2rem;
  margin-inline-start: auto;
}

.nav__links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  background: var(--card);
  border: 1px solid var(--line);
}

.nav__links a:hover,
.nav__links a[aria-current="page"] {
  background: var(--card-2);
  border-color: var(--line-2);
}

.nav__links--always {
  display: flex;
}

.lang-switch {
  display: flex;
  gap: 4px;
  min-width: 0;
  margin-inline-start: auto;
  overflow-x: auto;
  scrollbar-width: none;
}

.lang-switch::-webkit-scrollbar {
  display: none;
}

.lang-btn {
  flex: none;
  min-height: 44px;
  padding: 4px 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--card);
  color: var(--text);
  font: 500 0.75rem var(--font);
  cursor: pointer;
  white-space: nowrap;
}

.lang-btn[aria-pressed="true"] {
  border-color: var(--line-2);
  background: var(--card-2);
  color: var(--gold-2);
}

@media (max-width: 420px) {
  .nav__in {
    gap: 0.35rem;
    min-width: 0;
  }
  .brand-lockup .word {
    font-size: 0.85rem;
    letter-spacing: 0.12em;
  }
  .house-badge {
    padding: 0.3rem 0.55rem;
    font-size: 0.75rem;
  }
  .lang-btn {
    padding: 4px 6px;
    font-size: 0.68rem;
  }
  .nav__links--always a {
    padding: 0.45rem 0.5rem;
    font-size: 0.82rem;
  }
  .lang-switch {
    min-width: 0;
    max-width: 100%;
  }
}

@media (max-width: 390px) {
  .nav__in {
    gap: 0.25rem;
  }
  .brand-lockup .word {
    display: none;
  }
  .nav__links--always a {
    padding: 0.4rem 0.45rem;
    font-size: 0.78rem;
  }
}

@media (min-width: 900px) {
  .lang-switch {
    margin-inline-start: 0.5rem;
  }
}

.wrap {
  max-width: min(760px, var(--max));
}

.go,
.cta {
  background: var(--gold) !important;
  color: var(--gold-ink) !important;
  border-color: transparent !important;
  font-weight: 700;
  box-shadow: 0 12px 26px -14px rgba(26, 20, 5, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.go:hover,
.cta:hover {
  background: var(--gold-2) !important;
}

.ghost,
.tabs button,
.ans button {
  border-color: var(--line-2);
}

.tabs button[aria-selected="true"],
.langs button.on {
  background: var(--gold);
  color: var(--gold-ink);
  border-color: var(--gold);
}

.card,
.limits,
.how div,
.askgrid button {
  background: var(--card);
  border-color: var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.card .hint,
.lede,
.hint,
.love,
.limits,
.bullets,
.how span,
.voice-hint,
footer {
  color: var(--muted);
}

h2,
.limits h2,
label {
  color: var(--gold);
}

.offline-bar {
  background: var(--warn);
  color: var(--gold-ink);
}

.skip:focus {
  background: var(--gold);
  color: var(--gold-ink);
}

.talk-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
  min-height: 64px;
  margin: 0 0 10px;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: var(--card) !important;
  color: var(--text) !important;
  font-family: inherit;
  text-decoration: none;
  letter-spacing: 0.02em;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  box-shadow: var(--shadow);
  transition: transform 0.1s ease, background 0.2s ease;
}

.talk-btn:hover {
  background: var(--card-2) !important;
  color: var(--text) !important;
}

.talk-btn:active {
  transform: scale(0.98);
}

.talk-btn:focus-visible {
  outline: 3px solid var(--gold-2);
  outline-offset: 3px;
  border-radius: 999px;
}

.talk-icon {
  font-size: 26px;
  line-height: 1;
}

.talk-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: start;
  line-height: 1.2;
  min-width: 0;
}

.talk-label {
  font-size: 19px;
  font-weight: 600;
  white-space: normal;
}

.talk-sub {
  font-size: 12px;
  font-weight: 400;
  opacity: 0.8;
}

@media (max-width: 390px) {
  .talk-label {
    font-size: 17px;
  }
  .talk-icon {
    font-size: 23px;
  }
}

.safety-note {
  border: 1px solid color-mix(in srgb, var(--warn) 45%, transparent);
  background: color-mix(in srgb, var(--warn) 8%, transparent);
  color: var(--text);
}

.tagline,
.tagline-foot,
.love,
footer .we-are {
  color: var(--text);
}

footer .made-by {
  color: var(--warn);
}

.lock img,
.demo video {
  background: var(--card);
}

.ans button {
  background: var(--card-2);
}

.ans button.on-no {
  border-color: var(--gold);
  color: var(--gold);
  background: color-mix(in srgb, var(--gold) 10%, transparent);
}

.ans button.on-yes {
  border-color: var(--bad);
  color: var(--bad);
  background: color-mix(in srgb, var(--bad) 10%, transparent);
}

.ans button.on-idk {
  border-color: var(--warn);
  color: var(--warn);
  background: color-mix(in srgb, var(--warn) 10%, transparent);
}

.A {
  color: var(--gold);
}
.B {
  color: var(--warn);
}
.C {
  color: var(--bad);
}
.X {
  color: var(--muted);
}

textarea,
input[type="email"],
input[type="text"] {
  background: var(--card-2);
}

.footer-contact {
  margin: 12px 0;
  font-size: 0.95rem;
  color: var(--text);
}

.footer-contact a {
  color: var(--gold-2);
  font-weight: 600;
}

html[lang|="ar"] .urgent-h,
html[lang|="ar"] .go,
html[lang|="ar"] .cta {
  letter-spacing: 0;
}

html[lang|="zh"] .urgent-h {
  letter-spacing: 0.02em;
}

/* Text on --bg: spec tokens that meet 4.5:1 on #5a4fc0 (axe / Lighthouse). */
body .demo figcaption,
body .voice-hint,
body .progress,
body h2,
body label,
body .limits h2,
body .path {
  color: var(--gold-2);
}

body .safety-note strong {
  color: var(--text);
}

body .bullets,
body .bullets li,
body footer,
body footer .we-are,
body footer .plumb-door,
body footer .plumb-door span,
body footer .trust,
body footer .lic-badges,
body footer .lic-badges a,
body footer .lic-badges span,
body footer .made-by {
  color: var(--text);
}

body footer a,
body footer .plumb-door a,
body footer .we-are a {
  color: var(--text);
  font-weight: 600;
}
