/* ════════════════════════════════════════════════════════
   BACKPOCKET EMPATHY™ — Web Edition
   Dark, warm, centered — responsive (phone → desktop)

   Playfair Display italic — questions, transitions
   Outfit — options, labels, inputs, nav

   #111110 bg / #f5f0e8 text / #c4a882 accent
   ════════════════════════════════════════════════════════ */

.hidden { display: none !important; }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body { width: 100%; min-height: 100%; }

.bp-kiosk {
  width: 100%; min-height: 100vh;
  background: #111110;
  color: #f5f0e8;
  font-family: 'Outfit', sans-serif;
  position: relative;
  -webkit-tap-highlight-color: transparent;
}

/* ── Progress ── */

.bp-progress {
  position: fixed; top: 0; left: 0; right: 0;
  height: 3px; display: flex; gap: 3px; padding: 0 24px;
  z-index: 10;
}

.bp-prog-seg {
  flex: 1; background: #222;
  border-radius: 0 0 2px 2px;
  transition: background 0.6s ease;
}

.bp-prog-fill { background: #c4a882; }

/* ── Nav ── */

.bp-nav {
  position: fixed; top: 14px; left: 20px; right: 20px;
  display: flex; align-items: center; justify-content: space-between;
  z-index: 10;
}

.bp-nav-back, .bp-nav-reset {
  font-family: 'Outfit', sans-serif;
  font-size: 16px; font-weight: 400;
  color: #bdb6ab; background: none;
  border: none;
  padding: 14px 8px; border-radius: 0;
  cursor: pointer;
  letter-spacing: 0.02em;
  -webkit-tap-highlight-color: rgba(196,168,130,0.15);
  transition: color 0.15s ease;
}

.bp-nav-back:active, .bp-nav-reset:active {
  background: none; color: #f5f0e8;
}

.bp-step-num {
  font-size: 14px; font-weight: 400; color: #6b665e;
  letter-spacing: 0.12em;
}

/* ── Screen ── */

.bp-screen {
  position: relative;
  width: 100%; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 96px 20px 48px;
  z-index: 2;
}

.bp-screen.animate-in {
  animation: bpIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes bpIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Center ── */

.bp-center {
  width: 100%;
  display: flex; flex-direction: column;
  align-items: center; text-align: center;
  max-width: 600px;
}

.bp-top {
  justify-content: flex-start;
  margin-top: -18vh;
}

/* ══════════════════════════
   TYPOGRAPHY
   ══════════════════════════ */

.bp-brand {
  font-size: 14px; font-weight: 400; color: #f6e448;
  letter-spacing: 0.14em; margin-bottom: 28px;
}

.bp-title {
  font-family: 'Playfair Display', serif;
  font-weight: 500; font-style: italic;
  font-size: 64px; color: #fbfbfb;
  line-height: 1.15; letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.bp-title-sub {
  font-size: 22px; font-weight: 400; color: #ffffff;
  letter-spacing: 0.04em; margin-bottom: 68px;
}

.bp-label {
  font-size: 13px; font-weight: 500; color: #555;
  letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: 14px;
}

.bp-q {
  font-family: 'Playfair Display', serif;
  font-weight: 500; font-style: italic;
  font-size: 30px; color: #f5f0e8;
  line-height: 1.2; margin-bottom: 10px;
}

.bp-q-lg { font-size: 36px; }

.bp-sub {
  font-size: 17px; font-weight: 400; color: #e4e4e4;
  margin-bottom: 60px; line-height: 1.4;
}

.bp-micro {
  font-size: 13px; font-weight: 400; color: #3a3835;
  letter-spacing: 0.06em; text-transform: uppercase;
  margin-top: 8px;
}

.bp-okay {
  font-family: 'Outfit', sans-serif;
  font-size: 15px; color: #555;
  letter-spacing: 0.05em;
  animation: bpIn 0.4s ease;
}

/* ── Options ── */

.bp-opts {
  display: flex; flex-direction: column;
  align-items: center; gap: 22px;
  width: 100%; max-width: 720px;
}

.bp-opt {
  font-family: 'Outfit', sans-serif;
  font-size: 16px; font-weight: 400;
  color: #c8c2b8; background: #1a1918;
  border: 1px solid #2a2926; border-radius: 20px;
  padding: 13px 22px; width: 100%;
  max-width: 720px;
  text-align: center; cursor: pointer;
  min-height: 50px;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  animation: bpOptIn 0.4s ease-out both;
  -webkit-tap-highlight-color: rgba(196,168,130,0.15);
}

.bp-opt-c {
  font-size: 16px; padding: 15px 22px; min-height: 52px;
}

@keyframes bpOptIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.bp-opt:active {
  background: #c4a882; color: #111110;
  border-color: #c4a882;
}

.bp-opt.bp-opt-sel {
  background: #c4a882; color: #111110;
  border-color: #c4a882;
}

/* ── Branch buttons (choose-your-own-adventure) ── */

.bp-branch-row {
  flex-direction: row; gap: 20px;
  max-width: 900px; width: 100%;
}

.bp-branch-btn {
  flex: 1; flex-direction: column;
  min-height: 180px; padding: 32px 28px; gap: 12px;
  background: #22201d; border-color: #3a3835; border-width: 1.5px;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.bp-branch-btn:active, .bp-branch-btn.bp-opt-sel {
  background: #c4a882; border-color: #c4a882;
}

.bp-branch-title {
  font-size: 26px; font-weight: 500; color: #f5f0e8;
  letter-spacing: -0.01em; transition: color 0.15s ease;
}

.bp-branch-sub {
  font-size: 16px; font-weight: 300; color: #8a8580;
  letter-spacing: 0.02em; transition: color 0.15s ease;
}

.bp-branch-btn:active .bp-branch-title { color: #111110; }
.bp-branch-btn:active .bp-branch-sub { color: #111110; }

/* ── Grid ── */

.bp-grid-wrap {
  display: flex; flex-direction: column;
  align-items: center; gap: 14px;
  width: 100%; max-width: 720px;
}

.bp-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 14px; width: 100%;
}

/* ── Something else ── */

.bp-se {
  width: 100%; max-width: 520px;
  animation: bpOptIn 0.4s ease-out both;
}

.bp-se .bp-opt { width: 100%; }

.bp-se-tray {
  max-height: 0; overflow: hidden; opacity: 0;
  transition: max-height 0.3s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.25s ease;
}

.bp-se-tray.bp-se-open {
  max-height: 60px; opacity: 1;
}

.bp-se-input {
  font-family: 'Outfit', sans-serif;
  font-size: 17px; font-weight: 400;
  color: #f5f0e8; background: #1a1918;
  border: none; border-bottom: 2px solid #2a2926;
  padding: 14px 24px; width: 100%; outline: none;
  text-align: center;
  caret-color: #c4a882; border-radius: 0 0 12px 12px;
  transition: border-color 0.25s;
}

.bp-se-input:focus { border-color: #c4a882; }
.bp-se-input::placeholder { color: #3a3835; }

/* ── Inputs ── */

.bp-fields {
  display: flex; flex-direction: column;
  align-items: center; gap: 24px;
  width: 100%; max-width: 480px;
}

.bp-field { display: flex; flex-direction: column; width: 100%; }
.bp-field-row { display: flex; gap: 20px; width: 100%; }

.bp-field-label {
  font-size: 13px; font-weight: 500; color: #c4c0b9;
  letter-spacing: 0.05em; text-transform: uppercase;
  margin-bottom: 8px; text-align: left;
}

.bp-input {
  font-family: 'Outfit', sans-serif;
  font-size: 18px; font-weight: 400;
  color: #f5f0e8; background: transparent;
  border: none; border-bottom: 2px solid #2a2926;
  padding: 14px 4px; outline: none; text-align: center;
  caret-color: #c4a882; transition: border-color 0.25s;
}

.bp-input:focus { border-color: #c4a882; }
.bp-input::placeholder { color: #3a3835; }

.bp-select {
  font-family: 'Outfit', sans-serif;
  font-size: 17px; font-weight: 400;
  color: #6b665e; background: #111110;
  border: 2px solid #2a2926; border-radius: 10px;
  padding: 14px 18px; outline: none;
  appearance: none; -webkit-appearance: none;
  cursor: pointer; text-align: center;
  transition: border-color 0.25s;
}

.bp-select:focus { border-color: #c4a882; color: #f5f0e8; }
.bp-select option { background: #111110; color: #c8c2b8; }

/* ── Custom Dropdown ── */

.bp-dd {
  position: relative; width: 100%;
  font-family: 'Outfit', sans-serif;
}

.bp-dd-trigger {
  font-family: 'Outfit', sans-serif;
  font-size: 17px; font-weight: 400;
  color: #6b665e; background: #1a1918;
  border: 2px solid #2a2926; border-radius: 10px;
  padding: 14px 40px 14px 18px; width: 100%;
  outline: none; cursor: pointer; text-align: center;
  min-height: 54px;
  transition: border-color 0.2s ease, color 0.2s ease;
  -webkit-tap-highlight-color: rgba(196,168,130,0.15);
  position: relative;
}

.bp-dd-trigger.bp-dd-filled { color: #f5f0e8; }
.bp-dd-trigger.bp-dd-open { border-color: #c4a882; color: #f5f0e8; }

.bp-dd-caret {
  position: absolute; right: 18px; top: 50%;
  width: 8px; height: 8px;
  border-right: 2px solid #6b665e;
  border-bottom: 2px solid #6b665e;
  transform: translateY(-75%) rotate(45deg);
  transition: transform 0.2s ease, border-color 0.2s ease;
  pointer-events: none;
}

.bp-dd-trigger.bp-dd-open .bp-dd-caret {
  border-color: #c4a882;
  transform: translateY(-25%) rotate(-135deg);
}

.bp-dd-menu {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0;
  background: #1a1918;
  border: 1px solid #2a2926; border-radius: 10px;
  max-height: 260px;
  overflow-y: auto;
  z-index: 30;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  animation: bpDdIn 0.18s ease-out;
}

@keyframes bpDdIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.bp-dd-item {
  font-family: 'Outfit', sans-serif;
  font-size: 16px; font-weight: 400;
  color: #c8c2b8; background: transparent;
  border: none; width: 100%;
  padding: 14px 18px; cursor: pointer;
  text-align: center;
  border-bottom: 1px solid #222220;
  -webkit-tap-highlight-color: rgba(196,168,130,0.15);
  transition: background 0.15s ease, color 0.15s ease;
}

.bp-dd-item:last-child { border-bottom: none; }
.bp-dd-item:active { background: #c4a882; color: #111110; }
.bp-dd-item.bp-dd-item-sel { color: #c4a882; }

.bp-dd-other {
  margin-top: 12px;
  max-height: 0; overflow: hidden; opacity: 0;
  transition: max-height 0.3s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.25s ease, margin-top 0.2s ease;
}

.bp-dd-other.bp-dd-other-open {
  max-height: 64px; opacity: 1;
}

.bp-dd-other-input {
  font-family: 'Outfit', sans-serif;
  font-size: 17px; font-weight: 400;
  color: #f5f0e8; background: #1a1918;
  border: none; border-bottom: 2px solid #2a2926;
  padding: 14px 18px; width: 100%; outline: none;
  text-align: center;
  caret-color: #c4a882;
  transition: border-color 0.25s;
}

.bp-dd-other-input:focus { border-color: #c4a882; }
.bp-dd-other-input::placeholder { color: #3a3835; }

.bp-textarea {
  font-family: 'Outfit', sans-serif;
  font-size: 17px; font-weight: 400;
  color: #f5f0e8; background: #1a1918;
  border: 2px solid #2a2926; border-radius: 12px;
  padding: 20px 24px; outline: none; resize: none;
  line-height: 1.6; caret-color: #c4a882;
  width: 100%; max-width: 520px; text-align: center;
  transition: border-color 0.25s;
}

.bp-textarea:focus { border-color: #c4a882; }
.bp-textarea::placeholder { color: #3a3835; }

/* ── Buttons ── */

.bp-btn {
  font-family: 'Outfit', sans-serif;
  font-size: 16px; font-weight: 500;
  color: #f5f0e8; background: transparent;
  border: 1.5px solid #c4a882; border-radius: 10px;
  padding: 16px 36px; cursor: pointer;
  letter-spacing: 0.02em;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
  -webkit-tap-highlight-color: rgba(196,168,130,0.15);
}

.bp-btn:active { background: #1c1b19; color: #c8c2b8; }
.bp-btn:disabled {
  opacity: 0.2;
  color: #3a3835;
  border-color: #2a2926;
  cursor: default;
}
.bp-btn:disabled:active { background: transparent; color: #3a3835; border-color: #2a2926; }

.bp-btn-primary {
  font-family: 'Outfit', sans-serif;
  font-size: 16px; font-weight: 500;
  color: #111110; background: #f0f0e4;
  border: none; border-radius: 10px;
  padding: 18px 40px; cursor: pointer;
  letter-spacing: 0.02em;
  -webkit-tap-highlight-color: rgba(196,168,130,0.3);
}

.bp-btn-primary:active { opacity: 0.85; }
.bp-btn-lg { padding: 20px 48px; font-size: 17px; }

.bp-skip {
  font-size: 15px; font-weight: 400; color: #3a3835;
  background: none; border: none; cursor: pointer;
  text-decoration: underline; text-underline-offset: 4px;
  text-decoration-color: #2a2926; padding: 8px;
  -webkit-tap-highlight-color: rgba(196,168,130,0.15);
}

.bp-skip:active { color: #555; }

.bp-bottom {
  display: flex; flex-direction: column;
  align-items: center; gap: 14px; margin-top: 24px;
}

/* ── Interstitial ── */

.bp-inter {
  font-family: 'Playfair Display', serif;
  font-weight: 400; font-style: italic;
  font-size: 28px; color: #7a756c;
  animation: bpIn 0.6s ease;
}

.bp-dim { opacity: 0.3; transition: opacity 1.2s ease; }

/* ── Dots ── */

.bp-dots { display: flex; gap: 10px; margin-top: 20px; }

.bp-dots span {
  width: 6px; height: 6px; border-radius: 50%;
  background: #c4a882; opacity: 0.3;
  animation: bpPulse 1.4s ease-in-out infinite;
}

.bp-dots span:nth-child(2) { animation-delay: 0.2s; }
.bp-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes bpPulse {
  0%, 80%, 100% { opacity: 0.2; }
  40% { opacity: 1; }
}

/* ── Confirm ── */

.bp-confirm-bg {
  position: fixed; inset: 0;
  background: rgba(17,17,16,0.94);
  display: flex; align-items: center; justify-content: center;
  z-index: 20; animation: bpIn 0.3s ease;
  padding: 24px;
}

.bp-confirm { text-align: center; }

.bp-confirm-btns {
  display: flex; gap: 16px; justify-content: center;
  flex-wrap: wrap; margin-top: 24px;
}

.bp-word-count {
  font-family: 'Outfit', sans-serif;
  font-size: 13px; font-weight: 400;
  color: #3a3835; letter-spacing: 0.04em;
  margin-top: 8px; text-align: right;
  width: 100%; max-width: 520px;
  transition: color 0.2s ease;
}

.bp-word-count.bp-word-warn { color: #c4a882; }
.bp-word-count.bp-word-limit { color: #c47a6a; }

/* ══════════════════════════
   DIGITAL RECEIPT
   ══════════════════════════ */

.bp-receipt-screen { max-width: 420px; }

.bp-receipt {
  position: relative;
  width: 100%; max-width: 360px;
  background: #f5f0e8;
  color: #241f1b;
  box-shadow: 0 24px 60px rgba(0,0,0,0.45);
  animation: bpIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.bp-receipt-edge {
  position: absolute; left: 0; right: 0; height: 11px;
  background:
    linear-gradient(135deg, #111110 50%, transparent 50%),
    linear-gradient(-135deg, #111110 50%, transparent 50%);
  background-size: 18px 18px;
  background-repeat: repeat-x;
  background-position: 0 0;
}

.bp-receipt-edge-top { top: -1px; }
.bp-receipt-edge-bottom { bottom: -1px; transform: scaleY(-1); }

.bp-receipt-body { padding: 32px 26px 30px; text-align: left; }

.bp-receipt-head { text-align: center; margin-bottom: 4px; }

.bp-receipt-brand {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", "Courier New", monospace;
  font-size: 13px; font-weight: 700; letter-spacing: 0.16em;
  color: #241f1b;
}

.bp-receipt-to, .bp-receipt-meta {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", "Courier New", monospace;
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: #6b5f52; margin-top: 6px;
}

.bp-receipt-divider {
  border-top: 1.5px dashed rgba(42,36,32,0.32);
  margin: 18px 0;
}

.bp-receipt-script {
  font-family: 'Playfair Display', serif;
  font-style: italic; font-weight: 500;
  font-size: 19px; line-height: 1.55;
  color: #201b17;
}

.bp-receipt-script p { margin-bottom: 18px; }
.bp-receipt-script p:last-child { margin-bottom: 0; }

.bp-receipt-rec-label {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", "Courier New", monospace;
  font-size: 11px; font-weight: 700; letter-spacing: 0.14em;
  color: #6b5f52; margin-bottom: 8px;
}

.bp-receipt-rec-text {
  font-family: 'Outfit', sans-serif;
  font-size: 15px; line-height: 1.5; color: #3a332c;
}

.bp-receipt-actions {
  display: flex; gap: 14px; justify-content: center;
  width: 100%; max-width: 360px; margin-top: 26px;
}

.bp-receipt-actions .bp-btn,
.bp-receipt-actions .bp-btn-primary {
  flex: 1; padding-left: 0; padding-right: 0;
}

.bp-receipt-again { margin-top: 22px; }

/* ── Mobile ── */

@media (max-width: 640px) {
  .bp-screen { padding: 88px 16px 40px; }

  .bp-title { font-size: 40px; }
  .bp-title-sub { font-size: 18px; margin-bottom: 48px; }

  .bp-q { font-size: 24px; }
  .bp-q-lg { font-size: 28px; }
  .bp-sub { font-size: 15px; margin-bottom: 40px; }

  .bp-grid { grid-template-columns: 1fr; }

  .bp-branch-row { flex-direction: column; }
  .bp-branch-btn { min-height: 140px; padding: 26px 22px; }

  .bp-field-row { flex-direction: column; gap: 16px; }

  .bp-receipt-body { padding: 26px 20px 24px; }
  .bp-receipt-script { font-size: 17px; }
}
