/*
 * page-resources.css
 * Loaded only on the Resources / Startup 101 page (page-resources.php).
 */

/* ── Section label override ──────────────────────────────────────── */
.section-label { color: var(--blue); display: block; gap: 0; }
.section-label::after { display: none; }

/* ── Hero ────────────────────────────────────────────────────────── */
.hero {
  display: block; min-height: 0;
  padding-top: 72px; padding-bottom: 0; background: var(--dark); overflow: hidden; position: relative;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 5% 80%, rgba(37,132,197,0.1) 0%, transparent 45%),
              radial-gradient(ellipse at 90% 10%, rgba(240,120,48,0.08) 0%, transparent 45%);
  pointer-events: none;
}
.hero-top { max-width: 1300px; margin: 0 auto; padding: 56px 56px 40px; position: relative; z-index: 1; }
.hero-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(240,120,48,0.14); color: #f07830;
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 5px 14px; border-radius: 100px; margin-bottom: 16px;
  border: 1px solid rgba(240,120,48,0.24);
}
.hero h1 { font-size: clamp(2.2rem,4vw,3.4rem); font-weight: 800; color: white; letter-spacing: -0.04em; line-height: 1.05; margin-bottom: 10px; }
.hero h1 span { color: #f07830; }
.hero-sub { font-size: 0.92rem; color: rgba(255,255,255,0.38); font-weight: 300; line-height: 1.8; max-width: 580px; margin-bottom: 24px; }
.hero-tools-cta {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 32px; margin-bottom: 40px;
  border-radius: 10px;
  background: #2584c5;
  color: #fff;
  font-size: 0.9rem; font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  box-shadow: 0 8px 28px rgba(37,132,197,0.35);
}
.hero-tools-cta:hover {
  background: #1e76b5;
  box-shadow: 0 12px 36px rgba(37,132,197,0.48);
  transform: translateY(-2px);
}
.hero-tools-cta svg {
  width: 16px; height: 16px; flex-shrink: 0;
  fill: none; stroke: #fff; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
  transition: transform 0.2s;
}
.hero-tools-cta:hover svg { transform: translateX(3px); }

/* ── Phase picker ────────────────────────────────────────────────── */
.phase-picker {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 0;
  border-top: 1px solid rgba(255,255,255,0.06); max-width: 1188px; margin: 0 auto; position: relative; z-index: 1;
}
.pp-card {
  padding: 28px 32px 32px; cursor: pointer; transition: background 0.2s;
  border-right: 1px solid rgba(255,255,255,0.05); position: relative; overflow: hidden;
}
.pp-card:last-child { border-right: none; }
.pp-card:hover { background: rgba(255,255,255,0.04); }
.pp-card::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px;
  background: var(--pc); transform: scaleX(0); transition: transform 0.25s; transform-origin: left;
}
.pp-card:hover::after { transform: scaleX(1); }
.pp-num { font-size: 1.8rem; font-weight: 800; letter-spacing: -0.05em; line-height: 1; color: var(--pc); margin-bottom: 8px; opacity: 0.9; }
.pp-label { font-size: 0.88rem; font-weight: 700; color: white; margin-bottom: 4px; }
.pp-sub { font-size: 0.65rem; color: rgba(255,255,255,0.28); line-height: 1.5; }
.pp-start-badge {
  display: inline-flex; align-items: center; gap: 4px;
  background: #f07830; color: white; font-size: 0.6rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; padding: 4px 10px;
  border-radius: 100px; margin-bottom: 14px; width: fit-content;
}
.pp-prog { position: absolute; bottom: 0; left: 0; height: 2px; background: var(--pc); transition: width 0.3s; width: 0; }
.pp-arrow { position: absolute; bottom: 20px; right: 20px; color: var(--pc); opacity: 0; transition: opacity 0.2s; font-size: 1rem; }
.pp-card:hover .pp-arrow { opacity: 1; }

/* ── Sticky journey nav ──────────────────────────────────────────── */
.j-nav { position: sticky; top: 72px; z-index: 90; background: white; border-bottom: 1px solid var(--border); }
.j-nav-inner { max-width: 1300px; margin: 0 auto; padding: 0 56px; display: flex; align-items: center; gap: 0; }
.j-pill {
  display: flex; align-items: center; gap: 7px; padding: 13px 18px; border: none; background: none;
  cursor: pointer; font-family: 'Poppins', sans-serif; border-bottom: 2.5px solid transparent;
  transition: all 0.2s; white-space: nowrap; position: relative;
}
.j-pill:hover { background: rgba(0,0,0,0.02); }
.j-pill.active { border-bottom-color: var(--pc); }
.j-pill.active .jp-num { background: var(--pc); color: white; border-color: var(--pc); }
.j-pill.active .jp-label { color: var(--pc); font-weight: 700; }
.jp-num {
  width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--border);
  font-size: 0.6rem; font-weight: 700; display: flex; align-items: center; justify-content: center;
  color: var(--gray); transition: all 0.2s;
}
.jp-label { font-size: 0.76rem; font-weight: 500; color: var(--gray); }
.jp-prog { position: absolute; bottom: -1px; left: 0; height: 2.5px; width: 0; transition: width 0.3s; }
.j-spacer { flex: 1; }
.j-all-count { font-size: 0.72rem; color: var(--gray); padding: 0 20px; }

