/* RWK Systems - content pages (layered on top of styles.css) */

.page {
  max-width: min(920px, 100%);
  margin: 0 auto clamp(60px, 8vw, 100px);
}

.page__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--header-font);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: clamp(20px, 3vw, 28px);
  padding: 8px 0;
  transition: color 0.2s ease, transform 0.2s ease;
}
.page__back::before { content: "\2190"; font-weight: 700; margin-right: 2px; }
.page__back:hover, .page__back:focus-visible {
  color: #fff;
  transform: translateX(-3px);
  outline: none;
}

.page__title {
  font-family: var(--header-font);
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--text-on-dark);
  margin: 0 0 clamp(20px, 3vw, 32px);
  text-align: center;
  line-height: 1.15;
}

.page__hero {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: clamp(28px, 4vw, 44px);
  box-shadow: var(--shadow-soft);
}
.page__hero img { width: 100%; height: auto; display: block; }

.page__lead {
  font-family: var(--body-font);
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.6;
  color: var(--text-on-dark);
  background: rgba(255, 255, 255, 0.05);
  border-left: 3px solid var(--accent);
  padding: clamp(20px, 3vw, 28px) clamp(20px, 3vw, 32px);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 0 0 clamp(28px, 4vw, 44px);
}
.page__lead strong { font-weight: 600; color: #fff; }

.page__section {
  background: var(--surface);
  color: var(--ink);
  border-radius: var(--radius);
  padding: clamp(28px, 4vw, 44px);
  margin-bottom: clamp(20px, 3vw, 28px);
  box-shadow: var(--shadow-soft);
}

.page__section h2 {
  font-family: var(--header-font);
  font-size: clamp(22px, 2.8vw, 32px);
  font-weight: 700;
  margin: 0 0 clamp(16px, 2vw, 24px);
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 14px;
  line-height: 1.2;
}
.page__section h2::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(231, 2, 191, 0.35), transparent);
}

.page__section h3 {
  font-family: var(--header-font);
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 600;
  margin: 24px 0 12px;
  color: var(--ink);
}
.page__section h3:first-child { margin-top: 0; }

.page__section p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin: 0 0 16px;
}
.page__section p:last-child { margin-bottom: 0; }

.page__section p strong,
.page__section li strong { color: var(--ink); font-weight: 600; }

.page__section ul {
  margin: 0 0 16px;
  padding-left: 22px;
  color: var(--ink-soft);
  line-height: 1.7;
}
.page__section ul li { margin-bottom: 6px; }

.steps { display: flex; flex-direction: column; gap: clamp(24px, 3.5vw, 36px); }
.step { display: flex; gap: clamp(16px, 2.4vw, 24px); align-items: flex-start; }
.step__num {
  flex: 0 0 auto;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--gradient);
  color: #fff;
  font-family: var(--header-font);
  font-weight: 700;
  font-size: 22px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 14px rgba(231, 2, 191, 0.35);
}
.step__body { flex: 1; min-width: 0; }
.step__body h3 { margin-top: 0; }

.feature-table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 16px;
  font-size: 15px;
}
.feature-table th {
  font-family: var(--header-font);
  font-weight: 600;
  text-align: left;
  padding: 12px 14px;
  color: var(--ink);
  background: var(--surface-soft);
  border-bottom: 2px solid rgba(12, 1, 131, 0.12);
}
.feature-table td {
  padding: 12px 14px;
  color: var(--ink-soft);
  border-bottom: 1px solid rgba(12, 1, 131, 0.06);
  vertical-align: top;
  line-height: 1.5;
}
.feature-table tr:last-child td { border-bottom: 0; }
.feature-table td:first-child { color: var(--ink); font-weight: 600; white-space: nowrap; }

.code {
  background: #1f0834;
  color: #e6dbf4;
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 14px;
  line-height: 1.5;
  overflow-x: auto;
  margin: 12px 0 20px;
}
.code code { background: none; padding: 0; color: inherit; }

