.hero-tabs {
  display: flex;
  width: fit-content;
  max-width: 100%;
  margin: 13px 12px 0;
  padding: 4px;
  gap: 4px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: var(--surface);
}

.hero-tabs[hidden], .hero-viewer img[hidden] { display: none; }
.hero-tabs button, .hero-viewer button { font: inherit; color: var(--text); cursor: pointer; }
.hero-tabs button {
  min-height: 42px;
  border: 0;
  border-radius: 11px;
  padding: 10px 17px;
  background: transparent;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.22;
}

.hero-tabs button[aria-selected=true] { background: var(--home-action); color: var(--surface); }
.hero-tabs button[aria-selected=false]:hover { background: var(--surface-muted); }
.home-slider :focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.hero-panels { touch-action: pan-y pinch-zoom; }
.home-slider #missed-title {
  max-width: 640px;
  margin: 0;
  font-size: clamp(36px, 3.8vw, 52px);
  line-height: 1.08;
  letter-spacing: -.035em;
}
#missed-title span { color: var(--home-action); }
.hero-examples-title {
  margin: 0 0 12px;
  font-size: 22px;
  line-height: 1.25;
  text-align: center;
}
.hero-examples {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  padding: 14px 0;
}
.hero-examples figure { margin: 0; min-width: 0; }
.hero-examples figcaption {
  margin: 0 0 7px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}
.hero-examples button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  cursor: zoom-in;
}
.hero-examples img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
}
.hero-viewer {
  width: max-content;
  max-width: min(680px, 95vw);
  max-height: 90dvh;
  box-sizing: border-box;
  padding: 18px;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 18px;
}
.hero-viewer::backdrop { background: rgb(19 26 22 / 65%); }
.hero-viewer img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 65dvh;
  margin: auto;
  border-radius: 9px;
}
.hero-viewer-head, .hero-viewer-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.hero-viewer-head { margin-bottom: 12px; }
.hero-viewer-nav { margin-top: 14px; }
.hero-viewer-nav span { color: var(--text-muted); font-size: 13px; }
.hero-viewer button {
  min-height: 40px;
  padding: 7px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-muted);
}
.hero-viewer-head button { font-size: 20px; }

@media (min-width: 921px) {
  .hero-panels { display: grid; }
  .hero-panel { grid-area: 1 / 1; }
  /* Reserve both slides' height so the trial form below stays in place. */
  .hero-tabs:not([hidden]) + .hero-panels .hero-panel[hidden] {
    display: block;
    visibility: hidden;
    pointer-events: none;
  }
}
@media (max-width: 720px) {
  .hero-tabs { width: 100%; margin: 6px 0 0; }
  .hero-tabs button { flex: 1; padding: 8px 5px; font-size: 13px; }
  .home-slider #missed-title { font-size: clamp(32px, 8.4vw, 42px); line-height: 1.1; }
  .hero-examples { grid-template-columns: 1fr; gap: 18px; padding: 2px 0; }
  .hero-examples figure { width: 100%; max-width: 390px; margin: 0 auto; }
}
