/* Shared styles for /guides/* and /bye.html. Same palette and font as the landing page. */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --primary: #8b5cf6;
  --pink: #ec4899;
  --green: #22c55e;
  --bg: #0a0a0f;
  --bg-card: #12121a;
  --bg-card-hover: #1a1a25;
  --text: #ffffff;
  --body: #e4e4e7;
  --text-muted: #a1a1aa;
  --link: #c4b5fd;
  --border: rgba(255,255,255,0.08);
  --border-strong: rgba(255,255,255,0.16);
}
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--body);
  line-height: 1.7;
  font-size: 17px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1 0 auto; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header {
  background: rgba(10,10,15,0.9);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}
.site-header .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.brand-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: linear-gradient(135deg, #d946ef, #8b5cf6);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 700; color: #fff;
}
.brand-text { font-size: 22px; font-weight: 800; letter-spacing: -0.5px; }
.brand-text span { background: linear-gradient(135deg, var(--primary), var(--pink)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.site-header nav { display: flex; flex-wrap: wrap; gap: 8px 28px; align-items: center; }
.site-header nav a { color: var(--text-muted); text-decoration: none; font-size: 15px; font-weight: 500; }
.site-header nav a:hover, .site-header nav a[aria-current="page"] { color: var(--text); }

/* Links and focus */
a { color: var(--link); text-underline-offset: 3px; }
a:hover { color: #ddd6fe; }
a:focus-visible, button:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid #c4b5fd;
  outline-offset: 3px;
  border-radius: 6px;
}
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 2000;
  background: #ffffff; color: #0a0a0f; padding: 12px 20px; border-radius: 10px;
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 16px; }

/* Article */
.article { max-width: 760px; margin: 0 auto; padding: 40px 24px 72px; }
.breadcrumbs { font-size: 14px; color: var(--text-muted); margin-bottom: 24px; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; color: var(--text-muted); }
.article h1 {
  font-size: clamp(2rem, 5vw, 2.8rem);
  line-height: 1.15; letter-spacing: -1px; font-weight: 800;
  color: var(--text);
  margin-bottom: 14px;
}
.byline { color: var(--text-muted); font-size: 14px; margin-bottom: 28px; }
.article h2 {
  font-size: 1.6rem; line-height: 1.25; font-weight: 700; color: var(--text);
  margin: 44px 0 14px; letter-spacing: -0.4px;
  scroll-margin-top: 20px;
}
.article h3 { font-size: 1.15rem; font-weight: 700; color: var(--text); margin: 26px 0 8px; }
.article p { margin-bottom: 16px; }
.article ul, .article ol { margin: 0 0 18px; padding-left: 24px; }
.article li { margin-bottom: 8px; }
.article strong { color: var(--text); }
.article code { font-size: 0.9em; background: rgba(255,255,255,0.08); padding: 2px 6px; border-radius: 6px; }

.quick-answer {
  background: rgba(139,92,246,0.12);
  border: 1px solid rgba(139,92,246,0.35);
  border-left: 4px solid var(--primary);
  border-radius: 14px;
  padding: 18px 22px;
  margin: 0 0 28px;
}
.quick-answer p { margin: 0; }
.quick-answer .label { display: block; font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--link); margin-bottom: 6px; }

.toc {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 22px;
  margin: 0 0 12px;
}
.toc h2 { font-size: 1rem; margin: 0 0 8px; padding: 0; border: 0; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); }
.toc ol { margin: 0; padding-left: 22px; }
.toc li { margin-bottom: 4px; }

.table-wrap { overflow-x: auto; margin: 0 0 22px; border: 1px solid var(--border-strong); border-radius: 12px; }
table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 15px; line-height: 1.5; }
caption { text-align: left; padding: 12px 16px; color: var(--text-muted); font-size: 14px; }
th, td { text-align: left; vertical-align: top; padding: 12px 16px; border-top: 1px solid var(--border); }
thead th { background: var(--bg-card-hover); color: var(--text); border-top: 0; }
tbody th { color: var(--text); font-weight: 600; }