.page__section :not(pre) > code {
  background: var(--surface-soft);
  color: var(--ink);
  padding: 2px 8px;
  border-radius: 6px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.92em;
}

.page__section a {
  color: var(--ink);
  border-bottom: 1px solid rgba(231, 2, 191, 0.5);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.page__section a:hover,
.page__section a:focus-visible {
  color: var(--accent-2);
  border-bottom-color: var(--accent-2);
  outline: none;
}
.page__section a.btn { border-bottom: 0; }
.page__section a.btn:hover,
.page__section a.btn:focus-visible { border-bottom: 0; }

.page__cta-row {
  display: flex; flex-wrap: wrap; gap: 14px; align-items: center;
  margin: 8px 0 20px;
}

.btn--secondary {
  background: transparent;
  color: var(--ink);
  border: 2px solid var(--ink);
  box-shadow: none;
}
.btn--secondary:hover,
.btn--secondary:focus-visible {
  background: var(--ink);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(12, 1, 131, 0.35);
}
.btn--secondary::after { content: none; }

.tech-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; gap: 10px;
}
.tech-list li {
  background: var(--surface-soft);
  color: var(--ink);
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.5;
  border: 1px solid rgba(12, 1, 131, 0.08);
}

@media (max-width: 600px) {
  .page__section { padding: 24px 20px; }
  .step { flex-direction: column; gap: 12px; }
  .step__num { width: 40px; height: 40px; font-size: 18px; }
  .feature-table { font-size: 14px; }
  .feature-table th, .feature-table td { padding: 10px 12px; }
  .page__cta-row .btn { width: 100%; justify-content: center; }
}

/* Contact form */
.contact-form { display: flex; flex-direction: column; gap: 18px; }

.form-row { display: flex; flex-direction: column; gap: 6px; }
.form-row label {
  font-family: var(--header-font);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink);
}
.form-row .req { color: var(--accent); font-weight: 700; }

.form-row input,
.form-row textarea {
  font-family: var(--body-font);
  font-size: 16px;
  color: var(--ink);
  background: var(--surface-soft);
  border: 1px solid rgba(12, 1, 131, 0.15);
  border-radius: 12px;
  padding: 12px 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  width: 100%;
}
.form-row textarea { resize: vertical; min-height: 140px; font-family: var(--body-font); }
.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--accent-2);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(231, 2, 191, 0.15);
}

/* Honeypot — off-screen, invisible to real users */
.hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-actions { margin-top: 8px; }

.form-status {
  margin-top: 4px;
  padding: 14px 18px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
}
.form-status--pending { background: var(--surface-soft); color: var(--ink-soft); }
.form-status--success {
  background: rgba(45, 228, 193, 0.15);
  color: #0a5d4c;
  border: 1px solid rgba(45, 228, 193, 0.35);
}
.form-status--error {
  background: rgba(236, 80, 70, 0.10);
  color: #a52a24;
  border: 1px solid rgba(236, 80, 70, 0.35);
}

button.btn[disabled] {
  opacity: 0.6;
  cursor: wait;
  transform: none;
}

/* Contact form — success panel (replaces the form on send) */
.form-success {
  text-align: center;
  padding: clamp(24px, 3.5vw, 40px) clamp(20px, 4vw, 44px);
}

.form-success__icon {
  display: inline-block;
  margin: 0 auto 20px;
  animation: cf-pop 0.5s cubic-bezier(0.2, 0.7, 0.2, 1.2);
}

@keyframes cf-pop {
  from { transform: scale(0.6); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

.form-success__title {
  font-family: var(--header-font);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 12px;
}

.form-success__body {
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0 0 28px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

@media (prefers-reduced-motion: reduce) {
  .form-success__icon { animation: none; }
}

/* fixes: hide-safety + padding bump on success card */
[hidden] { display: none !important; }
.form-success { padding: clamp(32px, 5vw, 56px) clamp(24px, 4vw, 44px); }
