/* ═══════════════════════════════════════════════════════════════
   GSI Premium — Fable-tier upgrade layer
   ═══════════════════════════════════════════════════════════════ */

:root {
  --shadow-sm: 0 2px 8px rgba(12, 35, 64, 0.06);
  --shadow-md: 0 8px 32px rgba(12, 35, 64, 0.1);
  --shadow-lg: 0 20px 60px rgba(12, 35, 64, 0.15);
  --radius-lg: 16px;
  --radius-xl: 24px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

body { overflow-x: hidden; }

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* Premium header */
.site-header {
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.92);
  transition: box-shadow 0.3s;
}
.site-header.scrolled {
  box-shadow: var(--shadow-md);
}
.main-nav a {
  position: relative;
  transition: color 0.2s, background 0.2s;
}
.main-nav a.nav-features {
  color: var(--teal);
  font-weight: 700;
}
.main-nav a.nav-features::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 12px;
  right: 12px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}

.btn {
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s, opacity 0.2s;
}
.btn:hover {
  opacity: 1;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-primary {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-light) 100%);
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold) 0%, #e0b840 100%);
  color: var(--navy);
}

/* Hero premium */
.hero {
  min-height: clamp(420px, 70vh, 560px);
}
.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(201, 162, 39, 0.2);
  border: 1px solid rgba(201, 162, 39, 0.5);
  color: #f0d878;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 18px;
}
.hero-stats {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.2);
}
.hero-stat strong {
  display: block;
  font-size: 28px;
  font-family: 'Source Serif 4', Georgia, serif;
  color: var(--gold);
}
.hero-stat span {
  font-size: 13px;
  opacity: 0.85;
}

/* Compare strip — old vs new */
.compare-section {
  background: var(--navy);
  color: white;
  padding: 64px 24px;
}
.compare-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.compare-section .section-title { color: white; }
.compare-section .section-sub { color: rgba(255,255,255,0.7); }
.compare-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: stretch;
  margin-top: 32px;
}
.compare-card {
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
}
.compare-old {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
}
.compare-new {
  background: linear-gradient(145deg, rgba(13,124,140,0.35) 0%, rgba(26,58,92,0.5) 100%);
  border: 2px solid var(--gold);
  box-shadow: 0 0 40px rgba(201, 162, 39, 0.15);
}
.compare-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.compare-old .compare-label { color: #fc8181; }
.compare-new .compare-label { color: var(--gold); }
.compare-card ul {
  list-style: none;
  font-size: 14px;
  line-height: 2;
}
.compare-old li::before { content: '✗ '; color: #fc8181; }
.compare-new li::before { content: '✓ '; color: #68d391; }
.compare-arrow {
  display: flex;
  align-items: center;
  font-size: 32px;
  color: var(--gold);
  font-weight: 700;
}

/* Featured products */
.featured-section {
  background: linear-gradient(180deg, var(--bg) 0%, white 100%);
}
.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}
.featured-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s;
}
.featured-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}
.featured-card .img-wrap {
  background: linear-gradient(135deg, #f8fafc 0%, #edf2f7 100%);
  padding: 24px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.featured-card img {
  max-height: 160px;
  object-fit: contain;
}
.featured-card-body { padding: 20px; }
.featured-card-body h3 {
  font-size: 16px;
  color: var(--navy);
  margin-bottom: 6px;
}
.featured-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: rgba(13,124,140,0.12);
  color: var(--teal);
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 8px;
}

/* Trust bar */
.trust-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px;
  padding: 28px 24px;
  background: white;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.trust-item {
  text-align: center;
  font-size: 13px;
  color: var(--slate);
}
.trust-item strong {
  display: block;
  font-size: 15px;
  color: var(--navy);
  margin-bottom: 2px;
}

/* Pillar cards hover */
.pillar-card {
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s;
}
.pillar-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

/* Quote automation banner (products page) */
.automation-hero {
  background: linear-gradient(135deg, var(--navy) 0%, #0d3d4a 50%, var(--teal) 100%);
  color: white;
  padding: 48px 24px;
  position: relative;
  overflow: hidden;
}
.automation-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(circle, rgba(201,162,39,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.automation-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.automation-hero h2 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: clamp(26px, 4vw, 34px);
  margin-bottom: 12px;
}
.automation-hero p {
  font-size: 15px;
  line-height: 1.65;
  opacity: 0.9;
  margin-bottom: 12px;
}
.flow-steps {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.flow-step {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 13px;
  transition: background 0.3s, transform 0.3s;
}
.flow-step:hover {
  background: rgba(255,255,255,0.14);
  transform: translateX(6px);
}
.flow-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.flow-step.highlight {
  border-color: var(--gold);
  background: rgba(201,162,39,0.15);
}

/* Contact CTA section */
.contact-cta {
  background: linear-gradient(180deg, #edf2f7 0%, var(--bg) 100%);
  padding: 72px 24px;
}
.contact-cta-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  align-items: start;
}
.contact-cta-copy h2 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: clamp(28px, 4vw, 36px);
  color: var(--navy);
  margin-bottom: 12px;
  line-height: 1.2;
}
.contact-cta-copy .lead {
  font-size: 17px;
  color: var(--teal);
  font-weight: 600;
  margin-bottom: 16px;
}
.contact-cta-copy p {
  font-size: 15px;
  color: var(--slate);
  line-height: 1.65;
  margin-bottom: 12px;
}
.contact-cta-points {
  list-style: none;
  margin-top: 20px;
}
.contact-cta-points li {
  padding: 8px 0 8px 28px;
  position: relative;
  font-size: 14px;
  color: var(--slate);
}
.contact-cta-points li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--teal);
  font-weight: 700;
}
.contact-form-premium {
  background: white;
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}
.contact-form-premium h3 {
  font-size: 18px;
  color: var(--navy);
  margin-bottom: 4px;
}
.contact-form-premium .form-note {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 20px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.contact-form-premium label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--navy);
  margin: 12px 0 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.contact-form-premium input,
.contact-form-premium textarea,
.contact-form-premium select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.contact-form-premium input:focus,
.contact-form-premium textarea:focus,
.contact-form-premium select:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(13,124,140,0.15);
}
.contact-form-premium textarea { min-height: 100px; resize: vertical; }

