/* ============================================================
   FEATURES PAGE
   Depends on css/screenshots.css for .feature-rows / .feature-row /
   .feature-row-text / .feature-eyebrow / .phone-img / .feature-tier-tag
   ============================================================ */

/* ---------- Compact icon badge for the deep-dive card grid ---------- */
.feature-icon-badge {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(var(--primary-accent-color-rgb), 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.feature-icon-badge svg {
  width: 28px;
  height: 28px;
  color: var(--primary-accent-color);
}

.feature-card {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

/* ---------- Jump navigation pills under the hero ---------- */
.feature-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}

.feature-nav a {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 100px;
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: background 0.22s ease, border-color 0.22s ease, color 0.22s ease;
}

.feature-nav a:hover,
.feature-nav a:focus-visible {
  background: rgba(56, 191, 161, 0.12);
  border-color: rgba(56, 191, 161, 0.45);
  color: var(--primary-color);
}

/* ---------- Divider between "what it does" and "what you can change" ---------- */
.act-divider {
  max-width: 720px;
  margin: 26px auto 6px;
  padding: 34px 20px 0;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.act-divider-kicker {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--primary-color);
  margin-bottom: 12px;
}

.act-divider h2 {
  font-size: 1.6rem;
  line-height: 1.3;
  margin-bottom: 12px;
}

.act-divider p {
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.7;
  margin: 0;
}

@media (max-width: 480px) {
  .act-divider h2 {
    font-size: 1.3rem;
  }
}

/* ---------- Section headers inside each feature block ---------- */
.feature-section-head {
  max-width: 760px;
  margin: 0 auto 44px;
  text-align: center;
}

.feature-section-head .section-kicker {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--primary-color);
  margin-bottom: 12px;
}

.feature-section-head h2 {
  margin-bottom: 14px;
}

.feature-section-head p {
  color: var(--text-secondary);
  font-size: 1.02rem;
  line-height: 1.7;
  margin: 0;
}

/* ---------- Product screenshot frame (light UI panels) ---------- */
.shot-frame {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 24px 56px rgba(0, 0, 0, 0.45),
    0 0 36px rgba(56, 191, 161, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.shot-frame:hover {
  transform: translateY(-5px);
  box-shadow:
    0 34px 70px rgba(0, 0, 0, 0.5),
    0 0 52px rgba(56, 191, 161, 0.16);
}

.shot-frame img {
  display: block;
  width: 100%;
  height: auto;
}

/* Screenshot column inside a .feature-row */
.feature-row-shot {
  flex: 1.05;
  min-width: 0;
  position: relative;
}

.feature-row-shot::before {
  content: '';
  position: absolute;
  inset: -26px;
  border-radius: 60px;
  background: radial-gradient(ellipse at center, rgba(56, 191, 161, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

/* Narrow frame for portrait/mobile-shaped screenshots */
.feature-row-shot.narrow {
  flex: 0 0 330px;
  max-width: 330px;
  margin: 0 auto;
}

/* Inline code token used for merge variables like {{customer_first_name}} */
.feature-row-text code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.85em;
  padding: 2px 7px;
  border-radius: 5px;
  background: rgba(56, 191, 161, 0.12);
  border: 1px solid rgba(56, 191, 161, 0.28);
  color: var(--primary-color);
  white-space: nowrap;
}

/* ---------- Browser chrome wrapper (desktop dashboard) ---------- */
.shot-browser {
  max-width: 1000px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  background: #0b1b30;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.45),
    0 0 40px rgba(56, 191, 161, 0.08);
}

.shot-browser-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.shot-browser-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.shot-browser-dot:nth-child(1) { background: #ff5f57; }
.shot-browser-dot:nth-child(2) { background: #febc2e; }
.shot-browser-dot:nth-child(3) { background: #28c840; }

.shot-browser-url {
  margin-left: 12px;
  flex: 1;
  max-width: 260px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  padding: 4px 12px;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.01em;
}

.shot-browser img {
  display: block;
  width: calc(100% + 2px);
  margin: 0 -1px -1px;
  height: auto;
}

/* Stat strip under the dashboard shot */
.dash-callouts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 20px;
  max-width: 1000px;
  margin: 40px auto 0;
}

.dash-callout {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  padding: 20px 22px;
}

.dash-callout h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 8px;
}

.dash-callout p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0;
}

/* ---------- Two phones side by side ---------- */
.phone-duo {
  display: flex;
  gap: 28px;
  justify-content: center;
  align-items: flex-start;
  flex-shrink: 0;
}

.phone-duo .phone-img {
  width: 205px;
}

.phone-duo .phone-img:last-child {
  margin-top: 34px;
}

/* ---------- "Everything else" spec grid ---------- */
.spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.spec-item {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 20px 22px;
}

.spec-item h3 {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 8px;
  line-height: 1.35;
}

.spec-item p {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .feature-row-shot.narrow {
    flex: 0 0 auto;
    max-width: 320px;
    width: 100%;
  }

  .phone-duo {
    gap: 16px;
  }

  .phone-duo .phone-img {
    width: 165px;
  }

  .phone-duo .phone-img:last-child {
    margin-top: 24px;
  }
}

@media (max-width: 480px) {
  .feature-nav a {
    padding: 7px 14px;
    font-size: 0.82rem;
  }

  .phone-duo .phone-img {
    width: 140px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .shot-frame,
  .shot-frame:hover {
    transition: none;
    transform: none;
  }
}
