/* =====================================================================
   Hood Helper

   The visual system here is quivertips.app's, adopted deliberately and
   closely: white page, one loud accent used only as a fill, Inter Tight at
   weight 600 with -.04em tracking for display, hairline rules instead of
   tinted section blocks, 999px pills, 28px tiles wrapping near-black cards,
   and a 1160px measure.

   Two things are ours rather than theirs. The accent is Robinhood green
   (#00c805) where they use lime, because the accent is the charity signal on
   this site and the chain it runs on is green. And the accent is never type
   on white — at 2.27:1 it would fail contrast — only ever a surface with
   #0f0f0f on it, which measures 8.5:1. Where a green is needed as text,
   --accent-ink is the sibling that passes.
   ===================================================================== */

:root {
  --accent: #00c805;
  --accent-hi: #00b004;          /* the accent one step down, for hovers */
  --accent-ink: #097a23;         /* text-safe green: 5.5:1 on white */
  --black: #0f0f0f;
  --white: #ffffff;
  --grey: #6b6b6b;
  --grey-2: #9a9a9a;
  --grey-3: #c9c9c9;             /* the unlit state of the story phrases */
  --line: #e8e8e8;
  --wash: #f2f2f2;               /* code chips, inert marks */
  --card: #111111;
  --card-2: #1c1c1c;
  --card-line: #2a2a2a;
  --up: #1b7f3b;
  --down: #c93a2e;

  --display: "Inter Tight", "Inter", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --w: 1160px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--white);
  color: var(--black);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.wrap { max-width: var(--w); margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 820px; }

/* Type -----------------------------------------------------------------
   Display is one face at one weight. The size does the work, not the
   weight, which is why nothing here is 700. */

h1, h2 {
  font-family: var(--display);
  margin: 0;
  font-weight: 600;
  letter-spacing: -.04em;
  line-height: .95;
}
h1 { font-size: clamp(56px, 8.4vw, 112px); }
h2 { font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -.03em; line-height: 1.05; }
h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -.025em;
  line-height: 1.15;
  margin: 0;
}

p { margin: 0; }
a { color: inherit; }

.kicker { font-size: 17px; color: var(--grey); margin-bottom: 22px; }
.eyebrow { font-size: 17px; color: var(--grey); margin-bottom: 22px; }

