/* ==========================================================================
   주식회사 태재 — 삶은 토란대 소개서 랜딩페이지
   PDF 1~4페이지 구성 · 폰트(Paperlogy) · 폰트 사이즈 · 컬러 그대로 유지
   기준 캔버스: 1280px × 720px (PDF 960pt × 540pt, 1pt = 1.3333px)
   ========================================================================== */

/* 로컬 Paperlogy 웹폰트 */
@font-face {
  font-family: 'Paperlogy';
  src: url('../assets/fonts/Paperlogy-300.woff') format('woff');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Paperlogy';
  src: url('../assets/fonts/Paperlogy-400.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Paperlogy';
  src: url('../assets/fonts/Paperlogy-500.woff') format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Paperlogy';
  src: url('../assets/fonts/Paperlogy-600.woff') format('woff');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Paperlogy';
  src: url('../assets/fonts/Paperlogy-700.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Paperlogy';
  src: url('../assets/fonts/Paperlogy-800.woff') format('woff');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --font-main: 'Paperlogy', -apple-system, BlinkMacSystemFont, 'Malgun Gothic', sans-serif;

  /* PDF 원문 추출 컬러 */
  --bg-sage-white: #FAFCFA;
  --bg-white: #FFFFFF;
  --color-green-deep: #134E34;
  --color-green-step: #1E7452;
  --color-subtitle-navy: #2B2D63;
  --color-eyebrow-indigo: #4B4EA1;
  --color-lead-slate: #334155;
  --color-body-slate: #1E293B;
  --color-body-ink: #111827;

  /* 카드 & 도형 컬러 */
  --card-warm-bg: rgba(255, 254, 250, 0.76);
  --card-warm-border: rgba(19, 78, 52, 0.2);
  --card-corner-blue: #93B4DC;
  --card-sage-bg: rgba(247, 251, 247, 0.76);
  --card-sage-border: rgba(19, 78, 52, 0.24);

  /* 캔버스 기준 */
  --slide-width: 1280px;
  --slide-pad-x: 76.8px; /* PDF 57.6pt */
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  position: relative;
  margin: 0;
  font-family: var(--font-main);
  background-color: var(--bg-sage-white);
  color: var(--color-body-ink);
  word-break: keep-all;
}

/* 페이지 전체 메인 배경 (오퍼시티 0.08) */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image: url('../assets/images/main-bg-taro.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.08;
  pointer-events: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* ==========================================================================
   공통 슬라이드(섹션) 프레임
   ========================================================================== */
.landing {
  position: relative;
  z-index: 1;
  width: 100%;
}

.slide {
  position: relative;
  width: 100%;
  border-bottom: 1px solid rgba(19, 78, 52, 0.14);
}

.slide:last-child {
  border-bottom: 0;
}

.slide--cover {
  background-color: transparent;
}

/* PROCESS 01~03: 배경 토란 잎이 자연스럽게 비치면서 단계별로 진해지는 톤 */
.slide--p1 {
  background-color: rgba(170, 206, 182, 0.28);
}

.slide--p2 {
  background-color: rgba(126, 174, 144, 0.34);
}

.slide--p3 {
  background-color: rgba(86, 144, 110, 0.4);
}

.slide__inner {
  position: relative;
  max-width: var(--slide-width);
  min-height: 720px;
  margin: 0 auto;
  padding: 36px var(--slide-pad-x) 64px;
  display: flex;
  flex-direction: column;
}

/* ==========================================================================
   SECTION 1 (PAGE 1): 상단 히어로 헤더(토란대 청정 산지 배경) · 4단계 공정 개요
   ========================================================================== */
.hero-header {
  position: relative;
  width: 100%;
  min-height: 440px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: #0B2015;
  background-image:
    linear-gradient(
      180deg,
      rgba(8, 22, 15, 0.04) 0%,
      rgba(8, 22, 15, 0.22) 42%,
      rgba(7, 20, 14, 0.64) 76%,
      rgba(5, 16, 11, 0.88) 100%
    ),
    url('../assets/images/hero-taro-field.jpg');
  background-size: cover;
  background-position: center 42%;
  background-repeat: no-repeat;
}

.cover-topbar {
  width: 100%;
  height: 11.5px; /* PDF 8.64pt */
  background-color: var(--color-green-deep);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
}

/* 상단 우측 전화 · 카톡채널 아이콘 */
.hero-top-actions {
  width: 100%;
}

.hero-top-actions__inner {
  max-width: var(--slide-width);
  margin: 0 auto;
  padding: 20px var(--slide-pad-x) 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.hero-icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.hero-icon-btn svg {
  width: 22px;
  height: 22px;
}

.hero-icon-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.26);
}

.hero-icon-btn:focus-visible {
  outline: 2px solid #FFFFFF;
  outline-offset: 3px;
}

.hero-icon-btn--phone {
  background-color: rgba(19, 78, 52, 0.9);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
}

.hero-icon-btn--phone:hover {
  background-color: #134E34;
}

.hero-icon-btn--kakao {
  background-color: #FEE500;
  color: #191919;
}

.hero-icon-btn--kakao:hover {
  background-color: #F6DC00;
}

.hero-header__inner {
  width: 100%;
  max-width: var(--slide-width);
  margin: 0 auto;
  padding: 108px var(--slide-pad-x) 52px;
}

.cover-header {
  margin: 0;
}

.cover-title {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 18px;
  color: #FFFFFF;
  line-height: 1.2;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
}

.cover-title__company {
  font-size: 33.3px; /* PDF 25pt */
  font-weight: 700;
  letter-spacing: -0.02em;
}

.cover-title__product {
  font-size: 45.3px; /* PDF 34pt */
  font-weight: 700;
  letter-spacing: -0.02em;
}

.cover-subtitle {
  margin: 16px 0 0;
  font-size: 20px; /* PDF 15pt */
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.45;
  letter-spacing: -0.01em;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.35);
}

.slide__inner--cover {
  min-height: auto;
  padding-top: 76px;
  padding-bottom: 84px;
  justify-content: flex-start;
}

/* 4단계 가로 흐름 */
.flow-steps {
  list-style: none;
  margin: 0 -16px 0 0;
  padding: 0 0 0 8px;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) 22px minmax(0, 1.02fr) 22px minmax(0, 1.06fr) 22px minmax(0, 1.08fr);
  align-items: start;
  column-gap: 10px;
}

