/* Smart Rules landing page — loaded directly until next qrstuff.scss build */
.sr-page {
  --sr-brand: #5d4696;
  --sr-brand-dark: #4a3880;
  --sr-pink: #e5006c;
  --sr-location: #0d9488;
  --sr-device: #2563eb;
  --sr-muted: #f6f4fb;
  color: #343434;
}

.sr-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--sr-brand) 0%, #3d2f6b 45%, #2a2348 100%);
  color: #fff;
}

.sr-hero__glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 85% 20%, rgba(0, 120, 212, 0.22) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(33, 115, 70, 0.18) 0%, transparent 50%),
    radial-gradient(ellipse 40% 30% at 50% 50%, rgba(229, 0, 108, 0.12) 0%, transparent 60%);
  pointer-events: none;
}

.sr-hero__title {
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  color: #fff;
  text-align: left;
}

.sr-hero__lead {
  font-size: 1.125rem;
  line-height: 1.6;
  opacity: 0.95;
  max-width: 32rem;
}

.sr-hero__subcta { opacity: 0.8; }

.sr-hero__badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.sr-hero__visual {
  position: relative;
  min-height: 360px;
  max-width: 28rem;
  margin-left: auto;
}

.sr-hero__card {
  position: absolute;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 1.15rem 1.35rem;
  max-width: 230px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
  z-index: 2;
}

/* Diagonal cascade: each card overlaps the previous card's corner */
.sr-hero__card--location { top: 0; left: 0; }
.sr-hero__card--device { top: 30%; right: 0; }
.sr-hero__card--time { bottom: 0; left: 14%; }

.sr-hero__card p { margin: 0; font-size: 0.875rem; opacity: 0.9; }

@media (max-width: 991.98px) {
  .sr-hero__visual {
    max-width: 34rem;
    margin: 0 auto;
  }
}

@media (max-width: 575.98px) {
  .sr-hero__visual {
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }

  .sr-hero__card {
    position: static;
    max-width: none;
    width: 100%;
  }
}

.sr-hero__card-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.sr-hero__qr {
  position: absolute;
  top: 48%;
  left: 46%;
  transform: translate(-50%, -50%);
  z-index: 3;
  width: 88px;
  height: 88px;
  border-radius: 20px;
  background: linear-gradient(145deg, var(--sr-pink), var(--sr-brand));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.25rem;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
  border: 3px solid rgba(255, 255, 255, 0.3);
}

@media (max-width: 575.98px) {
  .sr-hero__qr {
    position: static;
    transform: none;
    margin: 0.25rem auto;
  }
}

.sr-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.sr-pill--location i { color: #5eead4; }
.sr-pill--device i { color: #93c5fd; }
.sr-pill--plan { background: rgba(0, 120, 212, 0.25); }
.sr-btn-primary {
  font-weight: 600;
  color: var(--sr-brand) !important;
}

.sr-btn-primary:hover,
.sr-btn-primary:focus {
  color: #fff !important;
  background-color: var(--sr-brand);
  border-color: var(--sr-brand);
}

.sr-sticky-nav {
  position: sticky;
  top: 0;
  z-index: 102;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(93, 70, 150, 0.1);
  box-shadow: 0 4px 20px rgba(93, 70, 150, 0.06);
}

.sr-sticky-nav__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0.75rem 0;
}

.sr-sticky-nav__list a {
  color: var(--sr-brand);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
}

.sr-sticky-nav__list a:hover { color: var(--sr-pink); }

.sr-section { padding: 4.5rem 0; }
.sr-section--light { background: #fff; }
.sr-section--muted { background: var(--sr-muted); }

.sr-section__title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--sr-brand);
  margin-bottom: 0.75rem;
}

.sr-section__subtitle {
  color: #666;
  max-width: 36rem;
  font-size: 1.05rem;
}

.sr-section__lead {
  font-size: 1.05rem;
  line-height: 1.65;
}

.sr-checklist {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sr-checklist li {
  position: relative;
  padding: 0.85rem 0 0.85rem 2rem;
  border-bottom: 1px solid rgba(93, 70, 150, 0.08);
  line-height: 1.55;
}

.sr-checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.85rem;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background: rgba(59, 170, 53, 0.12);
  color: #3baa35;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sr-checklist li:last-child { border-bottom: none; }

.sr-bento {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

@media (max-width: 767.98px) {
  .sr-bento { grid-template-columns: 1fr; }
}

.sr-bento__item {
  background: #fff;
  border-radius: 16px;
  padding: 1.75rem;
  border: 1px solid rgba(93, 70, 150, 0.08);
  box-shadow: 0 8px 32px rgba(93, 70, 150, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sr-bento__item:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(93, 70, 150, 0.12);
}

@media (min-width: 768px) {
  .sr-bento__item--wide { grid-column: span 2; }
}

.sr-bento__item h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 0.5rem;
}

.sr-bento__item p {
  margin: 0;
  color: #555;
  font-size: 0.925rem;
  line-height: 1.6;
}

.sr-bento__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.1rem;
  color: #fff;
}

.sr-bento__icon--brand { background: var(--sr-brand); }
.sr-bento__icon--location { background: var(--sr-location); }
.sr-bento__icon--device { background: var(--sr-device); }
.sr-bento__icon--teal { background: #00b8ec; }
.sr-bento__icon--pink { background: var(--sr-pink); }

.sr-appsource-badge {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  border-radius: 999px;
  background: rgba(0, 120, 212, 0.1);
  color: var(--sr-device);
  font-size: 0.875rem;
  font-weight: 600;
}

.sr-app-card {
  background: #fff;
  border-radius: 16px;
  padding: 2rem 1.5rem;
  height: 100%;
  border: 1px solid rgba(93, 70, 150, 0.08);
  box-shadow: 0 6px 24px rgba(93, 70, 150, 0.06);
  border-top: 4px solid var(--sr-brand);
}

.sr-app-card--location { border-top-color: var(--sr-location); }
.sr-app-card--device { border-top-color: var(--sr-device); }
.sr-app-card--brand { border-top-color: var(--sr-brand); }

.sr-app-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1a1a2e;
}

.sr-app-card p {
  color: #555;
  font-size: 0.925rem;
  line-height: 1.6;
  margin-bottom: 0;
}

.sr-app-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  background: var(--sr-muted);
  color: var(--sr-brand);
}

