/* ===== FINERO 로봇청소기수납장제작 — 디자인 토큰: "도킹 스테이션" 아이덴티티
   로봇청소기 충전 링(청록 상태등)과 가구 도면선에서 출발한 팔레트/타입.
   Before/After 슬라이더는 스펙상 금지 — 정적 2컷 비교만 사용. */
@import url("https://fonts.googleapis.com/css2?family=Gothic+A1:wght@500;600;700;800&family=JetBrains+Mono:wght@500;700&display=swap");

:root {
  --color-primary:        #12161c;
  --color-primary-dark:   #090b0f;
  --color-on-primary:     #ffffff;
  --color-muted-on-dark:  #a7b0ad;

  --color-accent:         #0ea5a0;
  --color-accent-hover:   #14c2ba;
  --color-wood:           #b8895f;

  --text-on-light:        #1c1f1a;
  --text-on-dark:         #ffffff;
  --color-text:           #1c1f1a;
  --color-text-muted:     #63665c;

  --color-bg:             #f5f2ec;
  --color-bg-alt:         #ece7dc;
  --color-bg-subtle:      #efece3;

  --color-border:         #ddd6c6;
  --color-border-strong:  #8c8a7c;

  --color-footer-bg:      #0d1013;

  --font-body: "Pretendard";
  --font-caps: "Gothic A1";
  --font-mono: "JetBrains Mono";

  --container-max: 1200px;
  --container-pad: clamp(20px, 4.5vw, 56px);
  --radius: 0;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

@font-face {
  font-family: "Pretendard";
  src: url("https://cdn.jsdelivr.net/npm/pretendard@1.3.9/dist/web/variable/woff2/PretendardVariable.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-display: swap;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, p, h1, h2, h3, h4, h5, h6, li, td, th, a, span, div, button {
  word-break: keep-all;
  overflow-wrap: break-word;
}
body {
  margin: 0; font-family: var(--font-body), sans-serif; font-size: 16px; line-height: 1.65;
  color: var(--color-text); background: var(--color-bg);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; }
.wrap { max-width: var(--container-max); margin: 0 auto; padding: 0 var(--container-pad); }

h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); font-weight: 800; letter-spacing: -0.02em; margin: 0 0 12px; }
h2 { font-size: clamp(1.4rem, 2.8vw, 1.95rem); font-weight: 800; letter-spacing: -0.015em; margin: 0 0 16px; }
h3 { font-size: clamp(1.05rem, 1.6vw, 1.28rem); font-weight: 700; margin: 0 0 8px; }

/* 시그니처: 실측 치수선(dimension line) + 모노스페이스 — "정확한 실측"이라는
   업의 핵심을 라벨 타이포 자체로 체화한다. 영문 단어(WHY/PROCESS/CHECK 등)만
   쓰이는 자리라 모노스페이스로 바꿔도 한글 폴백이 섞이지 않는다. */
.caps-label {
  font-family: var(--font-mono), monospace; letter-spacing: .08em;
  font-size: .74rem; font-weight: 700; color: var(--color-accent);
  text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 9px;
}
.caps-label::before {
  content: '';
  width: 26px; height: 11px; flex-shrink: 0;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 11'><path d='M1.5 1v9M24.5 1v9M1.5 5.5h23' stroke='%230ea5a0' stroke-width='1.6' fill='none' stroke-linecap='round'/></svg>") no-repeat center/contain;
}

section { padding: clamp(48px, 8vw, 96px) 0; }

/* 박스 형태는 유지하되 "좌측 컬러 스트라이프" 클리셰 대신 도킹 스테이션 링 모티프를
   코너 워터마크로 사용 + 첫 문장은 크게 강조하는 타이포 위계를 함께 적용 */
.intro-callout {
  position: relative; max-width: 640px; margin-top: 20px; overflow: hidden;
  padding: 28px 30px 26px; background: var(--color-bg-alt);
  border: 1px solid var(--color-border); border-radius: var(--radius);
}
.intro-callout::after {
  content: ''; position: absolute; top: 16px; right: 16px;
  width: 40px; height: 40px;
  border: 2px solid var(--color-accent); opacity: .16; pointer-events: none;
}
.intro-callout p:first-child {
  font-size: clamp(1.08rem, 2vw, 1.26rem); font-weight: 600; color: var(--color-text);
  line-height: 1.55; margin: 0 0 14px; letter-spacing: -.005em; max-width: 90%;
}
.intro-callout p:not(:first-child) { color: var(--color-text-muted); font-size: 1rem; margin: 0 0 10px; }
.intro-callout p:last-child { margin-bottom: 0; }
.section-alt { background: var(--color-bg-alt); }

