/* ============================================
   Treasure Map — Design System
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Crimson+Pro:ital,wght@0,300;0,400;0,600;1,300;1,400&family=Inter:wght@300;400;500;600&display=swap');

:root {
  /* Colors — warm, trustworthy, slightly aged-paper feel */
  --parchment: #faf5ed;
  --parchment-dark: #f0e8d8;
  --ink: #2c2420;
  --ink-light: #5a4e44;
  --accent: #8b6f4e;
  --accent-warm: #c49a6c;
  --accent-deep: #6b4e30;
  --teal: #3a7d7b;
  --teal-light: #5ba8a6;
  --teal-muted: #e8f4f3;
  --rust: #b5714a;
  --slate: #6b7280;
  --border: #e2d9cc;
  --check-green: #4a8c5c;
  --shadow: rgba(44, 36, 32, 0.08);
  --shadow-md: rgba(44, 36, 32, 0.12);

  /* Type */
  --font-display: 'Crimson Pro', Georgia, serif;
  --font-body: 'Inter', -apple-system, sans-serif;

  /* Layout */
  --max-width: 820px;
  --gutter: 2rem;
  --radius: 8px;
  --radius-lg: 12px;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--parchment);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ============================================
   Navigation
   ============================================ */

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(250, 245, 237, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}

.site-nav.scrolled {
  box-shadow: 0 2px 20px var(--shadow);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.75rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--accent-deep);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.nav-logo span {
  color: var(--teal);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 0.25rem;
}

.nav-links a {
  display: block;
  padding: 0.5rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink-light);
  text-decoration: none;
  border-radius: var(--radius);
  transition: all 0.2s;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--teal);
  background: var(--teal-muted);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--ink);
}

.nav-toggle svg {
  width: 24px;
  height: 24px;
}

/* ============================================
   Main Content
   ============================================ */

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 6rem var(--gutter) 4rem;
}

/* Sections */
.content-section {
  display: none;
  animation: fadeIn 0.4s ease;
}

.content-section.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   Typography
   ============================================ */

h1 {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 300;
  color: var(--accent-deep);
  line-height: 1.15;
  margin-bottom: 0.5rem;
}

h1 em {
  font-style: italic;
  color: var(--teal);
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--ink-light);
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--ink);
  margin-top: 3rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--accent-deep);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-family: var(--font-body);
}

p {
  margin-bottom: 1rem;
  color: var(--ink);
}

strong { font-weight: 600; color: var(--ink); }

em { font-style: italic; }

blockquote {
  border-left: 3px solid var(--accent-warm);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: var(--parchment-dark);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--ink-light);
}

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.5rem 0;
}

ul, ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

li {
  margin-bottom: 0.4rem;
  line-height: 1.6;
}

/* ============================================
   Printable Worksheet Styles
   ============================================ */

/* Print header with print button */
.print-header {
  margin-bottom: 2rem;
  position: relative;
}

.btn-print {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.6rem 1.25rem;
  background: var(--teal);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-body);
  transition: background 0.2s;
}

.btn-print:hover {
  background: var(--teal-light);
}

/* Dotted line for short answers (inline) */
.ws-line {
  border-bottom: 2px dotted #bbb;
  min-height: 1.5rem;
  display: block;
}

/* Dotted line block (full width, standalone) */
.ws-line-block {
  border-bottom: 2px dotted #bbb;
  min-height: 2rem;
  margin-bottom: 1.25rem;
}

/* Answer area for longer responses */
.ws-answer-area {
  border: 1.5px solid #ccc;
  border-radius: var(--radius);
  min-height: 90px;
  margin-bottom: 1.25rem;
  background: #fff;
}

.ws-answer-area.ws-small {
  min-height: 50px;
}

/* Hint text */
.ws-hint {
  font-size: 0.88rem;
  color: var(--slate);
  font-style: italic;
  margin-bottom: 0.5rem;
}

/* Printable check list (☐ items) */
.ws-check-list {
  margin: 0.75rem 0 1.25rem;
}

.ws-check-item {
  padding: 0.5rem 0.75rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--ink);
  border-bottom: 1px solid #f0ebe3;
}

