/* Shared stylesheet for /resources/* guides + hub.
   Source of truth — all resource pages link this instead of inlining. */

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

:root {
  --navy:   #0E2342;
  --blue:   #1B5FA8;
  --teal:   #0D9B8A;
  --teal-lt:#E6F7F5;
  --white:  #FFFFFF;
  --off:    #F8F9FB;
  --ink:    #111827;
  --body:   #4B5563;
  --muted:  #9CA3AF;
  --border: #E5E7EB;
  --ff:     'Plus Jakarta Sans', sans-serif;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--ff);
  background: var(--white); color: var(--ink); line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ===== NAV ===== */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  background: var(--navy); height: 64px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2rem; border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav-logo {
  display: flex; align-items: center; gap: 9px; text-decoration: none;
  font-size: 1.05rem; font-weight: 800; color: var(--white); letter-spacing: -0.02em;
}
.nav-mark {
  height: 30px; min-width: 42px; padding: 0 8px; border-radius: 7px;
  background: var(--teal); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 0.78rem; letter-spacing: 0.04em;
}
.nav-back {
  text-decoration: none; font-size: 0.875rem; font-weight: 500;
  color: rgba(255,255,255,0.7); padding: 0.45rem 0.85rem; border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}
.nav-back:hover { color: var(--white); background: rgba(255,255,255,0.07); }

/* ===== PAGE HEAD ===== */
.page-head {
  padding: 10rem 2rem 4rem;
  max-width: 820px; margin: 0 auto;
  border-bottom: 1px solid var(--border);
}
.page-head.hub { max-width: 980px; padding-bottom: 3rem; border-bottom: 0; }
.page-head .tag {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--teal); margin-bottom: 1.25rem;
}
.page-head .tag::before { content: ''; width: 18px; height: 2px; background: var(--teal); }
.page-head h1 {
  font-size: clamp(2rem, 5vw, 3rem); font-weight: 800;
  letter-spacing: -0.025em; color: var(--navy); line-height: 1.1;
  margin-bottom: 1rem;
}
.page-head h1 em { font-style: italic; color: var(--blue); font-weight: 700; }
.page-head .subtitle {
  font-size: 1.1rem; color: var(--body); font-weight: 400; line-height: 1.5;
  margin-bottom: 1.5rem; max-width: 640px;
}
.page-head .meta {
  display: flex; gap: 1.25rem; flex-wrap: wrap; font-size: 0.85rem;
  color: var(--muted); font-weight: 500;
}
.page-head .meta span { display: inline-flex; align-items: center; gap: 6px; }
.page-head .meta strong { color: var(--ink); font-weight: 600; }

/* ===== ARTICLE ===== */
.guide {
  max-width: 820px; margin: 0 auto;
  padding: 3rem 2rem 2rem;
  color: var(--body);
}
.guide p { margin-bottom: 1rem; font-size: 1rem; }
.guide a {
  color: var(--teal); text-decoration: underline;
  text-decoration-thickness: 1px; text-underline-offset: 3px;
}
.guide a:hover { color: var(--blue); }
.guide strong { color: var(--ink); font-weight: 700; }
.guide code {
  background: var(--off); border: 1px solid var(--border);
  padding: 0.1rem 0.4rem; border-radius: 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88rem; color: var(--navy);
}
.guide pre {
  background: var(--ink); color: #E5E7EB;
  padding: 1rem 1.25rem; border-radius: 8px;
  overflow-x: auto; font-size: 0.85rem; line-height: 1.55;
  margin: 0.75rem 0 1.25rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.guide pre code { background: transparent; border: 0; padding: 0; color: inherit; font-size: inherit; }
.guide ul, .guide ol { margin: 0.4rem 0 1rem 1.25rem; }
.guide li { margin-bottom: 0.4rem; }

.guide .lede {
  background: var(--off); border-left: 3px solid var(--teal);
  padding: 1.25rem 1.5rem; margin-bottom: 2.5rem;
  border-radius: 0 8px 8px 0;
  font-size: 1rem; color: var(--ink);
}

.guide h2 {
  font-size: 1.75rem; font-weight: 800; color: var(--navy);
  letter-spacing: -0.02em; margin: 3rem 0 1.25rem;
  scroll-margin-top: 80px;
}
.guide h2 .num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.75rem; height: 1.75rem; margin-right: 0.5rem;
  background: var(--teal-lt); color: var(--teal); border-radius: 6px;
  font-size: 0.95rem; font-weight: 800;
}
.guide h3 {
  font-size: 1.1rem; font-weight: 700; color: var(--navy);
  margin: 1.75rem 0 0.5rem;
}

