/* =============================================================
   Boon - For your board (/for-your-board/)
   Ported from V5 (PR #98 text) for R8, Dec 1 2026.
   Depends on /styles.css (tokens, buttons, warm-bg) and
   /case-studies/case-study.css (nav, wrap, end band, footer).
   The hero picture is decomposed UI like the live landing page:
   loose, simplified pieces of the work with made-up names. It is
   not a screen of any app.
   ============================================================= */

.b-body { background: #FBFAF6; }

/* -------- Hero -------- */
.b-hero { padding: 112px 0 56px; }
@media (min-width: 768px) { .b-hero { padding: 160px 0 96px; } }
.b-hero-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 1024px) { .b-hero-grid { grid-template-columns: 1.05fr 1fr; gap: 64px; } }

.b-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px; margin-bottom: 24px;
  background: rgba(255,255,255,0.75);
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 999px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: #2A251F;
}
.b-eyebrow .dot { width: 6px; height: 6px; border-radius: 999px; background: rgb(210,135,72); }

.b-title {
  font-family: 'Fraunces', serif;
  font-optical-sizing: auto;
  font-variation-settings: "opsz" 144, "SOFT" 30;
  font-weight: 400;
  letter-spacing: -0.03em;
  font-size: 42px; line-height: 1.05;
  color: #0F0E0C;
  max-width: 16ch;
  text-wrap: balance;
}
@media (min-width: 640px) { .b-title { font-size: 56px; } }
@media (min-width: 1024px) { .b-title { font-size: 64px; } }
.b-title .italic { font-family: 'Instrument Serif', 'Fraunces', serif; font-style: italic; letter-spacing: -0.01em; }

