/* GET /service-intro — 심사용 서비스 소개 페이지 */

*,
*::before,
*::after {
  box-sizing: border-box;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.service-intro-page {
  margin: 0;
  min-height: 100vh;
  font-family: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  color: #0b1f44;
  background-color: #f4f7fb;
  background-image: url("/static/images/intro-background.png");
  background-repeat: no-repeat;
  background-position: calc(50% - 1vw) -42vh;
  background-size: 109.73% auto;
  overflow-x: hidden;
}


/* ----- Main layout ----- */
.si-main {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 2.5rem) clamp(1rem, 3vw, 2rem) clamp(2.5rem, 5vw, 4rem);
}

.si-section {
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
}

.si-section__inner {
  padding: clamp(1.5rem, 3.5vw, 2.25rem);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow:
    0 4px 6px rgba(11, 31, 68, 0.04),
    0 14px 40px rgba(11, 31, 68, 0.08);
}

.si-section__title {
  margin: 0 0 1.25rem;
  font-size: clamp(1.25rem, 2.8vw, 1.65rem);
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: #0b1f44;
}

.si-section__lead {
  margin: -0.5rem 0 1.5rem;
  font-size: 0.92rem;
  line-height: 1.6;
  color: #475569;
}

/* ----- Hero ----- */
.si-hero {
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
}

.si-hero__inner {
  padding: clamp(2rem, 5vw, 3rem) clamp(1.5rem, 4vw, 2.5rem);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.97) 0%, rgba(246, 249, 255, 0.95) 100%);
  border: 1px solid rgba(11, 31, 68, 0.08);
  box-shadow: 0 16px 48px rgba(11, 31, 68, 0.1);
  text-align: center;
}

.si-hero__eyebrow {
  margin: 0 0 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #c5162e;
}

.si-hero__title {
  margin: 0 auto 1rem;
  max-width: 28ch;
  font-size: clamp(1.55rem, 4vw, 2.15rem);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.03em;
  color: #0b1f44;
}

.si-hero__subtitle {
  margin: 0 auto 1.75rem;
  max-width: 52ch;
  font-size: clamp(0.95rem, 2vw, 1.08rem);
  line-height: 1.65;
  color: #475569;
}

.si-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

/* ----- Buttons ----- */
.si-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 48px;
  padding: 0.65rem 1.35rem;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 13px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.si-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.03);
}

.si-btn--primary {
  color: #fff;
  background: linear-gradient(135deg, #d63a52 0%, #b91c3a 55%, #9e1832 100%);
  box-shadow: 0 6px 20px rgba(197, 22, 46, 0.28);
}

.si-btn--secondary {
  color: #0b1f44;
  background: #fff;
  border: 1px solid rgba(11, 31, 68, 0.14);
  box-shadow: 0 4px 14px rgba(11, 31, 68, 0.08);
}

.si-btn--ghost {
  color: #334155;
  background: transparent;
  border: 1px solid rgba(11, 31, 68, 0.12);
}

/* ----- Problem list ----- */
.si-problem-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 1rem;
}

.si-problem-list__item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1.1rem 1.15rem;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid rgba(11, 31, 68, 0.06);
}

.si-problem-list__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  font-size: 0.72rem;
  font-weight: 800;
  color: #c5162e;
  background: #fff5f6;
  border-radius: 10px;
  flex-shrink: 0;
}

.si-problem-list__heading {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 700;
  color: #0b1f44;
}

.si-problem-list__text {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #5c6578;
}

/* ----- Card grid ----- */
.si-card-grid {
  display: grid;
  gap: 1rem;
}

.si-card-grid--4 {
  grid-template-columns: repeat(2, 1fr);
}

.si-card-grid--2 {
  grid-template-columns: repeat(2, 1fr);
  align-items: stretch;
}

.si-card {
  padding: 1.25rem 1.2rem;
  border-radius: 18px;
  background: #f8fafc;
  border: 1px solid rgba(11, 31, 68, 0.06);
}

.si-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 0.85rem;
  border-radius: 12px;
}

