:root {
  --text: #0f172a;
  --secondary: #475569;
  --muted: #64748b;
  --background: #f7f9fc;
  --surface: #ffffff;
  --border: #e2e8f0;
  --soft-border: #eef2f7;
  --blue: #2563eb;
  --purple: #7c3aed;
  --green: #22c55e;
  --soft-green: #dcfce7;
  --shadow-md: 0 18px 44px rgba(15, 23, 42, 0.11), 0 6px 18px rgba(15, 23, 42, 0.06);
  --shadow-sm: 0 4px 14px rgba(15, 23, 42, 0.04);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--background);
  color: var(--text);
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  min-width: 320px;
  margin: 0;
  background:
    radial-gradient(circle at 75% 24%, rgba(37, 99, 235, 0.12), transparent 34%),
    radial-gradient(circle at 90% 78%, rgba(34, 197, 94, 0.1), transparent 30%),
    var(--background);
}

button,
a {
  font: inherit;
}

.product-tour-page {
  overflow-x: hidden;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

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

.product-tour {
  width: min(100% - 48px, 1240px);
  margin: 0 auto;
  padding: 92px 0 112px;
}

.product-tour-header {
  max-width: 820px;
  margin: 0 auto 48px;
  text-align: center;
  animation: rise-in 360ms ease-out both;
}

.product-tour h1,
.product-tour h2,
.product-tour h2,
.product-tour p {
  margin: 0;
}

.tour-eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  margin: 0 0 16px;
  padding: 0 15px;
  border: 1px solid #dbeafe;
  border-radius: 999px;
  color: var(--blue);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.06);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1;
}

.product-tour h1,
.product-tour h2 {
  color: var(--text);
  font-size: clamp(2.75rem, 4.6vw, 4.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.03;
}

.tour-subtitle {
  max-width: 700px;
  margin: 18px auto 0;
  color: var(--secondary);
  font-size: clamp(1.08rem, 1.45vw, 1.22rem);
  font-weight: 500;
  line-height: 1.58;
}

.product-tour-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
  animation: rise-in 440ms 90ms ease-out both;
}

.tour-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.96);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 251, 255, 0.88)),
    #ffffff;
  box-shadow: var(--shadow-sm);
  isolation: isolate;
  transition: transform 180ms ease-out, box-shadow 180ms ease-out, border-color 180ms ease-out;
}

.tour-card::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    radial-gradient(circle at 88% 10%, rgba(37, 99, 235, 0.1), transparent 34%),
    radial-gradient(circle at 12% 92%, rgba(124, 58, 237, 0.08), transparent 32%);
  pointer-events: none;
}

.tour-card:hover {
  transform: translateY(-3px);
  border-color: #cbd5e1;
  box-shadow: var(--shadow-md);
}

.tour-card-inbox {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(310px, 0.8fr) minmax(0, 1.2fr);
  gap: 30px;
  align-items: center;
  min-height: 620px;
  padding: 34px;
  box-shadow:
    0 26px 78px rgba(15, 23, 42, 0.12),
    0 10px 28px rgba(15, 23, 42, 0.07);
}

.tour-card-campaigns,
.tour-card-analytics {
  grid-column: span 6;
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 570px;
  padding: 30px;
}

.tour-card-mobile {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(310px, 0.85fr) minmax(0, 1.15fr);
  gap: 36px;
  align-items: center;
  min-height: 560px;
  padding: 34px;
}

.tour-copy {
  position: relative;
  z-index: 2;
}

.tour-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin-bottom: 16px;
  padding: 0 10px;
  border: 1px solid #dbeafe;
  border-radius: 999px;
  color: var(--blue);
  background: #f8fbff;
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1;
}

.tour-card-inbox .tour-kicker::before,
.tour-card-mobile .tour-kicker::before {
  width: 8px;
  height: 8px;
  margin-right: 7px;
  border-radius: 999px;
  content: "";
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.12);
}

.tour-card h2 {
  color: var(--text);
  font-size: clamp(1.55rem, 2vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.12;
}

.tour-card-inbox h2,
.tour-card-mobile h2 {
  font-size: clamp(2rem, 3vw, 2.65rem);
}

.tour-card p {
  max-width: 560px;
  margin-top: 14px;
  color: var(--secondary);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.56;
}

.tour-card-inbox p,
.tour-card-mobile p {
  font-size: 1.06rem;
}

.tour-points {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.tour-points li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #334155;
  font-size: 0.93rem;
  font-weight: 700;
  line-height: 1.35;
}

.tour-points span {
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  border-radius: 999px;
  background: var(--soft-green);
  color: var(--green);
}

.tour-points span::before {
  width: 7px;
  height: 4px;
  border-bottom: 2px solid currentColor;
  border-left: 2px solid currentColor;
  content: "";
  transform: rotate(-45deg) translateY(-1px);
}

.browser-frame {
  position: relative;
  display: grid;
  grid-template-rows: 46px minmax(0, 1fr);
  min-height: 314px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    0 24px 60px rgba(15, 23, 42, 0.12),
    0 8px 22px rgba(15, 23, 42, 0.06);
}

.browser-frame-large {
  min-height: 492px;
}

.frame-chrome {
  display: grid;
  grid-template-columns: 10px 10px 10px minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  padding: 0 16px;
  border-bottom: 1px solid var(--soft-border);
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.frame-chrome span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #cbd5e1;
}

.frame-chrome span:first-child {
  background: #fca5a5;
}

.frame-chrome span:nth-child(2) {
  background: #fcd34d;
}

.frame-chrome span:nth-child(3) {
  background: #86efac;
}

.frame-chrome strong {
  min-width: 0;
  margin-left: 8px;
  overflow: hidden;
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.frame-chrome em {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #15803d;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 800;
}

.frame-chrome i {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--green);
}

.screenshot-surface {
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 0;
  padding: 16px;
  background:
    radial-gradient(circle at 80% 6%, rgba(37, 99, 235, 0.08), transparent 32%),
    #fbfdff;
}

.screenshot-surface img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 15px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.mobile-tour-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 486px;
  border: 1px solid rgba(226, 232, 240, 0.7);
  border-radius: 24px;
  background:
    radial-gradient(circle at 55% 44%, rgba(37, 99, 235, 0.13), transparent 32%),
    radial-gradient(circle at 70% 82%, rgba(34, 197, 94, 0.12), transparent 30%),
    linear-gradient(180deg, rgba(248, 250, 252, 0.8), rgba(255, 255, 255, 0.9));
}

