:root {
  --bg: #0b1020;
  --bg-2: #0d1328;
  --ink: #e5e7eb;
  --muted: #9aa4b2;
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(229, 170, 78, 0.38);
  --panel: rgba(15, 23, 42, 0.78);
  --panel-solid: #0f172a;
  --brand: #e5aa4e;
  --brand-dark: #c7892d;
  --navy: #152b49;
  --warn: #e5aa4e;
  --danger: #ff7a68;
  --ok: #63d38b;
  --shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
  --maxw: 1100px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1200px 600px at 20% 0%, rgba(229, 170, 78, 0.16), transparent 55%),
    radial-gradient(900px 520px at 80% 15%, rgba(21, 43, 73, 0.35), transparent 60%),
    linear-gradient(180deg, var(--bg), var(--bg-2));
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

main {
  width: min(var(--maxw), calc(100% - 48px));
  margin: 0 auto;
}

.site-header {
  background: rgba(11, 16, 32, 0.76);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(14px);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(var(--maxw), calc(100% - 48px));
  margin: 0 auto;
  min-height: 78px;
  border-bottom: 1px solid var(--line-strong);
  padding: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-logo {
  display: block;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: contain;
}

.brand-mark {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  margin-top: 1px;
  color: rgba(229, 231, 235, 0.72);
  font-size: 11px;
  font-weight: 700;
}

.nav {
  display: flex;
  gap: 10px;
  margin-left: auto;
  color: rgba(229, 231, 235, 0.86);
  font-size: 14px;
}

.nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  padding: 0 12px;
  font-weight: 700;
}

.header-account {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  max-width: 260px;
  min-height: 38px;
  color: rgba(229, 231, 235, 0.72);
  font-size: 13px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-logout-form {
  display: inline-flex;
  margin: 0;
}

.header-logout-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(229, 231, 235, 0.9);
  padding: 0 12px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.header-logout-button:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(229, 170, 78, 0.28);
}

.install-app-button {
  display: none;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 38px;
  border: 1px solid rgba(229, 170, 78, 0.36);
  border-radius: 12px;
  background: var(--brand);
  color: #111827;
  padding: 0 12px;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
}

.install-app-button:hover {
  background: var(--brand-dark);
}

.nav a:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(229, 170, 78, 0.28);
}

.hero {
  display: grid;
  justify-items: start;
  gap: 22px;
  min-height: 0;
  margin: 34px 0 0;
  padding: clamp(18px, 4vw, 34px) 0 clamp(18px, 4vw, 30px);
}

.hero-copy {
  width: 100%;
  max-width: none;
  justify-self: center;
  text-align: center;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(26px, 3.1vw, 34px);
  line-height: 1.08;
  letter-spacing: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  margin: 0;
  border: 1px solid rgba(229, 170, 78, 0.28);
  border-radius: 999px;
  background: rgba(229, 170, 78, 0.1);
  padding: 8px 12px;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 800;
  text-transform: none;
  font-size: 13px;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 3px rgba(229, 170, 78, 0.18);
}

.lead {
  max-width: 680px;
  margin: 14px auto 0;
  color: rgba(229, 231, 235, 0.92);
  font-size: 18px;
  line-height: 1.5;
}

.lead.compact {
  font-size: 18px;
  margin-top: 10px;
}

.trust-strip {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 0;
}

.trust-strip span {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  padding: 5px 9px;
  color: rgba(229, 231, 235, 0.68);
  font-size: 12px;
  font-weight: 800;
}

.scenario-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  width: 100%;
  margin-top: 0;
}

.scenario-list span {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  min-height: 0;
  color: rgba(229, 231, 235, 0.86);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
}

.scenario-list span::before {
  content: "✓";
  flex: 0 0 auto;
  color: var(--brand);
  font-weight: 900;
}

.check-form,
.progress-panel,
.results-panel,
.score-panel,
.plan-card,
.candidate-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.check-form {
  display: grid;
  gap: 16px;
  padding: 22px;
}

.search-card {
  width: min(620px, 100%);
  margin: 0 auto;
  gap: 16px;
  padding: clamp(18px, 3vw, 24px);
}

.form-heading {
  display: grid;
  gap: 4px;
}

