/* Tool pages (director, LinkedIn, bank account, IFSC, GST lookups and the tools hub). Sits on bulkpe-aurora.css tokens;
   motion helpers in files/js/bulkpe-tool.js. Prefix: tl- */

.tl {
  --tl-night: #0c0f1d;
  --tl-night-2: #141a30;
  --tl-on-dark: rgba(255, 255, 255, 0.7);
  --tl-faint: rgba(255, 255, 255, 0.08);
  --tl-lilac: #c4b5fd;
  --tl-violet: #b9a3ff;
  --tl-mint: #5fe0cb;
  --tl-teal-soft: #d6f5ef;
  --tl-tint: #f3effe;
  --tl-field: #dcd7ef;
  --tl-error: #c8372d;
  --tl-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --tl-tick: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 12.5l3.2 3.2L17 9' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --tl-tick-mint: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 12.5l3.2 3.2L17 9' fill='none' stroke='%235fe0cb' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.tl-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Shared type and controls ---------- */

.tl-sec { padding: clamp(72px, 9vw, 120px) 0; scroll-margin-top: calc(var(--bh-header) + 12px); }
.tl-head { max-width: 640px; margin-bottom: clamp(32px, 4vw, 52px); }
.tl-eyebrow { margin: 0 0 14px; font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--bh-brand); }
.tl-kicker { margin: 0 0 18px; font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--tl-violet); }
.tl-h2 { margin: 0; font-size: clamp(30px, 3.8vw, 50px); font-weight: 700; line-height: 1.06; letter-spacing: -0.035em; color: var(--bh-ink); }
.tl-h2 em { font-style: normal; color: var(--bh-brand); }
.tl-sub { margin: 16px 0 0; max-width: 52ch; font-size: clamp(16px, 1.3vw, 18px); line-height: 1.6; color: var(--bh-ink-soft); }

