/* LookDB — public presentation page. Reuses the app's tokens (app.css). */

.landing {
    --lp-gutter: clamp(16px, 4vw, 40px);
    --lp-max: 1180px;
    --lp-sticky: #f5d565;
    --lp-sticky-ink: #3d3200;
    font-size: 16px;
    line-height: 1.6;
    background: var(--bg);
    overflow-x: clip;
}

/* Parallax ----------------------------------------------------------------------
   landing.js sets --py (vertical shift) on [data-parallax], --dots on .lp-dots and
   --tilt on the hero stage. "translate" composes with the elements' own transforms. */
.lp-dots { position: fixed; inset: -22px 0 -22px; z-index: -1; pointer-events: none; background: radial-gradient(var(--canvas-dot) 1.1px, transparent 1.1px) 0 0 / 22px 22px; translate: 0 var(--dots, 0px); will-change: translate; }
[data-parallax] { translate: 0 var(--py, 0px); }
.is-parallax [data-parallax] { will-change: translate; }
.lp-hero h1[data-parallax] { opacity: var(--fade, 1); }
.lp-stage { perspective: 1800px; }
.lp-stage img { transform: rotateX(var(--tilt, 0deg)) scale(var(--zoom, 1)); transform-origin: 50% 0; }
.landing code { font-family: var(--font-mono); font-size: .88em; padding: 1px 5px; border-radius: 5px; background: var(--bg-sunken); color: var(--ink); }
.landing kbd { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 6px; background: var(--panel); font: 600 12px var(--font-mono); color: var(--ink); }
/* Elements sliding in from the sides must never widen the page. */
html:has(body.landing) { overflow-x: clip; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.lp-wrap { width: 100%; max-width: calc(var(--lp-max) + 2 * var(--lp-gutter)); margin: 0 auto; padding: 0 var(--lp-gutter); }
.lp-h2 { font-size: clamp(28px, 3.4vw, 42px); letter-spacing: -0.03em; max-width: 22ch; }

/* Top bar ------------------------------------------------------------------- */
.lp-bar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 28px; height: 64px; padding: 0 var(--lp-gutter); background: color-mix(in srgb, var(--panel) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.lp-bar__nav { display: flex; gap: 2px; }
.lp-bar__nav a { padding: 6px 10px; border-radius: var(--radius-sm); color: var(--ink-2); font-weight: 500; font-size: 14px; }
.lp-bar__nav a:hover { background: var(--bg-sunken); text-decoration: none; }
.lp-bar__end { margin-left: auto; display: flex; align-items: center; gap: 6px; }

/* Hero ------------------------------------------------------------------------ */
.lp-hero { padding: clamp(48px, 9vw, 112px) 0 0; }
.lp-hero__text { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px clamp(32px, 5vw, 72px); align-items: end; }
.lp-hero h1 { font-size: clamp(40px, 6.4vw, 84px); font-weight: 700; letter-spacing: -0.04em; line-height: 1; max-width: 13ch; }
.lp-hero__side { display: grid; justify-items: start; padding-bottom: 6px; }
.lp-hero__lead { max-width: 46ch; font-size: clamp(17px, 1.5vw, 18.5px); color: var(--ink-2); }
.lp-hero__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.lp-hero__cta .btn--google { width: auto; }
.lp-dialects { display: flex; flex-wrap: wrap; gap: 6px; margin: 28px 0 0; padding: 0; list-style: none; }
.lp-dialects .db-badge { height: 24px; padding: 0 9px; font-size: 11px; }

.lp-wrap--wide { max-width: calc(1280px + 2 * var(--lp-gutter)); }
.lp-stage { position: relative; margin: clamp(48px, 7vw, 80px) 0 0; cursor: zoom-in; }
.lp-sticky[data-parallax] { z-index: 1; }
.lp-stage img { display: block; width: 100%; height: auto; border-radius: 16px; border: 1px solid var(--line-strong); box-shadow: 0 30px 80px -20px rgb(20 20 50 / 28%), 0 4px 16px rgb(20 20 30 / 8%); background: var(--canvas); }

/* The one loud element: a sticky note from the editor, pinned on the screenshot. */
.lp-sticky {
    position: absolute; right: clamp(-24px, -1.5vw, -8px); bottom: clamp(-40px, -3vw, -20px); width: min(270px, 40%);
    padding: 16px 18px 20px; background: var(--lp-sticky); color: var(--lp-sticky-ink);
    font: 500 15px/1.45 var(--font-ui); border-radius: 3px 3px 14px 3px;
    box-shadow: 0 18px 30px -12px rgb(60 45 0 / 35%), 0 2px 4px rgb(60 45 0 / 15%);
    transform: rotate(2.5deg); transform-origin: 20% 0;
    animation: lp-pin .7s cubic-bezier(.2, .9, .3, 1.3) .5s both;
}
.lp-sticky b { font: 600 13.5px var(--font-mono); }
@keyframes lp-pin { from { opacity: 0; transform: rotate(10deg) translateY(-18px) scale(.9); } }

/* Steps (a real sequence: numbered) ---------------------------------------- */
.lp-steps { padding-top: clamp(96px, 12vw, 160px); }
.lp-steps__list { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 36px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line-strong); }
.lp-steps__list li { counter-increment: step; position: relative; padding: 28px 28px 0 0; }
.lp-steps__list li + li { padding-left: 28px; border-left: 1px solid var(--line); }
.lp-steps__list li::before { content: counter(step); display: grid; place-items: center; width: 30px; height: 30px; margin-bottom: 16px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font: 700 14px var(--font-display); }
.lp-steps__list h3 { font-size: 22px; margin-bottom: 8px; }
.lp-steps__list p { color: var(--ink-2); max-width: 40ch; }

/* Feature rows ------------------------------------------------------------- */
.lp-feature { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: center; padding-top: clamp(96px, 12vw, 160px); }
.lp-feature--flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.lp-feature--flip .lp-feature__text { order: 2; }
.lp-feature__text { display: grid; gap: 16px; align-content: start; }
.lp-feature__text > p { color: var(--ink-2); max-width: 54ch; }
.lp-feature__media { margin: 0; }
.lp-shot { margin: 0; cursor: zoom-in; }
.lp-shot img { display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line-strong); box-shadow: var(--shadow-pop); background: var(--panel); transition: transform .2s; }
.lp-shot:hover img { transform: translateY(-2px); }
.lp-pair { display: grid; gap: 18px; }