/* Voice agent widget */
.voice-agent {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
}
.voice-agent-btn {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--teal) 0%, var(--navy) 100%);
  color: white;
  cursor: pointer;
  box-shadow: 0 8px 32px rgba(13,124,140,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  transition: transform 0.3s var(--ease-out);
  position: relative;
}
.voice-agent-btn::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--teal);
  animation: pulse-ring 2s infinite;
}
@keyframes pulse-ring {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.35); opacity: 0; }
}
.voice-agent-btn:hover { transform: scale(1.08); }
.voice-agent-panel {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 320px;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(0.95);
  transition: all 0.35s var(--ease-out);
}
.voice-agent-panel.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}
.voice-panel-header {
  background: linear-gradient(135deg, var(--navy), var(--teal));
  color: white;
  padding: 16px 18px;
}
.voice-panel-header h4 { font-size: 15px; margin-bottom: 2px; }
.voice-panel-header p { font-size: 12px; opacity: 0.85; }
.voice-panel-body { padding: 16px 18px; font-size: 13px; color: var(--slate); line-height: 1.5; }
.voice-panel-body ul { margin: 10px 0 0 16px; }
.voice-panel-actions {
  padding: 0 18px 16px;
  display: flex;
  gap: 8px;
}
.voice-panel-actions button {
  flex: 1;
  padding: 10px;
  border-radius: 8px;
  border: none;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.voice-btn-call { background: var(--teal); color: white; }
.voice-btn-chat { background: var(--bg); color: var(--navy); }

/* Features page */
.features-hero {
  background: linear-gradient(135deg, var(--navy) 0%, #0a3040 100%);
  color: white;
  padding: 80px 24px 64px;
  text-align: center;
}
.features-hero h1 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: clamp(32px, 5vw, 48px);
  max-width: 800px;
  margin: 0 auto 16px;
  line-height: 1.15;
}
.features-hero p {
  font-size: 18px;
  opacity: 0.85;
  max-width: 640px;
  margin: 0 auto 28px;
}
.roi-banner {
  display: inline-flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
  background: rgba(201,162,39,0.15);
  border: 1px solid rgba(201,162,39,0.4);
  border-radius: 100px;
  padding: 12px 28px;
  font-size: 14px;
}
.roi-banner strong { color: var(--gold); }

.feature-block {
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 24px;
}
.feature-block.alt { background: white; }
.feature-block:nth-child(even) { background: var(--bg); }

.feature-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.feature-split.reverse .feature-visual { order: -1; }

.feature-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 10px;
}
.feature-split h2 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: clamp(24px, 3.5vw, 32px);
  color: var(--navy);
  margin-bottom: 14px;
  line-height: 1.2;
}
.feature-split p {
  font-size: 15px;
  color: var(--slate);
  line-height: 1.65;
  margin-bottom: 12px;
}
.feature-list {
  list-style: none;
  margin-top: 16px;
}
.feature-list li {
  padding: 6px 0 6px 24px;
  position: relative;
  font-size: 14px;
  color: var(--slate);
}
.feature-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
}

