/* LCD Wizard marketing site.
 *
 * Deliberately one stylesheet with no framework: the apex domain should be a
 * couple of small static files that nginx can serve from cache, and the
 * designer's own CSS is a separate concern with different constraints. */

:root {
  --bg: #0b0d0c;
  --bg-2: #101413;
  --surface: #151a18;
  --surface-2: #1c2321;
  --line: #262e2b;
  --line-soft: #1e2523;
  --text: #e8ece9;
  --text-dim: #98a49e;
  --muted: #6b7772;
  --accent: #22c55e;
  --accent-dk: #16a34a;
  --accent-fg: #06210f;
  --danger: #ef4444;
  --warn: #f59e0b;
  --mono: 'JetBrains Mono', 'Cascadia Mono', Consolas, monospace;
  --sans: Inter, 'Segoe UI', system-ui, -apple-system, sans-serif;
  --w: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

img, svg { max-width: 100%; }

.wrap { width: 100%; max-width: var(--w); margin: 0 auto; padding: 0 24px; }

/* ------------------------------------------------------------------- nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11,13,12,.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.nav .wrap { display: flex; align-items: center; gap: 26px; height: 62px; }

.brand { display: flex; align-items: center; gap: 10px; font-weight: 650; letter-spacing: -.2px; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand .mark {
  width: 27px; height: 27px; border-radius: 7px; flex: none;
  background: linear-gradient(135deg, var(--accent), var(--accent-dk));
  display: grid; place-items: center;
  color: var(--accent-fg); font-weight: 800; font-size: 15px;
}

.nav-links { display: flex; gap: 22px; margin-left: 8px; }
.nav-links a { color: var(--text-dim); font-size: 14.5px; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav .spacer { flex: 1; }
@media (max-width: 760px) { .nav-links { display: none; } }

/* ---------------------------------------------------------------- button */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text);
  font: 600 14.5px/1 var(--sans);
  cursor: pointer;
  transition: background .15s, border-color .15s, transform .06s;
  white-space: nowrap;
}
.btn:hover { background: #232b28; border-color: #33403b; text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-dk));
  border-color: transparent; color: var(--accent-fg);
}
.btn.primary:hover { filter: brightness(1.08); }
.btn.ghost { background: none; border-color: transparent; color: var(--text-dim); }
.btn.ghost:hover { color: var(--text); background: var(--surface); }
.btn.lg { padding: 13px 26px; font-size: 15.5px; border-radius: 9px; }
.btn.sm { padding: 7px 13px; font-size: 13.5px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }

/* ------------------------------------------------------------------ hero */
.hero {
  position: relative;
  padding: 88px 0 60px;
  overflow: hidden;
  border-bottom: 1px solid var(--line-soft);
}
.hero::before {
  content: '';
  position: absolute; inset: -200px 0 auto 0; height: 700px;
  background:
    radial-gradient(680px 340px at 20% 0%, rgba(34,197,94,.16), transparent 62%),
    radial-gradient(520px 300px at 82% 12%, rgba(59,130,246,.09), transparent 60%);
  pointer-events: none;
}
.hero .wrap { position: relative; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 12px 5px 6px;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface);
  color: var(--text-dim); font-size: 13px; margin-bottom: 22px;
}
.eyebrow b {
  background: rgba(34,197,94,.16); color: var(--accent);
  padding: 2px 8px; border-radius: 999px; font-size: 11.5px;
  font-weight: 700; letter-spacing: .3px; text-transform: uppercase;
}

