/* ToonWorld Studio — style.css
   Self-contained, system fonts, zero trackers, zero CDNs, complete RTL support. */
:root {
  --bg:           #f9f7f4;
  --fg:           #1a1d2e;
  --accent:       #ff7a45;
  --accent-hover: #e66330;
  --accent-soft:  rgba(255, 122, 69, 0.12);
  --accent-text:  #c2410c;   /* 4.8:1 on --bg (WCAG AA); #ff7a45 text was 2.4:1 */
  --btn-fill:     #c2410c;   /* white text 5.2:1 */
  --btn-fill-hover: #9a3412;
  --card:         #ffffff;
  --muted:        #5b6577;
  --line:         #e8e4dc;
  --radius:       16px;
  --radius-sm:    8px;
  --maxw:         1140px;
  --font:         system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans",
                  "Noto Sans Arabic", "Noto Sans Devanagari", "Noto Sans Bengali",
                  "Noto Sans CJK SC", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:           #12141c;
    --fg:           #f0f3f8;
    --accent:       #ff7a45;
    --accent-hover: #ff8e61;
    --accent-soft:  rgba(255, 122, 69, 0.22);
    --accent-text:  #ff8e61;
    --card:         #191c28;
    --muted:        #94a3b8;
    --line:         #272c3d;
  }
}

/* ── Reset & Base (Bug 1: RTL Phone Overflow Fixes) ────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html, body {
  overflow-x: clip;
  width: 100%;
}
html {
  scroll-padding-top: 80px;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  text-align: start;
}
img, svg, video {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: var(--accent-text);
  text-decoration-thickness: 1px;
}
a:focus-visible, button:focus-visible, select:focus-visible, summary:focus-visible, .btn:focus-visible {
  outline: 3px solid var(--fg);
  outline-offset: 2px;
  box-shadow: 0 0 0 5px var(--bg);
  border-radius: var(--radius-sm);
}
.skip-link {
  position: absolute;
  inset-inline-start: 12px;
  top: -60px;
  z-index: 1000;
  background: var(--fg);
  color: var(--bg);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

/* ── Typography & Wrapping ─────────────────────────────────────────── */
h1, h2, h3, h4, p, li, blockquote, td, th {
  overflow-wrap: anywhere;
  word-break: normal;
}
h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.2;
  margin-block-end: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
h2 {
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  line-height: 1.3;
  margin-block: 36px 16px;
  font-weight: 700;
}
h3 {
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  line-height: 1.35;
  margin-block: 20px 8px;
  font-weight: 600;
}
p {
  margin-block: 8px 16px;
  max-width: 65ch;
}
ul, ol {
  padding-inline-start: 1.5em;
  margin-block: 8px 16px;
  max-width: 65ch;
}
li {
  margin-block: 6px;
}
hr {
  border: none;
  border-top: 1px solid var(--line);
  margin-block: 48px;
}
code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.9em;
  background: var(--line);
  padding: 2px 6px;
  border-radius: 4px;
}
blockquote {
  border-inline-start: 4px solid var(--accent);
  padding-inline: 20px;
  padding-block: 14px;
  background: var(--card);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-block: 20px;
  border: 1px solid var(--line);
  border-inline-start: 4px solid var(--accent);
}

/* ── Layout Container ──────────────────────────────────────────────── */
main {
  min-height: 70vh;
}
.page-content {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 20px;
  padding-block: 32px 64px;
}

