/* Kyneto PDF — brand lime #D7EC49 on ink #232323, from the app icon. */
@font-face {
    font-family: "Geist";
    src: url("/fonts/geist.woff2") format("woff2");
    font-weight: 100 900;
    font-display: swap;
}

:root {
    color-scheme: light dark;
    --lime: #d7ec49;
    --mark-bg: var(--lime);
    --mark-text: var(--text);
    --ink: #232323;
    --bg: #f6f6f1;
    --panel: #ffffff;
    --panel-tint: #f1f6d6;
    --border: #e6e6df;
    --text: #1a1a1a;
    --muted: #64645e;
    --faded: #a6a69c;
    --btn-bg: var(--ink);
    --btn-text: #ffffff;
    --shadow: 0 1px 2px rgba(20, 20, 10, .05), 0 18px 40px -18px rgba(20, 20, 10, .18);
    --phone-shadow: 0 40px 70px -28px rgba(20, 20, 10, .45), 0 18px 30px -18px rgba(20, 20, 10, .3);
    --radius: 22px;
    --max: 1160px;
    --font: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Dark follows the system unless the toggle (js/theme.js) pinned data-theme. */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg: #111111;
        --panel: #1a1a1a;
        --panel-tint: #1d2010;
        --border: #2b2b2b;
        --text: #f3f3ee;
        --muted: #a2a29a;
        --faded: #5f5f59;
        --btn-bg: var(--lime);
        --btn-text: var(--ink);
        --shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 18px 40px -18px rgba(0, 0, 0, .6);
        --phone-shadow: 0 40px 70px -28px rgba(0, 0, 0, .8), 0 18px 30px -18px rgba(0, 0, 0, .6);
        --mark-bg: #6d4dff;
    }
}

:root[data-theme="dark"] {
    color-scheme: dark;
    --bg: #111111;
    --panel: #1a1a1a;
    --panel-tint: #1d2010;
    --border: #2b2b2b;
    --text: #f3f3ee;
    --muted: #a2a29a;
    --faded: #5f5f59;
    --btn-bg: var(--lime);
    --btn-text: var(--ink);
    --shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 18px 40px -18px rgba(0, 0, 0, .6);
    --phone-shadow: 0 40px 70px -28px rgba(0, 0, 0, .8), 0 18px 30px -18px rgba(0, 0, 0, .6);
    --mark-bg: #6d4dff;
}

:root[data-theme="light"] { color-scheme: light; }

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
}

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

a { color: inherit; }

h1, h2, h3 { line-height: 1.05; letter-spacing: -.035em; margin: 0 0 .4em; font-weight: 700; }

h1 { font-size: clamp(2.6rem, 6.4vw, 4.6rem); }

h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); }

h3 { font-size: 1.08rem; letter-spacing: -.015em; line-height: 1.25; font-weight: 650; }

p { margin: 0 0 1em; }

.kicker {
    display: block;
    margin-bottom: 18px;
    color: var(--muted);
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.faded { color: var(--faded); }

.mark {
    padding: 0 .06em;
    color: var(--mark-text);
    background: linear-gradient(transparent 58%, var(--mark-bg) 58% 92%, transparent 92%);
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}

/* Nav */
.nav {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 28px;
    padding: 14px max(20px, calc((100vw - var(--max)) / 2));
    background: color-mix(in srgb, var(--bg) 82%, transparent);
    backdrop-filter: saturate(160%) blur(14px);
}

.brand { display: flex; align-items: center; gap: 10px; white-space: nowrap; text-decoration: none; font-weight: 700; font-size: 1.12rem; letter-spacing: -.02em; }

.brand img { border-radius: 9px; }

.nav-links { display: flex; gap: 28px; margin-left: auto; font-size: .95rem; }

.nav-links a { color: var(--muted); text-decoration: none; transition: color .15s ease; }

.nav-links a:hover { color: var(--text); }

.theme-toggle {
    display: inline-flex;
    margin-left: auto;
    padding: 9px;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: var(--panel);
    color: var(--muted);
    cursor: pointer;
    transition: color .15s ease;
}

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

.nav-links + .theme-toggle { margin-left: 0; }

.btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 12px 22px;
    border-radius: 999px;
    font-weight: 600;
    font-size: .95rem;
    text-decoration: none;
    white-space: nowrap;
    transition: transform .18s ease, box-shadow .18s ease;
}

