/* Capital MCA — Client Portal styles
   Visual tokens copied from the live site (capital-mca.html):
   dark navy, platinum only (no gold/brass), Cinzel / Cormorant Garamond
   display serif, Libre Franklin body, IBM Plex Mono labels. */
:root {
  --ink: #0a0e16;
  --ink-2: #0e1320;
  --ink-3: #131a2a;
  --panel: #101623;
  --line: rgba(192, 199, 211, 0.16);
  --line-strong: rgba(192, 199, 211, 0.32);
  --plat: #c9cfda;
  --plat-bright: #eceff4;
  --plat-dim: #8d97a8;
  --plat-faint: #5f6878;
  --text: #dfe4ec;
  --text-soft: #a7b0c0;
  --text-mute: #798392;
  --ok: #9fc3a8;
  --warn: #d8c9a3;
  --err: #d8a3a3;
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --display: "Cinzel", "Times New Roman", Georgia, serif;
  --sans: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: var(--plat); color: var(--ink); }
a { color: inherit; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; color: var(--plat-bright); line-height: 1.15; margin: 0; }
p { margin: 0 0 14px; }

/* ---------- top platinum rule ---------- */
.top-rule {
  height: 3px;
  background: linear-gradient(90deg, #6d7686 0%, #e8ecf2 22%, #9aa4b5 50%, #eef1f6 78%, #6d7686 100%);
}

/* ---------- header ---------- */
header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 14, 22, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-in {
  max-width: 1180px; margin: 0 auto;
  padding: 0 28px; height: 74px;
  display: flex; align-items: center; gap: 28px;
}
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; flex: none; }
.seal-mark { width: 44px; height: 44px; flex: none; display: block; }
.seal-mark svg { display: block; width: 100%; height: 100%; }
.brand-name { line-height: 1.15; }
.brand-name .n1 {
  display: block; font-family: var(--sans); font-weight: 600; font-size: 15px;
  letter-spacing: 0.32em; color: var(--plat-bright);
}
.brand-name .n2 {
  display: block; font-size: 9.5px; letter-spacing: 0.34em; color: var(--plat-dim);
  text-transform: uppercase; margin-top: 3px;
}
nav.main { margin-left: auto; display: flex; gap: 34px; }
nav.main a {
  text-decoration: none; font-size: 12px; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--text-soft);
  padding: 6px 0; border-bottom: 1px solid transparent;
  transition: color .25s, border-color .25s;
}
nav.main a:hover { color: var(--plat-bright); }
nav.main a.active { color: var(--plat-bright); border-bottom-color: var(--plat); }
.user-chip {
  margin-left: auto; font-size: 12px; letter-spacing: 0.08em; color: var(--text-soft);
  display: none; align-items: center; gap: 10px;
}
.user-chip.visible { display: inline-flex; }
.user-chip button {
  background: none; border: 1px solid var(--line-strong); color: var(--plat);
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; padding: 7px 12px;
}
.user-chip button:hover { border-color: var(--plat); color: var(--plat-bright); }

/* ---------- buttons ---------- */
.btn-solid {
  display: inline-flex; align-items: center; gap: 10px;
  background: linear-gradient(180deg, #f2f4f8, #c3cad7);
  color: #0b0f18; border: 1px solid #dfe4ec; text-decoration: none;
  font-size: 12px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  padding: 16px 28px; transition: filter .25s;
}
.btn-solid:hover { filter: brightness(1.07); }
.btn-solid:disabled { opacity: 0.55; cursor: wait; }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 10px;
  background: transparent; color: var(--plat-bright); text-decoration: none;
  border: 1px solid var(--line-strong);
  font-size: 12px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase;
  padding: 16px 28px; transition: border-color .25s, background .25s;
}
.btn-ghost:hover { border-color: var(--plat); background: rgba(201, 207, 218, 0.05); }
.btn-access {
  flex: none;
  display: inline-flex; align-items: center; gap: 9px;
  background: linear-gradient(180deg, #f2f4f8, #c3cad7);
  color: #0b0f18; border: 1px solid #dfe4ec;
  font-size: 12px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  padding: 12px 20px; transition: filter .25s; text-decoration: none;
}
.btn-access:hover { filter: brightness(1.07); }
.btn-small {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--plat-bright);
  border: 1px solid var(--line-strong);
  font-size: 11px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase;
  padding: 9px 16px; text-decoration: none;
}
.btn-small:hover { border-color: var(--plat); background: rgba(201, 207, 218, 0.05); }
.btn-small:disabled { opacity: 0.5; cursor: wait; }

