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

:root {
  --navy: #1a1a2e;
  --blue: #1a6bbf;
  --blue-light: #e8f0fb;
  --green: #2d8a4e;
  --amber: #b45309;
  --amber-bg: #fffbeb;
  --border: #dde2f0;
  --muted: #6b7280;
  --bg: #f5f7fa;
  --white: #ffffff;
  --radius: 10px;
  --shadow: 0 1px 4px rgba(0,0,0,.08), 0 4px 16px rgba(0,0,0,.06);
}

html { font-size: 16px; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--navy);
  line-height: 1.6;
  min-height: 100vh;
}

/* ── Header ── */
.site-header {
  background: var(--navy);
  color: #fff;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.site-header .logo { font-weight: 700; font-size: 1rem; letter-spacing: .02em; }
.site-header .vault-link {
  margin-left: auto;
  color: rgba(255,255,255,.6);
  font-size: .82rem;
  text-decoration: none;
}
.site-header .vault-link:hover { color: #fff; }

/* ── Layout ── */
main {
  max-width: 680px;
  margin: 0 auto;
  padding: 2rem 1.25rem 5rem;
}

/* ── Step progress ── */
.step-progress {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 2rem;
}
.step-progress .sp-node {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  font-weight: 700;
  flex-shrink: 0;
  border: 2px solid var(--border);
  background: var(--white);
  color: var(--muted);
}
.step-progress .sp-node.done {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}
.step-progress .sp-node.current {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}
.step-progress .sp-line {
  flex: 1;
  height: 2px;
  background: var(--border);
}
.step-progress .sp-line.done { background: var(--green); }

/* ── Page heading ── */
.page-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: .4rem;
}
.page-subtitle {
  color: var(--muted);
  margin-bottom: 1.75rem;
  font-size: .95rem;
}

/* ── Cards ── */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
}

/* ── Step cards on home ── */
.step-cards { display: flex; flex-direction: column; gap: .75rem; margin-bottom: 1.5rem; }
.step-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow);
  transition: border-color .15s, box-shadow .15s;
}
.step-card:hover { border-color: var(--blue); box-shadow: 0 2px 8px rgba(26,107,191,.15); }
.step-card .sc-num {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  font-size: .9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: .1rem;
}
.step-card .sc-body strong { display: block; font-size: 1rem; margin-bottom: .15rem; }
.step-card .sc-body span { font-size: .88rem; color: var(--muted); }
.step-card .sc-arrow { margin-left: auto; color: var(--muted); font-size: 1.1rem; align-self: center; }

/* ── Numbered steps ── */
.steps { list-style: none; padding: 0; counter-reset: step; }
.steps li {
  counter-increment: step;
  display: flex;
  gap: .9rem;
  padding: .75rem 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}
.steps li:last-child { border-bottom: none; }
.steps li::before {
  content: counter(step);
  background: var(--navy);
  color: #fff;
  font-size: .78rem;
  font-weight: 700;
  border-radius: 50%;
  min-width: 1.6rem;
  height: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: .15rem;
}
.steps li .step-text { flex: 1; }

/* ── Callouts ── */
.callout {
  border-left: 4px solid var(--amber);
  background: var(--amber-bg);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: .9rem 1.1rem;
  margin: 1rem 0;
  font-size: .9rem;
}
.callout strong { display: block; margin-bottom: .3rem; color: var(--amber); }
.callout-info {
  border-left-color: var(--blue);
  background: var(--blue-light);
}
.callout-info strong { color: var(--blue); }

/* ── Progressive disclosure (details/summary) ── */
details {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin: .75rem 0;
  background: var(--white);
  overflow: hidden;
}
details[open] { box-shadow: var(--shadow); }
summary {
  padding: .85rem 1.1rem;
  cursor: pointer;
  font-size: .92rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: .5rem;
  list-style: none;
  user-select: none;
}
summary::-webkit-details-marker { display: none; }
summary::before {
  content: "▸";
  font-size: .75rem;
  color: var(--muted);
  transition: transform .2s;
  flex-shrink: 0;
}
details[open] summary::before { transform: rotate(90deg); }
.details-body {
  padding: .25rem 1.1rem 1rem;
  font-size: .9rem;
  border-top: 1px solid var(--border);
  color: #374151;
}
.details-body p { margin-top: .6rem; }
.details-body ol, .details-body ul { padding-left: 1.25rem; margin-top: .5rem; }
.details-body li { margin-bottom: .3rem; }

/* ── Platform tabs ── */
.tabs { display: flex; gap: 0; margin-bottom: 0; border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; border: 1px solid var(--border); border-bottom: none; }
.tab-btn {
  flex: 1;
  padding: .65rem 1rem;
  background: var(--bg);
  border: none;
  cursor: pointer;
  font-size: .9rem;
  font-weight: 600;
  color: var(--muted);
  transition: background .15s, color .15s;
}
.tab-btn.active {
  background: var(--white);
  color: var(--navy);
  border-bottom: 2px solid var(--navy);
}
.tab-panel {
  display: none;
  background: var(--white);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
  padding: 1.25rem;
}
.tab-panel.active { display: block; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .7rem 1.4rem;
  border-radius: 8px;
  font-size: .95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: background .15s;
}
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: #2d2d4e; }
.btn-secondary { background: var(--white); color: var(--navy); border: 1px solid var(--border); }
.btn-secondary:hover { border-color: var(--navy); }
.btn-row { display: flex; gap: .75rem; align-items: center; margin-top: 1.75rem; flex-wrap: wrap; }

/* ── Google sign-in button ── */
.btn-google {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  padding: .65rem 1.4rem;
  background: #fff;
  color: #3c4043;
  border: 1px solid #dadce0;
  border-radius: 4px;
  font-size: .95rem;
  font-weight: 500;
  text-decoration: none;
  box-shadow: 0 1px 3px rgba(0,0,0,.12);
  transition: box-shadow .15s, background .15s;
  cursor: pointer;
}
.btn-google:hover { background: #f8f9fa; box-shadow: 0 2px 6px rgba(0,0,0,.18); }
.btn-google svg { flex-shrink: 0; }

/* ── Inline code ── */
code {
  background: #e8ecf4;
  padding: .15em .4em;
  border-radius: 4px;
  font-size: .87em;
  font-family: "SF Mono", "Fira Code", Consolas, monospace;
}

/* ── Help index ── */
.help-group-title {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
  margin: 1.5rem 0 .5rem;
}

/* ── Footer ── */
.site-footer {
  text-align: center;
  font-size: .8rem;
  color: var(--muted);
  padding: 2rem 1rem;
}
.site-footer a { color: var(--blue); text-decoration: none; }

/* ── Mobile ── */
@media (max-width: 520px) {
  .page-title { font-size: 1.25rem; }
  .btn-row { flex-direction: column; align-items: stretch; }
  .btn { justify-content: center; }
}
