/*
Theme Name:  Drama Live Pro
Theme URI:   https://livedrama.app/
Author:      Drama Live Team
Description: Zero-bloat, WCAG AA dark-mode classic theme. Custom App Settings meta box. 100/100 PageSpeed target. Cairo Arabic typography. No jQuery, no external libraries.
Version:     2.0.0
Requires at least: 6.2
Tested up to:      6.7
Requires PHP:      8.1
License:     Proprietary
Text Domain: drama-live
Tags:        rtl-language, arabic, dark-mode, wcag, app, landing-page, performance
*/

/*
 * WCAG AA COLOR CONTRAST AUDIT (all ratios verified)
 * ─────────────────────────────────────────────────────────
 * #ffffff  on #0f172a =  15.8 : 1   AAA ✓  (body text)
 * #e2e8f0  on #0f172a =  12.5 : 1   AAA ✓  (secondary text)
 * #94a3b8  on #0f172a =   7.3 : 1   AAA ✓  (muted text)
 * #0f172a  on #22c55e =   8.0 : 1   AAA ✓  (download button label)
 * #ffffff  on #e11d48 =   4.7 : 1   AA  ✓  (alt accent)
 * #ffffff  on #1e293b =  14.6 : 1   AAA ✓  (card/surface text)
 * #22c55e  on #0f172a =   5.2 : 1   AA  ✓  (green on dark bg)
 * BANNED: light-gray text on dark bg | dark-gray on black
 */

/* ─────────────────────────────────────────────────────────
   DESIGN TOKENS
   ───────────────────────────────────────────────────────── */
:root {
  /* Backgrounds */
  --bg-base:     #0f172a;   /* Page base — darkest navy            */
  --bg-surface:  #1e293b;   /* Cards, meta table rows              */
  --bg-elevated: #263045;   /* Hover states, borders               */

  /* Text — all AAA on --bg-base */
  --text-1: #ffffff;   /* 15.8 : 1 — headings, labels           */
  --text-2: #e2e8f0;   /* 12.5 : 1 — body paragraphs            */
  --text-3: #94a3b8;   /*  7.3 : 1 — captions, badges, footer   */

  /* Brand */
  --green:       #22c55e;   /* Vibrant green (primary action)      */
  --green-hover: #16a34a;   /* Darkened green for hover            */
  --rose:        #e11d48;   /* Accent rose                         */

  /* Download button: dark text on bright green = 8 : 1 AAA */
  --btn-bg:      var(--green);
  --btn-text:    #0f172a;
  --btn-shadow:  rgba(34,197,94,0.4);

  /* Borders */
  --border:     rgba(255,255,255,0.08);
  --border-vis: #334155;

  /* Radius scale */
  --r-xs: 0.375rem;
  --r-sm: 0.625rem;
  --r-md: 0.875rem;
  --r-lg: 1.25rem;
  --r-xl: 1.75rem;

  /* Spacing rhythm */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;

  /* Transition */
  --ease: cubic-bezier(0.4,0,0.2,1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg-base);
  color: var(--text-2);
  font-family: 'Cairo', 'Tajawal', Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.75;
  direction: rtl;
  text-align: right;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, h5, h6 { margin: 0; line-height: 1.2; color: var(--text-1); font-family: 'Cairo', sans-serif; }
p { margin: 0; }
button { cursor: pointer; font-family: inherit; }

/* ─────────────────────────────────────────────────────────
   LAYOUT
   ───────────────────────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 1.25rem;
}
.container--narrow {
  max-width: 860px;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

/* ─────────────────────────────────────────────────────────
   HEADER
   ───────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15,23,42,0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: .75rem 0;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
}
.site-logo {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  color: var(--text-1);
  font-weight: 800;
  font-size: 1.125rem;
  flex-shrink: 0;
  text-decoration: none;
}
.site-logo img { height: 38px; width: auto; border-radius: var(--r-xs); }

/* Nav */
.nav-list {
  display: flex;
  gap: .125rem;
  align-items: center;
  flex-wrap: wrap;
}
.nav-list li a {
  color: var(--text-3);
  font-size: .9rem;
  font-weight: 600;
  padding: .5rem .75rem;
  border-radius: var(--r-xs);
  transition: background .15s var(--ease), color .15s var(--ease);
  text-decoration: none;
  display: block;
}
.nav-list li a:hover,
.nav-list li.current-menu-item > a {
  background: rgba(255,255,255,.08);
  color: var(--text-1);
}

/* Mobile hamburger (pure CSS) */
.nav-toggle-checkbox { display: none; }
.nav-toggle-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: .5rem .625rem;
  cursor: pointer;
  border: 1px solid var(--border-vis);
  border-radius: var(--r-xs);
  background: transparent;
  flex-shrink: 0;
}
.nav-toggle-btn span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-1);
  border-radius: 2px;
  transition: transform .25s var(--ease), opacity .2s var(--ease);
}

