/* Zid button layer: palette and state adjustments applied on top of the reviewed
 * button adapter (zid-buttons.css), which stays byte-identical.
 * Loaded after it on purpose so shape, sizing, focus and motion come from the adapter. */

/* Hero CTA: the site's palette yellow. */
body.zid-growth-page[data-page] .film-cta {
  background: #f9e683;
  color: #1f0433;
}
body.zid-growth-page[data-page] .film-cta:hover {
  background: #fff0a8;
}

/* Improvement picker: the same Button defaults as every other action —
 * pill shape, 44px, Suisse 14/600 — with a visible container on every state. */
body.zid-growth-page[data-page] .demo-tabs button {
  height: 44px;
  min-height: 44px;
  padding: 8px 16px;
  gap: 8px;
  border: 1px solid var(--zid-silver);
  border-radius: 9999px;
  background: var(--zid-white);
  color: var(--zid-dark-lavender);
  font-family: "Suisse Intl", sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: 0;
  white-space: nowrap;
  box-shadow: none;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
body.zid-growth-page[data-page] .demo-tabs button:hover {
  border-color: var(--zid-lavender);
  background: var(--zid-neutral);
}
body.zid-growth-page[data-page] .demo-tabs button[aria-selected="true"] {
  background: #f9e683;
  border-color: #f9e683;
  color: #1f0433;
}
body.zid-growth-page[data-page] .demo-tabs button[aria-selected="true"]:hover {
  background: #fff0a8;
  border-color: #fff0a8;
}
body.zid-growth-page[data-page] .demo-tabs button:focus-visible {
  outline: 2px solid var(--zid-lavender);
  outline-offset: 2px;
  box-shadow: none;
}

@media (max-width: 760px) {
  /* Five pills across a phone: keep them inside the picker's own width. */
  body.zid-growth-page[data-page] .demo-tabs button {
    padding: 8px 8px;
    font-size: 12px;
  }
}

/* Phone field: same pill language as the action beside it — silver hairline,
 * 52px to match the button, lavender focus ring, no grey country chip. */
body.zid-growth-page[data-page] .phone-field {
  height: 52px;
  align-items: center;
  border: 1px solid var(--zid-silver);
  border-radius: 9999px;
  background: var(--zid-white);
  box-shadow: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
body.zid-growth-page[data-page] .phone-field > span {
  display: inline-flex;
  align-items: center;
  height: 100%;
  padding: 0 12px 0 16px;
  background: transparent;
  border-right: 1px solid var(--zid-silver);
  color: var(--zid-dark-lavender);
  font-family: "Suisse Intl", sans-serif;
  font-weight: 500;
}
body.zid-growth-page[data-page] .phone-field input {
  height: 100%;
  padding: 0 16px;
  font-family: "Suisse Intl", sans-serif;
}
body.zid-growth-page[data-page] .phone-field:focus-within {
  border-color: var(--zid-lavender);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--zid-lavender) 25%, transparent);
}
body.zid-growth-page[data-page] .phone-field:has(input[aria-invalid="true"]) {
  border-color: #fa3768;
  box-shadow: none;
}

@media (max-width: 760px) {
  body.zid-growth-page[data-page] .phone-field > span {
    padding: 0 8px 0 12px;
  }
  body.zid-growth-page[data-page] .phone-field input {
    padding: 0 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.zid-growth-page[data-page] .demo-tabs button {
    transition: none;
  }
  body.zid-growth-page[data-page] .phone-field {
    transition: none;
  }
}
