:root {
  --accent: #7C3AED;
  --bg: #fafafa;
  --fg: #1a1a1a;
  --muted: #666;
  --border: #e5e5e5;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f0f10;
    --fg: #f5f5f5;
    --muted: #a0a0a0;
    --border: #2a2a2c;
  }
}

* { box-sizing: border-box; }

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
  margin: 0;
  padding: 4rem 1.5rem;
}

main {
  max-width: 640px;
  margin: 0 auto;
}

h1 {
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 2.5rem 0 0.75rem;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1rem; }

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover { text-decoration: underline; }

ul {
  padding-left: 1.25rem;
  margin: 0 0 1rem;
}

li { margin-bottom: 0.4rem; }

.tagline {
  color: var(--muted);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.icon {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  display: block;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.hero {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 0 2rem;
}

.muted { color: var(--muted); font-size: 0.9rem; }

footer {
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--muted);
}

footer a { margin-right: 1.25rem; }

/* --- i18n + paid-mode additions --- */

/* FAQ question headings (support page) */
h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 1.5rem 0 0.5rem;
}

/* RTL languages (ar) */
[dir="rtl"] body { direction: rtl; }
[dir="rtl"] ul { padding-left: 0; padding-right: 1.25rem; }
[dir="rtl"] footer a { margin-right: 0; margin-left: 1.25rem; }

/* Top bar (back link + language switch on inner pages) */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}
.topbar a { font-size: 0.95rem; }

/* Language switcher */
.lang-switch { font-size: 0.9rem; }

/* On the home page the switch floats top-right of the content column */
main > .lang-switch {
  float: right;
  margin: 0 0 0.5rem 1rem;
}
[dir="rtl"] main > .lang-switch { float: left; margin: 0 1rem 0.5rem 0; }

.lang-switch select {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.35rem 1.75rem 0.35rem 0.85rem;
  font: inherit;
  font-size: 0.9rem;
  line-height: 1.2;
  cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><path d='M2 4l4 4 4-4' fill='none' stroke='%23888' stroke-width='1.5'/></svg>");
  background-repeat: no-repeat;
  background-position: right 0.65rem center;
}
[dir="rtl"] .lang-switch select {
  padding: 0.35rem 0.85rem 0.35rem 1.75rem;
  background-position: left 0.65rem center;
}
.lang-switch select:hover { border-color: var(--accent); }
.lang-switch select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.lang-switch option { color: #1a1a1a; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* App Store download badge */
.appstore-badge {
  height: 48px;
  width: auto;
  margin-top: 0.5rem;
}

/* --- Screenshots carousel (full-bleed) --- */
.screens-section {
  margin: 3rem 0 1rem;
  overflow: hidden;
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}
.screens-strip {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 30px calc(50vw - 120px);
  scroll-padding-left: calc(50vw - 120px);
}
.screens-strip::-webkit-scrollbar { display: none; }
.screen-frame {
  flex: 0 0 auto;
  width: 220px;
  aspect-ratio: 600 / 1298;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18), 0 2px 6px rgba(0, 0, 0, 0.08);
  scroll-snap-align: center;
  background: #000;
  transition: transform 0.3s ease;
}
.screen-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@media (min-width: 768px) {
  .screen-frame { width: 240px; }
  .screen-frame:hover { transform: translateY(-6px); }
}
@media (min-width: 1100px) {
  .screens-strip {
    padding: 30px calc(50vw - 520px);
    scroll-padding-left: calc(50vw - 520px);
  }
}
.screens-hint {
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0;
}
