/* ================================================================
   AI BODY TRANSFORMATION ("Future You") — sibling of the BF scanner.
   Same family: Geist + Geist Mono, cream paper, soft cards. This
   page's signature is ELECTRIC BLUE (vs the scanner's green) and the
   before/after scrubber as the centerpiece.
   ================================================================ */

:root {
  --btf-bg:        #fbfbfa;
  --btf-paper:     #ffffff;
  --btf-paper-2:   #f6f6f4;
  --btf-ink:       #171717;
  --btf-muted:     #777774;
  --btf-faint:     #a6a6a2;
  --btf-line:      rgba(23, 23, 23, 0.09);
  --btf-line-2:    rgba(23, 23, 23, 0.16);
  --btf-blue:      #2f6bff;
  --btf-blue-50:   rgba(47, 107, 255, 0.10);
  --btf-green:     #34d26f;
  --btf-yellow:    #ffd23f;
  --btf-red:       #ff5d6c;

  --btf-shadow:    0 22px 70px rgba(23, 23, 23, 0.10);
  --btf-shadow-2:  0 10px 34px rgba(23, 23, 23, 0.08);
  --btf-radius:    22px;
  --btf-radius-sm: 14px;

  --btf-sans: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --btf-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --btf-container: 920px;
  --btf-pad-x: 24px;
}

/* ================================================================
   Page shell — cream + grid, subtle blue aura behind the hero
   ================================================================ */

.btf-body {
  background:
    linear-gradient(rgba(23, 23, 23, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 23, 23, 0.035) 1px, transparent 1px),
    var(--btf-bg);
  background-size: 98px 98px;
  color: var(--btf-ink);
  font-family: var(--btf-sans);
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
.btf-body::before {
  content: "";
  position: fixed; inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 72% 4%, rgba(47, 107, 255, 0.07), transparent 30rem),
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.96), transparent 36rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(251, 251, 250, 0.94) 42rem, var(--btf-bg));
  pointer-events: none;
}

/* ================================================================
   Hero
   ================================================================ */

.btf-hero {
  position: relative;
  padding: clamp(110px, 14vw, 156px) var(--btf-pad-x) clamp(36px, 5vw, 56px);
}
.btf-hero-inner {
  position: relative;
  max-width: var(--btf-container);
  margin: 0 auto;
  text-align: center;
}
.btf-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--btf-mono);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--btf-ink);
  background: var(--btf-paper);
  border: 1px solid var(--btf-line);
  padding: 8px 16px;
  border-radius: 100px;
  margin-bottom: 28px;
  box-shadow: 0 1px 0 rgba(255,255,255,0.9) inset, 0 4px 14px rgba(23,23,23,0.04);
}
.btf-eyebrow .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--btf-blue);
  box-shadow: 0 0 0 3px rgba(47, 107, 255, 0.18);
}

.btf-hero h1 {
  font-weight: 800;
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  letter-spacing: -0.04em;
  line-height: 1.02;
  margin: 0 auto 20px;
  max-width: 780px;
  color: var(--btf-ink);
}
.btf-hero h1 .accent { color: var(--btf-blue); }

.btf-hero-sub {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.6;
  color: var(--btf-muted);
  max-width: 600px;
  margin: 0 auto 24px;
}

.btf-hero-meta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--btf-mono);
  font-size: 0.8rem;
  color: var(--btf-faint);
}
.btf-hero-meta .sep {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--btf-line-2);
}

.btf-hero-mascot {
  display: none;
  position: absolute;
  bottom: -24px;
  right: clamp(12px, 4vw, 60px);
  width: 130px;
  height: auto;
  pointer-events: none;
  user-select: none;
  filter: drop-shadow(0 16px 28px rgba(23,23,23,0.10));
  transform: rotate(-4deg);
  animation: btf-bob 3.4s ease-in-out infinite;
}
@keyframes btf-bob {
  0%, 100% { transform: rotate(-4deg) translateY(0); }
  50%      { transform: rotate(-4deg) translateY(-6px); }
}
@media (min-width: 880px) { .btf-hero-mascot { display: block; } }

