/* Arc investor portal: shared styles for /investor and /investor/view.
 *
 * Loaded after invest.css, so the --inv-* tokens are already defined. Kept in
 * one file (rather than inline per page) because the portal and the document
 * viewer share the panel, button, and document-card language. */

/* ---------- page chrome ---------- */

.pro-eyebrow {
  margin: 0 0 18px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--inv-accent);
}

.inv-nav .pro-account {
  display: none;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.82);
}
@media (min-width: 768px) { .inv-nav .pro-account { display: inline-flex; } }
.inv-nav.is-scrolled .pro-account { color: var(--inv-ink); }
.pro-account-email { max-width: 22ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.inv-signout {
  appearance: none; border: 0; background: none; padding: 0; margin: 0;
  font: inherit; font-weight: 600; color: inherit; cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px;
}
.inv-signout:hover { opacity: 0.75; }

/* ---------- panel ---------- */

.pro-portal { max-width: 880px; margin: 0 auto; }
.pro-portal-loading { color: var(--inv-ink); font-size: 15px; }

.pro-panel {
  background: var(--inv-surface);
  border: 1px solid var(--inv-surface-border);
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(26, 0, 64, 0.08);
  padding: 32px 28px 34px;
}
.pro-panel h2 {
  margin: 0 0 10px;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--inv-ink);
}
.pro-panel > p { margin: 0 0 4px; font-size: 15px; line-height: 1.6; color: rgba(29, 29, 31, 0.72); }
.pro-panel strong { color: var(--inv-ink); }

@media (max-width: 600px) {
  .pro-panel { padding: 24px 18px 26px; border-radius: 12px; }
}

/* ---------- forms ---------- */

.pro-field { display: block; margin-top: 20px; }
.pro-field label {
  display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.04em;
  text-transform: uppercase; color: rgba(29, 29, 31, 0.6); margin-bottom: 8px;
}
.pro-field input, .pro-field textarea {
  width: 100%; box-sizing: border-box; padding: 12px 14px;
  border: 1px solid var(--inv-line); border-radius: 8px;
  font: 15px/1.4 var(--inv-font); color: var(--inv-ink); background: #fff;
}
.pro-field textarea { min-height: 96px; resize: vertical; }
.pro-field input:focus, .pro-field textarea:focus {
  outline: 2px solid var(--inv-purple-500); outline-offset: 1px; border-color: transparent;
}

.pro-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.pro-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 26px; border-radius: 999px;
  font: 12px/1 var(--inv-font); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  border: 1px solid var(--inv-ink); background: var(--inv-ink); color: #fff;
}
.pro-btn:hover { opacity: 0.9; }
.pro-btn[disabled] { opacity: 0.5; cursor: default; }
.pro-btn--ghost { background: transparent; color: var(--inv-ink); }
.pro-btn--ghost:hover { background: rgba(29, 29, 31, 0.06); opacity: 1; }
.pro-btn svg { width: 14px; height: 14px; flex: none; }

.pro-msg { margin: 16px 0 0; font-size: 14px; line-height: 1.5; min-height: 1px; }
.pro-msg.is-error { color: #b3261e; }
.pro-msg.is-ok { color: #1b7a43; }

/* ---------- materials list ---------- */

.pro-flash {
  margin: 0 0 18px; padding: 12px 14px;
  background: rgba(255, 87, 36, 0.09); border: 1px solid rgba(255, 87, 36, 0.28);
  border-radius: 10px; font-size: 13.5px; line-height: 1.5; color: #a5311a;
}

.pro-materials-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin-bottom: 6px;
}
.pro-materials-head h2 { margin: 0; }
.pro-count {
  font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--inv-purple-700); background: rgba(80, 49, 161, 0.1);
  padding: 6px 12px; border-radius: 999px; white-space: nowrap;
}
.pro-panel > p.pro-materials-intro {
  margin: 0 0 24px; font-size: 15px; line-height: 1.6; color: rgba(29, 29, 31, 0.72);
}

