.guide-shell {
  --guide-space-1: 4px;
  --guide-space-2: 8px;
  --guide-space-3: 12px;
  --guide-space-4: 16px;
  --guide-space-5: 20px;
  --guide-space-6: 24px;
  --guide-space-8: 32px;
  --guide-space-10: 40px;
  --guide-space-12: 48px;
  --guide-space-16: 64px;
  --guide-space-20: 80px;
  --guide-type-display: 3rem;
  --guide-type-h2: 1.5rem;
  --guide-type-h3: 1.125rem;
  --guide-type-lead: 1rem;
  --guide-type-body: 0.9375rem;
  --guide-type-small: 0.8125rem;
  --guide-type-overline: 0.6875rem;
  --guide-type-ui: 0.875rem;
  --guide-on-accent: #fff;
  --guide-success: #15803d;
  --guide-success-surface: rgba(34, 197, 94, 0.1);
  --guide-tip-surface: rgba(53, 109, 255, 0.08);
  --guide-warning-surface: rgba(255, 140, 26, 0.1);
  --guide-topbar-surface: rgba(246, 240, 230, 0.9);
  --guide-focus-ring: var(--blue);
  --guide-hover-surface: rgba(255, 255, 255, 0.5);
  --guide-media-label-line: rgba(255, 255, 255, 0.7);
  --guide-media-label-surface: rgba(21, 17, 12, 0.62);
  --guide-media-progress-track: rgba(255, 255, 255, 0.72);
  --guide-media-progress-fill: var(--blue);
  --guide-step-shadow: 0 12px 28px rgba(53, 109, 255, 0.2);
  --guide-shadow-phone: 0 24px 64px rgba(41, 26, 12, 0.12);
  position: relative;
  z-index: 1;
}

.guide-icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.guide-icon {
  width: 1em;
  height: 1em;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.guide-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--guide-space-4);
  min-height: 56px;
  padding: var(--guide-space-2) var(--guide-space-6);
  background: var(--guide-topbar-surface);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-bottom: 1px solid var(--line);
}

.guide-back {
  display: inline-flex;
  align-items: center;
  gap: var(--guide-space-2);
  min-height: 40px;
  padding: var(--guide-space-2) var(--guide-space-3);
  border-radius: var(--guide-space-3);
  color: var(--muted);
  font-size: var(--guide-type-ui);
  font-weight: 600;
  transition:
    background-color 150ms ease-out,
    color 150ms ease-out,
    transform 150ms ease-out;
}

.guide-back:hover {
  color: var(--ink);
  background: var(--surface);
}

.guide-back:active {
  transform: translateY(1px);
}

.guide-back img {
  width: 20px;
  height: 20px;
  border-radius: var(--guide-space-1);
}

