/* BBMA Tracker landing page. A charcoal page close to the app's own dark UI, so its screenshots sit without
   frames. Sections alternate between the page tone and a lighter grey band. */
:root {
  --bg: #11151d;
  --band: #181d28;
  --surface: #1c2230;
  --surface-2: #252c3b;
  --text: #e9edf3;
  --muted: #9aa3b2;
  --accent: #5a9bfc;
  --accent-hover: #7cb0fd;
  --on-accent: #0a0d14;
  --sell: #f0616d;
  --buy: #3fcf8e;
  --warn: #e3b341;

  --display: "Satoshi", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --sans: "Satoshi", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Five type steps. */
  --t-display: clamp(40px, 5.4vw, 96px);
  --t-head: clamp(36px, 4.4vw, 68px);
  --t-state: clamp(22px, 2vw, 30px);
  --t-body: clamp(17px, 1rem + 0.2vw, 19px);
  --t-small: 14px;

  --m: clamp(20px, 4vw, 64px);
  --gap: clamp(112px, 12vw, 200px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 var(--t-body)/1.6 var(--sans);
}
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 900; letter-spacing: -0.035em; line-height: 1; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
picture, img { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
b { font-weight: 500; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--on-accent); }

/* ---------- controls ---------- */
.btn {
  display: inline-block;
  padding: 0.95em 1.6em;
  border: 0;
  border-radius: 4px;
  background: var(--accent);
  color: var(--on-accent);
  font-family: inherit;
  font-size: var(--t-body);
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background-color 0.2s;
}
.btn:hover { transform: translateY(-2px); background: var(--accent-hover); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn[disabled] { opacity: 0.7; cursor: wait; transform: none; }
.text-link, .bar-link, .bar-nav a, .foot a {
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 5px;
  transition: text-underline-offset 0.2s var(--ease), color 0.2s;
}
.text-link:hover, .bar-link:hover, .bar-nav a:hover, .foot a:hover { text-underline-offset: 8px; }

/* ---------- top bar ---------- */
.bar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 32px;
  height: 64px;
  padding: 0 var(--m);
  background: var(--bg);
  font-size: 15px;
}
.bar-name { margin-right: auto; font-weight: 500; text-decoration: none; }
.bar-nav { display: flex; gap: 28px; }
.bar-nav a { color: var(--muted); text-decoration-color: transparent; }
.bar-nav a:hover { color: var(--text); text-decoration-color: currentColor; }

/* ---------- hero ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 48px var(--m);
  align-items: end;
  padding: clamp(32px, 4vw, 64px) var(--m) clamp(64px, 7vw, 112px);
}
.hero h1 { font-size: var(--t-display); line-height: 0.92; }
.hero-sub { max-width: 32em; }
.hero-act { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 28px; }
.hero-shot { grid-column: 1 / -1; margin-top: clamp(8px, 2vw, 32px); }

/* The screenshots are the app's own dark UI, so a light edge keeps them from melting into the page. */
.shot { width: 100%; border: 1px solid rgb(255 255 255 / 0.14); border-radius: 10px; background: var(--surface); } /* taste-skill-ignore: owner wants the screenshots outlined so they stand off the dark page */
figcaption { margin-top: 14px; color: var(--muted); font-size: var(--t-small); line-height: 1.5; }

/* ---------- problem and fix lists ---------- */
.list-section { padding: var(--gap) var(--m); }
.list-section h2 { font-size: var(--t-head); max-width: 14em; }
.marks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 3vw, 44px) var(--m);
  margin-top: clamp(40px, 5vw, 72px);
  max-width: 1240px;
}
.marks li { position: relative; padding-left: 2em; line-height: 1.55; }
.marks li::before { position: absolute; left: 0; top: 0; font-weight: 500; }
.marks--cross li::before { content: "\2715"; color: var(--sell); }
.marks--check li::before { content: "\2713"; color: var(--buy); }
.marks b { display: block; margin-bottom: 4px; font-size: var(--t-state); font-weight: 700; line-height: 1.25; }
.marks--cross li { font-size: var(--t-state); font-weight: 500; line-height: 1.3; }
#masalah, .statement, .cycle, .pairshot--band, .who, .cta { background: var(--band); }