.ws-check-item:last-child {
  border-bottom: none;
}

/* Worksheet tables */
.ws-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 1rem 0 1.5rem;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.ws-table th {
  background: var(--parchment-dark);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-light);
  padding: 0.6rem 0.75rem;
  text-align: left;
  font-weight: 600;
  border-bottom: 1px solid var(--border);
}

.ws-table td {
  padding: 0.75rem;
  border-bottom: 1px solid #f0ebe3;
  min-height: 2rem;
}

.ws-table tr:last-child td {
  border-bottom: none;
}

.ws-table td.ws-line {
  border-bottom: 2px dotted #bbb;
  min-height: 2rem;
}

/* Numbered question (estate planning) */
.ws-numbered-question {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.ws-num {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  font-weight: 600;
  font-size: 0.85rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.ws-numbered-question p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
  padding-top: 4px;
}

/* Info Cards */
.info-card {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin: 1.5rem 0;
}

.info-card h3 {
  margin-top: 0;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.5rem;
}

/* ============================================
   Home / Landing
   ============================================ */

.hero {
  text-align: center;
  padding: 3rem 0 2rem;
}

.hero h1 {
  font-size: 3.2rem;
  margin-bottom: 1rem;
}

.hero .tagline {
  font-size: 1.15rem;
  color: var(--ink-light);
  max-width: 560px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.section-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.section-card {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  cursor: pointer;
  text-decoration: none;
  color: var(--ink);
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
}

.section-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--teal);
  transform: scaleX(0);
  transition: transform 0.3s;
}

.section-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 24px var(--shadow-md);
  border-color: var(--teal-light);
}

.section-card:hover::before {
  transform: scaleX(1);
}

.section-card .card-icon {
  font-size: 1.8rem;
  margin-bottom: 0.75rem;
}

.section-card h3 {
  font-size: 1rem;
  margin: 0 0 0.5rem;
  text-transform: none;
  letter-spacing: normal;
}

.section-card p {
  font-size: 0.85rem;
  color: var(--ink-light);
  margin: 0;
  line-height: 1.5;
}

.card-type {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.15rem 0.5rem;
  border-radius: 20px;
  margin-top: 0.75rem;
}

.card-type.worksheet {
  background: rgba(58, 125, 123, 0.1);
  color: var(--teal);
}

.card-type.guide {
  background: rgba(139, 111, 78, 0.1);
  color: var(--accent);
}

/* ============================================
   Code blocks (for folder structure)
   ============================================ */

pre {
  background: var(--ink);
  color: #e8e2d8;
  padding: 1.25rem;
  border-radius: var(--radius-lg);
  overflow-x: auto;
  font-size: 0.82rem;
  line-height: 1.6;
  margin: 1rem 0;
}

code {
  font-family: 'SF Mono', 'Fira Code', monospace;
  background: var(--parchment-dark);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.88em;
}

pre code {
  background: none;
  padding: 0;
}

/* ============================================
   Footer
   ============================================ */

.site-footer {
  text-align: center;
  padding: 3rem var(--gutter);
  border-top: 1px solid var(--border);
  margin-top: 4rem;
  color: var(--slate);
  font-size: 0.85rem;
}

.site-footer a {
  color: var(--teal);
  text-decoration: none;
}

/* ============================================
   Service Tier Cards
   ============================================ */

.hero-label {
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--teal);
  margin-bottom: 0.5rem;
}

/* ============================================
   Wake-Up Call Section
   ============================================ */

.wakeup-section {
  margin: 3rem 0 3.5rem;
  padding: 2.5rem 0;
  position: relative;
}

.wakeup-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 1px;
  background: var(--border);
}

.wakeup-inner {
  max-width: 600px;
  margin: 0 auto;
  padding: 2rem 2.5rem;
  background: linear-gradient(135deg, rgba(58, 125, 123, 0.04), rgba(139, 111, 78, 0.04));
  border-left: 3px solid var(--teal);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}

.wakeup-inner h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--ink);
  margin-top: 0;
  margin-bottom: 1.25rem;
  border-bottom: none;
  padding-bottom: 0;
}

