/* ============ Aging Solo Readiness Check — calm, warm, grounded ============ */
:root {
  /* Warm sand surfaces, soft sage, deep navy text — calm, not clinical */
  --cream:        #faf6ef;
  --cream-2:      #f5efe4;
  --sand-100:     #efe8d8;
  --sand-200:     #e6dcc7;
  --sand-300:     #d9ccb0;
  --ink:          #1f2a37;      /* deep navy-charcoal */
  --ink-soft:     #475467;
  --muted:        #6b7280;
  --sage-100:     #e7ede5;
  --sage-300:     #b8c7b3;
  --sage-500:     #8aa085;
  --sage-700:     #566b5b;      /* primary accent — calm sage-green */
  --sage-900:     #3d4f43;
  --terracotta:   #c98a6b;      /* warm accent, used sparingly */
  --amber-soft:   #d6a45b;

  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 22px;

  --shadow-soft: 0 1px 2px rgba(31,42,55,.04), 0 8px 24px rgba(31,42,55,.06);
  --shadow-card: 0 1px 2px rgba(31,42,55,.05), 0 18px 40px rgba(31,42,55,.08);

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.55;
  font-size: 17px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--ink); color: var(--cream);
  padding: 8px 14px; border-radius: 6px; z-index: 100;
}
.skip-link:focus { left: 12px; top: 12px; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 680px; margin-left: auto; margin-right: auto; }

/* ---------- Header ---------- */
.site-header {
  border-bottom: 1px solid var(--sand-200);
  background: rgba(250,246,239,.85);
  backdrop-filter: blur(6px);
  position: sticky; top: 0; z-index: 10;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 16px; padding-bottom: 16px;
}
.logo {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--sage-900); font-family: var(--serif); font-weight: 500; font-size: 19px;
  text-decoration: none; letter-spacing: -.01em;
}
.logo svg { color: var(--sage-700); }
.header-link {
  font-size: 14px; color: var(--ink-soft); text-decoration: none;
  border-bottom: 1px solid transparent; padding-bottom: 2px;
}
.header-link:hover { border-bottom-color: var(--sage-500); color: var(--ink); }

/* ---------- Sections ---------- */
.screen { padding: 72px 0 96px; }
@media (max-width: 640px) { .screen { padding: 48px 0 72px; } }

.eyebrow {
  text-transform: uppercase; letter-spacing: .14em; font-size: 12px;
  color: var(--sage-700); font-weight: 600; margin: 0 0 14px;
}

/* ---------- Intro ---------- */
.screen-intro h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(36px, 5.5vw, 56px);
  line-height: 1.08;
  letter-spacing: -.02em;
  margin: 0 0 18px;
  color: var(--ink);
}
.lede {
  font-size: clamp(17px, 2vw, 19px);
  color: var(--ink-soft);
  margin: 0 0 32px;
  max-width: 56ch;
}
.promise-list {
  list-style: none; padding: 0; margin: 0 0 36px;
  color: var(--ink-soft); font-size: 16px;
}
.promise-list li {
  padding: 8px 0; border-bottom: 1px dashed var(--sand-200);
}
.promise-list li:last-child { border-bottom: none; }
.promise-list span { color: var(--sage-500); margin-right: 10px; font-weight: 700; }

.fine-print {
  font-size: 14px; color: var(--muted); margin-top: 18px; max-width: 56ch;
}
.fine-print.center { text-align: center; margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 500;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, background-color .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
  display: inline-flex; align-items: center; justify-content: center;
  text-decoration: none;
}
.btn-primary {
  background: var(--sage-700); color: var(--cream);
  box-shadow: var(--shadow-soft);
}
.btn-primary:hover { background: var(--sage-900); }
.btn-primary:disabled {
  background: var(--sand-300); color: var(--muted); cursor: not-allowed; box-shadow: none;
}
.btn-ghost {
  background: transparent; color: var(--ink-soft); border-color: var(--sand-300);
}
.btn-ghost:hover { background: var(--cream-2); color: var(--ink); border-color: var(--sage-500); }
.btn:focus-visible { outline: 3px solid var(--sage-300); outline-offset: 2px; }

/* ---------- Quiz ---------- */
.quiz-top {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 10px;
}
.section-label {
  text-transform: uppercase; letter-spacing: .12em; font-size: 12px;
  font-weight: 600; color: var(--sage-700); margin: 0;
}
.progress-text { margin: 0; font-size: 13px; color: var(--muted); }

.progress-bar {
  height: 6px; background: var(--sand-200); border-radius: 999px;
  overflow: hidden; margin-bottom: 36px;
}
.progress-fill {
  height: 100%; background: var(--sage-700); width: 0;
  transition: width .35s ease;
  border-radius: 999px;
}

.question-text {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(24px, 3.2vw, 32px);
  line-height: 1.22;
  letter-spacing: -.01em;
  margin: 0 0 28px;
  color: var(--ink);
}

