/* VibeLokal — vibelokal.com
   Editorial landing built from the app's "Nordic social energy" tokens.
   Voice: sans-black statements with one serif-italic accent — the accent is
   always the emotional half of the sentence. Light and dark are the same
   family; only the neutral axis flips. */

:root {
  --canvas: #F7F6F2;
  --sunken: #EFEDE6;
  --card: #FFFFFF;
  --ink: #1B1C22;
  --ink2: #4F515C;
  --ink3: #6E707D;
  --line: #E7E4DC;
  --brand-fg: #C43D10;
  --brand-fill: #CE4514;
  --brand-soft: #FBEDE6;
  --social-fg: #0A7A80;
  --social-fill: #0B7E83;
  --social-soft: #E3F4F4;
  --found-fg: #6540CE;
  --found-fill: #6540CE;
  --found-soft: #EFEAFB;
  --warn-fg: #9A5B04;
  --warn-soft: #FBF0DC;
  --civic-fg: #2257D6;
  --civic-soft: #E8EEFC;
  --success-fg: #177E4A;
  --success-soft: #E4F4EA;
  --cta-ink: #FFFFFF;
  --found-onfill: #FFFFFF;
  --glass: rgba(27, 28, 34, 0.78);
  --glass-ink: #FFFFFF;
  --radius: 20px;
  --shadow: 0 10px 30px rgba(58, 51, 37, 0.08);
  --shadow-lift: 0 22px 60px rgba(58, 51, 37, 0.16);
}
@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #0F1017;
    --sunken: #12131B;
    --card: #181A24;
    --ink: #F3F3F6;
    --ink2: #B9BBC7;
    --ink3: #9093A1;
    --line: #272935;
    --brand-fg: #FF8A5C;
    --brand-fill: #FF6B35;
    --brand-soft: #33221B;
    --social-fg: #4FD4DA;
    --social-fill: #2BC5CB;
    --social-soft: #15343A;
    --found-fg: #B3A0FF;
    --found-fill: #8F76F0;
    --found-soft: #292344;
    --warn-fg: #F5C64C;
    --warn-soft: #33290F;
    --civic-fg: #8AB4FF;
    --civic-soft: #1D2A44;
    --success-fg: #5BD98C;
    --success-soft: #173325;
    --cta-ink: #1F0E06;
    --found-onfill: #160F33;
    --glass: rgba(10, 11, 16, 0.82);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    --shadow-lift: 0 22px 60px rgba(0, 0, 0, 0.5);
  }
}

/* ————— foundations ————— */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  /* The warm atmosphere: two faint glows bleeding in from the corners. */
  background:
    radial-gradient(52rem 34rem at -8% -6%, var(--brand-soft) 0%, transparent 58%),
    radial-gradient(46rem 30rem at 108% 4%, var(--social-soft) 0%, transparent 55%),
    var(--canvas);
}
.serif { font-family: "New York", ui-serif, Georgia, "Times New Roman", serif; font-style: italic; font-weight: 500; letter-spacing: -0.01em; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 28px; }
img { max-width: 100%; }

/* ————— nav ————— */
header.site {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  background: var(--canvas);
  background: color-mix(in srgb, var(--canvas) 82%, transparent);
  border-bottom: 1px solid var(--line);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
}
header.site .bar { display: flex; align-items: center; gap: 26px; padding-top: 14px; padding-bottom: 14px; }
header.site .logo { width: 36px; height: 36px; border-radius: 10px; }
header.site .name { font-weight: 800; font-size: 18px; letter-spacing: -0.3px; }
nav.layers-nav { display: flex; gap: 22px; margin-left: auto; }
nav.layers-nav a { color: var(--ink2); text-decoration: none; font-size: 14.5px; font-weight: 600; }
nav.layers-nav a:hover { color: var(--brand-fg); }
.langs { display: flex; gap: 4px; margin-left: 8px; }
.langs button {
  font: inherit; font-size: 13px; font-weight: 700; padding: 6px 12px;
  border-radius: 999px; cursor: pointer; background: transparent;
  color: var(--ink3); border: 1px solid var(--line);
}
.langs button[aria-pressed="true"] { background: var(--social-soft); color: var(--social-fg); border-color: transparent; }
.cta {
  display: inline-block; background: var(--brand-fill); color: var(--cta-ink) !important;
  text-decoration: none; font-weight: 700; font-size: 15px;
  padding: 11px 20px; border-radius: 13px; white-space: nowrap;
}
.cta:hover { filter: brightness(1.07); }
.cta.big { font-size: 17px; padding: 15px 28px; border-radius: 15px; }
.ghost {
  display: inline-block; color: var(--ink); text-decoration: none; font-weight: 700;
  font-size: 17px; padding: 15px 26px; border-radius: 15px;
  border: 1.5px solid var(--line); background: var(--card);
}
.ghost:hover { border-color: var(--ink3); }

