/*
  styles/enhance.css  -  the motion and interaction layer for the Better Trading funnel.

  What this is: everything that makes the exported page feel alive (glass nav, scroll
  progress, hero entrance, shimmer buttons, border beam on the form, scroll reveals,
  proof lightbox, step-by-step application, mobile Apply bar, thank-you page).
  scripts/export-transform.mjs links it into every page; scripts/enhance.mjs adds the
  data-bt hooks it targets. Never edit dist/; edit this file and rebuild.

  Ideas taken from the Website Prompts library (21st.dev), rebuilt here in plain CSS
  rather than pasted, all MIT-licensed originals: Sticky Header (ddoemonn), Scroll
  Progress and Scroll Reveal (cnippet-dev), Shimmer Button (chamaac), Border Beam
  (gooseui), Masonry Lightbox (ayushmxxn), Onboarding Wizard Form (cnippet-dev),
  Multi-Step Progress (sean0205), Hero Video Dialog (dillionverma).

  Colours and type are the design's own (graphite ground, #3DF58A, Archivo,
  JetBrains Mono). Nothing in this file adds words to the page.
*/

:root {
  --bt-bg: #15191F;
  --bt-surface: #1B2027;
  --bt-card: #20262E;
  --bt-text: #F2F4F6;
  --bt-muted: #AEB6BF;
  --bt-dim: #8A939D;
  --bt-accent: #3DF58A;
  --bt-accent-ink: #0B0D10;
  --bt-accent-deep: #118A47;
  --bt-line: rgba(255, 255, 255, 0.08);
  --bt-line-2: rgba(255, 255, 255, 0.14);
  --bt-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

html { scroll-behavior: smooth; }
/* the design sets its font on a wrapper; things added to <body> (the Apply bar,
   the lightbox) need it too */
body { font-family: 'Archivo', system-ui, sans-serif; }
section[id] { scroll-margin-top: 64px; }
::selection { background: rgba(61, 245, 138, 0.28); color: #fff; }
:focus-visible { outline: 2px solid var(--bt-accent); outline-offset: 3px; }
html.bt-lock { overflow: hidden; }

/* ------------------------------------------------------------ scroll progress */
.bt-progressbar {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 60;
  pointer-events: none; transform-origin: 0 50%;
  transform: scaleX(var(--bt-scroll, 0));
  background: linear-gradient(90deg, var(--bt-accent-deep), var(--bt-accent));
  box-shadow: 0 0 12px rgba(61, 245, 138, 0.6);
}

/* ------------------------------------------------------------ glass nav */
[data-bt="header"] {
  position: sticky !important; top: 0; z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background-color 0.4s var(--bt-ease), border-color 0.4s var(--bt-ease), box-shadow 0.4s var(--bt-ease);
}
[data-bt="header"] nav { transition: min-height 0.4s var(--bt-ease); }
[data-bt="header"].is-scrolled {
  background: rgba(21, 25, 31, 0.72);
  border-bottom-color: var(--bt-line);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
}
[data-bt="header"].is-scrolled nav { min-height: 64px !important; }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  [data-bt="header"].is-scrolled { background: rgba(21, 25, 31, 0.97); }
}

/* ------------------------------------------------------------ hero */
/* a faint chart grid behind the headline, the same grid the video frame already uses */
[data-bt="hero"]::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(60% 46% at 50% 22%, #000 0%, transparent 78%);
  mask-image: radial-gradient(60% 46% at 50% 22%, #000 0%, transparent 78%);
}

@media (prefers-reduced-motion: no-preference) {
  [data-bt="hero-glow"] { animation: bt-breathe 9s ease-in-out infinite alternate; }

  /* entrance: CSS only, so it plays even if the script never loads */
  .bt-js [data-bt="hero-copy"] > * { animation: bt-rise 0.9s var(--bt-ease) both; }
  .bt-js [data-bt="hero-copy"] > :nth-child(1) { animation-delay: 0.05s; }
  .bt-js [data-bt="hero-copy"] > :nth-child(2) { animation-delay: 0.12s; animation-duration: 1.1s; }
  .bt-js [data-bt="hero-copy"] > :nth-child(3) { animation-delay: 0.26s; }
  .bt-js [data-bt="hero-copy"] > :nth-child(4) { animation-delay: 0.36s; }
  .bt-js [data-bt="hero-copy"] > :nth-child(5) { animation-delay: 0.44s; }
  .bt-js [data-bt="hero-copy"] > :nth-child(n+6) { animation-delay: 0.52s; }
  .bt-js [data-bt="vsl"] { animation: bt-rise-plain 1.1s 0.5s var(--bt-ease) both; }

  /* the video frame tilts back and straightens as it scrolls in (script sets --bt-p) */
  .bt-tilt {
    transform: perspective(1400px) rotateX(calc((1 - var(--bt-p, 1)) * 16deg)) scale(calc(0.92 + var(--bt-p, 1) * 0.08));
    transform-origin: 50% 100%;
    will-change: transform;
  }

  /* live dots */
  [data-bt="dot"] { animation: bt-ping 2.2s var(--bt-ease) infinite; }
  [data-bt="rec"] { animation: bt-blink 1.6s steps(1, end) infinite; }
}

@keyframes bt-breathe {
  from { opacity: 0.7; transform: translateX(-50%) scale(1); }
  to { opacity: 1; transform: translateX(-50%) scale(1.14); }
}
@keyframes bt-rise {
  from { opacity: 0; transform: translateY(22px); filter: blur(8px); }
  to { opacity: 1; transform: none; filter: none; }
}
@keyframes bt-rise-plain {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: none; }
}
@keyframes bt-ping {
  0% { box-shadow: 0 0 0 0 rgba(61, 245, 138, 0.6); }
  70%, 100% { box-shadow: 0 0 0 7px rgba(61, 245, 138, 0); }
}
@keyframes bt-blink {
  0%, 60% { opacity: 1; }
  60.01%, 100% { opacity: 0.25; }
}

/* play button */
[data-bt="play"] { transition: transform 0.3s var(--bt-ease), box-shadow 0.3s var(--bt-ease); }
[data-bt="play"]:hover { transform: scale(1.07); box-shadow: 0 16px 50px rgba(61, 245, 138, 0.5) !important; }
@media (prefers-reduced-motion: no-preference) {
  [data-bt="play"][data-vsl-src] { animation: bt-ping-lg 2.4s var(--bt-ease) infinite; }
}
@keyframes bt-ping-lg {
  0% { box-shadow: 0 0 0 0 rgba(61, 245, 138, 0.5), 0 12px 40px rgba(61, 245, 138, 0.35); }
  70%, 100% { box-shadow: 0 0 0 22px rgba(61, 245, 138, 0), 0 12px 40px rgba(61, 245, 138, 0.35); }
}

/* ------------------------------------------------------------ Apply buttons */
[data-bt-cta] {
  position: relative; overflow: hidden; isolation: isolate;
  transition: transform 0.24s var(--bt-ease), box-shadow 0.24s var(--bt-ease);
  -webkit-tap-highlight-color: transparent;
}
/* the shine: z-index -1 inside the isolated button paints above its background, under its text */
[data-bt-cta]::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 45%;
  z-index: -1; pointer-events: none;
  background: linear-gradient(100deg, transparent 0%, rgba(255, 255, 255, 0) 20%, rgba(255, 255, 255, 0.6) 50%, rgba(255, 255, 255, 0) 80%, transparent 100%);
  transform: skewX(-20deg) translateX(0);
}
@media (prefers-reduced-motion: no-preference) {
  [data-bt-cta]::after { animation: bt-shine 4.2s var(--bt-ease) infinite; }
  [data-bt="header"] [data-bt-cta]::after { animation: none; }
  [data-bt="header"] [data-bt-cta]:hover::after { animation: bt-shine 1.4s var(--bt-ease) 1; }
}
@keyframes bt-shine {
  0% { transform: skewX(-20deg) translateX(0); }
  38%, 100% { transform: skewX(-20deg) translateX(430%); }
}
@media (hover: hover) {
  [data-bt-cta]:hover { transform: translateY(-2px); box-shadow: 0 16px 48px rgba(61, 245, 138, 0.38) !important; }
  [data-bt-cta]:hover svg { transform: translateX(4px); }
}
[data-bt-cta]:active { transform: translateY(0) scale(0.98); }
[data-bt-cta] svg { transition: transform 0.24s var(--bt-ease); }