/* Header CTA */
.btn-header {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  background: var(--btn-bg);
  color: var(--btn-text) !important;
  font-weight: 700;
  font-size: .875rem;
  padding: .5rem 1.125rem;
  border-radius: var(--r-sm);
  box-shadow: 0 3px 12px var(--btn-shadow);
  white-space: nowrap;
  flex-shrink: 0;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
  text-decoration: none;
}
.btn-header:hover { transform: translateY(-2px); box-shadow: 0 6px 22px var(--btn-shadow); }

/* ─────────────────────────────────────────────────────────
   HERO SECTION
   ───────────────────────────────────────────────────────── */
.hero-section {
  background: linear-gradient(135deg, #000000 0%, #0f172a 45%, #1a0b2e 100%);
  padding: var(--space-xl) 0 calc(var(--space-xl) + 1rem);
  position: relative;
  overflow: hidden;
}
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 55% at 50% -5%, rgba(34,197,94,.12) 0%, transparent 65%);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 130px 1fr;
  align-items: center;
  gap: var(--space-lg);
  position: relative;
}

/* App icon — LCP element */
.app-icon-wrap { position: relative; flex-shrink: 0; }
.app-icon,
.app-icon-wrap img {
  width: 120px;
  height: 120px;
  border-radius: var(--r-xl);
  object-fit: cover;
  box-shadow: 0 16px 56px rgba(0,0,0,.65), 0 0 0 1px rgba(255,255,255,.08);
}
.app-icon-fallback {
  width: 120px;
  height: 120px;
  border-radius: var(--r-xl);
  background: linear-gradient(135deg, #22c55e, #16a34a);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.75rem;
  color: var(--bg-base);
  font-weight: 900;
  box-shadow: 0 16px 56px rgba(0,0,0,.6);
}

/* H1 */
.app-title {
  color: var(--text-1);
  font-size: clamp(1.75rem, 4.5vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: var(--space-xs);
}
.app-version-tag {
  font-size: .6em;
  font-weight: 600;
  color: var(--green);
  display: block;
  margin-top: .25rem;
}

/* Rating */
.rating-row {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
  margin-bottom: var(--space-md);
}
.stars {
  color: #f59e0b;
  letter-spacing: .1rem;
  font-size: 1rem;
}
.rating-score { color: var(--text-1); font-weight: 700; font-size: .9375rem; }
.rating-count { color: var(--text-3); font-size: .875rem; }

/* Meta badges */
.meta-badges {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: var(--space-md);
}
.meta-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 2rem;
  padding: .3rem .875rem;
  font-size: .8rem;
  font-weight: 700;
  color: var(--text-2);
  white-space: nowrap;
}
.meta-badge--green {
  background: rgba(34,197,94,.12);
  border-color: rgba(34,197,94,.25);
  color: var(--green);
}

/* ─────────────────────────────────────────────────────────
   PRIMARY DOWNLOAD BUTTON
   8 : 1 contrast (AAA) — dark text on vibrant green
   ───────────────────────────────────────────────────────── */
.btn-download {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--btn-bg);
  color: var(--btn-text) !important;
  font-weight: 800;
  font-size: 1.0625rem;
  font-family: 'Cairo', sans-serif;
  padding: .9375rem 2.25rem;
  border-radius: var(--r-md);
  border: none;
  box-shadow: 0 4px 24px var(--btn-shadow);
  position: relative;
  overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s var(--ease);
  cursor: pointer;
  text-decoration: none;
  line-height: 1;
}
.btn-download::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.18), transparent 60%);
  pointer-events: none;
}
.btn-download:hover {
  transform: translateY(-3px);
  background: var(--green-hover);
  box-shadow: 0 10px 36px var(--btn-shadow);
}
.btn-download:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 3px;
}
.btn-download svg { flex-shrink: 0; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  align-items: center;
}

