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

:root {
  --accent: #34C759;
  --accent-hover: #2ba648;
  --accent-light: rgba(52, 199, 89, 0.10);
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --bg-card: #f5f5f7;
  --text: #1d1d1f;
  --text-2: #6e6e73;
  --text-3: #98989d;
  --border: rgba(0, 0, 0, 0.08);
  --shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.10);
  --radius: 18px;
  --radius-sm: 10px;
  --nav-h: 64px;
  --max: 1080px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --nav-bg: rgba(255, 255, 255, 0.80);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #000000;
    --bg-alt: #111111;
    --bg-card: #1c1c1e;
    --text: #f5f5f7;
    --text-2: #ababab;
    --text-3: #6e6e73;
    --border: rgba(255, 255, 255, 0.08);
    --shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
    --nav-bg: rgba(0, 0, 0, 0.80);
  }
}

:root[data-theme="dark"] {
  --bg: #000000;
  --bg-alt: #111111;
  --bg-card: #1c1c1e;
  --text: #f5f5f7;
  --text-2: #ababab;
  --text-3: #6e6e73;
  --border: rgba(255, 255, 255, 0.08);
  --shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
  --nav-bg: rgba(0, 0, 0, 0.80);
}

html { scroll-behavior: auto; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* ── Nav ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: var(--nav-bg);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
}

.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-logo {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.3px;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo:hover { text-decoration: none; }

.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.nav-links a {
  font-size: 14px;
  color: var(--text-2);
  font-weight: 500;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--text); text-decoration: none; }

.nav-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-select {
  font-family: var(--font);
  font-size: 13px;
  color: var(--text-2);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 5px 8px;
  cursor: pointer;
  outline: none;
}
.lang-select:focus { border-color: var(--accent); }

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-2);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.theme-toggle:hover { color: var(--text); border-color: var(--accent); }
.theme-toggle svg { width: 16px; height: 16px; }
.theme-toggle .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: block; }
}
:root[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: 980px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background 0.15s, transform 0.1s;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-hover); }

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
}
.btn-outline:hover { background: var(--accent-light); }

.btn-lg {
  padding: 14px 28px;
  font-size: 16px;
}

/* ── Sections ── */
section { padding: 96px 24px; }
section.alt { background: var(--bg-alt); }

.container {
  max-width: var(--max);
  margin: 0 auto;
}

.section-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.15;
  color: var(--text);
}

.section-sub {
  font-size: 18px;
  color: var(--text-2);
  margin-top: 14px;
  max-width: 560px;
}

/* ── Hero ── */
#hero {
  padding: 120px 24px 96px;
  text-align: center;
  background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%);
}

.hero-icon {
  width: 96px;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 32px;
  position: relative;
}

.hero-icon img {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  box-shadow: 0 12px 40px rgba(52, 199, 89, 0.30);
  display: block;
}

.hero-icon .icon-dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .hero-icon .icon-light { display: none; }
  :root:not([data-theme="light"]) .hero-icon .icon-dark { display: block; }
}
:root[data-theme="dark"] .hero-icon .icon-light { display: none; }
:root[data-theme="dark"] .hero-icon .icon-dark { display: block; }

.hero-headline {
  font-size: clamp(44px, 7vw, 80px);
  font-weight: 700;
  letter-spacing: -1.5px;
  line-height: 1.05;
  margin-bottom: 6px;
}

.hero-headline .accent { color: var(--accent); }

.hero-sub {
  font-size: clamp(17px, 2vw, 20px);
  color: var(--text-2);
  max-width: 560px;
  margin: 20px auto 36px;
  line-height: 1.55;
}

.hero-cta-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.hero-note {
  font-size: 13px;
  color: var(--text-3);
}

/* ── Screenshots ── */
#screenshots .header { margin-bottom: 48px; text-align: center; }
#screenshots .section-sub { margin-left: auto; margin-right: auto; }
#privacy .section-sub { margin-left: auto; margin-right: auto; }

.shots-scroller {
  display: flex;
  justify-content: center;
  gap: 20px;
  overflow-x: auto;
  padding: 8px 40px 24px;
  margin: 0 -40px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}

.shots-scroller .shot {
  flex: 0 0 auto;
  width: 220px;
  height: auto;
  border-radius: 28px;
  box-shadow: var(--shadow-lg);
  scroll-snap-align: start;
  transition: transform 0.25s;
}

.shots-scroller .shot:hover { transform: translateY(-6px); }

@media (max-width: 640px) {
  .shots-scroller {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    overflow-x: visible;
    padding: 8px 20px 24px;
    margin: 0;
  }

  .shots-scroller .shot { width: 100%; }
}

@media (max-width: 380px) {
  .shots-scroller { grid-template-columns: 1fr; }
}

