:root {
  color-scheme: dark;
  --bg: #0b0d14;
  --bg-soft: #111522;
  --text: #f4f7fb;
  --muted: #b7bfcc;
  --accent: #4ce7a8;
  --accent-dark: #2fc889;
  --border: rgba(255,255,255,0.12);
}

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

html, body {
  min-height: 100%;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  background: radial-gradient(1000px 600px at 80% 40%, #1a1f33 0%, transparent 60%), var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.page {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

/* ── Eyebrow ── */
.eyebrow {
  letter-spacing: 0.24em;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--accent);
}

/* ── Hero ── */
.hero { padding: 2rem 0 3rem; }
.hero h1 {
  margin: 1rem 0 0;
  line-height: 1.08;
  font-size: clamp(1.8rem, 5vw, 3.2rem);
  font-weight: 800;
}
.hero h1 span { color: var(--accent); }
.meta {
  margin-top: 1.5rem;
  display: flex; flex-wrap: wrap;
  gap: 0.5rem 2.5rem;
}
.meta-item { display: flex; flex-direction: column; gap: 0.15rem; }
.meta-label {
  font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted);
}
.meta-value { font-size: 1rem; font-weight: 600; }

/* ── Results strip ── */
.results-strip {
  margin: 0 0 2rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.25rem 1.5rem;
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 0.75rem 2rem;
}
.results-eyebrow {
  font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent); white-space: nowrap;
}
.results-stats { display: flex; flex-wrap: wrap; gap: 0.75rem 2.5rem; flex: 1; }
.result-stat  { display: flex; flex-direction: column; gap: 0.1rem; }
.stat-number  { font-size: 1.4rem; font-weight: 800; color: var(--accent); line-height: 1; }
.stat-label   { font-size: 0.75rem; color: var(--muted); }

/* ── Sections ── */
.section { margin-bottom: 2.5rem; }
.section h2 {
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 800; margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}
.section > p {
  color: var(--muted); font-size: 1.05rem;
  line-height: 1.7; margin-bottom: 1rem;
}

/* ══════════════════════════════════════════
   TIMELINE  (reference-image style)
   ══════════════════════════════════════════ */
.timeline {
  position: relative;
  margin-left: 14px;          /* room for the dot (centered on the line) */
  padding-left: 36px;         /* space between line and cards */
}

/* vertical connector line */
.timeline::before {
  content: "";
  position: absolute;
  left: 0;                    /* sits at margin-left edge */
  top: 14px;
  bottom: 14px;
  width: 3px;
  background: linear-gradient(to bottom, var(--accent), rgba(76,231,168,0.18));
  border-radius: 4px;
}

/* ── Node (one per phase) ── */
.tl-node {
  position: relative;
  padding-bottom: 1.6rem;
}
.tl-node.tl-last { padding-bottom: 0; }

/* dot on the line */
.tl-dot {
  position: absolute;
  left: -36px;                /* center on the 3px line */
  top: 18px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 2px var(--accent);
  z-index: 2;
  transform: translateX(-5px);
}

/* ── Card ── */
.tl-card {
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: rgba(255,255,255,0.025);
  cursor: pointer;
  transition: border-color 200ms, background 200ms;
  overflow: hidden;
}
.tl-card:hover { border-color: rgba(76,231,168,0.35); }

/* head row – always visible */
.tl-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.2rem;
  user-select: none;
}
.tl-name {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
}
.tl-sub {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  margin-top: 0.1rem;
}
.tl-badge {
  margin-left: auto;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent);
  background: rgba(76,231,168,0.1);
  padding: 0.2rem 0.7rem;
  border-radius: 2rem;
  white-space: nowrap;
  flex-shrink: 0;
}

/* chevron arrow */
.tl-arrow {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--muted);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
  transition: transform 250ms ease;
}
.tl-card.open .tl-arrow {
  transform: rotate(180deg);
}

/* ── Expandable section ── */
.tl-expand {
  height: 0;
  overflow: hidden;
  transition: height 350ms ease;
}
.tl-expand p {
  padding: 0.25rem 1.2rem 0.75rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.65;
}
.tl-expand table {
  margin: 0 1.2rem 1.2rem;
  width: calc(100% - 2.4rem);
}

