@charset "UTF-8";

/* ==========================================================================
   T01 - Customer Success Story Styles
   ========================================================================== */

:root {
  --gnb-height: 70px;
  --gray04: #8d96a1;
  --gray06: #556372;
  --gray08: #3c4651;
  --gray10: #242a30;
  --gray10-rgb: 36, 42, 48;
  --white: #ffffff;
  --white-rgb: 255, 255, 255;
  --primary: #664bf4;
  --primary-rgb: 102, 75, 244;
  --bg: #ffffff;
}

/* Reset & Base */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family:
    'Pretendard Variable',
    Pretendard,
    -apple-system,
    BlinkMacSystemFont,
    system-ui,
    Roboto,
    'Helvetica Neue',
    'Segoe UI',
    'Apple SD Gothic Neo',
    'Noto Sans KR',
    'Malgun Gothic',
    'Apple Color Emoji',
    'Segoe UI Emoji',
    'Segoe UI Symbol',
    sans-serif;
  line-height: 1.7;
  color: var(--gray10);
  background-color: var(--bg);
  word-break: keep-all;
  overflow-wrap: break-word;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   T02 - GNB Styles
   ========================================================================== */

@media screen and (min-width: 1001px) {
  body .for-mobile {
    display: none;
  }
}

@media screen and (max-width: 1000px) {
  body .for-desktop {
    display: none;
  }
}

.gnb {
  position: fixed;
  top: 0;
  padding: 18px 0;
  width: 100%;
  height: var(--gnb-height);
  z-index: 1000;
  border-bottom: 1px solid rgba(var(--gray10-rgb), 0.06);
  background: rgba(var(--white-rgb), 0);
  transition: background 0.5s ease;
}

.gnb.scrolled {
  background: var(--white);
}

.navbar {
  position: relative;
  display: flex;
  align-items: center;
  margin: 0 auto;
  max-width: 1212px;
  height: 34px;
}

.navbar .logo {
  flex: 1;
  display: flex;
  align-items: center;
  margin: 8px 0 0 25px;
  transition: opacity 0.3s ease;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  text-decoration: none;
}

.navbar .logo:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 4px;
  border-radius: 4px;
}

.navbar .logo img {
  width: auto;
  height: 26px;
}

.navbar .logo:hover {
  opacity: 0.8;
}

.navbar-btns {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  margin-right: 25px;
}

.navbar-menu {
  display: flex;
  align-items: center;
  gap: 8px;
}

.navbar-menu .navbar-link-btn {
  margin-right: 0;
}

.navbar-link-btn {
  display: inline-flex;
  align-items: center;
  margin-right: 12px;
  padding: 0 12px;
  height: 32px;
  border: none;
  border-radius: 10px;
  outline: none;
  background-color: transparent;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray10);
  line-height: 32px;
  text-decoration: none;
}

.navbar-link-btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: -2px;
}

.navbar-link-btn svg {
  margin-left: 4px;
  color: var(--gray04);
}

.navbar-link-btn:hover {
  background: rgba(var(--gray10-rgb), 0.04);
}

.navbar-link-btn:hover svg {
  color: var(--primary);
}

.signin-btn {
  display: inline-block;
  padding: 0 12px;
  height: 32px;
  border: none;
  border-radius: 10px;
  outline: none;
  background-color: var(--white);
  box-shadow:
    0 -1px 0 0 rgba(0, 0, 0, 0.06) inset,
    0 0 0 1px rgba(0, 0, 0, 0.08) inset,
    0 2px 6px 0 rgba(0, 0, 0, 0.02);
  font-size: 13px;
  font-weight: 700;
  color: var(--gray10);
  line-height: 32px;
  text-decoration: none;
  transition: opacity 0.3s;
  cursor: pointer;
}

.signin-btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.signin-btn:hover {
  background-image: linear-gradient(rgba(var(--gray10-rgb), 0.04), rgba(var(--gray10-rgb), 0.04));
}

