/* ============================================
   HORIZONTAL STORY — 6 panels, free scroll
   Apple-style, punchy problem → calm solution
   ============================================ */

.hstory {
  position: relative;
  width: 100%;
  background: #000;
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

/* ---- Progress bar + controls (sticky) ---- */
.hstory__topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 32px;
  background: linear-gradient(180deg, rgba(0,0,0,0.9), rgba(0,0,0,0));
  pointer-events: none;
}

.hstory__dots {
  display: flex;
  gap: 8px;
  pointer-events: auto;
  background: rgba(20,20,24,0.6);
  backdrop-filter: blur(12px);
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.08);
}

.hstory__dot {
  width: 28px;
  height: 3px;
  border-radius: 2px;
  background: rgba(255,255,255,0.2);
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: background 0.4s ease, width 0.4s ease;
}

.hstory__dot.is-active {
  background: #00bfff;
  width: 44px;
  box-shadow: 0 0 12px rgba(0,191,255,0.5);
}

.hstory__dot:hover { background: rgba(255,255,255,0.5); }

.hstory__skip {
  pointer-events: auto;
  background: rgba(20,20,24,0.6);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.7);
  padding: 9px 18px;
  border-radius: 999px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease;
  letter-spacing: 0.02em;
}

.hstory__skip:hover {
  color: #fff;
  background: rgba(40,40,48,0.8);
  border-color: rgba(255,255,255,0.2);
}

/* ---- Scroll container ---- */
.hstory__track {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  height: 90vh;
  max-height: 780px;
  margin-top: -72px;
  padding-top: 72px;
  scrollbar-width: none;
}
.hstory__track::-webkit-scrollbar { display: none; }

.hstory__panel {
  flex: 0 0 100vw;
  height: calc(90vh - 72px);
  max-height: 708px;
  scroll-snap-align: start;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 24px 40px;
}

