@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Source+Serif+4:wght@600&display=swap");

:root {
  --bg: #f6f7f4;
  --surface: #ffffff;
  --surface-soft: #eef1ea;
  --text: #0b1220;
  --muted: #4f5b55;
  --border: rgba(11, 18, 32, 0.10);

  --primary: #163a2a;         /* deep forest */
  --primary-hover: #0f2a1e;
  --accent: #2f6f4e;          /* forest accent */

  --shadow: 0 18px 40px rgba(11, 18, 32, 0.10);
  --shadow-soft: 0 12px 32px rgba(11, 18, 32, 0.08);
  --radius: 18px;
}

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: linear-gradient(180deg, #ffffff 0%, #f6f7f4 50%, #eef1ea 100%);
}

.hidden {
  display: none !important;
}

h1,
h2,
h3 {
  font-family: "Source Serif 4", "Inter", serif;
  margin: 0 0 12px;
  color: var(--text);
}

p {
  margin: 0;
  color: var(--text);
}

a {
  text-decoration: none;
  color: inherit;
}

.nav-shell {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(12px);
}

.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 14px 32px;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.nav-logo {
  height: 46px;
  width: auto;
  cursor: pointer;
  display: block;
}

.nav-links {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
  flex: 1;
  padding-top: 2px;
}

.nav-link,
.nav-login-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  font-size: 0.95rem;
  color: rgba(15, 23, 42, 0.6);
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.15);
  background: rgba(15, 23, 42, 0.02);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.6);
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.nav-link:hover {
  color: #0b1220;
  background: rgba(15, 23, 42, 0.08);
  border-color: rgba(15, 23, 42, 0.25);
}

.nav-link:focus-visible {
  outline: 2px solid rgba(31, 77, 143, 0.35);
  outline-offset: 4px;
}

.practice-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(15, 23, 42, 0.03);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.65);
}

.practice-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.95rem;
  color: rgba(15, 23, 42, 0.6);
  transition: background 150ms ease, color 150ms ease;
}

.practice-link:not(.active):hover {
  background: rgba(15, 23, 42, 0.08);
  color: #0b1220;
}

.practice-link.active {
  background: rgba(22, 58, 42, 0.16);
  color: var(--text);
  font-weight: 600;
  box-shadow: inset 0 2px 4px rgba(22, 58, 42, 0.16);
}

.nav-user {
  margin-left: 20px;
  display: inline-flex;
  align-items: center;
}

.nav-login-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.15);
  font-weight: 600;
  font-size: 0.95rem;
  color: rgba(15, 23, 42, 0.65);
  background: rgba(15, 23, 42, 0.02);
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}

.nav-login-btn:hover {
  color: var(--text);
  border-color: rgba(15, 23, 42, 0.3);
  background: rgba(15, 23, 42, 0.08);
}


.page {
  max-width: 1160px;
  margin: 0 auto;
  padding: 20px 32px 80px;
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 48px;
  align-items: center;
}

.hero-text .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.4em;
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 16px;
}

.hero-text h1 {
  font-size: clamp(2.8rem, 4vw, 3.6rem);
  line-height: 1.1;
  margin-bottom: 18px;
}

.hero-text .subhead {
  font-size: 1.08rem;
  margin-bottom: 28px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  width: 100%;
}

.hero-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 28px;
  border-radius: 999px;
  background: #163a2a;
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  box-shadow: 0 12px 24px rgba(22, 58, 42, 0.25);
  transition: background 160ms ease, transform 140ms ease, box-shadow 160ms ease;
}
.hero-cta-btn--wide {
  flex: 1 1 240px;
  justify-content: center;
}

.hero-cta-btn:hover {
  background: #1c462f;
  box-shadow: 0 14px 28px rgba(22, 58, 42, 0.32);
}

.hero-cta-btn:active {
  transform: translateY(1px);
  box-shadow: 0 8px 18px rgba(22, 58, 42, 0.3);
}

.hero-cta-btn:focus-visible {
  outline: 2px solid rgba(31, 77, 143, 0.4);
  outline-offset: 3px;
}

.hero-cta-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: inherit;
}

.hero-visual {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.mock-card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 22px 24px;
  box-shadow: var(--shadow);
}

.mock-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 12px;
}