/* ── Header & Navigation ───────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--card);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.05);
}
.header-inner {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--fg);
  text-decoration: none;
  flex-shrink: 0;
  min-height: 44px;
}
.logo img {
  border-radius: 10px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.main-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-inline: 12px;
  padding-block: 8px;
  min-height: 44px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
  white-space: nowrap;
}
@media (prefers-reduced-motion: no-preference) {
  .main-nav a {
    transition: background 0.15s ease, color 0.15s ease;
  }
}
.main-nav a:hover {
  background: var(--bg);
  color: var(--accent-text);
}
.main-nav a.active {
  background: var(--accent-soft);
  color: var(--accent-text);
  font-weight: 600;
}
.header-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.lang-select {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--fg);
  padding-inline: 10px;
  padding-block: 6px;
  font: inherit;
  font-size: 0.88rem;
  cursor: pointer;
  min-height: 44px;
}
.menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: none;
  border: 1px solid var(--line);
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-sm);
  width: 44px;
  height: 44px;
}
.menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--fg);
  border-radius: 2px;
  transition: 0.2s;
}

/* ── Mobile Menu Drawer ────────────────────────────────────────────── */
.mobile-menu {
  background: var(--card);
  border-top: 1px solid var(--line);
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mobile-menu a {
  display: flex;
  align-items: center;
  padding-inline: 14px;
  padding-block: 10px;
  min-height: 44px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--fg);
  font-size: 1rem;
}
.mobile-menu a:hover, .mobile-menu a.active {
  background: var(--accent-soft);
  color: var(--accent-text);
}
.mobile-lang-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-block-start: 12px;
  border-top: 1px solid var(--line);
  margin-block-start: 8px;
}
.mobile-lang-label {
  font-size: 0.9rem;
  color: var(--muted);
}
.mobile-menu[hidden] {
  display: none;
}

/* ── Buttons (Tap targets >= 44px, disabled style) ─────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding-inline: 22px;
  padding-block: 12px;
  border-radius: var(--radius);
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  min-height: 48px;
  max-width: 100%;
  border: 2px solid transparent;
  line-height: 1.2;
  text-align: center;
}
.btn-primary {
  background: var(--btn-fill, #c2410c);
  color: #ffffff;
}
@media (prefers-reduced-motion: no-preference) {
  .btn-primary {
    transition: background 0.15s ease, transform 0.15s ease;
  }
}
.btn-primary:hover {
  background: var(--btn-fill-hover, #9a3412);
}
.btn-secondary {
  background: var(--card);
  color: var(--accent-text);
  border-color: var(--accent);
}
.btn-secondary:hover {
  background: var(--btn-fill, #c2410c);
  color: #ffffff;
}
.btn-disabled {
  background: var(--line);
  color: var(--muted);
  border-color: var(--line);
  cursor: not-allowed;
  opacity: 0.78;
}
.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-block: 24px;
}
.download-btn-row {
  margin-block: 16px 20px;
}
.store-btn {
  gap: 10px;
}

/* ── Hero Section (Two columns desktop, single mobile) ─────────────── */
.hero-section {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 48px;
  padding-block: 32px 56px;
}
.hero-text {
  min-width: 0;
}
.hero-subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  font-weight: 600;
  color: var(--accent-text);
  margin-block-end: 14px;
  line-height: 1.35;
}
.hero-desc {
  font-size: 1.05rem;
  color: var(--muted);
  margin-block-end: 24px;
  max-width: 55ch;
}
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 0;
  padding-block: 20px;
}
.hero-blob {
  position: absolute;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(255, 122, 69, 0.45) 0%, rgba(255, 122, 69, 0.12) 55%, transparent 75%);
  filter: blur(36px);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

