@font-face {
  font-family: "Cairo";
  src: url("/support-assets/cairo-support.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --page: #ffffff;
  --surface: #f7f8fa;
  --surface-strong: #eef5ff;
  --ink: #0b1f42;
  --muted: #657085;
  --soft: #657085;
  --line: #dce2ea;
  --primary: #157fd1;
  --primary-strong: #0967ae;
  --primary-soft: #eaf4ff;
  --amber: #e8a817;
  --purple: #6d49af;
  --success: #007a52;
  --danger: #c93743;
  --shadow: 0 10px 30px rgba(15, 35, 66, 0.08);
  --radius-sm: 12px;
  --radius: 16px;
  --radius-lg: 22px;
  --content: 780px;
  --tap: 48px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--page);
}

body {
  min-width: 280px;
  min-height: 100vh;
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: "Cairo", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial,
    sans-serif;
  font-size: 16px;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

img,
svg {
  display: block;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  z-index: 100;
  inset-block-start: 8px;
  inset-inline-start: 8px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--page);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  z-index: 50;
  inset-block-start: 0;
  border-block-end: 1px solid var(--line);
  background: var(--page);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100%, 980px);
  min-height: 68px;
  margin-inline: auto;
  padding: 10px 18px;
  padding-block-start: calc(10px + env(safe-area-inset-top, 0px));
  padding-right: calc(18px + env(safe-area-inset-right, 0px));
  padding-left: calc(18px + env(safe-area-inset-left, 0px));
}

.brand,
.language-link,
.header-back {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  border-radius: 12px;
  text-decoration: none;
}

.brand {
  gap: 10px;
  min-width: 0;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 3px 12px rgba(13, 42, 78, 0.14);
}

.brand-name {
  overflow: hidden;
  font-size: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.language-link {
  gap: 6px;
  padding-inline: 10px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.language-link:hover,
.language-link:focus-visible,
.header-back:hover,
.header-back:focus-visible {
  background: var(--surface);
}

.language-link svg,
.header-back svg {
  width: 18px;
  height: 18px;
}

.header-back {
  display: none;
  gap: 6px;
  padding-inline: 8px;
  font-size: 14px;
  font-weight: 700;
}

.header-inner[data-in-subview="true"] .header-back {
  display: inline-flex;
}

.header-inner[data-in-subview="true"] .brand-name {
  display: none;
}

.page-shell {
  width: min(100%, var(--content));
  margin-inline: auto;
  padding: 34px 18px 48px;
  padding-right: calc(18px + env(safe-area-inset-right, 0px));
  padding-left: calc(18px + env(safe-area-inset-left, 0px));
}

.view {
  animation: view-in 160ms ease-out both;
}

.js [hidden] {
  display: none !important;
}

.no-js .topic-view[hidden],
.no-js .contact-view[hidden] {
  display: block !important;
}

.no-js .search-view[hidden] {
  display: none !important;
}

.no-js .view + .view {
  margin-block-start: 64px;
  padding-block-start: 48px;
  border-block-start: 1px solid var(--line);
}

.hero {
  padding-block: 10px 24px;
}

.hero h1,
.view-heading h1 {
  max-width: 700px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(2rem, 10vw, 3.5rem);
  line-height: 1.15;
  letter-spacing: -0.045em;
}

.hero p,
.view-heading p {
  max-width: 620px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.search-form {
  position: relative;
  margin-block: 22px 34px;
}

.search-icon {
  position: absolute;
  inset-block-start: 50%;
  inset-inline-start: 16px;
  width: 22px;
  height: 22px;
  color: var(--muted);
  pointer-events: none;
  transform: translateY(-50%);
}

.search-input {
  width: 100%;
  min-height: 58px;
  padding-block: 12px;
  padding-inline: 50px 48px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--page);
  color: var(--ink);
  font-size: 16px;
  font-weight: 500;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}

.search-input::placeholder {
  color: var(--soft);
}

.search-input::-webkit-search-cancel-button {
  display: none;
}

.search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 15%, transparent);
}

