/* features.css — jobclaw 기능 소개 페이지 */

/* ──────────────────────────────────────────────
   Page intro / hero
────────────────────────────────────────────── */
.feat-intro {
  padding: 80px 56px 56px;
  max-width: 1200px;
  margin: 0 auto;
}
.feat-intro-inner {
  max-width: 880px;
}
.feat-h1 {
  font-family: var(--sans);
  font-size: 56px;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.1;
  margin: 14px 0 20px;
  word-break: keep-all;
  text-wrap: balance;
}
.feat-h1 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent-2);
  letter-spacing: -0.02em;
}
.feat-lede {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-2);
  max-width: 560px;
  margin: 0 0 48px;
}

/* ──────────────────────────────────────────────
   Table of contents
────────────────────────────────────────────── */
.feat-toc {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.feat-toc-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 20px 18px;
  background: var(--paper-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  text-decoration: none;
  color: var(--ink);
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.feat-toc-item:hover {
  background: var(--paper-3);
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
}
.feat-toc-emoji {
  font-size: 24px;
  line-height: 1;
}
.feat-toc-name {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1.3;
}
.feat-toc-cmd {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent-2);
  background: var(--paper);
  border: 1px solid var(--line-soft);
  padding: 3px 8px;
  border-radius: 5px;
  width: fit-content;
}

/* ──────────────────────────────────────────────
   Feature sections
────────────────────────────────────────────── */
.feat-sect {
  border-top: 1px solid var(--line-soft);
  scroll-margin-top: 80px;
}
.feat-sect-alt {
  background: var(--paper-2);
}
.feat-sect-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 72px 56px;
}

/* Section header */
.feat-header {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 48px;
}
.feat-emoji {
  font-size: 40px;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 4px;
}
.feat-header-text {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.feat-meta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.feat-cmd {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent-2);
  background: var(--paper);
  border: 1px solid var(--line-soft);
  padding: 5px 12px;
  border-radius: 6px;
}
.feat-sect-alt .feat-cmd {
  background: var(--paper-2);
}
.feat-tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 4px;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink-3);
}
.feat-tag-new {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--paper);
}
.feat-title {
  font-family: var(--sans);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin: 0;
  word-break: keep-all;
  text-wrap: balance;
}

/* Body: image + content side by side */
.feat-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.feat-body-reverse {
  direction: rtl;
}
.feat-body-reverse > * {
  direction: ltr;
}

/* Image placeholder box — 정사각(1:1): 기능 카드 이미지가 정사각이라 박스도 맞춘다 */
.feat-image-wrap {
  aspect-ratio: 1 / 1;
  background: var(--paper-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.feat-sect-alt .feat-image-wrap {
  background: var(--paper-3);
}
.feat-image-wrap::before {
  /* Shown when image fails to load — stripe placeholder */
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    135deg,
    transparent,
    transparent 12px,
    rgba(60, 40, 20, 0.04) 12px,
    rgba(60, 40, 20, 0.04) 14px
  );
}
.feat-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: relative;
  z-index: 1;
}

/* Content blocks */
.feat-content {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.feat-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.feat-block-title {
  font-family: var(--serif);
  font-style: italic;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--accent-2);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.feat-block-title::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}
.feat-block p {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-2);
}
.feat-block code {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent-2);
  background: var(--paper);
  border: 1px solid var(--line-soft);
  padding: 2px 6px;
  border-radius: 4px;
}
.feat-sect-alt .feat-block code {
  background: var(--paper-2);
}

/* Ordered list */
.feat-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  counter-reset: feat-step;
}
.feat-steps li {
  counter-increment: feat-step;
  display: flex;
  gap: 12px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-2);
}
.feat-steps li::before {
  content: counter(feat-step, decimal-leading-zero);
  font-family: var(--serif);
  font-style: italic;
  font-size: 13px;
  color: var(--accent);
  flex-shrink: 0;
  padding-top: 1px;
  min-width: 22px;
}
.feat-steps code {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent-2);
  background: var(--paper);
  border: 1px solid var(--line-soft);
  padding: 2px 6px;
  border-radius: 4px;
}
.feat-sect-alt .feat-steps code {
  background: var(--paper-2);
}

/* Example chips */
.feat-examples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.feat-chip {
  font-size: 13px;
  padding: 7px 14px;
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  color: var(--ink-2);
  line-height: 1.4;
}
.feat-sect-alt .feat-chip {
  background: var(--paper-2);
}
.feat-chip code {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent-2);
  background: transparent;
  border: none;
  padding: 0;
}

/* Result row */
.feat-result {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 16px 20px;
  background: var(--ink);
  border-radius: var(--r);
  font-size: 13px;
  line-height: 1.55;
  color: rgba(246, 241, 232, 0.85);
}
.feat-result-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--accent-soft);
  flex-shrink: 0;
  text-transform: uppercase;
  padding: 3px 8px;
  border: 1px solid rgba(246, 241, 232, 0.15);
  border-radius: 4px;
}

/* ──────────────────────────────────────────────
   Bottom CTA
────────────────────────────────────────────── */
.feat-cta-sect {
  border-top: 1px solid var(--line-soft);
}
.feat-cta-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 96px 56px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
.feat-cta-h2 {
  font-family: var(--sans);
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0;
  word-break: keep-all;
}
.feat-cta-p {
  font-size: 16px;
  color: var(--ink-2);
  margin: 0 0 8px;
  line-height: 1.6;
}

/* ──────────────────────────────────────────────
   Mobile header mobile CTA (mirrors redesign.css)
────────────────────────────────────────────── */
.hdr-mobile-cta {
  display: none;
}

/* ──────────────────────────────────────────────
   Responsive
────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .feat-toc {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .feat-intro {
    padding: 44px 20px 36px;
  }
  .feat-h1 {
    font-size: clamp(28px, 7vw, 40px);
  }
  .feat-lede {
    font-size: 15px;
    margin-bottom: 32px;
  }
  .feat-toc {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .feat-toc-item {
    padding: 14px 14px 12px;
  }
  .feat-toc-emoji {
    font-size: 20px;
  }
  .feat-toc-name {
    font-size: 13px;
  }
  .feat-sect-inner {
    padding: 48px 20px;
  }
  .feat-header {
    gap: 14px;
    margin-bottom: 32px;
  }
  .feat-emoji {
    font-size: 32px;
  }
  .feat-title {
    font-size: clamp(20px, 5.5vw, 28px);
  }
  .feat-body {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .feat-body-reverse {
    direction: ltr;
  }
  .feat-image-wrap {
    aspect-ratio: 1 / 1;
  }
  .feat-cta-inner {
    padding: 64px 20px;
  }
  .feat-cta-h2 {
    font-size: clamp(22px, 6vw, 32px);
  }
  .hdr-nav {
    display: none;
  }
  .hdr-mobile-cta {
    display: flex;
    align-items: center;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .feat-toc {
    grid-template-columns: 1fr;
  }
  .feat-result {
    flex-direction: column;
    gap: 8px;
  }
}

/* ──────────────────────────────────────────────
   Reduced motion
────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .feat-toc-item {
    transition: none;
  }
}
