/* ============================================
   EQUITY SPLIT CALCULATOR — STYLES
   ============================================ */

:root {
  --primary: #1B2A4A;
  --primary-dark: #0F1D36;
  --primary-light: #E8ECF2;
  --accent: #3B82F6;
  --accent-light: #EBF2FF;
  --success: #10B981;
  --warning: #F59E0B;
  --danger: #EF4444;
  --text: #1A1A2E;
  --text-secondary: #4B5563;
  --text-light: #9CA3AF;
  --bg: #F5F6F8;
  --bg-white: #FFFFFF;
  --border: #D1D5DB;
  --border-light: #F3F4F6;
  --shadow-sm: 0 1px 3px rgba(27, 42, 74, 0.08);
  --shadow-md: 0 4px 12px rgba(27, 42, 74, 0.1);
  --shadow-lg: 0 8px 30px rgba(27, 42, 74, 0.12);
  --shadow-xl: 0 16px 50px rgba(27, 42, 74, 0.15);
  --charcoal: #2D3748;
  --charcoal-light: #4A5568;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ============ HEADER ============ */

.header {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  user-select: none;
}

.logo-icon {
  font-size: 1.5rem;
}

.logo-accent {
  color: var(--primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.header-link {
  text-decoration: none;
}

.header-link.active-link {
  color: var(--primary);
  font-weight: 600;
}

.icon-book {
  font-size: 1rem;
}

/* ============ BUTTONS ============ */

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border: none;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-primary.btn-lg {
  padding: 16px 40px;
  font-size: 1.1rem;
  border-radius: var(--radius-md);
}

.btn-secondary {
  background: var(--bg-white);
  color: var(--primary);
  border: 2px solid var(--primary);
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-secondary:hover {
  background: var(--primary-light);
}

.btn-ghost {
  background: none;
  border: none;
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-ghost:hover {
  background: var(--border-light);
  color: var(--text);
}

/* ============ STEP BAR ============ */

.step-bar {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px;
}

.step-bar-inner {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.step-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.step-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--text-light);
  transition: all 0.3s;
}

.step-dot.active {
  background: var(--primary);
  color: white;
  box-shadow: 0 0 0 4px var(--primary-light);
}

.step-dot.completed {
  background: var(--success);
  color: white;
}

.step-label {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.step-line {
  height: 2px;
  width: 60px;
  background: var(--border);
  margin: 0 8px;
  margin-bottom: 22px;
  border-radius: 2px;
  transition: background 0.3s;
}

.step-line.active {
  background: var(--primary);
}

/* ============ MAIN & STEPS ============ */

.main {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px 60px;
}

.step {
  display: none;
  animation: fadeIn 0.4s ease;
}

.step.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.step-content {
  padding-top: 40px;
}

.step-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.step-desc {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 32px;
}

.step-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

/* ============ HERO (STEP 1) ============ */

.hero {
  text-align: center;
  padding: 80px 20px 60px;
}

.hero-badge {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 24px;
  letter-spacing: 0.3px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo-accent {
  color: var(--accent);
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.hero-features {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-top: 48px;
  flex-wrap: wrap;
}

.hero-feature {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.hf-icon {
  font-size: 1.2rem;
}

/* ============ STEP 2: FOUNDERS ============ */

.founders-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.founder-card {
  background: var(--bg-white);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all 0.2s;
}

.founder-card:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.founder-number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.founder-inputs {
  display: flex;
  gap: 12px;
  flex: 1;
  flex-wrap: wrap;
}

.founder-input {
  flex: 1;
  min-width: 140px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text);
  transition: border-color 0.2s;
  background: var(--bg);
}

.founder-input:focus {
  outline: none;
  border-color: var(--primary);
}

.founder-input::placeholder {
  color: var(--text-light);
}

.founder-role-select {
  flex: 1;
  min-width: 140px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text);
  background: var(--bg);
  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 12 12'%3E%3Cpath fill='%236B7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}

.founder-role-select:focus {
  outline: none;
  border-color: var(--primary);
}

.btn-remove-founder {
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 1.3rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
  flex-shrink: 0;
  line-height: 1;
}

.btn-remove-founder:hover {
  color: var(--danger);
  background: #FEE2E2;
}

/* ============ STEP 3: QUESTIONNAIRE ============ */

.q-founders-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.q-founder-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 16px;
  font-weight: 600;
  font-size: 0.88rem;
}

.q-founder-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Progress bar */
.q-progress-wrap {
  position: sticky;
  top: 60px;
  background: var(--bg);
  padding: 12px 0 16px;
  z-index: 10;
  margin-bottom: 8px;
}

.q-progress-track {
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}

.q-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--charcoal), var(--accent));
  border-radius: 2px;
  transition: width 0.3s ease;
}

.q-progress-text {
  font-size: 0.75rem;
  color: var(--text-light);
  margin-top: 6px;
  text-align: right;
}

/* Section headers */
.q-section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  margin-top: 36px;
}

.q-section-badge {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 6px 16px;
  border-radius: 20px;
  flex-shrink: 0;
}

.q-section-weight {
  font-size: 0.85rem;
  color: var(--charcoal);
  font-weight: 600;
}

/* Factor color badges */
.q-badge-idea { background: #FEF3C7; color: #92400E; }
.q-badge-role { background: #DBEAFE; color: #1E40AF; }
.q-badge-time { background: #D1FAE5; color: #065F46; }
.q-badge-experience { background: #EDE9FE; color: #5B21B6; }
.q-badge-stage { background: #FEE2E2; color: #991B1B; }
.q-badge-capital { background: #FFF7ED; color: #9A3412; }
.q-badge-risk { background: #F1F5F9; color: #334155; }

/* Question card */
.q-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-bottom: 12px;
}

.q-number {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.q-text {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--charcoal);
  margin-bottom: 14px;
  line-height: 1.5;
}

.q-options-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px;
}

.q-option-label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 500;
  transition: background 0.15s;
  user-select: none;
}

.q-option-label:hover {
  background: var(--border-light);
}

.q-option-label.checked {
  background: var(--accent-light);
}

.q-option-label input[type="checkbox"],
.q-option-label input[type="radio"] {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
  cursor: pointer;
  flex-shrink: 0;
}

.q-option-special {
  grid-column: 1 / -1;
  border-top: 1px solid var(--border-light);
  margin-top: 4px;
  padding-top: 12px;
}

.q-option-special .q-option-label {
  color: var(--text-secondary);
  font-style: italic;
}

.tooltip-trigger {
  cursor: help;
  position: relative;
}

.icon-info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--border);
  color: var(--text-secondary);
  font-size: 0.7rem;
  font-weight: 700;
  font-style: italic;
  cursor: help;
  transition: all 0.2s;
}

.icon-info:hover {
  background: var(--primary);
  color: white;
}

.inline-tooltip-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.65rem;
  font-weight: 700;
  font-style: italic;
  vertical-align: middle;
}

/* ============ STEP 4: RESULTS ============ */

.disclaimer-banner {
  background: #FFF8E1;
  border: 1px solid #FFD54F;
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 32px;
  font-size: 0.88rem;
  line-height: 1.6;
  color: #5D4037;
}

.disclaimer-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.results-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.result-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.result-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.chart-wrapper {
  max-width: 280px;
  margin: 0 auto;
}

.table-wrapper {
  overflow-x: auto;
}

#results-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

#results-table th {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 2px solid var(--border);
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

#results-table td {
  padding: 12px;
  border-bottom: 1px solid var(--border-light);
}

#results-table tbody tr:last-child td {
  border-bottom: none;
}