/* Mock UI panels */
.mock-ui {
  background: #1a202c;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid #2d3748;
}
.mock-ui-bar {
  background: #2d3748;
  padding: 10px 14px;
  display: flex;
  gap: 6px;
}
.mock-ui-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #4a5568;
}
.mock-ui-dot.red { background: #fc8181; }
.mock-ui-dot.yellow { background: #f6e05e; }
.mock-ui-dot.green { background: #68d391; }
.mock-ui-body { padding: 16px; }

/* CRM mock */
.crm-mock { font-size: 12px; color: #e2e8f0; }
.crm-mock-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #4a5568;
}
.crm-mock-header span { color: #a0aec0; font-size: 11px; }
.crm-table {
  width: 100%;
  border-collapse: collapse;
}
.crm-table th {
  text-align: left;
  padding: 8px 10px;
  background: #2d3748;
  color: #a0aec0;
  font-weight: 600;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.crm-table td {
  padding: 10px;
  border-bottom: 1px solid #2d3748;
  color: #e2e8f0;
}
.crm-table tr:hover td { background: rgba(13,124,140,0.15); }
.crm-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 100px;
  font-size: 10px;
  font-weight: 600;
}
.crm-badge.hot { background: rgba(246,173,85,0.2); color: #f6ad55; }
.crm-badge.quote { background: rgba(104,211,145,0.2); color: #68d391; }
.crm-badge.seminar { background: rgba(144,205,244,0.2); color: #90cdf4; }

/* Quote mock */
.quote-mock {
  background: white;
  border-radius: 12px;
  padding: 20px;
  color: var(--navy);
  font-size: 13px;
}
.quote-mock-header {
  display: flex;
  justify-content: space-between;
  border-bottom: 2px solid var(--navy);
  padding-bottom: 12px;
  margin-bottom: 12px;
}
.quote-mock-header h4 { font-size: 16px; }
.quote-mock-status {
  background: #fef3c7;
  color: #92400e;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 100px;
}
.quote-mock table { width: 100%; margin: 12px 0; }
.quote-mock td { padding: 6px 0; border-bottom: 1px solid var(--border); }
.quote-mock .total {
  font-weight: 700;
  font-size: 16px;
  color: var(--teal);
  text-align: right;
  padding-top: 8px;
}
.paynow-btn {
  display: block;
  width: 100%;
  margin-top: 14px;
  padding: 12px;
  background: linear-gradient(135deg, #0070ba, #003087);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  text-align: center;
  cursor: pointer;
}
.paynow-sub {
  font-size: 10px;
  color: var(--muted);
  text-align: center;
  margin-top: 6px;
}

/* PWA mock phone */
.pwa-mock {
  max-width: 280px;
  margin: 0 auto;
  background: #111;
  border-radius: 32px;
  padding: 12px;
  box-shadow: var(--shadow-lg);
}
.pwa-screen {
  background: var(--navy);
  border-radius: 24px;
  overflow: hidden;
  min-height: 420px;
}
.pwa-notch {
  height: 24px;
  background: #111;
  border-radius: 0 0 16px 16px;
  width: 120px;
  margin: 0 auto;
}
.pwa-content {
  padding: 20px 16px;
  color: white;
  text-align: center;
}
.pwa-content img { height: 40px; margin: 0 auto 12px; }
.pwa-content h4 { font-size: 14px; margin-bottom: 8px; }
.pwa-icons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 24px;
}
.pwa-icon {
  background: rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 14px 8px;
  font-size: 10px;
}
.pwa-icon span { display: block; font-size: 20px; margin-bottom: 4px; }

/* Course automation timeline */
.course-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  padding-left: 24px;
}
.course-timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--teal), var(--gold));
}
.course-tl-item {
  position: relative;
  padding: 12px 0 12px 20px;
  font-size: 14px;
  color: var(--slate);
}
.course-tl-item::before {
  content: '';
  position: absolute;
  left: -20px;
  top: 18px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--teal);
  border: 2px solid white;
  box-shadow: 0 0 0 2px var(--teal);
}
.course-tl-item strong { color: var(--navy); display: block; margin-bottom: 2px; }

/* Investment CTA */
.investment-cta {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: white;
  text-align: center;
  padding: 64px 24px;
}
.investment-cta h2 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: clamp(28px, 4vw, 36px);
  margin-bottom: 12px;
}
.investment-cta p {
  font-size: 16px;
  opacity: 0.85;
  max-width: 600px;
  margin: 0 auto 24px;
}
.price-highlight {
  font-size: 48px;
  font-family: 'Source Serif 4', Georgia, serif;
  color: var(--gold);
  margin: 16px 0;
}

@media (max-width: 900px) {
  .compare-grid { grid-template-columns: 1fr; }
  .compare-arrow { justify-content: center; transform: rotate(90deg); }
  .automation-inner,
  .contact-cta-inner,
  .feature-split { grid-template-columns: 1fr; }
  .feature-split.reverse .feature-visual { order: 0; }
  .form-row { grid-template-columns: 1fr; }
  .hero-stats { gap: 20px; }
}

@media (max-width: 600px) {
  .voice-agent-panel { width: calc(100vw - 48px); right: -8px; }
}