.search-clear {
  position: absolute;
  inset-block-start: 50%;
  inset-inline-end: 7px;
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  place-items: center;
  transform: translateY(-50%);
}

.search-clear:hover,
.search-clear:focus-visible {
  background: var(--surface);
  color: var(--ink);
}

.search-clear svg {
  width: 20px;
  height: 20px;
}

.section-title {
  margin: 0 0 14px;
  font-size: 21px;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.topic-nav {
  overflow: hidden;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  list-style: none;
}

.topic-nav li + li {
  border-block-start: 1px solid var(--line);
}

.topic-link {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 20px;
  gap: 12px;
  align-items: center;
  min-height: 76px;
  padding: 12px 16px;
  text-decoration: none;
  transition: background-color 120ms ease;
}

.topic-link:hover,
.topic-link:focus-visible {
  background: var(--surface);
}

.topic-icon {
  display: grid;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: var(--primary-soft);
  color: var(--primary-strong);
  place-items: center;
}

.topic-icon svg {
  width: 25px;
  height: 25px;
}

.topic-nav li:nth-child(3n) .topic-icon {
  background: color-mix(in srgb, var(--amber) 13%, var(--page));
  color: #a56e00;
}

.topic-label {
  min-width: 0;
  font-size: 16px;
  font-weight: 750;
  line-height: 1.45;
}

.chevron {
  width: 20px;
  height: 20px;
  color: var(--muted);
}

[dir="rtl"] .chevron,
[dir="rtl"] .back-arrow {
  transform: scaleX(-1);
}

.popular-section {
  margin-block-start: 34px;
}

.popular-guide {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px;
  gap: 16px;
  min-height: 222px;
  overflow: hidden;
  padding: 20px 0 0 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  text-decoration: none;
  box-shadow: var(--shadow);
}

[dir="rtl"] .popular-guide {
  padding: 20px 20px 0 0;
}

.popular-guide:hover,
.popular-guide:focus-visible {
  border-color: color-mix(in srgb, var(--primary) 52%, var(--line));
}

.popular-copy {
  align-self: center;
  padding-block-end: 20px;
}

.popular-label {
  display: block;
  margin-block-end: 8px;
  color: var(--primary-strong);
  font-size: 13px;
  font-weight: 800;
}

.popular-copy strong {
  display: block;
  font-size: 22px;
  line-height: 1.35;
  letter-spacing: -0.025em;
}

.popular-copy p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.screenshot-note {
  display: flex;
  gap: 7px;
  align-items: flex-start;
  margin-block-start: 14px;
  color: var(--purple);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.5;
}

.screenshot-note svg {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  margin-block-start: 1px;
}

.popular-media {
  align-self: end;
  height: 202px;
  overflow: hidden;
  border: 5px solid #172232;
  border-block-end: 0;
  border-radius: 28px 28px 0 0;
  background: #172232;
  box-shadow: -8px 0 22px rgba(11, 31, 66, 0.12);
}

.popular-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.contact-band {
  display: grid;
  gap: 14px;
  margin-block-start: 34px;
  padding: 20px;
  border: 1px solid #cfe4fa;
  border-radius: var(--radius-lg);
  background: var(--primary-soft);
}

.contact-band h2 {
  margin: 0;
  font-size: 20px;
}

.contact-band p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.primary-button,
.secondary-button,
.back-to-topics {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap);
  padding: 11px 18px;
  border-radius: 13px;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
}

.primary-button {
  background: var(--primary-strong);
  color: #ffffff;
}

.primary-button:hover,
.primary-button:focus-visible {
  background: #075995;
  outline: 3px solid var(--primary-strong);
  outline-offset: 2px;
}

.secondary-button,
.back-to-topics {
  border: 1px solid var(--line);
  background: var(--page);
  color: var(--ink);
}

.secondary-button:hover,
.secondary-button:focus-visible,
.back-to-topics:hover,
.back-to-topics:focus-visible {
  border-color: var(--primary);
  background: var(--surface);
}

