/* Acid Grotesk is used if installed locally; Bricolage Grotesque is the free stand-in. */
:root {
  --font: "Acid Grotesk", "FFF Acid Grotesk", "Bricolage Grotesque", system-ui, sans-serif;

  --ground: #fbfbf9;
  --panel: #fefefc;
  --ink: #1e1e1c;
  --muted: #62625d;
  --line: rgba(30, 30, 28, .12);
  --card: rgba(30, 30, 28, .025);

  --night: #0b0b0a;
  --night-ink: #ededea;
  --night-muted: #a3a39d;
  --night-line: rgba(237, 237, 234, .12);

  --accent: #12805c;
  --accent-edge: #0b5a40;
  --accent-wash: rgba(18, 128, 92, .1);
  --on-accent: #fdfdfb;

  --gutter: 60px;
  --section: 160px;
  --max: 1320px;
}
@media (max-width: 760px) {
  :root { --gutter: 20px; --section: 96px; }
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--night); }
body {
  background: var(--ground);
  transition: background-color .2s;
  color: var(--ink);
  font: 400 18px/1.45 var(--font);
  font-variation-settings: "opsz" 14;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }

.wrap { max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }

h1, h2, h3 { font-weight: 400; font-variation-settings: "opsz" 96; text-wrap: balance; }
.h-xl { font-size: clamp(44px, 6vw, 72px); line-height: 1.1; letter-spacing: -0.035em; }
.h-lg { font-size: clamp(36px, 4.2vw, 48px); line-height: 1.2; letter-spacing: -0.028em; }
.h-md { font-size: clamp(26px, 2.6vw, 32px); line-height: 1.25; letter-spacing: -0.023em; }
.lead { font-size: 20px; line-height: 1.45; letter-spacing: -0.02em; color: var(--ink); max-width: 30em; }
.muted { color: var(--muted); }

/* Buttons: Whop's solid fill with a darker pressed edge. */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 64px; padding: 0 28px;
  background: var(--accent); color: var(--on-accent);
  border: 1px solid var(--accent-edge); border-radius: 16px;
  box-shadow: 0 3px 0 var(--accent-edge);
  font-size: 20px; font-weight: 600; letter-spacing: -0.01em;
  transition: transform .12s ease, box-shadow .12s ease, background-color .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { background: #148a63; }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--accent-edge); }
.btn-sm { height: 36px; padding: 0 14px; border-radius: 10px; font-size: 15px; font-weight: 500; box-shadow: 0 2px 0 var(--accent-edge); }
.btn-sm:active { box-shadow: 0 0 0 var(--accent-edge); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Header */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: 64px;
  color: var(--night-ink);
  background: var(--night); pointer-events: none;
  transition: background-color .25s, color .25s, border-color .25s;
  border-bottom: 1px solid transparent;
}
/* The header is always a solid bar, so Safari 26 tints the status bar from it; only its contents fade in. */
.header .wrap { opacity: 0; transition: opacity .4s ease; }
.header.is-ready .wrap { opacity: 1; pointer-events: auto; }
body.tone-dark { background: var(--night); }
.header.is-solid { background: var(--ground); color: var(--ink); border-bottom-color: var(--line); }
.header .wrap { height: 100%; display: flex; align-items: center; gap: 32px; }
.wordmark { font-size: 24px; font-weight: 600; letter-spacing: -0.03em; font-variation-settings: "opsz" 32; }
.nav { display: flex; gap: 28px; margin-left: auto; font-size: 15px; font-weight: 500; }
.nav a { opacity: .85; }
.nav a:hover { opacity: 1; }
@media (max-width: 760px) {
  .nav { display: none; }
  .header .btn-sm { margin-left: auto; }
}

/* Intro */
.intro {
  /* iOS 26 draws the page about 100px past the viewport, behind its floating toolbar, so the intro
     carries a dark tail below the fold and centres everything in the visible part above it. */
  --tail: 120px;
  position: relative; height: calc(100vh + var(--tail)); height: calc(100svh + var(--tail)); min-height: 560px;
  background: var(--night); overflow: hidden; color: #fff;
}
.stage {
  position: absolute; inset: 0 0 var(--tail);
  perspective: 900px; perspective-origin: 50% 50%;
  transform-style: preserve-3d;
}
.stage img {
  position: absolute; left: 50%; top: 50%;
  width: 58vmin; height: auto; translate: -50% -50%;
  opacity: 0; border-radius: 2px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
  will-change: transform, opacity, filter;
  backface-visibility: hidden;
}
.intro-copy {
  position: absolute; inset: 0 0 var(--tail);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 28px; padding: 0 6vw; text-align: center;
  pointer-events: none;
}
.intro h1 {
  font-weight: 500;
  font-size: clamp(2.5rem, 8.5vw, 9rem);
  line-height: .95; letter-spacing: -0.045em;
  text-wrap: balance;
}
.word { display: inline-block; overflow: hidden; padding: .06em .02em .12em; vertical-align: top; }
.word > span { display: inline-block; opacity: 0; will-change: transform, opacity, filter; }
.intro-sub { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.45; color: var(--night-muted); max-width: 34em; text-wrap: balance; }
.intro-sub, .intro .btn { opacity: 0; transform: translateY(12px); transition: opacity .7s ease, transform .7s cubic-bezier(.16, 1, .3, 1); }
.intro.is-done .intro-sub, .intro.is-done .btn { opacity: 1; transform: none; }
.intro.is-done .btn { transition-delay: .12s; pointer-events: auto; }
@media (max-width: 760px) {
  .intro-copy { gap: 22px; }
  .intro .btn { width: calc(100vw - var(--gutter) * 2); }
}

section { padding: var(--section) 0; background: var(--ground); }

/* Customers: split layout with the Today queue */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 64px; align-items: center; }
.split > div:first-child { display: flex; flex-direction: column; gap: 24px; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 48px; } }

