/* Shared tokens, fonts and chrome for the static demos. Colours copied from src/styles/global.css. */
@font-face { font-family: 'Montserrat'; font-weight: 800; font-style: normal; font-display: swap; src: url('./fonts/montserrat-latin-800-normal.woff2') format('woff2'); }
@font-face { font-family: 'Geist'; font-weight: 400; font-style: normal; font-display: swap; src: url('./fonts/geist-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Geist'; font-weight: 500; font-style: normal; font-display: swap; src: url('./fonts/geist-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Geist'; font-weight: 600; font-style: normal; font-display: swap; src: url('./fonts/geist-latin-600-normal.woff2') format('woff2'); }

:root {
  --navy: #0A2A5E;
  --deep: #061C40;
  --cyan: #1EC8E0;
  --mist: #C9D6EA;

  --bg: #F3F5F8;
  --bg-alt: #FFFFFF;
  --surface: #FFFFFF;
  --surface-2: #EEF2F7;
  --ink: #0E1726;
  --heading: #0A2A5E;
  --heading-lt: #6E7B93;
  --muted: #56627A;
  --hair: rgba(10, 42, 94, .10);
  --accent: #1EC8E0;
  --accent-ink: #0B7F92;
  --accent-soft: rgba(30, 200, 224, .10);
  --btn-bg: #0A2A5E;
  --btn-bg-hover: #061C40;
  --btn-ink: #FFFFFF;
  --shadow-soft: 0 1px 1px rgba(6,28,64,.03), 0 18px 40px -22px rgba(6,28,64,.16), 0 50px 100px -60px rgba(6,28,64,.18);
  --warn: #8A6400;
  --warn-soft: #FFF1C2;
  --danger: #A12A40;
  --danger-soft: #FFF6F7;

  --font-display: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(.23, 1, .32, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); line-height: 1.5; -webkit-font-smoothing: antialiased; }

/* Chrome: the sample-data chip (bottom-left) and the back link (top-left) */
.demo-chip, .demo-back {
  position: fixed; z-index: 1000; font-family: var(--font-body); font-weight: 500; font-size: 13px; line-height: 1;
  border-radius: 999px; text-decoration: none; cursor: pointer;
}
.demo-chip {
  left: 16px; bottom: 16px; padding: 10px 14px; border: 0;
  background: var(--navy); color: #FFFFFF; box-shadow: 0 10px 24px -14px rgba(6,28,64,.8);
  transition: background-color .3s var(--ease), transform .16s var(--ease);
}
.demo-chip::before { content: ''; display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: var(--cyan); vertical-align: 1px; }
.demo-chip:active { transform: scale(.97); }
.demo-back {
  left: 16px; top: 16px; padding: 10px 14px; background: var(--surface); color: var(--heading);
  box-shadow: inset 0 0 0 1px var(--hair);
  transition: box-shadow .3s var(--ease), transform .16s var(--ease);
}
.demo-back:active { transform: scale(.97); }
@media (hover: hover) {
  .demo-chip:hover { background: var(--btn-bg-hover); }
  .demo-back:hover { box-shadow: inset 0 0 0 1px rgba(10,42,94,.3); }
}
.demo-chip:focus-visible, .demo-back:focus-visible, .demo-close:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 3px; }

/* About dialog */
dialog#about {
  width: min(480px, calc(100vw - 32px)); padding: 0; border: 0; border-radius: 22px;
  background: var(--surface); color: var(--ink); box-shadow: var(--shadow-soft), 0 0 0 1px var(--hair);
  font-size: 15px; line-height: 1.55;
}
/* Padding lives on the inner card so a click whose target is the dialog itself is outside the card */
.demo-card { padding: 28px; max-height: calc(100dvh - 32px); overflow: auto; }
dialog#about::backdrop { background: rgba(6, 28, 64, .5); }
dialog#about h2 { margin: 0 0 12px; font-family: var(--font-display); font-weight: 800; font-size: 22px; line-height: 1.2; color: var(--heading); }
dialog#about p { margin: 0 0 12px; color: var(--muted); }
.demo-close {
  margin-top: 8px; padding: 11px 20px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--btn-bg); color: var(--btn-ink); font-family: var(--font-body); font-weight: 500; font-size: 14px;
  transition: background-color .3s var(--ease), transform .16s var(--ease);
}
.demo-close:active { transform: scale(.97); }
@media (hover: hover) { .demo-close:hover { background: var(--btn-bg-hover); } }
@media (prefers-reduced-motion: reduce) { .demo-chip, .demo-back, .demo-close { transition: none; } }
