/* Kutvio website — one stylesheet for English (LTR) and Arabic (RTL).
   Layout uses CSS logical properties only, so it mirrors automatically. */

/* ---------- Fonts (self-hosted, SIL OFL) ---------- */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/inter-latin.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: "Inter";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Cairo";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/cairo-arabic.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-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;
}

/* ---------- Tokens ---------- */
:root {
  --bg: #0b0b10;
  --bg-2: #0f0f16;
  --surface: #15151d;
  --surface-2: #1c1c26;
  --border: #26262f;
  --text: #f2f2f5;
  --muted: #9a9aa8;
  --accent: #7c5cff;
  --accent-text: #a796ff; /* accent tuned for AA contrast as text */
  --pink: #ff4d8d;
  --gradient: linear-gradient(120deg, #7c5cff 0%, #ff4d8d 100%);
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35), 0 2px 6px rgba(0, 0, 0, 0.25);
  --shadow-glow: 0 20px 60px rgba(124, 92, 255, 0.25);
  --container: 1200px;
  --gutter: 20px;
  --header-h: 64px;
  --font: "Inter", "Cairo", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans Arabic", Tahoma, sans-serif;
  color-scheme: dark;
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
html[lang="ar"] body {
  font-family: "Cairo", "Inter", system-ui, -apple-system, "Segoe UI", Tahoma, "Noto Sans Arabic", sans-serif;
  line-height: 1.75;
}
img,
svg,
picture {
  display: block;
  max-width: 100%;
}
img {
  height: auto;
}
a {
  color: var(--accent-text);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover {
  color: #c4b8ff;
}
h1,
h2,
h3,
h4 {
  text-wrap: balance;
  line-height: 1.15;
  margin: 0 0 0.6em;
  letter-spacing: -0.02em;
  font-weight: 800;
}
html[lang="ar"] :is(h1, h2, h3, h4) {
  letter-spacing: 0;
  line-height: 1.35;
}
p {
  margin: 0 0 1em;
}
ul,
ol {
  margin: 0 0 1em;
  padding-inline-start: 1.25em;
}
:focus-visible {
  outline: 3px solid var(--accent-text);
  outline-offset: 3px;
  border-radius: 6px;
}
::selection {
  background: rgba(124, 92, 255, 0.45);
}

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  inset-inline-start: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--text);
  color: var(--bg);
  font-weight: 700;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 12px;
  color: var(--bg);
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section {
  padding-block: 72px;
}
.section-sm {
  padding-block: 48px;
}
.section-head {
  max-width: 720px;
  margin-inline: auto;
  margin-block-end: 40px;
  text-align: center;
}
.section-head h2 {
  font-size: clamp(1.75rem, 4.2vw, 2.6rem);
}
.section-head p {
  color: var(--muted);
  font-size: 1.075rem;
  margin: 0;
}
.eyebrow {
  display: inline-block;
  margin-block-end: 12px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-text);
}
html[lang="ar"] .eyebrow {
  letter-spacing: 0;
  font-size: 0.9rem;
}
.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.muted {
  color: var(--muted);
}

