/* Min Galha? landing pages: /mingalha/ (Arabic) and /mingalha/en/ (English). The privacy and
   support pages keep site.css; this sheet stands alone. No web fonts, no scripts, nothing loaded
   from elsewhere (the Worker's CSP allows only same-origin styles and images). Logical properties
   throughout, so one sheet serves right to left and left to right. Colours match the app's
   AccentColor (#B33A0E light, #F59E5B dark) and site.css. */

:root {
  --bg: #fbf8f4;
  --surface: #ffffff;
  --text: #1f1a17;
  --muted: #5d544e;
  --line: #e6ded6;
  --accent: #b33a0e;
  --accent-soft: #fbe9df;
  --on-accent: #ffffff;
  --shadow: 0 6px 18px rgb(64 24 8 / 0.18);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161311;
    --surface: #211d1a;
    --text: #f3ede8;
    --muted: #b8aea6;
    --line: #3a332e;
    --accent: #f59e5b;
    --accent-soft: #3a2517;
    --on-accent: #1f1a17;
    --shadow: 0 6px 18px rgb(0 0 0 / 0.5);
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}

html[lang="ar"] body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Arabic", "Geeza Pro", "Noto Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  line-height: 1.8;
}

/* The app's rounded type for headings, where the system has it. */
h1, h2, h3, .tagline, .cta-badge {
  font-family: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3,
html[lang="ar"] .tagline,
html[lang="ar"] .cta-badge {
  font-family: ui-rounded, "SF Arabic Rounded", -apple-system, BlinkMacSystemFont, "SF Arabic", "Geeza Pro", "Noto Sans Arabic", "Segoe UI", Tahoma, sans-serif;
}

a { color: var(--accent); overflow-wrap: anywhere; }

a:focus-visible,
summary:focus-visible,
.shots:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 8px;
}

.wrap {
  max-width: 44rem;
  margin-inline: auto;
  padding-inline: 16px;
}

/* Top bar: the studio on the start side, the other language on the end side. */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-block: 16px;
}

.studio {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
}

.lang {
  font-size: 0.9375rem;
  color: var(--accent);
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 14px;
  background: var(--surface);
}

/* Hero */
.hero {
  text-align: center;
  padding-block: 16px 8px;
}

.hero-icon {
  display: block;
  width: 96px;
  height: 96px;
  margin: 0 auto 16px;
  border-radius: 22.37%;
  box-shadow: var(--shadow);
}

.alt-name {
  margin: 0;
  color: var(--muted);
  font-weight: 600;
  font-size: 1rem;
}

h1 {
  font-size: clamp(2.25rem, 10vw, 3.25rem);
  line-height: 1.2;
  margin: 0;
}

.tagline {
  margin: 4px 0 12px;
  color: var(--accent);
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.4;
}

.pitch {
  max-width: 32rem;
  margin: 0 auto;
  font-size: 1.125rem;
}

/* The App Store call to action: one block per page, swapped for the real link at launch. */
.cta {
  margin-block: 20px 16px;
}

.cta-badge {
  display: inline-block;
  padding: 10px 22px;
  border: 2px dashed var(--accent);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  font-size: 1.0625rem;
}

.cta-note {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.9375rem;
}

.facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.facts li {
  padding: 4px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.9375rem;
  font-weight: 600;
}

/* Sections */
section { margin-block: 44px; }

h2 {
  font-size: 1.5rem;
  line-height: 1.3;
  margin: 0 0 14px;
}

h3 {
  font-size: 1.125rem;
  line-height: 1.4;
  margin: 0 0 4px;
}

/* How a round works: numbered cards. */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
  display: grid;
  gap: 12px;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding: 16px;
  padding-inline-start: 64px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.steps li::before {
  content: counter(step);
  position: absolute;
  inset-inline-start: 16px;
  top: 16px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
  line-height: 1;
}

.steps p { margin: 0; }

.score {
  margin: 12px 0 0;
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--accent-soft);
  font-weight: 600;
}

/* Screenshot strip: scrolls sideways inside itself, edge to edge on a phone. */
.shots {
  margin-inline: -16px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 16px;
  -webkit-overflow-scrolling: touch;
}

.shots ul {
  list-style: none;
  margin: 0;
  padding: 4px 16px 12px;
  display: flex;
  gap: 14px;
  width: max-content;
}

.shots li {
  width: min(58vw, 220px);
  scroll-snap-align: start;
}

.shots figure { margin: 0; }

.shots img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
}

.shots figcaption {
  margin-top: 8px;
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.45;
}

.shots figcaption small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-weight: 400;
  font-size: 0.8125rem;
}

.hint {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.875rem;
}

/* Free, Unlock everything, Gathering Pass */
.plans {
  display: grid;
  gap: 12px;
}

.plan {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.plan.free { border: 2px solid var(--accent); }

.plan p { margin: 0; }

.tag {
  display: inline-block;
  margin-bottom: 6px;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 700;
}

.plans-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.9375rem;
}

@media (min-width: 640px) {
  .plans { grid-template-columns: repeat(3, 1fr); }
}

/* FAQ: native disclosure, no script. */
.faq details { border-bottom: 1px solid var(--line); }

.faq details:first-of-type { border-top: 1px solid var(--line); }

.faq summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-block: 14px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

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

/* A down chevron: symmetric, so physical borders are right in both directions. */
.faq summary::after {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  margin-inline-start: auto;
  margin-inline-end: 4px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.2s ease;
}

.faq details[open] summary::after { transform: translateY(2px) rotate(-135deg); }

.faq details p { margin: 0 0 14px; }

@media (prefers-reduced-motion: reduce) {
  .faq summary::after { transition: none; }
}

/* Footer */
footer {
  margin-top: 48px;
  padding-block: 20px 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9375rem;
}

.footer-links {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

footer p { margin: 6px 0; }

.tm { font-size: 0.8125rem; }
