/* --- FONTS & BASE STYLES --- */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

:root {
  /* Colour palette aligned with the founder page */
  --fg: #e5e7eb;            /* slate-200 */
  --muted: #94a3b8;        /* slate-400 */
  --bg-page: #0a0f1b;      /* dark base */
  --bg-box: #0e182c;       /* slightly lighter dark for the wrapper */
  --glass: rgba(29, 41, 62, 0.45);
  --glass-stroke: rgba(255, 255, 255, 0.1);
  --primary: #14b8a6;       /* emerald */
  --primary-soft: #6ee7b7; /* lighter emerald for gradients */
  --indigo: #6366f1;        /* indigo accent */
  --accent: #ef4444;        /* red used for recording button */
  --green: #10b981;         /* green used for copied state */

  /* Blue used for the Stop & Transcribe button (matching home page) */
  --blue: #3b82f6;
  --blue-soft: #60a5fa;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--fg);
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background-color: var(--bg-page);
  /* Subtle ambient blobs using the new palette */
  background-image: radial-gradient(
      circle at 10% 10%,
      rgba(20, 184, 166, 0.12),
      transparent 40%
    ),
    radial-gradient(
      circle at 90% 80%,
      rgba(99, 102, 241, 0.12),
      transparent 40%
    );
  background-attachment: fixed;
}

/* --- LAYOUT WRAPPER --- */
.page-wrapper {
  max-width: 1280px;
  margin: 2rem auto;
  background-color: var(--bg-box);
  border: 1px solid var(--glass-stroke);
  border-radius: 24px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
}

/* --- HEADER & TITLE --- */
.boxed-header {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  border-bottom: 1px solid var(--glass-stroke);
}
.header-brand-logo {
  display: block;
  height: 60px;
}
.page-title {
  text-align: center;
  padding: 48px 24px 16px;
}
.page-title h1 {
  margin: 0 0 4px;
  font-size: clamp(28px, 4vw, 36px);
}
.page-title .sub {
  margin: 0;
  color: var(--muted);
}

/* --- VERTICAL PROGRESSION LAYOUT --- */
.timeline-container {
  padding: 32px 48px 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.step-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  width: 100%;
  max-width: 900px;
  /* A soft gradient for cards using deep blues for contrast */
  background: linear-gradient(
    180deg,
    rgba(16, 26, 44, 0.6),
    rgba(12, 21, 35, 0.6)
  );
  border: 1px solid var(--glass-stroke);
  border-radius: 20px;
  padding: 40px;
  /* Animation styles */
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.step-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.card-text h2 {
  font-size: 1.75rem;
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.card-text h2 .step-number {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  /* Gradient background to tie into the site colours */
  background: linear-gradient(135deg, var(--primary), var(--indigo));
  border: 1px solid rgba(255,255,255,0.15);
  font-size: 0.85rem;
  color: #fff;
}
.card-text p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--muted);
}
.card-visual {
  display: grid;
  place-items: center;
  min-height: 180px;
}

/* --- VISUAL ELEMENT STYLES --- */
.mockup-button {
  padding: 12px 24px;
  border: none;
  border-radius: 99px;
  font-weight: 600;
  font-size: 1rem;
  color: white;
  cursor: default;
}
#mockup-record-btn {
  background: var(--accent);
  animation: pulseRed 1.5s infinite;
}
@keyframes pulseRed {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(255, 77, 77, 0.4);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(255, 77, 77, 0);
  }
}

#mockup-stop-btn {
  /* Use the blue tone for the stop/transcribe button, matching the home page */
  background: var(--blue);
}

.mockup-waveform {
  display: flex;
  gap: 5px;
  align-items: flex-end;
  height: 60px;
  width: 220px;
}
.mockup-waveform span {
  width: 5px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--primary), var(--primary-soft));
  animation: bar 1.05s ease-in-out infinite;
}
.mockup-waveform span:nth-child(2n) {
  animation-delay: 0.12s;
}
.mockup-waveform span:nth-child(3n) {
  animation-delay: 0.24s;
}
.mockup-waveform span:nth-child(5n) {
  animation-delay: 0.36s;
}
@keyframes bar {
  0%,
  100% {
    height: 5%;
  }
  50% {
    height: 95%;
  }
}

.mockup-transcript-area {
  width: 100%;
  max-width: 320px;
  background: var(--glass);
  border: 1px solid var(--glass-stroke);
  border-radius: 18px;
  padding: 14px;
  backdrop-filter: blur(8px);
}
.mockup-toolbar {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-bottom: 8px;
}

/* Confidence score display inside transcript area */
.confidence-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  background: rgba(20,184,166,0.1);
  border: 1px solid rgba(20,184,166,0.3);
  padding: 4px 8px;
  border-radius: 12px;
}
.mockup-toolbar-btn {
  border: 1px solid rgba(255,255,255,0.15);
  background: #12233a;
  color: #dbeafe;
  border-radius: 10px;
  padding: 8px 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.mockup-text-box {
  min-height: 140px;
  padding: 14px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px dashed #ffffff22;
  white-space: pre-wrap;
  font-family: monospace;
  line-height: 1.5;
  font-size: 0.9rem;
}

/* --- FLOATING CTA --- */
.floating-cta {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 100;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  /* Floating action uses the primary and indigo gradient */
  background-image: linear-gradient(to right, var(--primary), var(--indigo));
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  display: grid;
  place-items: center;
  color: white;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.floating-cta:hover {
  transform: scale(1.1);
}
.floating-cta svg {
  width: 28px;
  height: 28px;
}

/* Utility class to colour text using the primary accent */
.text-primary {
  color: var(--primary);
}

/* --- RESPONSIVE STYLES --- */
@media (max-width: 960px) {
  .page-wrapper {
    margin: 1rem;
  }
  .timeline-container {
    padding: 24px;
  }
  .step-card {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 24px;
  }
  .card-text {
    text-align: center;
  }
  .card-text h2 {
    justify-content: center;
    font-size: 1.5rem;
  }
}
@media (max-width: 600px) {
  .page-wrapper {
    margin: 0;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }
  .timeline-container {
    padding: 16px;
    gap: 16px;
  }
  .step-card {
    padding: 20px;
  }
  .floating-cta {
    width: 50px;
    height: 50px;
    bottom: 16px;
    right: 16px;
  }
  .floating-cta svg {
    width: 24px;
    height: 24px;
  }
}
