/* ===========================================================================
   cuak.css — Cuak — the emotional-fintech case study

   Only this page uses any of it: the fact strip, the four states, the level ladder, the claim tags,
   the stack grid and the roadmap steps.
   It is here rather than in the page because 409 lines of CSS inside the
   markup means scrolling past the styles to reach the HTML.

   Loads last, in the slot its <style> had, so it still overrides the
   shared sheets.
   =========================================================================== */

.tldr {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-12);
  margin-bottom: 0
}

.tldr-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px var(--s-16);
  background: var(--bg-card);
  border: 1px solid var(--stroke-light);
  border-radius: var(--r);
  font-size: 13px
}


.tldr-item.highlight {
  background: var(--accent-soft);
  border-color: rgba(79, 124, 99, .35)
}

.tldr-item.highlight span { color: var(--brand-cuak-text); font-weight: 600 }

.section:last-child { border-bottom: none }

.section-text:last-child { margin-bottom: 0 }

/* TWO-COL GRID */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-20);
  margin-top: var(--s-32)}

@media (max-width: 640px) { .two-col { grid-template-columns: 1fr } }

/* STATES GRID */
.states-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-16);
  margin-top: var(--s-32)}

.state-card--wide { grid-column: span 2 }

@media (max-width: 480px) {
  .states-grid { grid-template-columns: 1fr }
  /* a span of 2 in a one-column grid creates an implicit second column */
  .state-card--wide { grid-column: auto }
}

.state-card {
  padding: var(--s-20) var(--s-24);
  background: var(--bg-card);
  border: 1px solid var(--stroke-light);
  border-radius: var(--r);
  display: flex;
  align-items: center;
  gap: var(--s-16)}

.state-emoji {
  font-size: 28px;
  flex-shrink: 0
}
.state-img {
  width: 88px;
  height: 88px;
  object-fit: contain;
  flex-shrink: 0
}
.level-img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  flex-shrink: 0
}
.levels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--s-16);
  margin-top: var(--s-24)}
.level-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--r-lg);
  padding: var(--s-28) var(--s-20) var(--s-24);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--s-16)}
.level-card img {
  width: 120px;
  height: 120px;
  object-fit: contain
}
.level-card-body { display:flex;flex-direction:column;gap: var(--s-4)}
.level-card-name { font-size:15px;font-weight:600;color:var(--text-primary) }
.level-card-xp { font-size:12px;font-weight:600;color:var(--brand-cuak-text);letter-spacing:.04em }
.level-card-desc { font-size:13px;color:var(--text-muted);margin-top:2px }

.state-name {
  font-weight: 600;
  font-size: 15px;
  margin-bottom: var(--s-4)}

.state-desc {
  font-size: 13px;
  color: var(--text-muted)
}

/* STACK */
.stack-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: var(--s-24)}

.stack-pill {
  padding: var(--s-8) var(--s-16);
  background: var(--bg-card);
  border: 1px solid var(--stroke-light);
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 500
}

/* NEXT STEPS */
/* One inline code chip for the dark surface. paper.css carries the ink
   version for a sheet; between them every <code> on the page is styled
   without a single inline rule. */
code {
  font-family: var(--mono);
  font-size: 12.5px;
  padding: 2px 6px;
  border-radius: var(--r-sm);
  color: var(--brand-cuak-text);
  background: rgba(79, 124, 99, .12);
  white-space: nowrap;
}

/* --- STACK ------------------------------------------------------
   Six rows of dot-separated technology names is a table pretending to
   be cards: nobody reads 90 characters of proper nouns, they scan for
   one they know. Each name becomes a chip so the eye can land, and the
   one row that is the point of the section — the Belvo integration —
   is lifted out above the grid instead of hiding in row five. */
.stack-lead {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: var(--s-28);
  padding: 18px 22px;
  background: var(--accent-soft);
  border: 1px solid rgba(79, 124, 99, .35);
  border-radius: var(--r-lg);
  font-size: 14px;
}
.stack-lead .claim { margin-bottom: 0; }

.stack {
  display: grid;
  gap: 1px;
  margin-top: var(--s-12);
  background: var(--stroke);
  border: 1px solid var(--stroke);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.stack-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: var(--s-16);
  align-items: baseline;
  padding: 14px var(--s-20);
  background: var(--bg-card);
}
@media (max-width: 620px) {
  .stack-row { grid-template-columns: 1fr; gap: 10px; }
}
.stack-label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.stack-chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.stack-chips li {
  padding: 3px 9px;
  border: 1px solid var(--stroke);
  border-radius: var(--r-sm);
  font-size: 12.5px;
  color: var(--text-muted);
  white-space: nowrap;
}
.stack-chips li.is-key {
  border-color: rgba(79, 124, 99, .4);
  color: var(--brand-cuak-text);
}