.guide-topbar-title {
  flex: 1;
  overflow: hidden;
  color: var(--ink);
  font-size: var(--guide-type-ui);
  font-weight: 600;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.guide-nowrap {
  white-space: nowrap;
}

.lang-select {
  min-height: 40px;
  padding: var(--guide-space-2) var(--guide-space-3);
  border: 1px solid var(--line);
  border-radius: var(--guide-space-3);
  color: var(--ink);
  background: var(--surface-strong);
  font: inherit;
  font-size: var(--guide-type-small);
  font-weight: 600;
  cursor: pointer;
  transition:
    border-color 150ms ease-out,
    background-color 150ms ease-out;
}

.lang-select:hover {
  border-color: var(--line-strong);
  background: var(--paper);
}

.lang-select:focus-visible,
.guide-back:focus-visible,
.guide-toc-nav a:focus-visible,
.guide-contact-link:focus-visible,
.guide-faq-item summary:focus-visible {
  outline: 3px solid var(--guide-focus-ring);
  outline-offset: var(--guide-space-1);
}

.guide-main {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  align-items: start;
  gap: var(--guide-space-12);
  width: min(calc(100% - 48px), 1120px);
  margin: 0 auto;
  padding: var(--guide-space-10) 0 var(--guide-space-20);
}

.guide-toc {
  position: sticky;
  top: 76px;
}

.guide-toc-label {
  margin: 0 0 var(--guide-space-2) var(--guide-space-3);
  color: var(--muted);
  font-family: "Space Grotesk", sans-serif;
  font-size: var(--guide-type-overline);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.guide-toc-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.guide-toc-nav a {
  display: block;
  padding: var(--guide-space-2) var(--guide-space-3);
  border-radius: var(--guide-space-3);
  color: var(--muted);
  font-size: var(--guide-type-ui);
  line-height: 1.45;
  transition:
    background-color 150ms ease-out,
    color 150ms ease-out;
}

.guide-toc-nav a:hover {
  color: var(--ink);
  background: var(--guide-hover-surface);
}

.guide-toc-nav a.is-active {
  color: var(--ink);
  background: var(--surface-strong);
  font-weight: 600;
}

.guide-content {
  min-width: 0;
}

.guide-intro {
  padding: var(--guide-space-4) 0 var(--guide-space-20);
  scroll-margin-top: var(--guide-space-20);
}

.guide-intro-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(340px, 1.1fr);
  align-items: start;
  gap: var(--guide-space-12);
}

.guide-kicker {
  margin: 0 0 var(--guide-space-3);
  color: var(--blue);
  font-family: "Space Grotesk", sans-serif;
  font-size: var(--guide-type-small);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.guide-page-title {
  max-width: 12ch;
  margin: 0;
  color: var(--ink);
  font-family: "Space Grotesk", "IBM Plex Sans KR", sans-serif;
  font-size: var(--guide-type-display);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.16;
  word-break: keep-all;
}

.guide-page-desc {
  max-width: 32rem;
  margin: var(--guide-space-4) 0 0;
  color: var(--muted);
  font-size: var(--guide-type-lead);
  line-height: 1.7;
  word-break: keep-all;
}

.guide-duration {
  display: inline-flex;
  align-items: center;
  gap: var(--guide-space-2);
  margin: var(--guide-space-5) 0 0;
  color: var(--muted);
  font-size: var(--guide-type-small);
  font-weight: 600;
}

.guide-duration .guide-icon {
  width: var(--guide-space-4);
  height: var(--guide-space-4);
}

.guide-prep {
  margin-top: var(--guide-space-10);
  padding-top: var(--guide-space-6);
  border-top: 1px solid var(--line-strong);
}

.guide-prep-title {
  margin: 0 0 var(--guide-space-4);
  font-size: var(--guide-type-h3);
  line-height: 1.45;
}

.guide-checklist,
.guide-action-list {
  display: flex;
  flex-direction: column;
  gap: var(--guide-space-3);
  margin: 0;
  padding: 0;
  list-style: none;
}

.guide-checklist li,
.guide-action-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--guide-space-3);
  color: var(--ink);
  font-size: var(--guide-type-body);
  line-height: 1.65;
  word-break: keep-all;
}

.guide-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  border-radius: 50%;
  color: var(--guide-on-accent);
  background: var(--blue);
}

.guide-check .guide-icon {
  width: var(--guide-space-3);
  height: var(--guide-space-3);
  stroke-width: 2.6;
}

.guide-result-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: var(--guide-space-4);
  margin: 0;
}

.guide-result-item,
.guide-media {
  margin: 0;
}

.guide-result-frame,
.guide-phone-frame {
  position: relative;
  overflow: hidden;
  border: var(--guide-space-2) solid var(--surface-strong);
  background: var(--surface-strong);
  box-shadow: var(--guide-shadow-phone);
}

.guide-result-frame {
  border-radius: var(--guide-space-6);
}

.guide-phone-frame {
  width: min(100%, 320px);
  margin-inline: auto;
  border-radius: var(--guide-space-8);
}

.guide-result-frame img,
.guide-phone-frame img {
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 19.5;
  object-fit: cover;
}

.guide-phone-frame--animated::before,
.guide-phone-frame--animated::after {
  position: absolute;
  right: var(--guide-space-4);
  top: var(--guide-space-1);
  left: var(--guide-space-4);
  z-index: 2;
  height: var(--guide-space-1);
  border-radius: 999px;
  content: "";
  pointer-events: none;
}

