/*
 * Signed-out demo previews (2026-11-08).
 *
 * Ivory · mint · emerald, matching the refreshed app surfaces. Kept in its own
 * file so the previews can be removed without touching the design system.
 */

/* ---- Try the demo, below the sign-in form ---- */
.auth-demo {
  margin-top: var(--s-5);
  padding-top: var(--s-4);
  border-top: 1px solid var(--hairline);
}
.auth-demo-title {
  margin: 0;
  font-family: var(--font-serif, 'Source Serif 4', Georgia, serif);
  font-size: 18px;
  font-weight: 600;
  color: var(--evergreen-900, #123a2c);
}
.auth-demo-copy {
  margin: var(--s-1) 0 var(--s-3);
  font-size: 13px;
  color: var(--text-2);
}
.auth-demo-choices {
  display: grid;
  gap: var(--s-2);
}
.auth-demo-choice {
  display: block;
  padding: var(--s-3);
  border: 1px solid var(--border);
  border-radius: var(--r-2, 12px);
  background: var(--surface, #fff);
  text-decoration: none;
  color: inherit;
  transition:
    border-color 120ms ease,
    background-color 120ms ease;
}
.auth-demo-choice:hover,
.auth-demo-choice:focus-visible {
  border-color: var(--brand, #1d6b4f);
  background: var(--evergreen-50, #f2f7f1);
  outline: none;
}
.auth-demo-choice:focus-visible {
  box-shadow: 0 0 0 3px rgba(29, 107, 79, 0.25);
}
.auth-demo-choice-name {
  display: block;
  font-weight: 600;
  font-size: 14px;
  color: var(--evergreen-900, #123a2c);
}
.auth-demo-choice-desc {
  display: block;
  margin-top: 2px;
  font-size: 12.5px;
  color: var(--text-2);
}

/* ---- shared preview chrome ---- */
.demo-screen {
  max-width: 1180px;
  margin: 0 auto;
}
/* Signed-out routes get `body.is-auth`, whose .view has no padding of its own
   (the auth shell supplies it). These previews are not the auth shell, so they
   bring their own gutter. */
body.is-auth .demo-screen {
  padding: 32px 24px 64px;
}
.demo-bar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s-4);
  flex-wrap: wrap;
  margin-bottom: var(--s-3);
}
.demo-bar h1 {
  margin: var(--s-2) 0 var(--s-1);
  font-family: var(--font-serif, 'Source Serif 4', Georgia, serif);
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.1;
  color: var(--evergreen-900, #123a2c);
}
.demo-bar-copy p {
  margin: 0;
  max-width: 56ch;
}
.demo-bar-actions {
  display: flex;
  gap: var(--s-2);
  flex-wrap: wrap;
}
.demo-chip {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--evergreen-50, #f2f7f1);
  border: 1px solid var(--evergreen-200, #cfe4d6);
  color: var(--evergreen-800, #1c4c39);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.demo-disclaimer {
  margin: 0 0 var(--s-5);
  padding: var(--s-2) var(--s-3);
  border-left: 3px solid var(--evergreen-400, #74b394);
  background: var(--ivory-100, #f7f8f2);
  border-radius: 0 var(--r-1, 8px) var(--r-1, 8px) 0;
  font-size: 12.5px;
  color: var(--text-2);
}

/* ---- chooser ---- */
.demo-choices {
  display: grid;
  gap: var(--s-3);
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.demo-choice {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  padding: var(--s-4);
  border: 1px solid var(--border);
  border-radius: var(--r-3, 16px);
  background: var(--surface, #fff);
  text-decoration: none;
  color: inherit;
  transition:
    border-color 120ms ease,
    transform 120ms ease;
}
.demo-choice:hover,
.demo-choice:focus-visible {
  border-color: var(--brand, #1d6b4f);
  outline: none;
}
.demo-choice:focus-visible {
  box-shadow: 0 0 0 3px rgba(29, 107, 79, 0.25);
}
.demo-choice-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand, #1d6b4f);
}
.demo-choice strong {
  font-size: 17px;
  line-height: 1.3;
  color: var(--evergreen-900, #123a2c);
}
.demo-choice-go {
  margin-top: auto;
  padding-top: var(--s-2);
  font-size: 13px;
  font-weight: 600;
  color: var(--brand, #1d6b4f);
}

/* ---- layout ---- */
.demo-grid {
  display: grid;
  gap: var(--s-4);
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: start;
}
.demo-col {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  min-width: 0;
}
.demo-card {
  padding: var(--s-4);
  border: 1px solid var(--border);
  border-radius: var(--r-3, 16px);
  background: var(--surface, #fff);
}
.demo-card--mint {
  background: var(--evergreen-50, #f2f7f1);
  border-color: var(--evergreen-200, #cfe4d6);
}
.demo-card h2 {
  margin: var(--s-2) 0;
  font-family: var(--font-serif, 'Source Serif 4', Georgia, serif);
  font-size: 21px;
  line-height: 1.2;
  color: var(--evergreen-900, #123a2c);
}
.demo-subhead {
  margin: var(--s-2) 0 var(--s-1);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-1);
}

/* ---- feed ---- */
.demo-feed {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.demo-post {
  padding: var(--s-3) var(--s-4);
  border: 1px solid var(--border);
  border-radius: var(--r-3, 16px);
  background: var(--surface, #fff);
}
.demo-post-head {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  margin-bottom: var(--s-2);
}
.demo-avatar {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--evergreen-100, #e2efe5);
  color: var(--evergreen-800, #1c4c39);
  font-weight: 700;
}
.demo-post-org {
  font-weight: 600;
  font-size: 14px;
  color: var(--evergreen-900, #123a2c);
}
.demo-post h3 {
  margin: 0 0 var(--s-1);
  font-size: 16px;
  line-height: 1.3;
}
.demo-post-actions {
  display: flex;
  gap: var(--s-2);
  flex-wrap: wrap;
  margin-top: var(--s-2);
}
.demo-sample-tag {
  display: inline-block;
  margin-left: 4px;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--ivory-200, #eef0e6);
  color: var(--text-2);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: middle;
}

/* ---- stats ---- */
.demo-stat-row {
  display: flex;
  gap: var(--s-4);
  margin: var(--s-3) 0;
  flex-wrap: wrap;
}
.demo-stat {
  display: flex;
  flex-direction: column;
}
.demo-stat strong {
  font-size: 20px;
  color: var(--evergreen-900, #123a2c);
}
.demo-stat-grid {
  display: grid;
  gap: var(--s-3);
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  margin-bottom: var(--s-4);
}
.demo-stat-card {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: var(--s-3);
  border: 1px solid var(--border);
  border-radius: var(--r-2, 12px);
  background: var(--surface, #fff);
}
.demo-stat-card strong {
  font-family: var(--font-serif, 'Source Serif 4', Georgia, serif);
  font-size: 24px;
  color: var(--evergreen-900, #123a2c);
}

/* ---- campaign ---- */
.demo-progress {
  height: 10px;
  border-radius: 999px;
  background: var(--ivory-200, #eef0e6);
  overflow: hidden;
}
.demo-progress span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #2f7f5c, #74b394);
}
.demo-needs {
  margin: 0 0 var(--s-3);
  padding-left: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
}
.demo-actions {
  display: flex;
  gap: var(--s-2);
  flex-wrap: wrap;
}

/* ---- owner ---- */
.demo-owner-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s-3);
  flex-wrap: wrap;
  margin-bottom: var(--s-3);
}
.demo-owner-head h2 {
  margin: var(--s-1) 0 2px;
  font-family: var(--font-serif, 'Source Serif 4', Georgia, serif);
  font-size: 24px;
  color: var(--evergreen-900, #123a2c);
}
.demo-label {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
  font-weight: 600;
}
.demo-activity {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  font-size: 13.5px;
}

/* ---- feedback + footer ---- */
.demo-note {
  margin-top: var(--s-4);
  padding: var(--s-3);
  border: 1px solid var(--evergreen-200, #cfe4d6);
  border-radius: var(--r-2, 12px);
  background: var(--evergreen-50, #f2f7f1);
  color: var(--evergreen-900, #123a2c);
  font-size: 13px;
}
.demo-foot {
  display: flex;
  justify-content: space-between;
  gap: var(--s-2);
  flex-wrap: wrap;
  margin-top: var(--s-4);
  padding-top: var(--s-3);
  border-top: 1px solid var(--hairline);
}

/* ---- solutions demos (schools, companies, recruiting, API, white label) ---- */
.sd-chooser {
  margin-top: var(--s-6, 40px);
  padding-top: var(--s-4);
  border-top: 1px solid var(--hairline);
}
.sd-chooser h2 {
  margin: 0 0 var(--s-1);
  font-family: var(--font-serif, 'Source Serif 4', Georgia, serif);
  font-size: 22px;
  color: var(--evergreen-900, #123a2c);
}
.sd-chooser-grid {
  display: grid;
  gap: var(--s-2);
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-top: var(--s-3);
}
.sd-screen .badge {
  vertical-align: middle;
  margin-left: var(--s-1);
}
.sd-workspace {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s-3);
  margin-bottom: var(--s-3);
}
.sd-h2 {
  margin: var(--s-1) 0 2px;
  font-family: var(--font-serif, 'Source Serif 4', Georgia, serif);
  font-size: 24px;
  color: var(--evergreen-900, #123a2c);
}
.sd-h4 {
  margin: var(--s-4) 0 var(--s-2);
  font-size: 14px;
}
.sd-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface, #fff);
}
.sd-tab {
  padding: 6px 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font: inherit;
  font-size: 13px;
  color: var(--text-2);
  cursor: pointer;
}
.sd-tab.on {
  background: var(--evergreen-50, #eaf5ee);
  color: var(--evergreen-900, #123a2c);
  font-weight: 600;
}
.sd-tab:focus-visible {
  outline: 2px solid var(--brand, #1d6b4f);
  outline-offset: 1px;
}
.sd-grid {
  display: grid;
  gap: var(--s-3);
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  align-items: start;
}
.sd-panel {
  min-width: 0;
  padding: var(--s-4);
  border: 1px solid var(--border);
  border-radius: var(--r-3, 16px);
  background: var(--surface, #fff);
}
.sd-panel--wide {
  grid-column: 1 / -1;
}
.sd-panel--mint {
  grid-column: 1 / -1;
  background: var(--evergreen-50, #f2f7f1);
  border-color: var(--evergreen-200, #cfe4d6);
}
.sd-panel h3 {
  margin: 0 0 var(--s-1);
  font-family: var(--font-serif, 'Source Serif 4', Georgia, serif);
  font-size: 18px;
  color: var(--evergreen-900, #123a2c);
}
.sd-form {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: var(--s-2) 0 var(--s-3);
}
.sd-form--inline {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
}
.sd-form--inline .input {
  flex: 1 1 160px;
}
.sd-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
}
.sd-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-2);
  padding: var(--s-2) 0;
  border-bottom: 1px solid var(--hairline);
}
.sd-check {
  display: flex;
  gap: var(--s-2);
  align-items: flex-start;
  padding: 6px 0;
  font-size: 13.5px;
}
.sd-check span {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sd-table-wrap {
  overflow-x: auto;
  margin: var(--s-2) 0 var(--s-3);
}
.sd-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.sd-table th,
.sd-table td {
  padding: 8px 10px;
  text-align: left;
  border-bottom: 1px solid var(--hairline);
  vertical-align: top;
}
.sd-table th {
  font-size: 11.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-2);
}
.sd-pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--evergreen-50, #eef4ef);
  font-size: 11.5px;
  font-weight: 600;
}
.sd-pill--ok {
  background: #e4f3e8;
  color: #14532d;
}
.sd-pill--warn {
  background: #fdf1dd;
  color: #7a4a09;
}
.sd-kpis {
  display: grid;
  gap: var(--s-2);
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  margin: var(--s-2) 0 var(--s-3);
}
.sd-kpi {
  padding: var(--s-2);
  border: 1px solid var(--hairline);
  border-radius: var(--r-2, 12px);
  background: #fff;
}
.sd-kpi strong {
  display: block;
  font-size: 20px;
  color: var(--evergreen-900, #123a2c);
}
.sd-kpi span {
  font-size: 11.5px;
  color: var(--text-2);
}
.sd-inline-note {
  margin: var(--s-2) 0;
  padding: 8px 10px;
  border-radius: var(--r-2, 12px);
  font-size: 12.5px;
}
.sd-ok {
  background: #e8f5ec;
  color: #14532d;
}
.sd-warn {
  background: #fdf1dd;
  color: #7a4a09;
}
.sd-denied {
  margin: var(--s-2) 0;
  padding: var(--s-3);
  border: 1px solid #f0c9c9;
  border-left: 4px solid #b42318;
  border-radius: var(--r-2, 12px);
  background: #fdf3f3;
  font-size: 13px;
}
.sd-code {
  margin: var(--s-2) 0 var(--s-3);
  padding: var(--s-3);
  border-radius: var(--r-2, 12px);
  background: #10241c;
  color: #d7ece0;
  font-size: 12px;
  line-height: 1.5;
  overflow-x: auto;
  max-height: 260px;
}
.sd-code:focus-visible {
  outline: 2px solid var(--brand, #6ee7b7);
  outline-offset: 2px;
}
.sd-bar {
  height: 10px;
  border-radius: 999px;
  background: var(--evergreen-50, #e8f1ea);
  overflow: hidden;
}
.sd-bar span {
  display: block;
  height: 100%;
  background: var(--brand, #1d6b4f);
}
.sd-color {
  height: 40px;
  padding: 3px;
}
.sd-swatch {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 4px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  vertical-align: -2px;
  margin-right: 4px;
}
.sd-move {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 2px;
}

/* Branded White Label preview — its own scoped palette. */
.sd-preview {
  overflow: hidden;
  margin-top: var(--s-2);
  border: 1px solid var(--hairline);
  border-radius: var(--r-3, 16px);
  background: #fbf9f4;
}
.sd-preview-bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  align-items: baseline;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--sd-brand, #12513c);
  color: #fff;
}
.sd-preview-bar strong {
  font-family: var(--font-serif, 'Source Serif 4', Georgia, serif);
  font-size: 17px;
}
.sd-preview-nav {
  font-size: 11.5px;
  opacity: 0.85;
}
.sd-preview-body {
  padding: 16px;
}
.sd-preview-hero {
  padding: 16px;
  border-radius: 12px;
  background: var(--sd-accent, #bfe8d2);
  color: #10241c;
}
.sd-preview-kicker {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.8;
}
.sd-preview-hero h4 {
  margin: 4px 0;
  font-family: var(--font-serif, 'Source Serif 4', Georgia, serif);
  font-size: 20px;
  line-height: 1.2;
}
.sd-preview-cards {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  margin-top: 12px;
}
.sd-preview-card {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px;
  border: 1px solid var(--hairline);
  border-top: 3px solid var(--sd-brand, #12513c);
  border-radius: 10px;
  background: #fff;
  font-size: 13px;
}
.sd-preview-tag {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--sd-brand, #12513c);
  font-weight: 700;
}

/* The floating assistant belongs to the live product, not to a fictional
   preview: it is the one control on these pages that would leave the sample
   data. Hidden only while a demo route is active. */
body.is-demo .assistant-fab {
  display: none;
}

/* ---- phones ---- */
@media (max-width: 900px) {
  .demo-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .sd-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .sd-tabs {
    width: 100%;
    justify-content: space-between;
  }
  .sd-tab {
    flex: 1 1 auto;
    padding: 8px 10px;
  }
  .sd-panel {
    padding: var(--s-3);
  }
  .demo-bar-actions {
    width: 100%;
  }
  .demo-bar-actions .btn {
    flex: 1 1 auto;
  }
  .demo-card,
  .demo-post {
    padding: var(--s-3);
  }
}

/* On a phone the floating assistant button is pinned to the bottom-right of the
   viewport, which is exactly where a full-width button at the foot of the
   sign-in card sits. Keep the demo button to the left of it so neither the
   label nor its tap target is covered. */
@media (max-width: 700px) {
  .auth-demo .btn {
    width: auto;
    min-width: 168px;
    padding-inline: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-demo-choice,
  .demo-choice {
    transition: none;
  }
}