.si-card__icon--red {
  color: #b91c3a;
  background: linear-gradient(145deg, #fff5f6 0%, #ffe8ec 100%);
}

.si-card__icon--navy {
  color: #0b1f44;
  background: linear-gradient(145deg, #f0f4fa 0%, #e2e8f4 100%);
}

.si-card__icon--blue {
  color: #1d4ed8;
  background: linear-gradient(145deg, #f0f7ff 0%, #e0edff 100%);
}

.si-card__icon--purple {
  color: #6d28d9;
  background: linear-gradient(145deg, #f7f3ff 0%, #ede5ff 100%);
}

.si-card__title {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  color: #0b1f44;
}

.si-card__text {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.6;
  color: #5c6578;
}

/* ----- Demo flow ----- */
.si-flow {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.15rem;
}

.si-flow__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  min-width: 6.5rem;
  max-width: 8.5rem;
  padding: 0.85rem 0.65rem;
  text-align: center;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid rgba(11, 31, 68, 0.08);
}

.si-flow__step--final {
  background: linear-gradient(145deg, #fff5f6 0%, #fff 100%);
  border-color: rgba(197, 22, 46, 0.15);
}

.si-flow__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  font-size: 0.78rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #0b1f44 0%, #1e3a5f 100%);
  border-radius: 50%;
}

.si-flow__step--final .si-flow__num {
  background: linear-gradient(135deg, #d63a52 0%, #9e1832 100%);
}

.si-flow__label {
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.35;
  color: #0b1f44;
}

.si-flow__arrow {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.si-flow__note {
  margin: 1.25rem 0 0;
  padding: 0.85rem 1rem;
  font-size: 0.86rem;
  line-height: 1.55;
  color: #475569;
  background: #f1f5f9;
  border-radius: 12px;
  border-left: 3px solid #c5162e;
}

/* ----- Screen cards ----- */
.si-screen-card {
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(11, 31, 68, 0.08);
}

.si-screen-card__figure {
  margin: 0;
  aspect-ratio: 16 / 10;
  background: linear-gradient(145deg, #eef2f8 0%, #e2e8f0 100%);
  overflow: hidden;
}

.si-screen-card__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.si-screen-card__body {
  padding: 1rem 1.1rem 1.15rem;
}

.si-screen-card__title {
  margin: 0 0 0.4rem;
  font-size: 0.98rem;
  font-weight: 700;
  color: #0b1f44;
}

.si-screen-card__text {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.55;
  color: #5c6578;
}

/* ----- Technology list ----- */
.si-tech-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 1rem;
}

.si-tech-list__item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: start;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(11, 31, 68, 0.07);
}

.si-tech-list__item:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.si-tech-list__bullet {
  width: 0.55rem;
  height: 0.55rem;
  margin-top: 0.45rem;
  border-radius: 50%;
  background: #c5162e;
  flex-shrink: 0;
}

.si-tech-list__item strong {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.98rem;
  font-weight: 700;
  color: #0b1f44;
}

.si-tech-list__item p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.6;
  color: #5c6578;
}

/* ----- Materials ----- */
.si-material-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.15rem 1.2rem;
  text-decoration: none;
  color: inherit;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid rgba(11, 31, 68, 0.08);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

a.si-material-card:hover {
  border-color: rgba(197, 22, 46, 0.25);
  box-shadow: 0 8px 24px rgba(11, 31, 68, 0.08);
  transform: translateY(-2px);
}

.si-material-card--placeholder {
  cursor: default;
  opacity: 0.88;
}

.si-material-card__label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #64748b;
  text-transform: uppercase;
}

.si-material-card__value {
  font-size: 1rem;
  font-weight: 700;
  color: #0b1f44;
  word-break: break-all;
}

.si-material-card__value--muted {
  color: #64748b;
  font-weight: 600;
}

.si-material-card__hint {
  font-size: 0.8rem;
  color: #94a3b8;
  line-height: 1.5;
}

.si-material-card--patent {
  height: 100%;
}

.si-material-card__meta {
  margin: 0.2rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.2rem;
  font-size: 0.78rem;
  line-height: 1.45;
  color: #64748b;
}

.si-material-card__meta-key {
  font-weight: 600;
  color: #475569;
}

.si-material-card__meta-key::after {
  content: ":";
  margin-right: 0.2rem;
}

.si-material-card__action {
  margin-top: auto;
  padding-top: 0.35rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: #c5162e;
}

a.si-material-card:hover .si-material-card__action {
  color: #9e1832;
}

.si-material-card--with-qr {
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  height: 100%;
}

.si-material-card__content {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
  min-width: 0;
}

.si-material-card__qr {
  margin: 0;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.si-material-card__qr-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  background: #fff;
  border: 1px solid rgba(11, 31, 68, 0.1);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(11, 31, 68, 0.05);
}

.si-material-card__qr-img {
  display: block;
  width: clamp(96px, 10vw, 120px);
  height: clamp(96px, 10vw, 120px);
  min-width: 96px;
  min-height: 96px;
  object-fit: contain;
}

.si-material-card__qr-label {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.3;
  color: #64748b;
  text-align: center;
  white-space: nowrap;
}

/* ----- CTA ----- */
.si-cta {
  margin-bottom: 0;
}

.si-cta__inner {
  padding: clamp(2rem, 4vw, 2.75rem) clamp(1.5rem, 4vw, 2.5rem);
  text-align: center;
  border-radius: 24px;
  background: linear-gradient(135deg, #0b1f44 0%, #152a52 55%, #1e3a5f 100%);
  box-shadow: 0 16px 48px rgba(11, 31, 68, 0.2);
}

.si-cta__text {
  margin: 0 auto 1.5rem;
  max-width: 46ch;
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.92);
}

.si-cta__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.si-cta .si-btn--ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

.si-cta .si-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* ----- Footer ----- */
.si-footer {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 3vw, 2rem) 2rem;
  text-align: center;
}

.si-footer__text {
  margin: 0;
  font-size: 0.82rem;
  color: #64748b;
}

.si-footer__text a {
  color: #1d4ed8;
  text-decoration: none;
}

.si-footer__text a:hover {
  text-decoration: underline;
}

/* ----- Responsive ----- */
@media (max-width: 1024px) {
  .service-intro-page {
    background-position: calc(50% - 1vw) -28vh;
  }
}

@media (max-width: 768px) {
  html:has(.service-intro-page),
  .service-intro-page {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .service-intro-page img,
  .service-intro-page video,
  .service-intro-page iframe {
    max-width: 100%;
    height: auto;
  }

  .service-intro-page {
    background-color: #f6f9fc;
    background-image:
      linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.97)),
      url("/static/images/intro-background.png");
    background-size: auto 280px;
    background-position: top center;
  }

  /* ----- 헤더 compact ----- */
  .service-intro-page .intro-header {
    padding: 0;
  }

  .service-intro-page .intro-header__shell {
    width: calc(100% - 28px);
    max-width: none;
    margin: 12px auto 0;
    padding: 10px 14px;
    border-radius: 18px;
    min-height: 0;
    height: auto;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
  }

  .service-intro-page .intro-brand-lockup {
    flex: 1;
    min-width: 0;
    max-width: calc(100% - 5.5rem);
  }

  .service-intro-page .intro-brand-lockup .brand-header__logo,
  .service-intro-page .intro-brand-lockup .rr-brand-logo {
    width: 38px;
    height: 38px;
    max-width: 38px;
  }

  .service-intro-page .intro-brand-lockup .brand-header__title {
    font-size: 0.8rem;
    gap: 0.1rem 0.28rem;
    flex-wrap: nowrap;
  }

  .service-intro-page .intro-brand-lockup .brand-header__en {
    font-size: 0.6rem;
  }

  .service-intro-page .intro-brand-lockup .brand-header__subtitle {
    display: none;
  }

  .service-intro-page .intro-nav {
    display: none;
  }

  .service-intro-page .intro-login {
    display: inline-flex;
    flex-shrink: 0;
    margin: 0;
    padding: 0.4rem 0.7rem;
    min-height: 2rem;
    font-size: 0.74rem;
    font-weight: 700;
    border-radius: 999px;
  }

  .service-intro-page .intro-login span {
    display: inline;
  }

  /* ----- 메인 레이아웃 ----- */
  .si-main {
    width: 100%;
    max-width: none;
    padding: 0.65rem 0 1.5rem;
    box-sizing: border-box;
  }

  .si-section {
    width: calc(100% - 28px);
    max-width: none;
    margin: 0 auto 22px;
    box-sizing: border-box;
  }

  .si-hero {
    width: calc(100% - 28px);
    max-width: none;
    margin: 0 auto 22px;
  }

  .si-section__inner,
  .si-hero__inner,
  .si-cta__inner {
    width: 100%;
    max-width: none;
    padding: 24px 18px;
    border-radius: 22px;
    box-sizing: border-box;
  }

  .si-hero__inner {
    text-align: left;
    box-shadow: 0 8px 28px rgba(11, 31, 68, 0.07);
  }

  .si-hero__eyebrow {
    font-size: 0.75rem;
    letter-spacing: 0.03em;
    margin-bottom: 0.55rem;
  }

  .si-hero__title {
    max-width: none;
    width: 100%;
    font-size: 1.625rem;
    line-height: 1.3;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
    word-break: keep-all;
    overflow-wrap: break-word;
  }

  .si-hero__subtitle {
    max-width: none;
    width: 100%;
    margin: 0 0 1.1rem;
    font-size: 0.9375rem;
    line-height: 1.55;
    text-align: left;
  }

  .si-hero__actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    width: 100%;
  }

  .si-hero__actions .si-btn {
    width: 100%;
    min-height: 48px;
    font-size: 0.9375rem;
    border-radius: 14px;
  }

  /* ----- 섹션 타이포 ----- */
  .si-section__title {
    font-size: 1.4375rem;
    line-height: 1.35;
    margin-bottom: 1rem;
    word-break: keep-all;
    overflow-wrap: break-word;
  }

  .si-section__lead {
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: 1.1rem;
  }

  .si-problem-list__heading,
  .si-card__title,
  .si-screen-card__title {
    font-size: 1.0625rem;
    line-height: 1.4;
  }

  .si-problem-list__text,
  .si-card__text,
  .si-screen-card__text,
  .si-tech-list__item p,
  .si-flow__note {
    font-size: 0.9375rem;
    line-height: 1.6;
  }

  .si-tech-list__item strong {
    font-size: 1rem;
  }

  /* ----- Problem ----- */
  .si-problem-list__item {
    gap: 0.75rem;
    padding: 0.9rem 1rem;
  }

  .si-problem-list__icon {
    width: 2rem;
    height: 2rem;
    font-size: 0.68rem;
  }

  /* ----- Grids → 1열 ----- */
  .si-card-grid--4,
  .si-card-grid--2 {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .si-card {
    padding: 1rem;
  }

  /* ----- Demo flow ----- */
  .si-flow__arrow {
    display: none;
  }

  .si-flow {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.55rem;
    align-items: stretch;
  }

  .si-flow__step {
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 0.55rem;
    min-width: 0;
    max-width: none;
    width: 100%;
    padding: 0.65rem 0.7rem;
    text-align: left;
    box-sizing: border-box;
  }

  .si-flow__step--final {
    grid-column: 1 / -1;
  }

  .si-flow__label {
    font-size: 0.72rem;
    line-height: 1.35;
    word-break: keep-all;
  }

  .si-flow__num {
    width: 1.5rem;
    height: 1.5rem;
    font-size: 0.7rem;
    flex-shrink: 0;
  }

  /* ----- Screens ----- */
  .si-screen-card__figure {
    aspect-ratio: auto;
    max-height: 220px;
  }

  .si-screen-card__img {
    height: auto;
    max-height: 220px;
    object-fit: contain;
    object-position: top center;
  }

  .si-screen-card__body {
    padding: 0.85rem 1rem 1rem;
  }

  /* ----- Materials + QR ----- */
  .si-material-card {
    padding: 1rem;
    min-width: 0;
  }

  .si-material-card--with-qr {
    flex-direction: column;
    align-items: stretch;
    height: auto;
  }

  .si-material-card__content {
    min-width: 0;
  }

  .si-material-card__value {
    font-size: 0.9375rem;
    word-break: break-word;
  }

  .si-material-card__qr {
    align-self: center;
    margin-top: 0.35rem;
  }

  .si-material-card__qr-img {
    width: 104px;
    height: 104px;
    min-width: 96px;
    min-height: 96px;
  }

  .si-material-card__qr-label {
    white-space: normal;
    font-size: 0.65rem;
  }

  /* ----- CTA ----- */
  .si-cta {
    width: calc(100% - 28px);
    max-width: none;
    margin: 0 auto;
  }

  .si-cta__text {
    max-width: none;
    font-size: 0.9375rem;
    line-height: 1.6;
  }

  .si-cta__actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    width: 100%;
  }

  .si-cta__actions .si-btn {
    width: 100%;
    min-height: 48px;
    font-size: 0.9375rem;
    border-radius: 14px;
  }

  /* ----- Footer ----- */
  .si-footer {
    width: calc(100% - 28px);
    max-width: none;
    padding: 0 0 1.5rem;
    margin: 0 auto;
    box-sizing: border-box;
  }
}

@media (max-width: 400px) {
  .service-intro-page .intro-login span {
    display: none;
  }

  .service-intro-page .intro-login {
    padding: 0.4rem 0.55rem;
  }

  .si-flow {
    grid-template-columns: 1fr;
  }

  .si-flow__step--final {
    grid-column: auto;
  }

  .si-hero__title {
    font-size: 1.5rem;
  }

  .si-section__title {
    font-size: 1.375rem;
  }
}
