:root {
  --blue: #267fb4;
  --blue-dark: #12344f;
  --blue-light: #e9f4fb;
  --gold: #c7a047;
  --ink: #f6f7f8;
  --muted: #bcc6cf;
  --page: #111315;
  --panel: #181b1e;
  --panel-soft: #20252a;
  --danger: #d46a62;
  --success: #64a879;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--page);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  margin: 0;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  background: rgba(17, 19, 21, 0.96);
  border-bottom: 1px solid #2a2f34;
  position: sticky;
  top: 0;
  z-index: 20;
}

.shell {
  margin: 0 auto;
  max-width: 1160px;
  padding-left: 24px;
  padding-right: 24px;
  width: 100%;
}

.narrow-shell {
  max-width: 760px;
}

.header-inner {
  align-items: center;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  line-height: 1;
  text-decoration: none;
}

.brand-main {
  color: var(--white);
  font-size: 1.3rem;
  font-style: italic;
  font-weight: 700;
}

.brand-sub {
  color: var(--blue);
  font-size: .78rem;
  margin-left: 54px;
}

.back-link,
.text-link {
  color: #81bee2;
  font-weight: 700;
  text-decoration: none;
}

.back-link:hover,
.text-link:hover {
  text-decoration: underline;
}

.hero {
  background:
    radial-gradient(circle at 50% 10%, rgba(38, 127, 180, .22), transparent 34%),
    linear-gradient(180deg, #15191d 0%, #111315 100%);
  border-bottom: 1px solid #242a2f;
}

.hero-inner {
  max-width: 900px;
  padding-bottom: 90px;
  padding-top: 100px;
  text-align: center;
}

.eyebrow {
  color: var(--gold);
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .12em;
  margin: 0 0 12px;
  text-transform: uppercase;
}

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

h1 {
  font-size: clamp(2.4rem, 6vw, 4.7rem);
  letter-spacing: -.04em;
  line-height: 1.02;
  margin-bottom: 24px;
}

h2 {
  font-size: clamp(1.65rem, 3vw, 2.5rem);
  line-height: 1.15;
}

.hero-copy {
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  margin: 0 auto 34px;
  max-width: 760px;
}

.hero-actions {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.button {
  border: 0;
  border-radius: 6px;
  display: inline-block;
  font-weight: 800;
  padding: 14px 22px;
  text-decoration: none;
  transition: transform .15s ease, background .15s ease;
}

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

.button-primary {
  background: var(--blue);
  color: var(--white);
}

.button-primary:hover {
  background: #3092c9;
}

.button-secondary {
  background: #2b3035;
  color: var(--white);
}

.button-gold {
  background: var(--gold);
  color: #111315;
  text-align: center;
}

.assessment-section,
.lead-section,
.results-section {
  padding-bottom: 88px;
  padding-top: 72px;
}

.assessment-shell {
  max-width: 860px;
}

.progress-wrap {
  margin-bottom: 22px;
}

.progress-meta {
  color: var(--muted);
  display: flex;
  font-size: .9rem;
  justify-content: space-between;
  margin-bottom: 8px;
}

.progress-track {
  background: #2a3035;
  border-radius: 999px;
  height: 8px;
  overflow: hidden;
}

.progress-bar {
  background: linear-gradient(90deg, var(--blue), #5bb9eb);
  height: 100%;
  transition: width .25s ease;
  width: 6.25%;
}

.question-card,
.lead-card,
.result-card,
.calendar-card {
  background: var(--panel);
  border: 1px solid #2b3238;
  border-radius: 14px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .2);
}

.question-card {
  padding: clamp(26px, 5vw, 56px);
}

.question-number {
  color: var(--blue);
  font-weight: 800;
  margin-bottom: 8px;
}

.question-card h2 {
  margin-bottom: 34px;
}

.answer-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, 1fr);
}

.answer-button {
  background: var(--panel-soft);
  border: 2px solid #394148;
  border-radius: 10px;
  color: var(--white);
  font-weight: 800;
  min-height: 64px;
  padding: 12px;
}

.answer-button:hover,
.answer-button.selected {
  background: rgba(38, 127, 180, .18);
  border-color: var(--blue);
}

