/* ============================================================
   DJ Bank — Components
   ============================================================ */

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  /* CTA = hero subtitle font -1px per guide */
  font-size: clamp(16px, 2.2vw, 19px);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1;
  padding: 16px 26px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--dj-blue);
  color: #fff;
  box-shadow: 0 8px 20px rgba(0, 70, 255, .28);
}
.btn-primary:hover { background: var(--dj-blue-strong); box-shadow: 0 10px 26px rgba(0, 70, 255, .34); }

.btn-ghost {
  background: rgba(255, 255, 255, .12);
  color: #fff;
  border-color: rgba(255, 255, 255, .5);
  backdrop-filter: blur(4px);
}
.btn-ghost:hover { background: rgba(255, 255, 255, .2); }

.btn-outline {
  background: #fff;
  color: var(--dj-blue);
  border-color: var(--dj-blue);
}
.btn-outline:hover { background: var(--bg-blue-50); }

.btn-block { width: 100%; }
.btn-lg { padding: 18px 30px; }

/* ---------- Badges / chips ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-caption);
  font-weight: 700;
  letter-spacing: -0.01em;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  background: var(--bg-blue-100);
  color: var(--dj-blue);
}
.badge-solid { background: var(--dj-blue); color: #fff; }
.badge-navy { background: rgba(255,255,255,.14); color: #fff; }

/* ---------- Cards (NO left color line bar per mobile guide) ---------- */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  height: 100%;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card.soft { background: var(--bg-soft); border-color: transparent; box-shadow: none; }
.card .card-icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: var(--bg-blue-50);
  color: var(--dj-blue);
  margin-bottom: 18px;
}
.card .card-icon svg { width: 26px; height: 26px; }
.card h3 { font-size: var(--fs-h4); line-height: 1.3; font-weight: 700; letter-spacing: -0.01em; }
.card p { margin-top: 10px; color: var(--ink-2); font-size: var(--fs-small); }

/* numbered value card */
.card .card-num {
  font-size: 14px; font-weight: 800; color: var(--dj-blue);
  letter-spacing: -0.01em; margin-bottom: 14px; display: inline-block;
}

/* ---------- Pain vs Gain ---------- */
.painbar {
  display: grid; gap: 12px;
}
.pain-item {
  display: flex; align-items: flex-start; gap: 12px;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 16px 18px;
}
.pain-item .x {
  flex: none; width: 24px; height: 24px; border-radius: 50%;
  background: #fde8e6; color: var(--danger);
  display: grid; place-items: center; font-weight: 800; font-size: 13px;
  margin-top: 1px;
}
.pain-item p { font-size: var(--fs-small); color: var(--ink); }
.pain-item p .t { font-weight: 700; }