.view-heading {
  padding-block: 8px 28px;
}

.view-heading h1 {
  font-size: clamp(1.9rem, 8.5vw, 3rem);
}

.view-kicker {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-block-end: 14px;
  color: var(--primary-strong);
  font-size: 14px;
  font-weight: 800;
}

.view-kicker svg {
  width: 20px;
  height: 20px;
}

.faq-list {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.faq + .faq {
  border-block-start: 1px solid var(--line);
}

.faq {
  scroll-margin-block-start: 84px;
}

.faq summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24px;
  gap: 12px;
  align-items: center;
  min-height: 66px;
  padding: 14px 16px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 750;
  line-height: 1.5;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary:hover,
.faq summary:focus-visible {
  background: var(--surface);
}

.faq summary svg {
  width: 22px;
  height: 22px;
  color: var(--muted);
  transition: transform 140ms ease;
}

.faq[open] summary {
  color: var(--primary-strong);
  background: var(--primary-soft);
}

.faq[open] summary svg {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 18px 16px 22px;
  color: #334158;
}

.faq-answer > :first-child {
  margin-block-start: 0;
}

.faq-answer > :last-child {
  margin-block-end: 0;
}

.faq-answer p {
  margin: 0 0 14px;
}

.steps {
  margin: 16px 0;
  padding: 0;
  counter-reset: support-step;
  list-style: none;
}

.steps li {
  position: relative;
  min-height: 36px;
  padding-block: 4px 14px;
  padding-inline-start: 46px;
  counter-increment: support-step;
}

.steps li::before {
  position: absolute;
  inset-block-start: 0;
  inset-inline-start: 0;
  display: grid;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary-strong);
  content: counter(support-step);
  font-size: 14px;
  font-weight: 850;
  place-items: center;
}

.tip {
  margin-block: 16px;
  padding: 14px;
  border-inline-start: 4px solid var(--primary);
  border-radius: 4px var(--radius-sm) var(--radius-sm) 4px;
  background: var(--primary-soft);
  color: var(--ink);
}

[dir="rtl"] .tip {
  border-radius: var(--radius-sm) 4px 4px var(--radius-sm);
}

.warning {
  border-inline-start-color: var(--amber);
  background: color-mix(in srgb, var(--amber) 11%, var(--page));
}

.screenshot-figure {
  width: min(100%, 410px);
  margin: 22px auto 6px;
}

.screenshot-frame {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #172232;
  box-shadow: var(--shadow);
}

.screenshot-frame img {
  width: 100%;
  height: auto;
}

.screenshot-figure figcaption {
  margin-block-start: 9px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
  text-align: center;
}

.screenshot-pair {
  display: grid;
  grid-auto-columns: 78%;
  grid-auto-flow: column;
  gap: 12px;
  overflow-x: auto;
  margin: 20px -16px 4px;
  padding: 4px 16px 16px;
  scroll-snap-type: inline mandatory;
  scrollbar-width: thin;
}

.screenshot-pair .screenshot-figure {
  width: 100%;
  margin: 0;
  scroll-snap-align: center;
}

.back-to-topics {
  gap: 10px;
  width: 100%;
  margin-block-start: 24px;
}

.back-to-topics svg {
  width: 20px;
  height: 20px;
}

.search-status {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
}

.search-results {
  overflow: hidden;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  list-style: none;
}

.search-results li + li {
  border-block-start: 1px solid var(--line);
}

.search-result {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 20px;
  gap: 10px;
  min-height: 68px;
  padding: 13px 16px;
  text-decoration: none;
}

.search-result:hover,
.search-result:focus-visible {
  background: var(--surface);
}

.topic-link:focus-visible,
.faq summary:focus-visible,
.search-result:focus-visible {
  outline-offset: -3px;
}

.search-result strong,
.search-result span {
  display: block;
}

.search-result strong {
  line-height: 1.45;
}

.search-result span {
  margin-block-start: 3px;
  color: var(--muted);
  font-size: 12px;
}

