/* ═══════════════════════════════════════════════════════════
   VERBATIM — Component Library  ·  Minimalist Modern
═══════════════════════════════════════════════════════════ */

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font-family: var(--font-body); font-weight: 500; font-size: 14px;
  padding: 10px 20px; border-radius: var(--radius-md);
  border: none; cursor: pointer; transition: all 0.2s;
  white-space: nowrap; text-decoration: none;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--gold); color: #FFFFFF; font-weight: 600;
  box-shadow: 0 4px 14px rgba(0,82,255,0.2);
}
.btn-primary:hover { background: var(--gold-soft); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(0,82,255,0.28); }

.btn-ghost {
  background: transparent; color: var(--text-primary);
  border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--gold-border); background: var(--gold-dim); color: var(--gold); }

.btn-presence {
  background: var(--gold-dim); color: var(--gold);
  border: 1px solid var(--gold-border);
}
.btn-presence:hover { background: var(--gold); color: #FFFFFF; }

.btn-free {
  background: var(--tier-free); color: #FFFFFF;
  border-radius: var(--radius-md);
}
.btn-basic {
  background: var(--tier-basic); color: #FFFFFF;
  border-radius: var(--radius-md);
}
.btn-enterprise {
  background: var(--tier-enterprise); color: #FFFFFF;
  border-radius: var(--radius-md);
}
.btn-free:hover, .btn-basic:hover, .btn-enterprise:hover {
  filter: brightness(1.1); transform: translateY(-1px);
}

.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-lg { padding: 13px 28px; font-size: 16px; }
.btn-full { width: 100%; }
.btn-glow { box-shadow: 0 0 0 3px var(--gold-dim), 0 6px 20px rgba(0,82,255,0.28); }

/* ── Card ── */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.card:hover { border-color: var(--gold-border); transform: translateY(-2px); box-shadow: var(--shadow-accent); }

.card-surface {
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
}

/* Pillar card */
.card-pillar {
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  border-top: 3px solid var(--gold);
  box-shadow: var(--shadow-sm);
  transition: var(--trans-normal);
}
.card-pillar:hover {
  box-shadow: var(--shadow-accent);
  transform: translateY(-4px);
}

/* Persona card */
.card-persona {
  background: var(--surface);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow-sm);
  transition: var(--trans-normal);
}
.card-persona:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

/* Feature card */
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: var(--trans-normal);
  position: relative; overflow: hidden;
}
.feature-card:hover {
  border-color: var(--gold-border);
  transform: translateY(-4px);
  box-shadow: var(--shadow-accent);
}

/* Feature icon */
.feature-icon {
  width: 48px; height: 48px; border-radius: var(--radius-md);
  background: var(--gold-dim);
  border: 1px solid var(--gold-border);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--space-5);
  flex-shrink: 0;
}
.feature-icon svg { width: 22px; height: 22px; stroke: var(--gold); }
.feature-name { font-size: 16px; font-weight: 600; color: var(--text-primary); margin-bottom: var(--space-2); font-family: var(--font-body); }
.feature-desc { font-size: 14px; color: var(--text-secondary); line-height: 1.65; }

/* ── Form elements ── */
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label {
  font-size: 13px; font-weight: 600; color: var(--text-primary);
  font-family: var(--font-body);
}
.form-input, .input {
  width: 100%; background: var(--white); border: 1px solid var(--border);
  color: var(--text-primary); padding: 10px 14px;
  border-radius: var(--radius-md); font-family: var(--font-body);
  font-size: 14px; outline: none; transition: border-color 0.2s, box-shadow 0.2s;
}
.form-input:focus, .input:focus { border-color: var(--gold-border); box-shadow: 0 0 0 3px var(--gold-dim); }
.form-input::placeholder, .input::placeholder { color: var(--text-muted); }

.form-textarea, .textarea {
  width: 100%; background: var(--white); border: 1px solid var(--border);
  color: var(--text-primary); padding: 12px 14px;
  border-radius: var(--radius-md); font-family: var(--font-body);
  font-size: 14px; line-height: 1.7; outline: none; resize: vertical;
  transition: border-color 0.2s, box-shadow 0.2s; min-height: 120px;
}
.form-textarea:focus, .textarea:focus { border-color: var(--gold-border); box-shadow: 0 0 0 3px var(--gold-dim); }
.form-textarea::placeholder, .textarea::placeholder { color: var(--text-muted); }

