/* ==========================================================================
   Commely — Clean Commercial Landing Page Styles
   ========================================================================== */

:root,
[data-theme="light"] {
  --bg-page: #faf7f9;
  --bg-alt: #f4eff3;
  --bg-surface: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.88);

  --text-primary: #14102b;
  --text-secondary: #524e68;
  --text-muted: #7b7691;

  --brand-primary: #d60066;
  --brand-primary-hover: #b00054;
  --brand-accent: #ff4fa3;
  --brand-soft: rgba(214, 0, 102, 0.08);
  --brand-border: rgba(214, 0, 102, 0.22);

  --border-subtle: #ebe4e9;
  --border-strong: #d8ced6;

  --status-ok-bg: rgba(16, 185, 129, 0.12);
  --status-ok-text: #047857;

  --shadow-sm: 0 4px 14px rgba(20, 16, 43, 0.04);
  --shadow-md: 0 14px 34px rgba(20, 16, 43, 0.07);
  --shadow-lg: 0 24px 60px rgba(20, 16, 43, 0.11);

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Plus Jakarta Sans', 'Inter', sans-serif;

  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
}

[data-theme="dark"] {
  --bg-page: #13131f;
  --bg-alt: #181826;
  --bg-surface: #1e1e2e;
  --bg-glass: rgba(25, 25, 38, 0.88);

  --text-primary: #f5f3f9;
  --text-secondary: #b5b2c4;
  --text-muted: #87839b;

  --brand-primary: #ff4fa3;
  --brand-primary-hover: #ff77b7;
  --brand-accent: #ff4fa3;
  --brand-soft: rgba(255, 79, 163, 0.14);
  --brand-border: rgba(255, 79, 163, 0.3);

  --border-subtle: #2c2b3e;
  --border-strong: #3d3c54;

  --status-ok-bg: rgba(52, 211, 153, 0.15);
  --status-ok-text: #34d399;

  --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 16px 38px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 28px 64px rgba(0, 0, 0, 0.5);
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.2s ease, color 0.2s ease;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 24px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.main-nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.15s ease;
}

.main-nav a:hover {
  color: var(--brand-primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.theme-toggle:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
}

[data-theme="light"] .icon-moon { display: block; }
[data-theme="light"] .icon-sun { display: none; }
[data-theme="dark"] .icon-moon { display: none; }
[data-theme="dark"] .icon-sun { display: block; }

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.18s ease;
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-lg {
  padding: 14px 26px;
  font-size: 1rem;
  border-radius: var(--radius-md);
}

.btn-block {
  width: 100%;
  padding: 13px 20px;
}

.btn-primary {
  background: var(--brand-primary);
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(214, 0, 102, 0.24);
}

.btn-primary:hover {
  background: var(--brand-primary-hover);
  transform: translateY(-1px);
}

[data-theme="dark"] .btn-primary {
  color: #230613;
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.btn-secondary:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}

.btn-ghost:hover {
  color: var(--brand-primary);
}

/* ==========================================================================
   Hero Section & Clean Live Demo
   ========================================================================== */

.hero-section {
  padding: 72px 0 96px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.08fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  padding: 6px 14px;
  background: var(--brand-soft);
  border: 1px solid var(--brand-border);
  border-radius: 999px;
  color: var(--brand-primary);
  font-size: 0.84rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.2vw, 3.6rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.text-gradient {
  background: linear-gradient(135deg, #d60066 0%, #ff4fa3 65%, #9333ea 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 1.12rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
  max-width: 52ch;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 32px;
}

.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.hero-highlights li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.hero-highlights svg {
  color: var(--brand-primary);
}

/* Clean Demo Card */
.demo-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.demo-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 12px 18px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border-subtle);
}

.demo-toolbar-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.demo-live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #10b981;
}

.demo-toolbar-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.demo-customizers {
  display: flex;
  align-items: center;
  gap: 12px;
}

.color-swatches {
  display: flex;
  gap: 6px;
}

.swatch {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--swatch-color);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.swatch.active {
  transform: scale(1.18);
  border-color: var(--text-primary);
}

.segmented-control {
  display: inline-flex;
  background: var(--bg-surface);
  padding: 2px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
}

.segmented-control button {
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.76rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
}

.segmented-control button.active {
  background: var(--brand-soft);
  color: var(--brand-primary);
}

