/* Appetite — the marketing site's skin.
 *
 * ONE stylesheet for every public page (home, product, pricing, for lenders,
 * about, contact), so the site cannot drift page by page the way a set of
 * one-off pages always does.
 *
 * The tokens are the PRODUCT's tokens, copied from the surfaces a broker
 * actually uses (demo.html and its siblings): same near-black, same green,
 * same three typefaces. That is deliberate and it is the cheapest honesty in
 * the funnel. A marketing site in a different palette to the product it sells
 * teaches the visitor that the page was made by a different discipline than
 * the software, and the first thing they see after signing up is a stranger.
 *
 * No build step, no framework, no tracker. A page here is HTML and this file.
 */

:root {
  --scr: #0a0c0e;
  --accent: #2fe08f;
  --accent-ink: #04140c;
  --ink: #edf1f3;
  --ink2: #a4aeb3;
  --ink3: #8b959b;
  --edge: rgba(130, 205, 175, 0.15);
  --edge2: rgba(255, 255, 255, 0.09);
  --panel: #11151a;
  --field: #0b0e11;
  --amber: #e0b64f;
  --radius: 12px;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  background:
    radial-gradient(1100px 560px at 12% -6%, rgba(47, 224, 143, 0.06), transparent 60%),
    var(--scr);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 980px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

/* ------------------------------------------------------------------ header */

.top {
  position: sticky; top: 0; z-index: 40;
  background: rgba(10, 12, 14, 0.86);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--edge2);
}
.top .wrap { display: flex; align-items: center; gap: 18px; height: 60px; }
.mark { font-family: var(--serif); font-size: 20px; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
.mark:hover { text-decoration: none; }
.mark span { color: var(--accent); }
.nav { display: flex; gap: 18px; margin-left: auto; align-items: center; }
.nav a { color: var(--ink2); font-size: 14.5px; }
.nav a:hover { color: var(--ink); text-decoration: none; }
.nav a.here { color: var(--ink); }
@media (max-width: 720px) {
  .nav a.hide-sm { display: none; }
}

/* ------------------------------------------------------------------ blocks */

section { padding: 64px 0; border-top: 1px solid var(--edge2); }
section.first { border-top: 0; padding-top: 56px; }
@media (min-width: 800px) { section { padding: 84px 0; } }

h1 {
  font-family: var(--serif); font-weight: 600; letter-spacing: -0.02em;
  font-size: 34px; line-height: 1.12; margin: 0 0 16px;
}
@media (min-width: 800px) { h1 { font-size: 50px; } }

h2 {
  font-family: var(--serif); font-weight: 600; letter-spacing: -0.015em;
  font-size: 26px; line-height: 1.2; margin: 0 0 14px;
}
@media (min-width: 800px) { h2 { font-size: 32px; } }

h3 { font-size: 16.5px; font-weight: 600; margin: 0 0 6px; }

p { margin: 0 0 14px; color: var(--ink2); }
p.lead { font-size: 18px; color: var(--ink); }
@media (min-width: 800px) { p.lead { font-size: 20px; } }
p.big { font-size: 17px; }

.kicker {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--accent); margin: 0 0 12px;
}
.muted { color: var(--ink3); }
.small { font-size: 13.5px; }

/* ------------------------------------------------------------------ button */

.btn {
  display: inline-block; padding: 12px 20px; border-radius: 999px;
  font-weight: 600; font-size: 15px; border: 1px solid transparent;
}
.btn:hover { text-decoration: none; }
.btn.pri { background: var(--accent); color: var(--accent-ink); }
.btn.pri:hover { filter: brightness(1.07); }
.btn.sec { border-color: var(--edge); color: var(--ink); }
.btn.sec:hover { border-color: var(--accent); }
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* ------------------------------------------------------------------- cards */

.grid { display: grid; gap: 14px; margin-top: 28px; }
@media (min-width: 700px) { .grid.two { grid-template-columns: 1fr 1fr; } }
@media (min-width: 860px) { .grid.three { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--panel); border: 1px solid var(--edge2);
  border-radius: var(--radius); padding: 20px;
}
.card h3 { color: var(--ink); }
.card p { margin: 0; font-size: 14.5px; }

/* the proof strip */
.strip { display: grid; gap: 12px; margin-top: 34px; }
@media (min-width: 700px) { .strip { grid-template-columns: repeat(3, 1fr); } }
.stat {
  border: 1px solid var(--edge); border-radius: var(--radius);
  padding: 18px 20px; background: rgba(47, 224, 143, 0.03);
}
.stat b {
  display: block; font-family: var(--serif); font-size: 30px;
  font-weight: 600; color: var(--ink); line-height: 1.1;
}
.stat span { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink3); }

/* a plain list with ticks */
.ticks { list-style: none; padding: 0; margin: 18px 0 0; }
.ticks li { position: relative; padding-left: 26px; margin-bottom: 10px; color: var(--ink2); }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

/* the replaces table */
.rows { margin-top: 26px; border: 1px solid var(--edge2); border-radius: var(--radius); overflow: hidden; }
.row { display: flex; gap: 14px; justify-content: space-between; align-items: baseline;
  padding: 13px 18px; border-bottom: 1px solid var(--edge2); }
.row:last-child { border-bottom: 0; }
.row .what { color: var(--ink); }
.row .cost { font-family: var(--mono); font-size: 13px; color: var(--ink3); white-space: nowrap; }
.row.total { background: rgba(47, 224, 143, 0.05); }
.row.total .what, .row.total .cost { color: var(--accent); font-weight: 600; }