/* ================================================================
   Main rail + card
   ================================================================ */

.btf-main {
  position: relative;
  max-width: var(--btf-container);
  margin: 0 auto;
  padding: clamp(20px, 3vw, 32px) var(--btf-pad-x) clamp(36px, 5vw, 56px);
}

.btf-card {
  position: relative;
  background: var(--btf-paper);
  border: 1px solid var(--btf-line);
  border-radius: var(--btf-radius);
  padding: clamp(22px, 4vw, 36px);
  box-shadow: var(--btf-shadow);
}

.btf-card-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: clamp(16px, 2.5vw, 22px);
}
.btf-card-head-label {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--btf-ink);
  letter-spacing: -0.005em;
}
.btf-card-head-meta {
  font-family: var(--btf-mono);
  font-size: 0.75rem;
  color: var(--btf-faint);
}

/* Unlocked banner (after email unlock, back on the form) */
.btf-unlocked-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding: 12px 16px;
  font-family: var(--btf-mono);
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--btf-ink);
  background: var(--btf-blue-50);
  border: 1px solid rgba(47, 107, 255, 0.25);
  border-radius: var(--btf-radius-sm);
}
.btf-unlocked-banner .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--btf-blue);
  box-shadow: 0 0 0 3px rgba(47, 107, 255, 0.18);
}

/* ================================================================
   Drop target
   ================================================================ */

.btf-target {
  position: relative;
  background: var(--btf-paper-2);
  border: 1.5px dashed var(--btf-line-2);
  border-radius: var(--btf-radius-sm);
  min-height: 280px;
  display: grid;
  place-items: center;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 200ms ease, background 200ms ease, transform 200ms ease;
}
.btf-target:hover {
  border-color: var(--btf-ink);
  background: #f0f0ec;
}
.btf-target.is-active {
  border-color: var(--btf-blue);
  background: var(--btf-blue-50);
  transform: scale(1.005);
}
.btf-target input[type="file"] {
  position: absolute; inset: 0;
  opacity: 0;
  width: 100%; height: 100%;
  cursor: pointer;
  z-index: 3;
}

.btf-target-mascot {
  position: absolute;
  right: 14px;
  bottom: 8px;
  width: clamp(64px, 10vw, 88px);
  height: auto; /* JSX sets square width/height for CLS; real art is taller */
  pointer-events: none;
  user-select: none;
  filter: drop-shadow(0 8px 16px rgba(23,23,23,0.10));
  transform: rotate(6deg);
  z-index: 1;
  opacity: 0.92;
  transition: transform 220ms ease, opacity 220ms ease;
}
.btf-target:hover .btf-target-mascot {
  transform: rotate(6deg) translateY(-3px);
  opacity: 1;
}
@media (max-width: 720px) {
  .btf-target-mascot {
    top: 12px; right: 12px; bottom: auto;
    transform: rotate(-6deg);
  }
  .btf-target:hover .btf-target-mascot {
    transform: rotate(-6deg) translateY(-3px);
  }
}
@media (max-width: 460px) {
  .btf-target-mascot { width: 56px; top: 10px; right: 10px; }
}

.btf-target-content {
  position: relative;
  text-align: center;
  padding: clamp(28px, 4vw, 40px) 24px;
  z-index: 2;
}
.btf-target-icon {
  display: block;
  margin: 0 auto 14px;
  color: var(--btf-ink);
}
.btf-target-title {
  font-weight: 700;
  font-size: 1.08rem;
  color: var(--btf-ink);
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}
.btf-target-sub {
  font-family: var(--btf-mono);
  font-size: 0.78rem;
  color: var(--btf-muted);
  margin: 0;
}

