:root {
  --bg: #FAF6EC;
  --ink: #141414;
  --ink-soft: #4A4A4A;
  --accent: #8C6D1F;
  --accent-2: #C9A227;
  --locked: #9A9A9A;
  --line: #E6DCBE;
  --card: #FFFFFF;
  --code-bg: #141414;
  --code-ink: #F2EBD7;
  --shadow: 0 2px 6px rgba(26, 26, 26, 0.06);
  --shadow-lg: 0 10px 30px rgba(26, 26, 26, 0.08);
  --radius: 10px;
  --radius-lg: 14px;
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  padding: 0 20px;
}

/* HEADER */
.site-header {
  padding: 36px 0 24px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.brand-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 5vw, 40px);
  letter-spacing: 0.04em;
  margin: 0;
  color: var(--ink);
}
.brand-sub {
  margin: 2px 0 0;
  font-size: 14px;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}
.tagline {
  margin: 18px 0 22px;
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 560px;
}
.overall-progress {
  margin-top: 8px;
}
.progress-track {
  height: 10px;
  background: var(--line);
  border-radius: 999px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  width: 0;
  background: var(--accent);
  transition: width 220ms ease;
}
.progress-label {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}

/* NAV */
.gate-nav {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
}
.nav-wrap {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  padding: 10px 20px;
}
.nav-btn {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 10px;
  cursor: pointer;
  font-family: var(--font-body);
  text-align: left;
  transition: border-color 160ms ease, transform 80ms ease, box-shadow 160ms ease;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.nav-btn:hover { border-color: var(--accent); }
.nav-btn:active { transform: translateY(1px); }
.nav-btn.active {
  border-color: var(--accent);
  box-shadow: var(--shadow);
}
.nav-btn.locked {
  color: var(--locked);
  cursor: not-allowed;
  background: #F5F0E7;
}
.nav-btn.locked:hover { border-color: var(--line); }
.nav-btn.complete .nav-status { color: var(--accent); }
.nav-num {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  text-transform: uppercase;
}
.nav-btn.locked .nav-num,
.nav-btn.locked .nav-name { color: var(--locked); }
.nav-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-status {
  font-size: 11px;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}
.lock-icon { font-size: 12px; opacity: 0.8; }

/* MAIN PANELS */
.main { padding: 28px 20px 80px; }
.panel { margin: 0 auto; }
.gate-panel { display: none; }
.gate-panel.active { display: block; }

.gate-header { margin-bottom: 24px; }
.gate-eyebrow {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--accent);
  text-transform: uppercase;
  margin: 0;
}
.gate-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4.5vw, 36px);
  margin: 4px 0 6px;
  color: var(--ink);
  font-weight: 600;
}
.gate-sub {
  margin: 0;
  color: var(--ink-soft);
  font-size: 16px;
  max-width: 640px;
}
.gate-progress {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--ink-soft);
}
.gate-progress .progress-track { flex: 1; max-width: 220px; }

.locked-message {
  background: #F5F0E7;
  border: 1px dashed var(--locked);
  color: var(--ink-soft);
  padding: 14px 16px;
  border-radius: var(--radius);
  margin-bottom: 22px;
  font-size: 14px;
}

/* ITEM CARD */
.item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px 18px 16px;
  margin-bottom: 12px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.item.checked {
  border-color: var(--accent);
  background: #F4F8F5;
}
.item-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.item-check {
  flex: 0 0 auto;
  margin-top: 2px;
}
.item-check input {
  appearance: none;
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border: 2px solid var(--ink-soft);
  border-radius: 6px;
  cursor: pointer;
  display: grid;
  place-content: center;
  background: var(--card);
  transition: border-color 120ms ease, background 120ms ease;
}
.item-check input:checked {
  background: var(--accent);
  border-color: var(--accent);
}
.item-check input:checked::after {
  content: "";
  width: 12px;
  height: 6px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translate(1px, -1px);
}
.item-check input:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 2px;
}
.item-body { flex: 1; min-width: 0; }
.item-id {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
  text-transform: uppercase;
}
.item-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  margin: 2px 0 6px;
  color: var(--ink);
  line-height: 1.3;
}
.item-verify {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0 0 8px;
}
.item-verify strong {
  color: var(--ink);
  font-weight: 600;
  letter-spacing: 0.05em;
  font-size: 12px;
  text-transform: uppercase;
}
.disclosure {
  margin-top: 10px;
  border-top: 1px dashed var(--line);
  padding-top: 10px;
}
.disclosure summary {
  cursor: pointer;
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
  list-style: none;
  user-select: none;
}
.disclosure summary::-webkit-details-marker { display: none; }
.disclosure summary::before {
  content: "+ ";
  display: inline-block;
  width: 14px;
}
.disclosure[open] summary::before { content: "− "; }
.disclosure-body {
  margin-top: 10px;
  font-size: 14px;
  color: var(--ink-soft);
}
.disclosure-body p { margin: 0 0 10px; }
.disclosure-body p:last-child { margin-bottom: 0; }

