/* BC Estate Exposure Profile — design tokens inspired by Parr Business Law:
   navy + white, modern professional, warm. */

:root {
  --color-navy:        #2c3877;
  --color-navy-deep:   #1e2655;
  --color-navy-soft:   #3a4685;
  --color-bg:          #ffffff;
  --color-bg-tint:     #f7f9fc;
  --color-ink:         #2c3877;
  --color-ink-muted:   #4a5e7a;
  --color-line:        #dde4ee;
  --color-accent:      #b78a4d;   /* warm gold for emphasis */
  --color-warn:        #b34a2b;   /* exposure red-orange */
  --color-warn-soft:   #fbeee8;
  --color-success:     #2c7a4a;
  --color-success-soft:#e9f3ee;

  --radius:            14px;
  --radius-sm:         8px;
  --shadow-sm:         0 1px 2px rgba(44, 56, 119, 0.04);
  --shadow:            0 4px 18px rgba(44, 56, 119, 0.06);
  --shadow-lg:         0 12px 40px rgba(44, 56, 119, 0.10);

  --font-sans:         "Inter", "Helvetica Neue", Helvetica, Arial, system-ui, -apple-system, sans-serif;
  --font-serif:        "Source Serif 4", Georgia, serif;

  --content-max:       960px;
  --content-narrow:    640px;
}

*, *::before, *::after { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font-sans);
  color: var(--color-ink);
  background: var(--color-bg);
  line-height: 1.55;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--color-navy); text-underline-offset: 3px; }
a:hover { color: var(--color-navy-deep); }

h1, h2, h3 {
  font-family: var(--font-serif);
  color: var(--color-navy);
  letter-spacing: -0.01em;
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2rem, 4.5vw, 2.85rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.15rem); }
h3 { font-size: 1.2rem; font-family: var(--font-sans); font-weight: 600; }

p { margin: 0 0 1rem; }

.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--color-ink-muted);
  margin: 0 0 0.75rem;
}

.lede {
  font-size: 1.15rem;
  color: var(--color-ink-muted);
  max-width: 58ch;
  margin-bottom: 1.5rem;
}

.micro {
  font-size: 0.85rem;
  color: var(--color-ink-muted);
  margin-top: 1rem;
}

/* Header / footer */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.75rem;
  background: var(--color-navy);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand-logo {
  display: block;
  height: 36px;
  width: auto;
  /* The public Parr horizontal logo is white-on-transparent; pairs with
     the navy header band. Drop a dark variant into assets/parr-logo.png
     to use on a light header instead. */
}

.site-nav a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.site-nav a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }

.site-footer {
  border-top: 1px solid var(--color-line);
  padding: 2rem 1.75rem;
  color: var(--color-ink-muted);
  font-size: 0.85rem;
  text-align: center;
}
.site-footer .disclaimer {
  font-size: 0.75rem;
  max-width: 60ch;
  margin: 0.5rem auto 0;
  opacity: 0.85;
}

/* Layout containers */
.container {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 4rem 1.75rem;
}
.container.narrow { max-width: var(--content-narrow); }

/* Screen swapping */
.screen { display: none; }
.screen.active { display: block; }

/* Intro */
#intro .proof {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 2.25rem;
  display: grid;
  gap: 0.65rem;
}
#intro .proof li {
  padding-left: 1.5rem;
  position: relative;
  color: var(--color-ink-muted);
  font-size: 0.95rem;
}
#intro .proof li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-success);
  font-weight: 700;
}

/* Buttons */
.cta {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 80ms ease, background 120ms ease, color 120ms ease, border-color 120ms ease;
  letter-spacing: 0.01em;
}
.cta.primary {
  background: var(--color-navy);
  color: #fff;
}
.cta.primary:hover { background: var(--color-navy-deep); transform: translateY(-1px); }
.cta.primary:disabled {
  background: var(--color-line);
  color: var(--color-ink-muted);
  cursor: not-allowed;
  transform: none;
}
.cta.ghost {
  background: transparent;
  color: var(--color-ink-muted);
  border-color: var(--color-line);
}
.cta.ghost:hover { color: var(--color-navy); border-color: var(--color-navy); }

.cta.restart {
  display: block;
  margin: 3rem auto 0;
  font-size: 0.85rem;
}

/* Quiz */
.progress { margin-bottom: 2.5rem; }
.progress-track {
  height: 4px;
  background: var(--color-line);
  border-radius: 4px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  width: 0;
  background: var(--color-navy);
  transition: width 220ms ease;
}
.progress-label {
  font-size: 0.8rem;
  color: var(--color-ink-muted);
  margin-top: 0.5rem;
  letter-spacing: 0.05em;
}

.question-prompt {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-navy);
  line-height: 1.3;
  margin: 0 0 1.75rem;
}