/* submit spinner */
[data-bt-cta].is-loading { pointer-events: none; color: transparent !important; }
[data-bt-cta].is-loading::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px;
  border-radius: 50%; border: 2.5px solid rgba(11, 13, 16, 0.25); border-top-color: var(--bt-accent-ink);
  animation: bt-rot 0.8s linear infinite;
}
@keyframes bt-rot { to { transform: rotate(360deg); } }

/* ------------------------------------------------------------ scroll reveal */
.bt-reveal {
  opacity: 0; transform: translateY(26px);
  transition: opacity 0.8s var(--bt-ease), transform 0.8s var(--bt-ease);
  transition-delay: var(--bt-d, 0ms);
}
.bt-reveal.is-in { opacity: 1; transform: none; }

/* ------------------------------------------------------------ proof screenshots */
.bt-zoom {
  cursor: zoom-in;
  transition: transform 0.5s var(--bt-ease), box-shadow 0.5s var(--bt-ease), border-color 0.5s var(--bt-ease);
}
@media (hover: hover) {
  .bt-zoom:hover {
    transform: translateY(-6px);
    border-color: rgba(61, 245, 138, 0.38) !important;
    box-shadow: 0 40px 90px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(61, 245, 138, 0.14) !important;
  }
}
.bt-zoom-icon {
  position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center; pointer-events: none;
  color: var(--bt-text); background: rgba(14, 18, 22, 0.8); border: 1px solid var(--bt-line-2);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: background-color 0.3s var(--bt-ease), color 0.3s var(--bt-ease);
}
.bt-zoom:hover .bt-zoom-icon { background: var(--bt-accent); color: var(--bt-accent-ink); }

