@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/assets/fonts/plus_jakarta_regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/assets/fonts/plus_jakarta_medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/assets/fonts/plus_jakarta_semibold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/assets/fonts/plus_jakarta_bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --bg: #f4f7f5;
  --surface: #ffffff;
  --surface-alt: #e9f1ec;
  --surface-glass: rgba(255, 255, 255, 0.78);
  --text: #0e1a14;
  --text-muted: #3f4f46;
  --border: #dde8e0;
  --border-strong: #b8ccc0;
  --primary: #0a7a53;
  --primary-hover: #086644;
  --primary-ink: #ffffff;
  --primary-soft: #d1f4e0;
  --primary-soft-ink: #023622;
  --secondary: #19647e;
  --secondary-soft: #d0eff6;
  --gold: #a66904;
  --gold-badge: #d48b12;
  --gold-soft: #fef3c7;
  --danger: #c62828;
  --danger-soft: #fdecec;
  --hero-start: #0a7a53;
  --hero-end: #19647e;
  --glow-1: rgba(52, 211, 153, 0.20);
  --glow-2: rgba(100, 210, 236, 0.14);
  --shadow-card: 0 1px 2px rgba(14, 26, 20, 0.04), 0 10px 28px rgba(14, 26, 20, 0.05);
  --shadow-hero: 0 18px 44px rgba(10, 122, 83, 0.22);
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --max-w: 1120px;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b110e;
  --surface: #131d18;
  --surface-alt: #1b2921;
  --surface-glass: rgba(19, 29, 24, 0.78);
  --text: #e1e9e4;
  --text-muted: #a2b5aa;
  --border: #1e2b23;
  --border-strong: #32473b;
  --primary: #34e0a1;
  --primary-hover: #4efaac;
  --primary-ink: #003822;
  --primary-soft: #005234;
  --primary-soft-ink: #a7fcd0;
  --secondary: #64d2ec;
  --secondary-soft: #004e61;
  --gold: #ffd166;
  --gold-badge: #ffd166;
  --gold-soft: rgba(255, 209, 102, 0.14);
  --danger: #ff7b7b;
  --danger-soft: rgba(255, 102, 102, 0.14);
  --hero-start: #0c4a33;
  --hero-end: #073b4c;
  --glow-1: rgba(52, 224, 161, 0.16);
  --glow-2: rgba(100, 210, 236, 0.12);
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.25), 0 14px 32px rgba(0, 0, 0, 0.28);
  --shadow-hero: 0 20px 48px rgba(0, 0, 0, 0.45);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0b110e;
    --surface: #131d18;
    --surface-alt: #1b2921;
    --surface-glass: rgba(19, 29, 24, 0.78);
    --text: #e1e9e4;
    --text-muted: #a2b5aa;
    --border: #1e2b23;
    --border-strong: #32473b;
    --primary: #34e0a1;
    --primary-hover: #4efaac;
    --primary-ink: #003822;
    --primary-soft: #005234;
    --primary-soft-ink: #a7fcd0;
    --secondary: #64d2ec;
    --secondary-soft: #004e61;
    --gold: #ffd166;
    --gold-badge: #ffd166;
    --gold-soft: rgba(255, 209, 102, 0.14);
    --danger: #ff7b7b;
    --danger-soft: rgba(255, 102, 102, 0.14);
    --hero-start: #0c4a33;
    --hero-end: #073b4c;
    --glow-1: rgba(52, 224, 161, 0.16);
    --glow-2: rgba(100, 210, 236, 0.12);
    --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.25), 0 14px 32px rgba(0, 0, 0, 0.28);
    --shadow-hero: 0 20px 48px rgba(0, 0, 0, 0.45);
  }
}

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

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

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg);
  background-image:
    radial-gradient(640px 420px at 14% 0%, var(--glow-1), transparent 70%),
    radial-gradient(560px 380px at 88% 4%, var(--glow-2), transparent 70%);
  background-repeat: no-repeat;
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: clip;
}

