/* Product demo — mockups aligned with give, tracker, and manage screens */

.product-demo {
  --pd-bg: #121a14;
  --pd-text: #f5f0e6;
  --pd-accent: #e0794a;
  --pd-secondary: #1e2e24;
  width: min(100%, 56rem);
  margin-inline: auto;
}

.product-demo-caption {
  margin: 0 0 1rem;
  font-family: var(--rtf-font-display, "Fraunces", Georgia, serif);
  font-size: 1.125rem;
  font-weight: 600;
  text-align: center;
  color: var(--rtf-ink);
}

.product-demo-stage {
  position: relative;
  background: var(--rtf-forest);
  border-radius: var(--rtf-radius-lg, 24px);
  padding: 1.25rem;
  box-shadow: 0 20px 50px rgba(30, 43, 34, 0.18);
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.product-demo-screen {
  position: absolute;
  inset: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
}

.product-demo-screen.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

@media (prefers-reduced-motion: reduce) {
  .product-demo-screen {
    transition: none;
  }
}

/* Device frames */

.pd-frame {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pd-frame-phone {
  max-width: 15rem;
}

.pd-frame-wide,
.pd-frame-app {
  max-width: 100%;
  width: 100%;
  height: 100%;
  align-items: stretch;
}

.pd-phone-bezel {
  width: 100%;
  border-radius: 22px;
  padding: 0.5rem;
  background: #2a2118;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

.pd-phone-notch {
  width: 2.5rem;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  margin: 0.15rem auto 0.5rem;
}

.pd-browser-bezel {
  width: 100%;
  height: 100%;
  border-radius: 14px;
  overflow: hidden;
  background: var(--rtf-cream);
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
}

.pd-browser-bar {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.65rem;
  background: var(--rtf-border);
  border-bottom: 1px solid rgba(42, 33, 24, 0.08);
}

.pd-browser-bar span {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: rgba(42, 33, 24, 0.15);
}

.pd-browser-body {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Event-themed surfaces (give + tracker) */

.pd-event {
  background: var(--pd-bg);
  color: var(--pd-text);
  font-family: var(--rtf-font-body);
  font-size: 0.6875rem;
  line-height: 1.45;
}

.pd-give {
  padding: 0.65rem 0.75rem 0.85rem;
  border-radius: 16px;
  max-height: 100%;
  overflow: hidden;
}

.pd-logo-wrap {
  display: flex;
  justify-content: center;
  padding: 0.35rem 0.5rem;
  margin-bottom: 0.45rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.92);
}

.pd-logo-placeholder {
  font-weight: 700;
  font-size: 0.625rem;
  letter-spacing: 0.04em;
  color: #2a2118;
}

.pd-give h2 {
  margin: 0 0 0.15rem;
  font-family: var(--rtf-font-display, "Fraunces", Georgia, serif);
  font-size: 0.8125rem;
  font-weight: 600;
  text-align: center;
}

.pd-give-tagline {
  margin: 0 0 0.5rem;
  text-align: center;
  opacity: 0.82;
  font-size: 0.625rem;
}

.pd-field {
  margin-bottom: 0.4rem;
}

.pd-field label {
  display: block;
  font-size: 0.5625rem;
  font-weight: 500;
  margin-bottom: 0.15rem;
}

.pd-field input {
  display: block;
  width: 100%;
  min-height: 1.5rem;
  padding: 0.25rem 0.4rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.14);
  color: inherit;
  font: inherit;
}

.pd-check {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.5625rem;
  margin-bottom: 0.45rem;
}

.pd-check input {
  width: 0.65rem;
  height: 0.65rem;
  margin: 0;
}

.pd-btn {
  display: block;
  width: 100%;
  min-height: 1.65rem;
  margin-top: 0.35rem;
  padding: 0.3rem 0.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.625rem;
  text-align: center;
  cursor: default;
}

.pd-btn-primary {
  background: var(--pd-accent);
  color: #fff;
}

.pd-btn-ghost {
  background: transparent;
  color: inherit;
  border-color: rgba(255, 255, 255, 0.22);
}

.pd-fine {
  margin: 0.25rem 0 0;
  font-size: 0.5rem;
  opacity: 0.75;
  text-align: center;
}

/* Tracker mock */

.pd-tracker {
  padding: 0.55rem 0.65rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  overflow: hidden;
}

.pd-tracker-head {
  text-align: center;
}

.pd-tracker-head h2 {
  margin: 0;
  font-family: var(--rtf-font-display, "Fraunces", Georgia, serif);
  font-size: 0.875rem;
  font-weight: 600;
  display: inline;
}

.pd-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin: 0.25rem 0 0;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: rgba(143, 168, 136, 0.22);
  border: 1px solid rgba(143, 168, 136, 0.4);
  font-size: 0.5rem;
  font-weight: 600;
}

.pd-live-dot {
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 999px;
  background: #8fa888;
}

.pd-tracker-board {
  display: grid;
  grid-template-columns: 1fr min(4.5rem, 28%);
  gap: 0.4rem;
  flex: 1;
  min-height: 0;
}

.pd-stat-hero {
  background: var(--pd-secondary);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 0.45rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.pd-stat-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--pd-accent);
}

.pd-stat-label {
  font-size: 0.5rem;
  opacity: 0.8;
}

.pd-stat-value {
  font-family: var(--rtf-font-display, "Fraunces", Georgia, serif);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--pd-accent);
  line-height: 1.1;
}

.pd-stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.3rem;
  margin-top: 0.3rem;
}

.pd-stat-tile {
  background: var(--pd-secondary);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 0.3rem;
  text-align: center;
}

.pd-stat-tile strong {
  display: block;
  font-family: var(--rtf-font-display, "Fraunces", Georgia, serif);
  font-size: 0.6875rem;
  color: var(--pd-accent);
}