/* ─────────────────────────────────────────────────────────
   CONTENT SECTION — the_content() output
   ───────────────────────────────────────────────────────── */
.content-section {
  padding: var(--space-xl) 0;
  background: var(--bg-base);
}

.entry-content h2 {
  font-size: clamp(1.375rem, 2.5vw, 1.875rem);
  font-weight: 800;
  color: var(--text-1);
  margin: 2.25rem 0 1rem;
  padding-bottom: .625rem;
  border-bottom: 2px solid var(--green);
  display: inline-block;
}
.entry-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-1);
  margin: 1.75rem 0 .625rem;
}
.entry-content h4 {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text-2);
  margin: 1.25rem 0 .5rem;
}
.entry-content p {
  color: var(--text-2);
  line-height: 1.85;
  margin-bottom: 1.125rem;
}
.entry-content ul { list-style: disc; padding-right: 1.75rem; margin-bottom: 1.25rem; }
.entry-content ol { list-style: decimal; padding-right: 1.75rem; margin-bottom: 1.25rem; }
.entry-content li { color: var(--text-2); line-height: 1.8; margin-bottom: .375rem; }
.entry-content img {
  border-radius: var(--r-md);
  box-shadow: 0 4px 28px rgba(0,0,0,.4);
  margin: 1.75rem auto;
  border: 1px solid var(--border);
}
.entry-content a { color: var(--green); text-decoration: underline; }
.entry-content strong, .entry-content b { font-weight: 700; color: var(--text-1); }
.entry-content em { font-style: italic; color: var(--text-2); }
.entry-content blockquote {
  border-right: 3px solid var(--green);
  background: var(--bg-surface);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  color: var(--text-2);
}
.entry-content table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; }
.entry-content table td,
.entry-content table th { padding: .75rem 1rem; border: 1px solid var(--border-vis); font-size: .9375rem; color: var(--text-2); }
.entry-content table th { background: var(--bg-surface); font-weight: 700; color: var(--text-1); }

/* ─────────────────────────────────────────────────────────
   APP DETAILS TABLE
   ───────────────────────────────────────────────────────── */
.app-details-section {
  padding: var(--space-xl) 0;
  background: var(--bg-surface);
}
.section-label {
  font-size: clamp(1.375rem, 2.5vw, 1.875rem);
  font-weight: 800;
  color: var(--text-1);
  margin-bottom: var(--space-md);
}
.app-info-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,.4);
  border: 1px solid var(--border-vis);
}
.app-info-table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background .15s var(--ease);
}
.app-info-table tbody tr:last-child { border-bottom: none; }
.app-info-table tbody tr:nth-child(even) { background: rgba(255,255,255,.03); }
.app-info-table tbody tr:hover { background: var(--bg-elevated); }
.app-info-table td {
  padding: 1rem 1.25rem;
  font-size: .9375rem;
  vertical-align: middle;
  color: var(--text-2);
}
.app-info-table td:first-child {
  font-weight: 700;
  color: var(--text-1);
  width: 38%;
  border-right: 3px solid var(--green);
}
.app-info-table td a { color: var(--green); }

/* ─────────────────────────────────────────────────────────
   FAQ SECTION
   ───────────────────────────────────────────────────────── */