.form-heading span {
  color: var(--brand);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.form-heading h2 {
  margin: 0;
  font-size: 24px;
}

.form-heading p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

label {
  display: grid;
  gap: 7px;
  color: rgba(229, 231, 235, 0.78);
  font-size: 14px;
  font-weight: 700;
}

input {
  width: 100%;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 12px;
  padding: 0 13px;
  color: #f8fafc;
  font: inherit;
  background: rgba(255, 255, 255, 0.06);
}

input:focus {
  outline: 3px solid rgba(229, 170, 78, 0.2);
  border-color: var(--brand);
}

input::placeholder {
  color: rgba(229, 231, 235, 0.44);
}

.company-search {
  position: relative;
  display: grid;
  gap: 10px;
}

.search-type-picker {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
}

.search-type-picker label {
  cursor: pointer;
}

.search-type-picker input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.search-type-picker span {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  padding: 0 12px;
  color: rgba(229, 231, 235, 0.9);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  white-space: nowrap;
}

.search-type-picker input:checked + span {
  border-color: rgba(229, 170, 78, 0.48);
  background: rgba(229, 170, 78, 0.16);
  color: #fff;
}

.company-suggestions {
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  z-index: 20;
  display: grid;
  max-height: 360px;
  overflow: auto;
  margin-top: 4px;
  background: #0f172a;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.company-suggestion {
  display: grid;
  gap: 3px;
  width: 100%;
  min-height: 58px;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 10px 12px;
  background: #0f172a;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.company-suggestion:last-child {
  border-bottom: 0;
}

.company-suggestion:hover,
.company-suggestion:focus,
.company-suggestion.is-active {
  background: rgba(229, 170, 78, 0.12);
  color: #fff;
  outline: 0;
}

.company-suggestion.is-active {
  box-shadow: inset 3px 0 0 var(--brand);
}

.company-suggestion span {
  color: var(--muted);
  font-size: 13px;
}

.site-footer {
  padding: 0;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
}

.site-footer-inner {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  gap: 24px;
  align-items: center;
  width: min(var(--maxw), calc(100% - 48px));
  margin: 0 auto;
  border-top: 1px solid var(--line-strong);
  padding: 22px 0;
}

.site-footer-inner div,
.site-footer-inner nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.site-footer strong {
  color: #fff;
}

.site-footer a {
  color: var(--muted);
}

.site-footer a:hover {
  color: var(--brand-dark);
}

.site-footer p {
  margin: 0;
}

.sources-band {
  display: grid;
  gap: 12px;
  justify-items: center;
  border-top: 1px solid var(--line);
  padding: 24px 0 32px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.plan-picker {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.plan-option {
  cursor: pointer;
}

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

.plan-option span {
  min-height: 68px;
  display: grid;
  gap: 4px;
  align-content: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 10px;
  color: var(--ink);
}

.plan-option input:checked + span {
  border-color: var(--brand);
  background: rgba(229, 170, 78, 0.16);
  color: #fff;
}

.plan-option small {
  color: var(--muted);
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 0;
  border-radius: 7px;
  padding: 0 18px;
  font-weight: 800;
  font: inherit;
  cursor: pointer;
}

.primary-button {
  background: var(--brand);
  color: #111827;
  box-shadow: 0 10px 24px rgba(229, 170, 78, 0.18);
}

.primary-button:hover {
  background: var(--brand-dark);
}

.secondary-button {
  border: 1px solid rgba(229, 170, 78, 0.32);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.92);
  margin-top: 18px;
}

.error {
  border: 1px solid rgba(255, 122, 104, 0.28);
  background: rgba(255, 122, 104, 0.12);
  color: var(--danger);
  padding: 12px;
  border-radius: 7px;
}

.band,
.plans,
.results-shell,
.simple-page,
.selection-shell,
.checkout-shell {
  padding: clamp(28px, 5vw, 64px) clamp(18px, 5vw, 72px);
}

.band,
.plans {
  color: var(--ink);
}

.hero + .band {
  padding-right: 0;
  padding-left: 0;
}

.steps,
.plans,
.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.steps h2,
.plan-card h2,
.results-panel h2,
.score-panel h2 {
  margin: 0 0 8px;
  font-size: 20px;
}

.steps p,
.plan-card li,
.result-item p,
.muted {
  color: var(--muted);
  line-height: 1.5;
}

.step-no {
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  background: rgba(229, 170, 78, 0.16);
  color: var(--brand);
  border-radius: 50%;
  font-weight: 800;
  margin-bottom: 12px;
}

.plan-card {
  padding: 20px;
}

.price {
  margin: 0 0 18px;
  font-size: 28px;
  font-weight: 900;
}

.plan-card ul {
  margin: 0;
  padding-left: 18px;
}

.selection-header {
  max-width: 820px;
  margin-bottom: 24px;
}

.selection-header h1 {
  margin: 0;
  font-size: clamp(34px, 6vw, 62px);
  line-height: 1;
}

.candidate-list {
  display: grid;
  gap: 14px;
  max-width: 920px;
}

.candidate-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
}

.candidate-card h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.candidate-card p {
  margin: 4px 0;
  color: var(--muted);
}

.candidate-card.selected {
  align-items: flex-start;
  display: block;
}

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

.checkout-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
}