/* ————— hero ————— */
.hero { display: grid; grid-template-columns: 1.02fr 0.98fr; gap: 44px; align-items: center; padding: 58px 0 30px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line);
  border: 1px solid color-mix(in srgb, var(--brand-fg) 34%, transparent);
  color: var(--brand-fg);
  background: var(--brand-soft);
  background: color-mix(in srgb, var(--brand-soft) 60%, transparent);
  font-size: 13.5px; font-weight: 700; padding: 8px 16px; border-radius: 999px;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--social-fill); }
.hero h1 {
  font-size: clamp(40px, 5.6vw, 66px); line-height: 1.02; letter-spacing: -2.2px;
  margin: 22px 0 6px; font-weight: 800;
}
.hero h1 .serif { display: block; color: var(--brand-fg); font-weight: 500; letter-spacing: -1.2px; }
.lede { font-size: 19px; color: var(--ink2); max-width: 52ch; margin: 14px 0 26px; }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.trust { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 22px; padding: 0; list-style: none; }
.trust li { display: flex; align-items: center; gap: 7px; color: var(--ink2); font-size: 14.5px; font-weight: 600; }
.trust li::before { content: "✓"; color: var(--success-fg); font-weight: 800; }

.hero-photo { position: relative; }
.hero-photo > img {
  display: block; width: 100%; aspect-ratio: 5 / 5.4; object-fit: cover;
  border-radius: 28px; box-shadow: var(--shadow-lift);
}
.float-chip {
  position: absolute; border-radius: 15px; box-shadow: var(--shadow-lift);
  font-size: 13.5px; line-height: 1.45; max-width: 265px;
}
.float-chip.glass { background: var(--glass); color: var(--glass-ink); padding: 13px 16px; backdrop-filter: blur(6px); }
.float-chip.paper { background: var(--card); color: var(--ink); padding: 15px 18px; }
.float-chip .k {
  display: block; font-size: 10.5px; font-weight: 800; letter-spacing: 1.1px;
  text-transform: uppercase; opacity: 0.72; margin-bottom: 3px;
}
.float-chip .v { font-weight: 700; font-size: 14.5px; }
.float-chip .m { display: block; font-size: 12.5px; opacity: 0.75; margin-top: 2px; }
.chip-tr { top: 20px; right: -14px; }
.chip-bl { bottom: 26px; left: -18px; }
.live-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #4FD4DA; margin-right: 6px; }

/* ————— stat row ————— */
.stats { display: flex; gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 44px 0 0; }
.stat { flex: 1; padding: 24px 26px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat .n { font-family: "New York", ui-serif, Georgia, serif; font-size: 42px; line-height: 1; letter-spacing: -1px; }
.stat .l { font-size: 11.5px; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; color: var(--ink3); margin-top: 8px; }

/* ————— layers ————— */
.layers-head { padding: 84px 0 8px; max-width: 62ch; }
.kicker { font-size: 12px; font-weight: 800; letter-spacing: 1.8px; text-transform: uppercase; color: var(--brand-fg); }
.layers-head h2 { font-size: clamp(32px, 4.6vw, 52px); letter-spacing: -1.6px; line-height: 1.06; margin: 14px 0 12px; font-weight: 800; }
.layers-head p { color: var(--ink2); font-size: 18px; margin: 0; }

.layer {
  display: grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items: center;
  padding: 66px 0;
}
.layer + .layer { border-top: 1px solid var(--line); }
.layer.flip .layer-copy { order: 2; }
.layer-tag {
  display: inline-block; font-size: 11.5px; font-weight: 800; letter-spacing: 1.6px;
  text-transform: uppercase; padding: 7px 13px; border-radius: 999px; margin-bottom: 16px;
}
.layer-tag.brand  { color: var(--brand-fg);  background: var(--brand-soft); }
.layer-tag.social { color: var(--social-fg); background: var(--social-soft); }
.layer-tag.civic  { color: var(--civic-fg);  background: var(--civic-soft); }
.layer-tag.found  { color: var(--found-fg);  background: var(--found-soft); }
.layer h3 { font-size: clamp(27px, 3.4vw, 40px); letter-spacing: -1.1px; line-height: 1.1; margin: 0 0 14px; font-weight: 800; }
.layer h3 .serif { color: var(--brand-fg); font-weight: 500; }
.layer p { color: var(--ink2); font-size: 17px; margin: 0; }

/* Local: the canvas panel with drifting update chips */
.pulse-panel {
  position: relative; aspect-ratio: 5 / 4.4; border-radius: 26px; overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow);
  background: linear-gradient(155deg, var(--social-soft), var(--card) 52%, var(--brand-soft));
}
#pulse-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.update-chip {
  position: absolute; display: flex; align-items: center; gap: 8px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 999px; padding: 9px 15px; font-size: 13.5px; font-weight: 650;
  box-shadow: var(--shadow); white-space: nowrap;
}
.update-chip .tag { font-size: 10px; font-weight: 800; letter-spacing: 0.8px; padding: 3px 8px; border-radius: 999px; }
.uc-1 { top: 9%; left: 7%; }
.uc-2 { top: 42%; right: 6%; }
.uc-3 { bottom: 10%; left: 12%; }

