/* 위코 랜딩 — 사장님의 하루 (스크롤 스토리) */

html:has(body.story-landing) {
  overflow-x: clip;
  scroll-behavior: smooth;
}

:root {
  --ink-900: #10151c;
  --paper-50: #F2F4F6;
  --paper-100: #E5E8EB;
  --blue-600: #3182F6;
  --blue-900: #1B64DA;
  --charcoal-700: #33342f;
  --paper-text: #f4f1e8;
  --red-600: #b23a34;
  --story-max: 1120px;
  --story-pad: clamp(20px, 4vw, 40px);
  --display-lh: 1.22;
  --body-lh: 1.8;
}

.story-landing {
  margin: 0;
  font-family: Pretendard, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: var(--body-lh);
  color: var(--charcoal-700);
  background: var(--paper-50);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

.story-landing *,
.story-landing *::before,
.story-landing *::after {
  box-sizing: border-box;
}

.story-wrap {
  width: 100%;
  max-width: var(--story-max);
  margin: 0 auto;
  padding: 0 var(--story-pad);
}

/* ── Nav ── */
.story-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 244, 236, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(16, 21, 28, 0.06);
}

.story-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  gap: 16px;
}

.story-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 17px;
  font-weight: 800;
  color: var(--ink-900);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.story-logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

.story-logo-text {
  line-height: 1.2;
}

.story-nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.story-login-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  background: transparent;
  color: var(--charcoal-700);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 10px;
  border: 1.5px solid rgba(16, 21, 28, 0.12);
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.story-login-btn:hover {
  background: rgba(16, 21, 28, 0.04);
  border-color: rgba(16, 21, 28, 0.2);
  color: var(--ink-900);
}

.story-blog-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  background: transparent;
  color: var(--charcoal-700);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 10px;
  border: 1.5px solid rgba(16, 21, 28, 0.12);
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.story-blog-btn:hover {
  background: rgba(49, 130, 246, 0.1);
  border-color: rgba(49, 130, 246, 0.35);
  color: var(--blue-900);
}

.story-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  background: var(--blue-600);
  color: var(--ink-900);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  border-radius: 10px;
  border: none;
  white-space: nowrap;
  transition: filter 0.15s, transform 0.15s;
}

.story-cta:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.story-cta--lg {
  padding: 15px 28px;
  font-size: 16px;
  border-radius: 12px;
}

/* ── Typography ── */
.story-eyebrow {
  font-family: ui-monospace, "DejaVu Sans Mono", "SF Mono", Menlo, monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 20px;
}

.bg-paper .story-eyebrow {
  color: var(--blue-900);
}

.bg-ink .story-eyebrow {
  color: rgba(244, 241, 232, 0.55);
}

.story-display {
  margin: 0 0 24px;
  font-size: clamp(28px, 5.5vw, 48px);
  font-weight: 900;
  line-height: var(--display-lh);
  letter-spacing: -0.02em;
}

.bg-paper .story-display {
  color: var(--ink-900);
}

.bg-ink .story-display {
  color: var(--paper-text);
}

.story-body {
  margin: 0;
  font-size: clamp(15px, 2.2vw, 17px);
  font-weight: 400;
  line-height: var(--body-lh);
}

.bg-paper .story-body {
  color: var(--charcoal-700);
}

.bg-ink .story-body {
  color: rgba(244, 241, 232, 0.82);
}

.story-closing {
  margin: 40px 0 0;
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.bg-paper .story-closing {
  color: var(--ink-900);
}

.bg-ink .story-closing {
  color: var(--paper-text);
}

/* ── Sections ── */
.story-section {
  padding: clamp(64px, 10vw, 120px) 0;
}

.bg-paper {
  background: var(--paper-50);
  color: var(--charcoal-700);
}

.bg-paper-alt {
  background: var(--paper-100);
}

.bg-ink {
  background: var(--ink-900);
  color: var(--paper-text);
}

.story-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.story-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Hero split ── */
.story-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(32px, 5vw, 56px);
  align-items: center;
}

