/* === Skip Link (Accessibility) === */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  z-index: 1000;
  background: var(--color-accent);
  color: var(--color-white);
  padding: 0.5rem 1rem;
  border-radius: 0 0 6px 6px;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  position: fixed;
  left: 1rem;
  top: 0;
  width: auto;
  height: auto;
  overflow: visible;
}

/* === Reset & Base === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-bg: #f7f9fc;
  --color-text: #1e293b;
  --color-text-light: #475569;
  --color-accent: #2563eb;
  --color-accent-hover: #1d4ed8;
  --color-accent-light: #eff6ff;
  --color-amber: #f59e0b;
  --color-amber-light: #fef3c7;
  --color-white: #ffffff;
  --color-border: #e2e8f0;
  --color-green: #16a34a;
  --color-green-light: #dcfce7;
  --color-purple: #7c3aed;
  --color-purple-light: #ede9fe;
  --color-red: #dc2626;
  --color-red-light: #fee2e2;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-heading: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --max-width: 1080px;
}

html {
  font-size: 18px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  line-height: 1.25;
  font-weight: 700;
}

a {
  color: var(--color-accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* === Focus Styles (Accessibility) === */
a:focus-visible,
.btn:focus-visible,
.btn-outline:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

/* === Buttons === */
.btn {
  display: inline-block;
  background: var(--color-accent);
  color: var(--color-white);
  padding: 0.65rem 1.6rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: background 0.2s;
}

.btn:hover {
  background: var(--color-accent-hover);
  text-decoration: none;
}

.btn-lg {
  padding: 0.85rem 2.2rem;
  font-size: 1.1rem;
}

.btn-sm {
  padding: 0.45rem 1.1rem;
  font-size: 0.9rem;
}

.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--color-accent);
  padding: 0.65rem 1.6rem;
  border: 2px solid var(--color-accent);
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-outline:hover {
  background: var(--color-accent);
  color: var(--color-white);
  text-decoration: none;
}

/* === Header === */
.site-header {
  padding: 1rem 0;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-white);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-text);
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.site-header nav a {
  color: var(--color-text);
  font-size: 0.95rem;
  font-weight: 500;
}

.site-header nav a.btn {
  color: var(--color-white);
}

.site-header nav a:hover {
  color: var(--color-accent);
  text-decoration: none;
}

/* === Section defaults === */
section {
  padding: 4rem 0;
}

section h2 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 0.6rem;
}

.section-intro {
  text-align: center;
  color: var(--color-text-light);
  max-width: 560px;
  margin: 0 auto 2.5rem;
  font-size: 1.05rem;
}

/* === Footer === */
footer {
  padding: 1.5rem 0;
  text-align: center;
  border-top: 1px solid var(--color-border);
  font-size: 0.85rem;
  color: var(--color-text-light);
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-bottom: 0.6rem;
}

.footer-links a {
  color: var(--color-text-light);
  font-size: 0.85rem;
}

.footer-links a:hover {
  color: var(--color-accent);
}

/* ============================================
   Launchpad Sections (lp- prefixed classes)
   ============================================ */

/* === T004: .lp-hero === */
.lp-hero {
  text-align: center;
  padding: 5rem 0 4rem;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
}

.lp-hero h1 {
  font-size: 2.6rem;
  margin-bottom: 1.2rem;
  color: var(--color-text);
}

.lp-hero .lp-hero-sub {
  font-size: 1.15rem;
  color: var(--color-text-light);
  max-width: 640px;
  margin: 0 auto 1.5rem;
  line-height: 1.8;
}

.lp-hero .lp-hero-skills {
  font-size: 1rem;
  color: var(--color-text-light);
  max-width: 600px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

.lp-hero .lp-hero-skills strong {
  color: var(--color-text);
}

/* === T005: .lp-setup-step === */
.lp-setup-steps {
  max-width: 720px;
  margin: 2rem auto 0;
}

.lp-setup-step {
  display: flex;
  gap: 1.2rem;
  margin-bottom: 2rem;
  align-items: flex-start;
}

.lp-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.6rem;
  height: 2.6rem;
  background: var(--color-amber);
  color: var(--color-white);
  font-weight: 700;
  font-size: 1.1rem;
  border-radius: 50%;
  flex-shrink: 0;
}

.lp-step-content h3 {
  font-size: 1.15rem;
  margin-bottom: 0.3rem;
}