/* Simulated Article & Widget */
.simulated-page {
  --commely-accent: #d60066;
  padding: 22px;
  background: #ffffff;
  color: #18181b;
  transition: background 0.2s ease, color 0.2s ease;
}

.simulated-page[data-widget-theme="dark"] {
  background: #14141f;
  color: #f4f4f6;
}

.simulated-article {
  padding-bottom: 16px;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(128, 128, 150, 0.2);
}

.article-category {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--commely-accent);
}

.simulated-article h4 {
  font-family: var(--font-display);
  font-size: 1.08rem;
  margin: 4px 0 6px;
}

.simulated-article p {
  font-size: 0.87rem;
  opacity: 0.78;
}

.cmly-sim-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.cmly-sim-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.96rem;
}

.cmly-sim-count {
  background: var(--commely-accent);
  color: #fff;
  font-size: 0.74rem;
  padding: 1px 8px;
  border-radius: 999px;
}

.role-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
}

.role-switch span {
  opacity: 0.7;
}

.role-switch button {
  background: transparent;
  border: 1px solid rgba(128, 128, 150, 0.3);
  color: inherit;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
}

.role-switch button.active {
  border-color: var(--commely-accent);
  color: var(--commely-accent);
}

.cmly-sim-form {
  background: rgba(128, 128, 150, 0.06);
  border: 1px solid rgba(128, 128, 150, 0.2);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 14px;
}

.cmly-sim-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 8px;
}

.cmly-sim-form input,
.cmly-sim-form textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.9);
  color: #18181b;
  border: 1px solid rgba(128, 128, 150, 0.28);
  border-radius: 8px;
  padding: 8px 10px;
  font-family: var(--font-sans);
  font-size: 0.84rem;
}

.simulated-page[data-widget-theme="dark"] .cmly-sim-form input,
.simulated-page[data-widget-theme="dark"] .cmly-sim-form textarea {
  background: #1e1e2e;
  color: #f4f4f6;
}

.cmly-sim-form input:focus,
.cmly-sim-form textarea:focus {
  outline: 2px solid var(--commely-accent);
  border-color: transparent;
}

.cmly-sim-admin-notice {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  margin-bottom: 8px;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(214, 0, 102, 0.1);
}

.cmly-admin-badge {
  background: var(--commely-accent, var(--brand-primary));
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  text-transform: uppercase;
}

.cmly-sim-form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
}

.cmly-char-hint {
  font-size: 0.76rem;
  opacity: 0.72;
}

.cmly-sim-actions {
  display: flex;
  gap: 6px;
}

.cmly-btn-cancel {
  background: transparent;
  border: 1px solid rgba(128, 128, 150, 0.35);
  color: inherit;
  padding: 6px 10px;
  border-radius: 7px;
  font-size: 0.78rem;
  cursor: pointer;
}

.cmly-btn-submit {
  background: var(--commely-accent);
  color: #fff;
  border: none;
  padding: 7px 16px;
  border-radius: 7px;
  font-weight: 600;
  font-size: 0.82rem;
  cursor: pointer;
}

.cmly-sim-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 310px;
  overflow-y: auto;
  padding-right: 4px;
}

.cmly-comment-card {
  border: 1px solid rgba(128, 128, 150, 0.2);
  border-radius: 10px;
  padding: 11px 13px;
  background: rgba(128, 128, 150, 0.03);
}

.cmly-comment-card.is-reply {
  margin-left: 22px;
  border-left: 3px solid var(--commely-accent);
}

.cmly-comment-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 5px;
}

.cmly-author-wrap {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.84rem;
}

.cmly-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--commely-accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cmly-time {
  font-size: 0.73rem;
  opacity: 0.62;
}

.cmly-comment-body {
  font-size: 0.86rem;
  line-height: 1.48;
  margin-bottom: 8px;
}

.cmly-comment-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.cmly-react-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: transparent;
  border: 1px solid rgba(128, 128, 150, 0.26);
  color: inherit;
  font-size: 0.74rem;
  padding: 2px 9px;
  border-radius: 999px;
  cursor: pointer;
}

.cmly-react-btn.active {
  border-color: var(--commely-accent);
  color: var(--commely-accent);
  background: rgba(214, 0, 102, 0.08);
  font-weight: 600;
}

