/*
 * Doc: Campaign matched DTC landing refinements
 * Status: Local review candidate
 * Last verified: 2026-11-05
 * Small additive layer on top of the original /dtc/ stylesheet. It restores
 * behaviour the removed React bundle used to provide and styles the few new
 * hooks. It does not restyle the original design.
 */

/* ---------------------------------------------------------------- reveal
   Content is visible without JS. With JS, it fades in on scroll as before. */
html.lp-js [data-lp-reveal]:not(.is-in) {
  opacity: 0;
  transform: translateY(16px);
}
html.lp-js [data-lp-reveal] {
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
@media (prefers-reduced-motion: reduce) {
  html.lp-js [data-lp-reveal],
  html.lp-js [data-lp-reveal]:not(.is-in) {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
@media print {
  html.lp-js [data-lp-reveal] { opacity: 1 !important; transform: none !important; }
}

/* ---------------------------------------------------------------- anchors */
section[id] { scroll-margin-top: 88px; }
[tabindex="-1"]:focus { outline: none; }

a:focus-visible,
button:focus-visible {
  outline: 2px solid rgba(17, 138, 43, 0.9);
  outline-offset: 3px;
}

/* Original <button> elements retagged as links keep their look. */
a.lp-btn-a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
}

/* ---------------------------------------------------------------- mobile menu */
.lp-menu-btn {
  display: none;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-left: 2px;
  border-radius: 9999px;
  color: #1d1d1f;
  background: transparent;
  border: 0;
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.lp-menu-btn:hover { background: rgba(0, 0, 0, 0.04); }
@media (max-width: 767.98px) {
  .lp-menu-btn { display: inline-grid; }
}

.lp-mobile-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 16px;
  right: 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05), 0 24px 48px -24px rgba(20, 30, 70, 0.35);
}
.lp-mobile-menu[hidden] { display: none; }
.lp-mobile-menu a {
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 500;
  color: #1d1d1f;
  text-decoration: none;
}
.lp-mobile-menu a:hover { background: rgba(0, 0, 0, 0.04); }
.lp-mobile-menu a.lp-mobile-menu__cta {
  margin-top: 6px;
  text-align: center;
  font-weight: 600;
  color: #fff;
  background: rgb(17, 138, 43);
  border-radius: 9999px;
}
.lp-mobile-menu a.lp-mobile-menu__cta:hover { background: rgb(13, 112, 34); }
@media (min-width: 768px) {
  .lp-mobile-menu { display: none !important; }
}

/* ---------------------------------------------------------------- phone demo */
.lp-demo {
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  padding: 10px 12px 8px;
}
.lp-demo::-webkit-scrollbar { display: none; }
.lp-demo-step {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.lp-demo-step[hidden] { display: none; }
html.lp-js .lp-demo-step:not([hidden]) {
  animation: lp-step-in 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes lp-step-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html.lp-js .lp-demo-step:not([hidden]) { animation: none; }
}
.lp-demo-meta {
  margin: 2px 0 2px;
  text-align: center;
  font-size: 10.5px;
  font-weight: 500;
  color: #86868b;
}
.lp-demo .imsg-b {
  font-size: 13.5px;
  line-height: 1.32;
}

/* Current job in the "four jobs" list follows the selected day. */
[data-lp-job] > span:first-child {
  transition: box-shadow 0.2s ease, color 0.2s ease;
}
[data-lp-job].is-current > span:first-child {
  color: rgb(17, 138, 43);
  box-shadow: 0 0 0 1.5px rgba(17, 138, 43, 0.45);
}

/* ---------------------------------------------------------------- channels card */
.lp-channel-fill {
  display: flex;
  align-items: center;
  padding: 0 12px;
  font-size: 12.5px;
  font-weight: 600;
  color: #1d1d1f;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lp-channel-fill--brand { color: #fff; }
@media (max-width: 420px) {
  .lp-channel-fill { white-space: normal; line-height: 1.2; font-size: 12px; }
}

/* Word in place of the removed numeric stat, kept in the same visual slot. */
.lp-stat {
  font-size: 46px !important;
}
@media (max-width: 420px) {
  .lp-stat { font-size: 40px !important; }
}

/* Integration repair: retain full wordmark and whole qualitative statements on narrow phones. */
header a[aria-label="Zobi home"], .lp-menu-btn { flex-shrink: 0; }
.lp-channel-value { min-width: 0; }
.lp-channel-fill { height: auto; min-height: 40px; padding: 9px 12px; white-space: normal; overflow: visible; line-height: 1.35; }
@media (max-width: 420px) {
  header a[href="https://zobi.com/dtc/"] { display: none; }
  .lp-channel-row { display: block; }
  .lp-channel-row > span { display: block; width: auto; margin-bottom: 6px; }
  .lp-channel-value { width: 100%; }
}
@media (max-width: 1023px) {
  #how .grid { grid-template-columns: minmax(0, 1fr); }
  #how .grid > div { min-width: 0; }
}
@media (max-width: 359px) {
  header a[aria-label="Zobi home"] svg:first-child { display: none; }
  header a[aria-label="Zobi home"] svg:last-child { display: block; }
}
@media (max-width: 359px) {
  header a[data-lp-apply] { padding-left: 12px; padding-right: 12px; font-size: 13px; }
  header a[aria-label="Zobi home"] > span { height: 24px; }
}

.lp-stat-line { flex-wrap: wrap; }
@media (min-width: 768px) and (max-width: 1023px) {
  .lp-stat { font-size: 30px !important; }
}
