/* ==========================================================================
   InsureBrokerFlow — Editorial Fintech & WhatsApp Kinetic Stylesheet
   Color System: Deep Obsidian, Emerald Accent, Crisp WhatsApp UI
   ========================================================================== */

:root {
  --bg-dark: #070a11;
  --bg-surface: #0e1422;
  --bg-card: #131b2e;
  --bg-card-hover: #18233c;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(0, 168, 132, 0.4);
  
  --wa-green: #00a884;
  --wa-green-hover: #028e70;
  --wa-green-glow: rgba(0, 168, 132, 0.25);
  --emerald: #10b981;
  --emerald-dark: #059669;
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --accent-gold: #f59e0b;
  --accent-blue: #38bdf8;
  
  --font-display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Consolas, monospace;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;
  
  --shadow-card: 0 12px 30px -10px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 50px -10px rgba(0, 168, 132, 0.25);
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
  background-image: 
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(0, 168, 132, 0.15), transparent 70%),
    radial-gradient(circle at 10% 30%, rgba(16, 185, 129, 0.04), transparent 50%),
    radial-gradient(circle at 90% 70%, rgba(56, 189, 248, 0.03), transparent 50%);
  background-attachment: fixed;
}

/* ── Typography & Links ── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

a {
  color: var(--wa-green);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: var(--emerald);
}

.text-gradient {
  background: linear-gradient(135deg, #ffffff 30%, #34d399 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-green {
  color: var(--wa-green);
}

/* ── Layout Containers ── */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 96px 0;
  position: relative;
}

/* ── Badges & Tags ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(0, 168, 132, 0.1);
  border: 1px solid rgba(0, 168, 132, 0.3);
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 600;
  color: #34d399;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background-color: var(--wa-green);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--wa-green);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

/* ── Navbar ── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(7, 10, 17, 0.85);
  border-bottom: 1px solid var(--border-subtle);
  padding: 16px 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  color: #fff;
  letter-spacing: -0.02em;
}

.brand-icon {
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, #00a884, #10b981);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  box-shadow: 0 4px 14px rgba(0, 168, 132, 0.35);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
}

.nav-links a:hover {
  color: #fff;
}

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

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, #00a884, #10b981);
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(0, 168, 132, 0.4);
}

.btn-primary:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(0, 168, 132, 0.55);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-wa {
  background: #00a884;
  color: #fff;
}

.btn-wa:hover {
  background: #028e70;
  color: #fff;
}

/* ── Hero Section ── */
.hero {
  padding: 70px 0 90px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 50px;
  align-items: center;
}

.hero-content h1 {
  font-size: 46px;
  line-height: 1.15;
  margin-bottom: 24px;
}

.hero-sub {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 36px;
  max-width: 580px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.hero-proof-row {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
}

.proof-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-dim);
}

.proof-item svg {
  color: var(--wa-green);
  flex-shrink: 0;
}

