/* Bodek Tools — public home page (signed-out visitors only).
   Uses the shared Bodek tokens from /shared/bodek.css, so it follows light/dark. */

.bt-landing { --lp-radius: 6px; --lp-card-radius: 8px; }
.bt-landing a:focus-visible,
.bt-landing input:focus-visible { outline: 2px solid var(--bd-accent); outline-offset: 2px; }

/* Buttons: plain rectangles with a modest radius */
.bt-landing .lp-btn { border-radius: var(--lp-radius) !important; padding: .65rem 1.15rem; font-weight: 600; font-size: .98rem; }
.bt-landing .lp-btn-quiet { border: 1px solid var(--bd-border); color: var(--bd-text); }
.bt-landing .lp-btn-quiet:hover,
.bt-landing .lp-btn-quiet:focus-visible { background: var(--bd-hover); color: var(--bd-text); }

/* Hero */
.lp-hero { padding: 3.5rem 0 3rem; border-bottom: 1px solid var(--bd-border); }
.lp-hero-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: center; }
.bt-landing .lp-eyebrow { margin: 0 0 .6rem; color: var(--bd-link); font-weight: 700; font-size: .85rem; letter-spacing: .04em; text-transform: uppercase; }
.lp-hero h1 { font-size: clamp(2rem, 4.4vw, 2.9rem); font-weight: 700; line-height: 1.1; letter-spacing: -.02em; margin: 0 0 1rem; max-width: 20ch; }
.bt-landing .lp-lead { font-size: 1.1rem; line-height: 1.6; color: var(--bd-muted); max-width: 34rem; margin: 0; }
.lp-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }

/* Product mock-up of the real /qr screen */
.lp-shot { margin: 0; border: 1px solid var(--bd-border); border-radius: var(--lp-card-radius); background: var(--bd-surface); box-shadow: var(--bd-shadow); overflow: hidden; }
.lp-shot-bar { display: flex; align-items: center; gap: 6px; padding: .55rem .8rem; border-bottom: 1px solid var(--bd-border); background: var(--bd-surface-2); }
.lp-shot-bar span { width: 9px; height: 9px; border-radius: 50%; background: var(--bd-border); }
.lp-shot-bar em { margin-left: .6rem; font-style: normal; font-size: .78rem; color: var(--bd-muted); font-family: var(--bd-font-mono); }
.lp-shot-body { display: grid; grid-template-columns: 1fr; gap: 1.25rem; padding: 1.25rem; }
.lp-shot-h { font-weight: 600; font-size: .9rem; margin-bottom: .6rem; }
.lp-shot-h2 { margin-top: 1.1rem; }
.lp-shot-types { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: .9rem; }
.lp-shot-types span { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; font-size: .76rem; border: 1px solid var(--bd-border); border-radius: 4px; color: var(--bd-muted); }
.lp-shot-types span.on { border-color: var(--bd-accent); color: var(--bd-text); background: rgba(var(--bd-accent-rgb), .14); }
.lp-shot-label { font-size: .76rem; color: var(--bd-muted); margin-bottom: 4px; }
.lp-shot-input { display: flex; align-items: center; gap: 6px; padding: 6px 9px; font-size: .84rem; border: 1px solid var(--bd-input-border); border-radius: 4px; background: var(--bd-input-bg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-mono { font-family: var(--bd-font-mono); font-size: .8rem; }
.lp-shot-row { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.sw { display: inline-block; width: 14px; height: 14px; border-radius: 3px; border: 1px solid var(--bd-border); flex-shrink: 0; }
.sw-dark { background: #000; }
.sw-light { background: #fff; }
.lp-shot-qr { display: flex; justify-content: center; padding: 14px; border-radius: 6px; background: repeating-conic-gradient(rgba(127, 127, 127, .12) 0% 25%, transparent 0% 50%) 50% / 16px 16px; }
.lp-shot-qr img { width: 100%; max-width: 190px; height: auto; aspect-ratio: 1 / 1; image-rendering: pixelated; border-radius: 3px; }
.lp-shot-dl { display: flex; gap: 6px; margin-top: .8rem; }
.lp-shot-dl span { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; font-size: .78rem; font-weight: 600; border: 1px solid var(--bd-border); border-radius: 5px; }
.lp-shot-dl span.solid { background: var(--bd-accent); border-color: var(--bd-accent); color: #fff; }

/* Sections */
.lp-section { padding: 3.25rem 0; }
.lp-alt { background: var(--bd-surface-sunken); border-top: 1px solid var(--bd-border); border-bottom: 1px solid var(--bd-border); }
.lp-h2 { font-size: 1.5rem; font-weight: 700; letter-spacing: -.01em; margin: 0 0 1.5rem; }
.lp-h3 { font-size: 1rem; font-weight: 700; margin: 0 0 .6rem; }

/* Tool list (the #toolGrid cards also carry .bt-tool-card for home.js filtering) */
.lp-search { position: relative; max-width: 420px; margin: -.5rem 0 1.25rem; }
.lp-search i { position: absolute; left: .8rem; top: 50%; transform: translateY(-50%); color: var(--bd-muted); }
.lp-search input { width: 100%; padding: .6rem .9rem .6rem 2.3rem; border-radius: var(--lp-radius); border: 1px solid var(--bd-input-border); background: var(--bd-input-bg); color: inherit; }
.lp-tool-list { display: grid; gap: .75rem; }
.bt-landing .lp-tool { display: flex; flex-direction: row; align-items: center; gap: 1rem; padding: 1.1rem 1.2rem; border-radius: var(--lp-card-radius); border: 1px solid var(--bd-border); background: var(--bd-surface); transition: border-color .15s; }
.bt-landing .lp-tool:hover { transform: none; box-shadow: none; border-color: var(--bd-accent); }
.lp-tool-icon { width: 44px; height: 44px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; font-size: 1.35rem; border-radius: 6px; background: rgba(var(--bd-accent-rgb), .12); color: var(--bd-link); }
.lp-tool-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .2rem; }
.lp-tool-title { font-weight: 700; }
.lp-tool-desc { color: var(--bd-muted); font-size: .93rem; }
.lp-tool-open { color: var(--bd-link); font-weight: 600; font-size: .92rem; white-space: nowrap; }

/* Feature columns */
.lp-cols { display: grid; grid-template-columns: 1fr; gap: 1.75rem; }
.lp-list { list-style: none; margin: 0; padding: 0; }
.lp-list li { position: relative; padding-left: 1rem; margin-bottom: .45rem; color: var(--bd-muted); line-height: 1.5; font-size: .95rem; }
.lp-list li::before { content: ""; position: absolute; left: 0; top: .6em; width: 6px; height: 2px; background: var(--bd-link); }

/* Facts */
.lp-facts { display: grid; grid-template-columns: 1fr; gap: 1.25rem; margin: 0; }
.lp-facts > div { border-top: 2px solid var(--bd-border); padding-top: .9rem; }
.lp-facts dt { font-weight: 700; margin-bottom: .3rem; }
.bt-landing .lp-facts dd { margin: 0; color: var(--bd-muted); line-height: 1.55; font-size: .95rem; }
.lp-end { margin-top: 2.25rem; }

@media (min-width: 576px) {
    .lp-shot-body { grid-template-columns: 1.25fr 1fr; }
    .lp-cols { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 768px) {
    .lp-facts { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
}
@media (min-width: 992px) {
    .lp-hero { padding: 4.5rem 0 4rem; }
    .lp-hero-grid { grid-template-columns: 1fr 1.05fr; gap: 3.5rem; }
    .lp-cols { grid-template-columns: repeat(4, 1fr); gap: 2rem; }
    .lp-section { padding: 4rem 0; }
}
@media (max-width: 575px) {
    .lp-tool { flex-wrap: wrap; }
    .lp-tool-open { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .bt-landing .lp-tool { transition: none; }
}
