/**
 * index1.html — bridge approved header/hero with client .smt sections.
 */
.smt-home.smt-index1 {
  --smt-blue-800: #0b3d55;
  --smt-blue-700: #0e5270;
  --smt-teal-700: #1c727f;
  --smt-teal-600: #207D8C;
  --smt-green-500: #81B954;
  --smt-blend-500: #519B70;
}

.smt-home.smt-index1 .site-header.smt-header {
  z-index: 120;
}

/* Get the App — download arrow icon (client reference), keep existing button look */
.smt-home.smt-index1 .site-header .nav-btn.smt-btn-cta,
.smt-home.smt-index1 .site-header .smt-mobile-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.smt-home.smt-index1 .site-header .smt-cta-dl {
  width: 16px;
  height: 16px;
  flex: none;
  display: block;
}

/* Client-reference dropdown: icon + title + desc */
.smt-home.smt-index1 .site-header .smt-dd-ic {
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 11px;
  background: linear-gradient(115deg, #e1eef4 0%, #f5f8f6 100%);
  display: grid;
  place-items: center;
  color: #207D8C;
}

.smt-home.smt-index1 .site-header .smt-dd-ic svg {
  width: 20px;
  height: 20px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.smt-home.smt-index1 .site-header .smt-dd-txt {
  display: block;
  min-width: 0;
}

.smt-home.smt-index1 .site-header .smt-dd-txt b {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  color: #02060f;
  line-height: 1.3;
}

.smt-home.smt-index1 .site-header .smt-dd-txt small {
  display: block;
  margin-top: 2px;
  color: #4c6a72;
  font-size: 0.8rem;
  font-weight: 400;
  line-height: 1.35;
}

@media (min-width: 992px) {
  /* Features — 2-column mega grid (client reference) */
  .smt-home.smt-index1 .site-header .site-main-menu > li.smt-has-mega > .sub-menu.smt-mega--features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
    width: min(720px, 92vw);
    max-width: calc(100vw - 48px);
    padding: 14px;
    border-radius: 20px;
    left: 50%;
    -webkit-transform: translate(-50%, 8px);
            transform: translate(-50%, 8px);
  }

  .smt-home.smt-index1 .site-header .site-main-menu > li.smt-has-mega:hover > .sub-menu.smt-mega--features,
  .smt-home.smt-index1 .site-header .site-main-menu > li.smt-has-mega:focus-within > .sub-menu.smt-mega--features,
  .smt-home.smt-index1 .site-header .site-main-menu > li.smt-has-mega.smt-open > .sub-menu.smt-mega--features {
    -webkit-transform: translate(-50%, 0);
            transform: translate(-50%, 0);
  }

  .smt-home.smt-index1 .site-header.header-seven .site-main-menu .smt-mega--features > li > a,
  .smt-home.smt-index1 .site-header.header-seven .site-main-menu .smt-dd-panel > li > a {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 0;
    padding: 10px 12px;
    border-radius: 12px;
    line-height: 1.35;
    white-space: normal;
  }

  .smt-home.smt-index1 .site-header.header-seven .site-main-menu .smt-mega--features > li > a:hover,
  .smt-home.smt-index1 .site-header.header-seven .site-main-menu .smt-dd-panel > li > a:hover,
  .smt-home.smt-index1 .site-header.header-seven .site-main-menu .smt-mega--features > li > a:focus-visible,
  .smt-home.smt-index1 .site-header.header-seven .site-main-menu .smt-dd-panel > li > a:focus-visible {
    background: #f5f8f6;
    color: inherit;
  }

  /* Specialists / Programs — icon list panel */
  .smt-home.smt-index1 .site-header .site-main-menu > li > .sub-menu.smt-dd-panel {
    width: 300px;
    padding: 5px;
    border-radius: 20px;
    display: grid;
    gap: 4px;
  }
}

@media (max-width: 991px) {
  .smt-home.smt-index1 .site-header.header-seven.header-app .site-nav .site-main-menu .smt-mega--features > li > a,
  .smt-home.smt-index1 .site-header.header-seven.header-app .site-nav .site-main-menu .smt-dd-panel > li > a {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 28px 10px 40px;
    white-space: normal;
  }

  .smt-home.smt-index1 .site-header .smt-dd-ic {
    width: 32px;
    height: 32px;
    border-radius: 9px;
  }

  .smt-home.smt-index1 .site-header .smt-dd-ic svg {
    width: 16px;
    height: 16px;
  }

  .smt-home.smt-index1 .site-header .smt-dd-txt b {
    font-size: 0.9rem;
  }

  .smt-home.smt-index1 .site-header .smt-dd-txt small {
    font-size: 0.75rem;
  }
}

.smt-home.smt-index1 .smt .progress {
  z-index: 130;
}

/* Client sections stay in Work Sans/Poppins stack from .smt */
.smt-home.smt-index1 .smt {
  position: relative;
  z-index: 1;
}

/* Approved hero sits above white client content */
.smt-home.smt-index1 .banner-app-three.smt-hero {
  margin-bottom: 0;
}

.smt-home.smt-index1 .smt-hero + .partners {
  margin-top: 0;
}

/* Storyboard video modal (mounted on body) */
.smt-story-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(11, 61, 85, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.smt-story-modal[hidden] {
  display: none !important;
}

.smt-story-modal__panel {
  width: min(720px, 100%);
  background: #0b3d55;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 40px 80px -24px rgba(0, 0, 0, 0.45);
  color: #fff;
}

.smt-story-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.smt-story-modal__head h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.smt-story-modal__close {
  border: 0;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
}

.smt-story-modal__stage {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #81B954, #207D8C);
  display: grid;
  place-items: center;
  position: relative;
}

.smt-story-modal__frame {
  text-align: center;
  padding: 24px;
  max-width: 90%;
}

.smt-story-modal__frame p {
  margin: 0 0 8px;
  font-size: 1.05rem;
  line-height: 1.45;
}

.smt-story-modal__frame small {
  opacity: 0.75;
}

.smt-story-modal__controls {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px 16px;
}

.smt-story-modal__play {
  flex: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: #81B954;
  color: #0b3d55;
  cursor: pointer;
  font-weight: 700;
}

.smt-story-modal__bar {
  flex: 1;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  overflow: hidden;
  cursor: pointer;
}

.smt-story-modal__bar i {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #81B954, #207D8C);
  border-radius: inherit;
  transition: width 0.15s linear;
}

.smt-story-modal__time {
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
  opacity: 0.85;
  min-width: 4.5rem;
  text-align: right;
}

/* Blog article modal */
.smt-article-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(22, 32, 29, 0.55);
}

.smt-article-modal[hidden] {
  display: none !important;
}

.smt-article-modal__panel {
  width: min(640px, 100%);
  max-height: min(85vh, 720px);
  overflow: auto;
  background: #fff;
  border-radius: 18px;
  padding: 28px 28px 32px;
  box-shadow: 0 32px 64px -28px rgba(11, 61, 85, 0.35);
}

.smt-article-modal__panel h3 {
  margin: 0 0 8px;
  font-size: 1.35rem;
  color: #0b3d55;
}

.smt-article-modal__meta {
  font-size: 0.85rem;
  color: #4e5d58;
  margin-bottom: 16px;
}

.smt-article-modal__panel p {
  color: #4e5d58;
  line-height: 1.6;
}

.smt-article-modal__close {
  margin-top: 20px;
  padding: 10px 18px;
  border: 0;
  border-radius: 10px;
  background: #207d8c;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

.smt-index1 .vid .placeholder {
  background: rgba(129, 185, 84, 0.92);
  border: 0;
  color: #000;
  z-index: 4;
}

.smt-index1 .vid .smt-vid-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
  z-index: 0;
  pointer-events: none;
}

.smt-index1 .vid .play {
  z-index: 4;
}

.smt-index1 .vid b,
.smt-index1 .vid small {
  position: relative;
  z-index: 3;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.65);
}