.stage-pill {
  font-size: 0.78rem;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  color: var(--text);
}

.voice-status {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 12px;
}

.voice-status .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(49, 95, 168, 0.6);
}

.waveform {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  align-items: end;
  height: 48px;
}

.waveform span {
  width: 100%;
  height: 12px;
  border-radius: 8px;
  background: var(--surface-soft);
  animation: pulse 1.2s ease-in-out infinite;
}

.waveform span:nth-child(2) {
  animation-delay: 0.1s;
}
.waveform span:nth-child(3) {
  animation-delay: 0.2s;
}
.waveform span:nth-child(4) {
  animation-delay: 0.3s;
}

.exhibit-card .chart {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  height: 140px;
  background: var(--surface-soft);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
}

.exhibit-card .chart div {
  flex: 1;
  border-radius: 10px;
  background: linear-gradient(180deg, var(--accent), var(--primary));
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

th,
td {
  padding: 8px 4px;
  text-align: left;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

th {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.cred-strip {
  margin: 20px 0 40px;
  padding: 24px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);

  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cred-strip p {
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 12px;
  text-align: center;
  margin: 0;
}

.logo-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px 28px;
  padding: 0 12px;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: rgba(15, 23, 42, 0.45);
}

.logo-row span {
  white-space: nowrap;
}

.how-it-works {
  padding-top: 20px;
}

.section-header .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.4em;
  font-size: 13px;
  color: var(--accent);
}

.tabs {
  display: inline-flex;
  border: 1px solid rgba(15, 23, 42, 0.15);
  border-radius: 999px;
  overflow: hidden;
  margin: 18px 0 24px;
}

.tab {
  border: none;
  background: transparent;
  color: var(--muted);
  padding: 10px 22px;
  font-weight: 600;
  cursor: pointer;
}

.tab.active {
  background: var(--primary);
  color: #ffffff;
}

.tab:focus-visible {
  outline: 2px solid rgba(31, 77, 143, 0.35);
  outline-offset: 2px;
}

.tab-panel {
  margin-top: 8px;
}

.tab-panel.hidden {
  display: none;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.steps article {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.step-number {
  font-size: 0.85rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--accent);
}

.cta-row {
  margin-top: 32px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.secondary-link {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  color: var(--primary);
  font-weight: 600;
}

.secondary-link:hover {
  border-color: rgba(15, 23, 42, 0.3);
}

.primary-btn {
  background: var(--primary);
  color: #ffffff !important;
  border: none;
  border-radius: 999px;
  padding: 12px 24px;
  font-weight: 600;
  cursor: pointer;
  transition: background 150ms ease, transform 150ms ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

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

.primary-btn:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.35);
  outline-offset: 3px;
}

.primary-btn.ghost {
  background: rgba(15, 23, 42, 0.06);
  color: var(--primary) !important;
  border: 1px solid rgba(15, 23, 42, 0.12);
}

.primary-btn.ghost:hover {
  background: rgba(15, 23, 42, 0.1);
}

@keyframes pulse {
  0%,
  100% {
    height: 12px;
  }
  50% {
    height: 34px;
  }
}

@media (max-width: 720px) {
  .nav-inner {
    padding: 16px 20px;
    flex-direction: column;
    gap: 12px;
  }

  .nav-links {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .nav-cta {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }

  .page {
    padding: 40px 20px 64px;
  }

  .logo-row {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0 8px 8px;
    gap: 14px;
  }

  .logo-row span {
    flex: 0 0 auto;
  }
}
.secondary-link {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  color: var(--primary);
  font-weight: 600;
}

.secondary-link:hover {
  border-color: rgba(15, 23, 42, 0.3);
}

/* ---------------------------
   Interview room styling
---------------------------- */
.interview-page {
  background: linear-gradient(180deg, #ffffff 0%, #f6f7f4 45%, #eef1ea 100%);
}

.interview-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 32px 80px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.brand-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
}

.brand-link img {
  height: 32px;
  width: auto;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 0.75rem;
  color: var(--accent);
}

.muted {
  color: var(--muted);
  font-size: 0.9rem;
}

.control-bar {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 20px;
  box-shadow: var(--shadow-soft);
  border-radius: 16px;
}

.mode-banner {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mode-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--muted);
  opacity: 0.75;
}

.mode-title {
  font-family: "Source Serif 4", "Inter", serif;
  font-size: 2rem;
  margin: 0;
  color: var(--text);
}

.mode-divider {
  width: 100%;
  height: 1px;
  background: rgba(11, 18, 32, 0.08);
  margin-top: 6px;
}

.control-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: flex-end;
  justify-content: space-between;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
}

.pill.live::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
}