/* ---------- layout ---------- */
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 28px; }
.sec { padding: 88px 0; }
.sec-head { display: flex; align-items: baseline; gap: 22px; margin-bottom: 48px; }
.sec-no { font-family: var(--mono); font-size: 11px; letter-spacing: 0.3em; color: var(--plat-faint); }
.sec-title { font-size: clamp(32px, 4.4vw, 46px); }
.sec-rule { flex: 1; height: 1px; background: var(--line); align-self: center; min-width: 30px; }
.sec-kicker {
  font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--plat-dim);
  margin: 0 0 14px;
}
.eyebrow {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.42em;
  text-transform: uppercase; color: var(--plat-dim);
  display: flex; align-items: center; justify-content: center; gap: 16px;
}
.eyebrow::before, .eyebrow::after {
  content: ""; width: 44px; height: 1px; background: var(--line-strong);
}

/* ---------- hero (portal landing) ---------- */
.hero {
  position: relative; overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(1100px 520px at 50% -180px, rgba(160, 172, 194, 0.13), transparent 65%),
    linear-gradient(180deg, var(--ink-2), var(--ink));
}
.hero-in {
  position: relative; max-width: 880px; margin: 0 auto;
  padding: 96px 28px 80px; text-align: center;
}
.hero h1 {
  font-size: clamp(46px, 7.4vw, 80px);
  line-height: 1.04; margin: 26px 0 0;
}
.hero h1 em { font-style: italic; font-weight: 400; color: var(--plat); }
.hero-sub { max-width: 620px; margin: 28px auto 0; font-size: 16.5px; color: var(--text-soft); line-height: 1.75; }
.hero-cta { margin-top: 42px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-note {
  margin: 34px auto 0; max-width: 560px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--plat-faint); line-height: 2;
}

/* ---------- product cards ---------- */
.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line-strong); }
.product {
  background: var(--panel); padding: 34px 30px 36px; position: relative;
  display: flex; flex-direction: column;
}
.product.hero-product {
  background: linear-gradient(180deg, var(--ink-3), var(--panel));
}
.product.hero-product::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--plat), transparent);
}
.product .p-no { font-family: var(--mono); font-size: 11px; letter-spacing: 0.3em; color: var(--plat-faint); }
.product .p-flag {
  display: inline-block; margin-top: 14px;
  font-size: 10px; font-weight: 600; letter-spacing: 0.28em; text-transform: uppercase;
  color: #0b0f18; background: linear-gradient(180deg, #f2f4f8, #c3cad7);
  padding: 5px 10px; align-self: flex-start;
}
.product h3 { font-size: 27px; margin: 14px 0 10px; }
.product p { margin: 0 0 22px; font-size: 14.5px; color: var(--text-soft); line-height: 1.75; flex: 1; }
.product .btn-small { align-self: flex-start; }

/* ---------- invitation / access panel ---------- */
.access-panel {
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(700px 300px at 50% -120px, rgba(160, 172, 194, 0.12), transparent 65%),
    linear-gradient(180deg, var(--ink-3), var(--panel));
  padding: 64px 30px 60px; text-align: center; position: relative; overflow: hidden;
}
.access-panel::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--plat), transparent);
}
.access-panel h2 { font-size: clamp(30px, 4.6vw, 44px); }
.access-panel p { max-width: 540px; margin: 20px auto 0; font-size: 15.5px; color: var(--text-soft); line-height: 1.8; }
.access-panel .hero-cta { margin-top: 34px; }
.access-contact {
  margin: 40px auto 0; max-width: 640px;
  display: grid; grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line); padding-top: 30px;
}
.access-contact a {
  text-decoration: none; padding: 4px 16px;
  display: flex; flex-direction: column; align-items: center; gap: 7px;
}
.access-contact a + a { border-left: 1px solid var(--line); }
.ac-label {
  font-size: 10.5px; font-weight: 500; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--plat-dim);
}
.ac-value {
  font-family: var(--serif); font-size: 23px; font-weight: 500; color: var(--plat-bright);
  letter-spacing: 0.02em; line-height: 1.2; border-bottom: 1px solid transparent;
  transition: border-color .25s;
}
.ac-value.email { font-size: 20px; }
.access-contact a:hover .ac-value { border-bottom-color: var(--plat); }
.access-fine { margin-top: 26px; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--plat-faint); }

