/* Scantic website. Palette mirrors the app's Theme.swift
   (dark-only): chrome #08090F, panel #151827, ink #EDF0FA,
   accent #4F86F7, icon gradient #4EC8F9 -> #2D7AF4 -> #7A3AF3.
   No external requests: system font stack, local assets only. */

:root {
    --bg: #08090F;
    --panel: #151827;
    --panel-edge: rgba(237, 240, 250, 0.08);
    --ink: #EDF0FA;
    --ink-dim: rgba(237, 240, 250, 0.58);
    --ink-faint: rgba(237, 240, 250, 0.38);
    --accent: #4F86F7;
    --cyan: #4EC8F9;
    --blue: #2D7AF4;
    --violet: #7A3AF3;
    --mint: #34D6A8;
    --grad: linear-gradient(135deg, var(--cyan), var(--blue) 52%, var(--violet));
    --radius: 18px;
}

* { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text",
        "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* Soft brand glows behind the whole page */
.backdrop {
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(600px 420px at 18% -5%,
            rgba(78, 200, 249, 0.14), transparent 70%),
        radial-gradient(700px 480px at 85% 8%,
            rgba(122, 58, 243, 0.13), transparent 70%),
        radial-gradient(900px 600px at 50% 115%,
            rgba(45, 122, 244, 0.10), transparent 70%);
    pointer-events: none;
}

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

.wrap {
    max-width: 1040px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Header ─────────────────────────────────────────────── */

/* header.wrap, nicht header: das Element traegt die Klasse wrap,
   und deren `padding: 0 24px` schlaegt einen blossen
   Element-Selektor per Spezifitaet. Die alte Regel `header
   { padding: 22px 0 }` war deshalb IMMER wirkungslos — das Logo
   klebte auf jedem Geraet direkt an den Browser-Bedienelementen
   (Sebastians Screenshot 01.08.). Oben bewusst mehr Luft als
   unten, wegen der Safari-Adressleiste am iPhone. */
header.wrap {
    padding: 40px 24px 22px;
}

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

.nav .brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--ink);
    font-weight: 700;
    font-size: 19px;
    letter-spacing: -0.01em;
}

.nav .brand:hover { text-decoration: none; }

.nav .brand img {
    width: 34px;
    height: 34px;
    display: block;
}

.nav nav {
    margin-left: auto;
    display: flex;
    gap: 26px;
}

.nav nav a {
    color: var(--ink-dim);
    font-size: 15px;
    font-weight: 500;
}

.nav nav a:hover { color: var(--ink); text-decoration: none; }

/* ── Hero ───────────────────────────────────────────────── */

.hero {
    text-align: center;
    padding: 72px 0 40px;
}

.hero .app-icon {
    width: 148px;
    height: 148px;
    margin: 0 auto 36px;
    display: block;
    filter: drop-shadow(0 24px 60px rgba(45, 122, 244, 0.45));
}

.hero h1 {
    font-size: clamp(40px, 7vw, 68px);
    line-height: 1.06;
    letter-spacing: -0.025em;
    font-weight: 800;
    margin: 0 0 20px;
}

.hero h1 .grad {
    /* Verlaufstext, robust: `color: transparent` + background-clip
       war die fragile Variante — Desktop-Safari malte die Zeile
       damit UNSICHTBAR (Sebastians Screenshot 01.08.; Live-CSS war
       byteidentisch zum Repo, Chromium rendert dieselbe Regel
       korrekt). -webkit-text-fill-color ist der verlaessliche Weg,
       und die Fallback-Farbe sorgt dafuer, dass die Zeile
       schlimmstenfalls einfarbig Blau ist, nie unsichtbar. */
    display: inline-block;
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--blue);
}

.hero .lede {
    max-width: 620px;
    margin: 0 auto 36px;
    font-size: clamp(18px, 2.4vw, 21px);
    color: var(--ink-dim);
}

.cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 26px;
    border-radius: 999px;
    background: var(--panel);
    border: 1px solid var(--panel-edge);
    color: var(--ink);
    font-weight: 600;
    font-size: 16px;
    position: relative;
}

