/* 1면(메인) 전용 — src/pages/index.astro
   색: 글자·선은 검정·회색, 포인트는 파란 그라데이션(버튼·도넛), 무지개 흐름은 아이콘 줄 한 곳에만 */
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.hm-hero,.hm-sec,.hm-icons{--hb:#15181E;--hg:linear-gradient(110deg,#0866F9 0%,#0A78F5 40%,#2AA2F0 72%,#A8E0FA 100%);color:#15181E;word-break:keep-all}
.hm-btn{display:inline-flex;align-items:center;justify-content:center;min-height:52px;padding:0 24px;border-radius:999px;background:var(--hg);color:#fff!important;font-size:17px;font-weight:800;text-decoration:none;border:0}
.hm-btn:hover{filter:brightness(1.05)}
.hm-btn--dark{background:#15181E}
.hm-h2{margin:0;font-size:32px;line-height:1.3;font-weight:800;letter-spacing:-.8px}
.hm-h2--sm{font-size:28px;letter-spacing:-.6px}
.hm-h2--icon{display:flex;align-items:center;gap:10px}
.hm-eyebrow{font-size:16px;font-weight:700;color:#5B6270}
.hm-eyebrow--mint{color:#77FBAF}
.hm-eyebrow--blue{color:#0866F9}
.hm-sec{padding:96px 0}
.hm-sec--line{border-top:1px solid #EEF0F3}
.hm-sec-in{display:flex;flex-direction:column;gap:40px}

/* 히어로 */
.hm-hero{padding:72px 0 56px;background:radial-gradient(55% 85% at 6% 0%,rgba(8,102,249,.10),rgba(8,102,249,0) 62%),radial-gradient(45% 80% at 100% 8%,rgba(86,224,253,.13),rgba(86,224,253,0) 62%),radial-gradient(55% 85% at 100% 100%,rgba(140,108,245,.16),rgba(140,108,245,0) 64%),#FAFAFE}
.hm-hero-in{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,4fr);gap:64px;align-items:center}
.hm-hero-copy{display:flex;flex-direction:column;gap:28px;min-width:0}
.hm-hero h1{margin:0;font-size:66px;line-height:1.22;font-weight:700;letter-spacing:-2.1px;white-space:nowrap}
.hm-uline{background-image:linear-gradient(90deg,#CBFC7F 0%,#77FBAF 33%,#56E0FD 66%,#4A76F1 100%);background-repeat:no-repeat;background-size:100% 12px;background-position:0 88%}
.hm-search{position:relative}
.hm-input{display:flex;align-items:center;gap:10px;min-height:64px;padding:0 6px 0 22px;border:1px solid #D5D9DF;border-radius:999px;background:#fff;box-sizing:border-box}
.hm-input:focus-within{border:2px solid #0866F9;padding-left:21px}
.hm-input input{flex:1 1 auto;min-width:0;border:0;outline:0;font:inherit;font-size:18px;color:#15181E;background:transparent;height:52px}
.hm-input input::-webkit-search-cancel-button{display:none}
.hm-picked-cat{flex:none;font-size:15px;color:#5B6270}
.hm-clear{flex:none;width:32px;height:32px;border:0;border-radius:50%;background:#EEF0F3;color:#5B6270;cursor:pointer;font-size:14px}
.hm-go{flex:none;min-height:52px;padding:0 24px;border:0;border-radius:999px;background:var(--hg);color:#fff;font:inherit;font-size:17px;font-weight:800;cursor:pointer}
.hm-list{position:absolute;z-index:20;left:0;right:0;top:calc(100% + 8px);margin:0;padding:8px;list-style:none;background:#fff;border:1px solid #E1E4E8;border-radius:20px;box-shadow:0 12px 32px rgba(21,24,30,.08)}
.hm-list button{display:flex;flex-direction:column;gap:2px;width:100%;text-align:left;font:inherit;padding:12px 14px;border:0;border-radius:12px;background:transparent;cursor:pointer;color:#15181E}
.hm-list button:hover,.hm-list button:focus-visible{background:#F4F8FF}
.hm-list b{font-size:17px}
.hm-list span{font-size:15px;color:#5B6270}
.hm-msg{margin:10px 0 0;font-size:15px;color:#5B6270}
.hm-chips{display:flex;flex-direction:column;gap:8px;overflow-x:auto}
.hm-chiprow{display:flex;flex-wrap:nowrap;gap:8px}
.hm-chiprow span{flex:none;display:inline-flex;align-items:center;min-height:42px;padding:0 16px;border-radius:999px;background:#fff;border:1px solid #E1E4E8;font-size:15.5px;font-weight:600;color:#3A4250;white-space:nowrap;box-sizing:border-box}

/* 오늘의 플레이스 소식 — 같은 자리에서 서서히 바뀌어요 */
.hm-news{width:100%;max-width:420px;justify-self:end;box-sizing:border-box;border-radius:24px;padding:24px 24px 0;display:flex;flex-direction:column;gap:16px;background:#15181E;color:#fff;overflow:hidden}
.hm-news-hd{display:flex;align-items:center;justify-content:space-between}
.hm-news-hd>span{display:flex;align-items:center;gap:10px}
.hm-news-hd i{width:8px;height:8px;border-radius:50%;background:#77FBAF}
.hm-news-hd b{font-size:20px;font-weight:800}
.hm-news-hd a{width:40px;height:40px;display:inline-flex;align-items:center;justify-content:center;color:rgba(255,255,255,.6)}
.hm-news-stage{position:relative;aspect-ratio:4/5}
.hm-nc{position:absolute;inset:0;box-sizing:border-box;display:flex;flex-direction:column;gap:14px;padding:24px;border-radius:18px;color:#fff!important;text-decoration:none;opacity:0;transform:translateY(8px);pointer-events:none;transition:opacity 1.8s ease,transform 2.4s cubic-bezier(.3,0,.2,1)}
.hm-nc.on{opacity:1;transform:none;pointer-events:auto}
.hm-nc-meta{display:flex;align-items:center;gap:8px;font-size:15px;color:rgba(255,255,255,.78)}
.hm-nc-meta span{font-weight:800;color:#15181E;background:#77FBAF;border-radius:999px;padding:3px 10px}
.hm-nc-t{font-size:32px;line-height:1.28;font-weight:800;letter-spacing:-1.1px;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}
.hm-nc-s{font-size:18px;line-height:1.55;color:rgba(255,255,255,.78);display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.hm-nc-ill{margin-top:auto;height:78px;border-radius:18px;background:linear-gradient(150deg,rgba(119,251,175,.20),rgba(86,224,253,.10));display:flex;align-items:center;justify-content:center}
.hm-news-peek{position:relative;height:46px;overflow:hidden}
.hm-news-peek span{position:absolute;left:0;right:0;top:0;height:60px;box-sizing:border-box;padding:14px 24px 0;border-radius:18px 18px 0 0;font-size:15px;font-weight:700;color:rgba(255,255,255,.5);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;opacity:0;transition:opacity 1.8s ease}
.hm-news-peek span.on{opacity:1}

/* 아이콘 줄 */
.hm-icons{padding-top:24px;padding-bottom:64px}
.hm-icons ul{margin:0;padding:0;list-style:none;display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:8px}
.hm-icons li{display:flex;justify-content:center}
.hm-ico{position:relative;display:flex;flex-direction:column;align-items:center;gap:8px;width:100%;padding-top:26px;text-decoration:none;color:#15181E!important}
.hm-ico em{position:absolute;top:0;left:50%;transform:translateX(-50%);font-style:normal;font-size:13px;font-weight:800;line-height:1;background:#fff;border:1px solid;border-radius:999px;padding:4px 9px;white-space:nowrap}
.hm-ico-tile{width:80px;height:80px;display:inline-flex;align-items:center;justify-content:center;transition:transform .2s ease}
a.hm-ico:hover .hm-ico-tile{transform:translateY(-3px)}
.hm-ico-name{font-size:16px;font-weight:700;text-align:center;line-height:1.35}
.hm-ico small{font-size:13px;color:#9AA1AC;margin-top:-4px}
.hm-ico.soon .hm-ico-tile{opacity:.55}

/* 플레이스 노트 */
.hm-posts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:48px 32px}
.hm-post{display:flex;flex-direction:column;gap:10px;text-decoration:none;color:#15181E!important}
.hm-post img,.hm-post-empty{width:100%;height:auto;aspect-ratio:800/500;object-fit:cover;border-radius:14px;display:block;margin-bottom:4px;background:#F3F4F6}
.hm-post-cat{font-size:15px;font-weight:600;color:#8A919C}
.hm-post-t{font-size:17px;line-height:1.5;font-weight:800;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.hm-post:hover .hm-post-t{text-decoration:underline}
.hm-more{align-self:center;display:inline-flex;align-items:center;min-height:50px;padding:0 26px;border-radius:999px;border:1px solid #D5D9DF;color:#15181E!important;font-size:16px;font-weight:700;text-decoration:none}

/* 네 가지 점수 — 도넛 */
.hm-head{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:16px}
.hm-head>div{display:flex;flex-direction:column;gap:8px}
.hm-head p{margin:0;font-size:18px;line-height:1.6;color:#3A4250}
.hm-head .hm-h2{font-size:36px}
.hm-donuts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:32px;padding-top:12px}
.hm-donut{display:flex;flex-direction:column;align-items:center;gap:14px;text-align:center;text-decoration:none;color:#15181E!important}
.hm-ring{position:relative;width:168px;height:168px;display:block}
.hm-ring svg{transform:rotate(-90deg)}
.hm-ring>span{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px}
.hm-ring b{font-size:24px;font-weight:800;letter-spacing:-.4px}
.hm-ring small{font-size:15px;font-weight:700;color:#0866F9}
@keyframes hmRing{from{stroke-dasharray:0 100}}
.hm-ring-fill{animation:hmRing 1.8s cubic-bezier(.3,0,.2,1) both}
.hm-donut-d{font-size:16px;line-height:1.55;color:#3A4250;max-width:15em}
.hm-donut-l{font-size:15px;font-weight:700;color:#0866F9}
.hm-donut:hover .hm-donut-l{text-decoration:underline}

/* 플레이스 케어 — 곤색 + 흘러가는 업무 일지 */
.hm-care{background:linear-gradient(160deg,#22386A 0%,#1A2C55 100%);color:#fff}
.hm-care-in{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:48px;align-items:center}
.hm-care-copy{display:flex;flex-direction:column;gap:18px;align-items:flex-start}
.hm-care-copy .hm-h2{font-size:36px;color:#fff}
.hm-care-copy p{margin:0;font-size:18px;line-height:1.65;color:rgba(255,255,255,.8)}
.hm-log{display:flex;flex-direction:column;gap:14px;min-width:0}
.hm-log-hd{display:flex;align-items:center;justify-content:space-between;gap:12px}
.hm-log-hd b{font-size:18px}
.hm-log-hd span{font-size:15px;color:rgba(255,255,255,.65)}
.hm-log-view{overflow:hidden}
.hm-log-track{display:flex;gap:16px;width:max-content;padding:4px 0;animation:hmLog 48s linear infinite}
.hm-log:hover .hm-log-track{animation-play-state:paused}
@keyframes hmLog{from{transform:translateX(0)}to{transform:translateX(calc(-50% - 8px))}}
.hm-log-card{flex:none;width:260px;box-sizing:border-box;display:flex;flex-direction:column;gap:12px;padding:18px;border-radius:18px;background:#fff;color:#15181E}
.hm-log-card b{font-size:17px;line-height:1.45}
.hm-log-meta{display:flex;align-items:center;justify-content:space-between;font-size:14.5px}
.hm-log-meta span:first-child{font-weight:800;color:#0866F9;background:#EEF4FF;border-radius:999px;padding:3px 10px}
.hm-log-meta span:last-child{color:#8A919C;font-variant-numeric:tabular-nums}
.hm-log-proof{height:92px;border-radius:12px;background:#F3F4F6;border:1px dashed #D5D9DF;display:flex;align-items:center;justify-content:center;font-size:14px;color:#8A919C}
.hm-log-link{font-size:15px;font-weight:700;color:#0866F9}

/* 내 매장 관리 · 무료 교육 */
.hm-two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
.hm-card{border-radius:20px;padding:32px;display:flex;flex-direction:column;gap:16px;align-items:flex-start}
.hm-card p{margin:0;font-size:17px;line-height:1.6;color:#3A4250}
.hm-card--blue{border:1px solid #CFE0FD;background:linear-gradient(160deg,#F1F6FF 0%,#FFFFFF 70%)}
.hm-card--gray{background:#F3F4F6}
.hm-card .hm-btn{margin-top:auto}
.hm-steps{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:10px;width:100%}
.hm-steps li{display:flex;gap:12px;align-items:flex-start;padding:14px 16px;border-radius:14px;background:#fff;border:1px solid #E6EDF8}
.hm-steps li>b{flex:none;width:26px;height:26px;border-radius:50%;background:#0866F9;color:#fff;font-size:14px;display:inline-flex;align-items:center;justify-content:center}
.hm-steps li>span{display:flex;flex-direction:column;gap:2px;font-size:15px;color:#5B6270}
.hm-steps strong{font-size:16.5px;color:#15181E}
.hm-steps em{font-style:normal;font-size:13.5px;font-weight:800;color:#0866F9;border:1px solid #0866F9;border-radius:999px;padding:1px 8px;margin-left:4px}
.hm-weeks{margin:0;padding:0;list-style:none;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;width:100%}
.hm-weeks li{background:#fff;border-radius:12px;padding:10px 12px;display:flex;flex-direction:column;gap:2px;font-size:15px;line-height:1.4;color:#3A4250}
.hm-weeks b{color:#15181E}
.hm-note{font-size:15px;color:#5B6270}

/* 소개 */
.hm-about{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:24px 40px}
.hm-about-copy{display:flex;align-items:flex-end;gap:20px;flex:1 1 520px}
.hm-about-copy img{width:96px;height:auto;flex:none}
.hm-about-copy>div{display:flex;flex-direction:column;gap:8px}
.hm-about-copy p{margin:0;font-size:17px;line-height:1.7;color:#3A4250}
.hm-about-cta{display:flex;flex-direction:column;gap:8px;padding:22px 24px;border:1px solid #E1E4E8;border-radius:16px;flex:0 1 380px}
.hm-about-cta b{font-size:18px}
.hm-about-cta span{font-size:15.5px;line-height:1.55;color:#3A4250}
.hm-about-cta .hm-btn{margin-top:6px;min-height:50px}

/* 화면 폭별 */
@media (max-width:1100px){
  .hm-hero h1{font-size:52px;white-space:normal}
  .hm-posts{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media (max-width:960px){
  .hm-hero-in,.hm-care-in,.hm-two{grid-template-columns:minmax(0,1fr)}
  .hm-news{justify-self:stretch;max-width:520px;margin:0 auto}
  .hm-icons ul{grid-template-columns:repeat(4,minmax(0,1fr));row-gap:24px}
  .hm-posts{grid-template-columns:repeat(2,minmax(0,1fr));gap:32px 20px}
  .hm-donuts{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:600px){
  .hm-hero{padding:40px 0 40px}
  .hm-hero h1{font-size:38px;letter-spacing:-1.2px}
  .hm-input{min-height:56px;padding-left:16px}
  .hm-input input{font-size:16px}
  .hm-go{padding:0 16px;min-height:46px;font-size:16px}
  .hm-picked-cat{display:none}
  .hm-sec{padding:64px 0}
  .hm-h2,.hm-head .hm-h2,.hm-care-copy .hm-h2{font-size:26px}
  .hm-h2--sm{font-size:24px}
  .hm-nc-t{font-size:26px}
  .hm-nc-s{font-size:16px}
  .hm-posts{grid-template-columns:minmax(0,1fr)}
  .hm-donuts{gap:28px 12px}
  .hm-ring,.hm-ring svg{width:132px;height:132px}
  .hm-ring b{font-size:20px}
  .hm-weeks{grid-template-columns:repeat(2,minmax(0,1fr))}
  .hm-card{padding:24px}
}
@media (prefers-reduced-motion:reduce){
  .hm-log-track,.hm-ring-fill{animation:none}
  .hm-nc,.hm-news-peek span{transition:none}
}

/* 자동화 도구 4개 */
.hm-sec--gray{background:#F5F7F8}
.hm-tools{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}
.hm-tool{display:flex;flex-direction:column;gap:14px;padding:28px 24px;border-radius:20px;background:#fff;text-decoration:none;color:#15181E!important}
.hm-tool-ic{width:60px;height:60px;border-radius:18px;background:linear-gradient(140deg,#EAF2FF 0%,#F4F9FF 100%);display:inline-flex;align-items:center;justify-content:center}
.hm-tool b{font-size:24px;line-height:1.3;font-weight:800;letter-spacing:-.6px}
.hm-tool-d{font-size:16px;line-height:1.55;color:#3A4250}
.hm-tool-l{margin-top:auto;font-size:15px;font-weight:700;color:#0866F9}
.hm-tool:hover .hm-tool-l{text-decoration:underline}

/* 영역별 여백 (1면 시안 기준) */
.hm-sp-notes{padding:48px 0 96px}
.hm-sp-tools{padding:96px 0 136px}
.hm-sp-care{padding:136px 0}
.hm-sp-two{padding:136px 0 56px}
.hm-sp-about{padding:64px 0 96px}
@media (max-width:960px){.hm-tools{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:600px){
  .hm-tools{grid-template-columns:minmax(0,1fr)}
  .hm-tool b{font-size:21px}
  .hm-sp-notes{padding:32px 0 64px}
  .hm-sp-tools,.hm-sp-care{padding:72px 0}
  .hm-sp-two{padding:72px 0 40px}
  .hm-sp-about{padding:48px 0 64px}
}
/* 모바일: 노트 글은 썸네일 왼쪽 + 글 오른쪽 목록으로 */
@media (max-width:600px){
  .hm-posts{gap:16px}
  .hm-post{display:grid;grid-template-columns:116px minmax(0,1fr);column-gap:14px;row-gap:4px;align-items:start}
  .hm-post img,.hm-post-empty{grid-row:1 / span 2;margin:0;border-radius:10px}
  .hm-post-cat{font-size:13.5px}
  .hm-post-t{font-size:16px}
}