.smt-index1 .vid::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 61, 85, 0.12) 35%, rgba(11, 61, 85, 0.78) 100%);
  pointer-events: none;
  z-index: 1;
}

.smt-index1 .rev .who .who-avatar,
.smt-index1 .vid .vid-avatar {
  object-fit: cover;
  object-position: center top;
}

/* Grow your practice — match hero/CTA phone frame */
.smt-index1 .join .smt-join-mock {
  width: min(250px, 78%);
  margin-inline: auto;
}

.smt-index1 .join .smt-device--join .smt-device__screen {
  aspect-ratio: 393 / 852;
  background: #fff;
}

.smt-index1 .join .smt-device--join .smt-device__screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.smt-story-modal__badge {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(129, 185, 84, 0.95);
  color: #0b3d55;
  padding: 4px 8px;
  border-radius: 999px;
  margin-right: 8px;
}

.smt-story-modal__stage--video {
  background: #000;
  padding: 0;
  overflow: hidden;
}

.smt-story-modal__stage--video video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #000;
}

.smt-story-modal__fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 24px;
  background: #0b3d55;
}

.smt-story-modal__restart,
.smt-story-modal__mute {
  flex: none;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  cursor: pointer;
}

.smt-index1 .post,
.smt-index1 .rev,
.smt-index1 .rx,
.smt-index1 .vid,
.smt-index1 .ov,
.smt-index1 .tile,
.smt-index1 .glp-card,
.smt-index1 .chart-card {
  box-shadow: var(--shadow-card, 0 16px 40px rgba(15, 47, 51, 0.12), 0 4px 12px rgba(15, 47, 51, 0.06));
}

.smt-index1 .partner,
.smt-index1 .partner:hover,
.smt-index1 .ex,
.smt-index1 .ex-panel,
.smt-index1 .slot {
  box-shadow: none;
}

.smt-index1 .post:hover,
.smt-index1 .rev:hover,
.smt-index1 .rx:hover,
.smt-index1 .vid:hover,
.smt-index1 .ov:hover,
.smt-index1 .tile:hover {
  box-shadow: var(--shadow-card-hover, 0 24px 50px rgba(15, 47, 51, 0.16), 0 8px 18px rgba(15, 47, 51, 0.08));
}

.smt-index1 .post .cover {
  background: #0b3d55;
}

.smt-index1 .post .cover .smt-blog-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.smt-index1 .post .cover .pat {
  opacity: 0.35;
  mix-blend-mode: multiply;
}

body.smt-modal-open {
  overflow: hidden;
}
