/* ============================================================
   Inner Page Shared Styles — Hero, page sections, tables, forms
   ============================================================ */

/* === INNER PAGE HERO (compact dark hero for all inner pages) === */
.page-hero {
  position: relative;
  padding: calc(80px + var(--space-3xl)) 0 var(--space-2xl);
  background: var(--bg-dark);
  text-align: center;
  overflow: hidden;
}

.page-hero__content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
}

.page-hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  color: var(--text-on-dark);
  margin-bottom: var(--space-md);
}

.page-hero .lead {
  color: var(--text-on-dark-muted);
  max-width: 640px;
  margin: 0 auto;
}

.page-hero .eyebrow {
  color: var(--accent-primary);
}

/* Accent span in hero headings */
.page-hero .highlight {
  color: var(--accent-primary);
}

/* === COMPARISON TABLES === */
.table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 auto;
  max-width: 100%;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}

.compare-table thead th {
  background: var(--bg-dark);
  color: var(--text-on-dark);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  padding: var(--space-md) var(--space-lg);
  text-align: left;
  white-space: nowrap;
}

.compare-table tbody td {
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  vertical-align: top;
}

.compare-table tbody tr:last-child td {
  border-bottom: none;
}

.compare-table tbody tr:hover {
  background: var(--bg-secondary);
}

/* AuthLN column highlight */
.compare-table .authln-col {
  color: var(--text-primary);
  font-weight: 500;
  background: rgba(255, 0, 92, 0.04);
}

.compare-table thead .authln-col {
  background: var(--accent-primary);
  color: white;
}

@media (max-width: 768px) {
  .compare-table {
    font-size: var(--text-xs);
  }
  .compare-table thead th,
  .compare-table tbody td {
    padding: var(--space-sm) var(--space-md);
  }
}

/* === OBJECTION CARDS (Compare page) === */
.objection-cards {
  display: grid;
  gap: var(--space-md);
  max-width: 800px;
  margin: 0 auto;
}

.objection-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.objection-card:hover {
  border-color: var(--border-medium);
}

.objection-card__trigger {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  width: 100%;
  padding: var(--space-lg);
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--text-primary);
  text-align: left;
}

.objection-card__trigger .label {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--accent-primary);
  flex-shrink: 0;
  padding: var(--space-2xs) var(--space-sm);
  background: var(--accent-primary-light);
  border-radius: var(--radius-sm);
}

.objection-card__response {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 var(--space-lg);
}

.objection-card.is-open .objection-card__response {
  max-height: 200px;
  padding: 0 var(--space-lg) var(--space-lg);
}

.objection-card__response p {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
}

/* === WIN REASONS (Compare page) === */
.win-reasons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  max-width: 900px;
  margin: 0 auto;
}

.win-reason {
  text-align: center;
  padding: var(--space-xl);
}

.win-reason__icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-md);
  border-radius: var(--radius-full);
  background: var(--accent-primary-light);
  color: var(--accent-primary);
}

.win-reason h4 {
  margin-bottom: var(--space-sm);
}

@media (max-width: 768px) {
  .win-reasons { grid-template-columns: 1fr; }
}

/* === FORMS === */
.form-group {
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--text-primary);
  background: var(--bg-primary);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px var(--accent-primary-light);
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3e%3cpath fill='%234B5563' d='M6 8L1 3h10z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.btn--block {
  display: block;
  width: 100%;
}

/* === CONTACT SPLIT LAYOUT === */
.contact-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: start;
}

@media (max-width: 768px) {
  .contact-split { grid-template-columns: 1fr; }
}