/* ---------- Buttons & badges ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.btn:active {
  transform: scale(0.97);
}
.btn-primary {
  background: #7455fb; /* accent, darkened slightly for AA contrast with white text */
  color: #fff;
  box-shadow: 0 8px 24px rgba(124, 92, 255, 0.35);
}
.btn-primary:hover {
  background: #6a4bf0;
  color: #fff;
}
.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover {
  border-color: #3a3a48;
  background: var(--surface);
  color: var(--text);
}
.btn-sm {
  min-height: 40px;
  padding: 8px 16px;
  font-size: 0.9rem;
}
.btn-lg {
  min-height: 56px;
  padding: 16px 28px;
  font-size: 1.075rem;
}
.btn svg {
  width: 20px;
  height: 20px;
  flex: none;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 190px;
  min-height: 58px;
  padding: 10px 18px;
  border: 1px solid #3a3a48;
  border-radius: 14px;
  background: #000;
  color: #fff;
  text-decoration: none;
  transition: transform 0.15s, border-color 0.2s;
}
a.badge:hover {
  border-color: #6a6a7a;
  color: #fff;
  transform: translateY(-2px);
}
.badge svg {
  width: 28px;
  height: 28px;
  flex: none;
}
.badge-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.badge-text small {
  font-size: 0.72rem;
  color: #c9c9d3;
}
.badge-text strong {
  font-size: 1.15rem;
  font-weight: 700;
}
.badge.is-soon {
  opacity: 0.6;
  cursor: default;
}
.badge.is-soon .badge-text small {
  color: #ffd166;
  font-weight: 600;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 209, 102, 0.35);
  color: #ffd166;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
  vertical-align: middle;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 11, 16, 0.72);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  backdrop-filter: saturate(160%) blur(16px);
  border-block-end: 1px solid rgba(38, 38, 47, 0.8);
}
.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  min-height: var(--header-h);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  font-family: "Inter", system-ui, sans-serif;
}
.brand:hover {
  color: var(--text);
}
.brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-inline-start: auto;
}
.site-nav ul {
  display: flex;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav ul a,
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 10px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
}
.site-nav ul a:hover,
.lang-switch:hover,
.site-nav ul a[aria-current="page"] {
  color: var(--text);
  background: var(--surface);
}
.lang-switch svg {
  width: 18px;
  height: 18px;
}
.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-inline-start: auto;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}
.menu-toggle svg {
  width: 22px;
  height: 22px;
}
.menu-toggle .icon-close {
  display: none;
}
.menu-open .menu-toggle .icon-open {
  display: none;
}
.menu-open .menu-toggle .icon-close {
  display: block;
}

@media (max-width: 959px) {
  /* Without JS: nav stays visible as a horizontally scrollable row. */
  .site-nav {
    order: 3;
    width: 100%;
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    padding-block-end: 8px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .site-nav::-webkit-scrollbar {
    display: none;
  }
  .site-nav .btn {
    display: none;
  }
  /* With JS: hamburger + dropdown panel. */
  .js .menu-toggle {
    display: inline-flex;
  }
  .js .site-nav {
    display: none;
  }
  .js.menu-open .site-nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    margin: 0;
    padding: 8px 0 20px;
    overflow: visible;
  }
  .js.menu-open .site-nav ul {
    flex-direction: column;
  }
  .js.menu-open .site-nav ul a,
  .js.menu-open .lang-switch {
    min-height: 48px;
    font-size: 1.05rem;
    padding-inline: 12px;
  }
  .js.menu-open .site-nav .btn {
    display: inline-flex;
    margin-block-start: 8px;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-block: 56px 72px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto;
  height: 720px;
  background:
    radial-gradient(40% 50% at 70% 40%, rgba(124, 92, 255, 0.28), transparent 70%),
    radial-gradient(30% 40% at 90% 70%, rgba(255, 77, 141, 0.16), transparent 70%);
  pointer-events: none;
}
html[dir="rtl"] .hero::before {
  transform: scaleX(-1);
}
.hero-grid {
  position: relative;
  display: grid;
  gap: 48px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.3rem, 5.6vw, 3.4rem);
  margin-block-end: 20px;
}
.hero h1 .gradient-text {
  display: block;
}
.hero .lead {
  max-width: 560px;
  margin-block-end: 28px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
}
.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.hero-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  min-height: 420px;
}