.faq-section {
  padding: var(--space-xl) 0;
  background: var(--bg-base);
}
.section-heading { text-align: center; margin-bottom: var(--space-lg); }
.section-heading h2 {
  font-size: clamp(1.625rem, 3vw, 2.25rem);
  font-weight: 800;
  color: var(--text-1);
  margin-bottom: .5rem;
}
.section-heading p { color: var(--text-3); font-size: 1rem; max-width: 560px; margin-inline: auto; line-height: 1.7; }

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-vis);
  border-radius: var(--r-md);
  overflow: hidden;
  margin-bottom: .75rem;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.faq-item:hover { border-color: rgba(34,197,94,.3); }
.faq-item[open] { border-color: rgba(34,197,94,.5); box-shadow: 0 4px 24px rgba(34,197,94,.08); }

.faq-item summary {
  padding: 1.25rem 1.5rem;
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--text-1);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  user-select: none;
  -webkit-user-select: none;
  transition: background .15s var(--ease);
}
.faq-item summary::-webkit-details-marker,
.faq-item summary::marker { display: none; }
.faq-item summary:hover { background: rgba(255,255,255,.03); }

.faq-icon {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--bg-elevated);
  color: var(--green);
  font-size: 1.375rem;
  font-weight: 300;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .3s var(--ease), background .2s var(--ease), color .2s var(--ease);
}
.faq-item[open] .faq-icon {
  transform: rotate(45deg);
  background: var(--green);
  color: var(--bg-base);
}

.faq-answer {
  padding: 0 1.5rem 1.375rem;
  color: var(--text-2);
  line-height: 1.85;
  font-size: .9688rem;
  border-top: 1px solid var(--border);
}
.faq-answer a { color: var(--green); }
.faq-answer strong { font-weight: 700; color: var(--text-1); }
.faq-answer ol { list-style: decimal; padding-right: 1.5rem; margin-top: .75rem; }
.faq-answer li { margin-bottom: .5rem; }

/* ─────────────────────────────────────────────────────────
   FINAL CTA BAND
   ───────────────────────────────────────────────────────── */
.cta-band {
  background: linear-gradient(135deg, #000000 0%, #0f172a 100%);
  padding: var(--space-xl) 0;
  text-align: center;
  border-top: 1px solid var(--border);
}
.cta-band h2 {
  color: var(--text-1);
  font-size: clamp(1.625rem, 3.5vw, 2.25rem);
  font-weight: 800;
  margin-bottom: .875rem;
}
.cta-band p {
  color: var(--text-3);
  font-size: 1.0625rem;
  max-width: 540px;
  margin: 0 auto var(--space-md);
  line-height: 1.75;
}

/* ─────────────────────────────────────────────────────────
   STICKY MOBILE DOWNLOAD BAR
   ───────────────────────────────────────────────────────── */
.sticky-dl-bar {
  display: none;
  position: fixed;
  bottom: 0;
  inset-inline: 0;
  z-index: 999;
  background: #000000;
  border-top: 1px solid var(--border-vis);
  padding: .875rem 1.25rem;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  box-shadow: 0 -4px 32px rgba(0,0,0,.6);
}
.sticky-dl-bar .dl-label  { color: var(--text-1); font-size: .9rem;  font-weight: 700; line-height: 1.3; }
.sticky-dl-bar .dl-sub    { color: var(--text-3); font-size: .75rem; display: block; margin-top: .125rem; }
.sticky-dl-bar .btn-download {
  padding: .625rem 1.375rem;
  font-size: .9375rem;
  border-radius: var(--r-sm);
  white-space: nowrap;
}

/* ─────────────────────────────────────────────────────────
   DOWNLOAD PAGE — countdown timer + reveal
   ───────────────────────────────────────────────────────── */
.page-download .page-hero {
  background: linear-gradient(135deg, #000000 0%, #0f172a 60%);
  padding: var(--space-lg) 0;
  border-bottom: 1px solid var(--border);
}
.page-download .mini-app-row {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}
.page-download .mini-app-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--r-md);
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 8px 28px rgba(0,0,0,.5);
}
.page-download .mini-app-icon-fallback {
  width: 64px;
  height: 64px;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, var(--green), var(--green-hover));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--bg-base);
  font-weight: 900;
}
.page-download .mini-app-name { color: var(--text-1); font-weight: 800; font-size: 1.25rem; }
.page-download .mini-app-sub  { color: var(--text-3); font-size: .875rem; margin-top: .25rem; }

