/* ─── Boopr Business Card · Premium Edition ─────────────────────────── */

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

:root {
  --red: #e81c08;
  --red-deep: #b8160a;
  --navy: #073056;
  --navy-deep: #041a32;
  --cream: #fff8f0;
  --gold: #f4b700;
  --ink: #0d0a08;
  --white: #ffffff;
  --line: #e8ddd0;
  --line-soft: #f0e8dc;
  --muted: #6b6055;
  --shadow-card: 0 30px 80px -20px rgba(0, 0, 0, 0.25), 0 8px 24px -8px rgba(0, 0, 0, 0.12);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

@font-face {
  font-family: 'Inter';
  font-display: swap;
  font-weight: 400 800;
  src: url('https://rsms.me/inter/font-files/InterVariable.woff2') format('woff2');
}

html, body {
  height: 100%;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: var(--ink);
  overflow-x: hidden;
  font-feature-settings: 'cv11', 'ss01', 'ss03';
}

body {
  min-height: 100vh;
  background: var(--red);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
  position: relative;
}

/* ─── Top bar (lang switcher) ───────────────────────────────────────── */
.topbar {
  width: 100%;
  max-width: 480px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 0.7rem 1.4rem 0;
}
.lang-switcher {
  display: flex;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 100px;
  padding: 4px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.lang-btn {
  padding: 0.4rem 0.85rem;
  background: transparent;
  border: 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.25s var(--ease-out);
  text-transform: uppercase;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
}
.lang-btn.active {
  background: var(--white);
  color: var(--red);
}

/* ─── Hero (logo animation above card) ──────────────────────────────── */
.hero {
  width: 100%;
  max-width: 480px;
  padding: 0.4rem 1.4rem 0;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  margin-bottom: -1.6rem;
}
.hero-anim {
  width: 160px;
  height: 160px;
  display: block;
  pointer-events: none;
  user-select: none;
}

/* ─── Card wrapper ──────────────────────────────────────────────────── */
.card-wrap {
  width: 100%;
  max-width: 480px;
  padding: 0.4rem 1.4rem 2.4rem;
}

.card {
  background: var(--white);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  position: relative;
}

/* ─── Card header ───────────────────────────────────────────────────── */
.card-header {
  padding: 2rem 1.8rem 1.4rem;
  text-align: center;
  position: relative;
}
.tagline {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--red);
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.tagline-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--red);
}
.name {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 0.4rem;
  color: var(--ink);
}
.role {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: -0.005em;
}

/* ─── Why-meet section ──────────────────────────────────────────────── */
.pitch {
  padding: 0.4rem 1.8rem 1.4rem;
  text-align: center;
}
.pitch p {
  font-size: 0.92rem;
  line-height: 1.55;
  color: #3c352d;
  font-weight: 400;
  letter-spacing: -0.005em;
}
.pitch strong { color: var(--ink); font-weight: 600; }

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  padding: 0;
  margin: 0 1.8rem 1.6rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat {
  text-align: center;
  padding: 0.9rem 0.4rem;
  position: relative;
}
.stat + .stat::before {
  content: '';
  position: absolute;
  left: 0;
  top: 18%;
  bottom: 18%;
  width: 1px;
  background: var(--line);
}
.stat-num {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.03em;
  line-height: 1;
  font-feature-settings: 'tnum';
}
.stat-num sup {
  font-size: 0.6em;
  font-weight: 600;
  color: var(--red);
  margin-left: 1px;
}
.stat-label {
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.35rem;
}