.form-select, select.form-select {
  width: 100%; background: var(--white); border: 1px solid var(--border);
  color: var(--text-primary); padding: 10px 14px;
  border-radius: var(--radius-md); font-family: var(--font-body);
  font-size: 14px; outline: none; cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
  padding-right: 36px;
}
.form-select:focus { border-color: var(--gold-border); }

/* ── Pill toggle (pricing) ── */
.pill-toggle {
  display: inline-flex; background: var(--surface-raised);
  border: 1px solid var(--border); border-radius: var(--radius-full);
  padding: 4px; gap: 2px;
}
.pill-toggle__option {
  padding: 8px 20px; border-radius: var(--radius-full);
  font-size: 14px; font-weight: 500; color: var(--text-muted);
  cursor: pointer; transition: var(--trans-fast); border: none;
  background: transparent; display: flex; align-items: center; gap: 6px;
}
.pill-toggle__option.active {
  background: var(--gold); color: #FFFFFF; font-weight: 600;
  box-shadow: 0 2px 8px rgba(0,82,255,0.25);
}
.pill-toggle__save {
  background: var(--success-bg); color: var(--success);
  font-size: 11px; font-weight: 600; letter-spacing: 0.05em;
  padding: 2px 8px; border-radius: var(--radius-full);
}

