/* Examples — PanelSpec vs simulator comparisons */

html:has(body.examples-page) {
  height: 100%;
  overflow: hidden;
}

body.examples-page {
  height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding-bottom: 0;
}

.examples-page .site-header {
  flex-shrink: 0;
  position: relative;
  z-index: 20;
}

.examples-page .site-footer {
  flex-shrink: 0;
  position: relative;
  margin-top: 0;
  margin-bottom: 0;
  z-index: 20;
  box-shadow: none;
}

.examples-shell {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(300px, 380px) minmax(0, 1fr);
  overflow: hidden;
  border-top: 1px solid #1e2230;
}

.examples-sidebar {
  min-width: 0;
  min-height: 0;
  border-right: 1px solid #1e2230;
  background: #0a0c10;
}

.examples-sidebar-scroll {
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding: 20px 16px 24px;
}

.examples-main {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.examples-main-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

body.examples-page main.examples-main {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

@media (max-width: 1024px) {
  .examples-shell {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 42vh) minmax(0, 1fr);
  }

  .examples-sidebar {
    border-right: none;
    border-bottom: 1px solid #1e2230;
  }
}

@media (max-width: 560px) {
  .examples-page .site-footer {
    flex-direction: column;
    gap: 10px;
    padding: 12px 20px;
    text-align: center;
  }
}

.examples-main {
  padding: 0;
}

.examples-main .examples-wrap {
  max-width: none;
  margin: 0;
  padding: 28px 24px 40px;
}

.examples-split {
  display: block;
}

.examples-split-left,
.examples-split-right {
  min-width: 0;
}

.examples-gallery-heading {
  font-size: clamp(20px, 3vw, 24px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

@media (max-width: 1024px) {
  .examples-split {
    display: block;
  }
}

.examples-hero {
  text-align: center;
  margin-bottom: 40px;
}

.examples-admin-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 16px;
  margin-top: 20px;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid #1e2230;
  background: #12151c;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.examples-admin-bar.hidden {
  display: none;
}

.examples-page.examples-edit-mode .examples-admin-bar {
  border-color: rgba(91, 141, 239, 0.45);
  background: rgba(91, 141, 239, 0.08);
}

.examples-admin-bar-hint {
  font-size: 13px;
  color: #8b92a8;
  margin: 0;
}

.examples-page.examples-edit-mode .examples-admin-bar-hint {
  color: #b8c8ef;
}

.examples-edit-toggle {
  flex-shrink: 0;
  font-size: 13px;
  padding: 8px 14px;
}

.examples-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #5b8def;
  margin-bottom: 10px;
}

.examples-hero h1 {
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.examples-lead {
  color: #8b92a8;
  font-size: 16px;
  max-width: 560px;
  margin: 0 auto;
}

/* Why PanelSpec — left sidebar */
.examples-why {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  margin-bottom: 0;
  text-align: left;
}

.examples-workflows-top {
  margin: 16px 0 20px;
}

.examples-why-matters-top {
  margin: 0 0 20px;
  padding: 0 0 20px;
  border-top: none;
  border-bottom: 1px solid #1e2230;
}

.examples-why-intro {
  margin-top: 4px;
}

.examples-why h2 {
  font-size: clamp(22px, 4vw, 28px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.examples-why-intro {
  color: #b8bcc8;
  font-size: 15px;
  line-height: 1.55;
  max-width: 720px;
  margin-bottom: 20px;
}

.examples-why-intro strong {
  color: #e8eaef;
  font-weight: 600;
}

.examples-compare-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 28px;
  border: 1px solid #1e2230;
  border-radius: 10px;
  background: #0a0c10;
}

.examples-compare-table {
  width: 100%;
  min-width: 0;
  border-collapse: collapse;
  font-size: 11px;
  line-height: 1.35;
}

.examples-compare-table th,
.examples-compare-table td {
  padding: 8px 10px;
  border-bottom: 1px solid #1e2230;
  vertical-align: top;
  text-align: left;
}

.examples-compare-table thead th {
  background: #151820;
  color: #8b92a8;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.examples-compare-table thead th:last-child {
  color: #5b8def;
}

.examples-compare-table tbody th[scope="row"] {
  color: #c8ccd6;
  font-weight: 500;
  white-space: normal;
  width: 38%;
}

.examples-compare-table tbody td:first-of-type {
  color: #8b92a8;
  width: 33%;
}

.examples-compare-table tbody td:last-child {
  color: #d4daf0;
  width: 33%;
}

.examples-compare-table tbody tr:last-child th,
.examples-compare-table tbody tr:last-child td {
  border-bottom: none;
}

.examples-why-block h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #e8eaef;
}

.examples-why-block p {
  color: #b8bcc8;
  font-size: 14px;
  line-height: 1.55;
  margin-bottom: 10px;
  max-width: 720px;
}

.examples-why-block p strong {
  color: #e8eaef;
  font-weight: 600;
}

.examples-why-list {
  margin: 0 0 16px 1.1em;
  padding: 0;
  color: #9aa3b8;
  font-size: 14px;
  line-height: 1.6;
}

.examples-why-list li {
  margin-bottom: 2px;
}

.examples-workflows {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin: 24px 0;
}

@media (min-width: 1025px) {
  .examples-split-left .examples-workflows {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .examples-workflows {
    grid-template-columns: 1fr;
  }
}

.examples-workflow-box {
  background: #0a0c10;
  border: 1px solid #1e2230;
  border-radius: 10px;
  padding: 16px;
}

.examples-workflow-box-highlight {
  border-color: rgba(91, 141, 239, 0.45);
  background: rgba(91, 141, 239, 0.06);
}

.examples-workflow-box h3 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #8b92a8;
  margin-bottom: 8px;
}

.examples-workflow-box-highlight h3 {
  color: #5b8def;
}

.examples-workflow-box p {
  font-size: 13px;
  line-height: 1.5;
  color: #b8bcc8;
  margin: 0;
}

.examples-why-matters {
  margin-top: 8px;
  padding-top: 20px;
  border-top: 1px solid #1e2230;
}

.examples-upload-section {
  background: #12151c;
  border: 1px solid #1e2230;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 40px;
}

.examples-upload-section h2 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 6px;
}

.examples-upload-note {
  color: #8b92a8;
  font-size: 14px;
  margin-bottom: 20px;
}

.examples-form-row {
  margin-bottom: 16px;
}

.examples-form-row label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #b8bcc8;
  margin-bottom: 6px;
}