/* ---------- auth card (login / verify) ---------- */
.auth-wrap { max-width: 520px; margin: 0 auto; padding: 88px 20px; }
.auth-card {
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, var(--ink-3), var(--panel));
  padding: 48px 42px 44px; text-align: center; position: relative;
}
.auth-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--plat), transparent);
}
.auth-card h1 { font-size: 34px; }
.auth-card .m-sub {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--plat-dim); margin-top: 10px;
}
.auth-card p { font-size: 14.5px; color: var(--text-soft); line-height: 1.8; margin: 20px 0 0; }
.auth-card form { margin-top: 30px; text-align: left; }
.field label {
  display: block; font-size: 11px; font-weight: 500; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--plat-dim); margin-bottom: 10px;
}
.field input[type="email"], .field input[type="text"] {
  width: 100%; background: var(--ink); border: 1px solid var(--line-strong);
  color: var(--plat-bright); font-family: var(--sans); font-size: 15px;
  padding: 14px 16px; outline: none;
}
.field input:focus { border-color: var(--plat); }
.auth-card .btn-solid { width: 100%; justify-content: center; margin-top: 18px; }
.auth-foot { margin-top: 24px; font-size: 12.5px; color: var(--plat-faint); line-height: 1.8; }
.auth-foot a { color: var(--plat-dim); }
.hidden { display: none !important; }

/* ---------- alerts ---------- */
.alert {
  border: 1px solid var(--line-strong);
  padding: 14px 18px; font-size: 14px; line-height: 1.7; margin: 20px 0;
  text-align: left;
}
.alert.err { border-color: rgba(216, 163, 163, 0.5); color: var(--err); background: rgba(216, 163, 163, 0.06); }
.alert.ok { border-color: rgba(159, 195, 168, 0.5); color: var(--ok); background: rgba(159, 195, 168, 0.06); }
.alert.info { color: var(--text-soft); background: rgba(201, 207, 218, 0.04); }
.alert strong { color: var(--plat-bright); font-weight: 600; }

/* ---------- app view ---------- */
.app-head { padding: 64px 0 0; }
.app-head .sec-kicker { margin-bottom: 10px; }
.app-head h1 { font-size: clamp(34px, 5vw, 52px); }
.app-meta {
  margin-top: 18px; display: flex; gap: 10px 28px; flex-wrap: wrap;
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--plat-dim);
}
.app-meta b { color: var(--plat-bright); font-weight: 600; }
.status-pill {
  display: inline-block; font-size: 10.5px; font-weight: 600; letter-spacing: 0.22em;
  text-transform: uppercase; padding: 5px 12px; border: 1px solid var(--line-strong); color: var(--plat);
}
.status-pill.complete { color: var(--ok); border-color: rgba(159, 195, 168, 0.5); }
.status-pill.partial { color: var(--warn); border-color: rgba(216, 201, 163, 0.5); }

.progress-block {
  margin: 40px 0 8px; border: 1px solid var(--line-strong);
  background: var(--panel); padding: 28px 30px;
}
.progress-top { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.progress-top .p-label { font-size: 11px; font-weight: 600; letter-spacing: 0.26em; text-transform: uppercase; color: var(--plat-dim); }
.progress-top .p-pct { font-family: var(--serif); font-size: 30px; font-weight: 500; color: var(--plat-bright); }
.progress-track { margin-top: 16px; height: 6px; background: var(--ink); border: 1px solid var(--line); }
.progress-fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, #8d97a8, #eceff4);
  transition: width .5s ease;
}
.progress-sub { margin-top: 12px; font-size: 13px; color: var(--text-soft); }
.complete-banner {
  margin-top: 22px; border: 1px solid rgba(159, 195, 168, 0.5);
  background: rgba(159, 195, 168, 0.06); color: var(--ok);
  padding: 18px 22px; font-size: 14.5px; line-height: 1.7;
}
.complete-banner strong { color: var(--plat-bright); }