/* Contact details list */
.contact-detail {
  margin-bottom: var(--space-sm);
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.contact-detail a {
  color: var(--accent-secondary);
  text-decoration: none;
}

.contact-detail a:hover {
  text-decoration: underline;
}

/* What to expect numbered list */
.expect-list {
  list-style: none;
  padding: 0;
  margin: var(--space-md) 0;
}

.expect-list li {
  display: flex;
  gap: var(--space-sm);
  align-items: flex-start;
  padding: var(--space-sm) 0;
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.expect-list li span {
  color: var(--accent-primary);
  font-weight: 700;
  flex-shrink: 0;
}

/* === ABOUT PAGE — Team cards === */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
  max-width: 900px;
  margin: 0 auto;
}

.team-card {
  text-align: center;
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  border-top: 3px solid var(--accent-primary);
  transition: all var(--transition-base);
}

.team-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.team-card--centered {
  grid-column: 1 / -1;
  max-width: 420px;
  margin: 0 auto;
}

.team-card__photo {
  width: 120px;
  height: 120px;
  border-radius: var(--radius-full);
  object-fit: cover;
  margin: 0 auto var(--space-md);
  display: block;
  border: 3px solid var(--accent-primary);
}

.team-card__name {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-2xs);
}

.team-card__role {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--accent-primary);
  margin-bottom: var(--space-sm);
}

.team-card__bio {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: var(--leading-normal);
}

@media (max-width: 600px) {
  .team-grid { grid-template-columns: 1fr; }
  .team-card--centered { max-width: none; }
}

/* === ABOUT PAGE — Detail list === */
.detail-list {
  list-style: none;
  padding: 0;
}

.detail-list li {
  display: flex;
  justify-content: space-between;
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--border-subtle);
  font-size: var(--text-sm);
}

.detail-list li:last-child { border-bottom: none; }

.detail-list li strong {
  color: var(--text-primary);
}

.detail-list li span {
  color: var(--text-secondary);
}

/* === ABOUT PAGE — Split layout === */
.about-split {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--space-3xl);
  align-items: start;
}

@media (max-width: 768px) {
  .about-split { grid-template-columns: 1fr; }
}

/* === HOW IT WORKS — 5-step vertical flow === */
.flow-steps {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
}

.flow-steps::before {
  content: '';
  position: absolute;
  left: 28px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border-subtle);
}

.flow-step {
  display: flex;
  gap: var(--space-xl);
  padding: var(--space-lg) 0;
  position: relative;
}

.flow-step__number {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: var(--accent-primary);
  color: white;
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 700;
  z-index: 1;
}

.flow-step__content h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-xs);
}

.flow-step__content .step-timing {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  font-weight: 400;
}

.flow-step__content p {
  font-size: var(--text-sm);
}

/* === INTEGRATION CATEGORIES (How It Works page) === */
.integration-categories {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
}

.integration-category {
  padding: var(--space-lg);
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
}

.integration-category .eyebrow {
  margin-bottom: var(--space-md);
}

.integration-category .trust-bar {
  justify-content: flex-start;
  gap: var(--space-sm) var(--space-md);
  padding: 0;
}

@media (max-width: 768px) {
  .integration-categories { grid-template-columns: 1fr; }
}

/* === FORM STATUS MESSAGES === */
.form-status--success {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid var(--success);
  color: var(--success);
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  text-align: center;
  font-weight: 500;
}

.form-status--error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid var(--error);
  color: var(--error);
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  text-align: center;
  font-weight: 500;
}

/* === UTILITY === */
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mt-2xl { margin-top: var(--space-2xl); }
.text-sm { font-size: var(--text-sm); }
.text-xs { font-size: var(--text-xs); }
.text-center { text-align: center; }
.fw-600 { font-weight: 600; }
.d-none { display: none; }

/* === CTA SECTION (bottom of inner pages) === */
.cta-section {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.cta-section h2 {
  margin-bottom: var(--space-md);
}

.cta-section .lead {
  margin-bottom: var(--space-xl);
}

.cta-section .btn + .btn {
  margin-left: var(--space-md);
}

@media (max-width: 480px) {
  .cta-section .btn {
    display: block;
    width: 100%;
  }
  .cta-section .btn + .btn {
    margin-left: 0;
    margin-top: var(--space-md);
  }
}