/* ---------- Highlight metric ---------- */
.metric {
  display: flex; flex-direction: column; gap: 4px;
}
.metric .num {
  font-size: clamp(30px, 6vw, 48px);
  font-weight: 800; letter-spacing: -0.03em; line-height: 1.05;
  color: var(--dj-blue);
}
.metric .num.on-dark { color: #fff; }
.metric .unit { font-size: 0.5em; font-weight: 700; }

/* ---------- Steps ---------- */
.steps { display: grid; gap: 16px; counter-reset: step; }
@media (min-width: 768px) { .steps.row { grid-auto-flow: column; grid-auto-columns: 1fr; } }
.step {
  position: relative;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 24px 22px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.step .step-no {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 30px; height: 30px; padding: 0 10px;
  border-radius: var(--r-pill);
  background: var(--dj-blue); color: #fff;
  font-size: 14px; font-weight: 800; letter-spacing: -0.01em;
  margin-bottom: 14px;
}
.step h4 { font-size: var(--fs-body); font-weight: 700; letter-spacing: -0.01em; }
.step p { margin-top: 6px; font-size: var(--fs-small); color: var(--ink-2); }

/* ---------- Data table ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--r-md); border: 1px solid var(--line); }
table.data {
  width: 100%; border-collapse: collapse; min-width: 460px;
  font-size: var(--fs-small);
}
table.data caption {
  text-align: right; padding: 12px 14px 0; caption-side: top;
  font-size: var(--fs-caption); color: var(--ink-3);
}
table.data th, table.data td {
  padding: 14px 16px; text-align: center; border-bottom: 1px solid var(--line-2);
}
table.data thead th {
  background: var(--dj-navy); color: #fff; font-weight: 700; letter-spacing: -0.01em;
  border-bottom: none;
}
table.data tbody th { background: var(--bg-soft); font-weight: 700; }
table.data td.hl { color: var(--dj-blue); font-weight: 800; }
table.data tbody tr:last-child td, table.data tbody tr:last-child th { border-bottom: none; }

/* ---------- Spec / definition list ---------- */
.spec {
  border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; background: #fff;
}
.spec-row {
  display: grid; grid-template-columns: 1fr; gap: 4px;
  padding: 18px 20px; border-bottom: 1px solid var(--line-2);
}
.spec-row:last-child { border-bottom: none; }
.spec-row dt { font-weight: 700; color: var(--dj-navy); font-size: var(--fs-small); }
.spec-row dd { margin: 0; color: var(--ink-2); font-size: var(--fs-small); }
.spec-row dd .sub { display: block; color: var(--ink-3); font-size: var(--fs-caption); margin-top: 4px; }
@media (min-width: 640px) {
  .spec-row { grid-template-columns: 180px 1fr; gap: 20px; align-items: baseline; }
}

/* ---------- Accordion (FAQ) ---------- */
.accordion { border-top: 1px solid var(--line); }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-q {
  width: 100%; background: none; border: none;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 4px; text-align: left;
  font-size: var(--fs-body); font-weight: 700; letter-spacing: -0.01em; color: var(--ink);
}
.acc-q .chev { flex: none; transition: transform .25s ease; color: var(--dj-blue); }
.acc-item[open] .acc-q .chev, .acc-item.open .acc-q .chev { transform: rotate(180deg); }
.acc-a {
  overflow: hidden; max-height: 0;
  transition: max-height .3s ease;
}
.acc-a > div { padding: 0 4px 22px; color: var(--ink-2); font-size: var(--fs-small); }

/* ---------- Forms ---------- */
.form-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 28px 22px;
  box-shadow: var(--shadow-md);
}
@media (min-width: 768px) { .form-card { padding: 40px 40px; } }
.field { margin-bottom: 16px; }
.field label {
  display: block; font-size: var(--fs-small); font-weight: 700;
  letter-spacing: -0.01em; margin-bottom: 8px; color: var(--ink);
}
.field label .req { color: var(--dj-blue); margin-left: 3px; }
.field input, .field select, .field textarea {
  width: 100%; font-family: inherit; font-size: var(--fs-body);
  color: var(--ink); background: #fff;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 14px 15px; transition: border-color .15s, box-shadow .15s;
}
.field input::placeholder, .field textarea::placeholder { color: #9aa7ba; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--dj-blue); box-shadow: var(--ring); outline: none;
}
.field textarea { resize: vertical; min-height: 96px; }
.field .err-msg { display: none; color: var(--danger); font-size: var(--fs-caption); margin-top: 6px; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--danger); }
.field.invalid .err-msg { display: block; }

.grid-2 { display: grid; gap: 16px; }
@media (min-width: 560px) { .grid-2 { grid-template-columns: 1fr 1fr; } }

.consent {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: var(--fs-small); color: var(--ink-2);
  background: var(--bg-soft); border-radius: var(--r-sm); padding: 14px 16px;
}
.consent input { width: 20px; height: 20px; flex: none; margin-top: 1px; accent-color: var(--dj-blue); }
.consent a { color: var(--dj-blue); text-decoration: underline; }

.form-success {
  display: none; text-align: center; padding: 20px 0;
}
.form-success.show { display: block; }
.form-success .ok {
  width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%;
  background: var(--bg-blue-50); color: var(--dj-blue);
  display: grid; place-items: center;
}

