/*
  Proofin stylesheet map
  1. Base tokens and global layout
  2. Landing page sections
  3. Forms and waitlist states
  4. Responsive landing rules
  5. Auth and dashboard workspace
  6. Roleplay, result, and proof card pages
  7. Mobile workspace refinements
*/

:root {
  --bg: #eef4ff;
  --surface: rgba(248, 251, 255, 0.88);
  --surface-strong: #ffffff;
  --text: #09101f;
  --muted: #4c5b7a;
  --accent: #4f6ef7;
  --accent-dark: #0b36c9;
  --line: rgba(9, 16, 31, 0.1);
  --shadow: 0 24px 80px rgba(17, 68, 185, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(55, 127, 255, 0.24), transparent 30%),
    radial-gradient(circle at 88% 12%, rgba(17, 102, 255, 0.18), transparent 22%),
    linear-gradient(180deg, #f9fbff 0%, #eef4ff 45%, #e4eeff 100%);
}

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

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 0 0 28px 28px;
  backdrop-filter: blur(18px);
  background: rgba(255, 247, 239, 0.72);
}

.brand,
h1,
h2,
h3 {
  letter-spacing: -0.02em;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 1.2rem;
  font-weight: 700;
}

.brand img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 10px;
}

.brand span {
  letter-spacing: 0.02em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 800;
}

.nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  transition: color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.nav-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  color: inherit;
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-weight: inherit;
  transition: color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.nav a:hover,
.nav a:focus-visible,
.nav-action:hover,
.nav-action:focus-visible {
  color: var(--accent);
  background: rgba(79, 110, 247, 0.1);
  box-shadow: inset 0 0 0 1px rgba(79, 110, 247, 0.12);
}

/* Landing page sections */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  gap: clamp(32px, 5vw, 64px);
  padding: clamp(68px, 9vw, 112px) 0 clamp(48px, 7vw, 78px);
  align-items: center;
}

.eyebrow {
  /* Tightens the eyebrow-to-title rhythm without changing the hero structure. */
  margin: 0 0 14px;
  color: var(--accent-dark);
  font-size: 0.84rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(3.2rem, 7vw, 6.2rem);
  line-height: 1.02;
  max-width: 11.2ch;
}

.hero-text,
.section-heading p,
.service-card p,
.timeline p,
.result-stat p,
.contact-card p,
.metric-card p,
.mini-grid p {
  color: var(--muted);
  line-height: 1.7;
}

.hero-text {
  /* Narrows the paragraph block for a more deliberate premium wrap. */
  max-width: 44ch;
  margin: 18px 0 20px;
  font-size: 1.12rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 26px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  cursor: pointer;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: #f7fbff;
  background: var(--accent-dark);
  box-shadow: 0 10px 22px rgba(11, 54, 201, 0.18);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #082ba8;
}

.button-secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.4);
}

.hero-points {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
  color: var(--muted);
  font-weight: 800;
}

.hero-points li::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--accent);
}

.hero-card,
.process-panel,
.contact-card {
  border: 1px solid rgba(11, 54, 201, 0.09);
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(240, 246, 255, 0.88));
  box-shadow: var(--shadow);
}

.hero-card {
  padding: 22px;
  transform: none;
}

.hero-logo-lockup {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  padding: 14px 16px;
  border-radius: 24px;
  background: rgba(248, 251, 255, 0.86);
}

.hero-logo-lockup img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 18px;
  background: #fff;
}

.hero-logo-lockup p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.5;
}

.metric-card {
  padding: 24px;
  border-radius: 24px;
  border: 1px solid rgba(9, 16, 31, 0.08);
  background: #fff;
}

.metric-card strong {
  display: block;
  margin: 10px 0 12px;
  font-size: 1.75rem;
  line-height: 1.1;
}

.metric-label {
  color: var(--accent-dark);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 16px;
}

.mini-grid article,
.service-card,
.result-stat {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.52);
}

.mini-grid span,
.timeline span {
  color: var(--accent-dark);
  font-size: 0.85rem;
  font-weight: 700;
}

.mini-grid h2,
.service-card h3,
.timeline h3 {
  margin: 10px 0;
  font-size: 1.25rem;
}

