/* modules.css - light-theme styling for the public /pages/{tier}/ landing pages.
   GDBS marketing surfaces render light ("light all the time"): white cards, slate text,
   purple accent. Paired with /js/module-demo.js for the live client-side demo box. */

:root {
  --md-accent: #0078d4;
  --md-ink: #1e293b;
  --md-body: #475569;
  --md-dim: #64748b;
  --md-line: #e2e8f0;
  --md-good: #047857;
  --md-bad: #b91c1c;
  --md-bg: #f8fafc;
}

* { box-sizing: border-box; }
body.md-page {
  margin: 0; background: var(--md-bg); color: var(--md-body);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.55; -webkit-font-smoothing: antialiased;
}
.md-wrap { max-width: 920px; margin: 0 auto; padding: 28px 20px 64px; }
a { color: var(--md-accent); }

/* top bar */
.md-top { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--md-line); margin-bottom: 26px; }
.md-top .md-brand { font-weight: 800; color: var(--md-ink); letter-spacing: -0.01em; text-decoration: none; font-size: 16px; }
.md-top .md-brand span { color: var(--md-accent); }
.md-top nav a { color: var(--md-body); text-decoration: none; font-size: 13px; margin-left: 16px; }
.md-top nav a:hover { color: var(--md-accent); }