/* ---------- Device mockups (pure CSS) ---------- */
.device-phone {
  position: relative;
  width: min(300px, 72vw);
  aspect-ratio: 590 / 1280;
  padding: 10px;
  border-radius: 46px;
  background: linear-gradient(145deg, #2a2a35, #121218);
  box-shadow: inset 0 0 0 2px #3a3a48, var(--shadow), var(--shadow-glow);
  flex: none;
}
.device-phone::after {
  content: "";
  position: absolute;
  inset-inline-end: -3px;
  top: 22%;
  width: 3px;
  height: 64px;
  border-radius: 2px;
  background: #2f2f3a;
}
.device-screen {
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 37px;
  background: #000;
}
.device-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.device-phone.is-back {
  position: absolute;
  width: min(250px, 58vw);
  inset-inline-start: 50%;
  top: 60px;
  transform: translateX(-10%) rotate(8deg);
  opacity: 0.9;
  z-index: 0;
  box-shadow: inset 0 0 0 2px #3a3a48, var(--shadow);
}
html[dir="rtl"] .device-phone.is-back {
  transform: translateX(10%) rotate(-8deg);
}
.device-phone.is-front {
  z-index: 1;
  transform: rotate(-3deg);
}
html[dir="rtl"] .device-phone.is-front {
  transform: rotate(3deg);
}
.device-tablet {
  width: 100%;
  max-width: 520px;
  aspect-ratio: 900 / 1200;
  padding: 14px;
  border-radius: 34px;
  background: linear-gradient(145deg, #2a2a35, #121218);
  box-shadow: inset 0 0 0 2px #3a3a48, var(--shadow), var(--shadow-glow);
  margin-inline: auto;
}
.device-tablet .device-screen {
  border-radius: 22px;
}

/* ---------- Trust strip ---------- */
.trust {
  border-block: 1px solid var(--border);
  background: var(--bg-2);
}
.trust ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 28px;
  margin: 0;
  padding: 22px 0;
  list-style: none;
}
.trust li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.95rem;
}
.trust svg {
  width: 20px;
  height: 20px;
  color: #6ee7a8;
  flex: none;
}

/* ---------- Cards ---------- */
.grid {
  display: grid;
  gap: 16px;
}
.card {
  position: relative;
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface) 0%, rgba(21, 21, 29, 0.6) 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.03) inset;
  transition: transform 0.2s ease, border-color 0.2s;
}
.card:hover {
  transform: translateY(-3px);
  border-color: #353544;
}
.card h3 {
  font-size: 1.15rem;
  margin-block-end: 8px;
}
.card p {
  margin: 0;
  color: var(--muted);
}
.icon-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-block-end: 18px;
  border-radius: 14px;
  background: rgba(124, 92, 255, 0.14);
  color: #b6a8ff;
}
.icon-tile svg {
  width: 26px;
  height: 26px;
}

/* ---------- Split sections ---------- */
.split {
  display: grid;
  gap: 40px;
  align-items: center;
}
.split h2 {
  font-size: clamp(1.75rem, 4.2vw, 2.5rem);
}
.split p {
  color: var(--muted);
  font-size: 1.075rem;
}
.check-list {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: grid;
  gap: 10px;
}
.check-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.check-list svg {
  width: 22px;
  height: 22px;
  margin-block-start: 2px;
  color: var(--accent-text);
  flex: none;
}
kbd {
  display: inline-block;
  min-width: 1.8em;
  padding: 1px 7px;
  border: 1px solid #3a3a48;
  border-block-end-width: 2px;
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--text);
  font: 600 0.85em/1.5 "Inter", system-ui, sans-serif;
  text-align: center;
  direction: ltr;
  unicode-bidi: isolate;
}

.panel {
  position: relative;
  overflow: hidden;
  padding: 40px 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.panel-privacy {
  background:
    radial-gradient(60% 80% at 100% 0%, rgba(110, 231, 168, 0.12), transparent 60%),
    var(--surface);
}
.panel-privacy .icon-tile {
  background: rgba(110, 231, 168, 0.14);
  color: #6ee7a8;
}
.panel-arabic {
  background:
    radial-gradient(60% 80% at 0% 100%, rgba(255, 77, 141, 0.12), transparent 60%),
    var(--surface);
}
.arabic-sample {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  padding: 24px;
  border-radius: var(--radius);
  background: #0e0e14;
  border: 1px solid var(--border);
  text-align: center;
}
.arabic-sample .ar-big {
  font-family: "Cairo", sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 6vw, 3rem);
  line-height: 1.3;
  direction: rtl;
}
.arabic-sample .ar-mixed {
  font-family: "Cairo", "Inter", sans-serif;
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--muted);
  direction: rtl;
}