.checkout-row span {
  color: var(--muted);
}

.payment-choice-panel {
  display: grid;
  gap: 16px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.payment-choice-message {
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.5;
}

.payment-choice-section {
  display: grid;
  gap: 10px;
}

.payment-choice-section h2 {
  margin: 0;
  font-size: 16px;
}

.company-confirm-card {
  display: block;
}

.confirm-section {
  border-top: 1px solid var(--line);
  margin-top: 16px;
  padding-top: 14px;
}

.confirm-section h3 {
  margin: 0 0 8px;
  font-size: 15px;
}

.confirm-section ul {
  margin: 0;
  padding-left: 18px;
}

.confirm-section li {
  margin: 4px 0;
}

.confirm-section li span {
  color: var(--muted);
}

.confirm-page {
  padding: clamp(28px, 5vw, 64px) 0;
}

.confirm-layout {
  display: grid;
  gap: 18px;
  align-items: start;
}

.company-identity-card,
.detail-card,
.confirm-action-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.company-identity-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: clamp(18px, 3vw, 26px);
}

.company-identity-card h2 {
  margin: 0;
  font-size: clamp(24px, 3.1vw, 34px);
  line-height: 1.12;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  border-radius: 999px;
  padding: 0 13px;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.status-badge.success {
  background: rgba(99, 211, 139, 0.14);
  color: var(--ok);
}

.status-badge.warning {
  background: rgba(229, 170, 78, 0.14);
  color: var(--warn);
}

.status-badge.danger {
  background: rgba(255, 122, 104, 0.14);
  color: var(--danger);
}

.status-badge.neutral {
  background: rgba(148, 163, 184, 0.16);
  color: rgba(229, 231, 235, 0.86);
}

.compact-badge {
  min-height: 24px;
  padding: 0 8px;
  font-size: 11px;
}

.confirm-content {
  display: grid;
  gap: 18px;
}

.detail-card,
.confirm-action-card {
  padding: 18px;
}

.detail-card h3,
.confirm-action-card h3 {
  margin: 0 0 14px;
  font-size: 18px;
}

.detail-row {
  display: grid;
  grid-template-columns: minmax(130px, 0.7fr) minmax(0, 1fr);
  gap: 12px;
  border-top: 1px solid var(--line);
  padding: 10px 0;
}

.detail-row:first-of-type {
  border-top: 0;
}

.detail-row span,
.detail-list > span {
  color: var(--muted);
}

.detail-row strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.detail-list {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.detail-card ul {
  margin: 8px 0 0;
  padding-left: 18px;
}

.detail-card li {
  margin: 5px 0;
}

.detail-card li span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.confirm-action-card {
  display: grid;
  gap: 18px;
}

.confirm-action-card p {
  color: var(--muted);
  line-height: 1.5;
}

.confirm-action-card form {
  display: grid;
  gap: 10px;
}

.confirm-actions {
  display: grid;
  gap: 10px;
}

.package-compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.package-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.55);
  padding: 12px;
  cursor: pointer;
  min-height: 100%;
  transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.package-card:hover {
  border-color: rgba(90, 209, 255, 0.5);
  background: rgba(15, 23, 42, 0.72);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.22);
  transform: translateY(-1px);
}

.package-card.basic {
  border-color: rgba(90, 209, 255, 0.42);
}

