/* LobbyFinder marketing landing (cs at /, en at /en) — static, self-contained.
 * Palette = tavern theme tokens (lib/theme/themes/tavern.ts):
 * app #1a0a25 · elevated #231432 · raised #3d2854 · ink #0a0510
 * text #ece5d3 / #c0b6a0 · accent #d99550 · gold #ecc870
 * CSP: fonts + images self-hosted only, styles via this file (style-src 'self'). */

@font-face { font-family: 'Cinzel'; src: url('/fonts/Cinzel_700Bold.ttf'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Cinzel'; src: url('/fonts/Cinzel_600SemiBold.ttf'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Spectral'; src: url('/fonts/Spectral_400Regular.ttf'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Spectral'; src: url('/fonts/Spectral_600SemiBold.ttf'); font-weight: 600; font-display: swap; }

:root {
  --bg: #1a0a25;
  --elevated: #231432;
  --raised: #3d2854;
  --ink: #0a0510;
  --text: #ece5d3;
  --muted: #c0b6a0;
  --accent: #d99550;
  --gold: #ecc870;
  --line: rgba(236, 200, 112, 0.22);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background:
    radial-gradient(ellipse 1100px 800px at 85% -5%, rgba(109, 70, 160, 0.30), transparent 60%),
    radial-gradient(ellipse 900px 700px at -10% 45%, rgba(217, 149, 80, 0.10), transparent 55%),
    var(--bg);
  color: var(--text);
  font-family: 'Spectral', Georgia, serif;
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Gutter contract: .wrap owns HORIZONTAL padding (longhands only); classes
   that share its element (.nav, .hero, .foot) own VERTICAL padding (longhands
   only). Never use the `padding:` shorthand on any of them — at equal
   specificity the later rule's shorthand silently zeroes the other axis
   (that bug shipped: phones rendered the hero/header full-bleed while plain
   .wrap sections kept their gutter). */
.wrap { max-width: 1080px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }

h1, h2, h3, .brand { font-family: 'Cinzel', 'Spectral', serif; }

a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, .lang summary:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- header ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(236, 200, 112, 0.12);
  background: rgba(26, 10, 37, 0.88);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.nav {
  display: flex; align-items: center; gap: 20px;
  padding-top: 18px; padding-bottom: 18px;
}
.brand {
  display: flex; align-items: center;
  font-weight: 700; font-size: 22px; letter-spacing: 1px; color: var(--text);
}
.brand:hover { text-decoration: none; }
.nav .spacer { flex: 1; }
/* Language picker — a disclosure dropdown so it scales past two locales
   (add a language = add one .lang-opt). Each option records an explicit
   user_language choice via [data-lang]; load-time seeding is unchanged. */
.lang { position: relative; }
.lang summary {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); color: var(--muted);
  font-size: 14px; letter-spacing: 1px;
  list-style: none; -webkit-user-select: none; user-select: none;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover { color: var(--text); border-color: var(--gold); }
.lang .lang-code { font-weight: 600; color: var(--gold); }
.lang .lang-caret {
  width: 13px; height: 13px; fill: none; stroke: currentColor;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  transition: transform 0.15s ease;
}
.lang[open] .lang-caret { transform: rotate(180deg); }
.lang-menu {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 20;
  min-width: 176px; padding: 6px;
  display: flex; flex-direction: column; gap: 2px;
  background: var(--elevated); border: 1px solid var(--line);
  border-radius: 12px; box-shadow: 0 12px 30px rgba(10, 5, 16, 0.55);
}
.lang-opt {
  display: block; padding: 9px 12px; border-radius: 8px;
  color: var(--text); font-size: 15px; letter-spacing: normal;
}
.lang-opt:hover { background: var(--raised); text-decoration: none; }
.lang-opt.is-current { color: var(--gold); font-weight: 600; }
.btn {
  display: inline-block; white-space: nowrap;
  font-family: 'Spectral', serif; font-weight: 600; font-size: 17px;
  padding: 10px 22px; border-radius: 10px;
  border: 1px solid var(--line);
  color: var(--text); background: transparent;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { background: var(--elevated); border-color: var(--gold); text-decoration: none; }
.btn-primary {
  background: linear-gradient(180deg, #e5a55d, var(--accent));
  border-color: transparent;
  color: var(--ink); font-weight: 600;
}
.btn-primary:hover { background: linear-gradient(180deg, #ecc870, #e5a55d); }
/* Compact variant — the header CTA. */
.btn-sm { padding: 8px 18px; font-size: 15.5px; border-radius: 9px; }

/* ---------- hero ---------- */
.hero {
  display: grid; grid-template-columns: 1.2fr 0.8fr;
  gap: 48px; align-items: center;
  padding-top: 84px; padding-bottom: 72px;
}
.hero h1 {
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 700; line-height: 1.16; letter-spacing: 0.5px;
}
.hero h1 em { font-style: normal; color: var(--gold); }
.hero .lede { margin-top: 22px; font-size: 20px; color: var(--muted); max-width: 34em; }
.hero-art { display: flex; justify-content: center; }
.hero-art img {
  width: min(320px, 70vw); height: auto; border-radius: 56px;
  box-shadow: 0 0 80px 10px rgba(109, 70, 160, 0.5), 0 0 28px 2px rgba(236, 200, 112, 0.18);
}

/* store badges */
.stores { margin-top: 34px; }
.stores .stores-label {
  font-size: 14px; text-transform: uppercase; letter-spacing: 2px; color: var(--muted);
}
.badges { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 12px; }
.badge {
  display: flex; flex-direction: column; justify-content: center;
  min-width: 170px; padding: 10px 18px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--elevated);
  opacity: 0.85; cursor: default;
}
.badge .store { font-weight: 600; font-size: 18px; }
.badge .soon {
  font-size: 12.5px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--accent);
}
/* Price objection, answered right where "get the app" fires.
   Claim scoping (owner, 2026-07-27) — the free claim is deliberately bound to
   the two CORE acts (join + host), never a blanket "the app is free": core is
   what the owner commits to staying un-gated, while what else might be
   monetized stays open until real users show what they value. PRESENT TENSE
   only — the never-paywall charter (P2-draft--supporter-monetization) is the
   surface that makes any "forever" promise. Never name the Supporter pass on
   the landing before it ships (same rule the in-app guide follows).
   "No ads" is safe against the roadmap: the contemplated B2B revenue is paid
   ORG DASHBOARDS (b2b PRD 3d/3e — attendance/RSVP/reach stats), not ad
   inventory. If promoted or featured listings ever get considered, this line
   is the thing they'd contradict — revisit it there, not here. */
.free-note { margin-top: 16px; font-size: 16.5px; color: var(--muted); }
.free-note b { color: var(--gold); font-weight: 600; }

.login-hint { margin-top: 26px; font-size: 16.5px; color: var(--muted); }

/* ---------- sections ---------- */
section { padding: 56px 0; }
section h2 {
  font-size: clamp(26px, 3.4vw, 34px); font-weight: 600;
  letter-spacing: 0.5px; margin-bottom: 8px;
}
.section-rule {
  width: 130px; height: 2px; margin: 14px 0 36px;
  background: linear-gradient(90deg, var(--gold), rgba(236, 200, 112, 0));
}
/* Thesis line under a section heading (the "Why LobbyFinder" intro). Pulls up
   against the rule's bottom margin so heading → rule → intro reads as one unit. */
.section-intro { margin: -18px 0 32px; color: var(--muted); font-size: 17.5px; max-width: 44em; }

/* Proof strip — the "map isn't empty" stats under the hero. Quantities are
   FLOOR phrasing ("Stovky"), deliberately never exact counts: this is static
   HTML, so a hard number would go stale every good month and would have to be
   re-verified against prod on each edit. Only ever widen the floor. */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.stat {
  background: var(--elevated);
  border: 1px solid rgba(236, 200, 112, 0.10);
  border-radius: 16px; padding: 24px 24px 22px;
}
.stat-n {
  display: block;
  font-family: 'Cinzel', 'Spectral', serif; font-weight: 700;
  font-size: clamp(23px, 2.6vw, 29px); letter-spacing: 0.5px; color: var(--gold);
}
.stat-l { display: block; margin-top: 8px; color: var(--muted); font-size: 16.5px; }

.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.card {
  background: var(--elevated);
  border: 1px solid rgba(236, 200, 112, 0.10);
  border-radius: 16px; padding: 26px 26px 24px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.card:hover { border-color: var(--line); transform: translateY(-2px); }
.card svg { width: 34px; height: 34px; stroke: var(--gold); margin-bottom: 14px; }
.card h3 { font-size: 20px; font-weight: 600; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 17px; }
/* Odd card count would leave a half-width orphan in the last row — let it span
   instead, so the grid reads as deliberate. The locales legitimately differ in
   count: the CZ-localization card is /cs-only (owner, 2026-07-27 — boasting
   about Czech to an English reader lands wrong), so EN runs one card shorter.
   Text stays measure-bound; a full-width paragraph would over-run. */
.features > .card:last-child:nth-child(odd) { grid-column: 1 / -1; }
.features > .card:last-child:nth-child(odd) p { max-width: 60ch; }

/* Privacy is the last card in the Proč grid, so the odd-card rule above spans
   it across the full row. It carries USER-CONTROL facts only — mirrors the
   in-app guide's privacy rule, never "the app is secure" claims. Owner,
   2026-07-27: deliberately NO home-address wording anywhere in marketing copy;
   the private-place behaviour is explained in the app, not sold on the landing.
   (Was a `.trust` separator strip — the diamond separators broke apart as soon
   as it wrapped, which it did at most widths.) */

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; padding: 8px 4px 0 62px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Cinzel', serif; font-weight: 700; font-size: 20px;
  color: var(--ink); background: linear-gradient(180deg, var(--gold), var(--accent));
}
.step h3 { font-size: 19px; font-weight: 600; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 16.5px; }

/* ---------- CTA band ---------- */
.band {
  margin: 26px 0 10px;
  background: linear-gradient(180deg, var(--elevated), rgba(35, 20, 50, 0.4));
  border: 1px solid var(--line); border-radius: 20px;
  padding: 44px 36px; text-align: center;
}
.band h2 { font-size: clamp(24px, 3vw, 30px); }
.band p { color: var(--muted); margin: 12px auto 24px; max-width: 36em; }

/* ---------- footer ---------- */
footer {
  margin-top: 72px; padding: 34px 0 46px;
  border-top: 1px solid rgba(236, 200, 112, 0.12);
  font-size: 15.5px; color: var(--muted);
}
.foot { display: flex; flex-wrap: wrap; gap: 16px 26px; align-items: center; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; }
.foot a { color: var(--muted); padding: 2px 0; }
.foot a:hover { color: var(--gold); }
.foot .spacer { flex: 1; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding-top: 56px; padding-bottom: 48px; text-align: left; }
  .hero-art { order: -1; }
  .features { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; gap: 14px; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
}
/* Phones: wordmark · compact lang pill · small gold CTA on one quiet line;
   roomier gutters; the footer becomes an intentional centered column. */
@media (max-width: 560px) {
  .wrap { padding-left: 22px; padding-right: 22px; }
  .nav { gap: 10px; padding-top: 12px; padding-bottom: 12px; }
  .brand { font-size: 20px; letter-spacing: 0.5px; }
  .lang summary { padding: 6px 11px; font-size: 13px; gap: 5px; }
  .btn-sm { padding: 7px 15px; font-size: 14.5px; }

  .hero { padding-top: 44px; padding-bottom: 40px; gap: 30px; }
  .hero .lede { margin-top: 16px; font-size: 18px; }
  .hero-art img { border-radius: 44px; }
  .badges { gap: 10px; }
  .badge { flex: 1 1 140px; min-width: 140px; padding: 10px 14px; }
  section { padding: 40px 0; }
  .card { padding: 22px 20px; }
  .band { padding: 34px 22px; }

  /* Footer: tap-friendly stacked links, then a gold flourish + copyright. */
  footer { margin-top: 40px; padding: 26px 0 40px; text-align: center; }
  .foot { flex-direction: column; gap: 4px; align-items: center; }
  .foot .spacer { display: none; }
  .foot-links { flex-direction: column; gap: 2px; align-items: center; }
  .foot-links a { display: block; padding: 9px 14px; font-size: 16px; }
  .foot .copyright { position: relative; margin-top: 14px; padding-top: 16px; font-size: 14px; }
  .foot .copyright::before {
    content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    width: 72px; height: 2px;
    background: linear-gradient(90deg, rgba(236, 200, 112, 0), var(--gold), rgba(236, 200, 112, 0));
  }
}
@media (max-width: 380px) {
  .wrap { padding-left: 18px; padding-right: 18px; }
  .nav { gap: 8px; }
  .brand { font-size: 18px; }
  .lang summary { padding: 5px 9px; }
  .btn-sm { padding: 6px 12px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, .card:hover { transform: none; transition: none; }
}