.guide-phone-frame--animated::before {
  background: var(--guide-media-progress-track);
  box-shadow: 0 0 0 1px var(--guide-media-label-surface);
}

.guide-phone-frame--animated::after {
  background: var(--guide-media-progress-fill);
  transform: scaleX(0);
  transform-origin: left center;
}

.guide-phone-frame--animated.is-playing::after {
  animation: guide-media-progress var(--guide-media-duration) linear forwards;
}

@keyframes guide-media-progress {
  to {
    transform: scaleX(1);
  }
}

.guide-media-hotspot {
  --guide-hotspot-x: 50%;
  --guide-hotspot-y: 50%;

  position: absolute;
  top: var(--guide-hotspot-y);
  left: var(--guide-hotspot-x);
  z-index: 4;
  width: calc(var(--guide-space-8) + var(--guide-space-1));
  aspect-ratio: 1;
  border: 2px solid var(--blue);
  border-radius: 50%;
  background: var(--guide-tip-surface);
  box-shadow: 0 0 0 2px var(--surface-strong);
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.guide-media-hotspot::after {
  position: absolute;
  inset: -2px;
  border: 2px solid var(--blue);
  border-radius: inherit;
  content: "";
  opacity: 0;
  pointer-events: none;
}

.guide-media-hotspot--play {
  --guide-hotspot-x: 84.9%;
  --guide-hotspot-y: 94.1%;
}

.guide-phone-frame--animated.is-playing .guide-media-hotspot::after {
  animation: guide-media-hotspot-cue 700ms ease-out 1;
}

@keyframes guide-media-hotspot-cue {
  from {
    opacity: 0.9;
    transform: scale(0.72);
  }

  to {
    opacity: 0;
    transform: scale(1.45);
  }
}

.guide-result-item figcaption,
.guide-media figcaption {
  margin-top: var(--guide-space-3);
  color: var(--muted);
  font-size: var(--guide-type-small);
  line-height: 1.5;
  text-align: center;
  word-break: keep-all;
}

.guide-media-badge {
  position: absolute;
  top: var(--guide-space-3);
  right: var(--guide-space-3);
  z-index: 3;
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  min-height: 26px;
  padding: var(--guide-space-1) var(--guide-space-2);
  border: 1px solid var(--guide-media-label-line);
  border-radius: 999px;
  color: var(--guide-on-accent);
  background: var(--guide-media-label-surface);
  font-family: "Space Grotesk", sans-serif;
  font-size: var(--guide-type-overline);
  font-weight: 700;
  letter-spacing: 0.05em;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
  appearance: none;
  transition:
    opacity 150ms ease-out,
    transform 150ms ease-out;
}

.guide-phone-frame--animated .guide-media-badge {
  display: inline-flex;
}

.guide-media-badge:hover {
  opacity: 0.86;
}

.guide-media-badge:active {
  transform: translateY(1px);
}

.guide-media-badge:focus-visible {
  outline: 2px solid var(--guide-focus-ring);
  outline-offset: 2px;
}

.guide-step-section {
  padding: var(--guide-space-12) 0 var(--guide-space-16);
  border-top: 1px solid var(--line-strong);
  scroll-margin-top: var(--guide-space-20);
}

.guide-step-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(240px, 1.1fr);
  align-items: center;
  gap: var(--guide-space-12);
}

.guide-step-section--reverse .guide-step-copy {
  grid-column: 2;
  grid-row: 1;
}

.guide-step-section--reverse .guide-media {
  grid-column: 1;
  grid-row: 1;
}

.guide-step-heading {
  display: flex;
  align-items: center;
  gap: var(--guide-space-3);
}

.guide-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--guide-on-accent);
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
  box-shadow: var(--guide-step-shadow);
  font-family: "Space Grotesk", sans-serif;
  font-size: var(--guide-type-h3);
  font-weight: 700;
}

.guide-step-heading h2 {
  min-width: 0;
  margin: 0;
  color: var(--ink);
  font-size: var(--guide-type-h2);
  line-height: 1.35;
  word-break: keep-all;
}

.guide-step-copy > p {
  margin: var(--guide-space-4) 0 0;
  color: var(--muted);
  font-size: var(--guide-type-body);
  line-height: 1.75;
  word-break: keep-all;
}