.equity-cell {
  font-weight: 700;
  color: var(--primary);
  font-size: 1rem;
}

/* Option pool */
.option-pool-card {
  margin-bottom: 24px;
}

.option-pool-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.option-pool-value {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary);
}

#option-pool-slider {
  width: 100%;
  margin: 12px 0 4px;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 3px;
  background: var(--border);
  outline: none;
}

#option-pool-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s;
}

#option-pool-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-light);
}

/* Vesting */
.vesting-card {
  margin-bottom: 24px;
}

.vesting-visual {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.vesting-timeline {
  padding: 0 8px;
}

.vesting-bar {
  height: 12px;
  background: var(--border);
  border-radius: 6px;
  position: relative;
  overflow: hidden;
}

.vesting-cliff {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 25%;
  background: repeating-linear-gradient(
    -45deg,
    var(--primary-light),
    var(--primary-light) 4px,
    transparent 4px,
    transparent 8px
  );
}

.vesting-progress {
  position: absolute;
  left: 25%;
  top: 0;
  height: 100%;
  width: 75%;
  background: linear-gradient(90deg, var(--charcoal), var(--accent));
  border-radius: 0 6px 6px 0;
}

.vesting-markers {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  padding: 0 0;
}

.vesting-marker {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-secondary);
  position: relative;
  flex: 1;
}

.vesting-marker span {
  display: block;
  margin-top: 4px;
}

.vesting-marker small {
  color: var(--primary);
  font-weight: 600;
}

.marker-line {
  width: 2px;
  height: 10px;
  background: var(--text-light);
  margin: 0 auto;
  border-radius: 1px;
}

.cliff-marker .marker-line {
  background: var(--accent);
}

.vesting-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.vesting-detail {
  background: var(--bg);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
}

.vesting-detail strong {
  display: block;
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.vesting-detail span {
  font-size: 0.88rem;
  font-weight: 500;
}

/* Factor weights */
.weights-card {
  margin-bottom: 24px;
}

.weights-desc {
  color: var(--text-secondary);
  font-size: 0.88rem;
  margin-top: -12px;
  margin-bottom: 20px;
}

.weights-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.weight-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.weight-bar-bg {
  height: 8px;
  background: var(--border-light);
  border-radius: 4px;
  overflow: hidden;
}

.weight-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--charcoal), var(--accent));
  border-radius: 4px;
  transition: width 0.6s ease;
}

.weight-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.weight-name {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.weight-pct {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary);
}

/* Result actions */
.result-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 8px;
}

/* ============ MODAL ============ */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 26, 46, 0.5);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow-y: auto;
}

