:root {
  --bg: #f8f7f4;
  --surface: #ffffff;
  --surface-soft: #f2efe9;
  --ink: #1f2924;
  --ink-muted: #55625b;
  --accent: #2c5e4f;
  --accent-hover: #21483c;
  --accent-soft: #e6efe9;
  --border: #e3dfd7;
  --warn-bg: #fdf6ec;
  --warn-border: #edd7b4;
  --warn-ink: #6e4713;
  --radius: 14px;
  --shadow: 0 4px 20px rgba(31, 41, 36, 0.05);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }



.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Topbar */
.topbar {
  background: rgba(248, 247, 244, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 20;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.brand-mark {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--accent), #528b78);
  display: inline-block;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--ink);
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-ghost:hover { background: var(--surface); }
.danger-text { color: #8c3b32; }

.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  border: none;
  padding: 11px 20px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-primary:hover { background: var(--accent-hover); }

/* Hero */
.hero {
  padding: 48px 0 36px;
  max-width: 820px;
}

.privacy-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.privacy-pill .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 2.85rem);
  line-height: 1.18;
  margin: 0 0 14px;
  letter-spacing: -0.02em;
}

.hero-sub {
  font-size: 1.08rem;
  color: var(--ink-muted);
  margin: 0 0 28px;
  max-width: 68ch;
}

.setup-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}

.setup-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.field label {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--ink);
}

.field select,
.field input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 9px;
  font-size: 0.95rem;
  background: var(--bg);
  color: var(--ink);
}

.setup-footer {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.helper-note {
  font-size: 0.88rem;
  color: var(--ink-muted);
}

/* Workspace */
.workspace {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 28px;
  align-items: start;
  padding: 16px 0 64px;
}

.sidebar {
  position: sticky;
  top: 84px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.progress-box,
.sidebar-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}

.progress-top {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.progress-track {
  height: 8px;
  background: var(--surface-soft);
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--accent);
  transition: width 0.25s ease;
}

.phase-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.phase-btn {
  width: 100%;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  transition: border-color 0.15s, background 0.15s;
}

.phase-btn:hover { border-color: var(--accent); }

.phase-btn.active {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.phase-num {
  font-family: Georgia, serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent);
  min-width: 24px;
  padding-top: 1px;
}

.phase-btn-title {
  display: block;
  font-weight: 600;
  font-size: 0.93rem;
  color: var(--ink);
}

.phase-btn-meta {
  display: block;
  font-size: 0.78rem;
  color: var(--ink-muted);
  margin-top: 2px;
}

.sidebar-card h3 {
  margin: 0 0 10px;
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
}

.snapshot-item {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
}

.snapshot-item:last-child { border-bottom: none; padding-bottom: 0; }
.snapshot-item strong { display: block; font-size: 0.78rem; color: var(--ink-muted); }

/* Phase Card */
.phase-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}

.phase-eyebrow {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
}

.phase-card h2 {
  font-family: Georgia, serif;
  font-weight: 400;
  font-size: 1.85rem;
  margin: 6px 0 10px;
  line-height: 1.25;
}

.phase-reassurance {
  color: var(--ink-muted);
  font-size: 1.02rem;
  margin: 0 0 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.state-callout {
  background: var(--warn-bg);
  border: 1px solid var(--warn-border);
  color: var(--warn-ink);
  border-radius: 11px;
  padding: 14px 16px;
  margin-bottom: 24px;
  font-size: 0.93rem;
}

.state-callout strong { display: block; margin-bottom: 4px; }

.step-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.step-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  transition: background 0.15s;
}

.step-item.done {
  background: var(--bg);
  opacity: 0.82;
}

.step-item input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 3px;
  accent-color: var(--accent);
  cursor: pointer;
  flex-shrink: 0;
}

.step-body h3 {
  margin: 0 0 4px;
  font-size: 1.02rem;
}

.step-item.done .step-body h3 {
  text-decoration: line-through;
  color: var(--ink-muted);
}

.step-body p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink-muted);
}

.notes-box {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.notes-box label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
}

.notes-box textarea {
  width: 100%;
  min-height: 88px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.93rem;
  background: var(--bg);
  resize: vertical;
}