/* ------------------------------------------------------------ lightbox / video dialog */
.bt-lb {
  padding: 0; border: 0; background: transparent; color: var(--bt-text); overflow: visible;
  width: auto; max-width: min(92vw, 520px); max-height: 94vh;
}
.bt-lb.is-video { width: min(94vw, 1100px); max-width: none; }
.bt-lb::backdrop {
  background: rgba(8, 10, 12, 0.8);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
@media (prefers-reduced-motion: no-preference) {
  .bt-lb[open] { animation: bt-pop 0.45s var(--bt-ease); }
}
@keyframes bt-pop { from { opacity: 0; transform: translateY(16px) scale(0.96); } to { opacity: 1; transform: none; } }
.bt-lb-stage img, .bt-lb-stage video {
  display: block; max-width: 100%; max-height: 80vh; width: auto; height: auto; margin: 0 auto;
  border-radius: 20px; border: 1px solid var(--bt-line-2); background: #0E1216;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.7);
}
.bt-lb.is-video .bt-lb-stage video, .bt-lb.is-video .bt-lb-stage iframe {
  display: block; width: 100%; height: auto; max-height: none; aspect-ratio: 16 / 9; border: 0; border-radius: 18px;
}
.bt-lb-cap { margin: 14px 4px 0; font-size: 16px; line-height: 1.5; color: var(--bt-muted); text-align: center; }
.bt-lb-cap strong { color: var(--bt-text); }
.bt-lb-close {
  position: fixed; top: 16px; right: 16px; width: 48px; height: 48px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  color: var(--bt-text); background: rgba(32, 38, 46, 0.9); border: 1px solid var(--bt-line-2);
  transition: background-color 0.24s var(--bt-ease), color 0.24s var(--bt-ease);
}
.bt-lb-close:hover { background: var(--bt-accent); color: var(--bt-accent-ink); }

/* ------------------------------------------------------------ result cards */
[data-bt="results"] article {
  position: relative;
  transition: transform 0.5s var(--bt-ease), border-color 0.5s var(--bt-ease), box-shadow 0.5s var(--bt-ease);
}
[data-bt="results"] article::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; border-radius: inherit;
  opacity: 0; transition: opacity 0.4s var(--bt-ease);
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 0%), rgba(61, 245, 138, 0.1), transparent 62%);
}
[data-bt="results"] article > div:first-child > div { transition: transform 0.4s var(--bt-ease), box-shadow 0.4s var(--bt-ease); }
@media (hover: hover) {
  [data-bt="results"] article:hover {
    transform: translateY(-6px);
    border-color: rgba(61, 245, 138, 0.3) !important;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
  }
  [data-bt="results"] article:hover::before { opacity: 1; }
  [data-bt="results"] article:hover > div:first-child > div { transform: scale(1.1); box-shadow: 0 10px 34px rgba(61, 245, 138, 0.4); }
}