.tnum {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

a {
  color: var(--primary);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--primary-hover);
}

:focus-visible {
  outline: 2.5px solid var(--primary);
  outline-offset: 3px;
  border-radius: 8px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--primary);
  color: var(--primary-ink);
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 600;
  z-index: 200;
}
.skip-link:focus {
  left: 16px;
}

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}

/* Sticky frosted-glass header */
.site-header {
  position: sticky;
  top: 12px;
  z-index: 100;
  padding: 12px 20px 0;
}

.nav-shell {
  max-width: var(--max-w);
  margin: 0 auto;
  background: var(--surface-glass);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 8px 12px 8px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: var(--shadow-card);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 999px;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--text);
  background: var(--surface-alt);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.pill-btn {
  appearance: none;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  min-height: 38px;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: border-color 0.15s ease, background-color 0.15s ease, transform 0.12s ease;
}

.pill-btn:hover {
  border-color: var(--primary);
  background: var(--surface-alt);
}

.pill-btn:active {
  transform: scale(0.97);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.98rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-ink);
  box-shadow: 0 8px 20px rgba(10, 122, 83, 0.22);
}

.btn-primary:hover {
  background: var(--primary-hover);
  color: var(--primary-ink);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border-strong);
}

.btn-secondary:hover {
  background: var(--surface-alt);
  color: var(--text);
}

.btn-on-hero {
  background: #ffffff;
  color: #023622;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.18);
}

.btn-on-hero:hover {
  background: #e9fff3;
  color: #023622;
}

.btn-ghost-hero {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.28);
}

.btn-ghost-hero:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

/* Hero Section */
.hero {
  padding: 48px 0 36px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}

.hero-grid > *,
.privacy-band > *,
.download-hero > *,
.cards-grid > *,
.gallery-grid > * {
  min-width: 0;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  background: var(--primary-soft);
  color: var(--primary-soft-ink);
}

.badge-gold {
  background: var(--gold-soft);
  color: var(--gold);
  border: 1px solid rgba(212, 139, 18, 0.25);
}

h1 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 4.4vw, 3.25rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 700;
}

.hero-sub {
  margin: 0 0 26px;
  font-size: clamp(1.02rem, 1.5vw, 1.16rem);
  color: var(--text-muted);
  max-width: 58ch;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
}

.hero-meta {
  font-size: 0.88rem;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
}

.hero-visual {
  display: flex;
  justify-content: center;
  position: relative;
}

.phone-frame {
  width: min(310px, 100%);
  padding: 10px;
  border-radius: 34px;
  background: #101814;
  border: 2px solid var(--border-strong);
  box-shadow: var(--shadow-hero);
  position: relative;
}

.phone-frame img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 25px;
}

.phone-swap {
  position: absolute;
  bottom: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 4px;
  display: inline-flex;
  gap: 4px;
  box-shadow: var(--shadow-card);
}

.phone-swap button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
}

.phone-swap button[aria-pressed="true"] {
  background: var(--primary-soft);
  color: var(--primary-soft-ink);
}

/* Sections */
.section {
  padding: 52px 0;
}

.section-head {
  margin-bottom: 28px;
  max-width: 66ch;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 8px;
}

h2 {
  margin: 0 0 10px;
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.section-sub {
  margin: 0;
  color: var(--text-muted);
}

/* Cards */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-card);
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  background: var(--primary-soft);
  color: var(--primary-soft-ink);
}

.card-icon.teal {
  background: var(--secondary-soft);
  color: var(--secondary);
}

.card-icon.gold {
  background: var(--gold-soft);
  color: var(--gold);
}

.card h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
  letter-spacing: -0.015em;
}

.card p {
  margin: 0;
  font-size: 0.94rem;
  color: var(--text-muted);
}

/* Privacy highlight panel */
.privacy-band {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-card);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.check-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.95rem;
}

.check-dot {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-soft-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  font-size: 0.85rem;
  font-weight: 700;
}