.question-nav {
  margin-top: 30px;
}

.lead-card {
  padding: clamp(28px, 5vw, 52px);
}

.lead-card > p:not(.eyebrow) {
  color: var(--muted);
}

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

.form-grid label {
  display: grid;
  gap: 7px;
}

.form-grid span {
  font-size: .92rem;
  font-weight: 700;
}

.full-width {
  grid-column: 1 / -1;
}

input {
  background: #101214;
  border: 1px solid #3a434b;
  border-radius: 7px;
  color: var(--white);
  min-height: 48px;
  padding: 10px 12px;
}

input:focus {
  border-color: var(--blue);
  outline: 2px solid rgba(38, 127, 180, .22);
}

.form-error {
  color: #ffaaa3;
  min-height: 24px;
}

.results-shell {
  max-width: 900px;
}

.result-card,
.calendar-card {
  margin-bottom: 24px;
  padding: clamp(26px, 5vw, 48px);
}

.result-summary {
  border-top: 5px solid var(--blue);
}

.result-score {
  color: #9fd5f1;
  font-size: 1.2rem;
  font-weight: 800;
}

.category-results {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, 1fr);
  margin-bottom: 24px;
}

.category-card {
  background: var(--panel);
  border: 1px solid #2b3238;
  border-radius: 12px;
  padding: 22px;
}

.category-card h3 {
  margin: 0 0 6px;
}

.category-card p {
  color: var(--muted);
  margin-bottom: 0;
}

.status-strong {
  border-left: 5px solid var(--success);
}

.status-attention {
  border-left: 5px solid var(--gold);
}

.status-vulnerable {
  border-left: 5px solid var(--danger);
}

.next-step-card {
  align-items: center;
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr auto;
}

.calendar-card {
  overflow: hidden;
}

.calendar-card h2,
.calendar-card > p {
  text-align: center;
}

.calendar-card > p {
  color: var(--muted);
}

.calendly-inline-widget {
  background: var(--white);
  border-radius: 10px;
  margin-top: 22px;
  overflow: hidden;
}

.result-actions {
  align-items: center;
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 28px;
}

.site-footer {
  border-top: 1px solid #282e33;
  color: #8f9aa3;
  font-size: .9rem;
  padding: 34px 0;
}

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

.footer-inner p {
  margin-bottom: 0;
}

.footer-inner a {
  color: #9fd5f1;
}

@media (max-width: 720px) {
  .header-inner,
  .footer-inner,
  .result-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-inner {
    padding-bottom: 68px;
    padding-top: 72px;
  }

  .answer-grid,
  .category-results,
  .form-grid,
  .next-step-card {
    grid-template-columns: 1fr;
  }

  .full-width {
    grid-column: auto;
  }

  .back-link {
    font-size: .78rem;
    text-align: right;
  }

  .next-step-card .button {
    width: 100%;
  }
}

/* Consent uses the existing palette and does not change the assessment layout. */
.consent-option { display: flex; align-items: flex-start; gap: 12px; margin: 20px 0; }
.consent-option input { flex: 0 0 20px; width: 20px; height: 20px; min-height: 20px; margin: 3px 0 0; padding: 0; accent-color: var(--blue); }
button:disabled { cursor: wait; opacity: .7; }

/* Hosting notice: tells visitors this form was built by Structured Web Design for Succession Security. */
.sw-notice { background: var(--blue-dark); border-bottom: 1px solid #1d4a6d; color: var(--ink); font-size: .88rem; }
.sw-notice-inner { padding-top: 9px; padding-bottom: 9px; }
.sw-notice p { margin: 0; text-align: center; line-height: 1.45; }
.sw-notice a { color: #9fd2f0; font-weight: 700; text-decoration: underline; }
.back-link-button { border: 1px solid #81bee2; border-radius: 6px; padding: 8px 14px; white-space: nowrap; }
.back-link-button:hover { background: rgba(129,190,226,.12); text-decoration: none; }
@media (max-width: 560px) { .back-link-button { font-size: .85rem; padding: 7px 10px; } .sw-notice { font-size: .8rem; } }
@media (max-width: 720px) { .site-header .header-inner { flex-direction: row; align-items: center; gap: 12px; min-height: 64px; } }