/* ─── Actions ───────────────────────────────────────────────────────── */
.actions {
  padding: 0 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.btn {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.85rem 1.1rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s var(--ease-spring), border-color 0.2s, background 0.2s;
  -webkit-tap-highlight-color: transparent;
  text-align: left;
  width: 100%;
}
.btn:hover { border-color: #d4c5b3; background: #fbf7f1; }
.btn:active { transform: scale(0.98); }

.btn-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: #f6efe5;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--red);
}
.btn-icon svg { width: 18px; height: 18px; }
.btn-text { flex: 1; min-width: 0; }
.btn-label { display: block; line-height: 1.15; font-weight: 600; }
.btn-sub {
  display: block;
  font-size: 0.74rem;
  font-weight: 400;
  color: var(--muted);
  margin-top: 2px;
  letter-spacing: -0.005em;
}
.btn-arrow { color: #c4b5a3; font-size: 1.1rem; flex-shrink: 0; }

.btn-primary {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}
.btn-primary:hover { background: var(--red-deep); border-color: var(--red-deep); }
.btn-primary .btn-icon { background: rgba(255,255,255,0.16); color: var(--white); }
.btn-primary .btn-sub { color: rgba(255,255,255,0.78); }
.btn-primary .btn-arrow { color: rgba(255,255,255,0.6); }

.btn-cta {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
  margin-top: 0.4rem;
}
.btn-cta:hover { background: #2a221c; border-color: #2a221c; }
.btn-cta .btn-icon { background: rgba(255,255,255,0.12); color: var(--white); }
.btn-cta .btn-sub { color: rgba(255,255,255,0.65); }
.btn-cta .btn-arrow { color: rgba(255,255,255,0.5); }

/* ─── Divider with label ────────────────────────────────────────────── */
.divider {
  display: flex; align-items: center;
  margin: 1.4rem 1.8rem 1rem;
  gap: 0.8rem;
}
.divider-line { flex: 1; height: 1px; background: var(--line); }
.divider-text {
  font-size: 0.64rem;
  font-weight: 700;
  color: #a89888;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* ─── QR ────────────────────────────────────────────────────────────── */
.qr-section {
  padding: 0.4rem 1.4rem 1.6rem;
  text-align: center;
}
.qr-wrap {
  display: inline-block;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--white);
}
.qr-wrap img { display: block; border-radius: 4px; }
.qr-url {
  margin-top: 0.7rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.02em;
}

/* ─── Footer ────────────────────────────────────────────────────────── */
.card-footer {
  padding: 1.1rem 1.4rem;
  text-align: center;
  border-top: 1px solid var(--line);
  background: #fbf7f1;
}
.footer-text {
  font-size: 0.7rem;
  color: var(--muted);
  line-height: 1.5;
  letter-spacing: -0.005em;
}
.footer-text strong { color: var(--ink); font-weight: 600; }

/* ─── Bottom mark (under card) ──────────────────────────────────────── */
.bottom-mark {
  width: 100%;
  max-width: 480px;
  text-align: center;
  padding: 0 1.4rem 1.5rem;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 0.04em;
  font-weight: 500;
}

/* ─── Modal ─────────────────────────────────────────────────────────── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(13, 10, 8, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease-out);
  padding: 0;
}
.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}
.modal {
  width: 100%;
  max-width: 480px;
  background: var(--white);
  border-radius: 24px 24px 0 0;
  padding: 1.6rem 1.5rem 1.5rem;
  max-height: 92vh;
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform 0.4s var(--ease-spring);
  box-shadow: 0 -30px 80px rgba(0, 0, 0, 0.3);
}
.modal-backdrop.open .modal { transform: translateY(0); }

@media (min-width: 540px) {
  .modal-backdrop { align-items: center; padding: 1rem; }
  .modal { border-radius: 24px; max-height: 88vh; }
}

.modal-handle {
  width: 36px; height: 4px;
  background: #e0d5c5;
  border-radius: 100px;
  margin: 0 auto 1.2rem;
}
@media (min-width: 540px) { .modal-handle { display: none; } }

.modal-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: 1.4rem;
  gap: 1rem;
}
.modal-title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--ink);
}
.modal-sub {
  font-size: 0.88rem;
  color: var(--muted);
  margin-top: 0.4rem;
  line-height: 1.5;
  letter-spacing: -0.005em;
}
.modal-close {
  background: #f6efe5;
  border: 0;
  color: var(--ink);
  width: 34px; height: 34px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  flex-shrink: 0;
  transition: background 0.2s;
}
.modal-close:hover { background: #ede4d4; }

.form-group { margin-bottom: 0.85rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.form-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.4rem;
}
.form-label .req { color: var(--red); }
.form-input, .form-textarea {
  width: 100%;
  background: #fbf7f1;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.78rem 0.9rem;
  color: var(--ink);
  font-family: inherit;
  font-size: 0.94rem;
  letter-spacing: -0.005em;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
  appearance: none;
}
.form-input:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--red);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(232,28,8,0.12);
}
.form-textarea { resize: vertical; min-height: 80px; font-family: inherit; }
.form-input::placeholder, .form-textarea::placeholder { color: #b8a994; }

.form-submit {
  width: 100%;
  padding: 1rem;
  background: var(--red);
  color: var(--white);
  border: 0;
  border-radius: 14px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.005em;
  cursor: pointer;
  margin-top: 0.6rem;
  transition: transform 0.15s var(--ease-spring), background 0.2s;
}
.form-submit:hover:not(:disabled) { background: var(--red-deep); }
.form-submit:active:not(:disabled) { transform: scale(0.98); }
.form-submit:disabled { opacity: 0.6; cursor: not-allowed; }
.form-note {
  text-align: center;
  font-size: 0.74rem;
  color: var(--muted);
  margin-top: 0.9rem;
  line-height: 1.55;
}

/* ─── Success state ─────────────────────────────────────────────────── */
.success-state {
  text-align: center;
  padding: 1rem 0 0.4rem;
  display: none;
}
.success-state.show { display: block; animation: successIn 0.5s var(--ease-spring); }
@keyframes successIn {
  from { opacity: 0; transform: scale(0.94); }
  to   { opacity: 1; transform: scale(1); }
}
.success-icon {
  width: 72px; height: 72px;
  margin: 0 auto 1.2rem;
  border-radius: 50%;
  background: var(--red);
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
}
.success-icon svg { width: 36px; height: 36px; }
.success-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.success-msg {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.55;
  max-width: 340px;
  margin: 0 auto;
  letter-spacing: -0.005em;
}

/* ─── Rollo Card-Chat widget ────────────────────────────────────────── */
.rollo-fab {
  position: fixed;
  bottom: calc(1rem + env(safe-area-inset-bottom));
  right: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 1rem 0.7rem 0.8rem;
  background: var(--ink);
  color: var(--white);
  border: 0;
  border-radius: 100px;
  font-family: 'Inter', sans-serif;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  cursor: pointer;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35), 0 2px 8px rgba(232, 28, 8, 0.2);
  z-index: 90;
  transition: transform 0.2s var(--ease-spring), box-shadow 0.2s, opacity 0.2s, background 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.rollo-fab:hover { background: #2a221c; transform: translateY(-1px); }
.rollo-fab:active { transform: scale(0.97); }
.rollo-fab.hidden { opacity: 0; pointer-events: none; transform: scale(0.85); }
.rollo-fab svg { width: 18px; height: 18px; }

.rollo-panel {
  position: fixed;
  inset: auto 0 0 0;
  background: var(--white);
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  z-index: 100;
  transform: translateY(110%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.4s var(--ease-spring), opacity 0.25s;
  max-height: min(80vh, 600px);
  height: 80vh;
}
.rollo-panel.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

@media (min-width: 540px) {
  .rollo-panel {
    inset: auto 1.4rem calc(1rem + env(safe-area-inset-bottom)) auto;
    width: 380px;
    height: 560px;
    max-height: 70vh;
    border-radius: 20px;
    transform: translateY(20px);
  }
  .rollo-panel.open { transform: translateY(0); }
}

.rollo-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.1rem 0.9rem;
  border-bottom: 1px solid var(--line);
  background: var(--white);
  flex-shrink: 0;
}
.rollo-head-info { min-width: 0; }
.rollo-head-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.015em;
  line-height: 1.2;
}
.rollo-head-sub {
  font-size: 0.74rem;
  color: var(--muted);
  margin-top: 1px;
  letter-spacing: -0.005em;
}
.rollo-close {
  background: #f6efe5;
  border: 0;
  color: var(--ink);
  width: 30px; height: 30px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
  flex-shrink: 0;
  transition: background 0.2s;
}
.rollo-close:hover { background: #ede4d4; }

.rollo-msgs {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1rem 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  background: #fbf7f1;
  -webkit-overflow-scrolling: touch;
}
.rollo-bubble {
  max-width: 86%;
  padding: 0.7rem 0.9rem;
  border-radius: 14px;
  font-size: 0.9rem;
  line-height: 1.5;
  letter-spacing: -0.005em;
  white-space: pre-wrap;
  word-wrap: break-word;
  animation: bubbleIn 0.3s var(--ease-out);
}
.rollo-user {
  align-self: flex-end;
  background: var(--red);
  color: var(--white);
  border-bottom-right-radius: 4px;
}
.rollo-assistant {
  align-self: flex-start;
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--line);
  border-bottom-left-radius: 4px;
}
@keyframes bubbleIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.rollo-typing {
  display: inline-flex;
  gap: 4px;
  padding: 0.9rem 1rem;
}
.rollo-typing span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #c4b5a3;
  animation: typingDot 1.2s ease-in-out infinite;
}
.rollo-typing span:nth-child(2) { animation-delay: 0.18s; }
.rollo-typing span:nth-child(3) { animation-delay: 0.36s; }
@keyframes typingDot {
  0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-4px); }
}