.cmly-heart-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  color: #e11d48;
  background: rgba(225, 29, 72, 0.12);
  padding: 2px 9px;
  border-radius: 999px;
  font-weight: 600;
}

/* ==========================================================================
   Sections & Benefits Grid
   ========================================================================== */

.section {
  padding: 96px 0;
}

.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 56px;
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--brand-primary);
  margin-bottom: 10px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3vw, 2.55rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.06rem;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.benefit-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.benefit-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.benefit-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.benefit-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.benefit-card p {
  font-size: 0.94rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   3 Simple Steps
   ========================================================================== */

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.step-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.step-number {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--brand-primary);
  color: #ffffff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

[data-theme="dark"] .step-number {
  color: #230613;
}

.step-card h3 {
  font-family: var(--font-display);
  font-size: 1.22rem;
  margin-bottom: 10px;
}

.step-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ==========================================================================
   Dashboard & Moderation Showcase
   ========================================================================== */

.dash-showcase {
  display: grid;
  grid-template-columns: 0.92fr 1.35fr;
  gap: 32px;
  align-items: start;
}

.dash-tabs {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.dash-tab-btn {
  text-align: left;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 22px;
  cursor: pointer;
  transition: all 0.18s ease;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dash-tab-btn.active {
  border-color: var(--brand-primary);
  box-shadow: var(--shadow-md);
  background: var(--brand-soft);
}

.dash-tab-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-primary);
}

.dash-tab-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.dash-preview-window {
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.dash-window-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 20px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border-subtle);
}

.window-dots {
  display: flex;
  gap: 6px;
}

.window-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.window-dots span:nth-child(1) { background: #ff5f56; }
.window-dots span:nth-child(2) { background: #ffbd2e; }
.window-dots span:nth-child(3) { background: #27c93f; }

.dash-brand-mini {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
}

.dash-dot-logo {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--brand-primary);
}

.status-badge {
  background: var(--status-ok-bg);
  color: var(--status-ok-text);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
}

.dash-panel {
  padding: 26px;
}

.dash-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.dash-panel-header p {
  font-size: 0.86rem;
  color: var(--text-secondary);
}

.dash-filter-pills {
  display: flex;
  gap: 6px;
  font-size: 0.78rem;
}

.dash-filter-pills span {
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
}

.dash-filter-pills span.active {
  background: var(--brand-soft);
  color: var(--brand-primary);
  border-color: var(--brand-border);
  font-weight: 600;
}

.dash-mod-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dash-mod-item {
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-page);
}

.dash-mod-item.is-admin-reply {
  margin-left: 28px;
  border-left: 3px solid var(--brand-primary);
  background: var(--brand-soft);
}

.dash-mod-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.dash-mod-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--border-strong);
  color: var(--text-primary);
  font-size: 0.76rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dash-mod-avatar.is-admin {
  background: var(--brand-primary);
  color: #ffffff;
}

[data-theme="dark"] .dash-mod-avatar.is-admin {
  color: #230613;
}

.dash-mod-body {
  flex: 1;
  min-width: 0;
}

.dash-mod-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.84rem;
  margin-bottom: 6px;
}

.dash-mod-email {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.dash-reply-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--bg-surface);
  border: 1px solid var(--brand-border);
  color: var(--text-secondary);
}

.dash-reply-tag strong {
  color: var(--text-primary);
}

