﻿:root {
  color-scheme: light;
  --ink: #17212b;
  --muted: #64717f;
  --line: #d9e2e7;
  --paper: #ffffff;
  --mist: #f4f8f9;
  --teal: #0b7f80;
  --teal-deep: #075a5f;
  --coral: #f06b4f;
  --amber: #f5b84b;
  --leaf: #4e8f5b;
  --blue: #386fa4;
  --shadow: 0 22px 55px rgba(23, 33, 43, 0.12);
  --soft-shadow: 0 10px 30px rgba(23, 33, 43, 0.08);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(11, 127, 128, 0.08), transparent 420px),
    linear-gradient(135deg, #f8fbfb 0%, #eef5f6 48%, #fff8f4 100%);
  min-width: 320px;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.icon-sprite {
  display: none;
}

.app-shell {
  width: min(1480px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 78px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  color: #fff;
  background: var(--ink);
  font-weight: 850;
  letter-spacing: 0;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.1;
}

.brand small,
.support-note,
.section-kicker,
.role-count {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.coffee-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  gap: 8px;
  padding: 0 14px;
  border-radius: 8px;
  border: 1px solid rgba(23, 33, 43, 0.14);
  color: #422815;
  background: #fff1d1;
  text-decoration: none;
  font-weight: 800;
  box-shadow: 0 7px 16px rgba(245, 184, 75, 0.18);
}

.coffee-button:hover,
.coffee-button:focus-visible {
  background: #ffe4a8;
  outline: none;
}

.hero-app {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(360px, 1.15fr);
  align-items: stretch;
  min-height: clamp(290px, 38vh, 430px);
  overflow: hidden;
  border: 1px solid rgba(23, 33, 43, 0.1);
  border-radius: 10px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 4vw, 60px);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.9)),
    linear-gradient(135deg, rgba(11, 127, 128, 0.14), rgba(240, 107, 79, 0.1));
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin-bottom: 16px;
  color: var(--teal-deep);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy h1 {
  max-width: 680px;
  margin: 0;
  font-size: clamp(2.3rem, 5.4vw, 5.4rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.hero-copy p {
  max-width: 640px;
  margin: 22px 0 0;
  color: #41505f;
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  line-height: 1.65;
}

.privacy-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.privacy-strip span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid rgba(11, 127, 128, 0.18);
  border-radius: 999px;
  color: var(--teal-deep);
  background: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
  font-weight: 820;
}

.hero-media {
  position: relative;
  min-height: 280px;
  background: #ddecef;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

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

.role-browser,
.interview-stage,
.question-panel,
.answer-panel,
.review-panel {
  border: 1px solid rgba(23, 33, 43, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--soft-shadow);
}

.role-browser {
  position: sticky;
  top: 16px;
  max-height: calc(100vh - 32px);
  display: flex;
  flex-direction: column;
  padding: 18px;
}

.interview-stage {
  padding: 18px;
}

.panel-heading,
.session-toolbar,
.review-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.panel-heading h2,
.session-toolbar h2,
.review-summary h2 {
  margin: 3px 0 0;
  font-size: 1.15rem;
  letter-spacing: 0;
}

.compact h2 {
  font-size: 1rem;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  margin: 16px 0 12px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--mist);
  color: var(--muted);
}

.search-box:focus-within {
  border-color: rgba(11, 127, 128, 0.6);
  box-shadow: 0 0 0 4px rgba(11, 127, 128, 0.12);
}

.search-box input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
}

.filter-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 10px;
  scrollbar-width: thin;
}

.filter-chip {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #33414e;
  background: #fff;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 760;
}

.filter-chip.is-active {
  border-color: var(--teal);
  color: #fff;
  background: var(--teal);
}

.role-list {
  display: grid;
  gap: 10px;
  padding-right: 2px;
  overflow: auto;
}

.role-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  width: 100%;
  min-height: 94px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: inherit;
  background: #fff;
  text-align: left;
  cursor: pointer;
}

.role-card:hover,
.role-card:focus-visible,
.role-card.is-selected {
  border-color: rgba(11, 127, 128, 0.58);
  box-shadow: 0 10px 24px rgba(11, 127, 128, 0.11);
  outline: none;
}

.role-card.is-selected {
  background: #f0faf9;
}

.role-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  color: #fff;
  background: var(--blue);
  font-weight: 900;
}

.role-card:nth-child(5n + 2) .role-icon {
  background: var(--coral);
}

.role-card:nth-child(5n + 3) .role-icon {
  background: var(--teal);
}

.role-card:nth-child(5n + 4) .role-icon {
  background: var(--leaf);
}

.role-card:nth-child(5n + 5) .role-icon {
  background: #8c5f2d;
}

.role-title {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 8px;
  font-weight: 850;
}

.role-card p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.42;
}

