.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 12px 16px;
  color: #fff;
  background: #171916;
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

.giwa-demo-shell {
  min-height: 100dvh;
  overflow: visible;
  display: grid;
  grid-template-rows: 64px auto;
  color: #171916;
  background: #f7f6f1;
  font-family:
    "Pretendard Variable",
    Pretendard,
    -apple-system,
    BlinkMacSystemFont,
    system-ui,
    sans-serif;
}

.giwa-demo-shell:focus-within {
  scroll-behavior: auto;
}

.giwa-demo-shell :focus-visible {
  outline: 3px solid #0b5f43;
  outline-offset: 3px;
}

.giwa-demo-topbar {
  position: sticky;
  z-index: 20;
  top: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  min-width: 0;
  min-height: 64px;
  padding: 0 clamp(20px, 3vw, 48px);
  border-bottom: 1px solid #d8d8d0;
  background: #f7f6f1;
}

.giwa-demo-wordmark {
  overflow: hidden;
  color: inherit;
  font-size: 13px;
  font-weight: 760;
  letter-spacing: 0.025em;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.giwa-demo-environment {
  margin: 0;
  color: #0b5f43;
  font-size: 13px;
  font-weight: 650;
}

.giwa-demo-product-link {
  justify-self: end;
}

.giwa-demo-shell .secondary-link {
  min-height: 44px;
  border: 0;
  padding-inline: 4px;
  background: transparent;
  text-decoration: underline;
  text-decoration-color: #a9aca4;
  text-underline-offset: 5px;
}

.giwa-demo-shell .secondary-link:hover {
  text-decoration-color: currentColor;
}

.giwa-demo-frame {
  width: min(100% - 48px, 1180px);
  min-height: calc(100dvh - 64px);
  margin-inline: auto;
  padding: clamp(40px, 6vw, 80px) 0 72px;
}

.giwa-demo-frame > * {
  min-width: 0;
}

.giwa-demo-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.52fr);
  gap: clamp(40px, 7vw, 96px);
  align-items: end;
  margin-bottom: 40px;
}

.giwa-demo-intro .eyebrow {
  margin: 0;
  color: #0b5f43;
  font-family: inherit;
  font-size: 13px;
  font-weight: 720;
  letter-spacing: 0.015em;
  text-transform: none;
}