.session-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.session-pill-stacked {
  flex-direction: column;
  gap: 2px;
  text-align: center;
  line-height: 1.1;
}

.control-fields {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  align-items: center;
  flex: 1;
}

.field {
  display: flex;
  flex-direction: column;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  gap: 6px;
}

.select {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 0.95rem;
  background: var(--surface);
  color: var(--text);
  appearance: none;
  min-width: 160px;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 55%, calc(100% - 13px) 55%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 36px;
}

.select:focus-visible {
  outline: 2px solid rgba(47, 111, 78, 0.4);
  outline-offset: 2px;
}

.control-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-left: auto;
  align-items: center;
}

.btn {
  font-family: inherit;
  border-radius: 999px;
  padding: 12px 24px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 150ms ease, color 150ms ease, transform 150ms ease;
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.btn:focus-visible {
  outline: 2px solid rgba(47, 111, 78, 0.4);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  font-weight: 600;
}

.btn-primary:hover:not(:disabled) {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.btn-ghost {
  background: rgba(22, 58, 42, 0.05);
  color: var(--primary);
  border-color: transparent;
}

.btn-ghost:hover:not(:disabled) {
  background: rgba(22, 58, 42, 0.12);
}

.interview-grid {
  display: flex;
  gap: 32px;
}

.interview-main {
  flex: 0 1 62%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.interview-side {
  flex: 0 1 38%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.prompt-helper {
  color: var(--muted);
  font-size: 0.95rem;
}

.prompt-quote {
  font-size: 1.4rem;
  line-height: 1.5;
  font-family: "Source Serif 4", "Inter", serif;
  margin: 0;
}

.loading-indicator {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-soft);
  color: var(--muted);
}

.loading-indicator.hidden {
  display: none;
}

.exhibit-area {
  margin-top: 12px;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  background: var(--surface-soft);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.exhibit-output canvas,
.exhibit-output table {
  width: 100%;
}

.exhibit-output {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.exhibit-empty {
  font-size: 0.95rem;
  color: var(--muted);
}

.exhibit-area.has-content .exhibit-empty {
  display: none;
}

#chartCanvas {
  background: #fff;
  border: 1px dashed rgba(11, 18, 32, 0.1);
  border-radius: 12px;
  padding: 12px;
  min-height: 220px;
}

#tableContainer {
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  margin-top: 16px;
}

#tableContainer table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.95rem;
}

#tableContainer th,
#tableContainer td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(11, 18, 32, 0.08);
  text-align: left;
}

#tableContainer th {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  color: var(--muted);
  background: var(--surface-soft);
}

.voice-state {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 0.95rem;
}

.voice-waveform {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  height: 52px;
  align-items: end;
}

.voice-waveform span {
  display: block;
  width: 100%;
  height: 12px;
  border-radius: 6px;
  background: rgba(47, 111, 78, 0.15);
  animation: pulse 1.2s ease-in-out infinite;
  animation-play-state: paused;
}

.voice-waveform span:nth-child(2) {
  animation-delay: 0.1s;
}
.voice-waveform span:nth-child(3) {
  animation-delay: 0.2s;
}
.voice-waveform span:nth-child(4) {
  animation-delay: 0.3s;
}

.voice-waveform.active span {
  animation-play-state: running;
  background: rgba(47, 111, 78, 0.45);
}

.scratchpad-card textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  font-size: 1rem;
  font-family: "Inter", sans-serif;
  min-height: 160px;
  background: var(--surface-soft);
}

.scratchpad-card textarea:focus {
  outline: 2px solid rgba(47, 111, 78, 0.4);
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
}

@media (max-width: 960px) {
  .interview-grid {
    flex-direction: column;
  }

  .interview-main,
  .interview-side {
    flex: 1 1 auto;
  }

  .control-actions {
    width: 100%;
    justify-content: flex-start;
  }
}
