/*
 * Radd's public website (BL-8, A-85). Built from the approved canvas
 * (https://claude.ai/artifact/7zBKV1Bc9QmPVZeiBrTDRa): every value below is the
 * canvas's own, moved out of inline styles so one stylesheet serves both
 * languages. Logical properties (`inline-start`, `padding-inline`) do the
 * mirroring; the only per-language values are the line heights, which the
 * canvas sets looser for Arabic.
 *
 * The canvas measured widths with container units (`cqi`) against the page;
 * the page is the viewport here, so they are `vw`.
 */

@font-face {
  font-family: 'Public Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url('fonts/public-sans-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: 'Public Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url('fonts/public-sans-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: 'Public Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url('fonts/public-sans-latin-600-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: 'Public Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url('fonts/public-sans-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;
}

/* The Arabic subset only. Latin on the Arabic page is drawn by Public Sans,
   which comes first in the stack — exactly as on the canvas. */
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url('fonts/ibm-plex-sans-arabic-arabic-400-normal.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: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url('fonts/ibm-plex-sans-arabic-arabic-500-normal.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: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url('fonts/ibm-plex-sans-arabic-arabic-600-normal.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: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url('fonts/ibm-plex-sans-arabic-arabic-700-normal.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;
}

:root {
  color-scheme: light;

  --ink: #2F2B3D;
  --muted: rgba(47, 43, 61, 0.78);
  --soft: rgba(47, 43, 61, 0.72);
  --line: rgba(47, 43, 61, 0.12);
  --hairline: rgba(47, 43, 61, 0.08);
  --teal: #0F6B6B;
  --teal-dark: #0B5454;
  --teal-tint: rgba(15, 107, 107, 0.1);
  --ground: #F8F7FA;
  --paper: #FFFFFF;

  /* Arabic — the default page. */
  --lh-h1: 1.35;
  --lh-h2: 1.4;
  --lh-h3: 1.5;
  --lh-faq-h3: 1.6;
  --lh-try-h2: 1.45;
  --lh-lead: 1.85;
  --lh-body: 1.8;
  --lh-small: 1.7;
  --lh-chat: 1.7;
  --ls-h1: 0;
  --ls-h2: 0;
}

/* The English page's tighter rhythm, from the canvas's English frame. */
:root:lang(en) {
  --lh-h1: 1.15;
  --lh-h2: 1.25;
  --lh-h3: 1.4;
  --lh-faq-h3: 1.45;
  --lh-try-h2: 1.3;
  --lh-lead: 1.65;
  --lh-body: 1.65;
  --lh-small: 1.6;
  --lh-chat: 1.55;
  --ls-h1: -0.02em;
  --ls-h2: -0.01em;
}

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

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Public Sans', 'IBM Plex Sans Arabic', 'Segoe UI', Tahoma, sans-serif;
  overflow-x: hidden;
}

/* Arabic letters must stay joined (the same rule the admin's styles.scss
   carries for RTL). */
[dir='rtl'] body {
  letter-spacing: 0;
}

a {
  color: var(--teal);
}

a:hover {
  color: var(--teal-dark);
}

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

svg {
  display: block;
}

.skip {
  position: absolute;
  inset-inline-start: 16px;
  top: -60px;
  z-index: 20;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--teal);
  color: #FFFFFF;
  font-weight: 600;
  text-decoration: none;
}

.skip:focus {
  top: 12px;
  color: #FFFFFF;
}

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding-inline: 24px;
}

.section {
  padding-block: clamp(64px, 7vw, 104px);
}

.ground {
  background: var(--ground);
}

/* ------------------------------------------------------------- header --- */

.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--hairline);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}

.brand:hover {
  color: var(--ink);
}

.brand svg {
  color: var(--teal);
}

.brand-name {
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
}

:root:lang(en) .brand-name {
  font-size: 22px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 15px;
}

.nav-links a,
.nav-quiet {
  color: var(--muted);
  text-decoration: none;
}