/* Panel content shared */
.hstory__inner {
  max-width: 1100px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.hstory__copy { }

.hstory__eyebrow {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 20px;
}

.hstory__eyebrow--red { color: #ff6b6b; }
.hstory__eyebrow--blue { color: #00bfff; }
.hstory__eyebrow--green { color: #00e599; }

.hstory__title {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: clamp(2.2rem, 4.5vw, 4rem);
  font-weight: 600;
  color: #fff;
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin: 0 0 24px;
}

.hstory__title .accent-red { color: #ff6b6b; }
.hstory__title .accent-blue { color: #00bfff; }
.hstory__title .accent-green { color: #00e599; }

.hstory__sub {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: clamp(1rem, 1.25vw, 1.2rem);
  color: rgba(255,255,255,0.6);
  line-height: 1.55;
  margin: 0 0 24px;
  max-width: 520px;
  font-weight: 400;
}

.hstory__hint {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hstory__hint svg { width: 16px; height: 16px; }

/* ---- Visual right side ---- */
.hstory__visual {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
  position: relative;
}

/* ===== PANEL 1: Problem ===== */
.panel-ring {
  position: relative;
  width: 340px;
  height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.panel-ring__phone {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: linear-gradient(145deg, #1a1a1f, #0a0a0e);
  border: 1px solid rgba(255,107,107,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 3;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}

.panel-ring__phone svg {
  width: 52px;
  height: 52px;
  color: #ff6b6b;
  animation: phoneShake 1.2s ease-in-out infinite;
}

@keyframes phoneShake {
  0%, 100% { transform: rotate(-8deg); }
  10% { transform: rotate(10deg); }
  20% { transform: rotate(-8deg); }
  30% { transform: rotate(10deg); }
  40% { transform: rotate(0); }
}

.panel-ring__wave {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 2px solid rgba(255,107,107,0.5);
  transform: translate(-50%, -50%);
  animation: ringWave 2s ease-out infinite;
}

.panel-ring__wave:nth-child(2) { animation-delay: 0.6s; }
.panel-ring__wave:nth-child(3) { animation-delay: 1.2s; }

@keyframes ringWave {
  0% { width: 150px; height: 150px; opacity: 0.8; }
  100% { width: 340px; height: 340px; opacity: 0; }
}

/* ===== PANEL 2: Cost ===== */
.panel-cost {
  text-align: center;
}

.panel-cost__number {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: clamp(6rem, 14vw, 12rem);
  font-weight: 200;
  color: #ff6b6b;
  line-height: 0.9;
  letter-spacing: -0.05em;
  text-shadow: 0 0 80px rgba(255,107,107,0.3);
  font-variant-numeric: tabular-nums;
}

.panel-cost__label {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-top: 16px;
}

/* ===== PANEL 3: The switch ===== */
.panel-switch {
  position: relative;
  width: 280px;
  height: 560px;
  border-radius: 44px;
  background: #0f0f11;
  border: 1px solid rgba(0,191,255,0.2);
  box-shadow: 0 40px 100px rgba(0,0,0,0.8), 0 0 80px rgba(0,191,255,0.12);
}

.panel-switch__notch {
  position: absolute;
  top: 18px; left: 50%;
  transform: translateX(-50%);
  width: 94px; height: 22px;
  background: #000;
  border-radius: 14px;
  z-index: 3;
}

.panel-switch__screen {
  position: absolute;
  inset: 12px;
  border-radius: 34px;
  background: #000;
  padding: 50px 20px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 18px;
}

.panel-switch__logo {
  width: 64px; height: 64px;
  border-radius: 18px;
  background: linear-gradient(145deg, #00bfff, #0066ff);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 28px;
  color: #fff;
  box-shadow: 0 10px 40px rgba(0,191,255,0.4);
}

.panel-switch__name {
  font-family: 'Inter', sans-serif;
  color: #fff;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.panel-switch__tag {
  font-family: 'Inter', sans-serif;
  color: rgba(255,255,255,0.5);
  font-size: 13px;
}

.panel-switch__answering {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(0,191,255,0.08);
  border: 1px solid rgba(0,191,255,0.25);
  border-radius: 999px;
  color: #7fd9ff;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.05em;
}

.panel-switch__answering::before {
  content: '';
  display: block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #00ff88;
  box-shadow: 0 0 8px #00ff88;
  animation: livePulse 1.5s ease-in-out infinite;
}

@keyframes livePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ===== PANEL 4: Magic (live call) ===== */
.panel-magic {
  width: 420px;
  background: rgba(10,12,18,0.7);
  border: 1px solid rgba(0,191,255,0.18);
  border-radius: 20px;
  padding: 22px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}

.panel-magic__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.panel-magic__status {
  display: flex; align-items: center; gap: 8px;
  color: #00e599;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.panel-magic__status::before {
  content: ''; width: 8px; height: 8px; border-radius: 50%;
  background: #00e599; box-shadow: 0 0 10px #00e599;
  animation: livePulse 1.5s ease-in-out infinite;
}

.panel-magic__timer {
  color: rgba(255,255,255,0.4);
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.panel-magic__bubbles {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}

.pm-bubble {
  padding: 10px 13px;
  border-radius: 14px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  line-height: 1.45;
  max-width: 85%;
  opacity: 0;
  transform: translateY(8px);
  animation: bubbleIn 0.5s ease forwards;
}

.pm-bubble--caller {
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.85);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.pm-bubble--ai {
  background: linear-gradient(135deg, rgba(0,191,255,0.18), rgba(0,102,255,0.1));
  border: 1px solid rgba(0,191,255,0.25);
  color: #cfefff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

@keyframes bubbleIn {
  to { opacity: 1; transform: translateY(0); }
}

.pm-bubble:nth-child(1) { animation-delay: 0.2s; }
.pm-bubble:nth-child(2) { animation-delay: 1s; }
.pm-bubble:nth-child(3) { animation-delay: 1.8s; }
.pm-bubble:nth-child(4) { animation-delay: 2.6s; }

.panel-magic__booked {
  margin-top: 10px;
  padding: 12px 14px;
  background: linear-gradient(135deg, rgba(0,229,153,0.12), rgba(0,191,255,0.05));
  border: 1px solid rgba(0,229,153,0.3);
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  transform: translateY(8px);
  animation: bubbleIn 0.6s ease forwards 3.6s;
}

.panel-magic__booked::before {
  content: '✓';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #00e599;
  color: #000;
  font-weight: 900;
  font-size: 13px;
  flex-shrink: 0;
}

.panel-magic__booked-text {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: #fff;
}

.panel-magic__booked-text strong { color: #00e599; }

/* ===== PANEL 5: Result — calendar filling ===== */
.panel-cal {
  width: 420px;
  background: rgba(10,12,18,0.7);
  border: 1px solid rgba(0,229,153,0.18);
  border-radius: 20px;
  padding: 22px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}

.panel-cal__title {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 16px;
  font-weight: 600;
}

.panel-cal__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}

.panel-cal__day {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  text-align: center;
  padding-bottom: 6px;
  letter-spacing: 0.05em;
}

.panel-cal__slot {
  height: 36px;
  border-radius: 6px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  color: rgba(255,255,255,0.35);
}

.panel-cal__slot.is-booked {
  background: linear-gradient(135deg, rgba(0,229,153,0.2), rgba(0,191,255,0.1));
  border-color: rgba(0,229,153,0.4);
  color: #aef8d8;
  box-shadow: 0 0 12px rgba(0,229,153,0.15);
}

.panel-cal__footer {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  justify-content: space-between;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
}

.panel-cal__stat { color: rgba(255,255,255,0.55); }
.panel-cal__stat strong { color: #00e599; font-weight: 700; }

/* ===== PANEL 6: CTA + booking form ===== */
.panel-cta {
  max-width: 1100px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.cta-form {
  background: rgba(12,14,22,0.8);
  border: 1px solid rgba(0,191,255,0.2);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
  backdrop-filter: blur(12px);
}

.cta-form__title {
  font-family: 'Inter', sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: #fff;
  margin: 0 0 4px;
  letter-spacing: -0.01em;
}

.cta-form__sub {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  margin: 0 0 18px;
}

.cta-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}

.cta-form__field {
  display: block;
  margin-bottom: 10px;
}

.cta-form__field label,
.cta-form__row .cta-form__field label {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.cta-form input,
.cta-form select,
.cta-form textarea {
  width: 100%;
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  padding: 11px 13px;
  border-radius: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.cta-form input:focus,
.cta-form select:focus,
.cta-form textarea:focus {
  outline: none;
  border-color: rgba(0,191,255,0.5);
  background: rgba(0,0,0,0.6);
  box-shadow: 0 0 0 3px rgba(0,191,255,0.15);
}

.cta-form textarea {
  resize: vertical;
  min-height: 70px;
  font-family: inherit;
}

.cta-form__submit {
  width: 100%;
  padding: 14px 20px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #00bfff, #0066ff);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.01em;
  transition: all 0.2s ease;
  margin-top: 6px;
  box-shadow: 0 8px 24px rgba(0,102,255,0.3);
}

.cta-form__submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 32px rgba(0,102,255,0.45);
}

.cta-form__submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.cta-form__fineprint {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  text-align: center;
  margin: 12px 0 0;
  line-height: 1.5;
}

.cta-form__alt {
  display: block;
  text-align: center;
  margin-top: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: rgba(0,191,255,0.8);
  text-decoration: none;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 12px;
}

.cta-form__alt:hover { color: #00bfff; text-decoration: underline; }

.cta-form__success {
  text-align: center;
  padding: 20px;
}

.cta-form__success-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00e599, #00bfff);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
  color: #000;
  font-size: 28px;
  font-weight: 900;
}

.cta-form__success h3 {
  font-family: 'Inter', sans-serif;
  font-size: 20px;
  color: #fff;
  margin: 0 0 8px;
}

.cta-form__success p {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  margin: 0;
  line-height: 1.5;
}

/* Mobile — KEEP horizontal scroll, just smaller */
@media (max-width: 820px) {
  .hstory__track {
    height: 92vh;
    margin-top: 0;
    padding-top: 60px;
  }
  .hstory__panel {
    flex: 0 0 100vw;
    height: calc(92vh - 60px);
    padding: 20px 20px 40px;
  }
  .hstory__topbar {
    position: absolute;
    top: 0; left: 0; right: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.95), rgba(0,0,0,0.6) 80%, transparent);
  }
  .hstory__inner, .panel-cta {
    grid-template-columns: 1fr;
    gap: 20px;
    text-align: center;
  }
  .hstory__copy { order: 1; }
  .hstory__visual { order: 2; min-height: 240px; }
  .hstory__title { font-size: clamp(1.6rem, 7vw, 2.4rem); margin-bottom: 12px; }
  .hstory__sub { font-size: 14px; margin-bottom: 12px; }
  .hstory__eyebrow { font-size: 10px; margin-bottom: 10px; }
  .hstory__hint { display: none; }
  .panel-ring { width: 240px; height: 240px; }
  .panel-ring__phone { width: 110px; height: 110px; }
  .panel-ring__phone svg { width: 40px; height: 40px; }
  .panel-ring__wave { width: 110px; height: 110px; }
  @keyframes ringWave {
    0% { width: 110px; height: 110px; opacity: 0.8; }
    100% { width: 240px; height: 240px; opacity: 0; }
  }
  .panel-cost__number { font-size: clamp(4rem, 16vw, 7rem); }
  .panel-switch { width: 220px; height: 440px; }
  .panel-magic, .panel-cal, .cta-form {
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
    padding: 16px;
  }
  .pm-bubble { font-size: 12px; padding: 8px 11px; }
  .hstory__topbar { padding: 12px 14px; }
  .hstory__skip { padding: 6px 12px; font-size: 11px; }
  .hstory__dot { width: 18px; height: 2px; }
  .hstory__dot.is-active { width: 28px; }
  .cta-form__row { grid-template-columns: 1fr 1fr; gap: 8px; }
  .cta-form__title { font-size: 16px; }
  .cta-form__sub { font-size: 12px; margin-bottom: 12px; }
  .cta-form input, .cta-form select, .cta-form textarea { font-size: 13px; padding: 9px 11px; }
  .cta-form textarea { min-height: 50px; }
  .cta-form__submit { padding: 11px 16px; font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .panel-ring__wave, .panel-ring__phone svg, .pm-bubble, .panel-magic__booked { animation: none !important; }
  .pm-bubble, .panel-magic__booked { opacity: 1; transform: none; }
}
