/* Self-hosted Inter (variable) — latin + latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */
:root {
  color-scheme: light dark;
  --bg: #f7f7f8;
  --bg-alt: #eeeef0;
  --card: #ffffff;
  --border: rgba(0, 0, 0, 0.09);
  --text: #0b0b0c;
  --text-2: #4d5157;
  --text-3: #71767b;
  --accent: #0b0b0c;
  --accent-hover: #2a2c30;
  --accent-soft: rgba(0, 0, 0, 0.06);
  --accent-ink: #ffffff;
  --link: #276aa8;
  --link-hover: #1f5a91;
  --dark-from: #1c1d20;
  --dark-to: #000000;
  --header-bg: rgba(247, 247, 248, 0.82);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 12px 32px -16px rgba(0, 0, 0, 0.28);
  --shadow-lg: 0 30px 60px -28px rgba(0, 0, 0, 0.45);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', sans-serif;
  --max: 1160px;
  --header-h: 68px;
  --radius: 18px;
  --radius-lg: 28px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --bg-alt: #0c0c0e;
    --card: #16171a;
    --border: rgba(255, 255, 255, 0.11);
    --text: #f2f2f3;
    --text-2: #a7abb1;
    --text-3: #868b92;
    --accent: #f2f2f3;
    --accent-hover: #ffffff;
    --accent-soft: rgba(255, 255, 255, 0.08);
    --accent-ink: #000000;
    --link: #5e9ed9;
    --link-hover: #7db2e3;
    --dark-from: #1a1b1e;
    --dark-to: #0a0a0b;
    --header-bg: rgba(0, 0, 0, 0.78);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 12px 32px -16px rgba(0, 0, 0, 0.8);
    --shadow-lg: 0 30px 60px -28px rgba(0, 0, 0, 0.9);
  }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

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

:focus-visible {
  outline: 3px solid var(--link);
  outline-offset: 3px;
  border-radius: 6px;
}

h1, h2, h3, h4 {
  color: var(--text);
  line-height: 1.15;
  letter-spacing: -0.025em;
  font-weight: 700;
}

h1 {
  font-size: clamp(2.3rem, 5.4vw, 3.9rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.75rem, 3.6vw, 2.5rem);
}

h3 {
  font-size: 1.15rem;
}

p {
  color: var(--text-2);
}

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

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 2000;
  background: var(--card);
  padding: 8px 14px;
  border-radius: 8px;
}

.skip:focus {
  left: 8px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-h);
  background: var(--header-bg);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
}

.brand:hover {
  color: var(--text);
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  box-shadow: 0 0 0 1px var(--border);
}

.menu {
  display: flex;
  align-items: center;
  gap: 26px;
}

.menu a {
  color: var(--text-2);
  font-weight: 500;
  font-size: 0.95rem;
}

.menu a:hover,
.menu a[aria-current="page"] {
  color: var(--text);
}

.menu .btn {
  color: var(--accent-ink);
}

.burger {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
}

.burger i {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

@media (max-width: 820px) {
  .burger {
    display: inline-flex;
  }

  .menu {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 20px 20px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    display: none;
  }

  .site-header.open .menu {
    display: flex;
  }

  .menu a {
    padding: 12px 4px;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--border);
  }

  .menu .btn {
    margin-top: 14px;
    border-bottom: 0;
  }

  .site-header.open .burger i:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .site-header.open .burger i:nth-child(2) {
    opacity: 0;
  }

  .site-header.open .burger i:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }
}