.nav-links a:hover,
.nav-quiet:hover {
  color: var(--ink);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-quiet,
.nav-signin {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  font-size: 15px;
  white-space: nowrap;
}

/* BL-37 (A-98): the language switch's short form, for phones. */
.label-short {
  display: none;
}

.nav-signin {
  color: var(--teal-dark);
  font-weight: 600;
  text-decoration: none;
}

/* The language switch is written in the other language's own script. */
.in-arabic {
  font-family: 'IBM Plex Sans Arabic', sans-serif;
}

/* ------------------------------------------------------------ buttons --- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 8px;
  font-family: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.btn-sm {
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  background: var(--teal);
  color: #FFFFFF;
  font-size: 15px;
}

.btn-primary {
  min-height: 50px;
  padding: 0 24px;
  border: 0;
  background: var(--teal);
  color: #FFFFFF;
  font-size: 16px;
  box-shadow: 0 2px 6px rgba(15, 107, 107, 0.3);
}

.btn-sm:hover,
.btn-primary:hover {
  background: var(--teal-dark);
  color: #FFFFFF;
}

.btn-outline {
  min-height: 50px;
  padding: 0 22px;
  border: 1px solid rgba(15, 107, 107, 0.35);
  background: #FFFFFF;
  color: var(--teal-dark);
  font-size: 16px;
}

.btn-outline:hover {
  border-color: var(--teal);
  color: var(--teal-dark);
}

.btn-solid {
  min-height: 50px;
  padding: 0 22px;
  border: 0;
  background: var(--teal);
  color: #FFFFFF;
  font-size: 16px;
}

.btn-solid:hover {
  background: var(--teal-dark);
}

.btn-light {
  min-height: 52px;
  padding: 0 26px;
  border: 0;
  background: #FFFFFF;
  color: var(--teal-dark);
  font-size: 16px;
  font-weight: 700;
}

.btn-light:hover {
  background: #EEF5F5;
  color: var(--teal-dark);
}

/* --------------------------------------------------------------- hero --- */

.hero {
  background: var(--ground);
  overflow: hidden;
}

.hero-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 48px;
  padding-block: clamp(48px, 6vw, 88px) clamp(56px, 7vw, 104px);
}

.hero-copy {
  flex: 1 1 460px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--teal-tint);
  color: var(--teal-dark);
  font-size: 14px;
  font-weight: 600;
}

h1 {
  margin: 0;
  font-size: clamp(34px, 4vw, 56px);
  line-height: var(--lh-h1);
  letter-spacing: var(--ls-h1);
  font-weight: 700;
  color: var(--ink);
}

.accent {
  color: var(--teal);
}

.lead {
  margin: 0;
  max-width: 540px;
  font-size: clamp(17px, 1.5vw, 19px);
  line-height: var(--lh-lead);
  color: var(--muted);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.note {
  margin: 0;
  font-size: 14px;
  line-height: var(--lh-small);
  color: var(--soft);
}

.hero-art {
  flex: 1 1 460px;
  min-width: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-block: 24px;
}

.stage {
  position: relative;
  width: 360px;
  max-width: 100%;
  margin-inline-start: clamp(0px, calc((100vw - 900px) * 0.4), 150px);
}

.halo {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 500px;
  height: 500px;
  margin: -250px 0 0 -250px;
  border-radius: 50%;
  background: rgba(15, 107, 107, 0.07);
  outline: 1.5px solid rgba(15, 107, 107, 0.16);
  outline-offset: 30px;
}

/* The hero's conversation is a drawing of the widget to BRD §9 — the real
   one is in the page corner. Inert, so nothing in it takes focus. */
.mock {
  position: relative;
  margin: 0;
  width: 100%;
  background: #FFFFFF;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 20px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.16);
  overflow: hidden;
  font-family: -apple-system, 'Segoe UI', Roboto, 'Noto Sans Arabic', 'Helvetica Neue', Arial, sans-serif;
}

.mock-head {
  height: 60px;
  padding-inline: 16px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.mock-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: #111827;
}

.mock-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34A36B;
}

.mock-tools {
  display: flex;
  align-items: center;
  gap: 2px;
  color: #4B5563;
}

.mock-tool {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
}

.mock-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 15px;
  line-height: var(--lh-chat);
}

.bubble {
  margin: 0;
  max-width: 82%;
  padding: 10px 14px;
}

/* §9: the assistant on the left and the visitor on the right in both
   languages — the body is dir="ltr" for the layout, each bubble keeps the
   page's own direction for its text. */
.bubble-bot {
  align-self: flex-start;
  border-radius: 6px 18px 18px 18px;
  background: #F3F4F6;
  color: #111827;
}

.bubble-me {
  align-self: flex-end;
  border-radius: 18px 6px 18px 18px;
  background: var(--teal);
  color: #FFFFFF;
}

.mock-composer {
  height: 64px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.mock-input {
  flex-grow: 1;
  min-width: 0;
  height: 40px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 20px;
  background: #F9FAFB;
  font-size: 15px;
  color: #6B7280;
}

.mock-send {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--teal);
  color: #FFFFFF;
  opacity: 0.45;
}