.wakeup-body p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--ink-light);
  margin-bottom: 1rem;
}

.wakeup-body p:last-child {
  margin-bottom: 0;
}

.wakeup-body strong {
  color: var(--ink);
  font-weight: 600;
}

.wakeup-body em {
  color: var(--teal);
  font-style: italic;
}

.tiers-intro {
  text-align: center;
  margin-top: 1rem;
}

.tiers-intro h2 {
  border-bottom: none;
}

.tiers-intro .section-subtitle {
  max-width: 580px;
  margin: 0 auto 2rem;
}

.tier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 4rem;
}

.tier-card {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.3s;
}

.tier-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px var(--shadow-md);
}

.tier-featured {
  border-color: var(--teal);
  box-shadow: 0 4px 20px rgba(58, 125, 123, 0.12);
}

.tier-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--teal);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  white-space: nowrap;
}

.tier-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.tier-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--ink);
  margin: 0 0 0.25rem;
  text-transform: none;
  letter-spacing: normal;
}

.tier-tagline {
  font-size: 0.9rem;
  color: var(--ink-light);
  margin-bottom: 1rem;
  line-height: 1.4;
}

.tier-price {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--accent-deep);
  margin-bottom: 1.25rem;
}

.tier-price-note {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--ink-light);
}

.tier-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
  flex: 1;
}

.tier-features li {
  padding: 0.4rem 0 0.4rem 1.5rem;
  position: relative;
  font-size: 0.9rem;
  color: var(--ink-light);
  margin-bottom: 0.2rem;
  line-height: 1.5;
}

.tier-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--teal);
  font-weight: 700;
}

.tier-fit {
  font-size: 0.85rem;
  color: var(--ink-light);
  margin-bottom: 1.25rem;
  padding: 0.75rem;
  background: var(--parchment-dark);
  border-radius: var(--radius);
  line-height: 1.5;
}

.btn-tier {
  display: block;
  padding: 0.75rem 1rem;
  text-align: center;
  background: var(--teal);
  color: #fff;
  text-decoration: none;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  font-family: var(--font-body);
  transition: background 0.2s, transform 0.2s;
}

.btn-tier:hover {
  background: var(--teal-light);
  transform: translateY(-1px);
}

.btn-tier-waitlist {
  background: var(--accent);
}

.btn-tier-waitlist:hover {
  background: var(--accent-warm);
}

/* ============================================
   Walk Away Section
   ============================================ */

.walkaway-section {
  margin: 2rem 0 3rem;
}

.walkaway-section h2 {
  text-align: center;
  border-bottom: none;
}

.walkaway-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin: 1.5rem 0;
}

.walkaway-item {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.walkaway-icon {
  font-size: 1.5rem;
  display: block;
  margin-bottom: 0.5rem;
}

.walkaway-item h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent-deep);
  margin-bottom: 0.5rem;
}

.walkaway-item p {
  font-size: 0.9rem;
  color: var(--ink-light);
  margin: 0;
  line-height: 1.5;
}

.walkaway-quote {
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--teal);
  border-left: none;
  background: none;
  margin: 2rem 0;
  font-style: italic;
}

/* ============================================
   Resources Section
   ============================================ */

.resources-section {
  margin-top: 2rem;
}

.resources-section h2 {
  text-align: center;
  border-bottom: none;
}

.resources-section .section-subtitle {
  text-align: center;
  max-width: 500px;
  margin: 0 auto 1.5rem;
}

/* ============================================
   Bottom CTA
   ============================================ */

.bottom-cta {
  text-align: center;
  margin: 3rem 0 1rem;
  padding: 3rem 2rem;
  background: var(--parchment-dark);
  border-radius: var(--radius-lg);
}

.bottom-cta h2 {
  border-bottom: none;
  margin-top: 0;
}

.bottom-cta p {
  color: var(--ink-light);
  margin-bottom: 1.5rem;
}

.btn-cta-large {
  display: inline-block;
  padding: 1rem 2.5rem;
  font-size: 1.05rem;
}

.back-link {
  margin-top: 1.5rem;
  font-size: 0.85rem;
}