.examples-form-row label .optional {
  font-weight: 400;
  color: #6b7280;
}

.examples-form-row input,
.examples-form-row select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #2a3040;
  background: #0a0c10;
  color: #e8eaef;
  font-size: 14px;
}

.examples-form-row input:focus,
.examples-form-row select:focus {
  outline: none;
  border-color: #5b8def;
}

.examples-form-row-split {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 16px;
}

@media (max-width: 640px) {
  .examples-form-row-split {
    grid-template-columns: 1fr;
  }
}

.examples-drop-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

@media (max-width: 720px) {
  .examples-drop-grid {
    grid-template-columns: 1fr;
  }
}

.examples-drop-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5b8def;
  margin-bottom: 8px;
}

.examples-drop-col:last-child .examples-drop-label {
  color: #7eb8ff;
}

.examples-dropzone {
  position: relative;
  aspect-ratio: 9 / 16;
  max-height: 420px;
  border: 2px dashed #2a3548;
  border-radius: 12px;
  background: #0a0c10;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.15s, background 0.15s;
}

.examples-dropzone:hover,
.examples-dropzone:focus-visible {
  border-color: #5b8def;
  background: #0d1018;
  outline: none;
}

.examples-dropzone.drag-over {
  border-color: #5b8def;
  background: rgba(91, 141, 239, 0.06);
}

.examples-dropzone.paste-target {
  border-color: #5b8def;
  box-shadow: 0 0 0 2px rgba(91, 141, 239, 0.35);
}

.examples-drop-empty {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 20px;
  text-align: center;
  color: #8b92a8;
  font-size: 14px;
}

.examples-drop-icon {
  font-size: 28px;
  color: #5b8def;
  line-height: 1;
  margin-bottom: 4px;
}

.examples-drop-hint {
  font-size: 12px;
  color: #6b7280;
}

.examples-drop-preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fafbfc;
}

.examples-drop-clear {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}

.examples-drop-clear:hover {
  background: rgba(200, 60, 60, 0.9);
}

.examples-form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.examples-message {
  font-size: 14px;
  color: #8b92a8;
  margin: 0;
}

.examples-message.ok {
  color: #6dd4a0;
}

.examples-message.err {
  color: #f07178;
}

