/* Soffit Theme Landing Page Stylesheet */
:root {
  --font: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --bg-page: #f3efe6;
  --bg-surface: #fffcf7;
  --bg-card: #fffcf7;
  --bg-card-hover: #ffffff;
  --bg-header: rgba(243, 239, 230, 0.92);
  --bg-subtle: #eae4d8;
  
  --line-border: #e4ddd2;
  --line-light: #f1ece3;

  --text-main: #1e1a16;
  --text-muted: #6e665c;
  --text-dim: #968d82;

  --accent-teal: #0f6e62;
  --accent-teal-hover: #0b5249;
  --accent-brass: #c4a574;
  --accent-brass-light: #f7f3ea;

  --card-shadow: 0 1px 2px rgba(30, 26, 22, 0.04), 0 12px 28px rgba(30, 26, 22, 0.06);
  --frame-shadow: 0 25px 60px -15px rgba(30, 26, 22, 0.15), 0 0 40px -10px rgba(196, 165, 116, 0.2);
}

[data-theme="dark"] {
  --bg-page: #12100e;
  --bg-surface: #1c1815;
  --bg-card: #241f1b;
  --bg-card-hover: #2a2420;
  --bg-header: rgba(18, 16, 14, 0.92);
  --bg-subtle: #2d2621;

  --line-border: #3d362e;
  --line-light: #332d26;

  --text-main: #f6f1e8;
  --text-muted: #c9bfb2;
  --text-dim: #8c8275;

  --accent-teal: #148b7c;
  --accent-teal-hover: #0f6e62;
  --accent-brass: #c4a574;
  --accent-brass-light: #362f29;

  --card-shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 16px 36px rgba(0, 0, 0, 0.35);
  --frame-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8), 0 0 40px -10px rgba(196, 165, 116, 0.12);
}

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

html, body {
  overflow-x: hidden;
  max-width: 100%;
}

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

.container {
  width: min(1140px, calc(100% - 32px));
  margin: 0 auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-header);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-border);
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.header-inner {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-main);
  font-weight: 700;
  font-size: 1.15rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.brand svg {
  flex-shrink: 0;
}

.brand-text {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  color: var(--text-main);
}

.brand-sub {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s;
  padding: 4px 0;
}

.nav-links a:hover {
  color: var(--accent-teal);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 20px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1.25;
}

/* Explicit high-contrast white text for primary buy buttons */
a.btn-primary,
.btn-primary,
.header-buy-btn {
  background: var(--accent-teal) !important;
  color: #ffffff !important;
  text-decoration: none !important;
  border: 1px solid var(--accent-teal) !important;
  box-shadow: 0 2px 8px rgba(15, 110, 98, 0.25);
}

a.btn-primary:hover,
.btn-primary:hover,
.header-buy-btn:hover {
  background: var(--accent-teal-hover) !important;
  color: #ffffff !important;
  border-color: var(--accent-teal-hover) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(15, 110, 98, 0.35);
}

.btn-outline {
  background: var(--bg-surface);
  border-color: var(--line-border);
  color: var(--text-main);
}

.btn-outline:hover {
  border-color: var(--accent-brass);
  color: var(--accent-teal);
}

.btn-brass {
  background: var(--accent-brass);
  color: #1e1a16;
}

.theme-toggle-btn {
  background: var(--bg-surface);
  border: 1px solid var(--line-border);
  color: var(--text-main);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.theme-toggle-btn:hover {
  border-color: var(--accent-teal);
  transform: rotate(15deg);
}

/* Hero Section */
.hero {
  padding: 64px 0 40px;
  text-align: center;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-brass-light);
  border: 1px solid var(--line-border);
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-brass);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin-bottom: 18px;
  font-weight: 800;
}

.hero h1 span {
  color: var(--accent-teal);
}

.hero-lead {
  max-width: 640px;
  margin: 0 auto 30px;
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

/* Interactive Theme Simulator Showcase */
.simulator-wrap {
  margin: 0 auto;
  max-width: 1080px;
}

.simulator-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding: 0 4px;
}

.simulator-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
}

.simulator-switcher {
  display: inline-flex;
  background: var(--bg-surface);
  border: 1.5px solid var(--line-border);
  border-radius: 999px;
  padding: 3px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.sim-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: 999px;
  border: none;
  background: transparent;
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.sim-btn.active {
  background: var(--accent-teal);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(15, 110, 98, 0.25);
}

.simulator-frame {
  position: relative;
  background: var(--bg-surface);
  border: 1.5px solid var(--line-border);
  border-radius: 16px;
  box-shadow: var(--frame-shadow);
  overflow: hidden;
  line-height: 0;
}

.sim-img {
  width: 100%;
  height: auto;
  display: block;
  transition: opacity 0.3s ease;
}

.sim-img.hidden {
  display: none;
}

/* Features Grid */
.section {
  padding: 80px 0;
}

.section-label {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-brass);
  margin-bottom: 8px;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  letter-spacing: -0.03em;
  margin-bottom: 12px;
  font-weight: 800;
}