/* ── Testimonial card ── */
.testimonial-card {
  background: rgba(255,255,255,0.06);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  position: relative; overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: none;
  transition: var(--trans-normal);
  height: 100%;
}
.testimonial-card:hover { border-color: rgba(255,255,255,0.2); background: rgba(255,255,255,0.08); }
.testimonial-quote-mark {
  position: absolute; top: 12px; left: 20px;
  font-family: var(--font-display); font-size: 80px; line-height: 1;
  color: var(--gold); opacity: 0.2; font-weight: 400;
  user-select: none; pointer-events: none;
}
.testimonial-quote {
  font-size: 15px; color: rgba(255,255,255,0.85); line-height: 1.75;
  padding-top: var(--space-8); margin-bottom: var(--space-6);
  font-style: italic;
}
.testimonial-author { display: flex; align-items: center; gap: var(--space-3); }
.testimonial-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--gold-dim); border: 1.5px solid var(--gold-border);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 15px; color: var(--gold);
  flex-shrink: 0;
}
.testimonial-name   { font-size: 14px; font-weight: 600; color: #FFFFFF; }
.testimonial-role   { font-size: 12px; color: rgba(255,255,255,0.5); margin-top: 2px; }

/* ── FAQ Accordion ── */
.faq-item {
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.faq-question {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  padding: var(--space-5) 0; cursor: pointer;
  font-size: 16px; font-weight: 500; color: var(--text-primary);
  font-family: var(--font-body); background: none; border: none; width: 100%;
  text-align: left; transition: color 0.2s;
}
.faq-question:hover { color: var(--gold); }
.faq-icon {
  width: 28px; height: 28px; border-radius: 50%;
  border: 1.5px solid var(--border); background: var(--surface-raised);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  font-size: 18px; color: var(--text-muted); transition: transform 0.3s, background 0.2s;
}
.faq-item.open .faq-icon { transform: rotate(45deg); background: var(--gold); color: #FFFFFF; border-color: var(--gold); }
.faq-answer {
  max-height: 0; overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}
.faq-answer-inner { padding-bottom: var(--space-5); font-size: 15px; color: var(--text-secondary); line-height: 1.8; }
.faq-item.open .faq-answer { max-height: 400px; }

/* ── Pricing checklist ── */
.pricing-features { margin: var(--space-5) 0 var(--space-6); display: flex; flex-direction: column; gap: var(--space-3); }
.pricing-feature {
  display: flex; align-items: flex-start; gap: var(--space-3);
  font-size: 14px; color: var(--text-primary); line-height: 1.45;
}
.pricing-feature.unavailable { color: var(--text-muted); }
.pricing-feature .check { font-size: 14px; flex-shrink: 0; margin-top: 1px; }
.pricing-feature .cross { font-size: 14px; flex-shrink: 0; margin-top: 1px; color: var(--text-muted); }

/* ── Section headers ── */
.section-header { text-align: center; max-width: 680px; margin: 0 auto var(--space-16); }
.section-header h2 { margin-bottom: var(--space-4); }
.section-header p  { font-size: 18px; color: var(--text-secondary); }

/* ── Dashboard shell ── */
.dashboard-shell { display: flex; height: 100vh; overflow: hidden; }
.dashboard-main  { flex: 1; overflow-y: auto; display: flex; flex-direction: column; min-width: 0; }
.dashboard-content {
  padding: var(--space-6); flex: 1;
  max-width: 100%;
}

/* ── Sidebar ── */
.sidebar {
  width: var(--sidebar-width); background: var(--white);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  height: 100vh; overflow-y: auto; flex-shrink: 0;
  position: relative; z-index: 10;
}
.sidebar-logo {
  padding: var(--space-6) var(--space-5);
  font-family: var(--font-display); font-size: 20px; font-weight: 400;
  color: var(--text-primary); letter-spacing: 0.01em;
  border-bottom: 1px solid var(--border);
  display: block;
}
.sidebar-nav { padding: var(--space-4) 0; flex: 1; }
.sidebar-nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px var(--space-5); font-size: 14px;
  color: var(--text-secondary); transition: all 0.15s;
  border-left: 3px solid transparent; font-family: var(--font-body);
}
.sidebar-nav-item svg { width: 18px; height: 18px; stroke: currentColor; flex-shrink: 0; }
.sidebar-nav-item:hover { color: var(--text-primary); background: var(--surface-raised); }
.sidebar-nav-item.active {
  background: var(--gold-dim); color: var(--gold);
  border-left-color: var(--gold);
}
.sidebar-nav-section {
  padding: var(--space-4) var(--space-5) var(--space-2);
  font-size: 10px; font-family: var(--font-mono); font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted);
}
.sidebar-nav-divider { height: 1px; background: var(--border); margin: var(--space-2) var(--space-5); }
.sidebar-user {
  padding: var(--space-4) var(--space-5);
  border-top: 1px solid var(--border);
  display: flex; align-items: center; gap: var(--space-3);
}
.sidebar-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--gold-dim); border: 1.5px solid var(--gold-border);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: var(--gold); flex-shrink: 0;
}
.sidebar-user-name { font-size: 13px; font-weight: 600; color: var(--text-primary); }
.sidebar-user-plan {
  font-size: 11px; font-family: var(--font-mono); color: var(--gold);
  text-transform: uppercase; letter-spacing: 0.08em;
}

/* ── Topbar ── */
.topbar {
  height: var(--topbar-height); padding: 0 var(--space-6);
  background: var(--white); border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  flex-shrink: 0;
}
.topbar-breadcrumb { display: flex; align-items: center; font-size: 14px; }
.topbar-right { display: flex; align-items: center; gap: var(--space-3); }
.topbar-search {
  display: flex; align-items: center; gap: 8px;
  background: var(--surface-raised); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 7px 12px;
  transition: border-color 0.2s;
}
.topbar-search:focus-within { border-color: var(--gold-border); }
.topbar-search input {
  background: none; border: none; outline: none;
  font-size: 13px; color: var(--text-primary); width: 180px;
}
.topbar-search input::placeholder { color: var(--text-muted); }
.topbar-icon-btn {
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  border: none; background: transparent; color: var(--text-secondary);
  border-radius: var(--radius-md); transition: all 0.15s;
}
.topbar-icon-btn:hover { background: var(--surface-raised); color: var(--text-primary); }

