:root {
  color-scheme: light;
  --bg: #f3f6f8;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --surface-green: #edf8f3;
  --surface-blue: #edf6fb;
  --text: #172033;
  --muted: #5d6b82;
  --border: #dbe4ef;
  --border-strong: #b9c9da;
  --accent: #0f8b62;
  --accent-dark: #0b6f4f;
  --blue: #0b6f9f;
  --amber: #9a650b;
  --shadow: 0 16px 34px rgba(23, 32, 51, 0.07);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Aptos, Inter, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.55;
}

a {
  color: var(--blue);
  font-weight: 850;
}

main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 18px 56px;
}

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

h1,
h2,
h3 {
  line-height: 1.12;
}

h1 {
  max-width: 780px;
  font-size: clamp(2.25rem, 6vw, 4.1rem);
}

h2 {
  font-size: clamp(1.35rem, 3vw, 2.1rem);
}

h3 {
  font-size: 1.02rem;
}

strong {
  color: #132238;
  font-weight: 900;
}

.hero,
.path-picker,
.toc-panel,
.reading-tools,
.guide-stage {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero {
  display: grid;
  gap: 16px;
  padding: 30px;
}

.eyebrow {
  color: var(--accent-dark);
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.subtitle {
  max-width: 850px;
  color: var(--muted);
  font-size: 1.08rem;
}

.privacy-note,
.soft-warning {
  border-left: 4px solid #93d5ba;
  border-radius: 8px;
  background: var(--surface-green);
  color: #23483b;
  padding: 13px 15px;
}

.soft-warning {
  border-left-color: #e2b76f;
  background: #fff7e8;
  color: #68440f;
}

.path-picker,
.toc-panel,
.reading-tools,
.guide-stage {
  margin-top: 16px;
  padding: 24px;
}

.section-heading {
  display: grid;
  gap: 7px;
  max-width: 780px;
}

.section-heading p {
  color: var(--muted);
}

.path-grid,
.toc-grid,
.mini-grid {
  display: grid;
  gap: 12px;
}

.path-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 18px;
}

.path-card,
.toc-link,
.mini-grid article {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-soft);
}

.path-card,
.toc-link {
  display: grid;
  gap: 8px;
  color: var(--text);
  text-decoration: none;
}

.path-card {
  min-height: 156px;
  padding: 16px;
}

.path-card span {
  color: var(--accent-dark);
  font-size: 0.74rem;
  font-weight: 950;
  text-transform: uppercase;
}

.path-card small,
.toc-link small {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 650;
  line-height: 1.38;
}

.toc-panel {
  display: grid;
  gap: 16px;
}

.toc-grid {
  grid-template-columns: 1fr;
}

.toc-link {
  grid-template-columns: 42px minmax(0, 1fr);
  min-height: 98px;
  padding: 14px;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.path-card:hover,
.path-card:focus-visible,
.toc-link:hover,
.toc-link:focus-visible,
.toc-link.active {
  border-color: var(--accent);
  box-shadow: 0 10px 24px rgba(15, 139, 98, 0.13);
  transform: translateY(-1px);
}

.toc-link span {
  grid-row: span 2;
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 999px;
  background: #e2f4ec;
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 950;
}

.toc-link strong {
  align-self: end;
}

.section-shot {
  display: grid;
  gap: 8px;
  margin: 0 0 14px;
}

.stage-shot {
  max-width: 760px;
}

.screenshot-button {
  display: block;
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #e9eef4;
  color: var(--text);
  cursor: zoom-in;
  padding: 0;
  text-align: left;
}

.screenshot-button img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: top left;
}

.screenshot-button span {
  display: block;
  border-top: 1px solid var(--border);
  background: #ffffff;
  color: var(--accent-dark);
  font-size: 0.84rem;
  font-weight: 950;
  padding: 9px 12px;
}

.section-shot figcaption {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 650;
}

.reading-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: #fbfcfe;
}

.reading-tools p {
  color: var(--muted);
  font-weight: 750;
}

.tool-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

button {
  min-height: 40px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: #ffffff;
  color: #233952;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  padding: 0 14px;
}

button:hover,
button:focus-visible {
  border-color: var(--accent);
  color: var(--accent-dark);
}

.guide-layout {
  display: grid;
  gap: 16px;
}

.guide-stage {
  display: grid;
  gap: 16px;
  scroll-margin-top: 18px;
}

.stage-header {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.stage-header > div {
  display: grid;
  gap: 7px;
}

.stage-header p:not(.eyebrow) {
  color: var(--muted);
}

.stage-number {
  display: inline-grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 1px solid #b7decf;
  border-radius: 999px;
  background: #e5f6ef;
  color: var(--accent-dark);
  font-size: 1rem;
  font-weight: 950;
}

.stage-flow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.stage-flow span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border: 1px solid #c8d9e6;
  border-radius: 999px;
  background: var(--surface-blue);
  color: #25516d;
  font-size: 0.82rem;
  font-weight: 900;
  padding: 0 12px;
}

