/* Rostas marketing — interactive demos
   Shared CSS for PhoneFrame, AvailabilityDemo, ReplacementDemo, BoardDemo.
   Colour palette mirrors the production Roster Board (Phase12_RosterBoard.gs)
   so the demos feel like screenshots of the real app. */

/* ─── Demo section shell ─────────────────────────────────── */
.try-it {
  background:
    linear-gradient(180deg, #ecf1f6 0%, var(--bg) 60%);
  padding: 100px 0;
}
.demo-stack {
  display: flex; flex-direction: column;
  gap: 80px;
  margin-top: 60px;
}
.demo-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.demo-block.reverse .demo-meta { order: 2; }
.demo-block.reverse /* ─── APP HOME (demo phones) ─── */
.apph-screen { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 0 0 14px; background: var(--bg); min-height: 100%; }
.apph-top { background: var(--navy); color: #fff; display: flex; align-items: center; gap: 10px; padding: 14px 14px; }
.apph-logo { width: 34px; height: 34px; border-radius: 9px; background: #fff; padding: 4px; object-fit: contain; }
.apph-org .n { font-weight: 700; font-size: 15px; line-height: 1.2; }
.apph-org .o { font-size: 12.5px; color: #c9d8e8; white-space: nowrap; }
.apph-hi { font-family: var(--font-serif); font-size: 24px; font-weight: 700; color: var(--navy); padding: 4px 14px 0; }
.apph-card { margin: 0 12px; background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.apph-card--tap { cursor: pointer; border: 1.5px solid var(--gold); animation: link-beacon 1.8s ease-in-out infinite; transition: background 0.15s; }
.apph-card--tap:hover { background: var(--gold-pale); }
.apph-pill { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; background: var(--navy); color: #fff; border-radius: 999px; padding: 6px 12px; font-size: 11px; font-weight: 700; letter-spacing: 0.05em; white-space: nowrap; text-transform: uppercase; }
.apph-pill .material-symbols-rounded { font-size: 16px; }
.apph-pill .chev { margin-left: 2px; }
.apph-row { display: flex; flex-direction: column; gap: 2px; font-size: 13px; color: var(--text-muted); }
.apph-row strong { font-size: 16px; color: var(--navy); }
.apph-dates { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 5px; }
.apph-date { display: flex; flex-direction: column; align-items: center; padding: 6px 0; border: 1.5px solid var(--green, #2d7a4f); background: #eef6f1; border-radius: 7px; color: var(--green, #2d7a4f); font-weight: 700; line-height: 1.15; }
.apph-date .d { font-size: 15px; }
.apph-date .m { font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em; }
.apph-date .c { font-size: 11px; }
.apph-screen--dim { background: #9aa6b6; justify-content: space-between; padding: 10px 0 0; }
.apph-push { margin: 4px 10px; background: rgba(255,255,255,0.96); border-radius: 14px; padding: 10px 12px; display: flex; gap: 10px; align-items: flex-start; box-shadow: 0 4px 14px rgba(26,46,74,0.25); animation: log-in 0.4s ease-out; }
.apph-push img { width: 26px; height: 26px; border-radius: 7px; background: #fff; border: 1px solid var(--border); padding: 2px; object-fit: contain; flex-shrink: 0; }
.apph-push .h { display: flex; justify-content: space-between; gap: 8px; font-size: 12.5px; color: var(--navy); }
.apph-push .h span { color: var(--text-muted); font-size: 11px; }
.apph-push .b { font-size: 13px; color: var(--text); line-height: 1.35; }
.apph-sheet { background: #fff; border-radius: 18px 18px 0 0; padding: 16px 14px 18px; display: flex; flex-direction: column; gap: 9px; }
.apph-sheet .t { font-family: var(--font-serif); font-size: 19px; font-weight: 700; color: var(--navy); }
.apph-sheet .q { font-size: 13.5px; color: var(--text-muted); line-height: 1.4; }
.apph-btn { text-align: center; font-size: 14px; font-weight: 700; padding: 11px; border-radius: 8px; }
.apph-btn--yes { background: var(--green, #2d7a4f); color: #fff; }
.apph-btn--no { border: 1.5px solid var(--red, #c0392b); color: var(--red, #c0392b); background: #fff; transition: background 0.15s, color 0.15s; }
.apph-btn--no.pressed { background: var(--red, #c0392b); color: #fff; }
.apph-note { font-size: 12.5px; color: var(--text-muted); text-align: center; animation: log-in 0.4s ease-out; }
.apph-screen .sms-tap-hint { margin-top: 2px; }
.demo-stage { order: 1; }
.demo-meta .demo-eyebrow {
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold); font-weight: 700;
  display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: 14px;
}
.demo-meta .demo-eyebrow::before {
  content: ''; display: inline-block;
  width: 22px; height: 1.5px; background: var(--gold);
}
.demo-meta h3 {
  font-family: var(--font-serif); font-size: 32px; font-weight: 700;
  color: var(--navy); line-height: 1.15;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}
.demo-meta p {
  font-size: 16px; color: var(--text-muted); line-height: 1.6;
  margin-bottom: 18px;
  max-width: 460px;
}
.demo-meta .demo-points {
  list-style: none; padding: 0; margin: 0;
}
.demo-meta .demo-points li {
  display: flex; align-items: center; gap: 12px;
  font-size: 16px; line-height: 1.45; color: var(--text);
  padding: 11px 14px;
  margin-bottom: 8px;
  background: var(--gold-pale, #fdf8ee);
  border: 1px solid #f0e3c4;
  border-left: 4px solid var(--gold);
  border-radius: 6px;
}
.demo-meta .demo-points li.p-green { background: #eef6f1; border-color: #cbe4d6; border-left-color: var(--green, #2d7a4f); }
.demo-meta .demo-points li.p-amber { background: #fff8ed; border-color: #f6e2c2; border-left-color: var(--amber, #d97706); }
.demo-meta .demo-points li.p-red   { background: #fbf0ef; border-color: #f0d4d0; border-left-color: var(--red, #c0392b); }
.demo-meta .demo-points li.p-green .material-symbols-rounded { color: var(--green, #2d7a4f); background: #d8ecdf; }
.demo-meta .demo-points li.p-amber .material-symbols-rounded { color: #9a5405; background: #fbe8ca; }
.demo-meta .demo-points li.p-red .material-symbols-rounded { color: var(--red, #c0392b); background: #f4d9d5; }
.demo-meta .demo-points .material-symbols-rounded {
  font-size: 22px; color: #8d7020; background: #f5e9c8;
  width: 36px; height: 36px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.demo-meta .demo-cta {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 12px; font-size: 13.5px; font-weight: 600;
  color: var(--navy); cursor: pointer;
  background: none; border: 1px solid var(--border);
  border-radius: 999px; padding: 8px 16px;
  transition: background 0.15s, border-color 0.15s;
  font-family: inherit;
}
.demo-meta .demo-cta:hover { background: var(--gold-pale); border-color: var(--gold); }
.demo-meta .demo-cta .material-symbols-rounded { font-size: 16px; }

/* ─── APP HOME (demo phones) ─── */
.apph-screen { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 0 0 14px; background: var(--bg); min-height: 100%; }
.apph-top { background: var(--navy); color: #fff; display: flex; align-items: center; gap: 10px; padding: 14px 14px; }
.apph-logo { width: 34px; height: 34px; border-radius: 9px; background: #fff; padding: 4px; object-fit: contain; }
.apph-org .n { font-weight: 700; font-size: 15px; line-height: 1.2; }
.apph-org .o { font-size: 12.5px; color: #c9d8e8; white-space: nowrap; }
.apph-hi { font-family: var(--font-serif); font-size: 24px; font-weight: 700; color: var(--navy); padding: 4px 14px 0; }
.apph-card { margin: 0 12px; background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.apph-card--tap { cursor: pointer; border: 1.5px solid var(--gold); animation: link-beacon 1.8s ease-in-out infinite; transition: background 0.15s; }
.apph-card--tap:hover { background: var(--gold-pale); }
.apph-pill { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; background: var(--navy); color: #fff; border-radius: 999px; padding: 6px 12px; font-size: 11px; font-weight: 700; letter-spacing: 0.05em; white-space: nowrap; text-transform: uppercase; }
.apph-pill .material-symbols-rounded { font-size: 16px; }
.apph-pill .chev { margin-left: 2px; }
.apph-row { display: flex; flex-direction: column; gap: 2px; font-size: 13px; color: var(--text-muted); }
.apph-row strong { font-size: 16px; color: var(--navy); }
.apph-dates { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 5px; }
.apph-date { display: flex; flex-direction: column; align-items: center; padding: 6px 0; border: 1.5px solid var(--green, #2d7a4f); background: #eef6f1; border-radius: 7px; color: var(--green, #2d7a4f); font-weight: 700; line-height: 1.15; }
.apph-date .d { font-size: 15px; }
.apph-date .m { font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em; }
.apph-date .c { font-size: 11px; }
.apph-screen--dim { background: #9aa6b6; justify-content: space-between; padding: 10px 0 0; }
.apph-push { margin: 4px 10px; background: rgba(255,255,255,0.96); border-radius: 14px; padding: 10px 12px; display: flex; gap: 10px; align-items: flex-start; box-shadow: 0 4px 14px rgba(26,46,74,0.25); animation: log-in 0.4s ease-out; }
.apph-push img { width: 26px; height: 26px; border-radius: 7px; background: #fff; border: 1px solid var(--border); padding: 2px; object-fit: contain; flex-shrink: 0; }
.apph-push .h { display: flex; justify-content: space-between; gap: 8px; font-size: 12.5px; color: var(--navy); }
.apph-push .h span { color: var(--text-muted); font-size: 11px; }
.apph-push .b { font-size: 13px; color: var(--text); line-height: 1.35; }
.apph-sheet { background: #fff; border-radius: 18px 18px 0 0; padding: 16px 14px 18px; display: flex; flex-direction: column; gap: 9px; }
.apph-sheet .t { font-family: var(--font-serif); font-size: 19px; font-weight: 700; color: var(--navy); }
.apph-sheet .q { font-size: 13.5px; color: var(--text-muted); line-height: 1.4; }
.apph-btn { text-align: center; font-size: 14px; font-weight: 700; padding: 11px; border-radius: 8px; }
.apph-btn--yes { background: var(--green, #2d7a4f); color: #fff; }
.apph-btn--no { border: 1.5px solid var(--red, #c0392b); color: var(--red, #c0392b); background: #fff; transition: background 0.15s, color 0.15s; }
.apph-btn--no.pressed { background: var(--red, #c0392b); color: #fff; }
.apph-note { font-size: 12.5px; color: var(--text-muted); text-align: center; animation: log-in 0.4s ease-out; }
.apph-screen .sms-tap-hint { margin-top: 2px; }
.demo-stage {
  display: flex; align-items: center; justify-content: center;
  min-height: 540px;
  position: relative;
}

/* ─── Phone Frame ───────────────────────────────────────── */
.phone-frame {
  width: 320px; height: 640px;
  background: #1a1a1f;
  border-radius: 44px;
  padding: 12px;
  box-shadow:
    0 24px 60px rgba(26, 46, 74, 0.22),
    0 4px 12px rgba(26, 46, 74, 0.08),
    inset 0 0 0 2px rgba(255,255,255,0.06);
  position: relative;
  flex-shrink: 0;
}
.phone-frame.sm { width: 260px; height: 520px; padding: 10px; border-radius: 36px; }
.phone-frame .phone-screen {
  width: 100%; height: 100%;
  background: #fff;
  border-radius: 34px;
  overflow: hidden;
  position: relative;
  display: flex; flex-direction: column;
}
.phone-frame.sm .phone-screen { border-radius: 28px; }
.phone-frame .phone-notch {
  position: absolute;
  top: 18px; left: 50%; transform: translateX(-50%);
  width: 110px; height: 28px;
  background: #1a1a1f;
  border-radius: 18px;
  z-index: 10;
}
.phone-frame.sm .phone-notch { width: 80px; height: 22px; top: 14px; }
.phone-statusbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 26px 6px;
  font-size: 12px; font-weight: 600; color: #1a2e4a;
  flex-shrink: 0;
}
.phone-frame.sm .phone-statusbar { padding: 10px 22px 4px; font-size: 10.5px; }
.phone-statusbar-r {
  display: inline-flex; align-items: center; gap: 5px;
  color: #1a2e4a;
}
.phone-statusbar-r .material-symbols-rounded { font-size: 13px; }
.phone-content {
  flex: 1; overflow: auto;
  display: flex; flex-direction: column;
}
.phone-frame.sm .phone-content { font-size: 12px; }
.phone-label {
  position: absolute; bottom: -32px; left: 50%; transform: translateX(-50%);
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-muted); font-weight: 700;
  white-space: nowrap;
}

/* ─── SMS screen (used inside Availability + Replacement demos) ─── */
.sms-header {
  background: #f0f4f7;
  padding: 10px 16px;
  border-bottom: 1px solid #d0d6de;
  display: flex; align-items: center; gap: 10px;
  flex-shrink: 0;
}
.sms-header .back { color: #007aff; font-size: 18px; line-height: 1; }
.sms-header .contact {
  display: flex; flex-direction: column; align-items: center;
  flex: 1;
}
.sms-header .contact .avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--gold); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px;
  font-family: var(--font-serif);
  margin-bottom: 2px;
}
.sms-header .contact .name { font-size: 13px; font-weight: 600; color: var(--text); }
.sms-body {
  flex: 1;
  padding: 16px 14px;
  background: #fff;
  display: flex; flex-direction: column; gap: 6px;
}
.sms-bubble {
  background: #e9e9eb;
  color: #1a2e4a;
  padding: 11px 15px;
  border-radius: 18px 18px 18px 4px;
  max-width: 88%;
  font-size: 16px;
  line-height: 1.4;
  align-self: flex-start;
}
.sms-bubble.outgoing {
  background: #007aff;
  color: #fff;
  align-self: flex-end;
  border-radius: 18px 18px 4px 18px;
}
.sms-bubble .link-preview {
  background: #f4f6f9;
  margin: 8px -3px -3px;
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
  border: 1.5px solid #d6dbe2;
  transition: background 0.15s, border-color 0.15s, transform 0.1s;
  animation: link-beacon 1.8s ease-in-out infinite;
}
.sms-bubble .link-preview:hover { background: #fff; border-color: var(--gold); }
.sms-bubble .link-preview:active { transform: scale(0.98); }
.sms-bubble .link-preview .link-title {
  font-size: 14.5px; font-weight: 700; color: var(--navy);
  display: flex; align-items: center; gap: 6px;
}
.sms-bubble .link-preview .link-title .material-symbols-rounded { font-size: 18px; color: var(--gold); }
.sms-bubble .link-preview .link-sub {
  font-size: 12px; color: var(--text-muted); margin-top: 2px;
}
@keyframes link-beacon {
  0%, 100% { box-shadow: 0 0 0 0 rgba(184,147,42,0.0); border-color: #d6dbe2; }
  50%      { box-shadow: 0 0 0 6px rgba(184,147,42,0.16); border-color: var(--gold); }
}
.sms-time {
  font-size: 11.5px; color: var(--text-muted);
  align-self: center;
  margin: 4px 0;
}
.sms-tap-hint {
  position: relative;
  align-self: flex-start;
  max-width: 92%;
  margin: -8px 0 0 14px;
  z-index: 2;
  background: var(--gold);
  color: #22303f; font-size: 14px; font-weight: 700; line-height: 1.3;
  padding: 10px 14px; border-radius: 12px;
  display: flex; align-items: center; gap: 7px;
  pointer-events: none;
  box-shadow: 0 5px 16px rgba(184,147,42,0.42);
  animation: tap-nudge 1.8s ease-in-out infinite;
}
.sms-tap-hint .material-symbols-rounded { font-size: 19px; flex-shrink: 0; }
.sms-tap-hint::after {
  content: '';
  position: absolute; top: -7px; left: 26px;
  width: 0; height: 0;
  border-left: 7px solid transparent; border-right: 7px solid transparent;
  border-bottom: 7px solid var(--gold);
}
@keyframes tap-nudge {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(4px); }
}
@keyframes tap-pulse {
  0%, 100% { opacity: 0.85; transform: translate(-50%, 0); }
  50%      { opacity: 1; transform: translate(-50%, 4px); }
}
.chain-tap-hint {
  position: relative;
  display: flex; width: fit-content; align-items: center; gap: 4px;
  background: var(--navy); color: #fff;
  font-size: 11px; font-weight: 700;
  padding: 7px 14px; border-radius: 10px;
  margin: 0 auto 10px;
  box-shadow: 0 4px 12px rgba(26,46,74,0.35);
  animation: tap-pulse 1.8s ease-in-out infinite;
}
.chain-tap-hint .material-symbols-rounded { font-size: 13px; }
.chain-tap-hint::after {
  content: '';
  position: absolute; bottom: -6px; left: 50%; transform: translateX(-50%);
  width: 0; height: 0;
  border-left: 6px solid transparent; border-right: 6px solid transparent;
  border-top: 6px solid var(--navy);
}

/* ─── Availability picker screen ───────────────────────── */
.ap-screen {
  flex: 1;
  background: #f7f9fb;
  display: flex; flex-direction: column;
}
.ap-header {
  background: #1a2e4a;
  color: #fff;
  padding: 12px 16px 14px;
  display: flex; flex-direction: column; gap: 2px;
  flex-shrink: 0;
}
.ap-header .e {
  font-size: 9px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold); font-weight: 700;
}
.ap-header .t {
  font-family: var(--font-serif); font-size: 15px; font-weight: 700;
}
.ap-header .s { font-size: 11px; color: rgba(255,255,255,0.7); }
.ap-greeting {
  padding: 14px 16px 8px;
  flex-shrink: 0;
}
.ap-greeting .name {
  font-family: var(--font-serif); font-size: 19px; font-weight: 700; color: var(--navy);
}
.ap-greeting .instr {
  font-size: 11.5px; color: var(--text-muted);
  line-height: 1.45; margin-top: 4px;
}
.ap-legend {
  display: flex; gap: 12px; padding: 0 16px 10px;
  flex-shrink: 0;
}
.ap-legend-item {
  display: flex; align-items: center; gap: 4px;
  font-size: 10px; color: var(--text-muted);
}
.ap-legend-dot {
  width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
}
.ap-dot-g { background: #d8ecd3; border: 1.5px solid #2d7a4f; }
.ap-dot-y { background: #fff3ce; border: 1.5px solid #ac9236; }
.ap-dot-r { background: #efced5; border: 1.5px solid #802c20; }

.ap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 4px 12px 12px;
  flex: 1;
  align-content: start;
}
.ap-card {
  border-radius: 9px;
  padding: 7px 4px;
  border: 1.5px solid;
  cursor: pointer;
  text-align: center;
  transition: transform 0.12s;
  user-select: none;
  font-family: var(--font-sans);
  display: flex; flex-direction: column; align-items: center;
  gap: 1px;
}
.ap-card:active { transform: scale(0.95); }
.ap-card.av-available  { background: #d8ecd3; border-color: #2d7a4f; }
.ap-card.av-unsure     { background: #fff3ce; border-color: #ac9236; }
.ap-card.av-unavailable{ background: #efced5; border-color: #802c20; }
.ap-card .m {
  font-size: 8px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700;
}
.ap-card.av-available  .m { color: #2d7a4f; }
.ap-card.av-unsure     .m { color: #ac9236; }
.ap-card.av-unavailable .m { color: #802c20; }
.ap-card .d {
  font-family: var(--font-serif); font-size: 19px; font-weight: 700;
  color: var(--navy); line-height: 1;
}
.ap-card .dow { font-size: 8.5px; color: var(--text-muted); margin-bottom: 2px; }
.ap-card .si { font-size: 13px; font-weight: 700; line-height: 1; }
.ap-card.av-available  .si { color: #2d7a4f; }
.ap-card.av-unsure     .si { color: #ac9236; }
.ap-card.av-unavailable .si { color: #802c20; }
.ap-card .sl { font-size: 8px; font-weight: 700; }
.ap-card.av-available  .sl { color: #2d7a4f; }
.ap-card.av-unsure     .sl { color: #ac9236; }
.ap-card.av-unavailable .sl { color: #802c20; }

.ap-tap-hint {
  position: relative;
  display: flex; width: fit-content; align-items: center; gap: 4px;
  background: var(--navy); color: #fff;
  font-size: 11px; font-weight: 700;
  padding: 7px 14px; border-radius: 10px;
  margin: 4px auto 6px;
  box-shadow: 0 4px 12px rgba(26,46,74,0.35);
  animation: tap-pulse 1.8s ease-in-out infinite;
}
.ap-tap-hint::before {
  content: '';
  position: absolute; top: -6px; left: 50%; transform: translateX(-50%);
  width: 0; height: 0;
  border-left: 6px solid transparent; border-right: 6px solid transparent;
  border-bottom: 6px solid var(--navy);
}
.ap-save {
  background: var(--navy);
  padding: 14px 16px;
  display: flex; flex-direction: column; gap: 4px;
  flex-shrink: 0;
  position: sticky; bottom: 0; z-index: 3;
  box-shadow: 0 -6px 18px rgba(26,46,74,0.18);
}
.ap-save button {
  background: var(--gold);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 12px;
  font-size: 14px; font-weight: 700;
  font-family: var(--font-sans);
  cursor: pointer;
}
.ap-save .hint {
  font-size: 10.5px; color: rgba(255,255,255,0.78);
  text-align: center;
}

/* Success screen */
.ap-success {
  flex: 1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; padding: 0 24px;
  background: #f7f9fb;
}
.ap-success .check {
  font-size: 52px;
  color: #2d7a4f;
  margin-bottom: 12px;
}
.ap-success .h {
  font-family: var(--font-serif); font-size: 22px; font-weight: 700; color: var(--navy);
  margin-bottom: 6px;
}
.ap-success .s {
  font-size: 13px; color: var(--text-muted); line-height: 1.5;
}
.ap-success .reset {
  margin-top: 22px;
  background: none; border: 1px solid var(--border);
  color: var(--text-muted); font-size: 12px;
  padding: 7px 14px; border-radius: 999px;
  cursor: pointer; font-family: inherit;
}
.ap-success .reset:hover { background: var(--gold-pale); border-color: var(--gold); color: var(--navy); }

/* ─── SMS Chain demo ───────────────────────────────────── */
.chain-stage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  width: 100%;
  align-items: start;
}
.chain-coord {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 4px 18px rgba(26,46,74,0.08);
}
.chain-coord-head {
  display: flex; align-items: center; gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 14px;
}
.chain-coord-head .ic {
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--navy); color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.chain-coord-head .ic .material-symbols-rounded { font-size: 18px; }
.chain-coord-head .t {
  font-family: var(--font-serif); font-size: 14px; font-weight: 700; color: var(--navy);
}
.chain-coord-head .s {
  font-size: 11px; color: var(--text-muted); font-weight: 500;
}
.chain-cell {
  background: #d8ecd3; border: 1.5px solid #2d7a4f;
  border-radius: 8px; padding: 12px 14px;
  margin-bottom: 12px;
  transition: background 0.4s, border-color 0.4s;
}
.chain-cell.declined { background: #efced5; border-color: #802c20; }
.chain-cell.filling  { background: #d4e5f7; border-color: #1e4a7a; }
.chain-cell .role { font-size: 11px; color: var(--text-muted); margin-bottom: 2px; }
.chain-cell .name { font-size: 15px; font-weight: 700; color: var(--navy); }
.chain-cell .meta { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.chain-decline-btn {
  width: 100%;
  background: #fdecea; color: #802c20;
  border: 1px solid #efb9bb;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 12.5px; font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  display: flex; align-items: center; justify-content: center; gap: 4px;
  transition: background 0.15s;
}
.chain-decline-btn:hover { background: #efced5; }
.chain-decline-btn .material-symbols-rounded { font-size: 16px; }
.chain-decline-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.chain-log {
  font-size: 12px; color: var(--text-muted); line-height: 1.5;
  margin-top: 14px;
  display: flex; flex-direction: column; gap: 6px;
  min-height: 100px;
}
.chain-log .entry {
  display: flex; align-items: flex-start; gap: 6px;
  opacity: 0;
  animation: log-in 0.4s ease-out forwards;
}
@keyframes log-in {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.chain-log .entry .material-symbols-rounded { font-size: 14px; color: var(--gold); margin-top: 1px; }
.chain-log .entry.success .material-symbols-rounded { color: #2d7a4f; }
.chain-log .entry.danger  .material-symbols-rounded { color: #802c20; }
.chain-log .scoring {
  background: var(--gold-pale);
  border-left: 3px solid var(--gold);
  padding: 8px 10px;
  border-radius: 0 6px 6px 0;
  display: flex; align-items: center; gap: 8px;
}
.chain-log .scoring .pulse {
  width: 8px; height: 8px; border-radius: 50%; background: var(--gold);
  animation: chain-pulse 1.2s ease-in-out infinite;
}
@keyframes chain-pulse {
  0%, 100% { opacity: 0.4; transform: scale(0.9); }
  50%      { opacity: 1; transform: scale(1.15); }
}
.chain-reset {
  margin-top: 16px;
  background: none; border: 1px solid var(--border);
  color: var(--text-muted); font-size: 12px;
  padding: 7px 14px; border-radius: 999px;
  cursor: pointer; font-family: inherit;
  display: inline-flex; align-items: center; gap: 4px;
}
.chain-reset:hover { border-color: var(--gold); color: var(--navy); background: var(--gold-pale); }
.chain-reset .material-symbols-rounded { font-size: 14px; }

.chain-phones {
  display: flex; flex-direction: column; gap: 32px;
  align-items: center;
}

/* ─── Mini Roster Board ──────────────────────────────── */
.mini-board {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 22px rgba(26, 46, 74, 0.10);
  width: 100%; max-width: 480px;
}
.mini-board-head {
  background: #1a2e4a;
  color: #fff;
  padding: 12px 16px;
  display: flex; align-items: center; justify-content: space-between;
}
.mini-board-head .t {
  display: flex; flex-direction: column; gap: 2px;
}
.mini-board-head .t .e {
  font-size: 9px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold); font-weight: 700;
}
.mini-board-head .t .h {
  font-family: var(--font-serif); font-size: 15px; font-weight: 700;
}
.mini-board-head .legend {
  display: flex; gap: 6px;
}
.mini-board-head .legend .pill {
  font-size: 9px; font-weight: 700;
  padding: 3px 8px; border-radius: 999px;
}
.mini-board-head .legend .p-f { background: #d8ecd3; color: #404f38; }
.mini-board-head .legend .p-v { background: #efced5; color: #802c20; }

.mini-board-grid {
  display: grid;
  grid-template-columns: 60px 1fr 1fr 1fr 1fr;
}
.mini-board-grid .corner { background: #f7f9fb; border-bottom: 1px solid var(--border); }
.mini-board-grid .role-hdr {
  background: #2d7a4f;
  color: #fff;
  font-size: 10px; font-weight: 700;
  padding: 6px 4px;
  text-align: center;
  display: flex; align-items: center; justify-content: center;
}
.mini-board-grid .role-hdr + .role-hdr { border-left: 1px solid rgba(255,255,255,0.18); }
.mini-board-grid .date-cell {
  padding: 8px 6px;
  background: #fafbfd;
  border-bottom: 1px solid var(--border);
  display: flex; flex-direction: column; justify-content: center;
}
.mini-board-grid .date-cell .d {
  font-size: 11px; font-weight: 700; color: var(--navy);
}
.mini-board-grid .date-cell .m {
  font-size: 9px; color: var(--text-muted);
}
.mini-board-grid .vc {
  margin: 4px;
  border-radius: 6px;
  padding: 6px 8px;
  border: 1.5px solid transparent;
  cursor: pointer;
  font-size: 11px;
  min-height: 48px;
  display: flex; flex-direction: column; justify-content: center;
  position: relative;
  transition: transform 0.1s, box-shadow 0.1s;
}
.mini-board-grid .vc:hover { transform: translateY(-1px); }
.mini-board-grid .vc.selected {
  box-shadow: 0 0 0 2px var(--navy);
}
.mini-board-grid .vc.vF { background: #d8ecd3; border-color: #2d7a4f; }
.mini-board-grid .vc.vV {
  background: #efced5; border-color: #802c20; border-style: dashed;
}
.mini-board-grid .vc .vn { font-weight: 700; color: var(--navy); line-height: 1.2; }
.mini-board-grid .vc.vV .vn { color: #802c20; font-style: italic; }
.mini-board-grid .vc .vd { font-size: 9.5px; color: var(--text-muted); margin-top: 1px; }
.mini-board-grid .vc .rel-icon {
  position: absolute; right: 4px; bottom: 3px;
  font-size: 10px; opacity: 0.65;
}
.mini-board-grid .vc .rel-icon .material-symbols-rounded { font-size: 12px; color: #2d7a4f; }

.mini-board-drawer {
  grid-column: 1 / -1;
  background: #1a2e4a; color: #fff;
  padding: 12px 16px;
  display: flex; align-items: center; gap: 12px;
  flex-wrap: wrap;
}
.mini-board-drawer .info { flex: 1; font-size: 13px; }
.mini-board-drawer .info b { color: #fff; }
.mini-board-drawer .sep { color: rgba(255,255,255,0.3); margin: 0 4px; }
.mini-board-drawer .badge {
  background: #d8ecd3; color: #404f38;
  padding: 2px 8px; border-radius: 999px;
  font-size: 10.5px; font-weight: 700;
  margin-left: 4px;
}
.mini-board-drawer .badge.v { background: #efced5; color: #802c20; }
.mini-board-drawer .action-btn {
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff;
  border-radius: 5px;
  padding: 6px 12px;
  font-size: 12px; font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  display: inline-flex; align-items: center; gap: 4px;
  transition: background 0.15s;
}
.mini-board-drawer .action-btn:hover { background: rgba(255,255,255,0.18); }
.mini-board-drawer .action-btn .material-symbols-rounded { font-size: 14px; }
.mini-board-drawer .action-btn.primary { background: var(--gold); border-color: var(--gold); }

.mini-board-picker {
  grid-column: 1 / -1;
  background: #fff;
  border-top: 2px solid var(--gold);
  max-height: 220px; overflow-y: auto;
}
.mini-board-picker .picker-head {
  padding: 8px 16px;
  font-size: 11px; font-weight: 700; color: var(--navy);
  background: #f7f9fb;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 6px;
}
.mini-board-picker .picker-head .material-symbols-rounded { font-size: 14px; }
.mini-board-picker .picker-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px;
  border-bottom: 1px solid #f1f5f9;
  transition: background 0.1s;
}
.mini-board-picker .picker-row:hover { background: #f8fafc; }
.mini-board-picker .picker-row:last-child { border-bottom: none; }
.mini-board-picker .avdot {
  width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0;
}
.mini-board-picker .av-g { background: #2d7a4f; }
.mini-board-picker .av-y { background: #ac9236; }
.mini-board-picker .picker-row .nm { flex: 1; font-size: 12.5px; font-weight: 600; color: var(--navy); }
.mini-board-picker .picker-row .meta { font-size: 10.5px; color: var(--text-muted); margin-top: 1px; }
.mini-board-picker .picker-row .sel {
  background: var(--gold); color: #fff;
  border: none; border-radius: 5px;
  padding: 5px 12px;
  font-size: 11px; font-weight: 700;
  cursor: pointer; font-family: inherit;
}

/* ─── Responsive ────────────────────────────────────── */
@media (max-width: 960px) {
  .demo-block, .demo-block.reverse { grid-template-columns: 1fr; }
  .demo-block.reverse .demo-meta { order: 1; }
  .demo-block.reverse /* ─── APP HOME (demo phones) ─── */
.apph-screen { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 0 0 14px; background: var(--bg); min-height: 100%; }
.apph-top { background: var(--navy); color: #fff; display: flex; align-items: center; gap: 10px; padding: 14px 14px; }
.apph-logo { width: 34px; height: 34px; border-radius: 9px; background: #fff; padding: 4px; object-fit: contain; }
.apph-org .n { font-weight: 700; font-size: 15px; line-height: 1.2; }
.apph-org .o { font-size: 12.5px; color: #c9d8e8; white-space: nowrap; }
.apph-hi { font-family: var(--font-serif); font-size: 24px; font-weight: 700; color: var(--navy); padding: 4px 14px 0; }
.apph-card { margin: 0 12px; background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.apph-card--tap { cursor: pointer; border: 1.5px solid var(--gold); animation: link-beacon 1.8s ease-in-out infinite; transition: background 0.15s; }
.apph-card--tap:hover { background: var(--gold-pale); }
.apph-pill { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; background: var(--navy); color: #fff; border-radius: 999px; padding: 6px 12px; font-size: 11px; font-weight: 700; letter-spacing: 0.05em; white-space: nowrap; text-transform: uppercase; }
.apph-pill .material-symbols-rounded { font-size: 16px; }
.apph-pill .chev { margin-left: 2px; }
.apph-row { display: flex; flex-direction: column; gap: 2px; font-size: 13px; color: var(--text-muted); }
.apph-row strong { font-size: 16px; color: var(--navy); }
.apph-dates { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 5px; }
.apph-date { display: flex; flex-direction: column; align-items: center; padding: 6px 0; border: 1.5px solid var(--green, #2d7a4f); background: #eef6f1; border-radius: 7px; color: var(--green, #2d7a4f); font-weight: 700; line-height: 1.15; }
.apph-date .d { font-size: 15px; }
.apph-date .m { font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em; }
.apph-date .c { font-size: 11px; }
.apph-screen--dim { background: #9aa6b6; justify-content: space-between; padding: 10px 0 0; }
.apph-push { margin: 4px 10px; background: rgba(255,255,255,0.96); border-radius: 14px; padding: 10px 12px; display: flex; gap: 10px; align-items: flex-start; box-shadow: 0 4px 14px rgba(26,46,74,0.25); animation: log-in 0.4s ease-out; }
.apph-push img { width: 26px; height: 26px; border-radius: 7px; background: #fff; border: 1px solid var(--border); padding: 2px; object-fit: contain; flex-shrink: 0; }
.apph-push .h { display: flex; justify-content: space-between; gap: 8px; font-size: 12.5px; color: var(--navy); }
.apph-push .h span { color: var(--text-muted); font-size: 11px; }
.apph-push .b { font-size: 13px; color: var(--text); line-height: 1.35; }
.apph-sheet { background: #fff; border-radius: 18px 18px 0 0; padding: 16px 14px 18px; display: flex; flex-direction: column; gap: 9px; }
.apph-sheet .t { font-family: var(--font-serif); font-size: 19px; font-weight: 700; color: var(--navy); }
.apph-sheet .q { font-size: 13.5px; color: var(--text-muted); line-height: 1.4; }
.apph-btn { text-align: center; font-size: 14px; font-weight: 700; padding: 11px; border-radius: 8px; }
.apph-btn--yes { background: var(--green, #2d7a4f); color: #fff; }
.apph-btn--no { border: 1.5px solid var(--red, #c0392b); color: var(--red, #c0392b); background: #fff; transition: background 0.15s, color 0.15s; }
.apph-btn--no.pressed { background: var(--red, #c0392b); color: #fff; }
.apph-note { font-size: 12.5px; color: var(--text-muted); text-align: center; animation: log-in 0.4s ease-out; }
.apph-screen .sms-tap-hint { margin-top: 2px; }
.demo-stage { order: 2; }
  /* ─── APP HOME (demo phones) ─── */
.apph-screen { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 0 0 14px; background: var(--bg); min-height: 100%; }
.apph-top { background: var(--navy); color: #fff; display: flex; align-items: center; gap: 10px; padding: 14px 14px; }
.apph-logo { width: 34px; height: 34px; border-radius: 9px; background: #fff; padding: 4px; object-fit: contain; }
.apph-org .n { font-weight: 700; font-size: 15px; line-height: 1.2; }
.apph-org .o { font-size: 12.5px; color: #c9d8e8; white-space: nowrap; }
.apph-hi { font-family: var(--font-serif); font-size: 24px; font-weight: 700; color: var(--navy); padding: 4px 14px 0; }
.apph-card { margin: 0 12px; background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.apph-card--tap { cursor: pointer; border: 1.5px solid var(--gold); animation: link-beacon 1.8s ease-in-out infinite; transition: background 0.15s; }
.apph-card--tap:hover { background: var(--gold-pale); }
.apph-pill { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; background: var(--navy); color: #fff; border-radius: 999px; padding: 6px 12px; font-size: 11px; font-weight: 700; letter-spacing: 0.05em; white-space: nowrap; text-transform: uppercase; }
.apph-pill .material-symbols-rounded { font-size: 16px; }
.apph-pill .chev { margin-left: 2px; }
.apph-row { display: flex; flex-direction: column; gap: 2px; font-size: 13px; color: var(--text-muted); }
.apph-row strong { font-size: 16px; color: var(--navy); }
.apph-dates { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 5px; }
.apph-date { display: flex; flex-direction: column; align-items: center; padding: 6px 0; border: 1.5px solid var(--green, #2d7a4f); background: #eef6f1; border-radius: 7px; color: var(--green, #2d7a4f); font-weight: 700; line-height: 1.15; }
.apph-date .d { font-size: 15px; }
.apph-date .m { font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em; }
.apph-date .c { font-size: 11px; }
.apph-screen--dim { background: #9aa6b6; justify-content: space-between; padding: 10px 0 0; }
.apph-push { margin: 4px 10px; background: rgba(255,255,255,0.96); border-radius: 14px; padding: 10px 12px; display: flex; gap: 10px; align-items: flex-start; box-shadow: 0 4px 14px rgba(26,46,74,0.25); animation: log-in 0.4s ease-out; }
.apph-push img { width: 26px; height: 26px; border-radius: 7px; background: #fff; border: 1px solid var(--border); padding: 2px; object-fit: contain; flex-shrink: 0; }
.apph-push .h { display: flex; justify-content: space-between; gap: 8px; font-size: 12.5px; color: var(--navy); }
.apph-push .h span { color: var(--text-muted); font-size: 11px; }
.apph-push .b { font-size: 13px; color: var(--text); line-height: 1.35; }
.apph-sheet { background: #fff; border-radius: 18px 18px 0 0; padding: 16px 14px 18px; display: flex; flex-direction: column; gap: 9px; }
.apph-sheet .t { font-family: var(--font-serif); font-size: 19px; font-weight: 700; color: var(--navy); }
.apph-sheet .q { font-size: 13.5px; color: var(--text-muted); line-height: 1.4; }
.apph-btn { text-align: center; font-size: 14px; font-weight: 700; padding: 11px; border-radius: 8px; }
.apph-btn--yes { background: var(--green, #2d7a4f); color: #fff; }
.apph-btn--no { border: 1.5px solid var(--red, #c0392b); color: var(--red, #c0392b); background: #fff; transition: background 0.15s, color 0.15s; }
.apph-btn--no.pressed { background: var(--red, #c0392b); color: #fff; }
.apph-note { font-size: 12.5px; color: var(--text-muted); text-align: center; animation: log-in 0.4s ease-out; }
.apph-screen .sms-tap-hint { margin-top: 2px; }
.demo-stage { min-height: 600px; }
  .chain-stage { grid-template-columns: 1fr; }
  .chain-phones { flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .demo-meta h3 { font-size: 28px; }
}
@media (max-width: 620px) {
  .phone-frame { width: 280px; height: 580px; padding: 11px; }
  .phone-frame.sm { width: 230px; height: 470px; }
  .chain-phones .phone-frame.sm { width: 210px; height: 430px; }
  .mini-board-grid { grid-template-columns: 50px 1fr 1fr 1fr 1fr; }
}



/* ─── Role Preference picker (production hex values) ──── */
.rp-legend {
  display: flex; flex-wrap: wrap;
  gap: 8px 14px;
  padding: 4px 16px 8px;
  flex-shrink: 0;
}
.rp-legend-item {
  display: flex; align-items: center; gap: 5px;
  font-size: 10.5px; color: var(--text-muted); font-weight: 500;
}
.rp-legend-swatch {
  width: 22px; height: 16px; border-radius: 4px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700;
}
.rp-ls-red    { background: #FEF2F2; border: 1.2px solid #FECACA; color: #991B1B; }
.rp-ls-green  { background: #E8F5EE; border: 1.2px solid #A8D5B8; color: #2D7A4F; }
.rp-ls-yellow { background: #FFFBEB; border: 1.2px solid #F5D07A; color: #B45309; }

.rp-roles-list {
  flex: 1; overflow-y: auto;
  padding: 6px 12px 12px;
  display: flex; flex-direction: column; gap: 8px;
}
.rp-role-card {
  border-radius: 14px;
  border: 2px solid transparent;
  padding: 10px 12px;
  cursor: pointer;
  display: flex; align-items: flex-start; gap: 10px;
  user-select: none;
  transition: transform 0.1s ease;
}
.rp-role-card:active { transform: scale(0.97); }
.rp-none     { background: #FEF2F2; border-color: #FECACA; }
.rp-primary  { background: #E8F5EE; border-color: #A8D5B8; }
.rp-fillable { background: #FFFBEB; border-color: #F5D07A; }

.rp-state-badge {
  min-width: 32px; height: 32px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700;
  flex-shrink: 0;
}
.rp-none     .rp-state-badge { background: #FECACA; color: #991B1B; }
.rp-primary  .rp-state-badge { background: #A8D5B8; color: #2D7A4F; }
.rp-fillable .rp-state-badge { background: #F5D07A; color: #B45309; }

.rp-card-text { flex: 1; min-width: 0; }
.rp-role-name {
  font-size: 13px; font-weight: 700; color: var(--navy);
  line-height: 1.2;
}
.rp-role-desc {
  font-size: 10.5px; color: var(--text-muted);
  font-style: italic;
  margin-top: 2px; line-height: 1.35;
}
.rp-role-state-label {
  font-size: 9.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em;
  margin-top: 5px;
}
.rp-none     .rp-role-state-label { color: #991B1B; }
.rp-primary  .rp-role-state-label { color: #2D7A4F; }
.rp-fillable .rp-role-state-label { color: #B45309; }
