:root {
  --ink: #203b37;
  --muted: #5b6f68;
  --paper: #f8f1e7;
  --paper-strong: #fffaf2;
  --mint: #dfeee4;
  --mint-soft: #edf6f0;
  --clay: #b45f3a;
  --sun: #f2c86b;
  --line: #d7c7b1;
  --green: #244d49;
  --green-soft: #2c5a55;
  --max: 1140px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", serif;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: center;
  border-bottom: 1px solid color-mix(in srgb, var(--line), transparent 10%);
  background: color-mix(in srgb, var(--paper), transparent 8%);
  backdrop-filter: blur(12px);
}

.nav {
  width: min(var(--max), calc(100vw - 32px));
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
  font-size: 18px;
}

.mark {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: conic-gradient(from 20deg, var(--clay), var(--sun), var(--mint), var(--green), var(--clay));
  border: 2px solid var(--ink);
}

.navlinks {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--muted);
  font-size: 15px;
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.navlinks a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  text-decoration: none;
  line-height: 1;
}

.navlinks a:hover {
  color: var(--ink);
}

.hero {
  display: grid;
  place-items: center;
  padding: clamp(42px, 6vw, 86px) 16px clamp(54px, 7vw, 100px);
  overflow: hidden;
}

.hero-inner {
  width: min(var(--max), 100%);
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 0.95fr);
  gap: clamp(28px, 4vw, 72px);
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  border: 1px solid var(--green);
  padding: 8px 12px;
  color: var(--green);
  font-size: 14px;
  font-weight: 700;
  background: var(--mint);
}

h1 {
  margin: 24px 0 18px;
  max-width: 10ch;
  font-size: clamp(50px, 7.2vw, 88px);
  line-height: 0.98;
  letter-spacing: 0;
}

h1 span {
  display: block;
}

.lead {
  max-width: 640px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(19px, 2.1vw, 28px);
  line-height: 1.5;
}

.hero-points {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  max-width: 620px;
}

.hero-points li {
  position: relative;
  padding-left: 24px;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.46;
}

.hero-points li::before {
  content: "";
  position: absolute;
  top: 11px;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--clay);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 18px;
  border: 2px solid var(--ink);
  background: var(--green);
  color: var(--paper-strong);
  text-decoration: none;
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 800;
}

.button.secondary {
  background: transparent;
  color: var(--ink);
}

.hero-art img {
  display: block;
  width: 100%;
  height: auto;
  border: 2px solid color-mix(in srgb, var(--line), var(--green) 18%);
  filter: drop-shadow(0 28px 34px rgb(32 59 55 / 0.18));
}

.section {
  padding: clamp(56px, 8vw, 112px) 16px;
}

.section.alt {
  background: var(--green);
  color: var(--paper);
}

.section-inner {
  width: min(var(--max), 100%);
  margin: 0 auto;
}

.section-kicker {
  margin: 0 0 10px;
  color: var(--clay);
  font-size: 16px;
  font-weight: 900;
  text-transform: uppercase;
}

.alt .section-kicker {
  color: var(--sun);
}

h2 {
  margin: 0;
  max-width: 12ch;
  font-size: clamp(34px, 4.8vw, 62px);
  line-height: 1.08;
  letter-spacing: 0;
}

.section-copy {
  max-width: 780px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 21px;
  line-height: 1.58;
}

.alt .section-copy {
  color: #e7f1eb;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 42px;
  align-items: center;
}

.split img {
  width: 100%;
  height: auto;
  border: 2px solid var(--line);
  background: var(--paper-strong);
}

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

.concept-card {
  min-height: 220px;
  border: 2px solid var(--ink);
  background: var(--paper-strong);
  padding: 22px;
}

.concept-card .num,
.guide-num {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 18px;
  background: var(--sun);
  border: 2px solid var(--ink);
  font-weight: 900;
  color: var(--ink);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.concept-tag {
  margin: 0 0 8px;
  color: var(--clay);
  font-size: 15px;
  font-weight: 900;
}

.concept-card h3 {
  margin: 0 0 8px;
  font-size: 28px;
  line-height: 1.16;
}

.concept-card p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.5;
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
  margin-top: 36px;
}

.sample-card {
  border: 2px solid color-mix(in srgb, var(--paper), transparent 20%);
  background: #fffaf2;
  padding: 24px;
  color: var(--ink);
}

.sample-title {
  margin: 0 0 14px;
  color: var(--clay);
  font-size: 18px;
  font-weight: 900;
}

.sample-paper {
  min-height: 250px;
  border: 2px solid var(--line);
  background: linear-gradient(180deg, #fffefb 0%, #fff7ec 100%);
  padding: 18px;
}

.sample-paper.before p {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.55;
}

.sample-paper.after ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}

.sample-paper.after li {
  display: grid;
  gap: 4px;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--line);
}

.sample-paper.after strong {
  color: var(--green);
  font-size: 18px;
}

.sample-paper.after span {
  color: var(--ink);
  font-size: 20px;
  line-height: 1.4;
}

.workflow {
  margin: 32px 0 0;
}

.workflow img {
  width: 100%;
  height: auto;
  border: 2px solid color-mix(in srgb, var(--paper), transparent 22%);
}

.workflow figcaption {
  margin-top: 12px;
  color: #dfeee4;
  font-size: 16px;
  line-height: 1.45;
}

.step-map {
  position: relative;
  margin: 34px 0 0;
  border: 2px solid var(--line);
  background: var(--paper-strong);
}

