/* Public website design system. The illustrated market has its own stylesheets. */
@font-face {
  font-family: Inter;
  src: url("./fonts/inter-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url("./fonts/inter-500.woff2") format("woff2");
  font-weight: 500 600;
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url("./fonts/inter-700.woff2") format("woff2");
  font-weight: 700 900;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("./fonts/plex-arabic-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
:root {
  color-scheme: light;
  --paper: #f7f4ee;
  --surface: #eeeee6;
  --subtle: #dcded3;
  --text: #272e28;
  --soft-text: #5d665c;
  --accent: #42634c;
  --cream: var(--paper);
  --ink: var(--text);
  --muted: var(--soft-text);
  --green: var(--accent);
  --deep-green: #2c4835;
  --line: var(--subtle);
  --sage: #e4ebe1;
  --serif: Georgia, "Times New Roman", serif;
}
html[data-theme="dark"] {
  color-scheme: dark;
  --paper: #171e1a;
  --surface: #222d25;
  --subtle: #3b493e;
  --text: #f1f1e8;
  --soft-text: #bbc6b8;
  --accent: #b1cdb0;
  --sage: #263b2d;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font:
    400 15px/1.65 Inter,
    system-ui,
    sans-serif;
  -webkit-font-smoothing: antialiased;
}
html[lang="ar"] body,
[lang="ar"] {
  font-family: "IBM Plex Sans Arabic", sans-serif;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
select {
  font: inherit;
  color: inherit;
}
button,
summary {
  cursor: pointer;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button:disabled {
  cursor: default;
  opacity: 0.6;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
svg {
  display: block;
}
[hidden] {
  display: none !important;
}
:where(a, button, select, summary):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
::selection {
  background: #cbddc4;
  color: #17271c;
}
.wrap {
  width: min(1200px, calc(100% - 80px));
  margin-inline: auto;
}
.sr-only,
.skip-link:not(:focus),
.theme-toggle > span {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link:focus {
  position: fixed;
  inset: 12px auto auto 12px;
  z-index: 100;
  padding: 12px 18px;
  background: var(--paper);
  color: var(--text);
}
.eyebrow {
  font-size: 11px;
  line-height: 1.5;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--accent);
}
html[lang="ar"] .eyebrow {
  letter-spacing: 0;
}
.live-dot {
  width: 5px;
  height: 5px;
  display: inline-block;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--accent);
}
em {
  color: var(--accent);
  font-weight: inherit;
}
h2 {
  font-size: clamp(25px, 2.6vw, 34px);
  line-height: 1.25;
  font-weight: 500;
  letter-spacing: -0.035em;
  margin: 0;
}
h2 em {
  color: inherit;
  font-style: normal;
}
.brand-inline {
  display: inline-block;
  white-space: nowrap;
  direction: ltr;
  unicode-bidi: isolate;
}
.icon-arrow {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  flex-shrink: 0;
}
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  min-height: 48px;
  padding: 13px 20px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: #34563f;
  color: #fffef6;
  font-size: 13px;
  line-height: 1.5;
  font-weight: 500;
  transition: background-color 180ms;
}
.button:hover {
  background: #254430;
}
.button-small {
  min-height: 42px;
  padding: 10px 16px;
  font-size: 12px;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 500;
}
.text-link:hover {
  color: var(--accent);
}
/* Navigation uses one baseline; disclosures contain secondary choices. */
.site-header {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 88px;
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 20;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.brand > img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}
.scanner-wordmark {
  direction: ltr;
  unicode-bidi: isolate;
  white-space: nowrap;
  font:
    700 18px/1.2 Inter,
    sans-serif;
  letter-spacing: -0.6px;
}
.scanner-wordmark > span {
  color: var(--accent);
  font-weight: 500;
  margin-inline: 2px;
}
.primary-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-inline-start: auto;
}
.primary-nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  font-size: 13px;
  white-space: nowrap;
}
.primary-nav a:hover {
  color: var(--accent);
}
.primary-nav .nav-download {
  display: none;
}
.site-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}
.language-menu {
  position: relative;
}
.language-menu summary {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 8px;
  list-style: none;
  font-size: 12px;
  border-radius: 6px;
}
.language-menu summary::-webkit-details-marker {
  display: none;
}
.language-menu summary svg,
.theme-toggle svg,
.menu-toggle svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}
.language-menu summary .chevron {
  width: 12px;
}
.language-menu nav {
  position: absolute;
  inset-block-start: calc(100% + 8px);
  inset-inline-end: 0;
  min-width: 156px;
  display: grid;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  box-shadow: 0 12px 32px #101e1924;
  z-index: 25;
}
.language-menu:not([open]) nav {
  display: none;
}
.language-menu a {
  min-height: 42px;
  padding: 9px 12px;
  display: flex;
  align-items: center;
  border-radius: 5px;
  font-size: 13px;
}
.language-menu a[aria-current],
.language-menu a:hover {
  background: var(--surface);
  color: var(--accent);
}
.theme-toggle,
.menu-toggle {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  padding: 0;
  flex-shrink: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
}
.theme-toggle:hover,
.menu-toggle:hover,
.language-menu summary:hover {
  background: var(--surface);
}
.menu-toggle {
  display: none;
}
.legal-page .site-controls {
  margin-inline-start: auto;
}
.legal-page .site-header > .text-link {
  font-size: 12px;
}
/* Introduction: a clear promise and a single primary action. */
.hero {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  align-items: end;
  gap: clamp(40px, 6vw, 88px);
  padding-block: 60px 56px;
}
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
}
.hero h1 {
  font: 400 clamp(42px, 4.55vw, 66px) / 1.08 var(--serif);
  letter-spacing: -0.045em;
  margin: 0;
  text-wrap: balance;
}
.hero-body {
  padding-bottom: 6px;
}
.hero-copy {
  margin: 0;
  font-size: 16px;
  line-height: 1.85;
  color: var(--soft-text);
  max-width: 400px;
}
.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px 24px;
  margin-top: 24px;
}
.hero-actions .text-link {
  min-height: 44px;
}
html[lang="ar"] .hero h1 {
  font-family: "IBM Plex Sans Arabic", sans-serif;
  letter-spacing: 0;
  line-height: 1.35;
}
html[lang="ar"] h2 {
  letter-spacing: 0;
}
/* One market surface, with a toolbar and a quiet source caption. */
.courtyard-intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.courtyard-intro h2 {
  font-size: 26px;
}
.catalog-note {
  font-size: 12px;
  color: var(--soft-text);
  margin: 0;
}
.courtyard-intro > p {
  font-size: 12px;
  color: var(--soft-text);
  line-height: 1.65;
  margin: 0;
  text-align: end;
}
.courtyard-intro > p > span {
  display: block;
}
.market-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 18px;
  padding: 16px 22px;
  margin: 0;
  border-bottom: 1px solid var(--subtle);
  background: var(--paper);
  border-radius: 16px 16px 0 0;
}
.market-region {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--soft-text);
  font-size: 12px;
  min-width: 0;
}
.market-region select {
  width: 250px;
  max-width: 100%;
  min-height: 42px;
  padding: 8px 30px 8px 12px;
  border: 1px solid var(--subtle);
  border-radius: 6px;
  background: var(--paper);
  color: var(--text);
  font-size: 12px;
}
.market-refresh {
  min-height: 42px;
  font-size: 12px;
  padding: 9px 12px;
  border: 1px solid var(--subtle);
  border-radius: 6px;
  background: transparent;
}
.market-refresh:hover:not(:disabled) {
  background: var(--surface);
}
#market-fetch-state {
  flex: 1;
  min-width: 150px;
  font-size: 12px;
  color: var(--soft-text);
  line-height: 1.5;
  margin: 0;
}
#market-fetch-state:empty {
  display: none;
}
.courtyard-price-note {
  padding-top: 14px;
  margin: 0;
  max-width: 850px;
}
.courtyard-price-note p,
.price-note {
  font-size: 12px;
  line-height: 1.75;
  color: var(--soft-text);
  margin: 0;
}
.belief-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 32px;
  padding-block: 22px;
  border-block: 1px solid var(--line);
  color: var(--soft-text);
  font-size: 12px;
}
.belief-strip span {
  display: flex;
  gap: 10px;
  align-items: center;
}
.belief-strip span::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}
/* Supporting content shares the same grid, scale and spacing. */
.how-section {
  padding-block: 72px;
}
.section-intro {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 40px;
}
.section-intro > p {
  font-size: 14px;
  color: var(--soft-text);
  line-height: 1.8;
  max-width: 360px;
  margin: 0;
}
.section-intro > p br {
  display: none;
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
  margin-top: 36px;
}
.steps article {
  display: grid;
  grid-template-columns: 1fr auto;
  align-content: start;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}
