/* AI 수량산출 자동화 소개 페이지 (/quantity/) — 모든 규칙은 .qi 안에서만 적용된다. */
.qi {
  --qi-ink: #111827;
  --qi-sub: #4b5563;
  --qi-soft: #6b7280;
  --qi-mint: #16a394;
  --qi-teal: #098177;
  --qi-teal-dark: #05665d;
  --qi-line: #e5ecec;
  --qi-bg: #f6f8f8;
  --qi-card: #ffffff;
  --qi-highlight: rgba(22, 163, 148, .2);
  --qi-stage: linear-gradient(125deg, #0f766e 0%, #1d5f8f 46%, #4b3fc4 100%);
  color: var(--qi-ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans KR", sans-serif;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.qi *, .qi *::before, .qi *::after { box-sizing: border-box; }
/* Resets stay at class specificity so every component rule below can override them. */
.qi :where(h1, h2, h3, p, ul, ol) { margin: 0; padding: 0; }
.qi :where(ul, ol) { list-style: none; }
.qi :where(a) { color: inherit; text-decoration: none; }
.qi :where(button, input) { font: inherit; }

.qi-wrap { width: min(1120px, 100% - 32px); margin: 0 auto; }
.qi-steps, .qi-detail { scroll-margin-top: 72px; }
.qi-mint { color: var(--qi-mint); }
.qi-highlight { color: var(--qi-mint); background: linear-gradient(transparent 58%, var(--qi-highlight) 58%); }

.qi-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 30px; border-radius: 10px; border: 1px solid transparent;
  font-size: 16px; font-weight: 800; letter-spacing: -.01em; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.qi-btn:focus-visible { outline: 3px solid rgba(22, 163, 148, .45); outline-offset: 2px; }
.qi-btn-dark { background: #3f4147; color: #fff; }
.qi-btn-dark:hover { background: #26282d; transform: translateY(-1px); box-shadow: 0 10px 22px rgba(17, 24, 39, .18); }
.qi-btn-line { background: #fff; color: var(--qi-ink); border-color: #d6dcdc; }
.qi-btn-line:hover { border-color: var(--qi-mint); color: var(--qi-teal); }
.qi-btn-block { width: 100%; }

/* hero */
.qi-hero { position: relative; background: #f3f5f5; overflow: hidden; }
.qi-hero::after {
  content: ""; position: absolute; right: -10%; top: 0; width: 55%; height: 100%;
  background: radial-gradient(60% 60% at 60% 45%, rgba(22, 163, 148, .16), transparent 70%);
  pointer-events: none;
}
.qi-hero-inner {
  position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 1fr; align-items: center;
  gap: 32px; min-height: 620px; padding: 72px 0 96px;
}
.qi-kicker { display: flex; align-items: center; gap: 10px; color: var(--qi-mint); font-size: 18px; font-weight: 800; }
.qi-beta {
  padding: 3px 9px; border-radius: 999px; background: rgba(22, 163, 148, .12);
  color: var(--qi-teal); font-size: 12px; font-weight: 900; letter-spacing: .06em;
}
.qi-hero-title { margin-top: 26px; font-size: clamp(34px, 4.6vw, 54px); line-height: 1.28; font-weight: 900; letter-spacing: -.035em; }
.qi-hero-sub { margin-top: 26px; color: var(--qi-sub); font-size: clamp(16px, 1.5vw, 19px); line-height: 1.7; }
.qi-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.qi-hero-art svg { display: block; width: 100%; height: auto; max-width: 560px; margin-left: auto; }
.qi-float-a { animation: qi-float 6s ease-in-out infinite; }
.qi-float-b { animation: qi-float 7s ease-in-out -2s infinite; }
.qi-float-c { animation: qi-float 8s ease-in-out -4s infinite; }
@keyframes qi-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.qi-scroll {
  position: absolute; left: 50%; bottom: 22px; z-index: 1; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  color: #374151; font-size: 12px; font-weight: 800; letter-spacing: .08em;
}
.qi-scroll span { display: block; width: 2px; height: 36px; background: #374151; animation: qi-scroll 1.8s ease-in-out infinite; transform-origin: top; }
@keyframes qi-scroll { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* steps */
.qi-steps { background: var(--qi-bg); padding: 104px 0 112px; }
.qi-section-title { text-align: center; font-size: clamp(26px, 3vw, 34px); font-weight: 900; letter-spacing: -.03em; }
.qi-step-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin-top: 56px; }
.qi-step-card {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px;
  min-height: 300px; padding: 40px 20px 36px; border-radius: 6px; background: var(--qi-card);
  box-shadow: 0 10px 30px rgba(15, 61, 56, .06); transition: transform .2s ease, box-shadow .2s ease;
}
.qi-step-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(15, 61, 56, .12); }
.qi-step-no { position: absolute; top: 18px; left: 20px; color: var(--qi-mint); font-size: 12px; font-weight: 900; letter-spacing: .06em; }
.qi-step-icon { width: 128px; height: 128px; }
.qi-step-card strong { font-size: 19px; font-weight: 900; }

/* detail sections */
.qi-detail { background: #fff; padding: 112px 0; }
.qi-detail-alt { background: var(--qi-bg); }
.qi-detail-inner { display: grid; grid-template-columns: .82fr 1.18fr; align-items: center; gap: 56px; }
.qi-detail-label { color: var(--qi-mint); font-size: 20px; font-weight: 900; }
.qi-detail-copy h3 { margin-top: 24px; font-size: clamp(26px, 2.6vw, 32px); line-height: 1.45; font-weight: 400; letter-spacing: -.03em; }
.qi-detail-copy h3 strong { font-weight: 900; }
.qi-time {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 52px; padding: 6px 14px;
  border: 1px solid var(--qi-mint); border-radius: 4px; color: var(--qi-teal); font-size: 13px; font-weight: 800;
}
.qi-time svg { width: 15px; height: 15px; }
.qi-points { margin-top: 18px; display: grid; gap: 8px; }
.qi-points li { position: relative; padding-left: 16px; color: var(--qi-sub); font-size: 15px; line-height: 1.55; }
.qi-points li::before { content: "·"; position: absolute; left: 2px; top: 0; font-weight: 900; }
.qi-detail-copy .qi-btn { margin-top: 56px; min-width: 172px; }

.qi-preview {
  position: relative; display: flex; align-items: center; justify-content: center;
  min-height: 420px; padding: 48px; border-radius: 6px; background: var(--qi-stage); overflow: hidden;
}
.qi-preview::before {
  content: ""; position: absolute; inset: auto -20% -40% -20%; height: 75%;
  background: radial-gradient(70% 60% at 30% 100%, rgba(167, 139, 250, .55), transparent 70%);
  pointer-events: none;
}
.qi-preview::after {
  content: ""; position: absolute; right: -8%; top: -30%; width: 55%; height: 90%;
  background: radial-gradient(closest-side, rgba(94, 234, 212, .28), transparent);
  pointer-events: none;
}
.qi-preview-card {
  position: relative; z-index: 1; width: min(460px, 100%); padding: 22px 22px 20px;
  border: 1px solid rgba(255, 255, 255, .28); border-radius: 14px;
  background: rgba(255, 255, 255, .12); color: #fff; backdrop-filter: blur(6px);
  box-shadow: 0 20px 40px rgba(17, 24, 39, .18);
}
.qi-q-head {
  display: flex; justify-content: space-between; align-items: center; padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, .25); font-size: 13px; font-weight: 700;
}
.qi-q-head b { font-size: 20px; font-weight: 500; margin-left: 4px; }
.qi-q-head-sub { opacity: .8; font-weight: 600; }
.qi-q-text { margin-top: 18px; font-size: 15px; font-weight: 800; }
.qi-q-options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 16px; }
.qi-q-options span {
  display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .3); font-size: 14px; font-weight: 700;
}
.qi-q-options i { width: 16px; height: 16px; border: 1.5px solid #fff; border-radius: 50%; flex: none; }
.qi-q-options .is-picked { background: rgba(255, 255, 255, .2); }
.qi-q-options .is-picked i { background: #fff; box-shadow: inset 0 0 0 3px #5b5fd8; }
.qi-q-progress { height: 3px; margin-top: 22px; border-radius: 3px; background: rgba(255, 255, 255, .25); }
.qi-q-progress span { display: block; height: 100%; border-radius: 3px; background: #7ff0dd; }

.qi-drop {
  display: grid; gap: 6px; padding: 22px; border: 1.5px dashed rgba(255, 255, 255, .55); border-radius: 12px;
  text-align: center; font-size: 13px;
}
.qi-drop b { font-size: 15px; }
.qi-drop span { opacity: .8; }
.qi-file, .qi-review {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px;
  margin-top: 10px; padding: 11px 14px; border-radius: 10px; background: rgba(255, 255, 255, .14); font-size: 13.5px;
}
.qi-file i { width: 18px; height: 18px; border-radius: 50%; }
.qi-file i.ok { background: #7ff0dd; box-shadow: inset 0 0 0 4px rgba(15, 118, 110, .55); }
.qi-file i.warn { background: #fde68a; box-shadow: inset 0 0 0 4px rgba(180, 83, 9, .45); }
.qi-file em, .qi-review em { font-style: normal; font-size: 12px; opacity: .9; }
.qi-review b { min-width: 34px; font-size: 15px; }
.qi-review span { opacity: .85; }
.qi-review em.ok { color: #a7f3e6; }
.qi-review em.warn { color: #fde68a; font-weight: 800; }
.qi-review.is-warn { background: rgba(253, 230, 138, .16); border: 1px solid rgba(253, 230, 138, .45); }
.qi-table { width: 100%; margin-top: 14px; border-collapse: collapse; font-size: 13px; }
.qi-table th, .qi-table td { padding: 9px 8px; border-bottom: 1px solid rgba(255, 255, 255, .18); text-align: left; }
.qi-table th { font-weight: 800; opacity: .85; }
.qi-table td { letter-spacing: .1em; color: #a7f3e6; }
.qi-table td:first-child { color: #fff; letter-spacing: 0; font-weight: 700; }
.qi-excel {
  margin-top: 16px; padding: 11px; border-radius: 10px; background: #fff; color: #1d4ed8;
  text-align: center; font-size: 14px; font-weight: 900;
}

/* notice */
.qi-notice { background: #fff; padding: 56px 0 88px; }
.qi-notice .qi-wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 28px 32px; border-radius: 14px; background: var(--qi-bg); border: 1px solid var(--qi-line);
}
.qi-notice p { color: var(--qi-sub); font-size: 15px; line-height: 1.65; }
.qi-notice b { margin-right: 8px; color: var(--qi-teal); }
.qi-notice .qi-btn { flex: none; }

/* modals */
.qi-modal { position: fixed; inset: 0; z-index: 20000; display: flex; align-items: center; justify-content: center; padding: 16px; }
.qi-modal[hidden] { display: none; }
.qi-modal-backdrop { position: absolute; inset: 0; background: rgba(17, 24, 39, .55); }
.qi-modal-card {
  position: relative; width: min(420px, 100%); max-height: calc(100vh - 32px); overflow: auto;
  padding: 44px 50px 40px; border-radius: 18px; background: #fff; text-align: center;
  box-shadow: 0 30px 70px rgba(17, 24, 39, .3); animation: qi-pop .2s ease-out;
}
.qi-modal-card--small { width: min(460px, 100%); text-align: left; padding: 40px 36px 32px; }
@keyframes qi-pop { from { transform: translateY(10px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
.qi-modal-x {
  position: absolute; top: 14px; right: 16px; width: 40px; height: 40px; border: 0; background: none;
  color: #111827; font-size: 30px; line-height: 1; cursor: pointer;
}
.qi-modal-brand { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 20px; font-weight: 900; letter-spacing: .02em; }
.qi-modal-brand img { width: 30px; height: 30px; }
.qi-modal-kicker { margin-top: 22px; color: #374151; font-size: 14px; font-weight: 700; }
.qi-modal-card h2 { margin-top: 8px; font-size: 22px; font-weight: 900; letter-spacing: -.02em; }
.qi-login-form { display: grid; gap: 10px; margin-top: 30px; text-align: left; }
.qi-field {
  position: relative; display: grid; gap: 2px; padding: 9px 16px 8px; border-radius: 4px; background: #f3f4f6;
  border: 1px solid transparent;
}
.qi-field:focus-within { border-color: var(--qi-mint); background: #fff; }
.qi-field span { color: #6b7280; font-size: 11px; font-weight: 700; }
.qi-field input { border: 0; background: transparent; padding: 2px 32px 2px 0; font-size: 15px; color: var(--qi-ink); outline: none; }
.qi-eye { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border: 0; background: none; color: #6b7280; cursor: pointer; }
.qi-eye svg { width: 20px; height: 20px; }
.qi-login-form .qi-btn { margin-top: 18px; border-radius: 4px; }
.qi-modal-card > .qi-btn-line { margin-top: 10px; border-radius: 4px; border-color: #111827; }
.qi-modal-divider { position: relative; margin: 26px 0 14px; color: #9ca3af; font-size: 12px; }
.qi-modal-divider::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px solid #e5e7eb; }
.qi-modal-divider span { position: relative; padding: 0 10px; background: #fff; }
.qi-social {
  display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px;
  border-radius: 12px; border: 1px solid #e5e7eb; background: #fff;
}
.qi-social svg { width: 26px; height: 26px; }
.qi-modal-badge {
  display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 14px;
  background: #e8f1ff; color: #1e3a8a; font-size: 22px; font-weight: 900;
}
.qi-modal-text { margin-top: 12px; color: var(--qi-sub); font-size: 15px; line-height: 1.65; }
.qi-modal-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 28px; }
body.qi-modal-open { overflow: hidden; }

/* reveal on scroll */
.qi-js .qi-reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.qi-js .qi-reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .qi-float-a, .qi-float-b, .qi-float-c, .qi-scroll span { animation: none; }
  .qi-js .qi-reveal { opacity: 1; transform: none; transition: none; }
}

@media (max-width: 960px) {
  .qi-hero-inner { grid-template-columns: 1fr; min-height: 0; padding: 56px 0 104px; text-align: left; }
  .qi-hero-art svg { max-width: 460px; margin: 0 auto; }
  .qi-step-cards { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .qi-step-card { min-height: 220px; }
  .qi-step-icon { width: 96px; height: 96px; }
  .qi-detail { padding: 72px 0; }
  .qi-detail-inner { grid-template-columns: 1fr; gap: 32px; }
  .qi-time { margin-top: 28px; }
  .qi-detail-copy .qi-btn { margin-top: 28px; }
  .qi-preview { min-height: 0; padding: 28px 16px; }
  .qi-notice .qi-wrap { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 520px) {
  .qi-hero-sub br, .qi-detail-copy h3 br { display: none; }
  .qi-steps { padding: 72px 0; }
  .qi-step-cards { margin-top: 32px; }
  .qi-step-card { min-height: 180px; gap: 12px; padding: 34px 10px 22px; }
  .qi-step-icon { width: 72px; height: 72px; }
  .qi-step-card strong { font-size: 16px; }
  .qi-q-options { grid-template-columns: 1fr; }
  .qi-modal-card { padding: 40px 22px 30px; }
  .qi-btn { width: 100%; }
  .qi-hero-actions .qi-btn { width: auto; flex: 1 1 140px; }
}