.package-card h4 {
  margin: 0;
  font-size: 16px;
}

.package-badge {
  justify-self: start;
  border: 1px solid rgba(90, 209, 255, 0.38);
  border-radius: 999px;
  background: rgba(90, 209, 255, 0.12);
  padding: 3px 8px;
  color: rgba(229, 231, 235, 0.92);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.package-card ul {
  display: grid;
  align-content: start;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.package-card li {
  color: rgba(229, 231, 235, 0.9);
  font-size: 13px;
  line-height: 1.35;
}

.package-card li::before {
  display: inline-block;
  width: 18px;
  font-weight: 900;
}

.package-card li.yes::before {
  content: "✓";
  color: var(--ok);
}

.package-card li.no::before {
  content: "×";
  color: var(--danger);
}

.package-select-button,
.package-card button.package-select-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: end;
  width: 100%;
  height: 42px;
  min-height: 42px;
  max-height: 42px;
  margin-top: auto;
  border: 1px solid rgba(229, 170, 78, 0.34);
  border-radius: 8px;
  background: var(--brand);
  color: #111827;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.25;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease;
}

.package-card:hover .package-select-button {
  border-color: rgba(229, 170, 78, 0.58);
  background: var(--brand-dark);
}

.tester-access {
  border: 1px solid rgba(99, 211, 139, 0.25);
  border-radius: 12px;
  background: rgba(99, 211, 139, 0.1);
  color: rgba(229, 231, 235, 0.9);
  padding: 12px;
  line-height: 1.45;
}

.confirm-action-card .secondary-button {
  margin-top: 0;
}

.notice {
  border: 1px solid rgba(229, 170, 78, 0.28);
  border-radius: 12px;
  background: rgba(229, 170, 78, 0.12);
  color: rgba(255, 255, 255, 0.92);
  padding: 12px;
  line-height: 1.45;
}

.internal-check-panel {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 12px;
  padding: 10px;
}

.check-source-details {
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.55);
  overflow: hidden;
}

.check-source-details + .check-source-details {
  margin-top: 6px;
}

.check-source-details summary {
  display: grid;
  grid-template-columns: minmax(95px, 0.35fr) minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 42px;
  padding: 8px 10px;
  cursor: pointer;
  list-style: none;
}

.check-source-details summary::-webkit-details-marker {
  display: none;
}

.check-source-details summary::after {
  content: "+";
  justify-self: end;
  color: var(--brand);
  font-weight: 900;
}

.check-source-details[open] summary::after {
  content: "-";
}

.check-source-details summary span {
  color: rgba(229, 231, 235, 0.74);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.check-source-details summary strong {
  min-width: 0;
  padding-right: 22px;
  color: rgba(255, 255, 255, 0.94);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.check-source-details.danger {
  border-color: rgba(255, 122, 104, 0.34);
}

.check-source-details.warning {
  border-color: rgba(229, 170, 78, 0.34);
}

.check-source-details.success {
  border-color: rgba(99, 211, 139, 0.32);
}

.check-source-details.loading {
  border-color: rgba(90, 209, 255, 0.28);
}

.check-source-body {
  display: grid;
  gap: 6px;
  border-top: 1px solid var(--line);
  padding: 8px 10px 10px;
}

.check-source-body .detail-row {
  padding: 7px 0;
}

.internal-check-section {
  display: grid;
  gap: 4px;
  border-top: 1px solid var(--line);
  padding-top: 9px;
}

.internal-check-section h4 {
  margin: 0;
  font-size: 14px;
}

.internal-check-section ul {
  margin: 0;
  padding-left: 18px;
}

.internal-check-alert {
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 10px;
  padding: 8px 10px;
  font-weight: 850;
  line-height: 1.45;
}

.internal-check-alert.danger {
  border-color: rgba(255, 122, 104, 0.36);
  background: rgba(255, 122, 104, 0.12);
  color: rgba(255, 226, 222, 0.98);
}

.internal-check-alert.neutral {
  background: rgba(148, 163, 184, 0.1);
  color: rgba(229, 231, 235, 0.9);
}

.internal-check-loading {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  color: rgba(229, 231, 235, 0.86);
  font-size: 13px;
  font-weight: 800;
}

.check-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(90, 209, 255, 0.28);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: check-spin 0.8s linear infinite;
}

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

.checkout-success-minimal {
  display: grid;
  min-height: calc(100vh - 180px);
  place-items: center;
  padding: 48px 0;
}

.checkout-success-loader {
  display: grid;
  justify-items: center;
  gap: 10px;
  max-width: 520px;
  text-align: center;
}

.checkout-success-spinner {
  width: 42px;
  height: 42px;
  margin-bottom: 10px;
  border: 3px solid rgba(229, 170, 78, 0.24);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: check-spin 0.8s linear infinite;
}

.checkout-success-loader h1 {
  margin: 0;
  color: #fff;
  font-size: 28px;
  line-height: 1.15;
}

.checkout-success-loader p {
  margin: 0;
  color: rgba(229, 231, 235, 0.92);
  font-size: 17px;
  font-weight: 800;
}

.checkout-success-link {
  margin-top: 10px;
  color: var(--brand);
  font-size: 14px;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.internal-check-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.internal-check-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border: 1px solid rgba(229, 170, 78, 0.24);
  border-radius: 999px;
  background: rgba(229, 170, 78, 0.1);
  padding: 0 10px;
  font-size: 12px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.9);
}