.marquee {
  overflow: hidden;
  border-block: 1px solid rgba(30, 30, 26, 0.08);
  padding: 16px 0;
}

.marquee-track {
  display: flex;
  width: max-content;
  font-weight: 800;
  animation: slide 28s linear infinite;
}

.marquee-group {
  display: flex;
  flex-shrink: 0;
  gap: 18px;
  padding-right: 18px;
}

.marquee-group span {
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(30, 30, 26, 0.08);
}

.section {
  padding-top: clamp(72px, 9vw, 104px);
}

.section-heading {
  max-width: 720px;
}

.section-heading h2 {
  margin: 0 0 14px;
  font-size: clamp(2.1rem, 4vw, 3.5rem);
  line-height: 1;
}

.services-grid,
.results-grid {
  display: grid;
  gap: 18px;
  margin-top: 34px;
}

.services-grid {
  grid-template-columns: repeat(4, 1fr);
}

.process-panel {
  padding: 28px;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 28px;
}

.timeline article {
  padding: 20px;
  border-top: 4px solid var(--accent);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.62);
}

.results-grid {
  grid-template-columns: repeat(3, 1fr);
}

.stat-number {
  display: block;
  margin-bottom: 10px;
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  line-height: 1;
}

.contact-card {
  display: grid;
  grid-template-columns: 1fr 0.95fr;
  gap: clamp(24px, 4vw, 44px);
  padding: clamp(28px, 5vw, 44px);
}

.interest-form {
  display: grid;
  gap: 14px;
}

.interest-form label {
  display: grid;
  gap: 8px;
  font-weight: 700;
}

.interest-form input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(30, 30, 26, 0.14);
  border-radius: 14px;
  font: inherit;
  background: rgba(255, 255, 255, 0.72);
}

/* Forms and waitlist states */
.waitlist-success {
  margin: 0;
  padding: 18px 20px;
  border: 1px solid rgba(11, 54, 201, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--accent-dark);
  font-weight: 700;
}

.hidden {
  display: none;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms ease, transform 600ms ease;
}

.reveal-delay {
  transition-delay: 140ms;
}

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

@keyframes slide {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* Responsive landing rules */
@media (max-width: 960px) {
  .hero,
  .contact-card,
  .services-grid,
  .results-grid,
  .timeline,
  .mini-grid {
    grid-template-columns: 1fr;
  }

  .hero-card {
    transform: none;
  }

  .topbar {
    border-radius: 26px;
    flex-direction: column;
    gap: 12px;
  }

  .hero-logo-lockup {
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .site-shell {
    width: min(100% - 20px, 1180px);
  }

  .nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 16px;
  }

  .hero {
    padding-top: 42px;
  }

  .hero h1 {
    /* Mobile gets a touch more leading to keep stacked lines clean. */
    line-height: 1.04;
    max-width: 10.8ch;
  }

  .button {
    width: 100%;
  }

  .brand span {
    font-size: 1rem;
  }

  .hero-logo-lockup {
    flex-direction: column;
  }
}

/* ── Roles section ── */
.roles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 30px;
}

.role-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.52);
}

.role-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(31, 117, 255, 0.1);
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.role-card h3 {
  margin: 0 0 10px;
  font-size: 1.25rem;
}

