:root {
  color-scheme: light;
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  background: #f4efe5;
  color: #17211c;
  --ink: #17211c;
  --muted: #5d6a60;
  --line: rgba(23, 33, 28, 0.14);
  --paper: rgba(255, 252, 245, 0.84);
  --paper-strong: #fffaf0;
  --accent: #a94f2b;
  --accent-dark: #75351d;
  --green: #2f7d59;
  --shadow: 0 24px 70px rgba(52, 65, 56, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 10%, rgba(236, 165, 88, 0.35), transparent 28rem),
    radial-gradient(circle at 88% 6%, rgba(110, 143, 109, 0.22), transparent 30rem),
    linear-gradient(135deg, #fbf6ed 0%, #e9efe1 100%);
}

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

button {
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fffaf0;
  color: var(--ink);
  cursor: pointer;
}

button:hover {
  border-color: rgba(169, 79, 43, 0.45);
}

button.primary {
  border-color: transparent;
  background: var(--accent);
  color: white;
}

button.small {
  min-height: 34px;
  padding: 0 13px;
  font-size: 0.86rem;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 18px clamp(18px, 4vw, 42px);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
  background: rgba(244, 239, 229, 0.78);
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  color: inherit;
  text-decoration: none;
}

.brand small {
  display: block;
  color: var(--muted);
  font-family: "Aptos", "Segoe UI", sans-serif;
  font-size: 0.76rem;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 14px;
  background: var(--ink);
  color: #fff7e8;
  font-weight: 800;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.nav a {
  padding: 9px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-family: "Aptos", "Segoe UI", sans-serif;
  font-size: 0.9rem;
  text-decoration: none;
}

.nav a.is-active {
  background: rgba(169, 79, 43, 0.1);
  color: var(--accent-dark);
}

.shell {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0 72px;
}

.page-grid,
.interview-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(360px, 1.25fr);
  gap: 28px;
  align-items: start;
}

.dashboard-grid {
  grid-template-columns: minmax(0, 1fr) 420px;
}

.hero-panel,
.panel,
.card {
  border: 1px solid var(--line);
  border-radius: 30px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.hero-panel {
  min-height: 460px;
  padding: clamp(28px, 5vw, 52px);
}

.panel,
.card {
  padding: 24px;
}

.page-title {
  margin-bottom: 24px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent-dark);
  font-family: "Aptos", "Segoe UI", sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 20px;
  font-size: clamp(2.8rem, 6vw, 5.4rem);
  line-height: 0.9;
  letter-spacing: -0.055em;
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

h3 {
  margin-bottom: 12px;
}

p,
li,
label,
small {
  font-family: "Aptos", "Segoe UI", sans-serif;
}

p,
li {
  color: #3b4a41;
  line-height: 1.55;
}

.lede {
  font-size: 1.1rem;
}

.form {
  display: grid;
  gap: 18px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 13px 15px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  font-family: "Aptos", "Segoe UI", sans-serif;
}

input[type="file"] {
  padding: 11px 13px;
  cursor: pointer;
}

input[type="file"]::file-selector-button {
  margin-right: 12px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fffaf0;
  color: var(--accent-dark);
  font: inherit;
  font-family: "Aptos", "Segoe UI", sans-serif;
  font-weight: 800;
  cursor: pointer;
}

textarea {
  resize: vertical;
}

.field-help {
  color: var(--muted);
  font-weight: 500;
  line-height: 1.45;
}

.inline-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

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

.demo-strip,
.agent-chain {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 22px 0;
}

.demo-strip span,
.agent-chain span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid rgba(169, 79, 43, 0.2);
  border-radius: 999px;
  background: rgba(255, 250, 240, 0.7);
  color: var(--accent-dark);
  font-family: "Aptos", "Segoe UI", sans-serif;
  font-size: 0.84rem;
  font-weight: 800;
}

.demo-note {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid rgba(47, 125, 89, 0.18);
  border-radius: 22px;
  background: rgba(47, 125, 89, 0.08);
  color: #2e473b;
  font-family: "Aptos", "Segoe UI", sans-serif;
  line-height: 1.55;
}

.cards {
  display: grid;
  gap: 18px;
  margin: 18px 0;
}

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

.cards.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.section-heading,
.metric-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
  font-family: "Aptos", "Segoe UI", sans-serif;
}

.section-heading span {
  font-weight: 800;
}

.section-heading small,
.muted,
.fine-print {
  color: var(--muted);
}

.timeline {
  display: grid;
  gap: 12px;
}

.timeline article,
.coaching-list article,
.history-item {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.45);
}

.timeline p,
.history-item p {
  margin-bottom: 6px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  display: inline-flex;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(47, 125, 89, 0.12);
  color: #245b42;
  font-family: "Aptos", "Segoe UI", sans-serif;
  font-size: 0.86rem;
  font-weight: 700;
}

.sticky {
  position: sticky;
  top: 104px;
}

.conversation-panel {
  min-height: 620px;
}

.conversation {
  display: grid;
  gap: 14px;
  max-height: 430px;
  overflow: auto;
  padding-right: 4px;
}

.message {
  max-width: 88%;
  padding: 14px 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.58);
}

.message.interviewer {
  border-top-left-radius: 6px;
}

.message.candidate {
  justify-self: end;
  border-top-right-radius: 6px;
  background: rgba(169, 79, 43, 0.1);
}

.message small {
  color: var(--muted);
  font-weight: 800;
  text-transform: capitalize;
}

.message p {
  margin: 6px 0 0;
}

.answer-box,
.completion-box {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.report-title {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
}

.score-ring {
  display: grid;
  flex: 0 0 150px;
  width: 150px;
  height: 150px;
  place-items: center;
  border: 10px solid rgba(47, 125, 89, 0.18);
  border-radius: 999px;
  background: var(--paper-strong);
  color: var(--green);
  font-size: 3rem;
  font-weight: 900;
}

.score-ring small {
  margin-top: -38px;
  color: var(--muted);
  font-size: 0.9rem;
}

.score-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.score-card p {
  grid-column: 1 / -1;
}

.score-card span {
  color: var(--green);
  font-family: "Aptos", "Segoe UI", sans-serif;
  font-weight: 900;
}

.history-list,
.coaching-list {
  display: grid;
  gap: 12px;
}

.history-item {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  box-shadow: none;
}

.alert,
.loading,
.empty {
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: 18px;
  font-family: "Aptos", "Segoe UI", sans-serif;
}

.alert {
  background: #fff0e8;
  color: #7c3219;
}

.loading,
.empty {
  background: rgba(255, 255, 255, 0.56);
  color: var(--muted);
}

.empty-panel {
  text-align: center;
}

@media (max-width: 900px) {
  .topbar,
  .report-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .page-grid,
  .dashboard-grid,
  .interview-layout,
  .cards.two,
  .cards.three {
    grid-template-columns: 1fr;
  }

  .sticky {
    position: static;
  }
}

@media (max-width: 620px) {
  .shell {
    width: min(100% - 20px, 1160px);
    padding-top: 24px;
  }

  .hero-panel,
  .panel,
  .card {
    border-radius: 22px;
    padding: 18px;
  }

  .inline-fields {
    grid-template-columns: 1fr;
  }

  .message {
    max-width: 100%;
  }
}