.back-link a {
  color: var(--teal);
  text-decoration: none;
}

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

/* Nav back-link */
.nav-logo:first-child {
  font-size: 0.85rem;
  color: var(--ink-light);
  margin-right: 0.5rem;
}

.nav-logo-tm {
  font-size: 1.3rem;
}

/* ============================================
   Interactive Quiz
   ============================================ */

.quiz-screen { display: none; }
.quiz-screen.active { display: block; animation: fadeSlideIn 0.3s ease; }

.quiz-progress {
  background: var(--border);
  border-radius: 20px;
  height: 6px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.quiz-progress-bar {
  background: var(--teal);
  height: 100%;
  border-radius: 20px;
  transition: width 0.3s ease;
}

.quiz-progress-text {
  font-size: 0.8rem;
  color: var(--ink-light);
  text-align: center;
  margin-bottom: 2rem;
}

.quiz-question-text {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--ink);
  margin-bottom: 1.5rem;
  line-height: 1.4;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 2rem;
}

.quiz-option {
  display: block;
  width: 100%;
  text-align: left;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  font-size: 0.95rem;
  font-family: var(--font-body);
  color: var(--ink);
  cursor: pointer;
  transition: all 0.2s;
}

.quiz-option:hover {
  border-color: var(--teal);
  background: rgba(58, 125, 123, 0.04);
  transform: translateX(4px);
}

.quiz-option.selected {
  border-color: var(--teal);
  background: rgba(58, 125, 123, 0.08);
  color: var(--teal);
  font-weight: 600;
  box-shadow: 0 2px 12px rgba(58, 125, 123, 0.1);
}

.quiz-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.btn-quiz-nav {
  padding: 0.7rem 1.5rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink-light);
  font-size: 0.9rem;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all 0.2s;
}

.btn-quiz-nav:hover:not(:disabled) {
  border-color: var(--teal);
  color: var(--teal);
}

.btn-quiz-nav:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.btn-quiz-next {
  background: var(--teal);
  color: #fff;
  border-color: var(--teal);
  margin-left: auto;
}

.btn-quiz-next:hover:not(:disabled) {
  background: var(--teal-light);
  color: #fff;
}

/* Quiz Results */
.quiz-result-card {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}

.quiz-result-card h1 {
  margin-top: 0;
  font-size: 2rem;
}

.quiz-result-tagline {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--teal);
  font-style: italic;
  margin-bottom: 1rem;
}

.quiz-result-desc {
  color: var(--ink-light);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.quiz-result-recs {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
}

.quiz-result-recs li {
  padding: 0.5rem 0 0.5rem 1.5rem;
  position: relative;
  color: var(--ink-light);
  line-height: 1.5;
}

.quiz-result-recs li::before { display: none; }

.quiz-score-breakdown {
  background: var(--parchment-dark);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-top: 1rem;
}

.quiz-score-breakdown h3 {
  margin-top: 0;
}

.quiz-score-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
}

.quiz-score-label {
  font-size: 0.85rem;
  color: var(--ink);
  min-width: 140px;
  white-space: nowrap;
}

.quiz-score-track {
  flex: 1;
  height: 10px;
  background: var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.quiz-score-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 10px;
  transition: width 0.5s ease;
}

.quiz-score-pct {
  font-size: 0.85rem;
  color: var(--ink-light);
  min-width: 36px;
  text-align: right;
}

/* Per-type explanation cards */
.quiz-types-intro {
  font-size: 0.88rem;
  color: var(--ink-light);
  margin-bottom: 1rem;
}

.quiz-type-card {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.6rem;
  cursor: pointer;
  transition: all 0.25s;
  overflow: hidden;
}

.quiz-type-card:hover {
  border-color: var(--teal-light);
  box-shadow: 0 2px 8px var(--shadow);
}

.quiz-type-card.expanded {
  border-color: var(--teal);
}

.quiz-type-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
}

.quiz-type-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  min-width: 155px;
  white-space: nowrap;
}

.quiz-type-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--teal);
  color: #fff;
  padding: 0.1rem 0.45rem;
  border-radius: 20px;
  margin-left: 0.4rem;
  vertical-align: middle;
}