.btn svg { flex: none; }

.btn-primary { background: var(--btn-bg); color: var(--btn-text); }

.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 22px -10px rgba(0, 0, 0, .45); }

.btn-lg { padding: 15px 26px; font-size: 1rem; }

.btn-ghost { border: 1px solid var(--border); background: var(--panel); color: var(--muted); }

/* Hero */
main { display: block; }

.hero {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 40px;
    align-items: center;
    max-width: var(--max);
    margin: 0 auto;
    padding: clamp(36px, 6vw, 72px) 20px clamp(48px, 7vw, 96px);
}

.lede { font-size: 1.18rem; color: var(--muted); max-width: 30em; margin-top: 8px; }

.store { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 32px 0 26px; }

.store-center { justify-content: center; }

.trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: .93rem; }

.trust li { display: flex; align-items: center; gap: 8px; }

.check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--lime);
    color: var(--ink);
}

.hero-device {
    position: relative;
    display: flex;
    justify-content: center;
    min-height: 600px;
}

.hero-device::before {
    content: "";
    position: absolute;
    inset: 8% 4% 10% 12%;
    border-radius: 50%;
    background: var(--lime);
    opacity: .45;
    filter: blur(70px);
}

/* Device frame */
.phone {
    position: relative;
    flex: none;
    width: 290px;
    padding: 11px;
    border-radius: 54px;
    background: #161616;
    box-shadow: inset 0 0 0 1.5px #4a4a46, inset 0 0 0 4px #161616, inset 0 0 0 5px #2c2c2a, var(--phone-shadow);
}

.phone::before, .phone::after {
    content: "";
    position: absolute;
    width: 3px;
    border-radius: 2px;
    background: #2c2c2a;
}

.phone::before { left: -3px; top: 21%; height: 11%; }

.phone::after { right: -3px; top: 27%; height: 15%; }

.phone img { display: block; width: 100%; border-radius: 44px; background: #fff; }

.hero-device .phone-front { z-index: 2; margin-left: 110px; animation: float 9s ease-in-out infinite; }

.hero-device .phone-back {
    position: absolute;
    z-index: 1;
    top: 64px;
    left: 50%;
    width: 250px;
    margin-left: -230px;
    transform: rotate(-8deg);
}

.chip {
    position: absolute;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px 16px 10px 10px;
    border-radius: 999px;
    background: var(--panel);
    box-shadow: var(--shadow);
    font-size: .92rem;
    font-weight: 600;
    white-space: nowrap;
}

.chip .check { width: 26px; height: 26px; }

.chip-1 { top: 22%; right: -2%; }

.chip-2 { bottom: 14%; left: 2%; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* Sections */
.section { max-width: var(--max); margin: 0 auto; padding: clamp(56px, 8vw, 110px) 20px; }

.section-head { max-width: 46rem; margin: 0 0 48px; }

.section-head p { color: var(--muted); font-size: 1.12rem; margin: 0; }

/* Showcase panels */
.showcase { display: grid; gap: 24px; }

.panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 40px;
    min-height: 540px;
    padding: 0 clamp(28px, 6vw, 72px);
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 32px;
    background: var(--panel);
}

.panel:nth-child(even) .panel-copy { order: 2; }

.panel:nth-child(3) { background: var(--panel-tint); border-color: transparent; }

.panel-copy { padding: 56px 0; }

.panel-copy h3 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); letter-spacing: -.035em; line-height: 1.08; font-weight: 700; margin-bottom: .45em; }

