/*
 * BOMU Convert
 * Public home page
 *
 * Sections
 * 1. Design tokens and base
 * 2. Layout and navigation
 * 3. Hero
 * 4. Upload preview
 * 5. Repeated-work selector
 * 6. Before-and-after example
 * 7. Feature sections
 * 8. Security
 * 9. Pricing
 * 10. Footer
 * 11. Interactive states
 * 12. Responsive rules
 */

/* =========================================================
   1. Design tokens and base
   ========================================================= */

:root {
  --service-primary: #2563eb;
  --service-primary-dark: #1d4ed8;
  --service-primary-soft: #eff6ff;
  --service-text: #172033;
  --service-heading: #0f172a;
  --service-muted: #64748b;
  --service-border: #e2e8f0;
  --service-surface: #ffffff;
  --service-background: #f8fafc;
  --service-success: #16a34a;
}

.service-public {
  color: var(--service-text);
  background: var(--service-surface);
  font-family:
    Pretendard,
    "Noto Sans KR",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.service-public .content-wrapper,
.service-public .content-inner,
.service-public #content {
  min-height: auto;
}

.service-container {
  width: 100%;
  max-width: 1280px;
  margin-right: auto;
  margin-left: auto;
  padding-right: 24px;
  padding-left: 24px;
}

/* =========================================================
   2. Layout and navigation
   ========================================================= */

.service-navbar {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: rgba(255, 255, 255, .95);
  border-bottom: 1px solid var(--service-border);
  backdrop-filter: blur(14px);
}

.service-navbar .service-container {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
}

.service-brand {
  display: inline-flex;
  color: var(--service-text);
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  text-decoration: none;
}

.service-brand:hover,
.service-brand:focus {
  color: var(--service-text);
  text-decoration: none;
}

.service-brand-icon {
  display: inline-flex;
  width: 38px;
  height: 38px;
  color: #ffffff;
  background: var(--service-primary);
  border-radius: 12px;
  align-items: center;
  justify-content: center;
}

.service-nav {
  gap: 34px;
}

.service-nav a {
  color: #475569;
  font-weight: 500;
  text-decoration: none;
}

.service-nav a:hover,
.service-nav a:focus {
  color: var(--service-primary);
}

/* =========================================================
   3. Hero
   ========================================================= */

.service-hero {
  padding: 82px 0 88px;
  overflow: hidden;
  background:
    radial-gradient(
      circle at 82% 18%,
      rgba(37, 99, 235, .12),
      transparent 35%
    ),
    linear-gradient(
      180deg,
      #ffffff 0%,
      #f7faff 100%
    );
}

.service-hero .row {
  align-items: center;
}

.service-badge {
  display: inline-flex;
  max-width: 100%;
  margin-bottom: 22px;
  padding: 8px 14px;
  color: var(--service-primary-dark);
  background: #eaf2ff;
  border: 1px solid #d7e6ff;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -.15px;
}

.service-public .service-hero-title {
  width: 100%;
  max-width: 590px;
  margin: 0 0 24px;
  color: var(--service-heading);
  font-size: clamp(38px, 2.72vw, 46px);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -1.9px;
  word-break: keep-all;
  overflow-wrap: normal;
  text-wrap: balance;
}

.service-public .service-hero-title span {
  display: block;
  white-space: normal;
}

.service-public .service-hero-title span + span {
  margin-top: 4px;
}

.service-public .service-hero-description {
  display: flex;
  max-width: 590px;
  margin: 0 0 28px;
  color: var(--service-muted);
  flex-direction: column;
  gap: 2px;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: -.15px;
  word-break: keep-all;
}

.service-public .service-hero-description span {
  display: block;
}

.service-hero .btn {
  display: inline-flex;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 9px;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -.15px;
}

.service-hero .btn-primary {
  box-shadow: 0 10px 24px rgba(37, 99, 235, .20);
}

.service-hero .btn-outline-secondary {
  color: #334155;
  background: rgba(255, 255, 255, .72);
  border-color: #94a3b8;
}

.service-hero .btn-outline-secondary:hover,
.service-hero .btn-outline-secondary:focus {
  color: var(--service-primary-dark);
  background: #ffffff;
  border-color: var(--service-primary);
}

.service-hero-notice {
  display: flex;
  margin-top: 22px;
  color: #475569;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  line-height: 1.6;
}

.service-hero-notice i {
  color: var(--service-success);
  font-size: 20px;
}

/* =========================================================
   4. Upload preview
   ========================================================= */