.cta::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: 999px;
    padding: 1px;
    background: var(--grad);
    -webkit-mask: linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    mask: linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.7;
}

.cta .apple {
    width: 18px;
    height: 18px;
    fill: var(--ink);
}

.cta-note {
    margin-top: 14px;
    font-size: 14px;
    color: var(--ink-faint);
}

/* ── Sections ───────────────────────────────────────────── */

section {
    padding: 56px 0;
}

section h2 {
    font-size: clamp(28px, 4vw, 38px);
    letter-spacing: -0.02em;
    font-weight: 750;
    margin: 0 0 12px;
    text-align: center;
}

section .sub {
    text-align: center;
    color: var(--ink-dim);
    max-width: 560px;
    margin: 0 auto 44px;
}

/* Feature cards */

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

.card {
    background: var(--panel);
    border: 1px solid var(--panel-edge);
    border-radius: var(--radius);
    padding: 28px 26px;
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.card:hover {
    transform: translateY(-4px);
    border-color: rgba(79, 134, 247, 0.35);
}

.card .glyph {
    width: 44px;
    height: 44px;
    margin-bottom: 18px;
    display: block;
}

.card h3 {
    margin: 0 0 8px;
    font-size: 19px;
    letter-spacing: -0.01em;
}

.card p {
    margin: 0;
    color: var(--ink-dim);
    font-size: 15.5px;
}

/* Steps */

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    counter-reset: step;
}

.step {
    position: relative;
    padding: 8px 4px 0;
}

.step .num {
    font-size: 15px;
    font-weight: 700;
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.step h3 {
    margin: 6px 0 8px;
    font-size: 20px;
    letter-spacing: -0.01em;
}

.step p {
    margin: 0;
    color: var(--ink-dim);
    font-size: 15.5px;
}

/* Privacy band */

.privacy-band {
    background: var(--panel);
    border: 1px solid var(--panel-edge);
    border-radius: var(--radius);
    padding: 44px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.privacy-band::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(420px 200px at 50% 0%,
            rgba(52, 214, 168, 0.10), transparent 70%);
    pointer-events: none;
}

.privacy-band .shield {
    width: 40px;
    height: 40px;
    margin-bottom: 14px;
}

.privacy-band h2 { margin-bottom: 10px; }

.privacy-band p {
    max-width: 560px;
    margin: 0 auto 18px;
    color: var(--ink-dim);
}

/* ── Prose pages (privacy, support, imprint) ────────────── */

.prose {
    max-width: 680px;
    margin: 0 auto;
    padding: 40px 0 72px;
}

.prose h1 {
    font-size: clamp(32px, 5vw, 44px);
    letter-spacing: -0.02em;
    margin: 0 0 6px;
}

.prose .updated {
    color: var(--ink-faint);
    font-size: 14px;
    margin-bottom: 36px;
}

.prose h2 {
    font-size: 22px;
    letter-spacing: -0.01em;
    margin: 40px 0 10px;
}

.prose h3 {
    font-size: 17px;
    margin: 26px 0 6px;
}

.prose p, .prose li { color: var(--ink-dim); }

.prose li { margin-bottom: 6px; }

.prose .fact {
    background: var(--panel);
    border: 1px solid var(--panel-edge);
    border-radius: var(--radius);
    padding: 22px 26px;
    margin: 24px 0;
}

.prose .fact p { margin: 6px 0; }

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

/* ── Footer ─────────────────────────────────────────────── */

footer {
    border-top: 1px solid var(--panel-edge);
    margin-top: 40px;
    padding: 36px 0 48px;
}

.foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 26px;
    font-size: 14.5px;
    color: var(--ink-faint);
}

.foot a { color: var(--ink-dim); }
.foot a:hover { color: var(--ink); text-decoration: none; }
.foot .copy { margin-left: auto; }