.phone-feature-frame {
  position: relative;
  z-index: 3;
  width: min(48%, 276px);
  min-width: 230px;
  padding: 10px;
  border: 1px solid rgba(15, 23, 42, 0.16);
  border-radius: 38px;
  background: #0b1220;
  box-shadow:
    0 28px 70px rgba(15, 23, 42, 0.26),
    0 8px 22px rgba(15, 23, 42, 0.14);
}

.phone-feature-frame::before {
  position: absolute;
  top: 13px;
  left: 50%;
  width: 76px;
  height: 21px;
  border-radius: 999px;
  content: "";
  transform: translateX(-50%);
  background: #05070d;
}

.phone-feature-screen {
  overflow: hidden;
  border-radius: 30px;
  background: #f8fafc;
}

.phone-feature-screen img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 18.7;
  object-fit: contain;
}

.mobile-status-card {
  position: absolute;
  z-index: 4;
  min-height: 38px;
  padding: 10px 13px;
  border: 1px solid var(--border);
  border-radius: 16px;
  color: #334155;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.1);
  font-size: 0.76rem;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.status-card-assigned {
  top: 78px;
  left: 54px;
  color: var(--blue);
}

.status-card-waiting {
  top: 166px;
  right: 44px;
}

.status-card-online {
  bottom: 96px;
  left: 68px;
  color: #15803d;
}

.status-card-time {
  right: 70px;
  bottom: 52px;
  color: var(--purple);
}

@media (max-width: 1080px) {
  .tour-card-inbox,
  .tour-card-mobile {
    grid-template-columns: 1fr;
  }

  .tour-card-campaigns,
  .tour-card-analytics {
    grid-column: 1 / -1;
    min-height: 0;
  }

  .browser-frame-large {
    min-height: 430px;
  }

  .mobile-tour-visual {
    min-height: 520px;
  }
}

@media (max-width: 760px) {
  .product-tour {
    width: min(100% - 32px, 540px);
    padding: 64px 0 76px;
  }

  .product-tour-header {
    margin-bottom: 34px;
    text-align: left;
  }

  .tour-eyebrow {
    justify-content: flex-start;
  }

  .product-tour h1,
  .product-tour h2 {
    font-size: 2.38rem;
    line-height: 1.06;
  }

  .tour-subtitle {
    margin-top: 14px;
    font-size: 1rem;
  }

  .product-tour-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .tour-card-inbox,
  .tour-card-campaigns,
  .tour-card-analytics,
  .tour-card-mobile {
    grid-column: 1 / -1;
    padding: 22px 20px 20px;
    border-radius: 20px;
  }

  .tour-card-inbox h2,
  .tour-card-mobile h2,
  .tour-card h2 {
    font-size: 1.55rem;
  }

  .tour-card p,
  .tour-card-inbox p,
  .tour-card-mobile p {
    font-size: 0.96rem;
  }

  .browser-frame {
    min-height: 286px;
    margin-top: 4px;
    border-radius: 18px;
  }

  .browser-frame-large {
    min-height: 318px;
  }

  .frame-chrome {
    grid-template-columns: 9px 9px 9px minmax(0, 1fr);
    min-height: 40px;
  }

  .frame-chrome em {
    display: none;
  }

  .screenshot-surface {
    padding: 12px;
    overflow-x: auto;
    justify-content: start;
  }

  .screenshot-surface img {
    width: auto;
    min-width: 520px;
    max-width: none;
  }

  .mobile-tour-visual {
    min-height: 480px;
    margin-top: 4px;
    border-radius: 20px;
  }

  .phone-feature-frame {
    width: min(74%, 260px);
    min-width: 220px;
  }

  .mobile-status-card {
    font-size: 0.7rem;
  }

  .status-card-assigned {
    top: 40px;
    left: 18px;
  }

  .status-card-waiting {
    top: 118px;
    right: 14px;
  }

  .status-card-online {
    bottom: 78px;
    left: 16px;
  }

  .status-card-time {
    right: 16px;
    bottom: 32px;
  }
}

@media (max-width: 420px) {
  .product-tour h1,
  .product-tour h2 {
    font-size: 2.08rem;
  }

  .tour-points li {
    font-size: 0.88rem;
  }

  .browser-frame {
    min-height: 260px;
  }

  .browser-frame-large {
    min-height: 292px;
  }

  .mobile-tour-visual {
    min-height: 452px;
  }

  .phone-feature-frame {
    min-width: 204px;
  }

  .status-card-waiting,
  .status-card-time {
    right: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .product-tour *::before,
  .product-tour *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