.cta {
  position: relative;
  overflow: hidden;
  padding: 56px 28px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(80% 120% at 0% 0%, rgba(124, 92, 255, 0.45), transparent 60%),
    radial-gradient(80% 120% at 100% 100%, rgba(255, 77, 141, 0.35), transparent 60%),
    #161226;
  border: 1px solid #2f2950;
  text-align: center;
}
.cta h2 {
  font-size: clamp(1.8rem, 4.5vw, 2.8rem);
}
.cta p {
  max-width: 560px;
  margin: 0 auto 28px;
  color: #c9c6dc;
  font-size: 1.075rem;
}
.cta .badges {
  justify-content: center;
}

/* ---------- FAQ ---------- */
.faq {
  max-width: 820px;
  margin-inline: auto;
  display: grid;
  gap: 12px;
}
.faq details {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.2s;
}
.faq details[open] {
  border-color: #3a3a4a;
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
  padding: 16px 20px;
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "";
  flex: none;
  width: 22px;
  height: 22px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / contain no-repeat;
  color: var(--muted);
  transition: transform 0.2s;
}
.faq details[open] summary::after {
  transform: rotate(45deg);
}
.faq .answer {
  padding: 0 20px 20px;
  color: var(--muted);
}
.faq .answer p:last-child {
  margin: 0;
}

/* ---------- Page header ---------- */
.page-hero {
  position: relative;
  padding-block: 56px 24px;
  text-align: center;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: -40% 10% auto;
  height: 420px;
  background: radial-gradient(50% 60% at 50% 40%, rgba(124, 92, 255, 0.22), transparent 70%);
  pointer-events: none;
}
.page-hero > * {
  position: relative;
}
.page-hero h1 {
  font-size: clamp(2.1rem, 6vw, 3.4rem);
  margin-block-end: 12px;
}
.page-hero p {
  max-width: 640px;
  margin-inline: auto;
  color: var(--muted);
  font-size: 1.1rem;
}

/* ---------- Features page ---------- */
.feature-group {
  display: grid;
  gap: 24px;
  padding-block: 40px;
  border-block-start: 1px solid var(--border);
}
.feature-group:first-of-type {
  border-block-start: 0;
}
.feature-group header h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.5rem;
  margin-block-end: 6px;
}
.feature-group header h2 .icon-tile {
  margin: 0;
  width: 42px;
  height: 42px;
}
.feature-group header p {
  margin: 0;
  color: var(--muted);
}
.feature-list {
  display: grid;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.feature-list li {
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
}
.feature-list strong {
  display: block;
  margin-block-end: 2px;
}
.feature-list span {
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------- Download ---------- */
.download-grid {
  display: grid;
  gap: 16px;
}
.store-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 32px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  text-align: center;
}
.store-card h2 {
  font-size: 1.35rem;
  margin: 0;
}
.qr {
  width: 168px;
  height: 168px;
  border-radius: 18px;
  background: #fff;
  padding: 10px;
}
.qr img {
  width: 100%;
  height: 100%;
}
.req-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.req-table th,
.req-table td {
  padding: 14px 18px;
  text-align: start;
  border-block-end: 1px solid var(--border);
  vertical-align: top;
}
.req-table tr:last-child th,
.req-table tr:last-child td {
  border-block-end: 0;
}
.req-table th {
  width: 40%;
  background: var(--surface);
  font-weight: 700;
}
.note {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px 18px;
  border: 1px solid rgba(110, 231, 168, 0.25);
  border-radius: var(--radius);
  background: rgba(110, 231, 168, 0.06);
}
.note svg {
  width: 22px;
  height: 22px;
  color: #6ee7a8;
  flex: none;
  margin-block-start: 2px;
}
.note p {
  margin: 0;
}

/* ---------- Support ---------- */
.support-hero-card {
  max-width: 720px;
  margin-inline: auto;
  padding: 36px 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  text-align: center;
}
.support-hero-card .email {
  display: block;
  margin-block-start: 12px;
  color: var(--muted);
  font-size: 0.95rem;
  direction: ltr;
  unicode-bidi: isolate;
}

/* ---------- Legal / prose ---------- */
.prose-wrap {
  display: grid;
  gap: 32px;
  max-width: 1040px;
  margin-inline: auto;
}
.toc {
  align-self: start;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.toc h2 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-block-end: 10px;
}
html[lang="ar"] .toc h2 {
  letter-spacing: 0;
  font-size: 0.95rem;
}
.toc ol {
  margin: 0;
  padding-inline-start: 1.2em;
  display: grid;
  gap: 6px;
  font-size: 0.95rem;
}
.toc a {
  color: var(--muted);
  text-decoration: none;
}
.toc a:hover {
  color: var(--text);
}
.prose {
  max-width: 760px;
  font-size: 1.05rem;
}
.prose h2 {
  font-size: 1.35rem;
  margin-block: 2em 0.6em;
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.prose h2:first-child {
  margin-block-start: 0;
}
.prose p,
.prose li {
  color: #cfcfd8;
}
.prose li {
  margin-block-end: 0.4em;
}
.prose strong {
  color: var(--text);
}
.updated {
  display: inline-block;
  margin-block-end: 20px;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
}
.lang-note {
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
}

/* ---------- Footer ---------- */
.site-footer {
  margin-block-start: 40px;
  padding-block: 48px 32px;
  border-block-start: 1px solid var(--border);
  background: var(--bg-2);
}
.footer-grid {
  display: grid;
  gap: 32px;
}
.footer-brand p {
  max-width: 340px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}
.footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-links a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  color: var(--muted);
  text-decoration: none;
}
.footer-links a:hover {
  color: var(--text);
}
.footer-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.socials {
  display: flex;
  gap: 8px;
}
.socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--muted);
}
.socials a:hover {
  color: var(--text);
  border-color: #3a3a48;
}
.socials svg {
  width: 20px;
  height: 20px;
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-block-start: 36px;
  padding-block-start: 24px;
  border-block-start: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
}
.footer-bottom .lang-switch {
  padding: 4px 10px;
  min-height: 36px;
}