/* ===== WHY GRID (cards) ===== */
.why-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem;
  margin: 1.5rem 0 2rem;
}
.why-card {
  background: var(--off); border: 1px solid var(--border);
  border-radius: 8px; padding: 1.25rem 1.4rem;
}
.why-card .icon {
  width: 36px; height: 36px; border-radius: 8px;
  background: var(--teal); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; font-weight: 800; margin-bottom: 0.75rem;
}
.why-card h3 {
  font-size: 1rem; color: var(--navy); margin: 0 0 0.4rem;
  font-weight: 700;
}
.why-card p {
  font-size: 0.92rem; color: var(--body); line-height: 1.55; margin: 0;
}

/* ===== CALLOUTS ===== */
.guide .tip, .step .tip {
  background: var(--teal-lt); border-left: 3px solid var(--teal);
  padding: 0.7rem 1rem; margin: 0.6rem 0;
  border-radius: 0 6px 6px 0; font-size: 0.95rem; color: var(--ink);
}
.guide .tip strong, .step .tip strong { color: var(--navy); }
.guide .warn, .step .warn {
  background: #FFF7ED; border-left: 3px solid #F59E0B;
  padding: 0.7rem 1rem; margin: 0.6rem 0;
  border-radius: 0 6px 6px 0; font-size: 0.95rem; color: var(--ink);
}
.guide .warn strong, .step .warn strong { color: #B45309; }

.caveat {
  background: #FFF7ED; border-left: 3px solid #F59E0B;
  padding: 1rem 1.25rem; border-radius: 0 8px 8px 0;
  margin: 1.5rem 0 2rem; font-size: 0.95rem; color: var(--ink);
}
.caveat strong { color: #B45309; }

/* ===== STEPS ===== */
.steps { margin: 1.5rem 0 1rem; }
.step {
  position: relative; padding-left: 4rem;
  padding-bottom: 2rem; margin-bottom: 0;
  border-left: 2px solid var(--border); margin-left: 1.25rem;
}
.step:last-child { border-left-color: transparent; padding-bottom: 0.5rem; }
.step .step-num {
  position: absolute; left: -1.25rem; top: -0.35rem;
  width: 2.5rem; height: 2.5rem; border-radius: 50%;
  background: var(--navy); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.95rem; font-weight: 800;
  border: 3px solid var(--white); box-shadow: 0 0 0 1px var(--border);
}
.step h3 {
  font-size: 1.15rem; font-weight: 700; color: var(--navy);
  margin: 0 0 0.5rem;
}
.step p { font-size: 0.95rem; margin-bottom: 0.6rem; }

/* ===== GOTCHAS ===== */
.gotchas {
  background: var(--off); border: 1px solid var(--border);
  border-radius: 10px; padding: 1.5rem 1.75rem;
  margin: 2rem 0;
}
.gotchas h3 {
  font-size: 0.85rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted);
  margin: 0 0 1rem; font-weight: 700;
}
.gotchas .item {
  font-size: 0.95rem; line-height: 1.6; margin-bottom: 0.85rem;
}
.gotchas .item:last-child { margin-bottom: 0; }
.gotchas .item strong { color: var(--navy); }

/* ===== TIER TABLE ===== */
.tier-table {
  border: 1px solid var(--border); border-radius: 10px;
  overflow: hidden; margin: 1.5rem 0 2rem; background: var(--white);
}
.tier-row {
  display: grid; grid-template-columns: 220px 1fr; gap: 1.5rem;
  padding: 1rem 1.25rem; border-bottom: 1px solid var(--border);
}
.tier-row:last-child { border-bottom: 0; }
.tier-row .tier-name { font-weight: 800; color: var(--navy); font-size: 0.98rem; }
.tier-row .tier-cost {
  font-size: 0.78rem; color: var(--teal); font-weight: 700;
  letter-spacing: 0.04em; margin-top: 0.2rem; text-transform: uppercase;
}
.tier-row .tier-desc { font-size: 0.95rem; color: var(--body); }
.tier-row.featured { background: var(--teal-lt); }

/* ===== NEXT PATHS ===== */
.next-paths {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
  margin: 1.5rem 0 1rem;
}
.path-card {
  background: var(--off); border: 1px solid var(--border);
  border-radius: 10px; padding: 1.5rem 1.6rem;
  display: flex; flex-direction: column;
}
.path-card.featured {
  background: var(--navy); color: rgba(255,255,255,0.85);
  border-color: var(--navy);
}
.path-card .label {
  font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase;
  font-weight: 700; color: var(--teal); margin-bottom: 0.5rem;
}
.path-card.featured .label { color: var(--teal); }
.path-card h3 {
  font-size: 1.2rem; color: var(--navy); margin: 0 0 0.6rem;
  font-weight: 800;
}
.path-card.featured h3 { color: var(--white); }
.path-card p {
  font-size: 0.95rem; line-height: 1.6; margin-bottom: 0.85rem;
  color: var(--body);
}
.path-card.featured p { color: rgba(255,255,255,0.78); }
.path-card .btn { margin-top: auto; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 0.75rem 1.25rem; border-radius: 6px;
  font-size: 0.92rem; font-weight: 700; text-decoration: none;
  transition: transform 0.12s, background 0.15s, color 0.15s;
  cursor: pointer; border: 0;
}
.btn-primary { background: var(--teal); color: var(--white); }
.btn-primary:hover { background: #0B8576; transform: translateY(-1px); color: var(--white); }
.btn-ghost {
  background: transparent; color: var(--navy);
  border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); }

/* Specificity override: .guide a tints button text teal otherwise */
.guide a.btn { text-decoration: none; }
.guide a.btn-primary { color: var(--white); }
.guide a.btn-primary:hover { color: var(--white); }
.guide a.btn-ghost { color: var(--navy); }
.guide a.btn-ghost:hover { color: var(--teal); }

/* ===== CTA BANNER ===== */
.cta-banner {
  margin: 3rem 0 2rem;
  background: linear-gradient(135deg, var(--navy), #163057);
  color: var(--white); border-radius: 12px;
  padding: 2.25rem 2rem; text-align: center;
}
.cta-banner h2 {
  color: var(--white); font-size: 1.5rem; font-weight: 800;
  margin: 0 0 0.6rem; letter-spacing: -0.02em;
}
.cta-banner h2 .num { display: none; }
.cta-banner p {
  color: rgba(255,255,255,0.78); font-size: 1rem;
  margin: 0 auto 1.25rem; max-width: 540px;
}
.cta-banner .btn-primary { font-size: 1rem; padding: 0.85rem 1.6rem; }

/* ===== FAQ ===== */
.faq { margin: 2rem 0 1rem; }
.faq-item {
  border-bottom: 1px solid var(--border); padding: 1.25rem 0;
}
.faq-item:last-child { border-bottom: 0; }
.faq-item h3 {
  font-size: 1.05rem; color: var(--navy); margin: 0 0 0.5rem;
  font-weight: 700;
}
.faq-item p { font-size: 0.95rem; margin: 0; }

/* ===== HUB ===== */
.hub {
  max-width: 980px; margin: 0 auto;
  padding: 1rem 2rem 2rem;
}
.hub-section { margin-bottom: 3rem; }
.hub-section .label {
  font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); font-weight: 700; margin-bottom: 1rem;
  display: flex; align-items: center; gap: 0.75rem;
}
.hub-section .label::after { content: ''; flex: 1; height: 1px; background: var(--border); }

.guide-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem;
}
.guide-grid.three { grid-template-columns: repeat(3, 1fr); }
.guide-card {
  display: flex; flex-direction: column;
  background: var(--off); border: 1px solid var(--border);
  border-radius: 12px; padding: 1.5rem 1.6rem;
  text-decoration: none; color: inherit;
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
  min-height: 200px;
}
.guide-card:hover {
  border-color: var(--teal);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(14,35,66,0.08);
}
.guide-card.upcoming {
  background: var(--white); opacity: 0.7;
  cursor: default; min-height: 160px;
}
.guide-card.upcoming:hover { transform: none; border-color: var(--border); box-shadow: none; }
.card-tag {
  font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase;
  font-weight: 700; color: var(--teal); margin-bottom: 0.65rem;
}
.guide-card.upcoming .card-tag { color: var(--muted); }
.guide-card h3 {
  font-size: 1.15rem; font-weight: 800; color: var(--navy);
  margin: 0 0 0.5rem; line-height: 1.25; letter-spacing: -0.015em;
}
.guide-card p {
  font-size: 0.93rem; line-height: 1.55; color: var(--body);
  margin: 0 0 1rem; flex-grow: 1;
}
.card-cta {
  font-size: 0.88rem; font-weight: 700; color: var(--teal);
  display: inline-flex; align-items: center; gap: 4px;
  margin-top: auto; transition: gap 0.15s, color 0.15s;
}
.guide-card:hover .card-cta { color: var(--blue); gap: 8px; }

