/* Flatfund app pages. One typeface, the template's own Helvetica Neue, in sentence case, figures tabular.
   Paper #fafafa, ink #0e0b0a, hairlines #e6e5e5, as on the landing. */
@font-face { font-family: 'FF Helvetica'; src: url('/fonts/hn-regular.woff2') format('woff2'); font-weight: 400; font-display: swap }
@font-face { font-family: 'FF Helvetica'; src: url('/fonts/hn-bold.woff2') format('woff2'); font-weight: 700; font-display: swap }
:root { --ink: #0e0b0a; --ink2: #0e0b0a99; --ink3: #0e0b0a59; --line: #e6e5e5; --paper: #fafafa; --card: #fff; --soft: #f3f3f2; --pos: #16794a; --neg: #b42318;
  --sans: 'FF Helvetica', 'Helvetica Neue', Helvetica, Arial, sans-serif; --mono: var(--sans) }
* { box-sizing: border-box; margin: 0; padding: 0 }
html, body { background: var(--paper); color: var(--ink); font: 400 15px/1.45 var(--sans); letter-spacing: -0.15px; -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums }
a { color: inherit; text-decoration: none }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; letter-spacing: inherit }
input, select { font: inherit; color: inherit; letter-spacing: inherit }
.mono { font-variant-numeric: tabular-nums }
.lbl { font-size: 13px; line-height: 1.2; color: var(--ink2) }
.muted { color: var(--ink2) }
.pos { color: var(--pos) } .neg { color: var(--neg) }

/* bar */
.bar { position: sticky; top: 0; z-index: 20; background: rgba(250,250,250,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line) }
.bar-in { max-width: 1300px; margin: 0 auto; height: 64px; padding: 0 24px; display: flex; align-items: center; gap: 32px }
.bar img { height: 26px; display: block }
.bar nav { display: flex; gap: 24px; flex: 1 }
.bar nav a { font-size: 14px; color: var(--ink2); transition: color .15s }
.bar nav a.on, .bar nav a:hover { color: var(--ink) }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 18px; font-size: 14px; border: 1px solid var(--ink); background: var(--ink); color: #fff; border-radius: 8px; white-space: nowrap; transition: opacity .15s }
.btn:hover { opacity: .86 }
.btn.ghost { background: #fff; color: var(--ink); border-color: var(--line) }
.btn.wide { width: 100%; height: 52px; font-size: 16px }
.btn:disabled { opacity: .4; cursor: default }

/* page frame */
.page { max-width: 1300px; margin: 0 auto; border-left: 1px solid var(--line); border-right: 1px solid var(--line); min-height: calc(100vh - 64px) }
.head { padding: 56px 24px 36px; border-bottom: 1px solid var(--line) }
.head h1 { font-weight: 400; font-size: 52px; line-height: 1.02; letter-spacing: -2px; max-width: 920px }
.head h1 span { color: var(--ink3) }
.head p { margin-top: 16px; max-width: 620px; color: var(--ink2); font-size: 17px; line-height: 1.5 }
.grid { display: grid; grid-template-columns: 1fr 400px }
.grid > * { min-width: 0 }
.cell { padding: 28px 24px; border-bottom: 1px solid var(--line) }
.side { border-left: 1px solid var(--line) }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px }