@media (min-width: 768px) {
  .story-split {
    grid-template-columns: 1fr 1fr;
  }
}

.story-hero-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  margin-top: 32px;
}

.story-scroll-hint {
  font-size: 13px;
  color: var(--blue-900);
  font-weight: 600;
}

.story-img-wrap {
  border-radius: 16px;
  overflow: hidden;
  background: var(--paper-100);
  box-shadow: 0 20px 50px rgba(16, 21, 28, 0.1);
}

.story-img-wrap img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* ── Problem cards ── */
.story-pain-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 36px;
}

.story-pain-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid rgba(16, 21, 28, 0.08);
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(16, 21, 28, 0.04);
}

.story-pain-x {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  color: var(--red-600);
}

.story-pain-card p {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.55;
  color: var(--charcoal-700);
}

/* ── Morph (손글씨 → 카드) ── */
.story-morph-zone {
  margin: 48px 0;
  min-height: 220px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.story-morph {
  width: min(100%, 340px);
  padding: 24px 22px;
  transition:
    transform 0.85s cubic-bezier(0.22, 1, 0.36, 1),
    border-radius 0.85s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.85s ease,
    box-shadow 0.85s ease,
    font-size 0.5s ease;
  transform: rotate(-2.5deg);
  background: linear-gradient(145deg, #fff9e6 0%, #fef3c7 100%);
  border-radius: 3px 3px 12px 12px;
  box-shadow:
    2px 3px 0 rgba(27, 100, 218, 0.12),
    4px 8px 24px rgba(16, 21, 28, 0.12);
  font-size: 15px;
  line-height: 1.65;
  color: #4a3f2a;
}

.story-morph.is-morphed {
  transform: rotate(0deg) scale(1);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(16, 21, 28, 0.1);
  border: 1px solid rgba(16, 21, 28, 0.08);
  color: var(--charcoal-700);
  font-size: 14px;
}

.story-morph-hand {
  font-style: italic;
  font-weight: 500;
  transition: opacity 0.4s ease;
}

.story-morph.is-morphed .story-morph-hand {
  display: none;
}

.story-morph-card {
  display: none;
}

.story-morph.is-morphed .story-morph-card {
  display: block;
}

.story-morph-card-hd {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 800;
  color: var(--blue-900);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.story-morph-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.story-morph-card li {
  padding: 8px 0;
  border-bottom: 1px solid var(--paper-100);
  font-size: 14px;
  font-weight: 500;
}

.story-morph-card li:last-child {
  border-bottom: none;
}

/* ── Process flow ── */
.story-process {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 6px;
  margin-top: 48px;
  padding: 24px 16px;
  background: #fff;
  border-radius: 16px;
  border: 1px solid rgba(16, 21, 28, 0.08);
}

.story-process-step {
  padding: 10px 14px;
  background: var(--paper-50);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-900);
  text-align: center;
  line-height: 1.4;
}

.story-process-arrow {
  color: var(--blue-600);
  font-size: 18px;
  font-weight: 700;
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .story-logo {
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
  }
  .story-logo-mark {
    width: 26px;
    height: 26px;
  }
  .story-logo-text {
    font-size: 11px;
    font-weight: 700;
    color: var(--charcoal-700);
    letter-spacing: -0.01em;
  }
  .story-process {
    flex-direction: column;
    align-items: stretch;
  }
  .story-process-arrow {
    transform: rotate(90deg);
    text-align: center;
  }
}

/* ── Phone mockup (Scene 5) ── */
.story-phone-wrap {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.story-phone {
  width: min(100%, 300px);
  padding: 12px;
  background: var(--ink-900);
  border-radius: 36px;
  box-shadow: 0 24px 60px rgba(16, 21, 28, 0.2);
}

.story-phone-screen {
  background: var(--paper-50);
  border-radius: 28px;
  overflow: hidden;
  min-height: 420px;
}

.story-phone-status {
  padding: 10px 16px 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--blue-900);
  text-align: center;
  font-family: ui-monospace, monospace;
  letter-spacing: 0.06em;
}

.story-phone-flow {
  padding: 8px 14px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.story-phone-step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: #fff;
  border: 1.5px solid rgba(16, 21, 28, 0.08);
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-900);
}

.story-phone-step.is-done {
  border-color: var(--blue-600);
  background: linear-gradient(135deg, #fff 0%, #E8F3FF 100%);
}

.story-phone-step-num {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--paper-100);
  border-radius: 8px;
  font-size: 11px;
  font-weight: 800;
  color: var(--blue-900);
  flex-shrink: 0;
}

.story-phone-step.is-done .story-phone-step-num {
  background: var(--blue-600);
  color: var(--ink-900);
}

/* ── Beta section ── */
.story-beta-box {
  margin-top: 28px;
  padding: 28px 24px;
  background: #fff;
  border-radius: 16px;
  border: 1px dashed rgba(16, 21, 28, 0.12);
}

/* ── Features card ── */
.story-features-card {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(32px, 5vw, 48px) clamp(24px, 4vw, 40px);
  background: #fff;
  border-radius: 20px;
  border: 1px solid rgba(16, 21, 28, 0.08);
  box-shadow: 0 16px 48px rgba(16, 21, 28, 0.08);
  text-align: center;
}

.story-features-title {
  margin: 0 0 28px;
  font-size: clamp(24px, 4.5vw, 36px);
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--ink-900);
}