.service-preview {
  overflow: hidden;
  background: var(--service-surface);
  border: 1px solid var(--service-border);
  border-radius: 20px;
  box-shadow: 0 28px 64px rgba(15, 23, 42, .13);
}

.service-preview-header {
  display: flex;
  min-height: 54px;
  padding: 0 20px;
  color: var(--service-muted);
  background: #f8fafc;
  border-bottom: 1px solid var(--service-border);
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -.1px;
}

.service-preview-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 5px;
  border-radius: 50%;
}

.service-preview-body {
  padding: 28px;
}

.service-upload-box {
  display: flex;
  min-height: 210px;
  padding: 28px;
  background: #f8fbff;
  border: 2px dashed #bfdbfe;
  border-radius: 16px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.service-upload-box i {
  margin-bottom: 16px;
  color: var(--service-primary);
  font-size: 50px;
}

.service-upload-box strong {
  margin-bottom: 8px;
  color: var(--service-heading);
  font-size: 16px;
  font-weight: 750;
  line-height: 1.55;
  word-break: keep-all;
}

.service-upload-box span {
  color: var(--service-muted);
  font-size: 13px;
  line-height: 1.6;
}

.service-step-list {
  display: grid;
  margin-top: 20px;
  gap: 9px;
}

.service-step {
  display: flex;
  padding: 11px 14px;
  color: var(--service-muted);
  border-radius: 12px;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -.1px;
}

.service-step span {
  display: inline-flex;
  width: 28px;
  height: 28px;
  background: #e2e8f0;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

.service-step.active {
  color: var(--service-primary-dark);
  background: var(--service-primary-soft);
}

.service-step.active span {
  color: #ffffff;
  background: var(--service-primary);
}

/* =========================================================
   5. Repeated-work selector
   ========================================================= */

.service-work-selector {
  padding: 88px 0;
  background: #ffffff;
  border-top: 1px solid #eef2f7;
  border-bottom: 1px solid #eef2f7;
}

.service-work-selector-heading {
  max-width: 760px;
  margin: 0 auto 42px;
  text-align: center;
}

.service-work-selector-heading > span {
  color: var(--service-primary);
  font-size: 14px;
  font-weight: 700;
}

.service-work-selector-heading h2 {
  margin: 10px 0 12px;
  color: var(--service-heading);
  font-size: 34px;
  font-weight: 780;
  line-height: 1.3;
  letter-spacing: -1px;
  word-break: keep-all;
}

.service-work-selector-heading p {
  margin: 0;
  color: var(--service-muted);
  font-size: 16px;
  line-height: 1.75;
  word-break: keep-all;
}

.service-work-grid {
  display: grid;
  grid-template-columns:
    repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.service-work-card {
  display: flex;
  min-width: 0;
  min-height: 150px;
  padding: 22px;
  color: var(--service-text);
  background: #ffffff;
  border: 1px solid var(--service-border);
  border-radius: 15px;
  align-items: flex-start;
  gap: 14px;
  text-align: left;
  cursor: pointer;
  transition:
    background-color .2s ease,
    border-color .2s ease,
    box-shadow .2s ease,
    transform .2s ease;
}

.service-work-card:hover {
  border-color: #bfdbfe;
  box-shadow: 0 14px 30px rgba(15, 23, 42, .07);
  transform: translateY(-2px);
}

.service-work-card:focus-visible {
  border-color: var(--service-primary);
  outline: 3px solid rgba(37, 99, 235, .15);
}

.service-work-card.is-selected {
  background: #f5f9ff;
  border-color: var(--service-primary);
  box-shadow:
    0 0 0 3px rgba(37, 99, 235, .08),
    0 14px 30px rgba(37, 99, 235, .08);
}

.service-work-card > i {
  display: inline-flex;
  width: 42px;
  height: 42px;
  color: var(--service-primary);
  background: var(--service-primary-soft);
  border-radius: 11px;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.service-work-card.is-selected > i {
  color: #ffffff;
  background: var(--service-primary);
}

.service-work-card > span {
  display: block;
  min-width: 0;
}

.service-work-card strong {
  display: block;
  margin-bottom: 7px;
  color: var(--service-heading);
  font-size: 16px;
  font-weight: 750;
  line-height: 1.45;
  word-break: keep-all;
}

.service-work-card small {
  display: block;
  color: var(--service-muted);
  font-size: 13px;
  line-height: 1.65;
  word-break: keep-all;
}

.service-work-action {
  display: flex;
  margin-top: 26px;
  padding: 18px 20px;
  background: #f8fafc;
  border: 1px solid var(--service-border);
  border-radius: 14px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.service-work-summary {
  color: #475569;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.6;
}

.service-work-action .btn {
  display: inline-flex;
  min-height: 46px;
  padding: 0 19px;
  border-radius: 9px;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  white-space: nowrap;
}

.service-work-action .btn.disabled {
  pointer-events: none;
  opacity: .5;
}


/* =========================================================
   6. Before-and-after example
   ========================================================= */

.service-example-section {
  padding: 92px 0;
  background:
    linear-gradient(
      180deg,
      #f8fbff 0%,
      #ffffff 100%
    );
  border-bottom: 1px solid #eef2f7;
}

.service-example-heading {
  margin-bottom: 44px;
}

.service-example-heading p {
  margin: 14px 0 0;
  color: var(--service-muted);
  font-size: 16px;
  line-height: 1.75;
  word-break: keep-all;
}

.service-example-flow {
  display: grid;
  grid-template-columns:
    minmax(0, 1fr)
    minmax(260px, .72fr)
    minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
}

.service-example-card,
.service-example-rules {
  min-width: 0;
  padding: 24px;
  background: #ffffff;
  border: 1px solid var(--service-border);
  border-radius: 17px;
  box-shadow: 0 16px 38px rgba(15, 23, 42, .06);
}

.service-example-card.is-result {
  border-color: #86efac;
  box-shadow:
    0 0 0 3px rgba(34, 197, 94, .07),
    0 16px 38px rgba(15, 23, 42, .06);
}

.service-example-card-heading,
.service-example-rules-heading {
  display: flex;
  margin-bottom: 20px;
  align-items: center;
  gap: 12px;
}

.service-example-step {
  display: inline-flex;
  width: 34px;
  height: 34px;
  color: #ffffff;
  background: var(--service-primary);
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 800;
  flex-shrink: 0;
}

.service-example-card.is-result .service-example-step {
  background: #16a34a;
}

.service-example-card-heading strong,
.service-example-rules-heading strong {
  display: block;
  color: var(--service-heading);
  font-size: 17px;
  font-weight: 760;
  line-height: 1.45;
}

.service-example-card-heading small,
.service-example-rules-heading small {
  display: block;
  margin-top: 2px;
  color: var(--service-muted);
  font-size: 12px;
  line-height: 1.55;
}

.service-example-table-scroll {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--service-border);
  border-radius: 12px;
  scrollbar-width: thin;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}

.service-example-table-scroll:focus-visible {
  outline: 3px solid rgba(37, 99, 235, .15);
  outline-offset: 2px;
}

.service-example-table {
  width: 100%;
  min-width: 540px;
  margin: 0;
  border-collapse: collapse;
  font-size: 13px;
  white-space: nowrap;
}

.service-example-table th,
.service-example-table td {
  padding: 13px 14px;
  border-bottom: 1px solid #e8edf4;
  text-align: left;
}

.service-example-table th {
  color: #334155;
  background: #f8fafc;
  font-weight: 750;
}

.service-example-table td {
  color: #475569;
  background: #ffffff;
}

.service-example-table tbody tr:last-child td {
  border-bottom: 0;
}

.service-example-card.is-result .service-example-table th {
  color: #166534;
  background: #f0fdf4;
}

.service-example-rules {
  display: flex;
  background:
    linear-gradient(
      145deg,
      #eff6ff 0%,
      #ffffff 72%
    );
  border-color: #bfdbfe;
  flex-direction: column;
}

.service-example-rules ul {
  display: grid;
  margin: 0 0 22px;
  padding: 0;
  gap: 12px;
  list-style: none;
  flex: 1;
}

.service-example-rules li {
  display: flex;
  color: #334155;
  align-items: flex-start;
  gap: 9px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.55;
}

.service-example-rules li i {
  margin-top: 2px;
  color: var(--service-primary);
  font-size: 18px;
  flex-shrink: 0;
}

.service-example-rules .btn {
  display: inline-flex;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 9px;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
}

.service-example-note {
  display: flex;
  max-width: 920px;
  margin: 22px auto 0;
  color: #64748b;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  line-height: 1.65;
  text-align: center;
}

.service-example-note i {
  margin-top: 2px;
  color: var(--service-primary);
  font-size: 17px;
  flex-shrink: 0;
}

/* =========================================================
   7. Feature sections
   ========================================================= */

.service-section {
  padding: 92px 0;
}

.service-section-heading {
  max-width: 720px;
  margin: 0 auto 50px;
  text-align: center;
}

.service-section-heading span,
.service-section-label {
  color: var(--service-primary);
  font-weight: 700;
}

.service-section-heading h2,
.service-security h2 {
  margin: 12px 0 0;
  font-size: 36px;
  font-weight: 750;
  line-height: 1.3;
  letter-spacing: -1px;
  word-break: keep-all;
}

.service-feature-grid {
  align-items: stretch;
}

.service-feature-card {
  position: relative;
  height: 100%;
  min-height: 238px;
  padding: 30px;
  background: var(--service-surface);
  border: 1px solid var(--service-border);
  border-radius: 16px;
  transition:
    transform .2s ease,
    box-shadow .2s ease,
    border-color .2s ease;
}

.service-feature-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 18px 40px rgba(15, 23, 42, .09);
  transform: translateY(-4px);
}

.service-feature-card > i {
  display: inline-flex;
  width: 48px;
  height: 48px;
  margin-bottom: 22px;
  color: var(--service-primary);
  background: var(--service-primary-soft);
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  font-size: 25px;
}

.service-feature-card-heading {
  display: block;
  margin-bottom: 10px;
}

.service-feature-card h3 {
  margin: 0;
  padding-right: 0;
  color: var(--service-heading);
  font-size: 18px;
  line-height: 1.45;
  letter-spacing: -.35px;
  word-break: keep-all;
}

.service-feature-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  display: inline-flex;
  min-height: 26px;
  padding: 5px 10px;
  border: 0;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .04em;
  white-space: nowrap;
}

.service-feature-badge.is-pro {
  color: #9a3412;
  background: #fff1e8;
  box-shadow: inset 0 0 0 1px #fed7aa;
}

.service-feature-badge.is-member {
  color: #1d4ed8;
  background: #eaf2ff;
  box-shadow: inset 0 0 0 1px #bfdbfe;
  letter-spacing: -.02em;
}

.service-feature-card.is-pro-feature > i {
  color: var(--service-primary);
  background: var(--service-primary-soft);
}

.service-feature-card.is-member-feature > i {
  color: #1d4ed8;
  background: #eff6ff;
}

.service-feature-card p {
  margin: 0;
  color: var(--service-muted);
  line-height: 1.75;
}

/* =========================================================
   8. Security
   ========================================================= */

.service-security {
  padding: 88px 0;
  color: #ffffff;
  background: #0f172a;
}

.service-security p {
  max-width: 720px;
  color: #cbd5e1;
  font-size: 17px;
  line-height: 1.8;
}

.service-security-icon {
  display: flex;
  color: #60a5fa;
  justify-content: center;
  font-size: 150px;
}

.service-check-list {
  display: grid;
  margin: 28px 0 0;
  padding: 0;
  gap: 14px;
  list-style: none;
}

.service-check-list li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.service-check-list i {
  color: #4ade80;
  font-size: 21px;
}

/* =========================================================
   9. Pricing
   ========================================================= */

.service-price-card {
  position: relative;
  height: 100%;
  padding: 36px;
  background: var(--service-surface);
  border: 1px solid var(--service-border);
  border-radius: 18px;
}

.service-price-card.featured {
  border: 2px solid var(--service-primary);
  box-shadow: 0 20px 50px rgba(37, 99, 235, .13);
}

.service-price {
  margin: 18px 0 24px;
  font-size: 30px;
  font-weight: 750;
}

.service-price-card ul {
  display: grid;
  min-height: 150px;
  padding-left: 20px;
  color: #475569;
  gap: 13px;
}

/* =========================================================
   10. Footer
   ========================================================= */

.service-footer {
  padding: 34px 0;
  color: #94a3b8;
  background: #0b1120;
}

.service-footer .service-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.service-footer strong {
  display: block;
  margin-bottom: 4px;
  color: #ffffff;
}

/* =========================================================
   11. Interactive states
   ========================================================= */

.service-upload-box[role="button"] {
  cursor: pointer;
  outline: none;
  transition:
    background-color .2s ease,
    border-color .2s ease,
    box-shadow .2s ease,
    transform .2s ease;
}

.service-upload-box[role="button"]:hover,
.service-upload-box[role="button"]:focus-visible,
.service-upload-box.dragover {
  background: var(--service-primary-soft);
  border-color: var(--service-primary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, .10);
  transform: translateY(-2px);
}

.service-upload-box.is-loading {
  cursor: wait;
  pointer-events: none;
  opacity: .8;
}

.service-upload-box.is-loading i {
  animation: service-upload-spin 1s linear infinite;
}

#homeUploadAlert {
  margin-bottom: 0;
  text-align: center;
}

@keyframes service-upload-spin {
  to {
    transform: rotate(360deg);
  }
}

/* =========================================================
   12. Responsive rules
   ========================================================= */

@media (min-width: 1200px) {
  .service-public .service-hero-title {
    font-size: 46px;
  }
}

@media (max-width: 1199.98px) {
  .service-example-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-example-rules {
    grid-column: 1 / -1;
  }

  .service-work-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

  .service-public .service-hero-title {
    max-width: 550px;
    font-size: 42px;
    letter-spacing: -1.65px;
  }

  .service-upload-box {
    min-height: 200px;
  }
}

@media (max-width: 991.98px) {
  .service-example-section {
    padding: 72px 0;
  }

  .service-hero {
    padding: 68px 0;
  }

  .service-public .service-hero-title {
    max-width: 720px;
    font-size: 41px;
    letter-spacing: -1.55px;
  }

  .service-public .service-hero-description {
    max-width: 680px;
  }

  .service-security-icon {
    font-size: 100px;
  }
}

@media (max-width: 575.98px) {
  .service-example-section {
    padding: 62px 0;
  }

  .service-example-heading {
    margin-bottom: 30px;
    text-align: left;
  }

  .service-example-heading h2 {
    font-size: 28px;
  }

  .service-example-flow {
    grid-template-columns: 1fr;
  }

  .service-example-rules {
    grid-column: auto;
    order: 2;
  }

  .service-example-card.is-result {
    order: 3;
  }

  .service-example-card,
  .service-example-rules {
    padding: 19px;
  }

  .service-example-table {
    min-width: 520px;
  }

  .service-example-note {
    justify-content: flex-start;
    text-align: left;
  }

  .service-work-selector {
    padding: 64px 0;
  }

  .service-work-selector-heading {
    margin-bottom: 30px;
    text-align: left;
  }

  .service-work-selector-heading h2 {
    font-size: 28px;
  }

  .service-work-grid {
    grid-template-columns: 1fr;
  }

  .service-work-card {
    min-height: auto;
    padding: 18px;
  }

  .service-work-action {
    align-items: stretch;
    flex-direction: column;
  }

  .service-work-action .btn {
    width: 100%;
  }

  .service-container {
    padding-right: 16px;
    padding-left: 16px;
  }

  .service-navbar .service-container {
    min-height: 64px;
  }

  .service-brand span:last-child {
    display: none;
  }

  .service-navbar .btn {
    padding-right: 12px;
    padding-left: 12px;
  }

  .service-hero {
    padding: 52px 0;
  }

  .service-public .service-hero-title {
    max-width: none;
    font-size: 32px;
    line-height: 1.22;
    letter-spacing: -1.2px;
  }

  .service-public .service-hero-title span {
    display: inline;
  }

  .service-public .service-hero-title span + span::before {
    content: " ";
  }

  .service-public .service-hero-description {
    gap: 5px;
    font-size: 15px;
    line-height: 1.68;
  }

  .service-section {
    padding: 66px 0;
  }

  .service-section-heading h2,
  .service-security h2 {
    font-size: 29px;
  }

  .service-footer .service-container {
    align-items: flex-start;
    flex-direction: column;
  }
}


/* =========================================================
   Hero real-use video selector
   ========================================================= */

@media (min-width: 1200px) {
  .service-hero {
    padding: 34px 0 44px;
  }

  .service-hero .service-container {
    max-width: 1320px;
  }

  .service-hero-row {
    --bs-gutter-x: 2rem;
  }

  .service-hero-copy-col {
    padding-right: 12px;
  }

  .service-hero-demo-col {
    padding-left: 12px;
  }

  .service-public .service-hero-title {
    max-width: 520px;
    font-size: clamp(35px, 2.05vw, 40px);
    line-height: 1.17;
    letter-spacing: -1.5px;
  }

  .service-public .service-hero-description {
    max-width: 520px;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.62;
  }

  .service-badge {
    margin-bottom: 14px;
  }

  .service-hero-notice {
    margin-top: 14px;
  }

  .service-demo-preview {
    width: 100%;
    max-width: 760px;
    margin-left: auto;
  }
}

.service-demo-preview {
  overflow: hidden;
  background: #ffffff;
  border-radius: 18px;
}

.service-demo-header {
  min-height: 44px;
  padding: 0 15px;
}

.service-demo-header > span:last-child {
  color: #475569;
  font-size: 12px;
  font-weight: 700;
}

.service-demo-player {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #f8fafc;
  border-bottom: 1px solid var(--service-border);
}

.service-demo-video {
  display: block;
  width: 100%;
  height: 100%;
  background: #f8fafc;
  object-fit: contain;
}

.service-demo-overlay {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 2;
  display: flex;
  max-width: min(590px, calc(100% - 32px));
  padding: 14px 18px 15px;
  color: #ffffff;
  background: rgba(15, 23, 42, .68);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 10px;
  flex-direction: column;
  gap: 2px;
  pointer-events: none;
  backdrop-filter: blur(3px);
}

.service-demo-overlay strong {
  color: #ffffff;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -.2px;
}

.service-demo-overlay span {
  color: rgba(255, 255, 255, .86);
  font-size: 13px;
  line-height: 1.5;
  word-break: keep-all;
}

.service-demo-list {
  display: grid;
  padding: 7px;
  background: #ffffff;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
}

.service-demo-item {
  display: flex;
  width: 100%;
  min-width: 0;
  min-height: 38px;
  padding: 6px 8px;
  color: #64748b;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 7px;
  align-items: center;
  gap: 6px;
  text-align: left;
  cursor: pointer;
  transition:
    color .15s ease,
    background-color .15s ease,
    border-color .15s ease;
}

.service-demo-item:hover,
.service-demo-item:focus-visible {
  color: var(--service-primary-dark);
  background: #f8fbff;
  border-color: #dbeafe;
  outline: none;
}

.service-demo-item > span {
  color: #94a3b8;
  flex: 0 0 auto;
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
}

.service-demo-item strong {
  min-width: 0;
  color: inherit;
  overflow: hidden;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.service-demo-item.active {
  color: var(--service-primary-dark);
  background: #eff6ff;
  border-color: #bfdbfe;
}

.service-demo-item.active > span {
  color: var(--service-primary);
}

@media (max-width: 1199.98px) {
  .service-demo-preview {
    max-width: 760px;
    margin: 0 auto;
  }
}

@media (max-width: 767.98px) {
  .service-demo-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .service-demo-header {
    min-height: 40px;
    padding: 0 11px;
  }

  .service-demo-header > span:last-child {
    font-size: 14px;
  }

  .service-demo-overlay {
    left: 9px;
    bottom: 9px;
    max-width: calc(100% - 20px);
    padding: 10px 12px 11px;
    border-radius: 9px;
  }

  .service-demo-overlay strong {
    font-size: 11px;
  }

  .service-demo-overlay span {
    font-size: 11px;
  }

  .service-demo-list {
    padding: 5px;
    gap: 3px;
  }

  .service-demo-item {
    min-height: 36px;
    padding: 5px 7px;
  }

  .service-demo-item strong {
    font-size: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .service-demo-item {
    transition: none;
  }
}


/* Smooth transition between homepage demo videos */
.service-demo-video {
  opacity: 1;
  transition: opacity .16s ease;
}

.service-demo-video.is-switching {
  opacity: .12;
}

@media (prefers-reduced-motion: reduce) {
  .service-demo-video {
    transition: none;
  }
}

/* =========================================================
   Final Pro card design
   ========================================================= */

.service-pro-card-premium {
  border: 2px solid #2563eb;
  box-shadow:
    0 22px 50px rgba(37, 99, 235, .10),
    0 6px 18px rgba(15, 23, 42, .04);
}

.service-pro-card-premium .service-price-card-top {
  margin-bottom: 0;
}

.service-pro-heading-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.service-pro-heading-copy {
  min-width: 0;
}

.service-pro-heading-row h3 {
  margin: 0 0 5px;
}

.service-pro-price-row {
  display: flex;
  margin-top: 13px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.service-pro-card-premium .service-pro-price {
  display: flex;
  margin: 0;
  align-items: baseline;
  gap: 7px;
  white-space: nowrap;
}

.service-pro-card-premium .service-pro-price strong,
.service-pro-card-premium .service-pro-price span {
  display: inline-block;
  white-space: nowrap;
}

.service-pro-card-premium .service-pro-payment-note {
  min-height: 23px;
  padding: 4px 7px;
  margin: 0;
  flex: 0 0 auto;
  gap: 4px;
  font-size: 8px;
  line-height: 1;
  white-space: nowrap;
}

.service-pro-card-premium .service-pro-payment-note i {
  font-size: 11px;
}

.service-pro-route-box {
  padding: 15px;
  margin: 18px 0 13px;
  background:
    linear-gradient(145deg, #f8fbff 0%, #f3f7ff 100%);
  border: 1px solid #d7e6ff;
  border-radius: 14px;
}

.service-pro-route-head {
  display: flex;
  margin-bottom: 12px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.service-pro-route-head span {
  color: #1e3a8a;
  font-size: 11px;
  font-weight: 850;
}

.service-pro-route-head strong {
  color: #64748b;
  font-size: 9px;
  font-weight: 750;
}

.service-pro-route-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1fr);
  align-items: stretch;
  gap: 10px;
}

.service-pro-route-side {
  display: flex;
  min-width: 0;
  min-height: 92px;
  padding: 10px;
  background: rgba(255, 255, 255, .84);
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  flex-direction: column;
}

.service-pro-route-side > span {
  display: block;
  margin-bottom: 8px;
  color: #64748b;
  font-size: 9px;
  font-weight: 800;
}

.service-pro-chip-grid {
  display: grid;
  width: 100%;
  margin-top: auto;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
}

.service-pro-chip-grid strong {
  display: flex;
  min-width: 0;
  min-height: 27px;
  padding: 5px 4px;
  color: #334155;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 7px;
  align-items: center;
  justify-content: center;
  overflow-wrap: anywhere;
  font-size: 8px;
  font-weight: 750;
  line-height: 1.12;
  text-align: center;
  white-space: normal;
}

.service-pro-route-arrow {
  display: flex;
  color: #60a5fa;
  align-items: center;
  justify-content: center;
  font-size: 17px;
}

.service-pro-process {
  display: flex;
  min-height: 48px;
  padding: 10px 18px;
  margin: 0 12px 15px;
  color: #334155;
  background: #f8fafc;
  border: 1px solid #e5eaf1;
  border-radius: 11px;
  align-items: center;
  justify-content: center;
  gap: 9px;
}

.service-pro-process > strong {
  color: #334155;
  font-size: 9px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}

.service-pro-process > i {
  color: #60a5fa;
  flex: 0 0 auto;
  font-size: 11px;
}

.service-pro-benefits {
  display: grid;
  margin-bottom: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.service-pro-benefit {
  display: grid;
  min-width: 0;
  min-height: 72px;
  padding: 10px;
  background: #ffffff;
  border: 1px solid #e8edf4;
  border-radius: 10px;
  grid-template-columns: 27px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
}

.service-pro-benefit > i {
  display: inline-flex;
  width: 27px;
  height: 27px;
  color: #2563eb;
  background: #eff6ff;
  border-radius: 8px;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.service-pro-benefit strong,
.service-pro-benefit span {
  display: block;
}

.service-pro-benefit strong {
  color: #172033;
  font-size: 9.5px;
  font-weight: 800;
  line-height: 1.32;
  word-break: keep-all;
}

.service-pro-benefit span {
  margin-top: 3px;
  color: #64748b;
  font-size: 8.5px;
  line-height: 1.35;
  word-break: keep-all;
}

.service-pro-extra {
  display: flex;
  min-height: 34px;
  padding: 8px 10px;
  margin-bottom: 15px;
  color: #475569;
  background: #f8fafc;
  border-radius: 8px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 9px;
  font-weight: 700;
}

.service-pro-extra i {
  color: #2563eb;
  font-size: 13px;
}

@media (max-width: 1199.98px) {
  .service-pro-benefits {
    grid-template-columns: 1fr;
  }

  .service-pro-price-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .service-pro-process {
    margin-right: 0;
    margin-left: 0;
    padding-right: 12px;
    padding-left: 12px;
    gap: 7px;
  }
}

@media (max-width: 575.98px) {
  .service-pro-heading-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .service-pro-route-grid {
    grid-template-columns: 1fr;
  }

  .service-pro-route-arrow {
    min-height: 20px;
    transform: rotate(90deg);
  }

  .service-pro-process {
    flex-wrap: wrap;
    gap: 6px 8px;
  }

  .service-pro-process > strong {
    font-size: 10px;
  }
}

/* =========================================================
   Final Home plan / comparison design
   ========================================================= */

.service-pricing-section .service-section-heading,
.service-comparison-section .service-section-heading {
  max-width: 780px;
  margin-right: auto;
  margin-left: auto;
}

.service-pricing-section .service-section-heading h2,
.service-comparison-section .service-section-heading h2 {
  max-width: 760px;
  margin-right: auto;
  margin-left: auto;
  font-size: 32px;
  line-height: 1.28;
  letter-spacing: -.9px;
  word-break: keep-all;
}

.service-pricing-section .service-section-heading p,
.service-comparison-section .service-section-heading p {
  max-width: 720px;
  margin-right: auto;
  margin-left: auto;
  font-size: 14px;
  line-height: 1.7;
  word-break: keep-all;
}

.service-pricing-row {
  align-items: stretch;
}

.service-pricing-row > [class*="col-"] {
  display: flex;
}

.service-pricing-row .service-price-card {
  display: flex;
  width: 100%;
  padding: 30px 28px;
  flex-direction: column;
}

.service-plan-summary {
  display: flex;
  min-height: 58px;
  padding: 12px 13px;
  margin: 16px 0 18px;
  background: #f8fafc;
  border: 1px solid #e8eef6;
  border-radius: 11px;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
}

.service-plan-summary strong {
  color: var(--service-heading);
  font-size: 13px;
  font-weight: 800;
}

.service-plan-summary span {
  color: var(--service-muted);
  font-size: 11px;
  line-height: 1.4;
}

.service-plan-feature-list {
  min-height: 0 !important;
  margin-bottom: 24px;
  gap: 11px !important;
}

.service-price-feature-list .is-muted,
.service-price-feature-list .is-muted i {
  color: #94a3b8;
}

/* comparison */
.service-comparison {
  overflow: hidden;
  border: 1px solid #dbe3ef;
  border-radius: 18px;
  box-shadow: 0 14px 38px rgba(15, 23, 42, .05);
  scrollbar-width: thin;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}

.service-comparison-head {
  min-height: 64px;
}

.service-comparison-head > div {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #334155;
  font-size: 15px;
  font-weight: 900;
  text-align: center;
}

.service-comparison-head > div:first-child {
  justify-content: flex-start;
  padding-left: 18px;
  color: #172033;
}

.service-comparison-head > .is-pro {
  color: #ffffff;
  background: linear-gradient(
    135deg,
    #2563eb 0%,
    #3b82f6 100%
  );
}

.service-comparison-row {
  border-bottom-color: #e8edf4;
}

.service-comparison-row:not(.service-comparison-head) > :nth-child(4) {
  background: #f8fbff;
}

.service-comparison-group {
  display: flex;
  min-height: 36px;
  padding: 7px 16px;
  border-bottom: 1px solid #dfe6ef;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
}

.service-comparison-group span {
  color: inherit;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -.2px;
}

.service-comparison-group small {
  color: inherit;
  opacity: .68;
  font-size: 9px;
  font-weight: 650;
  line-height: 1.2;
}

.service-comparison-group.is-basic-group {
  color: #334155;
  background: #f1f5f9;
}

.service-comparison-group.is-member-group {
  color: #166534;
  background: #f0fdf4;
}

.service-comparison-group.is-pro-group {
  color: #1d4ed8;
  background: #eff6ff;
}

.service-comparison-group.is-detail-group {
  color: #6d28d9;
  background: #faf5ff;
}

.service-comparison-row strong {
  color: #263244;
}

.service-comparison-row span {
  font-size: 12px;
}

.service-comparison-row.is-pro-emphasis {
  background: #ffffff;
}

.service-comparison-row.is-pro-emphasis > :nth-child(4),
.service-comparison-row .is-pro-value {
  color: #1d4ed8;
  background: #eff6ff;
}

.service-comparison-row.is-pro-emphasis .is-pro-value strong {
  color: #1d4ed8;
}

.service-comparison-row .is-unavailable {
  color: #94a3b8;
}

.service-comparison-actions {
  background: #fbfdff;
}

.service-comparison-actions .btn {
  min-width: 106px;
  border-radius: 9px;
}

.service-pro-bottom-cta {
  margin-top: 24px;
  border: 1px solid #dbeafe;
  box-shadow: 0 12px 30px rgba(37, 99, 235, .06);
}

@media (max-width: 767.98px) {
  .service-pricing-section .service-section-heading h2,
  .service-comparison-section .service-section-heading h2 {
    font-size: 28px;
  }

  .service-comparison {
    overflow-x: auto;
    overflow-y: hidden;
    touch-action: pan-x pan-y;
  }

  .service-comparison-row,
  .service-comparison-group {
    min-width: 760px;
  }

  .service-comparison-group {
    min-height: 34px;
    padding: 6px 14px;
  }

  .service-comparison-group span {
    font-size: 13px;
  }

  .service-comparison-group small {
    font-size: 8px;
  }
}

