/* ==========================================================================
   PNG To DDS — pages.css
   About, contact, legal, 404, forms, generic prose pages.
   ========================================================================== */

/* ----- Page hero (interior pages) ----- */
.page-hero { padding-block: var(--space-7) var(--space-6); }
.page-hero h1 { font-size: var(--fs-h1); margin-top: var(--space-3); }
.page-hero .section-intro { margin-top: var(--space-4); }

/* ----- Prose / legal ----- */
.prose { max-width: 74ch; }
.prose h2 { font-size: var(--fs-h3); margin-top: var(--space-7); margin-bottom: var(--space-3); }
.prose h3 { font-size: var(--fs-h4); margin-top: var(--space-5); margin-bottom: var(--space-2); }
.prose p, .prose ul, .prose ol { margin-bottom: var(--space-4); }
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose li { margin-bottom: 0.4rem; }
.prose a { color: var(--red-deep); font-weight: 500; }
.prose a:hover {
  color: var(--ink);
  text-decoration-color: var(--red);
  text-decoration-thickness: 2px;
}
.prose strong { color: var(--text-heading); }
.legal-meta { font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-muted); margin-bottom: var(--space-5); }

/* ----- About: values / team ----- */
.value-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
}
.value-card__icon {
  width: 46px; height: 46px; border-radius: var(--radius-md);
  background: var(--red-soft); color: var(--red-deep);
  display: inline-flex; align-items: center; justify-content: center; margin-bottom: var(--space-4);
}
.value-card__icon svg { width: 23px; height: 23px; }
.value-card h3 { font-size: var(--fs-h4); margin-bottom: 0.4rem; }
.value-card p { color: var(--text-muted); font-size: 0.94rem; }

.stat-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5); }
.stat-band__item { text-align: center; }
.stat-band__num { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.8rem, 1.3rem + 2vw, 2.6rem); color: var(--red-deep); }
.stat-band__label { font-size: 0.9rem; color: var(--text-muted); margin-top: 0.2rem; }
@media (max-width: 640px) { .stat-band { grid-template-columns: 1fr 1fr; } }

/* ----- Contact ----- */
.contact-layout { display: grid; grid-template-columns: 1fr 1.15fr; gap: var(--space-8); align-items: start; }
@media (max-width: 900px) { .contact-layout { grid-template-columns: 1fr; gap: var(--space-6); } }

.contact-info { display: flex; flex-direction: column; gap: var(--space-4); }
.contact-info__item {
  display: flex; gap: var(--space-4); align-items: flex-start;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: var(--space-4) var(--space-5);
}
.contact-info__icon { color: var(--red-deep); flex: none; margin-top: 3px; }
.contact-info__icon svg { width: 22px; height: 22px; }
.contact-info__label { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); }
.contact-info__value { color: var(--text-heading); font-weight: 500; }
.contact-info__value a { color: var(--red-deep); text-decoration: none; }
.contact-info__value a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-decoration-thickness: 2px;
}

.form {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: var(--space-6);
  box-shadow: var(--shadow-sm);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.form-field { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: var(--space-4); }
.form-field label { font-family: var(--font-display); font-weight: 600; font-size: 0.9rem; color: var(--text-heading); }
.form-field input, .form-field textarea, .form-field select {
  padding: 0.75rem 0.9rem;
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius-sm); background: var(--white);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.form-field textarea { resize: vertical; min-height: 130px; }
.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
  outline: none; border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft);
}
.form-field.has-error input, .form-field.has-error textarea { border-color: var(--error); }
.form-field__error { font-size: 0.8rem; color: var(--error); display: none; }
.form-field.has-error .form-field__error { display: block; }
.form-status { margin-top: var(--space-4); font-size: 0.92rem; }
.form-status.is-success { color: var(--success); font-weight: 500; }

/* ----- 404 ----- */
.error-page { text-align: center; padding-block: var(--space-9); }
.error-page__code {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(5rem, 3rem + 12vw, 10rem);
  line-height: 1; color: var(--red);
  letter-spacing: -0.04em;
}
.error-page h1 { margin-top: var(--space-4); }
.error-page p { margin: var(--space-4) auto var(--space-6); max-width: 48ch; color: var(--text-muted); }

/* ----- Comparison table ----- */
.cmp-table { width: 100%; border-collapse: collapse; font-size: 0.94rem; background: var(--white); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); }
.cmp-table th, .cmp-table td { padding: 0.85rem 1rem; text-align: left; border-bottom: 1px solid var(--border); }
.cmp-table thead th { background: var(--slate-100); font-family: var(--font-display); color: var(--text-heading); }
.cmp-table tbody tr:last-child td { border-bottom: none; }
.cmp-table td:first-child { font-weight: 500; color: var(--text-heading); }
.table-scroll { overflow-x: auto; }
