/* Shared transition screen (BLUEPRINT.md G12): full screen on the tenant's two colours, the funnel's headline,
   then four steps typed out, each ticked when done. The funnel supplies words only. */
.transition {
  /* The tenant's brand and accent (G13); the house pair until presets reach the runtime. */
  --t-brand: var(--tenant-brand, #163a34);
  --t-accent: var(--tenant-accent, #e8a33d);
  position: fixed; inset: 0; z-index: 1000;
  display: grid; place-items: center;
  padding: 32px 20px;
  color: #fff;
  background:
    radial-gradient(120% 90% at 85% 10%, color-mix(in srgb, var(--t-accent) 22%, transparent) 0%, transparent 60%),
    linear-gradient(150deg, color-mix(in srgb, var(--t-brand) 70%, #000) 0%, var(--t-brand) 55%, color-mix(in srgb, var(--t-brand) 80%, var(--t-accent)) 100%);
  font-family: var(--house-sans, system-ui, sans-serif);
}
/* Framed (owner, 2026-09-27): a rounded panel on the host page, its gradient contained and running
   across it, a soft shadow, no blurred edge, and its height taken from its content. It takes its place
   in the page, so the host sizes the frame to it (08-PUBLISH/funnel.html sets .in-frame). */
.in-frame .transition {
  position: relative; inset: auto;
  display: block;
  padding: clamp(2.5rem, 6vw, 5rem) clamp(1.5rem, 8vw, 7rem);
  border-radius: clamp(1.5rem, 3vw, 2.5rem);
  background: linear-gradient(115deg, color-mix(in srgb, var(--t-brand) 82%, #000) 0%, var(--t-brand) 52%, color-mix(in srgb, var(--t-brand) 62%, var(--t-accent)) 100%);
  box-shadow: 0 1rem 3rem rgba(20, 40, 34, .10);
  overflow: hidden;
}
.in-frame .transition-inner { margin-inline: auto; }
.transition-inner { width: min(100%, 40rem); }
.transition-headline {
  margin: 0 0 30px;
  font-family: var(--house-serif, Georgia, serif);
  font-weight: 700;
  font-size: clamp(1.625rem, 4.5vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -.01em;
  color: #fff;
  animation: transition-in 500ms ease-out both;
}
.transition-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.transition-steps li { display: grid; grid-template-columns: 26px 1fr; gap: 14px; align-items: start; min-height: 1.6em; opacity: .35; }
.transition-steps li.is-working, .transition-steps li.is-done { opacity: 1; }
.transition-line { font-size: clamp(1rem, 2.4vw, 1.1875rem); line-height: 1.5; color: #f3f7f5; overflow-wrap: anywhere; }
.transition-steps li.is-working .transition-line::after {
  content: ""; display: inline-block; width: 2px; height: 1.05em; margin-left: 2px; vertical-align: -0.15em;
  background: var(--t-accent); animation: transition-caret 800ms steps(1) infinite;
}
.transition-mark { width: 22px; height: 22px; margin-top: 3px; border-radius: 50%; border: 2px solid rgba(255,255,255,.35); display: grid; place-items: center; }
.transition-steps li.is-working .transition-mark { border-color: var(--t-accent); border-right-color: transparent; animation: transition-spin 900ms linear infinite; }
.transition-steps li.is-done .transition-mark { border-color: var(--t-accent); background: var(--t-accent); }
.transition-steps li.is-done .transition-mark::after {
  content: ""; width: 9px; height: 5px; margin-top: -2px; border-left: 2px solid color-mix(in srgb, var(--t-brand) 80%, #000); border-bottom: 2px solid color-mix(in srgb, var(--t-brand) 80%, #000); transform: rotate(-45deg);
}
.transition-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@keyframes transition-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes transition-spin { to { transform: rotate(360deg); } }
@keyframes transition-caret { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .transition-headline, .transition-steps li.is-working .transition-mark { animation: none; }
  .transition-steps li.is-working .transition-line::after { display: none; }
}