.topic,
.faq-groups details {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-soft);
  overflow: clip;
}

.topic summary,
.faq-groups summary {
  cursor: pointer;
  list-style: none;
}

.topic summary::-webkit-details-marker,
.faq-groups summary::-webkit-details-marker {
  display: none;
}

.topic summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 16px;
  min-height: 62px;
  padding: 16px;
}

.topic summary::after,
.faq-groups summary::after {
  content: "+";
  display: inline-grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 999px;
  background: #e3edf7;
  color: #2c4d6b;
  font-weight: 950;
}

.topic[open] summary::after,
.faq-groups details[open] summary::after {
  content: "−";
}

.topic summary span {
  color: #132238;
  font-size: 1.02rem;
  font-weight: 950;
}

.topic summary small {
  grid-column: 1 / 2;
  color: var(--muted);
  font-weight: 700;
}

.topic-body {
  border-top: 1px solid var(--border);
  background: #ffffff;
  padding: 16px;
}

.topic-body dl {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 10px 16px;
  margin: 0;
}

.topic-body dt {
  color: var(--accent-dark);
  font-size: 0.82rem;
  font-weight: 950;
  text-transform: uppercase;
}

.topic-body dd {
  margin: 0;
  color: #26374d;
}

.label-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.label-list li {
  border-left: 4px solid #a5d6c0;
  border-radius: 8px;
  background: #fbfdff;
  padding: 10px 12px;
}

.mini-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mini-grid article {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.mini-grid p {
  color: #2b3d52;
}

.routine-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.routine-list li {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-soft);
  padding: 13px;
}

.routine-list span {
  display: inline-grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  font-weight: 950;
}

.routine-list p {
  color: #26374d;
}

.faq-groups {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.faq-groups section {
  display: grid;
  align-content: start;
  gap: 8px;
}

.faq-groups h3 {
  color: #14233a;
  margin-bottom: 2px;
}

.faq-groups details {
  background: #ffffff;
}

.faq-groups summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 52px;
  color: #172033;
  font-weight: 900;
  padding: 12px 14px;
}

.faq-groups p {
  border-top: 1px solid var(--border);
  color: #26374d;
  padding: 12px 14px 14px;
}

.modal-open {
  overflow: hidden;
}

.screenshot-modal[hidden] {
  display: none;
}

.screenshot-modal {
  position: fixed;
  z-index: 20;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
}

.screenshot-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 24, 38, 0.72);
}

.screenshot-modal-dialog {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  width: min(1100px, 96vw);
  max-height: 92vh;
  overflow: hidden;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 24px 60px rgba(8, 18, 32, 0.35);
  padding: 14px;
}

.screenshot-modal-dialog header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.screenshot-modal-dialog h2 {
  font-size: 1.1rem;
}

.screenshot-modal-close {
  flex: 0 0 auto;
}

.screenshot-modal-dialog img {
  display: block;
  width: 100%;
  max-height: calc(92vh - 90px);
  object-fit: contain;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #f4f7fb;
}

footer {
  margin-top: 24px;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 900px) {
  .path-grid,
  .mini-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .routine-list,
  .faq-groups {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  html {
    scroll-padding-top: 12px;
  }

  main {
    max-width: none;
    padding: 14px 10px 38px;
  }

  .hero,
  .path-picker,
  .toc-panel,
  .reading-tools,
  .guide-stage {
    border-radius: 8px;
    padding: 16px;
  }

  h1 {
    font-size: 2.08rem;
    overflow-wrap: anywhere;
  }

  h2 {
    font-size: 1.35rem;
  }

  .subtitle,
  body {
    font-size: 0.96rem;
  }

  .path-grid,
  .toc-grid,
  .mini-grid {
    grid-template-columns: 1fr;
  }

  .reading-tools {
    align-items: stretch;
    flex-direction: column;
  }

  .tool-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .stage-header {
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 12px;
  }

  .stage-number {
    width: 42px;
    height: 42px;
    font-size: 0.84rem;
  }

  .topic summary {
    padding: 14px;
  }

  .topic-body {
    padding: 14px;
  }

  .topic-body dl {
    grid-template-columns: 1fr;
    gap: 4px 0;
  }

  .topic-body dd {
    margin-bottom: 10px;
  }
}

@media (max-width: 420px) {
  main {
    padding-inline: 8px;
  }

  .hero,
  .path-picker,
  .toc-panel,
  .reading-tools,
  .guide-stage {
    padding: 14px;
  }

  .tool-actions {
    grid-template-columns: 1fr;
  }

  .toc-link {
    grid-template-columns: 36px minmax(0, 1fr);
  }
}
