/* ZMS live demo. ZMS black and gold (same tokens as the main site); change them in :root only. */
:root {
  --ivory: #0E0D0B;        /* page background (ZMS ink) */
  --ink: #F2EFE7;          /* main text (ZMS paper) */
  --clay: #D4AF37;         /* accent (ZMS gold) */
  --clay-hover: #F0C64A;
  --border: #2E2A22;
  --muted: #9A958A;
  --card: #16140F;
  --text-soft: #DDD6C6;
  --on-ink: #9A958A;
  --ink-border: #2E2A22;
  --band: #16140F;
  --on-accent: #0E0D0B;

  --serif: Fraunces, Georgia, serif;
  --sans: "IBM Plex Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --gutter: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  overflow-wrap: break-word;
}
h1, h2, p, ol { margin: 0; padding: 0; }
ol { list-style: none; }
img { max-width: 100%; display: block; }
a { color: var(--clay); }
a:hover { color: var(--clay-hover); }
:focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; }

.wrap { max-width: 1120px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

/* ---------- header ---------- */
.site-header { border-bottom: 1px solid var(--border); }
.site-header__inner { padding-top: 14px; padding-bottom: 14px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.logo { height: 40px; width: auto; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 1.4px; text-transform: uppercase; color: var(--muted); }
.eyebrow--accent { color: var(--clay); }

/* ---------- type ---------- */
.title { font-family: var(--serif); font-weight: 700; font-size: clamp(32px, 7.4vw, 50px); line-height: 1.06; text-wrap: balance; }
.title--xl { font-size: clamp(44px, 12vw, 76px); }
.lede { font-size: 18px; line-height: 1.5; color: var(--text-soft); }
.h2 { font-family: var(--serif); font-weight: 700; font-size: clamp(26px, 5.5vw, 36px); line-height: 1.12; }

/* ---------- screen 1: form ---------- */
.demo { padding-top: 32px; padding-bottom: 56px; display: grid; gap: 28px; }
.demo__intro { display: flex; flex-direction: column; gap: 12px; }
.form-card { background: #FFFFFF; border: 1px solid var(--border); border-radius: 14px; padding: 8px; min-height: 420px; }
.form-card iframe { display: block; width: 100%; min-height: 400px; border: 0; border-radius: 8px; }

.next { display: flex; flex-direction: column; gap: 14px; }
.steps { display: flex; flex-direction: column; gap: 14px; }
.steps li { display: flex; gap: 14px; align-items: baseline; font-size: 17px; line-height: 1.4; }
.steps__num { font-family: var(--serif); font-weight: 700; font-size: 26px; line-height: 1; color: var(--clay); min-width: 20px; }

/* ---------- screen 2: live timeline ---------- */
.live { padding-top: 36px; padding-bottom: 48px; display: flex; flex-direction: column; gap: 28px; max-width: 720px; }
.live__head { display: flex; flex-direction: column; gap: 10px; }
.panel { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 22px 20px; display: flex; flex-direction: column; gap: 20px; }
.panel__top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.clock { font-family: var(--serif); font-weight: 700; font-size: 28px; line-height: 1; font-variant-numeric: tabular-nums; }

.timeline { display: flex; flex-direction: column; }
.tl { position: relative; display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 14px; padding-bottom: 24px; opacity: .38; transition: opacity .5s ease; }
.tl:last-child { padding-bottom: 0; }
.tl::before { content: ""; position: absolute; left: 10px; top: 22px; bottom: 0; width: 2px; background: var(--border); }
.tl:last-child::before { display: none; }
.tl__dot { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--border); background: var(--card); position: relative; z-index: 1; }
.tl__body { display: flex; flex-direction: column; gap: 4px; }
.tl__time { font-size: 13px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); font-variant-numeric: tabular-nums; }
.tl__title { font-weight: 600; font-size: 18px; line-height: 1.3; }
.tl__text { font-size: 16px; color: var(--text-soft); }

.tl.is-on { opacity: 1; }
.tl.is-on .tl__dot { border-color: var(--clay); background: var(--clay); }
.tl.is-now .tl__dot { background: var(--card); box-shadow: 0 0 0 0 rgba(212, 175, 55, .5); animation: pulse 1.6s ease-out infinite; }
.tl.is-now .tl__time { color: var(--clay); }
@keyframes pulse { to { box-shadow: 0 0 0 12px rgba(212, 175, 55, 0); } }

.fineprint { font-size: 14px; color: var(--muted); }

/* ---------- closing band ---------- */
.band { background: var(--band); color: var(--ink); border-top: 1px solid var(--border); }
.band__inner { padding-top: 44px; padding-bottom: 44px; display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; border-radius: 8px; background: var(--clay); color: var(--on-accent); font-weight: 600; font-size: 16px; text-decoration: none; }
.btn:hover { background: var(--clay-hover); color: var(--on-accent); }
.site-footer { padding-top: 18px; padding-bottom: 28px; font-size: 14px; color: var(--on-ink); border-top: 1px solid var(--ink-border); }

/* ---------- tablet and up ---------- */
@media (min-width: 760px) {
  :root { --gutter: 40px; }
  .logo { height: 46px; }
  .demo { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px 56px; padding-top: 56px; padding-bottom: 72px; align-items: start; }
  .demo__intro { grid-column: 1; }
  .next { grid-column: 1; }
  .form-card { grid-column: 2; grid-row: 1 / span 2; }
  .live { padding-top: 56px; padding-bottom: 64px; }
  .panel { padding: 28px; }
  .band__inner { padding-top: 56px; padding-bottom: 56px; }
}

@media (prefers-reduced-motion: reduce) {
  .tl { transition: none; }
  .tl.is-now .tl__dot { animation: none; }
}
