:root {
  --bg: #f6f4ef;
  --paper: #ffffff;
  --paper-soft: #fbfaf7;
  --ink: #241b18;
  --muted: #6f625b;
  --line: #dfd8ce;
  --accent: #126c62;
  --accent-strong: #0d4e47;
  --warm: #d97b3f;
  --dark: #34211d;
  --shadow: 0 22px 70px rgba(49, 38, 30, 0.11);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  color: var(--ink);
  overflow-x: hidden;
  background:
    linear-gradient(rgba(36, 27, 24, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(36, 27, 24, 0.035) 1px, transparent 1px),
    var(--bg);
  background-size: 32px 32px;
}

a {
  color: inherit;
  text-decoration: none;
}

.hero-lead a,
.plain-flow a,
.price-card a,
.check-grid a,
.step-detail a,
.sources a {
  color: var(--accent-strong);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.section-shell {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px max(20px, calc((100vw - 1160px) / 2));
  background: rgba(246, 244, 239, 0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(36, 27, 24, 0.08);
}

.brand,
.desktop-nav,
.nav-cta {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #fff;
  background: var(--accent);
  font-size: 12px;
}

.desktop-nav {
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

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

.desktop-nav a.is-active,
.toc a.is-active {
  color: var(--accent-strong);
  background: #e9f3ef;
}

.nav-cta,
.primary-button,
.secondary-button,
.copy-button {
  border-radius: var(--radius);
  font-weight: 800;
  font-size: 14px;
}

.nav-cta {
  padding: 10px 14px;
  color: #fff;
  background: var(--dark);
}

.hero {
  min-height: 680px;
  display: grid;
  grid-template-columns: 1fr 460px;
  gap: 64px;
  align-items: center;
  padding: 80px 0 76px;
}

.section-label {
  margin: 0 0 14px;
  color: var(--accent);
  font-weight: 800;
  font-size: 13px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(46px, 7vw, 82px);
  line-height: 1.02;
  letter-spacing: 0;
  max-width: 780px;
  overflow-wrap: anywhere;
}

.hero-lead {
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.75;
  max-width: 680px;
  overflow-wrap: anywhere;
}

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

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
}

.primary-button {
  color: #fff;
  background: var(--accent);
}

.secondary-button {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.62);
}

.hero-panel {
  position: relative;
  min-width: 0;
  padding: 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.chat-window {
  border-radius: 12px;
  overflow: hidden;
  background: var(--paper-soft);
  border: 1px solid var(--line);
}

.chat-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: var(--dark);
  color: #fff;
  font-size: 14px;
}

.chat-header span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #89d8c7;
}

.bubble {
  width: calc(100% - 36px);
  margin: 18px;
  padding: 16px;
  border-radius: 12px;
  line-height: 1.6;
}

.bubble.user {
  margin-left: auto;
  max-width: 260px;
  color: #fff;
  background: var(--accent);
}

.bubble.assistant {
  background: #fff;
  border: 1px solid var(--line);
}

.bubble dl {
  margin: 14px 0;
}

.bubble dl div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 0;
  border-top: 1px solid #ece6de;
}

.bubble dt {
  color: var(--muted);
  font-weight: 700;
}

.bubble dd {
  margin: 0;
  font-weight: 800;
}

.bubble small {
  color: var(--muted);
}

.flow-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 14px;
}

.flow-strip a {
  padding: 10px 8px;
  text-align: center;
  border-radius: var(--radius);
  color: var(--accent-strong);
  background: #e9f3ef;
  font-size: 12px;
  font-weight: 800;
}

.summary-band {
  background: var(--dark);
  color: #fff;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  padding: 0;
}

.summary-grid article {
  padding: 32px;
  background: rgba(255, 255, 255, 0.035);
}

.summary-grid strong {
  display: block;
  margin-bottom: 10px;
  font-size: 18px;
}

.summary-grid p {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.7;
}

.layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 56px;
  padding: 70px 0 90px;
}

.toc {
  position: sticky;
  top: 86px;
  align-self: start;
  display: grid;
  gap: 6px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.62);
}

.toc span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 6px;
}

