:root {
  --paper: #FAFAF8;
  --paper-warm: #F4F4F0;
  --rust: #B8541A;
  --rust-dark: #8f3f14;
  --rust-tint: #FFF2E6;
  --ink-900: #1a1a1a;
  --ink-700: #3d3d3d;
  --ink-500: #6b6b6b;
  --ink-200: #e0ded6;
  --surface: #ffffff;
  --footer-bg: #111111;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --font-serif: 'Instrument Serif', serif;
  --font-sans: 'Geist', sans-serif;
  --shadow-sm: 0 2px 8px rgba(26, 26, 26, 0.05);
  --shadow-md: 0 10px 30px -8px rgba(26, 26, 26, 0.1);
}

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

body {
  background-color: var(--paper);
  color: var(--ink-900);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  line-height: 1.2;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.hidden {
  display: none !important;
}

/* Navigation */
nav {
  height: 72px;
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 250, 248, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ink-200);
}

.nav-container {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-text {
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.logo-text span {
  color: var(--rust);
}

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

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

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

.btn-cta {
  background: var(--rust);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 99px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-cta:hover {
  background: var(--rust-dark);
}

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

.hero-content {
  max-width: 700px;
  margin: 0 auto;
}

.eyebrow {
  color: var(--rust);
  text-transform: uppercase;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 16px;
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: 56px;
  font-weight: 400;
  margin-bottom: 8px;
}

.subhead {
  font-size: 24px;
  color: var(--ink-700);
  margin-bottom: 24px;
}

.description {
  font-size: 18px;
  color: var(--ink-500);
  margin-bottom: 40px;
}

.btn-primary {
  background: var(--rust);
  color: white;
  border: none;
  padding: 16px 32px;
  border-radius: 99px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(184, 84, 26, 0.2);
}

.btn-primary:hover {
  background: var(--rust-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(184, 84, 26, 0.3);
}

.btn-primary:disabled {
  background: var(--ink-200);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* SEBI Banner */
.sebi-banner {
  padding: 40px 0;
}

.banner-card {
  background: var(--rust-tint);
  border-left: 4px solid var(--rust);
  padding: 32px;
  border-radius: var(--radius-sm);
}

.banner-card h3 {
  font-size: 18px;
  margin-bottom: 16px;
  color: var(--rust-dark);
}

.banner-card ul {
  list-style: none;
  margin-bottom: 20px;
}

.banner-card li {
  font-size: 14px;
  color: var(--ink-700);
  margin-bottom: 8px;
  position: relative;
  padding-left: 20px;
}

.banner-card li::before {
  content: "•";
  color: var(--rust);
  position: absolute;
  left: 0;
  font-weight: bold;
}

.sebi-link {
  color: var(--rust);
  font-weight: 600;
  font-size: 14px;
  text-decoration: underline;
}

/* Call Area */
.call-section {
  padding: 80px 0;
  background: var(--paper-warm);
}

.call-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

/* ===== Hero call card (Pipecat-style, Foliyo palette) ===== */
/* Hero 2-column: call surface (left) + live profile (right) */
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  width: 100%;
  max-width: 1040px;
  margin: 32px auto 0;
  text-align: left;
}

.hero-call {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
}

.hero-grid .profile-card {
  margin: 0;
  position: sticky;
  top: 88px;
}

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-grid .profile-card { position: static; }
}

/* Control row — Connect/Disconnect button + mic with live level meter */
.call-controls {
  display: flex;
  gap: 12px;
  align-items: stretch;
  width: 100%;
}

.connect-btn {
  flex: 1;
  background: #2f9e6b;
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 16px 24px;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, opacity 0.2s;
}

.connect-btn:hover { background: #278257; }

.connect-btn.disconnect { background: var(--rust); }
.connect-btn.disconnect:hover { background: var(--rust-dark); }

.mic-bar {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 16px;
  background: var(--paper);
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-sm);
}

.mic-btn {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--rust);
  color: white;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mic-btn:hover:not(:disabled) { transform: scale(1.06); }

.mic-btn:disabled {
  background: var(--ink-200);
  color: var(--ink-500);
  cursor: not-allowed;
}

.mic-btn.muted { background: var(--ink-500); }

/* Horizontal level meter (idle = faint; active = animated rust) */
.level-meter {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 18px;
}

.level-meter .lvl {
  width: 5px;
  height: 6px;
  border-radius: 99px;
  background: var(--ink-200);
  transition: background 0.2s;
}

.level-meter.active .lvl {
  background: var(--rust);
  animation: lvl-dance 0.6s infinite ease-in-out;
}

.level-meter.active .lvl:nth-child(2) { animation-delay: 0.1s; }
.level-meter.active .lvl:nth-child(3) { animation-delay: 0.2s; }
.level-meter.active .lvl:nth-child(4) { animation-delay: 0.3s; }
.level-meter.active .lvl:nth-child(5) { animation-delay: 0.4s; }

@keyframes lvl-dance {
  0%, 100% { height: 6px; }
  50% { height: 18px; }
}

.voice-status {
  text-align: center;
}

.voice-status p {
  font-weight: 500;
  color: var(--ink-500);
  font-size: 13px;
}

/* Transcript panel — always visible, placeholder until first speech */
/* Terminal-style transcript: dark, monospace, scrollable, speaker-prefixed */
.transcript-panel {
  width: 100%;
  background: #16140f;
  border: 1px solid #2c281f;
  border-radius: var(--radius-md);
  padding: 16px 18px;
  overflow-y: auto;
  min-height: 280px;
  max-height: 360px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: 'SF Mono', 'Geist Mono', ui-monospace, Menlo, Consolas, monospace;
  font-size: 14px;
  line-height: 1.6;
  scroll-behavior: smooth;
}

/* Slim, on-brand scrollbar */
.transcript-panel::-webkit-scrollbar { width: 8px; }
.transcript-panel::-webkit-scrollbar-track { background: transparent; }
.transcript-panel::-webkit-scrollbar-thumb {
  background: #3a3528;
  border-radius: 99px;
}
.transcript-panel::-webkit-scrollbar-thumb:hover { background: #4d4636; }

.transcript-placeholder {
  margin: auto;
  color: #6b6452;
  font-size: 14px;
}
.transcript-placeholder::before { content: "› "; }

.transcript-msg {
  max-width: 100%;
  color: #d7d2c4;
  word-break: break-word;
  white-space: pre-wrap;
}

/* Speaker prefix, terminal prompt style */
.transcript-msg::before {
  font-weight: 700;
  margin-right: 8px;
  user-select: none;
}

.transcript-msg.bot::before {
  content: "arjun ❯";
  color: #6ab98a;
}

.transcript-msg.user::before {
  content: "you ❯";
  color: var(--rust);
}

/* Interim (still-being-spoken) line: dimmed with a blinking cursor */
.transcript-msg.interim {
  opacity: 0.6;
}

.transcript-msg.interim::after {
  content: "▋";
  margin-left: 2px;
  animation: term-blink 1s step-end infinite;
}

@keyframes term-blink {
  50% { opacity: 0; }
}

.btn-outline {
  padding: 10px 20px;
  border: 2px solid var(--ink-200);
  background: transparent;
  border-radius: 99px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-outline:hover {
  background: var(--ink-200);
}

/* Profile Card */
.profile-card {
  background: var(--surface);
  padding: 24px 26px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--ink-200);
}

.profile-card h3 {
  font-size: 19px;
  margin-bottom: 2px;
}

.profile-card h3 + .profile-sub,
.profile-card .profile-sub {
  font-size: 12px;
  color: var(--ink-500);
  margin-bottom: 14px;
}

/* Single clean column of label : value rows with dividers */
.profile-grid {
  display: flex;
  flex-direction: column;
}

.profile-field {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--paper-warm);
}

.profile-field:last-child { border-bottom: none; }

.profile-field label {
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-500);
  white-space: nowrap;
  flex-shrink: 0;
}

.profile-field span {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-200);
  text-align: right;
  transition: color 0.3s, transform 0.2s;
}

.profile-field span.filled {
  color: var(--rust-dark);
  font-weight: 600;
}

/* Explainer Section */
.explainer-section {
  padding: 100px 0;
}

.section-title {
  text-align: center;
  font-family: var(--font-serif);
  font-size: 40px;
  font-weight: 400;
  margin-bottom: 60px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin-bottom: 80px;
}

.step-card {
  background: var(--surface);
  padding: 32px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  position: relative;
}

.step-num {
  position: absolute;
  top: 24px;
  right: 24px;
  font-family: var(--font-serif);
  font-size: 48px;
  color: var(--rust-tint);
  line-height: 1;
}

.step-card h4 {
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.step-card p {
  font-size: 14px;
  color: var(--ink-700);
  position: relative;
  z-index: 1;
}

.matching-info {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.matching-info h3 {
  margin-bottom: 16px;
}

.matching-info p {
  color: var(--ink-700);
  margin-bottom: 20px;
}

/* Footer */
.dark-footer {
  background: var(--footer-bg);
  color: white;
  padding: 80px 0 40px;
}

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

.brand-col p {
  color: rgba(255,255,255,0.6);
  margin-top: 16px;
  max-width: 300px;
}

.footer-col h5 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 24px;
  color: rgba(255,255,255,0.4);
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 12px;
}

.footer-col a {
  color: rgba(255,255,255,0.6);
  font-size: 14px;
}

.footer-col a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 40px;
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,0.4);
}

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal {
  background: var(--surface);
  width: 100%;
  max-width: 480px;
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.modal h2 {
  font-family: var(--font-serif);
  font-size: 28px;
  margin-bottom: 16px;
}

.modal p {
  color: var(--ink-700);
  margin-bottom: 24px;
}

.consent-check {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 32px;
}

.consent-check input {
  width: 20px;
  height: 20px;
  cursor: pointer;
}

.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn-text {
  background: transparent;
  border: none;
  font-weight: 600;
  color: var(--ink-500);
  cursor: pointer;
  padding: 8px;
}

/* Responsive */
@media (max-width: 1024px) {
  .call-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 40px;
  }
  
  .nav-links {
    display: none;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .profile-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   PMS EXPLAINER SLIDE CUSTOM STYLING (Premium Visual System)
   ========================================================================== */

.slide-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 480px;
}

.slide-header {
  margin-bottom: 16px;
}

.slide-eyebrow {
  color: var(--rust);
  text-transform: uppercase;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 4px;
}

.slide-title {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 400;
  color: var(--ink-900);
}

.slides-container {
  flex-grow: 1;
  position: relative;
  margin-bottom: 24px;
}

.slide-content {
  display: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.slide-content.active {
  display: flex;
  flex-direction: column;
  gap: 16px;
  opacity: 1;
}

.slide-description {
  font-size: 14px;
  color: var(--ink-700);
  line-height: 1.5;
}

/* Premium Visual Styles */
.slide-visual {
  background: var(--paper-warm);
  border-radius: var(--radius-md);
  padding: 16px;
  border: 1px solid var(--ink-200);
  margin-top: 8px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Slide 1: Demat & stocks */
.pms-visual-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.demat-box {
  background: var(--surface);
  border: 1px solid var(--ink-200);
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: var(--shadow-sm);
  width: 80%;
  text-align: center;
}

.demat-box .icon {
  font-size: 24px;
  margin-bottom: 4px;
}

.demat-box strong {
  font-size: 13px;
  color: var(--ink-900);
}

.demat-box .sub {
  font-size: 11px;
  color: var(--ink-500);
}

.arrow-down {
  font-size: 16px;
  color: var(--rust);
}

.stocks-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.stock-tag {
  background: var(--surface);
  border: 1px solid var(--ink-200);
  padding: 4px 10px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-700);
}

/* Slide 2: Metrics */
.metric-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  width: 100%;
}

.metric-box {
  background: linear-gradient(135deg, var(--rust-tint), var(--surface));
  border: 1px solid var(--rust);
  border-radius: var(--radius-sm);
  padding: 16px;
  text-align: center;
  width: 100%;
  box-shadow: var(--shadow-sm);
}

.metric-label {
  font-size: 10px;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--rust-dark);
  display: block;
  margin-bottom: 4px;
}

