/* MindSet Invest — monochrome like the line-art logo, lots of white space. Font self-hosted (Jost, SIL OFL). */
@font-face { font-family: "Jost"; src: url("fonts/jost.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root { --ink: #111; --muted: #77746d; --line: #dedbd4; --paper: #fff; --card: #fbfaf7; --ok: #2f8f4e; --fail: #b3362f; --na: #c9c5bb; }
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--paper); color: var(--ink); font: 300 16px/1.55 "Jost", "Helvetica Neue", Arial, sans-serif; min-height: 100vh; display: flex; flex-direction: column; }
a { color: inherit; text-decoration-color: var(--line); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--ink); }
img { max-width: 100%; height: auto; display: block; }

/* Landing */
.landing-main { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 8vh 1.5rem 2rem; gap: clamp(3rem, 8vh, 5rem); text-align: center; }
.brand { display: flex; flex-direction: column; align-items: center; }
.logo { margin: 0; width: min(30rem, 82vw); animation: rise 1.2s ease-out both; }
.slogan { margin: 2.4rem 0 0; font-size: clamp(1.15rem, 2.6vw, 1.5rem); font-weight: 300; letter-spacing: .14em; text-transform: uppercase; animation: rise 1.2s .25s ease-out both; }
.fields { margin: .9rem 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .3rem 0; font-size: clamp(.78rem, 1.6vw, .9rem); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); animation: rise 1.2s .45s ease-out both; }
.fields span + span::before { content: ""; display: inline-block; width: 1.6rem; height: 1px; background: var(--line); vertical-align: middle; margin: 0 1rem; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }

.login { width: 100%; max-width: 20rem; display: flex; flex-direction: column; gap: 1rem; text-align: left; animation: rise 1.2s .65s ease-out both; }
.login h2 { font-size: .72rem; font-weight: 400; text-transform: uppercase; letter-spacing: .3em; text-align: center; color: var(--muted); margin: 0 0 .2rem; display: flex; align-items: center; gap: 1rem; }
.login h2::before, .login h2::after { content: ""; flex: 1; height: 1px; background: var(--line); }
label { display: flex; flex-direction: column; gap: .3rem; font-size: .7rem; text-transform: uppercase; letter-spacing: .16em; color: var(--muted); }
input { font: 400 1rem "Jost", sans-serif; color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid var(--line); padding: .55rem 0; outline: none; border-radius: 0; transition: border-color .2s; }
input:focus { border-bottom-color: var(--ink); }
button { font: 400 .76rem "Jost", sans-serif; text-transform: uppercase; letter-spacing: .22em; background: var(--ink); color: var(--paper); border: 1px solid var(--ink); padding: .85rem 1.4rem; cursor: pointer; transition: background .2s, color .2s; }
button:hover { background: transparent; color: var(--ink); }
button:disabled { opacity: .5; cursor: wait; }
.login button { margin-top: .8rem; }
button.link { background: none; border: 0; padding: 0; color: var(--muted); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; letter-spacing: .14em; }
button.link:hover { color: var(--ink); }
button.danger:hover { color: var(--fail); }

.msg { margin: 0; padding: .6rem .8rem; font-size: .9rem; border-left: 2px solid var(--muted); background: var(--card); }
.msg.error { border-color: var(--fail); }
.msg.ok { border-color: var(--ok); }

.legal { text-align: center; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding: 1.6rem 1rem 2rem; }
.legal a { text-decoration: none; }
.legal a:hover { color: var(--ink); }

/* Portal */
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; padding: 1.1rem clamp(1rem, 4vw, 3rem); border-bottom: 1px solid var(--line); }
.logo.small { width: 9.5rem; animation: none; }
.topbar nav { display: flex; align-items: center; gap: 1.6rem; font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; }
.topbar nav a { text-decoration: none; color: var(--muted); padding-bottom: .2rem; border-bottom: 1px solid transparent; }
.topbar nav a:hover, .topbar nav a.active { color: var(--ink); border-bottom-color: var(--ink); }
.topbar nav button.link { font-size: .74rem; }
.portal-main { flex: 1; width: 100%; max-width: 1100px; margin: 0 auto; padding: 2.2rem clamp(1rem, 4vw, 3rem) 1rem; display: flex; flex-direction: column; gap: 2.8rem; }
h2 { font-weight: 400; font-size: 1.05rem; text-transform: uppercase; letter-spacing: .2em; margin: 0 0 1.1rem; display: flex; align-items: baseline; gap: .9rem; flex-wrap: wrap; }
h2 small { font-size: .78rem; text-transform: none; letter-spacing: .03em; font-weight: 300; color: var(--muted); }
h2 .link { font-size: .68rem; }