/* ── Real app screenshot in the hero (a desktop window frame) ─────────── */
.hero-shot {
  position: relative;
  z-index: 1;
  margin: 0;
  width: 100%;
  max-width: 620px;
  border-radius: 14px;
  overflow: hidden;
  background: #12141c;
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(20, 22, 34, 0.28), 0 4px 14px rgba(20, 22, 34, 0.12);
}
.hero-shot img { display: block; width: 100%; height: auto; }
.window-bar { display: flex; gap: 6px; padding: 9px 12px; background: #1d2030; }
.window-bar span { width: 10px; height: 10px; border-radius: 50%; background: #3a3f55; }
.window-bar span:first-child { background: #ff5f57; }
.window-bar span:nth-child(2) { background: #febc2e; }
.window-bar span:nth-child(3) { background: #28c840; }

/* ── Gallery: frames made in the app ──────────────────────────────── */
.gallery-section { max-width: var(--maxw); margin: 0 auto; padding: 56px 20px 24px; text-align: center; }
.gallery-sub { color: var(--muted); margin: 8px auto 28px; max-width: 640px; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; text-align: start; }
.gallery-item { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; min-width: 0; }
.gallery-item img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.gallery-item figcaption { padding: 12px 16px 16px; font-weight: 600; line-height: 1.4; }
@media (max-width: 900px) { .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .gallery-grid { grid-template-columns: 1fr; } .gallery-section { padding-top: 36px; } }

/* ── Phone Frame Mockup ────────────────────────────────────────────── */
.phone-frame {
  position: relative;
  z-index: 1;
  width: 260px;
  height: 480px;
  max-width: 100%;
  background: #1a1d2e;
  border: 7px solid #1a1d2e;
  border-radius: 36px;
  box-shadow: 0 20px 45px -12px rgba(26, 29, 46, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.phone-speaker {
  width: 70px;
  height: 12px;
  background: #11131c;
  border-radius: 8px;
  margin: 6px auto 8px;
  flex-shrink: 0;
}
.phone-screen {
  flex: 1;
  background: var(--bg);
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 12px 10px;
}
.mockup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block-end: 8px;
  border-bottom: 1px solid var(--line);
  font-size: 0.72rem;
  font-weight: 700;
}
.mockup-title {
  color: var(--fg);
}
.mockup-badge {
  background: var(--line);
  color: var(--muted);
  padding: 2px 6px;
  border-radius: 6px;
}
.mockup-badge.offline {
  background: var(--accent-soft);
  color: var(--accent-text);
}
.mockup-stage {
  flex: 1;
  margin-block: 8px;
  background: linear-gradient(180deg, rgba(255, 122, 69, 0.08) 0%, rgba(255, 122, 69, 0.02) 65%, #cde4cf 65%, #a6cfa8 100%);
  border-radius: 12px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.mockup-character {
  z-index: 2;
  transform: translateY(-8px);
}
.mockup-ground {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 28px;
  background: #8fb991;
  border-top: 2px solid #719b73;
}
.mockup-controls {
  padding-block: 6px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.mockup-track {
  display: flex;
  gap: 4px;
}
.mockup-bar {
  flex: 1;
  height: 4px;
  background: var(--line);
  border-radius: 2px;
}
.mockup-bar.active {
  background: var(--accent);
}
.mockup-btn-row {
  display: flex;
  justify-content: space-between;
  gap: 4px;
}
.mockup-chip {
  flex: 1;
  text-align: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 4px 2px;
  font-size: 0.65rem;
  color: var(--fg);
  font-weight: 600;
}
.mockup-tag {
  text-align: center;
  padding-block-start: 6px;
  font-size: 0.68rem;
  color: var(--muted);
}

/* ── Feature Cards (Responsive CSS Grid) ───────────────────────────── */
.features-section {
  padding-block: 40px 48px;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-block-start: 24px;
}
.feature-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
@media (prefers-reduced-motion: no-preference) {
  .feature-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  }
  .feature-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px -6px rgba(26, 29, 46, 0.08);
    border-color: rgba(255, 122, 69, 0.4);
  }
}
.feature-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.feature-card h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--fg);
  line-height: 1.3;
}
.feature-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.55;
}

/* ── How It Works (Step Cards with Huge Numbers) ───────────────────── */
.how-section {
  padding-block: 40px 48px;
}
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-block-start: 24px;
}
.step-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
@media (prefers-reduced-motion: no-preference) {
  .step-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  }
  .step-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px -6px rgba(26, 29, 46, 0.08);
    border-color: rgba(255, 122, 69, 0.4);
  }
}
.step-number {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1;
  color: var(--accent-text);
  margin-block-end: 4px;
}
.step-card h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--fg);
}
.step-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.55;
}

