/* Zid Button adapter for this standalone HTML page.
 * Source: abdulrahmanx97/zid-landing-page-map @ 57dc2405de803b7b9866e8de5090d5d3ed86f55f
 * shared/03-shared-source-code.md — src/components/ui/button.tsx
 * 00-MASTER-TEMPLATE.md §4.4 — landing-page CTA sizing
 * Original navigation, event handlers and example-store controls stay intact.
 */
.zid-growth-page {
  --zid-white: #ffffff;
  --zid-dark: #1f0433;
  --zid-dark-rgb: 31 4 51;
  --zid-dark-lavender: #3c1c54;
  --zid-dark-lavender-rgb: 60 28 84;
  --zid-lavender: #af72ff;
  --zid-neutral: #f5f4f6;
  --zid-silver: #e8e4eb;
}

/* Shared Button default: h-11, px-4, gap-2, text-label-sm, rounded-full. */
body.zid-growth-page[data-page] :is(.button, .film-cta, .flow-nav-button, .quiet-button, .before-after > :where(button)) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 72px;
  height: 44px;
  min-height: 44px;
  padding: 8px 16px;
  border: 1px solid transparent;
  border-radius: 9999px;
  font-family: "Suisse Intl", sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: 0;
  white-space: nowrap;
  text-decoration: none;
  box-shadow: none;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}

/* Shared light/dark/outline/ghost variants; no custom gold CTA variant. */
body.zid-growth-page[data-page] :is(.button-dark, .end-form-row .button) {
  background: var(--zid-dark-lavender);
  color: var(--zid-white);
}
body.zid-growth-page[data-page] :is(.button-dark, .end-form-row .button):hover {
  background: rgb(var(--zid-dark-lavender-rgb) / .9);
  box-shadow: none;
}
body.zid-growth-page[data-page] :is(.button-white, .film-cta) {
  background: var(--zid-white);
  color: var(--zid-dark);
}
body.zid-growth-page[data-page] :is(.button-white, .film-cta):hover {
  background: rgb(255 255 255 / .9);
  transform: none;
}
body.zid-growth-page[data-page] :is(.button-outline, .flow-defer-button) {
  border: 1px solid var(--zid-dark);
  background: transparent;
  color: var(--zid-dark);
}
body.zid-growth-page[data-page] :is(.button-outline, .flow-defer-button):hover {
  border-color: var(--zid-dark-lavender);
  background: var(--zid-dark-lavender);
  color: var(--zid-white);
}
body.zid-growth-page[data-page] .button-light-outline {
  border-color: var(--zid-white);
  background: transparent;
  color: var(--zid-white);
}
body.zid-growth-page[data-page] .button-light-outline:hover {
  background: var(--zid-white);
  color: var(--zid-dark);
}
body.zid-growth-page[data-page] :is(.flow-nav-button, .quiet-button) {
  background: transparent;
  color: var(--zid-dark);
}
body.zid-growth-page[data-page] :is(.flow-nav-button, .quiet-button):hover:not(:disabled) {
  background: rgb(var(--zid-dark-rgb) / .05);
}

/* The before/after control keeps its existing pressed-state behavior. */
body.zid-growth-page[data-page] .before-after {
  border-radius: 9999px;
}
body.zid-growth-page[data-page] .before-after button {
  font-size: 14px;
  font-weight: 600;
  background: var(--zid-white);
  color: var(--zid-dark);
  border-color: var(--zid-silver);
  box-shadow: none;
  animation: none;
}
body.zid-growth-page[data-page] .before-after button[aria-pressed="true"] {
  background: var(--zid-dark-lavender);
  color: var(--zid-white);
  border-color: transparent;
}

/* Shared size=lg; the hero uses the documented 54px landing CTA. */
body.zid-growth-page[data-page] #demo-guide-link,
body.zid-growth-page[data-page] :is(.task-primary-actions .button, .guide-actions .button, .flow-mobile-bar .button, .end-form-row .button) {
  height: 52px;
  min-height: 52px;
  padding: 8px 24px;
  font-size: 16px;
}
body.zid-growth-page[data-page] .film-cta {
  height: 54px;
  min-height: 54px;
  padding: 12px 32px;
  font-size: 16px;
  font-weight: 500;
}

body.zid-growth-page[data-page] :is(.button, .film-cta, .flow-nav-button, .quiet-button, .before-after > :where(button)):focus-visible {
  outline: 2px solid var(--zid-lavender);
  outline-offset: 2px;
  box-shadow: none;
}
body.zid-growth-page[data-page] :is(.button-outline, .flow-defer-button):focus-visible {
  outline-color: var(--zid-dark);
}
body.zid-growth-page[data-page] :is(.flow-nav-button, .quiet-button):focus-visible {
  outline-color: var(--zid-neutral);
}
body.zid-growth-page[data-page] .button-light-outline:focus-visible {
  outline-color: var(--zid-white);
}
body.zid-growth-page[data-page] .button:hover {
  transform: none;
}
body.zid-growth-page[data-page] :is(.button, .flow-nav-button, .quiet-button):is(:disabled, [aria-disabled="true"]) {
  opacity: .5;
  pointer-events: none;
  cursor: default;
}

@media (max-width: 760px) {
  /* Keep the existing two-action phone layout within its available width. */
  body.zid-growth-page[data-page] :is(.task-primary-actions .button, .flow-mobile-bar .button, .end-form-row .button) {
    padding-inline: 16px;
    font-size: 14px;
  }
}
@media (max-width: 360px) {
  /* Preserve the guide's narrow-screen three-action bar. */
  body.zid-growth-page[data-page] .flow-mobile-bar .flow-nav-button {
    min-width: 0;
    padding-inline: 6px;
    gap: 5px;
  }
  body.zid-growth-page[data-page] .flow-mobile-bar .button {
    min-width: 0;
    padding-inline: 8px;
    gap: 6px;
  }
}
@media (prefers-reduced-motion: reduce) {
  body.zid-growth-page[data-page] :is(.button, .film-cta, .flow-nav-button, .quiet-button, .before-after > :where(button)) {
    transition: none;
  }
}