/* ---------- Buttons & badges ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: var(--accent-ink);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--card);
  color: var(--text);
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  color: var(--text);
  border-color: var(--accent);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.9rem;
}

.store-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
}

.store-badge {
  display: inline-block;
  line-height: 0;
  border-radius: 12px;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.store-badge img {
  width: 180px;
  height: 60px;
}

.store-badge:not([aria-disabled="true"]):hover {
  transform: translateY(-2px);
}

.store-badge[aria-disabled="true"] {
  opacity: 0.55;
  cursor: default;
  pointer-events: none;
}

.store-note {
  font-size: 0.9rem;
  color: var(--text-3);
}

.store-note[hidden] {
  display: none;
}

.on-dark .store-note {
  color: rgba(255, 255, 255, 0.82);
}

/* ---------- Sections ---------- */
section {
  padding: 96px 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-head {
  max-width: 720px;
  margin: 0 auto 52px;
  text-align: center;
}

.section-head p {
  font-size: 1.08rem;
  margin-top: 14px;
}

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

/* ---------- Hero ---------- */
.hero {
  padding: 72px 0 88px;
  background:
    radial-gradient(80% 60% at 85% 10%, var(--accent-soft), transparent 70%),
    radial-gradient(60% 50% at 0% 100%, var(--accent-soft), transparent 70%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.hero-icon {
  width: 84px;
  height: 84px;
  border-radius: 19px;
  box-shadow: 0 0 0 1px var(--border), var(--shadow-md);
  margin-bottom: 26px;
}

.hero h1 .accent {
  color: var(--text-3);
}

.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  margin: 22px 0 30px;
  max-width: 36em;
}

.chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.chips li {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-2);
  background: var(--card);
  border: 1px solid var(--border);
  padding: 6px 13px;
  border-radius: 999px;
}

.hero-visual {
  position: relative;
  isolation: isolate;
  justify-self: center;
  width: min(100%, 440px);
}

.hero-visual .shot {
  width: 74%;
  margin-left: auto;
  border-radius: var(--radius-lg);
  box-shadow: 0 0 0 1px var(--border), var(--shadow-lg);
  transform: rotate(2deg);
}

.hero-visual .shot-back {
  position: absolute;
  width: 58%;
  left: 0;
  top: 12%;
  transform: rotate(-5deg);
  z-index: -1;
}

@media (max-width: 900px) {
  .hero {
    padding: 48px 0 72px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-visual {
    width: min(100%, 400px);
  }
}

/* ---------- Problem strip ---------- */
.strip {
  padding: 34px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--card);
}

.strip p {
  text-align: center;
  font-size: 1.1rem;
  max-width: 820px;
  margin: 0 auto;
}

.strip strong {
  color: var(--text);
}

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

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

@media (max-width: 960px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}

.card h3 {
  margin-bottom: 8px;
}

.card p {
  font-size: 0.98rem;
}

.card:has(.btn) {
  display: flex;
  flex-direction: column;
}

.card .btn {
  margin-top: auto;
  align-self: flex-start;
}

.card p:not(:last-child) {
  margin-bottom: 18px;
}

.icon-tile {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 16px;
}

.icon-tile svg {
  width: 22px;
  height: 22px;
}

/* ---------- Steps ---------- */
.steps-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 56px;
  align-items: center;
}

.steps-layout h2 {
  margin-bottom: 28px;
}

.steps {
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: 18px;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding: 22px 22px 22px 76px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 22px;
  top: 22px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 800;
  display: grid;
  place-items: center;
}

.steps h3 {
  margin-bottom: 4px;
}

.steps-visual img {
  border-radius: var(--radius-lg);
  box-shadow: 0 0 0 1px var(--border), var(--shadow-lg);
}

.steps-more {
  margin-top: 24px;
}

@media (max-width: 860px) {
  .steps-layout {
    grid-template-columns: 1fr;
  }

  .steps-visual {
    width: min(72%, 300px);
    margin: 0 auto;
    order: -1;
  }
}

/* ---------- Screenshots ---------- */
.tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--border);
  margin: 0 auto 32px;
}

.tabs-wrap {
  text-align: center;
}

.tab {
  font: inherit;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 8px 20px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  color: var(--text-2);
  cursor: pointer;
}

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

.gallery {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 8px 20px 24px;
  margin: 0 -20px;
  scrollbar-width: thin;
}

.gallery[hidden] {
  display: none;
}

.gallery button {
  flex: 0 0 auto;
  scroll-snap-align: center;
  border: 0;
  padding: 0;
  background: none;
  cursor: zoom-in;
  border-radius: 22px;
}

.gallery img {
  border-radius: 22px;
  box-shadow: 0 0 0 1px var(--border), var(--shadow-md);
}

.gallery-phone img {
  width: 250px;
}

.gallery-tablet img {
  width: 560px;
}

@media (max-width: 640px) {
  .gallery-phone img {
    width: 62vw;
  }

  .gallery-tablet img {
    width: 84vw;
  }
}

.gallery-hint {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-3);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(4, 10, 18, 0.88);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-height: 92vh;
  max-width: 100%;
  width: auto;
  border-radius: 18px;
}

.lightbox .close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

/* ---------- Privacy band ---------- */
.band {
  background: linear-gradient(135deg, var(--dark-from), var(--dark-to));
  color: #fff;
  border-block: 1px solid var(--border);
}

.band h2,
.band h3 {
  color: #fff;
}

.band p {
  color: rgba(255, 255, 255, 0.84);
}

.band .eyebrow {
  color: rgba(255, 255, 255, 0.8);
}

.band .card {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: none;
}

