/* Lampara App landing page. Same monochrome "Ledger" look as the app (src/index.css). */
:root {
    --bg: oklch(0.985 0 0);
    --fg: oklch(0.145 0 0);
    --card: oklch(1 0 0);
    --muted: oklch(0.96 0 0);
    --muted-fg: oklch(0.45 0 0);
    --border: oklch(0.9 0 0);
    --primary: oklch(0.205 0 0);
    --primary-fg: oklch(0.985 0 0);
    --radius: 0.625rem;
    color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
    :root {
        --bg: oklch(0.145 0 0);
        --fg: oklch(0.985 0 0);
        --card: oklch(0.205 0 0);
        --muted: oklch(0.269 0 0);
        --muted-fg: oklch(0.708 0 0);
        --border: oklch(1 0 0 / 12%);
        --primary: oklch(0.922 0 0);
        --primary-fg: oklch(0.205 0 0);
    }
    .brand img { filter: invert(1); }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--fg);
    font: 400 1rem/1.6 "Instrument Sans", system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.1; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 2px; }

.wrap { width: 100%; max-width: 72rem; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 768px) { .wrap { padding: 0 2rem; } }
.muted { color: var(--muted-fg); }
.mono { font-family: "Azeret Mono", ui-monospace, monospace; font-variant-numeric: tabular-nums; }
.eyebrow { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-fg); }

/* Header */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in oklch, var(--bg) 88%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 4rem; gap: 1rem; }
.brand { display: flex; align-items: center; gap: 0.6rem; font-weight: 700; font-size: 1.125rem; text-decoration: none; letter-spacing: -0.02em; }
.brand img { width: 2rem; height: 2rem; object-fit: contain; }
.top nav { display: flex; align-items: center; gap: 1.5rem; font-size: 0.9rem; }
.top nav a { text-decoration: none; color: var(--muted-fg); }
.top nav a:hover { color: var(--fg); }
.top nav a.btn, .top nav a.btn:hover { color: var(--primary-fg); }
@media (max-width: 720px) { .top nav a:not(.btn) { display: none; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 2.75rem; padding: 0 1.25rem; border-radius: var(--radius); background: var(--primary); color: var(--primary-fg); font-weight: 600; font-size: 0.95rem; text-decoration: none; border: 1px solid var(--primary); transition: opacity 0.15s; }
.btn:hover { opacity: 0.88; }
.btn.ghost { background: transparent; color: var(--fg); border-color: var(--border); }
.btn.ghost:hover { background: var(--muted); opacity: 1; }
.btn.small { min-height: 2.25rem; padding: 0 0.9rem; font-size: 0.875rem; }

/* Hero */
.hero { position: relative; isolation: isolate; overflow: hidden; padding: 4rem 0 0; text-align: center; }
/* Ledger ruling: faint horizontal rules that fade toward the edges, as on the app's sign-in page. */
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0.7; background: repeating-linear-gradient(to bottom, transparent 0, transparent 31px, var(--border) 31px, var(--border) 32px); mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black, transparent 75%); }
.hero h1 { font-size: clamp(2.25rem, 6vw, 4rem); font-weight: 700; }
.hero h1 span { display: block; color: var(--muted-fg); }
.hero .lead { max-width: 38rem; margin: 1.25rem auto 0; font-size: clamp(1rem, 2vw, 1.2rem); color: var(--muted-fg); }
.cta { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; margin-top: 2rem; }
.hero .note { margin-top: 0.9rem; font-size: 0.85rem; color: var(--muted-fg); }
.hero .shot { margin-top: 3.5rem; }

/* Screenshots */
.shot { border-radius: 0.9rem; overflow: hidden; background: var(--card); box-shadow: 0 0 0 1px var(--border), 0 24px 60px -30px rgb(0 0 0 / 35%); }
.shot img { width: 100%; }
.phone { max-width: 15rem; border-radius: 1.75rem; border: 6px solid var(--fg); overflow: hidden; background: var(--card); box-shadow: 0 24px 60px -30px rgb(0 0 0 / 45%); }