.giwa-demo-intro h1 {
  max-width: 760px;
  margin: 12px 0 0;
  font-size: clamp(44px, 5vw, 56px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.035em;
  word-break: keep-all;
}

.giwa-demo-intro h1 > span {
  display: block;
}

.giwa-demo-intro .lead {
  margin: 0;
  color: #5b615a;
  font-size: 17px;
  line-height: 1.65;
  word-break: keep-all;
}

.giwa-demo-judge-promise {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: end;
  margin: 0 0 40px;
  padding-block: 22px;
  border-block: 1px solid #cdcec6;
}

.giwa-demo-judge-copy {
  display: grid;
  gap: 8px;
}

.giwa-demo-problem,
.giwa-demo-promise {
  max-width: 66ch;
  margin: 0;
  line-height: 1.55;
  word-break: keep-all;
}

.giwa-demo-problem {
  color: #656960;
  font-size: 14px;
}

.giwa-demo-promise {
  color: #171916;
  font-size: 15px;
  font-weight: 650;
}

.giwa-demo-proof-path {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.giwa-demo-proof-path li {
  min-width: 0;
  padding: 0 12px;
  border-left: 1px solid #cdcec6;
}

.giwa-demo-proof-path li:first-child {
  padding-left: 0;
  border-left: 0;
}

.giwa-demo-proof-index {
  display: block;
  margin-bottom: 7px;
  color: #0b5f43;
  font: 700 10px/1 ui-monospace, SFMono-Regular, Consolas, monospace;
}

.giwa-demo-proof-path strong {
  font-size: 13px;
  overflow-wrap: anywhere;
}

.giwa-demo-mismatch {
  display: grid;
  gap: 12px;
  padding-left: 14px;
  border-left: 3px solid #805800;
}

.giwa-demo-mismatch h3,
.giwa-demo-mismatch p {
  margin: 0;
}

.giwa-demo-mismatch h3 {
  font-size: 17px;
  line-height: 1.45;
  word-break: keep-all;
}

.giwa-demo-guided-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  border-block: 1px solid #cdcec6;
  list-style: none;
}

.giwa-demo-stage {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 20px;
  padding: 28px;
  border-right: 1px solid #cdcec6;
  background: transparent;
  transition:
    background-color 180ms ease,
    box-shadow 180ms ease;
}

.giwa-demo-stage:last-child {
  border-right: 0;
}

.giwa-demo-stage.current,
.giwa-demo-stage.attention {
  background: #fcfbf7;
  box-shadow: inset 0 -4px 0 #0b5f43;
}

.giwa-demo-stage.complete {
  color: #3f4942;
}

.giwa-demo-stage.locked {
  color: #777c75;
}

.giwa-demo-stage-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.giwa-demo-stage-index {
  color: #0b5f43;
  font: 700 11px/1 ui-monospace, SFMono-Regular, Consolas, monospace;
}

.giwa-demo-stage-state {
  color: #656960;
  font: normal 700 11px/1 ui-monospace, SFMono-Regular, Consolas, monospace;
}

.giwa-demo-stage.attention .giwa-demo-stage-state {
  color: #805800;
}

.giwa-demo-stage-heading h2 {
  margin: 0 0 8px;
  font-size: clamp(21px, 2vw, 28px);
  letter-spacing: -0.035em;
}

.giwa-demo-stage-heading p {
  margin: 0;
  color: #656960;
  line-height: 1.55;
  word-break: keep-all;
}

.giwa-demo-stage-content {
  min-width: 0;
}

.giwa-demo-stage .panel,
.giwa-demo-stage .user-gate-card,
.giwa-demo-stage .field {
  border-radius: 0;
  box-shadow: none;
}

.giwa-demo-stage .panel {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.giwa-demo-stage .panel > .eyebrow {
  margin: 0 0 7px;
  color: #0b5f43;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.giwa-demo-stage .panel > h2 {
  margin: 0 0 14px;
  font-size: 17px;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.giwa-demo-stage .panel > .muted,
.giwa-demo-stage .panel > .notice {
  margin: 0 0 16px;
  color: #656960;
  font-size: 14px;
  line-height: 1.55;
}

.giwa-demo-stage-summary {
  display: grid;
  margin: 0;
  border-top: 1px solid #d8d8d0;
}

.giwa-demo-stage-summary .field,
.giwa-demo-stage .panel > .field {
  min-width: 0;
  min-height: 54px;
  margin: 0;
  padding-block: 12px;
  border: 0;
  border-bottom: 1px solid #d8d8d0;
}

.giwa-demo-stage .field {
  grid-template-columns: minmax(84px, 0.42fr) minmax(0, 1fr);
  gap: 12px;
}

.giwa-demo-stage .field-label {
  color: #6f746c;
  font-size: 12px;
}

.giwa-demo-stage .field-value {
  min-width: 0;
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.giwa-demo-stage .user-technical-details {
  margin-top: 18px;
  border-top: 1px solid #d8d8d0;
}

.giwa-demo-stage .user-technical-details > summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  color: #4f554e;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}

.giwa-demo-shell .notice {
  max-width: 62ch;
  margin: 0;
  color: #5b615a;
  font-size: 14px;
  font-weight: 580;
  line-height: 1.55;
}

.giwa-demo-shell .user-state {
  width: 100%;
  margin: 0;
  border-radius: 0;
  background: transparent;
}

.giwa-demo-shell .user-primary-action {
  min-width: 180px;
  min-height: 50px;
  border-radius: 12px;
  padding-inline: 20px;
  background: #0b5f43;
  box-shadow: none;
}

.giwa-demo-shell .user-cta-cluster {
  align-items: center;
  gap: 10px 14px;
  margin-top: 0;
}

.giwa-demo-shell .user-cta-cluster > * {
  min-width: 0;
}

.giwa-demo-shell .journey-shell {
  grid-template-columns: minmax(190px, 0.32fr) minmax(0, 1fr);
  border-color: #cdcec6;
}

.giwa-demo-shell .journey-canvas {
  padding-block: 28px 36px;
}

.giwa-demo-shell .journey-stage-rail {
  color: #5b615a;
}

.giwa-demo-shell .journey-condition-table,
.giwa-demo-shell .journey-match-table {
  border-top-color: #cdcec6;
}

.giwa-demo-shell .journey-current-stage {
  min-height: 270px;
}

@media (min-width: 960px) and (max-height: 800px) {
  .giwa-demo-frame {
    padding-block: 24px 40px;
  }

  .giwa-demo-intro {
    margin-bottom: 18px;
  }

  .giwa-demo-intro h1 {
    font-size: clamp(40px, 4vw, 48px);
  }

  .giwa-demo-judge-promise {
    margin-bottom: 20px;
    padding-block: 14px;
  }

  .giwa-demo-stage {
    gap: 10px;
    padding: 18px;
  }

  .giwa-demo-stage-summary .field,
  .giwa-demo-stage .panel > .field {
    min-height: 40px;
    padding-block: 6px;
  }

  .giwa-demo-stage .panel > .muted,
  .giwa-demo-stage .panel > .notice {
    margin-bottom: 8px;
  }
}

@media (max-width: 959px) {
  .giwa-demo-shell {
    display: block;
  }

  .giwa-demo-topbar {
    position: static;
  }

  .giwa-demo-frame {
    width: min(100% - 40px, 760px);
  }

  .giwa-demo-intro {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .giwa-demo-judge-promise {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .giwa-demo-guided-flow {
    grid-template-columns: 1fr;
  }

  .giwa-demo-stage {
    border-right: 0;
    border-bottom: 1px solid #cdcec6;
  }

  .giwa-demo-stage:last-child {
    border-bottom: 0;
  }

  .giwa-demo-stage.locked .giwa-demo-stage-content {
    display: none;
  }
}

@media (max-width: 720px) {
  .giwa-demo-shell .journey-shell {
    grid-template-columns: 1fr;
  }

  .giwa-demo-shell .journey-stage-rail {
    grid-template-columns: repeat(5, minmax(130px, 1fr));
  }

  .giwa-demo-shell .journey-canvas {
    padding-top: 22px;
  }
}

@media (max-width: 639px) {
  .giwa-demo-topbar {
    grid-template-columns: 1fr auto;
    padding-inline: 16px;
  }

  .giwa-demo-environment {
    display: none;
  }

  .giwa-demo-frame {
    width: min(100% - 28px, 520px);
    padding-block: 34px 56px;
  }

  .giwa-demo-intro h1 {
    font-size: clamp(36px, 10.5vw, 42px);
  }

  .giwa-demo-proof-path {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 0;
  }

  .giwa-demo-proof-path li:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }

  .giwa-demo-stage {
    padding: 24px 4px;
  }

  .giwa-demo-stage.current,
  .giwa-demo-stage.attention {
    padding-inline: 18px;
  }

  .giwa-demo-stage .user-cta-cluster,
  .giwa-demo-stage .user-primary-action {
    width: 100%;
  }

  .giwa-demo-stage .user-cta-cluster {
    align-items: stretch;
  }

  .giwa-demo-stage .field {
    grid-template-columns: minmax(76px, 0.38fr) minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .giwa-demo-shell *,
  .giwa-demo-shell *::before,
  .giwa-demo-shell *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