.band .icon-tile {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.band .btn-secondary {
  background: #fff;
  color: #0b0b0c;
  border-color: transparent;
}

.band-cta {
  text-align: center;
  margin-top: 36px;
}

/* ---------- FAQ ---------- */
.faq {
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

.faq details {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 0 22px;
}

.faq summary {
  list-style: none;
  cursor: pointer;
  font-weight: 600;
  padding: 18px 32px 18px 0;
  position: relative;
  color: var(--text);
}

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

.faq summary::after {
  content: '';
  position: absolute;
  right: 4px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--text-3);
  border-bottom: 2px solid var(--text-3);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s ease;
}

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

.faq details p {
  padding-bottom: 18px;
}

.faq details p + p {
  margin-top: -6px;
}

/* ---------- Download CTA ---------- */
.cta {
  text-align: center;
}

.cta-card {
  background: linear-gradient(135deg, var(--dark-from), var(--dark-to));
  border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 64px 24px;
  box-shadow: var(--shadow-lg);
}

.cta-card img.cta-icon {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  margin: 0 auto 22px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16), 0 16px 32px -14px rgba(0, 0, 0, 0.6);
}

.cta-card h2 {
  color: #fff;
}

.cta-card p {
  color: rgba(255, 255, 255, 0.86);
  max-width: 560px;
  margin: 14px auto 28px;
}

.cta-card .store-row {
  justify-content: center;
  flex-direction: column;
  gap: 10px;
}

/* ---------- Content pages (policy, support, how it works) ---------- */
.page-hero {
  padding: 64px 0 32px;
}

.page-hero .container,
.container.prose,
.container.narrow {
  max-width: 860px;
}

.page-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
}

.page-hero p {
  font-size: 1.1rem;
  margin-top: 14px;
  max-width: 44em;
}

.prose > * + * {
  margin-top: 12px;
}

main > :last-child:not(.lightbox) {
  padding-bottom: 96px;
}

.prose h2 {
  font-size: 1.4rem;
  margin: 40px 0 12px;
}

.prose h3 {
  margin: 24px 0 8px;
}

.prose p,
.prose li {
  color: var(--text-2);
  font-size: 1.02rem;
}

.prose ul,
.prose ol {
  margin: 10px 0 0 1.3rem;
  display: grid;
  gap: 6px;
}

.prose a {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.prose strong {
  color: var(--text);
}

.prose code {
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 0.9em;
  background: var(--accent-soft);
  padding: 1px 6px;
  border-radius: 6px;
  word-break: break-word;
}

.meta {
  font-size: 0.92rem;
  color: var(--text-3);
}

.callout {
  margin: 24px 0;
  padding: 18px 20px;
  border-radius: 14px;
  background: var(--accent-soft);
  border: 1px solid var(--border);
}

.callout p {
  color: var(--text);
}

.toc {
  margin: 28px 0 8px;
  padding: 18px 22px;
  border-radius: 14px;
  background: var(--card);
  border: 1px solid var(--border);
}

.toc strong {
  display: block;
  margin-bottom: 6px;
}

.table-wrap {
  overflow-x: auto;
  margin-top: 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--card);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text-2);
}

th {
  color: var(--text);
  font-weight: 600;
  background: var(--bg-alt);
}

tr:last-child td {
  border-bottom: 0;
}

/* Data flow diagram */
.flow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 22px 0 8px;
}

.flow-node {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
}

.flow-node strong {
  display: block;
  color: var(--text);
  margin-bottom: 4px;
}

.flow-node span {
  font-size: 0.92rem;
  color: var(--text-2);
}

.flow-node.is-you {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

@media (max-width: 640px) {
  .flow {
    grid-template-columns: 1fr;
  }
}

.support-grid {
  margin: 8px 0 16px;
}

.narrow .faq {
  margin-top: 16px;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 56px 0 36px;
  background: var(--card);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 32px;
}

.footer-grid h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-3);
  margin-bottom: 12px;
}

.footer-grid ul {
  list-style: none;
  display: grid;
  gap: 8px;
}

.footer-grid a {
  color: var(--text-2);
  font-size: 0.95rem;
}

.footer-grid a:hover {
  color: var(--text);
}

.footer-about p {
  font-size: 0.92rem;
  margin-top: 12px;
  max-width: 30em;
}

.footer-legal {
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  font-size: 0.84rem;
  color: var(--text-3);
  display: grid;
  gap: 6px;
}

.footer-legal p {
  color: var(--text-3);
}

@media (max-width: 820px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-about {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  section {
    padding: 72px 0;
  }

  .section-head {
    margin-bottom: 36px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
  }
}