.panel-copy p { color: var(--muted); font-size: 1.08rem; max-width: 26em; margin: 0; }

.panel-n {
    display: inline-block;
    margin-bottom: 20px;
    padding: 3px 11px;
    border-radius: 999px;
    background: var(--lime);
    color: var(--ink);
    font-size: .82rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.panel-device { display: flex; justify-content: center; align-self: end; }

.panel-device .phone { margin: 56px 0 -170px; }

@supports (animation-timeline: view()) {
    @media (prefers-reduced-motion: no-preference) {
        .panel, .card, .step {
            animation: rise linear both;
            animation-timeline: view();
            animation-range: entry 0% entry 40%;
        }
    }
}

@keyframes rise {
    from { opacity: 0; transform: translateY(36px); }
    to { opacity: 1; transform: none; }
}

/* Feature cards */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.card {
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--panel);
    transition: border-color .2s ease, box-shadow .2s ease;
}

.card:hover { border-color: color-mix(in srgb, var(--lime) 70%, var(--border)); box-shadow: var(--shadow); }

.card-icon {
    display: inline-flex;
    padding: 11px;
    border-radius: 14px;
    background: var(--lime);
    color: var(--ink);
    margin-bottom: 18px;
}

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

/* Privacy band */
.band {
    position: relative;
    width: calc(min(var(--max), 100%) - 40px);
    margin: 0 auto;
    padding: clamp(56px, 8vw, 104px) clamp(28px, 6vw, 80px);
    overflow: hidden;
    border-radius: 36px;
    background: var(--ink);
    color: #f3f3ee;
}

.band-icon {
    position: absolute;
    right: -60px;
    bottom: -60px;
    width: 340px;
    opacity: .9;
    transform: rotate(-12deg);
}

.band .kicker { color: var(--lime); }

.band-statement { position: relative; font-size: clamp(2rem, 5vw, 3.6rem); font-weight: 700; letter-spacing: -.035em; line-height: 1.05; margin: 0 0 24px; max-width: 14em; }

.band-statement .accent { color: var(--lime); }

.band-note { position: relative; color: #b4b4ac; font-size: 1.1rem; max-width: 34em; margin: 0; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; list-style: none; padding: 0; margin: 0; }

.step { padding: 30px 28px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--border); }

.step-n {
    display: block;
    margin-bottom: 26px;
    color: var(--faded);
    font-size: 3.2rem;
    font-weight: 700;
    letter-spacing: -.04em;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.step p { color: var(--muted); font-size: .96rem; margin: 0; }

/* FAQ */
.faq-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: start; }

.faq-layout .section-head { margin: 0; position: sticky; top: 100px; }

.faq { display: grid; gap: 10px; max-width: 760px; margin: 0 auto; }

.faq-item { border: 1px solid var(--border); border-radius: 18px; background: var(--panel); }

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

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

.chevron {
    position: relative;
    flex: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--bg);
    transition: transform .2s ease, background .2s ease;
}

.chevron::before, .chevron::after {
    content: "";
    position: absolute;
    top: 13px;
    left: 8px;
    width: 12px;
    height: 2px;
    border-radius: 1px;
    background: currentColor;
}

.chevron::after { transform: rotate(90deg); transition: transform .2s ease; }

.faq-item[open] .chevron { background: var(--lime); color: var(--ink); }

.faq-item[open] .chevron::after { transform: rotate(0); }

.faq-answer p { color: var(--muted); padding: 0 22px 20px; margin: 0; }

/* Final CTA */
.cta {
    width: calc(min(var(--max), 100%) - 40px);
    margin: 0 auto clamp(56px, 8vw, 96px);
    padding: clamp(56px, 8vw, 96px) 24px;
    border-radius: 36px;
    background: var(--lime);
    color: var(--ink);
    text-align: center;
}

.cta-icon { display: block; margin: 0 auto 26px; border-radius: 22px; box-shadow: 0 20px 40px -18px rgba(0, 0, 0, .5); }

