/* 1년 절약액으로 살 수 있는 장비 — 아낀 돈 쇼케이스 + 수수료율 계산 영역 겹치기 — /calculator 와 /landing/1 계산기가 함께 쓴다.
   두 면을 한 격자 칸에 겹쳐 두고, 넓은 화면에서 마우스를 올리면 계산 면이, 떼면 쇼케이스가 보인다.
   좁은 화면·터치는 두 면 높이가 크게 달라 겹치지 않고 한쪽만 보이게 바꾼다(open 클래스). */
.fc-zone{position:relative;display:grid;margin-top:clamp(20px,3vw,28px);scroll-margin-top:96px} /* 랜딩 상단 고정 메뉴에 영역 머리가 가리지 않게 */
.fc-zone>.fc-gear,.fc-zone>.fc-work{grid-area:1/1;min-width:0}
.fc-gear{transition:opacity .35s var(--ease),transform .35s var(--ease),visibility 0s}
.fc-work{opacity:0;visibility:hidden;transform:translateY(8px);transition:opacity .35s var(--ease),transform .35s var(--ease),visibility 0s linear .35s}
.fc-zone.open>.fc-gear{opacity:0;visibility:hidden;transform:scale(.985);transition:opacity .3s var(--ease),transform .3s var(--ease),visibility 0s linear .3s}
.fc-zone.open>.fc-work{opacity:1;visibility:visible;transform:none;transition:opacity .35s var(--ease) .05s,transform .35s var(--ease) .05s,visibility 0s}
@media (hover:hover) and (min-width:861px){
  .fc-zone:not(.rest):hover>.fc-gear{opacity:0;visibility:hidden;transform:scale(.985);transition:opacity .3s var(--ease),transform .3s var(--ease),visibility 0s linear .3s}
  .fc-zone:not(.rest):hover>.fc-work{opacity:1;visibility:visible;transform:none;transition:opacity .35s var(--ease) .05s,transform .35s var(--ease) .05s,visibility 0s}
  .fc-zone .fc-work-back{display:none}
}
@media (max-width:860px),(hover:none){
  .fc-work{display:none}
  .fc-zone.open>.fc-work{display:block}
  .fc-zone.open>.fc-gear{display:none}
  .fc-gear{cursor:pointer}
}
.fc-work-back{display:inline-flex;align-items:center;gap:6px;height:34px;padding:0 14px;border:1px solid var(--ink-line);background:transparent;font-size:12.5px;color:var(--ink-2)}
.fc-work-back:hover{border-color:var(--ink);color:var(--ink)}