/* Discover: the poster wall */
.poster-wall { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.poster {
  border-radius: 20px; overflow: hidden; background: var(--card);
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.poster:nth-child(3) { grid-column: 1 / -1; }
.poster .art {
  height: 96px; display: flex; align-items: flex-end; padding: 14px 16px;
  font-family: "New York", ui-serif, Georgia, serif; font-style: italic;
  font-size: 26px; color: #fff; letter-spacing: -0.5px;
  text-shadow: 0 1px 12px rgba(0,0,0,0.3);
}
.poster:nth-child(1) .art { background: linear-gradient(120deg, #0B7E83, #10555F 65%, #143A47); }
.poster:nth-child(2) .art { background: linear-gradient(120deg, #CE4514, #A93A1B 60%, #6E2B18); }
.poster:nth-child(3) .art { background: linear-gradient(120deg, #6540CE, #4A3494 60%, #2E2360); }
.poster .meta { padding: 13px 16px; }
.poster .meta .t { font-weight: 750; font-size: 15px; }
.poster .meta .d { color: var(--ink3); font-size: 13px; margin-top: 2px; }
.going { display: flex; align-items: center; margin-top: 10px; }
.going i {
  width: 22px; height: 22px; border-radius: 50%; margin-left: -7px;
  border: 2px solid var(--card); font-style: normal; font-size: 10px; font-weight: 800;
  color: #fff; display: grid; place-items: center;
}
.going i:first-child { margin-left: 0; }
.going span { font-size: 12.5px; font-weight: 700; color: var(--social-fg); margin-left: 8px; }

/* LinkUps: photo + chip + micro-timeline */
.linkup-visual { position: relative; }
.linkup-visual > img {
  display: block; width: 100%; aspect-ratio: 1 / 0.92; object-fit: cover;
  border-radius: 26px; box-shadow: var(--shadow-lift);
}
.chip-linkup { top: 18px; left: -16px; }
.mini-times { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.mini-time {
  flex: 1; min-width: 140px; background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; padding: 12px 14px; box-shadow: var(--shadow);
}
.mini-time .h { font-size: 11px; font-weight: 800; letter-spacing: 1px; color: var(--social-fg); }
.mini-time .b { font-size: 13.5px; color: var(--ink2); margin-top: 3px; line-height: 1.4; }

/* Lost & Found: the reunion vignette */
.reunion { position: relative; padding: 30px 0 12px 14px; }
.lf-card {
  position: relative; background: var(--card); border: 1px solid var(--line);
  border-radius: 22px; padding: 22px; box-shadow: var(--shadow-lift); max-width: 400px;
}
.lf-card.back {
  position: absolute; top: 0; right: 0; max-width: 300px; padding: 16px 18px;
  transform: rotate(3.5deg); opacity: 0.85; box-shadow: var(--shadow); z-index: 0;
}
.lf-card.front { transform: rotate(-1.6deg); z-index: 1; }
.lf-badge {
  display: inline-block; font-size: 10.5px; font-weight: 800; letter-spacing: 1.2px;
  padding: 5px 11px; border-radius: 999px; margin-bottom: 12px;
}
.lf-badge.found { color: var(--found-onfill); background: var(--found-fill); }
.lf-badge.lost { color: var(--found-fg); background: var(--found-soft); }
.lf-item { display: flex; gap: 14px; align-items: center; }
.lf-icon {
  width: 54px; height: 54px; border-radius: 15px; background: var(--found-soft);
  display: grid; place-items: center; font-size: 26px; flex-shrink: 0;
}
.lf-item .t { font-weight: 750; font-size: 16.5px; line-height: 1.3; }
.lf-item .d { color: var(--ink3); font-size: 13.5px; margin-top: 2px; }
.lf-note {
  margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line);
  font-size: 13px; color: var(--ink3); display: flex; align-items: center; gap: 7px;
}
.stamp {
  position: absolute; right: -14px; bottom: -18px; transform: rotate(-7deg);
  border: 2.5px solid var(--success-fg); color: var(--success-fg);
  background: var(--success-soft);
  background: color-mix(in srgb, var(--success-soft) 88%, transparent);
  font-weight: 800; font-size: 14px; letter-spacing: 0.6px;
  padding: 9px 15px; border-radius: 12px; box-shadow: var(--shadow); z-index: 2;
}

/* ————— closing ————— */
.closing { text-align: center; padding: 96px 0 30px; }
.closing h2 {
  font-size: clamp(32px, 5vw, 56px); letter-spacing: -1.8px; line-height: 1.05;
  margin: 0 auto 16px; font-weight: 800; max-width: 21ch;
}
.closing h2 .serif { color: var(--brand-fg); font-weight: 500; }
.closing p { color: var(--ink2); font-size: 18px; max-width: 52ch; margin: 0 auto 30px; }
.faces { display: flex; align-items: center; justify-content: center; gap: 0; margin: 0 0 30px; }
.face {
  width: 40px; height: 40px; border-radius: 50%; margin-left: -11px;
  border: 3px solid var(--canvas); display: grid; place-items: center;
  font-size: 14px; font-weight: 800; color: #fff;
}
.face:first-child { margin-left: 0; }

/* ————— footer ————— */
footer.site { margin-top: 70px; border-top: 1px solid var(--line); padding: 28px 0 52px; color: var(--ink3); font-size: 14px; }
footer.site a { color: var(--ink2); text-decoration: none; margin-right: 18px; }
footer.site a:hover { color: var(--brand-fg); text-decoration: underline; }
footer.site .row { display: flex; flex-wrap: wrap; gap: 10px 0; align-items: center; justify-content: space-between; }

/* ————— legal pages ————— */
.legal { padding: 30px 0 0; max-width: 760px; }
.legal h1 { font-size: clamp(30px, 4.6vw, 42px); letter-spacing: -1px; font-weight: 800; }
.legal h2 { font-size: 21px; margin: 36px 0 10px; letter-spacing: -0.3px; }
.legal h3 { font-size: 17px; margin: 24px 0 6px; }
.legal p, .legal li { color: var(--ink2); font-size: 16px; }
.legal ul { padding-left: 22px; }
.legal a { color: var(--brand-fg); }
.legal .updated { color: var(--ink3); font-size: 14px; margin-top: -4px; }
a.back { display: inline-block; margin: 6px 0 8px; color: var(--social-fg); text-decoration: none; font-weight: 700; font-size: 15px; }
a.back:hover { text-decoration: underline; }

/* ————— responsive ————— */
@media (max-width: 900px) {
  nav.layers-nav { display: none; }
  .hero { grid-template-columns: 1fr; gap: 34px; padding-top: 38px; }
  .hero-photo > img { aspect-ratio: 5 / 4.4; }
  .chip-tr { right: 10px; }
  .chip-bl { left: 10px; }
  .stats { flex-wrap: wrap; }
  .stat { flex: 1 1 45%; padding: 18px 18px; border-left: 0; }
  .stat:first-child { padding-left: 18px; }
  .layer { grid-template-columns: 1fr; gap: 30px; padding: 48px 0; }
  .layer.flip .layer-copy { order: 0; }
  .chip-linkup { left: 10px; }
  .lf-card.back { position: relative; margin-bottom: -40px; margin-left: auto; }
  .reunion { padding-left: 0; }
}

#layers, #local, #discover, #linkups, #lostfound { scroll-margin-top: 92px; }

@media (max-width: 620px) {
  .update-chip { white-space: normal; max-width: 74%; line-height: 1.35; }
  .uc-2 { right: 4%; }
  .float-chip { max-width: 205px; font-size: 12.5px; }
  .float-chip .v { font-size: 13.5px; }
  .eyebrow { font-size: 12.5px; }
}

@media (max-width: 620px) {
  /* The bar must survive a phone: the logo carries the identity alone. */
  header.site .name { display: none; }
  header.site .bar { gap: 10px; }
  header.site .cta { padding: 9px 13px; font-size: 13.5px; }
  .langs { margin-left: auto; }
  .langs button { padding: 5px 9px; font-size: 12px; }
  .cta-row .ghost, .cta-row .cta.big { width: 100%; text-align: center; }
}

/* ————— language swapping (must stay LAST) —————
   Component rules set their own display, so these are the final word: an
   element carrying data-lang is hidden unless it is the active language. */
[data-lang] { display: none !important; }
[data-lang].on { display: block !important; }
span[data-lang].on, a[data-lang].on, li[data-lang].on { display: inline-flex !important; }
span.serif[data-lang].on { display: block !important; }
h1 span[data-lang].on, h2 span[data-lang].on, h3 span[data-lang].on { display: block !important; }