.queue { position: relative; display: grid; gap: 12px; }
.queue-item {
  display: grid; grid-template-columns: 1fr auto; gap: 4px 20px; align-items: center;
  padding: 20px 24px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 18px;
  box-shadow: 0 10px 30px rgba(30, 30, 28, .06);
}
.queue-item:nth-child(1) { margin-right: 48px; }
.queue-item:nth-child(2) { margin: 0 24px 0 24px; }
.queue-item:nth-child(3) { margin-left: 48px; }
.queue-item strong { font-weight: 600; font-size: 18px; letter-spacing: -0.01em; }
.queue-item p { grid-column: 1; font-size: 15px; color: var(--muted); }
.queue-item span { grid-row: 1 / span 2; grid-column: 2; font-size: 15px; font-weight: 600; color: var(--accent); }
.queue-head { display: flex; justify-content: space-between; font-size: 15px; color: var(--muted); padding: 0 4px 4px; }
@media (max-width: 760px) {
  .queue-item, .queue-item:nth-child(n) { margin: 0; padding: 16px 18px; }
}

/* Product grid */
.grid-head { display: flex; flex-direction: column; gap: 20px; margin-bottom: 56px; }
.cards { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 1024px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .cards { grid-template-columns: 1fr; gap: 16px; } }
.card {
  display: flex; flex-direction: column; gap: 20px; height: 100%;
  padding: 28px; background: var(--card);
  border: 1px solid var(--line); border-radius: 24px; overflow: hidden;
}
.card h3 { margin-top: auto; }
.card p { font-size: 17px; line-height: 1.45; color: var(--muted); }
@media (max-width: 640px) { .card { padding: 22px; } }

/* Mini product UI inside cards */
.ui {
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  padding: 16px; font-size: 14px; line-height: 1.35;
  font-variant-numeric: tabular-nums; min-height: 168px;
  display: flex; flex-direction: column; gap: 10px;
}
.ui-label { font-size: 12px; color: var(--muted); }
.ui-field { border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; }
.ui-row { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-top: 1px solid var(--line); }
.ui-row:first-of-type { border-top: 0; }
.ui-big { font-size: 30px; letter-spacing: -0.03em; font-variant-numeric: normal; font-variation-settings: "opsz" 48; }
.ui-ok { color: var(--accent); font-weight: 600; }
.ui-bars { display: flex; align-items: flex-end; gap: 6px; height: 84px; padding-top: 4px; }
.ui-bars i { flex: 1; max-width: 24px; background: var(--accent); border-radius: 4px 4px 0 0; }
.ui-bars i:not(:last-child) { opacity: .35; }
.cards-more { margin-top: 40px; color: var(--muted); font-size: 18px; }

/* Fund */
.fund-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px 64px; align-items: end; margin-bottom: 48px; }
@media (max-width: 900px) { .fund-head { grid-template-columns: 1fr; } }
.controls { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; margin-bottom: 20px; }
.tabs { display: flex; gap: 8px; }
.tab {
  height: 48px; padding: 0 22px; border-radius: 14px;
  background: var(--panel); border: 1px solid var(--line);
  font-size: 18px; font-weight: 500; color: var(--muted); cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.tab[aria-selected="true"] { color: var(--ink); border-color: var(--ink); }
.deposit { display: flex; align-items: center; gap: 14px; font-size: 16px; color: var(--muted); }
.deposit output { color: var(--ink); font-weight: 600; min-width: 5.5ch; font-variant-numeric: tabular-nums; }
.deposit input { width: 180px; accent-color: var(--accent); }
@media (max-width: 640px) {
  .tabs { width: 100%; }
  .tab { flex: 1; padding: 0 8px; font-size: 16px; }
  .deposit { width: 100%; }
  .deposit input { flex: 1; width: auto; }
}

.fund-card { padding: 28px; background: var(--card); border: 1px solid var(--line); border-radius: 24px; }
@media (max-width: 640px) { .fund-card { padding: 18px 14px; border-radius: 20px; } }
.fund-summary { font-size: clamp(22px, 2.4vw, 28px); line-height: 1.3; letter-spacing: -0.02em; margin-bottom: 6px; font-variation-settings: "opsz" 48; }
.fund-strategy { font-size: 16px; color: var(--muted); margin-bottom: 24px; }
.chart { position: relative; touch-action: pan-y; }
.chart svg { display: block; width: 100%; overflow: visible; }
.chart svg:focus { outline: none; }
.chart svg:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; border-radius: 8px; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; color: var(--muted); margin-top: 12px; }
.legend span { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.key-line { width: 16px; height: 2px; border-radius: 1px; background: var(--accent); }
.key-band { width: 14px; height: 10px; border-radius: 2px; background: var(--accent-wash); box-shadow: inset 0 0 0 1px rgba(18, 128, 92, .25); }
.key-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 2px var(--panel); }