.options {
  border: 0; padding: 0; margin: 0 0 36px;
  display: grid; gap: 12px;
}
.option {
  display: block;
  background: #fff;
  border: 1px solid var(--sand-200);
  border-radius: var(--radius);
  padding: 16px 20px;
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease, transform .08s ease;
  position: relative;
  font-size: 16px;
  color: var(--ink);
}
.option:hover { border-color: var(--sage-500); background: var(--cream-2); }
.option input { position: absolute; opacity: 0; pointer-events: none; }
.option .opt-label { display: block; }
.option.is-selected {
  border-color: var(--sage-700);
  background: var(--sage-100);
  box-shadow: 0 0 0 2px var(--sage-700) inset;
}
.option:focus-within { outline: 3px solid var(--sage-300); outline-offset: 2px; }

.quiz-nav {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.quiz-nav .btn-ghost { visibility: visible; }
.quiz-nav.first .btn-ghost { visibility: hidden; }

/* ---------- Results ---------- */
.results-header { text-align: center; margin-bottom: 48px; }
.results-headline {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(32px, 4.5vw, 44px);
  letter-spacing: -.02em; margin: 0 0 12px; line-height: 1.1;
}
.results-sub { color: var(--ink-soft); font-size: 17px; margin: 0; }

.score-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 16px;
  margin-bottom: 56px;
}
@media (max-width: 860px) {
  .score-grid { grid-template-columns: 1fr 1fr; }
  .score-card-overall { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .score-grid { grid-template-columns: 1fr; }
}

.score-card {
  background: #fff;
  border: 1px solid var(--sand-200);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-soft);
}
.score-card-overall {
  background: linear-gradient(180deg, #fff 0%, var(--cream-2) 100%);
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 28px 22px;
}
.score-card-label {
  font-size: 13px; text-transform: uppercase; letter-spacing: .1em;
  color: var(--ink-soft); margin: 0 0 14px; font-weight: 600;
}
.score-ring { position: relative; margin-bottom: 10px; }
.score-ring-text {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  flex-direction: column; font-family: var(--serif); font-weight: 500;
}
.score-ring-text span { font-size: 36px; line-height: 1; }
.score-ring-text small { font-size: 13px; color: var(--muted); margin-top: 4px; }
.score-tier {
  font-family: var(--serif); font-size: 18px; margin: 8px 0 0; color: var(--sage-900); font-weight: 500;
}
.bar-track {
  background: var(--sand-200); height: 8px; border-radius: 999px;
  overflow: hidden; margin-bottom: 14px;
}
.bar-fill {
  height: 100%; width: 0; background: var(--sage-700); border-radius: 999px;
  transition: width .8s cubic-bezier(.16,1,.3,1);
}
.score-row { display: flex; justify-content: space-between; align-items: baseline; }
.score-num { font-family: var(--serif); font-size: 26px; font-weight: 500; }
.score-tier-small { font-size: 13px; color: var(--ink-soft); }

.next-steps { display: grid; gap: 36px; }
.ns-block h3 {
  font-family: var(--serif); font-weight: 500; font-size: 22px;
  margin: 0 0 12px; letter-spacing: -.01em;
}
.ns-intro { color: var(--ink-soft); margin: 0 0 18px; }

.check-list, .action-list, .resource-list {
  margin: 0; padding: 0; list-style: none;
}
.check-list li {
  padding: 10px 0 10px 28px; position: relative;
  border-bottom: 1px solid var(--sand-200); font-size: 16px; color: var(--ink);
}
.check-list li:last-child { border-bottom: none; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 14px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--sage-100);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.5 l2.5 2.5 l5.5-6' stroke='%23566b5b' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center;
}
.action-list { counter-reset: step; }
.action-list li {
  padding: 16px 0 16px 44px; position: relative;
  border-bottom: 1px solid var(--sand-200); color: var(--ink);
}
.action-list li:last-child { border-bottom: none; }
.action-list li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute; left: 0; top: 14px;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--sage-700); color: var(--cream);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 14px; font-weight: 600;
}
.action-list li strong {
  display: block; font-weight: 600; margin-bottom: 4px; color: var(--ink);
}
.action-list li span.action-body { color: var(--ink-soft); font-size: 15px; }

.resource-block { background: var(--cream-2); border-radius: var(--radius-lg); padding: 28px; border: 1px solid var(--sand-200); }
.resource-list li { padding: 10px 0; border-bottom: 1px dashed var(--sand-300); font-size: 15px; }
.resource-list li:last-child { border-bottom: none; }
.resource-list a { color: var(--sage-900); font-weight: 500; }

.actions-row {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: center;
  margin-top: 12px;
}

a { color: var(--sage-900); text-decoration: underline; text-decoration-color: var(--sand-300); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--sage-700); }

.site-footer {
  border-top: 1px solid var(--sand-200);
  padding: 28px 0; margin-top: 32px;
  color: var(--muted); font-size: 14px; text-align: center;
}
.site-footer a { color: var(--ink-soft); }

/* Print */
@media print {
  .site-header, .site-footer, .actions-row, #intro, #quiz { display: none !important; }
  body { background: #fff; }
  .screen { padding: 0; }
  .score-card { box-shadow: none; }
}