.role-examples {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.role-examples li {
  font-size: 0.9rem;
  color: var(--muted);
  padding-left: 16px;
  position: relative;
}

.role-examples li::before {
  content: "\2192";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* ── Select input ── */
.interest-form select {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(30, 30, 26, 0.14);
  border-radius: 14px;
  font: inherit;
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%234c5b7a' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
}

/* ── Responsive additions ── */
@media (max-width: 960px) {
  .roles-grid {
    grid-template-columns: 1fr;
  }
}

/* required asterisk */
.required {
  color: var(--accent);
  margin-left: 2px;
}

/* waitlist error message */
.waitlist-error {
  margin: 0;
  padding: 12px 16px;
  border: 1px solid rgba(220, 53, 69, 0.25);
  border-radius: 14px;
  background: rgba(220, 53, 69, 0.06);
  color: #c0392b;
  font-size: 0.9rem;
  font-weight: 500;
}

/* submit button loading state */
.button[aria-busy="true"] {
  opacity: 0.7;
  cursor: not-allowed;
  pointer-events: none;
}

/* ── Proofin color overrides ── */
:root {
  --accent: #4f6ef7;
  --accent-dark: #0b36c9;
  --shadow: 0 24px 80px rgba(79, 110, 247, 0.16);
}

body {
  background:
    radial-gradient(circle at top left, rgba(79, 110, 247, 0.2), transparent 30%),
    radial-gradient(circle at 88% 12%, rgba(17, 102, 255, 0.12), transparent 22%),
    linear-gradient(180deg, #f9fbff 0%, #eef4ff 45%, #e4eeff 100%);
}

/* ── 4-pillar grid ── */
.mini-grid {
  grid-template-columns: repeat(2, 1fr);
}

.pillar-icon {
  display: block;
  font-size: 1.4rem;
  margin-bottom: 6px;
}

.mini-grid h2 {
  font-size: 1rem;
  margin: 6px 0;
}

/* ── Role tag SDR style ── */
.role-tag {
  background: rgba(79, 110, 247, 0.12);
  color: var(--accent-dark);
}

/* ── Button gradient ── */
.button-primary {
  background: var(--accent-dark);
  box-shadow: 0 10px 22px rgba(11, 54, 201, 0.18);
}

/* ── Topbar tint ── */
.topbar {
  background: rgba(248, 248, 255, 0.82);
}

/* ── Hero logo lockup gradient ── */
.hero-logo-lockup {
  background: linear-gradient(135deg, rgba(79, 110, 247, 0.08), rgba(11, 54, 201, 0.1));
}

/* ── Timeline accent ── */
.timeline article {
  border-top-color: var(--accent);
}

/* ── Proofin highlight card (middle market) ── */
.service-card.proofin-highlight {
  border-color: var(--accent);
  background: linear-gradient(160deg, rgba(79, 110, 247, 0.08), rgba(11, 54, 201, 0.05));
  box-shadow: 0 0 0 2px rgba(79, 110, 247, 0.2);
}

.service-card.proofin-highlight h3 {
  color: var(--accent-dark);
}

/* ── 5-col roles grid on wide screens ── */
@media (min-width: 960px) {
  .roles-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ── 네비바: 가로형 로고 (wide) ── */
.brand img {
  width: auto;
  height: 32px;
  border-radius: 0;
  object-fit: contain;
}

/* 네비바에선 텍스트 "Proofin" 숨김 (로고에 이미 텍스트 있음) */
.brand span {
  display: none;
}

/* ── hero 카드: 아이콘형 로고 ── */
.hero-logo-lockup img {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  object-fit: contain;
  background: #fff;
  padding: 6px;
}

/* Final logo and badge polish */
.brand img {
  width: clamp(260px, 25vw, 340px);
  height: auto;
  max-height: 96px;
  border-radius: 0;
  object-fit: contain;
  background: transparent;
}

.pillar-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 28px;
  border-radius: 999px;
  background: rgba(79, 110, 247, 0.12);
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

@media (max-width: 640px) {
  .brand img {
    width: min(240px, 76vw);
    max-height: none;
  }
}

/* Auth and beta workspace */
/* Auth and dashboard workspace */
.auth-shell,
.dashboard-shell {
  min-height: 100vh;
}

.auth-topbar,
.dashboard-topbar {
  margin-bottom: 42px;
}

.public-proof-shell {
  min-height: 100vh;
}

.public-proof-topbar {
  justify-content: center;
  margin-bottom: 32px;
}

.public-proof-main {
  padding-top: 8px;
}

.auth-main,
.dashboard-main {
  padding-bottom: 72px;
}

body[data-auth-loading="true"] .dashboard-shell {
  visibility: hidden;
}

body[data-auth-loading="true"]::before {
  content: "Restoring session...";
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 800;
  background:
    radial-gradient(circle at top left, rgba(79, 110, 247, 0.16), transparent 30%),
    linear-gradient(180deg, #f9fbff 0%, #eef4ff 100%);
}

body[data-auth-loading="true"]::after {
  content: "";
  position: fixed;
  top: calc(50% + 34px);
  left: calc(50% - 13px);
  z-index: 101;
  width: 26px;
  height: 26px;
  border: 3px solid rgba(79, 110, 247, 0.18);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: auth-spin 780ms linear infinite;
}

@keyframes auth-spin {
  to {
    transform: rotate(360deg);
  }
}

.auth-panel {
  display: grid;
  grid-template-columns: 1fr 0.82fr;
  gap: 32px;
  align-items: center;
  min-height: calc(100vh - 190px);
}

.auth-copy h1,
.dashboard-hero h1 {
  margin: 0;
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: 0.96;
  max-width: 11ch;
}

.auth-copy p,
.dashboard-hero p,
.workspace-card p {
  color: var(--muted);
  line-height: 1.7;
}

.auth-card,
.dashboard-hero,
.workspace-card {
  border: 1px solid rgba(11, 54, 201, 0.09);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
}

.auth-card {
  display: grid;
  gap: 18px;
  padding: 24px;
}

.auth-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(79, 110, 247, 0.1);
}

.auth-toggle button,
.text-button {
  border: 0;
  font: inherit;
  cursor: pointer;
  background: transparent;
}

.auth-toggle button {
  min-height: 42px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 800;
}

.auth-toggle button[aria-pressed="true"] {
  color: var(--accent-dark);
  background: #fff;
  box-shadow: 0 8px 20px rgba(79, 110, 247, 0.14);
}

.social-login-grid {
  display: grid;
  gap: 10px;
}

.social-login-button {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 48px;
  width: 100%;
  gap: 12px;
  padding: 0 14px;
  border: 1px solid rgba(30, 30, 26, 0.12);
  border-radius: 14px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  transition: border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.social-login-button:hover,
.social-login-button:focus-visible {
  border-color: rgba(79, 110, 247, 0.34);
  background: #fff;
  transform: translateY(-1px);
}

.social-login-button:disabled {
  opacity: 0.58;
  cursor: not-allowed;
  transform: none;
}

.social-login-button small {
  margin-left: auto;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.social-login-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  color: var(--text);
}

.social-login-icon svg {
  width: 22px;
  height: 22px;
  display: block;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.signup-form,
body[data-auth-view="signup"] .signin-form {
  display: none;
}

body[data-auth-view="signup"] .signup-form {
  display: grid;
}

.text-button {
  justify-self: center;
  color: var(--accent-dark);
  font-weight: 700;
}

.field-hint {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 500;
  line-height: 1.45;
}

.password-field {
  position: relative;
  display: block;
}

.password-field input {
  padding-right: 52px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  transform: translateY(-50%);
  transition: color 180ms ease, background-color 180ms ease;
}

.password-toggle:hover,
.password-toggle:focus-visible,
.password-toggle[aria-pressed="true"] {
  color: var(--accent-dark);
  background: rgba(79, 110, 247, 0.1);
}

.eye-icon {
  position: relative;
  display: block;
  width: 19px;
  height: 12px;
  border: 2px solid currentColor;
  border-radius: 999px / 720px;
}

.eye-icon::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  transform: translate(-50%, -50%);
}

.eye-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: -3px;
  width: 25px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transform: rotate(-35deg);
}

.password-toggle[aria-pressed="true"] .eye-icon::after {
  display: none;
}

.dashboard-nav {
  align-items: center;
}

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

.dashboard-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 30px 30px 22px;
}

.dashboard-hero h1 {
  max-width: 15ch;
}

.workspace-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 24px;
}

.workspace-card {
  padding: 24px;
}

.workspace-card h2 {
  margin: 12px 0 10px;
  font-size: 1.35rem;
}

.workspace-card .button {
  margin-top: 8px;
}

.workspace-card-wide {
  grid-column: 1 / -1;
}

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

@media (max-width: 960px) {
  .auth-panel,
  .workspace-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-hero {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Roleplay and score pages */
/* Roleplay, result, and proof card pages */
.roleplay-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.42fr) minmax(0, 1fr);
  gap: 24px;
}

.roleplay-sidebar {
  align-self: start;
  display: grid;
  gap: 16px;
}

.roleplay-sidebar h1 {
  margin: 0;
  font-size: clamp(2.1rem, 4vw, 3.25rem);
  line-height: 1;
}

.roleplay-sidebar label {
  display: grid;
  gap: 8px;
  font-weight: 800;
}

.workspace-select {
  appearance: none;
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(30, 30, 26, 0.14);
  border-radius: 14px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.76);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%234c5b7a' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  font: inherit;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.workspace-select:hover {
  border-color: var(--accent);
}

.workspace-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(79, 110, 247, 0.15);
  outline: 0;
}

