/*
 * Marketing site styles. Values match the dashboard tokens (PR #16, public/ui/tokens.css) so the two
 * read as one product; this file stays self-contained so the site does not depend on the dashboard's CSS.
 * IBM Plex Sans Arabic from @fontsource/ibm-plex-sans-arabic@5.3.0, SIL OFL 1.1, see fonts/OFL.txt.
 */
@font-face {
  font-family: "IBM Plex Sans Arabic";
  font-weight: 400;
  font-display: swap;
  src: url(fonts/ibm-plex-sans-arabic-arabic-400.6010e7fd0d.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,U+102E0-102FB,U+10E60-10E7E,U+10EC2-10EC4,U+10EFC-10EFF,U+1EE00-1EE03,U+1EE05-1EE1F,U+1EE21-1EE22,U+1EE24,U+1EE27,U+1EE29-1EE32,U+1EE34-1EE37,U+1EE39,U+1EE3B,U+1EE42,U+1EE47,U+1EE49,U+1EE4B,U+1EE4D-1EE4F,U+1EE51-1EE52,U+1EE54,U+1EE57,U+1EE59,U+1EE5B,U+1EE5D,U+1EE5F,U+1EE61-1EE62,U+1EE64,U+1EE67-1EE6A,U+1EE6C-1EE72,U+1EE74-1EE77,U+1EE79-1EE7C,U+1EE7E,U+1EE80-1EE89,U+1EE8B-1EE9B,U+1EEA1-1EEA3,U+1EEA5-1EEA9,U+1EEAB-1EEBB,U+1EEF0-1EEF1;
}
@font-face {
  font-family: "IBM Plex Sans Arabic";
  font-weight: 600;
  font-display: swap;
  src: url(fonts/ibm-plex-sans-arabic-arabic-600.16734a5adb.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,U+102E0-102FB,U+10E60-10E7E,U+10EC2-10EC4,U+10EFC-10EFF,U+1EE00-1EE03,U+1EE05-1EE1F,U+1EE21-1EE22,U+1EE24,U+1EE27,U+1EE29-1EE32,U+1EE34-1EE37,U+1EE39,U+1EE3B,U+1EE42,U+1EE47,U+1EE49,U+1EE4B,U+1EE4D-1EE4F,U+1EE51-1EE52,U+1EE54,U+1EE57,U+1EE59,U+1EE5B,U+1EE5D,U+1EE5F,U+1EE61-1EE62,U+1EE64,U+1EE67-1EE6A,U+1EE6C-1EE72,U+1EE74-1EE77,U+1EE79-1EE7C,U+1EE7E,U+1EE80-1EE89,U+1EE8B-1EE9B,U+1EEA1-1EEA3,U+1EEA5-1EEA9,U+1EEAB-1EEBB,U+1EEF0-1EEF1;
}
@font-face {
  font-family: "IBM Plex Sans Arabic";
  font-weight: 400;
  font-display: swap;
  src: url(fonts/ibm-plex-sans-arabic-latin-400.9ed8dcb02e.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: "IBM Plex Sans Arabic";
  font-weight: 600;
  font-display: swap;
  src: url(fonts/ibm-plex-sans-arabic-latin-600.63f4757271.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;
}

:root {
  --mq-color-bg: #F8F8F8;
  --mq-color-bg-surface: #FFFFFF;
  --mq-color-text: #1A1A1A;
  --mq-color-text-secondary: #5C5B61;
  --mq-color-text-link: #1A5FC8;
  --mq-color-text-link-hover: #134A9E;
  --mq-color-border: #E4E4E5;
  --mq-color-border-input: #8A898F;
  --mq-color-border-focus: #1A5FC8;
  --mq-color-bg-fill-brand: #1A1A1A;
  --mq-color-bg-fill-brand-hover: #333333;
  --mq-font-family-sans: "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  --lh-display: 1.35;
  --lh-h2: 1.4;
  --lh-h3: 1.5;
  --lh-body: 1.75;
  --measure: 60ch;
  color-scheme: light;
}

:lang(en) {
  --lh-display: 1.25;
  --lh-h2: 1.3;
  --lh-h3: 1.4;
  --lh-body: 1.6;
  --measure: 68ch;
}

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

body {
  margin: 0;
  background: var(--mq-color-bg);
  color: var(--mq-color-text);
  font: 400 16px/var(--lh-body) var(--mq-font-family-sans);
  -webkit-text-size-adjust: 100%;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
main { flex: 1 0 auto; }

h1, h2, h3, p, ol, dl, dd, figure { margin: 0; padding: 0; }
ol { list-style: none; }
img { display: block; max-width: 100%; height: auto; }

h1 { font-size: 40px; line-height: var(--lh-display); font-weight: 600; text-wrap: balance; }
h2 { font-size: 28px; line-height: var(--lh-h2); font-weight: 600; }
h3 { font-size: 20px; line-height: var(--lh-h3); font-weight: 600; }

a { color: var(--mq-color-text-link); }
a:hover { color: var(--mq-color-text-link-hover); }
:focus-visible {
  outline: 2px solid var(--mq-color-border-focus);
  outline-offset: 2px;
  border-radius: 2px;
}

.wrap { width: 100%; max-width: 1120px; margin-inline: auto; padding-inline: 24px; }

.skip-link {
  position: absolute;
  inset-inline-start: 16px;
  top: -64px;
  padding: 8px 16px;
  background: var(--mq-color-bg-surface);
  border: 1px solid var(--mq-color-border-input);
  border-radius: 8px;
  z-index: 1;
}
.skip-link:focus { top: 12px; }

.site-header { background: var(--mq-color-bg-surface); border-block-end: 1px solid var(--mq-color-border); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--mq-color-text);
  font-weight: 600;
  font-size: 18px;
  text-decoration: none;
  min-height: 44px;
}
.brand img { border-radius: 4px; }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 12px;
  color: var(--mq-color-text);
  text-decoration: none;
  border-radius: 8px;
}
.site-nav a:hover { background: #F2F2F2; color: var(--mq-color-text); }
html[lang="en"] .lang-link { font-family: system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif; }

.hero { padding-block: 64px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 64px; align-items: start; }
.lead { margin-block-start: 16px; font-size: 18px; max-width: var(--measure); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-block-start: 24px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding-inline: 20px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
}
.button-primary { background: var(--mq-color-bg-fill-brand); color: #FFFFFF; }
.button-primary:hover { background: var(--mq-color-bg-fill-brand-hover); color: #FFFFFF; }
.button-secondary { background: var(--mq-color-bg-surface); color: var(--mq-color-text); border: 1px solid var(--mq-color-border-input); }
.button-secondary:hover { background: #F2F2F2; color: var(--mq-color-text); }

.capture { border: 1px solid var(--mq-color-border); border-radius: 12px; background: var(--mq-color-bg-surface); }
figcaption { margin-block-start: 8px; font-size: 13px; line-height: 1.6; color: var(--mq-color-text-secondary); }

.band { padding-block: 64px; border-block-start: 1px solid var(--mq-color-border); }
.band-white { background: var(--mq-color-bg-surface); }
.section-intro { margin-block-start: 8px; color: var(--mq-color-text-secondary); max-width: var(--measure); }

.sequence { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin-block-start: 32px; align-items: start; }
.sequence p { margin-block-start: 4px; color: var(--mq-color-text-secondary); }
.sequence .capture { margin-block-start: 16px; width: 100%; max-width: 300px; }

.steps { counter-reset: step; margin-block-start: 32px; }
.steps > li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 40px;
  align-items: start;
  padding-block: 32px;
  border-block-start: 1px solid var(--mq-color-border);
}
.steps > li:first-child { border-block-start: 0; padding-block-start: 0; }
.steps > li:last-child { padding-block-end: 0; }
.step-text::before {
  content: counter(step);
  display: block;
  font-size: 28px;
  line-height: 1.3;
  font-weight: 600;
  color: var(--mq-color-text-secondary);
}
.step-text p { margin-block-start: 4px; color: var(--mq-color-text-secondary); }
.steps .capture { width: 100%; }

.spec { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 64px; margin-block-start: 24px; }
.spec > div { padding-block: 16px; border-block-start: 1px solid var(--mq-color-border); }
.spec dt { font-weight: 600; }
.spec dd { margin-block-start: 2px; color: var(--mq-color-text-secondary); }

.compare { width: 100%; margin-block-start: 24px; border-collapse: collapse; }
.compare th, .compare td { padding: 12px 16px 12px 0; text-align: start; vertical-align: top; border-block-start: 1px solid var(--mq-color-border); }
html[dir="rtl"] .compare th, html[dir="rtl"] .compare td { padding: 12px 0 12px 16px; }
.compare thead td, .compare thead th { border-block-start: 0; font-weight: 600; }
.compare tbody th { font-weight: 600; width: 24%; }
.compare tbody td { color: var(--mq-color-text-secondary); width: 38%; }
.compare tbody td:last-child { color: var(--mq-color-text); }

.faq { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 40px; }
.faq details { border-block-start: 1px solid var(--mq-color-border); }
.faq details:last-child { border-block-end: 1px solid var(--mq-color-border); }
.faq summary { padding-block: 12px; font-weight: 600; cursor: pointer; }
.faq details p { padding-block-end: 16px; color: var(--mq-color-text-secondary); max-width: var(--measure); }

.site-footer { background: var(--mq-color-bg-surface); border-block-start: 1px solid var(--mq-color-border); font-size: 14px; color: var(--mq-color-text-secondary); }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 32px; padding-block: 24px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.site-footer nav a { display: inline-flex; align-items: center; min-height: 44px; }

.plain-page { padding-block: 64px; }
.plain-page p { margin-block-start: 16px; max-width: var(--measure); }
.plain-page .lead { font-size: 18px; }
.prose h2 { margin-block-start: 32px; font-size: 22px; line-height: var(--lh-h2); }
.plain-list { margin: 16px 0 0; padding-inline-start: 24px; max-width: var(--measure); }
.plain-list li + li { margin-block-start: 8px; }

.channel-list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 12px; max-width: 640px; }
.channel-list li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 12px 16px; background: var(--mq-color-bg-surface); border: 1px solid var(--mq-color-border); border-radius: 12px; }
.channel-name { font-weight: 600; }

.breadcrumb a { display: inline-flex; align-items: center; min-height: 44px; }
.help-list { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 12px; max-width: 720px; }
.help-card { display: flex; align-items: flex-start; gap: 16px; padding: 16px; min-height: 44px; background: var(--mq-color-bg-surface); border: 1px solid var(--mq-color-border); border-radius: 12px; color: var(--mq-color-text); text-decoration: none; }
.help-card:hover { border-color: var(--mq-color-border-input); color: var(--mq-color-text); }
.help-card-number { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: #F2F2F2; font-weight: 600; }
.help-card-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.help-card-text > span { color: var(--mq-color-text-secondary); }
.help-steps { list-style: none; counter-reset: step; margin: 24px 0 0; padding: 0; display: grid; gap: 16px; max-width: var(--measure); }
.help-steps li { counter-increment: step; position: relative; padding-inline-start: 48px; }
.help-steps li::before { content: counter(step); position: absolute; inset-inline-start: 0; top: 0; display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: var(--mq-color-bg-fill-brand); color: #FFFFFF; font-size: 14px; font-weight: 600; line-height: 1; }
.help-callout { margin-block-start: 48px; padding: 24px; max-width: 720px; background: var(--mq-color-bg-surface); border: 1px solid var(--mq-color-border); border-radius: 12px; }
.help-callout h2 { margin-block-start: 0; font-size: 20px; }

@media (max-width: 1023px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .hero-figure { max-width: 340px; }
  .sequence { gap: 32px; }
  .steps > li, .faq { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .faq { gap: 24px; }
  .steps > li { gap: 16px; }
}

@media (max-width: 767px) {
  h1 { font-size: 30px; }
  h2 { font-size: 24px; }
  h3 { font-size: 18px; }
  .wrap { padding-inline: 16px; }
  .hero { padding-block: 40px; }
  .lead { font-size: 16px; }
  .band { padding-block: 48px; }
  .site-nav .nav-section { display: none; }
  .site-nav a { padding-inline: 8px; }
  .sequence { grid-template-columns: minmax(0, 1fr); }
  .sequence .capture { max-width: 320px; }
  .spec { grid-template-columns: minmax(0, 1fr); }
  .compare thead { display: none; }
  .compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; width: auto; }
  .compare tr { padding-block: 12px; border-block-start: 1px solid var(--mq-color-border); }
  .compare tbody th, .compare tbody td { padding: 0; border: 0; width: auto; }
  html[dir="rtl"] .compare tbody th, html[dir="rtl"] .compare tbody td { padding: 0; }
  .compare tbody td { margin-block-start: 8px; }
  .compare tbody td::before { content: attr(data-label); display: block; font-size: 13px; color: var(--mq-color-text-secondary); }
}
