/* =============================================================================
   The public demo's own chrome, and nothing else.

   Everything below the tray is styled by supplements-v2.css and the td- tokens,
   because it is the app's own markup. These rules cover the four things the
   demo adds: the phone-width frame, the standing demo line, the bottle tray and
   the scan moment, plus the end card.
   ============================================================================= */

.demo-body {
  margin: 0;
  background: var(--td-bg, #FBFAF8);
  font-family: 'Public Sans', system-ui, sans-serif;
  color: var(--td-ink, #1A1A18);
}

/* 390px first. On a laptop it stays 390 and centres, so a visitor sees the
   screen a patient holds rather than a stretched version of it. */
.demo-frame {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  padding: 18px 16px 48px;
  box-sizing: border-box;
}

.demo-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 12px;
}

.demo-head__brand {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 19px;
  font-weight: 600;
}

.demo-head__tag {
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--td-muted, #5A5A52);
}

/* The line that stays visible on every state. Quiet, not a banner: it is a
   statement of fact, and a visitor should be able to read past it. */
.demo-note {
  margin: 0 0 16px;
  padding: 8px 12px;
  border: 1px solid var(--td-border, #E6E3DC);
  border-radius: 999px;
  background: var(--td-surface, #FFFFFF);
  font-size: 12.5px;
  color: var(--td-muted, #5A5A52);
  text-align: center;
}

.demo-lede { margin-bottom: 18px; }

.demo-lede__title {
  margin: 0 0 8px;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 600;
}

.demo-lede__line {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--td-muted, #5A5A52);
}

/* ----------------------------------------------------------------- the tray */

.demo-tray { margin-bottom: 22px; }
.demo-tray[hidden] { display: none; }

.demo-tray__lead {
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--td-muted, #5A5A52);
}

.demo-tray__row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

/* A bottle, drawn rather than photographed: a photograph would be somebody's
   real product, and every brand here is invented. */
.demo-bottle {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 0;
  border: 1px solid var(--td-border, #E6E3DC);
  border-radius: 12px;
  background: var(--td-surface, #FFFFFF);
  font: inherit;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
}

.demo-bottle:hover { border-color: var(--td-accent-light, #8FB8AA); }

.demo-bottle__cap {
  display: block;
  height: 26px;
  background: var(--td-accent, #2F6F62);
}

.demo-bottle__label {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 9px 9px 11px;
}

.demo-bottle__brand {
  font-size: 10.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--td-muted, #5A5A52);
}

.demo-bottle__name { font-size: 13px; font-weight: 600; line-height: 1.25; }
.demo-bottle__line { font-size: 11px; color: var(--td-muted, #5A5A52); }

/* ----------------------------------------------------------- the scan moment */

.demo-scan { padding: 40px 0 48px; text-align: center; }
.demo-scan[hidden] { display: none; }

.demo-scan__frame {
  position: relative;
  width: 150px;
  height: 190px;
  margin: 0 auto 18px;
  border: 2px solid var(--td-border, #E6E3DC);
  border-radius: 14px;
  overflow: hidden;
  background: var(--td-surface, #FFFFFF);
}

.demo-scan__line {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--td-accent, #2F6F62);
  animation: demo-scan-travel 1.4s ease-in-out infinite;
}

@keyframes demo-scan-travel {
  0%   { top: 6%; opacity: .25; }
  50%  { top: 92%; opacity: 1; }
  100% { top: 6%; opacity: .25; }
}

/* Reduced motion gets the frame and the words, without the travelling line. */
@media (prefers-reduced-motion: reduce) {
  .demo-scan__line { animation: none; top: 50%; }
}

.demo-scan__text { margin: 0; font-size: 14px; color: var(--td-muted, #5A5A52); }

/* The line the demo says instead of saving something. */
.demo-inline {
  margin: 10px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--td-accent-tint, #EFF4F2);
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--td-ink, #1A1A18);
}

/* -------------------------------------------------------------- the end card */

.demo-end {
  margin-top: 28px;
  padding: 20px 18px 22px;
  border: 1px solid var(--td-border, #E6E3DC);
  border-radius: 16px;
  background: var(--td-surface, #FFFFFF);
}

.demo-end[hidden] { display: none; }

.demo-end__title {
  margin: 0 0 12px;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 20px;
  font-weight: 600;
}

.demo-end__list {
  margin: 0 0 18px;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 14px;
  line-height: 1.5;
}

.demo-end__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
  padding: 13px 18px;
  border-radius: 999px;
  background: var(--td-ink, #1A1A18);
  color: var(--td-surface, #FFFFFF);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.demo-end__fine {
  margin: 14px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--td-muted, #5A5A52);
}

/* The app's own supplements page assumes a tab shell above it; here it is the
   only thing on the page. */
#suppPage[hidden] { display: none; }
.demo-frame .td-supp { padding-left: 0; padding-right: 0; }

/* WHAT WAS HERE: a rule hiding the check screen's "Share with pharmacist"
   button, which had no handler and did nothing when pressed. The demo hid it
   rather than guess at a fix. Ruled 2026-10-17: the button is gone from
   supplements.js app-wide, so there is nothing left to hide and a demo-only
   rule pretending otherwise would outlive the problem. */
