/* Hallmark · macrostructure: Workbench (landing) + stepped flow + result document
 * system: design.md-managed (UpHex locked) · tone: confident, plainspoken · anchor hue: teal 190 / blue 253
 * motif: gray = sameness, color = the page that converts · nav: logo-only · footer: legal line
 * The free HighLevel landing-page prompt tool (/ghl-landing-page-prompt).
 * Colors and fonts resolve to the app tokens in application.tailwind.css; this file adds only
 * the page's spacing, type, and motion scale. Default CSS state is every scene's finished state;
 * `motion-ready` (added by ghl_prompt.js only when motion is allowed) sets starting positions.
 */
.gp {
  --gp-space-2xs: 0.25rem;
  --gp-space-xs: 0.5rem;
  --gp-space-sm: 0.75rem;
  --gp-space-md: 1rem;
  --gp-space-lg: 1.5rem;
  --gp-space-xl: 2rem;
  --gp-space-2xl: 3rem;
  --gp-space-3xl: 4.5rem;
  --gp-text-sm: 0.875rem;
  --gp-text-base: 1rem;
  --gp-text-lg: 1.1875rem;
  --gp-text-xl: 1.5rem;
  --gp-text-2xl: clamp(1.75rem, 1.2rem + 2vw, 2.5rem);
  --gp-text-display: clamp(2.625rem, 1.6rem + 3.6vw, 4.25rem);
  --gp-measure: 34rem;
  --gp-shell: 72rem;
  --gp-radius-sm: var(--radius-app-sm);
  --gp-radius-md: var(--radius-app-md);
  --gp-radius-lg: var(--radius-app-lg);
  --gp-dur-fast: 160ms;
  --gp-dur: 280ms;
  --gp-ease-out: var(--ease-out-app);
  --gp-ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --gp-focus: 0 0 0 3px var(--color-surface), 0 0 0 5px var(--color-action);
  --gp-shadow: 0 1px 2px oklch(21% 0.026 260 / 0.06), 0 12px 32px -16px oklch(21% 0.026 260 / 0.18);
  --gp-gray-block: var(--color-rule);
  --gp-gray-block-strong: var(--color-rule-strong);

  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--color-paper);
  color: var(--color-ink);
  font-family: var(--font-sans);
  font-size: var(--gp-text-base);
  line-height: 1.55;
  overflow-x: clip;
}
html:has(.gp) { overflow-x: clip; }
.gp *, .gp *::before, .gp *::after { box-sizing: border-box; }
.gp > main { flex: 1 0 auto; }

.gp-shell { width: min(100% - 2 * var(--gp-space-md), var(--gp-shell)); margin-inline: auto; }

/* ---------- chrome ---------- */
.gp-top { width: min(100% - 2 * var(--gp-space-md), var(--gp-shell)); margin: 0 auto; padding-block: var(--gp-space-lg); }
.gp-top__logo { display: block; width: 7.5rem; height: auto; }
.gp-foot {
  display: flex; flex-wrap: wrap; gap: var(--gp-space-md) var(--gp-space-lg); align-items: center;
  width: min(100% - 2 * var(--gp-space-md), var(--gp-shell)); margin: 0 auto;
  padding-block: var(--gp-space-xl); border-top: 1px solid var(--color-rule);
  color: var(--color-muted); font-size: var(--gp-text-sm);
}
.gp-foot a { color: inherit; text-underline-offset: 3px; white-space: nowrap; }
.gp-foot a:hover { color: var(--color-ink); }