.flow-step__link {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 12px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.flow-step__link:hover {
  transform: translateY(-2px);
}

.flow-step__num {
  display: block;
  font-size: 36px; /* PDF 27pt */
  font-weight: 700;
  color: var(--color-green-step);
  line-height: 1.15;
  margin-bottom: 10px;
}

.flow-step__title {
  margin: 0 0 22px;
  font-size: 29.3px; /* PDF 22pt */
  font-weight: 700;
  color: var(--color-green-step);
  line-height: 1.25;
  letter-spacing: -0.025em;
  white-space: nowrap;
}

.flow-step__desc {
  margin: 0;
  font-size: 21.3px; /* PDF 16pt */
  font-weight: 500;
  color: var(--color-body-slate);
  line-height: 1.65;
  letter-spacing: -0.02em;
}

.flow-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 52px;
}

.flow-arrow svg {
  width: 22px;
  height: 36px;
}

/* ==========================================================================
   SECTION 2~4 (PAGE 2~4): PROCESS 아코디언 헤더 및 펼침 2단 구성
   ========================================================================== */
.slide__inner--process {
  min-height: auto;
  padding-top: 34px;
  padding-bottom: 34px;
}

.slide.is-open .slide__inner--process {
  padding-bottom: 58px;
}

.process-header {
  margin: 0;
}

.process-trigger {
  width: 100%;
  padding: 6px 0;
  border: 0;
  background: transparent;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-radius: 12px;
  transition: opacity 0.2s ease;
}

.process-trigger:hover .process-trigger__chevron {
  background-color: #FFFFFF;
  border-color: var(--color-green-deep);
}

.process-trigger:focus-visible {
  outline: 2px solid var(--color-green-deep);
  outline-offset: 6px;
}

.process-trigger__text {
  display: block;
  min-width: 0;
}

.process-eyebrow {
  display: block;
  margin: 0 0 12px;
  font-size: 20px; /* PDF 15pt */
  font-weight: 600;
  color: var(--color-eyebrow-indigo);
  line-height: 1.2;
  letter-spacing: 0.01em;
}