.scenario-note {
  padding: 14px;
  border-radius: 16px;
  color: var(--muted);
  background: rgba(79, 110, 247, 0.08);
  line-height: 1.6;
}

.chat-panel,
.score-hero,
.score-card {
  border: 1px solid rgba(11, 54, 201, 0.09);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
}

.chat-panel {
  display: grid;
  grid-template-rows: auto minmax(420px, 54vh) auto;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.82);
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
}

.chat-header h2 {
  margin: 0;
  font-size: 1.55rem;
}

.chat-subtitle {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 800;
}

.chat-window {
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
  padding: 28px 24px;
  scroll-behavior: smooth;
  background:
    linear-gradient(180deg, rgba(248, 251, 255, 0.76), rgba(255, 255, 255, 0.92));
}

.chat-message {
  display: grid;
  gap: 7px;
  max-width: min(76%, 640px);
}

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

.chat-message p {
  margin: 0;
  padding: 15px 17px;
  border: 1px solid rgba(9, 16, 31, 0.06);
  border-radius: 18px;
  line-height: 1.6;
  box-shadow: 0 10px 28px rgba(9, 16, 31, 0.06);
}

.chat-message-assistant p {
  color: #1d2a44;
  background: #ffffff;
}

.chat-message-user {
  align-self: flex-end;
}