.btf-target.has-file {
  cursor: default;
  border: 1px solid var(--btf-line);
  background:
    radial-gradient(ellipse 60% 50% at 50% 30%, #2a2a26, #14140f 80%);
  padding: 0;
  overflow: hidden;
  min-height: 420px;
}
.btf-target.has-file:hover { border-color: var(--btf-line); }
.btf-target.has-file input[type="file"] { display: none; }
.btf-target-photo {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 8px 20px rgba(0,0,0,0.4));
}
.btf-target-photo-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 65%, rgba(0,0,0,0.8) 100%);
  pointer-events: none;
}
@media (max-width: 560px) {
  .btf-target.has-file { min-height: 360px; }
}
.btf-target-meta {
  position: absolute;
  left: 16px; right: 16px; bottom: 14px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--btf-mono);
  font-size: 0.74rem;
  color: rgba(255,255,255,0.85);
}
.btf-target-replace {
  font: inherit;
  font-family: var(--btf-mono);
  font-size: 0.74rem;
  color: white;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.22);
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 150ms ease;
}
.btf-target-replace:hover { background: rgba(255,255,255,0.22); }

/* ================================================================
   Fields: goal pills, zone chips, reference pills
   ================================================================ */

.btf-field { margin-top: clamp(20px, 3vw, 26px); }
.btf-field-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--btf-ink);
  margin: 0 0 12px;
  letter-spacing: -0.005em;
}
.btf-field-hint {
  font-family: var(--btf-mono);
  font-weight: 400;
  font-size: 0.78rem;
  color: var(--btf-muted);
}

.btf-pills {
  display: grid;
  gap: 8px;
}
.btf-pills--3 { grid-template-columns: repeat(3, 1fr); }
.btf-pill-btn {
  background: var(--btf-paper);
  border: 1px solid var(--btf-line-2);
  color: var(--btf-ink);
  font-family: var(--btf-sans);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 12px 14px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 160ms ease;
}
.btf-pill-btn:hover {
  border-color: var(--btf-ink);
  background: var(--btf-paper-2);
}
.btf-pill-btn.is-selected {
  background: var(--btf-ink);
  color: var(--btf-paper);
  border-color: var(--btf-ink);
  box-shadow: 0 6px 18px rgba(23,23,23,0.18);
}

/* Zone chips — wrap row; selected = blue fill (the page accent), so the
   "aim" step reads visually distinct from the binary pills around it. */
.btf-zones {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.btf-zone-chip {
  background: var(--btf-paper);
  border: 1px solid var(--btf-line-2);
  color: var(--btf-ink);
  font-family: var(--btf-sans);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 100px;
  cursor: pointer;
  transition: all 160ms ease;
}
.btf-zone-chip:hover:not(:disabled) {
  border-color: var(--btf-blue);
  background: var(--btf-blue-50);
}
.btf-zone-chip.is-selected {
  background: var(--btf-blue);
  color: #fff;
  border-color: var(--btf-blue);
  box-shadow: 0 6px 18px rgba(47, 107, 255, 0.30);
}
.btf-zone-chip:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* ================================================================
   Submit + privacy
   ================================================================ */

.btf-submit {
  display: block;
  width: 100%;
  margin-top: clamp(20px, 3vw, 26px);
  background: var(--btf-ink);
  color: var(--btf-paper);
  font-family: var(--btf-sans);
  font-size: 1rem;
  font-weight: 700;
  padding: 16px 22px;
  border-radius: 12px;
  border: 1px solid var(--btf-ink);
  cursor: pointer;
  transition: transform 100ms ease, box-shadow 200ms ease, background 200ms ease;
  box-shadow: 0 12px 28px rgba(23,23,23,0.14);
  letter-spacing: -0.005em;
}
.btf-submit:hover:not(:disabled) {
  background: #000;
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(23,23,23,0.18);
}
.btf-submit:active:not(:disabled) { transform: translateY(0); }
.btf-submit:disabled {
  background: var(--btf-paper-2);
  color: var(--btf-faint);
  border-color: var(--btf-line);
  cursor: not-allowed;
  box-shadow: none;
}
.btf-submit .arrow {
  display: inline-block;
  margin-left: 6px;
  transition: transform 200ms ease;
}
.btf-submit:hover:not(:disabled) .arrow { transform: translateX(3px); }

.btf-privacy {
  margin: 16px 0 0;
  font-family: var(--btf-mono);
  font-size: 0.76rem;
  line-height: 1.55;
  color: var(--btf-muted);
  text-align: center;
}
.btf-privacy strong { color: var(--btf-ink); font-weight: 600; }

/* ================================================================
   Processing — blue scan line, slower rhythm than the BF scanner
   ================================================================ */

.btf-target.is-processing {
  cursor: default;
  border: 1px solid var(--btf-line);
}
.btf-target.is-processing.has-file { background: #1a1a18; }
.btf-scan-line {
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--btf-blue), transparent);
  box-shadow: 0 0 18px rgba(47, 107, 255, 0.7);
  z-index: 4;
  animation: btf-scan 3s cubic-bezier(0.55, 0, 0.45, 1) infinite;
  pointer-events: none;
}
@keyframes btf-scan {
  0%   { top: 0%; opacity: 0; }
  10%  { opacity: 1; }
  50%  { top: 100%; opacity: 1; }
  60%  { opacity: 0; }
  100% { top: 0%; opacity: 0; }
}