.typeform-btn button {
  display: inline-block !important;
  padding: 0 12px !important;
  height: 32px !important;
  border: none !important;
  border-radius: 10px !important;
  outline: none !important;
  background-color: var(--primary) !important;
  box-shadow:
    0 -1px 0 0 rgba(0, 0, 0, 0.06) inset,
    0 0 0 1px rgba(0, 0, 0, 0.08) inset,
    0 2px 6px 0 rgba(0, 0, 0, 0.02) !important;
  font-family: inherit !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  color: var(--white) !important;
  line-height: 32px !important;
  text-decoration: none !important;
  transition: opacity 0.3s !important;
  cursor: pointer !important;
}

.typeform-btn button:focus-visible {
  outline: 2px solid var(--gray10) !important;
  outline-offset: 3px !important;
}

.typeform-btn:hover button {
  background-image: linear-gradient(
    rgba(var(--gray10-rgb), 0.04),
    rgba(var(--gray10-rgb), 0.04)
  ) !important;
}

.typeform-btn:active button {
  background-image: linear-gradient(
    rgba(var(--gray10-rgb), 0.08),
    rgba(var(--gray10-rgb), 0.08)
  ) !important;
}

/* ==========================================================================
   T02 - Footer Styles
   ========================================================================== */

footer {
  background: rgba(var(--gray10-rgb), 0.02);
  padding: 80px 0;
}

.footer-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0 auto;
  padding: 0 20px;
  max-width: 1190px;
  color: rgba(var(--gray10-rgb), 0.48);
  font-size: 13px;
  font-weight: 400;
  line-height: 160%;
}

.footer-container div,
.footer-container p {
  text-align: left;
}

.footer-container hr {
  width: 100%;
  height: 1px;
  border: none;
  background: rgba(var(--gray10-rgb), 0.06);
}

.footer-container .info {
  display: flex;
  justify-content: space-between;
}

.footer-container .joint {
  font-size: 15px;
  font-weight: 700;
  line-height: 150%;
}

.footer-container .term {
  margin-right: 16px;
  color: rgba(var(--gray10-rgb), 0.48);
  text-decoration: none;
}

.social-links a {
  display: inline-flex;
  width: 24px;
  height: 24px;
  color: inherit;
  text-decoration: none;
}

.social-links a i {
  font-size: 24px;
}

@media screen and (max-width: 1000px) {
  .footer-container .info {
    flex-direction: column;
    gap: 16px;
  }
}

/* ==========================================================================
   T01 - Customer Success Story Layout
   ========================================================================== */

/* Layout */
.success-story {
  max-width: 800px;
  margin: 0 auto;
  padding: calc(var(--gnb-height) + 40px) 20px 80px;
  background-color: var(--white);
  min-height: 100vh;
}

/* Header */
.story-header {
  margin-bottom: 48px;
  text-align: left;
}

.customer-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.story-header h1 {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
  color: var(--gray10);
  word-break: keep-all;
}

/* Content */
.story-content {
  font-size: 17px;
  color: var(--gray08);
}

.story-content a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.2s ease;
}

.story-content a:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 4px;
  border-radius: 2px;
}

.story-content a:hover {
  opacity: 0.7;
}

.story-content h2 {
  font-size: 26px;
  font-weight: 700;
  color: var(--gray10);
  margin-top: 56px;
  margin-bottom: 24px;
}

.story-content h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--gray10);
  margin-top: 40px;
  margin-bottom: 16px;
}

.story-content p {
  margin-top: 0;
  margin-bottom: 24px;
  word-break: keep-all;
}

.story-content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 16px 0 32px;
  display: block;
  box-sizing: border-box;
  border: none;
  outline: 1px solid rgba(var(--gray10-rgb), 0.1);
  outline-offset: -1px;
}

.image-caption {
  text-align: center;
  font-size: 14px;
  color: var(--gray06);
  margin-top: -16px;
  margin-bottom: 24px;
}

.inquiry-banner-link {
  display: block;
  transition: opacity 0.2s ease;
}