.chat-message-user span {
  text-align: right;
}

.chat-message-user p {
  color: #fff;
  background: var(--accent-dark);
}

.chat-message-typing p {
  display: inline-flex;
  gap: 5px;
  width: fit-content;
  padding: 15px 18px;
}

.chat-message-typing p span {
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(79, 110, 247, 0.65);
  animation: typing-pulse 900ms ease-in-out infinite;
}

.chat-message-typing p span:nth-child(2) {
  animation-delay: 120ms;
}

.chat-message-typing p span:nth-child(3) {
  animation-delay: 240ms;
}

@keyframes typing-pulse {
  0%,
  80%,
  100% {
    opacity: 0.35;
    transform: translateY(0);
  }

  40% {
    opacity: 1;
    transform: translateY(-3px);
  }
}

.chat-composer {
  position: sticky;
  bottom: 0;
  display: grid;
  gap: 10px;
  padding: 18px;
  border-top: 1px solid var(--line);
  background: rgba(248, 251, 255, 0.94);
  backdrop-filter: blur(16px);
}

.chat-composer textarea {
  width: 100%;
  resize: none;
  min-height: 58px;
  max-height: 180px;
  padding: 15px 16px;
  border: 1px solid rgba(30, 30, 26, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  font: inherit;
  line-height: 1.45;
  transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.chat-composer textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(79, 110, 247, 0.14);
  background: #fff;
  outline: 0;
}

.chat-composer-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.chat-actions,
.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

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

.score-hero {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 24px;
  padding: 30px;
}

.score-hero h1 {
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  line-height: 0.98;
}

.score-hero-metrics {
  display: grid;
  grid-template-columns: minmax(170px, auto) minmax(240px, 1fr);
  gap: 14px;
  min-width: min(100%, 480px);
}

.score-total-card {
  display: grid;
  align-content: center;
  min-width: 170px;
  padding: 22px;
  border-radius: 20px;
  color: #fff;
  background: var(--accent-dark);
}

.score-total-card span,
.score-total-card p {
  margin: 0;
  font-weight: 800;
}

.score-total-card strong {
  font-size: clamp(3.2rem, 7vw, 5.6rem);
  line-height: 1;
}

.score-percentile-card {
  display: grid;
  align-content: center;
  gap: 10px;
  padding: 22px;
  border: 1px solid rgba(9, 16, 31, 0.08);
  border-radius: 20px;
  background: #f8fbff;
}

.score-percentile-card > span {
  color: #09101f;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
  letter-spacing: -0.03em;
}

.score-percentile-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 800;
  line-height: 1.45;
}