/* ===== 버튼 ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; min-height: 46px; border-radius: var(--radius);
  font-family: var(--font-body), sans-serif; font-size: 14px; font-weight: 700;
  letter-spacing: 0; border: none; cursor: pointer; transition: .2s var(--ease);
}
.btn-lg { padding: 18px 40px; min-height: 60px; font-size: 16px; min-width: 220px; }
.btn-primary { background: var(--color-accent); color: #fff; }
.btn-outline { background: transparent; border: 1px solid var(--color-border-strong); color: var(--text-on-light); }
.btn-dark { background: var(--color-primary); color: #fff; }
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: var(--color-accent-hover); }
  .btn-outline:hover { border-color: var(--color-accent); color: var(--color-accent); }
  .btn-dark:hover { background: var(--color-primary-dark); }
}
.btn:active { transform: scale(.97); }

/* ===== 헤더 ===== */
.hdr {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: 72px;
  background: rgba(245,242,236,.92); backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--color-border);
  display: flex; align-items: center;
}
.hdr-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; }
.hdr-logo { display: flex; flex-direction: column; gap: 4px; line-height: 1.2; min-width: 0; }
.hdr-logo-name {
  font-family: var(--font-caps), sans-serif; font-weight: 800; font-size: 1.08rem; color: var(--color-primary);
  display: flex; align-items: baseline; gap: 6px;
}
.hdr-logo-kr { font-size: .74rem; font-weight: 600; color: var(--color-wood); letter-spacing: .02em; }
.hdr-logo-tagline { font-size: .64rem; font-weight: 500; color: var(--color-text-muted); letter-spacing: .01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hdr-cta { display: inline-flex; flex-shrink: 0; }
main { padding-top: 72px; }
@media(max-width:480px) { .hdr-logo-tagline { display: none; } }

/* ===== 히어로 (홈) =====
   "실측 도면" 그리드 — 배경 자체를 모눈종이(그리드 패턴)로 깔고, 카피와 사진을
   칸(cell)으로 나눠 하이라인으로만 구획한다. 둥근 모서리·색면 없이 도면/스펙시트에
   가까운 인상. 배경이 밝으므로 본문은 항상 --color-text(짙은색)를 사용한다. */
.hero-grid {
  background-color: var(--color-bg);
  background-image:
    linear-gradient(var(--color-border) 1px, transparent 1px),
    linear-gradient(90deg, var(--color-border) 1px, transparent 1px);
  background-size: 28px 28px;
  border-top: 3px solid var(--color-wood);
  padding: clamp(28px, 4vw, 44px) 0 clamp(56px, 8vw, 96px);
}
.hero-grid-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  border: 1px solid var(--color-border-strong);
  background: var(--color-bg);
}
.hg-text {
  grid-column: 1 / 4; grid-row: 1;
  padding: clamp(28px, 4.5vw, 52px) clamp(24px, 4vw, 44px);
  border-bottom: 1px solid var(--color-border-strong);
}
.hg-text h1 {
  color: var(--color-text);
  font-size: clamp(2.8rem, 9vw, 6.4rem); line-height: .94; letter-spacing: -.035em;
  margin: 4px 0 18px;
}
.hero-grid-sub { color: var(--color-text-muted); font-size: 1.05rem; max-width: 560px; margin: 0 0 8px; }
.hg-photo-a, .hg-photo-b, .hg-photo-c { position: relative; overflow: hidden; aspect-ratio: 4/3; padding: 42px 14px; }
.hg-photo-a img, .hg-photo-b img, .hg-photo-c img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hg-photo-a { grid-column: 1; grid-row: 2; border-right: 1px solid var(--color-border-strong); }
.hg-photo-b { grid-column: 2; grid-row: 2; border-right: 1px solid var(--color-border-strong); }
.hg-photo-c { grid-column: 3; grid-row: 2; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }

@keyframes hero-enter { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.hg-text > * { animation: hero-enter .7s var(--ease) backwards; }
.hg-text > .caps-label     { animation-delay: .05s; }
.hg-text > h1               { animation-delay: .12s; }
.hg-text > .hero-grid-sub   { animation-delay: .22s; }
.hg-text > .hero-actions    { animation-delay: .32s; }
.hg-photo-a { animation: hero-enter .8s var(--ease) .1s backwards; }
.hg-photo-b { animation: hero-enter .8s var(--ease) .18s backwards; }
.hg-photo-c { animation: hero-enter .8s var(--ease) .24s backwards; }

@media(max-width: 900px) {
  .hg-photo-a, .hg-photo-b, .hg-photo-c { grid-column: 1 / 4; aspect-ratio: 4/3; border-right: none; background: var(--color-bg-alt); }
  .hg-photo-a img, .hg-photo-b img, .hg-photo-c img { object-fit: contain; }
  .hg-photo-a { grid-row: 2; }
  .hg-photo-b { grid-row: 3; border-top: 1px solid var(--color-border-strong); }
  .hg-photo-c { grid-row: 4; border-top: 1px solid var(--color-border-strong); }
}

/* ===== 세부페이지 전용 히어로: 좌우 분할(에디토리얼) — 메인 페이지의
   그리드형 히어로(.hero-grid)와는 다른, 카드형 이미지 프레임 레이아웃 ===== */
.hero-split { padding: 44px 0 clamp(40px, 6vw, 72px); background: var(--color-bg); }
.hero-split-inner {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 56px);
  align-items: center;
}
.hero-split-text .caps-label { margin-bottom: 6px; }
.hero-split-sub { color: var(--color-text-muted); font-size: 1.04rem; max-width: 520px; margin: 0 0 8px; }
.hero-split-media {
  border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3;
  border: 2px solid var(--color-wood);
}
.hero-split-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-split-text > * { animation: hero-enter .7s var(--ease) backwards; }
.hero-split-text > .caps-label     { animation-delay: .05s; }
.hero-split-text > h1              { animation-delay: .12s; }
.hero-split-text > .hero-split-sub { animation-delay: .22s; }
.hero-split-text > .hero-actions   { animation-delay: .32s; }
.hero-split-media { animation: hero-enter .8s var(--ease) .1s backwards; }
@media(max-width: 900px) {
  .hero-split-inner { grid-template-columns: 1fr; gap: 24px; }
  .hero-split-media { order: -1; aspect-ratio: 16/10; }
}

/* ===== 신뢰 배지 ===== */
.trust-badge {
  flex: 1 1 200px; border: 1px solid var(--color-border); border-radius: var(--radius);
  padding: 20px; background: var(--color-bg);
}

/* ===== 그리드 ===== */
.dp-g2  { display:grid; grid-template-columns:1fr 1fr; gap:24px }
.dp-g3  { display:grid; grid-template-columns:repeat(3,1fr); gap:20px }
.dp-g4  { display:grid; grid-template-columns:repeat(4,1fr); gap:20px }
@media(max-width:900px) { .dp-g4 { grid-template-columns:repeat(2,1fr); } }
@media(max-width:768px) { .dp-g2,.dp-g3,.dp-g4 { grid-template-columns:1fr } }

.card {
  border: 1px solid var(--color-border); background: var(--color-bg); overflow: hidden;
  border-radius: var(--radius);
  transition: border-color .2s, box-shadow .2s;
}
@media (hover: hover) and (pointer: fine) {
  .card:hover { border-color: var(--color-accent); box-shadow: 0 8px 24px rgba(18,22,28,.08); }
  .card:hover img { transform: scale(1.04); }
}
.card img { aspect-ratio: 4/3; object-fit: cover; transition: transform .5s var(--ease); }
.card-body { padding: 18px 20px; }
.card-badges { display:flex; flex-wrap:wrap; gap:8px; margin-bottom: 10px; }
@media(max-width:768px) { .card-badges { flex-direction:column; align-items:flex-start; gap:6px; } }
.badge {
  font-family: var(--font-caps), sans-serif; font-size: .7rem; letter-spacing: .02em;
  padding: 4px 10px; background: var(--color-bg-alt); color: var(--color-text-muted);
}

/* ===== 상담 페이지 전화번호 강조 (이 페이지 한정) ===== */
.contact-phone-big {
  display: inline-block; margin: 20px 0 4px;
  font-family: var(--font-caps), sans-serif; font-weight: 800;
  font-size: clamp(2.2rem, 7vw, 3.4rem); letter-spacing: .01em;
  color: var(--color-accent);
}
@media (hover: hover) and (pointer: fine) {
  .contact-phone-big:hover { color: var(--color-accent-hover); }
}

/* ===== 관련 카드 그리드의 CTA 타일(마지막 칸) ===== */
.cta-tile { background: var(--color-primary); display: flex; align-items: center; justify-content: center; min-height: 100%; }
.cta-tile-inner { padding: 32px 20px; text-align: center; }
.cta-tile-inner h3 { color: #fff; margin: 0 0 6px; }
.cta-tile-inner p { color: var(--color-muted-on-dark); margin: 0; font-size: .85rem; }
@media (hover: hover) and (pointer: fine) {
  .cta-tile:hover { border-color: var(--color-accent); }
}

/* ===== 프로세스 (연결선: proc-step 자체 폭 기준, gap 금지) ===== */
.proc-list { display:flex; list-style:none; margin:0; padding:0 }
.proc-step { flex:1; position:relative; padding:0 12px; text-align:center }
.proc-step:not(:last-child)::after {
  content:''; position:absolute; top:24px; left:50%; width:100%; height:2px;
  background: var(--color-border); z-index:0;
}
.proc-num {
  position:relative; z-index:1; margin:0 auto 12px; width:48px; height:48px;
  display:flex; align-items:center; justify-content:center;
  background: var(--color-primary); color: #fff; font-family: var(--font-mono), monospace; font-weight: 700;
}
@media(max-width:768px) {
  .proc-list { flex-direction:column; gap:10px }
  .proc-step { padding:24px 0 }
  .proc-step::after { display:none }
}

/* ===== 스크롤 진행률 바 (기능적 표시) ===== */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 100%;
  background: var(--color-accent); transform: scaleX(0); transform-origin: left;
  z-index: 200; transition: transform .1s linear;
}

