/* ==========================================================================
   Dimagh Studio (dimaghstudio.com) — Editorial RTL Design System
   Font: Readex Pro (Arabic & Latin)
   Base Grid: 8px increments (8, 16, 24, 32, 40, 48, 64, 80, 96, 128)
   ========================================================================== */

@font-face {
  font-family: 'Readex Pro';
  src: url('/fonts/ReadexPro-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Readex Pro';
  src: url('/fonts/ReadexPro-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Readex Pro';
  src: url('/fonts/ReadexPro-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Readex Pro';
  src: url('/fonts/ReadexPro-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #07060F;
  --surface-1: #16123A;
  --surface-2: #211C52;
  --surface-well: #0E0B26;
  --border-subtle: #1F1A4D;
  --border: #2E2870;
  --border-strong: #3B3488;

  --accent-orange: #FF7A3D;
  --accent-amber: #FFB547;
  --danger-bg: #D92D42;
  --danger-border: #FF4D5E;
  --danger-text: #FF8A96;

  --text-primary: #FFFFFF;
  --text-body: #CFCAF0;
  --text-muted: #9690B8;
  --text-ink: #07060F;

  /* League colors matching app state.dart */
  --tier-bronze: #CD7F4E;
  --tier-silver: #C9D1E0;
  --tier-gold: #F5B400;
  --tier-platinum: #6FE0C0;
  --tier-ruby: #FF4D6D;
  --tier-diamond: #7FE3FF;

  /* 8px spacing scale */
  --s-1: 8px;
  --s-2: 16px;
  --s-3: 24px;
  --s-4: 32px;
  --s-5: 40px;
  --s-6: 48px;
  --s-8: 64px;
  --s-10: 80px;
  --s-12: 96px;
  --s-16: 128px;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
}

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

html {
  background-color: var(--bg);
  color: var(--text-body);
  font-family: 'Readex Pro', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--text-body);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3, h4, p, ul, ol {
  margin: 0;
}

.ltr {
  direction: ltr;
  unicode-bidi: isolate;
}

.en-sub {
  display: block;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-muted);
  direction: ltr;
  text-align: right;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--s-4);
}

/* ---------- Navigation ---------- */
.site-header {
  background-color: var(--bg);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-inner {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
}

.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  object-fit: cover;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.brand-ar {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

.brand-en {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--text-muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-body);
  transition: color 0.15s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
}

.nav-link.active {
  color: var(--accent-amber);
}

.nav-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--s-1);
  height: 40px;
  padding: 0 var(--s-2);
  background-color: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
}

.nav-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-orange);
  flex-shrink: 0;
}

/* ---------- Buttons ---------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  height: 56px;
  padding: 0 var(--s-4);
  background-color: var(--accent-orange);
  color: var(--text-ink);
  border-radius: var(--radius-md);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  border: 1px solid var(--accent-orange);
  cursor: pointer;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-1);
  height: 56px;
  padding: 0 var(--s-3);
  background-color: var(--surface-1);
  color: var(--text-body);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
}

/* ---------- Realistic Android Phone Frame ---------- */
.android-device {
  position: relative;
  display: inline-block;
  width: 312px;
  padding: 16px 8px 12px;
  background-color: #1A172B;
  border: 1px solid #353059;
  border-radius: 32px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.10),
    inset 0 -1px 0 rgba(0, 0, 0, 0.65),
    0 24px 48px rgba(0, 0, 0, 0.72);
}

/* Hardware side buttons (right edge for modern Android) */
.android-device::before {
  content: '';
  position: absolute;
  top: 96px;
  right: -4px;
  width: 3px;
  height: 32px;
  background-color: #2E294D;
  border-radius: 0 2px 2px 0;
}

.android-device::after {
  content: '';
  position: absolute;
  top: 144px;
  right: -4px;
  width: 3px;
  height: 56px;
  background-color: #2E294D;
  border-radius: 0 2px 2px 0;
}

.device-top-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 8px;
  margin-bottom: 8px;
}

.device-speaker {
  width: 36px;
  height: 3px;
  border-radius: 2px;
  background-color: #0B0A14;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.device-camera {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #07060F;
  border: 1px solid #2C2747;
}