.section-desc {
  max-width: 580px;
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 48px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--line-border);
  border-radius: 16px;
  padding: 32px 28px;
  box-shadow: var(--card-shadow);
  transition: transform 0.2s, border-color 0.2s;
}

.feature-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-brass);
}

.feature-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--accent-brass-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-teal);
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Live Component Showcase Styles */
.live-components-wrapper {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: 10px;
}

/* 1. Live Table Card */
.live-table-card {
  background: var(--bg-card);
  border: 1.5px solid var(--line-border);
  border-radius: 18px;
  padding: 24px 28px;
  box-shadow: var(--card-shadow);
  overflow: hidden;
}

.live-table-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.live-table-title-group h3 {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-main);
  margin-bottom: 2px;
}

.live-table-title-group p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.live-table-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-surface);
  border: 1px solid var(--line-border);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 0.82rem;
  color: var(--text-muted);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.live-table-search input {
  border: none;
  background: transparent;
  outline: none;
  font-family: var(--font);
  font-size: 0.82rem;
  color: var(--text-main);
  width: 170px;
}

.live-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line-border);
  border-radius: 12px;
  background: var(--bg-surface);
}

.live-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.88rem;
}

.live-table th {
  background: var(--bg-subtle);
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line-border);
  white-space: nowrap;
}

.live-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line-light);
  color: var(--text-main);
  vertical-align: middle;
}

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

.live-table tbody tr:hover {
  background: rgba(196, 165, 116, 0.04);
}

.td-mono {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-dim);
}

.td-workspace {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ws-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
  color: #ffffff;
}