.lp-list { display: grid; gap: 10px; margin: 4px 0 0; padding: 0; list-style: none; }
.lp-list li { position: relative; padding-left: 22px; color: var(--ink-2); }
.lp-list li::before { content: ''; position: absolute; left: 2px; top: .62em; width: 10px; height: 8px; border-radius: 2px; background: var(--accent); }
.lp-list strong { color: var(--ink); }

.lp-card { display: inline-block; padding: 0 6px; border: 1px solid var(--line-strong); border-radius: 5px; background: var(--panel); font: 600 13px/1.5 var(--font-mono); color: var(--ink); }

.lp-keys { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 4px 0; }
.lp-keys div { display: flex; align-items: center; gap: 8px; }
.lp-keys dt, .lp-keys dd { margin: 0; }
.lp-keys dd { color: var(--ink-2); font-size: 14px; }

.lp-code { margin: 4px 0 0; padding: 16px 18px; overflow-x: auto; border-radius: var(--radius); background: #17181c; color: #e4e4ea; font: 12.5px/1.65 var(--font-mono); }
.landing .lp-code code { padding: 0; background: none; color: inherit; font-size: inherit; }

/* Collaboration band ---------------------------------------------------------- */
.lp-collab { margin-top: clamp(96px, 12vw, 160px); padding: clamp(72px, 9vw, 120px) 0; background: var(--panel); border-block: 1px solid var(--line); }
.lp-collab .lp-h2 { max-width: 20ch; }
.lp-collab__lead { margin-top: 16px; max-width: 56ch; color: var(--ink-2); font-size: 18px; }
.lp-shot--large { margin-top: 48px; }
.lp-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin: 56px 0 0; padding: 0; list-style: none; }
.lp-grid h3 { font-size: 19px; margin-bottom: 8px; }
.lp-grid p { color: var(--ink-2); font-size: 15px; }