/* ---------- Top event bar (DJ Bank x Remember) ---------- */
.topbar {
  background: linear-gradient(90deg, var(--dj-navy) 0%, var(--dj-blue) 100%);
  color: #fff;
}
.topbar .inner {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  padding: 10px var(--sp-gutter); text-align: center;
  font-size: var(--fs-caption); font-weight: 600; letter-spacing: -0.01em;
  flex-wrap: wrap;
}
.topbar-brands { display: inline-flex; align-items: center; gap: 10px; }
.topbar .dj-logo {
  height: 15px; width: auto; filter: brightness(0) invert(1); opacity: .98;
}
.topbar .rm-logo {
  height: 13px; width: auto; filter: brightness(0) invert(1); opacity: .95;
}
.topbar .x { opacity: .65; font-weight: 700; }
.topbar strong { font-weight: 800; }
.topbar-sep { opacity: .45; }

/* ---------- Compact CTA (constrained spaces: nav bar, sticky bar) ---------- */
.btn-compact { font-size: 14px; padding: 10px 16px; }
@media (max-width: 400px) { .btn-compact { font-size: 13px; padding: 9px 12px; } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }
.site-header .inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 62px; padding-inline: var(--sp-gutter);
  max-width: var(--container); margin-inline: auto;
}
.site-header .logo { height: 26px; width: auto; }
.site-header .btn { padding: 11px 18px; font-size: var(--fs-small); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(120% 90% at 85% 0%, rgba(140,210,245,.35) 0%, rgba(140,210,245,0) 55%),
    linear-gradient(160deg, #eaf1ff 0%, #f6f9ff 60%, #ffffff 100%);
}
.hero .container { position: relative; z-index: 2; }
.hero-grid {
  display: grid; gap: 36px; align-items: center;
  padding-block: 48px 56px;
}
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 48px; padding-block: 72px 88px; }
}
.hero .eyebrow { margin-bottom: 16px; }
.hero .h-hero { color: var(--ink); }
.hero .h-hero .accent { color: var(--dj-blue); }
.hero .lead { margin-top: 18px; max-width: 34ch; }
.hero-trust {
  display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 26px;
  font-size: var(--fs-caption); color: var(--ink-2);
}
.hero-trust span { display: inline-flex; align-items: center; gap: 6px; }
.hero-trust svg { color: var(--dj-blue); width: 16px; height: 16px; }

/* Hero visual card */
.hero-card {
  position: relative;
  background: linear-gradient(155deg, var(--dj-navy) 0%, var(--dj-blue) 100%);
  border-radius: 26px; padding: 30px 28px; color: #fff;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.hero-card::after {
  content: ""; position: absolute; right: -60px; top: -60px;
  width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(140,210,245,.55), transparent 70%);
}
.hero-card .hc-label { font-size: var(--fs-small); opacity: .9; font-weight: 600; }