.btf-status-block {
  margin-top: 22px;
  text-align: center;
}
.btf-status-line {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--btf-mono);
  font-size: 0.92rem;
  color: var(--btf-ink);
  font-weight: 500;
  animation: btf-reveal 400ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.btf-status-line .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--btf-blue);
  box-shadow: 0 0 0 4px rgba(47, 107, 255, 0.18);
  animation: btf-pulse 1.6s ease-in-out infinite;
}
@keyframes btf-pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(47, 107, 255, 0.18); }
  50%      { box-shadow: 0 0 0 8px rgba(47, 107, 255, 0.04); }
}

.btf-status-track {
  margin: 16px auto 0;
  max-width: 280px;
  height: 3px;
  background: var(--btf-line);
  border-radius: 100px;
  overflow: hidden;
  position: relative;
}
.btf-status-track::after {
  content: "";
  position: absolute;
  top: 0; left: -40%;
  width: 40%; height: 100%;
  background: linear-gradient(90deg, transparent, var(--btf-blue), transparent);
  animation: btf-track 1.8s ease-in-out infinite;
}
@keyframes btf-track {
  0%   { left: -40%; }
  100% { left: 100%; }
}

/* ================================================================
   Result — the before/after scrubber is the moment
   ================================================================ */

@keyframes btf-reveal {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.btf-card--result { animation: btf-reveal 480ms cubic-bezier(0.2, 0.8, 0.2, 1); }

.btf-result-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.btf-result-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--btf-mono);
  font-size: 0.8rem;
  color: var(--btf-ink);
  background: var(--btf-paper-2);
  border: 1px solid var(--btf-line);
  padding: 6px 14px;
  border-radius: 100px;
}
.btf-result-tag .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--btf-green);
  box-shadow: 0 0 0 3px rgba(52,210,111,0.18);
}
.btf-result-hint {
  font-family: var(--btf-mono);
  font-size: 0.76rem;
  color: var(--btf-faint);
}

/* The compare stage. After image is the base layer; the before layer sits
   on top clipped to `width: N%`; a full-bleed transparent range input is
   the interaction surface (mouse, touch, and keyboard all free). */