.lp-step-content p {
  font-size: 0.95rem;
  color: var(--color-text-light);
  line-height: 1.7;
}

.lp-step-content code {
  background: var(--color-accent-light);
  color: var(--color-accent);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  font-size: 0.88rem;
  font-family: "SF Mono", "Fira Code", "Fira Mono", "Roboto Mono", monospace;
}

.lp-step-content pre {
  background: #1e293b;
  color: #e2e8f0;
  padding: 0.8rem 1.2rem;
  border-radius: 8px;
  margin-top: 0.6rem;
  overflow-x: auto;
  font-size: 0.88rem;
  line-height: 1.5;
}

.lp-step-content pre code {
  background: none;
  color: inherit;
  padding: 0;
  border-radius: 0;
  font-size: inherit;
}

/* === T006: .lp-troubleshoot === */
.lp-troubleshoot {
  max-width: 720px;
  margin: 2.5rem auto 0;
}

.lp-troubleshoot h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.lp-troubleshoot-item {
  border-bottom: 1px solid var(--color-border);
}

.lp-troubleshoot-item summary {
  padding: 1rem 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.lp-troubleshoot-item summary::after {
  content: "+";
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--color-accent);
  flex-shrink: 0;
  margin-left: 1rem;
}

.lp-troubleshoot-item[open] summary::after {
  content: "\2212";
}

.lp-troubleshoot-item summary::-webkit-details-marker {
  display: none;
}

.lp-troubleshoot-item p,
.lp-troubleshoot-item pre {
  padding: 0 0 1.2rem;
  font-size: 0.95rem;
  color: var(--color-text-light);
  line-height: 1.7;
}

.lp-troubleshoot-item pre {
  background: #1e293b;
  color: #e2e8f0;
  padding: 0.8rem 1.2rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  overflow-x: auto;
  font-size: 0.88rem;
  line-height: 1.5;
}

.lp-stuck-callout {
  background: var(--color-amber-light);
  border: 1px solid var(--color-amber);
  border-radius: 10px;
  padding: 1.5rem;
  margin-top: 1.5rem;
  text-align: center;
}

.lp-stuck-callout h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.lp-stuck-callout p {
  font-size: 0.95rem;
  color: var(--color-text-light);
  margin-bottom: 0.3rem;
}

.lp-stuck-callout a {
  font-weight: 600;
}

/* === T007: .lp-prompt-example === */
.lp-prompt-example {
  background: #1e293b;
  color: #e2e8f0;
  padding: 1.2rem 1.5rem;
  border-radius: 10px;
  margin: 1.2rem 0;
  position: relative;
  font-family: "SF Mono", "Fira Code", "Fira Mono", "Roboto Mono", monospace;
  font-size: 0.92rem;
  line-height: 1.6;
  overflow-x: auto;
}

.lp-prompt-example::before {
  content: "Type this into Claude Code:";
  display: block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-amber);
  margin-bottom: 0.6rem;
  font-weight: 600;
}

.lp-prompt-example.lp-prompt-no-label::before {
  display: none;
}

/* === T007a: .lp-project-walkthrough === */
.lp-project-walkthrough {
  max-width: 720px;
  margin: 2rem auto 0;
}

.lp-project-walkthrough h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.lp-project-walkthrough p {
  color: var(--color-text-light);
  font-size: 0.98rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.lp-iteration-list {
  list-style: none;
  margin: 1rem 0 1.5rem;
}

.lp-iteration-list li {
  padding: 0.5rem 0 0.5rem 1.4rem;
  position: relative;
  font-size: 0.95rem;
  color: var(--color-text-light);
}

.lp-iteration-list li::before {
  content: "\2192";
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: 700;
}

/* === T008: .lp-project-card + .lp-level-badge === */
.lp-project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.lp-level-group {
  margin-bottom: 2.5rem;
}

.lp-level-group h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.lp-project-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

.lp-project-card h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.lp-level-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
}

.lp-level-badge.lp-level-1 {
  background: var(--color-green-light);
  color: var(--color-green);
}

.lp-level-badge.lp-level-2 {
  background: var(--color-amber-light);
  color: #b45309;
}

.lp-level-badge.lp-level-3 {
  background: var(--color-purple-light);
  color: var(--color-purple);
}

.lp-project-card .lp-project-desc {
  font-size: 0.92rem;
  color: var(--color-text-light);
  margin-bottom: 0.8rem;
  flex: 1;
}