/* ---------- Value strip (dark) ---------- */
.value-dark {
  background: linear-gradient(155deg, var(--dj-navy) 0%, var(--dj-navy-2) 100%);
  color: #fff; border-radius: var(--r-lg);
  padding: 40px 28px;
}
.value-dark .eyebrow { color: var(--dj-sky); }
.value-dark .h2 { color: #fff; margin-top: 12px; }
.value-dark p { color: rgba(255,255,255,.82); margin-top: 16px; font-size: var(--fs-small); }
.value-dark .metric-row { display: grid; gap: 20px; margin-top: 28px; }
@media (min-width: 640px) { .value-dark .metric-row { grid-template-columns: repeat(3, 1fr); } }
.value-dark .metric .num { color: #fff; }
.value-dark .metric .lbl { font-size: var(--fs-caption); color: rgba(255,255,255,.72); }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--dj-blue) 0%, var(--dj-blue-soft) 100%);
  color: #fff; text-align: center;
}
.cta-band .h2 { color: #fff; }
.cta-band p { margin: 14px auto 26px; max-width: 46ch; color: rgba(255,255,255,.9); font-size: var(--fs-small); }
.cta-band .btn-outline { border-color: #fff; }

/* ---------- Footer ---------- */
.site-footer { background: #0e1730; color: rgba(255,255,255,.7); }
.site-footer .inner { padding-block: 44px; }
.site-footer .foot-top {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 20px; padding-bottom: 16px; border-bottom: 1px solid rgba(255,255,255,.12);
}
.site-footer .foot-logo { height: 24px; }
.site-footer .foot-links { display: flex; gap: 20px; font-size: var(--fs-small); }
.site-footer .foot-links a:hover { color: #fff; }
.legal { margin-top: 24px; }
.legal ul { display: grid; gap: 7px; }
.legal li { position: relative; padding-left: 12px; font-size: var(--fs-caption); line-height: 1.5; color: rgba(255,255,255,.55); }
.legal li::before { content: "·"; position: absolute; left: 2px; }
.legal .approval { margin-top: 18px; font-size: 12px; color: rgba(255,255,255,.4); }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Misc ---------- */
.note {
  font-size: var(--fs-caption); color: var(--ink-3); margin-top: 14px; line-height: 1.6;
}
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }
.bg-soft { background: var(--bg-soft); }

/* ============================================================
   Lead-funnel components (cold-traffic reframe)
   ============================================================ */

.hero-card .hc-note {
  margin-top: 22px; text-align: center; font-size: var(--fs-caption);
  opacity: .85; position: relative; z-index: 1;
}
.hero-card .hc-note b { color: var(--dj-sky); font-weight: 700; }

/* ---------- Trust badge (under hero lead, no longer tied to a button —
   the sticky header carries the CTA) ---------- */
.cta-help {
  margin-top: 26px;
  display: inline-flex; align-items: center; gap: 8px;
  font-size: var(--fs-small); font-weight: 600; color: var(--dj-navy);
  background: var(--bg-blue-50); border: 1px solid var(--bg-blue-100);
  padding: 9px 16px 9px 12px; border-radius: var(--r-pill);
}
.cta-help svg { width: 16px; height: 16px; color: var(--dj-blue); flex: none; }

/* ---------- Empathy section (you-voice) ---------- */
.empathy-close {
  margin-top: 32px; text-align: center;
  font-size: var(--fs-h4); font-weight: 700; letter-spacing: -0.015em;
  line-height: 1.4; color: var(--ink);
}
.empathy-close b { color: var(--dj-blue); }

/* ---------- Solution reveal band ---------- */
.reveal-band { text-align: center; }
.reveal-band .kicker {
  display: inline-block; font-size: var(--fs-small); font-weight: 700;
  letter-spacing: -0.01em; color: var(--dj-blue); margin-bottom: 10px;
}
.reveal-band .h2 .accent { color: var(--dj-blue); }

/* ---------- Big number chips (compact proof) ---------- */
.numchips { display: grid; gap: 16px; margin-top: 36px; }
@media (min-width: 640px) { .numchips { grid-template-columns: repeat(3, 1fr); } }
.numchip {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 28px 20px; text-align: center; box-shadow: var(--shadow-sm);
}
.numchip .n {
  font-size: clamp(30px, 6vw, 44px); font-weight: 800; letter-spacing: -0.03em;
  line-height: 1.05; color: var(--dj-blue);
}
.numchip .n .u { font-size: .48em; font-weight: 700; }
.numchip .l { margin-top: 8px; font-size: var(--fs-small); color: var(--ink-2); font-weight: 600; }

/* ---------- Remember bonus band ---------- */
.remember-band {
  background: linear-gradient(120deg, var(--dj-navy) 0%, var(--dj-blue) 100%);
  color: #fff; border-radius: var(--r-lg); overflow: hidden;
  padding: 32px 26px; display: flex; flex-wrap: wrap; align-items: center;
  gap: 20px 28px; justify-content: space-between;
}
.remember-band .rb-copy { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.remember-band .rb-logo { height: 15px; filter: brightness(0) invert(1); }
.remember-band .rb-x { opacity: .6; font-weight: 700; }
.remember-band h3 { font-size: var(--fs-h4); font-weight: 800; letter-spacing: -0.015em; line-height: 1.3; }
.remember-band p { font-size: var(--fs-small); color: rgba(255,255,255,.82); margin-top: 6px; }
.remember-band .btn { background: #fff; color: var(--dj-blue); flex: none; }
.remember-band .btn:hover { background: #eef3ff; }

/* ---------- Disclosure (collapsible detail at page bottom) ---------- */
.disclosure {
  border: 1px solid var(--line); border-radius: var(--r-md);
  background: #fff; overflow: hidden;
}
.disclosure + .disclosure { margin-top: 12px; }
.disclosure > summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 22px; font-weight: 700; letter-spacing: -0.01em;
  font-size: var(--fs-body); color: var(--ink);
}
.disclosure > summary::-webkit-details-marker { display: none; }
.disclosure > summary .chev { transition: transform .25s ease; color: var(--dj-blue); flex: none; }
.disclosure[open] > summary .chev { transform: rotate(180deg); }
.disclosure .disclosure-body { padding: 4px 22px 24px; }
.disclosure .disclosure-body .note { margin-top: 12px; }

/* ---------- Modal popup (consultation form) ---------- */
.modal[hidden] { display: none; }
.modal {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center; padding: 18px;
}
.modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(10, 18, 40, .55); backdrop-filter: blur(3px);
  opacity: 0; transition: opacity .25s ease;
}
.modal.open .modal-backdrop { opacity: 1; }
.modal-dialog {
  position: relative; z-index: 1;
  width: 100%; max-width: 520px; max-height: 92vh; overflow-y: auto;
  background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
  padding: 34px 26px 30px;
  transform: translateY(26px) scale(.98); opacity: 0;
  transition: transform .32s cubic-bezier(.22,1,.36,1), opacity .3s ease;
}
@media (min-width: 640px) { .modal-dialog { padding: 40px 40px 34px; } }
.modal.open .modal-dialog { transform: none; opacity: 1; }
.modal-close {
  position: absolute; top: 14px; right: 14px;
  width: 40px; height: 40px; border: none; border-radius: 50%;
  background: var(--bg-soft); color: var(--ink-2);
  display: grid; place-items: center; transition: background .15s;
}
.modal-close:hover { background: var(--line); }
.modal-close svg { width: 20px; height: 20px; }
.modal-head { margin-bottom: 22px; padding-right: 34px; }
.modal-head .eyebrow { margin-bottom: 8px; }
.modal-head .h3 { margin-bottom: 8px; }
.modal-head p { font-size: var(--fs-small); color: var(--ink-2); }

/* ============================================================
   Desktop refinement pass
   The layout was tuned mobile-first; this tier gives real desktop
   (1024px+) its own breathing room instead of reusing tablet spacing,
   and adds pointer-only hover polish (scoped so touchscreens never get
   a "stuck" hover state).
   ============================================================ */
@media (min-width: 1024px) {
  .section-head.center { max-width: 780px; }

  .card { padding: 34px 30px; }
  .card .card-icon { width: 58px; height: 58px; border-radius: 16px; margin-bottom: 22px; }
  .card .card-icon svg { width: 28px; height: 28px; }
  .card h3 { font-size: var(--fs-h4); }

  .step { padding: 30px 28px; }

  .value-dark { padding: 56px 64px; }
  .value-dark .metric-row { gap: 32px; margin-top: 34px; }

  .remember-band { padding: 44px 48px; }

  .form-card { padding: 48px 52px; }

  table.data th, table.data td { padding: 18px 22px; }

  .hero-card.graphic { padding: 36px 34px 32px; }
  .hg-stage { margin-top: 26px; }

  .numchip { padding: 34px 26px; }

  .pain-item { padding: 20px 22px; }

  .disclosure > summary { padding: 24px 26px; }
  .disclosure .disclosure-body { padding: 4px 26px 28px; }

  .site-header .inner { height: 76px; }
  .site-header .logo { height: 30px; }
}

/* Hover lift only for devices that truly support hover + a precise
   pointer — prevents touchscreens from getting a state they can't undo. */
@media (hover: hover) and (pointer: fine) {
  .card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--bg-blue-100);
  }
  .step:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
    border-color: var(--bg-blue-100);
  }
  .numchip { transition: transform .25s ease, box-shadow .25s ease; }
  .numchip:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
  .hub-card { transition: transform .2s ease, box-shadow .2s ease; }
}
body.modal-open { overflow: hidden; }