.examples-signin {
  text-align: center;
  padding: 20px;
  margin-bottom: 32px;
  background: #12151c;
  border: 1px solid #1e2230;
  border-radius: 12px;
  color: #8b92a8;
  font-size: 14px;
}

.examples-signin a {
  color: #5b8def;
}

.examples-signin.hidden,
.examples-upload-section.hidden {
  display: none;
}

.examples-load-error {
  text-align: center;
  color: #f07178;
  padding: 16px;
  margin-bottom: 24px;
  background: rgba(240, 113, 120, 0.08);
  border-radius: 8px;
  font-size: 14px;
}

.examples-gallery {
  display: grid;
  gap: 24px;
}

.examples-card {
  background: #12151c;
  border: 1px solid #1e2230;
  border-radius: 16px;
  overflow: hidden;
}

.examples-card-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid #1e2230;
}

.examples-card-header h3 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.examples-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.examples-badge {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(91, 141, 239, 0.15);
  color: #7eb8ff;
  border: 1px solid rgba(91, 141, 239, 0.25);
}

.examples-card-date {
  font-size: 12px;
  color: #6b7280;
}

.examples-card-delete {
  display: none;
  padding: 6px 12px;
  font-size: 12px;
  border-radius: 6px;
  border: 1px solid #3a3040;
  background: transparent;
  color: #8b92a8;
  cursor: pointer;
}

.examples-card-edit {
  display: none;
  padding: 6px 12px;
  font-size: 12px;
  border-radius: 6px;
  border: 1px solid rgba(91, 141, 239, 0.35);
  background: rgba(91, 141, 239, 0.12);
  color: #7eb8ff;
  cursor: pointer;
}

.examples-page.examples-edit-mode .examples-card-delete,
.examples-page.examples-edit-mode .examples-card-edit {
  display: inline-block;
}

.examples-card-edit:hover {
  border-color: #5b8def;
  color: #a8c8ff;
}

.examples-card.is-editing {
  border-color: rgba(91, 141, 239, 0.55);
  box-shadow: 0 0 0 1px rgba(91, 141, 239, 0.25);
}

.examples-editing-banner {
  margin: 0 0 16px;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid rgba(91, 141, 239, 0.35);
  background: rgba(91, 141, 239, 0.1);
  color: #b8c8ef;
  font-size: 13px;
  line-height: 1.45;
}

.examples-card-delete:hover {
  border-color: #f07178;
  color: #f07178;
}

.examples-card-desc {
  padding: 0 20px 12px;
  font-size: 13px;
  color: #8b92a8;
  margin-top: -4px;
}

.examples-main .examples-compare {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 20px;
  padding: 16px 20px;
}

.examples-main .examples-compare-col {
  min-width: 0;
  justify-self: center;
}

.examples-main .examples-empty {
  text-align: left;
  padding: 24px 0;
}

.examples-compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  justify-items: center;
  align-items: start;
  gap: 20px 32px;
  padding: 20px;
  background: #0a0c10;
}

.examples-compare-col {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
}

.examples-compare-col + .examples-compare-col {
  border-left: none;
}

.examples-compare-label {
  position: static;
  margin-bottom: 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 4px;
  background: rgba(10, 12, 16, 0.82);
  color: #5b8def;
}

.examples-compare-col:last-child .examples-compare-label {
  color: #7eb8ff;
}

.examples-compare-col img {
  display: block;
  width: auto;
  max-width: min(200px, 42vw);
  height: auto;
  background: #fafbfc;
  border-radius: 10px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
}

@media (max-width: 520px) {
  .examples-compare {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 16px;
  }

  .examples-compare-col img {
    max-width: min(220px, 80vw);
  }
}

.examples-empty {
  text-align: center;
  color: #6b7280;
  padding: 48px 20px;
  font-size: 15px;
}

.examples-diff {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid #1e2230;
}