.lp-project-card .lp-project-why {
  font-size: 0.88rem;
  color: var(--color-text-light);
  font-style: italic;
  margin-bottom: 0.6rem;
}

.lp-project-card .lp-project-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: auto;
}

.lp-project-card .lp-project-skills span {
  font-size: 0.75rem;
  background: var(--color-accent-light);
  color: var(--color-accent);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-weight: 500;
}

/* === T009: .lp-salary-table + .lp-salary-card === */
.lp-salary-section {
  margin-bottom: 2.5rem;
}

.lp-salary-section h3 {
  font-size: 1.25rem;
  margin-bottom: 0.4rem;
}

.lp-salary-section > p {
  color: var(--color-text-light);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.lp-salary-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  font-size: 0.92rem;
}

.lp-salary-table th {
  text-align: left;
  padding: 0.8rem 1rem;
  background: var(--color-accent-light);
  color: var(--color-text);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-bottom: 2px solid var(--color-border);
}

.lp-salary-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text-light);
  vertical-align: top;
}

.lp-salary-table tr:last-child td {
  border-bottom: none;
}

.lp-salary-table .lp-salary-range {
  font-weight: 600;
  color: var(--color-green);
  white-space: nowrap;
}

.lp-salary-table a {
  font-size: 0.85rem;
}

/* Card layout for mobile (hidden on desktop) */
.lp-salary-cards {
  display: none;
}

.lp-salary-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 1.2rem;
  margin-bottom: 1rem;
}

.lp-salary-card h4 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.lp-salary-card .lp-salary-range {
  font-weight: 600;
  color: var(--color-green);
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.lp-salary-card p {
  font-size: 0.9rem;
  color: var(--color-text-light);
  margin-bottom: 0.4rem;
}

.lp-salary-card .lp-salary-links {
  margin-top: 0.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.lp-salary-card .lp-salary-links a {
  font-size: 0.85rem;
}

/* === T010: .lp-resource-card + .lp-week === */
.lp-week {
  margin-bottom: 2.5rem;
}

.lp-week h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-amber);
}

.lp-resource-list {
  display: grid;
  gap: 1rem;
}

.lp-resource-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 1.2rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.lp-resource-card .lp-resource-info h4 {
  font-size: 1rem;
  margin-bottom: 0.2rem;
}

.lp-resource-card .lp-resource-info p {
  font-size: 0.88rem;
  color: var(--color-text-light);
}

.lp-resource-card .lp-resource-meta {
  text-align: right;
  flex-shrink: 0;
}

.lp-resource-card .lp-resource-meta .lp-duration {
  font-size: 0.82rem;
  color: var(--color-text-light);
  display: block;
  margin-bottom: 0.3rem;
}

/* === T011: .lp-apprenticeship-card === */
.lp-apprenticeship-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.lp-apprenticeship-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 1.5rem;
}

.lp-apprenticeship-card h4 {
  font-size: 1.1rem;
  margin-bottom: 0.2rem;
}

.lp-apprenticeship-card .lp-apprenticeship-provider {
  font-size: 0.88rem;
  color: var(--color-text-light);
  margin-bottom: 0.8rem;
}

.lp-apprenticeship-card .lp-apprenticeship-details {
  list-style: none;
  margin-bottom: 1rem;
}

.lp-apprenticeship-card .lp-apprenticeship-details li {
  font-size: 0.9rem;
  color: var(--color-text-light);
  padding: 0.2rem 0;
  padding-left: 1.2rem;
  position: relative;
}

.lp-apprenticeship-card .lp-apprenticeship-details li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--color-green);
  font-weight: 700;
}

/* === T011a: .lp-portfolio-item === */
.lp-portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.lp-portfolio-item {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 1.5rem;
}

.lp-portfolio-item h4 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.lp-portfolio-item p {
  font-size: 0.92rem;
  color: var(--color-text-light);
  line-height: 1.7;
}

.lp-skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.lp-skills-list span {
  display: inline-block;
  font-size: 0.85rem;
  background: var(--color-accent-light);
  color: var(--color-accent);
  padding: 0.3rem 0.8rem;
  border-radius: 6px;
  font-weight: 500;
}

.lp-portfolio-tips {
  max-width: 720px;
  margin: 2rem auto 0;
}

.lp-portfolio-tips h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.lp-portfolio-tips ul {
  list-style: none;
}

.lp-portfolio-tips ul li {
  padding: 0.4rem 0 0.4rem 1.4rem;
  position: relative;
  font-size: 0.95rem;
  color: var(--color-text-light);
}