.dash-parent-quote {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 6px 10px;
  margin: 4px 0 8px;
  border-left: 2px solid var(--border-strong);
  border-radius: 0 6px 6px 0;
  background: var(--bg-surface);
  font-size: 0.78rem;
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dash-parent-quote strong {
  color: var(--text-primary);
  flex-shrink: 0;
}

.dash-parent-quote span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dash-thread-badge {
  font-size: 0.75rem;
  background: var(--bg-surface);
  padding: 2px 9px;
  border-radius: 6px;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.dash-time {
  color: var(--text-muted);
  margin-left: auto;
  font-size: 0.78rem;
}

.dash-mod-text {
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.dash-mod-item.is-admin-reply .dash-mod-text {
  margin-bottom: 0;
}

.dash-mod-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.dash-action-chip {
  font-size: 0.76rem;
  padding: 4px 11px;
  border-radius: 6px;
  border: 1px solid var(--border-strong);
  background: var(--bg-surface);
}

.dash-action-chip.dash-action-danger {
  color: #e11d48;
  border-color: rgba(225, 29, 72, 0.28);
}

.dash-action-chip.heart-active {
  color: #e11d48;
  border-color: rgba(225, 29, 72, 0.35);
  background: rgba(225, 29, 72, 0.08);
  font-weight: 600;
}

.dash-kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}

.dash-kpi-card {
  background: var(--bg-page);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  flex-direction: column;
}

.dash-kpi-card span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.dash-kpi-card strong {
  font-family: var(--font-display);
  font-size: 1.7rem;
  margin: 4px 0;
}

.kpi-up {
  color: var(--status-ok-text);
  font-weight: 600;
}

.dash-chart-box {
  background: var(--bg-page);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px;
}

.dash-chart-title {
  font-size: 0.84rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.dash-bars {
  display: grid;
  grid-template-columns: repeat(14, 1fr);
  gap: 8px;
  height: 120px;
  align-items: end;
}

.bar-col {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
}

.bar-fill {
  width: 100%;
  background: var(--brand-border);
  border-radius: 4px 4px 0 0;
}

.bar-fill.active {
  background: var(--brand-primary);
}

.bar-col span {
  font-size: 0.68rem;
  color: var(--text-muted);
}

.mini-compare-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mini-compare-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: var(--bg-page);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
}

.yes-tag {
  color: var(--status-ok-text);
  background: var(--status-ok-bg);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
}

/* ==========================================================================
   Pricing Section
   ========================================================================== */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: stretch;
}

.pricing-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.pricing-card.featured {
  border: 2px solid var(--brand-primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
}

.pricing-card.pricing-placeholder {
  background: var(--bg-page);
  border: 1.5px dashed var(--border-strong);
  box-shadow: none;
  opacity: 0.55;
  min-height: 420px;
}

.popular-badge {
  position: absolute;
  top: -13px;
  right: 24px;
  background: var(--brand-primary);
  color: #ffffff;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 999px;
}

[data-theme="dark"] .popular-badge {
  color: #230613;
}

.pricing-top h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin-bottom: 8px;
}

.pricing-top p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  min-height: 44px;
}

.price-display {
  margin: 24px 0;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.price-amount {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
}

.price-period {
  font-size: 0.92rem;
  color: var(--text-muted);
}

.pricing-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 30px;
  font-size: 0.94rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   FAQ Accordion
   ========================================================================== */

.faq-container {
  max-width: 800px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background: transparent;
  border: none;
  padding: 20px 24px;
  text-align: left;
  font-family: var(--font-display);
  font-size: 1.04rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
}

.faq-icon::before {
  content: '+';
  font-size: 1.35rem;
  color: var(--brand-primary);
}

.faq-item.open .faq-icon::before {
  content: '−';
}

.faq-answer {
  display: none;
  padding: 0 24px 20px;
  color: var(--text-secondary);
  font-size: 0.96rem;
}

.faq-item.open .faq-answer {
  display: block;
}

/* ==========================================================================
   CTA & Footer
   ========================================================================== */

.cta-section {
  padding: 24px 0 96px;
}

.cta-banner {
  background: linear-gradient(135deg, #14102b 0%, #2d0b22 60%, #14102b 100%);
  color: #ffffff;
  border-radius: var(--radius-xl);
  padding: 64px 40px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.cta-content {
  max-width: 620px;
  margin: 0 auto;
}

.cta-content h2 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3vw, 2.45rem);
  margin-bottom: 14px;
}

.cta-content p {
  color: #dcd8e8;
  font-size: 1.05rem;
  margin-bottom: 30px;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.site-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  padding: 56px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border-subtle);
}

.footer-brand p {
  margin-top: 12px;
  color: var(--text-secondary);
  font-size: 0.94rem;
  max-width: 38ch;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links h5 {
  font-family: var(--font-display);
  font-size: 0.94rem;
  margin-bottom: 4px;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.footer-links a:hover {
  color: var(--brand-primary);
}

.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.86rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 1024px) {
  .hero-grid,
  .dash-showcase {
    grid-template-columns: 1fr;
  }

  .benefits-grid,
  .steps-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .pricing-card.featured {
    transform: none;
  }

  .pricing-card.pricing-placeholder {
    display: none;
  }
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
  }

  .cmly-sim-inputs,
  .dash-kpi-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