/* ── Final CTA Band ────────────────────────────────────────────────── */
.cta-band {
  background: linear-gradient(135deg, #1a1d2e 0%, #262a40 100%);
  border-top: 4px solid #ff7a45;
  color: #ffffff;
  padding-block: 56px;
  margin-block-start: 48px;
  border-radius: var(--radius);
  text-align: center;
}
.cta-band-inner {
  max-width: 650px;
  margin-inline: auto;
  padding-inline: 20px;
}
.cta-band h2 {
  color: #ffffff;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  margin: 0 0 12px;
}
.cta-band p {
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.05rem;
  margin: 0 auto 24px;
}
.cta-band .cta-buttons {
  justify-content: center;
}
.cta-band :focus-visible {
  outline-color: #ffffff;
  box-shadow: none;
}
.btn-cta-primary {
  background: #ffffff;
  color: #1a1d2e;
  font-weight: 700;
}
.btn-cta-primary:hover {
  background: #f4f4f4;
  color: #000000;
}
.btn-meta { opacity: .8; font-weight: 400; }
.download-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  margin-block: 16px 24px;
}
.download-card .download-note { margin: 12px 0 6px; }
.download-card .download-file { color: var(--muted); font-size: .9rem; overflow-wrap: anywhere; }
.download-card .sha { font-size: .8rem; }
.download-card .download-hint { color: var(--muted); font-size: .92rem; margin: 0 0 6px; }
.download-card .download-alt { margin: 16px 0 4px; font-weight: 600; }
.btn-cta-disabled {
  background: rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.75);
  border-color: rgba(255, 255, 255, 0.35);
  cursor: not-allowed;
}

/* ── FAQ Items ─────────────────────────────────────────────────────── */
.faq-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-block: 16px;
}
.faq-item h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  color: var(--fg);
}
.faq-item p {
  margin: 0;
  color: var(--muted);
  max-width: none;
  font-size: 0.95rem;
}

/* ── Responsive Tables & Stacked Requirements Cards ─────────────────── */
.table-mobile-cards {
  display: none;
}
.table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-block: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}
table, .desktop-table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  font-size: 0.92rem;
}
th, td {
  padding: 12px 16px;
  text-align: start;
  border-bottom: 1px solid var(--line);
}
th {
  background: var(--bg);
  font-weight: 600;
  color: var(--fg);
}
tr:last-child td {
  border-bottom: none;
}

/* ── Footer ────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--card);
  border-top: 1px solid var(--line);
  padding-block: 48px 24px;
  margin-block-start: 48px;
}
.footer-inner {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
.footer-col strong {
  color: var(--fg);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-block-end: 4px;
}
.footer-col a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
}
.footer-col a:hover {
  color: var(--accent-text);
}
.footer-bar {
  max-width: var(--maxw);
  margin-inline: auto;
  margin-block-start: 36px;
  padding-inline: 20px;
  padding-block-start: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  align-items: center;
}

/* ── Responsive Breakpoints ────────────────────────────────────────── */
@media (max-width: 1023px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 1100px) {
  .main-nav {
    display: none;
  }
  .menu-btn {
    display: flex;
  }
  .header-controls .lang-select {
    display: none;
  }
}
@media (max-width: 767px) {
  .hero-section {
    grid-template-columns: 1fr;
    gap: 36px;
    padding-block: 24px 36px;
  }
  .steps-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 639px) {
  .desktop-table-wrap {
    display: none !important;
  }
  .table-mobile-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-block: 20px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .req-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px 20px;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
  }
  .req-card-header {
    padding-block-end: 12px;
    border-bottom: 2px solid var(--line);
    margin-block-end: 12px;
  }
  .req-card-header h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--accent-text);
    margin: 0;
    line-height: 1.3;
  }
  .req-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0;
    padding: 0;
  }
  .req-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-block-end: 12px;
    border-bottom: 1px solid var(--line);
  }
  .req-row:last-child {
    border-bottom: none;
    padding-block-end: 0;
  }
  .req-row dt {
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--fg);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    opacity: 0.9;
  }
  .req-row dd {
    font-size: 0.95rem;
    color: var(--muted);
    margin: 0;
    line-height: 1.5;
    word-break: break-word;
    overflow-wrap: anywhere;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* ══ Professional pass, 29 Nov 2026 ═══════════════════════════════════
   Design tokens: spacing 4/8/12/16/24/32/48/64, radius 8/16, type scale
   0.85 / 0.95 / 1 / 1.15 / 1.4 / 2.2 / 3.4 rem. Accent text #c2410c (AA). */
:root { --space-section: clamp(48px, 7vw, 88px); --shadow-card: 0 1px 2px rgba(20,22,34,.04), 0 8px 24px rgba(20,22,34,.06); }
.muted { color: var(--muted); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--muted); max-width: 62ch; }
.eyebrow { font-size: .85rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text); margin-block: 0 10px; }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: .9rem; border-radius: var(--radius-sm); }
.btn-lg { min-height: 54px; padding-inline: 26px; font-size: 1.02rem; }
.btn-secondary:hover .btn-meta, .btn-primary .btn-meta { color: inherit; }
.section-link { margin-block: 24px 0; font-weight: 600; }
.section-link a { text-decoration: none; }
[dir="rtl"] .arrow { display: inline-block; transform: scaleX(-1); }
.section-link a:hover { text-decoration: underline; }
picture { display: block; }

