/* ------------------------------------------------------------------
   QueueBuddy · maintenance page
   Self-contained copy of the redesign's design tokens — this page is
   hosted on its own subdomain, so it can't reach ../redesign.css and
   carries everything it needs on its own.
------------------------------------------------------------------- */

:root {
  --teal-900: #134E4A;
  --teal-700: #0F766E;
  --teal-600: #0D9488;
  --teal-500: #14B8A6;
  --teal-400: #2DD4BF;
  --teal-100: #CCFBF1;
  --teal-50:  #F0FDFA;

  --ink: #10201E;
  --ink-soft: #46605C;
  --ink-muted: #6E8582;

  --canvas: #FAFCFB;
  --surface: #FFFFFF;
  --surface-tint: #EFF7F5;
  --border: #E3ECE9;

  --warn: #F59E0B;

  --radius: 20px;
  --radius-lg: 32px;
  --radius-xl: 44px;

  --shadow-sm: 0 1px 2px rgba(16, 32, 30, .05), 0 1px 1px rgba(16, 32, 30, .03);
  --shadow-md: 0 12px 32px rgba(16, 32, 30, .08), 0 2px 8px rgba(16, 32, 30, .04);
  --shadow-lg: 0 32px 72px rgba(13, 148, 136, .18), 0 12px 32px rgba(16, 32, 30, .1);

  --sans: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", Georgia, serif;

  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-spring: cubic-bezier(.34, 1.4, .44, 1);
}

* { box-sizing: border-box; }

html { height: 100%; }

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--canvas);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--teal-600); text-decoration: none; }
a:hover { color: var(--teal-700); }

h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 4.6vw + 1rem, 3.1rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 600;
  text-wrap: balance;
}
em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--teal-600);
  letter-spacing: 0;
}
p { margin: 0; color: var(--ink-soft); }

::selection { background: var(--teal-100); color: var(--teal-900); }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1 !important; transform: none !important; filter: none !important; transition: none !important;
  }
  .mt-dot, .mt-blob, .mt-icon, .mt-orbit { animation: none !important; }
}

/* ---- Reveal primitive ---- */

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  filter: blur(6px);
  transition:
    opacity .9s var(--ease-out),
    transform .9s var(--ease-out),
    filter .9s var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}
[data-reveal].is-visible { opacity: 1; transform: none; filter: blur(0); }

/* ---- Shell ---- */

.mt-shell {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px env(safe-area-inset-bottom, 32px);
  position: relative;
  overflow: hidden;
}

.mt-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
  animation: mt-drift 14s ease-in-out infinite;
}
.mt-blob-a {
  width: 52vmin; height: 52vmin;
  top: -18vmin; left: -16vmin;
  background: radial-gradient(circle, var(--teal-400), transparent 70%);
  opacity: .55;
}
.mt-blob-b {
  width: 46vmin; height: 46vmin;
  bottom: -20vmin; right: -18vmin;
  background: radial-gradient(circle, var(--teal-600), transparent 70%);
  opacity: .35;
  animation-delay: -6s;
  animation-direction: reverse;
}
@keyframes mt-drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(3vmin, 4vmin) scale(1.06); }
}

/* ---- Card ---- */

.mt-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 540px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: clamp(32px, 5vw, 48px) clamp(26px, 4.5vw, 44px) clamp(28px, 4vw, 38px);
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.mt-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 26px;
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.mt-brand img { border-radius: 9px; }

.mt-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 15px;
  border-radius: 999px;
  background: var(--teal-50);
  border: 1px dashed rgba(13, 148, 136, .35);
  color: var(--teal-700);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.mt-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--teal-500);
  animation: mt-pulse 2.2s ease-in-out infinite;
}
@keyframes mt-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(20, 184, 166, .5); }
  50%      { box-shadow: 0 0 0 7px rgba(20, 184, 166, 0); }
}

.mt-icon-ring {
  width: 84px; height: 84px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, var(--teal-50), var(--surface));
  border: 1px solid var(--teal-100);
  box-shadow: var(--shadow-sm);
}
.mt-icon {
  font-size: 34px;
  line-height: 1;
  display: inline-block;
  animation: mt-wiggle 3.6s ease-in-out infinite;
}
@keyframes mt-wiggle {
  0%, 100% { transform: rotate(-8deg); }
  50%      { transform: rotate(10deg); }
}

.mt-lede {
  margin: 0 0 26px;
  font-size: 1.06rem;
  max-width: 420px;
  margin-inline: auto;
}

/* ---- Elapsed / ETA row ---- */

.mt-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  margin: 0 0 26px;
  padding: 16px 18px;
  background: var(--surface-tint);
  border-radius: var(--radius);
}
.mt-stat { text-align: center; min-width: 92px; }
.mt-stat dt {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 0 0 2px;
}
.mt-stat dd {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

/* ---- Tip ---- */

.mt-tip {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  text-align: left;
  padding: 14px 16px;
  background: var(--teal-50);
  border: 1px solid var(--teal-100);
  border-radius: var(--radius);
  font-size: .9rem;
  color: var(--ink-soft);
  line-height: 1.5;
  margin-bottom: 22px;
}
.mt-tip span:first-child { flex: none; font-size: 1.05rem; }

/* ---- Meta / contact ---- */

.mt-meta {
  font-size: .86rem;
  color: var(--ink-muted);
}
.mt-meta a {
  color: var(--ink-muted);
  border-bottom: 1px dotted var(--ink-muted);
}
.mt-meta a:hover { color: var(--teal-700); border-color: var(--teal-700); }

/* Copyright line, pinned to the bottom of the viewport — independent
   of the card's own height, so it reads as a page footer rather than
   trailing content inside the centered flex row above. */
.mt-side {
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  bottom: max(18px, env(safe-area-inset-bottom, 18px));
  margin: 0;
  text-align: center;
  font-size: .78rem;
  color: var(--ink-muted);
}
