/* Eridanus Investor App: tokens from the Eridanus design system (design_handoff_investor_app/app/src/theme/tokens.ts).
   Do not add colours. */

@font-face { font-family: Montserrat; font-style: normal; font-weight: 400; font-display: swap; src: url(/static/fonts/montserrat-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: Montserrat; font-style: normal; font-weight: 600; font-display: swap; src: url(/static/fonts/montserrat-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: Montserrat; font-style: normal; font-weight: 700; font-display: swap; src: url(/static/fonts/montserrat-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: Montserrat; font-style: normal; font-weight: 800; font-display: swap; src: url(/static/fonts/montserrat-latin-800-normal.woff2) format('woff2'); }

:root {
  --green: #1F8F4E; --green700: #176E3C; --green500: #2FAE66; --green100: #D2EBDD; --green050: #EFF8F2;
  --deep: #0E4527; --deeper: #0B3A20;
  --gold: #F0A52B; --gold700: #C2811D; --gold100: #FBEACB; --gold050: #FDF6E9;
  --olive900: #2D2D0A;
  --ink: #2E2E2E; --body: #333333; --muted: #6B6B6B; --line: #DCDCDC; --line2: #ECECEC; --neutral: #F4F4F4; --cream: #FBF8F1;
  --danger: #B23A2E;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--body); font: 400 16px/1.5 Montserrat, Arial, system-ui, sans-serif; }
a { color: var(--green700); font-weight: 600; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--green500); outline-offset: 2px; }

.wrap { max-width: 480px; margin: 0 auto; padding: 0 20px; }
.wrap.wide { max-width: 980px; }
.top { background: var(--deep); color: #fff; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 64px; }
.brand { display: inline-flex; align-items: center; min-height: 44px; }
.brand img { display: block; height: 32px; width: auto; }
.who { font-size: 13.5px; font-weight: 600; }
a.who { display: inline-flex; align-items: center; min-height: 44px; max-width: 55%; color: #fff; text-align: right; }
main { padding-top: 28px; padding-bottom: 12px; }
footer { padding-bottom: 32px; }

.eyebrow { margin: 0 0 6px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--green700); }
.eyebrow.gold { color: var(--gold); }
h1 { margin: 0 0 10px; color: var(--ink); font-size: 27px; line-height: 1.15; font-weight: 800; letter-spacing: -.02em; }
h2 { margin: 28px 0 12px; color: var(--ink); font-size: 19px; font-weight: 800; }
.sub { margin: 0 0 22px; font-size: 15.5px; }
.muted { color: var(--muted); }
.small { font-size: 13.5px; }
.fine { margin: 24px 0 0; font-size: 11.5px; line-height: 1.5; color: var(--muted); }
.danger-text { color: var(--danger); font-weight: 600; }

.hero { position: relative; overflow: hidden; margin: 0 0 18px; padding: 26px 22px 24px; border-radius: 18px; background: var(--deep); color: #fff; }
.hero::after { content: ''; position: absolute; right: -60px; top: -60px; width: 130px; height: 130px; border-radius: 50%; background: var(--gold); }
/* The circle shows as a 70 px corner; the eyebrow and heading keep clear of it, so no text ever sits on gold. */
.hero .eyebrow, .hero h1 { position: relative; z-index: 1; padding-right: 72px; }
.hero h1 { color: #fff; font-size: 32px; }
.hero p { position: relative; z-index: 1; max-width: 320px; }
.hero .btn { position: relative; z-index: 1; margin-top: 8px; }

.card { margin: 0 0 12px; padding: 18px 16px; border-radius: 14px; background: #fff; box-shadow: 0 2px 10px rgba(14,69,39,.05); }
.card h2 { margin-top: 0; }
.cards { margin: 0; padding: 0; list-style: none; }
.account { display: flex; align-items: center; gap: 12px; }
.disc { display: inline-grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 20px; background: var(--green050); color: var(--green700); font-weight: 800; font-size: 14px; }
.consultant { display: flex; flex-direction: column; gap: 4px; }

.stack { display: flex; flex-direction: column; gap: 16px; margin: 0 0 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field span { color: var(--ink); font-size: 13.5px; font-weight: 600; }
.field input, .field select, .field textarea { height: 52px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); font: inherit; font-size: 16px; }
.field textarea { height: auto; min-height: 96px; padding: 12px 14px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px var(--green050); outline: none; }
.field input[aria-invalid="true"], .field select[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--danger); }
.field span .opt { color: var(--muted); font-weight: 400; }
.field .hint { color: var(--muted); font-size: 13.5px; font-weight: 400; line-height: 1.45; }
.field .err { color: var(--danger); font-size: 13.5px; font-weight: 600; }
.field input.code { font-size: 24px; font-weight: 700; letter-spacing: .3em; }
.grow { flex: 1; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 22px; border: 0; border-radius: 12px; font: inherit; font-size: 16.5px; font-weight: 700; text-decoration: none; cursor: pointer; }
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--gold); color: var(--olive900); }
/* White on brand green is 4.2:1, under AA, so solid green buttons use green-700, as the onboarding prototype does. */
.btn.green { background: var(--green700); color: #fff; }
.btn.outline { background: #fff; color: var(--green700); border: 1.5px solid var(--green); }
.btn.danger { background: #fff; color: var(--danger); border: 1.5px solid var(--danger); }
.stack .btn, .hero .btn { width: 100%; }
.link { min-height: 44px; padding: 0; border: 0; background: none; color: var(--green700); font: inherit; font-weight: 700; cursor: pointer; text-decoration: underline; }
.link:disabled { color: var(--muted); cursor: default; text-decoration: none; }
.row-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.row-links a { display: inline-flex; align-items: center; min-height: 44px; }
.actions { margin-top: 24px; }
.actions-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0; }
.inline { display: inline; margin: 0; }

.note { margin: 0 0 16px; padding: 13px 14px; border-radius: 10px; font-size: 14.5px; }
.note.green { background: var(--green050); color: var(--deep); }
.note.gold { background: var(--gold050); color: var(--olive900); }
.note.danger { background: #fff; color: var(--danger); border: 1.5px solid var(--danger); }
.note.danger a { color: var(--danger); }
.note ul { margin: 8px 0; padding-left: 20px; }
.check { display: flex; align-items: center; gap: 10px; margin-top: 10px; min-height: 44px; font-weight: 600; }
.check input { width: 20px; height: 20px; accent-color: var(--green); }

.search { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin: 0 0 20px; }
.grid { width: 100%; border-collapse: collapse; background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 2px 10px rgba(14,69,39,.05); font-size: 14.5px; }
.grid th { padding: 12px 14px; background: var(--neutral); color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-align: left; text-transform: uppercase; }
.grid td { padding: 12px 14px; border-top: 1px solid var(--line2); vertical-align: top; word-break: break-word; }
.facts { display: grid; grid-template-columns: minmax(140px, 200px) 1fr; gap: 10px 16px; margin: 0; }
.facts dt { color: var(--muted); font-size: 14px; }
.facts dd { margin: 0; color: var(--ink); font-weight: 600; word-break: break-word; }

.badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.badge.notInvited { background: var(--neutral); color: var(--muted); }
.badge.invited { background: var(--gold100); color: var(--olive900); }
.badge.active { background: var(--green100); color: var(--deep); }
.badge.suspended { background: #fff; color: var(--danger); border: 1px solid var(--danger); }

/* The application: the onboarding prototype's pieces (Investor onboarding prototype, project/eridanus.css), on
   this file's tokens. Every state is plain HTML and CSS: the app runs no scripts. */
.progress { margin: 0 0 22px; }
.progress .label { display: flex; align-items: center; justify-content: space-between; color: var(--green700); font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.progress .label a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; letter-spacing: 0; text-transform: none; }
.progress .bar { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.progress .bar i { display: block; height: 6px; border-radius: 6px; background: var(--line); }
.progress .bar i.done { background: var(--green700); }
.progress .bar i.now { background: var(--gold); }
.lead { margin: 0 0 22px; font-size: 15.5px; }
.locked { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 52px; padding: 0 14px; border-radius: 10px; background: var(--neutral); color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
.money { display: flex; align-items: center; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; }
.money b { padding: 0 2px 0 14px; color: var(--muted); font-size: 20px; font-weight: 700; }
.field .money input { flex: 1; min-width: 0; border: 0; box-shadow: none; padding-left: 4px; font-size: 22px; font-weight: 800; }
fieldset.choices { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; border: 0; }
fieldset.choices legend { margin: 0 0 10px; padding: 0; color: var(--ink); font-size: 13.5px; font-weight: 600; }
fieldset.choices .hint { color: var(--muted); font-size: 13.5px; line-height: 1.45; }
fieldset.choices .err { color: var(--danger); font-size: 13.5px; font-weight: 600; }
.choice { display: flex; align-items: flex-start; gap: 12px; min-height: 52px; padding: 14px; border: 1.5px solid var(--line2); border-radius: 10px; background: #fff; color: var(--ink); font-weight: 600; cursor: pointer; }
.choice input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--green700); }
.choice small { display: block; margin-top: 2px; color: var(--muted); font-size: 13.5px; font-weight: 400; }
.choice:has(input:checked) { border-color: var(--green700); background: var(--green050); }
.yesno { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.steplist { display: flex; flex-direction: column; gap: 10px; margin: 0 0 18px; padding: 0; list-style: none; }
.steplist a, .steplist .later { display: flex; align-items: center; gap: 14px; min-height: 72px; padding: 14px 16px; border-radius: 14px; background: #fff; box-shadow: 0 2px 10px rgba(14,69,39,.05); color: var(--ink); text-decoration: none; }
.steplist .later { border: 1.5px dashed var(--line); box-shadow: none; }
.steplist .what { flex: 1; min-width: 0; font-weight: 700; }
.steplist .what small { display: block; color: var(--muted); font-size: 13.5px; font-weight: 400; }
.num { display: inline-grid; flex: none; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--neutral); color: var(--body); font-size: 15px; font-weight: 800; }
.num.done { background: var(--green700); color: #fff; }
.num.now { border: 2px solid var(--gold); background: var(--gold050); color: var(--olive900); }
.chip { display: inline-flex; align-items: center; padding: 5px 10px; border-radius: 20px; font-size: 11.5px; font-weight: 700; letter-spacing: .04em; line-height: 1.2; text-transform: uppercase; white-space: nowrap; }
.chip.done { background: var(--green100); color: var(--green700); }
.chip.doing { background: var(--gold100); color: var(--olive900); }
.chip.todo { background: var(--neutral); color: var(--body); }
.chip.fix { border: 1px solid var(--danger); background: #fff; color: var(--danger); }
.list { margin: 0; padding: 0; list-style: none; }
.list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; border-top: 1px solid var(--line2); color: var(--ink); font-size: 14.5px; font-weight: 600; }
.list li:first-child { border-top: 0; }
/* A document the checklist asks for, with its own small upload form. */
.upload { margin: 0 0 12px; padding: 16px; border: 1.5px dashed var(--line); border-radius: 14px; background: #fff; }
.upload.done { border: 1.5px solid var(--green100); background: var(--green050); }
.upload.fix { border: 1.5px solid var(--danger); }
.upload .doc { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--ink); font-weight: 700; }
.upload .meta { margin: 4px 0 0; color: var(--muted); font-size: 13.5px; line-height: 1.45; word-break: break-word; }
.upload form { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 12px; }
.upload input[type=file] { flex: 1 1 200px; min-width: 0; font: inherit; font-size: 14px; }
.btn.sm { min-height: 44px; padding: 0 18px; border-radius: 22px; font-size: 14.5px; }
/* The brand's stat card: a 3px gold rule, the figure in gold-700. */
.stat { margin: 0 0 16px; padding: 18px; border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: 14px; background: #fff; }
.stat .figure { margin: 6px 0 2px; color: var(--gold700); font-size: 36px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.stat .what { margin: 0; color: var(--ink); font-size: 14px; font-weight: 600; }
.rates { width: 100%; margin-top: 14px; border-collapse: collapse; font-size: 14.5px; }
.rates th { padding: 8px 0; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-align: left; text-transform: uppercase; }
.rates th:last-child, .rates td:last-child { text-align: right; }
.rates td { padding: 12px 0; border-top: 1px solid var(--line2); color: var(--ink); }
.rates tr.here td { color: var(--green700); font-weight: 700; }
.disclaimer { margin: 10px 0 0; color: var(--muted); font-size: 12px; font-style: italic; line-height: 1.5; }
.address { color: var(--ink); font-weight: 600; line-height: 1.5; }
/* What happens next, and where the application is. */
.timeline { margin: 8px 0 8px; padding: 0; list-style: none; }
.timeline li { position: relative; padding: 0 0 20px 38px; }
.timeline li::before { content: ''; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border: 2px solid var(--line); border-radius: 50%; background: #fff; box-sizing: border-box; }
.timeline li::after { content: ''; position: absolute; left: 10px; top: 26px; bottom: 0; width: 2px; background: var(--line2); }
.timeline li:last-child::after { display: none; }
.timeline li.done::before { border-color: var(--green700); background: var(--green700); }
.timeline li.done::after { background: var(--green100); }
.timeline li.now::before { border: 6px solid var(--gold); }
.timeline strong { display: block; color: var(--ink); }
.timeline span { color: var(--muted); font-size: 13.5px; }
/* The subscription form, framed from the sign host: tall enough to sign without the page scrolling too. */
.signframe { display: block; width: 100%; height: 80vh; min-height: 640px; margin: 16px 0; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; }
.btn.gold { background: var(--gold); color: var(--olive900); }

@media (max-width: 640px) {
  .signframe { height: 85vh; min-height: 560px; }
  .grid thead { display: none; }
  .grid, .grid tbody, .grid tr, .grid td { display: block; width: 100%; }
  .grid tr { border-top: 1px solid var(--line2); padding: 6px 0; }
  .grid td { border: 0; padding: 4px 14px; }
  .facts { grid-template-columns: 1fr; gap: 2px; }
  .facts dd { margin-bottom: 10px; }
}