.toc a {
  padding: 9px 10px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.toc a:hover {
  color: var(--ink);
  background: #fff;
}

.toc a.is-active {
  box-shadow: inset 3px 0 0 var(--accent);
}

.content {
  min-width: 0;
}

.hero-copy {
  min-width: 0;
}

.guide-section {
  padding: 42px;
  margin-bottom: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 30px rgba(49, 38, 30, 0.05);
}

.section-heading {
  margin-bottom: 28px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.16;
  letter-spacing: 0;
}

.section-heading p:not(.section-label) {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.7;
  max-width: 760px;
}

.plain-flow {
  display: grid;
  gap: 12px;
}

.plain-flow div {
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-soft);
}

.plain-flow span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #fff;
  background: var(--accent);
  font-weight: 800;
}

.plain-flow p {
  margin: 0;
  font-weight: 700;
  line-height: 1.55;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.price-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper-soft);
}

.price-card.featured {
  border-color: rgba(18, 108, 98, 0.5);
  background: #eaf5f1;
}

.price-card span {
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
}

.price-card h3 {
  margin: 12px 0 18px;
  font-size: 22px;
  line-height: 1.3;
}

.price-card ul,
.two-column ul,
.sources ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.8;
}

.service-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.service-links a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid rgba(18, 108, 98, 0.28);
  border-radius: 999px;
  color: var(--accent-strong);
  background: #eef8f4;
  font-size: 13px;
  font-weight: 800;
}

.notice {
  margin-top: 16px;
  padding: 16px 18px;
  border-left: 4px solid var(--warm);
  background: #fff5e8;
  color: #59443a;
  line-height: 1.7;
}

.check-grid,
.qa-list {
  display: grid;
  gap: 10px;
}

.check-grid {
  grid-template-columns: repeat(2, 1fr);
}

.check-grid label,
.qa-list label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-soft);
  font-weight: 700;
  line-height: 1.5;
}

input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  flex: 0 0 auto;
}

.steps-showcase {
  --step-count: 12;
  position: relative;
  height: calc(var(--step-count) * 360px);
  margin-top: 30px;
}

.steps-viewport {
  position: sticky;
  top: 74px;
  min-height: calc(100vh - 86px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  overflow: hidden;
}

.steps-motion {
  min-width: 0;
}

.motion-window {
  position: relative;
  overflow: hidden;
  min-height: 440px;
  padding: 8px 0 30px;
}

.motion-track {
  display: flex;
  gap: 18px;
  align-items: stretch;
  transform: translate3d(var(--track-x, 28vw), 0, 0);
  will-change: transform;
}

.motion-step-card {
  flex: 0 0 min(420px, 78vw);
  min-height: 410px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 28px 70px rgba(49, 38, 30, 0.14);
}

.motion-index {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  color: #fff;
  background: var(--accent);
  font-size: 17px;
  font-weight: 800;
}

.motion-step-card h3 {
  margin: 0;
  font-size: 26px;
  line-height: 1.25;
  letter-spacing: 0;
}

.motion-step-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
  font-weight: 700;
}

.motion-step-card ul {
  margin: auto 0 0;
  padding: 18px;
  border-radius: 12px;
  color: #fff;
  background: var(--dark);
  line-height: 1.85;
  font-weight: 700;
}

.motion-step-card a {
  color: var(--accent-strong);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.steps-pin {
  display: grid;
  grid-template-columns: minmax(220px, 0.78fr) minmax(0, 1.45fr);
  gap: 22px;
  align-items: start;
}

.steps-sticky {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 16px;
  padding: 22px;
  border: 1px solid rgba(18, 108, 98, 0.24);
  border-radius: 14px;
  background: linear-gradient(145deg, #edf8f3, #ffffff);
  box-shadow: 0 18px 45px rgba(18, 108, 98, 0.08);
}

.steps-sticky strong {
  color: var(--accent-strong);
  font-size: 13px;
  text-transform: uppercase;
}

.steps-sticky p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
  font-weight: 700;
}

.mini-flow {
  display: grid;
  gap: 8px;
}

.mini-flow span {
  padding: 10px 12px;
  border-radius: var(--radius);
  background: var(--dark);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.step-accordion {
  display: grid;
  gap: 12px;
}

.step-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper-soft);
  box-shadow: 0 12px 34px rgba(49, 38, 30, 0.055);
  overflow: hidden;
}