.device-screen {
  width: 100%;
  aspect-ratio: 1080 / 2340;
  border-radius: 20px;
  overflow: hidden;
  background-color: var(--surface-1);
  border: 1px solid #090812;
}

.device-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.device-chin {
  width: 64px;
  height: 3px;
  border-radius: 2px;
  background-color: #2C2747;
  margin: 8px auto 0;
}

/* Compact phone frame for 4-screen showcase */
.android-device.device-sm {
  width: 224px;
  padding: 12px 6px 8px;
  border-radius: 24px;
}

.android-device.device-sm::before {
  top: 72px;
  height: 24px;
}

.android-device.device-sm::after {
  top: 108px;
  height: 40px;
}

.android-device.device-sm .device-top-bar {
  height: 6px;
  margin-bottom: 6px;
}

.android-device.device-sm .device-speaker {
  width: 28px;
  height: 2px;
}

.android-device.device-sm .device-camera {
  width: 5px;
  height: 5px;
}

.android-device.device-sm .device-screen {
  border-radius: 16px;
}

.android-device.device-sm .device-chin {
  width: 48px;
  height: 2px;
  margin-top: 6px;
}

/* ---------- Hero Section ---------- */
.hero-section {
  padding-top: var(--s-10);
  padding-bottom: var(--s-12);
  border-bottom: 1px solid var(--border-subtle);
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--s-4);
  align-items: center;
}

.hero-copy {
  grid-column: span 6;
  padding-left: var(--s-4);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-1);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--accent-amber);
  margin-bottom: var(--s-3);
}

.hero-title {
  font-size: 56px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin-bottom: var(--s-2);
}

.hero-en-sub {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--text-muted);
  margin-bottom: var(--s-3);
  direction: ltr;
  text-align: right;
}

.hero-lead {
  font-size: 20px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-body);
  max-width: 560px;
  margin-bottom: var(--s-4);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-2);
  margin-bottom: var(--s-6);
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-3);
  padding-top: var(--s-3);
  border-top: 1px solid var(--border-subtle);
}

.fact-value {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.fact-label {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-muted);
}

.hero-visual {
  grid-column: span 6;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-stage {
  position: relative;
  display: flex;
  justify-content: flex-end;
  width: 100%;
  padding-block: var(--s-3);
}

/* Architectural backdrop slab (no glow/blur) */
.hero-plinth {
  position: absolute;
  top: var(--s-5);
  left: 0;
  width: 320px;
  height: 536px;
  background-color: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  z-index: 0;
}

.hero-stage .android-device {
  position: relative;
  z-index: 1;
  margin-inline-end: 0;
  margin-inline-start: auto;
  transform: translateX(16px);
}

.hero-callout {
  position: absolute;
  bottom: var(--s-6);
  right: 0;
  z-index: 2;
  background-color: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: var(--s-2) var(--s-3);
  width: 216px;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.55);
}

.callout-top {
  display: flex;
  align-items: center;
  gap: var(--s-1);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.callout-sub {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-body);
}

/* ---------- Section Header Pattern ---------- */
.section-block {
  padding-top: var(--s-12);
  padding-bottom: var(--s-12);
  border-bottom: 1px solid var(--border-subtle);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--s-4);
  margin-bottom: var(--s-8);
}

.section-title {
  font-size: 40px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-primary);
  margin-bottom: var(--s-1);
}

.section-lead {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-body);
  max-width: 520px;
}

/* ---------- App Showcase (4 Real Screens) ---------- */
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-3);
  align-items: start;
}

.showcase-item {
  background-color: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--s-3) var(--s-2);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.showcase-item.offset-down {
  margin-top: var(--s-4);
}

.showcase-caption {
  margin-top: var(--s-3);
  width: 100%;
  padding-inline: var(--s-1);
}

.showcase-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.showcase-en {
  font-size: 12px;
  font-weight: 500;
  color: var(--accent-amber);
  margin-bottom: var(--s-1);
}

.showcase-desc {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-body);
}