.btf-compare {
  position: relative;
  border-radius: var(--btf-radius-sm);
  overflow: hidden;
  background: #14140f;
  aspect-ratio: 3 / 4;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  border: 1px solid var(--btf-line);
  user-select: none;
  /* Size anchor for the clipped before-image (100cqw/100cqh below). */
  container-type: size;
}
.btf-compare-after {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.btf-compare-before {
  position: absolute;
  top: 0; bottom: 0; left: 0;
  overflow: hidden;
  /* Sweep on entry, then live-track the range input. */
  transition: width 900ms cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: width;
}
.btf-compare:active .btf-compare-before,
.btf-compare:focus-within .btf-compare-before {
  transition: none;
}
.btf-compare-before-img {
  position: absolute;
  top: 0; left: 0;
  /* Pinned to the STAGE's size (container units), not the clip wrapper,
     so the image reveals instead of squishing as the divider moves. */
  width: 100cqw;
  height: 100cqh;
  max-width: none;
  object-fit: cover;
}
.btf-compare-label {
  position: absolute;
  top: 14px;
  z-index: 3;
  font-family: var(--btf-mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #fff;
  background: rgba(0,0,0,0.66);
  padding: 6px 12px;
  border-radius: 8px;
  pointer-events: none;
}
.btf-compare-label.is-before { left: 14px; }
.btf-compare-label.is-after  { right: 14px; background: var(--btf-blue); }

.btf-compare-handle {
  position: absolute;
  top: 0; bottom: 0;
  width: 2px;
  margin-left: -1px;
  background: rgba(255,255,255,0.95);
  box-shadow: 0 0 14px rgba(0,0,0,0.5);
  z-index: 3;
  pointer-events: none;
  transition: left 900ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.btf-compare:active .btf-compare-handle,
.btf-compare:focus-within .btf-compare-handle {
  transition: none;
}
.btf-compare-grip {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: #fff;
  color: var(--btf-ink);
  border-radius: 50%;
  box-shadow: 0 6px 20px rgba(0,0,0,0.35);
}
.btf-compare-range {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  opacity: 0;
  cursor: ew-resize;
  z-index: 4;
  margin: 0;
  -webkit-appearance: none;
  appearance: none;
}
/* Keyboard-visible focus ring on the stage */
.btf-compare:focus-within {
  outline: 2px solid var(--btf-blue);
  outline-offset: 2px;
}

.btf-result-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  flex-wrap: wrap;
}
.btf-download {
  flex: 1;
  min-width: 220px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  background: var(--btf-blue);
  color: #fff;
  font-family: var(--btf-sans);
  font-size: 0.98rem;
  font-weight: 700;
  padding: 14px 20px;
  border-radius: 12px;
  border: 1px solid var(--btf-blue);
  cursor: pointer;
  transition: transform 100ms ease, box-shadow 200ms ease, background 200ms ease;
  box-shadow: 0 12px 28px rgba(47, 107, 255, 0.30);
}
.btf-download:hover {
  background: #1f57e6;
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(47, 107, 255, 0.36);
}
.btf-download:active { transform: translateY(0); }
.btf-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--btf-paper);
  color: var(--btf-ink);
  font-family: var(--btf-sans);
  font-size: 0.98rem;
  font-weight: 600;
  padding: 14px 20px;
  border-radius: 12px;
  border: 1px solid var(--btf-line-2);
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease;
}
.btf-secondary:hover {
  border-color: var(--btf-ink);
  background: var(--btf-paper-2);
}

.btf-result-honesty {
  margin: 16px 0 0;
  font-family: var(--btf-mono);
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--btf-muted);
  text-align: center;
}

/* ================================================================
   Conversion block — app CTA + email unlock
   ================================================================ */