/* site-matching nav - mirrors the gdbs.getvaultsync.com landing nav (GDBS-Pro logo, sticky blurred bar) */
.md-nav { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,0.9); backdrop-filter: blur(12px); border-bottom: 1px solid var(--md-line); }
.md-nav-inner { max-width: 1100px; margin: 0 auto; padding: 0 20px; height: 60px; display: flex; align-items: center; gap: 22px; }
.md-logo { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 300; color: var(--md-ink); text-decoration: none; white-space: nowrap; }
.md-logo i { color: var(--md-accent); font-size: 22px; }
.md-logo-pro { color: var(--md-accent); font-weight: 600; }
.md-nav-links { display: flex; gap: 4px; flex: 1; }
.md-nav-links a { padding: 6px 14px; color: var(--md-body); font-size: 13px; border-radius: 5px; text-decoration: none; transition: all .2s; }
.md-nav-links a:hover { color: var(--md-accent); background: #eff6ff; }
.md-nav-actions { display: flex; gap: 8px; }
.md-nav-btn { display: inline-flex; align-items: center; gap: 6px; border-radius: 5px; font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap; transition: all .2s; }
.md-nav-btn.outline { padding: 7px 16px; background: transparent; color: var(--md-body); border: 1px solid #cbd5e1; }
.md-nav-btn.outline:hover { border-color: var(--md-accent); color: var(--md-accent); }
.md-nav-btn.primary { padding: 8px 18px; background: var(--md-accent); color: #fff; }
.md-nav-btn.primary:hover { background: #106ebe; }
@media (max-width: 720px) { .md-nav-links { display: none; } .md-nav-inner { gap: 12px; } .md-nav-btn.outline { display: none; } }

/* hero */
.md-tier { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--md-accent); background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 999px; padding: 4px 12px; }
.md-h1 { font-size: 34px; line-height: 1.15; font-weight: 850; color: var(--md-ink); margin: 14px 0 6px; letter-spacing: -0.02em; }
.md-tagline { font-size: 17px; color: var(--md-dim); margin: 0 0 22px; }

/* cards / sections */
.md-card { background: #fff; border: 1px solid var(--md-line); border-radius: 14px; padding: 22px 24px; margin: 18px 0;
  box-shadow: 0 1px 2px rgba(15,23,42,0.04); }
.md-card h2 { font-size: 13px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--md-accent); margin: 0 0 10px; }
.md-card h2.alt { color: var(--md-ink); }
.md-card p { margin: 0 0 10px; }
.md-card p:last-child { margin-bottom: 0; }

/* demo box */
.md-demo { background: linear-gradient(180deg, #ffffff, #fbfaff); border: 1.5px solid #bfdbfe; }
.md-demo .md-demo-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.md-demo .md-demo-head .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--md-bad); box-shadow: 0 0 0 4px rgba(185,28,28,0.12); }
.md-demo .md-demo-head strong { color: var(--md-ink); font-size: 14px; }
.md-form { display: grid; gap: 12px; }
.md-field { display: grid; gap: 4px; }
.md-field label { font-size: 12px; font-weight: 600; color: var(--md-body); }
.md-field input, .md-field select { font: inherit; font-size: 14px; padding: 8px 10px; border: 1px solid #cbd5e1; border-radius: 8px; background: #fff; color: var(--md-ink); }
.md-field input:focus, .md-field select:focus { outline: none; border-color: var(--md-accent); box-shadow: 0 0 0 3px rgba(0,120,212,0.12); }
.md-check label { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.md-note-field .md-filenote { font-size: 12px; color: var(--md-dim); font-style: italic; }
.md-adv { margin: 2px 0; }
.md-adv summary { cursor: pointer; font-size: 12px; color: var(--md-accent); }
.md-adv[open] { display: grid; gap: 12px; padding-top: 8px; }
.md-run { margin-top: 6px; font: inherit; font-weight: 700; font-size: 14px; color: #fff; background: var(--md-accent);
  border: none; border-radius: 9px; padding: 11px 16px; cursor: pointer; transition: background .15s; }
.md-run:hover { background: #106ebe; }
.md-run:disabled { opacity: .6; cursor: progress; }
.md-priv { font-size: 11.5px; color: var(--md-bad); font-weight: 600; }
.md-loading, .md-err { font-size: 13px; color: var(--md-dim); padding: 10px 0; }
.md-err { color: var(--md-bad); }

/* result */
.md-out { margin-top: 14px; }
.md-result { border-top: 1px dashed var(--md-line); padding-top: 14px; }
.md-trust { display: inline-block; font-size: 12px; font-weight: 800; border-radius: 8px; padding: 5px 11px; margin-bottom: 10px; }
.md-summary { width: 100%; border-collapse: collapse; font-size: 13px; margin: 4px 0 8px; }
.md-summary td { padding: 5px 8px; border-bottom: 1px solid #eef2f7; white-space: normal; vertical-align: top; }
.md-summary td:first-child { color: var(--md-dim); width: 42%; }
.md-summary td:last-child { color: var(--md-ink); font-weight: 600; }
.md-report { font-size: 12.5px; color: var(--md-body); }
.md-report table { width: 100%; border-collapse: collapse; }
.md-report td { white-space: normal; }
.md-canvas { width: 100%; max-width: 520px; height: auto; margin-top: 10px; border: 1px solid var(--md-line); border-radius: 8px; background: #fff; }

/* capability grid */
.md-caps { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 22px; }
.md-caps .cap { font-size: 13.5px; color: var(--md-body); padding-left: 20px; position: relative; }
.md-caps .cap::before { content: "+"; position: absolute; left: 0; color: var(--md-good); font-weight: 800; }
@media (max-width: 640px) { .md-caps { grid-template-columns: 1fr; } .md-h1 { font-size: 27px; } }

/* references */
.md-refs { list-style: none; padding: 0; margin: 0; }
.md-refs li { font-size: 12.5px; color: var(--md-dim); padding: 5px 0; border-bottom: 1px solid #f1f5f9; }

/* CTA */
.md-cta { text-align: center; background: linear-gradient(135deg, #eff6ff, #eff6ff); border-color: #bfdbfe; }
.md-cta h2 { color: var(--md-ink); font-size: 19px; text-transform: none; letter-spacing: -0.01em; }
.md-cta p { max-width: 560px; margin: 0 auto 16px; }
.md-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.md-btn { font-weight: 700; font-size: 14px; text-decoration: none; border-radius: 10px; padding: 11px 20px; display: inline-block; }
.md-btn.primary { color: #fff; background: var(--md-accent); }
.md-btn.primary:hover { background: #106ebe; }
.md-btn.ghost { color: var(--md-accent); background: #fff; border: 1.5px solid #bfdbfe; }
.md-btn.ghost:hover { background: #eff6ff; }

/* honest-scope note */
.md-scope { font-size: 12px; color: var(--md-dim); background: #f8fafc; border-left: 3px solid #cbd5e1; padding: 10px 14px; border-radius: 0 8px 8px 0; }
.md-scope b { color: var(--md-body); }

/* catalog directory (the /pages/ hub) */
.md-cat { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 22px; }
.md-cat a { display: block; font-size: 13.5px; color: var(--md-body); text-decoration: none; padding: 5px 8px; border-radius: 7px; border: 1px solid transparent; }
.md-cat a:hover { color: var(--md-accent); background: #eff6ff; border-color: #dbeafe; }
@media (max-width: 640px) { .md-cat { grid-template-columns: 1fr; } }
.md-count { font-size: 12px; color: var(--md-dim); font-weight: 600; }

/* filterable catalog table */
.md-controls { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.md-controls input, .md-controls select { font: inherit; font-size: 13.5px; padding: 8px 10px; border: 1px solid #cbd5e1; border-radius: 8px; background: #fff; color: var(--md-ink); }
.md-controls #cat-q { flex: 1 1 220px; min-width: 180px; }
.md-controls select { flex: 0 0 auto; cursor: pointer; }
.md-controls input:focus, .md-controls select:focus { outline: none; border-color: var(--md-accent); box-shadow: 0 0 0 3px rgba(0,120,212,0.12); }
.md-table-card { padding: 14px 16px; }
.md-tcount { font-size: 12px; color: var(--md-dim); margin-bottom: 8px; }
.md-tscroll { overflow-x: auto; }
.md-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.md-table thead th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--md-dim); font-weight: 700; padding: 7px 10px; border-bottom: 2px solid var(--md-line); cursor: pointer; white-space: nowrap; user-select: none; }
.md-table thead th:hover { color: var(--md-accent); }
.md-table thead th[data-sort=asc]::after { content: " \2191"; color: var(--md-accent); }
.md-table thead th[data-sort=desc]::after { content: " \2193"; color: var(--md-accent); }
.md-table tbody td { padding: 8px 10px; border-bottom: 1px solid #eef2f7; vertical-align: top; white-space: normal; }
.md-table tbody tr:hover { background: #f5faff; }
.md-table tbody td a { color: var(--md-accent); text-decoration: none; font-weight: 600; }
.md-table tbody td a:hover { text-decoration: underline; }
.md-tdesc { color: var(--md-dim); font-size: 12px; max-width: 420px; }
.md-livetag { display: inline-block; font-size: 9px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: var(--md-good); background: #ecfdf5; border-radius: 5px; padding: 1px 5px; vertical-align: middle; }

/* request-a-plugin form */
.md-req { display: grid; gap: 12px; max-width: 520px; margin: 16px auto 0; text-align: left; }
.md-req textarea { font: inherit; font-size: 14px; padding: 8px 10px; border: 1px solid #cbd5e1; border-radius: 8px; background: #fff; color: var(--md-ink); resize: vertical; }
.md-req textarea:focus, .md-req input:focus, .md-req select:focus { outline: none; border-color: var(--md-accent); box-shadow: 0 0 0 3px rgba(0,120,212,0.12); }
.md-req .md-btn { justify-self: start; border: none; cursor: pointer; }

/* footer */
.md-foot { margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--md-line); font-size: 12px; color: var(--md-dim); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.md-foot a { color: var(--md-dim); text-decoration: none; }
.md-foot a:hover { color: var(--md-accent); }
