:root {
  color-scheme: light;
  --bg: #f6f7f4;
  --panel: #ffffff;
  --ink: #1d2522;
  --muted: #68736d;
  --line: #d9ded7;
  --accent: #256d65;
  --accent-dark: #164c47;
  --danger: #b42318;
  --soft: #e9f1ef;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: var(--accent-dark);
}

.shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 48px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 22px;
}

.brand {
  font-weight: 750;
  font-size: 20px;
}

.muted {
  color: var(--muted);
}

.panel,
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.panel {
  padding: 24px;
}

.auth-panel {
  width: min(440px, calc(100% - 32px));
  margin: 9vh auto;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.card {
  padding: 18px;
}

h1,
h2,
h3 {
  margin: 0 0 12px;
  letter-spacing: 0;
}

p {
  line-height: 1.55;
}

label {
  display: grid;
  gap: 7px;
  margin: 12px 0;
  color: var(--muted);
  font-size: 14px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 11px 12px;
  color: var(--ink);
  font: inherit;
  background: #fff;
}

textarea {
  min-height: 150px;
  resize: vertical;
}

button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 9px 14px;
  background: var(--accent);
  color: white;
  font: inherit;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
}

button.secondary,
.button.secondary {
  background: var(--soft);
  color: var(--accent-dark);
  border-color: #c8d9d5;
}

button.danger {
  background: #fff;
  color: var(--danger);
  border-color: #f0b8b2;
}

button:disabled {
  opacity: 0.62;
  cursor: not-allowed;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.hidden {
  display: none !important;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  gap: 18px;
  align-items: start;
}

.recording-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

video {
  width: 100%;
  max-height: 420px;
  background: #121816;
  border-radius: 8px;
}

.interview-frame {
  display: grid;
  grid-template-columns: minmax(240px, 360px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.camera-pane {
  display: grid;
  gap: 10px;
}

.stage {
  display: grid;
  align-content: center;
  justify-items: center;
  min-height: 320px;
  text-align: center;
}

.meter {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--line);
}

.meter > span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--accent);
}

.timer,
.countdown {
  font-size: clamp(48px, 9vw, 96px);
  font-weight: 800;
  line-height: 1;
}

.voice-indicator {
  display: grid;
  place-items: center;
  width: 128px;
  height: 128px;
  margin: 22px auto;
}

.loader-dot {
  width: 54px;
  height: 54px;
  margin: 22px auto;
  border-radius: 999px;
  background: var(--line);
  position: relative;
}

.loader-dot.small {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  margin: 0;
}

.loader-dot.small::after {
  inset: 9px;
}

.loader-dot::after {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: inherit;
  background: var(--accent);
  animation: pulse-sphere 1s ease-in-out infinite;
}

.voice-indicator > span {
  display: block;
  width: 72px;
  height: 72px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(37, 109, 101, 0.35);
  animation: pulse-sphere 1.2s ease-in-out infinite;
}

.voice-indicator.idle > span {
  animation: none;
  box-shadow: 0 0 0 1px rgba(37, 109, 101, 0.18);
}

.centered-actions {
  justify-content: center;
}

.answer-actions {
  margin-top: 18px;
}

.session-loading {
  display: flex;
  gap: 12px;
  align-items: center;
}

.build-marker {
  margin-top: 18px;
  color: var(--muted);
  font-size: 12px;
}

.review-layout {
  display: grid;
  grid-template-columns: minmax(280px, 380px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.question-link {
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.question-link button {
  width: 100%;
}

@keyframes pulse-sphere {
  0%,
  100% {
    transform: scale(0.92);
    box-shadow: 0 0 0 0 rgba(37, 109, 101, 0.35);
  }

  50% {
    transform: scale(1.18);
    box-shadow: 0 0 0 18px rgba(37, 109, 101, 0);
  }
}

.question {
  font-size: 24px;
  line-height: 1.35;
}

.status {
  min-height: 24px;
  color: var(--muted);
}

.progress {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--line);
}

.progress > span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent);
  transition: width 180ms ease;
}

.home-page {
  background: #f7f8f5;
}

.home-nav {
  position: absolute;
  z-index: 3;
  top: 0;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 40px));
  padding: 22px 0;
  transform: translateX(-50%);
}

.home-nav a {
  color: #f7fbf9;
  text-decoration: none;
}

.home-nav .button.secondary {
  color: var(--accent-dark);
}

.home-nav nav {
  display: flex;
  gap: 22px;
  font-size: 14px;
}