/* pricing */
.price {
  border: 1px solid var(--edge); border-radius: 16px; padding: 28px;
  background: var(--panel); margin-top: 28px;
}
.price .amount { font-family: var(--serif); font-size: 46px; font-weight: 600; line-height: 1; color: var(--ink); }
.price .per { color: var(--ink3); font-size: 15px; }
.price.founding { border-color: var(--accent); }
.tag {
  display: inline-block; font-family: var(--mono); font-size: 10.5px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent);
  border: 1px solid var(--edge); border-radius: 999px; padding: 4px 10px; margin-bottom: 14px;
}

/* faq */
.faq { margin-top: 26px; }
.faq details {
  border-bottom: 1px solid var(--edge2); padding: 16px 0;
}
.faq summary { cursor: pointer; font-weight: 600; color: var(--ink); list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--accent); font-weight: 700; }
.faq details[open] summary::after { content: "–"; }
.faq p { margin: 12px 0 0; }

/* ------------------------------------------------------------------ footer */

footer { border-top: 1px solid var(--edge2); padding: 40px 0 60px; }
footer .cols { display: grid; gap: 22px; }
@media (min-width: 700px) { footer .cols { grid-template-columns: 2fr 1fr 1fr; } }
footer h4 { font-size: 12px; font-family: var(--mono); letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink3); margin: 0 0 10px; font-weight: 500; }
footer a { display: block; color: var(--ink2); font-size: 14.5px; margin-bottom: 8px; }
footer a:hover { color: var(--ink); text-decoration: none; }
.legal { margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--edge2);
  color: var(--ink3); font-size: 13px; }
.legal p { color: var(--ink3); font-size: 13px; }

/* ------------------------------------------------- the public lender lookup

   The search box on /for-lenders. A BDM reads "we read 179 lenders" and wants
   to know whether that includes theirs, so the widget is deliberately the
   plainest thing on the page: a field, a button, and an answer with a date on
   it. No list, no autocomplete, no alphabetical walk — the coverage list is
   the asset and this is a lookup, not a directory. */

.lookup { display: flex; gap: 10px; margin-top: 24px; flex-wrap: wrap; }
.lookup input {
  flex: 1 1 260px; min-width: 0; background: var(--field); color: var(--ink);
  border: 1px solid var(--edge2); border-radius: var(--radius);
  padding: 13px 15px; font: inherit; font-size: 15.5px;
}
.lookup input::placeholder { color: var(--ink3); }
.lookup input:focus { outline: none; border-color: var(--accent); }
.lookup button { flex: 0 0 auto; }

.lookout { margin-top: 18px; }
.lookout:empty { display: none; }

.found {
  border: 1px solid var(--edge2); border-radius: var(--radius);
  background: var(--panel); padding: 15px 17px; margin-bottom: 10px;
}
.found .who { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.found .who b { color: var(--ink); font-size: 16px; font-weight: 600; }
.found .when { margin: 8px 0 0; font-size: 14px; }
.found .when.ok { color: var(--accent); }
.found .when.old { color: var(--amber); }

/* The tick is the whole answer to "are you reading me", so it carries its own
   weight rather than sitting inside a sentence. */
.found .tick { color: var(--accent); font-weight: 700; }
.found .dot { color: var(--amber); font-weight: 700; }

.lookout .note { font-size: 14px; color: var(--ink3); margin: 0 0 12px; }
.lookout .miss {
  border: 1px dashed var(--edge2); border-radius: var(--radius);
  padding: 17px; background: rgba(255, 255, 255, 0.015);
}
.lookout .miss p { margin: 0 0 10px; }
.lookout .miss p:last-child { margin: 0; }

/* -------------------------------------------------------------- the join page

   One form, and above it the live seat a person is about to take. The seat
   card reuses the pricing card's shape on purpose: what a broker sees here is
   the same offer they read on /pricing, so it should look like the same
   object rather than a second, subtly different promise. */

.seat {
  border: 1px solid var(--edge); border-radius: var(--radius);
  background: var(--panel); padding: 22px 24px; margin-top: 30px;
}
.seat .amount { font-family: var(--serif); font-size: 34px; font-weight: 600; line-height: 1.1; color: var(--ink); }
.seat .per { margin: 10px 0 0; color: var(--ink2); }
.seat .tag {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent); margin: 0 0 10px;
}
.seat .note { margin: 0; color: var(--ink3); font-size: 14px; }

.joinform { display: grid; gap: 16px; margin-top: 30px; }
@media (min-width: 640px) { .joinform { grid-template-columns: 1fr 1fr; } }
.joinform .wide { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 14px; color: var(--ink2); }
.field .opt { color: var(--ink3); font-size: 12.5px; }
.field input, .field textarea {
  background: var(--field); color: var(--ink);
  border: 1px solid var(--edge2); border-radius: var(--radius);
  padding: 12px 14px; font: inherit; font-size: 15.5px; width: 100%;
}
.field textarea { resize: vertical; min-height: 84px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); }

/* The one button in the header. A person who has read enough should not have
   to go back to a pricing page to act, and "Sign in" is not an answer to
   "where do I start". Deliberately the LAST-BUT-ONE item: returning users
   look for Sign in on the far right, so the new thing sits beside it rather
   than displacing it. */
.navcta {
  background: var(--accent); color: var(--accent-ink) !important;
  padding: 7px 14px; border-radius: 999px; font-weight: 600; font-size: 14px;
}
.navcta:hover { filter: brightness(1.07); text-decoration: none; }
