/* Production investor portal. Tokens from the design specification
   (docs/design/INVESTOR_PORTAL_FRONTEND_DESIGN.md) and src/styles.css. */
:root {
  --navy: #10252f;
  --navy-soft: #1f3742;
  --ink: #182c35;
  --muted: #596b72;
  --surface: #faf9f5;
  --panel: #fff;
  --neutral: #f0f2ef;
  --green: #28634e;
  --red: #a02e35;
  --line: #e1e6e3;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: Inter, 'Segoe UI', Arial, sans-serif;
  --mono: ui-monospace, 'SF Mono', Consolas, monospace;
  --radius: 5px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font: 16px/1.5 var(--sans);
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 10;
  padding: 8px 16px;
  background: var(--panel);
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 0 24px;
  background: var(--navy);
  color: #fff;
}

.brand {
  font-family: var(--serif);
  font-size: 20px;
}

.brand span {
  color: #b9c9c4;
}

.page {
  max-width: 960px;
  margin: 0 auto;
  padding: 40px 24px 64px;
}

.foot {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px 48px;
  color: var(--muted);
  font-size: 14px;
}

h1,
h2,
h3 {
  margin: 0 0 8px;
  line-height: 1.25;
}

h1 {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 400;
}

h1:focus {
  outline: none;
}

h2 {
  font-size: 20px;
}

h3 {
  font-size: 16px;
}

.eyebrow {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.metadata,
.hint,
.provenance {
  margin: 8px 0;
  color: var(--muted);
  font-size: 14px;
}

.mono {
  font-family: var(--mono);
}

.key {
  word-break: break-all;
}

.auth-card {
  max-width: 440px;
  margin: 0 auto;
  padding: 32px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

form {
  display: grid;
  gap: 8px;
  margin: 16px 0;
}

label {
  display: grid;
  gap: 8px;
  font-weight: 600;
  font-size: 14px;
}

input {
  min-height: 44px;
  padding: 8px 16px;
  border: 1px solid #9aa8ad;
  border-radius: var(--radius);
  font: inherit;
  font-weight: 400;
}

input:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--navy-soft);
  outline-offset: 2px;
}

.button {
  min-height: 44px;
  margin-top: 8px;
  padding: 8px 24px;
  border: 0;
  border-radius: var(--radius);
  background: var(--navy);
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.button:disabled {
  opacity: 0.6;
  cursor: progress;
}

.link {
  min-height: 44px;
  padding: 0 8px;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

.top .link {
  color: #fff;
}

a {
  color: var(--navy-soft);
}

.alert {
  padding: 8px 16px;
  border-left: 4px solid var(--red);
  background: #fbefef;
}

.notice {
  padding: 8px 16px;
  border-left: 4px solid var(--green);
  background: #eef5f1;
}

.steps {
  padding-left: 24px;
}

.steps li {
  margin-bottom: 16px;
}

.qr {
  margin: 16px 0 8px;
}

.qr svg {
  width: 200px;
  height: 200px;
}

.welcome {
  margin-bottom: 32px;
}

.investment {
  margin-bottom: 24px;
  padding: 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.investment > header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.badge {
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--neutral);
  font-size: 13px;
}

.position {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.figures {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 48px;
  margin: 16px 0 0;
}

.figures dt {
  color: var(--muted);
  font-size: 13px;
}

.figures dd {
  margin: 0;
  font-size: 24px;
  font-variant-numeric: tabular-nums;
}

.empty {
  color: var(--muted);
}

.skeleton {
  color: var(--muted);
}

.skeleton.block {
  height: 160px;
  border-radius: var(--radius);
  background: var(--neutral);
}

@media (max-width: 600px) {
  .page {
    padding: 24px 16px 48px;
  }

  .auth-card {
    padding: 24px 16px;
  }

  h1 {
    font-size: 26px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}

/* Present for password managers (they save the sign-in ID with the new
   password), invisible on screen. */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