.checklist { list-style: none; padding-left: 0 !important; }
.checklist li { position: relative; padding-left: 34px; margin-bottom: 12px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 5px;
  width: 20px; height: 20px; border: 2px solid var(--primary); border-radius: 5px;
}
.step-time { display: inline-block; font-size: 13px; font-weight: 600; color: #0a0a0f; background: #c4b5fd; border-radius: 100px; padding: 2px 10px; margin-left: 8px; vertical-align: middle; }

.note {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 18px;
  margin: 0 0 20px;
  font-size: 15px;
  color: var(--body);
}
.formula {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: 14px 18px;
  margin: 0 0 18px;
  font-weight: 600;
  color: var(--text);
  overflow-x: auto;
}

.cta-box {
  background: linear-gradient(135deg, rgba(139,92,246,0.12), rgba(236,72,153,0.12));
  border: 1px solid rgba(139,92,246,0.3);
  border-radius: 20px;
  padding: 28px;
  margin: 32px 0;
}
.cta-box h3 { margin: 0 0 8px; font-size: 1.3rem; }
.cta-box p { margin-bottom: 18px; }
.cta-box .fine { margin: 14px 0 0; font-size: 14px; color: var(--text-muted); }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: 14px; font-weight: 600; font-size: 16px;
  text-decoration: none; cursor: pointer; border: 0;
  background: linear-gradient(135deg, #7c3aed, #db2777);
  color: #ffffff;
  box-shadow: 0 4px 24px rgba(139,92,246,0.35);
}
.btn:hover { color: #ffffff; transform: translateY(-2px); box-shadow: 0 8px 32px rgba(139,92,246,0.5); }
.btn-secondary { background: var(--bg-card-hover); border: 1px solid var(--border-strong); box-shadow: none; }

.related { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border); }
.related h2 { margin-top: 0; font-size: 1.2rem; }

/* Hub cards */
.hub { max-width: 900px; margin: 0 auto; padding: 48px 24px 72px; }
.hub h1 { font-size: clamp(2rem, 5vw, 2.8rem); font-weight: 800; letter-spacing: -1px; color: var(--text); line-height: 1.15; margin-bottom: 12px; }
.hub .lead { color: var(--text-muted); font-size: 19px; margin-bottom: 36px; max-width: 620px; }
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; list-style: none; padding: 0; }
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 26px;
  height: 100%;
  display: flex; flex-direction: column;
}
.card:hover { border-color: rgba(139,92,246,0.4); background: var(--bg-card-hover); }
.card h2 { font-size: 1.25rem; line-height: 1.3; margin-bottom: 10px; color: var(--text); }
.card h2 a { color: var(--text); text-decoration: none; }
.card h2 a::after { content: ""; position: absolute; inset: 0; }
.card { position: relative; }
.card p { color: var(--text-muted); font-size: 15.5px; margin-bottom: 14px; }
.card .more { margin-top: auto; font-weight: 600; font-size: 15px; color: var(--link); }

/* Bye page */
.bye { max-width: 640px; margin: 0 auto; padding: 56px 24px 72px; text-align: center; }
.bye h1 { font-size: clamp(2rem, 6vw, 2.8rem); font-weight: 800; letter-spacing: -1px; color: var(--text); margin-bottom: 14px; }
.bye .lead { color: var(--text-muted); font-size: 18px; margin-bottom: 28px; }
.reasons { display: grid; gap: 12px; list-style: none; padding: 0; margin: 0 0 24px; }
.reason {
  width: 100%;
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  padding: 16px 20px;
  font: inherit; font-weight: 600; font-size: 16px;
  cursor: pointer; text-align: center;
}
.reason:hover:not(:disabled) { background: var(--bg-card-hover); border-color: var(--primary); }
.reason:disabled { cursor: default; opacity: 0.6; }
.reason[aria-pressed="true"] { border-color: var(--primary); background: rgba(139,92,246,0.2); opacity: 1; }
.thanks { min-height: 1.7em; font-weight: 600; color: #86efac; margin-bottom: 20px; }
.more-link { color: var(--text-muted); font-size: 15px; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 36px 0 32px; text-align: center; color: var(--text-muted); font-size: 15px; }
.site-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin-bottom: 16px; }
.site-footer nav a { color: #c7d2fe; }

@media (max-width: 700px) {
  body { font-size: 16.5px; }
  .article { padding: 28px 18px 56px; }
  .article h2 { font-size: 1.4rem; margin-top: 36px; }
  .cards { grid-template-columns: 1fr; }
  .cta-box { padding: 22px; }
  .wrap { padding: 0 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