/* SNIPPET */
.snippet {
  position: relative;
  background: var(--code-bg);
  color: var(--code-ink);
  border-radius: var(--radius);
  padding: 14px 14px 14px 14px;
  margin: 10px 0 0;
  overflow: hidden;
}
.snippet pre {
  margin: 0;
  padding: 0;
  font-family: 'SF Mono', Menlo, Consolas, monospace;
  font-size: 12.5px;
  line-height: 1.55;
  white-space: pre;
  overflow-x: auto;
}
.copy-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--code-ink);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 11px;
  font-family: var(--font-body);
  cursor: pointer;
  letter-spacing: 0.04em;
  transition: background 120ms ease;
}
.copy-btn:hover { background: rgba(255, 255, 255, 0.22); }
.copy-btn.copied { background: var(--accent); border-color: var(--accent); color: #fff; }

/* PROMPTS PANEL */
.prompts-list {
  display: grid;
  gap: 14px;
}
.prompt-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px;
}
.prompt-card h3 {
  font-family: var(--font-display);
  font-size: 18px;
  margin: 0 0 8px;
  font-weight: 600;
}
.prompt-card p { margin: 0 0 8px; font-size: 14px; color: var(--ink-soft); }
.reminder-card {
  background: #F4F8F5;
  border: 1px solid var(--accent);
}
.reminder-card .badge {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border-radius: 999px;
  margin-bottom: 8px;
  text-transform: uppercase;
}

/* VERIFIED PANEL */
.verified {
  text-align: center;
  padding: 60px 20px 80px;
}
.verified-stamp {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(36px, 7vw, 64px);
  letter-spacing: 0.04em;
  color: var(--accent);
  padding: 18px 28px;
  border: 3px solid var(--accent);
  border-radius: 12px;
  transform: rotate(-1.5deg);
  margin-bottom: 24px;
}
.verified-date {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0 0 28px;
}
.verified-gates {
  display: grid;
  gap: 10px;
  max-width: 480px;
  margin: 0 auto 28px;
  text-align: left;
}
.verified-gate {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--card);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  font-weight: 600;
}
.verified-check { color: var(--accent); font-size: 20px; }
.verified-close {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--ink);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.4;
}

/* FOOTER */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg);
  padding: 24px 0 40px;
  margin-top: 40px;
}
.site-footer p { margin: 0 0 4px; font-size: 13px; color: var(--ink-soft); }
.site-footer .privacy { color: var(--ink-soft); }
.reset-btn {
  margin-top: 14px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  font-family: var(--font-body);
}
.reset-btn:hover { border-color: var(--accent-2); color: var(--accent); }

/* TOAST */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
  z-index: 100;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* MOBILE */
@media (max-width: 720px) {
  .nav-wrap {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
    padding: 8px 12px;
  }
  .nav-btn { padding: 8px 6px; }
  .nav-name { font-size: 12px; }
  .nav-num { font-size: 10px; }
  .nav-status { font-size: 10px; }
  .tagline { font-size: 15px; }
  .item { padding: 16px 14px; }
  .item-title { font-size: 17px; }
  .snippet pre { font-size: 11.5px; }
  .wrap { padding: 0 16px; }
}

@media (max-width: 420px) {
  .nav-name { font-size: 11px; line-height: 1.2; }
  .nav-status { display: none; }
  .brand-title { letter-spacing: 0.03em; }
}