.metric-val {
  font-family: var(--font-serif);
  font-size: 32px;
  color: var(--rust-dark);
  font-weight: 400;
}

.metric-sub-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}

.sub-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--ink-700);
}

.check-icon {
  color: #2f9e6b;
  font-weight: bold;
}

/* Slide 3: Benefits */
.benefits-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.benefit-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--surface);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--ink-200);
}

.benefit-item .b-icon {
  font-size: 18px;
  background: var(--rust-tint);
  padding: 6px;
  border-radius: 6px;
  line-height: 1;
}

.benefit-item strong {
  font-size: 13px;
  display: block;
  color: var(--ink-900);
}

.benefit-item p {
  font-size: 11px;
  color: var(--ink-500);
  margin: 0;
  line-height: 1.3;
}

/* Slide 4: Comparison Table */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.comparison-table th, 
.comparison-table td {
  padding: 8px 10px;
  text-align: left;
  border-bottom: 1px solid var(--ink-200);
}

.comparison-table th {
  background: var(--paper-warm);
  font-weight: 600;
  color: var(--ink-900);
}

.comparison-table td:nth-child(2) {
  font-weight: 600;
  color: var(--rust-dark);
}

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

/* Slide 5: Fees & Tax */
.fees-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 8px;
}

.fee-card {
  background: var(--surface);
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-sm);
  padding: 12px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.fee-card.highlighted {
  border-color: var(--rust);
  background: var(--rust-tint);
}

