/* ============================================================
   THE MONEY PAGE · Playbook #566
   Reusable launch-page module. All theme comes from --accent,
   injected at runtime from content.json.
   ============================================================ */

:root {
  --ink: #16171D;
  --ink-soft: #23252F;
  --paper: #FFFFFF;
  --paper-2: #F4F6F9;
  --line: #E5E9EF;
  --muted: #59616E;
  --text: #1B1D24;

  --accent: #FF5B1E;          /* overwritten by JS from content.json */
  --accent-hi: #FFC03A;       /* marker highlight */
  --ok: var(--accent);

  --maxw: 640px;
  --pad: 20px;
  --radius: 18px;
  --shadow: 0 10px 30px -12px rgba(20, 21, 26, 0.22);

  --font-display: "Bricolage Grotesque", "Arial Black", system-ui, sans-serif;
  --font-body: "Instrument Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

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

.section { padding: 54px var(--pad); }
main > section, main > footer { width: 100%; }
.wrap { max-width: var(--maxw); margin: 0 auto; }

/* ---------- Marker highlight (the signature) ---------- */
.mark {
  position: relative;
  white-space: nowrap;
  color: var(--ink);
  padding: 0 .12em;
}
.mark::before {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: .04em;
  height: .82em;
  background: var(--accent-hi);
  border-radius: .28em;
  transform: rotate(-1.2deg) scaleX(0);
  transform-origin: left center;
  z-index: -1;
  animation: markIn .55s cubic-bezier(.2,.8,.2,1) forwards;
}
.mark--accent::before { background: var(--accent); opacity: .16; }
@keyframes markIn { to { transform: rotate(-1.2deg) scaleX(1); } }

/* ---------- Access bar ---------- */
.accessbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 12px;
  padding: 10px var(--pad);
  padding-top: max(10px, env(safe-area-inset-top));
  background: var(--ink);
  transition: box-shadow .2s ease;
}
.accessbar.is-stuck { box-shadow: 0 6px 20px -8px rgba(0,0,0,.5); }
.brand {
  display: flex; align-items: center; gap: 10px;
  background: none; border: 0; padding: 4px; margin: 0;
  color: #fff; font-family: var(--font-display); font-weight: 800;
  font-size: 18px; letter-spacing: -.01em; cursor: pointer;
  flex: 0 0 auto;
}
.brand-mark {
  width: 22px; height: 22px; border-radius: 6px;
  background: var(--accent);
  box-shadow: inset 0 0 0 3px rgba(255,255,255,.9);
  transform: rotate(-6deg);
  flex: 0 0 auto;
}
.brand-name { white-space: nowrap; }

.cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent-hi); color: var(--ink);
  font-family: var(--font-display); font-weight: 800;
  font-size: 15px; letter-spacing: -.01em;
  padding: 11px 16px; border-radius: 999px;
  border: 0; cursor: pointer; white-space: nowrap;
  box-shadow: 0 6px 16px -6px rgba(255, 176, 32, .7);
  transition: transform .12s ease, filter .12s ease;
}
.cta:hover { transform: translateY(-1px); filter: brightness(1.03); }
.cta:active { transform: translateY(0); }
.cta--bar { margin-left: auto; padding: 9px 14px; font-size: 14px; }
.cta--big { font-size: 19px; padding: 16px 26px; }

/* ---------- Hero ---------- */
.hero { padding: 40px var(--pad) 30px; text-align: center; }
.kicker {
  display: inline-block; font-family: var(--font-body); font-weight: 600;
  font-size: 13px; letter-spacing: .04em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 18px;
}
.hero h1 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(34px, 9vw, 52px); line-height: 1.02;
  letter-spacing: -.02em; color: var(--ink); margin: 0 auto 22px;
  max-width: 12ch;
}
.hero .sub { color: var(--muted); font-size: 18px; max-width: 34ch; margin: 0 auto 26px; }