.internal-check-table-wrap {
  overflow-x: auto;
}

.dashboard-table-scroll {
  max-height: 238px;
  overflow: auto;
}

.dashboard-table-scroll .internal-check-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--panel-solid);
}

.internal-check-nested {
  border-top: 1px solid var(--line);
  padding-top: 8px;
}

.internal-check-nested summary {
  cursor: pointer;
  color: var(--brand);
  font-size: 13px;
  font-weight: 850;
}

.internal-check-scroll {
  max-height: 320px;
  margin-top: 8px;
  overflow-x: hidden;
  overflow-y: auto;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 10px;
}

.internal-check-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
  font-size: 12px;
}

.internal-check-table th,
.internal-check-table td {
  border-bottom: 1px solid var(--line);
  padding: 7px 9px;
  text-align: left;
  vertical-align: top;
  white-space: nowrap;
}

.internal-check-table.compact-table {
  min-width: 0;
}

.internal-check-table th {
  color: rgba(229, 231, 235, 0.72);
  font-weight: 800;
}

.justro-table {
  min-width: 0;
  table-layout: fixed;
}

.justro-table th:nth-child(1),
.justro-table td:nth-child(1) {
  width: 15%;
}

.justro-table th:nth-child(2),
.justro-table td:nth-child(2) {
  width: 16%;
}

.justro-table th:nth-child(3),
.justro-table td:nth-child(3) {
  width: 28%;
}

.justro-table th:nth-child(4),
.justro-table td:nth-child(4) {
  width: 12%;
}

.justro-table th:nth-child(5),
.justro-table td:nth-child(5) {
  width: 10%;
}

.justro-table th:nth-child(6),
.justro-table td:nth-child(6) {
  width: 9%;
}

.justro-table th:nth-child(7),
.justro-table td:nth-child(7) {
  width: 10%;
}

.justro-table th,
.justro-table td {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.justro-object-cell span {
  display: -webkit-box;
  max-width: 100%;
  overflow: hidden;
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-height: 1.35;
}

.justro-table .compact-badge {
  width: 100%;
  max-width: 118px;
  justify-content: center;
  white-space: normal;
  text-align: center;
  line-height: 1.15;
}

.text-link {
  color: var(--brand);
  font-weight: 800;
  text-align: center;
}

.auth-page {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 170px);
  padding: clamp(30px, 6vw, 70px) 0;
}

.auth-shell {
  width: min(560px, 100%);
  display: grid;
  gap: 18px;
}

.auth-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: clamp(20px, 4vw, 30px);
  backdrop-filter: blur(10px);
}

.auth-card h1,
.auth-card h2 {
  margin: 0;
}

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

.auth-switch {
  color: var(--muted);
  text-align: center;
}

.results-shell {
  display: grid;
  gap: 20px;
}

.results-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.results-header h1 {
  margin: 0;
  font-size: clamp(34px, 6vw, 62px);
}

.status-pill {
  margin: 0;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  padding: 8px 13px;
  color: var(--muted);
  font-weight: 800;
}

.progress-panel,
.results-panel,
.score-panel {
  padding: 20px;
}

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