.privacy-band .band-links {
    display: flex;
    gap: 26px;
    justify-content: center;
    flex-wrap: wrap;
    /* margin: 0 killte das auto-Zentrieren aus .privacy-band p
       (max-width 560px) — die Zeile hing links unter der ersten
       Spalte. auto muss bleiben, sonst wandert sie wieder. */
    margin: 10px auto 0;
}

/* ── Encryption page ────────────────────────────────────── */

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

.mode {
    background: var(--panel);
    border: 1px solid var(--panel-edge);
    border-radius: var(--radius);
    padding: 18px 20px;
}

.mode h3 { margin: 10px 0 4px; font-size: 16px; }
.mode p { margin: 0; font-size: 15px; }

.tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 3px 9px;
    border-radius: 999px;
}

.tag.enc {
    color: var(--mint);
    background: rgba(52, 214, 168, 0.12);
    border: 1px solid rgba(52, 214, 168, 0.3);
}

.tag.open {
    color: var(--ink-dim);
    background: rgba(237, 240, 250, 0.06);
    border: 1px solid var(--panel-edge);
}

.prose .mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 15px;
    word-break: break-all;
    color: var(--ink);
}

.prose .dimmed { color: var(--ink-faint); }
.prose .keyed { color: var(--mint); }

.fact.dl {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.fact.dl h3 { margin: 0 0 4px; font-size: 17px; }
.fact.dl p { margin: 0; font-size: 15px; }

.dl-btn {
    flex: 0 0 auto;
    display: inline-block;
    padding: 11px 20px;
    border-radius: 999px;
    background: var(--grad);
    color: #fff;
    font-weight: 600;
    font-size: 15px;
    white-space: nowrap;
}

.dl-btn:hover { text-decoration: none; opacity: 0.9; }
.dl-btn .dimmed { color: rgba(255, 255, 255, 0.7); font-weight: 400; }

.prose .more {
    margin-top: 34px;
    padding-top: 18px;
    border-top: 1px solid var(--panel-edge);
}

/* ── Misc ───────────────────────────────────────────────── */

.err {
    text-align: center;
    padding: 120px 0;
}

@media (max-width: 760px) {
    .cards, .steps, .modes { grid-template-columns: 1fr; }
    .nav nav { gap: 18px; }
    .hero { padding-top: 48px; }
    .foot .copy { margin-left: 0; }
}

@media (max-width: 520px) {
    .only-wide { display: none; }
}

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

/* Trust-Zeile im Hero (EU/Deutschland/E2E, 01.08.) */
.trust-line {
    margin-top: 10px;
    font-size: 13.5px;
    letter-spacing: 0.02em;
    color: var(--ink-dim);
}

/* Fakten-Raster im Privacy-Band. position:relative hebt es ueber
   das ::before-Overlay des Bands. */
.privacy-band .fact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    text-align: left;
    max-width: 880px;
    margin: 28px auto 22px;
    position: relative;
}
.privacy-band .fact h3 {
    font-size: 16px;
    margin-bottom: 6px;
}
.privacy-band .fact p {
    font-size: 14px;
    line-height: 1.55;
    color: var(--ink-dim);
    margin: 0;
    max-width: none;
}
@media (max-width: 760px) {
    .privacy-band .fact-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* ── Store-Reihe: Badge + QR (Launch 13.08.) ───────────── */

.store-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
}

.store-badge img {
    height: 60px;
    width: auto;
    display: block;
}

.store-badge {
    display: inline-block;
    transition: transform 0.15s ease;
}

.store-badge:hover {
    transform: scale(1.04);
}

.qr {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.qr img {
    width: 108px;
    height: 108px;
    padding: 8px;
    background: #fff;
    border-radius: 12px;
    box-sizing: content-box;
    display: block;
}

.qr span {
    font-size: 12px;
    color: var(--ink-faint);
}

@media (max-width: 520px) {
    /* Muss NACH .qr{display:flex} stehen: gleiche Spezifitaet,
       die spaetere Regel gewinnt — sonst zeigt das Telefon den
       (dort nutzlosen) QR-Code. */
    .qr { display: none; }
}