/* product switcher */
.product-switch { display: flex; gap: 8px; flex-wrap: wrap; margin: 36px 0 0; }
.product-switch button {
  background: transparent; border: 1px solid var(--line-strong); color: var(--text-soft);
  font-size: 11px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 10px 16px;
}
.product-switch button:hover { border-color: var(--plat); color: var(--plat-bright); }
.product-switch button.active {
  background: linear-gradient(180deg, #f2f4f8, #c3cad7); color: #0b0f18; border-color: #dfe4ec; font-weight: 600;
}

/* ---------- checklist items ---------- */
.checklist { margin: 28px 0 88px; border-top: 1px solid var(--line-strong); }
.item { border-bottom: 1px solid var(--line); padding: 28px 4px; }
.item-head { display: flex; align-items: flex-start; gap: 18px; }
.item-mark {
  width: 30px; height: 30px; flex: none; border: 1px solid var(--line-strong);
  border-radius: 50%; display: grid; place-items: center; margin-top: 2px;
  color: var(--plat-faint); font-size: 15px;
}
.item.received .item-mark { color: #0b0f18; background: linear-gradient(180deg, #f2f4f8, #c3cad7); border-color: #dfe4ec; }
.item-body { flex: 1; min-width: 0; }
.item-body h3 { font-size: 23px; }
.item-hint { margin-top: 6px; font-size: 14px; color: var(--text-soft); line-height: 1.7; }
.item-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.tag {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--plat-dim); border: 1px solid var(--line); padding: 4px 9px;
}
.tag.required { color: var(--warn); border-color: rgba(216, 201, 163, 0.45); }
.badge {
  flex: none; font-size: 10.5px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
  padding: 6px 12px; border: 1px solid var(--line-strong); color: var(--plat-dim); margin-top: 2px;
}
.badge.received { color: var(--ok); border-color: rgba(159, 195, 168, 0.5); }
.badge.missing { color: var(--warn); border-color: rgba(216, 201, 163, 0.45); }
.file-list { list-style: none; margin: 18px 0 0; padding: 0; }
.file-list li {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 11px 14px; border: 1px solid var(--line); background: rgba(10, 14, 22, 0.5);
  font-size: 13.5px; color: var(--text-soft);
}
.file-list li + li { margin-top: 8px; }
.file-list .f-name { color: var(--plat-bright); font-weight: 400; overflow-wrap: anywhere; }
.file-list .f-meta { font-family: var(--mono); font-size: 11px; color: var(--plat-faint); }
.file-list .f-date { margin-left: auto; font-family: var(--mono); font-size: 11px; color: var(--plat-faint); }
.file-list .f-remove {
  margin-left: auto; background: transparent; border: 1px solid var(--line-strong);
  color: var(--plat-dim); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 5px 10px; cursor: pointer; font-family: inherit;
}
.file-list .f-remove:hover { border-color: var(--err); color: var(--err); }
.file-list .f-remove:disabled { opacity: 0.5; cursor: default; }
.file-list .f-date + .f-remove { margin-left: 0; }
.dropzone {
  margin-top: 18px; border: 1px dashed var(--line-strong);
  padding: 22px 20px; text-align: center; cursor: pointer;
  transition: border-color .25s, background .25s;
}
.dropzone:hover, .dropzone.dragging { border-color: var(--plat); background: rgba(201, 207, 218, 0.05); }
.dropzone .dz-title { font-size: 12px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--plat-bright); }
.dropzone .dz-sub { margin-top: 6px; font-size: 12.5px; color: var(--plat-dim); line-height: 1.7; }
.dropzone input[type="file"] { display: none; }
.upload-progress { margin-top: 12px; font-size: 13px; color: var(--text-soft); line-height: 1.8; }
.upload-progress .up-err { color: var(--err); }
.upload-progress .up-ok { color: var(--ok); }