.tip {
  position: absolute; top: 0; left: 0; z-index: 2; pointer-events: none;
  min-width: 168px; padding: 10px 12px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 8px 24px rgba(30, 30, 28, .1);
  font-size: 13px; line-height: 1.4; color: var(--muted);
  opacity: 0; transition: opacity .12s;
}
.tip.is-on { opacity: 1; }
.tip strong { display: block; color: var(--ink); font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.tip .tip-row { display: flex; align-items: center; gap: 8px; }

.rounds { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 24px; margin-top: 28px; border-top: 1px solid var(--line); }
.rounds li { padding-top: 18px; }
.rounds strong { display: block; font-size: 22px; font-weight: 500; letter-spacing: -0.02em; font-variation-settings: "opsz" 32; }
.rounds p { font-size: 15px; color: var(--muted); }
@media (max-width: 640px) {
  .rounds { grid-template-columns: 1fr; }
  .rounds li { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .rounds li:last-child { border-bottom: 0; }
  .rounds strong { font-size: 20px; }
}
.fund-rule { margin-top: 28px; font-size: 16px; color: var(--muted); max-width: 46em; }
.fund-note { margin-top: 10px; font-size: 14px; color: var(--muted); max-width: 52em; }

details.numbers { margin-top: 24px; font-size: 15px; }
details.numbers summary { cursor: pointer; color: var(--ink); font-weight: 500; width: fit-content; }
details.numbers table { width: 100%; margin-top: 14px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
details.numbers th, details.numbers td { text-align: right; padding: 8px 0; border-bottom: 1px solid var(--line); }
details.numbers th:first-child, details.numbers td:first-child { text-align: left; }
details.numbers th { font-weight: 500; color: var(--muted); }

/* Mission: text left, photo bleeding off the right edge */
.mission { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; padding-left: max(var(--gutter), calc((100vw - var(--max)) / 2)); }
.mission > div { display: flex; flex-direction: column; gap: 24px; padding: 40px 0; }
.mission figure { height: 100%; min-height: 520px; }
.mission img { width: 100%; height: 100%; object-fit: cover; border-radius: 24px 0 0 24px; filter: grayscale(1) contrast(1.05); }
.mission figcaption { margin-top: 10px; font-size: 13px; color: var(--muted); }
@media (max-width: 900px) {
  .mission { grid-template-columns: 1fr; padding: 0; gap: 0; }
  .mission figure { order: -1; min-height: 0; aspect-ratio: 4 / 3; }
  .mission img { border-radius: 0; }
  .mission figcaption { padding: 0 var(--gutter); }
  .mission > div { padding: 48px var(--gutter) 0; }
}

/* Join + footer */
.join { background: var(--night); color: var(--night-ink); }
.join .wrap { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.join p { color: var(--night-muted); font-size: 20px; max-width: 30em; }
.footer { background: var(--night); color: var(--night-muted); border-top: 1px solid var(--night-line); font-size: 15px; }
.footer .wrap { display: grid; grid-template-columns: repeat(3, minmax(0, 180px)) 1fr; gap: 32px; padding-top: 56px; padding-bottom: 32px; }
.footer h4 { color: var(--night-ink); font-weight: 500; font-size: 15px; margin-bottom: 14px; }
.footer ul { list-style: none; display: grid; gap: 10px; }
.footer a:hover { color: var(--night-ink); }
.footer .wordmark { color: var(--night-ink); justify-self: end; }
.footer-base { grid-column: 1 / -1; padding-top: 28px; margin-top: 24px; border-top: 1px solid var(--night-line); font-size: 13px; }
@media (max-width: 760px) {
  .footer .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer .wordmark { grid-row: 1; grid-column: 1 / -1; justify-self: start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .intro-sub, .intro .btn, .header, .header .wrap, body { transition: none; }
}