.ws-av-1 { background: #123f3a; }
.ws-av-2 { background: #0f6e62; }
.ws-av-3 { background: #c4a574; color: #1e1a16; }
.ws-av-4 { background: #4a5568; }

.ws-info {
  display: flex;
  flex-direction: column;
}

.ws-name {
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
}

.ws-domain {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.td-amount {
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--text-main);
}

/* Status Pills */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
}

.status-pill .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.pill-paid {
  background: rgba(34, 134, 58, 0.12);
  color: #1e7e34;
  border: 1px solid rgba(34, 134, 58, 0.25);
}

.pill-paid .dot { background: #22863a; }

.pill-open {
  background: rgba(196, 165, 116, 0.2);
  color: #936f32;
  border: 1px solid rgba(196, 165, 116, 0.4);
}

.pill-open .dot { background: #c4a574; }

[data-theme="dark"] .pill-paid {
  background: rgba(34, 134, 58, 0.22);
  color: #7ee787;
  border-color: rgba(34, 134, 58, 0.45);
}

[data-theme="dark"] .pill-open {
  background: rgba(196, 165, 116, 0.22);
  color: #e5cb9f;
  border-color: rgba(196, 165, 116, 0.45);
}

/* Action Icons */
.action-icons {
  display: flex;
  align-items: center;
  gap: 6px;
}

.action-btn {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-border);
  background: var(--bg-card);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
}

.action-btn:hover {
  border-color: var(--accent-brass);
  color: var(--text-main);
  background: var(--bg-surface);
}

/* Table Footer */
.live-table-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 4px 2px 4px;
  font-size: 0.82rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 12px;
}

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

.pag-btn {
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid var(--line-border);
  background: var(--bg-surface);
  color: var(--text-main);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

.pag-btn.active {
  background: var(--accent-teal);
  color: #ffffff;
  border-color: var(--accent-teal);
}

/* 2. Split Showcase for Alerts & Controls */
.live-showcase-split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 24px;
}

.live-subcard {
  background: var(--bg-card);
  border: 1.5px solid var(--line-border);
  border-radius: 18px;
  padding: 26px 28px;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.live-subcard-header h3 {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-main);
  margin-bottom: 4px;
}

.live-subcard-header p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Styled Alerts */
.alerts-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.soffit-alert {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 18px;
  border-radius: 12px;
  border: 1px solid;
  transition: transform 0.15s ease;
}

.soffit-alert:hover {
  transform: translateX(3px);
}

.soffit-alert-icon {
  flex-shrink: 0;
  margin-top: 1px;
}

.soffit-alert-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.soffit-alert-title {
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.2;
}

.soffit-alert-text {
  font-size: 0.82rem;
  line-height: 1.4;
  opacity: 0.9;
}

/* Alert Themes */
.alert-success {
  background: #eef8f4;
  border-color: #bce3d6;
  color: #134e44;
}

.alert-info {
  background: #f0f7fe;
  border-color: #cae1f8;
  color: #19568d;
}

.alert-warning {
  background: #fef9ed;
  border-color: #f4dfad;
  color: #8c6014;
}

.alert-danger {
  background: #fef2f2;
  border-color: #f7c9c9;
  color: #991b1b;
}

[data-theme="dark"] .alert-success {
  background: rgba(15, 110, 98, 0.18);
  border-color: rgba(20, 139, 124, 0.4);
  color: #a3e7dc;
}

[data-theme="dark"] .alert-info {
  background: rgba(30, 111, 184, 0.18);
  border-color: rgba(30, 111, 184, 0.4);
  color: #a8d4ff;
}

[data-theme="dark"] .alert-warning {
  background: rgba(196, 165, 116, 0.16);
  border-color: rgba(196, 165, 116, 0.35);
  color: #f2dfbe;
}

[data-theme="dark"] .alert-danger {
  background: rgba(220, 76, 100, 0.18);
  border-color: rgba(220, 76, 100, 0.4);
  color: #f9b6c0;
}

/* 3. Controls & Badges */
.controls-sections {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.control-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.control-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-brass);
  font-family: var(--font-mono);
}

.pills-cluster {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* Toast Pills */
.toast-pill {
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.toast-info { background: #0f6e62; }
.toast-success { background: #22863a; }
.toast-warning { background: #d98218; }
.toast-danger { background: #dc4c64; }

/* Status Badges */
.badge-pill {
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.badge-growth { background: rgba(15, 110, 98, 0.12); color: #0f6e62; }
.badge-active { background: rgba(34, 134, 58, 0.12); color: #1e7e34; }
.badge-trialing { background: rgba(30, 111, 184, 0.12); color: #1e6fb8; }
.badge-pastdue { background: rgba(196, 165, 116, 0.2); color: #8c6e3b; }
.badge-canceled { background: rgba(220, 76, 100, 0.12); color: #c43232; }

[data-theme="dark"] .badge-growth { background: rgba(15, 110, 98, 0.25); color: #62d6c6; }
[data-theme="dark"] .badge-active { background: rgba(34, 134, 58, 0.25); color: #7ee787; }
[data-theme="dark"] .badge-trialing { background: rgba(30, 111, 184, 0.25); color: #79b8ff; }
[data-theme="dark"] .badge-pastdue { background: rgba(196, 165, 116, 0.25); color: #f2dfbe; }
[data-theme="dark"] .badge-canceled { background: rgba(220, 76, 100, 0.25); color: #ff8b9e; }

/* Action Buttons */
.buttons-cluster {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-soffit-primary {
  background: var(--accent-teal);
  color: #ffffff;
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  border: 1px solid var(--accent-teal);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(15, 110, 98, 0.25);
  transition: all 0.2s ease;
}

.btn-soffit-primary:hover {
  background: var(--accent-teal-hover);
}

.btn-soffit-cancel {
  background: var(--bg-surface);
  color: var(--text-main);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid var(--line-border);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-soffit-cancel:hover {
  border-color: var(--accent-brass);
}

.btn-soffit-delete {
  background: #dc4c64;
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  border: 1px solid #dc4c64;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(220, 76, 100, 0.25);
}

.btn-soffit-delete:hover {
  background: #c5384f;
}

/* Mini Form Fields */
.form-fields-mini {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.mini-input-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mini-input-group label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-main);
}

.mini-input-group input,
.mini-input-group select {
  background: var(--bg-surface);
  border: 1px solid var(--line-border);
  border-radius: 8px;
  padding: 7px 12px;
  font-family: var(--font);
  font-size: 0.82rem;
  color: var(--text-main);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.mini-input-group input:focus,
.mini-input-group select:focus {
  border-color: var(--accent-teal);
  box-shadow: 0 0 0 3px rgba(15, 110, 98, 0.12);
}

/* Pricing Section */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
  max-width: 880px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--bg-card);
  border: 1.5px solid var(--line-border);
  border-radius: 20px;
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--card-shadow);
  position: relative;
}

.pricing-card.popular {
  border-color: var(--accent-teal);
  box-shadow: 0 10px 35px -5px rgba(15, 110, 98, 0.18);
}

.badge-popular {
  position: absolute;
  top: -14px;
  right: 28px;
  background: var(--accent-teal);
  color: #ffffff;
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.plan-name {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.plan-desc {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 24px;
}

.plan-price {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text-main);
  line-height: 1;
  margin-bottom: 8px;
}

.plan-price small {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
}

.plan-term {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent-brass);
  margin-bottom: 28px;
}

.plan-features {
  list-style: none;
  margin-bottom: 32px;
  flex-grow: 1;
}

.plan-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.94rem;
  color: var(--text-main);
}

.check-icon {
  color: var(--accent-teal);
  flex-shrink: 0;
}

/* FAQ */
.faq-grid {
  display: grid;
  gap: 16px;
  max-width: 760px;
  margin: 0 auto;
}

details {
  background: var(--bg-card);
  border: 1px solid var(--line-border);
  border-radius: 12px;
  padding: 18px 24px;
  cursor: pointer;
}

summary {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  user-select: none;
}

details[open] summary {
  margin-bottom: 12px;
  color: var(--accent-teal);
}

details p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Code Snippet */
.code-block {
  background: #1c1815;
  color: #f6f1e8;
  padding: 18px 22px;
  border-radius: 12px;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  overflow-x: auto;
  border: 1px solid #3d362e;
  margin: 16px 0;
}

/* Ecosystem Plugins Showcase */
.plugins-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.plugin-card {
  background: var(--bg-card);
  border: 1px solid var(--line-border);
  border-radius: 16px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--card-shadow);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.plugin-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-brass);
}

.plugin-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  width: fit-content;
  margin-bottom: 12px;
}

.badge-pro {
  background: rgba(196, 165, 116, 0.2);
  color: #8c6e3b;
  border: 1px solid var(--accent-brass);
}

[data-theme="dark"] .badge-pro {
  background: rgba(196, 165, 116, 0.15);
  color: #e0caa8;
}

.badge-core {
  background: rgba(15, 110, 98, 0.12);
  color: var(--accent-teal);
  border: 1px solid var(--accent-teal);
}

.plugin-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.plugin-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.55;
  margin-bottom: 20px;
  flex-grow: 1;
}

.plugin-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line-light);
}

.plugin-meta {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-dim);
}

/* Custom Work CTA Banner */
.custom-cta-wrap {
  padding: 60px 0;
}

.custom-cta-card {
  background: var(--bg-card);
  border: 1.5px solid var(--line-border);
  border-radius: 20px;
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  box-shadow: var(--card-shadow);
  position: relative;
  overflow: hidden;
}

.custom-cta-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: var(--accent-brass);
}

.custom-cta-content h2 {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.custom-cta-content p {
  color: var(--text-muted);
  font-size: 0.96rem;
  max-width: 600px;
  line-height: 1.6;
}

.custom-cta-action {
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .custom-cta-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 32px 24px;
    gap: 20px;
  }
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line-border);
  padding: 48px 0;
  margin-top: 64px;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--accent-teal);
}

/* Responsive & Mobile Layout */
@media (max-width: 860px) {
  .header-inner {
    gap: 16px;
  }
  .nav-links {
    gap: 16px;
  }
}

@media (max-width: 680px) {
  .site-header {
    padding: 8px 0;
  }

  .header-inner {
    height: auto;
    flex-wrap: wrap;
    row-gap: 10px;
    column-gap: 12px;
    justify-content: space-between;
  }

  .brand {
    order: 1;
    font-size: 1.02rem;
  }

  .header-actions {
    order: 2;
    gap: 8px;
  }

  .header-actions .btn {
    padding: 7px 15px;
    font-size: 0.85rem;
  }

  .theme-toggle-btn {
    width: 34px;
    height: 34px;
  }

  .nav-links {
    order: 3;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 18px;
    padding-top: 8px;
    border-top: 1px solid var(--line-border);
  }

  .nav-links a {
    font-size: 0.88rem;
    padding: 2px 4px;
  }

  .hero {
    padding: 40px 0 28px;
  }

  .hero h1 {
    font-size: 2.1rem;
  }

  .hero-lead {
    font-size: 1rem;
    margin-bottom: 24px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    max-width: 340px;
    margin: 0 auto 32px;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .simulator-toolbar {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
  }

  .section {
    padding: 56px 0;
  }

  .section-title {
    font-size: 1.7rem;
  }

  .features-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .pricing-card {
    padding: 32px 24px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .brand {
    font-size: 0.98rem;
    gap: 8px;
  }

  .brand svg {
    width: 24px;
    height: 24px;
  }

  .brand-sub {
    font-size: 0.78rem;
  }

  .header-actions .btn {
    padding: 6px 12px;
    font-size: 0.8rem;
  }

  .theme-toggle-btn {
    width: 32px;
    height: 32px;
  }

  .nav-links {
    gap: 14px;
  }

  .nav-links a {
    font-size: 0.82rem;
  }

  .hero h1 {
    font-size: 1.85rem;
  }

  .hero-pill {
    font-size: 0.7rem;
    padding: 3px 10px;
    max-width: 100%;
    white-space: normal;
  }
}

@media (max-width: 360px) {
  .brand-sub {
    display: none;
  }

  .nav-links {
    gap: 10px;
  }
}