[dir='rtl'] .mock-send svg {
  transform: scaleX(-1);
}

.mock-foot {
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: #6B7280;
}

.float-file {
  position: absolute;
  top: 78px;
  inset-inline-start: -136px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px 12px 14px;
  background: #FFFFFF;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(47, 43, 61, 0.12);
}

:root:lang(en) .float-file {
  inset-inline-start: -152px;
}

.float-file-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--teal-tint);
  color: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
}

.float-file-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.float-file-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.float-file-state {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: #1F7A4D;
}

.float-lang {
  position: absolute;
  bottom: 132px;
  inset-inline-end: -78px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px;
  background: #FFFFFF;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(47, 43, 61, 0.12);
}

.float-lang span {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.float-lang-ar {
  background: var(--teal);
  color: #FFFFFF;
  font-size: 18px;
  font-weight: 600;
  font-family: 'IBM Plex Sans Arabic', sans-serif;
}

.float-lang-en {
  background: rgba(15, 107, 107, 0.12);
  color: var(--teal-dark);
  font-size: 16px;
  font-weight: 700;
}

/* --------------------------------------------------- section headings --- */

.section-inner {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.heading {
  max-width: 680px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.eyebrow {
  font-size: 15px;
  font-weight: 600;
  color: var(--teal);
}

h2 {
  margin: 0;
  font-size: clamp(28px, 3vw, 40px);
  line-height: var(--lh-h2);
  letter-spacing: var(--ls-h2);
  font-weight: 700;
  color: var(--ink);
  text-wrap: balance;
}

h3 {
  margin: 0;
  font-size: 19px;
  line-height: var(--lh-h3);
  font-weight: 700;
  color: var(--ink);
}

.copy {
  margin: 0;
  font-size: 16px;
  line-height: var(--lh-body);
  color: var(--muted);
}

/* ---------------------------------------------------------- why cards --- */

.cards {
  display: grid;
  /* BL-38 (A-99): every grid's column minimum is capped at the space there
     is, `min(Npx, 100%)` — below 364 px the 320 and 340 px minimums made
     the features and the FAQ wider than the screen. Wider screens are
     unchanged. */
  grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
  gap: 20px;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #FFFFFF;
}

.icon-tile {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--teal-tint);
  color: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ------------------------------------------------------------- steps --- */

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 20px;
}

.step {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px 24px;
  border-radius: 16px;
  background: #FFFFFF;
  box-shadow: 0 2px 8px rgba(47, 43, 61, 0.06);
}

.step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--teal);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 700;
}

/* ---------------------------------------------------------- features --- */

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 40px;
}

.feature {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.feature .icon-tile {
  width: 44px;
  height: 44px;
}

.feature-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.feature h3 {
  font-size: 18px;
}

/* --------------------------------------------------- knowledge page --- */

/* BL-34 (A-95): the knowledge page (BL-31, FR-23). The drawing is to
   FR-23.3's design — the AI answer in an outlined box first, then the
   matching articles — in the site's teal, and inert like the hero's. */
.kb-split {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(32px, 5vw, 64px);
}

.kb-copy {
  flex: 1 1 420px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.kb-lead {
  max-width: 560px;
  font-size: 17px;
}

.kb-points {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.kb-art {
  flex: 1 1 380px;
  min-width: 0;
  display: flex;
  justify-content: center;
}

.kb-mock {
  margin: 0;
  width: 100%;
  max-width: 440px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: #FFFFFF;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 20px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
}

.kb-search {
  height: 52px;
  padding-inline: 16px 6px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 14px;
  color: #6B7280;
}

.kb-search-text {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 15px;
  color: #111827;
}

.kb-search-go {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--teal);
  color: #FFFFFF;
}

[dir='rtl'] .kb-search-go svg {
  transform: scaleX(-1);
}

.kb-ai {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border: 1.5px solid rgba(15, 107, 107, 0.4);
  border-radius: 14px;
  background: #FFFFFF;
}

.kb-ai-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--teal-dark);
}

.kb-ai-text {
  margin: 0;
  font-size: 16px;
  line-height: var(--lh-small);
  color: #111827;
}

.kb-ai-src {
  margin: 0;
  font-size: 13px;
  line-height: var(--lh-small);
  color: #4B5563;
}

.kb-link {
  font-weight: 600;
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.kb-results-head {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: #4B5563;
}

.kb-results {
  display: flex;
  flex-direction: column;
}

.kb-result {
  padding-block: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.kb-topic {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #4B5563;
}

.kb-mono {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: var(--teal-tint);
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 700;
}

.kb-result-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--teal);
}

