/*
 * Blob Chorus: components
 * Needs tokens.css first. Every class starts with "bc-" so it can sit next to any other CSS.
 */

/* Base */
.bc { margin: 0; background: var(--bc-ink); color: var(--bc-chalk); font-family: var(--bc-body); font-size: var(--bc-text-body); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: clip; }
.bc *, .bc *::before, .bc *::after { box-sizing: border-box; }
.bc :where(a) { color: inherit; }
.bc-container { width: min(100% - 40px, var(--bc-container)); margin-inline: auto; }
.bc-narrow { width: min(100% - 40px, var(--bc-narrow)); margin-inline: auto; }
.bc-center { text-align: center; }
.bc-center .bc-lead { margin-inline: auto; }

/* Sections */
.bc-section { padding-block: var(--bc-section); }
.bc-section--night { background: var(--bc-night); }
.bc-section--tight { padding-block: calc(var(--bc-section) * .6); }
.bc-divider { height: 1px; margin: 0; border: 0; background: var(--bc-line); }

/* Type: heavy soft serif headlines, friendly sans body */
.bc-hero-title, .bc-h2, .bc-h3, .bc-quote, .bc-wordmark { font-family: var(--bc-display); font-optical-sizing: auto; }
.bc-hero-title { margin: 0; font-size: var(--bc-text-hero); font-weight: 700; line-height: 1.02; letter-spacing: -.025em; text-wrap: balance; }
.bc-h2 { margin: 0; font-size: var(--bc-text-h2); font-weight: 700; line-height: 1.08; letter-spacing: -.02em; text-wrap: balance; }
.bc-h3 { margin: 0; font-size: var(--bc-text-h3); font-weight: 700; line-height: 1.2; letter-spacing: -.01em; }
.bc-lead { max-width: 560px; margin: 20px 0 0; color: var(--bc-haze); font-size: var(--bc-text-lead); line-height: 1.55; }
.bc-eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px; color: var(--bc-haze); font-size: var(--bc-text-label); font-weight: 600; letter-spacing: .02em; }
.bc-muted { color: var(--bc-haze); }
.bc-small { font-size: var(--bc-text-small); }
.bc-ital { font-style: italic; font-weight: 500; }

