/* Shared base for the v2 demos: reset, demo bar, privacy button, toast and scroll reveal. */
*, *::before, *::after { box-sizing: border-box; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
/* Pickers in these demos change the length of their copy; scroll anchoring would then move the page under the finger. */
html { overflow-anchor: none; }
body { margin: 0; overflow-x: clip; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, fieldset { margin: 0; padding: 0; border: 0; }
fieldset { min-width: 0; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
input, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 10px 14px; background: #000; color: #fff; }
.skip:focus { top: 12px; }

.demo-bar { display: flex; justify-content: space-between; gap: 12px; padding: 8px 20px; background: var(--bar-bg, #111); color: var(--bar-fg, #eee); font: 400 13px/1.4 var(--bar-font, system-ui, sans-serif); }
.demo-bar a { font-weight: 700; text-decoration: none; }
.demo-bar span { opacity: 0.78; }

/* The site-wide privacy settings button sits at the end of the page, not floating over the content. */
body > .consent-settings { position: static; display: block; margin: 0 20px 28px; }
body > .consent-settings[hidden] { display: none; }

.toast { position: fixed; z-index: 60; left: 50%; bottom: 24px; width: max-content; max-width: calc(100% - 32px); padding: 12px 18px; border-radius: var(--toast-radius, 12px); background: var(--toast-bg, #111); color: var(--toast-fg, #fff); font-size: 14px; opacity: 0; pointer-events: none; transform: translate(-50%, 12px); transition: opacity 240ms, transform 240ms cubic-bezier(0.16, 1, 0.3, 1); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 800ms cubic-bezier(0.16, 1, 0.3, 1), transform 800ms cubic-bezier(0.16, 1, 0.3, 1); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* Closing pitch shared by every demo: the business is fictional, the visitor's is not. Each demo sets the colours. */
.pitch-close { display: grid; justify-items: center; gap: 18px; padding: 88px 20px; background: var(--pitch-bg, #111); color: var(--pitch-fg, #fff); text-align: center; }
.pitch-close p { font-size: 13px; letter-spacing: 0.22em; text-transform: uppercase; opacity: 0.75; }
.pitch-close h2 { max-width: 16ch; font: var(--pitch-font, 700 clamp(2.4rem, 10vw, 5.4rem)/1 system-ui); letter-spacing: -0.02em; }
.pitch-close h2 em { display: block; font-style: normal; color: var(--pitch-accent, currentColor); }
.pitch-close span { max-width: 44ch; font-size: 1.05rem; opacity: 0.9; }
.pitch-close a { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 28px; background: var(--pitch-accent, #fff); color: var(--pitch-bg, #111); border-radius: var(--pitch-radius, 999px); font-weight: 700; text-decoration: none; transition: transform 200ms cubic-bezier(0.16, 1, 0.3, 1); }
@media (hover: hover) { .pitch-close a:hover { transform: translateY(-2px); } }