/* ---------- Features Asymmetric Grid ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--s-3);
}

.feature-card {
  background-color: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--s-4);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--s-3);
}

.feature-card.elevated {
  background-color: var(--surface-2);
  border-color: var(--border-strong);
}

.col-7 { grid-column: span 7; }
.col-5 { grid-column: span 5; }
.col-4 { grid-column: span 4; }
.col-12 { grid-column: span 12; }

.feature-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-2);
  margin-bottom: var(--s-2);
}

.feature-num {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-amber);
  letter-spacing: 0.04em;
}

.feature-en-tag {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
}

.feature-title {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-primary);
  margin-bottom: var(--s-2);
}

.feature-body {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  color: var(--text-body);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-1);
}

.spec-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 var(--s-2);
  background-color: var(--surface-well);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-body);
}

.streak-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--s-1);
  height: 40px;
  padding: 0 var(--s-2);
  background-color: var(--surface-well);
  border: 1px solid var(--accent-orange);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}

.privacy-bar {
  grid-column: span 12;
  background-color: var(--surface-1);
  border: 1px solid var(--border);
  border-right: 4px solid var(--accent-amber);
  border-radius: var(--radius-md);
  padding: var(--s-3) var(--s-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
}

.privacy-bar-ar {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

.privacy-bar-en {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-muted);
  white-space: nowrap;
}

/* ---------- Weekly League Section ---------- */
.league-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--s-6);
  align-items: center;
}

.league-copy {
  grid-column: span 7;
}

.league-visual {
  grid-column: span 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-3);
}

.league-steps {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  margin-top: var(--s-4);
  margin-bottom: var(--s-4);
}

.league-step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: var(--s-2);
  align-items: start;
  padding: var(--s-3);
  background-color: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.step-badge {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background-color: var(--surface-2);
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  color: var(--accent-amber);
}

.step-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.step-desc {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-body);
}

.tiers-strip {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-1);
}

.tier-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 12px;
  background-color: var(--surface-well);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-body);
}

.tier-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.league-note-pill {
  background-color: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: var(--s-1) var(--s-2);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-body);
}

/* ---------- Coming Soon CTA ---------- */
.cta-section {
  padding-top: var(--s-12);
  padding-bottom: var(--s-12);
}

.cta-box {
  background-color: var(--surface-1);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: var(--s-8);
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--s-4);
  align-items: center;
}

.cta-content {
  grid-column: span 8;
}

.cta-aside {
  grid-column: span 4;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--s-2);
}

.cta-logo-row {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  margin-bottom: var(--s-3);
}

.cta-logo {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
}

.cta-title {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-primary);
  margin-bottom: var(--s-2);
}

.cta-desc {
  font-size: 17px;
  font-weight: 400;
  line-height: 1.75;
  color: var(--text-body);
  max-width: 580px;
}

.cta-footnote {
  margin-top: var(--s-2);
  font-size: 13px;
  color: var(--text-muted);
}

/* ---------- Privacy Policy Page ---------- */
.doc-section {
  padding-top: var(--s-8);
  padding-bottom: var(--s-12);
}

.doc-header {
  max-width: 780px;
  margin-bottom: var(--s-5);
}

.doc-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--s-6);
  align-items: start;
}

.doc-toc {
  grid-column: span 4;
  background-color: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--s-3);
}

.toc-heading {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-amber);
  margin-bottom: var(--s-2);
}

.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--s-1);
}

.toc-link {
  display: block;
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-body);
}

.toc-link:hover {
  background-color: var(--surface-2);
  color: var(--text-primary);
}

.doc-article {
  grid-column: span 8;
  max-width: 720px;
}

.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: var(--s-1);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: var(--s-2);
}

.doc-title {
  font-size: 40px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-primary);
  margin-bottom: var(--s-2);
}

.doc-meta {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 0;
}

.doc-summary {
  background-color: var(--surface-1);
  border: 1px solid var(--border);
  border-right: 4px solid var(--accent-orange);
  border-radius: var(--radius-md);
  padding: var(--s-3);
  margin-bottom: var(--s-6);
}

.doc-summary p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-primary);
}

.policy-block {
  padding-bottom: var(--s-4);
  margin-bottom: var(--s-4);
  border-bottom: 1px solid var(--border-subtle);
}