/* ---------- Mechanism box ---------- */
.mechanism { padding: 8px var(--pad) 8px; }
.mechbox {
  max-width: var(--maxw); margin: 0 auto;
  background: var(--ink);
  border: 1.5px solid var(--accent);
  border-radius: 22px;
  padding: 30px 26px;
  text-align: center;
  box-shadow: 0 0 0 6px rgba(255,91,30,.06), var(--shadow);
}
.mechbox p {
  margin: 0; color: var(--accent-hi);
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(17px, 4.6vw, 22px); line-height: 1.28;
  letter-spacing: .01em; text-transform: uppercase;
}

/* ---------- Use-case flow ---------- */
.usecase { padding: 34px var(--pad); text-align: center; }
.usecase p {
  max-width: 22ch; margin: 0 auto;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(24px, 6.5vw, 32px); line-height: 1.18;
  letter-spacing: -.01em; color: var(--ink);
}
.usecase .kw { color: var(--accent); }

/* ---------- Section heads ---------- */
.section-head { text-align: center; max-width: var(--maxw); margin: 0 auto 30px; }
.section-head h2 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(27px, 7vw, 38px); line-height: 1.06;
  letter-spacing: -.02em; color: var(--ink); margin: 0 0 10px;
}
.section-head p { color: var(--muted); margin: 0; font-size: 16px; }

/* ---------- Samples grid ---------- */
.samples { background: var(--paper-2); }
.grid {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
}
.card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px 16px 20px;
  display: flex; flex-direction: column; gap: 10px;
}
.card .swatch { width: 34px; height: 34px; border-radius: 9px; }
.pill {
  align-self: flex-start; font-size: 12px; font-weight: 600;
  padding: 5px 10px; border-radius: 999px; color: var(--ink-soft);
}
.card h3 { font-family: var(--font-display); font-weight: 700; font-size: 18px; line-height: 1.12; margin: 2px 0 0; color: var(--ink); }
.card p { margin: 0; font-size: 14.5px; color: var(--muted); line-height: 1.45; }

/* ---------- Feature checklist ---------- */
.checklist { max-width: var(--maxw); margin: 0 auto; display: flex; flex-direction: column; gap: 26px; }
.feat { display: grid; grid-template-columns: 34px 1fr; gap: 14px; align-items: start;
  opacity: 0; transform: translateY(14px); }
.feat.in { animation: featIn .5s ease forwards; }
@keyframes featIn { to { opacity: 1; transform: none; } }
.feat .tick {
  width: 34px; height: 34px; border-radius: 999px;
  background: var(--accent); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 17px;
  box-shadow: 0 6px 14px -6px rgba(255,91,30,.7);
  flex: 0 0 auto;
}
.feat h3 { font-family: var(--font-display); font-weight: 700; font-size: 20px; line-height: 1.14; margin: 3px 0 6px; color: var(--ink); }
.feat p { margin: 0; color: var(--muted); font-size: 15.5px; line-height: 1.5; }