.step-number {
  grid-column: 1;
  font-size: 12px;
  color: var(--accent);
  font-weight: 500;
}
.steps svg {
  grid-column: 2;
  width: 26px;
  height: 26px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.5;
}
.steps h3 {
  grid-column: 1/-1;
  margin: 20px 0 10px;
  font-size: 18px;
  line-height: 1.4;
  font-weight: 500;
}
.steps p {
  grid-column: 1/-1;
  margin: 0;
  font-size: 14px;
  color: var(--soft-text);
  line-height: 1.8;
}
.privacy-line {
  display: flex;
  align-items: start;
  gap: 10px;
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.privacy-line svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.6;
  margin-top: 2px;
}
.privacy-line p {
  margin: 0;
  font-size: 12px;
  line-height: 1.8;
}
.privacy-line span {
  color: var(--soft-text);
}
.download-card {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 48px;
  padding: 44px 64px;
  background: var(--surface);
  border-radius: 16px;
}
.download-copy h2 {
  font: 400 clamp(34px, 3.8vw, 49px) / 1.15 var(--serif);
  letter-spacing: -0.04em;
  margin: 18px 0;
}
.download-copy h2 em {
  color: var(--accent);
}
.download-copy > p {
  color: var(--soft-text);
  font-size: 14px;
}
.play-store-link {
  margin-top: 10px;
}
.play-mark {
  width: 23px;
  height: 25px;
  stroke: none;
  flex-shrink: 0;
}
.download-copy .platform-coming-soon {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  font-size: 12px;
}
.platform-coming-soon > span {
  width: 5px;
  height: 5px;
  border: 1px solid var(--accent);
  border-radius: 50%;
}
.download-copy .download-note {
  margin-top: 22px;
  font-size: 12px;
  max-width: 320px;
}
.download-social {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 20px;
}
.download-social-label {
  font-size: 12px;
  color: var(--soft-text);
}
.download-social nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.download-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--soft-text);
}
.download-social a:hover {
  color: var(--accent);
  border-color: var(--accent);
}
.download-social svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}
.phone-scene {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin: 0;
}
.app-screen-preview {
  height: 360px;
  width: auto;
  border: 5px solid #2e4535;
  border-radius: 23px;
  box-shadow: 0 18px 32px -20px #172c2490;
}
.phone-scene figcaption {
  font-size: 11px;
  color: var(--soft-text);
}
.faq-section {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 70px;
  padding-block: 72px;
}
.faq-section h2 {
  max-width: 310px;
}
.faq-list details {
  border-bottom: 1px solid var(--line);
}
.faq-list details:first-child {
  border-top: 1px solid var(--line);
}
.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 19px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.6;
  list-style: none;
}
.faq-list summary::-webkit-details-marker {
  display: none;
}
.faq-list summary > span {
  font-size: 22px;
  font-weight: 400;
  color: var(--accent);
  transition: transform 180ms;
}
.faq-list details[open] summary > span {
  transform: rotate(45deg);
}
.faq-list p {
  margin: 0 0 20px;
  padding-inline-end: 35px;
  color: var(--soft-text);
  font-size: 13px;
  line-height: 1.85;
}
.site-footer {
  border-top: 1px solid var(--line);
  padding-bottom: 24px;
}
.footer-main,
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
}
.footer-main {
  padding-block: 28px 18px;
}
.footer-main > p {
  margin: 0;
  color: var(--soft-text);
  font-size: 12px;
}
.footer-social {
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--soft-text);
}
.footer-social a:hover {
  color: var(--accent);
  background: var(--line);
}
.footer-social svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}
.footer-bottom {
  font-size: 12px;
  color: var(--soft-text);
}
.footer-bottom > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}
.footer-bottom a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
}
.footer-bottom a:hover {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 4px;
}
/* Legal and support pages inherit the same controls and reading scale. */
.legal-content {
  width: min(760px, calc(100% - 40px));
  margin: 48px auto 64px;
  line-height: 1.85;
}
.legal-content h1 {
  font: 400 clamp(32px, 4vw, 48px) / 1.18 var(--serif);
  margin: 12px 0;
  letter-spacing: -0.03em;
}
.legal-updated {
  font-size: 12px;
  color: var(--soft-text);
}
.legal-summary {
  font-size: 17px;
  margin-block: 24px;
}
.legal-content section {
  margin-top: 32px;
}
.legal-content h2 {
  font-size: 21px;
  letter-spacing: -0.02em;
}
.legal-content section p {
  font-size: 14px;
  color: var(--soft-text);
}
.legal-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}
.legal-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  border-top: 1px solid var(--line);
  margin-top: 40px;
  padding-top: 24px;
  font-size: 12px;
}
html[lang="ar"] .legal-content h1,
html[lang="ar"] .download-copy h2 {
  font-family: "IBM Plex Sans Arabic", sans-serif;
  line-height: 1.4;
  letter-spacing: 0;
}
@media (max-width: 1099px) {
  .wrap {
    width: calc(100% - 48px);
  }
  .site-header {
    gap: 18px;
  }
  .primary-nav {
    gap: 18px;
  }
  .site-header > .button {
    display: none;
  }
  .primary-nav .nav-download {
    display: flex;
  }
  .hero {
    grid-template-columns: 1.25fr 1fr;
    gap: 36px;
    padding-block: 44px;
  }
  .hero h1 {
    font-size: clamp(40px, 5.4vw, 58px);
  }
  .hero-copy {
    font-size: 15px;
  }
  .hero-actions {
    flex-direction: column;
    align-items: start;
    gap: 8px;
  }
  .download-card {
    padding: 36px;
    gap: 32px;
  }
  .steps {
    gap: 24px;
  }
}
@media (max-width: 760px) {
  .wrap {
    width: calc(100% - 36px);
  }
  .site-header {
    min-height: 76px;
    gap: 8px;
    flex-wrap: wrap;
    padding-block: 12px;
  }
  .brand {
    gap: 7px;
  }
  .brand > img {
    width: 32px;
    height: 32px;
  }
  .scanner-wordmark {
    font-size: 16px;
  }
  .site-controls {
    margin-inline-start: auto;
    gap: 0;
  }
  .language-menu summary {
    gap: 4px;
    padding-inline: 6px;
  }
  .language-menu summary > svg:first-child {
    display: none;
  }
  .language-menu .chevron {
    width: 10px;
  }
  .theme-toggle,
  .menu-toggle {
    width: 38px;
    height: 42px;
  }
  .menu-toggle:not([hidden]) {
    display: grid;
    order: 3;
  }
  .primary-nav {
    order: 4;
    flex: 1 0 100%;
    margin: 0;
    gap: 20px;
    padding-block: 10px;
    border-top: 1px solid var(--line);
    justify-content: space-between;
  }
  .navigation-ready .primary-nav {
    display: none;
  }
  .navigation-ready.navigation-open .primary-nav {
    display: flex;
  }
  .primary-nav a {
    font-size: 12px;
    white-space: normal;
  }
  .legal-page .site-header > .text-link {
    flex-basis: 100%;
    justify-content: end;
  }
  .hero {
    display: block;
    padding-block: 36px 32px;
  }
  .hero h1 {
    max-width: 530px;
    font-size: clamp(38px, 7.5vw, 54px);
  }
  .hero-eyebrow {
    font-size: 10px;
    margin-bottom: 16px;
  }
  .hero-body {
    padding: 0;
    margin-top: 22px;
  }
  .hero-copy {
    font-size: 14px;
    line-height: 1.8;
    max-width: 500px;
  }
  .hero-actions {
    flex-direction: row;
    align-items: center;
    gap: 12px 20px;
    margin-top: 18px;
  }
  .hero-actions .button {
    font-size: 12px;
    padding-inline: 16px;
    gap: 12px;
  }
  .hero-actions .text-link {
    font-size: 12px;
  }
  .courtyard-intro {
    align-items: start;
    margin-bottom: 16px;
    gap: 16px;
  }
  .courtyard-intro h2 {
    font-size: 22px;
  }
  .catalog-note {
    font-size: 11px;
  }
  .courtyard-intro > p {
    font-size: 11px;
    max-width: none;
    text-align: start;
  }
  .market-controls {
    padding: 12px;
    gap: 8px;
  }
  .market-region {
    display: grid;
    gap: 6px;
    flex: 1;
    font-size: 11px;
  }
  .market-region select {
    width: 100%;
    font-size: 11px;
  }
  .market-refresh {
    align-self: end;
    font-size: 11px;
    padding-inline: 10px;
  }
  #market-fetch-state {
    flex-basis: 100%;
    font-size: 11px;
  }
  .courtyard-price-note p {
    font-size: 11px;
  }
  .belief-strip {
    gap: 16px;
    margin-top: 24px;
    padding-block: 18px;
    font-size: 11px;
    line-height: 1.6;
  }
  .belief-strip span {
    align-items: start;
    gap: 7px;
  }
  .belief-strip span::before {
    margin-top: 6px;
    width: 4px;
    height: 4px;
  }
  .how-section {
    padding-block: 44px;
  }
  .section-intro {
    display: block;
  }
  .section-intro h2 {
    font-size: 27px;
  }
  .section-intro > p {
    font-size: 13px;
    margin-top: 12px;
  }
  .steps {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 24px;
  }
  .steps article {
    grid-template-columns: 32px 1fr auto;
    gap: 0 12px;
    padding-top: 18px;
  }
  .step-number {
    grid-column: 1;
    grid-row: 1;
    padding-top: 2px;
  }
  .steps svg {
    grid-column: 3;
    grid-row: 1;
    width: 23px;
    height: 23px;
  }
  .steps h3 {
    grid-column: 2;
    grid-row: 1;
    margin: 0 0 8px;
    font-size: 17px;
  }
  .steps p {
    grid-column: 2/-1;
    font-size: 13px;
  }
  .privacy-line p {
    font-size: 11px;
  }
  .privacy-line span {
    display: block;
    margin-top: 4px;
  }
  .download-card {
    grid-template-columns: 1fr;
    padding: 28px 24px;
    gap: 28px;
  }
  .download-copy h2 {
    font-size: 36px;
    margin-block: 14px;
  }
  .download-copy .eyebrow {
    font-size: 10px;
  }
  .download-copy > p {
    font-size: 13px;
  }
  .download-copy .download-note {
    margin-top: 16px;
  }
  .phone-scene {
    border-top: 1px solid var(--line);
    padding-top: 28px;
  }
  .app-screen-preview {
    height: 300px;
  }
  .faq-section {
    grid-template-columns: 1fr;
    padding-block: 44px;
    gap: 24px;
  }
  .faq-section h2 {
    font-size: 27px;
    max-width: none;
  }
  .faq-list summary {
    font-size: 13px;
    padding-block: 17px;
  }
  .faq-list p {
    font-size: 12px;
  }
  .footer-main,
  .footer-bottom {
    flex-direction: column;
    align-items: start;
    gap: 12px;
  }
  .footer-main {
    padding-block: 24px 16px;
  }
  .footer-main > p {
    font-size: 11px;
  }
  .footer-bottom {
    font-size: 11px;
    gap: 8px;
  }
  .footer-bottom > div {
    gap: 4px 18px;
  }
  .legal-content {
    margin-top: 32px;
  }
}
@media (max-width: 370px) {
  .scanner-wordmark {
    font-size: 14px;
  }
  .brand {
    gap: 5px;
  }
  .brand > img {
    width: 28px;
    height: 28px;
  }
  .site-header {
    gap: 4px;
  }
  .theme-toggle,
  .menu-toggle {
    width: 34px;
  }
  .language-menu summary {
    padding-inline: 4px;
  }
  .hero-actions {
    gap: 8px 14px;
  }
  .hero-actions .button {
    font-size: 11px;
    padding-inline: 12px;
    gap: 10px;
  }
  .hero-actions .text-link {
    font-size: 11px;
    gap: 8px;
  }
  .courtyard-intro {
    display: block;
  }
  .courtyard-intro > p {
    max-width: none;
    text-align: start;
    margin-top: 8px;
  }
  .courtyard-intro > p > span {
    display: inline;
  }
  .download-card {
    padding-inline: 20px;
  }
  .download-copy h2 {
    font-size: 32px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-heading,
  .hero-body {
    animation: arrival 600ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }
  .hero-body {
    animation-delay: 80ms;
  }
  @keyframes arrival {
    from {
      opacity: 0;
      transform: translateY(10px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0s !important;
    transition-duration: 0s !important;
  }
}

/* Articles: the list and reading pages reuse the site header, footer and tokens. */
.primary-nav a[aria-current="page"] {
  color: var(--accent);
}
.articles-main {
  padding-block: 48px 72px;
}
.articles-intro {
  max-width: 760px;
  margin-bottom: 40px;
}
.articles-intro h1,
.article-header h1 {
  font: 400 clamp(32px, 4vw, 48px) / 1.18 var(--serif);
  letter-spacing: -0.03em;
  margin: 12px 0;
  text-wrap: balance;
}
html[lang="ar"] .articles-intro h1,
html[lang="ar"] .article-header h1 {
  font-family: "IBM Plex Sans Arabic", sans-serif;
  line-height: 1.5;
  letter-spacing: 0;
}
.articles-lede,
.article-summary {
  margin: 0;
  color: var(--soft-text);
  font-size: 17px;
  line-height: 1.75;
}
.article-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.article-item {
  display: grid;
  grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
  padding-block: 28px;
  border-bottom: 1px solid var(--line);
}
.article-item--text {
  grid-template-columns: minmax(0, 1fr);
}
.article-thumb img,
.article-figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
  background: var(--surface);
}
.article-item h2 {
  font-size: clamp(21px, 2.2vw, 27px);
  line-height: 1.3;
  margin: 4px 0 10px;
}
html[lang="ar"] .article-item h2 {
  line-height: 1.5;
  letter-spacing: 0;
}
.article-item h2 a:hover {
  color: var(--accent);
}
.article-item-body > p:not(.article-meta, .article-draft) {
  margin: 0;
  color: var(--soft-text);
  line-height: 1.75;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin: 0;
  font-size: 12px;
  color: var(--soft-text);
}
.article-draft {
  display: inline-block;
  margin: 14px 0 0;
  padding: 4px 10px;
  border: 1px dashed var(--accent);
  border-radius: 5px;
  color: var(--accent);
  font-size: 12px;
}
.article {
  width: min(720px, 100%);
  margin-inline: auto;
}
.article-nav {
  margin-bottom: 28px;
}
.article-back {
  gap: 8px;
}
html[dir="rtl"] .icon-back {
  transform: scaleX(-1);
}
.article-header .article-meta {
  margin-top: 16px;
}
.article-figure {
  margin: 28px 0 36px;
}
.article-body {
  font-size: 17px;
  line-height: 1.85;
  overflow-wrap: break-word;
}
html[lang="ar"] .article-body {
  line-height: 2;
}
.article-body > :first-child {
  margin-top: 0;
}
.article-body p,
.article-body ul,
.article-body ol {
  margin: 0 0 20px;
}
.article-body li + li {
  margin-top: 8px;
}
.article-body h2 {
  font-size: clamp(22px, 2.4vw, 26px);
  line-height: 1.35;
  margin: 44px 0 14px;
}
.article-body h3,
.article-body h4 {
  font-size: 19px;
  font-weight: 600;
  line-height: 1.4;
  margin: 32px 0 10px;
}
.article-body a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}
.article-body blockquote {
  margin: 28px 0;
  padding-inline-start: 20px;
  border-inline-start: 3px solid var(--accent);
  color: var(--soft-text);
}
.article-body blockquote p:last-child {
  margin-bottom: 0;
}
.article-body hr {
  margin: 40px 0;
  border: 0;
  border-top: 1px solid var(--line);
}
.article-body pre {
  overflow-x: auto;
  padding: 16px;
  border-radius: 8px;
  background: var(--surface);
  font-size: 14px;
}
.article-body code {
  font-size: 0.9em;
}
.article-end {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
@media (max-width: 760px) {
  .articles-main {
    padding-block: 32px 48px;
  }
  .article-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    padding-block: 24px;
  }
  .articles-lede,
  .article-summary {
    font-size: 16px;
  }
  .article-body {
    font-size: 16px;
  }
}

.articles-tools {
  display: grid;
  gap: 14px;
  margin-bottom: 28px;
}
.articles-search {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 16px;
}
.articles-search input {
  flex: 1 1 280px;
  max-width: 520px;
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--paper);
  color: var(--text);
  font: inherit;
  font-size: 14px;
}
.articles-search input::placeholder {
  color: var(--soft-text);
}
.articles-search input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.articles-clear {
  min-height: 42px;
  padding: 8px 4px;
  border: 0;
  background: transparent;
  color: var(--accent);
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.article-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.article-topics button {
  min-height: 40px;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  font-size: 13px;
}
.article-topics button:hover {
  background: var(--surface);
}
.article-topics button[aria-pressed="true"] {
  border-color: var(--accent);
  background: var(--sage);
  color: var(--accent);
  font-weight: 600;
}
.articles-status {
  margin: 0;
  min-height: 1.65em;
  color: var(--soft-text);
  font-size: 13px;
}
.article-results {
  border-top: 0;
}
.article-results:not([hidden]) {
  border-top: 1px solid var(--line);
}
.pager {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px 16px;
  margin-top: 36px;
}
.pager-pages {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.pager-page,
.pager-gap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  border-radius: 7px;
  font-size: 14px;
}
a.pager-page:hover {
  background: var(--surface);
  color: var(--accent);
}
.pager-page[aria-current="page"] {
  border: 1px solid var(--accent);
  background: var(--sage);
  color: var(--accent);
  font-weight: 600;
}
.pager-step {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: 13px;
  font-weight: 500;
}
.pager-step:last-of-type {
  justify-self: end;
}
a.pager-step:hover {
  color: var(--accent);
}
.pager-status {
  grid-column: 1 / -1;
  margin: 0;
  text-align: center;
  color: var(--soft-text);
  font-size: 12px;
}
html[dir="rtl"] .icon-forward {
  transform: scaleX(-1);
}
@media (max-width: 760px) {
  .pager {
    grid-template-columns: 1fr 1fr;
  }
  .pager-pages {
    grid-column: 1 / -1;
    grid-row: 1;
  }
  .pager-step:last-of-type {
    justify-self: end;
  }
}