/* ── Tables ── */
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
thead th {
  text-align: left;
  padding: 0.55rem 0.75rem;
  background: var(--bg);
  border-bottom: 2px solid var(--accent);
  font-weight: 700; font-size: 0.78rem;
  letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--accent);
}
tbody td {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
tbody tr:hover { background: rgba(76,231,168,0.04); }
.col-hours { width: 80px; text-align: right; }
tbody td:last-child {
  text-align: right; font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* Summary table */
.summary-table tfoot td {
  padding: 0.65rem 0.75rem;
  font-weight: 700;
  border-top: 1px solid var(--border);
  color: var(--muted);
}
.summary-table tfoot td:last-child { color: var(--text); }
.summary-table tfoot tr.grand-total td {
  font-size: 1.15rem; font-weight: 800;
  color: var(--accent);
  border-top: 2px solid var(--accent);
  padding-top: 0.9rem;
}

/* ── Card (timeline overview) ── */
.card {
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.5rem;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.025));
}
.card p { color: var(--muted); line-height: 1.7; }
.card strong { color: var(--accent); }
.timeline-headline {
  font-size: 1.2rem; font-weight: 800;
  color: var(--text) !important;
  margin-bottom: 0.5rem;
}

/* ── Needs list ── */
.needs-list { list-style: none; padding: 0; }
.needs-list li {
  position: relative;
  padding: 0.5rem 0 0.5rem 1.5rem;
  color: var(--muted); line-height: 1.6;
  border-bottom: 1px solid var(--border);
}
.needs-list li:last-child { border-bottom: none; }
.needs-list li::before {
  content: "\2192"; position: absolute; left: 0;
  color: var(--accent); font-weight: 700;
}
.needs-list li strong { color: var(--text); }

/* ══════════════════════════════════════════
   ACTION BUTTONS  (Copy / Email)
   ══════════════════════════════════════════ */
.needs-actions {
  display: flex; gap: 0.75rem; margin-bottom: 1rem;
}
.action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1.1rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 0.6rem;
  color: var(--text);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 150ms, background 150ms, transform 120ms;
}
.action-btn:hover {
  border-color: var(--accent);
  background: rgba(76,231,168,0.08);
  transform: translateY(-1px);
}

/* ══════════════════════════════════════════
   CTA BUTTONS  (Approve / Talk)
   ══════════════════════════════════════════ */
.cta-section { text-align: center; }
.cta-section h2 { display: block; border-bottom: none; padding-bottom: 0; }
.cta-section > p { text-align: center; }
.cta-row {
  margin-top: 1.5rem;
  display: flex; flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1rem 2.2rem;
  border-radius: 0.8rem;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 140ms, background 140ms, border-color 140ms, box-shadow 140ms;
}
.cta-btn:hover { transform: translateY(-2px); }

.cta-primary {
  background: var(--accent);
  color: #072216;
  border: 2px solid var(--accent);
  box-shadow: 0 4px 20px rgba(76,231,168,0.3);
}
.cta-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  box-shadow: 0 6px 28px rgba(76,231,168,0.45);
}
.cta-outline {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--border);
}
.cta-outline:hover {
  border-color: var(--accent);
  background: rgba(76,231,168,0.06);
  box-shadow: 0 4px 16px rgba(76,231,168,0.15);
}

/* ── Toast ── */
.toast {
  position: fixed; bottom: 2rem; left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--accent); color: #072216;
  font-weight: 700; font-size: 0.9rem;
  padding: 0.75rem 1.5rem; border-radius: 0.6rem;
  opacity: 0;
  transition: transform 300ms, opacity 300ms;
  z-index: 100; pointer-events: none;
}
.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ── Footer ── */
.footer {
  margin-top: 3rem; padding-top: 2rem;
  border-top: 1px solid var(--border);
  text-align: center;
}
.footer .eyebrow { margin-bottom: 0.3rem; }
.footer-link { color: var(--muted); font-size: 0.9rem; }

/* ── Mobile ── */
@media (max-width: 600px) {
  .page { padding: 2rem 1rem 3rem; }
  .meta { flex-direction: column; gap: 0.75rem; }
  .results-strip { flex-direction: column; align-items: flex-start; }
  .timeline { margin-left: 10px; padding-left: 28px; }
  .tl-dot  { left: -28px; }
  .tl-head { padding: 0.75rem 1rem; flex-wrap: wrap; }
  .tl-expand table { width: calc(100% - 2rem); margin: 0 1rem 1rem; }
  table { font-size: 0.85rem; }
  thead th, tbody td { padding: 0.45rem 0.5rem; }
  .needs-actions { flex-direction: column; }
  .cta-row { flex-direction: column; }
  .cta-btn { width: 100%; justify-content: center; }
}