.step-card[open] {
  border-color: rgba(18, 108, 98, 0.38);
  background: #ffffff;
}

.step-card summary {
  display: grid;
  grid-template-columns: 40px 1fr 22px;
  align-items: center;
  gap: 14px;
  padding: 18px;
  cursor: pointer;
  list-style: none;
}

.step-card summary::-webkit-details-marker {
  display: none;
}

.step-card summary::after {
  content: "+";
  color: var(--accent);
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
}

.step-card[open] summary::after {
  content: "−";
}

.step-card summary span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: #fff;
  background: var(--dark);
  font-size: 14px;
  font-weight: 800;
}

.step-card[open] summary span {
  background: var(--accent);
}

.step-card summary strong {
  font-size: 17px;
  line-height: 1.45;
}

.step-detail {
  padding: 0 18px 20px 72px;
  color: var(--muted);
  line-height: 1.75;
}

.step-detail p {
  margin: 0 0 12px;
}

.step-detail ul {
  margin: 0;
  padding-left: 18px;
}

pre {
  position: relative;
  overflow-x: auto;
  max-width: 100%;
  margin: 0;
  padding: 22px;
  border-radius: 12px;
  color: #f7efe8;
  background: #271a17;
  line-height: 1.65;
  font-size: 14px;
}

.two-column {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.two-column article {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-soft);
}

.two-column h3 {
  margin: 0 0 14px;
}

.danger {
  border-color: rgba(217, 123, 63, 0.45);
}

.copy-block {
  position: relative;
}

.copy-button {
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 2;
  border: 0;
  padding: 8px 12px;
  color: #fff;
  background: var(--accent);
  cursor: pointer;
}

.copy-button.copied {
  background: var(--warm);
}

.sources a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer {
  padding: 38px 0;
  color: #fff;
  background: var(--dark);
}

.footer p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.72);
}

@media (max-width: 960px) {
  .desktop-nav {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 56px;
    gap: 38px;
  }

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

  .toc {
    position: static;
    grid-template-columns: repeat(2, 1fr);
  }

  .summary-grid,
  .pricing-grid,
  .two-column,
  .steps-pin,
  .steps-viewport {
    grid-template-columns: 1fr;
  }

  .steps-sticky {
    position: static;
  }

  .steps-showcase {
    height: calc(var(--step-count) * 430px);
  }

  .steps-viewport {
    top: 62px;
    min-height: auto;
    align-items: start;
    gap: 20px;
    padding-top: 20px;
  }

  .motion-window {
    min-height: 430px;
  }
}

@media (max-width: 640px) {
  .section-shell {
    width: calc(100% - 28px);
  }

  .topbar {
    padding: 12px 14px;
    gap: 10px;
  }

  .brand span:last-child {
    display: none;
  }

  .nav-cta {
    display: none;
  }

  .hero h1 {
    max-width: 330px;
    font-size: 33px;
    line-height: 1.12;
  }

  .hero-lead {
    max-width: 330px;
    font-size: 17px;
  }

  .hero-actions {
    display: grid;
  }

  .hero-panel,
  .guide-section {
    width: 100%;
    max-width: 100%;
    padding: 18px;
    border-radius: 12px;
    overflow: hidden;
  }

  .bubble {
    width: calc(100% - 28px);
    margin: 14px;
  }

  .bubble.user {
    max-width: none;
    margin-left: 14px;
  }

  .bubble dl div {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .bubble dd {
    text-align: left;
    overflow-wrap: anywhere;
  }

  .summary-grid article {
    padding: 24px 18px;
  }

  .layout {
    padding-top: 38px;
    gap: 28px;
  }

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

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

  .flow-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps-showcase {
    height: calc(var(--step-count) * 470px);
  }

  .motion-step-card {
    flex-basis: min(320px, 82vw);
    min-height: 410px;
    padding: 22px;
    border-radius: 14px;
  }

  .motion-step-card h3 {
    font-size: 22px;
  }

  .step-card summary {
    grid-template-columns: 34px 1fr 18px;
    gap: 10px;
    padding: 15px;
  }

  .step-card summary span {
    width: 32px;
    height: 32px;
  }

  .step-detail {
    padding: 0 15px 18px;
  }
}