/* Nav: rainbow heart mark left; bold serif wordmark and small pipe-separated links right */
.bc-nav { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding-block: 28px; }
.bc-mark { display: block; width: 46px; height: 42px; flex: none; }
.bc-nav__right { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.bc-wordmark { font-size: 30px; font-weight: 700; line-height: 1; letter-spacing: -.04em; text-decoration: none; white-space: nowrap; }
.bc-nav__links { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; color: var(--bc-haze); font-size: var(--bc-text-small); }
.bc-nav__links a { text-decoration: none; }
.bc-nav__links a:hover, .bc-nav__links a[aria-current] { color: var(--bc-chalk); }
.bc-nav__links a + a::before { content: "|"; margin-inline: 9px; color: var(--bc-dim); }

/* Buttons: outlined pills with an arrow; one solid chalk pill for the main action when it needs more weight */
.bc-btn { display: inline-flex; align-items: center; justify-content: center; gap: 14px; padding: 12px 16px 12px 22px; border: var(--bc-border-chalk); border-radius: var(--bc-radius-pill); background: transparent; color: var(--bc-chalk); font-family: var(--bc-body); font-size: 16px; font-weight: 600; line-height: 1.2; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background var(--bc-fast) ease, color var(--bc-fast) ease, transform var(--bc-slow) var(--bc-ease); }
.bc-btn svg { width: 24px; height: 14px; flex: none; transition: transform var(--bc-slow) var(--bc-ease); }
.bc-btn:hover { background: rgba(246, 244, 238, .07); }
.bc-btn:hover svg { transform: translateX(4px); }
.bc-btn:focus-visible { outline: none; box-shadow: var(--bc-focus); }
.bc-btn--solid { background: var(--bc-chalk); color: var(--bc-ink); }
.bc-btn--solid:hover { background: #FFFFFF; }
.bc-btn--quiet { border-color: var(--bc-line); }
.bc-btn--small { padding: 8px 12px 8px 16px; font-size: 14px; gap: 10px; }
.bc-btn--block { width: 100%; }
.bc-btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 36px; }
.bc-center .bc-btn-row, .bc-band .bc-btn-row { justify-content: center; }

/* Blobs: the signature. A gradient body, a sleepy face, optional chalk legs */
.bc-blob { --s: 96px; position: relative; display: inline-block; width: var(--s); height: calc(var(--s) * .95); flex: none; }
.bc-blob__body { position: absolute; inset: 0; }
.bc-blob__body::before, .bc-blob__body::after { content: ""; position: absolute; top: 42%; width: 13%; height: 7%; border: 2px solid rgba(10, 10, 11, .72); border-top: 0; border-radius: 0 0 99px 99px; }
.bc-blob__body::before { left: 30%; }
.bc-blob__body::after { left: 57%; }
.bc-blob--sun .bc-blob__body { background: var(--bc-grad-sun); border-radius: 10% 62% 58% 12% / 10% 52% 54% 14%; box-shadow: var(--bc-glow-sun); }
.bc-blob--mint .bc-blob__body { background: var(--bc-grad-mint); border-radius: 46% 46% 44% 44% / 30% 30% 66% 66%; box-shadow: var(--bc-glow-mint); }
.bc-blob--sky .bc-blob__body { background: var(--bc-grad-sky); border-radius: 14% 30% 52% 52% / 26% 14% 70% 70%; box-shadow: var(--bc-glow-sky); }
.bc-blob--coral .bc-blob__body { background: var(--bc-grad-coral); border-radius: 8% 8% 40% 40% / 30% 30% 46% 46%; clip-path: polygon(0 8%, 50% 26%, 100% 8%, 100% 100%, 0 100%); }
.bc-blob__legs { position: absolute; left: 34%; right: 34%; top: 96%; height: 26%; border-inline: var(--bc-stroke) solid var(--bc-chalk); }
.bc-blob__legs::before, .bc-blob__legs::after { content: ""; position: absolute; bottom: 0; width: 40%; height: 0; border-top: var(--bc-stroke) solid var(--bc-chalk); }
.bc-blob__legs::before { left: -40%; }
.bc-blob__legs::after { right: -40%; }
.bc-blob--sm { --s: 44px; }
.bc-blob--md { --s: 72px; }
.bc-blob--lg { --s: 128px; }

/* The chorus: blobs standing in a row, gently bobbing, with a chalk floor */
.bc-chorus { display: flex; align-items: flex-end; justify-content: center; gap: clamp(14px, 3vw, 34px); padding-bottom: 34px; margin-bottom: 40px; }
.bc-chorus .bc-blob { animation: bc-bob 4.5s ease-in-out infinite; }
.bc-chorus .bc-blob:nth-child(2) { animation-delay: -1.1s; }
.bc-chorus .bc-blob:nth-child(3) { animation-delay: -2.3s; }
.bc-chorus .bc-blob:nth-child(4) { animation-delay: -3.4s; }
.bc-heart { position: absolute; width: 18px; height: 16px; color: var(--bc-chalk); }
/* A floating chalk heart above a blob */
.bc-blob .bc-heart { top: -30px; right: 0; }
.bc-blob .bc-heart--left { left: -6px; right: auto; top: -22px; }
@keyframes bc-bob { 50% { transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { .bc-chorus .bc-blob { animation: none; } }

/* Hero */
.bc-hero { padding-block: clamp(48px, 9vw, 120px) var(--bc-section); text-align: center; }
.bc-hero .bc-lead { margin-inline: auto; }
.bc-hero .bc-btn-row, .bc-hero .bc-chips { justify-content: center; }

/* Mood chips: a small blob dot and a label */
.bc-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.bc-center .bc-chips { justify-content: center; }
.bc-chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 8px; border: var(--bc-border); border-radius: var(--bc-radius-pill); color: var(--bc-chalk); font-size: var(--bc-text-small); font-weight: 500; white-space: nowrap; }
.bc-dot { width: 14px; height: 14px; border-radius: 50% 50% 46% 46% / 40% 40% 60% 60%; background: var(--bc-grad-chorus); }
.bc-dot--sun { background: var(--bc-grad-sun); }
.bc-dot--mint { background: var(--bc-grad-mint); }
.bc-dot--sky { background: var(--bc-grad-sky); }
.bc-dot--coral { background: var(--bc-grad-coral); }

/* Cards: soft night panels with a big radius, a blob sitting on top */
.bc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--bc-gap); }
.bc-grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.bc-card { padding: 32px 28px; border-radius: var(--bc-radius); background: var(--bc-night); }
.bc-section--night .bc-card { background: var(--bc-night-2); }
.bc-card .bc-blob { margin-bottom: 26px; }
.bc-card p { margin: 10px 0 0; color: var(--bc-haze); }
.bc-card--outline { background: transparent; border: var(--bc-border); }