.score-percentile-track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(79, 110, 247, 0.12);
}

.score-percentile-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent-dark);
}

.score-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 24px;
}

.score-card {
  display: grid;
  gap: 14px;
  padding: 22px;
  border: 1px solid rgba(9, 16, 31, 0.08);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 50px rgba(9, 16, 31, 0.07);
}

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

.score-card strong {
  font-size: 2.8rem;
  line-height: 1;
}

.score-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.score-track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(79, 110, 247, 0.12);
}

.score-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}

.result-insight-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.result-insight-card {
  align-content: start;
}

.result-insight-card h2 {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  line-height: 1;
}

.feedback-panel {
  margin-top: 24px;
}

.feedback-list {
  display: grid;
  gap: 10px;
  margin: 18px 0 22px;
  padding: 0;
  list-style: none;
}

.feedback-list li {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 16px;
  color: var(--muted);
  background: rgba(79, 110, 247, 0.08);
  line-height: 1.6;
}

.feedback-list li span {
  color: var(--accent-dark);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.feedback-list li p {
  margin: 0;
}

.feedback-list-compact {
  margin-bottom: 0;
}

.button-disabled {
  pointer-events: none;
  opacity: 0.58;
}

.proof-card {
  max-width: 900px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(11, 54, 201, 0.09);
  border-radius: 32px;
  background: #fff;
  box-shadow: var(--shadow);
}

.proof-card-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  min-height: 30%;
  padding: clamp(28px, 5vw, 44px);
  color: #fff;
  background: linear-gradient(135deg, #4f6ef7, #0b36c9);
}

.proof-eyebrow {
  margin: 0 0 10px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.proof-card h1 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 0.96;
}

.proof-card-band p:not(.proof-eyebrow) {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.05rem;
  font-weight: 800;
}

.proof-total-zone {
  display: grid;
  justify-items: end;
  align-content: center;
  min-width: 180px;
  text-align: right;
}

.proof-total-zone span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.proof-total-zone strong {
  font-size: clamp(4rem, 10vw, 6rem);
  line-height: 1;
  color: #fff;
}

.proof-total-zone p {
  margin: 12px 0 0;
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  font-weight: 900;
}

.proof-card-body {
  padding: clamp(24px, 5vw, 38px);
}

.proof-score-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.proof-score-item {
  display: grid;
  gap: 8px;
  justify-items: center;
  padding: 24px 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(248, 251, 255, 0.8);
  text-align: center;
}

.proof-score-item strong {
  color: var(--accent);
  font-size: clamp(2.2rem, 7vw, 3.8rem);
  line-height: 1;
}

.proof-score-item span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.proof-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: clamp(28px, 5vw, 42px);
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.proof-card-footer p {
  margin: 0;
  color: var(--muted);
  font-weight: 900;
}

.proof-card .waitlist-success {
  margin-top: 18px;
}

@media (max-width: 960px) {
  .roleplay-layout,
  .score-grid,
  .result-insight-grid {
    grid-template-columns: 1fr;
  }

  .score-hero {
    flex-direction: column;
  }

  .score-hero-metrics {
    grid-template-columns: 1fr;
    min-width: 0;
  }

  .proof-score-grid {
    grid-template-columns: 1fr;
  }

  .chat-panel {
    grid-template-rows: auto minmax(360px, 54vh) auto;
  }
}

@media (max-width: 640px) {
  .chat-header,
  .score-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .proof-card-band {
    grid-template-columns: 1fr;
  }

  .proof-card-footer {
    align-items: stretch;
    flex-direction: column;
  }

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

  .chat-window {
    padding: 20px 16px;
  }

  .chat-composer {
    padding: 14px;
  }

  .chat-composer-meta {
    display: none;
  }

  .chat-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
}

/* Mobile workspace refinements */
@media (max-width: 768px) {
  .topbar {
    align-items: center;
    gap: 10px;
  }

  .topbar .brand {
    justify-content: center;
  }

  .dashboard-nav span,
  .nav #user-email {
    display: none;
  }

  .nav {
    justify-content: center;
    gap: 6px;
  }

  .nav a,
  .nav-action {
    min-height: 38px;
    padding: 0 10px;
    font-size: 0.92rem;
  }

  .roleplay-layout {
    grid-template-columns: 1fr;
  }

  .roleplay-sidebar {
    width: 100%;
    max-width: none;
  }

  .chat-panel {
    width: 100%;
  }

  .workspace-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-hero {
    align-items: center;
    flex-direction: column;
    text-align: center;
  }

  .dashboard-hero h1 {
    max-width: 100%;
  }

  .score-hero {
    flex-direction: column;
  }

  .proof-score-band {
    grid-template-columns: 1fr;
  }

  .chat-composer textarea {
    font-size: 16px;
  }
}

