/* Public marketplace landing page (builds on app.css variables) */
/* height:auto so the body is as tall as the page; at 100% the sticky header scrolled away after one screen */
body.market { background: var(--cream); height: auto; min-height: 100%; }
.market .topbar { position: sticky; top: 0; z-index: 20; box-shadow: 0 2px 12px rgba(5, 11, 34, .25); }
.market section[id] { scroll-margin-top: 72px; }
.m-nav { display: flex; gap: 22px; }
.m-nav a { white-space: nowrap; color: #D9DEEA; text-decoration: none; font-weight: 600; font-size: 14px; }
.m-nav a:hover { color: #fff; }
.btn-ghost-dark { background: transparent; color: #fff; border-color: #34405E; }
.btn-ghost-dark:hover { border-color: #8A95B0; }

.hero { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 70%, #2A365A 100%); color: #fff; padding: 64px 24px 56px; }
.hero-inner { max-width: 1080px; margin: 0 auto; }
.eyebrow { color: #F0A374; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: 12px; }
.hero h1 { font-size: clamp(28px, 4vw, 44px); line-height: 1.12; margin: 12px 0 14px; max-width: 820px; letter-spacing: -.01em; }
.hero .lede { color: #C9D0E0; font-size: 16.5px; max-width: 760px; margin: 0 0 24px; }
.hero-search { display: flex; gap: 10px; max-width: 680px; }
.hero-search input { flex: 1; font: inherit; font-size: 16px; padding: 12px 16px; border-radius: 10px; border: 0; }
.hero-search .btn { padding: 12px 18px; }
.stats { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 30px; }
.stat { display: flex; flex-direction: column; } .stat b { font-size: 28px; } .stat span { color: #AEB7CC; font-size: 13px; }

.personas { max-width: 1080px; margin: -28px auto 0; padding: 0 24px; display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 16px; position: relative; }
.persona { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 6px 24px rgba(18, 26, 46, .08); }
.persona h3 { font-size: 18px; } .persona p { margin: 0; color: var(--muted); }
.p-icon { width: 40px; height: 40px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-size: 20px; }
.p-actions { margin-top: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.p-roles { display: flex; flex-wrap: wrap; gap: 6px; }
.p-roles a { font-size: 12.5px; font-weight: 600; text-decoration: none; color: var(--ink); border: 1px solid var(--line); border-radius: 20px; padding: 4px 10px; }
.p-roles a:hover { border-color: var(--accent); color: var(--accent); }

.catalog, .how, .changes, .faq, .compare { max-width: 1080px; margin: 48px auto 0; padding: 0 24px; }
.catalog h2, .how h2, .changes h2, .faq h2, .compare h2 { font-size: 24px; margin-bottom: 14px; }
.cat-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 12px; }
.cat-tools { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.cat-tools .lb-tabs { margin: 0; }
.cat-tools select { font: inherit; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line); background: #fff; }
.toggle { display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: 13px; }

.m-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; margin-top: 16px; }
.m-card { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: inherit; transition: box-shadow .15s, transform .15s; }
.m-card:hover { box-shadow: 0 8px 26px rgba(18, 26, 46, .12); transform: translateY(-2px); }
.m-card.flagged { border-color: #E9B8B4; }
.m-top { display: flex; justify-content: space-between; align-items: center; }
.m-main { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.m-text h3 { font-size: 18px; word-break: break-word; }
.m-desc { margin: 0; color: var(--muted); font-size: 13.5px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.m-foot-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.m-flag { color: var(--fail); font-weight: 600; font-size: 12.5px; }
.m-link { color: var(--accent); font-weight: 600; font-size: 13px; }
.small { font-size: 12.5px; }
.tier-pill { font-size: 12px; font-weight: 700; border-radius: 12px; padding: 2px 9px; background: #EEF0F3; color: #4A5268; }
.tier-pill.t1 { background: var(--pass-bg); color: var(--pass); } .tier-pill.t2 { background: var(--prov-bg); color: var(--prov); } .tier-pill.t3 { background: var(--fail-bg); color: var(--fail); }
.m-empty { grid-column: 1 / -1; text-align: center; padding: 30px; background: var(--paper); border: 1px dashed var(--line); border-radius: 16px; }
.fine { font-size: 12.5px; margin-top: 14px; max-width: 860px; }

.how-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; counter-reset: s; }
.how-steps li { counter-increment: s; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 4px; }
.how-steps li::before { content: counter(s); width: 26px; height: 26px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 13px; margin-bottom: 4px; }
.how-steps span { color: var(--muted); font-size: 13px; }
.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; margin-top: 14px; }
.tier { border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 3px; font-size: 13.5px; }
.tier.t1 { background: var(--pass-bg); } .tier.t2 { background: var(--prov-bg); } .tier.t3 { background: var(--fail-bg); }
.m-foot { max-width: 1080px; margin: 48px auto 0; padding: 22px 24px 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.m-foot a { color: var(--accent); }
.m-disclaimer { margin: 8px 0 0; font-size: 12px; max-width: 860px; }

.compare > p { margin: -6px 0 12px; }
.cmp-wrap { overflow-x: auto; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; }
.cmp { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 680px; }
.cmp th, .cmp td { padding: 11px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.cmp tbody tr:last-child th, .cmp tbody tr:last-child td { border-bottom: 0; }
.cmp thead th { font-size: 13px; color: var(--muted); font-weight: 700; }
.cmp tbody th { font-weight: 700; width: 22%; }
.cmp td { color: var(--muted); }
.cmp .us { background: var(--accent-soft); color: var(--ink); font-weight: 600; }
.cmp thead .us { color: var(--accent); }
.faq-lead { background: var(--navy); color: #E6EAF2; border-radius: 14px; padding: 16px 18px; font-size: 15px; line-height: 1.55; margin-bottom: 14px; }
.faq-lead b { color: #F0A374; }
.faq-list { display: grid; gap: 8px; }
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 0 16px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 14px; color: var(--muted); max-width: 860px; }

@media (max-width: 720px) {
  .m-nav { display: none; }
  .hero { padding: 40px 18px 48px; }
  .hero-search { flex-direction: column; }
  .personas { margin-top: -20px; }
}

/* site footer: navy like the header */
.site-foot { background: var(--navy); color: #AEB7CC; margin-top: 56px; font-size: 13.5px; }
.sf-inner { max-width: 1080px; margin: 0 auto; padding: 40px 24px 28px; display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 28px; }
.sf-brand p { margin: 12px 0 12px; max-width: 320px; line-height: 1.55; }
.sf-brand .wordmark { text-decoration: none; }
.sf-std { display: flex; flex-wrap: wrap; gap: 6px; }
.sf-std span { font-size: 11.5px; font-weight: 600; color: #D9DEEA; border: 1px solid #34405E; border-radius: 20px; padding: 3px 9px; }
.sf-col { display: flex; flex-direction: column; gap: 9px; }
.sf-col h4 { margin: 4px 0 4px; color: #fff; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; }
.sf-col a { color: #AEB7CC; text-decoration: none; }
.sf-col a:hover { color: #3FC8F0; }
.sf-bottom { max-width: 1080px; margin: 0 auto; padding: 16px 24px 28px; border-top: 1px solid #263150; display: flex; gap: 24px; justify-content: space-between; font-size: 12px; color: #8A95B0; }
.sf-bottom span:first-child { white-space: nowrap; color: #D9DEEA; }
.sf-bottom span:last-child { max-width: 680px; text-align: right; }
@media (max-width: 860px) {
  .sf-inner { grid-template-columns: 1fr 1fr; }
  .sf-brand { grid-column: 1 / -1; }
  .sf-bottom { flex-direction: column; } .sf-bottom span:last-child { text-align: left; }
}