.role-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.role-meta span {
  padding: 4px 7px;
  border-radius: 6px;
  background: var(--mist);
  color: #556473;
  font-size: 0.75rem;
  font-weight: 760;
}

.session-toolbar {
  align-items: end;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.session-options {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.segmented {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--mist);
}

.segmented legend {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.segmented label {
  cursor: pointer;
}

.segmented input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.segmented span {
  display: grid;
  place-items: center;
  min-height: 34px;
  padding: 0 11px;
  border-radius: 6px;
  color: #536271;
  font-size: 0.88rem;
  font-weight: 790;
}

.segmented input:checked + span {
  color: #fff;
  background: var(--ink);
}

.select-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
}

.select-control select {
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-weight: 780;
}

.session-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  gap: 14px;
  padding-top: 14px;
}

.question-panel,
.answer-panel,
.review-panel {
  box-shadow: none;
  padding: 18px;
}

.question-panel {
  display: flex;
  flex-direction: column;
  min-height: 440px;
  background:
    linear-gradient(180deg, rgba(11, 127, 128, 0.08), transparent 45%),
    #fff;
}

.question-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.progress-track {
  height: 8px;
  margin: 14px 0 28px;
  overflow: hidden;
  border-radius: 999px;
  background: #e6edef;
}

.progress-track span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--coral));
  transition: width 180ms ease;
}

.question-panel h3 {
  margin: 0;
  font-size: clamp(1.45rem, 2.3vw, 2.2rem);
  line-height: 1.12;
  letter-spacing: 0;
}

.prompt-context {
  min-height: 72px;
  margin-top: 18px;
  color: #536271;
  font-size: 1rem;
  line-height: 1.58;
}

.control-row,
.answer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  padding-top: 22px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 840;
  text-decoration: none;
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.button.primary {
  color: #fff;
  background: var(--teal);
}

.button.primary:hover:not(:disabled),
.button.primary:focus-visible:not(:disabled) {
  background: var(--teal-deep);
  outline: none;
}

.button.ghost {
  color: var(--ink);
  border-color: var(--line);
  background: #fff;
}

.button.ghost:hover:not(:disabled),
.button.ghost:focus-visible:not(:disabled) {
  border-color: rgba(11, 127, 128, 0.5);
  box-shadow: 0 0 0 4px rgba(11, 127, 128, 0.12);
  outline: none;
}

.button.danger {
  color: #7f2d1e;
  border-color: rgba(240, 107, 79, 0.28);
  background: #fff0ec;
}

.answer-panel {
  display: flex;
  flex-direction: column;
  min-height: 440px;
}

.listening-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 76px;
  min-height: 28px;
  padding: 0 9px;
  border-radius: 999px;
  color: #586473;
  background: var(--mist);
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}

.listening-pill.is-live {
  color: #fff;
  background: var(--coral);
}

textarea {
  width: 100%;
  flex: 1 1 auto;
  min-height: 250px;
  margin-top: 16px;
  padding: 15px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: 0;
  color: var(--ink);
  background: #fbfdfd;
  line-height: 1.55;
}

textarea:focus {
  border-color: rgba(11, 127, 128, 0.6);
  box-shadow: 0 0 0 4px rgba(11, 127, 128, 0.12);
}

.answer-actions {
  justify-content: flex-end;
}

.review-panel {
  margin-top: 14px;
}

.score-ring {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  color: var(--teal-deep);
  background:
    radial-gradient(circle at center, #fff 57%, transparent 58%),
    conic-gradient(var(--teal) var(--score, 0%), #e3ebee 0);
}

.score-ring strong {
  margin-top: 5px;
  font-size: 1.8rem;
  line-height: 1;
}

.score-ring span {
  margin-top: -18px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
}

.score-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.metric {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--mist);
}

.metric strong {
  display: block;
  font-size: 1.45rem;
}

.metric span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

.feedback-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.feedback-item {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.feedback-item strong {
  display: block;
  margin-bottom: 6px;
}

.feedback-item p {
  margin: 0;
  color: #536271;
  line-height: 1.5;
}

.method-guide {
  margin-top: 16px;
  padding: 14px;
  border: 1px solid rgba(11, 127, 128, 0.2);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(11, 127, 128, 0.06), transparent 70%), #fff;
}

.method-guide-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.method-badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  color: #fff;
  background: var(--teal);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.04em;
}

.method-full {
  color: var(--teal-deep);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.method-blurb {
  margin: 10px 0 0;
  color: #536271;
  font-size: 0.92rem;
  line-height: 1.5;
}

.method-steps {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: method;
}

.method-step {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  gap: 10px;
  counter-increment: method;
}

.method-step::before {
  content: counter(method);
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--mist);
  color: var(--teal-deep);
  font-size: 0.75rem;
  font-weight: 850;
}

.method-step-key {
  font-weight: 850;
  color: var(--ink);
}