.btf-cta-block {
  position: relative;
  margin-top: 18px;
  padding: clamp(22px, 4vw, 30px);
  background: var(--btf-ink);
  border: 1px solid var(--btf-ink);
  border-radius: var(--btf-radius);
  overflow: hidden;
  text-align: center;
  box-shadow: 0 18px 40px rgba(23,23,23,0.20);
}
.btf-cta-glow {
  position: absolute;
  top: -60%; left: 50%;
  transform: translateX(-50%);
  width: 560px; height: 300px;
  background: radial-gradient(ellipse, rgba(47, 107, 255, 0.35), transparent 70%);
  pointer-events: none;
}
.btf-cta-block-title {
  position: relative;
  font-weight: 800;
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  letter-spacing: -0.025em;
  color: #fff;
  margin: 0 0 6px;
}
.btf-cta-block-sub {
  position: relative;
  font-size: 0.95rem;
  line-height: 1.55;
  color: rgba(255,255,255,0.72);
  max-width: 480px;
  margin: 0 auto 18px;
}
.btf-cta-download {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #fff;
  color: var(--btf-ink);
  font-weight: 700;
  font-size: 1rem;
  padding: 15px 26px;
  border-radius: 12px;
  text-decoration: none;
  transition: transform 100ms ease, box-shadow 200ms ease;
  box-shadow: 0 12px 28px rgba(0,0,0,0.35);
}
.btf-cta-download:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(0,0,0,0.4);
}
.btf-cta-divider {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 20px auto 16px;
  max-width: 420px;
  font-family: var(--btf-mono);
  font-size: 0.74rem;
  color: rgba(255,255,255,0.5);
  white-space: nowrap;
}
.btf-cta-divider::before,
.btf-cta-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.14);
}

/* Unlock form — used inside the dark CTA block AND on the light
   rate-limited card, so colors key off a wrapper. */
.btf-unlock-form {
  position: relative;
  display: flex;
  gap: 8px;
  max-width: 440px;
  margin: 0 auto;
}
.btf-unlock-input {
  flex: 1;
  min-width: 0;
  font-family: var(--btf-sans);
  font-size: 0.95rem;
  padding: 13px 16px;
  border-radius: 11px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.08);
  color: #fff;
  outline: none;
  transition: border-color 160ms ease, background 160ms ease;
}
.btf-unlock-input::placeholder { color: rgba(255,255,255,0.45); }
.btf-unlock-input:focus {
  border-color: var(--btf-blue);
  background: rgba(255,255,255,0.12);
}
.btf-unlock-send {
  font-family: var(--btf-sans);
  font-size: 0.92rem;
  font-weight: 700;
  padding: 13px 18px;
  border-radius: 11px;
  border: 1px solid var(--btf-blue);
  background: var(--btf-blue);
  color: #fff;
  cursor: pointer;
  white-space: nowrap;
  transition: background 160ms ease, transform 100ms ease;
}
.btf-unlock-send:hover:not(:disabled) {
  background: #1f57e6;
  transform: translateY(-1px);
}
.btf-unlock-send:disabled { opacity: 0.6; cursor: wait; }
.btf-unlock-error {
  position: relative;
  margin: 10px 0 0;
  font-size: 0.85rem;
  color: var(--btf-red);
}
.btf-unlock-note {
  position: relative;
  margin: 12px auto 0;
  max-width: 420px;
  font-family: var(--btf-mono);
  font-size: 0.72rem;
  line-height: 1.55;
  color: rgba(255,255,255,0.45);
}

/* Light-card variant (rate-limited screen) */
.btf-msg-unlock { margin: 0 auto 18px; max-width: 440px; }
.btf-msg-unlock .btf-unlock-input {
  border: 1px solid var(--btf-line-2);
  background: var(--btf-paper);
  color: var(--btf-ink);
}
.btf-msg-unlock .btf-unlock-input::placeholder { color: var(--btf-faint); }
.btf-msg-unlock .btf-unlock-note { color: var(--btf-muted); }

.btf-msg-applink {
  display: inline-block;
  margin-top: 4px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--btf-muted);
  text-decoration: none;
}
.btf-msg-applink:hover { color: var(--btf-ink); }

.btf-retry-note {
  text-align: center;
  font-family: var(--btf-mono);
  font-size: 0.82rem;
  color: var(--btf-muted);
  margin: 28px 0 0;
}

