/* 예측 — 타이밍 게이지 → 가격카드 → 7일 차트·일별 → 내일 요약·정확도 (앱 홈+예측 탭 구성) */
.hero{background:radial-gradient(130% 85% at 72% 35%, rgba(22,163,74,0.20), transparent 58%),var(--navy);color:#fff;padding:24px 0 48px}
.hero__in{display:grid;grid-template-columns:minmax(0,1fr) 400px;align-items:center;gap:40px}
.hero__ctrl{display:flex;flex-wrap:wrap;gap:12px}
.hero__label{margin-top:40px;color:var(--on-navy-3)}
.hero__verdict{margin-top:8px}
.hero__badge{margin-top:16px}
.hero__meta{margin-top:12px;color:var(--on-navy-3)}
.hero__gauge{display:flex;flex-direction:column;align-items:center}
.hero__gauge .g{width:100%;max-width:360px;height:auto}
.hero__ends{display:flex;justify-content:space-between;width:100%;max-width:336px}
.hero__ends span{display:inline-flex;align-items:center;gap:4px}
.hero__ends .now{color:var(--red-on-navy)}
.hero__ends .wait{color:var(--green-on-navy)}

.prices{grid-template-columns:repeat(4,minmax(0,1fr))}
.price__head{display:flex;align-items:baseline;gap:8px;white-space:nowrap}
.price__num{display:flex;align-items:baseline;gap:4px;margin-top:4px}
.price__num b,.day__price b,.tmr__num b{white-space:nowrap}
.price .chip{margin-top:8px}
.price > svg{width:100%;height:32px;margin-top:12px}
.price__cap{margin-top:4px}
.calc{display:flex;flex-direction:column;justify-content:space-between;gap:16px}
.calc p{margin-top:4px;color:var(--on-navy-2)}
.calc .btn{align-self:flex-start}

.fc{grid-template-columns:minmax(0,2fr) minmax(0,1fr);align-items:start}
.chart > svg.m-only{max-width:440px;margin:0 auto}
.btn--icon{flex:none}
.chart > svg{width:100%;height:auto;overflow:visible}
.legend{display:flex;gap:16px;margin-top:12px}
.legend span{display:inline-flex;align-items:center;gap:8px}
.legend i{display:block;width:16px;height:4px;border-radius:var(--r-pill)}
.legend__a{background:#2A2C48}
.legend__f{background:#2563EB}
.legend__b{background:rgba(37,99,235,0.25)}
.chart__note{margin-top:8px}
.share{display:inline-flex;align-items:center;gap:8px}
.daily__empty{padding:0 var(--pad-card) var(--pad-card)}
.acc__note{margin-top:12px}
.daily__head{margin-bottom:12px;padding:var(--pad-card) var(--pad-card) 0}
.day{grid-template-columns:minmax(0,1fr) auto 56px}
.day__date{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px;white-space:nowrap}
.day__price{display:flex;align-items:baseline;gap:4px}
.day__delta{text-align:right}

.insight{grid-template-columns:repeat(3,minmax(0,1fr))}
.insight.insight--n2{grid-template-columns:repeat(2,minmax(0,1fr))}
.insight.insight--n1,.insight.insight--n0{grid-template-columns:minmax(0,1fr)}
.insight .mo-rise:nth-child(2){animation-delay:.08s}
.tmr__top{display:flex;align-items:center;justify-content:space-between;gap:12px}
.tmr__num{display:flex;align-items:baseline;gap:8px;margin-top:12px}
.tmr__desc{margin-top:8px}
.kv + .kv{margin-top:8px}
.acc td,.acc thead th + th{width:88px}
.adbox{display:flex;align-items:center;justify-content:center}

/* 모션 — 로드 때 1회. 도구 화면이라 스크롤 연동은 쓰지 않는다(데이터가 덜 그려진 채 멈추지 않게) */
.hero__verdict{animation-delay:.08s}
.hero__badge{animation-delay:.16s}
.hero__meta{animation-delay:.24s}
.prices > :nth-child(1){animation-delay:.2s}
.prices > :nth-child(2){animation-delay:.28s}
.prices > :nth-child(3){animation-delay:.36s}
.prices > :nth-child(4){animation-delay:.44s}
.chart{animation-delay:.5s}
.chart .ch-a{animation-delay:.8s}
.chart .ch-f{animation-delay:1.5s}
.chart .ch-late{animation-delay:2s}
.day:nth-child(2){animation-delay:.6s}
.day:nth-child(3){animation-delay:.66s}
.day:nth-child(4){animation-delay:.72s}
.day:nth-child(5){animation-delay:.78s}
.day:nth-child(6){animation-delay:.84s}
.day:nth-child(7){animation-delay:.9s}
.day:nth-child(8){animation-delay:.96s}

@media (max-width:1199px){
  .fc{grid-template-columns:minmax(0,1fr)}
  /* 내일·정확도 카드는 1200px 부터 세 칸(그 아래에서는 카드가 좁아 행이 두 줄로 접힌다) */
  .insight{grid-template-columns:repeat(2,minmax(0,1fr))}
  .adbox{grid-column:1 / -1}
}
@media (max-width:1023px){
  .hero__in{grid-template-columns:minmax(0,1fr) 300px;gap:24px}
  .prices{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:767px){
  .hero{padding:12px 0 64px}
  .hero__in{display:flex;flex-direction:column;align-items:center;gap:0;text-align:center}
  .hero__copy{display:contents}
  .hero__ctrl{order:1;align-self:stretch;flex-direction:column;gap:8px}
  .hero__ctrl .select{justify-content:space-between}
  .hero__ctrl .seg a{flex:1;padding:0 8px}
  .hero__label{order:2;margin-top:24px}
  .hero__gauge{order:3;width:100%;margin-top:8px}
  .hero__gauge .g{max-width:256px}
  .hero__ends{max-width:240px}
  .hero__verdict{order:4;margin-top:12px}
  .hero__badge{order:5;margin-top:12px}
  .hero__meta{order:6}
  .insight,.insight.insight--n2{grid-template-columns:minmax(0,1fr)}
  .btn--icon{width:48px;height:48px}
}
@media (max-width:359px){
  /* 아주 좁은 화면(폴드 커버 등): 가격 카드를 한 열로 — 숫자가 중간에서 끊기지 않게 */
  .prices{grid-template-columns:minmax(0,1fr)}
}