.home-brand {
  font-size: 20px;
  font-weight: 800;
}

.home-hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: 92vh;
  padding: 118px max(28px, calc((100vw - 1180px) / 2)) 80px;
  color: #fff;
  background-image:
    linear-gradient(90deg, rgba(10, 23, 20, 0.86) 0%, rgba(10, 23, 20, 0.68) 42%, rgba(10, 23, 20, 0.12) 78%),
    url("/assets/homepage-hero.png");
  background-size: cover;
  background-position: center;
}

.hero-copy {
  width: min(680px, 100%);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-hero .eyebrow {
  color: #9ee5d3;
}

.hero-copy h1 {
  max-width: 12ch;
  margin-bottom: 22px;
  font-size: clamp(46px, 7vw, 78px);
  line-height: 0.98;
}

.hero-subhead {
  max-width: 680px;
  margin-bottom: 26px;
  color: #e3eee9;
  font-size: 20px;
  line-height: 1.48;
}

.hero-actions {
  display: grid;
  justify-items: start;
  gap: 10px;
}

.hero-actions .button,
.final-cta .button {
  min-height: 48px;
  padding: 12px 18px;
  background: #eaf7f3;
  color: #123d39;
}

.hero-actions p {
  margin: 0;
  color: #c9d9d3;
  font-size: 14px;
}

.home-section,
.final-cta {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 74px 0;
}

.section-heading {
  max-width: 700px;
  margin-bottom: 28px;
}

.section-heading h2,
.final-cta h2 {
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.steps-grid article {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.steps-grid span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
}

.steps-grid h3 {
  font-size: 22px;
}

.feature-band {
  width: 100%;
  max-width: none;
  padding-right: max(28px, calc((100vw - 1120px) / 2));
  padding-left: max(28px, calc((100vw - 1120px) / 2));
  background: #eef3ef;
}

.feature-table {
  display: grid;
  border-top: 1px solid #cdd8d0;
}

.feature-table > div {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1fr);
  gap: 28px;
  padding: 22px 0;
  border-bottom: 1px solid #cdd8d0;
}

.feature-table strong {
  font-size: 18px;
}

.feature-table p {
  margin: 0;
}

.testimonial-section blockquote {
  max-width: 900px;
  margin: 0;
  padding-left: 28px;
  border-left: 4px solid var(--accent);
}

.testimonial-section blockquote p {
  margin-top: 0;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.18;
}

.testimonial-section cite {
  color: var(--muted);
  font-style: normal;
  font-weight: 700;
}

.faq-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.65fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-list details {
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.faq-list details:last-child {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  color: var(--ink);
  font-size: 18px;
  font-weight: 750;
  cursor: pointer;
}

.final-cta {
  display: grid;
  justify-items: start;
  gap: 16px;
  margin-bottom: 60px;
  padding: 58px;
  border-radius: 8px;
  background: #173f3a;
  color: #f6fbf9;
}

.final-cta p {
  max-width: 720px;
  margin: 0;
  color: #d6e6e1;
  font-size: 19px;
}

@media (max-width: 760px) {
  .shell {
    width: min(100% - 20px, 1120px);
    padding-top: 18px;
  }

  .topbar,
  .split,
  .review-layout,
  .interview-frame,
  .recording-row {
    grid-template-columns: 1fr;
  }

  .topbar {
    align-items: flex-start;
  }

  .panel {
    padding: 18px;
  }

  .home-nav {
    position: absolute;
    width: min(100% - 24px, 1120px);
  }

  .home-nav nav {
    display: none;
  }

  .home-nav .button {
    min-height: 36px;
    padding: 8px 10px;
    font-size: 14px;
  }

  .home-hero {
    min-height: 88vh;
    padding: 108px 20px 54px;
    background-image:
      linear-gradient(90deg, rgba(10, 23, 20, 0.9), rgba(10, 23, 20, 0.68)),
      url("/assets/homepage-hero.png");
  }

  .hero-copy h1 {
    max-width: 100%;
    font-size: 42px;
  }

  .hero-subhead {
    font-size: 17px;
  }

  .home-section,
  .final-cta {
    width: min(100% - 28px, 1120px);
    padding: 48px 0;
  }

  .steps-grid,
  .faq-section,
  .feature-table > div {
    grid-template-columns: 1fr;
  }

  .feature-band {
    width: 100%;
    padding-right: 20px;
    padding-left: 20px;
  }

  .faq-section {
    gap: 16px;
  }

  .final-cta {
    padding: 28px;
  }
}