/* FAQ ------------------------------------------------------------------------- */
.lp-faq { padding-top: clamp(96px, 12vw, 160px); display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 5vw, 72px); align-items: start; }
.lp-faq__list { border-top: 1px solid var(--line-strong); }
.lp-faq details { border-bottom: 1px solid var(--line-strong); }
.lp-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; cursor: pointer; list-style: none; }
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after { content: ''; flex: none; width: 10px; height: 10px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg) translateY(-3px); transition: transform .2s; }
.lp-faq details[open] summary::after { transform: rotate(225deg) translate(-2px, -2px); }
.lp-faq summary h3 { font-size: 18px; font-family: var(--font-ui); font-weight: 600; letter-spacing: 0; }
.lp-faq details p { padding: 0 0 22px; max-width: 64ch; color: var(--ink-2); }

/* Final call to action ------------------------------------------------------- */
.lp-end { margin-top: clamp(96px, 12vw, 160px); padding: clamp(72px, 10vw, 128px) 0; background: var(--accent); color: var(--accent-ink); }
.lp-end__inner { display: grid; justify-items: start; }
.lp-end h2 { font-size: clamp(34px, 5vw, 60px); letter-spacing: -0.035em; max-width: 16ch; }
.lp-end p { margin-top: 16px; font-size: 18px; opacity: .85; }
.lp-end .btn--primary { background: var(--accent-ink); border-color: var(--accent-ink); color: var(--accent); }
.lp-end .btn--primary:hover:not(:disabled) { background: color-mix(in srgb, var(--accent-ink) 90%, var(--accent)); }
.lp-end .btn:not(.btn--primary) { background: transparent; color: var(--accent-ink); border-color: color-mix(in srgb, var(--accent-ink) 50%, transparent); }
.lp-end .btn:not(.btn--primary):hover { background: color-mix(in srgb, var(--accent-ink) 12%, transparent); border-color: var(--accent-ink); }
.lp-end :focus-visible { outline-color: var(--accent-ink); }

/* Footer ---------------------------------------------------------------------- */
.lp-foot { padding: 40px 0 48px; background: var(--panel); border-top: 1px solid var(--line); }
.lp-foot__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.lp-foot__inner p { font-size: 14px; }
.lp-foot__nav { margin-left: auto; display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 14px; }
.lp-foot__nav a { color: var(--ink-2); }
/* The version moves into the footer: the fixed badge would sit on the screenshots. */
.landing .app-version { display: none; }
.lp-foot__version { font: 12px var(--font-mono); color: var(--muted); }