.sr-app-card--location .sr-app-card__icon { color: var(--sr-location); }
.sr-app-card--device .sr-app-card__icon { color: var(--sr-device); }

.sr-step-label { color: var(--sr-brand); font-weight: 700; }
.sr-prereq-list { padding-left: 1.25rem; line-height: 1.7; }
.sr-prereq-list li { margin-bottom: 0.65rem; }

.sr-timeline__step {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.sr-timeline__step:last-child { margin-bottom: 0; }

.sr-timeline__num {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--sr-brand);
  color: #fff;
  font-weight: 700;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sr-timeline__num--location { background: var(--sr-location); }
.sr-timeline__num--device { background: var(--sr-device); }

.sr-timeline__body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 0.5rem;
}

.sr-timeline__body p {
  color: #555;
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.sr-cta-band {
  background: linear-gradient(120deg, var(--sr-brand) 0%, #6b3d8f 50%, var(--sr-pink) 100%);
  padding: 3.5rem 0;
}

.sr-usecase-card {
  background: #fff;
  border-radius: 14px;
  padding: 1.5rem;
  height: 100%;
  border: 1px solid rgba(93, 70, 150, 0.08);
  box-shadow: 0 4px 20px rgba(93, 70, 150, 0.05);
  transition: border-color 0.2s ease;
}

.sr-usecase-card:hover { border-color: rgba(93, 70, 150, 0.2); }

.sr-usecase-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--sr-brand);
  margin-bottom: 0.5rem;
}

.sr-usecase-card p {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.6;
  margin: 0;
}

.sr-usecase-card__icon {
  font-size: 1.5rem;
  color: var(--sr-pink);
  margin-bottom: 0.75rem;
  display: block;
}

.sr-tip {
  background: var(--sr-muted);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  font-size: 0.9rem;
  line-height: 1.55;
  height: 100%;
}

.sr-tip i {
  color: var(--sr-brand);
  margin-right: 0.5rem;
}

.sr-faq .accordion-item {
  border: 1px solid rgba(93, 70, 150, 0.1);
  border-radius: 10px !important;
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.sr-footer-cta {
  background: linear-gradient(160deg, #2a2348 0%, var(--sr-brand-dark) 40%, var(--sr-brand) 100%);
}


.sr-pill--language { background: rgba(229, 0, 108, 0.25); }
.sr-pill--time { background: rgba(13, 148, 136, 0.25); }
.sr-hero__card--time i { color: #5eead4; }
.sr-bento__icon--time { background: #0d9488; }
.sr-bento__icon--language { background: var(--sr-pink); }
.sr-bento__icon--logic { background: #2563eb; }
.sr-limits {
  background: #fff;
  border-radius: 16px;
  padding: 1.75rem;
  border: 1px solid rgba(93, 70, 150, 0.08);
  box-shadow: 0 6px 24px rgba(93, 70, 150, 0.06);
  height: 100%;
}
.sr-limits h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 1rem;
}

.sr-limits__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.1rem;
  background: var(--sr-muted);
  color: var(--sr-brand);
}
.sr-limits ul {
  margin: 0;
  padding-left: 1.1rem;
  color: #555;
  line-height: 1.7;
}
.sr-shot {
  margin: 1.25rem 0 0;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(93, 70, 150, 0.12);
  box-shadow: 0 10px 32px rgba(93, 70, 150, 0.1);
}

.sr-shot img {
  display: block;
  width: 100%;
  height: auto;
  border-bottom: 1px solid rgba(93, 70, 150, 0.08);
}

.sr-shot figcaption {
  padding: 0.85rem 1.1rem;
  font-size: 0.85rem;
  line-height: 1.5;
  color: #555;
}

.sr-builder__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--sr-brand);
}

.sr-builder__row + .sr-builder__row { margin-top: 2.5rem; }

.sr-builder__row .sr-shot { margin: 0; }

.sr-builder__step-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 0.5rem;
}

.sr-setup-note {
  background: var(--sr-muted);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  height: 100%;
}
.sr-setup-note h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--sr-brand);
  margin-bottom: 0.5rem;
}
.sr-setup-note p {
  margin: 0;
  color: #555;
  font-size: 0.925rem;
  line-height: 1.6;
}