/* ---------- the positioning line ---------- */
.statement { padding: 0 var(--m) var(--gap); }
.statement p { max-width: 22em; font-size: clamp(26px, 2.6vw, 36px); font-weight: 700; line-height: 1.25; letter-spacing: -0.02em; }

/* ---------- lifecycle ring ---------- */
.cycle {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  grid-template-areas: "head fig" "intro fig" "list fig";
  grid-template-rows: auto auto 1fr;
  gap: 0 var(--m);
  padding: var(--gap) var(--m);
}
.cycle-text { display: contents; }
.cycle h2 { grid-area: head; font-size: var(--t-head); }
.cycle-intro { grid-area: intro; margin-top: 24px; max-width: 34em; }
.stages { grid-area: list; margin-top: 32px; display: grid; gap: 4px; align-content: start; }
.stage {
  display: block;
  width: 100%;
  padding: 12px 16px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.25s, transform 0.25s var(--ease);
}
.stage:hover { background: var(--surface); }
.stage.is-active { background: var(--surface-2); transform: translateX(8px); }
.stage b { font-weight: 500; }
.stage--form b { color: var(--warn); }
.stage--confirm b { color: var(--accent); }
.stage--trend b { color: var(--buy); }
.cycle-figure { grid-area: fig; align-self: center; }
.ring { display: block; width: 100%; max-width: 680px; margin: 0 auto; height: auto; overflow: visible; }
.ring text { font-family: var(--sans); }
.ring-arc { fill: none; stroke: #4a5366; stroke-width: 4; stroke-linecap: round; }
.ring-head { fill: #4a5366; }
.ring-centre { fill: var(--text); font-size: 40px; font-weight: 900; letter-spacing: -0.03em; }
.ring-centre-sub { fill: var(--muted); font-size: 20px; }
.ring-node { cursor: pointer; transform-box: fill-box; transform-origin: center; transition: transform 0.3s var(--ease); }
.ring-node rect { stroke: var(--text); stroke-width: 0; transition: stroke-width 0.2s; }
.ring-node text { fill: var(--on-accent); font-size: 24px; font-weight: 500; }
.ring-node--form rect { fill: var(--warn); }
.ring-node--confirm rect { fill: var(--accent); }
.ring-node--trend rect { fill: var(--buy); }
.ring-node.is-active { transform: scale(1.12); }
.ring-node.is-active rect { stroke-width: 4; }
.legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; margin-top: 24px; }
.key { display: inline-flex; align-items: center; gap: 8px; }
.key::before { content: ""; width: 12px; height: 12px; border-radius: 999px; }
.key--form::before { background: var(--warn); }
.key--confirm::before { background: var(--accent); }
.key--trend::before { background: var(--buy); }

/* ---------- one card, read line by line ---------- */
.proof {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--m);
  padding: var(--gap) var(--m);
}
.proof-shot { width: min(100%, 440px); }
.proof-text { position: sticky; top: 112px; align-self: start; }
.proof h2 { font-size: var(--t-head); }
.proof-intro { margin-top: 24px; }
.readout { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 24px 40px; margin: 48px 0 0; max-width: 40em; }
.readout dt { font-weight: 500; color: var(--accent); }
.readout dd { margin: 0; }

/* ---------- chart, then watchlist: one section each, image and text side by side ---------- */
.pairshot {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--m);
  align-items: center;
  padding: var(--gap) var(--m);
}
.pairshot--flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.pairshot--flip .pairshot-shot { order: 2; }
.pairshot-shot { width: min(100%, 480px); margin: 0; justify-self: center; }
.pairshot-text h2 { font-size: var(--t-head); }
.pairshot-text p { margin-top: 24px; max-width: 32em; }

/* ---------- how it works: heading beside the steps ---------- */
.how {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 40px var(--m);
  padding: var(--gap) var(--m);
}
.how h2 { font-size: var(--t-head); }
.steps { display: grid; gap: clamp(32px, 3.4vw, 48px); }
.steps b { display: block; margin-bottom: 4px; font-size: var(--t-state); font-weight: 700; line-height: 1.25; }