.guide-action-list {
  margin-top: var(--guide-space-5);
}

.guide-action-list .guide-check {
  width: var(--guide-space-5);
  height: var(--guide-space-5);
  color: var(--blue);
  background: var(--guide-tip-surface);
}

.guide-action-list .guide-check .guide-icon {
  width: 11px;
  height: 11px;
}

.guide-callout {
  display: flex;
  gap: var(--guide-space-3);
  margin-top: var(--guide-space-5);
  padding: var(--guide-space-3) var(--guide-space-4);
  border-left: 3px solid transparent;
  border-radius: var(--guide-space-4);
  color: var(--muted);
  font-size: var(--guide-type-ui);
  line-height: 1.65;
  word-break: keep-all;
}

.guide-callout .guide-icon {
  width: var(--guide-space-5);
  height: var(--guide-space-5);
  margin-top: 2px;
}

.guide-callout p {
  margin: 0;
}

.guide-callout--tip {
  border-left-color: var(--blue);
  background: var(--guide-tip-surface);
}

.guide-callout--warning {
  border-left-color: var(--amber-deep);
  background: var(--guide-warning-surface);
}

.guide-callout--success {
  border-left-color: var(--guide-success);
  background: var(--guide-success-surface);
}

.guide-callout--success .guide-icon {
  color: var(--guide-success);
}

.guide-support-section {
  padding: var(--guide-space-12) 0 var(--guide-space-16);
  border-top: 1px solid var(--line-strong);
  scroll-margin-top: var(--guide-space-20);
}

.guide-support-title {
  margin: 0 0 var(--guide-space-6);
  color: var(--ink);
  font-size: var(--guide-type-h2);
  line-height: 1.35;
}

.guide-faq {
  display: flex;
  flex-direction: column;
  gap: var(--guide-space-2);
}

.guide-faq-item {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--guide-space-4);
  background: var(--surface-strong);
}

.guide-faq-item summary {
  display: flex;
  align-items: flex-start;
  gap: var(--guide-space-3);
  padding: var(--guide-space-4) var(--guide-space-5);
  color: var(--ink);
  font-size: var(--guide-type-body);
  font-weight: 600;
  line-height: 1.55;
  list-style: none;
  cursor: pointer;
  word-break: keep-all;
  transition: background-color 150ms ease-out;
}

.guide-faq-item summary:hover {
  background: var(--guide-tip-surface);
}

.guide-faq-item summary::-webkit-details-marker {
  display: none;
}

.guide-faq-item[open] summary {
  border-bottom: 1px solid var(--line);
}

.guide-faq-mark {
  flex: 0 0 auto;
  color: var(--blue);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
}

.guide-faq-body {
  padding: var(--guide-space-4) var(--guide-space-5) var(--guide-space-5);
  color: var(--muted);
  font-size: var(--guide-type-body);
  line-height: 1.75;
  word-break: keep-all;
}

.guide-faq-body img {
  display: block;
  width: min(100%, 280px);
  height: auto;
  margin-top: var(--guide-space-3);
  border-radius: var(--guide-space-4);
  box-shadow: var(--shadow-soft);
}

.guide-contact-card {
  padding: var(--guide-space-8);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface-strong);
  box-shadow: var(--shadow-soft);
  text-align: center;
}

.guide-contact-card p {
  max-width: 34rem;
  margin: 0 auto;
  color: var(--muted);
  font-size: var(--guide-type-body);
  line-height: 1.75;
  word-break: keep-all;
}

.guide-contact-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--guide-space-3);
  margin-top: var(--guide-space-6);
}

.guide-contact-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--guide-space-2);
  min-height: 44px;
  padding: var(--guide-space-2) var(--guide-space-5);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: var(--guide-type-ui);
  font-weight: 600;
  transition:
    opacity 150ms ease-out,
    transform 150ms ease-out,
    background-color 150ms ease-out;
}

.guide-contact-link:hover {
  transform: translateY(-1px);
}

.guide-contact-link:active {
  transform: translateY(1px);
}

.guide-contact-link--primary {
  color: var(--guide-on-accent);
  background: var(--ink);
}

