*, *::before, *::after { box-sizing: border-box; }
html, body, h1, h2, h3, h4, p, ul, ol, li, figure, blockquote, dl, dd { margin: 0; padding: 0; }

:root {
  --bg: #FAF6EE;
  --bg-deep: #F2EBD8;
  --gold: #C9A84C;
  --gold-dark: #A8893E;
  --gold-soft: rgba(201, 168, 76, 0.08);
  --dark: #1A1A18;
  --muted: #6b6b66;
  --line: #E6DFCE;
  --white: #ffffff;
  --shadow-sm: 0 2px 8px rgba(26, 26, 24, 0.04);
  --shadow-md: 0 8px 24px rgba(26, 26, 24, 0.06);
  --shadow-gold: 0 8px 20px rgba(201, 168, 76, 0.25);
  --shadow-gold-lg: 0 12px 28px rgba(201, 168, 76, 0.35);
  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --radius: 10px;
  --radius-sm: 6px;
}

html, body {
  background: var(--bg);
  color: var(--dark);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--dark); text-decoration: none; }
a:hover { color: var(--gold-dark); }

img { max-width: 100%; display: block; }

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.25rem;
}
.container-narrow { max-width: 720px; }

/* HEADER ------------------------------------------------------------ */
.site-header {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.header-inner {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
}
.logo {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: .005em;
}
.logo-tag {
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  border-left: 1px solid var(--line);
  padding-left: 1rem;
}

main { min-height: calc(100vh - 200px); }

/* HERO -------------------------------------------------------------- */
.hero {
  padding: 4rem 0 3rem;
  text-align: center;
}
@media (min-width: 720px) { .hero { padding: 6rem 0 4rem; } }

.hero-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(2rem, 5.5vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -0.012em;
  max-width: 22ch;
  margin: 0 auto 1.5rem;
}
.hero-sub {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--muted);
  max-width: 60ch;
  margin: 0 auto 2.25rem;
}
.hero-fineprint {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--muted);
}
.hero-disclaimer {
  margin-top: 1.75rem;
  font-size: 0.8rem;
  color: var(--muted);
  font-style: italic;
  text-align: center;
}

/* BUTTONS ----------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .9rem 1.5rem;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1rem;
  border-radius: var(--radius-sm);
  border: 0;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  line-height: 1;
}
.btn-lg { padding: 1.05rem 1.85rem; font-size: 1.05rem; }
.btn-gold {
  background: var(--gold);
  color: var(--dark);
  box-shadow: var(--shadow-gold);
}
.btn-gold:hover {
  background: var(--gold-dark);
  color: var(--dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-gold-lg);
}
.btn-gold:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}
.btn-ghost {
  background: transparent;
  color: var(--dark);
  border: 1px solid var(--line);
}
.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--dark);
  background: var(--white);
}

/* STATS ------------------------------------------------------------- */
.stats { padding: 2rem 0 5rem; }
.stat-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 720px) {
  .stat-grid { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
}
.stat {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.stat-num {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(2.25rem, 4vw, 2.75rem);
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.stat-label {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.4;
}

/* ASSESSMENT -------------------------------------------------------- */
.assessment { padding: 2.5rem 0 5rem; }
@media (min-width: 720px) { .assessment { padding: 3.5rem 0 6rem; } }

.progress-wrap { margin-bottom: 2rem; }
.progress-text {
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 0.55rem;
  font-weight: 500;
}
.progress-bar {
  background: var(--line);
  height: 6px;
  border-radius: 3px;
  overflow: hidden;
}
.progress-fill {
  background: var(--gold);
  height: 100%;
  width: 0%;
  transition: width .35s ease;
}

.section-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  line-height: 1.15;
  margin-bottom: 0.5rem;
  letter-spacing: -0.005em;
}
.section-intro {
  color: var(--muted);
  margin-bottom: 2rem;
  font-size: 1.025rem;
}

.question {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
}
.question-text {
  font-weight: 500;
  margin-bottom: 1rem;
  font-size: 1.05rem;
  line-height: 1.4;
}

.option {
  display: flex;
  align-items: center;
  padding: .85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  margin-bottom: .5rem;
  transition: border-color .15s ease, background .15s ease;
  background: var(--bg);
}
.option:last-child { margin-bottom: 0; }
.option:hover {
  border-color: var(--gold);
  background: var(--gold-soft);
}
.option input {
  margin-right: .85rem;
  accent-color: var(--gold);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.option.selected {
  border-color: var(--gold);
  background: var(--gold-soft);
}
.option span { flex: 1; }

.nav-buttons {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.75rem;
}

/* LEAD FORM --------------------------------------------------------- */
.lead-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow-md);
}
@media (min-width: 720px) { .lead-form { padding: 2.5rem; } }

.lead-form h2 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  line-height: 1.2;
  margin-bottom: 1.75rem;
  letter-spacing: -0.005em;
}