.cta h2 { max-width: 14em; margin-left: auto; margin-right: auto; }

.cta p { color: #4b5512; font-size: 1.12rem; }

.cta .btn-primary { background: var(--ink); color: #fff; }

.cta .btn-ghost { background: transparent; border-color: rgba(35, 35, 35, .25); color: var(--ink); }

/* Prose pages */
.prose { max-width: 760px; margin: 0 auto; padding: clamp(36px, 6vw, 72px) 20px; }

.prose h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); }

.prose h2 { font-size: 1.35rem; letter-spacing: -.02em; margin-top: 2em; }

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

.prose a { text-decoration-color: var(--lime); text-decoration-thickness: 2px; text-underline-offset: 3px; }

.updated { font-size: .9rem; }

.contact a { font-weight: 650; color: var(--text); }

.posts { display: grid; gap: 14px; margin-top: 28px; }

.post-card a {
    display: block;
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--panel);
    text-decoration: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.post-card a:hover { border-color: color-mix(in srgb, var(--lime) 70%, var(--border)); box-shadow: var(--shadow); }

.post-card h2 { margin: 0 0 .3em; font-size: 1.25rem; color: var(--text); }

.post-card p { margin: 0 0 .5em; }

.post-card time, .empty { color: var(--muted); font-size: .9rem; }

.back a { color: var(--muted); text-decoration: none; font-size: .92rem; }

.post-cta { margin-top: 2.5em; }

.notfound { text-align: center; }

/* Footer */
.footer {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 22px 40px;
    align-items: center;
    max-width: var(--max);
    margin: 0 auto;
    padding: 40px 20px 36px;
    color: var(--muted);
    font-size: .9rem;
}

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

.lang { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 10px; }

.lang-label { font-weight: 600; color: var(--text); }

.lang ul { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }

.lang a { text-decoration: none; padding: 4px 11px; border-radius: 999px; border: 1px solid var(--border); }

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

.lang a[aria-current="true"] { border-color: var(--lime); background: var(--lime); color: var(--ink); }

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

.footer-legal a { text-decoration: none; }

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

.footer-copy {
    grid-column: 1 / -1;
    margin: 18px 0 0;
    padding-top: 28px;
    border-top: 1px solid var(--border);
    color: var(--faded);
    font-size: .85rem;
    text-align: center;
}

.footer-copy a { color: var(--muted); text-decoration: none; }

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

.heart { color: #e5484d; }

.sep { margin: 0 10px; }

@media (prefers-reduced-motion: reduce) {
    .hero-device .phone-front { animation: none; }
    html { scroll-behavior: auto; }
}

@media (max-width: 900px) {
    .hero { grid-template-columns: 1fr; text-align: center; }
    .lede, .trust { margin-left: auto; margin-right: auto; }
    .store, .trust { justify-content: center; }
    .nav-links { display: none; }
    .theme-toggle { margin-left: auto; }
    .panel { grid-template-columns: 1fr; gap: 0; min-height: 0; }
    .panel:nth-child(even) .panel-copy { order: 0; }
    .panel-copy { padding: 44px 0 0; }
    .panel-device .phone { margin: 36px 0 -200px; }
    .faq-layout { grid-template-columns: 1fr; gap: 28px; }
    .faq-layout .section-head { position: static; }
    .footer { grid-template-columns: 1fr; }
    .lang { justify-content: flex-start; }
    .band-icon { display: none; }
}

@media (max-width: 560px) {
    .nav { gap: 12px; }
    .hero-device { min-height: 470px; }
    .hero-device .phone-front { width: 230px; margin-left: 70px; padding: 9px; border-radius: 44px; }
    .hero-device .phone-back { width: 200px; margin-left: -170px; top: 50px; padding: 9px; border-radius: 40px; }
    .hero-device .phone img { border-radius: 36px; }
    .chip { font-size: .82rem; }
    .chip-1 { right: 0; }
    .panel-device .phone { width: 250px; }
}