.pd-qr-panel {
  background: color-mix(in srgb, var(--pd-secondary) 88%, var(--pd-accent) 12%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  padding: 0.35rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.5rem;
  font-weight: 600;
}

.pd-qr-box {
  width: 2.25rem;
  height: 2.25rem;
  margin-top: 0.25rem;
  background: #fff;
  border-radius: 4px;
  background-image: linear-gradient(45deg, #222 25%, transparent 25%),
    linear-gradient(-45deg, #222 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #222 75%),
    linear-gradient(-45deg, transparent 75%, #222 75%);
  background-size: 6px 6px;
  background-position: 0 0, 0 3px, 3px -3px, -3px 0;
  opacity: 0.85;
}

.pd-recent {
  margin-top: auto;
}

.pd-recent h3 {
  margin: 0 0 0.25rem;
  font-size: 0.5625rem;
  font-family: var(--rtf-font-display, "Fraunces", Georgia, serif);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.pd-recent h3::before {
  content: "";
  width: 0.2rem;
  height: 0.65rem;
  border-radius: 999px;
  background: var(--pd-accent);
}

.pd-recent ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.pd-recent li {
  display: flex;
  justify-content: space-between;
  gap: 0.35rem;
  padding: 0.25rem 0.4rem;
  margin-bottom: 0.2rem;
  border-radius: 8px;
  background: var(--pd-secondary);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.5rem;
}

.pd-recent li:first-child {
  border-color: color-mix(in srgb, var(--pd-accent) 35%, rgba(255, 255, 255, 0.12));
}

.pd-recent li strong {
  color: var(--pd-accent);
  font-family: var(--rtf-font-display, "Fraunces", Georgia, serif);
}

/* Manage desk mock */

.pd-manage-top {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.5rem;
  background: var(--rtf-forest);
  color: var(--rtf-cream);
  font-size: 0.5625rem;
  flex-shrink: 0;
}

.pd-manage-brand {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-weight: 600;
}

.pd-manage-brand img {
  width: 0.85rem;
  height: 0.85rem;
}

.pd-manage-meta {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex: 1;
  min-width: 0;
}

.pd-manage-event {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  opacity: 0.95;
}

.pd-manage-pill {
  padding: 0.1rem 0.35rem;
  border-radius: 999px;
  background: var(--rtf-sage);
  font-size: 0.5rem;
  font-weight: 600;
  flex-shrink: 0;
}

.pd-manage-link {
  margin-left: auto;
  opacity: 0.9;
  white-space: nowrap;
}

.pd-manage-tabs {
  display: flex;
  gap: 0.2rem;
  padding: 0.25rem 0.45rem;
  background: #fff;
  border-bottom: 1px solid var(--rtf-border);
  flex-shrink: 0;
}

.pd-manage-tab {
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  font-size: 0.5rem;
  font-weight: 500;
  color: var(--rtf-ink);
}

.pd-manage-tab.active {
  background: var(--rtf-forest);
  color: var(--rtf-cream);
}

.pd-manage-body {
  flex: 1;
  padding: 0.45rem;
  background: var(--rtf-cream);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.pd-summary-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.25rem;
}

.pd-summary-card {
  background: #fff;
  border: 1px solid var(--rtf-border);
  border-radius: 8px;
  padding: 0.25rem;
  text-align: center;
}

.pd-summary-card span {
  display: block;
  font-size: 0.4375rem;
  color: var(--rtf-slate);
}

.pd-summary-card strong {
  font-family: var(--rtf-font-display, "Fraunces", Georgia, serif);
  font-size: 0.625rem;
  color: var(--rtf-ink);
}

.pd-manage-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem;
  flex: 1;
  min-height: 0;
}

.pd-manage-card {
  background: #fff;
  border: 1px solid var(--rtf-border);
  border-radius: 8px;
  padding: 0.35rem;
  font-size: 0.5rem;
}

.pd-manage-card h4 {
  margin: 0 0 0.2rem;
  font-family: var(--rtf-font-display, "Fraunces", Georgia, serif);
  font-size: 0.5625rem;
}

.pd-manage-card p {
  margin: 0 0 0.3rem;
  color: var(--rtf-slate);
  line-height: 1.4;
}

.pd-manage-card-sage {
  background: var(--rtf-sage-tint);
  border-color: #c5d4c0;
}

.pd-mini-btn {
  display: inline-block;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  background: var(--rtf-coral);
  color: #fff;
  font-weight: 600;
  font-size: 0.5rem;
}

.pd-mini-link {
  display: block;
  color: var(--rtf-forest);
  font-weight: 600;
  margin-bottom: 0.15rem;
}

/* Demo nav tabs */

.product-demo-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem;
  margin-top: 1rem;
}

.product-demo-nav button {
  min-height: 2.25rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--rtf-radius-pill, 999px);
  border: 1px solid var(--rtf-border);
  background: var(--rtf-white);
  color: var(--rtf-ink);
  font-family: var(--rtf-font-body);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.product-demo-nav button:hover {
  background: var(--rtf-sage-tint);
}

.product-demo-nav button.active {
  background: var(--rtf-forest);
  border-color: var(--rtf-forest);
  color: var(--rtf-cream);
}

.product-demo-nav button:focus-visible {
  outline: 2px solid var(--rtf-focus-ring);
}

.product-demo-dots {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 0.65rem;
}

.product-demo-dots span {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: var(--rtf-border);
  transition: background 0.25s, transform 0.25s;
}

.product-demo-dots span.active {
  background: var(--rtf-coral);
  transform: scale(1.15);
}

.demo-section {
  padding-top: 0;
}

.demo-intro {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 1.75rem;
}

.demo-intro .lead {
  margin-inline: auto;
}