/* Lightbox ---------------------------------------------------------------------- */
.lp-lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 24px; border: 0; background: transparent; cursor: zoom-out; }
.lp-lightbox[open] { display: grid; place-items: center; align-content: center; gap: 12px; }
.lp-lightbox::backdrop { background: rgb(10 10 20 / 82%); }
.lp-lightbox img { max-width: 100%; max-height: calc(100vh - 80px); width: auto; height: auto; border-radius: 10px; box-shadow: 0 20px 60px rgb(0 0 0 / 50%); }
.lp-lightbox__hint { color: #fff; opacity: .7; font-size: 13px; }

/* Responsive ------------------------------------------------------------------- */
@media (max-width: 1080px) {
    .lp-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
    .lp-bar__nav { display: none; }
    .lp-hero__text { grid-template-columns: 1fr; }
    .lp-hero h1 { max-width: 15ch; }
    .lp-feature, .lp-feature--flip, .lp-faq { grid-template-columns: 1fr; }
    .lp-feature--flip .lp-feature__text { order: 0; }
    .lp-steps__list { grid-template-columns: 1fr; border-top: 0; }
    .lp-steps__list li, .lp-steps__list li + li { padding: 24px 0; border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 600px) {
    .lp-bar { gap: 12px; }
    .lp-bar__login { display: none; }
    .lp-grid { grid-template-columns: 1fr; gap: 24px; }
    .lp-hero__cta .btn { flex: 1 1 100%; }
    .lp-sticky { position: relative; right: auto; bottom: auto; width: auto; margin: -28px 12px 0 auto; max-width: 280px; font-size: 14px; }
    .lp-foot__nav { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
    [data-parallax], .lp-dots { translate: none; }
    .lp-stage img { transform: none; }
    .lp-sticky { animation: none; }
    .lp-shot img { transition: none; }
    .lp-shot:hover img { transform: none; }
}

/* Floating schema fragments ------------------------------------------------------
   Decoration in the app's own vocabulary, each on its own parallax depth. They sit
   on one back plane (z-index -1 in the page's stacking context), so they pass behind
   the content of every section, and disappear on small screens. Only the bands with a
   background (final call to action) and the collaboration screenshot keep their own. */
.lp-hero, .lp-steps, .lp-feature, .lp-faq { position: relative; }
.lp-end, .lp-shot--large { position: relative; isolation: isolate; }
.lp-float { position: absolute; z-index: -1; pointer-events: none; user-select: none; }
.lp-shot--large .lp-float { z-index: 2; }
.lp-float--table { width: 190px; overflow: hidden; border: 1px solid var(--line); border-radius: 9px; background: var(--panel); box-shadow: var(--table-shadow), 0 18px 40px -18px rgb(20 20 50 / 30%); font: 11px/1 var(--font-mono); }
.lp-float--table b { display: block; padding: 8px 10px; background: var(--c); color: #fff; font-weight: 600; }
.lp-float--table span { display: flex; justify-content: space-between; gap: 8px; padding: 7px 10px; border-top: 1px solid var(--line); color: var(--ink-2); }
.lp-float--table em { font-style: normal; font-size: 9.5px; color: var(--muted); }
.lp-float--pin { display: flex; align-items: center; gap: 3px; padding: 3px; border: 2px solid var(--panel); border-radius: 18px 18px 18px 4px; background: var(--accent); box-shadow: 0 8px 22px rgb(20 20 50 / 28%); }
.lp-float--pin span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--c); color: #fff; font: 700 11px var(--font-ui); }
.lp-float--pin em { padding: 0 6px 0 2px; color: #fff; font: 600 12px var(--font-ui); font-style: normal; }
.lp-float--card { padding: 4px 10px; border: 1.5px solid var(--edge); border-radius: 8px; background: var(--panel); color: var(--ink); font: 600 17px var(--font-mono); box-shadow: 0 10px 24px -10px rgb(20 20 50 / 30%); }
.lp-end .lp-float--card { z-index: 0; background: transparent; border-color: color-mix(in srgb, var(--accent-ink) 45%, transparent); color: var(--accent-ink); font-size: 34px; box-shadow: none; opacity: .55; }
.lp-float--label { padding: 3px 10px; border-radius: 7px; background: var(--c); color: #fff; font: 600 13px var(--font-ui); box-shadow: 0 10px 24px -10px rgb(20 20 50 / 35%); }
.lp-float--note { width: 200px; padding: 14px 16px; border-radius: 3px 3px 12px 3px; background: var(--lp-sticky); color: var(--lp-sticky-ink); font: 500 14px/1.45 var(--font-ui); box-shadow: 0 16px 28px -12px rgb(60 45 0 / 35%); }
@media (max-width: 900px) {
    .lp-float { display: none; }
}

/* Scroll reveals (landing.js) ------------------------------------------------------
   "transform" is free for the reveal: the parallax uses the separate "translate". */
.is-reveal [data-reveal]:not([data-reveal="words"]),
.is-reveal [data-reveal="words"] .lp-word {
    transition: opacity .8s ease, transform 1s cubic-bezier(.16, .84, .3, 1), filter .8s ease;
    transition-delay: var(--d, 0ms);
}
.is-reveal [data-reveal]:not(.is-in):not([data-reveal="words"]) { opacity: 0; }
.is-reveal [data-reveal="left"]:not(.is-in) { transform: translateX(-80px); }
.is-reveal [data-reveal="right"]:not(.is-in) { transform: translateX(80px); }
.is-reveal [data-reveal="up"]:not(.is-in) { transform: translateY(48px); }
.is-reveal [data-reveal="zoom"]:not(.is-in) { transform: scale(.88); }
.is-reveal [data-reveal="blur"]:not(.is-in) { transform: translateY(16px); filter: blur(10px); }
.lp-word { display: inline-block; }
.is-reveal [data-reveal="words"]:not(.is-in) .lp-word { opacity: 0; transform: translateY(.45em) rotate(4deg); filter: blur(6px); }