/* Gallery */
.gallery-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.gallery-tab {
  appearance: none;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  min-height: 40px;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
}

.gallery-tab[aria-selected="true"] {
  background: var(--primary-soft);
  color: var(--primary-soft-ink);
  border-color: var(--primary);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.shot-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--shadow-card);
}

.shot-card.wide {
  grid-column: span 2;
}

.shot-card[hidden] {
  display: none;
}

.shot-card img {
  width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid var(--border);
  display: block;
}

.shot-caption {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
}

.shot-sub {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Download Hero Card */
.download-hero {
  background: linear-gradient(135deg, var(--hero-start), var(--hero-end));
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-hero);
  border: 1px solid rgba(255, 255, 255, 0.16);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: center;
}

.download-hero h2 {
  color: #ffffff;
}

.download-hero p {
  color: rgba(255, 255, 255, 0.88);
}

.apk-box {
  background: rgba(0, 0, 0, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-md);
  padding: 18px;
  font-size: 0.88rem;
}

.apk-box dl {
  margin: 0;
  display: grid;
  gap: 10px;
}

.apk-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding-bottom: 8px;
}

.apk-row dt {
  color: rgba(255, 255, 255, 0.72);
}

.apk-row dd {
  margin: 0;
  font-weight: 600;
  text-align: right;
}

.sha-wrap {
  margin-top: 12px;
}

.sha-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  color: rgba(255, 255, 255, 0.8);
}

.copy-btn {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
}

.copy-btn:hover {
  background: rgba(255, 255, 255, 0.22);
}

.sha-code {
  display: block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.76rem;
  word-break: break-all;
  background: rgba(0, 0, 0, 0.25);
  padding: 8px 10px;
  border-radius: 10px;
  color: #a7fcd0;
}

.install-steps {
  margin: 16px 0 0;
  padding-left: 18px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.9rem;
}

/* FAQ */
.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 4px 20px;
  box-shadow: var(--shadow-card);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 0;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

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

.faq-item summary::after {
  content: "+";
  font-size: 1.25rem;
  color: var(--primary);
  font-weight: 600;
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-body {
  padding: 0 0 18px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Prose / Subpages */
.doc-wrap {
  padding: 40px 0 64px;
}

.doc-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 4vw, 40px);
  box-shadow: var(--shadow-card);
  max-width: 820px;
  margin: 0 auto;
}

.doc-card h1 {
  font-size: clamp(1.65rem, 3vw, 2.3rem);
  margin-bottom: 10px;
}

.doc-meta {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.doc-card h2 {
  font-size: 1.28rem;
  margin: 28px 0 10px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.doc-card h3 {
  font-size: 1.04rem;
  margin: 18px 0 8px;
}

.doc-card ul, .doc-card ol {
  padding-left: 22px;
}

.doc-card li + li {
  margin-top: 8px;
}

.callout {
  background: var(--surface-alt);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  margin: 18px 0;
}

.callout.danger {
  background: var(--danger-soft);
  border-color: rgba(224, 62, 62, 0.35);
}

.doc-card code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88em;
  background: var(--surface-alt);
  padding: 2px 6px;
  border-radius: 6px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0 42px;
  margin-top: 24px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

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

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
}

.footer-links a:hover {
  color: var(--primary);
}

@media (max-width: 920px) {
  .hero-grid,
  .privacy-band,
  .download-hero {
    grid-template-columns: 1fr;
  }
  .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 10px 12px 0;
  }
  .nav-shell {
    padding: 6px 8px 6px 10px;
    gap: 8px;
  }
  .nav-links {
    display: none;
  }
  .pill-btn {
    padding: 6px 10px;
    font-size: 0.8rem;
  }
  .cards-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .shot-card.wide {
    grid-column: span 1;
  }
  .hero {
    padding-top: 24px;
  }
  .cta-row .btn {
    width: 100%;
    text-align: center;
  }
  .download-hero,
  .privacy-band {
    padding: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
}
