/* landing-hub.css — Etalase hero-first (S1–S8).
   Dimuat SETELAH auto/landing.css untuk meng-override layout app-shell jadi
   dokumen scroll normal. Hero (chat) tetap = 1 viewport pertama, section
   S2–S8 mengalir di bawahnya. Token-only (navy, dark+light via data-theme). */

/* ── §1 Layout override: app-shell full-viewport → dokumen scroll ── */
:root { --lhub-nav-h: 64px; --lhub-max: 1180px; }
html { height: auto; }
body.page-landing {
  overflow: visible; overflow-x: hidden;
  height: auto; min-height: 100dvh;
}
body.page-landing main.main-content { display: block; }
.nav-guest { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(10px); }
.chat-shell {
  height: calc(100vh - var(--lhub-nav-h));
  height: calc(100dvh - var(--lhub-nav-h));
  min-height: 480px;
}
.lhub-sec { scroll-margin-top: calc(var(--lhub-nav-h) + 12px); }

/* ── Navbar anchor nav (desktop only) ── */
.nav-anchors { display: flex; gap: 1.4rem; margin-left: 2rem; }
.nav-anchors a {
  color: var(--txt-muted); text-decoration: none; font-size: .9rem; font-weight: 500;
  transition: color .15s; white-space: nowrap;
}
.nav-anchors a:hover { color: var(--txt); }
@media (max-width: 900px) { .nav-anchors { display: none; } }

/* ── Hero scroll cue ── */
.hero-scroll-cue {
  display: inline-flex; align-items: center; gap: .4rem; margin-top: 1.6rem;
  color: var(--txt-muted); text-decoration: none; font-size: .88rem; font-weight: 500;
}
.hero-scroll-cue:hover { color: var(--accent); }
.hero-scroll-cue::after { content: "↓"; animation: lhubBob 1.8s ease-in-out infinite; }
@keyframes lhubBob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(4px); } }