.phase-nav-footer {
  margin-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

/* Register Section */
.register-section {
  margin-top: 36px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
}

.register-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
}

.register-header h2 {
  font-family: Georgia, serif;
  font-weight: 400;
  font-size: 1.45rem;
  margin: 4px 0 0;
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pill {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
}

.pill.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.table-wrap {
  overflow-x: auto;
  max-height: 420px;
  border: 1px solid var(--border);
  border-radius: 10px;
}

.register-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  text-align: left;
}

.register-table th {
  position: sticky;
  top: 0;
  background: var(--surface-soft);
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
}

.register-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}

.register-table tr:hover { background: var(--bg); cursor: pointer; }
.register-table tr.selected-row { background: var(--accent-soft); }

.muted { color: var(--ink-muted); font-size: 0.88rem; }

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 28px 0 40px;
  font-size: 0.85rem;
  color: var(--ink-muted);
}

.disclaimer {
  margin: 10px 0 0;
  max-width: 85ch;
}

@media (max-width: 860px) {
  .setup-grid { grid-template-columns: 1fr; }
  .workspace { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .phase-card { padding: 22px; }
}

@media print {
  .topbar, .setup-card, .sidebar, .register-section, .phase-nav-footer, .notes-box textarea {
    display: none !important;
  }
  body { background: #fff; }
  .workspace { display: block; }
  .phase-card { border: none; box-shadow: none; padding: 0; }
}

/* Site integration adjustments */
.container{max-width:1200px;margin:0 auto;padding:0 20px}.hero{max-width:100%;padding:38px 0 26px}.hero h1{border:0;padding:0;margin:0 0 14px}.hero-sub{max-width:72ch}.topbar{position:static}.workspace{padding-top:16px}.plan-actions{display:flex;gap:10px;flex-wrap:wrap;margin:0 0 12px}.plan-actions .btn-ghost{background:transparent;color:var(--ink);border:1px solid var(--border)}.plan-actions .btn-ghost:hover{background:var(--surface-soft)}.phase-content h2{border:0}.register-section h2{border:0;padding:0;margin:0 0 8px}.legal-note{background:#fff8ef;border:1px solid #edd7b4;border-radius:10px;padding:14px 16px;color:#6e4713;font-size:.9rem}.footer{margin:0 -4vw;padding:28px 4vw;background:#1f2924;color:#f8f7f4}.footer a{color:#e6efe9}.footer-inner{max-width:1120px;margin:auto}.phase-card h2{border:0;padding:0;margin:8px 0 12px}.phase-card .step-item{cursor:pointer}.phase-card .notes-box textarea{font:inherit}.register-table tr{cursor:pointer}
@media(max-width:900px){.workspace{grid-template-columns:1fr}.sidebar{position:static}.phase-nav{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr))}.footer{margin:0 -4vw}}
@media print{.plan-actions,.sidebar,.filter-pills,header,footer{display:none!important}.workspace{display:block}.phase-card,.register-section{break-inside:avoid}.step-item input{print-color-adjust:exact}}

/* Colour fixes: the global button/a hover rules in style.css were overriding these components */
.phase-btn, .phase-btn:hover, .phase-btn.active, .phase-btn.active:hover { color: var(--ink); }
.phase-btn:hover { background: var(--surface-soft); border-color: var(--accent); }
.phase-btn.active, .phase-btn.active:hover { background: var(--accent-soft); border-color: var(--accent); }
.phase-btn .phase-num { color: var(--accent); }
.phase-btn .phase-btn-title { color: var(--ink); }
.phase-btn .phase-btn-meta { color: var(--ink-muted); }

.pill { color: var(--ink); }
.pill:hover { background: var(--accent-soft); color: var(--ink); border-color: var(--accent); }
.pill.active, .pill.active:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

.btn-ghost, .btn-ghost:hover { color: var(--ink); }
.btn-ghost:hover { background: var(--surface-soft); border-color: var(--accent); }
.btn-ghost.danger-text, .btn-ghost.danger-text:hover { color: #8c3b32; }
.btn-primary, .btn-primary:hover, .btn-primary:visited { color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