.lp-portfolio-tips ul li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: 700;
}

/* === T012: .lp-spec-template === */
.lp-spec-template {
  background: #1e293b;
  color: #e2e8f0;
  padding: 1.5rem 1.8rem;
  border-radius: 10px;
  margin: 1.5rem 0;
  font-family: "SF Mono", "Fira Code", "Fira Mono", "Roboto Mono", monospace;
  font-size: 0.88rem;
  line-height: 1.7;
  overflow-x: auto;
  position: relative;
}

.lp-spec-template::before {
  content: "Copy this template:";
  display: block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-amber);
  margin-bottom: 0.8rem;
  font-weight: 600;
}

/* === T013: .lp-new-project === */
.lp-new-project {
  background: var(--color-accent-light);
  border: 2px solid var(--color-accent);
  border-radius: 12px;
  padding: 2rem;
  max-width: 720px;
  margin: 2rem auto;
}

.lp-new-project h3 {
  font-size: 1.25rem;
  margin-bottom: 0.8rem;
  color: var(--color-accent-hover);
}

.lp-new-project p {
  font-size: 0.95rem;
  color: var(--color-text-light);
  line-height: 1.7;
  margin-bottom: 0.8rem;
}

.lp-new-project ol {
  margin: 1rem 0 1rem 1.5rem;
}

.lp-new-project ol li {
  padding: 0.3rem 0;
  font-size: 0.95rem;
  color: var(--color-text-light);
}

.lp-new-project code {
  background: var(--color-white);
  color: var(--color-accent);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  font-size: 0.88rem;
  font-family: "SF Mono", "Fira Code", "Fira Mono", "Roboto Mono", monospace;
}

.lp-new-project .lp-important {
  background: var(--color-amber-light);
  border: 1px solid var(--color-amber);
  border-radius: 8px;
  padding: 0.8rem 1rem;
  font-size: 0.92rem;
  color: var(--color-text);
  margin-top: 1rem;
}

/* === Additional helpers === */
.lp-section-alt {
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
}

.lp-callout {
  background: var(--color-accent-light);
  border-radius: 10px;
  padding: 1.5rem;
  margin: 1.5rem 0;
}

.lp-callout p {
  font-size: 0.95rem;
  color: var(--color-text-light);
}

.lp-no-degree-callout {
  background: var(--color-green-light);
  border: 1px solid var(--color-green);
  border-radius: 10px;
  padding: 1.5rem;
  margin: 2rem 0;
  text-align: center;
}

.lp-no-degree-callout h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--color-green);
}

.lp-no-degree-callout p {
  font-size: 0.95rem;
  color: var(--color-text-light);
}

.lp-section-content {
  max-width: 720px;
  margin: 0 auto;
}

.lp-section-content p {
  font-size: 1rem;
  color: var(--color-text-light);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.lp-section-content h3 {
  font-size: 1.25rem;
  margin: 2rem 0 0.8rem;
}

/* === T014: Responsive Overrides === */
@media (max-width: 768px) {
  html {
    font-size: 16px;
  }

  /* Header */
  .site-header .container {
    flex-direction: column;
    gap: 0.8rem;
  }

  .site-header nav {
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  section {
    padding: 2.5rem 0;
  }

  /* Hero */
  .lp-hero {
    padding: 3rem 0 2.5rem;
  }

  .lp-hero h1 {
    font-size: 1.9rem;
  }

  /* Setup steps */
  .lp-setup-step {
    gap: 0.8rem;
  }

  /* Project grid */
  .lp-project-grid {
    grid-template-columns: 1fr;
  }

  /* Salary: hide tables, show cards */
  .lp-salary-table {
    display: none;
  }

  .lp-salary-cards {
    display: block;
  }

  /* Resource cards stack */
  .lp-resource-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .lp-resource-card .lp-resource-meta {
    text-align: left;
  }

  /* Apprenticeship grid */
  .lp-apprenticeship-grid {
    grid-template-columns: 1fr;
  }

  /* Portfolio grid */
  .lp-portfolio-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 375px) {
  .lp-hero h1 {
    font-size: 1.6rem;
  }

  .lp-prompt-example {
    padding: 1rem;
    font-size: 0.82rem;
  }

  .lp-spec-template {
    padding: 1rem;
    font-size: 0.82rem;
  }

  .lp-new-project {
    padding: 1.2rem;
  }
}