/* ---------- who it's for ---------- */
.who {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  grid-template-areas: "head shot" "lead shot" "note shot";
  grid-template-rows: auto auto 1fr;
  gap: 0 var(--m);
  padding: var(--gap) var(--m);
}
.who h2 { grid-area: head; font-size: var(--t-head); }
.who-lead { grid-area: lead; margin-top: 32px; font-size: var(--t-state); font-weight: 500; line-height: 1.3; }
.who-note { grid-area: note; margin-top: 28px; max-width: 34em; }
.who-shot { grid-area: shot; align-self: center; }

/* ---------- FAQ: large questions, answers beside ---------- */
.faq {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 1fr) minmax(0, 5fr);
  row-gap: clamp(48px, 5vw, 80px);
  padding: var(--gap) var(--m);
}
.faq-head { grid-column: 1 / -1; font-size: var(--t-head); color: var(--muted); }
.qa { display: contents; }
.qa h3 { grid-column: 1; font-size: clamp(26px, 2.6vw, 40px); line-height: 1.1; }
.qa p { grid-column: 3; max-width: 40ch; }

/* ---------- closing call to action ---------- */
.cta { padding: var(--gap) var(--m); }
.cta h2 { font-size: var(--t-display); }
.cta-sub { margin-top: 20px; max-width: 34em; color: var(--muted); }
.cta-act { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: clamp(36px, 4vw, 56px); }

/* ---------- risk note ---------- */
.disclaimer { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 1fr) minmax(0, 5fr); padding: var(--gap) var(--m); }
.disclaimer h2 { grid-column: 1; font-size: var(--t-state); font-weight: 700; color: var(--warn); }
.disclaimer p { grid-column: 3; max-width: 40ch; color: var(--muted); }

/* ---------- footer: one quiet line ---------- */
.foot {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: baseline;
  gap: 16px 24px;
  padding: 48px var(--m) 30px;
  color: var(--muted);
  font-size: 15px;
}
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot-links a { color: var(--text); }
.foot-year { justify-self: end; }

/* ---------- tablet & phone ---------- */
@media (max-width: 960px) {
  .bar-nav { display: none; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .hero-shot, .proof-shot, .pairshot-shot, .who-shot { justify-self: center; margin-inline: auto; }
  .hero-shot { width: min(100%, 311px); }
  .proof-shot, .pairshot-shot { width: min(100%, 400px); }
  .who-shot { width: min(100%, 560px); margin-top: 40px; }
  .marks, .pairshot, .how, .proof { grid-template-columns: minmax(0, 1fr); }
  .pairshot-shot, .pairshot--flip .pairshot-shot { order: 2; }
  .cycle { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "intro" "fig" "list"; grid-template-rows: none; }
  .cycle-figure { margin-top: 40px; }
  .proof-text { position: static; order: -1; }
  .who { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "lead" "note" "shot"; grid-template-rows: none; }
  .faq, .disclaimer { grid-template-columns: minmax(0, 1fr); row-gap: 0; }
  .faq-head { margin-bottom: 24px; }
  .qa h3, .qa p, .disclaimer h2, .disclaimer p { grid-column: 1; }
  .qa h3 { margin-top: 48px; font-size: 24px; }
  .qa p, .disclaimer p { margin-top: 12px; }
  .cta-act .btn { width: 100%; text-align: center; }
  .foot { grid-template-columns: minmax(0, 1fr); gap: 8px; padding-top: 40px; padding-bottom: 24px; font-size: 14px; }
  .foot-year { justify-self: start; }
}
@media (max-width: 640px) {
  .hero h1 { font-size: 38px; }
  .hero-act .btn { width: 100%; text-align: center; }
  .proof-shot, .pairshot-shot, .who-shot { width: min(100%, 320px); }
  .readout { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .readout dd { margin-bottom: 16px; }
  .stage.is-active { transform: none; }
  .statement p { font-size: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .stage, .ring-node { transition: none; }
  .btn:hover { transform: none; }
}


/* ---------- legal drafts ---------- */
.legal { max-width: 46em; padding: clamp(32px, 4vw, 64px) var(--m) var(--gap); }
.legal h1 { font-size: var(--t-head); }
.legal h2 { margin-top: 40px; font-size: var(--t-state); font-weight: 700; letter-spacing: -0.02em; }
.legal p { margin-top: 14px; }
.legal ul { margin-top: 14px; padding-left: 1.4em; list-style: disc; }
.legal li + li { margin-top: 6px; }
.legal-meta, .legal-back { color: var(--muted); }