/* ── WAIT STATE ── */
.countdown-wrap {
  text-align: center;
  padding: 3rem 0;
}
.countdown-label {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text-2);
  margin: 0 0 1.5rem;
}
.countdown-hint {
  font-size: .9rem;
  color: var(--text-3);
  margin: 1.5rem 0 0;
}

/* ── Ring: grid overlay (SVG + number in same cell) ── */
.countdown-ring {
  display: inline-grid;
  place-items: center;
  width: 160px;
  height: 160px;
}
.countdown-ring > * {
  grid-area: 1 / 1;
}
.countdown-ring svg {
  width: 160px;
  height: 160px;
  display: block;
}
.countdown-progress {
  fill: none;
  stroke: var(--green);
  stroke-width: 8;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.95s linear;
}
.countdown-num {
  font-size: 4rem;
  font-weight: 800;
  color: var(--text-1);
  line-height: 1;
  font-family: 'Cairo', sans-serif;
}

/* ── READY STATE ── */
@keyframes reveal-btn {
  from { opacity: 0; transform: translateY(20px) scale(.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Install steps on download page */
.install-steps { padding: var(--space-xl) 0; background: var(--bg-surface); }
.install-step {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: var(--space-sm);
  align-items: start;
  padding: 1.125rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  margin-bottom: .75rem;
  transition: border-color .2s var(--ease);
}
.install-step:hover { border-color: rgba(34,197,94,.25); }
.step-num {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green), var(--green-hover));
  color: var(--bg-base);
  font-weight: 800;
  font-size: 1.125rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px var(--btn-shadow);
}
.step-body h3 { font-size: 1rem; font-weight: 700; color: var(--text-1); margin-bottom: .25rem; }
.step-body p  { font-size: .9rem; color: var(--text-3); line-height: 1.65; }

/* Security assurance row */
.security-row {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.5rem;
  justify-content: center;
  margin-top: var(--space-md);
  padding: var(--space-sm);
  background: rgba(34,197,94,.06);
  border: 1px solid rgba(34,197,94,.15);
  border-radius: var(--r-md);
}
.security-item {
  display: flex;
  align-items: center;
  gap: .375rem;
  font-size: .875rem;
  font-weight: 700;
  color: var(--green);
}
.security-check { color: var(--green); font-size: 1rem; }

/* ─────────────────────────────────────────────────────────
   FOOTER
   ───────────────────────────────────────────────────────── */
.site-footer {
  background: #000000;
  border-top: 1px solid var(--border);
  padding: var(--space-xl) 0 var(--space-lg);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-lg);
}
.footer-brand .site-logo { font-size: 1rem; }
.footer-brand p { color: var(--text-3); font-size: .875rem; line-height: 1.75; max-width: 320px; margin-top: var(--space-sm); }
.footer-col h3 { color: var(--text-1); font-size: .875rem; font-weight: 700; margin-bottom: var(--space-sm); }
.footer-col ul { display: flex; flex-direction: column; gap: .5rem; }
.footer-col a { color: var(--text-3); font-size: .875rem; transition: color .15s var(--ease); }
.footer-col a:hover { color: var(--text-2); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: var(--space-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .75rem;
}
.footer-bottom p { color: var(--text-3); font-size: .8125rem; }
.footer-bottom a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }

/* ─────────────────────────────────────────────────────────
   RESPONSIVE
   ───────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .sticky-dl-bar { display: flex; }
  body { padding-bottom: 5rem; }
  .nav-toggle-btn { display: flex; }
  .nav-list {
    display: none;
    position: absolute;
    top: 100%;
    inset-inline: 0;
    background: #000000;
    flex-direction: column;
    padding: var(--space-sm) 1.25rem var(--space-md);
    border-top: 1px solid var(--border-vis);
    box-shadow: 0 16px 40px rgba(0,0,0,.5);
  }
  .nav-toggle-checkbox:checked ~ .site-header .nav-list { display: flex; }
  .nav-toggle-checkbox:checked ~ .site-header .nav-toggle-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle-checkbox:checked ~ .site-header .nav-toggle-btn span:nth-child(2) { opacity: 0; }
  .nav-toggle-checkbox:checked ~ .site-header .nav-toggle-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav-list li a { padding: .625rem .75rem; font-size: .9375rem; }

  .hero-inner { grid-template-columns: 1fr; text-align: center; gap: var(--space-md); }
  .app-icon-wrap, .app-icon-fallback { margin-inline: auto; }
  .rating-row, .meta-badges, .hero-actions { justify-content: center; }
  .hero-section { padding: var(--space-lg) 0 calc(var(--space-lg) + .5rem); }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-md); }
  .footer-brand { grid-column: 1 / -1; }

  .install-step { grid-template-columns: 2.5rem 1fr; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .app-icon, .app-icon-wrap img { width: 96px; height: 96px; border-radius: var(--r-lg); }
  .app-info-table td { padding: .75rem 1rem; font-size: .875rem; }
  .faq-item summary { font-size: 1rem; }
  .countdown-num { font-size: 3.5rem; }
}

/* ─────────────────────────────────────────────────────────
   ACCESSIBILITY
   ───────────────────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}
.screen-reader-text {
  position: absolute;
  clip: rect(1px,1px,1px,1px);
  clip-path: inset(50%);
  height: 1px; width: 1px;
  margin: -1px; overflow: hidden; padding: 0;
  white-space: nowrap;
}

/* Skip to content link */
.skip-to-content {
  position: absolute;
  top: -100%;
  right: var(--space-sm);
  background: var(--green);
  color: var(--bg-base);
  font-weight: 700;
  padding: .5rem 1rem;
  border-radius: 0 0 var(--r-sm) var(--r-sm);
  z-index: 9999;
  transition: top .2s var(--ease);
}
.skip-to-content:focus { top: 0; }

@media print {
  .site-header, .sticky-dl-bar, .cta-band { display: none !important; }
  body { background: #fff; color: #000; }
}

/* ─────────────────────────────────────────────────────────
   DOWNLOAD PAGE
   ───────────────────────────────────────────────────────── */
.download-page-section {
  padding: var(--space-xl) 0 var(--space-2xl);
}

/* App mini-header (icon + name + sub-line) */
.dl-app-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: var(--space-xl);
  padding: var(--space-md);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}
.dl-app-icon {
  width: 72px;
  height: 72px;
  border-radius: var(--r-md);
  flex-shrink: 0;
  object-fit: cover;
}
.dl-app-name {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--text-1);
  margin: 0 0 .25rem;
  line-height: 1.3;
}
.dl-app-sub {
  font-size: .875rem;
  color: var(--text-3);
  margin: 0;
}

/* Ready state */
.dl-ready-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--space-xl) 0;
  gap: 1rem;
}
.dl-ready-icon { line-height: 1; }
.dl-ready-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-1);
  margin: 0;
}
.dl-ready-sub {
  color: var(--text-3);
  font-size: .9375rem;
  margin: 0;
}
.dl-main-btn {
  font-size: 1.125rem;
  padding: 1rem 2.25rem;
  animation: reveal-btn .5s var(--ease) both;
}

/* Install steps */
.install-steps-wrap {
  margin-top: var(--space-2xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--border);
}
.install-steps-wrap .section-label {
  margin-bottom: var(--space-lg);
}

/* ─────────────────────────────────────────────────────────
   BLOG / INDEX TEMPLATE
   ───────────────────────────────────────────────────────── */