/* ------------------------------------------------------------ application form */
[data-bt="apply-form"] {
  position: relative; isolation: isolate;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4), 0 -24px 90px -30px rgba(61, 245, 138, 0.22) !important;
}
/* border beam: a bright arc that travels round the card's edge */
@property --bt-angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
[data-bt="apply-form"]::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: conic-gradient(from var(--bt-angle), transparent 0deg, transparent 270deg, rgba(61, 245, 138, 0.15) 300deg, var(--bt-accent) 342deg, #ffffff 354deg, transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
}
@media (prefers-reduced-motion: no-preference) {
  [data-bt="apply-form"]::before { animation: bt-orbit 6s linear infinite; }
}
@keyframes bt-orbit { to { --bt-angle: 360deg; } }

.bt-step { display: flex; flex-direction: column; gap: 18px; min-width: 0; }

.bt-choices { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.bt-legend {
  padding: 0 0 6px; min-height: 44px; display: flex; align-items: flex-end;
  font-size: 16px; font-weight: 600; color: var(--bt-text);
}
.bt-choice {
  position: relative; display: flex; align-items: center; gap: 14px;
  min-height: 58px; padding: 0 18px; border-radius: 12px; cursor: pointer;
  background: var(--bt-bg); border: 1px solid var(--bt-line-2);
  font-size: 16px; font-weight: 600; color: var(--bt-text);
  transition: border-color 0.24s var(--bt-ease), background-color 0.24s var(--bt-ease), transform 0.24s var(--bt-ease), box-shadow 0.24s var(--bt-ease);
  -webkit-tap-highlight-color: transparent;
}
.bt-choice input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.bt-choice-mark {
  flex: none; width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.28);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background-color 0.24s var(--bt-ease), border-color 0.24s var(--bt-ease);
}
.bt-choice-mark::after {
  content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--bt-accent-ink);
  transform: scale(0); transition: transform 0.3s var(--bt-ease);
}
@media (hover: hover) {
  .bt-choice:hover { border-color: rgba(61, 245, 138, 0.45); transform: translateY(-1px); }
}
.bt-choice.is-checked, .bt-choice:has(input:checked) {
  border-color: var(--bt-accent); background: rgba(61, 245, 138, 0.08);
  box-shadow: inset 0 0 0 1px var(--bt-accent), 0 10px 30px rgba(61, 245, 138, 0.12);
}
.bt-choice.is-checked .bt-choice-mark, .bt-choice:has(input:checked) .bt-choice-mark { background: var(--bt-accent); border-color: var(--bt-accent); }
.bt-choice.is-checked .bt-choice-mark::after, .bt-choice:has(input:checked) .bt-choice-mark::after { transform: scale(1); }
.bt-choice:has(input:focus-visible) { outline: 2px solid var(--bt-accent); outline-offset: 3px; }

/* the honeypot: a field people never see and bots fill in */
.bt-hp, .bt-hp input { position: absolute; width: 0; height: 0; overflow: hidden; opacity: 0; pointer-events: none; z-index: -1; }