/* ── Shared section scaffolding ── */
.lhub { width: 100%; }
.lhub-sec { padding: 4.2rem 1.5rem; }
.lhub-inner { max-width: var(--lhub-max); margin: 0 auto; }
.lhub-kicker {
  font-family: var(--ff-mono, ui-monospace, monospace); font-size: .74rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent); margin: 0 0 .7rem;
}
.lhub-title {
  font-family: var(--ff-display, "Playfair Display", serif); font-weight: 600;
  font-size: clamp(1.7rem, 3.4vw, 2.5rem); line-height: 1.12; margin: 0 0 .8rem; color: var(--txt);
}
.lhub-title em {
  font-style: normal;
  background: var(--grad-text-unified, linear-gradient(120deg, #3B82F6, #22D3EE));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.lhub-sub { color: var(--txt-muted); font-size: 1.02rem; line-height: 1.6; max-width: 620px; margin: 0 0 2rem; }
.lhub-sec--alt { background: var(--bg-elev); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* Card base */
.lhub-card {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--r-lg, 16px);
  padding: 1.4rem; transition: border-color .15s, transform .15s;
}
a.lhub-card, .lhub-card--link { text-decoration: none; display: block; color: inherit; }
a.lhub-card:hover, .lhub-card--link:hover { border-color: var(--accent); transform: translateY(-2px); }
.lhub-card .ic { width: 1.5em; height: 1.5em; color: var(--accent); }
.lhub-card h3 { font-size: 1.06rem; margin: .7rem 0 .35rem; color: var(--txt); }
.lhub-card p { color: var(--txt-muted); font-size: .92rem; line-height: 1.55; margin: 0; }

/* ── S2 Strip bukti ── */
.lhub-proof { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; text-align: center; }
.lhub-proof-item .n {
  font-family: var(--ff-display, serif); font-size: 2.1rem; font-weight: 600; color: var(--txt); line-height: 1;
  display: inline-flex; align-items: center; gap: .4rem;
}
.lhub-proof-item .n .ic { width: .8em; height: .8em; color: var(--accent); }
.lhub-proof-item .l {
  font-family: var(--ff-mono, monospace); font-size: .74rem; letter-spacing: .06em;
  text-transform: uppercase; color: var(--txt-muted); margin-top: .45rem;
}

/* ── S3 Stages ── */
.lhub-stages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.lhub-stage .num {
  font-family: var(--ff-mono, monospace); font-size: .82rem; color: var(--accent); font-weight: 600;
}
.lhub-stage h3 { display: inline-flex; align-items: center; gap: .5rem; }

/* ── S4 Pillars ── */
.lhub-pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem; }
.lhub-pillar ul { list-style: none; padding: 0; margin: 1rem 0 1.3rem; display: flex; flex-direction: column; gap: .5rem; }
.lhub-pillar li { display: flex; align-items: flex-start; gap: .5rem; color: var(--txt-muted); font-size: .92rem; }
.lhub-pillar li .ic { width: 1.05em; height: 1.05em; color: var(--ok, #22C55E); flex-shrink: 0; margin-top: .12rem; }
.lhub-cta-btn {
  display: inline-flex; align-items: center; gap: .4rem; padding: .6rem 1.1rem; border-radius: var(--r-pill, 999px);
  background: var(--accent); color: var(--bg); font-weight: 600; font-size: .9rem; text-decoration: none; border: 0; cursor: pointer;
}
.lhub-cta-btn:hover { filter: brightness(1.08); }
.lhub-cta-btn.ghost { background: transparent; color: var(--txt); border: 1px solid var(--line); }
.lhub-cta-btn.ghost:hover { border-color: var(--accent); filter: none; }
.lhub-mini { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.3rem; }
.lhub-mini .lhub-card { padding: 1.05rem 1.2rem; }
.lhub-mini h3 { font-size: .98rem; margin: 0 0 .25rem; }

/* ── S5 Marketplace ── */
.lhub-market { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.lhub-badge {
  display: inline-block; font-size: .68rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase;
  padding: .18rem .55rem; border-radius: var(--r-pill, 999px); margin-bottom: .2rem;
}
.lhub-badge.included { background: var(--accent-soft, rgba(56,189,248,.12)); color: var(--accent); }
.lhub-badge.soon { background: var(--warn-soft, rgba(234,179,8,.14)); color: var(--warn, #EAB308); }
.lhub-market .lhub-cta-btn { margin-top: 1rem; width: 100%; justify-content: center; }

/* ── S6 Features ── */
.lhub-feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.lhub-feats .lhub-card { padding: 1.2rem; }

/* ── S7 Pricing strip ── */
.lhub-price { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.lhub-price-item { text-align: center; padding: 1.3rem 1rem; }
.lhub-price-item .tier { font-family: var(--ff-mono, monospace); font-size: .76rem; letter-spacing: .06em; text-transform: uppercase; color: var(--txt-muted); }
.lhub-price-item .amt { font-family: var(--ff-display, serif); font-size: 1.7rem; font-weight: 600; color: var(--txt); margin: .35rem 0 .1rem; }
.lhub-price-item .per { color: var(--txt-faint); font-size: .82rem; }
.lhub-price-note { text-align: center; color: var(--txt-muted); font-size: .9rem; margin-top: 1.3rem; }
.lhub-price-note a { color: var(--accent); text-decoration: none; }
.lhub-price-cta { display: flex; gap: .8rem; justify-content: center; margin-top: 1.6rem; flex-wrap: wrap; }

/* ── S8 Closing ── */
.lhub-close { text-align: center; }
.lhub-close .lhub-title { font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: 1rem; }
.lhub-close .lhub-sub { margin: 0 auto 2rem; }
.lhub-close-cta { display: flex; gap: .9rem; justify-content: center; flex-wrap: wrap; margin-bottom: 1.4rem; }
.lhub-close-link { color: var(--txt-muted); font-size: .9rem; text-decoration: none; }
.lhub-close-link:hover { color: var(--accent); }

/* ── Waitlist modal ── */
.lhub-modal {
  position: fixed; inset: 0; z-index: 1000; display: none; align-items: center; justify-content: center;
  background: rgba(6,10,20,.62); padding: 1.2rem;
}
.lhub-modal.open { display: flex; }
.lhub-modal-card {
  background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--r-lg, 16px);
  width: min(440px, 100%); padding: 1.6rem; box-shadow: var(--shadow, 0 20px 60px rgba(0,0,0,.35));
}
.lhub-modal-card h3 { margin: 0 0 .4rem; color: var(--txt); font-size: 1.2rem; }
.lhub-modal-card p { color: var(--txt-muted); font-size: .92rem; margin: 0 0 1.1rem; }
.lhub-modal-card input {
  width: 100%; padding: .65rem .8rem; margin-bottom: .7rem; border: 1px solid var(--line);
  border-radius: var(--r-sm, 8px); background: var(--bg-input); color: var(--txt); font: inherit;
}
.lhub-modal-actions { display: flex; gap: .6rem; margin-top: .4rem; }
.lhub-modal-msg { font-size: .88rem; margin-top: .6rem; min-height: 1.1em; }
.lhub-modal-x { background: none; border: 0; color: var(--txt-muted); font-size: 1.4rem; cursor: pointer; float: right; line-height: 1; }

/* ── Mobile ── */
@media (max-width: 720px) {
  .lhub-sec { padding: 3rem 1.15rem; }
  .lhub-proof { grid-template-columns: repeat(2, 1fr); gap: 1.6rem 1rem; }
  .lhub-stages, .lhub-pillars, .lhub-mini, .lhub-market, .lhub-feats, .lhub-price { grid-template-columns: 1fr; }
  .lhub-price-item { padding: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  a.lhub-card:hover, .lhub-card--link:hover { transform: none; }
  html { scroll-behavior: auto; }
}
:root { scroll-behavior: smooth; }

/* ════════════════════════════════════════════════════════════════════
   S1 · HERO ETALASE RISET (marketplace-forward) — "Etalase Riset"
   Chat tak lagi 100dvh; jadi konsol ringkas. Etalase produk = bintang fold.
   ════════════════════════════════════════════════════════════════════ */
.lm-hero { padding: 2.4rem 1.5rem 0; }
.lm-hero-inner { max-width: var(--lhub-max); margin: 0 auto; width: 100%; display: flex; flex-direction: column; gap: 1.7rem; }

.lm-copy { text-align: center; max-width: 760px; margin: 0 auto; }
.lm-kicker { font-family: var(--ff-mono, ui-monospace, monospace); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: .8rem; }
.lm-h1 { font-family: var(--ff-display, "Playfair Display", serif); font-weight: 500; letter-spacing: -.02em; font-size: clamp(2.05rem, 1.2rem + 2.9vw, 3.3rem); line-height: 1.06; color: var(--txt); margin: 0 0 .9rem; }
.lm-h1 em { font-style: italic; background: var(--grad-text-unified, linear-gradient(120deg, #3B82F6, #22D3EE)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.lm-sub { color: var(--txt-muted); font-size: 1rem; line-height: 1.6; max-width: 52ch; margin: 0 auto; }

/* Etalase toolbar */
.lm-et-bar { display: flex; align-items: center; justify-content: space-between; gap: .8rem; flex-wrap: wrap; }
.lm-et-cats { display: flex; gap: .5rem; flex-wrap: wrap; }
.lm-cat { display: inline-flex; align-items: center; gap: .45rem; font: inherit; font-size: .87rem; font-weight: 500; padding: .48rem .95rem; cursor: pointer; border: 1px solid var(--line); border-radius: var(--r-pill, 999px); background: var(--bg-card); color: var(--txt-muted); transition: border-color .15s, color .15s, background .15s; }
.lm-cat:hover { border-color: var(--accent); color: var(--txt); }
.lm-cat.is-on { border-color: var(--accent); background: var(--accent-soft, rgba(56,189,248,.12)); color: var(--txt); }
.lm-cat .lm-code { position: static; }
.lm-et-search { display: inline-flex; align-items: center; gap: .5rem; padding: .5rem 1rem; min-width: 240px; border: 1px solid var(--line); border-radius: var(--r-pill, 999px); background: var(--bg-input); color: var(--txt-faint); font-size: .86rem; text-decoration: none; transition: border-color .15s, color .15s; }
.lm-et-search:hover { border-color: var(--accent); color: var(--txt-muted); }

/* Product grid */
.lm-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.lm-prod { display: flex; flex-direction: column; background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--r-lg, 16px); overflow: hidden; text-decoration: none; color: inherit; transition: border-color .15s, transform .15s; }
.lm-prod:hover { border-color: var(--accent); transform: translateY(-3px); }
.lm-prod.hide { display: none; }
.lm-prod-cover { position: relative; aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--accent-soft, rgba(56,189,248,.10)), var(--bg-input)); }
.lm-prod-cover img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; display: block; }
.lm-prod-ph { position: absolute; inset: 0; display: grid; place-items: center; }
.lm-prod-ph .ic { width: 2rem; height: 2rem; color: var(--accent); opacity: .55; }
.lm-code { position: absolute; top: .6rem; left: .6rem; font-family: var(--ff-mono, monospace); font-size: .64rem; letter-spacing: .08em; color: var(--accent); background: var(--accent-soft, rgba(56,189,248,.12)); padding: .14rem .45rem; border-radius: var(--r-pill, 999px); }
.lm-prod-cover .lm-code { z-index: 2; background: var(--bg-elev); }
.lm-prod-body { display: flex; flex-direction: column; gap: .35rem; flex: 1; padding: .85rem .95rem 1rem; }
.lm-prod-body h3 { margin: 0; font-size: .95rem; line-height: 1.35; color: var(--txt); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lm-prod-body p { margin: 0; font-size: .8rem; line-height: 1.45; color: var(--txt-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lm-prod-meta { margin-top: auto; padding-top: .5rem; }
.lm-tag { display: inline-block; font-size: .68rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; width: fit-content; padding: .16rem .5rem; border-radius: var(--r-pill, 999px); }
.lm-tag.included { background: var(--accent-soft, rgba(56,189,248,.12)); color: var(--accent); }
.lm-tag.free { background: var(--ok-soft, rgba(34,197,94,.14)); color: var(--ok, #22C55E); }
.lm-tag.price { background: var(--bg-input); color: var(--txt); border: 1px solid var(--line); }
.lm-tag.soon { background: var(--warn-soft, rgba(234,179,8,.14)); color: var(--warn, #EAB308); }
.lm-grid-empty { grid-column: 1 / -1; text-align: center; padding: 2.2rem 1rem; border: 1px dashed var(--line); border-radius: var(--r-lg, 16px); color: var(--txt-muted); }
.lm-grid-empty p { margin: 0 0 .8rem; }
.lm-et-foot { text-align: center; margin-top: 1.1rem; }
.lm-et-foot a { color: var(--accent); text-decoration: none; font-size: .92rem; font-weight: 500; }

/* Empty-catalog fallback doors */
.lm-doors { display: grid; grid-template-columns: repeat(3, 1fr); gap: .9rem; }
.lm-door { position: relative; text-align: left; cursor: pointer; font: inherit; background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--r-lg, 16px); padding: 1.3rem 1.1rem 1.1rem; color: inherit; text-decoration: none; display: flex; flex-direction: column; gap: .45rem; min-height: 160px; transition: border-color .15s, transform .15s; }
.lm-door:hover { border-color: var(--accent); transform: translateY(-3px); }
.lm-door .ic { color: var(--accent); }
.lm-door h3 { margin: 0; font-size: .98rem; color: var(--txt); }
.lm-door p { margin: 0; font-size: .8rem; color: var(--txt-muted); line-height: 1.45; }
.lm-door .lm-tag { margin-top: auto; }
.lm-door .lm-code { top: .8rem; right: .8rem; left: auto; }

/* Proof bar */
.lm-proofbar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; border-top: 1px solid var(--line); margin-top: .4rem; padding: 1.1rem 0 1.3rem; text-align: center; }
.lm-proof-item .n { font-family: var(--ff-display, serif); font-size: 1.55rem; font-weight: 600; color: var(--txt); display: block; line-height: 1; }
.lm-proof-item .l { font-family: var(--ff-mono, monospace); font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; color: var(--txt-muted); margin-top: .3rem; display: block; }

/* ── Floating asisten Risos AI ── */
.rb-root { position: fixed; right: 18px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 900; }
.rb-fab { width: 56px; height: 56px; border-radius: 50%; border: 0; cursor: pointer; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; position: relative; box-shadow: 0 12px 32px -8px var(--accent-soft, rgba(56,189,248,.5)); transition: transform .18s; }
.rb-fab:hover { transform: translateY(-2px); }
.rb-fab svg { width: 24px; height: 24px; stroke-width: 2; }
.rb-fab .ico-x { display: none; }
.rb-root.open .rb-fab .ico-chat { display: none; }
.rb-root.open .rb-fab .ico-x { display: block; }
.rb-badge { position: absolute; top: 3px; right: 3px; width: 11px; height: 11px; border-radius: 50%; background: var(--warn, #EAB308); border: 2px solid var(--bg); }
.rb-panel { display: none; position: absolute; bottom: calc(56px + 14px); right: 0; width: min(380px, calc(100vw - 28px)); height: min(560px, calc(100dvh - 120px)); flex-direction: column; overflow: hidden; background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--r-lg, 16px); box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.rb-root.open .rb-panel { display: flex; animation: rbIn .18s ease; }
@keyframes rbIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.rb-head { display: flex; align-items: center; gap: .6rem; padding: .8rem .9rem; border-bottom: 1px solid var(--line); flex-shrink: 0; }
.rb-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok, #22C55E); box-shadow: 0 0 0 3px var(--ok-soft, rgba(34,197,94,.14)); flex-shrink: 0; }
.rb-head-txt { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.rb-head-txt strong { font-size: .92rem; color: var(--txt); }
.rb-head-txt span { font-size: .74rem; color: var(--txt-muted); }
.rb-close { background: none; border: 0; cursor: pointer; color: var(--txt-muted); padding: .3rem; }
.rb-close svg { width: 16px; height: 16px; stroke-width: 2; }
.rb-greet { margin: 0; font-size: .86rem; line-height: 1.5; color: var(--txt-muted); }
.rb-panel .chat-area { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: .9rem .9rem .3rem; align-items: stretch; }
.rb-panel .chat-inner { max-width: none; gap: 14px; }
.rb-panel .greet-wrap { margin: 0; padding: .2rem .1rem; gap: .7rem; }
.rb-panel .chip-row { display: flex; flex-wrap: wrap; gap: .45rem; }
.rb-panel .chip { padding: .45rem .8rem; border-radius: var(--r-pill, 999px); flex-direction: row; gap: 0; background: var(--bg-input); }
.rb-panel .chip-text { font-family: var(--ff-body, sans-serif); font-size: .8rem; font-weight: 500; }
.rb-panel .gmsg { max-width: 94%; }
.rb-panel .input-bar { position: static; background: transparent; backdrop-filter: none; border-top: 1px solid var(--line); padding: .55rem .7rem .65rem; flex-shrink: 0; }
.rb-panel .input-inner { max-width: none; }
.rb-panel .cta-box { padding: 14px 14px; gap: 10px; }

@media (max-width: 1020px) {
  .lm-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 720px) {
  .lm-et-bar { flex-direction: column; align-items: stretch; }
  .lm-et-cats { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; padding-bottom: .2rem; }
  .lm-et-cats::-webkit-scrollbar { display: none; }
  .lm-cat { flex: 0 0 auto; }
  .lm-et-search { min-width: 0; }
  .lm-grid { grid-template-columns: repeat(2, 1fr); }
  .lm-prod-body p { display: none; }
  .lm-doors { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: .7rem; padding-bottom: .4rem; margin-inline: -1.15rem; padding-inline: 1.15rem; scrollbar-width: none; }
  .lm-doors::-webkit-scrollbar { display: none; }
  .lm-door { flex: 0 0 72%; scroll-snap-align: start; }
  .lm-proofbar { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .rb-panel { position: fixed; inset: auto 0 0 0; width: 100%; height: min(80dvh, 640px); border-radius: 18px 18px 0 0; border-bottom: 0; }
  .rb-root.open .rb-fab { display: none; }
  body.rb-open { overflow: hidden; }
}
@media (prefers-reduced-motion: reduce) {
  .lm-door:hover, .lm-prod:hover { transform: none; }
  .rb-root.open .rb-panel { animation: none; }
}