.inquiry-banner-link:hover {
  opacity: 0.8;
}

.story-content ul {
  padding-left: 24px;
  margin-bottom: 24px;
}

.story-content li {
  margin-bottom: 12px;
  word-break: keep-all;
}

.story-content blockquote,
.story-content aside {
  background-color: rgba(var(--primary-rgb), 0.03);
  border: 1px solid rgba(var(--primary-rgb), 0.12);
  padding: 24px;
  margin: 36px 0;
  border-radius: 16px;
}

.story-content blockquote p,
.story-content aside p {
  margin-bottom: 0;
}

.story-content blockquote p + p,
.story-content aside p + p {
  margin-top: 12px;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .success-story {
    padding: calc(var(--gnb-height) + 20px) 16px 64px;
  }

  .story-header h1 {
    font-size: 28px;
  }

  .story-content h2 {
    font-size: 22px;
    margin-top: 40px;
    margin-bottom: 16px;
  }

  .story-content h3 {
    font-size: 18px;
    margin-top: 32px;
    margin-bottom: 12px;
  }
}

/* ==========================================================================
   T03 - Customer Success List Page
   ========================================================================== */

.cs-list-header {
  max-width: 1212px;
  margin: 0 auto;
  padding: calc(var(--gnb-height) + 48px) 25px 64px; /* 하단 32px -> 64px 확대 */
}

.cs-list-header__title {
  font-size: 32px;
  font-weight: 700;
  color: var(--gray10);
  letter-spacing: -0.02em;
}

.cs-list-header__description {
  font-size: 16px;
  color: rgba(var(--gray10-rgb), 0.76);
  margin-top: 4px;
  letter-spacing: -0.01em;
}

.cs-list {
  max-width: 1212px;
  margin: 0 auto;
  padding: 0 25px 120px;
}

.cs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 24px;
  row-gap: 60px;
}

.cs-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  background: transparent;
  transition: transform 0.2s ease;
}

.cs-card:hover {
  transform: translateY(-4px);
}

.cs-card:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 4px;
  border-radius: 12px;
}

@media (prefers-reduced-motion: reduce) {
  .cs-card,
  .cs-card__thumbnail img {
    transition: none;
  }

  .cs-card:hover {
    transform: none;
  }

  .cs-card:hover .cs-card__thumbnail img {
    transform: none;
  }
}

.cs-card__thumbnail {
  width: 100%;
  overflow: hidden;
  background: rgba(var(--gray10-rgb), 0.02);
  border-radius: 12px;
  border: 1px solid rgba(var(--gray10-rgb), 0.04);
}

.cs-card__thumbnail img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.cs-card:hover .cs-card__thumbnail img {
  transform: scale(1.03);
}

.cs-card__body {
  padding: 20px 4px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cs-card__title {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  color: var(--gray10);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: keep-all;
}

.cs-card__desc {
  margin: 0;
  font-size: 16px;
  font-weight: 400;
  color: var(--gray04);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: keep-all;
}

/* 태블릿: 2단 */
@media screen and (max-width: 1024px) {
  .cs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* GNB & Layout Mobile (1000px 이하) */
@media screen and (max-width: 1000px) {
  .navbar .logo {
    display: flex;
    margin-left: 0;
    padding: 2px 5px 2px 18.5px;
  }

  .navbar-btns {
    gap: 4px;
    margin-right: 0;
    padding-right: 16px;
  }
}

/* 모바일: 1단 */
@media screen and (max-width: 767px) {
  .cs-list-header {
    padding: calc(var(--gnb-height) + 36px) 16px 40px; /* 하단 24px -> 40px 확대 */
  }

  .cs-list-header__title {
    font-size: 24px;
  }

  .cs-list {
    padding: 0 16px 80px;
  }

  .cs-grid {
    grid-template-columns: 1fr;
    column-gap: 20px;
    row-gap: 40px; /* 모바일도 상하 간격 확대 */
  }

  .cs-card__title {
    font-size: 18px;
  }
}