/* Public AI benchmark Proof Card */
.proof-share-wrap {
  display: grid;
  justify-items: center;
  gap: 12px;
}

.proof-share-wrap .waitlist-success {
  width: min(100%, 760px);
}

.benchmark-proof-card {
  display: grid;
  gap: clamp(12px, 2vw, 16px);
  width: min(100%, 760px);
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(18px, 2.6vw, 26px);
  overflow: visible;
  border: 1px solid rgba(9, 16, 31, 0.1);
  border-radius: 18px;
  color: #09101f;
  background: #fff;
  box-shadow: 0 14px 42px rgba(9, 16, 31, 0.085);
}

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

.proof-card-header {
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(9, 16, 31, 0.08);
}

.proof-header-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.proof-header-brand img {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(9, 16, 31, 0.08);
  border-radius: 10px;
  background: #fff;
}

.proof-verified-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border: 1px solid rgba(11, 54, 201, 0.18);
  border-radius: 999px;
  color: var(--accent-dark);
  background: rgba(79, 110, 247, 0.08);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.proof-card-header p,
.proof-card-identity p,
.proof-score-core p,
.proof-radar-panel p,
.proof-percentile-panel p,
.proof-id-panel p,
.proof-card-footer p,
.proof-card-footer span,
.proof-share-actions p {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
  line-height: 1.35;
}

.proof-card-identity {
  display: grid;
  gap: 5px;
}