.field { margin-bottom: 1.1rem; }
.field label {
  display: block;
  margin-bottom: .4rem;
  font-weight: 500;
  font-size: .9rem;
  color: var(--dark);
}
.field input {
  width: 100%;
  padding: .9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: var(--sans);
  font-size: 1rem;
  background: var(--bg);
  color: var(--dark);
  transition: border-color .15s ease, background .15s ease;
}
.field input:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--white);
  box-shadow: 0 0 0 3px var(--gold-soft);
}

/* RESULTS PAGE ------------------------------------------------------ */
.results-page { padding: 3rem 0 5rem; }
@media (min-width: 720px) { .results-page { padding: 4rem 0 6rem; } }

.results-header { text-align: center; margin-bottom: 2.5rem; }
.results-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.012em;
  margin-bottom: 0.5rem;
}
.results-sub { color: var(--muted); font-size: 1.05rem; }

/* Dual-track hero (TIME LOST | REVENUE RISK) */
.dual-headline {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
@media (min-width: 720px) {
  .dual-headline { grid-template-columns: 1fr 1fr; gap: 1.25rem; }
}
.dual-block {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}
.dual-block::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
}
.dual-time::before    { background: var(--gold); }
.dual-revenue::before { background: var(--gold-dark); }

.dual-eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 0.5rem;
}
.dual-time .dual-eyebrow    { color: var(--gold); }
.dual-revenue .dual-eyebrow { color: var(--gold-dark); }
.dual-number {
  font-family: var(--serif);
  font-weight: 700;
  color: var(--dark);
  font-size: clamp(3.5rem, 10vw, 5.5rem);
  line-height: 1;
  margin-bottom: 0.4rem;
  letter-spacing: -0.02em;
}
.dual-range {
  font-size: clamp(2.75rem, 8vw, 4.25rem);
  letter-spacing: -0.015em;
}
.dual-trail {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.4;
}

.stat-grid-3 { margin-bottom: 2rem; }

.stat-grid-2 {
  margin-bottom: 2rem;
}
@media (min-width: 720px) {
  .stat-grid-2 { grid-template-columns: 1fr 1fr; }
}

.callout {
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin: 0 0 3rem;
  background: var(--white);
  border: 1px solid var(--gold);
  border-left-width: 4px;
  box-shadow: var(--shadow-sm);
}
.callout-low            { border-color: #5a8a3f; border-left-color: #5a8a3f; }
.callout-time-heavy     { border-color: var(--gold); border-left-color: var(--gold); }
.callout-revenue-heavy  { border-color: var(--gold-dark); border-left-color: var(--gold-dark); }
.callout-critical       { border-color: #b95a2e; border-left-color: #b95a2e; }
.callout-qualified      { border-color: var(--gold); border-left-color: var(--gold); }
.callout-eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 0.4rem;
}
.callout-low .callout-eyebrow            { color: #5a8a3f; }
.callout-time-heavy .callout-eyebrow     { color: var(--gold); }
.callout-revenue-heavy .callout-eyebrow  { color: var(--gold-dark); }
.callout-critical .callout-eyebrow       { color: #b95a2e; }
.callout-qualified .callout-eyebrow      { color: var(--gold-dark); }
.callout-message {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.15rem, 2.5vw, 1.5rem);
  line-height: 1.25;
  color: var(--dark);
}

.section-h {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  line-height: 1.2;
  letter-spacing: -0.005em;
  margin-bottom: 0.4rem;
}
.section-h-sub {
  color: var(--muted);
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

/* Bar chart */
.bar-chart {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 3rem;
  box-shadow: var(--shadow-sm);
}
.bar-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.4rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--line);
}
.bar-row:last-child { border-bottom: 0; padding-bottom: 0; }
.bar-row:first-child { padding-top: 0; }
@media (min-width: 720px) {
  .bar-row { grid-template-columns: 220px 1fr; gap: 1rem; align-items: center; }
}
.bar-label { font-weight: 500; font-size: 0.95rem; }
.bar-track {
  position: relative;
  background: var(--bg-deep);
  height: 28px;
  border-radius: 4px;
  overflow: hidden;
}
.bar-fill {
  background: var(--gold);
  height: 100%;
  border-radius: 4px;
  transition: width .4s ease;
}
.bar-value {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--dark);
}
.bar-optimized {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 12px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold-dark);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Revenue chart variant — outlined bars, gap labels */
.bar-chart-revenue { margin-bottom: 3rem; }
.bar-fill-revenue {
  background: transparent;
  border: 2px solid var(--gold);
  border-radius: 4px;
  box-sizing: border-box;
}
.bar-value-gap {
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--gold-dark);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.section-h-revenue { margin-top: 2rem; }