/* ---------- type ---------- */
.gp-eyebrow { margin: 0 0 var(--gp-space-sm); color: var(--color-accent); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.gp-display {
  margin: 0; font-family: var(--font-serif-display); font-weight: 600; font-size: var(--gp-text-display);
  line-height: 1.04; text-wrap: balance; overflow-wrap: anywhere; min-width: 0;
}
.gp-h2 { margin: 0; font-family: var(--font-serif-display); font-weight: 600; font-size: var(--gp-text-2xl); line-height: 1.12; text-wrap: balance; }
.gp-lede { margin: var(--gp-space-md) 0 0; max-width: var(--gp-measure); color: var(--color-ink-2); font-size: var(--gp-text-lg); text-wrap: pretty; }
.gp-muted { color: var(--color-muted); }

/* ---------- controls ---------- */
.gp-button {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--gp-space-xs);
  min-height: 3rem; padding: 0 var(--gp-space-lg); border: 0; border-radius: var(--gp-radius-sm);
  background: var(--color-action); color: var(--color-action-ink);
  font: 600 var(--gp-text-base)/1 var(--font-sans); white-space: nowrap; text-decoration: none; cursor: pointer;
  transition: background-color var(--gp-dur-fast) var(--gp-ease-out), transform var(--gp-dur-fast) var(--gp-ease-out);
}
.gp-button:hover { background: var(--color-action-hover); }
.gp-button:active { transform: translateY(1px); }
.gp-button:focus-visible, .gp-link:focus-visible, .gp-field:focus-visible, .gp-foot a:focus-visible, .gp-choice input:focus-visible + .gp-choice__card { outline: none; box-shadow: var(--gp-focus); }
.gp-button:disabled, .gp-button[aria-busy="true"] { cursor: progress; background: var(--color-action-hover); }
.gp-button--quiet { background: var(--color-surface); color: var(--color-ink); box-shadow: inset 0 0 0 1px var(--color-rule-strong); }
.gp-button--quiet:hover { background: var(--color-paper-2); }
.gp-button__spinner { display: none; width: 1rem; height: 1rem; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: gp-spin 700ms linear infinite; }
.gp-button[aria-busy="true"] .gp-button__spinner { display: inline-block; }
.gp-link { padding: var(--gp-space-xs) 0; border: 0; background: none; color: var(--color-ink-2); font: 500 var(--gp-text-base)/1.2 var(--font-sans); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; min-height: 2.75rem; }
.gp-link:hover { color: var(--color-ink); }

.gp-label { display: block; margin-bottom: var(--gp-space-2xs); font-size: var(--gp-text-sm); font-weight: 600; }
.gp-field {
  width: 100%; min-height: 3rem; padding: var(--gp-space-sm) var(--gp-space-md);
  border: 1px solid var(--color-rule-strong); border-radius: var(--gp-radius-sm); background: var(--color-surface);
  color: var(--color-ink); font: 400 var(--gp-text-base)/1.4 var(--font-sans);
  transition: border-color var(--gp-dur-fast) var(--gp-ease-out);
}
.gp-field:hover { border-color: var(--color-muted); }
.gp-field[aria-invalid="true"] { border-color: var(--color-danger); }
textarea.gp-field { min-height: 7.5rem; resize: vertical; }
.gp-error { display: flex; gap: var(--gp-space-xs); align-items: baseline; margin: var(--gp-space-xs) 0 0; color: var(--color-danger); font-size: var(--gp-text-sm); font-weight: 500; }
.gp-error:empty { display: none; }
.gp-error::before { content: "!"; display: inline-grid; place-items: center; flex: none; width: 1rem; height: 1rem; border-radius: 50%; background: var(--color-danger); color: var(--color-surface); font-size: 0.6875rem; font-weight: 700; }
.gp-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.gp-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

@keyframes gp-spin { to { transform: rotate(360deg); } }
@keyframes gp-shake { 0%, 100% { transform: translateX(0); } 25%, 75% { transform: translateX(-4px); } 50% { transform: translateX(4px); } }
.gp-shake { animation: gp-shake 240ms var(--gp-ease-in-out) 2; }

@media (prefers-reduced-motion: reduce) {
  .gp *, .gp *::before, .gp *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
  .gp-button__spinner { animation: none; border-right-color: currentColor; opacity: 0.6; }
}