.story-features-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 0 0 32px;
  padding: 0;
  list-style: none;
}

.story-features-item {
  padding: 12px 18px;
  background: var(--paper-50);
  border: 1.5px solid rgba(49, 130, 246, 0.22);
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-900);
  line-height: 1.3;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}

.story-features-item:hover {
  background: linear-gradient(135deg, #fff 0%, #E8F3FF 100%);
  border-color: var(--blue-600);
  transform: translateY(-1px);
}

.story-features-closing {
  margin: 0;
  font-size: clamp(17px, 2.5vw, 20px);
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: -0.02em;
  color: var(--blue-900);
}

.story-features-note {
  margin: 16px 0 0;
  font-size: clamp(14px, 2vw, 16px);
  font-weight: 600;
  line-height: 1.65;
  letter-spacing: -0.01em;
  color: var(--charcoal-700);
}

/* ── Field interview voices ── */
.story-voice-list {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.story-voice {
  margin: 0;
  padding: 28px 0;
  border-top: 1px solid rgba(237, 231, 218, 0.12);
}

.story-voice:last-child {
  border-bottom: 1px solid rgba(237, 231, 218, 0.12);
}

.story-voice blockquote {
  margin: 0 0 14px;
  padding: 0;
  border: none;
  font-size: clamp(16px, 2.4vw, 19px);
  font-weight: 600;
  line-height: 1.7;
  letter-spacing: -0.01em;
  color: var(--paper-text);
}

.story-voice figcaption {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--blue-600);
}

.story-voice-solve {
  margin: 0;
  padding: 12px 0 0;
  font-size: 14px;
  line-height: 1.65;
  color: rgba(244, 241, 232, 0.72);
  border-top: 1px dashed rgba(49, 130, 246, 0.28);
}

/* ── Final CTA ── */
.story-final-cta {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.story-cta-note {
  font-size: 13px;
  color: var(--charcoal-700);
  opacity: 0.75;
}

/* ── Footer ── */
.story-footer {
  padding: 48px 0 56px;
  background: var(--ink-900);
  color: rgba(244, 241, 232, 0.65);
  font-size: 13px;
  line-height: 1.7;
}

.story-footer .si-link {
  color: rgba(244, 241, 232, 0.75);
  background: none;
  border: none;
  font: inherit;
  cursor: pointer;
  padding: 0;
}

.story-footer .si-link:hover {
  color: var(--paper-text);
}

.story-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-bottom: 24px;
}

.story-footer-copy {
  margin-top: 20px;
  font-size: 12px;
  opacity: 0.5;
}
