/* ==========================================================================
   LynxApps Design System
   Shared styles for all app pages. Per-app accent set via [data-theme].
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* ---------- Tokens ---------- */
:root {
    /* Brand default (indigo/violet) */
    --g1: #6366f1;
    --g2: #8b5cf6;
    --accent: #6366f1;
    --accent-soft: #eef2ff;
    --accent-border: #e0e7ff;

    /* Neutrals */
    --ink: #0f172a;
    --ink-2: #334155;
    --muted: #64748b;
    --muted-2: #94a3b8;
    --line: #e2e8f0;
    --bg: #f8fafc;
    --card: #ffffff;
    --dark: #0b1020;

    /* Effects */
    --radius: 16px;
    --radius-sm: 10px;
    --radius-lg: 24px;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .05);
    --shadow: 0 10px 30px -12px rgba(15, 23, 42, .18);
    --shadow-lg: 0 30px 60px -20px rgba(15, 23, 42, .28);
    --ring: 0 0 0 4px color-mix(in srgb, var(--accent) 14%, transparent);

    --maxw: 1180px;
    --maxw-doc: 880px;
    --ease: cubic-bezier(.22, 1, .36, 1);
}

/* Per-app themes */
[data-theme="photo"]   { --g1:#6366f1; --g2:#8b5cf6; --accent:#6d5dfb; --accent-soft:#eef0ff; --accent-border:#e0e3ff; }
[data-theme="pill"]    { --g1:#0ea5e9; --g2:#14b8a6; --accent:#0d9488; --accent-soft:#ecfeff; --accent-border:#cffafe; }
[data-theme="receipt"] { --g1:#f59e0b; --g2:#f97316; --accent:#ea7317; --accent-soft:#fff7ed; --accent-border:#fed7aa; }
[data-theme="vow"]     { --g1:#7c3aed; --g2:#db2777; --accent:#7c3aed; --accent-soft:#faf5ff; --accent-border:#e9d5ff; }
[data-theme="mhp"]     { --g1:#0ea5e9; --g2:#06b6d4; --accent:#0284c7; --accent-soft:#cffafe; --accent-border:#a5f3fc; }

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

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; transition: color .2s var(--ease); }
::selection { background: color-mix(in srgb, var(--accent) 22%, transparent); }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.container-doc { max-width: var(--maxw-doc); margin: 0 auto; padding: 0 24px; }

.gradient-text {
    background: linear-gradient(120deg, var(--g1), var(--g2));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 16px;
}
.eyebrow::before {
    content: "";
    width: 22px; height: 2px;
    background: linear-gradient(90deg, var(--g1), var(--g2));
    border-radius: 2px;
}

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: color-mix(in srgb, var(--card) 80%, transparent);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--line);
}
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 30px; width: auto; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a {
    color: var(--ink-2);
    font-weight: 500;
    font-size: 15px;
    position: relative;
}
.nav a:hover { color: var(--accent); }
.nav a.muted { color: var(--muted); font-size: 14px; }
.nav .nav-cta {
    background: linear-gradient(120deg, var(--g1), var(--g2));
    color: #fff;
    padding: 9px 18px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 14px;
    box-shadow: var(--shadow-sm);
}
.nav .nav-cta:hover { color: #fff; transform: translateY(-1px); box-shadow: var(--shadow); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; font-size: 24px; color: var(--ink); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 26px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 15px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all .25s var(--ease);
    white-space: nowrap;
}
.btn-primary {
    background: linear-gradient(120deg, var(--g1), var(--g2));
    color: #fff;
    box-shadow: 0 12px 24px -10px color-mix(in srgb, var(--accent) 60%, transparent);
}
.btn-primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 18px 32px -10px color-mix(in srgb, var(--accent) 65%, transparent); }
.btn-ghost {
    background: var(--card);
    color: var(--ink);
    border-color: var(--line);
    box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { color: var(--ink); border-color: var(--accent); transform: translateY(-2px); }
.btn-soft { background: var(--accent-soft); color: var(--accent); border-color: var(--accent-border); }
.btn-soft:hover { color: var(--accent); transform: translateY(-2px); }
.btn-on-dark { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.25); backdrop-filter: blur(6px); }
.btn-on-dark:hover { color: #fff; background: rgba(255,255,255,.22); transform: translateY(-2px); }
.btn-white { background: #fff; color: var(--ink); box-shadow: var(--shadow); }
.btn-white:hover { color: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow-lg); }

/* ---------- Badges ---------- */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .02em;
}
.badge-live { background: rgba(34,197,94,.14); color: #15803d; }
.badge-live::before { content:""; width:7px; height:7px; border-radius:50%; background:#22c55e; box-shadow:0 0 0 3px rgba(34,197,94,.2); }
.badge-review { background: rgba(245,158,11,.16); color: #b45309; }
.badge-review::before { content:""; width:7px; height:7px; border-radius:50%; background:#f59e0b; box-shadow:0 0 0 3px rgba(245,158,11,.2); }
.badge-glass { background: rgba(255,255,255,.18); color:#fff; border:1px solid rgba(255,255,255,.28); }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.section-head h2 { font-size: clamp(28px, 4vw, 44px); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.section-head p { color: var(--muted); font-size: 18px; margin-top: 16px; }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(1200px 500px at 15% -10%, color-mix(in srgb, var(--g1) 22%, transparent), transparent 60%),
        radial-gradient(900px 500px at 100% 0%, color-mix(in srgb, var(--g2) 20%, transparent), transparent 55%),
        var(--bg);
    padding: 110px 0 100px;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 56px;
    align-items: center;
}
.hero h1 {
    font-size: clamp(36px, 6vw, 62px);
    font-weight: 900;
    letter-spacing: -.03em;
    line-height: 1.04;
    margin-bottom: 22px;
}
.hero .lead { font-size: 19px; color: var(--ink-2); max-width: 560px; margin-bottom: 34px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-meta { display: flex; gap: 28px; margin-top: 36px; flex-wrap: wrap; }
.hero-meta .m-val { font-size: 24px; font-weight: 800; }
.hero-meta .m-lbl { font-size: 13px; color: var(--muted); }

/* Phone mockup */
.device {
    position: relative;
    width: 280px;
    height: 570px;
    margin: 0 auto;
    border-radius: 44px;
    background: linear-gradient(160deg, #1f2937, #0b1020);
    padding: 14px;
    box-shadow: var(--shadow-lg), inset 0 0 0 2px rgba(255,255,255,.06);
}
.device::before {
    content: "";
    position: absolute;
    top: 18px; left: 50%; transform: translateX(-50%);
    width: 120px; height: 26px; border-radius: 999px;
    background: #0b1020; z-index: 3;
}
.device-screen {
    width: 100%; height: 100%;
    border-radius: 32px;
    background: linear-gradient(165deg, color-mix(in srgb, var(--g1) 90%, #000), var(--g2));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    color: #fff;
    text-align: center;
    padding: 30px;
    overflow: hidden;
}
.device-screen .d-icon { font-size: 64px; filter: drop-shadow(0 8px 16px rgba(0,0,0,.25)); }
.device-screen .d-title { font-size: 22px; font-weight: 800; }
.device-screen .d-sub { font-size: 14px; opacity: .85; }
.device-float {
    position: absolute;
    background: var(--card);
    border-radius: 14px;
    box-shadow: var(--shadow);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
    animation: float 4s var(--ease) infinite;
}
.device-float .dot { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--accent-soft); font-size: 16px; }
.device-float.f1 { top: 80px; left: -42px; }
.device-float.f2 { bottom: 110px; right: -50px; animation-delay: 1.5s; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

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

.feature {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 32px;
    transition: all .3s var(--ease);
}
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.feature .f-icon {
    width: 54px; height: 54px;
    border-radius: 14px;
    display: grid; place-items: center;
    font-size: 26px;
    margin-bottom: 18px;
    background: linear-gradient(140deg, color-mix(in srgb, var(--g1) 16%, #fff), color-mix(in srgb, var(--g2) 16%, #fff));
}
.feature h3 { font-size: 19px; font-weight: 700; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 15px; }

/* ---------- Stats strip ---------- */
.stats {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 44px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    box-shadow: var(--shadow);
}
.stat { text-align: center; }
.stat .s-val { font-size: 36px; font-weight: 800; line-height: 1; }
.stat .s-lbl { font-size: 13px; color: var(--muted); margin-top: 8px; text-transform: uppercase; letter-spacing: .05em; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.step {
    position: relative;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 32px;
}
.step::before {
    counter-increment: step;
    content: counter(step);
    display: grid; place-items: center;
    width: 40px; height: 40px;
    border-radius: 12px;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(140deg, var(--g1), var(--g2));
    margin-bottom: 16px;
}
.step h3 { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 15px; }

/* ---------- Pricing ---------- */
.pricing { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.price-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 32px 26px;
    text-align: center;
    transition: all .3s var(--ease);
    position: relative;
    display: flex;
    flex-direction: column;
}
.price-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.price-card.featured { border: 2px solid var(--accent); box-shadow: var(--shadow); }
.price-card .tag-pop {
    position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
    background: linear-gradient(120deg, var(--g1), var(--g2));
    color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .05em;
    padding: 5px 14px; border-radius: 999px; text-transform: uppercase;
}
.price-card h3 { font-size: 17px; font-weight: 700; color: var(--muted); }
.price-card .amount { font-size: 42px; font-weight: 900; letter-spacing: -.02em; margin: 10px 0 2px; }
.price-card .per { font-size: 13px; color: var(--muted); margin-bottom: 22px; }
.price-card ul { list-style: none; text-align: left; margin-bottom: 26px; flex-grow: 1; }
.price-card li { padding: 8px 0; font-size: 14px; color: var(--ink-2); display: flex; gap: 10px; }
.price-card li::before { content: "✓"; color: var(--accent); font-weight: 800; }

/* ---------- CTA / Download ---------- */
.cta {
    position: relative;
    overflow: hidden;
    background: linear-gradient(130deg, var(--g1), var(--g2));
    color: #fff;
    border-radius: var(--radius-lg);
    padding: 72px 40px;
    text-align: center;
}
.cta::after {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(600px 200px at 80% 0%, rgba(255,255,255,.18), transparent 60%);
    pointer-events: none;
}
.cta h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; letter-spacing: -.02em; position: relative; }
.cta p { font-size: 18px; opacity: .92; max-width: 560px; margin: 16px auto 32px; position: relative; }
.cta .hero-cta { justify-content: center; position: relative; }

.qr {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    background: #fff;
    color: var(--ink);
    padding: 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}
.qr img { width: 168px; height: 168px; border-radius: 10px; }
.qr span { font-size: 13px; color: var(--muted); font-weight: 600; }

/* Review notice */
.review-note {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.25);
    border-radius: var(--radius);
    padding: 18px 24px;
    color: #fff;
    backdrop-filter: blur(6px);
    font-size: 15px;
}

/* ---------- Footer ---------- */
.site-footer {
    background: var(--dark);
    color: #cbd5e1;
    padding: 64px 0 32px;
    margin-top: 0;
}
.footer-top {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand img { height: 30px; margin-bottom: 16px; }
.footer-brand p { color: var(--muted-2); font-size: 14px; max-width: 280px; }
.footer-col h4 { color: #fff; font-size: 14px; font-weight: 700; margin-bottom: 16px; letter-spacing: .03em; }
.footer-col a { display: block; color: #94a3b8; font-size: 14px; padding: 6px 0; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 28px;
    font-size: 13px;
    color: var(--muted-2);
}
.footer-bottom a { color: var(--muted-2); }
.footer-bottom a:hover { color: #fff; }

/* ==========================================================================
   Document pages (Privacy / Terms / Support)
   ========================================================================== */
.doc-hero {
    background:
        radial-gradient(900px 360px at 12% -20%, color-mix(in srgb, var(--g1) 16%, transparent), transparent 60%),
        var(--bg);
    padding: 56px 0 40px;
    border-bottom: 1px solid var(--line);
}
.breadcrumb { font-size: 14px; color: var(--muted); margin-bottom: 22px; display: flex; gap: 8px; flex-wrap: wrap; }
.breadcrumb a { color: var(--accent); }
.breadcrumb span { color: var(--muted-2); }
.doc-hero h1 { font-size: clamp(30px, 4.5vw, 46px); font-weight: 800; letter-spacing: -.02em; }
.doc-hero .updated { color: var(--muted); font-size: 14px; margin-top: 10px; }

.doc-body { padding: 56px 0 90px; }
.doc-body h2 {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -.01em;
    margin: 48px 0 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--line);
}
.doc-body h2:first-child { margin-top: 0; }
.doc-body h3 { font-size: 19px; font-weight: 700; margin: 28px 0 12px; }
.doc-body p { color: var(--ink-2); margin-bottom: 16px; }
.doc-body ul, .doc-body ol { margin: 0 0 18px 22px; }
.doc-body li { color: var(--ink-2); margin-bottom: 10px; }
.doc-body strong { color: var(--ink); font-weight: 700; }

.callout {
    border-radius: var(--radius);
    padding: 20px 22px;
    margin: 26px 0;
    border: 1px solid var(--accent-border);
    background: var(--accent-soft);
}
.callout p { margin: 0; color: var(--ink-2); }
.callout-warn { background: #fff7ed; border-color: #fed7aa; }
.callout-warn p { color: #9a3412; }

.steps-list {
    background: var(--accent-soft);
    border: 1px solid var(--accent-border);
    border-radius: var(--radius);
    padding: 24px 24px 24px 44px;
    margin: 22px 0;
}
.steps-list li { margin-bottom: 12px; }

.doc-contact {
    background: linear-gradient(130deg, var(--g1), var(--g2));
    color: #fff;
    border-radius: var(--radius-lg);
    padding: 44px;
    text-align: center;
    margin-top: 56px;
}
.doc-contact h2 { border: 0; color: #fff; margin: 0 0 12px; padding: 0; }
.doc-contact p { color: rgba(255,255,255,.92); margin-bottom: 22px; }

/* Quick links (support) */
.quick-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 8px 0 12px; }
.qlink {
    background: var(--card);
    border: 1px solid var(--line);
    border-left: 4px solid var(--accent);
    border-radius: var(--radius-sm);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}
.qlink h3 { margin: 0 0 6px; font-size: 17px; color: var(--accent); }
.qlink p { font-size: 14px; color: var(--muted); margin: 0 0 10px; }

/* FAQ accordion */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.faq-item:hover { border-color: var(--accent-border); box-shadow: var(--shadow-sm); }
.faq-q {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 20px 22px;
    cursor: pointer;
    font-weight: 600;
    color: var(--ink);
    user-select: none;
    list-style: none;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q .chev {
    flex-shrink: 0;
    width: 26px; height: 26px;
    border-radius: 8px;
    display: grid; place-items: center;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 18px;
    transition: transform .25s var(--ease);
}
.faq-item[open] .faq-q .chev { transform: rotate(45deg); }
.faq-a { padding: 0 22px 20px; color: var(--ink-2); }
.faq-a ul, .faq-a ol { margin: 8px 0 8px 20px; }
.faq-a li { margin-bottom: 8px; }

/* ---------- Reveal-on-scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero .lead { margin-left: auto; margin-right: auto; }
    .hero-cta, .hero-meta { justify-content: center; }
    .hero-visual { margin-top: 20px; }
    .grid-3, .steps { grid-template-columns: repeat(2, 1fr); }
    .pricing { grid-template-columns: repeat(2, 1fr); }
    .stats { grid-template-columns: repeat(2, 1fr); }
    .footer-top { grid-template-columns: 1fr 1fr; }
    .quick-links { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
    .container, .container-doc { padding: 0 18px; }
    .section { padding: 64px 0; }
    .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--card); border-bottom: 1px solid var(--line); padding: 8px 0; box-shadow: var(--shadow); }
    .nav.open { display: flex; }
    .nav a { padding: 12px 24px; width: 100%; }
    .nav .nav-cta { margin: 8px 24px; text-align: center; }
    .nav-toggle { display: block; }
    .grid-3, .grid-2, .steps, .pricing, .stats { grid-template-columns: 1fr; }
    .footer-top { grid-template-columns: 1fr; gap: 28px; }
    .cta { padding: 48px 24px; }
    .doc-contact { padding: 32px 22px; }
    .hero { padding: 72px 0 64px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
}