h1 {
  font-size: clamp(34px, 5.2vw, 56px);
  line-height: 1.06;
  letter-spacing: -1.6px;
  font-weight: 700;
  margin: 0 0 20px;
  max-width: 15ch;
}
h1 .grad {
  background: linear-gradient(100deg, var(--accent) 10%, #7dd3a8 60%, #a7f3d0);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.lede { font-size: 18.5px; color: var(--text-dim); max-width: 58ch; margin: 0 0 30px; line-height: 1.65; }

.cta-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.cta-note { color: var(--muted); font-size: 13.5px; margin-top: 14px; }

/* ---- the screenshot-ish mock ---- */
.mock {
  margin-top: 54px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-2);
  overflow: hidden;
  box-shadow: 0 30px 90px -30px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.02) inset;
}
.mock-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 9px 13px;
  border-bottom: 1px solid var(--line-soft);
  background: #0d1110;
}
.mock-bar i { width: 9px; height: 9px; border-radius: 50%; background: #2b3532; display: block; }
.mock-bar span { margin-left: 8px; color: var(--muted); font: 12px var(--mono); }
.mock svg { display: block; width: 100%; height: auto; }

/* --------------------------------------------------------------- section */
section { padding: 84px 0; border-bottom: 1px solid var(--line-soft); }
section.tight { padding: 60px 0; }

.sec-head { max-width: 62ch; margin-bottom: 44px; }
.sec-tag {
  color: var(--accent); font-size: 12.5px; font-weight: 700;
  letter-spacing: 1.4px; text-transform: uppercase; margin-bottom: 12px;
}
h2 { font-size: clamp(26px, 3.4vw, 36px); line-height: 1.18; letter-spacing: -.9px; margin: 0 0 14px; font-weight: 680; }
h3 { font-size: 17px; margin: 0 0 8px; font-weight: 640; letter-spacing: -.2px; }
.sec-head p { color: var(--text-dim); font-size: 16.5px; margin: 0; }

/* ---------------------------------------------------------------- cards */
.grid { display: grid; gap: 16px; }
.grid.c3 { grid-template-columns: repeat(3, 1fr); }
.grid.c2 { grid-template-columns: repeat(2, 1fr); }
.grid.c4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 940px) { .grid.c3, .grid.c4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid.c2, .grid.c3, .grid.c4 { grid-template-columns: 1fr; } }

.card {
  border: 1px solid var(--line-soft);
  border-radius: 11px;
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  padding: 22px;
  transition: border-color .18s, transform .18s;
}
.card:hover { border-color: var(--line); transform: translateY(-2px); }
.card p { color: var(--text-dim); font-size: 14.5px; margin: 0; line-height: 1.62; }
.card .ic {
  width: 34px; height: 34px; border-radius: 9px;
  background: rgba(34,197,94,.1); color: var(--accent);
  display: grid; place-items: center; margin-bottom: 14px;
}

/* ---------------------------------------------------------------- steps */
.steps { counter-reset: s; display: grid; gap: 2px; }
.step {
  counter-increment: s;
  display: grid; grid-template-columns: 46px 1fr; gap: 18px;
  padding: 22px 0;
  border-top: 1px solid var(--line-soft);
}
.step:last-child { border-bottom: 1px solid var(--line-soft); }
.step::before {
  content: counter(s, decimal-leading-zero);
  font: 700 15px var(--mono); color: var(--accent);
  padding-top: 2px;
}
.step p { color: var(--text-dim); font-size: 15px; margin: 0; max-width: 68ch; }

/* --------------------------------------------------------------- chiplist */
.chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 18px; }
.chip {
  padding: 5px 11px; border-radius: 7px;
  border: 1px solid var(--line-soft); background: var(--surface);
  color: var(--text-dim); font: 12.5px var(--mono);
}
.chip.on { border-color: rgba(34,197,94,.4); color: var(--accent); background: rgba(34,197,94,.07); }

/* ----------------------------------------------------------------- stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); border-radius: 11px; overflow: hidden; }
.stat { background: var(--bg-2); padding: 24px 20px; text-align: center; }
.stat b { display: block; font-size: 30px; font-weight: 700; letter-spacing: -1px; color: var(--text); }
.stat span { color: var(--muted); font-size: 13px; }
@media (max-width: 640px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* --------------------------------------------------------------- pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: start; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; } }

.plan {
  border: 1px solid var(--line-soft);
  border-radius: 13px;
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  padding: 26px 24px;
  display: flex; flex-direction: column;
  min-height: 100%;
}
.plan.featured {
  border-color: rgba(34,197,94,.42);
  box-shadow: 0 0 0 1px rgba(34,197,94,.12), 0 20px 60px -30px rgba(34,197,94,.35);
  position: relative;
}
.plan.featured::after {
  content: 'Most popular';
  position: absolute; top: -11px; left: 24px;
  background: var(--accent); color: var(--accent-fg);
  font-size: 11px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase;
  padding: 3px 10px; border-radius: 999px;
}
.plan h3 { font-size: 15px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 1.1px; font-weight: 700; }
.price { display: flex; align-items: baseline; gap: 6px; margin: 6px 0 4px; }
.price b { font-size: 42px; font-weight: 700; letter-spacing: -2px; }
.price span { color: var(--muted); font-size: 14px; }
.plan .blurb { color: var(--text-dim); font-size: 14px; margin: 0 0 20px; min-height: 42px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; flex: 1; }
.plan li { position: relative; padding-left: 25px; font-size: 14.5px; color: var(--text-dim); }
.plan li::before {
  content: ''; position: absolute; left: 4px; top: 8px;
  width: 9px; height: 5px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}
.plan li b { color: var(--text); font-weight: 620; }

/* ------------------------------------------------------------------- faq */
.faq { border-top: 1px solid var(--line-soft); }
.faq details { border-bottom: 1px solid var(--line-soft); padding: 18px 0; }
.faq summary {
  cursor: pointer; font-weight: 600; font-size: 16px; list-style: none;
  display: flex; align-items: center; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: '+'; color: var(--accent); font: 700 19px var(--mono); width: 14px; }