/* Split: text beside a blob scene */
.bc-split { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); align-items: center; gap: clamp(32px, 6vw, 80px); }
.bc-scene { display: flex; align-items: flex-end; justify-content: center; gap: 18px; min-height: 280px; padding: 40px 20px 56px; border-radius: var(--bc-radius-lg); background: radial-gradient(70% 60% at 50% 100%, rgba(108, 141, 255, .18), transparent 70%), var(--bc-night); }

/* Steps: numbered with a small serif numeral */
.bc-steps { display: grid; gap: 0; margin: 36px 0 0; padding: 0; list-style: none; }
.bc-steps li { display: grid; grid-template-columns: 56px 1fr; gap: 18px; padding: 26px 0; border-top: var(--bc-border); }
.bc-steps li:last-child { border-bottom: var(--bc-border); }
.bc-steps b { font-family: var(--bc-display); font-size: 34px; font-weight: 500; font-style: italic; line-height: 1; color: var(--bc-haze); }
.bc-steps p { margin: 6px 0 0; color: var(--bc-haze); }

/* Quote: a big italic serif line, with a little blob as the speaker */
.bc-quote { margin: 0; font-size: clamp(26px, 3.4vw, 40px); font-weight: 500; font-style: italic; line-height: 1.2; letter-spacing: -.01em; text-wrap: balance; }
.bc-cite { display: inline-flex; align-items: center; gap: 12px; margin-top: 26px; color: var(--bc-haze); font-size: var(--bc-text-small); font-style: normal; }

/* Pricing */
.bc-toggle { display: inline-flex; padding: 4px; border: var(--bc-border); border-radius: var(--bc-radius-pill); }
.bc-toggle button { padding: 8px 18px; border: 0; border-radius: var(--bc-radius-pill); background: transparent; color: var(--bc-haze); font: 600 14px var(--bc-body); cursor: pointer; white-space: nowrap; }
.bc-toggle button[aria-pressed="true"] { background: var(--bc-chalk); color: var(--bc-ink); }
.bc-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--bc-gap); align-items: stretch; }
.bc-plan { display: flex; flex-direction: column; padding: 34px 28px 28px; border: var(--bc-border); border-radius: var(--bc-radius-lg); background: var(--bc-night); }
.bc-plan--featured { border-color: var(--bc-chalk); background: linear-gradient(180deg, rgba(108, 141, 255, .14), transparent 55%), var(--bc-night); }
.bc-plan__top { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.bc-plan__badge { padding: 4px 10px; border: var(--bc-border-chalk); border-radius: var(--bc-radius-pill); font-size: 12px; font-weight: 600; white-space: nowrap; }
.bc-price { margin: 14px 0 4px; font-family: var(--bc-display); font-size: 52px; font-weight: 700; line-height: 1; letter-spacing: -.03em; }
.bc-price small { margin-left: 4px; color: var(--bc-haze); font-family: var(--bc-body); font-size: 15px; font-weight: 500; letter-spacing: 0; }
.bc-ticks { flex: 1; display: grid; align-content: start; gap: 12px; margin: 24px 0 30px; padding: 22px 0 0; border-top: var(--bc-border); list-style: none; }
.bc-ticks li { position: relative; padding-left: 28px; color: var(--bc-haze); }
.bc-ticks li::before { content: ""; position: absolute; left: 0; top: .45em; width: 12px; height: 7px; border-left: var(--bc-stroke) solid var(--bc-chalk); border-bottom: var(--bc-stroke) solid var(--bc-chalk); transform: rotate(-45deg); }
.bc-faq { display: grid; gap: 0; }
.bc-faq details { padding: 22px 0; border-top: var(--bc-border); }
.bc-faq details:last-child { border-bottom: var(--bc-border); }
.bc-faq summary { display: flex; justify-content: space-between; gap: 16px; font-family: var(--bc-display); font-size: 20px; font-weight: 700; cursor: pointer; list-style: none; }
.bc-faq summary::-webkit-details-marker { display: none; }
.bc-faq summary::after { content: "+"; color: var(--bc-haze); font-family: var(--bc-body); font-weight: 400; }
.bc-faq details[open] summary::after { content: "\2212"; }
.bc-faq p { margin: 12px 0 0; color: var(--bc-haze); }

/* Forms */
.bc-form-card { padding: clamp(28px, 5vw, 48px); border: var(--bc-border); border-radius: var(--bc-radius-lg); background: var(--bc-night); }
.bc-field { display: grid; gap: 8px; margin-bottom: 20px; }
.bc-fieldset { min-width: 0; margin-inline: 0; padding: 0; border: 0; }
.bc-fieldset legend { padding: 0; margin-bottom: 4px; }
.bc-label { font-size: var(--bc-text-small); font-weight: 600; }
.bc-hint { color: var(--bc-dim); font-size: 13px; }
.bc-input, .bc-select, .bc-textarea { width: 100%; padding: 14px 18px; border: var(--bc-border); border-radius: var(--bc-radius-sm); background: var(--bc-ink); color: var(--bc-chalk); font: 400 16px var(--bc-body); transition: border-color var(--bc-fast) ease; }
.bc-input::placeholder, .bc-textarea::placeholder { color: var(--bc-dim); }
.bc-input:focus, .bc-select:focus, .bc-textarea:focus { outline: none; border-color: var(--bc-sky); box-shadow: var(--bc-focus); }
.bc-textarea { min-height: 110px; resize: vertical; }
.bc-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; }
.bc-choice { position: relative; display: grid; justify-items: center; gap: 12px; padding: 18px 10px 14px; border: var(--bc-border); border-radius: var(--bc-radius); text-align: center; font-size: var(--bc-text-small); font-weight: 600; cursor: pointer; transition: border-color var(--bc-fast) ease, background var(--bc-fast) ease; }
.bc-choice input { position: absolute; opacity: 0; pointer-events: none; }
.bc-choice:has(input:checked) { border-color: var(--bc-chalk); background: var(--bc-night-2); }
.bc-choice:has(input:focus-visible) { box-shadow: var(--bc-focus); }
.bc-check { display: flex; gap: 12px; align-items: flex-start; color: var(--bc-haze); font-size: var(--bc-text-small); }
.bc-check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--bc-chalk); }