.options { display: grid; gap: 0.75rem; }
.option {
  display: block;
  padding: 1.05rem 1.15rem;
  border: 1.5px solid var(--color-line);
  border-radius: var(--radius);
  background: #fff;
  cursor: pointer;
  transition: border-color 120ms ease, background 120ms ease, transform 80ms ease;
  font-size: 0.98rem;
  line-height: 1.45;
  color: var(--color-ink);
}
.option:hover { border-color: var(--color-navy-soft); background: var(--color-bg-tint); }
.option.selected {
  border-color: var(--color-navy);
  background: var(--color-bg-tint);
  box-shadow: var(--shadow-sm);
}
.option input { position: absolute; opacity: 0; pointer-events: none; }

.quiz-controls {
  display: flex;
  justify-content: space-between;
  margin-top: 2.5rem;
  gap: 1rem;
}

/* Result */
.result-header {
  text-align: center;
  margin-bottom: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--color-line);
}
.result-header h2 {
  font-size: clamp(2rem, 5vw, 2.75rem);
  margin-bottom: 0.5rem;
}
.grade-line {
  font-size: 1.1rem;
  color: var(--color-ink-muted);
  margin-bottom: 1.5rem;
}
.grade {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.4rem;
  height: 2.4rem;
  padding: 0 0.4rem;
  background: var(--color-navy);
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 1.25rem;
  margin-left: 0.5rem;
  vertical-align: middle;
}
.grade[data-band="F"], .grade[data-band="D"] { background: var(--color-warn); }
.grade[data-band="C"]                       { background: var(--color-accent); }
.grade[data-band="B"], .grade[data-band="A"]{ background: var(--color-success); }

.archetype-blurb {
  font-size: 1.05rem;
  color: var(--color-ink-muted);
  max-width: 56ch;
  margin: 0 auto;
}

.cap-note {
  margin-top: 1.25rem;
  padding: 0.85rem 1rem;
  background: var(--color-warn-soft);
  border-left: 3px solid var(--color-warn);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--color-navy-deep);
  max-width: 60ch;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.result-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.card {
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}

.probate-card { background: var(--color-warn-soft); border-color: rgba(179, 74, 43, 0.25); }
.probate-figure {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 600;
  color: var(--color-warn);
  margin: 0.5rem 0 0.75rem;
  letter-spacing: -0.01em;
}
.probate-sep { padding: 0 0.35rem; color: var(--color-ink-muted); }
.probate-note { color: var(--color-navy-deep); font-size: 0.9rem; margin: 0; }

.gaps-card { /* full-row in stacked layout */ }
.gap-list {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: gap;
  display: grid;
  gap: 0.85rem;
}
.gap-list li {
  counter-increment: gap;
  padding: 1rem 1rem 1rem 3.25rem;
  position: relative;
  background: var(--color-bg-tint);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--color-accent);
  font-size: 0.95rem;
}
.gap-list li::before {
  content: counter(gap);
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.75rem;
  height: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-navy);
  color: #fff;
  border-radius: 50%;
  font-weight: 600;
  font-size: 0.85rem;
}
.gap-list li.high { border-left-color: var(--color-warn); }
.gap-label { font-weight: 600; color: var(--color-navy); display: block; margin-bottom: 0.2rem; }
.gap-note { color: var(--color-ink-muted); font-size: 0.88rem; }

.cta-card { background: var(--color-navy); color: #fff; border: none; padding: 2.25rem; }
.cta-card .eyebrow { color: rgba(255, 255, 255, 0.7); }
.cta-card h3 { color: #fff; font-family: var(--font-serif); font-size: 1.5rem; font-weight: 600; }
.cta-card p { color: rgba(255, 255, 255, 0.85); }
.cta-card .cta.primary {
  background: #fff;
  color: var(--color-navy);
  margin-top: 0.75rem;
}
.cta-card .cta.primary:hover { background: var(--color-bg-tint); }

.cta-card form .form-row { display: flex; gap: 0.85rem; flex-wrap: wrap; margin: 0.5rem 0; }
.cta-card .field { display: block; flex: 1 1 200px; margin: 0.65rem 0; }
.cta-card .field-label {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.4rem;
  font-weight: 600;
}
.cta-card input[type="email"],
.cta-card input[type="text"],
.cta-card input[type="tel"],
.cta-card textarea,
.cta-card select {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  box-sizing: border-box;
}
.cta-card textarea { resize: vertical; min-height: 96px; line-height: 1.5; }
.cta-card select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}
.cta-card select option { background: var(--color-navy-deep); color: #fff; }
.cta-card input::placeholder,
.cta-card textarea::placeholder { color: rgba(255, 255, 255, 0.55); }
.cta-card input:focus,
.cta-card textarea:focus,
.cta-card select:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.12);
}

.cta-card .sms-disclosure {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.72rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.005em;
}
.cta-card label.consent {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin: 0.75rem 0 1rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.4;
}
.cta-card label.consent input { margin-top: 3px; }

.cta-thanks { color: #fff; font-weight: 500; }
