/* ═══════════════════════════════════════════════════════════════
   El Captain — pages.css
   Styles for internal pages: features.html, contact.html, pricing.html
   Light theme, professional, RTL-first
═══════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────
   MODULE HERO — compact hero for internal pages
───────────────────────────────────────────── */
.module-hero {
  padding-top: 120px;  /* clear sticky nav */
  padding-bottom: 60px;
  background: #F0F4F8;
  position: relative;
  overflow: hidden;
  text-align: start;
}

/* Subtle grid texture */
.module-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,0,0,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.04) 1px, transparent 1px);
  background-image:
    linear-gradient(oklch(0.4 0.05 240 / 0.04) 1px, transparent 1px),
    linear-gradient(90deg, oklch(0.4 0.05 240 / 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.module-hero__content {
  position: relative;
  z-index: 1;
  max-width: 680px;
}

.module-hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: rgba(232, 62, 79, 0.1);
  background: oklch(0.550 0.180 353.3 / 0.1);
  border: 1px solid rgba(232, 62, 79, 0.2);
  border: 1px solid oklch(0.550 0.180 353.3 / 0.2);
  border-radius: 999px;
  font-size: var(--text-xs, 0.75rem);
  font-weight: 600;
  color: var(--brand-primary, #e83e4f);
  letter-spacing: 0.04em;
  margin-bottom: var(--space-sm, 12px);
}

.module-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--ink-primary, #0d1117);
  line-height: 1.25;
  margin-bottom: var(--space-md, 16px);
}

.module-hero p {
  font-size: var(--text-lg, 1.125rem);
  color: var(--ink-secondary, #4a5568);
  line-height: 1.8;
  max-width: 560px;
}

/* ─────────────────────────────────────────────
   BREADCRUMB
───────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: var(--space-md, 16px);
  font-size: var(--text-sm, 0.875rem);
  color: var(--ink-muted, #9ca3af);
  list-style: none;
  padding: 0;
}

.breadcrumb__item {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Separator between items */
.breadcrumb__item + .breadcrumb__item::before {
  content: '/';
  opacity: 0.5;
  font-size: 0.75rem;
}

.breadcrumb__item a {
  color: var(--ink-muted, #9ca3af);
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumb__item a:hover {
  color: var(--brand-primary, #e83e4f);
  text-decoration: underline;
}

/* Last item: current page — darker, no link */
.breadcrumb__item:last-child,
.breadcrumb__item[aria-current="page"] {
  color: var(--ink-secondary, #4a5568);
  font-weight: 500;
}

.breadcrumb__item:last-child a,
.breadcrumb__item[aria-current="page"] a {
  color: inherit;
  pointer-events: none;
  text-decoration: none;
}

/* ─────────────────────────────────────────────
   FEATURE SECTIONS — alternating white / gray
───────────────────────────────────────────── */
.feature-section {
  padding-block: var(--space-3xl, 80px);
  background: #ffffff;
}

.feature-section:nth-of-type(even) {
  background: #F0F4F8;
}

.feature-section__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl, 48px);
  align-items: center;
}

/* Flip columns on odd sections */
.feature-section:nth-of-type(odd) .feature-section__inner {
  direction: ltr; /* flip order */
}

.feature-section:nth-of-type(odd) .feature-section__text,
.feature-section:nth-of-type(odd) .feature-section__visual {
  direction: rtl; /* restore text direction inside */
}

.feature-section__text h2 {
  font-size: clamp(1.375rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--ink-primary, #0d1117);
  margin-bottom: var(--space-md, 16px);
  line-height: 1.3;
}

.feature-section__text p {
  font-size: var(--text-base, 1rem);
  color: var(--ink-secondary, #4a5568);
  line-height: 1.8;
  margin-bottom: var(--space-lg, 24px);
}

/* Visual placeholder / icon area */
.feature-section__visual {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  background: var(--bg-surface, #ffffff);
  border: 1px solid var(--border-subtle, rgba(0,0,0,0.08));
  border-radius: var(--radius-xl, 16px);
  overflow: hidden;
}

.feature-section__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 900px) {
  .feature-section__inner,
  .feature-section:nth-of-type(odd) .feature-section__inner {
    grid-template-columns: 1fr;
    direction: rtl;
  }
  .feature-section__visual {
    min-height: 200px;
  }
}

/* ─────────────────────────────────────────────
   FEATURE LIST — checkmark bullets
───────────────────────────────────────────── */
.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm, 12px);
}

.feature-list__item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm, 12px);
  padding: var(--space-xs, 8px) 0;
  font-size: var(--text-sm, 0.875rem);
  color: var(--ink-secondary, #4a5568);
  line-height: 1.7;
}

/* Teal checkmark before each item */
.feature-list__item::before {
  content: '';
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: block;
  background: var(--brand-teal, #14b8a6);
  border-radius: 50%;
  margin-top: 2px;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 12px;
  background-position: center;
  background-repeat: no-repeat;
}

/* Variant: custom icon instead of auto-generated checkmark */
.feature-list__item--icon::before {
  display: none; /* icon provided inline */
}

.feature-list__item-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--brand-teal, #14b8a6);
  margin-top: 2px;
}

/* ─────────────────────────────────────────────
   MODULE DETAIL — per-module sections on features page
───────────────────────────────────────────── */
.module-detail {
  padding-block: var(--space-3xl, 80px);
}

.module-detail__header {
  display: flex;
  align-items: center;
  gap: var(--space-md, 16px);
  margin-bottom: var(--space-lg, 24px);
}

.module-detail__icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  background: rgba(232, 62, 79, 0.08);
  background: oklch(0.550 0.180 353.3 / 0.08);
  border: 1px solid rgba(232, 62, 79, 0.15);
  border: 1px solid oklch(0.550 0.180 353.3 / 0.15);
  border-radius: var(--radius-lg, 12px);
  color: var(--brand-primary, #e83e4f);
  flex-shrink: 0;
}

.module-detail__icon svg {
  width: 26px;
  height: 26px;
}

.module-detail__header h2 {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 800;
  color: var(--ink-primary, #0d1117);
  line-height: 1.3;
  margin: 0;
}

.module-detail__description {
  font-size: var(--text-base, 1rem);
  color: var(--ink-secondary, #4a5568);
  line-height: 1.8;
  max-width: 640px;
  margin-bottom: var(--space-xl, 32px);
}

/* 2-column feature grid inside each module */
.module-detail__features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: var(--space-md, 16px);
}

.module-detail__feature-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm, 12px);
  padding: var(--space-md, 16px);
  background: var(--bg-surface, #ffffff);
  border: 1px solid var(--border-subtle, rgba(0,0,0,0.08));
  border-radius: var(--radius-lg, 12px);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.module-detail__feature-item:hover {
  border-color: rgba(232, 62, 79, 0.3);
  border-color: oklch(0.550 0.180 353.3 / 0.3);
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  box-shadow: 0 4px 16px oklch(0 0 0 / 0.06);
}

.module-detail__feature-item-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  background: rgba(232, 62, 79, 0.06);
  background: oklch(0.550 0.180 353.3 / 0.06);
  border-radius: var(--radius-md, 8px);
  color: var(--brand-primary, #e83e4f);
}

.module-detail__feature-item-text {
  font-size: var(--text-sm, 0.875rem);
  color: var(--ink-secondary, #4a5568);
  line-height: 1.6;
  font-weight: 500;
}

/* Screenshot/text alternating layout */
.module-detail__screenshot-section {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-2xl, 48px);
  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, 16px);
  font-size: var(--text-2xl, 1.5rem);
  font-weight: 700;
  color: var(--ink-primary, #0d1117);
}

.module-detail__text p {
  margin-bottom: var(--space-md, 16px);
  color: var(--ink-secondary, #4a5568);
  line-height: 1.8;
}

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

.module-detail__list-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm, 12px);
  font-size: var(--text-sm, 0.875rem);
  color: var(--ink-secondary, #4a5568);
  line-height: 1.7;
}

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

/* ─────────────────────────────────────────────
   CONTACT SECTION
───────────────────────────────────────────── */
.contact-section {
  display: grid;
  grid-template-columns: 3fr 2fr; /* form 60% / sidebar 40% */
  gap: var(--space-2xl, 48px);
  align-items: start;
}

@media (max-width: 900px) {
  .contact-section {
    grid-template-columns: 1fr;
  }
  /* Form appears first on mobile */
  .contact-section > .contact-form {
    order: -1;
  }
}

/* ─────────────────────────────────────────────
   CONTACT FORM
───────────────────────────────────────────── */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md, 16px);
}

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

.form-group label {
  font-size: var(--text-sm, 0.875rem);
  font-weight: 700;
  color: var(--ink-primary, #0d1117);
  letter-spacing: 0.01em;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  background: #ffffff;
  border: 1.5px solid #d1d5db;
  border-radius: 8px; /* rounded-md */
  color: var(--ink-primary, #0d1117);
  font-family: inherit;
  font-size: var(--text-sm, 0.875rem);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  min-height: 44px;
  line-height: 1.5;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--brand-teal, #14b8a6);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.15);
  background: #fafffe;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #9ca3af;
}

.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='none' viewBox='0 0 24 24'%3E%3Cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 12px center; /* RTL: arrow on left */
  padding-inline-start: 40px;
  cursor: pointer;
}

/* Error state */
.form-group--error input,
.form-group--error textarea,
.form-group--error select {
  border-color: #ef4444;
  background: #fff8f8;
}

.form-group--error input:focus,
.form-group--error textarea:focus,
.form-group--error select:focus {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

.form-error {
  font-size: var(--text-xs, 0.75rem);
  color: #ef4444;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
}

.form-error::before {
  content: '';
  display: inline-block;
  width: 12px;
  height: 12px;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z'/%3E%3Cline x1='12' y1='9' x2='12' y2='13'/%3E%3Cline x1='12' y1='17' x2='12.01' y2='17'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  vertical-align: middle;
}

/* ─────────────────────────────────────────────
   CONTACT INFO SIDEBAR
───────────────────────────────────────────── */
.contact-info {
  padding: var(--space-xl, 32px);
  background: var(--bg-surface, #ffffff);
  border: 1px solid var(--border-subtle, rgba(0,0,0,0.08));
  border-radius: var(--radius-xl, 16px);
  display: flex;
  flex-direction: column;
  gap: 0;
}

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

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

.contact-info__icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: rgba(232, 62, 79, 0.08);
  background: oklch(0.550 0.180 353.3 / 0.08);
  border: 1px solid rgba(232, 62, 79, 0.15);
  border: 1px solid oklch(0.550 0.180 353.3 / 0.15);
  border-radius: var(--radius-md, 8px);
  color: var(--brand-primary, #e83e4f);
  flex-shrink: 0;
}

.contact-info__icon svg {
  width: 18px;
  height: 18px;
}

.contact-info__label {
  font-size: var(--text-xs, 0.75rem);
  color: var(--ink-muted, #9ca3af);
  margin-bottom: 3px;
  font-weight: 500;
}

.contact-info__value {
  font-size: var(--text-sm, 0.875rem);
  color: var(--ink-primary, #0d1117);
  font-weight: 600;
  line-height: 1.4;
}

/* WhatsApp card: green background, white text */
.contact-info__whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm, 12px);
  width: 100%;
  padding: var(--space-md, 16px) var(--space-lg, 24px);
  margin-top: var(--space-md, 16px);
  background: #25d366;
  color: #ffffff;
  border-radius: var(--radius-lg, 12px);
  font-weight: 700;
  font-size: var(--text-sm, 0.875rem);
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.contact-info__whatsapp:hover {
  background: #1da855;
  transform: translateY(-1px);
  color: #ffffff;
}

.contact-info__whatsapp svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* ─────────────────────────────────────────────
   PRICING SECTION
───────────────────────────────────────────── */
.pricing-section {
  padding-block: var(--space-3xl, 80px);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg, 24px);
  align-items: start;
}

@media (max-width: 1024px) {
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }
}

/* ─────────────────────────────────────────────
   PRICING CARDS
───────────────────────────────────────────── */
.pricing-card {
  background: #ffffff;
  border: 1.5px solid #e5e7eb;
  border-radius: 16px; /* rounded-xl */
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
  position: relative;
}

.pricing-card:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
}

/* Featured card: teal border */
.pricing-card--featured {
  border-color: var(--brand-teal, #14b8a6);
  box-shadow: 0 8px 32px rgba(20, 184, 166, 0.15);
}

.pricing-card--featured:hover {
  box-shadow: 0 16px 48px rgba(20, 184, 166, 0.25);
}

/* "الأكثر شيوعاً" badge */
.pricing-card__badge {
  position: absolute;
  top: 16px;
  inset-inline-start: 50%;
  transform: translateX(50%); /* RTL: center badge */
  padding: 4px 14px;
  background: var(--brand-teal, #14b8a6);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 999px;
  letter-spacing: 0.04em;
  white-space: nowrap;
  z-index: 1;
}

/* LTR badge adjustment */
[dir="ltr"] .pricing-card__badge {
  transform: translateX(-50%);
  inset-inline-start: 50%;
}

/* Card header */
.pricing-card__header {
  padding: var(--space-xl, 32px) var(--space-xl, 32px) var(--space-lg, 24px);
  border-bottom: 1px solid #f3f4f6;
  background: #fafafa;
}

.pricing-card--featured .pricing-card__header {
  background: rgba(20, 184, 166, 0.08);
  background: oklch(0.93 0.04 180 / 0.4);
}

.pricing-card__plan {
  font-size: var(--text-sm, 0.875rem);
  font-weight: 700;
  color: var(--ink-secondary, #4a5568);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-xs, 8px);
}

.pricing-card__price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  flex-wrap: wrap;
}

.pricing-card__amount {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 900;
  color: var(--ink-primary, #0d1117);
  line-height: 1;
}

.pricing-card--featured .pricing-card__amount {
  color: var(--brand-teal, #14b8a6);
}

.pricing-card__currency {
  font-size: var(--text-base, 1rem);
  font-weight: 600;
  color: var(--ink-secondary, #4a5568);
  align-self: flex-start;
  padding-top: 6px;
}

.pricing-card__period {
  font-size: var(--text-xs, 0.75rem);
  color: var(--ink-muted, #9ca3af);
  align-self: flex-end;
  padding-bottom: 4px;
}

.pricing-card__description {
  font-size: var(--text-sm, 0.875rem);
  color: var(--ink-muted, #9ca3af);
  margin-top: var(--space-sm, 12px);
  line-height: 1.5;
}

/* Card body: feature list */
.pricing-card__body {
  padding: var(--space-xl, 32px);
  flex: 1;
}

.pricing-card__features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm, 12px);
}

.pricing-card__feature {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm, 12px);
  font-size: var(--text-sm, 0.875rem);
  color: var(--ink-secondary, #4a5568);
  line-height: 1.6;
}

.pricing-card__feature::before {
  content: '';
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  display: block;
  background: var(--brand-teal, #14b8a6);
  border-radius: 50%;
  margin-top: 2px;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 10px;
  background-position: center;
  background-repeat: no-repeat;
}

/* Disabled feature */
.pricing-card__feature--disabled {
  opacity: 0.4;
}

.pricing-card__feature--disabled::before {
  content: '–';
  background: #d1d5db;
  color: #6b7280;
}

/* Divider line inside feature list */
.pricing-card__feature-divider {
  height: 1px;
  background: #f3f4f6;
  margin-block: var(--space-xs, 8px);
}

/* Card footer: CTA button */
.pricing-card__footer {
  padding: 0 var(--space-xl, 32px) var(--space-xl, 32px);
}

.pricing-card__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 14px var(--space-lg, 24px);
  border-radius: var(--radius-lg, 12px);
  font-weight: 700;
  font-size: var(--text-sm, 0.875rem);
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
  font-family: inherit;
}

/* Default CTA: outlined */
.pricing-card__cta--outline {
  background: transparent;
  border: 1.5px solid #d1d5db;
  color: var(--ink-primary, #0d1117);
}

.pricing-card__cta--outline:hover {
  border-color: var(--brand-teal, #14b8a6);
  color: var(--brand-teal, #14b8a6);
  background: rgba(20, 184, 166, 0.04);
}

/* Featured CTA: filled teal */
.pricing-card__cta--primary {
  background: var(--brand-teal, #14b8a6);
  color: #ffffff;
  border: 1.5px solid transparent;
  box-shadow: 0 4px 16px rgba(20, 184, 166, 0.3);
}

.pricing-card__cta--primary:hover {
  background: #0d9488;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(20, 184, 166, 0.4);
}

/* ─────────────────────────────────────────────
   FEATURES OVERVIEW GRID
───────────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: var(--space-md, 16px);
}

.feature-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-lg, 24px);
  padding: var(--space-xl, 32px);
  background: var(--bg-surface, #ffffff);
  border: 1px solid var(--border-subtle, rgba(0,0,0,0.08));
  border-radius: var(--radius-xl, 16px);
  align-items: start;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-item:hover {
  border-color: rgba(232, 62, 79, 0.3);
  border-color: oklch(0.550 0.180 353.3 / 0.3);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.feature-item__number {
  font-size: var(--text-2xl, 1.5rem);
  font-weight: 900;
  background: linear-gradient(135deg, rgba(232, 62, 79, 0.4), rgba(232, 62, 79, 0.2));
  background: linear-gradient(135deg, oklch(0.550 0.180 353.3 / 0.4), oklch(0.550 0.180 353.3 / 0.2));
  -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, 1rem);
  font-weight: 700;
  margin-bottom: var(--space-2xs, 6px);
  color: var(--ink-primary, #0d1117);
}

.feature-item__content p {
  font-size: var(--text-sm, 0.875rem);
  color: var(--ink-secondary, #4a5568);
  line-height: 1.8;
}

/* ─────────────────────────────────────────────
   WORKFLOW DIAGRAM
───────────────────────────────────────────── */
.workflow {
  display: flex;
  align-items: center;
  gap: var(--space-sm, 12px);
  flex-wrap: wrap;
  justify-content: center;
  padding: var(--space-xl, 32px) 0;
}

.workflow__step {
  display: flex;
  align-items: center;
  gap: var(--space-xs, 8px);
  padding: var(--space-sm, 12px) var(--space-md, 16px);
  background: var(--bg-surface, #ffffff);
  border: 1px solid var(--border-subtle, rgba(0,0,0,0.08));
  border-radius: var(--radius-lg, 12px);
  font-size: var(--text-sm, 0.875rem);
  font-weight: 500;
  color: var(--ink-primary, #0d1117);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.workflow__step:hover {
  border-color: rgba(232, 62, 79, 0.3);
  border-color: oklch(0.550 0.180 353.3 / 0.3);
  box-shadow: 0 0 16px rgba(232, 62, 79, 0.1);
  box-shadow: 0 0 16px oklch(0.550 0.180 353.3 / 0.1);
}

.workflow__arrow {
  color: var(--brand-primary, #e83e4f);
  font-size: var(--text-lg, 1.125rem);
  opacity: 0.5;
}

/* ─────────────────────────────────────────────
   COMPARISON TABLE
───────────────────────────────────────────── */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-surface, #ffffff);
  border-radius: var(--radius-xl, 16px);
  overflow: hidden;
  border: 1px solid var(--border-subtle, rgba(0,0,0,0.08));
}

.comparison-table th {
  padding: var(--space-sm, 12px) var(--space-md, 16px);
  background: #F0F4F8;
  font-weight: 700;
  font-size: var(--text-sm, 0.875rem);
  color: var(--ink-primary, #0d1117);
  text-align: start;
  border-bottom: 1px solid var(--border-subtle, rgba(0,0,0,0.08));
}

.comparison-table td {
  padding: var(--space-sm, 12px) var(--space-md, 16px);
  font-size: var(--text-sm, 0.875rem);
  color: var(--ink-secondary, #4a5568);
  border-bottom: 1px solid #f9fafb;
  transition: background 0.15s ease;
}

.comparison-table tr:hover td {
  background: #fafafa;
}

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

.comparison-table .check {
  color: var(--brand-teal, #14b8a6);
  font-weight: 800;
  font-size: 1rem;
}

.comparison-table .cross {
  color: #d1d5db;
  font-weight: 700;
  font-size: 1rem;
}

/* ─────────────────────────────────────────────
   GRADIENT SECTION DIVIDERS
───────────────────────────────────────────── */
.section--gradient-top {
  position: relative;
}

.section--gradient-top::before {
  content: '';
  position: absolute;
  top: 0;
  inset-inline: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 10%, rgba(232, 62, 79, 0.3), transparent 90%);
  background: linear-gradient(90deg, transparent 10%, oklch(0.550 0.180 353.3 / 0.3), transparent 90%);
}

/* ─────────────────────────────────────────────
   FORM SUBMIT BUTTON
───────────────────────────────────────────── */
.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm, 12px);
  padding: 14px var(--space-xl, 32px);
  background: var(--brand-primary, #e83e4f);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-lg, 12px);
  font-size: var(--text-base, 1rem);
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  align-self: flex-start;
}

.btn-submit:hover {
  background: #c9303f;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(232, 62, 79, 0.3);
  box-shadow: 0 6px 20px oklch(0.550 0.180 353.3 / 0.3);
}

.btn-submit:active {
  transform: translateY(0);
}

.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* ─────────────────────────────────────────────
   SWIMMING PAGE
───────────────────────────────────────────── */

.pool-pain__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
}

.pool-pain-card {
  padding: var(--space-xl);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.pool-pain-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
  box-shadow: 0 12px 32px oklch(0 0 0 / 0.08);
}

.pool-pain-card__icon {
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto var(--space-md);
  display: grid;
  place-items: center;
  border-radius: var(--radius-lg);
  font-size: 1.5rem;
}

.pool-pain-card__icon--red {
  background: #fde8e8;
  background: oklch(0.95 0.04 25);
  color: #dc2626;
  color: oklch(0.55 0.2 25);
}

.pool-pain-card__icon--amber {
  background: #fef3c7;
  background: oklch(0.95 0.04 80);
  color: #b45309;
  color: oklch(0.55 0.15 80);
}

.pool-pain-card__icon--blue {
  background: #dfe8f5;
  background: oklch(0.93 0.04 230);
  color: #6d28d9;
  color: oklch(0.50 0.15 230);
}

.pool-pain-card__icon--green {
  background: #dff5e8;
  background: oklch(0.93 0.05 155);
  color: #0f7a3f;
  color: oklch(0.45 0.15 155);
}

.pool-pain-card__title {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--ink-primary);
  margin-bottom: var(--space-sm);
}

.pool-pain-card__desc {
  font-size: var(--text-sm);
  color: var(--ink-secondary);
  line-height: 1.7;
}

/* Grid Feature showcase */
.grid-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

@media (max-width: 768px) {
  .grid-feature {
    grid-template-columns: 1fr;
  }
}

.grid-feature__content {
  order: 2;
}

.grid-feature__visual {
  order: 1;
}

.grid-feature__list {
  list-style: none;
  padding: 0;
  margin: var(--space-lg) 0 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.grid-feature__list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  font-size: var(--text-base);
  color: var(--ink-secondary);
  line-height: 1.7;
}

.grid-feature__list li::before {
  content: '';
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  display: block;
  background: #dff5ec;
  background: oklch(0.93 0.05 170);
  border-radius: var(--radius-full);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='%23178a5b' stroke-width='3' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 12px;
  background-position: center;
  background-repeat: no-repeat;
}

/* Lane visualization */
.lane-viz {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: var(--space-lg);
  overflow: hidden;
}

.lane-viz__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--border-subtle);
}

.lane-viz__title {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--ink-primary);
}

.lane-viz__time {
  font-size: var(--text-xs);
  color: var(--ink-muted);
  direction: ltr;
}

.lane-viz__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px;
}

.lane-viz__cell {
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  font-size: var(--text-xs);
  font-weight: 600;
  transition: transform 0.2s;
}

.lane-viz__cell--free {
  background: #eef4fa;
  background: oklch(0.96 0.02 230);
  color: #4a72a8;
  color: oklch(0.55 0.1 230);
  border: 1px dashed #b3c9e0;
  border: 1px dashed oklch(0.8 0.05 230);
}

.lane-viz__cell--booked {
  background: #dff5ec;
  background: oklch(0.93 0.06 170);
  color: #1a6b4a;
  color: oklch(0.35 0.12 170);
}

.lane-viz__cell--external {
  background: #fdf5e0;
  background: oklch(0.93 0.05 60);
  color: #8a6d1b;
  color: oklch(0.45 0.12 60);
}

.lane-viz__cell--conflict {
  background: #fde8e8;
  background: oklch(0.93 0.06 25);
  color: #b91c1c;
  color: oklch(0.45 0.15 25);
  animation: pulse-conflict 1.5s ease-in-out infinite;
}

@keyframes pulse-conflict {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* Screenshot showcase */
.screenshot-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
}

@media (max-width: 768px) {
  .screenshot-showcase {
    grid-template-columns: 1fr;
  }
}

.screenshot-showcase__item {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  box-shadow: 0 4px 24px oklch(0 0 0 / 0.08);
  border: 1px solid var(--border-subtle);
}

.screenshot-showcase__item img {
  width: 100%;
  height: auto;
  display: block;
}

.screenshot-showcase__caption {
  padding: var(--space-md) var(--space-lg);
  background: var(--bg-surface);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--ink-primary);
  text-align: center;
}

/* Product gallery (horizontal scroll) */
.product-gallery {
  display: flex;
  gap: var(--space-lg);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: var(--space-md);
  -webkit-overflow-scrolling: touch;
}

.product-gallery::-webkit-scrollbar {
  height: 6px;
}

.product-gallery::-webkit-scrollbar-track {
  background: #f0f0f0;
  background: oklch(0.95 0 0);
  border-radius: 3px;
}

.product-gallery::-webkit-scrollbar-thumb {
  background: #999999;
  background: oklch(0.7 0 0);
  border-radius: 3px;
}

.product-gallery__item {
  flex: 0 0 min(400px, 80vw);
  scroll-snap-align: start;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  box-shadow: 0 4px 24px oklch(0 0 0 / 0.08);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
}

.product-gallery__item img {
  width: 100%;
  height: auto;
  display: block;
}

.product-gallery__caption {
  padding: var(--space-sm) var(--space-md);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--ink-primary);
  text-align: center;
}

/* Swimming teaser banner */
.swimming-teaser {
  background: linear-gradient(135deg, #1a2d4a, #1a3d5c);
  background: linear-gradient(135deg, oklch(0.25 0.06 230), oklch(0.30 0.08 200));
  border-radius: var(--radius-xl);
  padding: var(--space-xl) var(--space-2xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

@media (max-width: 640px) {
  .swimming-teaser {
    flex-direction: column;
    text-align: center;
  }
}

.swimming-teaser__text {
  color: white;
}

.swimming-teaser__title {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: 4px;
}

.swimming-teaser__desc {
  font-size: var(--text-sm);
  opacity: 0.8;
}

.swimming-teaser__btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-lg);
  background: white;
  color: var(--brand-primary);
  font-weight: 700;
  font-size: var(--text-sm);
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}

.swimming-teaser__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  box-shadow: 0 8px 24px oklch(0 0 0 / 0.2);
}


/* ─────────────────────────────────────────────
   FAQ ACCORDION
───────────────────────────────────────────── */
.faq-category {
  margin-bottom: var(--space-xl);
}

.faq-category__title {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--ink-primary);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--border-subtle);
}

.faq-item {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-sm);
  overflow: hidden;
  background: var(--bg-surface);
}

.faq-item summary {
  padding: var(--space-md) var(--space-lg);
  font-weight: 600;
  color: var(--ink-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '';
  width: 20px;
  height: 20px;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  transition: transform 0.2s;
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  transform: rotate(180deg);
}

.faq-item__answer {
  padding: 0 var(--space-lg) var(--space-lg);
  color: var(--ink-secondary);
  line-height: 1.8;
  font-size: var(--text-sm);
}

/* ─────────────────────────────────────────────
   COMPARE TABLE
───────────────────────────────────────────── */
.compare-section {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.compare-full-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
  min-width: 800px;
  background: var(--bg-surface);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}

.compare-full-table th,
.compare-full-table td {
  padding: 14px 16px;
  text-align: center;
  border-bottom: 1px solid var(--border-subtle);
}

.compare-full-table th {
  background: var(--bg-muted);
  font-weight: 700;
  color: var(--ink-primary);
}

.compare-full-table th:first-child,
.compare-full-table td:first-child {
  text-align: start;
  font-weight: 600;
}

.compare-full-table .highlight-col {
  background: rgba(24, 145, 178, 0.05);
  background: oklch(0.55 0.15 200 / 0.05);
}

/* ─────────────────────────────────────────────
   CHANGELOG TIMELINE
───────────────────────────────────────────── */
.changelog-timeline {
  position: relative;
  padding-inline-start: var(--space-xl);
}

.changelog-timeline::before {
  content: '';
  position: absolute;
  inset-inline-start: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border-default);
}

.changelog-entry {
  position: relative;
  padding-bottom: var(--space-xl);
}

.changelog-entry::before {
  content: '';
  position: absolute;
  inset-inline-start: calc(-1 * var(--space-xl) + 4px);
  top: 6px;
  width: 12px;
  height: 12px;
  background: var(--color-accent);
  border-radius: 50%;
  border: 2px solid var(--bg-body);
}

.changelog-entry__date {
  font-size: var(--text-xs);
  color: var(--ink-muted);
  font-weight: 600;
  margin-bottom: var(--space-2xs);
}

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

.changelog-entry__desc {
  font-size: var(--text-sm);
  color: var(--ink-secondary);
  line-height: 1.7;
}

/* ─────────────────────────────────────────────
   BLOG CARDS
───────────────────────────────────────────── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-lg);
}

.blog-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  box-shadow: 0 8px 24px oklch(0 0 0 / 0.08);
}

.blog-card__bar {
  height: 4px;
  background: var(--color-accent);
}

.blog-card__body {
  padding: var(--space-lg);
}

.blog-card__title {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--ink-primary);
  margin-bottom: var(--space-sm);
  line-height: 1.5;
}

.blog-card__excerpt {
  font-size: var(--text-sm);
  color: var(--ink-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-md);
}

.blog-card__link {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-accent-dark);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.blog-card__link:hover {
  text-decoration: underline;
}

/* ─────────────────────────────────────────────
   ABOUT PAGE
───────────────────────────────────────────── */
.about-values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-lg);
}

.about-value {
  text-align: center;
  padding: var(--space-xl);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
}

.about-value__icon {
  width: 48px;
  height: 48px;
  margin: 0 auto var(--space-md);
  background: #e0f2f7;
  background: oklch(0.93 0.05 200);
  border-radius: var(--radius-lg);
  display: grid;
  place-items: center;
  color: var(--color-accent-dark);
}

.about-value__title {
  font-weight: 700;
  color: var(--ink-primary);
  margin-bottom: var(--space-xs);
}

.about-value__desc {
  font-size: var(--text-sm);
  color: var(--ink-secondary);
  line-height: 1.7;
}

/* ─────────────────────────────────────────────
   PARTNER TIERS
───────────────────────────────────────────── */
.partner-tiers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-lg);
}