/* Sections */
section { padding: 5rem 0; }
section + section { border-top: 1px solid var(--border); }
.head { max-width: 40rem; margin-bottom: 2.5rem; }
.head h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); margin-top: 0.6rem; }
.head p { margin-top: 0.9rem; color: var(--muted-fg); font-size: 1.05rem; }

.feature { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) {
    .feature { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 4rem; }
    .feature.flip > :first-child { order: 2; }
}
.feature h2 { font-size: clamp(1.6rem, 3.5vw, 2.25rem); margin-top: 0.6rem; }
.feature p { margin-top: 0.9rem; color: var(--muted-fg); }
.ticks { list-style: none; padding: 0; margin: 1.5rem 0 0; border-top: 1px solid var(--border); }
.ticks li { display: flex; gap: 0.9rem; padding: 0.7rem 0; border-bottom: 1px solid var(--border); font-size: 0.95rem; }
.ticks li span:first-child { width: 1.25rem; flex: none; color: var(--muted-fg); font-size: 0.75rem; line-height: 1.6rem; }
.stack { display: grid; gap: 1rem; }
.stack .shot + .shot { margin-left: 12%; margin-top: -18%; }

.phones { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) { .phones { grid-template-columns: 1fr auto; gap: 4rem; } }
.phones .pair { display: flex; gap: 1.25rem; justify-content: center; }
.phones .pair .phone:last-child { margin-top: 2.5rem; }
@media (max-width: 520px) { .phones .pair .phone:last-child { display: none; } }

/* Cards */
.grid3 { display: grid; gap: 1rem; }
@media (min-width: 800px) { .grid3 { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--card); border-radius: var(--radius); box-shadow: 0 0 0 1px var(--border); padding: 1.5rem; }
.card h3 { font-size: 1.1rem; }
.card p { margin-top: 0.5rem; color: var(--muted-fg); font-size: 0.95rem; }
.card .num { font-size: 0.75rem; color: var(--muted-fg); margin-bottom: 0.75rem; display: block; }

/* Pricing */
.price { display: flex; flex-direction: column; }
.price.best { box-shadow: 0 0 0 2px var(--fg); }
.price .tag { align-self: flex-start; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; padding: 0.15rem 0.55rem; border-radius: 99px; background: var(--primary); color: var(--primary-fg); margin-bottom: 0.75rem; }
.price .amount { margin-top: 1rem; font-size: 2.1rem; font-weight: 700; letter-spacing: -0.03em; }
.price .amount small { font-size: 0.9rem; font-weight: 400; color: var(--muted-fg); letter-spacing: 0; }
.price ul { list-style: none; padding: 0; margin: 1.25rem 0 1.5rem; font-size: 0.93rem; flex: 1; }
.price li { padding: 0.45rem 0; border-top: 1px solid var(--border); }
.fine { margin-top: 1.5rem; font-size: 0.9rem; color: var(--muted-fg); max-width: 46rem; }

/* FAQ */
.faq { max-width: 46rem; border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { cursor: pointer; padding: 1rem 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted-fg); font-weight: 400; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 0 1.1rem; color: var(--muted-fg); }

/* Contact + footer */
.contact { text-align: center; }
.contact .head { margin-inline: auto; }
.maker { margin-top: 2.5rem; font-size: 0.95rem; color: var(--muted-fg); }
footer { border-top: 1px solid var(--border); padding: 2rem 0; font-size: 0.875rem; color: var(--muted-fg); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; justify-content: space-between; }
footer nav { display: flex; gap: 1.25rem; }

/* Legal pages */
.legal { max-width: 44rem; padding: 3.5rem 1rem 5rem; margin: 0 auto; }
.legal h1 { font-size: 2.25rem; }
.legal h2 { font-size: 1.25rem; margin-top: 2.25rem; }
.legal p, .legal ul { margin-top: 0.8rem; color: var(--muted-fg); }
.legal ul { padding-left: 1.2rem; }
.legal li { margin-top: 0.35rem; }
.legal strong { color: var(--fg); }

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