.examples-diff h2 {
  font-size: clamp(22px, 3.5vw, 28px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  color: #e8eaef;
}

.examples-diff-intro {
  color: #b8bcc8;
  font-size: 15px;
  line-height: 1.55;
  max-width: 720px;
  margin-bottom: 24px;
}

.examples-diff-intro strong {
  color: #e8eaef;
  font-weight: 600;
}

.examples-diff-note {
  margin-top: 12px;
  font-size: 12px;
  line-height: 1.5;
  color: #6b7280;
  max-width: 820px;
}

.examples-diff-legend {
  margin-top: 12px;
  font-size: 12px;
  line-height: 1.5;
  color: #8b92a8;
}

.examples-competitor-table {
  min-width: 640px;
  font-size: 10px;
}

.examples-competitor-table thead th,
.examples-competitor-table tbody td {
  text-align: center;
  width: auto;
}

.examples-competitor-table tbody th[scope="row"] {
  text-align: left;
  width: 28%;
  min-width: 140px;
}

.examples-competitor-table thead th:last-child,
.examples-competitor-table tbody td:last-child {
  background: rgba(91, 141, 239, 0.1);
  color: #c8d8f8;
  font-weight: 600;
}

.examples-diff-table tbody td:last-child {
  color: #c8d8f8;
}

.hidden {
  display: none !important;
}

.examples-demo-media {
  margin: 0 0 36px;
  padding: 24px;
  border: 1px solid var(--border, #2e3344);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(26, 29, 39, 0.9), rgba(15, 17, 23, 0.95));
}

.examples-demo-head {
  margin-bottom: 16px;
}

.examples-demo-head h2 {
  margin: 0 0 8px;
  font-size: clamp(22px, 3vw, 28px);
  letter-spacing: -0.02em;
}

.examples-demo-lead {
  margin: 0;
  color: var(--text-muted, #8b92a8);
  max-width: 70ch;
}

.examples-demo-tabs {
  display: inline-flex;
  gap: 8px;
  margin-bottom: 16px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.examples-demo-tab {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--text-muted, #8b92a8);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.examples-demo-tab:hover {
  color: var(--text, #e8eaef);
}

.examples-demo-tab.active {
  background: rgba(91, 141, 239, 0.18);
  color: #dbe7ff;
  box-shadow: inset 0 0 0 1px rgba(91, 141, 239, 0.35);
}

.examples-demo-panels {
  position: relative;
}

.examples-demo-panel {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #0f1117;
}

.examples-demo-media-img,
.examples-demo-media-video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #0f1117;
}

.examples-demo-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  padding: 14px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.2);
}

.examples-demo-tour-btn {
  text-decoration: none;
}

.examples-demo-download {
  margin: 12px 0 0;
  font-size: 14px;
}

.examples-demo-mp4-link {
  color: #8eb4ff;
  text-decoration: none;
}

.examples-demo-mp4-link:hover {
  text-decoration: underline;
}

.examples-classic-demo {
  margin: 32px 0 40px;
  padding: 28px 32px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(91, 141, 239, 0.08), rgba(30, 32, 44, 0.95));
}

.examples-classic-demo-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(220px, 0.8fr);
  gap: 32px;
  align-items: center;
}

.examples-classic-copy h2 {
  margin: 8px 0 12px;
  font-size: 24px;
  letter-spacing: -0.02em;
}

.examples-classic-copy p {
  color: #b8bcc8;
  line-height: 1.55;
  margin: 0 0 16px;
}

.examples-classic-list {
  margin: 0 0 20px;
  padding-left: 20px;
  color: #d0d4de;
  line-height: 1.6;
}

.examples-classic-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.examples-classic-preview {
  display: flex;
  justify-content: center;
}

.examples-classic-phone {
  width: 220px;
  padding: 18px 16px 20px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #12141c;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.examples-classic-phone-title {
  font-size: 16px;
  font-weight: 700;
}

.examples-classic-phone-tagline {
  font-size: 11px;
  color: #9aa0b0;
  margin-bottom: 6px;
}

.examples-classic-phone-card {
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
}

.examples-classic-radio {
  color: #d8dce6;
}

.examples-classic-row {
  margin-top: 6px;
  display: flex;
  justify-content: space-between;
  font-weight: 600;
}

.examples-classic-btn {
  margin-top: 8px;
  text-align: center;
  padding: 8px;
  border-radius: 10px;
  background: #5b8def;
  color: #fff;
  font-weight: 600;
  font-size: 12px;
}

@media (max-width: 860px) {
  .examples-classic-demo-inner {
    grid-template-columns: 1fr;
  }

  .examples-classic-preview {
    order: -1;
  }
}

@media (max-width: 640px) {
  .examples-demo-media {
    padding: 16px;
  }

  .examples-demo-tabs {
    display: flex;
    width: 100%;
  }

  .examples-demo-tab {
    flex: 1;
    text-align: center;
    padding: 10px 12px;
  }
}