.posts-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}
.post-card {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: var(--space-md);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color .2s var(--ease);
}
.post-card:hover {
  border-color: var(--green);
}
.post-card-thumb {
  width: 140px;
  height: 100%;
  object-fit: cover;
  display: block;
}
.post-card-body {
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.post-card-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.4;
}
.post-card-title a {
  color: var(--text-1);
  text-decoration: none;
}
.post-card-title a:hover { color: var(--green); }
.post-card-meta {
  font-size: .8125rem;
  color: var(--text-3);
}
.post-card-excerpt {
  font-size: .9375rem;
  color: var(--text-2);
  flex: 1;
}
.post-card-more {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  color: var(--green);
  font-size: .875rem;
  font-weight: 600;
  text-decoration: none;
}
.post-card-more:hover { color: var(--green-hover); }

.posts-pagination {
  margin-top: var(--space-xl);
  display: flex;
  justify-content: center;
}
.posts-pagination .nav-links {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  justify-content: center;
}
.posts-pagination a,
.posts-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 .75rem;
  border-radius: var(--r-sm);
  font-size: .9375rem;
  font-weight: 600;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--text-2);
  text-decoration: none;
  transition: background .2s, color .2s;
}
.posts-pagination a:hover,
.posts-pagination .current {
  background: var(--green);
  color: var(--bg-base);
  border-color: var(--green);
}

/* Responsive adjustments */
@media (max-width: 600px) {
  .dl-app-header { flex-direction: column; text-align: center; }
  .post-card { grid-template-columns: 1fr; }
  .post-card-thumb { width: 100%; height: 180px; }
}

/* ─────────────────────────────────────────────────────────
   SCREENSHOTS SECTION
   ───────────────────────────────────────────────────────── */
.screenshots-section {
  padding: var(--space-xl) 0;
  overflow: hidden;
}
.screenshots-section .section-heading {
  margin-bottom: var(--space-lg);
  text-align: center;
}
.screenshots-section .section-heading h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-1);
  margin: 0 0 .4rem;
}
.screenshots-section .section-heading p {
  color: var(--text-3);
  font-size: .9375rem;
  margin: 0;
}

/* Horizontal strip — no scrollbar */
.screenshots-strip {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 1rem .25rem 2.5rem;
  scrollbar-width: none;
}
.screenshots-strip::-webkit-scrollbar { display: none; }

/* Phone-frame card */
.screenshot-item {
  flex: 0 0 auto;
  scroll-snap-align: center;
  position: relative;
  width: 190px;
  background: #0d0d14;
  border-radius: 36px;
  border: 1.5px solid rgba(255,255,255,0.10);
  padding: 12px 10px 10px;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.04),
    0 20px 50px rgba(0,0,0,0.55),
    inset 0 1px 0 rgba(255,255,255,0.07);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}

/* Pill notch */
.screenshot-item::before {
  content: '';
  display: block;
  width: 52px;
  height: 5px;
  background: rgba(255,255,255,0.13);
  border-radius: 3px;
  margin: 0 auto 10px;
}

/* Home bar */
.screenshot-item::after {
  content: '';
  display: block;
  width: 44px;
  height: 4px;
  background: rgba(255,255,255,0.15);
  border-radius: 2px;
  margin: 10px auto 0;
}

.screenshot-item:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow:
    0 0 0 1.5px rgba(34,197,94,0.35),
    0 32px 70px rgba(0,0,0,0.65),
    0 0 30px rgba(34,197,94,0.08),
    inset 0 1px 0 rgba(255,255,255,0.07);
}

.screenshot-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 22px;
  object-fit: cover;
}

/* Numbered badge */
.screenshot-badge {
  position: absolute;
  top: -8px;
  inset-inline-end: -8px;
  width: 26px;
  height: 26px;
  background: var(--green);
  color: var(--bg-base);
  border: 2px solid var(--bg-base);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 800;
  font-family: 'Cairo', sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(34,197,94,0.45);
  line-height: 1;
}

/* Swipe hint */
.screenshots-scroll-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .375rem;
  font-size: .8125rem;
  color: var(--text-3);
  margin-top: .25rem;
  letter-spacing: .02em;
}

@media (max-width: 480px) {
  .screenshot-item { width: 155px; border-radius: 30px; }
  .screenshot-img  { border-radius: 18px; }
  .screenshot-item::before { width: 44px; }
  .screenshot-item::after  { width: 36px; }
}
