/* Module detail pages */
.module-detail__features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: var(--space-md);
}

.module-detail__screenshot-section {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

.module-detail__screenshot-section--reverse {
  grid-template-columns: 1fr 1.2fr;
}

@media (max-width: 900px) {
  .module-detail__screenshot-section,
  .module-detail__screenshot-section--reverse {
    grid-template-columns: 1fr;
  }
}

.module-detail__text h3 {
  margin-bottom: var(--space-md);
  font-size: var(--text-2xl);
}

.module-detail__text p {
  margin-bottom: var(--space-md);
}

.module-detail__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.module-detail__list-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  font-size: var(--text-sm);
  color: var(--ink-secondary);
  line-height: 1.7;
}

.module-detail__list-item::before {
  content: '';
  flex-shrink: 0;
  width: 5px;
  height: 5px;
  margin-top: 0.6em;
  background: var(--brand-primary);
  border-radius: 50%;
  box-shadow: 0 0 6px oklch(0.550 0.180 353.3 / 0.4);
}

/* Features overview page */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: var(--space-md);
}

.feature-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-lg);
  padding: var(--space-xl);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  align-items: start;
  transition: all var(--duration-slow) var(--ease-out-expo);
  position: relative;
  overflow: hidden;
}

.feature-item:hover {
  border-color: var(--border-glow);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px oklch(0 0 0 / 0.2);
}

.feature-item__number {
  font-size: var(--text-2xl);
  font-weight: 900;
  background: linear-gradient(135deg, var(--brand-primary-dim), var(--brand-primary-muted));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  opacity: 0.7;
}

.feature-item__content h4 {
  font-size: var(--text-base);
  font-weight: 700;
  margin-bottom: var(--space-2xs);
  color: var(--ink-primary);
}

.feature-item__content p {
  font-size: var(--text-sm);
  color: var(--ink-secondary);
  line-height: 1.8;
}

/* Contact / Pricing page */
.contact-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: start;
}

@media (max-width: 900px) {
  .contact-section {
    grid-template-columns: 1fr;
  }
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xs);
}

.form-group label {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--ink-secondary);
}

.form-group input,
.form-group textarea,
.form-group select {
  padding: var(--space-sm) var(--space-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  color: var(--ink-primary);
  font-family: inherit;
  font-size: var(--text-sm);
  transition: all var(--duration-fast) var(--ease-out-quart);
  min-height: 44px;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px oklch(0.550 0.180 353.3 / 0.1), 0 0 20px oklch(0.550 0.180 353.3 / 0.05);
  background: var(--bg-elevated);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--ink-muted);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23888' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 12px center;
  padding-left: 36px;
}

.contact-info {
  padding: var(--space-xl);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
}

.contact-info__item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding-block: var(--space-md);
}

.contact-info__item + .contact-info__item {
  border-top: 1px solid var(--border-subtle);
}

.contact-info__icon {
  width: 2.25rem;
  height: 2.25rem;
  display: grid;
  place-items: center;
  background: oklch(0.550 0.180 353.3 / 0.08);
  border: 1px solid oklch(0.550 0.180 353.3 / 0.15);
  border-radius: var(--radius-md);
  color: var(--brand-primary-light);
  flex-shrink: 0;
}

.contact-info__label {
  font-size: var(--text-xs);
  color: var(--ink-muted);
  margin-bottom: 2px;
}

.contact-info__value {
  font-size: var(--text-sm);
  color: var(--ink-primary);
  font-weight: 500;
}

/* Workflow diagram */
.workflow {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
  justify-content: center;
  padding: var(--space-xl) 0;
}

.workflow__step {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--ink-primary);
  transition: all var(--duration-normal) var(--ease-out-quart);
  white-space: nowrap;
}

.workflow__step:hover {
  border-color: var(--border-glow);
  box-shadow: 0 0 16px oklch(0.550 0.180 353.3 / 0.1);
}

.workflow__arrow {
  color: var(--brand-primary-dim);
  font-size: var(--text-lg);
  opacity: 0.6;
}

/* Comparison table */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-surface);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}

.comparison-table th {
  padding: var(--space-sm) var(--space-md);
  background: var(--bg-elevated);
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--ink-primary);
  text-align: right;
  border-bottom: 1px solid var(--border-subtle);
}

.comparison-table td {
  padding: var(--space-sm) var(--space-md);
  font-size: var(--text-sm);
  color: var(--ink-secondary);
  border-bottom: 1px solid oklch(1 0 0 / 0.02);
  transition: background var(--duration-fast) var(--ease-out-quart);
}

.comparison-table tr:hover td {
  background: oklch(1 0 0 / 0.02);
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.comparison-table .check {
  color: var(--success);
  font-weight: 700;
}

.comparison-table .cross {
  color: var(--ink-muted);
  opacity: 0.4;
}

/* Gradient section dividers */
.section--gradient-top::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 10%, var(--brand-primary-dim), transparent 90%);
}
