/* ============================================================
   Studio landing + legal pages — monochrome studio base
   (pure-black dark / white light), with a single accent thread
   pulled from the Billist coin: amber #FFD42A, and one horizon
   gradient (amber -> cyan) for the hero flourish.
   ============================================================ */
:root {
  --bg: #ffffff;
  --bg-elev: #f6f6f7;
  --ink: #0a0a0a;
  --muted: #62626b;
  --rule: #e6e6e8;
  --accent: #f5b800;          /* coin amber, tuned for light-bg contrast */
  --accent-2: #27c8e8;        /* horizon cyan */
  --card: #ffffff;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --bg-elev: #0c0c0d;
    --ink: #f5f5f5;
    --muted: #97979f;
    --rule: #1d1d1f;
    --accent: #ffd42a;
    --accent-2: #27c8e8;
    --card: #0d0d0e;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Archivo', system-ui, -apple-system, sans-serif;
  font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }

.kicker {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted); margin: 0;
}
h1, h2, h3 {
  font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800;
  letter-spacing: -0.02em; line-height: 1.04;
}
a { color: inherit; }

/* ---------- Top bar ---------- */
header {
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: saturate(160%) blur(14px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid var(--rule);
}
.bar { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand {
  font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800;
  font-size: 18px; letter-spacing: -0.01em; display: flex; align-items: center; gap: 10px;
}
.brand .dot {
  width: 11px; height: 11px; border-radius: 50%;
  background: #ffd42a;
}
.brand-tag {
  font-family: 'IBM Plex Mono', monospace; font-weight: 500;
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted);
}
.bar nav { font-family: 'IBM Plex Mono', monospace; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; }
.bar nav a { color: var(--muted); text-decoration: none; margin-left: 24px; }
.bar nav a:hover { color: var(--ink); }

/* ---------- Hero ---------- */
.hero { padding: 96px 0 64px; position: relative; }
.hero h1 {
  font-size: clamp(44px, 7vw, 76px);
  margin: 18px 0 0; max-width: 22ch;
}
.hero h1 .grad {
  background: linear-gradient(100deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lede {
  color: var(--muted); font-size: clamp(17px, 2.1vw, 21px);
  max-width: 48ch; margin: 26px 0 0;
}
.hero .cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; align-items: center; }
.btn {
  font-family: 'IBM Plex Mono', monospace; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  text-decoration: none; border-radius: 999px; padding: 14px 24px; display: inline-flex; align-items: center; gap: 9px;
  transition: transform .12s ease;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-ghost { border: 1px solid var(--rule); color: var(--ink); }

/* ---------- Principles strip ---------- */
.tenets {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--rule); border: 1px solid var(--rule); border-radius: 18px; overflow: hidden;
  margin-top: 28px;
}
.tenet { background: var(--bg); padding: 22px 24px; }
.tenet .n {
  font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 8px;
}
.tenet p { margin: 0; font-size: 14.5px; color: var(--muted); }
.tenet b { color: var(--ink); font-weight: 600; font-family: 'Archivo'; }

/* ---------- Section heads ---------- */
.sec { padding: 88px 0; }
.sec-label {
  font-family: 'IBM Plex Mono', monospace; font-size: 12px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--muted); margin: 0 0 14px;
}
.sec h2 { font-size: clamp(30px, 4vw, 40px); margin: 0; }

/* ---------- App showcase ---------- */
.app {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center;
  border: 1px solid var(--rule); border-radius: 28px; padding: 44px; background: var(--card);
  position: relative; overflow: hidden;
}
.app::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 80% at 100% 0%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 55%);
}
.app-head { display: flex; align-items: center; gap: 16px; margin-bottom: 8px; }
.app-head img { width: 60px; height: 60px; border-radius: 14px; box-shadow: 0 6px 24px rgba(0,0,0,.25); }
.app-head h3 { font-size: 28px; margin: 0; }
.app-head .tag { font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.app .pitch { color: var(--muted); font-size: 17px; margin: 14px 0 22px; max-width: 42ch; }
.features {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px 28px; margin-bottom: 34px; max-width: 460px;
}
.feature { display: flex; align-items: center; gap: 11px; }
.feature svg { width: 17px; height: 17px; flex: none; color: var(--accent); }
.feature span {
  font-family: 'IBM Plex Mono', monospace; font-size: 12px; letter-spacing: 0.07em;
  text-transform: uppercase; color: var(--ink);
}
.app-links { display: flex; align-items: center; }
.store {
  display: inline-flex; align-items: center; gap: 11px; text-decoration: none;
  background: #000; color: #fff; border: 1px solid rgba(255,255,255,.22);
  border-radius: 11px; padding: 9px 16px 10px;
}
@media (prefers-color-scheme: light) { .store { border-color: transparent; } }
.store svg { width: 26px; height: 26px; flex: none; }
.store .txt { display: flex; flex-direction: column; line-height: 1; }
.store .sub { font-family: system-ui, -apple-system, sans-serif; font-size: 11px; font-weight: 400; letter-spacing: .01em; line-height: 1.15; }
.store .big { font-family: system-ui, -apple-system, sans-serif; font-weight: 600; font-size: 21px; line-height: 1.1; letter-spacing: -.02em; }

/* ---------- Phone mock ---------- */
.phone {
  width: 300px; justify-self: center; aspect-ratio: 9/19.3;
  background: #000; border-radius: 46px; padding: 12px;
  box-shadow: 0 30px 70px rgba(0,0,0,.45), inset 0 0 0 1.5px #2a2a2c;
}
.screen {
  width: 100%; height: 100%; border-radius: 34px; overflow: hidden;
  background: #000; color: #fff; padding: 24px 20px; display: flex; flex-direction: column; gap: 14px;
  font-family: 'Archivo';
}
.screen .scr-label { font-family: 'IBM Plex Mono'; font-size: 9px; letter-spacing: .14em; text-transform: uppercase; color: #97979f; }
.stathero {
  border-radius: 20px; padding: 18px 18px 20px;
  background: linear-gradient(135deg, #ffd42a, #27c8e8); color: #06181e;
}
.stathero .lab { font-family: 'IBM Plex Mono'; font-size: 9px; letter-spacing: .14em; text-transform: uppercase; opacity: .75; }
.stathero .num { font-family: 'Bricolage Grotesque'; font-weight: 800; font-size: 46px; line-height: 1; margin-top: 4px; letter-spacing: -.02em; }
.stathero .cap { font-size: 12px; margin-top: 4px; font-weight: 600; }
.billrow { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-radius: 14px; background: #161618; }
.billrow .nm { font-weight: 600; font-size: 14px; }
.billrow .dt { font-family: 'IBM Plex Mono'; font-size: 9px; letter-spacing: .1em; text-transform: uppercase; color: #97979f; margin-top: 2px; }
.billrow .amt { font-family: 'Bricolage Grotesque'; font-weight: 800; font-size: 17px; }
.billrow.due .dt { color: #ffd42a; }

/* ============================================================
   Payfin showcase — its OWN brand skin (green→cyan accent,
   Manrope display / Inter body), scoped under .pf so it never
   touches the studio/Billist look.
   ============================================================ */
.app.pf { --pf-accent: #35D96B; --pf-accent-2: #27C8E8; }
.app.pf::before {
  background: radial-gradient(120% 80% at 100% 0%, color-mix(in srgb, var(--pf-accent) 15%, transparent), transparent 55%);
}
.pf-h2, .app.pf .app-head h3 {
  font-family: 'Manrope', sans-serif; font-weight: 800; letter-spacing: -0.02em;
}
.app.pf .pitch { font-family: 'Inter', system-ui, sans-serif; }
.app.pf .feature svg { color: var(--pf-accent); }

/* ---- phone screen: mesh hero ---- */
.pf-screen { padding: 0; position: relative; background: #000; font-family: 'Inter', system-ui, sans-serif; }
.pf-mesh {
  position: absolute; left: 0; right: 0; top: 0; height: 47%; pointer-events: none;
  background:
    radial-gradient(120% 85% at 74% -15%, rgba(39,200,232,.42), transparent 58%),
    linear-gradient(180deg, rgba(53,217,107,.52) 0%, rgba(53,217,107,.14) 44%, transparent 88%);
}
.pf-body { position: relative; z-index: 1; height: 100%; padding: 22px 17px 18px; display: flex; flex-direction: column; gap: 12px; }

/* ---- top bar ---- */
.pf-top { display: flex; align-items: center; justify-content: space-between; }
.pf-brand { display: flex; align-items: center; gap: 9px; font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 16px; letter-spacing: -.01em; color: #fff; }
.pf-fin { width: 24px; height: 24px; border-radius: 7px; background: #000; display: grid; place-items: center; box-shadow: 0 2px 8px rgba(0,0,0,.45); padding: 1px; }
.pf-fin svg { width: 100%; height: 100%; display: block; }
.pf-date { font-family: 'IBM Plex Mono', monospace; font-size: 9px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.72); }

/* ---- payoff ring ---- */
.pf-ringwrap { position: relative; width: 184px; height: 184px; margin: 2px auto 0; display: grid; place-items: center; }
.pf-ringwrap svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.pf-ringc { text-align: center; z-index: 2; }
.pf-ringc .rl { font-family: 'IBM Plex Mono', monospace; font-size: 8px; letter-spacing: .14em; text-transform: uppercase; color: #9aa0a6; }
.pf-ringc .rn { font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 34px; line-height: 1.04; margin-top: 3px; letter-spacing: -.02em; color: #fff; }
.pf-ringsub { text-align: center; font-family: 'Inter', sans-serif; font-size: 11.5px; font-weight: 600; color: #35D96B; }

/* ---- glass cards (chart + stats) ---- */
.pf-chart, .pf-stat {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
}
.pf-chart { padding: 11px 12px 9px; }
.pf-chart-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 7px; }
.pf-chart-h .k { font-family: 'IBM Plex Mono', monospace; font-size: 8px; letter-spacing: .12em; text-transform: uppercase; color: #9aa0a6; }
.pf-chart-h .v { font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 12px; color: #35D96B; }
.pf-chart svg { width: 100%; height: 54px; display: block; }
.pf-chart-x { display: flex; justify-content: space-between; margin-top: 5px; }
.pf-chart-x span { font-family: 'IBM Plex Mono', monospace; font-size: 7px; letter-spacing: .08em; text-transform: uppercase; color: #6e747a; }

/* ---- 3-up stat row ---- */
.pf-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pf-stat { padding: 10px 9px; }
.pf-stat .k { font-family: 'IBM Plex Mono', monospace; font-size: 7.5px; letter-spacing: .1em; text-transform: uppercase; color: #9aa0a6; }
.pf-stat .v { font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 16px; color: #fff; margin-top: 4px; letter-spacing: -.01em; }

/* ---- FAB ---- */
.pf-fab {
  position: absolute; right: 15px; bottom: 15px; width: 44px; height: 44px; border-radius: 50%;
  border: none; cursor: default; color: #06140A; display: grid; place-items: center; z-index: 3;
  background: linear-gradient(150deg, #35D96B, #27C8E8);
  box-shadow: 0 12px 26px rgba(53,217,107,.45), inset 0 1px 0 rgba(255,255,255,.4);
}
.pf-fab svg { width: 22px; height: 22px; }

/* ---------- More coming ---------- */
.coming {
  border: 1px dashed var(--rule); border-radius: 20px; padding: 30px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 22px;
}
.coming .t { font-family: 'Bricolage Grotesque'; font-weight: 800; font-size: 19px; }
.coming .s { color: var(--muted); font-size: 14px; margin-top: 2px; }
.coming .mono { font-family: 'IBM Plex Mono'; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--rule); padding: 40px 0 60px; }
.foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; align-items: center; }
.foot .mono { font-family: 'IBM Plex Mono', monospace; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.foot-nav { display: flex; gap: 24px; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--ink); }

@media (max-width: 820px) {
  .tenets { grid-template-columns: 1fr; }
  .app { grid-template-columns: 1fr; gap: 36px; padding: 30px; }
  .phone { order: -1; }
  .hero { padding: 64px 0 40px; }
}

/* ============================================================
   Legal pages (privacy / terms) — long-form prose layout.
   Kept from the original studio legal stylesheet.
   ============================================================ */
.legal { max-width: 680px; margin: 0 auto; padding: 72px 24px 96px; }
.legal h1 { font-size: 40px; line-height: 1.05; margin: 12px 0 6px; }
.legal h2 { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 22px; letter-spacing: -0.01em; margin: 40px 0 8px; }
.legal p, .legal li { color: var(--ink); }
.legal .meta { color: var(--muted); font-size: 13px; font-family: 'IBM Plex Mono', monospace; letter-spacing: 0.06em; text-transform: uppercase; }
.legal a { text-underline-offset: 3px; }
.legal hr { border: 0; border-top: 1px solid var(--rule); margin: 48px 0; }
.legal .back { font-family: 'IBM Plex Mono', monospace; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); text-decoration: none; }
.legal footer { border: 0; padding: 0; font-family: 'IBM Plex Mono', monospace; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.legal footer a { color: var(--muted); }
.legal footer a:hover { color: var(--ink); }
