:root {
  --brand: #f28c00;
  --brand-dark: #b76600;
  --ink: #242027;
  --muted: #6d6470;
  --paper: #fffdf9;
  --soft: #fff7eb;
  --soft-strong: #ffe8c5;
  --line: #efd7b5;
  --green: #267451;
  --red: #a94b3e;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  background:
    linear-gradient(90deg, rgba(242, 140, 0, 0.07) 1px, transparent 1px),
    linear-gradient(0deg, rgba(242, 140, 0, 0.07) 1px, transparent 1px),
    radial-gradient(circle at top left, rgba(242, 140, 0, 0.22), transparent 34rem),
    #fffaf4;
  background-size: 48px 48px, 48px 48px, auto, auto;
}

button, input, textarea { font: inherit; }

a { color: inherit; }

.shell {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: 38px 0 62px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 50px;
}

.logo { width: 170px; height: auto; }

.topbar a, .text-link {
  color: var(--brand-dark);
  font-weight: 800;
  text-decoration: none;
}

.topbar a:hover, .text-link:hover { text-decoration: underline; }

.eyebrow {
  margin: 0 0 12px;
  color: var(--brand);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1, h2, h3, p { margin-top: 0; }

h1, h2, h3 { letter-spacing: 0; }

h1 {
  max-width: 12ch;
  margin-bottom: 0;
  font-size: clamp(2.7rem, 6vw, 5.4rem);
  line-height: 0.96;
}

h2 { font-size: clamp(2rem, 4vw, 3.25rem); line-height: 1.03; }

h3 { font-size: 1.18rem; line-height: 1.2; }

.hero { max-width: 940px; margin-bottom: 38px; }
.hero-home { margin-bottom: 42px; }

.lead {
  max-width: 790px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 1.17rem;
  line-height: 1.6;
}

.goal, .card, .practice, .step-intro, .closing-note, .compare, .canvas, .checklist {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 48px rgba(80, 47, 0, 0.08);
}

.goal {
  max-width: 820px;
  margin-top: 26px;
  padding: 20px 22px;
}

.goal strong, .practice strong { color: var(--brand-dark); }
.goal p { margin: 8px 0 0; color: var(--muted); line-height: 1.55; }

.route-head { margin-bottom: 18px; }
.route-head h2 { max-width: 20ch; }

.route-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.route-list a {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 4px 14px;
  min-height: 146px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 34px rgba(80, 47, 0, 0.07);
  text-decoration: none;
  transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.route-list a:hover {
  transform: translateY(-2px);
  border-color: var(--brand);
  box-shadow: 0 18px 38px rgba(80, 47, 0, 0.12);
}

.route-list span, .step-number {
  display: inline-grid;
  grid-row: span 2;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-weight: 900;
}

.route-list strong { align-self: end; font-size: 1.15rem; line-height: 1.2; }
.route-list small { align-self: start; color: var(--muted); font-size: 0.93rem; line-height: 1.4; }

.closing-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 18px;
  padding: 24px;
}

.closing-note p { max-width: 720px; margin: 0; color: var(--muted); line-height: 1.55; }
.closing-note strong { color: var(--ink); }

.page-cta { display: flex; flex-wrap: wrap; gap: 10px; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 17px;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
}

.button.primary { background: var(--brand); color: #fff; }
.button.secondary { border-color: var(--line); background: var(--soft); color: var(--brand-dark); }
.button.ghost { border-color: #ded2c2; background: #fff; color: var(--muted); }

.course-header { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: end; margin-bottom: 28px; }
.course-header .lead { margin-top: 18px; }

.step-label { display: flex; align-items: center; gap: 12px; color: var(--brand-dark); font-weight: 900; }
.step-label .step-number { width: 46px; height: 46px; }

.progress-nav {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 28px;
}

.progress-nav a {
  display: grid;
  place-items: center;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,0.76);
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 900;
  text-decoration: none;
}

.progress-nav a:hover, .progress-nav a[aria-current="page"] { border-color: var(--brand); background: var(--soft); color: var(--brand-dark); }

.step-intro { padding: 22px; margin-bottom: 16px; }
.step-intro p { max-width: 820px; margin: 0; color: var(--muted); font-size: 1.06rem; line-height: 1.6; }

.content-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr); gap: 16px; margin-bottom: 16px; }
.content-grid.equal { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.card, .compare, .canvas, .checklist { padding: 24px; }
.card p, .card li, .compare p, .canvas p, .checklist li { color: var(--muted); line-height: 1.52; }
.card > :last-child, .compare > :last-child, .canvas > :last-child, .checklist > :last-child { margin-bottom: 0; }

.card.soft { background: var(--soft); }
.card h3, .compare h3, .canvas h3, .checklist h3 { margin-bottom: 10px; }
.card h3 { color: var(--brand-dark); }

.key-list, .plain-list, .checklist ul { display: grid; gap: 9px; margin: 14px 0 0; padding: 0; list-style: none; }
.key-list li, .checklist li { position: relative; padding-left: 22px; }
.key-list li::before, .checklist li::before { position: absolute; left: 0; color: var(--brand); content: "•"; font-size: 1.35rem; line-height: 0.8; }

.plain-list { padding-left: 20px; list-style: disc; }
.plain-list li { padding-left: 4px; }

.compare { margin-bottom: 16px; overflow: hidden; padding: 0; }
.compare h3 { margin: 0; padding: 20px 22px 0; }
.compare-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.compare-cell { min-height: 190px; padding: 22px; border-top: 1px solid var(--line); }
.compare-cell + .compare-cell { border-left: 1px solid var(--line); }
.compare-cell.agent { background: var(--soft); }
.compare-kicker { margin: 0 0 8px; color: var(--brand-dark); font-size: 0.78rem; font-weight: 900; letter-spacing: 0.06em; text-transform: uppercase; }
.compare-cell p { margin-bottom: 0; }

.example { margin-top: 14px; padding: 16px; border-left: 4px solid var(--brand); background: var(--paper); color: var(--ink); line-height: 1.5; }
.example strong { color: var(--brand-dark); }

.practice { margin-top: 16px; padding: 24px; background: #fffdf9; }
.practice h2 { margin-bottom: 10px; font-size: clamp(1.6rem, 3vw, 2.25rem); }
.practice p { max-width: 800px; color: var(--muted); line-height: 1.55; }
.practice ol { display: grid; gap: 10px; margin: 16px 0 0; padding-left: 22px; }
.practice li { padding-left: 6px; line-height: 1.5; }

.canvas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; padding: 0; overflow: hidden; }
.canvas-item { min-height: 140px; padding: 20px; border-top: 1px solid var(--line); }
.canvas-item:nth-child(odd) { border-right: 1px solid var(--line); }
.canvas-item:nth-child(-n+2) { border-top: 0; }
.canvas-item h3 { color: var(--brand-dark); }
.canvas-item p { margin: 0; }

.traffic { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 15px; }
.traffic > div { min-height: 150px; padding: 18px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.traffic strong { display: block; margin-bottom: 8px; }
.traffic .green strong { color: var(--green); }
.traffic .orange strong { color: var(--brand-dark); }
.traffic .red strong { color: var(--red); }
.traffic p { margin: 0; color: var(--muted); line-height: 1.48; }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 16px; }
.field { display: grid; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 900; }
.field small { color: var(--muted); line-height: 1.35; }
textarea, input[type="text"] { width: 100%; border: 1px solid #ded2c2; border-radius: 8px; padding: 12px 13px; background: #fff; color: var(--ink); line-height: 1.45; outline: none; }
textarea { min-height: 110px; resize: vertical; }
textarea:focus, input[type="text"]:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(242, 140, 0, 0.15); }

.save-note { min-height: 20px; margin: 14px 0 0; color: var(--green); font-size: 0.9rem; font-weight: 800; }

.page-actions { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 24px; }
.page-actions .button:last-child { margin-left: auto; }

.start-guide { margin-top: 16px; }

.start-guide > h2 { margin-bottom: 10px; font-size: clamp(1.7rem, 3.2vw, 2.5rem); }

.start-guide > p { max-width: 820px; color: var(--muted); line-height: 1.55; }

.start-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }

.start-card { padding: 20px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }

.start-card h3 { color: var(--brand-dark); }

.start-card p { margin: 0; color: var(--muted); line-height: 1.5; }

.folder-plan { display: grid; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }

.folder-plan li { padding: 10px 12px; border-left: 3px solid var(--orange); background: #fffdf9; color: var(--ink); font-family: Consolas, "Courier New", monospace; font-size: 0.92rem; }

.format-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }

.format-card { min-height: 178px; padding: 20px; border: 1px solid var(--line); border-radius: 8px; background: var(--soft); }

.format-card code { display: block; margin-bottom: 12px; color: var(--brand-dark); font-family: Consolas, "Courier New", monospace; font-size: 1.35rem; font-weight: 900; }

.format-card p { margin: 0; color: var(--muted); line-height: 1.48; }

@media (max-width: 760px) {
  .shell { width: min(100% - 24px, 1120px); padding-top: 22px; }
  .topbar { align-items: flex-start; flex-direction: column; margin-bottom: 38px; }
  .route-list, .content-grid, .content-grid.equal, .compare-grid, .traffic, .form-grid, .start-grid, .format-grid { grid-template-columns: 1fr; }
  .closing-note, .course-header { align-items: flex-start; flex-direction: column; }
  .compare-cell + .compare-cell { border-top: 1px solid var(--line); border-left: 0; }
  .canvas { grid-template-columns: 1fr; }
  .canvas-item:nth-child(odd) { border-right: 0; }
  .canvas-item:nth-child(2) { border-top: 1px solid var(--line); }
  .canvas-item { min-height: 0; }
  .progress-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media print {
  body { background: #fff; }
  .topbar, .progress-nav, .page-actions, .save-note { display: none; }
  .shell { width: 100%; padding: 0; }
  .course-header { margin-bottom: 8mm; }
  .card, .compare, .canvas, .checklist, .step-intro, .practice { box-shadow: none; break-inside: avoid; }
}