.site-docs { background: var(--off); border-radius: 12px; padding: 1.5rem 1.75rem; }
.site-docs ul { list-style: none; display: flex; gap: 1.5rem; flex-wrap: wrap; padding: 0; margin: 0; }
.site-docs ul li { margin: 0; }
.site-docs ul a {
  color: var(--navy); text-decoration: none; font-weight: 600;
  font-size: 0.95rem; border-bottom: 1px solid transparent;
  padding-bottom: 1px; transition: color 0.15s, border-color 0.15s;
}
.site-docs ul a:hover { color: var(--teal); border-bottom-color: var(--teal); }

/* ===== FOOTER ===== */
footer {
  background: var(--navy); color: rgba(255,255,255,0.7);
  padding: 3rem 2rem 2rem; text-align: center;
}
footer .brand {
  display: inline-flex; align-items: center; gap: 9px;
  color: var(--white); font-weight: 800; font-size: 1rem;
  letter-spacing: -0.02em; margin-bottom: 0.75rem; text-decoration: none;
}
footer .brand-mark {
  height: 28px; min-width: 40px; padding: 0 8px; border-radius: 6px;
  background: var(--teal); display: inline-flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 0.72rem; letter-spacing: 0.04em;
}
footer .tagline { font-size: 0.85rem; margin-bottom: 1rem; font-style: italic; }
footer .links { display: flex; gap: 1.25rem; justify-content: center; flex-wrap: wrap; font-size: 0.82rem; margin-bottom: 1rem; }
footer .links a {
  color: rgba(255,255,255,0.7); text-decoration: none;
  border-bottom: 1px solid transparent; padding-bottom: 1px;
}
footer .links a:hover { color: var(--white); border-bottom-color: var(--teal); }
footer .copy { font-size: 0.78rem; color: rgba(255,255,255,0.4); }

/* ===== MOBILE ===== */
@media (max-width: 820px) {
  .guide-grid.three { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .why-grid { grid-template-columns: 1fr; }
  .next-paths { grid-template-columns: 1fr; }
  .tier-row { grid-template-columns: 1fr; gap: 0.4rem; }
}
@media (max-width: 640px) {
  nav { padding: 0 1rem; }
  .page-head { padding: 7rem 1.25rem 3rem; }
  .guide { padding: 2.5rem 1.25rem 2rem; }
  .guide h2 { font-size: 1.4rem; }
  .step { padding-left: 3.25rem; }
  .step .step-num { width: 2.1rem; height: 2.1rem; font-size: 0.85rem; left: -1.05rem; }
  .cta-banner { padding: 1.75rem 1.25rem; }
  .cta-banner h2 { font-size: 1.25rem; }
  .hub { padding: 0.5rem 1.25rem 2rem; }
  .guide-grid, .guide-grid.three { grid-template-columns: 1fr; }
  .site-docs ul { flex-direction: column; gap: 0.85rem; }
}