/* ── Metric pill / stat card ── */
.metric-pill {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: var(--space-3) var(--space-4);
  text-align: center; transition: all 0.2s;
}
.metric-pill:hover { border-color: var(--gold-border); }
.metric-pill-value { font-family: var(--font-mono); font-size: 18px; font-weight: 600; color: var(--text-primary); }
.metric-pill-value.up   { color: var(--success); }
.metric-pill-value.down { color: var(--gold); }
.metric-pill-label { font-size: 11px; font-family: var(--font-mono); color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 2px; }

/* ── Progress bar ── */
.progress-track {
  background: var(--surface-raised); border-radius: var(--radius-full);
  height: 6px; overflow: hidden;
}
.progress-fill {
  height: 100%; background: var(--gold); border-radius: var(--radius-full);
  transition: width 0.8s ease-out;
}
.progress-fill.blue  { background: var(--info); }
.progress-fill.green { background: var(--success); }

/* ── Toggle switch ── */
.toggle { position: relative; width: 44px; height: 24px; display: inline-block; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute; inset: 0;
  background: var(--surface-raised); border: 1px solid var(--border);
  border-radius: 24px; transition: 0.2s; cursor: pointer;
}
.toggle-slider::before {
  content: ''; position: absolute;
  width: 18px; height: 18px; left: 2px; top: 2px;
  background: var(--text-muted); border-radius: 50%; transition: 0.2s;
}
input:checked + .toggle-slider { background: var(--gold-dim); border-color: var(--gold-border); }
input:checked + .toggle-slider::before { transform: translateX(20px); background: var(--gold); }

/* ── Responsive ── */
@media (max-width: 1023px) {
  .sidebar {
    position: fixed; left: 0; top: 0; bottom: 0;
    transform: translateX(-100%); z-index: 1000;
    transition: transform 0.3s ease;
  }
  .sidebar.open { transform: translateX(0); }
  .sidebar-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(15,23,42,0.3); z-index: 999;
  }
  .sidebar.open ~ .sidebar-overlay { display: block; }
  .dashboard-shell { overflow: auto; }
  .dashboard-main { height: 100vh; }
}
@media (max-width: 900px) {
  body { overflow: auto; }
}

/* ── App Dark Strip (inverted dark section on app pages) ── */
.app-dark-strip {
  background: var(--navy);
  color: #fff;
  padding: var(--space-3) var(--space-5);
}
.app-dark-strip__inner {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  max-width: 1100px;
  margin: 0 auto;
  flex-wrap: wrap;
}
.app-dark-strip__icon { font-size: 18px; flex-shrink: 0; }
.app-dark-strip__text {
  flex: 1;
  font-size: 13.5px;
  color: rgba(255,255,255,0.82);
  line-height: 1.5;
}
.app-dark-strip__text strong { color: #fff; }
.app-dark-strip__text kbd,
.app-dark-strip__kbd kbd {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 5px;
  padding: 1px 6px;
  color: #fff;
}
.app-dark-strip__cta {
  font-size: 13px;
  font-weight: 600;
  color: var(--gold-soft);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: color 0.2s;
}
.app-dark-strip__cta:hover { color: #fff; }
.app-dark-strip__kbd {
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  white-space: nowrap;
  flex-shrink: 0;
}
@media (max-width: 600px) {
  .app-dark-strip { padding: var(--space-2) var(--space-3); }
  .app-dark-strip__cta, .app-dark-strip__kbd { display: none; }
}

/* ── Toast Notifications ── */
#toast-container {
  position: fixed;
  bottom: var(--space-5);
  right: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  z-index: 9999;
  pointer-events: none;
}
.toast {
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  background: var(--navy);
  color: #fff;
  box-shadow: 0 8px 32px rgba(15,23,42,0.18);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s, transform 0.25s;
  pointer-events: auto;
}
.toast.visible { opacity: 1; transform: translateY(0); }
.toast-success { background: var(--success); }
.toast-error   { background: var(--error); }
.toast-info    { background: var(--navy); }

/* ── Scroll Reveal ── */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 0.55s ease, transform 0.55s ease; }
[data-reveal].revealed { opacity: 1; transform: none; }

/* ── Page Enter ── */
.page-enter { animation: pageEnterAnim 0.45s ease both; }
@keyframes pageEnterAnim {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}