.lights { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); gap: .8rem; }
.light { background: var(--card); border: 1px solid var(--line); padding: .9rem 1rem; display: grid; grid-template-columns: auto 1fr; column-gap: .75rem; align-items: center; }
.light .dot { grid-row: span 2; width: .8rem; height: .8rem; border-radius: 50%; background: var(--na); box-shadow: 0 0 0 4px rgba(0,0,0,.03); }
.light.ok .dot { background: var(--ok); box-shadow: 0 0 0 4px rgba(47,143,78,.15); }
.light.fail .dot { background: var(--fail); box-shadow: 0 0 0 4px rgba(179,54,47,.12); }
.light.pending .dot { background: var(--muted); animation: pulse 1s infinite alternate; }
.light.na .psite::after { content: " · not set up yet"; }
.pname { font-weight: 400; }
.psite { font-size: .78rem; color: var(--muted); }
@keyframes pulse { to { opacity: .3; } }

.groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); gap: 1rem; }
.group { background: var(--card); border: 1px solid var(--line); padding: 1.1rem 1.2rem 1.2rem; }
.group h3 { margin: 0; font-weight: 400; font-size: .76rem; text-transform: uppercase; letter-spacing: .18em; }
.group .note { margin: .2rem 0 .8rem; font-size: .78rem; color: var(--muted); }
.group ul { list-style: none; margin: 0; padding: 0; }
.group li { display: flex; justify-content: space-between; gap: 1rem; padding: .42rem 0; border-top: 1px solid #eeebe5; font-size: .95rem; }
.group li:first-child { border-top: 0; }
.group li > :first-child { min-width: 0; }
.group li .addr { flex-shrink: 0; }
.addr { color: var(--muted); font-size: .78rem; font-family: ui-monospace, Consolas, monospace; white-space: nowrap; }

.tile-link { display: flex; flex-direction: column; gap: .3rem; padding: 1.4rem 1.6rem; border: 1px solid var(--ink); text-decoration: none; transition: background .2s, color .2s; }
.tile-link span { font-size: 1rem; text-transform: uppercase; letter-spacing: .2em; }
.tile-link span::after { content: "  →"; }
.tile-link small { color: var(--muted); font-size: .85rem; }
.tile-link:hover { background: var(--ink); color: var(--paper); }
.tile-link:hover small { color: #bbb; }

.upload { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-bottom: 1.2rem; }
.upload input[type=file] { border: 0; font-size: .9rem; color: var(--muted); }
.upload input[type=file]::file-selector-button { font: 400 .72rem "Jost", sans-serif; text-transform: uppercase; letter-spacing: .16em; background: transparent; color: var(--ink); border: 1px solid var(--ink); padding: .7rem 1.1rem; margin-right: .9rem; cursor: pointer; }
.upload input[type=file]::file-selector-button:hover { background: var(--ink); color: var(--paper); }
.hint { font-size: .75rem; color: var(--muted); }
.progress { margin: -.2rem 0 1.6rem; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: .5rem 1.2rem; }
.progress[hidden] { display: none; }
.ptrack { grid-column: 1 / -1; height: 3px; background: var(--line); overflow: hidden; }
.pbar { height: 100%; width: 0; background: var(--ink); transition: width .3s linear; }
.pinfo { margin: 0; font-size: .85rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.pinfo.error { color: var(--fail); }
.pinfo.ok { color: var(--ok); }
.empty { color: var(--muted); }
table { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); font-size: .9rem; }
th { text-align: left; font-weight: 400; font-size: .7rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); padding: .7rem .8rem; border-bottom: 1px solid var(--line); }
td { padding: .6rem .8rem; border-bottom: 1px solid #eeebe5; vertical-align: middle; }
td.url { display: flex; gap: .5rem; min-width: 18rem; }
td.url input { flex: 1; font: .78rem ui-monospace, Consolas, monospace; border-bottom: 1px dashed var(--line); }
td.url button { padding: .35rem .7rem; font-size: .65rem; }
@media (max-width: 760px) {
  table, thead, tbody, tr, td, th { display: block; }
  thead { display: none; }
  tr { border-bottom: 1px solid var(--line); padding: .5rem 0; }
  td { border: 0; padding: .25rem .8rem; }
  td.url { min-width: 0; }
}

/* Legal pages */
.doc { flex: 1; width: 100%; max-width: 44rem; margin: 0 auto; padding: 3rem 1.5rem 1rem; }
.doc .doc-logo { width: 11rem; margin-bottom: 2.5rem; }
.doc h1 { font-weight: 300; font-size: 1.6rem; text-transform: uppercase; letter-spacing: .2em; margin: 0 0 1.8rem; }
.doc h2 { font-size: .85rem; margin: 2rem 0 .5rem; }
.doc p { margin: 0 0 1rem; }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
.todo { background: #fff3c4; padding: 0 .25rem; }
/* The logo PNG has an off-white background; multiply makes it disappear on white. */
.logo img, .doc-logo { mix-blend-mode: multiply; }
.topbar nav button.link { text-decoration: none; padding-bottom: .2rem; border-bottom: 1px solid transparent; }
.topbar nav button.link:hover { border-bottom-color: var(--ink); }
.lna-hint { margin: .8rem 0 0; max-width: 46rem; }