.rollo-form {
  display: flex;
  gap: 0.5rem;
  padding: 0.7rem 0.9rem calc(0.9rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: var(--white);
  flex-shrink: 0;
}
.rollo-input {
  flex: 1;
  background: #fbf7f1;
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 0.7rem 1rem;
  color: var(--ink);
  font-family: inherit;
  font-size: 0.92rem;
  letter-spacing: -0.005em;
  -webkit-appearance: none;
  appearance: none;
}
.rollo-input:focus {
  outline: none;
  border-color: var(--red);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(232, 28, 8, 0.12);
}
.rollo-input::placeholder { color: #b8a994; }
.rollo-send {
  width: 42px; height: 42px;
  background: var(--red);
  color: var(--white);
  border: 0;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s, transform 0.15s var(--ease-spring);
}
.rollo-send:hover:not(:disabled) { background: var(--red-deep); }
.rollo-send:active:not(:disabled) { transform: scale(0.92); }
.rollo-send:disabled { opacity: 0.6; cursor: not-allowed; }
.rollo-send svg { width: 18px; height: 18px; transform: translateX(-1px); }

/* Hide the FAB label on very small screens to save space */
@media (max-width: 380px) {
  .rollo-fab-label { display: none; }
  .rollo-fab { padding: 0.85rem; }
}

/* ─── Reduced motion ─────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01s !important; transition-duration: 0.01s !important; }
}