/* ===== FAQ 아코디언 ===== */
.faq-list { margin-top: 8px; }
.faq-item { border-bottom: 1px solid var(--color-border); }
.faq-q {
  width: 100%; text-align: left; background: none; border: none; padding: 18px 4px;
  font-weight: 700; font-size: 1rem; cursor: pointer; display: flex; justify-content: space-between; gap: 12px;
  color: var(--text-on-light);
}
.faq-q::after { content: '+'; font-size: 1.3rem; color: var(--color-accent); flex-shrink: 0; }
.faq-item.open .faq-q::after { content: '−'; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s var(--ease); color: var(--color-text-muted); }
.faq-a p { padding: 0 4px 18px; margin: 0; }

/* ===== 비교표 ===== */
.tbl-wrap { overflow-x: auto; }
table.dp-table { width: 100%; border-collapse: collapse; min-width: 480px; }
table.dp-table th, table.dp-table td { border: 1px solid var(--color-border); padding: 12px 14px; text-align: left; font-size: .92rem; }
table.dp-table th { background: var(--color-bg-alt); font-family: var(--font-caps), sans-serif; font-size: .78rem; letter-spacing: .02em; }

.timeline { border-left: 2px solid var(--color-border); padding-left: 24px; display: flex; flex-direction: column; gap: 24px; }
.timeline-item { position: relative; }
.timeline-item::before { content: ''; position: absolute; left: -29px; top: 4px; width: 10px; height: 10px; background: var(--color-accent); }

/* ===== 시공 전경/완성 비교 (정적 2컷 — 슬라이더 아님) ===== */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 32px; }
.duo figure { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; }
.duo img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.duo figcaption {
  position: absolute; left: 0; bottom: 0; right: 0; padding: 10px 14px;
  background: linear-gradient(0deg, rgba(9,11,15,.72), transparent);
  color: #fff; font-family: var(--font-caps), sans-serif; font-size: .78rem; letter-spacing: .02em;
}
@media(max-width:768px) { .duo { grid-template-columns: 1fr; } }

/* ===== CTA 밴드 ===== */
.cta-band { background: var(--color-primary); color: #fff; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: var(--color-muted-on-dark); }

/* ===== 푸터 ===== */
.footer { background: var(--color-footer-bg); color: var(--color-muted-on-dark); padding: 56px 0 96px; }
.footer .wrap { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; }
.footer h4 { color: #fff; font-family: var(--font-caps), sans-serif; font-size: .82rem; letter-spacing: .03em; margin-bottom: 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.footer p { font-size: .88rem; line-height: 1.8; margin: 0 0 4px; }
@media(max-width:768px) { .footer .wrap { grid-template-columns: 1fr; gap: 28px; } }

/* ===== 모바일 스티키 CTA ===== */
#mob-bar {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 90;
  background: var(--color-primary); grid-template-columns: 1fr 1fr; gap: 8px; padding: 0 8px;
}
#mob-bar a { color: #fff; text-align: center; padding: 16px 8px; font-weight: 700; font-family: var(--font-caps), sans-serif; font-size: .84rem; }
#mob-bar a:last-child { background: var(--color-accent); }
@media(max-width:768px) { #mob-bar { display: grid; } body { padding-bottom: 64px; } }
#float-cta { display: none; }

.br-mobile { display: none; }
.br-desktop { display: inline; }
@media(max-width:768px) {
  .br-mobile { display: inline; }
  .br-desktop { display: none; }
}

/* ===== 스크롤 리빌 ===== */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
  transition-delay: calc(var(--i, 0) * 70ms);
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* ===== 진단/체크 카드 ===== */
.diag-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
  padding: 22px 20px; border: 1px solid var(--color-border); background: var(--color-bg);
  border-radius: var(--radius); transition: transform .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.diag-icon {
  width: 44px; height: 44px; background: var(--color-bg-alt);
  display: flex; align-items: center; justify-content: center; font-size: 20px;
  color: var(--color-accent); flex-shrink: 0;
}
@media (hover: hover) and (pointer: fine) {
  .diag-card:hover { transform: translateY(-6px); border-color: var(--color-accent); box-shadow: 0 10px 28px rgba(18,22,28,.1); }
}
.diag-card:active { transform: translateY(-2px) scale(.98); }

/* ===== 카운터 ===== */
.counter-num { font-family: var(--font-mono), monospace; font-weight: 700; }