.step-map img {
  display: block;
  width: 100%;
  height: auto;
}

.image-label-fix {
  position: absolute;
  display: grid;
  place-items: center;
  background: #fffaf2;
  color: var(--green);
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", serif;
  font-weight: 800;
  line-height: 1;
  pointer-events: none;
}

.index-fix {
  left: 18.45%;
  top: 67.65%;
  width: 5.6%;
  height: 3.7%;
  font-size: clamp(9px, 1.25vw, 18px);
}

.step-map-captions {
  position: absolute;
  left: 3.3%;
  right: 3.1%;
  bottom: 7.9%;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1.1%;
  margin: 0;
}

.step-map-captions article {
  min-height: 100px;
  padding: 12px 13px 10px;
  background: rgb(255 250 242 / 0.94);
  border: 2px solid color-mix(in srgb, var(--line), var(--green) 25%);
}

.step-map-captions h3 {
  margin: 0 0 6px;
  color: var(--green);
  font-size: 18px;
  line-height: 1.18;
}

.step-map-captions p {
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.35;
}

.step-map-captions strong {
  color: var(--clay);
}

.plain-note {
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  color: var(--ink) !important;
}

.plain-note strong {
  color: var(--clay);
}

.command-pill {
  width: fit-content;
  margin: 0 0 12px;
  padding: 10px 12px;
  background: var(--mint-soft);
  border: 1px solid var(--green);
  color: var(--green);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 15px;
  font-weight: 700;
}

.faq {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 34px;
}

.qa {
  border-top: 2px solid var(--line);
  padding-top: 18px;
}

.qa h3 {
  margin: 0 0 8px;
  font-size: 24px;
  line-height: 1.25;
}

.qa p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.footer {
  padding: 36px 16px;
  border-top: 1px solid var(--line);
}

.footer-inner {
  width: min(var(--max), 100%);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
  font-size: 15px;
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

@media (max-width: 960px) {
  .hero-inner,
  .split,
  .case-grid,
  .concept-grid,
  .faq {
    grid-template-columns: 1fr;
  }

  .step-map-captions {
    position: static;
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px;
    background: var(--paper);
  }

  .step-map-captions article {
    min-height: 0;
  }

  .step-map-captions h3 {
    font-size: 20px;
  }

  .step-map-captions p {
    font-size: 16px;
  }

  h1,
  h2 {
    max-width: none;
  }
}

@media (max-width: 760px) {
  .navlinks {
    gap: 14px;
    font-size: 14px;
  }

  .hero {
    padding-top: 28px;
  }

  h1 {
    font-size: clamp(42px, 14vw, 68px);
    line-height: 1.02;
  }

  .lead {
    font-size: 18px;
  }

  .hero-points li,
  .section-copy,
  .concept-card p:last-child,
  .guide-copy p,
  .qa p,
  .sample-paper.before p,
  .sample-paper.after span {
    font-size: 17px;
  }
}

@media (max-width: 520px) {
  .nav {
    width: calc(100vw - 20px);
    gap: 12px;
  }

  .brand {
    font-size: 16px;
  }

  .navlinks {
    gap: 10px;
    font-size: 13px;
  }

  .sample-paper {
    min-height: 0;
  }

  .button {
    width: calc(50% - 6px);
    justify-content: center;
  }

  .footer-inner {
    flex-direction: column;
  }
}


.nav-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}

.version-switcher {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px;
  border: 1px solid rgb(32 59 55 / 0.18);
  border-radius: 999px;
  background: rgb(255 250 242 / 0.76);
  box-shadow: 0 10px 32px rgb(32 59 55 / 0.08);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.version-switcher a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.version-switcher a:hover {
  color: var(--ink);
  border-color: rgb(36 77 73 / 0.28);
  background: rgb(255 250 242 / 0.94);
}

.version-switcher a[aria-current="page"] {
  color: var(--paper-strong);
  border-color: var(--green);
  background: var(--green);
}

@media (max-width: 760px) {
  .nav {
    flex-wrap: wrap;
    padding-block: 10px;
  }

  .nav-actions {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
  }

  .version-switcher {
    overflow-x: auto;
    max-width: 100%;
    scrollbar-width: none;
  }

  .version-switcher::-webkit-scrollbar {
    display: none;
  }

  .version-switcher a {
    min-height: 30px;
    padding: 0 8px;
    font-size: 11px;
  }
}


.version-menu {
  position: relative;
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.version-menu summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid var(--green);
  border-radius: 999px;
  color: var(--paper-strong);
  background: var(--green);
  box-shadow: 0 10px 32px rgb(32 59 55 / 0.1);
  cursor: pointer;
  list-style: none;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.version-menu summary::-webkit-details-marker { display: none; }
.version-menu summary::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}
.version-menu[open] summary::after { transform: translateY(2px) rotate(225deg); }
.version-list {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 40;
  min-width: 132px;
  padding: 8px;
  border: 1px solid rgb(32 59 55 / 0.16);
  border-radius: 18px;
  background: rgb(255 250 242 / 0.96);
  box-shadow: 0 18px 60px rgb(32 59 55 / 0.18);
}
.version-list a {
  display: flex;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 12px;
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 900;
}
.version-list a:hover { color: var(--ink); background: rgb(36 77 73 / 0.08); }
.version-list a[aria-current="page"] { color: var(--paper-strong); background: var(--green); }