.empty-state {
  padding: 30px 20px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  text-align: center;
}

.empty-state svg {
  width: 34px;
  height: 34px;
  margin: 0 auto 12px;
  color: var(--muted);
}

.empty-state p {
  margin: 0;
  color: var(--muted);
}

.contact-view-card {
  display: grid;
  gap: 18px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.contact-view-card h2,
.contact-view-card p {
  margin: 0;
}

.contact-view-card p {
  color: var(--muted);
}

.contact-actions {
  display: grid;
  gap: 10px;
}

.support-path {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.support-path li {
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--page);
  font-weight: 700;
}

.support-path span {
  display: grid;
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary-strong);
  font-size: 12px;
  place-items: center;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  align-items: center;
  justify-content: space-between;
  width: min(100%, var(--content));
  margin: 0 auto;
  padding: 22px 18px 34px;
  padding-right: calc(18px + env(safe-area-inset-right, 0px));
  padding-bottom: calc(34px + env(safe-area-inset-bottom, 0px));
  padding-left: calc(18px + env(safe-area-inset-left, 0px));
  border-block-start: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.site-footer a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  text-underline-offset: 4px;
}

:focus-visible {
  outline: 3px solid var(--primary-strong);
  outline-offset: 3px;
}

@keyframes view-in {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 560px) {
  .page-shell {
    padding-right: calc(24px + env(safe-area-inset-right, 0px));
    padding-left: calc(24px + env(safe-area-inset-left, 0px));
    padding-block-start: 46px;
  }

  .topic-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .topic-nav li + li {
    border-block-start: 0;
  }

  .topic-nav li:nth-child(n + 3) {
    border-block-start: 1px solid var(--line);
  }

  .topic-nav li:nth-child(even) {
    border-inline-start: 1px solid var(--line);
  }

  .popular-guide {
    grid-template-columns: minmax(0, 1fr) 220px;
    min-height: 290px;
    padding-inline-start: 28px;
  }

  .popular-media {
    height: 270px;
  }

  .contact-band {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .contact-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .screenshot-pair {
    grid-auto-columns: minmax(0, 1fr);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: visible;
    margin-inline: 0;
    padding-inline: 0;
  }
}

@media (max-width: 350px) {
  .header-inner,
  .page-shell,
  .site-footer {
    padding-right: calc(14px + env(safe-area-inset-right, 0px));
    padding-left: calc(14px + env(safe-area-inset-left, 0px));
  }

  .brand-name {
    font-size: 16px;
  }

  .language-link {
    padding-inline: 6px;
    font-size: 13px;
  }

  .hero h1,
  .view-heading h1 {
    font-size: 1.9rem;
  }

  .topic-link {
    grid-template-columns: 42px minmax(0, 1fr) 18px;
    gap: 9px;
    padding-inline: 12px;
  }

  .topic-icon {
    width: 42px;
    height: 42px;
  }

  .popular-guide {
    grid-template-columns: minmax(0, 1fr) 94px;
    padding-inline-start: 16px;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #15202b;
    --surface: #1c2938;
    --surface-strong: #253341;
    --ink: #f7f9fa;
    --muted: #a7b2bf;
    --soft: #9aa7b4;
    --purple: #c4a4ff;
    --line: #354658;
    --primary: #34a8f2;
    --primary-strong: #65bbf2;
    --primary-soft: #1d3347;
    --shadow: 0 12px 34px rgba(0, 0, 0, 0.28);
  }

  .faq-answer {
    color: #d6dee7;
  }

  .primary-button {
    background: #126fae;
    color: #ffffff;
  }

  .contact-band {
    border-color: #315679;
  }

  .topic-nav li:nth-child(3n) .topic-icon {
    color: #f3c75e;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .site-header,
  .search-form,
  .contact-band,
  .back-to-topics,
  .site-footer {
    display: none !important;
  }

  .page-shell {
    width: 100%;
    max-width: none;
    padding: 0;
  }

  .no-js [hidden],
  .js [hidden] {
    display: block !important;
  }
}