.faq details[open] summary::before { content: '-'; }
.faq p { color: var(--text-dim); font-size: 15px; margin: 12px 0 0 26px; max-width: 74ch; }

/* ------------------------------------------------------------------- cta */
.band {
  border: 1px solid rgba(34,197,94,.3);
  border-radius: 15px;
  background:
    radial-gradient(700px 260px at 50% 120%, rgba(34,197,94,.16), transparent 70%),
    var(--bg-2);
  padding: 54px 40px;
  text-align: center;
}
.band h2 { margin-bottom: 10px; }
.band p { color: var(--text-dim); max-width: 52ch; margin: 0 auto 26px; }

/* ---------------------------------------------------------------- footer */
footer { padding: 46px 0 60px; color: var(--muted); font-size: 13.5px; }
footer .cols { display: flex; gap: 60px; flex-wrap: wrap; margin-bottom: 34px; }
footer .col { display: grid; gap: 9px; align-content: start; }
footer .col b { color: var(--text-dim); font-size: 12px; letter-spacing: 1.1px; text-transform: uppercase; }
footer .col a { color: var(--muted); }
footer .col a:hover { color: var(--text); }
footer .base { border-top: 1px solid var(--line-soft); padding-top: 22px; display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
footer .base .spacer { flex: 1; }

/* --------------------------------------------------------- narrow pages */
.page { min-height: calc(100vh - 62px); display: grid; place-items: center; padding: 60px 24px; }
.panel {
  width: 100%; max-width: 460px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  padding: 34px 32px;
  text-align: center;
}
.panel h1 { font-size: 25px; letter-spacing: -.6px; margin: 0 0 10px; max-width: none; }
.panel p { color: var(--text-dim); font-size: 15px; margin: 0 0 22px; }
.panel .glyph {
  width: 52px; height: 52px; border-radius: 50%; margin: 0 auto 20px;
  display: grid; place-items: center; font-size: 25px; font-weight: 700;
}
.panel .glyph.ok { background: rgba(34,197,94,.13); color: var(--accent); }
.panel .glyph.bad { background: rgba(239,68,68,.13); color: var(--danger); }
.panel .glyph.wait { background: rgba(245,158,11,.13); color: var(--warn); }

.form { text-align: left; display: grid; gap: 14px; }
.form label { display: block; font-size: 13px; color: var(--text-dim); margin-bottom: 6px; }
.form input {
  width: 100%; height: 42px; padding: 0 13px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 8px;
  color: var(--text); font: 15px var(--sans);
}
.form input:focus { outline: none; border-color: var(--accent); }
.msg { padding: 11px 13px; border-radius: 8px; font-size: 14px; text-align: left; }
.msg.ok { background: rgba(34,197,94,.11); color: #86efac; }
.msg.err { background: rgba(239,68,68,.11); color: #fca5a5; }
[hidden] { display: none !important; }

/* =============================================================== gallery ==
 * Cards are links, so the whole tile is clickable; the like and clone
 * controls inside them stop propagation rather than being lifted out. */
.gal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(272px, 1fr));
  gap: 18px;
}
.gal-empty {
  grid-column: 1 / -1;
  color: var(--muted); font-size: 15px;
  padding: 40px 0; text-align: center;
}

.gal-card {
  display: block;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  overflow: hidden;
  color: inherit;
  transition: border-color .18s, transform .18s, box-shadow .18s;
}
.gal-card:hover {
  text-decoration: none;
  border-color: rgba(34,197,94,.4);
  transform: translateY(-3px);
  box-shadow: 0 18px 40px -24px rgba(0,0,0,.9);
}

/* The chequerboard reads as "this is a screen", and stops a design with a
   transparent or very dark background from vanishing into the card. */
.shot {
  position: relative;
  height: 168px;
  display: grid; place-items: center;
  overflow: hidden;
  background:
    linear-gradient(45deg, #12100f 25%, transparent 25%) -7px 0/14px 14px,
    linear-gradient(-45deg, #12100f 25%, transparent 25%) -7px 0/14px 14px,
    #0a0c0b;
  border-bottom: 1px solid var(--line-soft);
}
/* See the note in client/css/app.css: a grid row sized by the image makes
 * percentage max-heights useless, so the preview is pinned and letterboxed. */
.shot img {
  position: absolute;
  inset: 12px;
  width: calc(100% - 24px);
  height: calc(100% - 24px);
  object-fit: contain;
  display: block;
  border-radius: 3px;
  filter: drop-shadow(0 6px 18px rgba(0,0,0,.8));
}
.shot.empty { color: var(--muted); font-size: 13px; }

.shot-name {
  position: absolute; left: 9px; bottom: 9px;
  background: rgba(0,0,0,.62); color: #dfe6e2;
  font-size: 11px; padding: 2px 7px; border-radius: 4px;
  pointer-events: none;
}
.shot-dots { position: absolute; right: 9px; bottom: 9px; display: flex; gap: 5px; }
.shot-dots button {
  width: 8px; height: 8px; border-radius: 50%;
  border: none; padding: 0; cursor: pointer;
  background: rgba(255,255,255,.28);
  transition: background .15s;
}
.shot-dots button.on { background: var(--accent); }

.gal-body { padding: 14px 15px 15px; }
.gal-title {
  font-size: 16px; font-weight: 640; margin: 0 0 8px; letter-spacing: -.2px;
  color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.gal-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 10px; }
.gal-chips .chip {
  padding: 3px 8px; border-radius: 6px;
  border: 1px solid var(--line-soft); background: var(--bg-2);
  color: var(--text-dim); font: 11.5px var(--mono);
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.gal-author { display: flex; align-items: center; gap: 8px; color: var(--text-dim); font-size: 13px; }
.gal-author .avatar {
  width: 22px; height: 22px; border-radius: 50%; flex: none;
  object-fit: cover; border: 1px solid var(--line);
}
.gal-author .avatar.letter {
  display: grid; place-items: center;
  background: var(--accent-dk); color: #fff;
  font-size: 11px; font-weight: 700; border-color: transparent;
}

.gal-stats {
  display: flex; gap: 14px; flex-wrap: wrap;
  margin-top: 10px; color: var(--muted); font-size: 12.5px;
}
.gal-actions { display: flex; gap: 7px; margin-top: 12px; }
.btn.like.on { color: var(--accent); border-color: rgba(34,197,94,.45); }

/* ---- the browser page ---- */
.gal-toolbar {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin-bottom: 22px;
}
.gal-sorts { display: flex; gap: 4px; flex-wrap: wrap; }
.gal-sorts .sort {
  padding: 7px 13px; border-radius: 7px;
  border: 1px solid transparent; background: none;
  color: var(--text-dim); font: 600 13.5px var(--sans); cursor: pointer;
}
.gal-sorts .sort:hover { color: var(--text); background: var(--surface); }
.gal-sorts .sort.on {
  color: var(--accent); background: rgba(34,197,94,.08);
  border-color: rgba(34,197,94,.35);
}
.gal-search { display: flex; gap: 6px; }
.gal-search input {
  height: 34px; padding: 0 11px; width: 230px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 7px;
  color: var(--text); font: 14px var(--sans);
}
.gal-search input:focus { outline: none; border-color: var(--accent); }
.note { color: var(--muted); font-size: 13px; }

.gal-pager {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  margin-top: 30px;
}

/* ---- one project ---- */
.proj-layout { display: grid; grid-template-columns: 1fr 320px; gap: 30px; align-items: start; }
@media (max-width: 880px) { .proj-layout { grid-template-columns: 1fr; } }

.proj-main { min-width: 0; }
.proj-head { margin-bottom: 18px; }
.proj-head h1 { font-size: clamp(26px, 4vw, 38px); margin: 0 0 10px; max-width: none; }
.proj-main .shot {
  height: 380px; border-radius: 12px;
  border: 1px solid var(--line-soft);
}
.proj-desc {
  white-space: pre-wrap;
  color: var(--text-dim); font-size: 15.5px; line-height: 1.7;
  margin: 20px 0 0; max-width: 72ch;
}
.proj-sub {
  font-size: 12px; letter-spacing: 1.3px; text-transform: uppercase;
  color: var(--muted); margin: 26px 0 10px; font-weight: 700;
}
.proj-side {
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  padding: 20px;
  position: sticky; top: 82px;
}
.proj-side .proj-sub { margin-top: 0; }
.proj-side .btn.block { margin-top: 14px; }
.proj-side .note { margin: 10px 0 0; line-height: 1.55; }

.proj-tech { display: grid; gap: 7px; margin-bottom: 16px; }
.proj-tech-row { display: flex; gap: 10px; font-size: 13.5px; align-items: baseline; }
.proj-tech-row .k { color: var(--muted); width: 116px; flex: none; }
.proj-tech-row .v { color: var(--text); word-break: break-word; }