.policy-block:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.policy-h2 {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.policy-en {
  font-size: 13px;
  font-weight: 500;
  color: var(--accent-amber);
  margin-bottom: var(--s-2);
  direction: ltr;
  text-align: right;
}

.policy-p {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.85;
  color: var(--text-body);
  margin-bottom: var(--s-2);
}

.policy-list {
  padding-inline-start: var(--s-3);
  margin: var(--s-2) 0;
  display: flex;
  flex-direction: column;
  gap: var(--s-1);
}

.policy-list li {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-body);
}

.policy-list strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* ---------- Delete Account Page ---------- */
.delete-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: var(--s-10);
  padding-bottom: var(--s-12);
}

.delete-card {
  width: 100%;
  max-width: 520px;
  margin-inline: auto;
  background-color: var(--surface-1);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: var(--s-5);
}

.delete-kicker {
  display: inline-flex;
  align-items: center;
  gap: var(--s-1);
  padding: 4px 12px;
  background-color: rgba(217, 45, 66, 0.14);
  border: 1px solid rgba(255, 77, 94, 0.35);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  color: var(--danger-text);
  margin-bottom: var(--s-3);
}

.delete-title {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.delete-en-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: var(--s-3);
}

.delete-lead {
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-body);
  margin-bottom: var(--s-3);
}

.delete-facts {
  list-style: none;
  padding: var(--s-2) var(--s-3);
  margin: 0 0 var(--s-4);
  background-color: var(--surface-well);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: var(--s-1);
}

.delete-facts li {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-body);
  position: relative;
  padding-inline-start: 16px;
}

.delete-facts li::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--danger-border);
}

.form-field {
  margin-bottom: var(--s-3);
}

.field-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--s-1);
}

.field-label span.en {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-muted);
}

.code-input {
  width: 100%;
  height: 56px;
  padding: 0 var(--s-2);
  background-color: var(--surface-well);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  font-family: 'Readex Pro', monospace;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-align: center;
  color: var(--text-primary);
  direction: ltr;
  outline: none;
}

.code-input::placeholder {
  color: #5D568A;
  letter-spacing: 0.12em;
}

.code-input:focus {
  border-color: var(--accent-orange);
}

.field-help {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: var(--s-1);
}

.btn-danger {
  width: 100%;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-1);
  background-color: var(--danger-bg);
  border: 1px solid var(--danger-border);
  border-radius: var(--radius-md);
  font-family: 'Readex Pro', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  cursor: pointer;
}

.delete-help {
  margin-top: var(--s-3);
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}

.delete-help a {
  color: var(--accent-amber);
}

/* ---------- Footer ---------- */
.site-footer {
  margin-top: auto;
  background-color: var(--bg);
  border-top: 1px solid var(--border-subtle);
  padding-top: var(--s-8);
  padding-bottom: var(--s-8);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--s-4);
  align-items: start;
}

.footer-brand {
  grid-column: span 5;
}

.footer-bio {
  margin-top: var(--s-2);
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-body);
  max-width: 360px;
}

.footer-en-bio {
  margin-top: var(--s-1);
  font-size: 13px;
  color: var(--text-muted);
}

.footer-col {
  grid-column: span 3;
}

.footer-contact {
  grid-column: span 4;
}

.footer-heading {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--s-2);
}

.footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--s-1);
}

.footer-link {
  font-size: 14px;
  color: var(--text-body);
}

.footer-link:hover {
  color: var(--accent-amber);
}

.footer-email {
  display: inline-block;
  margin-top: var(--s-1);
  font-size: 15px;
  font-weight: 600;
  color: var(--accent-amber);
}

.footer-copy {
  margin-top: var(--s-6);
  padding-top: var(--s-3);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-muted);
}

/* ==========================================================================
   Mobile Layout (<= 768px, verified at 390px)
   ========================================================================== */