/* 쇼케이스 */
.fc-gear{--gl:rgba(200,168,107,.24);--gt:rgba(236,230,218,.66);position:relative;isolation:isolate;overflow:hidden;display:flex;flex-direction:column;gap:clamp(12px,2vw,22px);padding:clamp(20px,3vw,36px) clamp(16px,3vw,40px) clamp(16px,2vw,24px);color:var(--ivory);background:radial-gradient(55% 60% at 50% 0%,rgba(200,168,107,.22),transparent 70%),radial-gradient(60% 80% at 0% 100%,rgba(200,168,107,.1),transparent 60%),radial-gradient(60% 80% at 100% 100%,rgba(103,173,192,.08),transparent 60%),linear-gradient(180deg,#1e1c21,#0f0e11);border:1px solid rgba(200,168,107,.45);box-shadow:0 30px 60px -36px rgba(23,22,26,.9)}
.fc-gear::before{content:"";position:absolute;inset:0 0 auto;height:1px;background:linear-gradient(90deg,transparent,#e7d3a4 50%,transparent)}
.fc-gear::after{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:linear-gradient(105deg,transparent 40%,rgba(231,211,164,.07) 50%,transparent 60%);transform:translateX(-100%)}
.fc-gear.revealed::after{animation:gearsweep 10s var(--ease) .4s infinite}
@keyframes gearsweep{0%{transform:translateX(-100%)}18%,100%{transform:translateX(100%)}}
.fc-gear-head{text-align:center}
.fc-gear-k{display:block;font-size:11px;font-weight:500;letter-spacing:.26em;color:var(--gold)}
.fc-gear-head h2{margin-top:8px;font-size:clamp(20px,2.4vw,30px);font-weight:500;color:var(--ivory-2)}
/* 눈에 안 보이던 돈: 흐릿하게 있다가 대수가 굴러갈 때 또렷한 금색으로 드러난다 */
.fc-gear-head h2 b{margin:0 .06em;white-space:nowrap;font-family:var(--num);font-weight:600;font-size:1.6em;background:var(--gold-grad);-webkit-background-clip:text;background-clip:text;color:transparent;font-variant-numeric:lining-nums tabular-nums;filter:blur(10px);opacity:.25;transition:filter 1.6s var(--ease) .2s,opacity 1.6s var(--ease) .2s}
.fc-gear.revealed .fc-gear-head h2 b{filter:none;opacity:1}
.fc-gear-head h2 b small{font-family:var(--serif);font-size:.45em}
.fc-gear-head h2 .nw{white-space:nowrap}
/* 매장 컨디션을 끌어올립니다: 아래에서 끌어올려지듯 올라온다 */
.fc-gear-lift{display:block;margin-top:2px;font-size:1.25em;font-weight:600;background:var(--gold-grad);-webkit-background-clip:text;background-clip:text;color:transparent;opacity:0;transform:translateY(18px);transition:opacity .9s var(--ease) .9s,transform 1.1s cubic-bezier(.2,1.4,.35,1) .9s}
.fc-gear-lift i{margin-right:.2em;font-size:.9em;vertical-align:-.05em;color:var(--gold-2);-webkit-text-fill-color:var(--gold-2)}
.fc-gear.revealed .fc-gear-lift{opacity:1;transform:none}
.fc-gear-punch{margin-top:8px;font-size:clamp(14px,1.4vw,17px);color:var(--ivory-2);opacity:0;transform:translateY(6px);transition:opacity .8s var(--ease) 1.4s,transform .8s var(--ease) 1.4s}
.fc-gear.revealed .fc-gear-punch{opacity:1;transform:none}
.fc-gear-list{flex:1;list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:1fr}
.gear{position:relative;display:grid;grid-template-columns:minmax(0,50%) minmax(0,1fr);align-items:center;gap:clamp(12px,2.2vw,28px);min-width:0;padding:clamp(10px,1.8vw,22px)}
.gear:nth-child(even)::before{content:"";position:absolute;left:0;top:14%;bottom:14%;width:1px;background:var(--gl)}
.gear:nth-child(n+3)::after{content:"";position:absolute;top:0;left:8%;right:8%;height:1px;background:var(--gl)}
.gear-stage{position:relative;isolation:isolate;aspect-ratio:1;width:100%;max-width:320px;justify-self:center;opacity:0;transform:translateY(20px);transition:opacity .85s var(--ease),transform 1.1s cubic-bezier(.16,1,.3,1);transition-delay:calc(var(--n) * 140ms)}
.fc-gear.revealed .gear-stage{opacity:1;transform:none}
/* 제품 윤곽은 한 장으로 또렷하게 유지하고, 조명·받침대·궤도만 별도 층에서 움직인다. */
.gear-stage::before{content:"";position:absolute;inset:2% -5% 0;border-radius:50%;background:radial-gradient(ellipse at 48% 40%,rgba(231,196,120,.2),rgba(200,168,107,.035) 52%,transparent 70%);opacity:.7;animation:gearglow 6.8s ease-in-out infinite;animation-delay:calc(var(--n) * -1.2s);transition:opacity .7s var(--ease);pointer-events:none}
.gear-stage::after{content:"";position:absolute;left:20%;right:20%;bottom:9%;height:8%;border-radius:50%;background:radial-gradient(closest-side,rgba(0,0,0,.8),transparent);animation:gearshadow 6.8s ease-in-out infinite;animation-delay:calc(var(--n) * -1.2s);pointer-events:none}
.gear-plinth{position:absolute;left:8%;right:8%;bottom:4%;height:13%;border-radius:50% / 36%;border:1px solid rgba(211,182,125,.25);background:linear-gradient(90deg,#14151b,#34313a 45%,#1a1b23);box-shadow:0 11px 22px -12px #000;pointer-events:none}
.gear-plinth::before{content:"";position:absolute;inset:-4% -1% 28%;border-radius:50%;border:1px solid rgba(231,211,164,.42);background:radial-gradient(ellipse at 40% 40%,rgba(123,154,164,.2),rgba(37,35,42,.95) 70%);box-shadow:inset 0 1px 1px rgba(255,242,210,.15)}
.gear-plinth::after{content:"";position:absolute;left:15%;right:15%;bottom:12%;height:1px;background:linear-gradient(90deg,transparent,rgba(231,211,164,.65),transparent)}
.gear-orbit{position:absolute;inset:8%;border:1px solid rgba(129,188,201,.13);border-top-color:rgba(231,211,164,.7);border-bottom-color:rgba(129,188,201,.55);border-radius:50%;transform:rotateX(68deg) rotateZ(-22deg);animation:gearorbit 18s linear infinite;animation-delay:calc(var(--n) * -3s);pointer-events:none}
.gear-orbit::after{content:"";position:absolute;left:14%;top:14%;width:4px;height:4px;border-radius:50%;background:#e7d3a4;box-shadow:0 0 8px rgba(231,211,164,.7)}
.gear-light{position:absolute;inset:0;overflow:hidden;border-radius:50%;pointer-events:none}
.gear-light::before{content:"";position:absolute;inset:-20% 25%;background:linear-gradient(100deg,transparent 32%,rgba(231,211,164,.15) 49%,rgba(147,205,217,.06) 58%,transparent 72%);transform:translateX(-190%);animation:gearstudiosweep 9s ease-in-out infinite;animation-delay:calc(var(--n) * -1.6s)}
.gear-product{position:absolute;inset:-2% -1% 8%;z-index:1;animation:gearfloat 6.8s ease-in-out infinite;animation-delay:calc(var(--n) * -1.2s);pointer-events:none}
.gear-img{position:relative;display:block;width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 12px 12px rgba(0,0,0,.5))}
@keyframes gearglow{0%,100%{opacity:.5;transform:scale(.96)}50%{opacity:.85;transform:scale(1.04)}}
@keyframes gearfloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-7px)}}
@keyframes gearshadow{0%,100%{opacity:.8;transform:scaleX(1)}50%{opacity:.5;transform:scaleX(.88)}}
@keyframes gearorbit{from{transform:rotateX(68deg) rotateZ(-22deg)}to{transform:rotateX(68deg) rotateZ(338deg)}}
@keyframes gearstudiosweep{0%,12%{transform:translateX(-190%);opacity:0}20%{opacity:1}44%,100%{transform:translateX(190%);opacity:0}}
.gear-info{min-width:0;container-type:inline-size}
.gear-title{display:flex;flex-direction:column;min-width:0;line-height:1.35}
.gear-title b{font-size:clamp(15px,1.5vw,19px);font-weight:600;color:var(--ivory);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.gear-title span{font-size:clamp(12.5px,1.1vw,14px);color:var(--gt);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-variant-numeric:tabular-nums}
/* 금색 글자는 배경을 글자 모양으로 오려 칠한다(background-clip:text) — 상자가 칸 폭에 묶이면 칸 밖으로 나간 글자("대")가
   투명해지므로 상자를 글자 길이에 맞춘다(inline-block). 글자 크기는 칸 폭(100cqi) ÷ 글자 폭 어림값(--w, JS 의 countEm)으로
   정해 자릿수가 늘어도 칸 안에 들게 하고, 강조 때 1.1배 커지는 몫까지 남긴다. cqi 를 모르는 브라우저는 앞의 clamp 를 쓴다. */
.gear-count{--count-max:96px;display:inline-block;margin:10px 0 16px;font-family:var(--num);font-weight:500;font-size:clamp(40px,5vw,80px);font-size:min(var(--count-max),calc((100cqi - 4px) / var(--w,2.2) / 1.12));line-height:1;white-space:nowrap;background:var(--gold-grad);-webkit-background-clip:text;background-clip:text;color:transparent;font-variant-numeric:lining-nums tabular-nums}
.gear-count small{margin-left:4px;font-family:var(--serif);font-size:.32em}
.gear-meter{max-width:300px;display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:4px;font-size:clamp(13px,1.3vw,16px);line-height:1;color:rgba(236,230,218,.12)}
.gear-meter i{display:grid;place-items:center;transition:color .3s var(--ease)}
.gear-meter i.on{color:var(--gold);text-shadow:0 0 8px rgba(231,211,164,.5)}
.fc-gear.revealed .gear-meter i.on{animation:gearpop .45s var(--ease) both;animation-delay:calc(var(--i) * 40ms + var(--n) * 130ms)}
@keyframes gearpop{0%{opacity:0;transform:translateY(5px) scale(.4)}100%{opacity:1;transform:none}}
/* 번갈아 강조: 비춘 칸의 숫자와 무대 조명을 밝힌다.
   나머지 칸은 그림·막대만 흐리게 한다 — 이름·가격·대수 글자는 대비를 지키려고 흐리지 않는다(대수는 큰 글자라 조금만 어둡게) */
.gear-count{transform-origin:left 70%;transition:transform .6s cubic-bezier(.2,1.4,.35,1),filter .6s var(--ease)}
.fc-gear-list.spotting .gear:not(.spot) .gear-count{filter:brightness(.82)}
.gear.spot .gear-count{transform:scale(1.1);filter:drop-shadow(0 0 16px rgba(231,196,120,.5))}
.gear-img,.gear-meter{transition:transform .7s cubic-bezier(.2,1.4,.35,1),opacity .6s var(--ease)}
.fc-gear-list.spotting .gear:not(.spot) .gear-img,.fc-gear-list.spotting .gear:not(.spot) .gear-meter{opacity:.82}
.gear.spot .gear-img{transform:translateY(-2%) scale(1.025)}
.gear.spot .gear-meter i.on{color:var(--gold-2);text-shadow:0 0 10px rgba(231,211,164,.75)}
.fc-gear-caption{margin:0;text-align:center;font-size:11px;line-height:1.5;color:var(--gt)}
.fc-gear-open{align-self:center;display:inline-flex;align-items:center;gap:8px;height:40px;padding:0 20px;white-space:nowrap;border:1px solid rgba(200,168,107,.5);border-radius:999px;background:rgba(200,168,107,.08);font-size:13px;color:var(--gold-2)}
.fc-gear-open:hover{background:rgba(200,168,107,.16)}
.fc-gear-open i{font-size:16px;animation:gearnudge 2.2s ease-in-out infinite}
@keyframes gearnudge{0%,100%{transform:translate(0,0)}50%{transform:translate(3px,-3px)}}
.fc-gear-open .touch{display:none}
@media (max-width:860px),(hover:none){.fc-gear-open .mouse{display:none}.fc-gear-open .touch{display:inline}}
/* 숨긴 탭·화면 밖·계산 면에서는 CSS 합성 애니메이션도 멈춘다. */
.fc-gear:not(.motion-active)::after,.fc-gear:not(.motion-active) *,.fc-gear:not(.motion-active) *::before,.fc-gear:not(.motion-active) *::after{animation-play-state:paused}
@media (prefers-reduced-motion:reduce){.fc-gear::after,.fc-gear *,.fc-gear *::before,.fc-gear *::after{animation:none!important;transition:none!important}.gear-stage,.fc-gear-punch,.fc-gear-lift,.fc-gear-head h2 b{opacity:1;transform:none;filter:none}}
/* 화면 낭독기 전용 글자(굴러가는 숫자 대신 최종 값을 읽힌다) */
.fc-sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
/* 아낀 돈이 없거나 요율을 모를 때: 금액 줄을 숨기고 사실대로 적은 한 줄만 남긴다 */
.fc-gear.empty .fc-gear-head h2 .nw,.fc-gear.empty #gearBudget,.fc-gear.empty .gear-josa,.fc-gear.empty .fc-gear-lift i{display:none}
.fc-gear.empty .fc-gear-lift{font-size:1em}
.fc-work:focus:not(:focus-visible){outline:none}
.fc-work:focus-visible{outline:1px solid var(--gold-3);outline-offset:6px}
/* 좁은 화면: 한 줄에 한 장비. 그림 칸이 글자 칸을 밀어내지 않게 폭을 비율로 묶고, 가격은 줄을 바꿔서라도 다 보인다 */
@media(max-width:760px){
  .fc-gear-list{grid-template-columns:minmax(0,1fr);grid-auto-rows:auto}
  .gear{grid-template-columns:clamp(64px,30%,132px) minmax(0,1fr);padding:10px 4px}
  .gear:nth-child(even)::before{display:none}
  .gear:nth-child(n+2)::after{content:"";position:absolute;top:0;left:4px;right:4px;height:1px;background:var(--gl)}
  .gear-title span{white-space:normal}
  .gear-count{--count-max:64px;margin:6px 0 10px}
  .gear-meter{font-size:12px;gap:3px}
}
@media(max-width:560px){
  .fc-gear-k{letter-spacing:.12em}
  .fc-gear-head h2{font-size:18px}
}
@media(max-width:360px){.fc-gear-open{padding:0 12px;font-size:12px}}