.b-lead { margin-top: 24px; max-width: 540px; color: #3A352E; font-size: 17px; line-height: 1.6; }
.b-actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.b-terms {
  margin-top: 24px; display: flex; flex-wrap: wrap; gap: 8px 18px;
  font-size: 13.5px; color: #5A544B;
}
.b-terms span { display: inline-flex; align-items: center; gap: 8px; }
.b-terms .tick { width: 6px; height: 6px; border-radius: 999px; background: rgb(210,135,72); flex-shrink: 0; }
.b-terms strong { font-family: 'JetBrains Mono', monospace; font-weight: 500; color: #0F0E0C; }

/* -------- Decomposed picture: board -> funder -> note -------- */
.b-viz { position: relative; display: grid; gap: 14px; max-width: 520px; width: 100%; margin: 0 auto; }
.b-piece {
  background: rgba(255,255,255,0.86);
  border: 1px solid rgba(15,14,12,0.08);
  border-radius: 18px;
  box-shadow: 0 1px 2px rgba(15,14,12,0.04), 0 18px 40px -22px rgba(15,14,12,0.22);
  padding: 16px 18px;
}
.b-piece-k {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase;
  color: #6B655B; margin-bottom: 10px;
  display: flex; justify-content: space-between; gap: 10px;
}
.b-people { list-style: none; display: grid; gap: 8px; }
.b-person { display: flex; align-items: center; gap: 10px; font-size: 14px; color: #2A251F; min-width: 0; }
.b-av {
  width: 28px; height: 28px; border-radius: 999px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 600; color: #6B3E1C; background: rgb(255,223,188);
}
.b-person .who { flex: 1; min-width: 0; }
.b-person .role { color: #6B655B; font-size: 12.5px; }
.b-chip {
  flex-shrink: 0;
  font-family: 'JetBrains Mono', monospace; font-size: 10.5px; letter-spacing: 0.06em;
  padding: 3px 8px; border-radius: 999px;
  background: #F3EFE7; color: #5A544B;
}
.b-chip.hot { background: #0F0E0C; color: #FBF7F0; }
.b-person.is-match .b-av { background: #0F0E0C; color: #FBF7F0; }

.b-link {
  display: flex; align-items: center; gap: 10px;
  padding: 0 18px;
  font-family: 'JetBrains Mono', monospace; font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase;
  color: #6B655B;
}
.b-link::before, .b-link::after { content: ""; height: 1px; flex: 1; background: repeating-linear-gradient(90deg, rgba(15,14,12,0.22) 0 4px, transparent 4px 8px); }

.b-funder { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.b-funder-name { font-family: 'Fraunces', serif; font-size: 18px; letter-spacing: -0.01em; color: #0F0E0C; }
.b-funder-fit { margin-top: 4px; font-size: 13px; color: #5A544B; }
.b-rank {
  font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.08em;
  padding: 5px 10px; border-radius: 999px; background: rgb(255,245,230); color: rgb(142,82,40);
  border: 1px solid rgb(245,196,148);
}

.b-note p { font-size: 14px; line-height: 1.55; color: #2A251F; }
.b-note p + p { margin-top: 8px; }
.b-note-foot {
  margin-top: 12px; padding-top: 10px; border-top: 1px solid rgba(15,14,12,0.08);
  display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12.5px; color: #5A544B;
}
.b-note-foot span { display: inline-flex; align-items: center; gap: 6px; }
.b-note-foot .dot { width: 6px; height: 6px; border-radius: 999px; background: #3E8E5A; }
.b-viz-cap { font-size: 12px; color: #6B655B; text-align: center; }

@media (min-width: 1024px) {
  .b-viz .b-piece:nth-of-type(1) { margin-right: 56px; }
  .b-viz .b-piece:nth-of-type(2) { margin-left: 40px; margin-right: 16px; }
  .b-viz .b-piece:nth-of-type(3) { margin-left: 72px; }
}

/* Gentle entrance, once. Off when the reader asks for less motion. */
@media (prefers-reduced-motion: no-preference) {
  .b-viz > * { animation: b-rise .7s cubic-bezier(0.22, 1, 0.36, 1) both; }
  .b-viz > *:nth-child(2) { animation-delay: .15s; }
  .b-viz > *:nth-child(3) { animation-delay: .3s; }
  .b-viz > *:nth-child(4) { animation-delay: .45s; }
  .b-viz > *:nth-child(5) { animation-delay: .6s; }
  .b-viz > *:nth-child(6) { animation-delay: .75s; }
  @keyframes b-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
}

/* -------- Sections -------- */
.b-section { padding: 72px 0; border-top: 1px solid rgba(15,14,12,0.06); }
@media (min-width: 768px) { .b-section { padding: 104px 0; } }
.b-head { text-align: center; max-width: 760px; margin: 0 auto 48px; }
.b-head .section-eyebrow { margin-bottom: 20px; }
.b-h2 {
  font-family: 'Fraunces', serif;
  font-variation-settings: "opsz" 144, "SOFT" 30;
  font-weight: 400; letter-spacing: -0.025em;
  font-size: 36px; line-height: 1.08; color: #0F0E0C;
  text-wrap: balance;
}
@media (min-width: 768px) { .b-h2 { font-size: 48px; } }
.b-h2 .tone { color: #8A8378; }

.b-steps { list-style: none; display: grid; gap: 16px; }
@media (min-width: 900px) { .b-steps { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.b-step {
  background: #fff; border: 1px solid rgba(15,14,12,0.08); border-radius: 20px;
  padding: 24px; box-shadow: 0 1px 2px rgba(15,14,12,0.03);
}
.b-step-n { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: #6B655B; letter-spacing: 0.1em; }
.b-step h3 { margin-top: 14px; font-size: 19px; font-weight: 500; color: #0F0E0C; letter-spacing: -0.01em; }
.b-step p { margin-top: 8px; font-size: 15px; line-height: 1.6; color: #5A544B; }

.b-see { display: grid; gap: 20px; }
@media (min-width: 960px) { .b-see { grid-template-columns: 1fr 1.25fr; align-items: stretch; } }
.b-card {
  background: #fff; border: 1px solid rgba(15,14,12,0.08); border-radius: 22px;
  padding: 26px; display: flex; flex-direction: column; gap: 10px; min-width: 0;
}
.b-card h3 { font-family: 'Fraunces', serif; font-weight: 400; font-size: 26px; letter-spacing: -0.02em; color: #0F0E0C; }
.b-card > p { font-size: 15px; line-height: 1.6; color: #5A544B; }
.b-card-actions { margin-top: auto; padding-top: 14px; display: flex; flex-wrap: wrap; gap: 10px; }
.b-card-actions .btn-dark, .b-card-actions .btn-light { padding: 11px 18px; font-size: 14px; }
.b-card-actions .btn-light { border-color: rgba(15,14,12,0.12); background: #fff; cursor: pointer; font-family: inherit; }
.b-copied { font-size: 13px; color: #2F7047; align-self: center; min-height: 1em; }

/* Plan pieces: three loose rows, made up */
.b-plan { list-style: none; display: grid; gap: 8px; margin-top: 6px; }
.b-plan li {
  display: flex; align-items: center; gap: 10px; justify-content: space-between;
  padding: 10px 12px; border-radius: 12px; background: #FBFAF6; border: 1px solid rgba(15,14,12,0.06);
  font-size: 13.5px; color: #2A251F;
}
.b-plan li .n { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: #6B655B; width: 18px; flex-shrink: 0; }
.b-plan li .what { flex: 1; min-width: 0; }

/* Packet preview: a sheet of paper */
.b-sheet {
  margin-top: 6px; background: #FFFEFB; border-radius: 12px;
  box-shadow: inset 0 0 0 1px rgba(15,14,12,0.08), 0 14px 30px -22px rgba(15,14,12,0.3);
  padding: 20px 20px 12px;
}
.b-sheet-h { font-family: 'Fraunces', serif; font-size: 19px; line-height: 1.2; letter-spacing: -0.015em; color: #0F0E0C; }
.b-sheet ol { list-style: none; margin-top: 12px; border-top: 1px solid rgba(15,14,12,0.08); counter-reset: s; }
.b-sheet li {
  counter-increment: s; display: grid; grid-template-columns: 22px 1fr; gap: 6px;
  padding: 8px 0; border-bottom: 1px solid rgba(15,14,12,0.06); font-size: 13px; color: #2A251F;
}
.b-sheet li:last-child { border-bottom: 0; }
.b-sheet li::before { content: counter(s); font-family: 'JetBrains Mono', monospace; font-size: 11px; color: rgb(210,135,72); padding-top: 1px; }

/* -------- Questions -------- */
.b-faq-grid { display: grid; gap: 32px; }
@media (min-width: 960px) { .b-faq-grid { grid-template-columns: 1fr 1.6fr; gap: 64px; } }
.b-faq-grid .b-h2 { text-align: left; }
.b-faq-list { border-top: 1px solid rgba(15,14,12,0.1); }
.b-faq-item { border-bottom: 1px solid rgba(15,14,12,0.1); }
.b-faq-item summary {
  list-style: none; cursor: pointer; padding: 20px 0;
  display: flex; justify-content: space-between; gap: 16px; align-items: flex-start;
  font-size: 17px; font-weight: 500; color: #0F0E0C; line-height: 1.4;
}
.b-faq-item summary::-webkit-details-marker { display: none; }
.b-faq-item summary:focus-visible { outline: 2px solid #0F0E0C; outline-offset: 4px; border-radius: 4px; }
.b-faq-icon { position: relative; width: 14px; height: 14px; flex-shrink: 0; margin-top: 5px; }
.b-faq-icon::before, .b-faq-icon::after { content: ""; position: absolute; left: 0; top: 6px; width: 14px; height: 1.5px; background: #0F0E0C; transition: transform .25s ease; }
.b-faq-icon::after { transform: rotate(90deg); }
.b-faq-item[open] .b-faq-icon::after { transform: rotate(0deg); }
.b-faq-item p { padding: 0 0 22px; max-width: 62ch; font-size: 15.5px; line-height: 1.65; color: #5A544B; }

.b-end-proof { margin-top: 22px; font-size: 14px; color: rgba(255,255,255,0.6); }
.b-end-proof a { color: rgba(255,255,255,0.85); text-decoration: underline; text-underline-offset: 3px; }
.b-end-proof a:hover, .b-end-proof a:focus-visible { color: #FBF7F0; }
.cs-end .btn-light.b-end-btn { background: #FBF7F0; color: #0F0E0C; border-color: #FBF7F0; }
.cs-end .btn-light.b-end-btn:hover { background: #fff; }

/* Phone: 40px+ touch targets, no sideways scroll */
@media (max-width: 639px) {
  .b-actions .btn-dark, .b-actions .btn-light { min-height: 44px; }
  .b-card-actions .btn-dark, .b-card-actions .btn-light { min-height: 44px; }
  .b-card { padding: 20px; }
  .b-body .btn-dark-nav { min-height: 44px; }
  .b-piece { padding: 14px; }
}