/* ── Interactive Phone Simulator ── */
.phone-mockup-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.workflow-tabs {
  display: flex;
  background: rgba(14, 20, 34, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 4px;
  margin-bottom: 20px;
  width: 100%;
  max-width: 440px;
  overflow-x: auto;
  gap: 4px;
  backdrop-filter: blur(10px);
}

.tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.tab-btn.active {
  background: var(--wa-green);
  color: #fff;
  box-shadow: 0 2px 10px var(--wa-green-glow);
}

.tab-btn:hover:not(.active) {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.iphone-frame {
  width: 375px;
  height: 680px;
  background: #000;
  border-radius: 50px;
  border: 10px solid #1a1e27;
  box-shadow: 
    0 0 0 2px #323946,
    0 25px 60px -15px rgba(0, 0, 0, 0.85),
    0 0 40px -5px rgba(0, 168, 132, 0.2);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Dynamic Island */
.dynamic-island {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 30px;
  background: #000;
  border-radius: 20px;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
}

.island-camera {
  width: 10px;
  height: 10px;
  background: #111;
  border-radius: 50%;
  border: 1px solid #222;
}

.island-sensor {
  width: 7px;
  height: 7px;
  background: #0a0a0a;
  border-radius: 50%;
}

/* Phone Screen */
.phone-screen {
  flex: 1;
  background: #efeae2;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.wa-status-bar {
  height: 44px;
  padding: 12px 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  color: #111;
  z-index: 40;
}

.wa-top-header {
  background: #f0f2f5;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  z-index: 30;
}

.wa-chat-profile {
  display: flex;
  align-items: center;
  gap: 10px;
}

.wa-avatar {
  width: 36px;
  height: 36px;
  background: #00a884;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  position: relative;
}

.wa-verified-icon {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 14px;
  height: 14px;
  background: #10b981;
  border: 2px solid #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  color: #fff;
}

.wa-name-col {
  display: flex;
  flex-direction: column;
}

.wa-chat-name {
  font-size: 13px;
  font-weight: 700;
  color: #111b21;
}

.wa-chat-status {
  font-size: 11px;
  color: #00a884;
  font-weight: 500;
}

/* Chat Canvas */
.wa-chat-canvas {
  flex: 1;
  padding: 14px 12px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background-color: #efeae2;
  background-image: radial-gradient(#d1c7b7 0.75px, transparent 0.75px);
  background-size: 16px 16px;
}

.chat-bubble {
  max-width: 86%;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 12.5px;
  line-height: 1.45;
  position: relative;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
  animation: bubblePop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes bubblePop {
  0% { opacity: 0; transform: scale(0.95) translateY(6px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

.bubble-user {
  align-self: flex-end;
  background: #d9fdd3;
  color: #111b21;
  border-top-right-radius: 3px;
}

.bubble-bot {
  align-self: flex-start;
  background: #ffffff;
  color: #111b21;
  border-top-left-radius: 3px;
}

.bubble-time {
  font-size: 10px;
  color: #667781;
  float: right;
  margin-left: 8px;
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 3px;
}

.ticks-blue {
  color: #53bdeb;
}

/* Rich Cards */
.rich-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 8px 10px;
  margin: 6px 0;
  font-size: 11.5px;
}

.card-title {
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 4px;
}

.card-field {
  display: flex;
  justify-content: space-between;
  padding: 2px 0;
  color: #475569;
}

.card-field strong {
  color: #1e293b;
}

.quick-chips-row {
  display: flex;
  gap: 6px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.quick-chip {
  background: #fff;
  border: 1px solid #00a884;
  color: #00a884;
  border-radius: 14px;
  padding: 4px 10px;
  font-size: 10.5px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

/* Chat Input Bar */
.wa-input-bottom {
  background: #f0f2f5;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.wa-input-fake {
  flex: 1;
  background: #fff;
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 12px;
  color: #667781;
}

/* ── Reality Split / Pain vs Gain ── */
.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 48px;
}

.comp-card {
  border-radius: var(--radius-lg);
  padding: 36px;
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(12px);
}

.comp-card.pain {
  background: rgba(239, 68, 68, 0.03);
  border-color: rgba(239, 68, 68, 0.15);
}

.comp-card.gain {
  background: rgba(0, 168, 132, 0.05);
  border-color: rgba(0, 168, 132, 0.3);
  box-shadow: 0 8px 30px rgba(0, 168, 132, 0.1);
}

.comp-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.comp-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.comp-card.pain .comp-icon {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

.comp-card.gain .comp-icon {
  background: rgba(0, 168, 132, 0.2);
  color: #10b981;
}

.comp-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.comp-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: var(--text-muted);
}

.comp-list li strong {
  color: var(--text-main);
}

/* ── Metrics Counter ── */
.metrics-strip {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 48px 0;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.metric-number {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  margin-bottom: 8px;
}

.metric-label {
  font-size: 14px;
  color: var(--text-muted);
}

/* ── Features Grid ── */
.feature-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 50px;
}

.feature-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.feature-box:hover {
  transform: translateY(-4px);
  border-color: var(--border-focus);
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-card);
}

.feature-icon-wrap {
  width: 48px;
  height: 48px;
  background: rgba(0, 168, 132, 0.12);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--wa-green);
  font-size: 22px;
  margin-bottom: 20px;
}

.feature-box h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

.feature-box p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.feature-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--wa-green);
  background: rgba(0, 168, 132, 0.08);
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid rgba(0, 168, 132, 0.2);
}

/* ── Interactive ROI Calculator ── */
.calc-card {
  background: linear-gradient(145deg, #0e1422 0%, #151d30 100%);
  border: 1px solid rgba(0, 168, 132, 0.3);
  border-radius: var(--radius-xl);
  padding: 50px;
  box-shadow: var(--shadow-glow);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.slider-container {
  margin-top: 30px;
}

.slider-label-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 15px;
  font-weight: 600;
}

.calc-slider {
  width: 100%;
  height: 8px;
  background: #1e293b;
  border-radius: 4px;
  outline: none;
  -webkit-appearance: none;
}

.calc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--wa-green);
  cursor: pointer;
  box-shadow: 0 0 15px var(--wa-green);
}

.calc-results-col {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.result-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.result-val {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  color: #10b981;
}

/* ── Pricing ── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}

.price-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 40px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.3s ease;
}

.price-card.featured {
  border-color: var(--wa-green);
  background: linear-gradient(180deg, #162035 0%, #101827 100%);
  box-shadow: 0 10px 40px -10px rgba(0, 168, 132, 0.3);
  transform: scale(1.03);
}

.featured-pill {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #00a884, #10b981);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 14px;
  border-radius: 20px;
}

.price-val {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 800;
  color: #fff;
  margin: 20px 0 6px;
}

.price-val span {
  font-size: 15px;
  color: var(--text-muted);
  font-weight: 500;
}

.price-features {
  list-style: none;
  margin: 28px 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}

.price-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-muted);
}

.price-features li svg {
  color: var(--wa-green);
  flex-shrink: 0;
}

/* ── FAQ ── */
.faq-wrap {
  max-width: 800px;
  margin: 48px auto 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.2s ease;
}

.faq-item.active {
  border-color: rgba(0, 168, 132, 0.4);
}

.faq-question {
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
}

.faq-answer {
  padding: 0 24px 20px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
  display: none;
}

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

.faq-icon {
  transition: transform 0.2s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
  color: var(--wa-green);
}

/* ── Footer ── */
.footer {
  border-top: 1px solid var(--border-subtle);
  padding: 60px 0 40px;
  background: #05080e;
  font-size: 14px;
  color: var(--text-dim);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  font-size: 14px;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

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

.footer-links a {
  color: var(--text-dim);
  font-size: 13px;
}

.footer-links a:hover {
  color: #fff;
}

/* ── Responsive ── */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-content h1 {
    font-size: 36px;
  }
  .hero-sub {
    margin: 0 auto 32px;
  }
  .hero-cta-group {
    justify-content: center;
  }
  .hero-proof-row {
    justify-content: center;
  }
  .comparison-grid, .calc-card, .feature-cards-grid, .pricing-grid, .metrics-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}