.proof-card-title,
.proof-section-heading span,
.proof-rubric-item span,
.proof-id-panel span,
.proof-score-core span {
  color: var(--accent-dark);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.proof-card-title {
  margin: 0;
}

.proof-card-identity h1 {
  margin: 0;
  color: #09101f;
  font-size: clamp(1.9rem, 5vw, 3.35rem);
  line-height: 1;
  letter-spacing: 0;
}

.proof-benchmark-hero {
  display: grid;
  grid-template-columns: minmax(210px, 0.9fr) minmax(250px, 1.1fr);
  gap: 10px;
}

.proof-score-core,
.proof-radar-panel,
.proof-percentile-panel,
.proof-id-panel,
.proof-rubric-item {
  border: 1px solid rgba(9, 16, 31, 0.08);
  border-radius: 14px;
  background: #fff;
}

.proof-score-core {
  display: grid;
  align-content: center;
  justify-items: center;
  min-height: 188px;
  padding: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.proof-score-core span,
.proof-score-core p {
  color: var(--muted);
}

.proof-score-core strong {
  color: var(--accent-dark);
  background: linear-gradient(135deg, #09101f 0%, #4f6ef7 72%, #0b36c9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  font-size: clamp(4.6rem, 11.5vw, 6.45rem);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: 0;
  -webkit-text-fill-color: transparent;
}

.proof-radar-panel {
  display: grid;
  justify-items: center;
  gap: 4px;
  min-height: 188px;
  padding: 10px 14px;
  background: #fbfdff;
}

.proof-radar-chart {
  width: min(100%, 196px);
  aspect-ratio: 1;
}

.proof-radar-chart svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.proof-radar-ring {
  fill: none;
  stroke: rgba(9, 16, 31, 0.08);
  stroke-width: 1;
}

.proof-radar-axis {
  stroke: rgba(9, 16, 31, 0.1);
  stroke-width: 1;
}

.proof-radar-score {
  fill: rgba(79, 110, 247, 0.12);
  stroke: var(--accent-dark);
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.proof-radar-dot {
  fill: #fff;
  stroke: var(--accent-dark);
  stroke-width: 2.2;
}

.proof-radar-label {
  fill: var(--muted);
  font-size: 9.5px;
  font-weight: 850;
  letter-spacing: 0;
}

.proof-benchmark-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 10px;
}

.proof-percentile-panel,
.proof-id-panel {
  display: grid;
  align-content: center;
  gap: 7px;
  padding: 13px 14px;
  background: #fff;
}

.proof-percentile-panel {
  border-color: rgba(8, 116, 67, 0.16);
  background: #fbfffd;
}

.proof-percentile-panel > span {
  color: #087443;
  font-size: clamp(1.9rem, 5vw, 2.9rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
}

.proof-percentile-track,
.proof-rubric-track {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(79, 110, 247, 0.12);
}

.proof-percentile-track span,
.proof-rubric-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent-dark);
}

.proof-percentile-track {
  background: rgba(8, 116, 67, 0.12);
}

.proof-percentile-track span {
  background: #087443;
}

.proof-id-panel strong {
  display: block;
  overflow-wrap: anywhere;
  color: #09101f;
  font-size: 0.92rem;
  font-weight: 900;
  letter-spacing: 0;
}

.proof-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 10px;
  padding-top: 2px;
}

.proof-section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 750;
}

.proof-rubric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid rgba(9, 16, 31, 0.09);
  border-bottom: 1px solid rgba(9, 16, 31, 0.09);
}

.proof-rubric-item {
  display: grid;
  gap: 8px;
  padding: 10px 12px;
  border: 0;
  border-right: 1px solid rgba(9, 16, 31, 0.08);
  border-radius: 0;
  background: transparent;
}

.proof-rubric-item:last-child {
  border-right: 0;
}

.proof-rubric-topline {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
}

.proof-rubric-item strong {
  color: #09101f;
  font-size: 1.28rem;
  font-weight: 900;
  line-height: 1;
}

.proof-rubric-track {
  height: 5px;
  background: rgba(9, 16, 31, 0.08);
}

.proof-card-footer {
  margin-top: 0;
  padding-top: 12px;
  border-top: 1px solid rgba(9, 16, 31, 0.08);
}

.proof-card-footer p {
  color: #09101f;
  font-weight: 900;
}

.proof-share-actions {
  width: min(100%, 760px);
  padding: 11px 12px;
  border: 1px solid rgba(9, 16, 31, 0.08);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(9, 16, 31, 0.055);
}

.proof-share-actions strong {
  display: block;
  color: #09101f;
  font-size: 1rem;
  font-weight: 900;
}

.proof-share-actions .button {
  min-width: 220px;
}

@media (max-width: 760px) {
  .public-proof-topbar {
    margin-bottom: 18px;
  }

  .benchmark-proof-card {
    gap: 13px;
    border-radius: 16px;
    padding: 16px;
  }

  .proof-card-header,
  .proof-card-footer,
  .proof-share-actions,
  .proof-section-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .proof-card-header {
    gap: 12px;
  }

  .proof-card-identity h1 {
    font-size: 2.25rem;
  }

  .proof-benchmark-hero,
  .proof-benchmark-row,
  .proof-rubric-grid {
    grid-template-columns: 1fr;
  }

  .proof-score-core {
    min-height: 176px;
  }

  .proof-radar-panel {
    min-height: 216px;
  }

  .proof-rubric-item {
    border-right: 0;
    border-bottom: 1px solid rgba(9, 16, 31, 0.08);
    padding: 11px 2px;
  }

  .proof-rubric-item:last-child {
    border-bottom: 0;
  }

  .proof-share-actions {
    text-align: left;
  }

  .proof-share-actions .button {
    width: 100%;
  }
}
