@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("/fonts/bricolage-grotesque-latin-standard-normal.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("/fonts/instrument-sans-latin-wght-normal.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("/fonts/instrument-sans-latin-ext-wght-normal.woff2") format("woff2"); unicode-range: U+0100-024F, U+1E00-1EFF; }

:root {
  --harbour: #0c2530; --harbour-2: #133542; --sea: #2bb3a3; --sea-ink: #127a6e; --sail: #f2b33d;
  --paper: #f5f8f8; --ink: #13232b; --dim: #55666e; --line: #d8e2e3; --card: #fff; --warn: #b4532a;
  --display: "Bricolage Grotesque", system-ui, sans-serif; --body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r: 14px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.55 var(--body); color: var(--ink); background: var(--paper); }
a { color: var(--sea-ink); }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(28px, 4vw, 40px); } h2 { font-size: 21px; } h3 { font-size: 16px; margin-top: 1.2em; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 12px; top: 12px; background: #fff; padding: 8px 12px; z-index: 50; }
:focus-visible { outline: 3px solid var(--sail); outline-offset: 2px; }
.hidden { display: none !important; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 640px; padding-top: 32px; padding-bottom: 48px; }
.muted { color: var(--dim); } .small, small { font-size: 13px; }
.lead { font-size: 18px; color: var(--dim); max-width: 56ch; }
.loading { padding: 60px 20px; text-align: center; color: var(--dim); }
.err { color: var(--warn); min-height: 1em; margin: 8px 0; }
.hint { font-size: 13px; color: var(--dim); margin: 6px 0 0; }

/* bar */
.pbar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 20px; background: var(--harbour); color: #fff; }
.pbrand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-family: var(--display); font-size: 18px; }
.pbrand b { color: var(--sail); font-weight: 600; } .pbrand svg { width: 30px; height: 30px; }
.who { display: flex; align-items: center; gap: 12px; font-size: 14px; color: #cfe0e2; }
.who span { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* buttons */
.pbtn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; border-radius: 10px; padding: 11px 18px; cursor: pointer;
  font: 600 15px var(--body); background: var(--sail); color: #1d1400; text-decoration: none; }
.pbtn:hover { filter: brightness(1.05); } .pbtn:disabled { opacity: .5; cursor: not-allowed; }
.pbtn.ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 1.5px currentColor; }
.pbar .pbtn.ghost { color: #fff; }
.pbtn.sm { padding: 7px 12px; font-size: 14px; border-radius: 8px; }
.pbtn.wide { width: 100%; margin-top: 14px; }

/* cards and forms */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; margin: 0 0 18px; }
label { display: block; font-weight: 600; font-size: 14px; margin: 14px 0 6px; }
input, select, textarea { width: 100%; font: inherit; padding: 11px 12px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); }
input:focus, select:focus, textarea:focus { border-color: var(--sea); outline: none; box-shadow: 0 0 0 3px rgba(43, 179, 163, .2); }
label.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
label.check input { width: auto; margin-top: 4px; }
.note { background: #eef7f6; border-left: 4px solid var(--sea); padding: 10px 14px; border-radius: 8px; font-size: 14px; }
.note.warn { background: #fdf3ea; border-color: var(--warn); }
.row { display: flex; gap: 10px; align-items: center; } .row input { flex: 1; } .between { justify-content: space-between; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; } .kv dt { color: var(--dim); } .kv dd { margin: 0; font-weight: 600; }

/* landing */
.hero { background: var(--harbour); color: #fff; padding: 56px 0 64px; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; left: -10%; right: -10%; bottom: -1px; height: 60px;
  background: radial-gradient(120% 60px at 50% 100%, var(--paper) 49%, transparent 51%); }
.hero-in { display: grid; grid-template-columns: 1.25fr 1fr; gap: 48px; align-items: start; position: relative; z-index: 1; }
.hero h1 { font-size: clamp(34px, 5vw, 56px); max-width: 15ch; }
.hero .lead { color: #c8dadd; }
.hero .muted { color: #9fb7bb; }
.login { color: var(--ink); box-shadow: 0 18px 50px rgba(0, 0, 0, .25); }
.ladder { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; align-items: end; margin: 30px 0 12px; max-width: 520px; height: 230px; }
.rung { display: grid; grid-template-rows: 1fr auto 2.6em; height: 100%; }
.rung .sail { align-self: end; }
.rung strong { font-family: var(--display); font-size: 17px; margin-top: 10px; } .rung small { color: #9fb7bb; }
.sail { height: var(--h); min-height: 70px; background: var(--sail); clip-path: polygon(0 100%, 100% 100%, 0 0); border-radius: 0 0 4px 4px; position: relative; }
.r0 .sail { background: #b98a32; } .r1 .sail { background: #d79f37; }
.pct { position: absolute; left: 8px; bottom: 8px; font-family: var(--display); font-weight: 700; font-size: 28px; color: var(--harbour); }
.how { padding-top: 48px; }
.steps { list-style: none; counter-reset: s; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.steps li { counter-increment: s; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; display: flex; flex-direction: column; gap: 6px; }
.steps li::before { content: counter(s); font: 700 15px var(--display); width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--harbour); color: var(--sail); }
.steps strong { font-family: var(--display); font-size: 18px; } .steps span { color: var(--dim); }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; padding-top: 24px; padding-bottom: 56px; }
.fact { border-top: 3px solid var(--sea); padding-top: 12px; } .fact strong { font-family: var(--display); font-size: 17px; } .fact p { color: var(--dim); margin: 6px 0 0; font-size: 15px; }

/* dashboard */
.dash { padding-top: 28px; padding-bottom: 48px; }
.dhead { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.dhead h1 { margin: 0; } .dhead p { margin: 4px 0 0; }
.ptabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1.5px solid var(--line); margin-bottom: 20px; }
.ptabs button { border: 0; background: none; font: 600 15px var(--body); color: var(--dim); padding: 10px 14px; cursor: pointer; white-space: nowrap; border-bottom: 3px solid transparent; margin-bottom: -1.5px; }
.ptabs button.on { color: var(--ink); border-color: var(--sea); }
.stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-bottom: 18px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; display: flex; flex-direction: column; gap: 2px; }
.stat span { font-size: 13px; color: var(--dim); } .stat strong { font: 700 26px var(--display); font-variant-numeric: tabular-nums; } .stat small { color: var(--dim); }
.stat:first-child { background: var(--harbour); color: #fff; border-color: var(--harbour); } .stat:first-child span, .stat:first-child small { color: #9fb7bb; }
.stat:first-child strong { color: var(--sail); }
.grid2 { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; }
.bars { width: 100%; height: auto; } .bars rect { fill: #e3ecec; } .bars rect.on { fill: var(--sea); } .bars .ax { font-size: 11px; fill: var(--dim); }
.tier strong { font: 700 24px var(--display); }
.prog { height: 10px; background: #e3ecec; border-radius: 99px; overflow: hidden; } .prog span { display: block; height: 100%; background: var(--sail); }
.linkbox { display: flex; gap: 10px; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 8px 8px 8px 12px; margin: 8px 0; }
.linkbox code { flex: 1; overflow-x: auto; white-space: nowrap; font-size: 14px; }
.camp { margin-top: 8px; }
.center { text-align: center; } .qrbox { display: flex; justify-content: center; margin: 8px 0; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-weight: 600; color: var(--dim); padding: 8px 10px; border-bottom: 1.5px solid var(--line); white-space: nowrap; }
.tbl td { padding: 10px; border-bottom: 1px solid var(--line); } .tbl td.n { font-variant-numeric: tabular-nums; } .tbl td small { color: var(--dim); }
.card:has(.tbl) { overflow-x: auto; }
.pager { display: flex; gap: 10px; justify-content: flex-end; margin-top: 12px; }
.st { font-weight: 600; } .st.paid { color: var(--sea-ink); } .st.requested { color: #9a6a0f; } .st.rejected { color: var(--warn); }
.msg { border: 1px solid var(--line); border-radius: 10px; padding: 12px; margin: 10px 0; }
.msg pre { white-space: pre-wrap; font: 14px/1.5 var(--body); margin: 8px 0 0; color: var(--dim); }
.logos { display: flex; gap: 18px; flex-wrap: wrap; } .logo-dl { display: flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none; font-size: 13px; }
.terms { margin-top: 32px; } .terms li { margin: 6px 0; }

.pfoot { border-top: 1px solid var(--line); padding: 24px 20px 40px; text-align: center; font-size: 13px; color: var(--dim); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--harbour); color: #fff; padding: 12px 18px; border-radius: 10px; z-index: 100; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.toast.good { background: var(--sea-ink); }

@media (max-width: 960px) {
  .hero-in, .grid2 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .facts { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .steps, .facts { grid-template-columns: 1fr; }
  .ladder { height: 180px; } .pct { font-size: 22px; }
  .who span { display: none; }
  .card { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
.login .muted { color: var(--dim); }