.method-step-hint {
  grid-column: 2;
  color: #536271;
  font-size: 0.9rem;
  line-height: 1.45;
}

.resume-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 10px 14px;
  border: 1px solid rgba(11, 127, 128, 0.28);
  border-radius: 8px;
  color: var(--teal-deep);
  background: #eefaf9;
  font-weight: 720;
  font-size: 0.92rem;
}

.resume-note svg {
  flex: 0 0 auto;
}

.resume-note span {
  flex: 1 1 auto;
}

.resume-note button {
  border: 1px solid rgba(11, 127, 128, 0.4);
  border-radius: 6px;
  padding: 6px 10px;
  color: var(--teal-deep);
  background: #fff;
  cursor: pointer;
  font-weight: 800;
}

.resume-note button:hover,
.resume-note button:focus-visible {
  background: #e0f4f3;
  outline: none;
}

.review-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.content-section {
  margin: 0 0 36px;
  padding: clamp(22px, 3vw, 36px);
  border: 1px solid rgba(23, 33, 43, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--soft-shadow);
}

.content-head {
  max-width: 760px;
  margin-bottom: 22px;
}

.content-head h2 {
  margin: 4px 0 0;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  line-height: 1.1;
}

.content-head p {
  margin: 12px 0 0;
  color: #536271;
  font-size: 1.02rem;
  line-height: 1.6;
}

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

.tip-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--mist);
}

.tip-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  color: var(--teal-deep);
}

.tip-card p {
  margin: 0;
  color: #536271;
  font-size: 0.95rem;
  line-height: 1.55;
}

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

.qa-list details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.qa-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
  font-weight: 800;
  list-style: none;
  color: var(--ink);
}

.qa-list summary::-webkit-details-marker {
  display: none;
}

.qa-list summary::after {
  content: "+";
  flex: 0 0 auto;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--teal);
  transition: transform 150ms ease;
}

.qa-list details[open] summary::after {
  transform: rotate(45deg);
}

.qa-list details[open] summary {
  border-bottom: 1px solid var(--line);
}

.qa-list details p {
  margin: 0;
  padding: 14px 16px;
  color: #536271;
  line-height: 1.6;
}

.site-footer {
  width: min(1480px, calc(100% - 32px));
  margin: 0 auto 28px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer p {
  margin: 0;
}

.install-toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 14px;
  width: min(420px, calc(100% - 36px));
  padding: 14px 16px;
  border: 1px solid rgba(23, 33, 43, 0.12);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow);
  transform: translateY(140%);
  opacity: 0;
  transition: transform 240ms ease, opacity 240ms ease;
}

.install-toast.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.install-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  color: #fff;
  background: var(--teal);
}

.install-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1 1 auto;
}

.install-copy strong {
  font-size: 0.98rem;
}

.install-copy span {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.4;
}

.install-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 0 0 auto;
}

.install-actions .button {
  min-height: 38px;
  padding: 0 16px;
}

.install-dismiss {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 700;
}

.install-dismiss:hover,
.install-dismiss:focus-visible {
  color: var(--ink);
  outline: none;
}

@media (max-width: 480px) {
  .install-toast {
    flex-wrap: wrap;
  }

  .install-actions {
    flex-direction: row;
    width: 100%;
    justify-content: flex-end;
  }
}

/* responsive safety + polish */
img {
  max-width: 100%;
}

.session-toolbar {
  flex-wrap: wrap;
}

.session-toolbar > div,
.answer-panel,
.question-panel {
  min-width: 0;
}

.session-toolbar h2,
.role-title > span:first-child {
  overflow-wrap: anywhere;
}

@media (max-width: 1120px) {
  .hero-app,
  .workbench,
  .session-grid {
    grid-template-columns: 1fr;
  }

  .role-browser {
    position: static;
    max-height: none;
  }

  .role-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: 560px;
  }

  .hero-app {
    min-height: auto;
  }

  .hero-media {
    min-height: 220px;
    order: -1;
  }
}

@media (max-width: 740px) {
  .app-shell {
    width: min(100% - 20px, 1480px);
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }

  .topbar-actions,
  .coffee-button {
    width: 100%;
  }

  .support-note {
    display: none;
  }

  .hero-copy {
    padding: 26px 18px;
  }

  .hero-copy h1 {
    font-size: clamp(2rem, 14vw, 3.4rem);
  }

  .session-toolbar,
  .panel-heading,
  .review-summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .session-options,
  .segmented,
  .select-control,
  .button,
  .answer-actions {
    width: 100%;
  }

  .segmented label {
    flex: 1;
  }

  .segmented span,
  .select-control select {
    width: 100%;
  }

  .role-list {
    grid-template-columns: 1fr;
  }

  .score-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .question-panel,
  .answer-panel {
    min-height: 0;
  }

  .control-row {
    display: grid;
    grid-template-columns: 1fr;
  }
}