/* Disclaimer box (above results CTAs) */
.disclaimer-box {
  background: var(--bg-deep);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  margin: 0 0 2rem;
  font-size: 0.88rem;
  color: var(--dark);
  line-height: 1.55;
}
.disclaimer-box p { margin: 0; }
.disclaimer-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 0.4rem;
}

/* Recommendation cards */
.rec-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 3rem;
}
@media (min-width: 720px) { .rec-grid { grid-template-columns: repeat(3, 1fr); } }
.rec-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 2rem 1.5rem 1.5rem;
  box-shadow: var(--shadow-sm);
}
.rec-num {
  position: absolute;
  top: -18px;
  left: 24px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--dark);
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-gold);
}
.rec-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.25;
  margin-bottom: 0.5rem;
}
.rec-desc { color: var(--muted); font-size: 0.95rem; line-height: 1.5; }

/* Matrix */
.matrix {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 3rem;
}
@media (min-width: 720px) { .matrix { grid-template-columns: 1fr 1fr; } }
.matrix-cell {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--muted);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  min-height: 130px;
  box-shadow: var(--shadow-sm);
}
.matrix-quick-wins { border-left-color: var(--gold); }
.matrix-major      { border-left-color: var(--gold-dark); }
.matrix-eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}
.matrix-quick-wins .matrix-eyebrow { color: var(--gold); }
.matrix-major .matrix-eyebrow { color: var(--gold-dark); }
.matrix-fill .matrix-eyebrow,
.matrix-skip .matrix-eyebrow { color: var(--muted); }
.matrix-axis { font-size: 0.85rem; color: var(--muted); margin-bottom: 0.85rem; }
.matrix-list { list-style: none; padding: 0; margin: 0; }
.matrix-list li {
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--line);
}
.matrix-list li:last-child { border-bottom: 0; }
.matrix-empty { color: var(--muted); font-style: italic; font-weight: 400 !important; }

/* 4-Day Plan */
.plan {
  list-style: none;
  padding: 0;
  margin: 0 0 3rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.plan-step {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 1rem;
  padding: 1.1rem 1.5rem;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.plan-step:last-child { border-bottom: 0; }
.plan-day {
  font-family: var(--serif);
  font-weight: 700;
  color: var(--gold-dark);
  font-size: 1.05rem;
  letter-spacing: 0.04em;
}
.plan-action { font-size: 1rem; line-height: 1.4; }

/* CTA block */
.cta-block {
  background: var(--white);
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  padding: 2.5rem 1.75rem;
  text-align: center;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-md);
}
.cta-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  margin-bottom: 0.5rem;
  letter-spacing: -0.005em;
}
.cta-sub { color: var(--muted); margin-bottom: 1.75rem; font-size: 1rem; }
.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 1.25rem;
}
@media (min-width: 720px) {
  .cta-buttons { flex-direction: row; justify-content: center; gap: 1rem; }
}
.btn-outline {
  background: transparent;
  color: var(--dark);
  border: 2px solid var(--gold);
}
.btn-outline:hover {
  background: var(--gold-soft);
  color: var(--dark);
  border-color: var(--gold-dark);
}
.pdf-link {
  display: inline-block;
  font-size: 0.95rem;
  color: var(--gold-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.pdf-link:hover { color: var(--dark); }

.results-footer {
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
  padding-top: 1rem;
}
.results-footer a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.results-footer a:hover { color: var(--gold-dark); }

/* FOOTER ------------------------------------------------------------ */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0;
  color: var(--muted);
  font-size: .9rem;
  text-align: center;
}

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

/* a11y */
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
.option:focus-within { border-color: var(--gold); background: var(--gold-soft); }