/* ── Content wrapper ─────────────────────────────────────────────── */
.content { max-width: 1300px; margin: 0 auto; padding: 0 56px 80px; }

/* ── Phase sections ──────────────────────────────────────────────── */
.phase-section { padding: 40px 0; scroll-margin-top: 136px; border-bottom: 1px solid var(--border); }
.phase-section:last-child { border-bottom: none; }

/* ── Journey band ────────────────────────────────────────────────── */
.journey-band {
  background: white; border-radius: 14px; margin-bottom: 24px;
  overflow: hidden; border: 1.5px solid var(--border); transition: box-shadow 0.2s, border-color 0.2s;
}
.journey-band:hover { box-shadow: 0 8px 28px rgba(16,20,31,0.08); }
.jb-stripe { height: 4px; width: 100%; }
.jb-header {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center;
  gap: 20px; padding: 24px 28px 20px; cursor: pointer; user-select: none;
}
.jb-num { font-size: 3rem; font-weight: 800; letter-spacing: -0.07em; line-height: 1; flex-shrink: 0; }
.jb-title { font-size: 1.05rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 3px; }
.jb-sub { font-size: 0.65rem; color: var(--gray); }
.jb-right { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; flex-shrink: 0; }
.jb-cta-open {
  display: flex; align-items: center; gap: 6px; font-size: 0.72rem; font-weight: 700;
  padding: 7px 16px; border-radius: 100px; border: 1.5px solid; transition: all 0.18s; white-space: nowrap;
  background: transparent; cursor: pointer; font-family: 'Poppins', sans-serif;
}
.jb-cta-open svg { width: 12px; height: 12px; transition: transform 0.25s; }
.jb-cta-open.is-open svg { transform: rotate(180deg); }
.jb-prog-row { display: flex; align-items: center; gap: 10px; }
.jb-prog-label { font-size: 0.65rem; font-weight: 600; white-space: nowrap; color: var(--gray); }
.jb-progress { width: 120px; height: 6px; background: var(--border); border-radius: 3px; overflow: hidden; }
.jb-prog-bar { height: 100%; border-radius: 3px; width: 0; transition: width 0.4s; }
.jb-teaser { padding: 14px 28px 18px; border-top: 1px solid var(--border); }
.jb-teaser-items { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.jb-t-item {
  display: flex; align-items: center; gap: 6px; background: var(--light);
  border-radius: 6px; padding: 5px 10px; font-size: 0.68rem; color: var(--dark); font-weight: 400;
}
.jb-t-check { width: 12px; height: 12px; border-radius: 3px; border: 1.5px solid; flex-shrink: 0; }
.jb-t-more { font-size: 0.68rem; font-weight: 600; cursor: pointer; padding: 5px 12px; border-radius: 6px; background: transparent; transition: opacity 0.15s; }
.jb-t-more:hover { opacity: 0.7; text-decoration: underline; }
.jb-teaser-label { font-size: 0.6rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gray); margin-bottom: 10px; }
.jb-teaser-more { font-size: 0.63rem; color: var(--gray); white-space: nowrap; padding-left: 8px; flex-shrink: 0; }
.jb-body { padding: 0 28px 24px; }
.key-q { padding: 14px 16px; border-radius: 8px; margin-bottom: 20px; }
.kq-label { font-size: 0.58rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 4px; }
.kq-text { font-size: 0.88rem; font-weight: 600; color: var(--dark); line-height: 1.5; font-style: italic; }
.phase-narrative { font-size: 0.85rem; color: var(--gray); line-height: 1.75; font-weight: 300; margin-bottom: 24px; max-width: 720px; }
.jb-two-col { display: grid; grid-template-columns: 1fr 320px; gap: 24px; }