/* step mode, switched on by the script; without it the form is one long, working form */
.bt-form-head { display: none; }
.bt-steps .bt-form-head { display: flex; align-items: center; gap: 12px; margin: -4px 0 2px; }
.bt-iconbtn {
  flex: none; width: 44px; height: 44px; border-radius: 12px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--bt-text); background: transparent; border: 1px solid var(--bt-line-2);
  transition: border-color 0.24s var(--bt-ease), background-color 0.24s var(--bt-ease), color 0.24s var(--bt-ease), opacity 0.24s;
}
.bt-iconbtn:hover { border-color: var(--bt-accent); color: var(--bt-accent); }
.bt-iconbtn.is-hidden { visibility: hidden; }
.bt-track { flex: 1; height: 6px; border-radius: 99px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.bt-track > span {
  display: block; height: 100%; width: 0; border-radius: inherit;
  background: linear-gradient(90deg, var(--bt-accent-deep), var(--bt-accent));
  box-shadow: 0 0 12px rgba(61, 245, 138, 0.5);
  transition: width 0.6s var(--bt-ease);
}
.bt-count {
  flex: none; min-width: 3ch; text-align: right;
  font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 16px; color: var(--bt-dim);
  font-variant-numeric: tabular-nums;
}
.bt-steps .bt-step { display: none; }
.bt-steps .bt-step.is-active { display: flex; }
.bt-steps .bt-legend {
  font-size: clamp(22px, 2.4vw, 27px); font-weight: 800; line-height: 1.15; letter-spacing: -0.02em;
  min-height: 0; padding: 4px 0 12px;
}
.bt-steps [data-bt="after-submit"] { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .bt-steps .bt-step.is-active { animation: bt-step-in 0.5s var(--bt-ease) both; }
  .bt-steps .bt-step.is-active.from-back { animation-name: bt-step-back; }
}
@keyframes bt-step-in { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
@keyframes bt-step-back { from { opacity: 0; transform: translateX(-28px); } to { opacity: 1; transform: none; } }

/* inputs get a green focus glow */
[data-bt="apply-form"] input:not([type="radio"]), [data-bt="apply-form"] select {
  transition: border-color 0.24s var(--bt-ease), box-shadow 0.24s var(--bt-ease);
}
[data-bt="apply-form"] input:not([type="radio"]):focus {
  outline: none; border-color: var(--bt-accent) !important;
  box-shadow: 0 0 0 4px rgba(61, 245, 138, 0.15);
}

/* ------------------------------------------------------------ mobile Apply bar */
.bt-mbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 55;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(21, 25, 31, 0.82); border-top: 1px solid var(--bt-line);
  -webkit-backdrop-filter: blur(16px) saturate(150%); backdrop-filter: blur(16px) saturate(150%);
  transform: translateY(110%); visibility: hidden;
  transition: transform 0.45s var(--bt-ease), visibility 0s linear 0.45s;
}
.bt-mbar.is-on { transform: none; visibility: visible; transition: transform 0.45s var(--bt-ease); }
.bt-mbar a {
  display: flex; align-items: center; justify-content: center; min-height: 52px; border-radius: 12px;
  background: var(--bt-accent); color: var(--bt-accent-ink) !important;
  font-family: inherit; font-size: 17px; font-weight: 700; text-decoration: none;
  box-shadow: 0 10px 30px rgba(61, 245, 138, 0.25);
}
@media (min-width: 761px) { .bt-mbar { display: none; } }
@media (max-width: 760px) {
  html.bt-has-mbar body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  /* on a phone the bottom bar carries Apply once you scroll, so the glass header
     drops its button and shrinks to one line */
  html.bt-has-mbar [data-bt="header"].is-scrolled [data-bt-cta] { display: none !important; }
}

/* ------------------------------------------------------------ plain pages (thank-you, 404) */
.bt-plain {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--bt-bg); color: var(--bt-text);
  font-family: 'Archivo', system-ui, sans-serif; -webkit-font-smoothing: antialiased;
}
.bt-plain a { color: var(--bt-text); text-decoration: none; }
.bt-plain-head nav { max-width: 1180px; margin: 0 auto; padding: 0 32px; min-height: 76px; display: flex; align-items: center; }
.bt-ty { flex: 1; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; padding: 56px 24px 88px; }
.bt-ty::before {
  content: ""; position: absolute; left: 50%; top: -260px; width: 1000px; height: 700px; transform: translateX(-50%); pointer-events: none;
  background: radial-gradient(50% 50% at 50% 50%, rgba(61, 245, 138, 0.16), rgba(61, 245, 138, 0) 70%);
}
.bt-ty-card { position: relative; max-width: 620px; display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; }
.bt-check {
  width: 92px; height: 92px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: rgba(61, 245, 138, 0.1); border: 1px solid rgba(61, 245, 138, 0.4);
  box-shadow: 0 0 70px rgba(61, 245, 138, 0.28);
}
.bt-check path { stroke-dasharray: 44; stroke-dashoffset: 0; }
@media (prefers-reduced-motion: no-preference) {
  .bt-check { animation: bt-pop 0.7s var(--bt-ease) both; }
  .bt-check path { stroke-dashoffset: 44; animation: bt-draw 0.8s 0.35s var(--bt-ease) forwards; }
  .bt-ty-card > :not(.bt-check) { animation: bt-rise 0.9s 0.25s var(--bt-ease) both; }
}
@keyframes bt-draw { to { stroke-dashoffset: 0; } }
.bt-ty h1 { margin: 0; font-size: clamp(40px, 6vw, 64px); font-weight: 900; line-height: 1; letter-spacing: -0.03em; }
.bt-ty p { margin: 0; font-size: 19px; line-height: 1.55; color: var(--bt-muted); }
.bt-404 { flex: 1; max-width: 40rem; margin: 0 auto; padding: 14vh 24px; }
.bt-404 h1 { font-size: clamp(34px, 5vw, 52px); font-weight: 900; letter-spacing: -0.03em; line-height: 1.05; margin: 0 0 18px; }
.bt-404 p { font-size: 18px; line-height: 1.6; color: var(--bt-muted); margin: 0 0 14px; }
.bt-404 a { display: inline-flex; align-items: center; min-height: 52px; padding: 0 24px; border-radius: 12px; background: var(--bt-accent); color: var(--bt-accent-ink); font-weight: 700; }