.quiz-type-bar-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.quiz-type-chevron {
  font-size: 0.75rem;
  color: var(--ink-light);
  transition: transform 0.25s;
  flex-shrink: 0;
}

.quiz-type-card.expanded .quiz-type-chevron {
  transform: rotate(180deg);
}

.quiz-type-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.25s ease;
  padding: 0 1rem;
}

.quiz-type-card.expanded .quiz-type-body {
  max-height: 300px;
  padding: 0 1rem 1rem;
}

.quiz-type-tagline {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--teal);
  font-style: italic;
  margin-bottom: 0.4rem;
}

.quiz-type-desc {
  font-size: 0.88rem;
  color: var(--ink-light);
  line-height: 1.6;
  margin: 0;
}

/* CTA Sections */
.quiz-cta-section {
  margin-top: 2rem;
}

.quiz-cta-email,
.quiz-cta-action {
  text-align: center;
  padding: 2rem;
  background: var(--teal-muted);
  border-radius: var(--radius-lg);
  border: 1.5px solid rgba(58, 125, 123, 0.15);
}

.quiz-cta-email h3,
.quiz-cta-action h3 {
  margin-top: 0;
  color: var(--teal);
  text-transform: none;
  letter-spacing: normal;
  font-size: 1.15rem;
}

.quiz-cta-email p,
.quiz-cta-action p {
  color: var(--ink-light);
  margin-bottom: 1.25rem;
}

.quiz-email-form {
  display: flex;
  gap: 0.6rem;
  max-width: 460px;
  margin: 0 auto 0.75rem;
}

.quiz-email-input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: var(--font-body);
  background: #fff;
  color: var(--ink);
  transition: border-color 0.2s;
}

.quiz-email-input:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(58, 125, 123, 0.1);
}

.quiz-email-btn {
  white-space: nowrap;
  flex-shrink: 0;
}

.quiz-email-note {
  font-size: 0.78rem;
  color: var(--slate);
  margin: 0;
}

.quiz-email-success {
  font-size: 1.05rem;
  color: var(--teal);
  font-weight: 600;
  padding: 0.5rem 0;
}

.quiz-action-btn {
  display: inline-block;
  max-width: 340px;
}

/* Bottom actions */
.quiz-bottom-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 768px) {
  :root { --gutter: 1.25rem; }

  h1 { font-size: 2rem; }
  .hero h1 { font-size: 2.4rem; }
  h2 { font-size: 1.5rem; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--parchment);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 0.5rem;
  }

  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }

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

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

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

  .ws-table {
    font-size: 0.85rem;
  }

  .ws-table th,
  .ws-table td {
    padding: 0.4rem;
  }
}

/* ============================================
   Print Styles
   ============================================ */

@media print {
  /* Hide navigation, footer, print buttons */
  .site-nav,
  .site-footer,
  .btn-print {
    display: none !important;
  }

  /* Reset layout */
  body {
    background: #fff;
    color: #000;
    font-size: 11pt;
    line-height: 1.5;
  }

  main {
    padding: 0;
    max-width: 100%;
  }

  .content-section {
    display: block;
    animation: none;
  }

  /* Make answer areas taller for writing */
  .ws-answer-area {
    min-height: 100px;
    border: 1.5px solid #999;
  }

  .ws-answer-area.ws-small {
    min-height: 60px;
  }

  .ws-line-block {
    min-height: 2rem;
    border-bottom-color: #999;
  }

  .ws-table {
    border-color: #999;
  }

  .ws-table td.ws-line {
    border-bottom-color: #999;
  }

  /* Avoid page breaks inside items */
  .ws-check-list,
  .ws-table,
  .ws-answer-area,
  .ws-numbered-question,
  .info-card,
  blockquote {
    break-inside: avoid;
  }

  /* Print-friendly headings */
  h1 { font-size: 24pt; color: #000; }
  h1 em { color: #333; }
  h2 { font-size: 16pt; color: #000; border-bottom-color: #999; }
  h3 { font-size: 11pt; color: #333; }

  /* Hide section cards (home page) */
  .section-grid,
  .hero { display: none; }
}