@media (max-width: 768px) {
  .container {
    padding-inline: var(--s-3);
  }

  .nav-inner {
    height: 64px;
    gap: var(--s-2);
  }

  .brand-logo {
    width: 32px;
    height: 32px;
  }

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

  .brand-en {
    font-size: 11px;
  }

  .nav-links {
    display: none;
  }

  .nav-pill {
    height: 32px;
    padding: 0 12px;
    font-size: 12px;
  }

  .hero-section {
    padding-top: var(--s-4);
    padding-bottom: var(--s-8);
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: var(--s-4);
  }

  .hero-copy {
    grid-column: span 1;
    padding-left: 0;
  }

  .hero-title {
    font-size: 32px;
    line-height: 1.25;
  }

  .hero-en-sub {
    font-size: 13px;
  }

  .hero-lead {
    font-size: 16px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    margin-bottom: var(--s-4);
  }

  .hero-facts {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--s-2);
  }

  .fact-value {
    font-size: 16px;
  }

  .fact-label {
    font-size: 12px;
  }

  .hero-visual {
    grid-column: span 1;
  }

  .hero-plinth {
    display: none;
  }

  .hero-stage {
    padding: 0;
    flex-direction: column;
    align-items: center;
    gap: var(--s-2);
  }

  .hero-stage .android-device {
    margin-inline-end: 0;
    margin-inline-start: 0;
    transform: none;
  }

  .android-device {
    width: 264px;
  }

  .hero-callout {
    position: static;
    width: 100%;
    max-width: 280px;
    box-shadow: none;
  }

  .section-block {
    padding-top: var(--s-8);
    padding-bottom: var(--s-8);
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--s-2);
    margin-bottom: var(--s-4);
  }

  .section-title {
    font-size: 28px;
  }

  .section-lead {
    font-size: 16px;
  }

  /* 2x2 clean grid on mobile 390px so all 4 real screens stay visible */
  .showcase-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--s-2);
  }

  .showcase-item {
    padding: var(--s-2) var(--s-1);
    border-radius: var(--radius-md);
  }

  .showcase-item.offset-down {
    margin-top: 0;
  }

  .android-device.device-sm {
    width: 136px;
    padding: 8px 4px 6px;
    border-radius: 18px;
  }

  .android-device.device-sm .device-screen {
    border-radius: 12px;
  }

  .showcase-title {
    font-size: 14px;
  }

  .showcase-en {
    font-size: 11px;
  }

  .showcase-desc {
    font-size: 12px;
    line-height: 1.5;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: var(--s-2);
  }

  .col-7, .col-5, .col-4, .col-12 {
    grid-column: span 1;
  }

  .feature-card {
    padding: var(--s-3);
    border-radius: var(--radius-md);
  }

  .feature-title {
    font-size: 20px;
  }

  .feature-body {
    font-size: 15px;
  }

  .privacy-bar {
    grid-column: span 1;
    flex-direction: column;
    align-items: flex-start;
    padding: var(--s-3);
    gap: var(--s-1);
  }

  .privacy-bar-en {
    white-space: normal;
  }

  .league-grid {
    grid-template-columns: 1fr;
    gap: var(--s-4);
  }

  .league-copy,
  .league-visual {
    grid-column: span 1;
  }

  .league-step {
    padding: var(--s-2);
  }

  .cta-section {
    padding-top: var(--s-8);
    padding-bottom: var(--s-8);
  }

  .cta-box {
    grid-template-columns: 1fr;
    padding: var(--s-4) var(--s-3);
    gap: var(--s-3);
  }

  .cta-content,
  .cta-aside {
    grid-column: span 1;
    align-items: stretch;
  }

  .cta-title {
    font-size: 26px;
  }

  .doc-section {
    padding-top: var(--s-5);
    padding-bottom: var(--s-8);
  }

  .doc-grid {
    grid-template-columns: 1fr;
    gap: var(--s-4);
  }

  .doc-toc,
  .doc-article {
    grid-column: span 1;
  }

  .doc-title {
    font-size: 28px;
  }

  .policy-h2 {
    font-size: 20px;
  }

  .delete-main {
    padding-top: var(--s-6);
    padding-bottom: var(--s-8);
  }

  .delete-card {
    padding: var(--s-3);
  }

  .delete-title {
    font-size: 26px;
  }

  .site-footer {
    padding-top: var(--s-6);
    padding-bottom: var(--s-6);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--s-4);
  }

  .footer-brand,
  .footer-col,
  .footer-contact {
    grid-column: span 1;
  }

  .footer-copy {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--s-1);
    margin-top: var(--s-4);
  }
}
