/* ---------- self-hosted fonts (copied verbatim from /src/styles.css) ---------- */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 600 700;
  font-stretch: 125%;
  font-display: swap;
  src: url("/fonts/archivo-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 600 700;
  font-stretch: 125%;
  font-display: swap;
  src: url("/fonts/archivo-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "DM Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/dm-mono-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "DM Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/dm-mono-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "DM Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/dm-mono-500-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "DM Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/dm-mono-500-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 500;
  font-stretch: 100%;
  font-display: swap;
  src: url("/fonts/instrument-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 500;
  font-stretch: 100%;
  font-display: swap;
  src: url("/fonts/instrument-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

.frame {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.bar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
  border-bottom: 1px solid var(--rule);
}

.bar--foot {
  border-bottom: 0;
  border-top: 1px solid var(--rule);
  margin-top: auto;
  flex-wrap: wrap;
  row-gap: 10px;
}

.wordmark {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.26em;
  text-indent: 0.26em;
}

.bar__meta {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--slate);
}

.bar__link {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--slate);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 2px;
}

.bar__link:hover { color: var(--ultramarine); border-bottom-color: var(--ultramarine); }

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--slate);
}

.status__dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
}

.cta {
  display: flex;
  width: 100%;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
  margin-top: 40px;
}

.cta__button {
  display: inline-block;
  padding: 15px 30px;
  background: var(--ink);
  color: var(--concrete);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.cta__button:hover { background: var(--ultramarine); }

.cta__note {
  margin: 0;
  max-width: 34ch;
  font-size: 0.92rem;
  color: var(--slate);
}

@media (max-width: 560px) {
  .cta { gap: 12px; }
  .cta__note { max-width: none; }
}

:root {
  --concrete:    #DDE1DC;
  --ink:         #16191A;
  --slate:       #5C6562;
  --rule:        #BEC4BE;
  --ultramarine: #1E2A9E;
  --hivis:       #D8F534;
  --ok:          #35C165;
  --rust:        #B4472B;

  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body:    "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono:    "DM Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --gutter: clamp(20px, 5vw, 56px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--concrete);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--ultramarine);
  outline-offset: 3px;
}

/* ---------- page shell ---------- */

.page {
  padding: clamp(28px, 6vh, 56px) 0 80px;
}

.page__title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.5rem, 3.4vw, 2.1rem);
  letter-spacing: -0.01em;
  margin: 0 0 10px;
}

.page__note {
  max-width: 100%;
  color: var(--slate);
  font-size: 1.02rem;
  line-height: 1.55;
  margin: 0 0 40px;
}
.page__pain {
  max-width: 100%;
  color: var(--ink);
  font-size: 1.02rem;
  line-height: 1.6;
  margin: 0 0 16px;
}

.page__pain--strong {
  font-weight: 500;
}

/* ---------- demo grid: two independent components, side by side ---------- */

.demo-grid {
  display: flex;
  align-items: flex-start;
  gap: 28px;
}

.demo {
  flex: 1 1 0;
  min-width: 0;
  background: var(--concrete);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--rule);
  padding: 24px;
}

/* persistent per-scene accent, set once at init, never toggled per state */
.demo--without { border-top-color: var(--hivis); }
.demo--with    { border-top-color: var(--ultramarine); }

.demo__label {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--slate);
  margin: 0 0 18px;
}

/* reserved height so the card appearing/disappearing never shifts the
   channel grid beneath it */
.demo__card-row {
  min-height: 62px;
  margin-bottom: 6px;
}

.demo__channels {
  display: flex;
  gap: 12px;
  margin-bottom: 22px;
}

.demo__controls {
  display: flex;
  align-items: center;
  gap: 16px;
}

.demo__next {
  appearance: none;
  border: 0;
  padding: 11px 26px;
  background: var(--ink);
  color: var(--concrete);
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.demo__next:hover:not(:disabled) { background: var(--ultramarine); }
.demo__next:disabled { opacity: 0.45; cursor: default; }

.demo__indicator {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--slate);
}

/* ---------- channel tiles ---------- */

.channel {
  flex: 1 1 0;
  min-width: 0;
  border: 1px solid var(--rule);
  padding: 16px 12px;
  text-align: center;
}

.channel__name {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 10px;
  overflow-wrap: break-word;
}

.channel__count {
  display: inline-block;
  font-family: var(--display);
  font-weight: 700;
  font-size: 2.1rem;
  line-height: 1;
  color: var(--ink);
}

.channel__badge {
  display: block;
  box-sizing: border-box;
  margin: 10px auto 0;
  width: fit-content;
  height: 20px;
  line-height: 14px;
  padding: 3px 9px;
  font-family: var(--mono);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  visibility: hidden;
}

.channel__badge--cancelled { background: var(--ink); color: var(--hivis); }
.channel__badge--blocked   { background: var(--ok);  color: var(--ink); }

/* ---------- order card ----------
   White card with an ultramarine accent, matching the previously
   approved order-card style. White is used deliberately here (not a
   site token) to read as a distinct, elevated surface against the
   --concrete page background. */

.order-card {
  background: var(--concrete);
  border: 1px solid var(--rule);
  padding: 13px 18px;
  height: 62px;
  box-sizing: border-box;
  visibility: hidden;
}

.order-card__line1 {
  font-family: var(--body);
  font-weight: 500;
  font-size: 0.94rem;
  color: var(--ink);
}

.order-card__line2 {
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.05em;
  color: var(--slate);
  margin-top: 4px;
}

/* ---------- transition animation: click-triggered, not timed ---------- */

@media (prefers-reduced-motion: no-preference) {
  .order-card--enter {
    animation: cardIn 0.32s cubic-bezier(0.2, 0.7, 0.2, 1);
  }
  .channel__badge--enter {
    animation: badgeIn 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
  }
  .channel--updated .channel__count {
    animation: countPulse 0.38s ease;
  }
  .channel--sync .channel__count {
    animation: syncPulse 0.5s ease;
  }
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes badgeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes countPulse {
  0%   { transform: scale(1); }
  45%  { transform: scale(1.2); }
  100% { transform: scale(1); }
}

@keyframes syncPulse {
  0%   { transform: scale(1);    color: var(--ink); }
  45%  { transform: scale(1.25); color: var(--ultramarine); }
  100% { transform: scale(1);    color: var(--ink); }
}

@media (max-width: 720px) {
  .demo-grid { flex-direction: column; }
}

@media (max-width: 560px) {
  .demo__channels { flex-direction: column; }
}