.kb-result-snippet {
  font-size: 14px;
  line-height: var(--lh-small);
  color: #4B5563;
}

.kb-foot {
  font-size: 11px;
  text-align: center;
  color: #6B7280;
}

/* --------------------------------------------------------------- try --- */

.try {
  padding-bottom: clamp(64px, 7vw, 104px);
}

.try-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: clamp(28px, 4vw, 48px);
  border-radius: 20px;
  background: #EEF5F5;
}

.try-copy {
  flex: 1 1 420px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.try h2 {
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: var(--lh-try-h2);
}

.try p {
  margin: 0;
  max-width: 620px;
  font-size: 17px;
  line-height: var(--lh-body);
  color: rgba(47, 43, 61, 0.8);
}

/* --------------------------------------------------------------- faq --- */

.faq {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
  column-gap: 48px;
}

.faq-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.faq-item h3 {
  font-size: 18px;
  line-height: var(--lh-faq-h3);
}

#faq .section-inner {
  gap: 40px;
}

/* ----------------------------------------------------------- request --- */

.request {
  background: var(--teal-dark);
  color: #FFFFFF;
  padding-block: clamp(64px, 7vw, 96px);
}

.request-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.request h2 {
  font-size: clamp(28px, 3.2vw, 44px);
  color: #FFFFFF;
}

.request p {
  margin: 0;
  max-width: 560px;
  font-size: 18px;
  line-height: var(--lh-body);
  color: rgba(255, 255, 255, 0.86);
}

.request-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 8px;
}

/* The contact, once the deployment names one (WEBSITE_CONTACT_*). */
.contact {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 0 18px;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  border-radius: 8px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  unicode-bidi: plaintext;
}

.contact:hover {
  border-color: #FFFFFF;
  color: #FFFFFF;
}

/* Until it does: the canvas's dashed placeholder. */
.contact-missing {
  border-style: dashed;
}

/* ------------------------------------------------------------ footer --- */

.site-footer {
  background: var(--paper);
  border-top: 1px solid var(--hairline);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 28px;
  font-size: 14px;
  color: var(--soft);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-brand svg {
  color: var(--teal);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--ink);
}

/* ------------------------------------------------- the live assistant --- */

/* "Try the assistant" and the try section speak about the widget in the
   page corner, so they show only once it is really there: `radd:ready` (or
   `window.Radd` already set) adds this class. With no key configured, a
   switched-off bot or a domain missing from the allowlist, the widget renders
   nothing (AC-7.4) — and so does this page's talk of it. */
[data-needs-widget] {
  display: none !important;
}

.radd-ready [data-needs-widget] {
  display: revert !important;
}

.radd-ready .btn[data-needs-widget] {
  display: inline-flex !important;
}

/* ------------------------------------------------------------ narrow --- */

@media (max-width: 760px) {
  .wide-only {
    display: none !important;
  }
}

/* BL-37 (A-98): with the sign-in link always in the header, the English
   header's section links need 850 px — at 761–849 px they pushed the button
   off the edge (it overflowed there before too). They wait until 861 px. */
@media (max-width: 860px) {
  .nav-links {
    display: none !important;
  }
}

/* The canvas's phone frame is the Arabic page at 390 px, where the header's
   "اطلب حسابك" fits. "Request an account" is twice as long and wrapped onto
   two lines at 375 px, so phones get a tighter header — and below 375 px the
   English header drops the button: the hero's own "Request an account" is
   the next thing on the screen.
   BL-37 (A-98): the owner wants the sign-in link on phones too — the canvas
   hid it there. To make room, the language switch shows its short form
   ("EN", «ع»; the link keeps its full name for screen readers), and the
   spacing tightens — up to 560 px, because the full labels overflowed at
   421–452 px in Arabic and 481–519 px in English once the link was back.
   The English header drops its button below 414 px (it was 375 px) and the
   Arabic one below 360 px, for the canvas's reason. */
@media (max-width: 560px) {
  .nav {
    gap: 8px;
  }

  .nav-actions {
    gap: 4px;
  }

  .nav-quiet,
  .nav-signin {
    padding: 0 6px;
  }

  .label-long {
    display: none;
  }

  .label-short {
    display: inline;
  }
}

@media (max-width: 420px) {
  .btn-sm {
    padding: 0 12px;
    font-size: 14px;
  }
}

.btn {
  white-space: nowrap;
}

@media (max-width: 413px) {
  :root:lang(en) .btn-sm {
    display: none;
  }
}

@media (max-width: 359px) {
  .nav-actions .btn-sm {
    display: none;
  }
}