/* ---------- Urgency (honest) ---------- */
.urgency { background: var(--ink); color: #fff; text-align: center; }
.urgency .section-head h2 { color: #fff; }
.urgency .u-body { max-width: 40ch; margin: 0 auto 22px; color: rgba(255,255,255,.82); }
.seats {
  display: inline-flex; align-items: baseline; gap: 10px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  border-radius: 16px; padding: 14px 22px; margin: 0 auto 24px;
}
.seats b { font-family: var(--font-display); font-weight: 800; font-size: 40px; color: var(--accent-hi); line-height: 1; }
.seats span { color: rgba(255,255,255,.7); font-size: 14px; }
.returning { color: var(--accent-hi); font-weight: 600; font-size: 15px; margin: 0 0 20px; }

/* ---------- Founder ---------- */
.founder { text-align: center; }
.founder .f-body { max-width: 42ch; margin: 0 auto 14px; color: var(--muted); }
.founder .sig { font-family: var(--font-display); font-weight: 700; color: var(--ink); }

/* ---------- Businesses ---------- */
.businesses { background: var(--paper-2); }
.biz-list { max-width: var(--maxw); margin: 0 auto 22px; display: flex; flex-direction: column; gap: 12px; }
.biz {
  display: block; background: var(--paper); border: 1px solid var(--line);
  border-radius: 14px; padding: 16px 18px; color: inherit;
  transition: border-color .15s ease, transform .12s ease;
}
.biz:hover { border-color: var(--accent); transform: translateY(-1px); }
.biz .biz-name { font-family: var(--font-display); font-weight: 700; font-size: 17px; color: var(--ink); display: flex; align-items: center; justify-content: space-between; }
.biz .biz-name .arw { color: var(--accent); }
.biz .biz-line { color: var(--muted); font-size: 14.5px; margin-top: 3px; }
.hub {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  max-width: var(--maxw); margin: 0 auto; text-align: center;
  font-family: var(--font-display); font-weight: 700; color: var(--ink);
}
.hub a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Donations ---------- */
.donations { text-align: center; }
.donations .d-body { max-width: 40ch; margin: 0 auto 20px; color: var(--muted); }
.dons { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; max-width: var(--maxw); margin: 0 auto; }
.don {
  border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px;
  font-size: 14.5px; background: var(--paper);
}
.don b { display: block; font-family: var(--font-display); font-weight: 700; color: var(--ink); font-size: 13px; text-transform: uppercase; letter-spacing: .03em; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: rgba(255,255,255,.85); padding: 46px var(--pad) 60px; }
.footer .wrap { max-width: var(--maxw); margin: 0 auto; }
.quotes { display: flex; flex-direction: column; gap: 16px; margin: 0 0 30px; }
.quote { border-left: 3px solid var(--accent); padding-left: 16px; font-size: 16px; line-height: 1.5; color: rgba(255,255,255,.9); font-style: italic; }
.blessing { text-align: center; font-family: var(--font-display); font-weight: 700; font-size: 19px; color: #fff; margin: 24px 0 10px; line-height: 1.3; }
.karma { text-align: center; color: var(--accent-hi); font-size: 15px; margin: 0 0 26px; }
.foot-meta { text-align: center; color: rgba(255,255,255,.5); font-size: 13px; line-height: 1.7; }
.foot-meta .pub { display: block; margin-top: 4px; }
.edit-flag { color: #ffd27a; font-style: italic; }

/* ---------- Owner badge + modal ---------- */
.ownerbadge {
  position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%);
  z-index: 60; background: var(--accent); color: #fff;
  font-family: var(--font-display); font-weight: 700; font-size: 14px;
  padding: 10px 18px; border-radius: 999px; box-shadow: var(--shadow);
}
.modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center;
  background: rgba(15,16,20,.55); padding: var(--pad); }
.modal-card { background: var(--paper); border-radius: 18px; padding: 24px; width: 100%; max-width: 340px; box-shadow: var(--shadow); }
.modal-card h2 { font-family: var(--font-display); font-weight: 800; margin: 0 0 4px; color: var(--ink); }
.modal-card p { margin: 0 0 14px; color: var(--muted); font-size: 15px; }
.modal-card input { width: 100%; padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 12px; font-size: 18px; font-family: var(--font-body); letter-spacing: .1em; }
.modal-card input:focus { outline: none; border-color: var(--accent); }
.modal-actions { display: flex; gap: 10px; margin-top: 14px; }
.btn-ghost, .btn-solid { flex: 1; padding: 12px; border-radius: 12px; font-family: var(--font-display); font-weight: 700; font-size: 15px; cursor: pointer; border: 1.5px solid var(--line); }
.btn-ghost { background: var(--paper); color: var(--muted); }
.btn-solid { background: var(--accent); color: #fff; border-color: var(--accent); }
.modal-err { color: #c0392b; font-size: 14px; margin: 12px 0 0; }

/* ---------- Focus visibility (a11y floor) ---------- */
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

/* ---------- Larger screens: keep it a phone-width column, just breathe ---------- */
@media (min-width: 680px) {
  .hero { padding-top: 56px; }
  .grid { gap: 18px; }
}