.process-title {
  display: block;
  margin: 0;
  font-size: 29.3px; /* PDF 22pt */
  font-weight: 700;
  color: var(--color-green-deep);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.process-lead {
  display: block;
  margin: 18px 0 0;
  font-size: 17.3px; /* PDF 13pt */
  font-weight: 400;
  color: var(--color-lead-slate);
  line-height: 1.5;
  letter-spacing: -0.01em;
}

.process-trigger__chevron {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid rgba(19, 78, 52, 0.32);
  background-color: rgba(255, 255, 255, 0.72);
  color: var(--color-green-deep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.process-trigger__chevron svg {
  width: 22px;
  height: 22px;
}

.process-trigger[aria-expanded='true'] .process-trigger__chevron {
  transform: rotate(180deg);
  background-color: #FFFFFF;
  border-color: var(--color-green-deep);
}

/* 아코디언 펼침 패널 */
.process-panel {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 0.36s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.26s ease;
}

.process-panel.is-open {
  grid-template-rows: 1fr;
  opacity: 1;
}

.process-panel__inner {
  overflow: hidden;
}

.process-panel.is-open .process-panel__inner {
  padding-top: 28px;
}

/* 2단 그리드: PDF 좌측 카드폭 / 우측 이미지폭 비율 그대로 유지 */
.process-grid {
  display: grid;
  align-items: start;
}

.process-grid--p1 {
  grid-template-columns: 557px minmax(0, 547px); /* PDF 417.6pt : 410.5pt */
  column-gap: 22px;
}

.process-grid--p2 {
  grid-template-columns: 454px minmax(0, 652px); /* PDF 340.1pt : 489.3pt */
  column-gap: 20px;
}

.process-grid--p3 {
  grid-template-columns: 557px minmax(0, 556px); /* PDF 417.6pt : 417.3pt */
  column-gap: 20px;
}

/* 카드 스택 */
.card-stack {
  display: flex;
  flex-direction: column;
}

.card-stack--p1 {
  gap: 18px;
}

.card-stack--p2 {
  gap: 12px;
}

.card-stack--p3 {
  gap: 18px;
}

/* 정보 카드 */
.info-card {
  position: relative;
  overflow: hidden;
}

.info-card--warm {
  min-height: 134px; /* PDF 100.3pt */
  padding: 20px 26px 22px;
  border-radius: 18px;
  background-color: var(--card-warm-bg);
  border: 1.5px solid var(--card-warm-border);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Page 2 우상단 연하늘색 삼각 포인트 */
.info-card--corner::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 15px 15px 0;
  border-color: transparent var(--card-corner-blue) transparent transparent;
}

.info-card--sage {
  min-height: 111px; /* PDF 83.2pt */
  padding: 15px 22px 16px;
  border-radius: 16px;
  background-color: var(--card-sage-bg);
  border: 1.5px solid var(--card-sage-border);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.info-card__title {
  margin: 0 0 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--color-green-deep);
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.info-card__title--lg {
  font-size: 25.3px; /* PDF 19pt (Page 2) */
}

.info-card__title--md {
  font-size: 21.3px; /* PDF 16pt (Page 3, Page 4) */
  margin-bottom: 8px;
}

.info-card__icon {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  color: var(--color-green-deep);
}

.info-card__title--lg .info-card__icon {
  width: 25px;
  height: 25px;
}

.info-card__body {
  margin: 0;
  font-weight: 500;
  color: var(--color-body-ink);
  line-height: 1.45;
  letter-spacing: -0.015em;
}

.info-card__body--lg {
  font-size: 21.3px; /* PDF 16pt (Page 2) */
}

.info-card__body--md {
  font-size: 18.7px; /* PDF 14pt (Page 3, Page 4) */
}

/* 우측 이미지 + 캡션 */
.photo-figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.photo-figure__img {
  width: 100%;
  height: auto;
  display: block;
}

.photo-figure__caption {
  margin-top: 8px;
  font-size: 14.7px; /* PDF 11pt */
  font-weight: 500;
  color: var(--color-green-deep);
  text-align: center;
  line-height: 1.4;
}

/* ==========================================================================
   푸터 (파노라마 토란대 배경 + 위에서 밝고 아래로 갈수록 선명해지는 그라데이션)
   ========================================================================== */
.site-footer {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 176px;
  display: flex;
  align-items: flex-start;
  border-top: 1px solid rgba(19, 78, 52, 0.08);
  background-color: var(--bg-sage-white);
  background-image:
    linear-gradient(
      180deg,
      rgba(250, 252, 250, 0.96) 0%,
      rgba(250, 252, 250, 0.78) 38%,
      rgba(250, 252, 250, 0.28) 74%,
      rgba(250, 252, 250, 0) 100%
    ),
    url('../assets/images/footer-taro-field.jpg');
  background-size: cover;
  background-position: center 45%;
  background-repeat: no-repeat;
}

.site-footer__inner {
  width: 100%;
  max-width: var(--slide-width);
  margin: 0 auto;
  padding: 32px var(--slide-pad-x) 64px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
}

.site-footer__company {
  font-size: 17.3px;
  font-weight: 700;
  line-height: 1;
  color: var(--color-green-deep);
  letter-spacing: -0.02em;
}

.site-footer__phone-box {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 10px;
  background-color: var(--color-green-deep);
  border: 1.5px solid var(--color-green-deep);
  color: #FFFFFF;
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.01em;
  box-shadow: 0 3px 10px rgba(19, 78, 52, 0.16);
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.site-footer__phone-box:hover {
  transform: translateY(-1px);
  background-color: #0E3C28;
  box-shadow: 0 5px 14px rgba(19, 78, 52, 0.24);
}

.site-footer__phone-box:focus-visible {
  outline: 2px solid var(--color-green-deep);
  outline-offset: 3px;
}

.site-footer__phone-icon {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
}

.site-footer__logo {
  height: 14px; /* Paperlogy 17.3px 한글 글자 시각적 높이와 동일하게 맞춤 */
  width: auto;
  user-select: none;
}

/* ==========================================================================
   전화 상담 팝업 모달
   ========================================================================== */
.phone-modal {
  padding: 0;
  border: 0;
  border-radius: 20px;
  background: transparent;
  max-width: 400px;
  width: calc(100% - 32px);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
}

.phone-modal::backdrop {
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
}

.phone-modal__box {
  position: relative;
  background-color: #FFFFFF;
  border-radius: 20px;
  padding: 36px 28px 28px;
  text-align: center;
}

.phone-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--color-lead-slate);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.phone-modal__close:hover {
  background-color: rgba(19, 78, 52, 0.08);
  color: var(--color-green-deep);
}

.phone-modal__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background-color: rgba(19, 78, 52, 0.1);
  color: var(--color-green-deep);
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-modal__title {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 700;
  color: var(--color-body-ink);
}

.phone-modal__number {
  font-size: 28px;
  font-weight: 800;
  color: var(--color-green-deep);
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.phone-modal__desc {
  margin: 0 0 22px;
  font-size: 15px;
  color: var(--color-lead-slate);
  line-height: 1.5;
}

.phone-modal__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.phone-modal__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 14px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.phone-modal__btn--outline {
  background-color: #FFFFFF;
  color: var(--color-green-deep);
  border: 1.5px solid rgba(19, 78, 52, 0.3);
}

.phone-modal__btn--outline:hover {
  background-color: rgba(19, 78, 52, 0.06);
  border-color: var(--color-green-deep);
}

.phone-modal__btn--primary {
  background-color: var(--color-green-deep);
  color: #FFFFFF;
  border: 1.5px solid var(--color-green-deep);
}

.phone-modal__btn--primary:hover {
  background-color: #0E3C28;
}

.phone-modal__feedback {
  min-height: 20px;
  margin-top: 12px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--color-green-step);
}

/* ==========================================================================
   반응형 대응 (1280px 미만에서 비율 및 가독성 유지)
   ========================================================================== */
@media (max-width: 1279px) {
  .hero-top-actions__inner,
  .hero-header__inner,
  .slide__inner,
  .site-footer__inner {
    padding-left: 48px;
    padding-right: 48px;
  }

  .flow-steps {
    margin-right: 0;
    padding-left: 0;
    column-gap: 10px;
  }

  .flow-step__title {
    font-size: 24px;
    white-space: normal;
  }

  .flow-step__desc {
    font-size: 18px;
  }

  .process-grid--p1 {
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  }

  .process-grid--p2 {
    grid-template-columns: minmax(0, 0.72fr) minmax(0, 1fr);
  }

  .process-grid--p3 {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

@media (max-width: 960px) {
  .hero-header {
    min-height: 340px;
  }

  .hero-top-actions__inner {
    padding: 16px 24px 0;
  }

  .hero-icon-btn {
    width: 40px;
    height: 40px;
  }

  .hero-icon-btn svg {
    width: 20px;
    height: 20px;
  }

  .hero-header__inner {
    padding: 72px 24px 36px;
  }

  .slide__inner {
    min-height: auto;
    padding: 48px 24px 56px;
  }

  .slide__inner--cover {
    padding-top: 48px;
    padding-bottom: 56px;
  }

  .cover-title__company {
    font-size: 26px;
  }

  .cover-title__product {
    font-size: 34px;
  }

  .cover-subtitle {
    font-size: 17px;
  }

  .flow-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 24px;
  }

  .flow-arrow {
    display: none;
  }

  .slide__inner--process {
    padding-top: 28px;
    padding-bottom: 28px;
  }

  .slide.is-open .slide__inner--process {
    padding-bottom: 44px;
  }

  .process-trigger__chevron {
    width: 38px;
    height: 38px;
  }

  .process-grid--p1,
  .process-grid--p2,
  .process-grid--p3 {
    grid-template-columns: 1fr;
    row-gap: 28px;
  }

  .info-card--warm,
  .info-card--sage {
    min-height: auto;
  }

  .info-card__title--lg {
    font-size: 22px;
  }

  .info-card__body--lg {
    font-size: 18px;
  }

  .info-card__title--md {
    font-size: 19px;
  }

  .info-card__body--md {
    font-size: 16.5px;
  }

  .site-footer {
    min-height: 150px;
  }

  .site-footer__inner {
    padding: 26px 24px 48px;
  }
}

@media (max-width: 560px) {
  .flow-steps {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .info-card__body br {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .flow-step__link,
  .process-trigger,
  .process-trigger__chevron,
  .process-panel {
    transition: none;
  }
}