.modal-overlay.open {
  display: flex;
}

.modal {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 40px;
  max-width: 680px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-xl);
  animation: modalIn 0.3s ease;
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--text-light);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}

.modal-close:hover {
  color: var(--text);
  background: var(--border-light);
}

.modal h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 28px;
}

.faq-section {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-light);
}

.faq-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.faq-section h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.faq-section p, .faq-section li {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.7;
}

.faq-section ul {
  padding-left: 20px;
  margin-top: 8px;
}

.faq-section li {
  margin-bottom: 4px;
}

.faq-weights {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 12px 0;
}

.faq-weight-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
}

.faq-weight-badge {
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-light);
  padding: 2px 10px;
  border-radius: 10px;
  font-size: 0.82rem;
}

.faq-note {
  margin-top: 8px;
  font-size: 0.82rem !important;
  font-style: italic;
}

.disclaimer-section {
  background: #FFF8E1;
  border: 1px solid #FFD54F;
  padding: 16px 20px;
  border-radius: var(--radius-md);
}

.disclaimer-section h3 {
  color: #E65100;
}

.disclaimer-section p {
  color: #5D4037;
}

/* ============ TOOLTIP POPUP ============ */

.tooltip-popup {
  position: fixed;
  background: var(--text);
  color: white;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  line-height: 1.5;
  max-width: 300px;
  z-index: 2000;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
  box-shadow: var(--shadow-lg);
}

.tooltip-popup.visible {
  opacity: 1;
}

/* ============ FOOTER ============ */

.footer {
  border-top: 1px solid var(--border);
  background: var(--bg-white);
  padding: 24px;
  margin-top: 40px;
}

.footer-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.footer-text {
  font-size: 0.85rem;
  color: var(--text-light);
  font-weight: 500;
}

.footer-logo-link {
  display: inline-flex;
  align-items: center;
  transition: opacity 0.2s;
}

.footer-logo-link:hover {
  opacity: 0.75;
}

.footer-logo {
  height: 28px;
  width: auto;
  object-fit: contain;
}

/* ============ GLOSSARY PAGE ============ */

.glossary-main {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px 60px;
}

.glossary-hero {
  text-align: center;
  padding: 48px 0 32px;
}

.glossary-title {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 12px;
}

.glossary-sub {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 28px;
  line-height: 1.6;
}

.glossary-search-wrap {
  position: relative;
  max-width: 420px;
  margin: 0 auto 12px;
}

.glossary-search {
  width: 100%;
  padding: 12px 16px 12px 42px;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg-white);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.glossary-search:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.glossary-search::placeholder {
  color: var(--text-light);
}

.glossary-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
  pointer-events: none;
}

.glossary-count {
  font-size: 0.82rem;
  color: var(--text-light);
  font-weight: 500;
}

/* Alphabet bar */
.glossary-alpha-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: center;
  margin-bottom: 32px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-light);
}

.alpha-btn {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--bg-white);
  color: var(--primary);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
}

.alpha-btn:hover:not(.disabled) {
  background: var(--primary);
  color: white;
}

.alpha-btn.disabled {
  color: var(--text-light);
  opacity: 0.4;
  cursor: default;
}

/* Glossary items */
.glossary-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.glossary-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--border-light);
  transition: background 0.3s;
}

.glossary-item:first-child {
  padding-top: 0;
}

.glossary-item:last-child {
  border-bottom: none;
}

.glossary-item.highlight {
  background: var(--accent-light);
  margin: 0 -16px;
  padding-left: 16px;
  padding-right: 16px;
  border-radius: var(--radius-sm);
}

.glossary-term-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}

.glossary-number {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-light);
  min-width: 22px;
  text-align: right;
}

.glossary-term {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}

.glossary-definition {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-left: 34px;
}

.glossary-empty {
  text-align: center;
  padding: 48px 0;
  color: var(--text-light);
  font-size: 1rem;
}

/* ============ RESPONSIVE ============ */

@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-sub {
    font-size: 1rem;
  }

  .hero-features {
    gap: 16px;
  }

  .results-grid {
    grid-template-columns: 1fr;
  }

  .founder-card {
    flex-wrap: wrap;
  }

  .founder-inputs {
    flex-basis: 100%;
  }

  .q-options-row {
    grid-template-columns: 1fr 1fr;
  }

  .vesting-details {
    grid-template-columns: 1fr;
  }

  .step-title {
    font-size: 1.4rem;
  }

  .result-actions {
    flex-direction: column;
  }

  .result-actions button {
    width: 100%;
    justify-content: center;
  }

  .modal {
    padding: 24px;
    max-height: 90vh;
  }

  .glossary-title {
    font-size: 1.6rem;
  }

  .alpha-btn {
    width: 28px;
    height: 28px;
    font-size: 0.7rem;
  }

  .step-label {
    font-size: 0.62rem;
  }

  .step-line {
    width: 30px;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 40px 8px 40px;
  }

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

  .step-bar-inner {
    gap: 0;
  }

  .header-inner {
    padding: 12px 16px;
  }

  .header-actions .btn-ghost {
    padding: 6px 10px;
    font-size: 0.78rem;
  }
}