.task-item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 12px;
}

.task-item small {
  display: block;
  color: var(--muted);
  margin-top: 2px;
}

.task-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #c5ced1;
}

.task-item.running .task-dot {
  background: var(--warn);
}

.task-item.success .task-dot {
  background: var(--ok);
}

.task-item.warning .task-dot {
  background: var(--warn);
}

.task-item.failed .task-dot {
  background: var(--danger);
}

.summary-grid {
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.7fr);
}

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

.result-item {
  border: 1px solid var(--line);
  border-left-width: 5px;
  border-radius: 7px;
  padding: 14px;
}

.result-item.success {
  border-left-color: var(--ok);
}

.result-item.warning {
  border-left-color: var(--warn);
}

.result-item.failed {
  border-left-color: var(--danger);
}

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

.score-ready {
  display: grid;
  gap: 4px;
}

.score-ready strong {
  font-size: 54px;
  line-height: 1;
}

.score-ready span {
  color: var(--muted);
  font-weight: 800;
}

.legacy-results {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: clamp(20px, 4vw, 44px) 0;
}

.results-header.legacy {
  align-items: start;
  width: 100%;
}

.results-header.legacy h1 {
  font-size: clamp(30px, 4.5vw, 52px);
}

.legacy-results-card {
  display: grid;
  gap: 8px;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.legacy-source-list {
  display: grid;
  gap: 8px;
}

.results-header-actions {
  display: grid;
  gap: 10px;
  width: min(100%, 230px);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
  padding: 10px;
}

.results-header-actions .secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 42px;
  margin-top: 0;
}

.results-action-list {
  display: grid;
  gap: 8px;
}

.risk-card {
  display: grid;
  gap: 2px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  padding: 10px 12px;
  text-align: left;
}

.risk-card span,
.risk-card small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.risk-card strong {
  font-size: 34px;
  line-height: 1;
}

.risk-card.danger {
  border-color: rgba(255, 122, 104, 0.42);
  background: rgba(255, 122, 104, 0.12);
}

.risk-card.warning {
  border-color: rgba(229, 170, 78, 0.42);
  background: rgba(229, 170, 78, 0.12);
}

.risk-card.success {
  border-color: rgba(99, 211, 139, 0.36);
  background: rgba(99, 211, 139, 0.1);
}

.result-static-summary {
  display: grid;
  grid-template-columns: minmax(95px, 0.35fr) minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 42px;
  padding: 8px 10px;
}

.result-static-summary span {
  color: rgba(229, 231, 235, 0.74);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.result-static-summary strong {
  min-width: 0;
  color: rgba(255, 255, 255, 0.94);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.result-detail-rows {
  display: grid;
  gap: 0;
}

.hidden {
  display: none;
}

.simple-page {
  max-width: 720px;
}

@media (max-width: 820px) {
  .steps,
  .plans,
  .package-compare,
  .summary-grid,
  .checkout-grid,
  .confirm-layout,
  .confirm-content,
  .site-footer-inner {
    grid-template-columns: 1fr;
  }

  .site-header-inner {
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px 0;
  }

  .nav {
    flex: 1 0 100%;
    flex-wrap: wrap;
    margin-left: 0;
  }

  .header-account {
    flex: 1 1 180px;
    max-width: min(100%, 320px);
  }

  .plan-picker {
    grid-template-columns: 1fr;
  }

  .form-grid,
  .search-type-picker,
  .scenario-list {
    grid-template-columns: 1fr;
  }

  .results-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .results-header-actions {
    width: 100%;
  }

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

  .company-identity-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .confirm-action-card {
    position: static;
  }

  .detail-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

@media (max-width: 560px) {
  main,
  .site-header-inner,
  .site-footer-inner {
    width: min(100% - 20px, var(--maxw));
  }

  .hero {
    gap: 18px;
    margin-top: 18px;
    padding: 18px 0 24px;
  }

  .install-app-button {
    margin-left: auto;
    min-height: 36px;
    padding: 0 10px;
    font-size: 13px;
  }

  .install-app-button.is-compact {
    max-width: 96px;
  }

  .hero-copy h1 {
    font-size: 28px;
  }

  .lead {
    font-size: 16px;
  }

  .search-card {
    padding: 16px;
  }

}