/* ── Scroll reveal / appear animations ──
   Uses the `animation` property (not `transition`) so it never collides
   with component hover transitions (e.g. .feat-card, .shot) declared
   on the same elements. */
@media (prefers-reduced-motion: no-preference) {
  .reveal, .hero-appear { opacity: 0; }

  .reveal.in-view {
    animation: reveal-in 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: var(--reveal-delay, 0ms);
  }

  .hero-appear.in-view {
    animation: reveal-in-hero 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: var(--reveal-delay, 0ms);
  }
}

@keyframes reveal-in {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes reveal-in-hero {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Features ── */
#features .header { margin-bottom: 56px; }

.feat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.feat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.feat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

.feat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 22px;
}

.feat-card h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
}

.feat-card p {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.55;
}

/* ── Privacy ── */
#privacy {
  text-align: center;
}

.privacy-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 40px;
}

.privacy-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 980px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 500;
}

.privacy-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #30d158;
  flex-shrink: 0;
}

/* ── Pricing ── */
#pricing { text-align: center; }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  margin: 48px 0 28px;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  position: relative;
}

.pricing-card.featured {
  border-color: var(--accent);
  background: var(--accent-light);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 980px;
  white-space: nowrap;
}

.pricing-card .plan-name {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.pricing-card .plan-price {
  font-size: 38px;
  font-weight: 700;
  letter-spacing: -1px;
  color: var(--accent);
}

.pricing-card .plan-price-period {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-2);
  letter-spacing: normal;
}

.pricing-card .plan-sub {
  font-size: 13px;
  color: var(--text-2);
  margin-top: 4px;
}

.pricing-managed {
  font-size: 13px;
  color: var(--text-3);
  margin-top: 16px;
}

/* ── Footer ── */
footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 48px 24px;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-left .logo {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

.footer-left p {
  font-size: 13px;
  color: var(--text-2);
  margin-top: 4px;
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 14px;
  color: var(--text-2);
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--text); text-decoration: none; }

.footer-copy {
  width: 100%;
  font-size: 12px;
  color: var(--text-3);
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  text-align: center;
}

/* ── Prose (legal / support pages) ── */
.prose-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 80px 24px 96px;
}

.prose-page h1 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 6px;
}

.prose-page .meta {
  font-size: 14px;
  color: var(--text-3);
  margin-bottom: 48px;
}

.prose-page h2 {
  font-size: 20px;
  font-weight: 600;
  margin: 40px 0 12px;
}

.prose-page p {
  font-size: 16px;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 12px;
}

.prose-page a { color: var(--accent); }
.prose-page a.btn-primary { color: #fff; }

.prose-page ul,
.prose-page ol {
  font-size: 16px;
  color: var(--text-2);
  line-height: 1.7;
  margin: 0 0 16px;
  padding-left: 24px;
}

.prose-page li { margin-bottom: 8px; }

.prose-page .guide-back {
  display: inline-block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 24px;
}

.guide-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 8px;
}

.guide-card {
  display: block;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.15s, box-shadow 0.15s;
  text-decoration: none;
}

.guide-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  text-decoration: none;
}

.guide-card h2,
.guide-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 8px;
  line-height: 1.3;
}

.guide-card p {
  font-size: 15px;
  color: var(--text-2);
  margin: 0 0 12px;
}

.guide-card .read-more {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
}

.home-guides {
  margin-top: 32px;
}

.home-guides-cta {
  margin-top: 28px;
  text-align: center;
}

.article-cta {
  background: var(--accent-light);
  border: 1px solid rgba(0, 122, 255, 0.15);
  border-radius: var(--radius);
  padding: 32px;
  margin-top: 48px;
  text-align: center;
}

.article-cta h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--text);
}

.article-cta p {
  margin-bottom: 20px;
}

/* ── FAQ ── */
.faq-list { margin-top: 8px; }

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-btn {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 0;
  text-align: left;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.faq-btn .chevron {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--text-3);
  transition: transform 0.2s;
}

.faq-item.open .chevron { transform: rotate(180deg); }

.faq-answer {
  display: none;
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.65;
  padding-bottom: 20px;
}

.faq-item.open .faq-answer { display: block; }

/* ── Contact card ── */
.contact-card {
  background: var(--accent-light);
  border: 1px solid rgba(52, 199, 89, 0.20);
  border-radius: var(--radius);
  padding: 40px 32px;
  text-align: center;
  margin-top: 48px;
}

.contact-card h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}

.contact-card p {
  font-size: 16px;
  color: var(--text-2);
  margin-bottom: 24px;
}

/* ── Responsive ── */
@media (max-width: 640px) {
  section { padding: 72px 20px; }
  #hero { padding: 80px 20px 72px; }
  .nav-links { display: none; }
  #nav-download { display: none; }
  .feat-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 360px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