/* tables */
table { width: 100%; border-collapse: collapse }
th { text-align: right; padding: 14px 14px 12px; font-weight: 400; font-size: 13px; color: var(--ink2); border-bottom: 1px solid var(--line); white-space: nowrap }
td { text-align: right; padding: 16px 14px; border-bottom: 1px solid var(--line); font-size: 15px; white-space: nowrap }
th:first-child, td:first-child { text-align: left; padding-left: 24px }
th:last-child, td:last-child { padding-right: 24px }
tbody tr { cursor: pointer; transition: background .12s } tbody tr:hover { background: #fff }
tbody tr.on { background: #fff } tbody tr.on td:first-child { box-shadow: inset 2px 0 0 var(--ink) }
.mk { display: flex; align-items: center; gap: 12px; font-size: 15px }
.mk img { width: 28px; height: 28px; border-radius: 50%; flex: none; background: var(--soft); object-fit: cover }
.mk small { display: block; font-size: 13px; color: var(--ink2); margin-top: 1px }
.tablewrap { overflow-x: auto }

/* ticket */
.ticket { padding: 28px 24px; display: flex; flex-direction: column; gap: 20px; position: sticky; top: 64px }
.ticket h2 { font-weight: 400; font-size: 26px; letter-spacing: -.8px; line-height: 1.1 }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; background: var(--soft); border-radius: 10px }
.seg.three { grid-template-columns: repeat(3, 1fr) }
.seg button { padding: 10px 8px; font-size: 14px; color: var(--ink2); border-radius: 7px; transition: background .15s, color .15s }
.seg button small { display: block; font-size: 12px; color: var(--ink3); margin-top: 2px }
.seg button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(14,11,10,.08), 0 0 0 1px rgba(14,11,10,.04) }
.seg button.on small { color: var(--ink2) }
.field { display: flex; flex-direction: column; gap: 8px }
.input { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 10px; background: #fff; height: 52px; padding: 0 16px; transition: border-color .15s }
.input:focus-within { border-color: var(--ink3) }
.input input { flex: 1; border: 0; outline: 0; background: none; font-size: 20px; min-width: 0 }
.input span { font-size: 14px; color: var(--ink2) }
.rows { display: flex; flex-direction: column }
.rows div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--ink2) }
.rows div b { font-weight: 400; color: var(--ink) }
.big { font-size: 46px; line-height: 1; letter-spacing: -1.6px }
.note { font-size: 14px; color: var(--ink2); line-height: 1.5 }
.msg { padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-size: 14px; line-height: 1.5 }
.msg.dark { background: var(--ink); color: #fff; border-color: var(--ink) }

/* chart */
.chart { width: 100%; height: 240px; display: block; overflow: visible }
.chead { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap }
.chead b { font-weight: 400; font-size: 17px; letter-spacing: -.3px }
.legend { display: flex; gap: 20px; margin-top: 14px; font-size: 13px; color: var(--ink2) }
.legend b { display: inline-block; width: 16px; height: 2px; background: var(--ink); vertical-align: middle; margin-right: 8px; border-radius: 2px }
.legend b.fx { background: #9a9894 }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line) }
.stats > div { padding: 22px 24px; border-right: 1px solid var(--line) }
.stats > div:last-child { border-right: 0 }
.stats b { display: block; margin-top: 8px; font-weight: 400; font-size: 26px; line-height: 1; letter-spacing: -.8px }
.tools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 16px 24px; border-bottom: 1px solid var(--line) }
.tools .input { height: 44px; flex: 1; min-width: 220px }
.tools .input input { font-size: 15px }
.pill { padding: 9px 14px; border-radius: 8px; font-size: 14px; color: var(--ink2); transition: background .15s, color .15s }
.pill:hover { color: var(--ink) }
.pill.on { background: var(--soft); color: var(--ink) }
.foot { padding: 28px 24px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 13px; color: var(--ink2) }
.foot a:hover { color: var(--ink) }
.hide { display: none !important }
.modal { position: fixed; inset: 0; background: rgba(14,11,10,.32); display: grid; place-items: center; z-index: 50 }
.modal .card { width: min(420px, 92vw); padding: 24px; display: flex; flex-direction: column; gap: 14px }
.wl { display: flex; flex-direction: column; gap: 8px }
.wl button { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; text-align: left }
.wl img { width: 26px; height: 26px; border-radius: 6px }
.ff-token { display: flex; gap: 14px; align-items: center; font-size: 13px; color: var(--ink2) }
.ff-token span { color: var(--ink) } .ff-token button { text-decoration: underline; text-underline-offset: 3px } .ff-token a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px }

/* the landing's hero picture is a capture of the app itself */
.shot .head, .shot footer, .shot .stats { display: none !important } .shot .page { border: 0 }

@media (max-width: 1000px) {
  .grid { grid-template-columns: 1fr } .side { border-left: 0; border-top: 1px solid var(--line) } .ticket { position: static }
  .stats { grid-template-columns: 1fr 1fr } .stats > div:nth-child(2) { border-right: 0 } .stats > div { border-bottom: 1px solid var(--line) }
  .head h1 { font-size: 36px; letter-spacing: -1.2px } .head { padding: 32px 16px 24px }
  .bar-in { flex-wrap: wrap; height: auto; padding: 12px 16px; gap: 12px 16px; justify-content: space-between }
  .bar nav { order: 3; flex-basis: 100%; overflow-x: auto; gap: 20px; padding: 2px 0; scrollbar-width: none } .bar nav a { white-space: nowrap }
  .bar .ff-token { display: none }
  .cell, .ticket { padding: 20px 16px } .tools { padding: 12px 16px } th:first-child, td:first-child { padding-left: 16px }
}
