/* VENDRA — shells: landing, sign-in, member app, VENDRA OS, demo script panel */

/* ---------- brand mark ---------- */
.logo { width: 32px; height: 32px; border-radius: 9px; background: var(--brand); display: grid; place-items: center; flex: none; }
.logo svg { display: block; }
.brandmark { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: .08em; font-size: 14.5px; color: inherit; text-decoration: none !important; }
.brandmark small { display: block; font-weight: 500; letter-spacing: 0; font-size: 11.5px; opacity: .7; margin-top: -1px; }
.wip-name { font-size: 10px; letter-spacing: .04em; font-weight: 700; padding: 1px 6px; border-radius: 4px; background: rgba(163, 107, 0, .14); color: var(--gold); text-transform: uppercase; }

/* ---------- landing ---------- */
.landing { min-height: 100vh; background: var(--bg); }
.land-hero { background: radial-gradient(1200px 500px at 85% -10%, rgba(64, 180, 140, .28), transparent 60%), linear-gradient(160deg, #0b2a22 0%, #0d3a2e 55%, #0b6e4f 130%); color: #fff; padding: 22px 0 64px; }
.land-wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.land-nav { display: flex; align-items: center; gap: 14px; margin-bottom: 52px; }
.land-nav .spacer { flex: 1; }
.land-nav a.navlink { color: #cfe3da; font-weight: 550; font-size: 13.5px; }
.land-hero h1 { font-size: clamp(32px, 4.6vw, 54px); line-height: 1.04; letter-spacing: -0.03em; max-width: 820px; font-weight: 780; }
.land-hero h1 em { font-style: normal; color: #7fe0b8; }
.land-hero .lead { font-size: 17px; color: #cfe3da; max-width: 680px; margin: 18px 0 28px; }
.doors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 900px; }
.door { background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .16); border-radius: 16px; padding: 20px; color: #fff; text-decoration: none !important; display: flex; flex-direction: column; gap: 8px; transition: background .15s, transform .15s, border-color .15s; cursor: pointer; text-align: left; }
.door:hover { background: rgba(255, 255, 255, .12); border-color: rgba(127, 224, 184, .6); transform: translateY(-2px); }
.door .ico { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; background: #7fe0b8; color: #0b2a22; }
.door h3 { font-size: 18px; }
.door p { color: #cfe3da; font-size: 13.5px; }
.door .go { margin-top: auto; font-weight: 650; color: #7fe0b8; display: inline-flex; gap: 6px; align-items: center; padding-top: 6px; }
.land-section { padding: 48px 0 8px; }
.land-section h2 { font-size: 24px; letter-spacing: -0.02em; margin-bottom: 6px; }
.land-section > .land-wrap > p.muted { max-width: 760px; margin-bottom: 20px; font-size: 15px; }
.flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; counter-reset: f; }
.flow > div { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; position: relative; }
.flow > div::before { counter-increment: f; content: counter(f); position: absolute; top: 12px; right: 14px; font-weight: 800; color: var(--brand-line); font-size: 22px; }
.flow b { display: block; margin: 8px 0 3px; }
.flow p { font-size: 13px; color: var(--muted); }
.layers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.layer { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; }
.layer .row { margin-bottom: 4px; }
.land-foot { padding: 34px 0 44px; color: var(--muted); font-size: 12.5px; }
@media (max-width: 900px) { .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); } .layers { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .doors { grid-template-columns: 1fr; } .flow { grid-template-columns: 1fr; } .land-nav { margin-bottom: 30px; } .land-wrap { padding: 0 16px; } }

/* ---------- sign-in ---------- */
.login { min-height: 100vh; display: grid; grid-template-columns: minmax(300px, 420px) 1fr; }
.login-side { background: linear-gradient(170deg, #0b2a22, #0d3a2e); color: #fff; padding: 32px; display: flex; flex-direction: column; gap: 20px; }
.login-side h1 { font-size: 26px; line-height: 1.2; }
.login-side p { color: #c3d8cf; font-size: 14px; }
.login-side .note { margin-top: auto; font-size: 12px; color: #8fb0a3; border-top: 1px solid rgba(255,255,255,.12); padding-top: 14px; }
.login-main { padding: 32px 36px; overflow: auto; }
.role-group { margin-top: 22px; }
.role-group h4 { margin-bottom: 8px; }
.accounts { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 10px; }
.account { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: center; text-align: left; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; cursor: pointer; box-shadow: var(--shadow); transition: border-color .15s, transform .15s; }
.account:hover { border-color: var(--brand); transform: translateY(-1px); }
.account .who { font-weight: 650; }
.account .what { font-size: 12.5px; color: var(--muted); line-height: 1.35; }
.account .what .tier { margin-left: 4px; }
@media (max-width: 820px) { .login { grid-template-columns: 1fr; } .login-side { padding: 22px 18px; } .login-side .note { margin-top: 0; } .login-main { padding: 18px 16px 40px; } }

/* ---------- member app shell ---------- */
.mapp { min-height: 100vh; display: flex; flex-direction: column; }
.mtop { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.mtop-in { max-width: 1180px; margin: 0 auto; padding: 0 20px; height: 60px; display: flex; align-items: center; gap: 14px; }
.mnav { display: flex; gap: 2px; margin-left: 10px; }
.mnav a { white-space: nowrap; display: inline-flex; align-items: center; gap: 7px; padding: 8px 11px; border-radius: 8px; color: var(--text-2); font-weight: 580; font-size: 13.5px; text-decoration: none !important; position: relative; }
.mnav a:hover { background: var(--surface-3); }
.mnav a.active { background: var(--brand-soft); color: var(--brand); }
.mnav .count, .mtabs .count { background: var(--action); color: #fff; border-radius: 999px; font-size: 10.5px; font-weight: 700; padding: 0 6px; line-height: 17px; }
.morg { display: flex; align-items: center; gap: 8px; margin-left: auto; min-width: 0; }
.morg-name { font-weight: 650; font-size: 13px; text-align: right; line-height: 1.25; max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.morg-name small { display: block; font-weight: 500; color: var(--muted); font-size: 11.5px; }
.mmain { flex: 1; width: 100%; max-width: 1180px; margin: 0 auto; padding: 24px 20px 48px; }
.mtabs { display: none; }
@media (max-width: 1240px) { .mnav a span.lbl { display: none; } .mnav a.active span.lbl { display: inline; } }
.mtop .brandmark small { display: none; }
@media (max-width: 760px) {
  .mnav { display: none; }
  .mtop-in { padding: 0 14px; height: 54px; }
  .morg-name { display: none; }
  .mmain { padding: 16px 16px 92px; }
  .mtabs { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; bottom: 0; left: 0; right: 0; z-index: 40; background: #fff; border-top: 1px solid var(--border); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .mtabs a { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 10.5px; font-weight: 600; color: var(--muted); text-decoration: none !important; padding: 4px 0; position: relative; }
  .mtabs a.active { color: var(--brand); }
  .mtabs .count { position: absolute; top: 0; left: 55%; }
}
.menu-pop { position: absolute; right: 0; top: calc(100% + 6px); background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-lg); width: 280px; z-index: 60; padding: 6px; }
.menu-pop a, .menu-pop button { display: flex; width: 100%; gap: 10px; align-items: center; padding: 9px 10px; border-radius: 8px; border: 0; background: none; text-align: left; cursor: pointer; color: var(--text); font-weight: 550; text-decoration: none !important; }
.menu-pop a:hover, .menu-pop button:hover { background: var(--surface-3); }
.menu-pop .head { padding: 10px 10px 8px; border-bottom: 1px solid var(--border); margin-bottom: 4px; }
.menu-wrap { position: relative; }
.notif-pop { width: 380px; max-height: 70vh; overflow: auto; padding: 0; }
.notif-pop .n { display: flex; gap: 10px; padding: 11px 14px; border-top: 1px solid var(--border); font-size: 13px; cursor: pointer; }
.notif-pop .n:hover { background: var(--surface-2); }
.notif-pop .n.unread { background: #f6fbf8; }
.notif-pop .n .tiny { margin-top: 2px; }
@media (max-width: 480px) { .notif-pop { width: calc(100vw - 24px); right: -60px; } }

/* ---------- VENDRA OS shell ---------- */
.os { display: grid; grid-template-columns: 244px 1fr; min-height: 100vh; }
.side { background: var(--nav); color: var(--nav-text); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--nav-3) transparent; }
.side .brandmark { padding: 18px 18px 12px; color: #fff; }
.side .brandmark small { color: var(--nav-muted); opacity: 1; }
.side-group { padding: 6px 10px; }
.side-group h5 { margin: 8px 10px 4px; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--nav-muted); font-weight: 700; }
.side a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; color: var(--nav-text); font-weight: 520; text-decoration: none !important; font-size: 13.5px; }
.side a:hover { background: var(--nav-2); color: #fff; }
.side a.active { background: var(--nav-3); color: #fff; box-shadow: inset 3px 0 0 #3fbf8f; }
.side a .count { margin-left: auto; background: #3fbf8f; color: var(--nav); border-radius: 999px; font-size: 10.5px; font-weight: 800; padding: 0 7px; line-height: 18px; }
.side a .count.bad { background: #f87171; color: #2b0707; }
.side-foot { margin-top: auto; padding: 14px 16px; border-top: 1px solid var(--nav-2); font-size: 11.5px; color: var(--nav-muted); }
.os-main { min-width: 0; display: flex; flex-direction: column; }
.os-top { position: sticky; top: 0; z-index: 30; background: rgba(244, 245, 242, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); height: 56px; display: flex; align-items: center; gap: 10px; padding: 0 22px; }
.os-top .crumbs { font-size: 13px; color: var(--muted); font-weight: 550; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.os-top .crumbs b { color: var(--text); }
.os-content { padding: 22px 24px 48px; max-width: 1480px; width: 100%; }
.clock-pill { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 6px 0 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.clock-pill.shifted { background: var(--warn-bg); border-color: var(--warn-line); color: var(--warn); }
.clock-pill button { border: 0; background: var(--surface-3); border-radius: 999px; height: 24px; padding: 0 8px; font-size: 11.5px; font-weight: 700; cursor: pointer; color: var(--text-2); }
.clock-pill button:hover { background: var(--brand-soft); color: var(--brand); }
.os-burger { display: none; }
@media (max-width: 980px) {
  .os { grid-template-columns: 1fr; }
  .side { position: fixed; left: 0; top: 0; bottom: 0; width: 260px; z-index: 80; transform: translateX(-100%); transition: transform .2s; }
  .os.nav-open .side { transform: none; box-shadow: var(--shadow-lg); }
  .os-burger { display: inline-grid; }
  .os-top { padding: 0 12px; }
  .os-content { padding: 16px 16px 48px; }
  .clock-pill .lbl { display: none; }
}

/* ---------- demo script panel ---------- */
.tour { position: fixed; right: 16px; bottom: 16px; z-index: 90; width: min(400px, calc(100vw - 32px)); max-height: min(78vh, 720px); background: var(--surface); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; overflow: hidden; animation: pop .18s; }
.tour-head { padding: 14px 16px; background: var(--brand-deep); color: #fff; display: flex; gap: 10px; align-items: center; }
.tour-head h3 { flex: 1; font-size: 15px; }
.tour-head .icon-btn { color: #fff; } .tour-head .icon-btn:hover { background: rgba(255,255,255,.1); }
.tour-body { overflow: auto; padding: 8px 0; }
.scene { padding: 12px 16px; border-top: 1px solid var(--border); }
.scene:first-child { border-top: 0; }
.scene .n { width: 24px; height: 24px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-weight: 800; font-size: 12px; display: grid; place-items: center; flex: none; }
.scene.done .n { background: var(--brand); color: #fff; }
.scene h4 { text-transform: none; letter-spacing: 0; font-size: 13.5px; color: var(--text); }
.scene p { font-size: 12.5px; color: var(--muted); margin: 4px 0 8px 34px; }
.scene .row { margin-left: 34px; }
.tour-fab { position: fixed; right: 16px; bottom: 16px; z-index: 85; box-shadow: var(--shadow-lg); border-radius: 999px; }
@media (max-width: 760px) { .tour-fab { bottom: 78px; width: 46px; height: 46px; padding: 0; } .tour-fab .lbl { display: none; } .mapp .tour { bottom: 78px; } }