/* ------------------------------------------------------------ reduced motion: everything still, nothing hidden */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .bt-reveal { opacity: 1; transform: none; }
}

/* ------------------------------------------------------------ form: sending + booking step */
.bt-step[hidden] { display: none; }
.bt-steps .bt-step.is-active[hidden] { display: flex; }
.bt-sending .bt-step.is-active { opacity: 0.55; pointer-events: none; transition: opacity 0.3s var(--bt-ease); }
.bt-book-frame { display: block; width: 100%; min-height: 680px; border: 0; border-radius: 12px; background: var(--bt-bg); overflow: hidden; }

/* ------------------------------------------------------------ application questions */
.bt-lead { display: block; margin-bottom: 8px; font-size: 16px; font-weight: 500; line-height: 1.5; letter-spacing: 0; color: var(--bt-muted); }
.bt-hint { margin: -4px 0 4px; font-size: 16px; line-height: 1.5; color: var(--bt-dim); }
.bt-textq { display: flex; flex-direction: column; gap: 0; }
.bt-textq .bt-legend { align-items: flex-start; }
.bt-textarea {
  min-height: 132px; padding: 14px 16px; resize: vertical; box-sizing: border-box; width: 100%;
  background: var(--bt-bg); border: 1px solid var(--bt-line-2); border-radius: 10px;
  color: var(--bt-text); font-family: inherit; font-size: 16px; line-height: 1.5;
  transition: border-color 0.24s var(--bt-ease), box-shadow 0.24s var(--bt-ease);
}
.bt-textarea:focus { outline: none; border-color: var(--bt-accent); box-shadow: 0 0 0 4px rgba(61, 245, 138, 0.15); }
/* the big arrow under a written answer: only useful once the script runs the steps */
.bt-next-big { display: none; }
.bt-steps .bt-next-big {
  display: flex; align-items: center; justify-content: center; min-height: 56px; border: 0; border-radius: 12px; cursor: pointer;
  background: var(--bt-accent); color: var(--bt-accent-ink); box-shadow: 0 12px 40px rgba(61, 245, 138, 0.25);
  transition: transform 0.24s var(--bt-ease), box-shadow 0.24s var(--bt-ease);
}
@media (hover: hover) { .bt-steps .bt-next-big:hover { transform: translateY(-2px); box-shadow: 0 16px 48px rgba(61, 245, 138, 0.38); } }
.bt-steps .bt-legend .bt-lead { font-size: 16px; font-weight: 500; letter-spacing: 0; }