/* ---------- 404 ---------- */
.notfound {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding-block: 64px;
}
.notfound .code {
  font-size: clamp(5rem, 18vw, 9rem);
  font-weight: 800;
  line-height: 1;
  margin-block-end: 12px;
}
.notfound .both {
  display: grid;
  gap: 28px;
  margin-block: 24px 32px;
}
.notfound .both p {
  margin: 0;
  color: var(--muted);
}
.notfound .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

/* ---------- Reveal on scroll (JS only, respects reduced motion) ---------- */
.reveal-on .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal-on .reveal.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal-on .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .card,
  .btn,
  .badge {
    transition: none;
  }
}

/* ---------- Breakpoints ---------- */
@media (min-width: 640px) {
  :root {
    --gutter: 28px;
  }
  .grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero-actions {
    flex-direction: column;
  }
  .feature-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .download-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .panel,
  .cta {
    padding: 56px 48px;
  }
  .footer-links {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (min-width: 960px) {
  .section {
    padding-block: 96px;
  }
  .hero {
    padding-block: 72px 96px;
  }
  .hero-grid {
    grid-template-columns: 1.25fr 0.75fr;
  }
  .hero-visual {
    min-height: 600px;
  }
  .device-phone {
    width: 300px;
  }
  .device-phone.is-back {
    width: 250px;
  }
  .grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .split {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }
  .split.reverse > :first-child {
    order: 2;
  }
  .feature-group {
    grid-template-columns: 320px 1fr;
    gap: 40px;
  }
  .prose-wrap {
    grid-template-columns: 240px minmax(0, 1fr);
  }
  .toc {
    position: sticky;
    top: calc(var(--header-h) + 24px);
  }
  .footer-grid {
    grid-template-columns: 1.4fr 1.6fr 1fr;
  }
}
@media (min-width: 1200px) {
  .hero h1 {
    font-size: 3.5rem;
  }
}

@media print {
  .site-header,
  .site-footer,
  .toc,
  .skip-link {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
  }
  .prose p,
  .prose li {
    color: #000;
  }
}

/* Directional icons mirror in RTL. */
html[dir="rtl"] .flip-rtl {
  transform: scaleX(-1);
}