/* Header: wider nav, CTA button, the menu button only below 960 px */
.site-header { backdrop-filter: saturate(1.4) blur(8px); }
.header-cta { color: #fff !important; }
@media (max-width: 1100px) { .main-nav { display: flex; } .menu-btn { display: none; } .header-controls .lang-select { display: inline-block; } }
@media (max-width: 960px) { .main-nav { display: none; } .menu-btn { display: flex; } .header-controls .lang-select { display: none; } }
@media (max-width: 420px) { .header-cta { display: none; } .logo span { font-size: 1rem; } }
.mobile-menu .mobile-cta { margin-block: 8px 4px; color: #fff; justify-content: center; }
.mobile-menu .mobile-cta:hover { background: var(--btn-fill-hover); color: #fff; }
.mobile-menu a:focus-visible { outline-offset: -3px; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Home hero */
.hero-section { grid-template-columns: 1fr 1.05fr; padding-block: clamp(24px, 4vw, 56px) 32px; }
.hero-section h1 { font-size: clamp(2rem, 4.2vw, 3.3rem); }
.hero-shot { max-width: 680px; }
.hero-meta { color: var(--muted); font-size: .9rem; margin-block: -8px 0; }
@media (max-width: 767px) { .hero-section { grid-template-columns: 1fr; gap: 28px; } .hero-visual { padding-block: 0; } }
@media (max-width: 480px) { .hero-section .cta-buttons .btn { width: 100%; } }
.trust-strip { list-style: none; padding: 0; margin: 8px 0 0; max-width: none; display: flex; flex-wrap: wrap; gap: 10px 12px; justify-content: center; }
.trust-strip li { margin: 0; padding: 8px 14px; border: 1px solid var(--line); background: var(--card); border-radius: 999px; font-size: .9rem; font-weight: 600; color: var(--fg); }
.trust-strip li::before { content: "\2713"; color: var(--accent-text); margin-inline-end: 8px; font-weight: 800; }
.features-section, .how-section, .home-faq { padding-block-start: var(--space-section); }
.gallery-section { padding-inline: 0; padding-block-start: var(--space-section); }
.home-faq .faq-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.home-faq .faq-item { margin: 0; }
@media (max-width: 767px) { .home-faq .faq-grid { grid-template-columns: 1fr; } }

/* Inner page heading + breadcrumb */
.breadcrumb ol { list-style: none; padding: 0; margin: 0 0 20px; display: flex; flex-wrap: wrap; gap: 6px; font-size: .88rem; color: var(--muted); max-width: none; }
.breadcrumb li { margin: 0; }
.breadcrumb li + li::before { content: "/"; margin-inline-end: 6px; color: var(--line); }
.breadcrumb a { color: var(--muted); }
.page-hero { padding-block: 8px 24px; border-bottom: 1px solid var(--line); margin-block-end: 8px; }
.page-hero h1 { font-size: clamp(1.9rem, 4vw, 3rem); }

/* Features page */
.feature-rows { display: flex; flex-direction: column; gap: var(--space-section); padding-block: 40px; }
.feature-row { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.feature-row:nth-child(even) .feature-row-media { order: 2; }
.feature-row-media { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-card); background: #12141c; }
.feature-row-media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.feature-row-text h2 { margin-block: 12px 8px; font-size: clamp(1.35rem, 2.4vw, 1.9rem); }
.feature-row-text p { color: var(--muted); }
@media (max-width: 767px) { .feature-row { grid-template-columns: 1fr; } .feature-row:nth-child(even) .feature-row-media { order: 0; } }
.check-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; max-width: none; }
.check-list li { margin: 0; padding: 14px 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding-inline-start: 44px; position: relative; }
.check-list li::before { content: "\2713"; position: absolute; inset-inline-start: 16px; top: 13px; color: var(--accent-text); font-weight: 800; }
.check-list--single { grid-template-columns: 1fr; }
.check-list--single li { background: transparent; border: 0; padding-block: 6px; }
.more-section { padding-block-end: 24px; }

/* Download page */
.os-hint { margin: 8px 0 0; padding: 12px 16px; border-radius: var(--radius-sm); background: var(--accent-soft); color: var(--fg); font-weight: 600; max-width: 70ch; border-inline-start: 4px solid var(--accent); }
.dl-section { padding-block: 28px 8px; }
.dl-section h2 { margin-block-start: 8px; }
.dl-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.dl-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-card); display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.dl-card--primary { border: 2px solid var(--accent); }
.dl-card--match { box-shadow: 0 0 0 4px var(--accent-soft), var(--shadow-card); }
.dl-card-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.dl-card-head h3 { margin: 0; }
.dl-card p { color: var(--muted); }
.dl-btn { align-self: flex-start; margin-block: 4px 12px; }
.dl-meta { display: grid; gap: 8px; margin: 0; font-size: .9rem; border-top: 1px solid var(--line); padding-top: 12px; }
.dl-meta div { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 8px; align-items: start; }
.dl-meta dt { color: var(--muted); font-weight: 600; }
.dl-meta dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.dl-meta code { font-size: .8rem; word-break: break-all; }
.sha-row { display: flex; gap: 8px; align-items: flex-start; flex-wrap: wrap; }
.copy-btn { font: inherit; font-size: .8rem; font-weight: 600; padding: 4px 10px; border-radius: 6px; border: 1px solid var(--line); background: var(--bg); color: var(--fg); cursor: pointer; min-height: 32px; }
.copy-btn:hover { border-color: var(--accent); }
.dl-note { color: var(--muted); font-size: .9rem; margin-block: 12px 0; }
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-text); font-size: .78rem; font-weight: 700; letter-spacing: .02em; }
.pill--muted { background: var(--line); color: var(--fg); font-size: .85rem; }
.steps { counter-reset: s; list-style: none; padding: 0; max-width: 70ch; }
.steps li { counter-increment: s; position: relative; padding-inline-start: 44px; margin-block: 12px; min-height: 30px; }
.steps li::before { content: counter(s); position: absolute; inset-inline-start: 0; top: -1px; width: 30px; height: 30px; border-radius: 50%; background: var(--btn-fill); color: #fff; font-weight: 700; font-size: .9rem; display: flex; align-items: center; justify-content: center; }
.cmd { background: #1b1d2a; color: #f0f3f8; padding: 14px 16px; border-radius: var(--radius-sm); overflow-x: auto; max-width: 100%; text-align: left; }
.cmd code { background: none; color: inherit; padding: 0; font-size: .88rem; white-space: pre; }
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.req-table { width: 100%; min-width: 0; border-collapse: collapse; background: var(--card); }
@media (max-width: 639px) {
  .req-table th, .req-table td { display: block; width: auto; }
  .req-table th { padding-block-end: 2px; border-bottom: 0; }
  .req-table td { padding-block-start: 2px; color: var(--muted); }
}
.android-box h2, .help-box h2, .card-box h2 { margin-block-start: 0; font-size: clamp(1.25rem, 2.2vw, 1.6rem); }
.req-table th, .req-table td { text-align: start; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.req-table th { width: 32%; font-weight: 600; }
.req-table tr:last-child th, .req-table tr:last-child td { border-bottom: 0; }
.android-box, .help-box, .card-box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-block: 28px; }
.help-box { text-align: center; }
.help-box p, .help-box .cta-buttons { margin-inline: auto; justify-content: center; }
@media (max-width: 767px) { .dl-grid, .two-col { grid-template-columns: 1fr; gap: 16px; } .dl-btn { align-self: stretch; } }

/* Support + legal pages */
.support-page .faq-item { max-width: 80ch; }
.link-list { display: flex; flex-wrap: wrap; gap: 8px 24px; list-style: none; padding: 0; }
.legal-doc { max-width: 76ch; }
.legal-doc h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.legal-doc h2 { font-size: 1.3rem; margin-block: 32px 8px; }
.legal-doc .meta { color: var(--muted); font-size: .92rem; }
.legal-doc .short { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px; }
.legal-doc code { overflow-wrap: anywhere; }

/* Footer: brand column + three link columns + language links */
.footer-inner { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
.footer-h { font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; margin: 0 0 4px; color: var(--fg); font-weight: 700; }
.footer-brand .logo { margin-block-end: 4px; }
.footer-brand p { color: var(--muted); font-size: .92rem; margin: 0; }
.footer-col a { padding-block: 2px; }
.footer-langs { max-width: var(--maxw); margin: 32px auto 0; padding-inline: 20px; }
.footer-langs ul { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 6px 18px; max-width: none; }
.footer-langs li { margin: 0; }
.footer-langs a { color: var(--muted); font-size: .9rem; text-decoration: none; }
.footer-langs a:hover, .footer-langs a[aria-current] { color: var(--accent-text); }
.footer-langs a[aria-current] { font-weight: 700; }
@media (max-width: 900px) { .footer-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639px) { .footer-inner { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* Root language chooser */
.root-hero { text-align: center; padding-block: 48px 8px; }
.root-hero img { margin-inline: auto; border-radius: 18px; margin-block-end: 16px; }
.root-hero .lead { margin-inline: auto; }
.lang-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; margin-block: 32px; }
.lang-card { display: flex; flex-direction: column; gap: 6px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; text-decoration: none; color: var(--fg); }
.lang-card:hover { border-color: var(--accent); }
.lang-name { font-size: 1.1rem; font-weight: 700; }
.lang-code { font-size: .85rem; color: var(--muted); }
.root-links { text-align: center; max-width: none; }

/* Guides */
.guide { max-width: 76ch; }
.guide h2 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); margin-block: 36px 10px; }
.guide-date { font-size: .9rem; margin-block: -6px 16px; }
.guide-fig { margin: 20px 0; }
.guide-fig picture, .guide-fig img { border-radius: var(--radius-sm); border: 1px solid var(--line); width: 100%; overflow: hidden; }
.guide-fig figcaption { color: var(--muted); font-size: .88rem; margin-top: 6px; }
kbd { font-family: inherit; font-size: .85em; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; padding: 1px 6px; background: var(--card); }
.guide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.guide-card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--fg); box-shadow: var(--shadow-card); }
.guide-card:hover { border-color: var(--accent); }
.guide-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.guide-card-body { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 20px; }
.guide-card-title { font-weight: 700; font-size: 1.08rem; line-height: 1.35; }
.home-learn { padding-block-start: var(--space-section); }
.link-list--cards { gap: 12px; }
.link-list--cards li { margin: 0; }
.link-list--cards a { display: block; padding: 14px 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); font-weight: 600; text-decoration: none; }
.link-list--cards a:hover { border-color: var(--accent); }
.faq-item h2.faq-q { font-size: 1.05rem; margin: 0 0 8px; font-weight: 600; line-height: 1.4; color: var(--fg); }

/* Dark mode details */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --btn-fill: #c2410c; --btn-fill-hover: #9a3412; }
  .breadcrumb li + li::before { color: var(--muted); }
}