/* ---------- admin ---------- */
.admin-table-wrap { overflow-x: auto; border: 1px solid var(--line-strong); margin: 28px 0 88px; }
table.admin { width: 100%; border-collapse: collapse; min-width: 760px; background: var(--panel); }
table.admin th {
  text-align: left; font-size: 11px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--plat-dim); padding: 16px 18px; border-bottom: 1px solid var(--line-strong);
  background: var(--ink-3); white-space: nowrap;
}
table.admin td { padding: 16px 18px; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--text-soft); vertical-align: top; }
table.admin tr:last-child td { border-bottom: 0; }
table.admin .c-email { color: var(--plat-bright); font-weight: 500; }
table.admin .c-company { color: var(--text); }
table.admin ul.mini-files { list-style: none; margin: 8px 0 0; padding: 0; font-size: 12.5px; line-height: 1.9; }
table.admin ul.mini-files a { color: var(--plat); text-decoration: none; border-bottom: 1px solid transparent; }
table.admin ul.mini-files a:hover { border-bottom-color: var(--plat); }
table.admin ul.mini-files .mf-missing { color: var(--warn); }
.mini-bar { height: 4px; background: var(--ink); border: 1px solid var(--line); margin-top: 8px; min-width: 120px; }
.mini-bar span { display: block; height: 100%; background: linear-gradient(90deg, #8d97a8, #eceff4); }
.empty-state {
  border: 1px solid var(--line-strong); background: var(--panel);
  padding: 48px 30px; text-align: center; color: var(--text-soft);
  font-size: 15px; line-height: 1.8; margin: 28px 0 88px;
}

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--line); background: #070a11; }
.foot-in { max-width: 1180px; margin: 0 auto; padding: 54px 28px 40px; }
.foot-top { display: flex; align-items: flex-start; gap: 30px; flex-wrap: wrap; }
.foot-brand { display: flex; align-items: center; gap: 14px; }
.foot-meta { margin-left: auto; text-align: right; font-size: 12.5px; color: var(--plat-dim); line-height: 2; letter-spacing: 0.06em; }
.foot-meta .dom { font-family: var(--mono); font-size: 12px; color: var(--plat); letter-spacing: 0.14em; }
.foot-disclaimer {
  margin-top: 40px; padding-top: 26px; border-top: 1px solid var(--line);
  font-size: 11.5px; color: var(--plat-faint); line-height: 1.85; max-width: 860px;
}
.foot-base {
  margin-top: 26px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--plat-faint);
}
.foot-base a { color: var(--plat-dim); text-decoration: none; }
.foot-base a:hover { color: var(--plat-bright); }

/* ---------- loading ---------- */
.loading { padding: 80px 20px; text-align: center; color: var(--plat-dim); font-family: var(--mono); font-size: 12px; letter-spacing: 0.3em; text-transform: uppercase; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  nav.main { display: none; }
  .products { grid-template-columns: 1fr 1fr; }
  .sec { padding: 64px 0; }
}
@media (max-width: 620px) {
  .header-in { padding: 0 18px; height: 66px; gap: 14px; }
  .brand-name .n1 { font-size: 13px; letter-spacing: 0.24em; }
  .brand-name .n2 { display: none; }
  .seal-mark { width: 38px; height: 38px; }
  .btn-access { margin-left: auto; padding: 10px 14px; font-size: 11px; }
  .user-chip { margin-left: auto; }
  .user-chip .chip-email { display: none; }
  .hero-in { padding: 72px 20px 62px; }
  .wrap { padding: 0 20px; }
  .products { grid-template-columns: 1fr; }
  .sec-head { flex-wrap: wrap; gap: 12px; margin-bottom: 36px; }
  .sec-rule { display: none; }
  .foot-meta { margin-left: 0; text-align: left; }
  .hero-cta .btn-solid, .hero-cta .btn-ghost { width: 100%; justify-content: center; }
  .access-contact { grid-template-columns: 1fr; gap: 22px; }
  .access-contact a + a { border-left: 0; }
  .auth-card { padding: 38px 26px 32px; }
  .item-head { flex-wrap: wrap; }
  .badge { margin-top: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .progress-fill { transition: none; }
}
