/* ================================
   SMAart Pulse — Global Styles
   Brand-safe, no font changes
   ================================ */

:root {
  --blue: #005FF9;
  --dark: #0f172a;
  --light: #ffffff;
  --gray-600: #475569;
  --gray-500: #64748b;
  --gray-200: #e2e8f0;
  --gray-100: #f1f5f9;
  --card-shadow: 0 14px 36px rgba(15,23,42,0.12);
}

/* GLOBAL */
*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--light);
  color: var(--dark);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* HERO (Index + Demo shared base) */
.hero,
.demo-hero {
  padding: 80px 20px 42px;
  text-align: center;
}

.demo-hero {
  padding: 60px 20px 20px;
  background: linear-gradient(180deg, rgba(0,95,249,0.06) 0%, #fff 45%);
}

.hero-title {
  margin: 0 0 10px;
  font-size: 48px;
  line-height: 1.12;
  letter-spacing: -0.015em;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Brand line */
.logo-line {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
}

.logo-primary {
  font-family: Montserrat, system-ui;
  font-weight: 600;
  color: #000;
}

.logo-sub {
  font-family: Inter, system-ui;
  font-weight: 500;
  color: var(--blue);
  letter-spacing: 0.003em;
}

/* Second line: Live Demo (80% scale) */
.demo-line {
  margin-top: 6px;
  font-family: Inter, system-ui;
  font-weight: 500;
  color: var(--blue);
  font-size: calc(48px * 0.80);
  line-height: 1.1;
}

.hero-subtitle {
  margin: 0 auto;
  max-width: 650px;
  font-size: 20px;
  line-height: 1.55;
  opacity: 0.86;
}

/* CONTENT */
.section {
  display: flex;
  flex-direction: column;
  gap: 44px;
  padding: 40px 16px 100px;
  max-width: 720px;
  margin: 0 auto;
}

.card {
  padding: 28px 28px 30px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--gray-200);
  box-shadow: var(--card-shadow);
}

.card h2 {
  margin: 0 0 10px;
  font-family: Montserrat;
  font-size: 24px;
  line-height: 1.3;
}

.card p {
  margin: 0 0 18px;
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--gray-600);
}

.benefits-list {
  padding-left: 22px;
  margin: 0;
  max-width: 480px;
  text-align: left;
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--gray-600);
}

.snippet {
  background: #f8fafc;
  border-radius: 14px;
  border: 1px solid #dde3ea;
  padding: 18px;
  width: 100%;
  display: block;
  font-family: SFMono-Regular, Menlo, monospace;
  font-size: 14px;
  white-space: pre;
  overflow-x: auto;
  text-align: left;
}

.link-primary {
  color: var(--blue);
  font-weight: 500;
  text-decoration: none;
}
.link-primary:hover { text-decoration: underline; }

/* FOOTER */
.footer {
  text-align: center;
  padding: 42px 16px 80px;
  font-size: 14px;
  opacity: 0.58;
}

/* DEMO BADGE */
.demo-label {
  position: fixed;
  top: 18px;
  left: 18px;
  background: var(--blue);
  color: #fff;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  z-index: 9999;
  box-shadow: 0 4px 12px rgba(0,0,0,0.14);
  opacity: 0.95;
}

/* ============================
   LISTING PAGE
   ============================ */

.listing-wrapper {
  max-width: 1100px;
  margin: 30px auto 60px;
  padding: 0 20px;
}

/* NEW — centered listing layout */
.centered-listing {
  display: flex;
  justify-content: center;
}

.listing-inner {
  width: 100%;
  max-width: 760px; /* premium centered width */
}

/* PHOTO */
.photo {
  width: 100%;
  background-size: cover;
  background-position: center;
  border-radius: 22px;
  box-shadow: var(--card-shadow);
  aspect-ratio: 16 / 10;
  max-height: 520px;
}

/* DETAILS */
.details { margin-top: 32px; }

.title {
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 8px;
}

.price {
  font-size: 22px;
  margin-bottom: 14px;
  color: var(--blue);
  font-weight: 600;
}

.specs {
  font-size: 16px;
  color: var(--gray-600);
  margin-bottom: 22px;
}

.description {
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-500);
  max-width: 640px;
}

/* MOBILE — photo + widget + details vertically */
@media (max-width: 900px) {
  .photo {
    aspect-ratio: 16 / 9;
    max-height: none;
    min-height: 220px;
  }
  .listing-inner {
    width: 100%;
  }
  .demo-widget {
    margin: 22px 0 30px;
  }
  .details {
    margin-top: 10px;
  }
}

/* RESPONSIVE (original) */
@media (max-width: 640px) {
  .hero, .demo-hero { padding: 60px 16px 32px; }

  .hero-title { font-size: 36px; }
  .demo-line { font-size: calc(36px * 0.80); }

  .hero-subtitle { font-size: 18px; }

  .section { padding: 32px 16px 80px; gap: 32px; }

  .card { padding: 24px 20px 26px; }
}

@media (max-width: 480px) {
  .hero-title {
    line-height: 1.15;
    row-gap: 4px;
  }

  .logo-line {
    flex-wrap: wrap;
    gap: 6px;
  }

  .demo-line {
    margin-top: 4px;
    font-size: calc(32px * 0.80);
  }
}

/* Widget title inside demo */
.pulse-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.widget-logo {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.pulse-title {
  font-family: Inter;
  font-weight: 600;
  font-size: 15px;
  color: var(--dark);
}