.lede { margin-top: 28px; font-size: 19px; line-height: 1.5; color: #3a3a3a; max-width: 30em; }
.sub  { margin-top: 16px; font-size: 17px; line-height: 1.55; color: var(--grey); max-width: 40em; }
.sub + .sub { margin-top: 14px; }
.sub.tight { margin-top: 12px; font-size: 16px; }

.fine { margin-top: 18px; font-size: 14px; line-height: 1.6; color: var(--grey); max-width: 46em; }
.fine strong { color: var(--black); font-weight: 600; }
.fine a { color: var(--accent-ink); text-decoration: none; }
.fine a:hover { text-decoration: underline; }

em { font-style: normal; font-weight: 600; color: var(--black); }

code, .mono {
  font-family: var(--mono);
  background: var(--wash);
  padding: 2px 6px;
  border-radius: 6px;
  color: var(--black);
  font-size: .92em;
}

::selection { background: var(--accent); color: var(--black); }

/* Nav ------------------------------------------------------------------
   No border, no sticky, no backdrop blur. It is 72px of air with a mark on
   one side and everything else on the other. */

.bar { background: var(--white); }
.bar-in { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.mark {
  font-family: var(--display);
  font-weight: 600;
  font-size: 21px;
  letter-spacing: -.03em;
  text-decoration: none;
  color: var(--black);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.mark img { width: 28px; height: 28px; border-radius: 8px; display: block; flex: none; }

.nav { display: flex; align-items: center; gap: 26px; font-size: 15px; font-weight: 500; }
.nav a { text-decoration: none; color: var(--grey); }
.nav a:hover { color: var(--black); }

/* Buttons --------------------------------------------------------------
   Black is the default. The accent is spent on one action per screen. */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--body);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover { background: #2a2a2a; }
.nav .btn, .btn.sm { height: 40px; padding: 0 18px; font-size: 15px; }

.btn.go { background: var(--accent); color: var(--black); }
.btn.go:hover { background: var(--accent-hi); }

.btn.ghost { background: transparent; color: var(--black); border: 1px solid var(--line); }
.btn.ghost:hover { background: transparent; border-color: var(--black); }

.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn[disabled]:hover { background: var(--black); }

/* The sky ---------------------------------------------------------------
   The masthead and the hero share one sky so the gradient runs behind both
   without a seam at the header's edge. It resolves to white before the stats
   band, which is where the reference's plain white page takes over — the sky
   is the brand's entrance, not a wallpaper for the whole document.

   Greys are stepped darker inside it: --grey #6b6b6b measures 4.15:1 on
   #cfe6fa and fails, #545454 measures 5.90:1. */

.sky {
  position: relative;
  --grey: #545454;
  --grey-2: #5f5f5f;
  background: linear-gradient(180deg,
    #c2e1f9 0%, #d3e9fb 24%, #e2f0fd 48%, #f2f9fe 76%, #ffffff 100%);
}
.sky > * { position: relative; z-index: 1; }

/* Real cloud, from the artwork, along the base of the sky. The strip is
   mirrored inside the file so repeat-x has no visible join. */
.sky::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; height: 300px;
  background: url("brand/clouds.jpg?v=2") repeat-x bottom center / auto 300px;
  opacity: .62;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 42%, transparent 96%);
  mask-image: linear-gradient(180deg, transparent, #000 42%, transparent 96%);
  pointer-events: none;
  z-index: 0;
}

/* The mark is a white tile; it needs a shadow to hold an edge on both the
   sky and the white page below it. */
.bar { background: transparent; }
.mark img { filter: drop-shadow(0 1px 3px rgba(10, 60, 110, .30)); }

/* Hero -----------------------------------------------------------------
   Copy left, live tile right, centred against each other. */

.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 48px;
  align-items: center;
  padding-top: 56px;
  padding-bottom: 88px;
}
.hero .wrap > * { min-width: 0; }

/* The hero headline lives in a 559px column at the 1160px measure, and the
   global clamp is sized for a full-width one. Measured: "The fees only" is
   591px at 107px and 535px at 97px, so this is the largest setting that
   keeps the intended two-line break. */
.hero h1 { font-size: clamp(46px, 7.6vw, 98px); }

.cta { margin-top: 32px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.cta .note { font-size: 14px; color: var(--grey); }

/* The tile -------------------------------------------------------------
   A slab of accent with a near-black card floating inside it. This is the
   one place the accent covers real area, and it is why the page reads as
   green at a glance while staying black-on-white everywhere else. */

.tile { background: var(--accent); border-radius: 28px; padding: 24px; }
.tile-cap {
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; flex-wrap: wrap;
  font-size: 13px; font-weight: 500; color: var(--black);
  padding: 0 2px 14px;
}

.tile .card {
  background: var(--card);
  border-radius: 20px;
  padding: 20px 22px;
  color: var(--white);
}

/* The campaign inside the tile. */
.hp-wait { color: var(--grey-2); font-size: 15px; }
.hp-row { display: flex; align-items: baseline; gap: 10px; font-size: 20px; }
.hp-tok { font-family: var(--display); font-weight: 600; letter-spacing: -.03em; font-size: 26px; }
.hp-arrow { color: var(--accent); font-size: 18px; }
.hp-cha { color: #d8d8d8; font-size: 17px; }
.hp-amt {
  margin-top: 16px;
  font-family: var(--display); font-weight: 600;
  font-size: 38px; letter-spacing: -.035em; line-height: 1;
}
.hp-amt span {
  display: block; margin-top: 6px;
  font-family: var(--body); font-weight: 400; font-size: 13px;
  letter-spacing: 0; color: var(--grey-2);
}
.hp-note {
  margin-top: 18px; padding-top: 16px;
  border-top: 1px solid var(--card-line);
  font-size: 14px; line-height: 1.5; color: #b4b4b4;
}
.hp-open {
  display: inline-block; margin-top: 14px;
  color: var(--accent); text-decoration: none;
  font-weight: 600; font-size: 15px;
}
.hp-open:hover { text-decoration: underline; }

/* Stats band -----------------------------------------------------------
   Ruled top and bottom, four columns, no card. */

.statband { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.statband .wrap {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px;
  padding-top: 44px; padding-bottom: 44px;
}
/* The same four-up, but ruled inside a section rather than spanning the page. */
.statgrid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px;
  margin-top: 28px; padding: 28px 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.stat { display: flex; flex-direction: column; gap: 6px; }
.stat .k { font-size: 13px; font-weight: 500; color: var(--grey-2); }
.stat .v {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(28px, 3vw, 38px); letter-spacing: -.035em; line-height: 1;
}
.stat .v.ok { color: var(--accent-ink); }
.stat .n { font-size: 13px; color: var(--grey); }

/* Story ----------------------------------------------------------------
   A sticky frame the page scrolls through. The phrases start grey and are
   lit one at a time by scroll position; the bar underneath fills as they
   go. It is the reference's signature moment and the reason its middle
   reads as a sequence rather than a list. */

.story { height: 260vh; position: relative; }
.story-sticky {
  position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column; justify-content: center; gap: 34px;
  max-width: var(--w); margin: 0 auto; padding: 0 24px;
}
.story-copy { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.story-copy h2 { margin: 0; }
.story-steps { display: flex; gap: 26px; flex-wrap: wrap; }
.story-copy p {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(18px, 1.8vw, 22px);
  letter-spacing: -.02em; line-height: 1.15;
  color: var(--grey-3); margin: 0;
  transition: color .35s;
}
.story-copy p.on { color: var(--black); }
.storybar { height: 3px; background: #ededed; border-radius: 2px; overflow: hidden; width: 100%; flex-basis: 100%; }
.storybar i { display: block; height: 100%; background: var(--accent); transform-origin: left center; transform: scaleX(0); }

/* The three cards the story scrolls through. */
/* Tallest frame measures 232px from the stage's top edge once its offset is
   counted; anything more leaves the sticky frame visibly bottom-empty. */
.stage { position: relative; height: 236px; }
.frame {
  position: absolute; width: 400px;
  background: var(--white); border-radius: 26px; padding: 11px;
  box-shadow: 0 44px 90px -34px rgba(0,0,0,.5), 0 0 0 1px #e6e6e6;
  transition: opacity .6s, transform .6s cubic-bezier(.2,.75,.2,1);
}
/* Hidden only once the driver is running. If polish.js never loads, the
   cards are simply there — a blank stage would read as a broken page. */
.story.js .frame { opacity: 0; transform: translateY(28px); }
.story.js .frame.in { opacity: 1; transform: translateY(0); }
.frame:nth-child(1) { left: 0; top: 34px; z-index: 1; }
.frame:nth-child(2) { left: calc(50% - 200px); top: 0; z-index: 3; }
.frame:nth-child(3) { right: 0; top: 40px; z-index: 2; }
.frame .card {
  background: var(--card); border-radius: 17px; padding: 14px 16px; color: var(--white);
}
.fr-top { display: flex; align-items: baseline; gap: 8px; font-size: 15px; }
.fr-top b { font-family: var(--display); font-weight: 600; letter-spacing: -.02em; font-size: 17px; }
.fr-top span { color: var(--grey-2); font-size: 13px; }
.fr-line { margin-top: 12px; padding-left: 14px; border-left: 2px solid var(--card-line); }
.fr-line p { font-size: 14px; color: #c4c4c4; line-height: 1.45; }
.fr-tag {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 10px;
  background: var(--accent); color: var(--black);
  border-radius: 999px; padding: 4px 12px;
  font-size: 13px; font-weight: 600;
}

/* Section rhythm -------------------------------------------------------
   Sections are told apart by air and a hairline, never by a tint. */

.panel { padding: 88px 0; }
.panel.alt { background: var(--white); }
body > section + section,
body > footer { border-top: 1px solid var(--line); }
.story + section { border-top: 0; }

.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.sec-head > div { min-width: 0; }

.chip {
  display: inline-flex; align-items: center; gap: 8px;
  height: 32px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--white);
  font-size: 13px; font-weight: 500; color: var(--grey);
  white-space: nowrap;
}

/* The band of three -----------------------------------------------------
   Ruled top and bottom like the stats, three columns of plain type. */

.band { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band .wrap {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px;
  padding-top: 56px; padding-bottom: 56px;
}
.band p { margin-top: 10px; color: var(--grey); font-size: 16px; max-width: 26em; }

/* Cards ----------------------------------------------------------------
   Charity cards and campaign cards. Hairline edge, no shadow, the edge
   goes black on hover and nothing moves. */

.grid, .cards {
  display: grid; gap: 16px; margin-top: 32px;
  grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
}
.card {
  border: 1px solid var(--line); border-radius: 18px; padding: 20px;
  background: var(--white); display: flex; flex-direction: column; gap: 4px;
  text-decoration: none; color: inherit;
  transition: border-color .2s;
}
.card:hover { border-color: var(--black); }
/* The card is a column flexbox, so a bare badge would stretch to its width. */
.card > .badge, .card > .ch-link { align-self: flex-start; }
.card .name {
  font-family: var(--display); font-weight: 600;
  font-size: 22px; letter-spacing: -.03em; margin-top: 10px;
}
.card .cid { font-size: 13px; color: var(--grey-2); word-break: break-word; }
.card .cid a { color: var(--grey); text-decoration: none; }
.card .cid a:hover { color: var(--black); }

.ch-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ch-icon { width: 34px; height: 34px; color: var(--accent-ink); }
.ch-icon svg { width: 100%; height: 100%; }
.ch-raised { margin-top: 10px; display: flex; align-items: baseline; gap: 8px; }
.ch-raised b {
  font-family: var(--display); font-weight: 600;
  font-size: 20px; letter-spacing: -.03em;
}
.ch-raised span { font-size: 13px; color: var(--grey); }
.ch-link {
  margin-top: 14px; font-size: 14px; font-weight: 600;
  color: var(--accent-ink); text-decoration: none;
}
.ch-link:hover { text-decoration: underline; }

.badge {
  display: inline-flex; align-items: center; height: 24px; padding: 0 10px;
  border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap;
}
.badge.live { background: var(--accent); color: var(--black); }
.badge.wait { background: var(--wash); color: var(--grey); }
.badge.bad  { background: #fdeceb; color: var(--down); }

.empty { color: var(--grey); font-size: 16px; margin-top: 28px; }

/* Ledger ---------------------------------------------------------------
   A ruled list, not a stack of cards. */

.ledger { margin-top: 32px; border-top: 1px solid var(--line); }
.led {
  display: grid; grid-template-columns: auto 1fr auto auto;
  align-items: center; gap: 18px;
  padding: 16px 2px; border-bottom: 1px solid var(--line);
}
.led .who { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.led .who b { font-weight: 600; font-size: 15px; }
.led .who span { font-size: 13px; color: var(--grey); }
.led .amt { font-family: var(--display); font-weight: 600; font-size: 17px; letter-spacing: -.02em; }
.led .tx { font-size: 13px; color: var(--grey-2); text-decoration: none; white-space: nowrap; }
.led .tx:hover { color: var(--black); }
.led-empty { padding: 24px 2px; color: var(--grey); border-bottom: 1px solid var(--line); }

.pill {
  display: inline-flex; align-items: center; height: 26px; padding: 0 12px;
  border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap;
}
.pill.done { background: var(--accent); color: var(--black); }
.pill.transit { background: var(--wash); color: var(--grey); }
.pill.new { background: var(--black); color: var(--white); }

/* Marquee of live campaigns -------------------------------------------- */

.marquee {
  overflow: hidden; margin-top: 32px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.pills { display: flex; gap: 10px; flex-wrap: nowrap; width: max-content; animation: drift 48s linear infinite; }
.marquee:hover .pills { animation-play-state: paused; }
@keyframes drift { to { transform: translateX(-50%); } }
.tpill {
  display: inline-flex; align-items: center; gap: 10px;
  height: 48px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--line); font-size: 15px; white-space: nowrap;
  text-decoration: none; color: inherit;
  transition: transform .2s, border-color .2s;
}
.tpill:hover { transform: translateY(-2px); border-color: var(--black); }
.tpill b { font-weight: 600; }
.tpill .px { color: var(--grey); }
.tpill .kind { font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: var(--grey-2); }

/* Chart ---------------------------------------------------------------- */

.chartwrap { margin-top: 32px; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.chart-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap; padding: 20px 22px; border-bottom: 1px solid var(--line);
}
.price { font-family: var(--display); font-weight: 600; font-size: 32px; letter-spacing: -.035em; }
.delta { margin-left: 10px; font-size: 15px; font-weight: 600; }
.delta.up { color: var(--up); }
.delta.down { color: var(--down); }
.chart-meta { display: flex; gap: 24px; font-size: 14px; color: var(--grey); }
.chart-meta b { color: var(--black); font-weight: 600; }
.chart { height: 260px; display: flex; align-items: center; justify-content: center; }
.chart-empty { color: var(--grey-2); font-size: 15px; text-align: center; padding: 0 24px; }

/* Diagram -------------------------------------------------------------- */

.diagram { margin-top: 32px; border: 1px solid var(--line); border-radius: 20px; padding: 24px; overflow-x: auto; }
.diagram svg { width: 100%; min-width: 720px; height: auto; display: block; }
.d-node { fill: var(--white); stroke: var(--line); }
.d-node.is-vault { stroke: var(--black); }
.d-step { font-family: var(--mono); font-size: 11px; fill: var(--grey-2); }
.d-title { font-family: var(--display); font-weight: 600; font-size: 17px; fill: var(--black); letter-spacing: -.02em; }
.d-sub { font-size: 11.5px; fill: var(--grey); }
.d-wire { stroke: var(--accent); stroke-width: 2; fill: none; }
.d-pulse { stroke: var(--accent); stroke-width: 2; fill: none; opacity: .35;
  stroke-dasharray: 10 90; animation: flow 3.2s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -100; } }
.d-dead { stroke: #d8d8d8; stroke-width: 1.6; stroke-dasharray: 5 5; fill: none; }
.d-x path { stroke: var(--down); stroke-width: 2; stroke-linecap: round; }
.d-deadlabel { font-size: 12px; fill: var(--grey-2); }
.d-legend { display: flex; gap: 26px; flex-wrap: wrap; margin-top: 18px; font-size: 13px; color: var(--grey); }
.d-legend i { display: inline-block; width: 16px; height: 2px; background: var(--accent); margin-right: 8px; vertical-align: middle; }
.d-legend i.dead { background: #d8d8d8; }

/* Proof table ---------------------------------------------------------- */

.proof { margin-top: 48px; }
.proof p { margin-top: 10px; color: var(--grey); max-width: 46em; }
.tbl { width: 100%; border-collapse: collapse; margin-top: 20px; font-size: 15px; }
.tbl th {
  text-align: left; font-size: 12px; font-weight: 600; text-transform: uppercase;
  letter-spacing: .05em; color: var(--grey-2);
  padding: 0 16px 10px 0; border-bottom: 1px solid var(--line);
}
.tbl td { padding: 16px 16px 16px 0; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--grey); }
.tbl td:first-child { color: var(--black); font-weight: 500; width: 42%; }

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

.limit { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); }
.limit p { margin-top: 12px; color: var(--grey); font-size: 16.5px; line-height: 1.6; max-width: 44em; }

/* Launch form ---------------------------------------------------------- */

.lform { margin-top: 32px; max-width: 640px; }
.frow { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fi { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.fi label { font-size: 14px; font-weight: 500; }
.fi .opt { color: var(--grey-2); font-weight: 400; }
.fi input, .fi select {
  height: 48px; padding: 0 16px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--white); color: var(--black);
  font-family: var(--body); font-size: 16px;
}
.fi input:focus, .fi select:focus { outline: 0; border-color: var(--black); }
.fi input::placeholder { color: var(--grey-2); }
.lnote {
  margin: 8px 0 24px; padding: 18px 20px;
  border: 1px solid var(--line); border-radius: 16px;
  font-size: 14px; line-height: 1.6; color: var(--grey);
}
.lnote p + p { margin-top: 10px; }
.lnote b { color: var(--black); font-weight: 600; }
.lstatus { margin-top: 14px; font-size: 14px; color: var(--grey); }
.lstatus.ok { color: var(--accent-ink); font-weight: 600; }
.lstatus.err { color: var(--down); }

/* Campaign page -------------------------------------------------------- */

.camp-head .wrap { padding-top: 48px; padding-bottom: 40px; }
.back { font-size: 14px; color: var(--grey); text-decoration: none; }
.back:hover { color: var(--black); }
.camp-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; flex-wrap: wrap; margin-top: 20px; }
.camp-name { margin-top: 10px; font-size: 18px; color: var(--grey); }
.camp-charity { display: flex; flex-direction: column; gap: 4px; }
.camp-charity .k { font-size: 13px; color: var(--grey-2); }
.camp-charity .v { font-family: var(--display); font-weight: 600; font-size: 24px; letter-spacing: -.03em; }
.addr { margin-top: 20px; font-family: var(--mono); font-size: 13px; color: var(--grey-2); word-break: break-all; }

.verdict {
  margin-top: 28px; padding: 20px 22px;
  border: 1px solid var(--line); border-radius: 18px;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.verdict p { color: var(--grey); }
.checks { list-style: none; margin: 28px 0 0; padding: 0; border-top: 1px solid var(--line); }
.checks li { display: flex; gap: 14px; padding: 16px 2px; border-bottom: 1px solid var(--line); }
.checks .tick { font-weight: 700; }
.checks li.pass .tick { color: var(--accent-ink); }
.checks li.fail .tick { color: var(--down); }
.checks li div { display: flex; flex-direction: column; gap: 4px; }
.checks .detail { font-size: 14px; color: var(--grey); }

.log { list-style: none; margin: 16px 0 0; padding: 0; border-top: 1px solid var(--line); }
.log li { display: flex; align-items: center; gap: 14px; padding: 14px 2px; border-bottom: 1px solid var(--line); font-size: 15px; }
.log li.idle { color: var(--grey); }
.log .ok { color: var(--accent-ink); font-weight: 600; font-size: 12px; }
.log .slow { color: var(--grey-2); font-weight: 600; font-size: 12px; }
.log .t { margin-left: auto; font-size: 13px; color: var(--grey-2); }

/* Footer --------------------------------------------------------------- */

/* The page opens in the sky and closes in it, with the white document in
   between. Kept far paler than the hero so the small print stays readable. */
footer {
  position: relative;
  padding: 36px 0 44px;
  font-size: 14px;
  color: var(--grey);
  background: linear-gradient(180deg, #ffffff 0%, #f4fafe 45%, #e6f2fd 100%);
}
footer::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; height: 180px;
  background: url("brand/clouds.jpg?v=2") repeat-x bottom center / auto 180px;
  opacity: .38;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 70%);
  mask-image: linear-gradient(180deg, transparent, #000 70%);
  pointer-events: none;
}
footer .wrap { position: relative; z-index: 1; }
footer .wrap { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; align-items: flex-start; }
footer .wrap > div { max-width: 46em; }
footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
footer .fine { margin-top: 0; max-width: none; }
footer .fine + .fine { margin-top: 14px; }
footer a { color: var(--grey); text-decoration: none; }
footer a:hover { color: var(--black); }

/* Motion ---------------------------------------------------------------
   The hero settles once on load; nothing loops except the live dot and the
   marquee. */

.motion .kicker, .motion .lede, .motion .cta { opacity: 0; animation: fade .7s ease .35s forwards; }
.motion .cta { animation-delay: .45s; }
.motion .tile { opacity: 0; animation: tilein .9s cubic-bezier(.2,.75,.2,1) .2s forwards; }
@keyframes fade { to { opacity: 1; } }
@keyframes tilein { from { opacity: 0; transform: translateY(18px) scale(.985); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .motion .kicker, .motion .lede, .motion .cta, .motion .tile { opacity: 1; animation: none; }
  .pills, .d-pulse { animation: none; }
  .story.js .frame { opacity: 1; transform: none; transition: none; }
}

/* Responsive ------------------------------------------------------------ */

@media (max-width: 1240px) {
  .frame { width: calc(33.4% + 14px); }
  .frame:nth-child(2) { left: calc(33.3% - 7px); }
}

@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 36px; padding-top: 32px; padding-bottom: 64px; }
  .statband .wrap, .statgrid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .story { height: auto; }
  .story-sticky { position: static; height: auto; gap: 22px; padding-top: 56px; padding-bottom: 24px; }
  .story-copy { align-items: flex-start; flex-direction: column; gap: 12px; }
  .story-steps { flex-direction: column; gap: 8px; }
  .storybar { display: none; }
  .stage { height: auto; display: flex; flex-direction: column; gap: 12px; }
  .frame { position: relative; width: 100%; }
  /* The fan's offsets are set per-child, so a plain .frame reset loses to
     them on specificity and the stacked cards drift off the right edge. */
  .frame:nth-child(n) { left: auto; right: auto; top: auto; }
}

@media (max-width: 820px) {
  .band .wrap { grid-template-columns: 1fr; gap: 28px; padding-top: 40px; padding-bottom: 40px; }
  .panel { padding: 64px 0; }
  .led { grid-template-columns: auto 1fr; row-gap: 8px; }
  .led .amt, .led .tx { grid-column: 2; justify-self: start; }
  .tbl td:first-child { width: auto; }
}

@media (max-width: 760px) {
  .nav a:not(.btn) { display: none; }
}

@media (max-width: 620px) {
  .frow { grid-template-columns: 1fr; }
  .statband .wrap, .statgrid { grid-template-columns: 1fr; gap: 26px; }
  /* Below the h1 clamp's floor the type has to keep scaling or the headline
     breaks onto a line holding one word. */
  h1 { font-size: clamp(34px, 11vw, 56px); }
  /* The hard break in the hero headline sets the two-line composition on a
     wide screen; on a phone it only adds a break the text then wraps past. */
  .br-wide { display: none; }
}

/* The buy step -----------------------------------------------------------
   Revealed after a launch confirms. Set apart from the form above it by a
   rule rather than a tint, like every other division on the page. */
.buystep { margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line); max-width: 640px; }
.buystep .sub { margin-top: 12px; }
.buyrow { display: flex; align-items: flex-end; gap: 14px; margin-top: 22px; flex-wrap: wrap; }
.buyrow .fi { margin-bottom: 0; flex: 1 1 220px; }
.buyquote { margin-top: 12px; font-size: 14px; color: var(--grey); font-family: var(--mono); }

/* Logo dropzone ----------------------------------------------------------
   A file the launch cannot do without: pons stores logos as ipfs:// CIDs, so
   this is pinned before the transaction is built. */
.drop {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  min-height: 132px; padding: 18px;
  border: 1px dashed var(--line); border-radius: 16px;
  background: var(--white); cursor: pointer; text-align: center;
  transition: border-color .18s, background .18s;
}
.drop:hover, .drop:focus-visible { border-color: var(--black); outline: 0; }
.drop.over { border-color: var(--accent-ink); background: rgba(0,200,5,.04); }
.drop.has { border-style: solid; text-align: left; justify-content: flex-start; }
.drop img { width: 84px; height: 84px; border-radius: 14px; object-fit: cover; flex: none; }
.drop-copy { display: flex; flex-direction: column; gap: 4px; }
.drop-copy b { font-weight: 600; font-size: 15px; }
.drop-copy span { font-size: 13px; color: var(--grey); }
.drop-note { margin-top: 8px; font-size: 13px; color: var(--grey-2); }
.drop-note.bad { color: var(--down); }

/* The campaign page's charity now carries the onward link the token metadata
   used to hold, so it needs to read as a link and say where it goes. */
.camp-charity .v a { color: var(--ink, var(--black)); text-decoration: none; border-bottom: 2px solid var(--accent); }
.camp-charity .v a:hover { border-bottom-color: var(--black); }
.camp-charity .via { display: block; margin-top: 4px; font-family: var(--body); font-weight: 400; font-size: 12px; letter-spacing: 0; color: var(--grey-2); }

/* Token logos -----------------------------------------------------------
   The token stores its own logo as an ipfs:// CID, so these are the real
   images from chain, not anything we hold. A campaign launched before logos
   were required simply has none, and the slot collapses rather than showing
   a broken image. */
.tok-logo { width: 44px; height: 44px; border-radius: 12px; object-fit: cover;
            background: var(--wash); flex: none; }
.tok-logo.none { display: none; }
.hp-logo { width: 52px; height: 52px; border-radius: 14px; object-fit: cover;
           display: block; margin-bottom: 14px; background: var(--card-2); }
.camp-id { display: flex; align-items: center; gap: 18px; }
.camp-logo { width: 72px; height: 72px; border-radius: 18px; object-fit: cover;
             background: var(--wash); flex: none; }
@media (max-width: 620px) {
  .camp-logo { width: 56px; height: 56px; border-radius: 14px; }
}

/* The token chart is an embed when no candles exist to draw from — see the
   comment in app.js.

   The embed honours theme=light, so the panel stays white and only clips the
   iframe to the wrap's radius. An earlier version painted it near-black after
   one render came back dark; that was the theme param not having applied yet,
   and the dark panel then showed as a flash before the chart painted. */
.chart:has(.chart-embed) {
  padding: 0;
  background: var(--white);
  border-radius: 0 0 19px 19px;
  overflow: hidden;
  height: auto;
}
.chart-embed { width: 100%; height: 380px; border: 0; display: block; }
@media (max-width: 620px) { .chart-embed { height: 320px; } }