/* ================================================================
   Message states — unusable / rate_limited / error
   ================================================================ */

.btf-msg {
  text-align: center;
  padding: 36px 24px;
}
.btf-msg-icon {
  width: 52px; height: 52px;
  margin: 0 auto 14px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--btf-paper-2);
  border: 1px solid var(--btf-line);
  color: var(--btf-yellow);
}
.btf-msg-icon.is-error { color: var(--btf-red); }
.btf-msg-title {
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.025em;
  color: var(--btf-ink);
  margin: 0 0 8px;
}
.btf-msg-sub {
  font-size: 1rem;
  line-height: 1.55;
  color: var(--btf-muted);
  margin: 0 auto 22px;
  max-width: 460px;
}
.btf-msg-fine {
  font-family: var(--btf-mono);
  font-size: 0.76rem;
  color: var(--btf-faint);
  margin: -12px auto 20px;
}
.btf-msg-mascot {
  display: block;
  width: 96px;
  height: auto;
  margin: 0 auto 8px;
  filter: drop-shadow(0 8px 16px rgba(23,23,23,0.08));
}

/* ================================================================
   Content sections (process / honesty / related)
   ================================================================ */

.btf-section {
  padding: clamp(28px, 4vw, 44px) var(--btf-pad-x);
}
.btf-section-inner {
  max-width: var(--btf-container);
  margin: 0 auto;
}
.btf-section-eyebrow {
  font-family: var(--btf-mono);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--btf-muted);
  margin: 0 0 8px;
}
.btf-section h2 {
  font-weight: 800;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0 0 18px;
  color: var(--btf-ink);
}
.btf-section p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--btf-muted);
  max-width: 720px;
  margin: 0 0 14px;
}
.btf-section p a {
  color: var(--btf-ink);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--btf-line-2);
  text-underline-offset: 3px;
}
.btf-section p a:hover { text-decoration-color: var(--btf-blue); }

.btf-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 8px;
}
.btf-step {
  background: var(--btf-paper);
  border: 1px solid var(--btf-line);
  border-radius: var(--btf-radius-sm);
  padding: 20px 20px 22px;
}
.btf-step-num {
  font-family: var(--btf-mono);
  font-size: 0.74rem;
  color: var(--btf-blue);
  font-weight: 600;
  margin: 0 0 10px;
}
.btf-step h3 {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.015em;
  margin: 0 0 8px;
  color: var(--btf-ink);
}
.btf-step p {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--btf-muted);
  margin: 0;
}

.btf-crosslink-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--btf-paper);
  border: 1px solid var(--btf-line);
  border-radius: var(--btf-radius-sm);
  padding: 18px 20px;
  margin-bottom: 10px;
  text-decoration: none;
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}
.btf-crosslink-card:hover {
  border-color: var(--btf-ink);
  transform: translateY(-2px);
  box-shadow: var(--btf-shadow-2);
}
.btf-crosslink-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.btf-crosslink-text strong {
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.01em;
  color: var(--btf-ink);
}
.btf-crosslink-text span {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--btf-muted);
}
.btf-crosslink-arrow {
  flex-shrink: 0;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--btf-ink);
  white-space: nowrap;
}

/* ================================================================
   Responsive
   ================================================================ */

@media (max-width: 760px) {
  .btf-steps { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .btf-pills--3 { grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
  .btf-pill-btn { font-size: 0.88rem; padding: 11px 8px; }
  .btf-result-actions { flex-direction: column; }
  .btf-download, .btf-secondary { width: 100%; }
  .btf-unlock-form { flex-direction: column; }
  .btf-unlock-send { width: 100%; }
}

/* Respect reduced motion: kill the sweep, scan loop, and bobbing. */
@media (prefers-reduced-motion: reduce) {
  .btf-compare-before, .btf-compare-handle { transition: none; }
  .btf-scan-line, .btf-hero-mascot,
  .btf-status-line .dot, .btf-status-track::after { animation: none; }
}
