/* blockchannel.one — single stylesheet. Look: big bold sentence-case display type, pill buttons, colour bands,
   no shadows (depth comes from colour). Palette: YouTube-style red on white with near-black ink.
   Tokens below; everything else derives from them. */

/* Arial adjusted to Inter's metrics (values as in next/font): text keeps its size and line breaks almost
   unchanged when the web font swaps in, so the hero and the centred panel do not move. */
@font-face {
  font-family: "Inter Fallback";
  src: local("Arial"), local("ArialMT"), local("Liberation Sans"), local("Helvetica");
  size-adjust: 107.12%;
  ascent-override: 90.44%;
  descent-override: 22.52%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --red: #ff0000;            /* brand: logo, primary buttons (large text only), switches, accents */
  --red-hover: #d90000;
  --red-text: #cc0000;       /* red text and small red UI on white / soft tint: passes WCAG AA */
  --ink: #0f0f0f;            /* headings, body text, dark buttons */
  --ink-hover: #303030;
  --muted: #606060;
  --bg: #ffffff;
  --soft: #fff1f1;           /* tint bands: header, heroes, CTA card */
  --soft-strong: #ffe1e1;    /* soft buttons, chips, pills */
  --soft-strong-hover: #ffd9d9;
  --tint: rgba(255, 0, 0, 0.045);
  --tint-soft: rgba(255, 0, 0, 0.025);
  --border: rgba(204, 0, 0, 0.14);
  --input-border: #8a7272;
  --switch-off: #8a7272;
  --ring: #0f0f0f;
  --dark: #0f0f0f;           /* dark band */
  --dark-2: #212121;
  --on-dark: rgba(255, 255, 255, 0.86);
  --radius-card: 28px;
  --radius-media: 20px;
  --radius-sm: 12px;
  --gutter: 16px;
  --content: 1080px;
  --header-h: 72px;
  --font: "Inter", "Inter Fallback", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

@media (min-width: 640px) { :root { --gutter: 24px; } }
@media (min-width: 1024px) { :root { --gutter: 40px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.125rem;
  line-height: 1.625rem;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
}
@media (max-width: 639px) { body { font-size: 1rem; line-height: 1.5rem; } }
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
p { margin: 0 0 1rem; }
a { color: var(--red-text); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; }
.bc-band-dark :focus-visible, .bc-demo-toast :focus-visible { outline-color: #fff; }
code, kbd {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.875em;
  background: var(--tint);
  border-radius: 6px;
  padding: 0.1em 0.4em;
  overflow-wrap: anywhere;
}
.bc-sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.bc-skip {
  position: absolute; left: 8px; top: -100px; z-index: 100;
  background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 9999px; font-weight: 600;
}
.bc-skip:focus { top: 8px; }
.bc-icon { width: 1.25rem; height: 1.25rem; flex-shrink: 0; }

/* ---------- layout */
.bc-wrap { max-width: calc(var(--content) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.bc-wrap.bc-narrow { max-width: calc(760px + 2 * var(--gutter)); }
.bc-wrap.bc-wide, .bc-page-wide .bc-wrap:not(.bc-narrow) { max-width: calc(1240px + 2 * var(--gutter)); }
.bc-section { padding: clamp(48px, 8vw, 96px) 0; }
.bc-section.bc-tight { padding-top: 0; }
.bc-band-soft { background: var(--soft); }
.bc-band-tint { background: var(--tint); }
.bc-band-dark { background: var(--dark); color: #fff; }
.bc-center { text-align: center; }

/* ---------- type (sentence case everywhere; big and bold, slightly negative tracking) */
.bc-display {
  margin: 0 auto 1.25rem;
  max-width: 17ch;
  color: var(--ink);
  font-size: clamp(2.25rem, 1rem + 5.6vw, 4.75rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-align: center;
  overflow-wrap: break-word;
  hyphens: manual;
  text-wrap: balance;
}
.bc-display-sm { font-size: clamp(2.125rem, 1rem + 4.6vw, 4rem); max-width: 19ch; }
.bc-h2, .bc-prose h2 {
  margin: 0 0 1rem;
  color: var(--ink);
  font-size: clamp(1.75rem, 1.05rem + 2.6vw, 2.625rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
}
.bc-h2-caps {
  color: var(--ink);
  font-size: clamp(2rem, 1rem + 3.6vw, 3.5rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.035em;
  margin: 0 auto 2rem;
  max-width: 18ch;
  text-wrap: balance;
}
h3, .bc-h3 { margin: 0 0 0.5rem; color: var(--ink); font-size: 1.375rem; line-height: 1.3; font-weight: 700; letter-spacing: -0.01em; }
.bc-lead {
  margin: 0 auto 1.75rem;
  max-width: 40rem;
  color: var(--ink);
  font-size: 1.25rem;
  line-height: 1.75rem;
  text-align: center;
}
@media (max-width: 639px) { .bc-lead { font-size: 1.125rem; line-height: 1.625rem; } }
.bc-muted { color: var(--muted); }
.bc-kicker { display: inline-block; margin-bottom: 0.75rem; font-size: 1rem; font-weight: 700; color: var(--red-text); }
.bc-updated { color: var(--muted); font-size: 0.9375rem; }

/* ---------- buttons */
.bc-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 48px; padding: 11px 24px;
  border: 0; border-radius: 9999px;
  font: inherit; font-size: 1rem; line-height: 1.5rem; font-weight: 600;
  text-decoration: none; text-align: center; cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.bc-btn .bc-icon { width: 1.125rem; height: 1.125rem; }
/* Red with white text passes WCAG AA only as large text: .bc-btn-primary always uses >= 19px bold. */
.bc-btn-primary { background: var(--red); color: #fff; font-size: 1.1875rem; font-weight: 700; }
.bc-btn-primary:hover { background: var(--red-hover); }
.bc-btn-dark { background: var(--ink); color: #fff; }
.bc-btn-dark:hover { background: var(--ink-hover); }
.bc-btn-soft { background: var(--soft-strong); color: var(--red-text); }
.bc-btn-soft:hover { background: var(--soft-strong-hover); }
.bc-btn-outline { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px var(--input-border); }
.bc-btn-outline:hover { background: var(--tint); }
.bc-btn-ghost { background: transparent; color: var(--ink); }
.bc-btn-ghost:hover { background: var(--tint); }
.bc-btn-link { background: none; color: var(--red-text); text-decoration: underline; text-underline-offset: 4px; padding-left: 12px; padding-right: 12px; }
.bc-btn-lg { padding: 12px 28px; font-size: 1.0625rem; }
/* The main "Install free extension" call to action: 1.5x the large button (72 px tall, 26 px text on desktop). */
.bc-btn-xl {
  min-height: 72px; padding: 16px clamp(22px, 3.4vw, 42px); gap: 0.75rem;
  font-size: clamp(1.1875rem, 0.85rem + 1.5vw, 1.625rem); line-height: 1.2; letter-spacing: -0.01em;
  max-width: 100%;
}
.bc-btn-xl .bc-icon { width: 1.5rem; height: 1.5rem; }
.bc-btn-sm { min-height: 44px; padding: 8px 16px; font-size: 0.9375rem; }
.bc-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 16px; }
.bc-actions.bc-left { justify-content: flex-start; }
/* Install button with the "Try the demo" link centred under it. */
.bc-cta-stack { display: inline-flex; flex-direction: column; align-items: center; gap: 4px; max-width: 100%; }
.bc-demo-link { gap: 6px; }
.bc-demo-link .bc-icon { width: 1.125rem; height: 1.125rem; transition: transform .2s ease; }
.bc-demo-link:hover .bc-icon { transform: translateY(2px); }

/* ---------- header */
.bc-site-header { position: sticky; top: 0; z-index: 40; background: var(--soft); }
.bc-header-in { display: flex; align-items: center; gap: 16px; min-height: var(--header-h); }
.bc-logo { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 1.25rem; letter-spacing: -0.02em; }
.bc-logo-mark { width: 32px; height: 32px; color: var(--red); }
.bc-site-nav { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.bc-site-nav ul { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }
.bc-site-nav ul a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px; border-radius: 9999px;
  color: var(--ink); font-size: 1rem; font-weight: 600; text-decoration: none;
}
.bc-site-nav ul a:hover { background: rgba(255, 0, 0, 0.08); }
.bc-site-nav ul a[aria-current="page"] { background: var(--soft-strong); color: var(--red-text); }
.bc-menu-btn {
  display: none; align-items: center; justify-content: center; width: 48px; height: 48px; margin-left: auto;
  border: 0; border-radius: 9999px; background: var(--soft-strong); color: var(--ink); cursor: pointer;
}
.bc-menu-btn .bc-icon { width: 1.5rem; height: 1.5rem; }
.bc-menu-close { display: none; }
.bc-menu-btn[aria-expanded="true"] .bc-menu-open { display: none; }
.bc-menu-btn[aria-expanded="true"] .bc-menu-close { display: inline-flex; }
@media (max-width: 879px) {
  .bc-js .bc-menu-btn { display: inline-flex; }
  .bc-js .bc-site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 12px;
    padding: 8px var(--gutter) 24px; background: var(--soft); border-bottom: 1px solid var(--border);
  }
  .bc-js .bc-site-nav.bc-is-open { display: flex; }
  .bc-js .bc-site-nav ul { flex-direction: column; }
  .bc-js .bc-site-nav ul a { display: flex; min-height: 48px; font-size: 1.125rem; }
  html:not(.bc-js) .bc-header-in { flex-wrap: wrap; padding-bottom: 8px; }
  html:not(.bc-js) .bc-site-nav { flex-wrap: wrap; margin-left: 0; }
  html:not(.bc-js) .bc-site-nav ul { flex-wrap: wrap; }
}

/* ---------- hero */
.bc-hero { padding: clamp(32px, 6vw, 72px) 0 clamp(40px, 6vw, 64px); }
.bc-page-hero { padding: clamp(24px, 4vw, 48px) 0 clamp(40px, 6vw, 72px); text-align: center; }
/* Page hero with an illustration (how-to pages): text | image from 960 px, image under the buttons below. */
.bc-hero-grid { display: grid; gap: 32px; }
.bc-hero-shot { width: 100%; max-width: 36rem; margin: 0 auto; }
@media (min-width: 960px) {
  .bc-page-hero.bc-has-media { text-align: left; }
  /* Text ~42 %, illustration ~58 % of the hero. */
  .bc-hero-grid { grid-template-columns: minmax(0, 42fr) minmax(0, 58fr); column-gap: clamp(32px, 4vw, 56px); align-items: center; }
  .bc-has-media .bc-crumbs ol, .bc-has-media .bc-actions { justify-content: flex-start; }
  .bc-has-media .bc-display, .bc-has-media .bc-lead { margin-left: 0; text-align: left; }
  .bc-has-media .bc-display { font-size: clamp(2.5rem, 0.9rem + 2.8vw, 3.75rem); }
  .bc-has-media .bc-lead { margin-bottom: 1.5rem; }
  .bc-hero-shot { max-width: none; margin: 0; }
}
.bc-hero-media { background: linear-gradient(var(--soft) 0, var(--soft) 120px, var(--bg) 120px); padding-bottom: clamp(32px, 6vw, 64px); }
.bc-crumbs ol { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 8px; margin: 0 0 16px; padding: 0; list-style: none; font-size: 0.9375rem; }
.bc-crumbs li { display: inline-flex; align-items: center; color: var(--ink); }
.bc-crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--muted); }
.bc-crumbs a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; padding: 0 4px; font-weight: 600; }
.bc-trust-line { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; margin: 20px 0 0; padding: 0; list-style: none; font-size: 0.9375rem; font-weight: 600; color: var(--ink); }
.bc-trust-line li { display: inline-flex; align-items: center; gap: 6px; }
.bc-trust-line .bc-icon { width: 1.125rem; height: 1.125rem; color: var(--red-text); }

/* ---------- home playground: hero + demo feed on the left, sticky extension replica on the right */
.bc-playground { padding: clamp(28px, 5vw, 64px) 0 clamp(40px, 6vw, 80px); }
.bc-pg-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
.bc-pg-hero { min-width: 0; text-align: center; }
.bc-pg-aside { min-width: 0; }
.bc-pg-feed { position: relative; min-width: 0; }
.bc-pg-feed-mid { position: absolute; top: 50%; left: 0; width: 1px; height: 1px; pointer-events: none; }
.bc-pg-sticky { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.bc-replica-kicker { display: inline-flex; align-items: center; gap: 8px; margin: 0; color: var(--ink); font-size: 0.9375rem; font-weight: 700; }
.bc-replica-kicker .bc-icon { width: 1.125rem; height: 1.125rem; color: var(--red-text); }
.bc-replica { width: 100%; max-width: calc(22.5rem + 2px); border: 1px solid var(--border); border-radius: var(--radius-card); overflow: hidden; background: #fff; }
.bc-replica-note { margin: 0; max-width: 22.5rem; color: var(--ink); font-size: 0.9375rem; line-height: 1.375rem; text-align: center; }
/* Note + Install under the replica: its space is reserved from the start (no layout shift); with JS it stays
   invisible until the visitor uses the demo or scrolls to the middle of the feed (site.js adds .bc-is-revealed). */
.bc-pg-reveal { display: flex; flex-direction: column; align-items: center; gap: 14px; width: 100%; }
@media (min-width: 1024px) {
  .bc-js .bc-pg-reveal:not(.bc-is-revealed) { visibility: hidden; opacity: 0; transform: translateY(10px); }
  .bc-js .bc-pg-reveal.bc-is-revealed { transition: opacity 280ms ease-out, transform 280ms ease-out; }
}
@media (min-width: 1024px) and (prefers-reduced-motion: reduce) {
  .bc-js .bc-pg-reveal:not(.bc-is-revealed) { transform: none; }
  .bc-js .bc-pg-reveal.bc-is-revealed { transition: none; }
}
.bc-pg-sticky .bc-btn-xl { width: 100%; max-width: 22.5rem; padding-left: 20px; padding-right: 20px; font-size: clamp(1.1875rem, 0.9rem + 1.2vw, 1.375rem); }
@media (min-width: 1024px) {
  /* Extra air above the hero and between the hero and the demo; the panel column is exactly the panel's
     width, so its right edge is the container edge (= the header's Install button). */
  .bc-playground { padding-top: calc(clamp(28px, 5vw, 64px) + 48px); }
  .bc-pg-grid {
    grid-template-columns: minmax(0, 1fr) calc(22.5rem + 2px);
    grid-template-areas: "hero aside" "feed aside";
    column-gap: 56px; row-gap: 72px; align-items: start;
  }
  .bc-pg-hero { grid-area: hero; text-align: left; }
  .bc-pg-hero .bc-display, .bc-pg-hero .bc-lead { margin-left: 0; text-align: left; }
  .bc-pg-hero .bc-actions, .bc-pg-hero .bc-trust-line { justify-content: flex-start; }
  .bc-pg-feed { grid-area: feed; }
  /* The aside spans both rows, so its sticky child stays pinned from the hero down to the end of the feed. */
  .bc-pg-aside { grid-area: aside; align-self: stretch; }
  /* margin-top is set by site.js so the panel's centre matches the hero text's centre on the first screen. */
  .bc-pg-sticky { position: sticky; top: calc(var(--header-h) + 16px); }
}

/* Replica of the real extension popup (markup and CSS generated from extension/popup/, see /css/tb-popup.css).
   Only what the website context needs is adjusted here: fluid width and 44 px touch targets. */
.bc-replica .bcp { width: 100%; min-width: 0; font-feature-settings: normal; }
.bc-replica .bcp .bcp-switch input { inset: -8px -2px; width: auto; height: auto; }
.bc-replica .bcp .bcp-card .bcp-check { min-height: 2.75rem; }
.bc-replica .bcp .bcp-lists { display: flex; flex-direction: column; gap: 0.5rem; }
.bc-replica .bcp .bcp-list-title { margin: 0 0 0.25rem; color: var(--tb-muted); font-size: 0.75rem; font-weight: 600; }
.bc-replica .bcp .bcp-kw-row .bcp-field, .bc-replica .bcp .bcp-kw-row .bcp-btn { min-height: 2.75rem; }
.bc-replica .bcp .bcp-chips { display: flex; flex-wrap: wrap; gap: 0.375rem; max-height: none; margin: 0; padding: 0; list-style: none; }
.bc-replica .bcp .bcp-chip {
  display: inline-flex; align-items: center; gap: 0.375rem; min-height: 2.75rem; padding: 0 0.625rem 0 0.875rem;
  border: 0; border-radius: 9999px; background: var(--tb-soft-strong); color: var(--tb-ink);
  font: inherit; font-size: 0.8125rem; font-weight: 600; cursor: pointer;
}
.bc-replica .bcp .bcp-chip:hover { background: var(--tb-soft-strong-hover); }
.bc-replica .bcp .bcp-chip svg { width: 0.875rem; height: 0.875rem; color: var(--tb-brand-text); }
.bc-replica .bcp .bcp-chip .bcp-chip-tag { color: var(--tb-muted); font-weight: 500; }
.bc-replica .bcp #bcp-options-msg { color: var(--tb-muted); }

/* ---------- demo */
.bc-demo { position: relative; scroll-margin-top: calc(var(--header-h) + 16px); background: #fff; border: 1px solid var(--border); border-radius: var(--radius-card); padding: clamp(16px, 3vw, 28px); }
.bc-demo-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px 20px; margin-bottom: 14px; }
.bc-demo-head-text { min-width: 0; }
.bc-demo-title { margin: 0 0 4px; color: var(--ink); font-size: 1.125rem; line-height: 1.5rem; font-weight: 700; }
.bc-demo-note { display: flex; align-items: flex-start; gap: 6px; margin: 0; color: var(--muted); font-size: 0.875rem; line-height: 1.25rem; }
.bc-demo-note .bc-icon { width: 1rem; height: 1rem; margin-top: 2px; }
.bc-demo-reset { flex-shrink: 0; }
.bc-demo-reset .bc-icon { width: 1rem; height: 1rem; }
@media (max-width: 639px) {
  .bc-demo-head { flex-direction: column; align-items: flex-start; }
}
.bc-demo-controls { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 24px; margin: 0 0 12px; padding: 16px; background: var(--tint-soft); border-radius: var(--radius-media); }
.bc-demo-kw { flex: 1 1 320px; min-width: 0; }
.bc-demo-label { display: block; margin-bottom: 6px; font-size: 0.9375rem; font-weight: 600; color: var(--ink); }
.bc-kw-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.bc-kw-input { position: relative; flex: 1 1 220px; min-width: 0; }
.bc-kw-input .bc-icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.bc-kw-input input {
  width: 100%; min-height: 48px; padding: 10px 16px 10px 46px;
  border: 1px solid var(--input-border); border-radius: 9999px; background: #fff;
  color: var(--ink); font: inherit; font-size: 1rem;
}
.bc-kw-input input:focus-visible { outline-offset: 1px; }
.bc-check { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding-right: 4px; font-size: 0.9375rem; font-weight: 600; cursor: pointer; }
.bc-check input { width: 22px; height: 22px; margin: 0; accent-color: var(--red); cursor: pointer; }
.bc-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.bc-chips-label { font-size: 0.875rem; color: var(--muted); }
.bc-chip {
  min-height: 44px; padding: 8px 16px; border: 1px solid var(--border); border-radius: 9999px;
  background: #fff; color: var(--ink); font: inherit; font-size: 0.9375rem; font-weight: 600; cursor: pointer;
}
.bc-chip:hover { background: var(--tint); }
.bc-switch { display: inline-flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 12px 0 0; border: 0; background: none; color: var(--ink); font: inherit; font-size: 1rem; font-weight: 600; cursor: pointer; border-radius: 9999px; }
.bc-switch-track { position: relative; width: 52px; height: 30px; border-radius: 9999px; background: var(--switch-off); transition: background-color 0.15s ease; }
.bc-switch-thumb { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform 0.15s ease; }
.bc-switch[aria-checked="true"] .bc-switch-track { background: var(--red); }
.bc-switch[aria-checked="true"] .bc-switch-thumb { transform: translateX(22px); }
.bc-demo-status { margin: 0 0 16px; color: var(--muted); font-size: 0.9375rem; line-height: 1.375rem; min-height: 1.375rem; }
.bc-demo-status strong { color: var(--ink); }
.bc-demo-empty { margin: 8px 0 0; padding: 24px; border: 1px dashed var(--input-border); border-radius: var(--radius-media); text-align: center; color: var(--muted); font-size: 0.9375rem; }
/* auto-fit: a single row of 3 cards stretches across the wide container instead of leaving an empty 4th track. */
.bc-feed { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px 16px; }
.bc-vcard { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.bc-thumb { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: var(--tint); }
.bc-thumb img, .bc-sthumb img { width: 100%; height: 100%; object-fit: cover; }
.bc-dur { position: absolute; right: 8px; bottom: 8px; padding: 1px 6px; border-radius: 6px; background: rgba(15, 15, 15, 0.82); color: #fff; font-size: 0.75rem; line-height: 1.125rem; font-weight: 600; }
.bc-vbody { display: flex; gap: 10px; min-width: 0; }
.bc-avatar { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 36px; width: 36px; height: 36px; border-radius: 50%; color: #fff; font-size: 0.75rem; font-weight: 700; }
.bc-vtext { min-width: 0; }
.bc-vtitle { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 0 0 2px; color: var(--ink); font-size: 0.9375rem; line-height: 1.3rem; font-weight: 600; }
.bc-vchan, .bc-vstats { margin: 0; color: var(--muted); font-size: 0.8125rem; line-height: 1.125rem; }
.bc-vblock { align-self: flex-start; margin-top: auto; }
.bc-vblock .bc-icon { width: 1rem; height: 1rem; color: var(--red-text); }
.bc-shelf { grid-column: 1 / -1; padding: 16px; border-radius: var(--radius-media); background: var(--tint-soft); }
.bc-shelf-title { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; color: var(--ink); font-weight: 700; font-size: 1rem; }
.bc-shelf-title .bc-icon { width: 1.125rem; height: 1.125rem; color: var(--red); fill: currentColor; }
.bc-shelf-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(118px, 150px); justify-content: start; gap: 12px; overflow-x: auto; padding-bottom: 4px; }
.bc-scard { min-width: 0; }
.bc-sthumb { aspect-ratio: 9 / 16; border-radius: 12px; overflow: hidden; margin-bottom: 8px; background: var(--tint); }

/* Demo toast: what happened + "this is a demo" + install button; no Undo (Reset demo replays everything).
   Fixed at the bottom, centred in the viewport. Content is centred with symmetric 20 px padding; the close
   button sits out of the flow in the top-right corner, and the message line has equal 40 px side padding so
   the button never overlaps it and the text stays centred. */
.bc-demo-toast {
  position: fixed; left: 50%; bottom: 16px; z-index: 60; transform: translateX(-50%);
  width: min(30rem, calc(100vw - 32px)); padding: 20px; border-radius: 20px; background: var(--ink); color: #fff;
  text-align: center;
}
.bc-toast-body { min-width: 0; }
.bc-toast-msg { margin: 0 0 8px; padding: 0 40px; font-size: 1rem; line-height: 1.375rem; font-weight: 700; }
.bc-toast-note { margin: 0 0 14px; color: var(--on-dark); font-size: 0.875rem; line-height: 1.25rem; }
.bc-toast-cta { min-height: 48px; padding: 10px 20px; }
.bc-toast-close {
  position: absolute; top: 6px; right: 6px; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  border: 0; border-radius: 9999px; background: transparent; color: #fff; cursor: pointer;
}
.bc-toast-close:hover { background: rgba(255, 255, 255, 0.12); }
/* Desktop: wide enough for the longest message and the demo note to stay on one line each (phones wrap). */
@media (min-width: 1024px) { .bc-demo-toast { width: min(40rem, calc(100vw - 32px)); } }
@media (max-width: 559px) {
  .bc-feed { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .bc-vcard { display: grid; grid-template-columns: minmax(0, 44%) minmax(0, 1fr); column-gap: 12px; row-gap: 6px; align-items: start; }
  .bc-vcard .bc-thumb { grid-row: span 2; }
  .bc-vcard .bc-avatar { display: none; }
  .bc-vcard .bc-vblock { grid-column: 2; margin-top: 0; justify-self: start; }
  .bc-hide-xs { display: none; }
  .bc-toast-cta { width: 100%; }
}

/* ---------- rows, steps, trust */
.bc-row { display: grid; gap: 32px; align-items: center; padding: clamp(32px, 5vw, 56px) 0; }
.bc-row-text { min-width: 0; }
.bc-row-text p { color: var(--muted); max-width: 34rem; }
.bc-row-media { min-width: 0; padding: clamp(20px, 4vw, 40px); border-radius: var(--radius-card); background: var(--soft); }
@media (min-width: 860px) {
  .bc-row { grid-template-columns: 1fr 1fr; gap: 64px; }
  .bc-row.bc-flip .bc-row-media { order: -1; }
}
.bc-mock { background: #fff; border-radius: var(--radius-media); padding: 20px; border: 1px solid var(--border); }
.bc-mock-title { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 0.9375rem; font-weight: 700; color: var(--ink); }
.bc-mock-title .bc-icon { color: var(--red-text); }
.bc-mock-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--border); font-size: 0.9375rem; }
.bc-mock-row:first-of-type { border-top: 0; }
.bc-mock-row .bc-grow { flex: 1; min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bc-mock-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 9999px; background: var(--soft-strong); color: var(--red-text); font-size: 0.8125rem; font-weight: 600; white-space: nowrap; }
.bc-mock-pill .bc-icon { width: 0.875rem; height: 0.875rem; }
.bc-mock-pill.bc-dark { background: var(--ink); color: #fff; }
.bc-mock-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.bc-mock-toggle { width: 44px; height: 26px; border-radius: 9999px; background: var(--red); position: relative; flex-shrink: 0; }
.bc-mock-toggle::after { content: ""; position: absolute; top: 3px; right: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; }
.bc-mock-toggle.off { background: var(--switch-off); }
.bc-mock-toggle.off::after { right: auto; left: 3px; }
.bc-steps { display: grid; gap: 16px; margin: 0 0 32px; padding: 0; list-style: none; counter-reset: step; }
@media (min-width: 760px) { .bc-steps { grid-template-columns: repeat(3, 1fr); } }
.bc-step { padding: 28px; border-radius: var(--radius-card); background: #fff; text-align: left; }
.bc-step-num { display: block; margin-bottom: 16px; color: var(--red); font-size: 2.5rem; line-height: 1; font-weight: 800; }
.bc-step p { margin: 0; color: var(--muted); }
.bc-step h3 { font-size: 1.25rem; }
.bc-trust { display: grid; gap: 32px; margin: 40px 0 0; padding: 40px 0 0; border-top: 1px solid rgba(255, 255, 255, 0.2); list-style: none; }
@media (min-width: 760px) { .bc-trust { grid-template-columns: repeat(3, 1fr); } }
.bc-band-dark h2 { color: #fff; }
.bc-band-dark p { color: var(--on-dark); }
.bc-band-dark a { color: #fff; }
.bc-trust li { padding: 24px; border-radius: var(--radius-media); background: var(--dark-2); }
.bc-trust h3 { display: flex; align-items: center; gap: 10px; color: #fff; font-size: 1.25rem; }
.bc-trust .bc-icon { width: 1.5rem; height: 1.5rem; color: var(--red); }
.bc-trust-intro { max-width: 36rem; font-size: 1.25rem; line-height: 1.75rem; }
.bc-band-dark .bc-h2-caps { margin-left: 0; text-align: left; color: #fff; }

/* ---------- prose blocks */
.bc-prose > * + * { margin-top: 0; }
.bc-prose h2 { margin-top: 3.5rem; }
.bc-prose h2:first-child { margin-top: 0; }
.bc-prose h3 { margin-top: 2rem; }
.bc-prose p, .bc-prose li { color: var(--ink); }
.bc-prose ul, .bc-prose ol { margin: 0 0 1.25rem; padding-left: 1.4rem; }
.bc-prose li { margin-bottom: 0.5rem; }
.bc-prose li::marker { color: var(--red-text); font-weight: 700; }
.bc-note { display: flex; gap: 14px; margin: 1.5rem 0; padding: 20px; border-radius: var(--radius-media); background: var(--soft); }
.bc-note .bc-icon { width: 1.5rem; height: 1.5rem; color: var(--red-text); margin-top: 1px; }
.bc-note p { margin: 0; }
.bc-note p + p { margin-top: 0.75rem; }
.bc-note.bc-warn { background: #fff4d6; }
.bc-note.bc-warn .bc-icon { color: #7a4b00; }
/* How-to steps: one row per step, text | image, with generous space between rows.
   The text block starts at the top of the image (align-items: start); number badge and heading share a line.
   Every shot is a 4:3 crop in the same fixed-width 4:3 frame, so all steps show one display size.
   Below 860 px: text, then the image at full width. */
.bc-howto { display: grid; gap: 56px; margin: 2.5rem 0 0; padding: 0; list-style: none; }
.bc-howto > li { display: grid; align-items: start; gap: 20px; min-width: 0; }
.bc-howto-text { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 14px; align-items: center; align-content: start; }
.bc-howto-num { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--red); color: #fff; font-weight: 800; font-size: 1.1875rem; }
.bc-howto-text h3 { margin: 0; }
.bc-howto-text p { grid-column: 1 / -1; margin: 14px 0 0; color: var(--muted); }
.bc-howto .bc-shot { width: 100%; max-width: 36rem; }
.bc-howto-text .bc-btn-step { grid-column: 1 / -1; justify-self: start; margin-top: 20px; }
.bc-btn-step { min-height: 56px; padding: 12px 24px; font-size: 1.1875rem; }
.bc-btn-step .bc-icon { width: 1.25rem; height: 1.25rem; }
@media (max-width: 479px) { .bc-howto-text .bc-btn-step { justify-self: stretch; } }  /* phones: full width; tablets: capped */
@media (min-width: 860px) {
  .bc-howto { gap: 88px; }
  .bc-howto > li { grid-template-columns: minmax(0, 1fr) minmax(0, 30rem); column-gap: clamp(40px, 6vw, 72px); }
}
.bc-shot { margin: 0; min-width: 0; }
.bc-shot-frame { aspect-ratio: 4 / 3; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-media); background: var(--tint-soft); }
.bc-shot-frame img { display: block; width: 100%; height: 100%; object-fit: contain; }
.bc-shot figcaption { margin-top: 8px; color: var(--muted); font-size: 0.875rem; line-height: 1.25rem; }
.bc-shot-box { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; border-style: dashed; border-color: var(--input-border); color: var(--muted); font-size: 0.9375rem; font-weight: 600; }
.bc-shot-box .bc-icon { width: 2rem; height: 2rem; }

.bc-table-wrap { overflow-x: auto; margin: 1.5rem 0; border: 1px solid var(--border); border-radius: var(--radius-media); }
table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 1rem; line-height: 1.5rem; }
th, td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
tr:last-child td { border-bottom: 0; }
thead th { background: var(--soft); color: var(--ink); font-size: 0.9375rem; font-weight: 700; }
tbody th { font-weight: 600; color: var(--ink); }
tbody tr:nth-child(even) { background: var(--tint-soft); }
@media (max-width: 639px) {
  table { min-width: 0; }
  thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  tbody tr { display: block; padding: 14px 16px; border-bottom: 1px solid var(--border); }
  tbody tr:last-child { border-bottom: 0; }
  tbody th, tbody td { display: block; padding: 0; border: 0; }
  tbody th { margin-bottom: 6px; }
  tbody td + td { margin-top: 8px; }
  tbody td::before { content: attr(data-label); display: block; color: var(--muted); font-size: 0.8125rem; line-height: 1.125rem; font-weight: 600; }
}
.bc-yes, .bc-no, .bc-part { display: inline-flex; align-items: flex-start; gap: 6px; }
.bc-yes .bc-icon { color: #1d6b3a; }
.bc-no .bc-icon { color: #a1262b; }
.bc-part .bc-icon { color: #7a4b00; }
.bc-yes .bc-icon, .bc-no .bc-icon, .bc-part .bc-icon { width: 1.125rem; height: 1.125rem; margin-top: 3px; }

.bc-faq { margin: 1.5rem 0 0; }
.bc-qa { padding: 24px 0; border-top: 1px solid var(--border); }
.bc-qa:last-child { border-bottom: 1px solid var(--border); }
.bc-qa h3 { color: var(--ink); font-size: 1.25rem; }
.bc-qa p { margin: 0; color: var(--ink); }
.bc-qa p + p { margin-top: 0.75rem; }

.bc-cta-card { padding: clamp(32px, 6vw, 64px) clamp(20px, 5vw, 64px); border-radius: var(--radius-card); background: var(--soft); text-align: center; }
.bc-cta-card h2 { margin: 0 auto 1rem; max-width: 18ch; color: var(--ink); font-size: clamp(2rem, 1rem + 3.6vw, 3.25rem); line-height: 1.04; font-weight: 800; letter-spacing: -0.035em; text-wrap: balance; }
.bc-cta-card p { max-width: 34rem; margin: 0 auto 1.5rem; }

.bc-link-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 16px; margin: 1.5rem 0 0; padding: 0; list-style: none; }
.bc-link-card { position: relative; display: flex; flex-direction: column; gap: 6px; height: 100%; min-height: 44px; padding: 24px 56px 24px 24px; border: 1px solid var(--border); border-radius: var(--radius-media); text-decoration: none; color: var(--ink); }
.bc-link-card:hover { background: var(--tint); }
.bc-link-card-title { color: var(--ink); font-weight: 700; font-size: 1.125rem; }
.bc-link-card-text { color: var(--muted); font-size: 0.9375rem; line-height: 1.375rem; }
.bc-link-card .bc-icon { position: absolute; right: 20px; top: 26px; color: var(--red-text); }

.bc-jump { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 1.5rem; padding: 0; list-style: none; }
.bc-jump a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 18px; border-radius: 9999px; background: var(--soft-strong); color: var(--red-text); font-weight: 600; text-decoration: none; }
.bc-jump a:hover { background: var(--soft-strong-hover); }
.bc-dl { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.bc-dl-meta { margin: 0; color: var(--muted); font-size: 0.9375rem; }
.bc-dl-ph { flex-direction: row; align-items: flex-start; gap: 14px; max-width: 32rem; margin: 0 auto; padding: 20px; border-radius: var(--radius-media); background: #fff; text-align: left; }
.bc-dl-ph .bc-icon { width: 1.5rem; height: 1.5rem; color: var(--red-text); }
.bc-dl-ph-title { margin: 0 0 2px; font-weight: 700; color: var(--ink); }
.bc-browser { padding-top: 1rem; }
.bc-email-box { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin: 1rem 0 1.5rem; }
.bc-email-link { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; font-size: clamp(1.25rem, 1rem + 1.5vw, 1.75rem); font-weight: 700; text-decoration: none; overflow-wrap: anywhere; }
.bc-email-link:hover { text-decoration: underline; }
.bc-email-link .bc-icon { width: 1.75rem; height: 1.75rem; }
.bc-grid-2 { display: grid; gap: 16px; }
@media (min-width: 760px) { .bc-grid-2 { grid-template-columns: 1fr 1fr; } }
.bc-card { padding: 24px; border-radius: var(--radius-card); background: var(--soft); }
.bc-card h3 { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.bc-card h3 .bc-icon { color: var(--red-text); }
.bc-card p:last-child { margin-bottom: 0; }
.bc-legal h2 { font-size: clamp(1.375rem, 1.1rem + 1vw, 1.75rem); margin-top: 2.5rem; }
.bc-legal p, .bc-legal li { color: var(--ink); overflow-wrap: anywhere; }

/* ---------- footer */
.bc-site-footer { padding: 64px 0 40px; background: var(--soft); }
.bc-foot-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 32px; }
.bc-foot-h { margin: 0 0 8px; color: var(--ink); font-size: 1rem; font-weight: 700; }
.bc-foot-col ul { margin: 0; padding: 0; list-style: none; }
.bc-foot-col a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); font-size: 1rem; text-decoration: none; }
.bc-foot-col a:hover { color: var(--red-text); text-decoration: underline; }
.bc-foot-legal { margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--border); color: var(--muted); font-size: 0.875rem; line-height: 1.375rem; }
.bc-foot-legal .bc-logo { margin-bottom: 12px; }
.bc-foot-legal p { margin: 0 0 8px; max-width: 48rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
.bc-hero-tail { padding: 0 0 clamp(40px, 6vw, 72px); margin-top: calc(-1 * clamp(16px, 3vw, 40px)); }

/* /welcome/: one guide at a time (body[data-mode]), Mac or Windows pictures (body[data-os]). */
.bc-mode, .bc-for-mac, .bc-for-win { display: none; }
.bc-page-welcome[data-mode="pin"] .bc-mode-pin, .bc-page-welcome[data-mode="usage"] .bc-mode-usage { display: block; }
.bc-page-welcome[data-os="mac"] .bc-for-mac, .bc-page-welcome[data-os="win"] .bc-for-win { display: block; }
.bc-welcome-top { position: sticky; top: 0; z-index: 40; background: var(--bg); box-shadow: 0 1px 0 rgba(15, 15, 15, 0.08), 0 6px 16px -6px rgba(15, 15, 15, 0.12); }
.bc-welcome-top-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: calc(880px + 2 * var(--gutter)); margin: 0 auto; padding: 10px var(--gutter); }
.bc-welcome-top .bclp-trigger { min-height: 44px; padding: 0 10px 0 12px; font-size: 0.9375rem; }
.bc-page-welcome main { max-width: calc(880px + 2 * var(--gutter)); margin: 0 auto; padding: 40px var(--gutter) 64px; }
.bc-page-welcome .bc-mode { scroll-margin-top: 104px; }
.bc-page-welcome h1 { margin: 0 0 16px; font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; line-height: 1.08; letter-spacing: -0.03em; }
.bc-w-lead { margin: 0 0 20px; font-size: clamp(1.125rem, 2.5vw, 1.375rem); line-height: 1.45; }
.bc-w-num { display: inline-flex; align-items: center; justify-content: center; width: 1.5em; height: 1.5em; border-radius: 50%;
  background: #e5e5e5; color: var(--ink); font-size: 0.8em; font-weight: 700; vertical-align: 0.1em; }
.bc-w-shot { margin: 0 0 32px; overflow: hidden; border: 1px solid var(--border); border-radius: 16px; background: #fff; }
.bc-w-shot img { width: 100%; height: auto; }
.bc-w-steps { margin: 0; padding: 0; list-style: none; }
.bc-w-steps li { margin: 0 0 48px; }
.bc-mode-pin .bc-w-steps { margin-top: 32px; }
.bc-w-steps h2 { display: flex; align-items: center; gap: 12px; margin: 0 0 8px; font-size: clamp(1.375rem, 3vw, 1.75rem); font-weight: 700; letter-spacing: -0.02em; }
.bc-w-step { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 2.75rem; height: 2.75rem; border-radius: 50%;
  background: var(--soft-strong); color: var(--red-text); font-size: 1.125rem; font-weight: 800; }
.bc-w-steps p { margin: 0 0 16px; font-size: 1.125rem; line-height: 1.5; }
.bc-w-steps .bc-w-shot { margin-bottom: 0; }
.bc-w-switch { margin: 0; color: var(--muted); }
.bc-w-switch a { color: var(--red-text); font-weight: 600; }
/* "blockchannel.one" is longer than the old name: on the narrowest phones the logo text gives way to the language button. */
.bc-welcome-top .bc-logo { min-width: 0; }
.bc-welcome-top .bc-logo span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 359px) { .bc-welcome-top .bc-logo { font-size: 1.0625rem; } }
