/* SwipeDelete — shared stylesheet. No external requests. */
:root {
  --accent: #5945A2;
  --accent-2: #4F3A8E;
  --cream: #FDE9B3;
  --navy: #262558;
  --paper: #FBFAFB;
  --peri: #8B8ED6;
  --bg: #FBFAFB;
  --surface: #ffffff;
  --surface-2: #f2f0f8;
  --text: #1d1c40;
  --muted: #55547a;
  --border: rgba(38, 37, 88, .12);
  --shadow: 0 10px 30px rgba(38, 37, 88, .10);
  --radius: 22px;
  --radius-sm: 14px;
  --maxw: 1120px;
  --font: -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12112b;
    --surface: #1c1b3d;
    --surface-2: #232250;
    --text: #f3f1fb;
    --muted: #b9b7d9;
    --border: rgba(139, 142, 214, .22);
    --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.6;
  color: var(--text); background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
@media (prefers-color-scheme: dark) { a { color: var(--peri); } }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--peri); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 6vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 4vw, 2.3rem); font-weight: 750; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { width: min(100% - 2.5rem, var(--maxw)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--cream); color: var(--navy); padding: .6rem 1rem; z-index: 10; border-radius: 0 0 10px 0; }
.skip:focus { left: 0; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 5; background: rgba(23, 21, 56, .82); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid rgba(255,255,255,.08); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 60px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: #fff; text-decoration: none; font-weight: 750; font-size: 1.05rem; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.site-nav { display: flex; gap: 1.1rem; flex-wrap: wrap; }
.site-nav a { color: #e6e3ff; text-decoration: none; font-size: .95rem; }
.site-nav a:hover { color: var(--cream); }
@media (max-width: 560px) { .site-nav .opt { display: none; } }

/* Hero */
.hero {
  color: #fff; overflow: hidden; position: relative;
  background:
    radial-gradient(60% 50% at 85% 10%, rgba(139,142,214,.45), transparent 70%),
    radial-gradient(50% 45% at 10% 90%, rgba(89,69,162,.65), transparent 70%),
    linear-gradient(160deg, #1a1840 0%, var(--navy) 45%, var(--accent-2) 100%);
}
.hero .wrap { display: grid; gap: 2.5rem; padding-block: 3.5rem 0; align-items: center; }
@media (min-width: 900px) { .hero .wrap { grid-template-columns: 1.1fr .9fr; padding-block: 5rem 0; } }
.hero-icon { width: 84px; height: 84px; border-radius: 20px; box-shadow: 0 12px 30px rgba(0,0,0,.35); margin-bottom: 1.2rem; }
.eyebrow { display: inline-block; background: var(--cream); color: var(--navy); font-weight: 750; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; padding: .35rem .8rem; border-radius: 999px; margin-bottom: 1rem; }
.hero h1 .hl { color: var(--cream); }
.lead { font-size: clamp(1.1rem, 2.4vw, 1.3rem); color: #e4e1fb; max-width: 36em; }
.hero-note { color: #c9c6ee; font-size: .95rem; margin-top: 1rem; }
.hero-shot { justify-self: center; align-self: end; max-width: 340px; }
.hero-shot img { border-radius: 28px 28px 0 0; box-shadow: 0 -10px 60px rgba(139,142,214,.35); }

/* App Store button */
.store-btn {
  display: inline-flex; align-items: center; gap: .7rem; padding: .8rem 1.4rem .8rem 1.1rem;
  border-radius: 16px; background: #000; color: #fff; text-decoration: none; font-weight: 650;
  border: 1px solid rgba(255,255,255,.25); line-height: 1.15; min-height: 56px;
}
.store-btn svg { width: 26px; height: 26px; fill: currentColor; flex: none; }
.store-btn small { display: block; font-size: .72rem; font-weight: 500; opacity: .8; letter-spacing: .02em; }
.store-btn span span { font-size: 1.1rem; }
.store-btn.soon { cursor: default; background: linear-gradient(135deg, #0d0c22, #2a2563); }
.store-btn.soon::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--cream); margin-left: .3rem; box-shadow: 0 0 0 4px rgba(253,233,179,.2); }

/* Sections */
.section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.section.alt { background: var(--surface-2); }
.section-head { max-width: 46rem; margin-bottom: 2.2rem; }
.section-head p { color: var(--muted); font-size: 1.1rem; }

/* Download block */
.cta-card {
  display: grid; gap: 2rem; padding: clamp(1.8rem, 5vw, 3rem); border-radius: var(--radius);
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 60%, var(--navy) 100%); color: #fff; box-shadow: var(--shadow);
}
@media (min-width: 860px) { .cta-card { grid-template-columns: 1fr 1fr; align-items: center; } }
.cta-card h2 { color: #fff; }
.cta-card p { color: #e7e4fb; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: .9rem; }
.checks li { position: relative; padding-left: 2.1rem; }
.checks li::before { content: "✓"; position: absolute; left: 0; top: .05rem; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: var(--cream); color: var(--navy); font-weight: 800; font-size: .85rem; display: grid; place-items: center; }
.checks strong { display: block; }

/* Gallery */
.gallery { list-style: none; margin: 0; padding: .5rem 1.25rem 1.5rem; display: grid; grid-auto-flow: column; grid-auto-columns: min(70vw, 260px); gap: 1.2rem; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; }
.gallery li { scroll-snap-align: center; }
.gallery figure { margin: 0; }
.gallery img { border-radius: 24px; box-shadow: var(--shadow); background: var(--navy); }
.gallery figcaption { font-size: .92rem; color: var(--muted); margin-top: .7rem; text-align: center; }
.scroll-hint { color: var(--muted); font-size: .9rem; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.2rem; counter-reset: s; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps > li { counter-increment: s; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow); }
.steps > li::before { content: counter(s); display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 12px; background: var(--accent); color: #fff; font-weight: 800; margin-bottom: 1rem; }
.steps p { color: var(--muted); margin: 0; }

/* Cards */
.cards { display: grid; gap: 1.1rem; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards { grid-template-columns: repeat(4, 1fr); } }
.card { display: flex; flex-direction: column; gap: .5rem; padding: 1.4rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); text-decoration: none; color: var(--text); box-shadow: var(--shadow); transition: transform .2s ease, border-color .2s ease; }
.card:hover { transform: translateY(-3px); border-color: var(--peri); }
.card h3 { font-size: 1.05rem; margin: 0; }
.card p { color: var(--muted); font-size: .95rem; margin: 0; }
.card .more { margin-top: auto; color: var(--accent); font-weight: 650; font-size: .92rem; }
@media (prefers-color-scheme: dark) { .card .more { color: var(--peri); } }

/* FAQ */
.faq { display: grid; gap: .8rem; max-width: 52rem; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0 1.3rem; }
.faq summary { cursor: pointer; font-weight: 680; padding: 1.1rem 0; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--accent); }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding-bottom: 1.1rem; color: var(--muted); }
.faq details > div p:last-child { margin: 0; }

/* Final CTA */
.final { text-align: center; color: #fff; background: radial-gradient(70% 80% at 50% 0%, rgba(139,142,214,.5), transparent 70%), linear-gradient(180deg, var(--accent-2), var(--navy)); }
.final h2 { color: #fff; }
.final p { color: #e4e1fb; max-width: 38rem; margin-inline: auto; }
.final img { width: 72px; height: 72px; border-radius: 18px; margin: 0 auto 1.2rem; }

/* Footer */
.site-footer { background: #121130; color: #c9c6ee; padding-block: 3rem 2rem; font-size: .95rem; }
.site-footer a { color: #e6e3ff; }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; } }
.site-footer h2 { font-size: 1rem; color: #fff; margin-bottom: .8rem; letter-spacing: 0; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.langs { display: flex !important; flex-wrap: wrap; gap: .4rem .9rem !important; }
.langs a[aria-current] { color: var(--cream); font-weight: 700; text-decoration: none; }
.copy { border-top: 1px solid rgba(255,255,255,.1); margin-top: 2rem; padding-top: 1.4rem; color: #9d9ac6; }

/* Guides & legal */
.page-hero { color: #fff; background: linear-gradient(160deg, #1a1840, var(--navy) 55%, var(--accent-2)); padding-block: 2.5rem 3rem; }
.page-hero h1 { font-size: clamp(1.9rem, 5vw, 2.9rem); max-width: 22em; }
.page-hero .lead { margin: 0; }
.breadcrumb ol { list-style: none; padding: 0; margin: 0 0 1.2rem; display: flex; flex-wrap: wrap; gap: .4rem; font-size: .9rem; color: #c9c6ee; }
.breadcrumb li + li::before { content: "›"; margin-right: .4rem; opacity: .7; }
.breadcrumb a { color: #e6e3ff; }
.prose { max-width: 46rem; }
.prose h2 { font-size: clamp(1.4rem, 3.4vw, 1.8rem); margin-top: 2.4rem; }
.prose h3 { margin-top: 1.6rem; }
.prose ol, .prose ul { padding-left: 1.3rem; }
.prose li { margin-bottom: .5rem; }
.answer { font-size: 1.15rem; background: var(--surface); border-left: 4px solid var(--accent); padding: 1.2rem 1.4rem; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; box-shadow: var(--shadow); }
.tip { background: var(--surface-2); border-radius: var(--radius-sm); padding: 1rem 1.2rem; border: 1px solid var(--border); }
.app-box { display: grid; gap: 1.8rem; margin: 2.6rem 0; padding: clamp(1.5rem, 4vw, 2.4rem); border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); }
@media (min-width: 760px) { .app-box { grid-template-columns: 1.3fr .7fr; align-items: center; } }
.app-box h2 { margin-top: 0; }
.app-box img { border-radius: 22px; max-width: 260px; margin-inline: auto; }
.related { margin-top: 3rem; }
.legal .prose h2 { font-size: 1.35rem; }
.updated { color: #c9c6ee; font-size: .95rem; margin: 0; }

/* RTL */
[dir="rtl"] .checks li { padding-left: 0; padding-right: 2.1rem; }
[dir="rtl"] .checks li::before { left: auto; right: 0; }
[dir="rtl"] .store-btn.soon::after { margin-left: 0; margin-right: .3rem; }
[dir="rtl"] .skip { left: auto; right: -999px; }
[dir="rtl"] .skip:focus { right: 0; }
[dir="rtl"] .card:hover { transform: translateY(-3px); }

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