/* hero with no video yet: the section ends after the copy */
[data-bt-novideo] [data-bt="hero-copy"] { padding-bottom: 96px !important; }
/* a question with a lead-in line: the lead sits on its own row above the question */
.bt-legend { flex-wrap: wrap; }
.bt-legend .bt-lead { flex-basis: 100%; width: 100%; }
.bt-steps .bt-legend { display: block; }

/* the calendar step on a phone: the card widens to the screen edge (8px gutter)
   and drops most of its padding, because GHL's calendar needs about 320px to show
   all seven days */
@media (max-width: 480px) {
  .bt-booking-on {
    padding: 10px !important; margin-left: -24px !important; margin-right: -24px !important;
    max-width: none !important; border-radius: 14px !important;
  }
  .bt-booking-on .bt-form-head { padding: 6px 4px 0; }
  .bt-booking-on .bt-book-frame { border-radius: 10px; }
}

/* ------------------------------------------------------------ consent line under Apply */
.bt-consent { margin: 0; font-size: 16px; line-height: 1.5; color: var(--bt-dim); }
.bt-consent a { color: var(--bt-muted); text-decoration: underline; text-underline-offset: 2px; }
.bt-consent a:hover { color: var(--bt-accent); }

/* ------------------------------------------------------------ legal pages */
.bt-legal { flex: 1; width: 100%; max-width: 760px; margin: 0 auto; padding: 40px 32px 88px; box-sizing: border-box; }
.bt-legal h1 { margin: 0 0 8px; font-size: clamp(36px, 5vw, 52px); font-weight: 900; line-height: 1.05; letter-spacing: -0.03em; }
.bt-legal .bt-legal-date { margin: 0 0 32px; font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 16px; color: var(--bt-dim); }
.bt-legal h2 { margin: 40px 0 12px; font-size: 22px; font-weight: 800; letter-spacing: -0.01em; line-height: 1.25; }
.bt-legal p, .bt-legal li { font-size: 17px; line-height: 1.65; color: var(--bt-muted); }
.bt-legal p { margin: 0 0 14px; }
.bt-legal ul { margin: 0 0 14px; padding-left: 22px; }
.bt-legal li { margin-bottom: 8px; }
.bt-legal strong { color: var(--bt-text); }
.bt-legal code { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 16px; color: var(--bt-text); }
.bt-legal a { color: var(--bt-accent); text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 600px) { .bt-legal { padding: 28px 20px 72px; } }

/* ------------------------------------------------------------ the guarantee line */
/* a step smaller than the headline above it, on its own line */
[data-bt="guarantee"] { display: inline-block; margin-top: 0.3em; font-size: 0.72em; line-height: 1.18; letter-spacing: -0.02em; text-wrap: balance; }
/* "guarantee" in a green pill with white letters. The pill uses the design's
   deep green (#118A47 family) so white text stays readable; the glow is the
   bright accent. */
.bt-pill {
  display: inline-block; padding: 0.04em 0.34em 0.1em; margin: 0 0.04em;
  border-radius: 0.32em; color: #fff;
  background: linear-gradient(135deg, #15A052 0%, #0E7D3F 100%);
  box-shadow: 0 0 0 1px rgba(61, 245, 138, 0.55), 0 0 22px rgba(61, 245, 138, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}
@media (prefers-reduced-motion: no-preference) {
  .bt-pill { animation: bt-pill-glow 2.6s ease-in-out infinite alternate; }
}
@keyframes bt-pill-glow {
  from { box-shadow: 0 0 0 1px rgba(61, 245, 138, 0.45), 0 0 14px rgba(61, 245, 138, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.22); }
  to { box-shadow: 0 0 0 1px rgba(61, 245, 138, 0.7), 0 0 32px rgba(61, 245, 138, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.22); }
}