/* ── Checklist ───────────────────────────────────────────────────── */
.checklist-title, .success-title {
  font-size: 0.68rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--dark); margin-bottom: 12px; display: flex; align-items: center; gap: 6px;
}
.success-icon { width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.65rem; font-weight: 700; }
.checklist { display: flex; flex-direction: column; gap: 6px; }
.check-item {
  display: flex; align-items: flex-start; gap: 10px; cursor: pointer; padding: 8px 10px;
  border-radius: 8px; transition: background 0.15s; border: 1.5px solid transparent;
}
.check-item:hover { background: rgba(0,0,0,0.02); }
.check-item.checked { background: rgba(0,0,0,0.02); }
.check-item.checked .check-text { color: var(--gray); text-decoration: line-through; text-decoration-color: rgba(0,0,0,0.15); }
.check-box {
  width: 18px; height: 18px; border-radius: 4px; border: 1.5px solid var(--border);
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  transition: all 0.18s; margin-top: 1px; background: white;
}
.check-item.checked .check-box { border-color: currentColor; background: currentColor; }
.check-mark { display: flex; align-items: center; justify-content: center; color: white; opacity: 0; transition: opacity 0.15s; }
.check-item.checked .check-mark { opacity: 1; }
.check-text { font-size: 0.8rem; color: var(--dark); line-height: 1.45; flex: 1; }
a.check-text { text-decoration: none; color: var(--dark); }
a.check-text:hover { text-decoration: underline; }
.check-tag {
  font-size: 0.56rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--gray); background: var(--light); padding: 2px 6px; border-radius: 3px;
  white-space: nowrap; height: fit-content; margin-top: 2px;
}

/* ── Tool chips ──────────────────────────────────────────────────── */
.tool-chips { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
.tool-chips-label { font-size: 0.6rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gray); margin-bottom: 8px; }
.tool-chip {
  display: inline-flex; padding: 4px 12px; border-radius: 100px; border: 1.5px solid;
  font-size: 0.68rem; font-weight: 600; text-decoration: none; margin: 0 4px 4px 0; transition: all 0.15s;
}
.tool-chip:hover { opacity: 0.7; }

/* ── Success criteria ────────────────────────────────────────────── */
.success-wrap { background: var(--light); border-radius: 10px; padding: 18px; }
.sc-item { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 10px; font-size: 0.78rem; color: var(--dark); line-height: 1.45; }
.sc-item:last-child { margin-bottom: 0; }
.sc-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; margin-top: 5px; }

/* ── Phase resources ─────────────────────────────────────────────── */
.pr-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.pr-title { font-size: 0.72rem; font-weight: 700; color: var(--dark); text-transform: uppercase; letter-spacing: 0.06em; }
.pr-type-pills { display: flex; gap: 4px; }
.pr-pill {
  padding: 4px 12px; border-radius: 100px; border: 1.5px solid var(--border);
  font-size: 0.68rem; font-weight: 500; cursor: pointer; background: white; color: var(--dark);
  transition: all 0.13s; font-family: 'Poppins', sans-serif;
}
.pr-pill:hover { border-color: var(--dark); }
.pr-pill.active { background: var(--dark); color: white; border-color: var(--dark); }

/* ── Resource grid ───────────────────────────────────────────────── */
.res-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; }
.res-card {
  background: white; border-radius: 12px; overflow: hidden; border: 1.5px solid var(--border);
  transition: all 0.2s; display: flex; flex-direction: column;
}
.res-card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(16,20,31,0.09); border-color: rgba(16,20,31,0.12); }
.res-card.hidden { display: none; }

/* ── Card thumb ──────────────────────────────────────────────────── */
.card-thumb { height: 110px; overflow: hidden; position: relative; flex-shrink: 0; }
.thumb-ov { position: absolute; inset: 0; }
.thumb-meta { position: absolute; bottom: 0; left: 0; right: 0; padding: 8px 10px; display: flex; align-items: center; gap: 5px; z-index: 1; }
.th-type { font-size: 0.85rem; filter: drop-shadow(0 1px 2px rgba(0,0,0,0.35)); }
.th-auth { font-size: 0.55rem; font-weight: 600; color: rgba(255,255,255,0.88); text-shadow: 0 1px 3px rgba(0,0,0,0.5); }

/* ── Card body ───────────────────────────────────────────────────── */
.card-body { padding: 12px 14px 14px; display: flex; flex-direction: column; flex: 1; gap: 5px; }
.type-row { display: flex; align-items: center; gap: 5px; }
.type-badge { font-size: 0.56rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; padding: 2px 6px; border-radius: 3px; }
.topic-lbl { font-size: 0.58rem; font-weight: 500; }
.feat-dot { width: 5px; height: 5px; border-radius: 50%; background: #f07830; margin-left: auto; flex-shrink: 0; }
.card-title { font-size: 0.8rem; font-weight: 700; line-height: 1.35; letter-spacing: -0.01em; }
.card-desc { font-size: 0.7rem; color: var(--gray); line-height: 1.52; font-weight: 300; flex: 1; }
.card-cta { font-size: 0.68rem; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 3px; transition: gap 0.15s; margin-top: auto; padding-top: 5px; }
.card-cta:hover { gap: 6px; }

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .res-grid, .phase-picker { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 900px) {
  .jb-two-col { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .hero-top, .content { padding-left: 20px; padding-right: 20px; }
  .j-nav-inner { padding: 0 20px; overflow-x: auto; }
  .res-grid { grid-template-columns: repeat(2,1fr); }
  .phase-picker { grid-template-columns: 1fr 1fr; }
  .pp-card { padding: 20px; }
}