.partner-tier {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  text-align: center;
}

.partner-tier__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto var(--space-md);
  background: #fdf0d5;
  background: oklch(0.93 0.04 45);
  border-radius: var(--radius-full);
  display: grid;
  place-items: center;
  color: #b45309;
  color: oklch(0.50 0.15 45);
}

.partner-tier__name {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--ink-primary);
  margin-bottom: var(--space-xs);
}

.partner-tier__desc {
  font-size: var(--text-sm);
  color: var(--ink-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-md);
}

.partner-tier__benefits {
  list-style: none;
  padding: 0;
  text-align: start;
}

.partner-tier__benefits li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-xs);
  font-size: var(--text-sm);
  color: var(--ink-secondary);
  padding: 6px 0;
}

.partner-tier__benefits li::before {
  content: '';
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
  background: #dff5ec;
  background: oklch(0.93 0.05 170);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='%23178a5b' stroke-width='3' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 10px;
  background-position: center;
  background-repeat: no-repeat;
}

/* ─────────────────────────────────────────────
   NEWSLETTER CTA
───────────────────────────────────────────── */
.newsletter-cta {
  background: var(--color-primary);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  text-align: center;
  color: white;
}

.newsletter-cta__title {
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: var(--space-xs);
}

.newsletter-cta__desc {
  opacity: 0.85;
  margin-bottom: var(--space-lg);
  font-size: var(--text-sm);
}

.newsletter-cta__form {
  display: flex;
  gap: var(--space-sm);
  max-width: 400px;
  margin: 0 auto;
}

@media (max-width: 500px) {
  .newsletter-cta__form {
    flex-direction: column;
  }
}

.newsletter-cta__input {
  flex: 1;
  padding: 10px 16px;
  border: none;
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  direction: ltr;
}

.newsletter-cta__btn {
  padding: 10px 20px;
  background: var(--color-accent);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: var(--text-sm);
  cursor: pointer;
  white-space: nowrap;
}