.guide-contact-link--secondary {
  color: var(--ink);
  background: var(--paper);
}

:is(html:lang(ja), html:lang(zh-Hans), html:lang(zh-Hant)) .guide-shell :where(
  .guide-page-title,
  .guide-page-desc,
  .guide-checklist li,
  .guide-action-list li,
  .guide-result-item figcaption,
  .guide-media figcaption,
  .guide-step-copy h2,
  .guide-step-copy > p,
  .guide-callout,
  .guide-faq-item summary,
  .guide-faq-body,
  .guide-contact-card p
) {
  overflow-wrap: normal;
  word-break: normal;
  word-break: auto-phrase;
  line-break: strict;
}

@media (max-width: 900px) {
  .guide-main {
    grid-template-columns: minmax(0, 1fr);
    width: min(calc(100% - 40px), 760px);
    gap: 0;
    padding-top: var(--guide-space-8);
  }

  .guide-toc {
    display: none;
  }

  .guide-intro-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--guide-space-10);
  }

  .guide-page-title {
    max-width: 16ch;
  }

  .guide-result-pair {
    width: min(100%, 560px);
    margin-inline: auto;
  }
}

@media (min-width: 641px) and (max-width: 900px) {
  :is(html:lang(zh-Hans), html:lang(zh-Hant)) .guide-page-title {
    max-width: none;
  }
}

@media (max-width: 640px) {
  .guide-topbar {
    padding-inline: var(--guide-space-3);
  }

  .guide-topbar-title {
    display: none;
  }

  .guide-main {
    width: min(calc(100% - 40px), 520px);
    padding-top: var(--guide-space-6);
  }

  .guide-intro {
    padding-top: var(--guide-space-2);
    padding-bottom: var(--guide-space-16);
  }

  .guide-intro-grid {
    gap: var(--guide-space-8);
  }

  .guide-page-title {
    max-width: 12ch;
    font-size: 2.625rem;
  }

  .guide-page-desc {
    font-size: var(--guide-type-body);
  }

  .guide-prep {
    margin-top: var(--guide-space-8);
  }

  .guide-result-pair {
    gap: var(--guide-space-3);
  }

  .guide-result-frame {
    border-width: var(--guide-space-1);
    border-radius: var(--guide-space-4);
  }

  .guide-result-item figcaption {
    font-size: 0.75rem;
  }

  .guide-step-section,
  .guide-support-section {
    padding: var(--guide-space-10) 0 var(--guide-space-12);
  }

  .guide-step-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--guide-space-8);
  }

  .guide-step-section--reverse .guide-step-copy,
  .guide-step-section--reverse .guide-media {
    grid-column: 1;
  }

  .guide-step-section--reverse .guide-step-copy {
    grid-row: 1;
  }

  .guide-step-section--reverse .guide-media {
    grid-row: 2;
  }

  .guide-step-copy h2,
  .guide-support-title {
    font-size: 1.375rem;
  }

  .guide-phone-frame {
    width: min(100%, 300px);
    border-width: 6px;
    border-radius: 28px;
  }

  .guide-contact-card {
    padding: var(--guide-space-6) var(--guide-space-5);
  }

  .guide-contact-links {
    flex-direction: column;
  }

  .guide-contact-link {
    width: 100%;
  }
}

@media (max-width: 380px) {
  .guide-main {
    width: min(calc(100% - 32px), 520px);
  }

  .guide-back {
    padding-inline: var(--guide-space-2);
  }

  .lang-select {
    max-width: 116px;
  }

  .guide-page-title {
    font-size: 2rem;
  }

  .guide-checklist li,
  .guide-action-list li,
  .guide-step-copy > p {
    font-size: var(--guide-type-body);
  }

  .guide-step-num {
    width: var(--guide-space-10);
    height: var(--guide-space-10);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .guide-shell *,
  .guide-shell *::before,
  .guide-shell *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }

  .guide-phone-frame--animated .guide-media-badge,
  .guide-phone-frame--animated::before,
  .guide-phone-frame--animated::after {
    display: none;
  }

  .guide-media-hotspot::after {
    animation: none;
  }
}