.pro-group + .pro-group { margin-top: 30px; }
.pro-group-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.pro-group-head h3 {
  margin: 0; font-size: 12px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--inv-ink); white-space: nowrap;
}
.pro-group-rule { flex: 1; height: 1px; background: rgba(26, 0, 64, 0.14); }

.pro-files { display: flex; flex-direction: column; gap: 12px; }

.pro-file {
  display: flex; align-items: center; gap: 16px;
  background: #fff; border: 1px solid rgba(26, 0, 64, 0.1);
  border-radius: 14px; box-shadow: 0 1px 3px rgba(26, 0, 64, 0.06);
  padding: 16px 18px; text-decoration: none; color: inherit;
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}
.pro-file:hover {
  border-color: var(--inv-purple-500);
  box-shadow: 0 8px 22px rgba(26, 0, 64, 0.13);
  transform: translateY(-1px);
}
.pro-file:focus-visible {
  outline: 2px solid var(--inv-purple-700); outline-offset: 2px;
}
.pro-file:active { transform: none; }

.pro-file-icon {
  flex: none; width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(150deg, var(--inv-purple-700), var(--inv-purple-900));
}
.pro-file-icon svg { width: 21px; height: 21px; }
.pro-file--slides .pro-file-icon,
.pro-file-icon--slides { background: linear-gradient(150deg, #ff8a3d, #ff5724 55%, #d2296b); }
.pro-file--demo .pro-file-icon,
.pro-file-icon--demo { background: linear-gradient(150deg, #8b6fc0, #5031a1); }
.pro-file--data .pro-file-icon,
.pro-file-icon--data { background: linear-gradient(150deg, #4f8ac9, #2d3f9e); }

.pro-file-main { min-width: 0; flex: 1; }
.pro-file-title {
  display: block;
  margin: 0; font-size: 1.02rem; font-weight: 700; letter-spacing: -0.02em; color: var(--inv-ink);
}
.pro-file-desc {
  display: block;
  margin: 3px 0 0; font-size: 13.5px; line-height: 1.45; color: rgba(29, 29, 31, 0.62);
}
.pro-file-meta {
  margin: 8px 0 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(29, 29, 31, 0.45);
}
.pro-file-kind {
  color: var(--inv-purple-700); background: rgba(80, 49, 161, 0.1);
  padding: 4px 8px; border-radius: 6px;
}

.pro-file-go {
  flex: none; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(26, 0, 64, 0.06); color: var(--inv-purple-900);
  transition: background 140ms ease, color 140ms ease;
}
.pro-file-go svg { width: 15px; height: 15px; }
.pro-file:hover .pro-file-go { background: var(--inv-purple-900); color: #fff; }

.pro-panel > p.pro-note {
  margin: 28px 0 0; padding-top: 18px; border-top: 1px solid rgba(26, 0, 64, 0.12);
  font-size: 13.5px; line-height: 1.55; color: rgba(29, 29, 31, 0.58);
}

@media (max-width: 600px) {
  .pro-file { gap: 13px; padding: 14px; border-radius: 12px; align-items: flex-start; }
  .pro-file-icon { width: 38px; height: 38px; border-radius: 10px; }
  .pro-file-icon svg { width: 18px; height: 18px; }
  .pro-file-title { font-size: 0.98rem; }
  .pro-file-desc { font-size: 13px; }
  .pro-file-go { display: none; }
  .pro-file-open {
    display: inline-flex; align-items: center; gap: 6px; margin-top: 10px;
    font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--inv-purple-700);
  }
  .pro-file-open svg { width: 12px; height: 12px; }
}
@media (min-width: 601px) {
  .pro-file-open { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .pro-file { transition: none; }
  .pro-file:hover { transform: none; }
}

/* ---------- short-page footer ----------
 * The portal is one panel tall, so without this the body background shows
 * below the footer. The purple band grows to fill instead, which keeps the
 * gradient continuous all the way down to the black footer. */

body.invest.is-portal {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
body.invest.is-portal > .inv-purple-mid { flex: 1 0 auto; }
body.invest.is-portal > .inv-foot { flex: none; }