/* Article */
.bc-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: 22px; color: var(--bc-haze); font-size: var(--bc-text-small); }
.bc-prose { font-size: 18px; line-height: 1.75; }
.bc-prose p { margin: 0 0 1.3em; color: #DCDAD4; }
.bc-prose h2 { margin: 2em 0 .6em; font-family: var(--bc-display); font-size: 30px; font-weight: 700; line-height: 1.15; letter-spacing: -.015em; }
.bc-prose ul { margin: 0 0 1.3em; padding-left: 1.1em; color: #DCDAD4; }
.bc-prose li { margin-bottom: .5em; }
.bc-prose li::marker { color: var(--bc-haze); }
.bc-prose a { text-decoration-color: var(--bc-line-bright); text-underline-offset: 4px; }
.bc-pull { margin: 2em 0; padding: 30px 0; border-block: var(--bc-border); font-family: var(--bc-display); font-size: 28px; font-style: italic; font-weight: 500; line-height: 1.3; text-align: center; }
.bc-figure { margin: 2.2em 0; }
.bc-figure .bc-scene { min-height: 220px; }
.bc-figure figcaption { margin-top: 12px; color: var(--bc-dim); font-size: var(--bc-text-small); text-align: center; }
.bc-author { display: flex; align-items: center; gap: 16px; padding: 24px; border-radius: var(--bc-radius); background: var(--bc-night); }
.bc-author p { margin: 4px 0 0; color: var(--bc-haze); font-size: var(--bc-text-small); }

/* Closing band: the chorus again, a line and one button */
.bc-band { padding: clamp(48px, 7vw, 88px) 24px; border-radius: var(--bc-radius-lg); background: radial-gradient(60% 80% at 50% 110%, rgba(255, 79, 95, .16), transparent 70%), var(--bc-night); text-align: center; }

/* Footer */
.bc-footer { padding-block: 56px 40px; border-top: var(--bc-border); color: var(--bc-haze); font-size: var(--bc-text-small); }
.bc-footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 32px; }
.bc-footer h4 { margin: 0 0 12px; color: var(--bc-chalk); font-size: var(--bc-text-small); font-weight: 600; }
.bc-footer ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.bc-footer a { text-decoration: none; }
.bc-footer a:hover { color: var(--bc-chalk); }
.bc-footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 24px; border-top: var(--bc-border); color: var(--bc-dim); }

.bc-footer__base:first-child { margin-top: 0; padding-top: 0; border-top: 0; }

/* Helpers */
@media (max-width: 640px) {
  .bc-hide-sm { display: none; }
  .bc-nav__links .bc-hide-sm + a::before { content: none; }
  .bc-wordmark { font-size: 24px; }
  .bc-nav { padding-block: 20px; }
  .bc-chorus { gap: 10px; }
  .bc-chorus .bc-blob { --s: 60px; }
  .bc-chorus .bc-blob--lg { --s: 80px; }
  .bc-chorus .bc-blob--sm { --s: 38px; }
}
