/* 홈(소개) — 데스크톱: 네이비 히어로(앱 화면) → 흰 띠(오늘의 주유 타이밍) → 기능 카드 3장 → 네이비 숫자 띠 → 정확도·앱·광고 → FAQ
   모바일: 앱과 같은 틀 — 네이비 히어로(앱 화면 윗부분) → 둥근 시트 → 카드만 12px 간격 */
.hm-hero{background:radial-gradient(120% 80% at 76% 55%, rgba(22,163,74,0.20), transparent 60%),var(--navy);color:#fff;padding:48px 0 0;overflow:hidden}
.hm-hero__in{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:64px;align-items:end}
.hm-hero__copy{align-self:center;padding-bottom:48px}
.hm-hero__copy > :nth-child(2){animation-delay:.08s}
.hm-hero__copy > :nth-child(3){animation-delay:.16s}
.hm-hero__copy > :nth-child(4){animation-delay:.24s}
.hm-hero__note{margin-top:24px;color:var(--on-navy-3)}
.hm-hero__sub{margin-top:16px;color:var(--on-navy-2)}
.hm-hero__sub span{display:inline-block;white-space:nowrap}
.hm-hero__cta{display:flex;flex-wrap:wrap;gap:12px;margin-top:32px}

/* 폰 화면 — 앱 홈을 원본 수치(oil.css, HomePage.tsx)대로 그려 축소. 장식이라 글자·라운드 검사 제외 */
@keyframes hm-phone-in{
  from{opacity:0;transform:translateY(48px)}
}
@keyframes hm-float{
  50%{transform:translateY(-8px)}
}
.hm-phone{width:340px;height:562px;margin-bottom:-16px;border:10px solid #0C0D18;border-bottom:0;border-radius:44px 44px 0 0;background:var(--navy);overflow:hidden;box-shadow:0 0 0 1px rgba(255,255,255,0.14),0 32px 80px -24px rgba(0,0,0,0.6);animation:hm-phone-in .9s cubic-bezier(.2,.7,.2,1) .1s backwards,hm-float 7s ease-in-out 1.4s infinite}
.ph{width:390px;transform:scale(0.8205);transform-origin:0 0;font-weight:500;color:var(--ink)}
.ph-hero{padding:14px 22px 28px;background:radial-gradient(130% 85% at 72% 35%, rgba(22,163,74,0.20), transparent 58%),var(--navy);color:#fff}
.ph-top{display:flex;align-items:center;justify-content:space-between}
.ph-logo{display:flex;align-items:center;gap:6px;font-size:21px;font-weight:800;letter-spacing:-0.01em}
.ph-region{display:inline-flex;align-items:center;gap:5px;padding:4px 2px;font-size:16px;font-weight:600;color:#EDEEF4}
.ph-col{display:flex;flex-direction:column;align-items:center;margin-top:18px}
.ph-label{font-size:15px;font-weight:600;color:#9EA2BC}
.ph-gauge{width:256px;height:156px;margin-top:8px}
.ph-ends{display:flex;justify-content:space-between;align-items:center;width:236px;margin-top:-8px;font-size:12.5px;font-weight:700}
.ph-ends span{display:inline-flex;align-items:center;gap:4px}
.ph-ends .now{color:#E5484D}
.ph-ends .wait{color:#22C55E}
.ph-concl{margin-top:14px;font-size:32px;line-height:1.2;font-weight:800;letter-spacing:-0.02em;animation-delay:1.1s}
.ph-badge{display:inline-flex;align-items:center;gap:7px;margin-top:12px;padding:9px 18px;border-radius:20px;background:rgba(242,160,40,0.15);border:1px solid rgba(242,160,40,0.32);font-size:15px;font-weight:500;color:#FAD9A0;animation-delay:1.25s}
.ph-badge b{color:#F2A028;font-weight:800}
.ph-badge--none{visibility:hidden}
.ph-sheet{position:relative;display:flex;flex-direction:column;gap:12px;margin-top:-14px;padding:20px 18px 0;background:#F4F5F7;border-radius:28px 28px 0 0}
.ph-prices{display:flex;gap:12px}
.ph-card{flex:1;min-width:0;padding:15px 16px 13px;background:#fff;border-radius:18px;box-shadow:0 2px 10px rgba(20,22,45,0.05);animation-delay:.5s}
.ph-card + .ph-card{animation-delay:.6s}
.ph-card__head{display:flex;align-items:baseline;gap:4px}
.ph-card__head b{font-size:15px;font-weight:700}
.ph-card__head span{font-size:11px;color:#9498A8}
.ph-card__num{display:flex;align-items:baseline;gap:4px;margin-top:6px}
.ph-card__num b{font-size:27px;line-height:1.1;font-weight:800;letter-spacing:-0.01em}
.ph-card__num span{font-size:14px;color:#9498A8}
.ph-chip{display:inline-flex;margin-top:8px;padding:2px 7px;border-radius:6px;background:#EEF0F3;font-size:13px;line-height:1.3;font-weight:700;color:#5B5F73}
.ph-chip--down{background:#E8EFFD;color:#1D4ED8}
.ph-chip--up{background:#FDECEC;color:#C8343A}
.ph-card svg{width:100%;height:24px;margin-top:10px}
.ph-cap{margin-top:5px;font-size:11px;color:#9498A8}
.ph-week{padding:18px 20px;background:#fff;border-radius:20px;box-shadow:0 2px 12px rgba(20,22,45,0.05);animation-delay:.7s}
.ph-week__head{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px;font-size:17px;font-weight:700}
.ph-seg{display:flex;padding:3px;border-radius:9px;background:#F1F3F6}
.ph-seg span{padding:5px 12px;border-radius:7px;font-size:13px;font-weight:600;color:#5B5F73}
.ph-seg .on{background:#fff;color:#16172B;font-weight:700}
.ph-bars{display:flex;align-items:flex-end;gap:6px;height:140px;padding:0 6px}
.ph-bars div{flex:1;white-space:nowrap;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:4px;height:100%;font-size:10px;font-weight:600;color:#9498A8;letter-spacing:-0.03em}
.ph-bars .lo{color:#16A34A;font-weight:700}
.ph-bars i{display:block;width:100%;max-width:24px;border-radius:7px;background:#C7D0DE}
.ph-bars .ph-bar--today{background:#2A2C48}
.ph-bars .ph-bar--low{background:#16A34A}
.ph-bars em{font-style:normal;font-size:12px;font-weight:500;letter-spacing:0}

/* 오늘의 주유 타이밍 — 데스크톱은 흰 띠, 모바일은 흰 카드 */
.hm-live{background:var(--surface);padding:32px 0;border-bottom:1px solid var(--line)}
.hm-live__grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}
.hm-asof{display:inline-flex;align-items:center;gap:8px}
.hm-dot{position:relative;flex:none;width:8px;height:8px;border-radius:50%;background:var(--green)}
.hm-dot::after{content:"";position:absolute;top:0;right:0;bottom:0;left:0;border-radius:50%;background:var(--green);animation:ow-pulse 2.2s ease-out infinite}
.hm-fuel{display:grid;grid-template-columns:minmax(0,1fr) 112px;align-items:end;gap:16px;padding:0 32px;border-left:1px solid var(--line-soft);animation-delay:.3s}
.hm-fuel:nth-child(2){animation-delay:.38s}
.hm-fuel:nth-child(3){animation-delay:.46s}
.hm-fuel:first-child{padding-left:0;border-left:0}
.hm-fuel:last-child{padding-right:0}
.hm-fuel > span{display:block;min-width:0}
.hm-fuel__top{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.hm-fuel__num{display:flex;align-items:baseline;gap:4px;margin-top:8px}
.hm-fuel__num b,.hm-nums__grid .t-display{white-space:nowrap}
.hm-fuel__next{display:block;margin-top:4px}
.hm-fuel svg{width:112px;height:40px}
.hm-fuel .mo-draw{animation-delay:.8s}
.hm-fuel .mo-fade{animation-delay:1.7s}
.hm-more{display:inline-flex;align-items:center;gap:4px;min-height:48px;color:var(--text-2);white-space:nowrap}
.hm-ad{margin-top:12px}

/* 띠 공통 */
.hm-band{padding:64px 0}
.hm-band__head{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:8px 16px;margin-bottom:24px}
.hm-d1{animation-delay:.1s}
.hm-d2{animation-delay:.25s}
.hm-d3{animation-delay:.4s}
.hm-d4{animation-delay:.55s}

/* 기능 카드 3장 — 흰 카드 안에 회색 미리보기 판(실데이터) + 이름 */
.hm-feats{grid-template-columns:repeat(3,minmax(0,1fr))}
.hm-feat{display:flex;flex-direction:column;gap:16px;transition:transform .2s ease,box-shadow .2s ease}
.hm-feat:nth-child(2){animation-delay:.08s}
.hm-feat:nth-child(3){animation-delay:.16s}
.hm-feat__viz{flex:1;display:flex;flex-direction:column;justify-content:center;gap:8px;min-height:216px;padding:16px;border-radius:var(--r-control);background:var(--bg)}
.hm-feat__cap{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:24px;white-space:nowrap}
.hm-feat__viz > svg{width:100%;height:auto;overflow:visible}
.hm-feat__body{display:flex;align-items:center;justify-content:space-between;gap:16px}
.hm-feat__body p{margin-top:4px}
.hm-feat__body > svg,.hm-more svg{transition:transform .2s ease}
@media (hover:hover){
  .hm-feat:hover{transform:translateY(-4px);box-shadow:0 12px 28px rgba(20,22,45,0.10)}
  .hm-feat:hover .hm-feat__body > svg,.hm-more:hover svg{transform:translateX(4px)}
}
.hm-mini{display:grid;grid-template-columns:20px minmax(0,1fr) auto;align-items:center;gap:8px;padding:12px 16px;border-radius:var(--r-control);background:var(--surface)}
.hm-mini--low{background:var(--green-soft)}
.hm-mini__name{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px;min-width:0}
.hm-mini b,.hm-step__val{white-space:nowrap}
.hm-step{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:12px;border-radius:var(--r-control);background:var(--surface)}
.hm-step__btn{display:flex;align-items:center;justify-content:center;flex:none;width:40px;height:40px;border-radius:var(--r-pill);background:var(--bg);color:var(--text-2)}
.hm-step__val{display:flex;align-items:baseline;gap:4px}

/* 네이비 숫자 띠(모바일은 네이비 카드). 숫자 세기는 site.js */
.hm-nums{background:var(--navy);color:#fff;padding:64px 0}
.hm-nums__grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:32px}
.hm-nums__grid p + p{margin-top:4px;color:var(--on-navy-2)}
.hm-nums .hm-more{color:var(--on-navy-2)}

/* 정확도 · 앱 · 광고 (예측 화면 하단 3단과 같은 틀) → FAQ */
.hm-band--last{padding-bottom:0}
.hm-trust{grid-template-columns:repeat(3,minmax(0,1fr))}
.hm-trust > :nth-child(2){animation-delay:.08s}
.hm-trust--n2{grid-template-columns:repeat(2,minmax(0,1fr))}
.hm-trust--n1,.hm-trust--n0{grid-template-columns:minmax(0,1fr)}
.hm-acc td,.hm-acc thead th + th{width:88px}
.hm-adbox{display:flex;align-items:center;justify-content:center}
.hm-app{display:flex;flex-direction:column;justify-content:space-between;gap:16px}
.hm-app .card__head{margin-bottom:0}
.hm-app__cap{color:var(--on-navy-2)}

.hm-app__btns{display:flex;gap:12px}
.hm-app__btns .btn{flex:1;padding:0 12px}
.hm-push{display:grid;grid-template-columns:32px minmax(0,1fr);gap:12px;padding:12px 16px;border-radius:var(--r-control);background:rgba(255,255,255,0.08)}
.hm-push__ico{display:flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:var(--r-control);background:var(--navy);box-shadow:inset 0 0 0 1px rgba(255,255,255,0.16)}
.hm-push__top{display:flex;align-items:baseline;justify-content:space-between;gap:8px}
.hm-push p{margin-top:0;color:var(--on-navy-2)}
.hm-push p span{display:inline-block}   /* 문장 단위로 줄바꿈하되, 한 문장이 길면(보합 문구) 안에서 접힌다 */
.hm-push .hm-push__when{color:var(--on-navy-3);white-space:nowrap}
.hm-faq{grid-column:1 / -1}
.hm-faq__list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:48px}
.hm-faq__list details:first-child{border-top:1px solid var(--line-soft)}
.hm-faq summary h3{margin:0}
.hm-faq__link{color:var(--blue-text);font-weight:700}
.hm-faq__more{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 0;border-top:1px solid var(--line-soft)}

@media (max-width:1199px){
  .hm-fuel{grid-template-columns:minmax(0,1fr)}
  .hm-fuel svg{display:none}
  .hm-trust{grid-template-columns:repeat(2,minmax(0,1fr))}
  .hm-adbox{order:1}
  .hm-faq{grid-column:auto}
  .hm-trust--n2 .hm-faq,.hm-trust--n1 .hm-faq,.hm-trust--n0 .hm-faq{grid-column:1 / -1}
  .hm-faq__list{grid-template-columns:minmax(0,1fr)}
}
@media (max-width:1023px){
  .hm-hero__in{gap:32px}
  .hm-fuel{padding:0 16px}
  .hm-feats{grid-template-columns:repeat(2,minmax(0,1fr))}
  .hm-feat:first-child{grid-column:1 / -1;flex-direction:row;align-items:center;gap:24px}
  .hm-feat:first-child .hm-feat__viz > svg{max-width:360px;margin:0 auto}
  .hm-feat:first-child .hm-feat__body{flex:none;width:240px}
  .hm-nums__grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:767px){
  .hm-hero{padding:32px 0 0}
  .hm-hero__in{grid-template-columns:minmax(0,1fr);gap:32px}
  .hm-hero__copy{padding-bottom:0}
  /* 폰 화면이 없을 때(예측 없음)는 버튼이 아래 시트에 가리지 않게 여백을 둔다 */
  .hm-hero__copy:last-child{padding-bottom:52px}
  /* 소개 문장은 모바일에서 항상 두 줄 — 글꼴이 늦게 바뀌어도 줄 수가 달라지지 않아 아래 화면이 밀리지 않는다 */
  .hm-hero__sub span{display:block}
  .hm-hero__cta .btn{flex:1}
  .hm-phone{justify-self:center;width:300px;height:314px;margin-bottom:0;border-width:8px;border-radius:40px 40px 0 0}
  .ph{transform:scale(0.7282)}
  .ph-sheet{display:none}
  .hm-body{position:relative;display:flex;flex-direction:column;gap:12px;margin-top:-20px;padding-top:20px;background:var(--bg);border-radius:var(--r-card) var(--r-card) 0 0}
  .hm-live{background:none;padding:0;border-bottom:0}
  .hm-live__box{padding:var(--pad-card);border-radius:var(--r-card);background:var(--surface);box-shadow:var(--shadow)}
  .hm-live__grid{grid-template-columns:minmax(0,1fr)}
  .hm-fuel{grid-template-columns:minmax(0,1fr) 96px;padding:16px 0;border-left:0;border-top:1px solid var(--line-soft)}
  .hm-fuel:first-child{padding-top:0;border-top:0}
  .hm-fuel:last-child{padding-bottom:0}
  .hm-fuel svg{display:block;width:96px;height:auto}
  .hm-ad{margin-top:0}
  .hm-band{padding:0}
  .hm-band__head{margin:20px 0 12px}
  .hm-feats{grid-template-columns:minmax(0,1fr)}
  .hm-feat,.hm-feat:first-child{flex-direction:column;align-items:stretch;gap:12px}
  .hm-feat:first-child{grid-column:auto}
  .hm-feat__viz{min-height:0;padding:12px}
  .hm-feat__viz > svg,.hm-feat:first-child .hm-feat__viz > svg{max-width:360px;margin:0 auto}
  .hm-feat:first-child .hm-feat__body{width:auto}
  .hm-nums{margin:0 var(--gutter);padding:var(--pad-card) 0;border-radius:var(--r-card)}
  .hm-nums .ow-container{padding:0 var(--pad-card)}
  .hm-nums .hm-band__head{margin:0 0 12px}
  .hm-nums__grid{gap:20px 16px}
  .hm-trust{grid-template-columns:minmax(0,1fr)}
  .hm-adbox{order:0}
}
@media (max-width:359px){
  /* 아주 좁은 화면: 숫자 띠를 한 열로 — '2008년~' 같은 큰 숫자가 줄바꿈되지 않게 */
  .hm-nums__grid{grid-template-columns:minmax(0,1fr)}
}