.tl .tl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: none;
  font: 600 15px/1 var(--bh-font);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s var(--bh-ease), color 0.2s var(--bh-ease), border-color 0.2s var(--bh-ease), transform 0.2s var(--bh-ease);
}
.tl .tl-btn:active { transform: scale(0.98); }
.tl .tl-btn:disabled { cursor: progress; opacity: 0.7; }
.tl .tl-btn:focus-visible,
.tl-link:focus-visible,
.tl-how-steps button:focus-visible,
.tl-modal .upi-app:focus-visible { outline: 2px solid var(--bh-brand); outline-offset: 3px; }
.tl .tl-btn-ink { background: var(--bh-ink); color: #fff; }
.tl .tl-btn-ink:hover { background: var(--bh-brand-deep); color: #fff; }
.tl .tl-btn-ghost { border-color: var(--bh-line-strong); color: var(--bh-ink); }
.tl .tl-btn-ghost:hover { border-color: var(--bh-brand); color: var(--bh-brand-deep); }
.tl .tl-btn-light { background: #fff; color: var(--bh-ink); }
.tl .tl-btn-light:hover { background: var(--tl-tint); color: var(--bh-brand-deep); }
.tl .tl-btn-line { border-color: rgba(255, 255, 255, 0.28); color: #fff; }
.tl .tl-btn-line:hover { border-color: rgba(255, 255, 255, 0.6); color: #fff; }
.tl .tl-btn-wide { width: 100%; }
.tl .tl-btn.is-busy::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.35); border-top-color: #fff; animation: tl-busy 0.8s linear infinite; }
@keyframes tl-busy { to { transform: rotate(360deg); } }

.tl-link { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 600; color: var(--bh-brand-deep); text-decoration: none; }
.tl-link::after { content: "→"; transition: transform 0.2s var(--bh-ease); }
.tl-link:hover::after { transform: translateX(3px); }
.tl-link-light { color: #fff; }
.tl-cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 30px; }
.tl-cta-center { justify-content: center; }

.tl-ticks { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; }
.tl-ticks li { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; line-height: 1.5; }
.tl-ticks li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 2px; border-radius: 50%; background: rgba(13, 159, 140, 0.22) var(--tl-tick-mint) center / 100% no-repeat; }

/* ---------- Hero ---------- */

.tl-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(40px, 6vw, 80px) 0 clamp(56px, 7vw, 96px);
  background: linear-gradient(180deg, var(--tl-night) 0%, var(--tl-night-2) 100%);
  color: #fff;
}
/* MCA registry graph (drawn by bulkpe-tool.js): companies are squares, directors are dots */
.tl-graph { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
.tl-g-edges line { stroke: rgba(255, 255, 255, 0.075); stroke-width: 1; }
.tl-g-edges line.is-dim { stroke: rgba(255, 255, 255, 0.028); }
.tl-g-co { fill: rgba(255, 255, 255, 0.03); stroke: rgba(255, 255, 255, 0.2); stroke-width: 1; }
.tl-g-dir { fill: rgba(185, 163, 255, 0.5); }
.tl-g-co.is-dim,
.tl-g-dir.is-dim { opacity: 0.22; }
.tl-g-look { transition: opacity 0.4s var(--bh-ease); }
.tl-g-look.is-out { opacity: 0; }
.tl-g-look.is-under { opacity: 0.45; }
.tl-g-look.is-under.is-out { opacity: 0; }
.tl-g-seat { fill: none; stroke: var(--tl-mint); stroke-width: 1.5; animation: tl-g-draw 0.6s var(--bh-ease) both; }
.tl-g-co-on { fill: rgba(95, 224, 203, 0.14); stroke: var(--tl-mint); stroke-width: 1.2; animation: tl-g-in 0.4s var(--bh-ease) both; }
.tl-g-hit { animation: tl-g-in 0.45s var(--bh-ease) both; }
.tl-g-ring { fill: none; stroke: var(--tl-violet); stroke-width: 1.5; transform-box: fill-box; transform-origin: center; animation: tl-g-ping 1.6s var(--bh-ease) 2 both; }
.tl-g-dot { fill: #fff; }
.tl-g-hit.is-typed .tl-g-dot { fill: var(--tl-violet); }
.tl-g-din { font: 600 11px/1 var(--tl-mono); letter-spacing: 0.04em; fill: var(--tl-lilac); }
.tl-g-chip { animation: tl-g-in 0.45s 0.8s var(--bh-ease) both; }
.tl-g-chip rect { fill: rgba(13, 159, 140, 0.16); stroke: rgba(95, 224, 203, 0.55); }
.tl-g-chip text { font: 600 11px/1 var(--bh-font); fill: var(--tl-mint); }
.tl-g-hit.is-typed .tl-g-chip rect { fill: rgba(129, 90, 240, 0.18); stroke: rgba(185, 163, 255, 0.6); }
.tl-g-hit.is-typed .tl-g-chip text { fill: var(--tl-lilac); }
/* Network mode (people): a faint halo marks each profile; the second chip carries the email */
.tl-g-halo { fill: none; stroke: rgba(255, 255, 255, 0.14); stroke-width: 1; }
.tl-g-halo.is-dim { opacity: 0.22; }
/* Network lookups: the phone chip shows, then hands over to the email chip in the same row */
.tl-g-chip.is-swap { animation: tl-g-swap 1.9s 0.8s var(--bh-ease) both; }
.tl-g-chip.is-second { animation-delay: 2.5s; }
.tl-g-chip.is-second rect { fill: rgba(129, 90, 240, 0.18); stroke: rgba(185, 163, 255, 0.6); }
.tl-g-chip.is-second text { fill: var(--tl-lilac); }
@keyframes tl-g-draw { to { stroke-dashoffset: 0; } }
@keyframes tl-g-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes tl-g-swap {
  0% { opacity: 0; transform: translateY(4px); }
  22%, 76% { opacity: 1; transform: none; }
  100% { opacity: 0; transform: translateY(-4px); }
}
@keyframes tl-g-ping { from { opacity: 0.9; transform: scale(0.5); } to { opacity: 0; transform: scale(1.7); } }

.tl-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 480px); gap: clamp(32px, 5vw, 72px); align-items: center; }
.tl-h1 { margin: 0 0 22px; font-size: clamp(38px, 4.8vw, 66px); font-weight: 700; line-height: 1.02; letter-spacing: -0.045em; color: #fff; }
.tl-h1 em { font-style: normal; color: var(--tl-lilac); }
.tl-line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.tl-line > span { display: inline-block; }
.tl-lede { margin: 0 0 24px; max-width: 46ch; font-size: clamp(16px, 1.3vw, 18px); line-height: 1.6; color: var(--tl-on-dark); }
.tl-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.tl-points li { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; color: rgba(255, 255, 255, 0.86); }
.tl-points li::before { content: ""; flex: none; width: 20px; height: 20px; border-radius: 50%; background: rgba(13, 159, 140, 0.25) var(--tl-tick-mint) center / 100% no-repeat; }
.tl-hero-bulk { margin: 26px 0 0; font-size: 14px; color: rgba(255, 255, 255, 0.55); }
.tl-hero-bulk a { color: #fff; font-weight: 600; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.35); text-underline-offset: 3px; }
.tl-hero-bulk a:hover { text-decoration-color: #fff; }


/* IFSC branch board: split-flap rows under the hero copy (after the tool on phones), over a faint
   wall of flap tiles. bulkpe-tool.js flips the rows; a checked IFSC lands on the top row. */
.tl-hero-board::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='40'%3E%3Crect x='2' y='3' width='26' height='34' rx='4' fill='%23fff' fill-opacity='.028'/%3E%3Cpath d='M2 20h26' stroke='%23000' stroke-opacity='.35'/%3E%3C/svg%3E"); -webkit-mask-image: linear-gradient(200deg, #000 10%, transparent 75%); mask-image: linear-gradient(200deg, #000 10%, transparent 75%); }
.tl-hero-board .tl-hero-grid { grid-template-areas: "copy tool" "board tool"; row-gap: 30px; }
.tl-hero-board .tl-hero-copy { grid-area: copy; align-self: end; }
.tl-hero-board .tl-tool { grid-area: tool; }
.tl-board { grid-area: board; align-self: start; max-width: 600px; }
.tl-board-head,
.tl-board-row { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 0 22px; align-items: center; }
.tl-board-head { padding-bottom: 8px; font: 600 10.5px/1 var(--tl-mono); letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255, 255, 255, 0.38); }
.tl-board-rows { list-style: none; margin: 0; padding: 0; }
.tl-board-row { padding: 6px 0; border-top: 1px solid rgba(255, 255, 255, 0.06); }
.tl-board-row > div { min-width: 0; display: grid; gap: 3px; transition: opacity 0.25s var(--bh-ease); }
.tl-board-row b,
.tl-board-row small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-board-row b { font-size: 13.5px; font-weight: 600; color: rgba(255, 255, 255, 0.86); }
.tl-board-row small { font-size: 12px; color: rgba(255, 255, 255, 0.5); }
.tl-board-row.is-swap > div { opacity: 0; }
.tl-board-row.is-typed small { color: var(--tl-lilac); }
.tl-board-row.is-found small { color: var(--tl-mint); }
.tl-flaps { display: flex; gap: 3px; }
.tl-flaps i { position: relative; width: 22px; height: 30px; display: grid; place-items: center; border-radius: 4px; background: #1b2140; box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.4), 0 1px 0 rgba(255, 255, 255, 0.04); font: 700 15px/1 var(--tl-mono); font-style: normal; color: #e9e6ff; }
.tl-flaps i::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(0, 0, 0, 0.5); }
.tl-flaps i:nth-child(-n + 4) { color: var(--tl-lilac); }
.tl-flaps i:nth-child(5) { color: rgba(255, 255, 255, 0.4); }
.tl-flaps i:nth-child(n + 6) { color: var(--tl-mint); }
.tl-board-row.is-typed .tl-flaps i { background: #2c2462; }
.tl-board-row.is-found .tl-flaps i { background: #123c3c; }
.tl-board .tl-demo-note { margin-top: 8px; text-align: left; }
/* Each flip swaps between two identical keyframes so the animation restarts without a reflow */
.tl-flaps i.f-a { animation: tl-flap-a 0.11s linear; }
.tl-flaps i.f-b { animation: tl-flap-b 0.11s linear; }
@keyframes tl-flap-a { 50% { transform: scaleY(0.2); } }
@keyframes tl-flap-b { 50% { transform: scaleY(0.2); } }
.tl-board-row > span:not(.tl-flaps) { font-size: 13.5px; font-weight: 600; color: rgba(255, 255, 255, 0.82); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: opacity 0.25s var(--bh-ease); }
.tl-board-row > span:nth-child(n + 3) { font-weight: 500; color: rgba(255, 255, 255, 0.52); }
.tl-board-row.is-swap > span:not(.tl-flaps) { opacity: 0; }
.tl-board-row.is-typed .tl-flaps i { background: #2c2462; }
.tl-board-row.is-typed > span:nth-child(3) { color: var(--tl-lilac); }
.tl-board .tl-demo-note { margin-top: 10px; }

/* GST: scattered invoices; a lookup stamps one ACTIVE (bulkpe-tool.js draws them) */
.tl-s-card rect.tl-s-paper { fill: rgba(255, 255, 255, 0.035); stroke: rgba(255, 255, 255, 0.13); stroke-width: 1; }
.tl-s-bar { fill: rgba(255, 255, 255, 0.09); }
.tl-s-cap { font: 700 6.5px/1 var(--tl-mono); letter-spacing: 0.16em; fill: rgba(255, 255, 255, 0.32); }
.tl-s-gst { font: 600 8.5px/1 var(--tl-mono); letter-spacing: 0.04em; fill: rgba(255, 255, 255, 0.5); }
.tl-s-amt { font: 700 9px/1 var(--bh-font); fill: rgba(255, 255, 255, 0.5); }
.tl-s-card.is-dim { opacity: 0.3; }
.tl-s-hit .tl-s-gst { fill: #fff; }
.tl-s-hl { fill: rgba(95, 224, 203, 0.18); transform-box: fill-box; transform-origin: left center; animation: tl-s-hl 0.5s 0.15s var(--bh-ease) both; }
.tl-s-hit { transition: opacity 0.45s var(--bh-ease); }
.tl-s-hit.is-out { opacity: 0; }
.tl-s-hit.is-under { opacity: 0.45; }
.tl-s-hit.is-under.is-out { opacity: 0; }
.tl-s-stamp { transform-box: fill-box; transform-origin: center; animation: tl-s-stamp 0.5s 0.45s cubic-bezier(0.3, 1.4, 0.5, 1) both; }
.tl-s-stamp circle { fill: rgba(13, 159, 140, 0.16); stroke: var(--tl-mint); stroke-width: 2; }
.tl-s-stamp circle + circle { fill: none; stroke-width: 1; stroke-dasharray: 2 2.5; }
.tl-s-stamp text { font: 800 11px/1 var(--bh-font); letter-spacing: 0.08em; fill: var(--tl-mint); text-anchor: middle; }
.tl-s-stamp text + text { font: 700 5.5px/1 var(--tl-mono); letter-spacing: 0.14em; }
.tl-s-hit.is-typed .tl-s-stamp circle { fill: rgba(129, 90, 240, 0.2); stroke: var(--tl-violet); }
.tl-s-hit.is-typed .tl-s-stamp text { fill: var(--tl-lilac); }
.tl-s-hit.is-typed .tl-s-hl { fill: rgba(185, 163, 255, 0.2); }
@keyframes tl-s-stamp { 0% { opacity: 0; transform: scale(1.9) rotate(-4deg); } 100% { opacity: 1; transform: none; } }
@keyframes tl-s-hl { from { transform: scaleX(0); } }

/* Bank account: payment rails drawn as a transit map; a ₹1 pulse runs to a bank and a name comes back */
.tl-r-lane { fill: none; stroke-width: 2; stroke-linejoin: round; stroke: rgba(185, 163, 255, 0.16); }
.tl-r-lane.is-b { stroke: rgba(95, 224, 203, 0.13); }
.tl-r-lane.is-c { stroke: rgba(255, 255, 255, 0.08); }
.tl-r-stop { fill: var(--tl-night); stroke: rgba(255, 255, 255, 0.32); stroke-width: 1.5; }
.tl-r-stop.is-dim { opacity: 0.35; }
.tl-r-code { font: 600 9.5px/1 var(--tl-mono); letter-spacing: 0.06em; fill: rgba(255, 255, 255, 0.36); text-anchor: middle; }
.tl-r-run { transition: opacity 0.45s var(--bh-ease); }
.tl-r-run.is-out { opacity: 0; }
.tl-r-run.is-under { opacity: 0.45; }
.tl-r-run.is-under.is-out { opacity: 0; }
.tl-r-trail { fill: none; stroke: var(--tl-mint); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.tl-r-dot { fill: #fff; }
.tl-r-glow { fill: rgba(95, 224, 203, 0.25); }
.tl-r-tag rect { fill: var(--bh-teal); }
.tl-r-tag text { font: 700 9px/1 var(--bh-font); fill: #fff; text-anchor: middle; }
.tl-r-ring { fill: none; stroke: var(--tl-mint); stroke-width: 1.5; transform-box: fill-box; transform-origin: center; animation: tl-g-ping 1.4s var(--bh-ease) 2 both; }
.tl-r-chip { animation: tl-g-in 0.45s var(--bh-ease) both; }
.tl-r-chip rect { fill: rgba(12, 15, 29, 0.92); stroke: rgba(95, 224, 203, 0.55); }
.tl-r-chip text { font: 700 12px/1 var(--bh-font); letter-spacing: 0.04em; fill: #fff; }
.tl-r-chip text + text { font: 600 9.5px/1 var(--tl-mono); letter-spacing: 0.04em; fill: var(--tl-mint); }
.tl-r-run.is-typed .tl-r-chip rect { stroke: rgba(185, 163, 255, 0.6); }
.tl-r-run.is-typed .tl-r-chip text + text { fill: var(--tl-lilac); }
.tl-r-run.is-typed .tl-r-ring { stroke: var(--tl-violet); }
.tl-r-run.is-less .tl-r-trail { stroke: var(--tl-violet); stroke-dasharray: 2 6; }
.tl-r-run.is-less .tl-r-glow { fill: rgba(185, 163, 255, 0.25); }

/* Entrance: CSS only, gated on html.tl-motion (set in <head> when motion is allowed) */
html.tl-motion .tl-line > span { animation: tl-line 0.85s var(--bh-ease) both; }
html.tl-motion .tl-line:nth-child(2) > span { animation-delay: 0.08s; }
html.tl-motion .tl-line:nth-child(3) > span { animation-delay: 0.16s; }
html.tl-motion .tl-in { animation: tl-rise 0.7s var(--bh-ease) both; }
html.tl-motion .tl-d1 { animation-delay: 0.05s; }
html.tl-motion .tl-d2 { animation-delay: 0.28s; }
html.tl-motion .tl-d3 { animation-delay: 0.36s; }
html.tl-motion .tl-d4 { animation-delay: 0.44s; }
@keyframes tl-line { from { transform: translateY(110%); } }
@keyframes tl-rise { from { opacity: 0; transform: translateY(18px); } }

/* ---------- Tool card ---------- */

.tl-tool {
  position: relative;
  min-height: 470px;
  padding: 22px 24px 24px;
  border-radius: 24px;
  background: #fff;
  color: var(--bh-ink);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5) inset, 0 40px 80px -36px rgba(0, 0, 0, 0.6);
  scroll-margin-top: calc(var(--bh-header) + 16px);
}
.tl-tool-head { margin: 0 -24px 22px; padding: 0 24px 18px; border-bottom: 1px solid var(--bh-line); }
.tl-stepper { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 8px; counter-reset: none; }
.tl-stepper li { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--bh-muted); white-space: nowrap; }
.tl-stepper li + li::before { content: ""; width: clamp(10px, 2.4vw, 26px); height: 2px; border-radius: 2px; background: var(--bh-line-strong); }
.tl-stepper li span {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f1f0f6;
  color: var(--bh-muted);
  font-size: 12px;
  font-weight: 700;
  transition: background 0.3s var(--bh-ease), color 0.3s var(--bh-ease);
}
.tl-stepper li.is-on { color: var(--bh-ink); }
.tl-stepper li.is-on span { background: var(--bh-brand); color: #fff; }
.tl-stepper li.is-done span { background: var(--bh-teal) var(--tl-tick) center / 70% no-repeat; color: transparent; }
.tl-stepper li.is-done + li::before,
.tl-stepper li.is-done::before { background: var(--bh-teal); }

.tl-pane[hidden] { display: none; }
.tl-pane.is-entering { animation: tl-pane-in 0.4s var(--bh-ease) both; }
@keyframes tl-pane-in { from { opacity: 0; transform: translateY(10px); } }
.tl-pane-title { margin: 0; font-size: 21px; font-weight: 700; line-height: 1.25; letter-spacing: -0.02em; color: var(--bh-ink); }
.tl-pane-title:focus { outline: none; }
.tl-pane-text { margin: 6px 0 20px; font-size: 14px; line-height: 1.55; color: var(--bh-ink-soft); }

.tl-label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 600; color: var(--bh-ink); }
.tl-label span { font-weight: 500; color: var(--bh-muted); }
.tl-field + .tl-field { margin-top: 14px; }
.tl-input {
  display: block;
  box-sizing: border-box;
  width: 100%;
  height: 52px;
  padding: 0 16px;
  border: 1.5px solid var(--tl-field);
  border-radius: 12px;
  background: #fff;
  color: var(--bh-ink);
  font: 500 16px/1 var(--bh-font);
  transition: border-color 0.2s var(--bh-ease), box-shadow 0.2s var(--bh-ease);
}
.tl-input::placeholder { color: #a7a3b8; }
.tl-input:focus { outline: none; border-color: var(--bh-brand); box-shadow: 0 0 0 4px rgba(129, 90, 240, 0.16); }
.tl-input[aria-invalid="true"] { border-color: var(--tl-error); }

/* DIN: a real input laid over eight display cells */
.tl-din { position: relative; }
.tl-din-cells { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 6px; }
.tl-din-cells span {
  position: relative;
  height: 56px;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--tl-field);
  border-radius: 12px;
  background: #faf9fd;
  font: 700 22px/1 var(--tl-mono);
  color: var(--bh-ink);
  transition: border-color 0.2s var(--bh-ease), background 0.2s var(--bh-ease), transform 0.2s var(--bh-ease);
}
.tl-din-cells span.is-filled { background: #fff; border-color: #b9a8f5; }
html.tl-motion .tl-din-cells span.is-filled { animation: tl-cell 0.25s var(--bh-ease); }
@keyframes tl-cell { from { transform: translateY(4px); } }
.tl-din-cells span.is-caret::after { content: ""; width: 2px; height: 24px; border-radius: 2px; background: var(--bh-brand); animation: tl-caret 1s steps(1) infinite; }
@keyframes tl-caret { 50% { opacity: 0; } }
.tl-din:focus-within .tl-din-cells span { border-color: #c9bdf7; }
.tl-din:focus-within .tl-din-cells span.is-filled { border-color: var(--bh-brand); }
.tl-din.is-complete .tl-din-cells span { border-color: var(--bh-teal); background: #f2fbf9; }
.tl-din-input {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: transparent;
  caret-color: transparent;
  font-size: 16px;
  cursor: text;
}
.tl-din-input::placeholder { color: transparent; }
.tl-din-input::selection { background: transparent; }
.tl-din-input:focus { outline: none; }
.tl-din-input:focus-visible { box-shadow: 0 0 0 4px rgba(129, 90, 240, 0.16); }

.tl-hint { margin: 10px 0 0; font-size: 12.5px; color: var(--bh-muted); }
.tl-hint span { font-weight: 700; color: var(--bh-ink); font-variant-numeric: tabular-nums; }
.tl-error { margin: 6px 0 0; font-size: 13px; font-weight: 600; color: var(--tl-error); }
.tl-error:empty { display: none; }
.tl-error-box { margin-top: 14px; padding: 10px 12px; border-radius: 10px; background: #fdf1f0; }
.tl-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 24px; }
.tl-actions-end { justify-content: flex-end; }
.tl-actions .tl-btn-ink { min-width: 150px; }

/* Review */
.tl-summary { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; margin: 16px 0; }
.tl-summary span { min-width: 0; padding: 10px 12px; border-radius: 12px; background: var(--bh-bg); }
.tl-summary small { display: block; font-size: 11.5px; color: var(--bh-muted); }
.tl-summary b { display: block; font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.tl-summary-3 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.tl-summary-3 span:first-child { grid-column: 1 / -1; }

/* Service picker: option cards with a live price (LinkedIn lookup) */
.tl-svc { min-width: 0; margin: 18px 0 0; padding: 0; border: 0; }
.tl-svc legend { padding: 0; }
.tl-svc-opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tl-svc-opt { position: relative; display: flex; align-items: center; gap: 12px; padding: 14px; border: 1.5px solid var(--tl-field); border-radius: 14px; background: #fff; cursor: pointer; transition: border-color 0.2s var(--bh-ease), background 0.2s var(--bh-ease), box-shadow 0.2s var(--bh-ease); }
.tl-svc-opt:hover { border-color: #b9a8f5; }
.tl-svc-opt input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.tl-svc-box { flex: none; width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid #c9c3dd; background: #fff; transition: background 0.2s var(--bh-ease), border-color 0.2s var(--bh-ease); }
.tl-svc-opt input:checked ~ .tl-svc-box { border-color: var(--bh-brand); background: var(--bh-brand) var(--tl-tick) center / 100% no-repeat; }
.tl-svc-opt:has(input:checked) { border-color: var(--bh-brand); background: var(--tl-tint); }
.tl-svc-opt:has(input:focus-visible) { box-shadow: 0 0 0 4px rgba(129, 90, 240, 0.18); }
.tl-svc-text { min-width: 0; }
.tl-svc-text strong { display: block; font-size: 14.5px; font-weight: 700; color: var(--bh-ink); }
.tl-svc-text small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--bh-muted); font-variant-numeric: tabular-nums; }
.tl-svc + .tl-error { margin-top: 8px; }
/* Radio variant (bank account check type): a ring that fills with a dot */
.tl-svc-radio { border-radius: 50%; }
.tl-svc-opt input:checked ~ .tl-svc-radio { background: #fff; box-shadow: inset 0 0 0 5px var(--bh-brand); }
.tl-result-view .tl-facts { margin-top: 6px; }
.tl-field-gap { margin-top: 18px; }
.tl-bill { width: 100%; border-collapse: collapse; font-size: 14px; }
.tl-bill th { padding: 10px 0; text-align: left; font-weight: 500; color: var(--bh-ink-soft); }
.tl-bill td { padding: 10px 0; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.tl-bill tr + tr th,
.tl-bill tr + tr td { border-top: 1px solid var(--bh-line); }
.tl-bill-total th,
.tl-bill-total td { font-size: 17px; font-weight: 700; color: var(--bh-ink); }
.tl-note { margin: 14px 0 0; font-size: 12.5px; line-height: 1.55; color: var(--bh-muted); }
.tl-note a { color: var(--bh-brand-deep); font-weight: 600; }


/* ---------- Free lookups (IFSC, GST): one form, the result fills in below it ---------- */

.tl-tool-free { min-height: 0; }
.tl-free-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 -24px 20px; padding: 0 24px 16px; border-bottom: 1px solid var(--bh-line); }
.tl-free-head .tl-pane-title { font-size: 19px; }
.tl-badges { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tl-badges li { padding: 4px 9px; border-radius: 999px; background: var(--tl-teal-soft); color: #0b6e61; font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.tl-badges li + li { background: var(--tl-tint); color: var(--bh-brand-deep); }
.tl .tl-input-code { font: 600 18px/1 var(--tl-mono); letter-spacing: 0.08em; text-transform: uppercase; }
.tl .tl-input-code::placeholder { font: 500 16px/1 var(--bh-font); letter-spacing: 0; text-transform: none; }

/* Live code readout: what's typed, split into its labelled parts */
.tl-anatomy { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tl-seg { display: grid; gap: 4px; padding: 8px 10px 7px; border-radius: 10px; background: #f6f5fb; box-shadow: inset 0 0 0 1px var(--bh-line); transition: background 0.25s var(--bh-ease), box-shadow 0.25s var(--bh-ease); }
.tl-seg b { font: 600 14px/1 var(--tl-mono); letter-spacing: 0.06em; color: #b3afc4; white-space: nowrap; }
.tl-seg small { font-size: 10.5px; font-weight: 600; color: var(--bh-muted); white-space: nowrap; }
.tl-seg.is-part b,
.tl-seg.is-full b { color: var(--bh-ink); }
.tl-seg.is-full { background: #f2fbf9; box-shadow: inset 0 0 0 1px rgba(13, 159, 140, 0.45); }
.tl-seg.is-full small { color: #0b6e61; }
.tl-seg.is-bad { background: #fdecea; box-shadow: inset 0 0 0 1px rgba(200, 55, 45, 0.4); }
.tl-seg.is-bad small { color: var(--tl-error); }
.tl-anatomy-note { min-height: 20px; margin: 8px 0 0; font-size: 13px; line-height: 1.5; color: var(--bh-ink-soft); }
.tl-anatomy-note b { color: var(--bh-ink); }

.tl-result-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 24px; }
.tl-result-top h3 { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--bh-muted); }
.tl-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: #f1f0f6; color: var(--bh-muted); font-size: 12px; font-weight: 700; white-space: nowrap; }
.tl-chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.tl-chip[data-tone="ok"] { background: var(--tl-teal-soft); color: #0b6e61; }
.tl-chip[data-tone="bad"] { background: #fdecea; color: var(--tl-error); }
.tl-chip[data-tone="busy"] { background: var(--tl-tint); color: var(--bh-brand-deep); }
.tl-chip[data-tone="busy"]::before { animation: tl-blink 0.9s ease-in-out infinite alternate; }
@keyframes tl-blink { to { opacity: 0.25; } }
.tl-facts { margin: 12px 0 0; padding: 0; border-top: 1px solid var(--bh-line); }
.tl-facts > div { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--bh-line); }
.tl-facts dt { font-size: 13px; color: var(--bh-muted); }
.tl-facts dd { margin: 0; font-size: 14.5px; font-weight: 600; line-height: 1.45; color: var(--bh-ink); overflow-wrap: anywhere; transition: opacity 0.25s var(--bh-ease); }
.tl-facts.is-empty dd { color: #b3afc4; font-weight: 500; }
.tl-facts.is-busy dd { opacity: 0.35; }
.tl-facts-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; }
.tl-facts-foot p { margin: 0; font-size: 12.5px; color: var(--bh-muted); }
.tl .tl-btn-sm { height: 38px; padding: 0 14px; font-size: 13.5px; }

/* Pay */
.tl-pay-grid { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 20px; align-items: center; margin-top: 16px; }
.tl-qr-card { position: relative; box-sizing: content-box; width: 187px; height: 187px; padding: 14px; border-radius: 16px; background: #fff; box-shadow: 0 0 0 1px var(--bh-line), 0 14px 30px -20px rgba(22, 27, 46, 0.4); }
.tl-qr { display: grid; place-items: center; width: 187px; height: 187px; }
.tl-qr img,
.tl-qr canvas { display: block; width: 187px !important; height: 187px !important; image-rendering: pixelated; }
.tl-qr-fail { margin: 0; padding: 16px; font-size: 13px; line-height: 1.5; text-align: center; color: var(--bh-ink-soft); }
.tl-amount small { display: block; font-size: 12px; color: var(--bh-muted); }
.tl-amount b { display: block; font-size: 30px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.tl-amount span { display: block; font-size: 12.5px; color: var(--bh-ink-soft); }
.tl-timer { display: flex; align-items: center; gap: 10px; margin-top: 16px; }
.tl-timer svg { flex: none; width: 34px; height: 34px; transform: rotate(-90deg); }
.tl-timer circle { fill: none; stroke: #ece9f5; stroke-width: 4; }
.tl-timer .tl-timer-ring { stroke: var(--bh-brand); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 0; transition: stroke-dashoffset 1s linear; }
.tl-timer p { margin: 0; font-size: 13px; font-weight: 600; color: var(--bh-ink); font-variant-numeric: tabular-nums; }
.tl-wait { display: flex; align-items: center; gap: 8px; margin: 12px 0 0; font-size: 13px; color: var(--bh-ink-soft); }
.tl-wait i { width: 8px; height: 8px; border-radius: 50%; background: var(--bh-brand); }
html.tl-motion .tl-wait i { animation: tl-blink 1.4s ease-in-out infinite; }
@keyframes tl-blink { 50% { opacity: 0.25; } }
.tl-pay-help { margin: 16px 0 0; font-size: 13px; color: var(--bh-ink-soft); }
.tl-apps { list-style: none; margin: 10px 0 0; padding: 0; display: flex; align-items: center; gap: 8px; }
.tl-apps img { display: block; width: 26px; height: 26px; border-radius: 7px; }
.tl-apps-more { font-size: 12.5px; color: var(--bh-muted); }
/* Scoped under .tl so these outrank .tl .tl-btn's display */
.tl .tl-mobile-only { display: none; }
.tl .tl-tool.is-mobile .tl-mobile-only { display: flex; margin-top: 18px; }
.tl .tl-tool.is-mobile .tl-desktop-only { display: none; }
.tl-tool.is-mobile .tl-pay-grid { grid-template-columns: minmax(0, 1fr); }

/* Result */
.tl-status { position: relative; width: 72px; height: 72px; margin-bottom: 16px; }
.tl-status > span { position: absolute; inset: 0; display: none; }
.tl-status[data-state="progress"] .tl-status-spin,
.tl-status[data-state="success"] .tl-status-tick,
.tl-status[data-state="failed"] .tl-status-x { display: block; }
.tl-status-spin {
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 50%, var(--bh-brand) 0 5px, transparent 5.5px),
    radial-gradient(circle at 50% 50%, var(--bh-brand) 0 5px, transparent 5.5px),
    radial-gradient(circle at 70% 50%, var(--bh-brand) 0 5px, transparent 5.5px),
    var(--tl-tint);
}
html.tl-motion .tl-status-spin { animation: tl-blink 1.2s ease-in-out infinite; }
.tl-status-tick:empty { border-radius: 50%; background: var(--bh-teal) var(--tl-tick) center / 60% no-repeat; }
.tl-status-x { border-radius: 50%; background: #fdecea url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 8l8 8M16 8l-8 8' fill='none' stroke='%23c8372d' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") center / 55% no-repeat; }
.tl-result-view { margin-top: 14px; }
.tl-result-msg { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--bh-ink-soft); }
.tl-result-row { padding: 12px 0; border-top: 1px solid var(--bh-line); }
.tl-result-row:first-child { border-top: 0; padding-top: 0; }
.tl-result-row > span { display: block; font-size: 12px; color: var(--bh-muted); }
.tl-result-row p { margin: 2px 0 0; font-size: 15px; font-weight: 600; }
.tl-result-row.is-big p { font-size: clamp(26px, 3vw, 32px); font-weight: 700; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; color: var(--bh-ink); }
.tl-copy { height: 40px; margin-top: 4px; padding: 0 16px; font-size: 13.5px; }
/* A result value with its own Copy button on the same line (LinkedIn: phone and email) */
.tl-result-row.has-copy { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; align-items: center; }
.tl-result-row.has-copy > span { grid-column: 1 / -1; }
.tl-result-row.has-copy .tl-copy { margin-top: 2px; }
.tl-result-row.is-big.is-text p { font-size: clamp(17px, 2.2vw, 22px); overflow-wrap: break-word; }
.tl-result-info[hidden],
.tl-refund[hidden] { display: none; }
.tl-result-info p { margin: 16px 0 0; padding: 12px 14px; border-radius: 12px; background: var(--bh-bg); font-size: 13.5px; color: var(--bh-ink-soft); }
.tl-result-info b { color: var(--bh-ink); overflow-wrap: anywhere; }
.tl-refund { display: flex; align-items: center; gap: 12px; margin-top: 16px; padding: 12px 14px; border-radius: 12px; background: var(--tl-teal-soft); }
.tl-refund img { flex: none; width: 36px; height: 36px; }
.tl-refund p { margin: 0; font-size: 13.5px; line-height: 1.5; color: #0b5f54; }

/* iPhone UPI app chooser */
.tl-modal { position: fixed; inset: 0; z-index: 13000; display: flex; align-items: flex-end; justify-content: center; padding: 16px; background: rgba(12, 15, 29, 0.6); }
.tl-modal[hidden] { display: none; }
.tl-modal-card { width: min(420px, 100%); padding: 20px; border-radius: 20px; background: #fff; animation: tl-pane-in 0.3s var(--bh-ease) both; }
.tl-modal-title { margin: 0 0 14px; font-size: 18px; font-weight: 700; }
.tl-modal-apps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.tl-modal .upi-app { display: grid; place-items: center; height: 64px; padding: 10px; border: 1px solid var(--bh-line-strong); border-radius: 14px; background: #fff; cursor: pointer; }
.tl-modal .upi-app img { max-width: 96px; max-height: 34px; width: auto; height: auto; object-fit: contain; }
body.tl-modal-open { overflow: hidden; }

/* ---------- Powered by ---------- */

.tl-banks { background: #fff; border-bottom: 1px solid var(--bh-line); padding: 24px 0; }
.tl-banks-row { display: flex; align-items: center; gap: 32px; }
.tl-banks-row p { margin: 0; flex: none; font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--bh-muted); }
.tl-banks-row ul { list-style: none; margin: 0; padding: 0; flex: 1; display: flex; align-items: center; justify-content: space-around; gap: 28px; }
.tl-banks-row img { display: block; height: 28px; width: auto; filter: grayscale(1); opacity: 0.6; transition: filter 0.25s var(--bh-ease), opacity 0.25s var(--bh-ease); }
.tl-banks-row li:hover img { filter: none; opacity: 1; }

/* ---------- Code anatomy (IFSC, GSTIN): the code set large, each part in its own colour ---------- */

.tl-code-anat { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.14em; margin: 0 0 clamp(28px, 4vw, 48px); font: 700 clamp(34px, 7.4vw, 96px)/1 var(--tl-mono); letter-spacing: 0.04em; }
.tl-code-anat span { padding: 0.12em 0.2em; border-radius: 0.16em; }
.tl-feats.tl-feats-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tl-feats.tl-feats-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tl-anat-key { justify-self: start; margin-bottom: 10px; padding: 7px 11px; border-radius: 10px; font: 700 18px/1 var(--tl-mono); letter-spacing: 0.06em; }
.tl-anat-keys { display: flex; gap: 6px; margin-bottom: 10px; }
.tl-anat-keys .tl-anat-key { margin-bottom: 0; }
.tl-code-anat .is-a,
.tl-anat-key.is-a,
.tl-demo-segs .is-a { background: var(--tl-tint); color: var(--bh-brand-deep); }
.tl-code-anat .is-b,
.tl-anat-key.is-b,
.tl-demo-segs .is-b { background: #f1f0f6; color: var(--bh-muted); }
.tl-code-anat .is-c,
.tl-anat-key.is-c,
.tl-demo-segs .is-c { background: var(--tl-teal-soft); color: #0b6e61; }
.tl-code-anat .is-d,
.tl-anat-key.is-d,
.tl-demo-segs .is-d { background: var(--bh-ink); color: #fff; }
.tl-demo-segs { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.tl-demo-segs span { display: grid; gap: 5px; padding: 10px 12px; border-radius: 10px; text-align: center; }
.tl-demo-segs b { font: 700 20px/1 var(--tl-mono); letter-spacing: 0.04em; }
.tl-demo-segs small { font-size: 11px; font-weight: 600; opacity: 0.8; }
.tl-demo-bank { font-size: clamp(22px, 2.6vw, 28px); font-weight: 700; letter-spacing: -0.01em; text-align: center; }
.tl-demo-status { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--tl-teal-soft); color: #0b6e61; font-size: 13px; font-weight: 700; }
.tl-demo-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }

/* ---------- How it works ---------- */

.tl-how { background: var(--bh-bg); }
.tl-how-grid { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.tl-how-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.tl-how-steps button {
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  column-gap: 10px;
  padding: 16px 18px 18px;
  border: 0;
  border-radius: 16px;
  background: transparent;
  color: var(--bh-ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 0.25s var(--bh-ease), box-shadow 0.25s var(--bh-ease);
}
.tl-how-steps button:hover { background: rgba(255, 255, 255, 0.7); }
.tl-how-n { grid-row: span 2; padding-top: 2px; font: 700 13px/1.3 var(--tl-mono); color: var(--bh-muted); }
.tl-how-steps strong { font-size: 17px; font-weight: 700; }
.tl-how-steps button > span:not(.tl-how-n) { font-size: 14px; line-height: 1.5; color: var(--bh-ink-soft); }
.tl-how-steps li.is-on button { background: #fff; box-shadow: 0 0 0 1px var(--bh-line), 0 14px 32px -22px rgba(22, 27, 46, 0.35); }
.tl-how-steps li.is-on .tl-how-n { color: var(--bh-brand); }
.tl-how-bar { position: absolute; left: 68px; right: 18px; bottom: 8px; height: 2px; border-radius: 2px; background: var(--bh-brand); transform: scaleX(0); transform-origin: left center; opacity: 0; }
.tl-how-grid.is-auto li.is-on .tl-how-bar { opacity: 1; animation: tl-prog 3.8s linear forwards; }
.tl-how-grid.is-paused li.is-on .tl-how-bar { animation-play-state: paused; }
@keyframes tl-prog { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.tl-how-stage { padding: 22px; border-radius: 24px; background: var(--bh-navy); }
.tl-device { position: relative; height: 300px; border-radius: 18px; background: #fff; overflow: hidden; }
.tl-scene { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 24px; opacity: 0; visibility: hidden; transition: opacity 0.35s var(--bh-ease), visibility 0.35s; }
.tl-scene.is-on { opacity: 1; visibility: visible; }
.tl-scene-label { align-self: stretch; font-size: 12px; font-weight: 600; color: var(--bh-muted); }
.tl-demo-cells { align-self: stretch; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 5px; }
.tl-demo-cells span { height: 48px; display: grid; place-items: center; border: 1.5px solid var(--bh-teal); border-radius: 10px; background: #f2fbf9; font: 700 20px/1 var(--tl-mono); }
.tl-demo-ok,
.tl-demo-paid { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: var(--tl-teal-soft); color: #0b6e61; font-size: 12.5px; font-weight: 600; }
.tl-demo-ok::before,
.tl-demo-paid::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--bh-teal) var(--tl-tick) center / 100% no-repeat; }
.tl-demo-field { align-self: stretch; height: 46px; display: flex; align-items: center; padding: 0 14px; border: 1.5px solid var(--tl-field); border-radius: 12px; font: 600 15px/1 var(--tl-mono); }
.tl-type { white-space: nowrap; }
.tl-demo-qr { position: relative; width: 150px; height: 150px; padding: 8px; border-radius: 12px; box-shadow: 0 0 0 1px var(--bh-line); }
.tl-demo-qr svg { display: block; width: 100%; height: 100%; }
.tl-demo-qr i { position: absolute; left: 8px; right: 8px; top: 8px; height: 2px; border-radius: 2px; background: var(--bh-brand); opacity: 0; }
.tl-demo-tick { width: 44px; height: 44px; border-radius: 50%; background: var(--bh-teal) var(--tl-tick) center / 60% no-repeat; }
.tl-demo-number { font-size: clamp(26px, 3vw, 32px); font-weight: 700; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tl-scene[data-scene="3"] .tl-scene-label { align-self: center; }
.tl-demo-mail { font-size: 13px; color: var(--bh-ink-soft); }
.tl-demo-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.tl-demo-chips span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; background: var(--tl-tint); color: var(--bh-brand-deep); font-size: 12.5px; font-weight: 600; }
.tl-demo-chips span::before { content: ""; width: 14px; height: 14px; border-radius: 4px; background: var(--bh-brand) var(--tl-tick) center / 100% no-repeat; }
.tl-demo-email { font: 600 16px/1.2 var(--tl-mono); color: var(--bh-ink); }
.tl-demo-note { margin: 12px 0 0; font-size: 11.5px; color: rgba(255, 255, 255, 0.5); text-align: right; }

/* Scene plays: default styles are the finished state */
@keyframes tl-pop { 0% { opacity: 0; transform: scale(0.5); } 70% { transform: scale(1.08); } 100% { opacity: 1; transform: none; } }
@keyframes tl-type { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes tl-qrscan { from { opacity: 1; transform: translateY(0); } to { opacity: 1; transform: translateY(130px); } }
.is-play .tl-demo-cells span { animation: tl-pop 0.3s var(--bh-ease) both; }
.is-play .tl-demo-cells span:nth-child(2) { animation-delay: 0.12s; }
.is-play .tl-demo-cells span:nth-child(3) { animation-delay: 0.24s; }
.is-play .tl-demo-cells span:nth-child(4) { animation-delay: 0.36s; }
.is-play .tl-demo-cells span:nth-child(5) { animation-delay: 0.48s; }
.is-play .tl-demo-cells span:nth-child(6) { animation-delay: 0.6s; }
.is-play .tl-demo-cells span:nth-child(7) { animation-delay: 0.72s; }
.is-play .tl-demo-cells span:nth-child(8) { animation-delay: 0.84s; }
.is-play .tl-demo-ok { animation: tl-pop 0.4s 1.15s both; }
.is-play .tl-type { animation: tl-type 0.9s steps(14, end) 0.2s both; }
.is-play .tl-type-2 { animation: tl-type 0.7s steps(10, end) 1.2s both; }
.is-play .tl-demo-qr i { animation: tl-qrscan 0.9s 0.2s ease-in-out 2 alternate both; }
.is-play .tl-demo-paid { animation: tl-pop 0.45s 2s both; }
.is-play .tl-demo-tick { animation: tl-pop 0.45s both; }
.is-play .tl-demo-mail { animation: tl-rise 0.5s 1.1s var(--bh-ease) both; }
.is-play .tl-demo-segs span { animation: tl-pop 0.35s var(--bh-ease) both; }
.is-play .tl-demo-segs span:nth-child(2) { animation-delay: 0.18s; }
.is-play .tl-demo-segs span:nth-child(3) { animation-delay: 0.36s; }
.is-play .tl-demo-segs span:nth-child(4) { animation-delay: 0.54s; }
.is-play .tl-demo-bank,
.is-play .tl-demo-status { animation: tl-rise 0.5s 0.35s var(--bh-ease) both; }

/* ---------- Why ---------- */

.tl-why { background: #fff; }
.tl-feats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.tl-feats li { display: grid; align-content: start; gap: 4px; padding: 22px; border-radius: 20px; background: var(--bh-bg); box-shadow: 0 0 0 1px var(--bh-line); transition: transform 0.3s var(--bh-ease), box-shadow 0.3s var(--bh-ease); }
.tl-feats li:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px var(--bh-line), 0 20px 40px -28px rgba(22, 27, 46, 0.35); }
.tl-feat-icon { display: block; width: 64px; height: 64px; margin-bottom: 12px; border-radius: 14px; background: #fff; overflow: hidden; }
.tl-feat-icon:empty { background: var(--bh-brand-soft); }
.tl-feats strong { font-size: 17px; font-weight: 700; }
.tl-feats li > span:not(.tl-feat-icon) { font-size: 14px; line-height: 1.5; color: var(--bh-ink-soft); }

/* ---------- Bulk ---------- */

.tl-bulk { background: var(--tl-night); color: #fff; }
.tl-bulk-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.tl-head-dark { margin-bottom: 0; }
.tl-head-dark .tl-eyebrow { color: var(--tl-violet); }
.tl-head-dark .tl-h2,
.tl-more-card h3 { color: #fff; }
.tl-head-dark .tl-h2 em { color: var(--tl-lilac); }
.tl-bulk .tl-ticks li { color: rgba(255, 255, 255, 0.84); }

.tl-batch { padding: 20px; border-radius: 22px; background: var(--tl-night-2); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 40px 80px -40px rgba(0, 0, 0, 0.6); }
.tl-batch-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tl-batch-file { display: inline-flex; align-items: center; gap: 8px; font: 600 13px/1 var(--tl-mono); color: #fff; }
.tl-batch-file i { width: 11px; height: 14px; border: 2px solid var(--tl-violet); border-radius: 2px; }
.tl-batch-count { font-size: 12.5px; color: rgba(255, 255, 255, 0.6); }
.tl-batch-count b { color: #fff; font-variant-numeric: tabular-nums; }
.tl-batch-bar { height: 5px; margin: 14px 0 6px; border-radius: 5px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.tl-batch-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--bh-brand), var(--bh-teal)); transform-origin: left center; transition: transform 0.45s var(--bh-ease); }
.tl-batch-rows { list-style: none; margin: 0; padding: 0; }
.tl-batch-rows li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 2px; border-top: 1px solid rgba(255, 255, 255, 0.07); font: 500 13px/1.2 var(--tl-mono); color: rgba(255, 255, 255, 0.6); }
.tl-batch-rows li:first-child { border-top: 0; }
.tl-batch-rows b { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--tl-mint); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tl-batch-rows b::after { content: ""; flex: none; width: 16px; height: 16px; border-radius: 50%; background: var(--bh-teal) var(--tl-tick) center / 100% no-repeat; }
.tl-batch.is-running li:not(.is-done) b { color: rgba(255, 255, 255, 0.22); }
.tl-batch.is-running li:not(.is-done) b::after { background: rgba(255, 255, 255, 0.1); }
.tl-batch.is-running li.is-done b::after { animation: tl-pop 0.35s both; }

.tl-more { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: clamp(48px, 6vw, 72px); }
.tl-more-card { padding: 26px; border-radius: 20px; background: rgba(255, 255, 255, 0.04); box-shadow: inset 0 0 0 1px var(--tl-faint); }
.tl-more-card h3 { margin: 0; font-size: 20px; font-weight: 700; }
.tl-more-card .tl-ticks { margin: 16px 0 20px; }
.tl-more-card .tl-ticks li { color: rgba(255, 255, 255, 0.8); font-size: 14.5px; }

/* ---------- FAQ ---------- */

.tl-faq { background: var(--bh-bg); }
.tl-faq-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.tl-faq .tl-head { margin-bottom: 0; }
.tl-acc button { font-size: 16px; }
.tl-acc .a p { margin: 0; font-size: 15px; line-height: 1.6; }
.tl-acc .a a { color: var(--bh-brand-deep); font-weight: 600; }
.tl-india { margin-top: 32px; padding: 16px 18px; border-radius: 16px; background: #fff; box-shadow: 0 0 0 1px var(--bh-line); }
.tl-india strong { display: block; font-size: 15px; }
.tl-india span { font-size: 13.5px; color: var(--bh-ink-soft); }

/* ---------- Close ---------- */

.tl-close { padding: clamp(80px, 10vw, 140px) 0; background: linear-gradient(180deg, var(--tl-night-2), var(--tl-night)); color: #fff; text-align: center; }
.tl-close .tl-h2 { max-width: 18ch; margin: 0 auto; color: #fff; font-size: clamp(32px, 4.4vw, 56px); }
.tl-close .tl-h2 em { color: var(--tl-lilac); }


/* ---------- Reverse penny drop: the hero card plays the flow (same engine as "how it works") ---------- */

.tl-how-grid.tl-rpd-demo { display: block; min-height: 0; padding: 18px; border-radius: 24px; background: #fff; color: var(--bh-ink); box-shadow: 0 40px 80px -36px rgba(0, 0, 0, 0.6); }
.tl-rpd-demo .tl-device { height: 286px; border-radius: 16px; background: var(--bh-bg); }
.tl-rpd-demo .tl-how-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 12px; }
.tl-rpd-demo .tl-how-steps button { display: block; padding: 10px 10px 14px; border-radius: 12px; }
.tl-rpd-demo .tl-how-steps button:hover { background: var(--bh-bg); }
.tl-rpd-demo .tl-how-steps li.is-on button { background: var(--tl-tint); box-shadow: none; }
.tl-rpd-demo .tl-how-n { display: block; font-size: 11px; }
.tl-rpd-demo .tl-how-steps strong { display: block; margin-top: 4px; font-size: 13px; line-height: 1.3; }
.tl-rpd-demo .tl-how-bar { left: 10px; right: 10px; bottom: 6px; }
.tl-rpd-bubble { align-self: stretch; padding: 14px 16px; border-radius: 16px 16px 16px 4px; background: #fff; box-shadow: 0 0 0 1px var(--bh-line); font-size: 14px; line-height: 1.5; }
.tl-rpd-bubble small { display: block; margin-bottom: 4px; font-size: 11.5px; font-weight: 700; color: var(--bh-muted); }
.tl-rpd-pay { display: inline-flex; align-items: center; justify-content: center; height: 40px; margin-top: 10px; padding: 0 18px; border-radius: 10px; background: var(--bh-teal); color: #fff; font-weight: 700; }
.tl-rpd-amt { font-size: 40px; font-weight: 800; letter-spacing: -0.03em; }
.tl-rpd-from { font-size: 13px; color: var(--bh-ink-soft); }
.tl-rpd-facts { align-self: stretch; margin: 0; padding: 12px 14px; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px var(--bh-line); display: grid; gap: 6px; font-size: 13px; }
.tl-rpd-facts div { display: flex; justify-content: space-between; gap: 10px; }
.tl-rpd-facts dt { color: var(--bh-muted); }
.tl-rpd-facts dd { margin: 0; font: 600 13px/1.4 var(--tl-mono); }
.is-play .tl-rpd-bubble { animation: tl-rise 0.5s 0.1s var(--bh-ease) both; }
.is-play .tl-rpd-pay { animation: tl-pop 0.4s 0.7s both; }
.is-play .tl-rpd-amt { animation: tl-pop 0.45s 0.1s both; }
.is-play .tl-rpd-facts { animation: tl-rise 0.5s 0.35s var(--bh-ease) both; }
.tl-hero-cta { margin-top: 28px; }

/* ---------- Tools hub ---------- */

.tl-hub-hero .tl-hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 500px); }
.tl-hub-grid-bg { position: absolute; inset: 0; z-index: -1; 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: 48px 48px; -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 70%); mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 70%); }
.tl-search { position: relative; max-width: 520px; margin-top: 8px; }
.tl-search input { box-sizing: border-box; width: 100%; height: 56px; padding: 0 48px 0 50px; border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 16px; background: rgba(255, 255, 255, 0.06); color: #fff; font: 500 16px/1 var(--bh-font); transition: border-color 0.2s var(--bh-ease), background 0.2s var(--bh-ease); }
.tl-search input::placeholder { color: rgba(255, 255, 255, 0.5); }
.tl-search input:focus { outline: none; border-color: var(--tl-violet); background: rgba(255, 255, 255, 0.1); }
.tl-search::before { content: ""; position: absolute; left: 18px; top: 50%; width: 16px; height: 16px; margin-top: -9px; border: 2px solid rgba(255, 255, 255, 0.6); border-radius: 50%; }
.tl-search::after { content: ""; position: absolute; left: 33px; top: 50%; width: 7px; height: 2px; margin-top: 7px; border-radius: 2px; background: rgba(255, 255, 255, 0.6); transform: rotate(45deg); }
.tl-search button { position: absolute; right: 10px; top: 50%; width: 34px; height: 34px; margin-top: -17px; border: 0; border-radius: 10px; background: rgba(255, 255, 255, 0.1); color: #fff; font: 600 16px/1 var(--bh-font); cursor: pointer; }
.tl-search button[hidden] { display: none; }
.tl-search button:focus-visible,
.tl-filters button:focus-visible,
.tl-card-copy:focus-visible { outline: 2px solid var(--bh-brand); outline-offset: 2px; }

.tl-console { border-radius: 20px; background: rgba(20, 26, 48, 0.88); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.09), 0 40px 80px -36px rgba(0, 0, 0, 0.7); overflow: hidden; }
.tl-console-top { display: flex; align-items: center; gap: 7px; padding: 14px 18px; border-bottom: 1px solid rgba(255, 255, 255, 0.07); font: 600 12px/1 var(--tl-mono); color: rgba(255, 255, 255, 0.5); }
.tl-console-top i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.14); }
.tl-console-top span { margin-left: 8px; }
.tl-console-top b { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--tl-mint); }
.tl-console-top b::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--tl-mint); animation: tl-blink 1s ease-in-out infinite alternate; }
.tl-console-body { padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; overflow: hidden; font: 500 13px/1.45 var(--tl-mono); }
.tl-cl { transition: opacity 0.4s var(--bh-ease); }
.tl-console-body.is-scroll .tl-cl { animation: tl-cl-up 0.35s var(--bh-ease) both; }
@keyframes tl-cl-up { from { transform: translateY(14px); } }
.tl-cl.is-old { opacity: 0.45; }
.tl-cl-cmd { color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-cl-cmd::before { content: "$ "; color: var(--tl-violet); }
.tl-cl-cmd em { font-style: normal; color: var(--tl-lilac); }
.tl-cl-out { display: flex; align-items: baseline; gap: 8px; min-height: 19px; color: var(--tl-mint); white-space: nowrap; overflow: hidden; }
.tl-cl-out::before { content: ""; flex: none; width: 14px; height: 14px; align-self: center; border-radius: 50%; background: rgba(13, 159, 140, 0.3) var(--tl-tick-mint) center / 100% no-repeat; }
.tl-cl-out small { margin-left: auto; padding-left: 10px; color: rgba(255, 255, 255, 0.35); font-size: 11px; white-space: nowrap; }
.tl-cl-out.is-wait { color: rgba(255, 255, 255, 0.45); }
.tl-cl-out.is-wait::before { background: none; border: 2px solid rgba(255, 255, 255, 0.25); border-top-color: var(--tl-mint); width: 10px; height: 10px; animation: tl-spin 0.8s linear infinite; }
@keyframes tl-spin { to { transform: rotate(360deg); } }
.tl-quick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 16px 0 0; font-size: 13px; color: rgba(255, 255, 255, 0.5); }
.tl-quick button { height: 32px; padding: 0 12px; border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 999px; background: rgba(255, 255, 255, 0.04); color: rgba(255, 255, 255, 0.86); font: 600 13px/1 var(--bh-font); cursor: pointer; transition: border-color 0.2s var(--bh-ease), background 0.2s var(--bh-ease); }
.tl-quick button:hover { border-color: var(--tl-violet); background: rgba(185, 163, 255, 0.1); }
.tl-quick button:focus-visible { outline: 2px solid var(--tl-violet); outline-offset: 2px; }
.tl-console-note { margin: 0; padding: 0 18px 14px; font-size: 11px; color: rgba(255, 255, 255, 0.4); text-align: right; }

.tl-hub-tools { background: var(--bh-bg); }
.tl-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; padding: 0; list-style: none; }
.tl-filters button { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border: 1px solid var(--bh-line-strong); border-radius: 999px; background: #fff; color: var(--bh-ink); font: 600 14px/1 var(--bh-font); cursor: pointer; transition: background 0.2s var(--bh-ease), border-color 0.2s var(--bh-ease), color 0.2s var(--bh-ease); }
.tl-filters button span { min-width: 20px; padding: 3px 6px; border-radius: 999px; background: #f1f0f6; color: var(--bh-muted); font-size: 11.5px; }
.tl-filters button:hover { border-color: var(--bh-brand); }
.tl-filters button[aria-pressed="true"] { background: var(--bh-ink); border-color: var(--bh-ink); color: #fff; }
.tl-filters button[aria-pressed="true"] span { background: rgba(255, 255, 255, 0.16); color: #fff; }
.tl-hub-count { margin: 0 0 18px; font-size: 14px; color: var(--bh-ink-soft); }
.tl-card-copy { position: relative; z-index: 2; height: 34px; padding: 0 12px; border: 1px solid var(--bh-line-strong); border-radius: 10px; background: #fff; color: var(--bh-ink); font: 600 12.5px/1 var(--bh-font); cursor: pointer; transition: border-color 0.2s var(--bh-ease), color 0.2s var(--bh-ease); }
.tl-card-copy:hover { border-color: var(--bh-brand); color: var(--bh-brand-deep); }
.tl-hub-empty { margin-bottom: 18px; padding: 18px 22px; border-radius: 18px; background: #fff; box-shadow: 0 0 0 1px var(--bh-line); display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.tl-hub-empty[hidden] { display: none; }
.tl-hub-empty p { margin: 0; color: var(--bh-ink-soft); }

/* Tools hub: every tile is an action. A verb title, a small dark "sample lookup" preview, then a
   real form (IFSC, GST, DIN, LinkedIn: straight into the tool, prefilled) or a solid button, with the
   price beside it. Search and filters dim the tiles that don't match (.is-out + inert) instead of
   hiding them, so the grid never jumps. */
.tl-hub-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px 32px; flex-wrap: wrap; margin-bottom: 26px; }
.tl-hub-top .tl-head { margin-bottom: 0; }
.tl-hub-top .tl-filters { margin: 0; }
.tl-hub-top .tl-hub-count { flex-basis: 100%; margin: 0; }
.tl-bento { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.tl-tile { position: relative; grid-column: span 4; display: flex; flex-direction: column; padding: 22px; border-radius: 26px; background: #fff; color: var(--bh-ink); box-shadow: 0 0 0 1px var(--bh-line), 0 24px 48px -36px rgba(22, 27, 46, 0.3); transition: transform 0.35s var(--bh-ease), box-shadow 0.35s var(--bh-ease), opacity 0.35s var(--bh-ease), filter 0.35s var(--bh-ease); }
.tl-tile.is-6 { grid-column: span 6; }
.tl-tile.is-5 { grid-column: span 5; }
.tl-tile.is-3 { grid-column: span 3; }
.tl-tile:hover,
.tl-tile:focus-within { transform: translateY(-4px); box-shadow: 0 0 0 1px rgba(129, 90, 240, 0.35), 0 34px 60px -36px rgba(22, 27, 46, 0.42); }
.tl-tile.is-out { opacity: 0.3; filter: saturate(0.2); transform: scale(0.985); box-shadow: 0 0 0 1px var(--bh-line); }
.tl-tile.is-match { box-shadow: 0 0 0 2px var(--bh-brand), 0 34px 60px -36px rgba(22, 27, 46, 0.42); }
.tl-tile-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tl-tile-kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--bh-brand); }
.tl-tile-n { font: 600 12px/1 var(--tl-mono); letter-spacing: 0.08em; color: var(--bh-muted); }
.tl-tile-copy { position: relative; z-index: 2; padding: 6px 2px; border: 0; background: none; color: var(--bh-muted); font: 600 12.5px/1 var(--bh-font); cursor: pointer; white-space: nowrap; }
.tl-tile-copy:hover { color: var(--bh-brand-deep); }
.tl-tile-copy:focus-visible { outline: 2px solid var(--bh-brand); outline-offset: 2px; border-radius: 4px; }
.tl-tile h3 { margin: 12px 0 0; font-size: clamp(21px, 1.9vw, 26px); font-weight: 700; line-height: 1.15; letter-spacing: -0.03em; color: var(--bh-ink); }
/* The whole tile is the heading's link (stretched over the tile); fields and buttons sit above it */
.tl-tile { cursor: pointer; }
.tl-tile h3 a { color: inherit; text-decoration: none; }
.tl-tile h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.tl-tile:hover h3 a { color: var(--bh-brand-deep); }
.tl-tile h3 a:focus-visible { outline: none; }
.tl-tile:has(h3 a:focus-visible) { box-shadow: 0 0 0 3px var(--bh-brand), 0 34px 60px -36px rgba(22, 27, 46, 0.42); }
.tl-tile-form,
.tl-tile-cta,
.tl-tile-err { position: relative; z-index: 2; }
.tl-tile-form { cursor: auto; }
.tl-tile-sub { margin: 6px 0 0; font-size: 15px; line-height: 1.5; color: var(--bh-ink-soft); }
/* The sample lookup: secondary, framed as a preview of what the tool returns */
.tl-tile-preview { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 196px; margin: 16px 0; padding: 30px 14px 12px; border-radius: 18px; background: radial-gradient(120% 90% at 80% 0%, #1d2446 0%, #131930 55%, #0d1122 100%); color: #fff; overflow: hidden; }
.tl-tile-preview svg { display: block; width: 100%; max-width: 380px; height: auto; overflow: visible; }
.tl-tile-ptag { position: absolute; left: 14px; top: 12px; font: 600 10.5px/1 var(--tl-mono); letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255, 255, 255, 0.42); }
.tl-tile-preview .tl-seg-ctrl { position: absolute; right: 10px; top: 8px; }
.tl-tile-preview .tl-seg-ctrl button { height: 26px; padding: 0 10px; font-size: 11.5px; }
/* The action: a real form or a solid button, with the price right under it */
.tl-tile-form { display: flex; gap: 8px; }
.tl-tile-form .tl-input { flex: 1; min-width: 0; height: 50px; }
/* Narrow tiles: the field on top, a full-width button under it (matches the button-only tiles) */
.tl-tile:not(.is-6) .tl-tile-form { flex-direction: column; }
.tl-tile:not(.is-6) .tl-tile-form .tl-input { flex: none; }
.tl-tile .tl-btn { height: 50px; flex: none; }
.tl-tile-form .tl-btn::after,
.tl-tile-cta .tl-btn::after { content: "→"; transition: transform 0.2s var(--bh-ease); }
.tl-tile .tl-btn:hover::after { transform: translateX(3px); }
.tl-tile-cta { display: flex; }
.tl-tile-cta .tl-btn { flex: 1; }
.tl-tile-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; margin: 12px 0 0; font-size: 13px; color: var(--bh-muted); }
.tl-tile-meta b { padding: 4px 9px; border-radius: 999px; background: var(--tl-tint); color: var(--bh-brand-deep); font-size: 11.5px; font-weight: 700; }
.tl-tile-meta b.is-free { background: var(--tl-teal-soft); color: #0b6e61; }
.tl-tile-err { margin: 8px 0 0; min-height: 0; font-size: 13px; font-weight: 600; color: var(--tl-error); }
.tl-tile-err:empty { display: none; }

/* Try-it previews (IFSC, GST): decode what's typed in the form, or auto-type samples */
.tl-try-code { display: grid; gap: 8px; }
.tl-try-code .tl-flaps i { width: 30px; height: 42px; font-size: 20px; }
.tl-try-code .tl-flaps i:empty::before { content: "·"; color: rgba(255, 255, 255, 0.25); }
.tl-try-legend { display: grid; grid-template-columns: 4fr 1fr 6fr; gap: 6px; font: 600 10px/1 var(--tl-mono); letter-spacing: 0.08em; text-transform: uppercase; text-align: center; }
.tl-try-legend span { padding: 5px 0; border-radius: 6px; }
.tl-try-legend .is-a { background: rgba(129, 90, 240, 0.22); color: var(--tl-lilac); }
.tl-try-legend .is-b { background: rgba(255, 255, 255, 0.08); color: rgba(255, 255, 255, 0.55); }
.tl-try-legend .is-c { background: rgba(13, 159, 140, 0.2); color: var(--tl-mint); }
/* Two lines reserved: the decode text grows as a code is typed, and must not push the tile */
.tl-try-note { align-self: stretch; min-height: 3em; margin: 0; text-align: center; font-size: 13.5px; line-height: 1.5; color: rgba(255, 255, 255, 0.66); }
.tl-try-note b { color: #fff; }
.tl-tile-preview .tl-anatomy { justify-content: center; margin: 0; }
.tl-tile-preview .tl-seg { background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1); }
.tl-tile-preview .tl-seg b { font-size: 15px; color: rgba(255, 255, 255, 0.35); }
.tl-tile-preview .tl-seg small { color: rgba(255, 255, 255, 0.5); }
.tl-tile-preview .tl-seg.is-part b,
.tl-tile-preview .tl-seg.is-full b { color: #fff; }
.tl-tile-preview .tl-seg.is-full { background: rgba(13, 159, 140, 0.16); box-shadow: inset 0 0 0 1px rgba(95, 224, 203, 0.5); }
.tl-tile-preview .tl-seg.is-full small { color: var(--tl-mint); }
.tl-tile-preview .tl-seg.is-bad { background: rgba(200, 55, 45, 0.18); box-shadow: inset 0 0 0 1px rgba(255, 120, 110, 0.5); }
.tl-try-stamp { position: absolute; right: 8px; bottom: 6px; width: 78px !important; height: 78px; pointer-events: none; opacity: 0; }
.tl-try-stamp.is-on { opacity: 1; }
.tl-try-stamp .tl-s-stamp { animation: none; }
html.tl-motion .tl-try-stamp.is-on .tl-s-stamp { animation: tl-s-stamp 0.5s cubic-bezier(0.3, 1.4, 0.5, 1) both; }
.tl-try-stamp.is-ready .tl-s-stamp circle { fill: rgba(129, 90, 240, 0.2); stroke: var(--tl-violet); }
.tl-try-stamp.is-ready .tl-s-stamp text { fill: var(--tl-lilac); }

/* Looping tiles: [data-tl-cycle] turns one [data-k] layer on at a time (.is-on) */
.tl-cy { opacity: 0; visibility: hidden; transition: opacity 0.45s var(--bh-ease), visibility 0.45s; }
.tl-cy.is-on { opacity: 1; visibility: visible; }
.tl-cy-results { position: relative; width: 100%; height: 34px; }
.tl-cy-results > .tl-cy { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: nowrap; }
.tl-cy-results.is-2 { height: 64px; }
.tl-cy-results.is-2 > .tl-cy { flex-direction: column; gap: 8px; }
.tl-cy-row { display: flex; gap: 6px; }
.tl-cy-k { font: 600 12px/1 var(--tl-mono); letter-spacing: 0.04em; color: var(--tl-lilac); white-space: nowrap; }
.tl-cy-chip { display: inline-flex; align-items: center; height: 26px; padding: 0 11px; border-radius: 999px; background: rgba(13, 159, 140, 0.18); box-shadow: inset 0 0 0 1px rgba(95, 224, 203, 0.55); color: var(--tl-mint); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.tl-cy-chip.is-violet { background: rgba(129, 90, 240, 0.2); box-shadow: inset 0 0 0 1px rgba(185, 163, 255, 0.6); color: var(--tl-lilac); }
html.tl-motion .tl-cy.is-on .tl-cy-chip { animation: tl-g-in 0.4s 0.9s var(--bh-ease) both; }
html.tl-motion .tl-cy.is-on .tl-cy-chip.is-violet { animation-delay: 1.5s; }
.tl-seg-ctrl { position: relative; z-index: 2; display: inline-flex; padding: 3px; border-radius: 12px; background: rgba(255, 255, 255, 0.07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); }
.tl-seg-ctrl button { height: 30px; padding: 0 12px; border: 0; border-radius: 9px; background: transparent; color: rgba(255, 255, 255, 0.65); font: 600 12.5px/1 var(--bh-font); cursor: pointer; transition: background 0.2s var(--bh-ease), color 0.2s var(--bh-ease); }
.tl-seg-ctrl button[aria-pressed="true"] { background: #fff; color: var(--bh-ink); }
.tl-seg-ctrl button:focus-visible { outline: 2px solid var(--tl-violet); outline-offset: 2px; }
.tl-tile.is-less .tl-r-tag { opacity: 0; }
.tl-tile.is-less .tl-r-trail { stroke: var(--tl-violet); }
.tl-tile.is-less .tl-r-glow { fill: rgba(185, 163, 255, 0.25); }
.tl-tile .tl-if-less { display: none; }
.tl-tile.is-less .tl-if-less { display: inline; }
.tl-tile.is-less .tl-if-drop { display: none; }
.tl-rpd-btn { transform-box: fill-box; transform-origin: center; }
html.tl-motion .tl-cy[data-k="0"].is-on ~ .tl-rpd-tap-host .tl-rpd-btn { animation: tl-rpd-tap 0.9s 0.3s var(--bh-ease) both; }
@keyframes tl-rpd-tap { 0%, 100% { transform: none; } 40% { transform: scale(0.9); } }
html.tl-motion .tl-cy.is-on .tl-t-flow { animation: tl-dash-flow 0.6s linear infinite; }
@keyframes tl-dash-flow { from { stroke-dashoffset: 18; } to { stroke-dashoffset: 0; } }

/* QR tile: amount chips redraw the sample QR */
.tl-qr-tile { display: grid; justify-items: center; gap: 10px; }
.tl-qr-tile .tl-demo-qr { width: 128px; height: 128px; padding: 8px; border-radius: 14px; background: #fff; box-shadow: none; }
.tl-qr-tile .tl-demo-qr.is-scan i { animation: tl-qrscan-t 1s ease-in-out both; }
.tl-qr-amt { font-size: 14px; font-weight: 600; color: rgba(255, 255, 255, 0.82); font-variant-numeric: tabular-nums; }
.tl-qr-chips { position: relative; z-index: 2; display: flex; gap: 6px; }
.tl-qr-chips button { height: 30px; padding: 0 10px; border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 999px; background: transparent; color: rgba(255, 255, 255, 0.8); font: 600 12px/1 var(--bh-font); cursor: pointer; }
.tl-qr-chips button[aria-pressed="true"] { border-color: var(--tl-mint); background: rgba(13, 159, 140, 0.2); color: #fff; }
.tl-qr-chips button:focus-visible { outline: 2px solid var(--tl-violet); outline-offset: 2px; }

/* Webhook tile: a stream of sample deliveries in fixed rows (text rotates, nothing shifts) */
.tl-hooks { width: 100%; list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tl-hooks li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.04); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06); font: 500 12px/1.2 var(--tl-mono); color: rgba(255, 255, 255, 0.7); white-space: nowrap; overflow: hidden; }
.tl-hooks li:first-child { background: rgba(129, 90, 240, 0.14); box-shadow: inset 0 0 0 1px rgba(185, 163, 255, 0.35); color: #fff; }
.tl-hooks li b { font-weight: 600; color: var(--tl-lilac); }
.tl-hooks li span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.tl-hooks li i { font-style: normal; color: var(--tl-mint); }
.tl-hooks li small { color: rgba(255, 255, 255, 0.4); font-size: 11px; }
.tl-hooks.is-tick li { animation: tl-cl-up 0.35s var(--bh-ease) both; }
.tl-tile-note { margin: 0; font-size: 11px; color: rgba(255, 255, 255, 0.4); }

/* Shared graph bits (hub tiles and story scenes) */
.tl-t-line { stroke: rgba(255, 255, 255, 0.14); stroke-width: 1; fill: none; }
.tl-t-hot { stroke: var(--tl-mint); stroke-width: 1.8; fill: none; }
.tl-t-node { fill: rgba(185, 163, 255, 0.55); }
.tl-t-co { fill: rgba(255, 255, 255, 0.04); stroke: rgba(255, 255, 255, 0.3); }
.tl-t-on { fill: rgba(95, 224, 203, 0.16); stroke: var(--tl-mint); }
.tl-t-dot { fill: #fff; }
.tl-t-halo { fill: none; stroke: rgba(255, 255, 255, 0.18); }
.tl-t-chip rect { fill: rgba(13, 159, 140, 0.18); stroke: rgba(95, 224, 203, 0.6); }
.tl-t-chip text { font: 600 10px/1 var(--bh-font); fill: var(--tl-mint); }
.tl-t-label { font: 600 9.5px/1 var(--tl-mono); fill: var(--tl-lilac); }
@keyframes tl-flip { from { transform: perspective(200px) rotateX(90deg); opacity: 0.2; } }
@keyframes tl-draw1 { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes tl-qrscan-t { 0% { opacity: 1; transform: translateY(0); } 50% { opacity: 1; transform: translateY(108px); } 100% { opacity: 0; transform: translateY(0); } }
@keyframes tl-type-lines { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }

/* ---------- Scroll story (tools hub): a sticky stage changes scene as the steps scroll by ----------
   Desktop: the stage sticks (CSS sticky, not a pin) beside the steps; the step crossing the middle
   of the screen picks the scene and a rail fills with progress. 980px and below: no sticky stage,
   each step carries its own scene and plays it on view. */

.tl-story { position: relative; background: var(--tl-night); color: #fff; overflow: clip; }
.tl-story .tl-head { max-width: 720px; }
.tl-story-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.tl-story-track { position: relative; padding-left: 34px; }
.tl-story-steps { list-style: none; margin: 0; padding: 0; }
.tl-story-rail { position: absolute; left: 7px; top: 12px; bottom: 12px; width: 2px; border-radius: 2px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.tl-story-rail i { position: absolute; inset: 0; background: linear-gradient(180deg, var(--tl-violet), var(--tl-mint)); transform: scaleY(0); transform-origin: top center; }
.tl-story-step { position: relative; display: flex; flex-direction: column; justify-content: center; min-height: 62vh; padding: 24px 0; opacity: 0.38; transition: opacity 0.45s var(--bh-ease); }
.tl-story-step:first-child { min-height: 46vh; justify-content: flex-start; padding-top: 8px; }
.tl-story-step:last-child { min-height: 52vh; }
.tl-story-step.is-on { opacity: 1; }
.tl-story-step::before { content: ""; position: absolute; left: -33px; top: calc(50% - 7px); width: 14px; height: 14px; border-radius: 50%; background: var(--tl-night); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.25); transition: box-shadow 0.35s var(--bh-ease), background 0.35s var(--bh-ease); }
.tl-story-step:first-child::before { top: 14px; }
.tl-story-step.is-on::before { background: var(--tl-mint); box-shadow: 0 0 0 5px rgba(95, 224, 203, 0.18); }
.tl-story-n { font: 700 12px/1 var(--tl-mono); letter-spacing: 0.12em; color: var(--tl-violet); }
.tl-story-step h3 { margin: 10px 0 0; color: #fff; font-size: clamp(22px, 2.4vw, 30px); font-weight: 700; line-height: 1.15; letter-spacing: -0.025em; }
.tl-story-step p { margin: 10px 0 0; max-width: 42ch; font-size: 16px; line-height: 1.6; color: var(--tl-on-dark); }
.tl-story-step .tl-link { margin-top: 16px; }
.tl-story-slot:empty { display: none; }
.tl-story-stage { position: sticky; top: calc(var(--bh-header) + 40px); height: min(520px, calc(100vh - var(--bh-header) - 80px)); border-radius: 28px; background: radial-gradient(120% 90% at 70% 10%, #1e2547 0%, #121831 55%, #0e1226 100%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 50px 90px -50px rgba(0, 0, 0, 0.8); overflow: hidden; }
.tl-story-top { position: absolute; left: 24px; right: 24px; top: 20px; display: flex; justify-content: space-between; gap: 12px; font: 600 11.5px/1 var(--tl-mono); letter-spacing: 0.06em; color: rgba(255, 255, 255, 0.5); }
.tl-story-top b { color: var(--tl-mint); font-weight: 600; }
.tl-story-scene { position: absolute; inset: 52px 24px 24px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; opacity: 0; visibility: hidden; transform: translateY(16px) scale(0.98); transition: opacity 0.45s var(--bh-ease), transform 0.65s var(--bh-ease), visibility 0.45s; }
.tl-story-scene.is-on { opacity: 1; visibility: visible; transform: none; }
.tl-story-scene svg { width: 100%; max-width: 560px; height: auto; overflow: visible; }
.tl-st-result { display: inline-block; max-width: 100%; margin: 0; padding: 10px 18px; border-radius: 999px; background: rgba(13, 159, 140, 0.16); box-shadow: inset 0 0 0 1px rgba(95, 224, 203, 0.4); font-size: 15px; font-weight: 600; line-height: 1.4; color: #fff; text-align: center; }
.tl-st-result b { color: var(--tl-mint); }
.tl-st-result::before { content: ""; display: inline-block; width: 18px; height: 18px; margin: 0 9px 0 0; vertical-align: -4px; border-radius: 50%; background: var(--bh-teal) var(--tl-tick) center / 100% no-repeat; }
.tl-story-scene .tl-flaps i { width: 38px; height: 52px; font-size: 26px; }
.tl-story-scene .tl-flaps { gap: 5px; }
.tl-st-segs { display: flex; gap: 8px; }
.tl-st-segs span { padding: 8px 12px; border-radius: 8px; font: 600 12px/1 var(--tl-mono); letter-spacing: 0.06em; white-space: nowrap; }
.tl-st-segs .is-a { background: rgba(129, 90, 240, 0.22); color: var(--tl-lilac); }
.tl-st-segs .is-b { background: rgba(255, 255, 255, 0.08); color: rgba(255, 255, 255, 0.6); }
.tl-st-segs .is-c { background: rgba(13, 159, 140, 0.2); color: var(--tl-mint); }
.tl-st-pay { width: 100%; max-width: 480px; display: grid; gap: 14px; }
.tl-st-amt { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.tl-st-amt b { font-size: clamp(30px, 3.4vw, 44px); font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.tl-st-amt span { padding: 5px 10px; border-radius: 999px; background: rgba(129, 90, 240, 0.22); color: var(--tl-lilac); font: 700 11px/1 var(--tl-mono); letter-spacing: 0.08em; }
.tl-st-json { margin: 0; padding: 18px 20px; border-radius: 16px; background: rgba(0, 0, 0, 0.28); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07); font: 500 14px/1.7 var(--tl-mono); color: rgba(255, 255, 255, 0.62); white-space: pre; overflow: hidden; }
.tl-st-json b { font-weight: 600; color: var(--tl-lilac); }
.tl-st-json i { font-style: normal; color: var(--tl-mint); }
.tl-st-label { font: 600 10.5px/1 var(--tl-mono); letter-spacing: 0.08em; fill: rgba(255, 255, 255, 0.45); }
.tl-st-big { font: 600 12px/1 var(--tl-mono); letter-spacing: 0.06em; fill: #fff; }

/* Scene moments: play when the scene turns on; default styles are the finished frame */
html.tl-motion .tl-story-scene.is-on .tl-s-hl { animation: tl-s-hl 0.6s 0.35s var(--bh-ease) both; }
html.tl-motion .tl-story-scene.is-on .tl-s-stamp { animation: tl-s-stamp 0.55s 0.8s cubic-bezier(0.3, 1.4, 0.5, 1) both; }
html.tl-motion .tl-story-scene.is-on .tl-flaps i { animation: tl-flip 0.55s var(--bh-ease) both; animation-delay: calc(0.2s + var(--tl-f, 0) * 55ms); }
html.tl-motion .tl-story-scene.is-on .tl-st-segs span { animation: tl-pop 0.35s var(--bh-ease) both; animation-delay: calc(0.95s + var(--tl-f, 0) * 120ms); }
html.tl-motion :is(.tl-story-scene, .tl-cy).is-on .tl-st-draw { stroke-dasharray: 1; animation: tl-draw1 1.1s 0.25s var(--bh-ease) both; }
html.tl-motion :is(.tl-story-scene, .tl-cy).is-on .tl-st-run { animation: tl-st-run 1.1s 0.25s var(--bh-ease) both; }
html.tl-motion :is(.tl-story-scene, .tl-cy).is-on .tl-st-pop { animation: tl-g-in 0.45s var(--bh-ease) both; animation-delay: var(--tl-d, 1.3s); }
html.tl-motion :is(.tl-story-scene, .tl-cy).is-on .tl-st-ring { animation: tl-g-ping 1.4s 1.3s var(--bh-ease) 2 both; }
html.tl-motion .tl-story-scene.is-on .tl-st-result { animation: tl-rise 0.5s var(--bh-ease) both; animation-delay: var(--tl-d, 1.5s); }
html.tl-motion .tl-story-scene.is-on .tl-st-amt b { animation: tl-rise 0.5s 0.15s var(--bh-ease) both; }
html.tl-motion .tl-story-scene.is-on .tl-st-json { animation: tl-type-lines 1.2s 0.5s steps(8, end) both; }
.tl-st-ring { fill: none; stroke: var(--tl-mint); stroke-width: 1.5; transform-box: fill-box; transform-origin: center; opacity: 0; }
@keyframes tl-st-run { from { transform: translateX(var(--tl-run, -240px)); } }

/* ---------- Scroll reveals (hidden only once bulkpe-tool.js has set up the observer) ---------- */

html.tl-io [data-tl-reveal]:not([data-tl-reveal="stagger"]):not(.is-in),
html.tl-io [data-tl-reveal="stagger"]:not(.is-in) > * { opacity: 0; transform: translateY(24px); }
html.tl-io [data-tl-reveal]:not([data-tl-reveal="stagger"]).is-in { animation: tl-rise 0.8s var(--bh-ease) backwards; }
html.tl-io [data-tl-reveal="stagger"].is-in > * { animation: tl-rise 0.8s var(--bh-ease) backwards; animation-delay: calc(var(--tl-i, 0) * 80ms); }

/* ---------- Responsive ---------- */

@media (max-width: 1199px) {
  .tl-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tl-tile,
  .tl-tile.is-6,
  .tl-tile.is-5,
  .tl-tile.is-3 { grid-column: span 1; }
  .tl-tile.is-wide-md { grid-column: span 2; }
}

@media (max-width: 980px) {
  .tl-hero-board .tl-hero-grid { grid-template-areas: "copy" "tool" "board"; }
  .tl-hub-hero .tl-hero-grid { grid-template-columns: minmax(0, 1fr); }
  .tl-how-grid.tl-rpd-demo { max-width: 560px; }
  .tl-hero-grid { grid-template-columns: minmax(0, 1fr); }
  .tl-tool { max-width: 560px; }
  .tl-graph { opacity: 0.6; }
  .tl-banks-row { flex-direction: column; align-items: flex-start; gap: 16px; }
  .tl-banks-row ul { width: 100%; flex-wrap: wrap; justify-content: flex-start; gap: 20px 28px; }
  .tl-banks-row img { height: 22px; }
  .tl-how-grid { grid-template-columns: minmax(0, 1fr); }
  .tl-how-stage { order: -1; }
  .tl-feats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tl-bulk-grid,
  .tl-faq-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 980px) {
  .tl-story-grid { grid-template-columns: minmax(0, 1fr); }
  .tl-story-stage { display: none; }
  .tl-story-step,
  .tl-story-step:first-child,
  .tl-story-step:last-child { min-height: 0; padding: 0 0 44px; opacity: 1; justify-content: flex-start; }
  .tl-story-step::before,
  .tl-story-step:first-child::before { top: 2px; }
  .tl-story-slot { position: relative; height: 300px; margin-top: 20px; border-radius: 22px; background: radial-gradient(120% 90% at 70% 10%, #1e2547 0%, #121831 55%, #0e1226 100%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); overflow: hidden; }
  .tl-story-slot .tl-story-scene { inset: 20px 16px; opacity: 1; visibility: visible; transform: none; }
  .tl-story-scene .tl-flaps i { width: 22px; height: 32px; font-size: 16px; }
  .tl-story-scene .tl-flaps { gap: 3px; }
  .tl-st-segs { gap: 5px; }
  .tl-st-segs span { padding: 6px 7px; font-size: 10px; letter-spacing: 0.02em; }
  .tl-st-result { font-size: 13.5px; padding: 8px 14px; }
  .tl-st-json { font-size: 12px; padding: 14px; }
}

@media (max-width: 760px) {
  .tl-feats.tl-feats-3,
  .tl-feats.tl-feats-2 { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 560px) {
  .tl-board-head { display: none; }
  .tl-board-row { grid-template-columns: minmax(0, 1fr); row-gap: 8px; padding: 10px 0; }
  .tl-flaps i { width: 20px; height: 28px; font-size: 14px; }
  .tl-free-head { flex-direction: column; align-items: flex-start; margin: 0 -16px 18px; padding: 0 16px 14px; }
  .tl-facts > div { grid-template-columns: 118px minmax(0, 1fr); gap: 10px; }
  .tl-bento { grid-template-columns: minmax(0, 1fr); }
  .tl-tile,
  .tl-tile.is-wide-md { grid-column: span 1; padding: 18px; border-radius: 22px; }
  .tl-try-code .tl-flaps i { width: 22px; height: 32px; font-size: 15px; }
  .tl-try-code .tl-flaps { gap: 3px; }
  .tl-tile-form { flex-direction: column; }
  .tl-try-note { min-height: 4.5em; }
  .tl-tile-form .tl-input { flex: none; }
  .tl-console-body { font-size: 12px; }
  .tl-cl-out small { display: none; }
  .tl-svc-opts { grid-template-columns: minmax(0, 1fr); }
  .tl-hero { padding-top: 32px; }
  .tl-h1 { font-size: clamp(34px, 10vw, 44px); }
  .tl-points li { font-size: 14px; }
  .tl-tool { min-height: 0; margin: 0 -8px; padding: 18px 16px 20px; border-radius: 20px; }
  .tl-tool-head { margin: 0 -16px 18px; padding: 0 16px 14px; }
  .tl-stepper { justify-content: space-between; gap: 4px; }
  .tl-stepper li { flex-direction: column; gap: 4px; font-size: 11px; }
  .tl-stepper li + li::before { display: none; }
  .tl-din-cells { gap: 4px; }
  .tl-din-cells span { height: 48px; border-radius: 10px; font-size: 19px; }
  .tl-actions .tl-btn-ink { min-width: 0; flex: 1; }
  .tl-pay-grid { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; }
  .tl-timer,
  .tl-wait { justify-content: center; }
  .tl-summary { grid-template-columns: minmax(0, 1fr); }
  .tl-how-stage { padding: 14px; border-radius: 20px; }
  .tl-device { height: 270px; }
  .tl-demo-cells span { height: 40px; font-size: 16px; }
  .tl-how-steps button { padding: 14px; }
  .tl-how-bar { left: 64px; }
  .tl-feats { grid-template-columns: minmax(0, 1fr); }
  .tl-more { grid-template-columns: minmax(0, 1fr); }
  .tl-batch { padding: 16px; }
  .tl-batch-rows li { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .tl-g-seat,
  .tl-g-co-on,
  .tl-g-hit,
  .tl-g-ring,
  .tl-g-chip,
  .tl-g-chip.is-swap { animation: none; stroke-dashoffset: 0 !important; }
  .tl-g-ring { opacity: 0; }
  .tl-g-chip.is-second { display: none; }
  .tl-flaps i.f-a,
  .tl-flaps i.f-b,
  .tl-s-hl,
  .tl-s-stamp,
  .tl-r-ring,
  .tl-r-chip,
  .tl-cl-out.is-wait::before,
  .tl-console-body.is-scroll .tl-cl,
  .tl-console-top b::before,
  .tl-chip[data-tone="busy"]::before { animation: none; }
  .tl-r-ring { opacity: 0; }
  .tl-story-scene,
  .tl-story-step,
  .tl-cy,
  .tl-tile,
  .tl-hooks.is-tick li,
  .tl-qr-tile .tl-demo-qr.is-scan i { animation: none; transition: none; }
  .tl-pane.is-entering,
  .tl-modal-card,
  .is-play *,
  .tl-batch.is-running li.is-done b::after,
  .tl-wait i,
  .tl-status-spin,
  .tl-din-cells span,
  .tl-din-cells span.is-caret::after,
  .tl-btn.is-busy::before { animation: none !important; }
  .tl-scene,
  .tl-feats li,
  .tl-batch-bar span,
  .tl-timer .tl-timer-ring { transition: none; }
}
