/* =============================================
   DESIGN SYSTEM PREVIEW PAGE
   /design-system/ ONLY — NOT FOR PRODUCTION
   ============================================= */

.ds-page {
  font-family: var(--font-body);
  color: var(--lap-grey-900);
  background: var(--lap-grey-50);
  min-height: 100vh;
}

.ds-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--space-12) var(--container-padding);
}

.ds-section {
  background: var(--lap-white);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  margin-bottom: var(--space-8);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--lap-grey-200);
}

.ds-section h2 {
  border-bottom: 2px solid var(--lap-grey-200);
  padding-bottom: var(--space-4);
  margin-bottom: var(--space-6);
}

.ds-section h3 {
  margin-top: var(--space-6);
}

.ds-page-title {
  text-align: center;
  margin-bottom: var(--space-4);
}
.ds-page-subtitle {
  text-align: center;
  color: var(--lap-grey-500);
  font-size: var(--text-lead);
  margin-bottom: var(--space-10);
}

/* ---------- COLOR SWATCHES ---------- */
.ds-swatches {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.ds-swatch {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--lap-grey-200);
  background: var(--lap-white);
}

.ds-swatch__color {
  height: 100px;
  width: 100%;
}

.ds-swatch__info {
  padding: var(--space-3);
  font-family: var(--font-mono);
  font-size: var(--text-tiny);
}

.ds-swatch__name {
  display: block;
  font-weight: 600;
  color: var(--lap-navy);
  font-family: var(--font-body);
  font-size: var(--text-small);
  margin-bottom: 2px;
}

.ds-swatch__hex {
  color: var(--lap-grey-500);
}

/* ---------- TYPOGRAPHY SAMPLES ---------- */
.ds-type-row {
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--lap-grey-200);
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: var(--space-6);
  align-items: center;
}
.ds-type-row:last-child { border-bottom: none; }

.ds-type-label {
  font-family: var(--font-mono);
  font-size: var(--text-small);
  color: var(--lap-grey-500);
}

/* ---------- BUTTON DEMOS ---------- */
.ds-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-heading);
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--t-base);
  white-space: nowrap;
}
.btn--md { padding: 12px 24px; font-size: var(--text-body); min-height: 48px; }
.btn--lg { padding: 16px 32px; font-size: var(--text-h4); min-height: 56px; }
.btn--sm { padding: 8px 16px; font-size: var(--text-small); min-height: 36px; }

.btn--primary { background: var(--lap-blue); color: var(--lap-white); box-shadow: var(--shadow-md); }
.btn--primary:hover { background: var(--lap-blue-hover); color: var(--lap-white); box-shadow: var(--shadow-lg); transform: translateY(-1px); }

.btn--secondary { background: var(--lap-navy); color: var(--lap-white); box-shadow: var(--shadow-md); }
.btn--secondary:hover { background: var(--lap-navy-deep); color: var(--lap-white); box-shadow: var(--shadow-lg); transform: translateY(-1px); }

.btn--gold { background: var(--lap-gold); color: var(--lap-navy); box-shadow: var(--shadow-md); }
.btn--gold:hover { background: var(--lap-gold-hover); color: var(--lap-navy); box-shadow: var(--shadow-lg); transform: translateY(-1px); }

.btn--ghost { background: transparent; color: var(--lap-navy); border-color: var(--lap-navy); }
.btn--ghost:hover { background: var(--lap-navy); color: var(--lap-white); }

/* ---------- SAMPLE CARDS ---------- */
.ds-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-5);
  margin-bottom: var(--space-6);
}

.ds-card {
  background: var(--lap-white);
  border: 1px solid var(--lap-grey-200);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: all var(--t-base);
}
.ds-card:hover {
  border-color: var(--lap-blue);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.ds-card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--lap-blue-soft);
  color: var(--lap-blue);
  font-size: 24px;
  margin-bottom: var(--space-4);
}

.ds-card h4 { margin-bottom: var(--space-2); }
.ds-card p { color: var(--lap-grey-700); font-size: var(--text-small); margin: 0; }

/* ---------- STAT BOX ---------- */
.ds-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--space-5);
}

.ds-stat {
  background: var(--lap-navy);
  color: var(--lap-white);
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  text-align: center;
}
.ds-stat__number {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 800;
  line-height: 1;
  color: var(--lap-gold);
  display: block;
  margin-bottom: var(--space-2);
  font-variant-numeric: tabular-nums;
}
.ds-stat__label {
  font-size: var(--text-small);
  color: var(--lap-grey-300);
}

/* ---------- TESTIMONIAL CARD ---------- */
.ds-testimonial {
  background: var(--lap-gold-soft);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  border-left: 4px solid var(--lap-gold);
}
.ds-stars { color: var(--lap-gold); font-size: 20px; margin-bottom: var(--space-3); letter-spacing: 2px; }
.ds-testimonial__quote { font-size: var(--text-body); color: var(--lap-grey-900); margin-bottom: var(--space-4); font-style: italic; }
.ds-testimonial__author { font-weight: 600; color: var(--lap-navy); font-size: var(--text-small); }
.ds-testimonial__role { color: var(--lap-grey-500); font-size: var(--text-tiny); }

/* ---------- BADGES ---------- */
.ds-badges { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: var(--text-tiny);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.badge--gold { background: var(--lap-gold-soft); color: #92510C; }
.badge--blue { background: var(--lap-blue-soft); color: var(--lap-blue-hover); }
.badge--success { background: var(--lap-success-soft); color: #065F46; }
.badge--navy { background: var(--lap-navy); color: var(--lap-white); }
.badge--danger { background: var(--lap-danger-soft); color: #991B1B; }

/* ---------- HERO PREVIEW ---------- */
.ds-hero-preview {
  background: linear-gradient(135deg, var(--lap-navy) 0%, var(--lap-navy-deep) 100%);
  border-radius: var(--radius-xl);
  padding: var(--space-10) var(--space-8);
  color: var(--lap-white);
  margin-bottom: var(--space-6);
  position: relative;
  overflow: hidden;
}
.ds-hero-preview::before {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(30, 91, 224, 0.4) 0%, transparent 70%);
  pointer-events: none;
}
.ds-hero-preview > * { position: relative; z-index: 1; }

.ds-hero-preview h1 {
  color: var(--lap-white);
  font-size: var(--text-display);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-4);
  max-width: 800px;
}
.ds-hero-preview .ds-hero-accent { color: var(--lap-gold); }
.ds-hero-preview .ds-lead {
  font-size: var(--text-lead);
  color: var(--lap-grey-300);
  max-width: 640px;
  margin-bottom: var(--space-6);
  line-height: 1.5;
}
.ds-hero-preview .ds-hero-trust {
  display: flex;
  gap: var(--space-5);
  margin-top: var(--space-6);
  font-size: var(--text-small);
  color: var(--lap-grey-300);
  flex-wrap: wrap;
}
.ds-hero-preview .ds-hero-trust span::before { content: '✓'; color: var(--lap-gold); margin-right: 8px; font-weight: 700; }
