/* =============================================================
   features.css — page-specific styles for /features
   ============================================================= */

:root {
  --navy:       #1a3a5c;
  --navy-dark:  #122840;
  --orange:     #e07b1a;
  --white:      #ffffff;
  --gray-50:    #f8f9fa;
  --gray-100:   #f1f3f5;
  --gray-200:   #e5e7eb;
  --gray-400:   #9ca3af;
  --gray-500:   #6b7280;
  --gray-600:   #4b5563;
  --gray-700:   #374151;
  --radius:     10px;
  --radius-lg:  16px;
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow:     0 4px 16px rgba(0,0,0,0.10), 0 1px 4px rgba(0,0,0,0.06);
  --transition: 0.18s ease;
}

/* ── Hero ── */
.feat-hero {
  position: relative;
  background: var(--navy-dark);
  padding: 80px 0 72px;
  text-align: center;
  overflow: hidden;
}
.feat-hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Cdefs%3E%3Cpattern id='g' width='80' height='80' patternUnits='userSpaceOnUse'%3E%3Crect width='80' height='80' fill='none'/%3E%3Cpath d='M 80 0 L 0 0 0 80' fill='none' stroke='rgba(255,255,255,0.04)' stroke-width='1'/%3E%3Cpath d='M 20 0 L 20 80 M 40 0 L 40 80 M 60 0 L 60 80 M 0 20 L 80 20 M 0 40 L 80 40 M 0 60 L 80 60' fill='none' stroke='rgba(255,255,255,0.02)' stroke-width='0.5'/%3E%3Ccircle cx='0' cy='0' r='1.5' fill='rgba(255,255,255,0.06)'/%3E%3Ccircle cx='80' cy='0' r='1.5' fill='rgba(255,255,255,0.06)'/%3E%3Ccircle cx='0' cy='80' r='1.5' fill='rgba(255,255,255,0.06)'/%3E%3Ccircle cx='80' cy='80' r='1.5' fill='rgba(255,255,255,0.06)'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='80' height='80' fill='url(%23g)'/%3E%3C/svg%3E");
  pointer-events: none;
}
.feat-hero-inner {
  position: relative;
  z-index: 1;
}
.page-label {
  display: inline-flex;
  align-items: center;
  padding: 5px 14px;
  border-radius: 100px;
  background: rgba(255,255,255,0.10);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  margin-bottom: 20px;
}
.feat-hero-heading {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.5px;
  line-height: 1.15;
  margin-bottom: 18px;
}
.feat-hero-sub {
  font-size: 17px;
  color: rgba(255,255,255,0.70);
  line-height: 1.65;
  max-width: 540px;
  margin: 0 auto 32px;
}
.feat-hero-ctas {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-ghost-light {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.30);
  color: rgba(255,255,255,0.85);
  border-radius: var(--radius);
  padding: 10px 22px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: border-color var(--transition), color var(--transition);
}
.btn-ghost-light:hover {
  border-color: rgba(255,255,255,0.60);
  color: white;
}
.btn-lg {
  padding: 13px 28px;
  font-size: 16px;
}

/* ── Jump nav strip ── */
.feat-nav-strip {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 64px; /* height of site-header */
  z-index: 50;
}
.feat-nav-list {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.feat-nav-list::-webkit-scrollbar { display: none; }
.feat-nav-list a {
  display: block;
  padding: 14px 18px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--gray-600);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}
.feat-nav-list a:hover {
  color: var(--navy);
  border-bottom-color: var(--navy);
}