/* --- STEPS ------------------------------------------------------
   Three next steps in order, each one line. The fourth item used to
   live here too and ran five times longer than its neighbours, which
   is how you can tell it was not a next step at all. */
.steps {
  list-style: none;
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-16);
  margin-top: var(--s-28);
}
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.steps li {
  counter-increment: step;
  padding: var(--s-20);
  background: var(--bg-card);
  border: 1px solid var(--stroke);
  border-radius: var(--r-lg);
  box-shadow: inset 0 0 70px rgba(0, 0, 0, .32);
}
.steps li::before {
  content: "0" counter(step);
  display: block;
  margin-bottom: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--brand-cuak-text);
}
.steps h3 {
  font-size: 14.5px;
  font-weight: 600;
  margin-bottom: 7px;
  color: var(--text);
}
.steps p { font-size: 13.5px; line-height: 1.6; color: var(--text-muted); }

.cta-btn:hover { opacity: 0.85 }

/* SCREEN MOCKUPS */
.mockup-frame {
  margin-top: var(--s-40);
  width: 100%;
  border-radius: var(--rl);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--stroke-light);
}

.mockup-frame img {
  width: 100%;
  height: auto;
  display: block;
}

.mockup-placeholder {
  min-height: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--text-faint);
  font-size: 13px;
  text-align: center;
  padding: var(--s-40);
  border: 2px dashed rgba(255,255,255,.08);
  border-radius: var(--rl);
}

.mockup-placeholder span { font-size: 28px }

.mockup-phone-row {
  display: flex;
  gap: var(--s-24);
  justify-content: center;
  margin-top: var(--s-40);
  flex-wrap: wrap;
}

.mockup-phone {
  width: 220px;
  flex-shrink: 0;
  border-radius: 28px;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--stroke-light);
  box-shadow: 0 24px 60px rgba(0,0,0,.5);
}

.mockup-phone img { width: 100%; height: auto; display: block; }

.mockup-phone-placeholder {
  width: 220px;
  height: 420px;
  border-radius: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--s-8);
  color: var(--text-faint);
  font-size: 12px;
  text-align: center;
  border: 2px dashed rgba(255,255,255,.08);
  background: var(--bg-card);
  padding: var(--s-20);
}

.mockup-phone-placeholder span { font-size: 24px }

  


/* --- CLAIM TAGS ---------------------------------------------------
   Every headline number on this page says, in its own words, whether
   it was measured, aimed at, or projected. A reader who cannot tell
   the three apart has to assume the worst about all of them. Only
   measured numbers get the accent; the rest stay neutral on purpose. */
.claim {
  display: inline-block;
  margin-bottom: 10px;
  padding: 3px 9px;
  border: 1px solid var(--stroke);
  border-radius: var(--r-pill);
  font-family: var(--mono);
  font-size: 10px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}
/* On the narrowest phones the tag is wider than its own column. */
@media (max-width: 400px) {
  .claim { white-space: normal; }
}
.claim--measured {
  border-color: rgba(167, 139, 250, .38);
  color: var(--accent-text);
}
/* The same tag on paper. Both colours above are tuned for a dark card
   and fall under AA on this stock, so the ink versions take over. */
.note-lg .claim {
  border-color: rgba(34, 29, 51, .22);
  color: rgba(34, 29, 51, .72);
}
.note-lg .claim--measured {
  border-color: rgba(63, 42, 134, .4);
  color: #3f2a86;
}

/* --- PULL QUOTE --------------------------------------------------
   The tester quote used to carry a 3px green rule down its left edge.
   It was the only one on the page, and this file's own tokens say a
   colour that appears once is a mistake rather than an accent. The
   quote earns its weight from size and full-strength ink instead —
   no rule, no ornament, nothing the rest of the page does not use. */
.quote-card {
  padding: 26px var(--s-28) 22px;
  background: var(--bg-card);
  border: 1px solid var(--stroke-light);
  border-radius: var(--r-lg);
}
.quote-card p {
  font-size: 17px; line-height: 1.55;
  color: var(--text);
}
.quote-card cite {
  display: block;
  margin-top: 10px;
  font-style: normal;
  font-size: 12px; letter-spacing: .04em;
  color: var(--text-muted);
}

/* --- SHARED CARD LANGUAGE -------------------------------------
   Matches the home: panels are sunken and rounded, statements sit
   on paper, and imagery is mounted in a well instead of running to
   the card edge. Last in this page's own stylesheet on purpose —
   these have to beat the rules above without a specificity war. */
.tldr-item, .state-card, .level-card, .quote-card {
  border-radius: var(--r-lg);
  border: 1px solid var(--stroke);
  box-shadow: inset 0 0 70px rgba(0, 0, 0, 0.32);
}
.mockup-frame {
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), inset 0 0 70px rgba(0, 0, 0, 0.38);
}
  