.fee-card strong {
  font-size: 12px;
  display: block;
  margin-bottom: 4px;
}

.fee-card .fee-val {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--rust);
  display: block;
  margin-bottom: 4px;
}

.fee-card .fee-desc {
  font-size: 10px;
  color: var(--ink-500);
  line-height: 1.2;
}

.tax-note {
  font-size: 10px;
  color: var(--ink-700);
  background: var(--surface);
  padding: 8px 10px;
  border-radius: 4px;
  border-left: 2px solid #e0c068;
}

/* Slide 6: Next Steps */
.foliyo-cta-box {
  background: linear-gradient(135deg, #111, #222);
  color: white;
  padding: 20px;
  border-radius: var(--radius-md);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.foliyo-cta-box h4 {
  font-family: var(--font-serif);
  font-size: 20px;
  color: var(--paper);
}

.foliyo-cta-box p {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
  line-height: 1.4;
}

.btn-primary-sm {
  background: var(--rust);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 99px;
  font-weight: 600;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-block;
}

.btn-primary-sm:hover {
  background: var(--rust-dark);
}

/* Slide Footer & Dots */
.slide-footer {
  display: flex;
  justify-content: center;
  padding-top: 8px;
  border-top: 1px solid var(--paper-warm);
}

.progress-dots {
  display: flex;
  gap: 8px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ink-200);
  transition: all 0.3s ease;
  cursor: pointer;
}

.dot.active {
  background: var(--rust);
  transform: scale(1.2);
}

/* Modify transcript panel alignment for bot prefix */
.transcript-msg.bot::before {
  content: "vikram ❯" !important;
  color: #6ab98a;
}