/* ── Feature sections ── */
.feat-section {
  padding: 80px 0;
}
.feat-section--white { background: var(--white); }
.feat-section--gray  { background: #edf1f7; border-top: 1px solid var(--gray-200); border-bottom: 1px solid var(--gray-200); }

.feat-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.feat-row--flip .feat-copy { order: 2; }
.feat-row--flip .feat-mock,
.feat-row--flip .feat-integrations-grid { order: 1; }

.feat-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 12px;
}
.feat-heading {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.3px;
  line-height: 1.2;
  margin-bottom: 16px;
}
.feat-body {
  font-size: 15.5px;
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 24px;
}
.feat-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.feat-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14.5px;
  color: var(--gray-700);
  line-height: 1.5;
}
.feat-check {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: #4a7fa5;
  margin-top: 1px;
}
.feat-learn-more {
  display: inline-block;
  margin-top: 24px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.feat-learn-more:hover { color: var(--orange); }

/* ── Mock UI panels ── */
.feat-mock {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.feat-section--gray .feat-mock {
  border-color: #d0dae6;
}
.feat-mock-bar {
  background: var(--navy);
  height: 34px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  gap: 6px;
}
.feat-mock-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.22);
  flex-shrink: 0;
}
.feat-mock-title {
  font-size: 12px;
  color: rgba(255,255,255,0.60);
  font-weight: 500;
  margin-left: 6px;
}
.feat-mock-body {
  padding: 16px 18px 18px;
}
.feat-mock-section { margin-bottom: 8px; }
.feat-mock-row {
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 0;
  color: var(--gray-500);
}
.feat-mock-row--label {
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray-400);
  font-size: 10.5px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--gray-200);
  margin-bottom: 4px;
}
.feat-mock-line-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  font-size: 12.5px;
  border-bottom: 1px solid #f3f4f6;
  color: var(--gray-700);
}
.feat-mock-line-item:last-child { border-bottom: none; }
.fml-name  { flex: 1; }
.fml-cost  { color: var(--gray-400); font-size: 11.5px; width: 52px; text-align: right; }
.fml-qty   { color: var(--gray-400); font-size: 11.5px; width: 28px; text-align: right; }
.fml-price { width: 60px; text-align: right; font-weight: 600; color: var(--navy); font-size: 12px; }
.fml-margin { width: 40px; text-align: right; font-weight: 700; font-size: 12px; border-radius: 4px; padding: 1px 5px; }
.fml-margin--good { color: #3a7d44; background: #e8f5e9; }
.fml-margin--warn { color: #9a5700; background: #fff3e0; }
.fml-badge { border-radius: 20px; padding: 2px 10px; font-size: 11px; font-weight: 700; }
.fml-badge--active { background: #e3f2fd; color: #1565c0; }

.feat-mock-total-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0 2px;
  border-top: 1px solid var(--gray-200);
  margin-top: 8px;
}
.fmt-label { flex: 1; font-size: 12.5px; font-weight: 600; color: var(--navy); }
.fmt-value { font-size: 14px; font-weight: 700; color: var(--navy); }
.fmt-margin-pill {
  background: #e8f5e9;
  color: #3a7d44;
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
}

/* Invoice mock */
.feat-mock-invoice-header {
  text-align: center;
  padding: 12px 0 14px;
  border-bottom: 1px solid var(--gray-200);
  margin-bottom: 12px;
}
.fmih-status {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}
.fmih-status--sent { color: #e07b1a; }
.fmih-amount { font-size: 26px; font-weight: 800; color: var(--navy); line-height: 1.2; }
.fmih-due { font-size: 12px; color: var(--gray-500); margin-top: 4px; }
.feat-mock-pay-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: var(--navy);
  color: white;
  font-size: 12.5px;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: 8px;
  margin-bottom: 12px;
  cursor: default;
}

/* Project mock */
.feat-mock-stats-row {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.fms-stat {
  flex: 1;
  background: #f8f9fa;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  padding: 9px 10px;
  text-align: center;
}
.fms-stat--highlight { background: #e8f5e9; border-color: #c8e6c9; }
.fms-label { font-size: 10.5px; color: var(--gray-500); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 4px; }
.fms-value { font-size: 15px; font-weight: 800; color: var(--navy); }
.fms-stat--highlight .fms-value { color: #3a7d44; }
.feat-mock-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--gray-200);
  margin-bottom: 2px;
}
.fmt-tab {
  padding: 7px 12px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--gray-400);
  cursor: default;
  border-bottom: 2px solid transparent;
}
.fmt-tab--active { color: var(--navy); border-bottom-color: var(--navy); }

/* Catalog mock */
.feat-mock-fields {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}
.feat-mock-field { flex: 1; }
.feat-mock-field--wide { flex: 2; }
.fmf-label { font-size: 10px; color: var(--gray-400); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 3px; }
.fmf-value { font-size: 12.5px; font-weight: 600; color: var(--navy); background: #f8f9fa; border: 1px solid var(--gray-200); border-radius: 6px; padding: 5px 8px; }
.fmf-badge { display: inline-flex; border-radius: 20px; padding: 3px 10px; }
.fmf-badge--sent { background: #e3f2fd; color: #1565c0; border: none; }

.feat-mock-search {
  display: flex;
  align-items: center;
  gap: 7px;
  background: #f8f9fa;
  border: 1px solid var(--gray-200);
  border-radius: 7px;
  padding: 7px 10px;
  font-size: 12px;
  color: var(--gray-400);
  margin-bottom: 10px;
}
.feat-mock-add-btn {
  font-size: 12px;
  color: var(--navy);
  font-weight: 600;
  padding: 6px 0;
  cursor: default;
  opacity: 0.6;
}

.feat-mock-catalog-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #f3f4f6;
  font-size: 12.5px;
}
.feat-mock-catalog-row:last-child { border-bottom: none; }
.fmcr-icon { width: 28px; height: 28px; background: #edf1f7; border-radius: 6px; display: flex; align-items: center; justify-content: center; color: var(--navy); font-size: 14px; flex-shrink: 0; }
.fmcr-info { flex: 1; min-width: 0; }
.fmcr-name { font-weight: 600; color: var(--navy); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fmcr-meta { font-size: 11px; color: var(--gray-400); }
.fmcr-cost { font-size: 11.5px; color: var(--gray-400); width: 36px; text-align: right; }
.fmcr-price { font-size: 12.5px; font-weight: 700; color: var(--navy); width: 40px; text-align: right; }
.fmcr-add {
  width: 24px; height: 24px;
  border-radius: 6px;
  background: var(--navy);
  color: white;
  border: none;
  font-size: 16px;
  line-height: 1;
  cursor: default;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* Template mock */
.feat-mock-template-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #f3f4f6;
}
.feat-mock-template-card:last-child { border-bottom: none; }
.fmtc-icon { width: 32px; height: 32px; background: #edf1f7; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--navy); font-size: 15px; flex-shrink: 0; }
.fmtc-info { flex: 1; }
.fmtc-name { font-size: 13px; font-weight: 600; color: var(--navy); }
.fmtc-meta { font-size: 11px; color: var(--gray-400); margin-top: 2px; }
.fmtc-use {
  background: #edf1f7;
  border: 1px solid var(--gray-200);
  color: var(--navy);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 6px;
  cursor: default;
}

/* Recurring mock */
.feat-mock-recur-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #f3f4f6;
}
.feat-mock-recur-card:last-child { border-bottom: none; }
.fmrc-left { flex: 1; }
.fmrc-name { font-size: 12.5px; font-weight: 600; color: var(--navy); }
.fmrc-meta { font-size: 11px; color: var(--gray-400); margin-top: 2px; }
.fmrc-badge { font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 20px; flex-shrink: 0; }
.fmrc-badge--active { background: #e8f5e9; color: #3a7d44; }
.fmrc-badge--paused { background: #f3f4f6; color: var(--gray-500); }

/* ── Integrations grid ── */
.feat-integrations-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.feat-int-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--navy);
  font-size: 13px;
  font-weight: 600;
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}
.feat-int-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
  border-color: rgba(26,58,92,0.2);
}
.feat-int-card img { width: 40px; height: 40px; object-fit: contain; }
.feat-int-card--more {
  background: #edf1f7;
  border-style: dashed;
}
.feat-int-more-icon {
  font-size: 22px;
  font-weight: 300;
  color: var(--gray-400);
  line-height: 1;
}
.feat-section--gray .feat-int-card {
  background: var(--white);
  border-color: #d0dae6;
}

/* ── Final CTA ── */
.feat-cta-section {
  position: relative;
  background: var(--navy-dark);
  padding: 80px 0;
  text-align: center;
  overflow: hidden;
}
.feat-cta-bg {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Cdefs%3E%3Cpattern id='g' width='80' height='80' patternUnits='userSpaceOnUse'%3E%3Crect width='80' height='80' fill='none'/%3E%3Cpath d='M 80 0 L 0 0 0 80' fill='none' stroke='rgba(255,255,255,0.04)' stroke-width='1'/%3E%3Cpath d='M 20 0 L 20 80 M 40 0 L 40 80 M 60 0 L 60 80 M 0 20 L 80 20 M 0 40 L 80 40 M 0 60 L 80 60' fill='none' stroke='rgba(255,255,255,0.02)' stroke-width='0.5'/%3E%3Ccircle cx='0' cy='0' r='1.5' fill='rgba(255,255,255,0.06)'/%3E%3Ccircle cx='80' cy='0' r='1.5' fill='rgba(255,255,255,0.06)'/%3E%3Ccircle cx='0' cy='80' r='1.5' fill='rgba(255,255,255,0.06)'/%3E%3Ccircle cx='80' cy='80' r='1.5' fill='rgba(255,255,255,0.06)'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='80' height='80' fill='url(%23g)'/%3E%3C/svg%3E");
  pointer-events: none;
}
.feat-cta-inner {
  position: relative;
  z-index: 1;
}
.feat-cta-heading {
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.3px;
  margin-bottom: 12px;
}
.feat-cta-sub {
  font-size: 16px;
  color: rgba(255,255,255,0.65);
  margin-bottom: 32px;
  line-height: 1.6;
}
.feat-cta-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .feat-row {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .feat-row--flip .feat-copy { order: 1; }
  .feat-row--flip .feat-mock,
  .feat-row--flip .feat-integrations-grid { order: 2; }
}
@media (max-width: 640px) {
  .feat-section { padding: 56px 0; }
  .feat-nav-list a { padding: 12px 14px; font-size: 13px; }
  .feat-integrations-grid { grid-template-columns: repeat(2, 1fr); }
  .feat-mock-stats-row { flex-wrap: wrap; }
  .fms-stat { min-width: calc(50% - 4px); }
}
