/* 솔루션 상세 페이지 (일보노트, 보청기노트) — home.css 위에 얹어 쓴다 */

/* ---------- 제품 하위 메뉴 ---------- */
.subnav {
  position: relative; height: 52px;
  background: rgba(247, 245, 242, .8);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0,0,0,.08);
}
.subnav__inner { max-width: var(--wrap); height: 100%; margin: 0 auto; padding: 0 28px; display: flex; align-items: center; gap: 28px; }
.subnav__name { font-size: 20px; font-weight: 700; letter-spacing: -0.03em; margin-right: auto; }
.subnav a:not(.btn) { font-size: 13px; color: var(--mid); transition: color .2s; }
.subnav a:not(.btn):hover, .subnav a.is-on { color: var(--ink); }
.subnav .btn { height: 30px; padding: 0 14px; font-size: 12px; background: var(--rose); }
.subnav .btn:hover { background: #8E6252; box-shadow: none; }
.page-top { position: sticky; top: 0; z-index: 40; padding-top: 60px; pointer-events: none; }
.page-top .subnav { pointer-events: auto; }

/* ---------- 히어로 ---------- */
.s-hero { padding: 120px 0 0; text-align: center; background: var(--paper); overflow: hidden; }
.s-hero__title { font-size: clamp(44px, 7.4vw, 96px); font-weight: 800; line-height: 1.06; letter-spacing: -0.05em; color: var(--ink); }
.s-hero__sub { margin: 28px auto 0; max-width: 700px; font-size: clamp(18px, 1.9vw, 23px); color: var(--mid); line-height: 1.55; }
.s-hero__note { margin-top: 22px; font-size: 14px; color: var(--soft); }
.s-hero__visual { position: relative; max-width: 1040px; margin: 80px auto 0; padding: 0 28px; }
.s-hero__visual .laptop { margin-top: 0; }

.app__body--2 { grid-template-columns: 120px minmax(0, 1fr); }
.app__body--3 { grid-template-columns: 120px minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 1024px) {
  .app__body--2 { grid-template-columns: minmax(0, 1fr); }
  .app__body--3 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

/* ---------- 휴대폰 ---------- */
.phone { position: relative; width: 250px; aspect-ratio: 9 / 19; padding: 10px; border-radius: 44px; background: #1d1d1f; box-shadow: inset 0 0 0 2px #3a3a3c, 0 40px 80px rgba(17,17,17,.25); }
.phone::before { content: ""; position: absolute; top: 18px; left: 50%; width: 30%; height: 22px; transform: translateX(-50%); border-radius: 20px; background: #000; z-index: 2; }
.phone__screen { height: 100%; border-radius: 34px; overflow: hidden; background: #F6F6F8; padding: 52px 14px 14px; font-size: 11px; text-align: left; }
.phone__title { font-size: 17px; font-weight: 700; letter-spacing: -0.03em; margin-bottom: 4px; }
.phone__meta { color: var(--mid); font-size: 10px; margin-bottom: 14px; }
.phone__card { background: #fff; border-radius: 14px; padding: 12px 14px; margin-bottom: 8px; }
.phone__card b { display: block; font-size: 20px; letter-spacing: -0.03em; }
.phone__card span { color: var(--mid); font-size: 10px; }
.phone__row { display: flex; justify-content: space-between; padding: 9px 2px; border-bottom: 1px solid #ececf0; }
.phone__row em { font-style: normal; color: var(--rose); font-weight: 600; }
.phone__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.s-hero__visual .phone { position: absolute; left: 4%; bottom: -40px; width: 200px; z-index: 3; }

/* ---------- 흐름 4칸 ---------- */
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 72px; counter-reset: flow; }
.flow__item { position: relative; padding: 36px 30px 38px; border-radius: 26px; background: var(--paper); }
.flow__item::before { counter-increment: flow; content: "0" counter(flow); display: block; font-size: 14px; font-weight: 600; color: var(--rose); margin-bottom: 28px; }
.flow__item:not(:last-child)::after { content: "→"; position: absolute; right: -16px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; line-height: 32px; text-align: center; border-radius: 50%; background: var(--white); color: var(--rose); font-size: 14px; z-index: 1; }
.flow__item h3 { font-size: 28px; font-weight: 700; letter-spacing: -0.04em; margin-bottom: 10px; }
.flow__item p { color: var(--mid); font-size: 15px; }

/* ---------- 좌우 분할 ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 72px; align-items: center; }
.split--rev .split__text { order: 2; }
.split .h2 { font-size: clamp(34px, 4.4vw, 56px); }
.points { margin-top: 40px; display: grid; gap: 22px; }
.points li { padding-left: 20px; border-left: 2px solid var(--rose); }
.points b { display: block; font-size: 18px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 2px; }
.points span { color: var(--mid); font-size: 15px; }
.section--ink .points span { color: var(--soft); }
.split__visual { display: flex; justify-content: center; min-width: 0; }
.split__visual .sheet { transform: none; border-radius: 18px; max-width: 520px; }
.sheet.is-anim .sheet__row.is-edit { background: transparent; }
.reveal.is-in .sheet.is-anim .sheet__row.is-edit { background: #F6EEEA; transition-delay: 1s; }

/* ---------- 서류 묶음 ---------- */
.docs { position: relative; width: 100%; max-width: 480px; height: 420px; }
.doc { position: absolute; width: 62%; aspect-ratio: 1 / 1.35; padding: 22px 20px; border-radius: 12px; background: #fff; box-shadow: 0 24px 60px rgba(17,17,17,.12); font-size: 12px; transition: transform 1.2s var(--ease); }
.doc b { display: block; font-size: 14px; margin-bottom: 14px; }
.doc i { display: block; height: 7px; border-radius: 4px; background: #efebe6; margin-bottom: 9px; }
.doc i:nth-child(odd) { width: 80%; }
.doc em { position: absolute; left: 20px; bottom: 18px; font-style: normal; font-size: 10px; color: var(--rose); font-weight: 600; }
.doc:nth-child(1) { left: 0; top: 40px; transform: rotate(-6deg); }
.doc:nth-child(2) { left: 9%; top: 26px; transform: rotate(-3deg); }
.doc:nth-child(3) { left: 18%; top: 14px; transform: rotate(0); }
.doc:nth-child(4) { left: 27%; top: 6px; transform: rotate(3deg); }
.doc:nth-child(5) { left: 36%; top: 0; transform: rotate(6deg); }
.docs:not(.is-in) .doc { transform: translateY(40px) rotate(0); }
.docs__badge { position: absolute; right: 0; bottom: 0; z-index: 2; padding: 14px 18px; border-radius: 16px; background: var(--ink); color: #fff; font-size: 13px; box-shadow: 0 20px 40px rgba(0,0,0,.2); }
.docs__badge strong { display: block; font-size: 22px; color: var(--rose-light); letter-spacing: -0.03em; }

/* ---------- AI 카드 ---------- */
.ai-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 64px; }
.ai-card { padding: 44px 40px; border-radius: 28px; background: #1c1c1e; border: 1px solid #2c2c2e; }
.ai-card__tag { display: inline-block; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; color: var(--rose-light); margin-bottom: 26px; }
.ai-card h3 { font-size: 26px; font-weight: 700; letter-spacing: -0.03em; margin-bottom: 10px; color: #f5f5f7; }
.ai-card p { color: var(--soft); }
.ai-card .prompt { margin-top: 28px; padding: 14px 16px; border-radius: 14px; background: #2c2c2e; font-size: 14px; color: #e8e8ed; }
.ai-card .prompt::before { content: "› "; color: var(--rose-light); }

/* ---------- 모바일 ---------- */
.devices { position: relative; max-width: 920px; height: 560px; margin: 72px auto 0; }
.devices__lap { position: absolute; left: 50%; top: 0; width: 78%; transform: translateX(-50%); }
.devices__lap .laptop { margin: 0; max-width: none; }
.devices__tab { position: absolute; left: 2%; bottom: 0; z-index: 2; width: 340px; aspect-ratio: 4 / 3; padding: 12px; border-radius: 24px; background: #1d1d1f; box-shadow: inset 0 0 0 2px #3a3a3c, 0 30px 70px rgba(17,17,17,.22); }
.devices__tab .screen { height: 100%; display: grid; grid-template-columns: 1.15fr .85fr; gap: 10px; align-items: center; border-radius: 14px; overflow: hidden; background: #f6f6f8; padding: 16px; text-align: left; }
.devices__tab .phone__card { margin-bottom: 0; }
.devices__tab .phone__title { margin-bottom: 2px; }
.devices .phone { position: absolute; right: 4%; bottom: -20px; z-index: 3; width: 190px; }
.phones { display: flex; justify-content: center; gap: 36px; margin-top: 72px; }
.phones .phone:nth-child(2) { margin-top: 60px; }
.store { display: flex; gap: 12px; justify-content: center; margin-top: 40px; }
.store a { display: inline-flex; align-items: center; height: 46px; padding: 0 20px; border-radius: 12px; background: var(--ink); color: #fff; font-size: 14px; font-weight: 600; }

/* ---------- 독립형 서비스 ---------- */
.iso { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 72px 0 0; }
.iso__box { position: relative; padding: 26px 24px; border-radius: 22px; border: 1px solid #2c2c2e; background: #1a1a1c; opacity: 0; transform: translateY(20px) scale(.98); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.iso.is-in .iso__box { opacity: 1; transform: none; }
.iso.is-in .iso__box:nth-child(2) { transition-delay: .1s; } .iso.is-in .iso__box:nth-child(3) { transition-delay: .2s; }
.iso.is-in .iso__box:nth-child(4) { transition-delay: .3s; } .iso.is-in .iso__box:nth-child(5) { transition-delay: .4s; }
.iso.is-in .iso__box:nth-child(6) { transition-delay: .5s; }
.iso__box b { display: block; font-size: 16px; color: #f5f5f7; margin-bottom: 14px; }
.iso__box code { display: block; font-family: var(--mono); font-size: 11px; color: var(--soft); line-height: 1.9; }
.iso__box code span { color: var(--rose-light); }
.iso__lock { position: absolute; right: 22px; top: 24px; width: 18px; height: 14px; border-radius: 3px; background: var(--rose-grad); }
.iso__lock::before { content: ""; position: absolute; left: 3px; top: -9px; width: 12px; height: 12px; border: 2px solid var(--rose); border-bottom: 0; border-radius: 8px 8px 0 0; box-sizing: border-box; }
.iso-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 72px; }
.iso-points--4 { grid-template-columns: repeat(4, 1fr); gap: 32px; }
.iso-points div { padding-top: 22px; border-top: 1px solid #3a3a3c; }
.iso-points b { display: block; font-size: 19px; color: #f5f5f7; margin-bottom: 8px; }
.iso-points span { color: var(--soft); font-size: 15px; }
.iso-close { margin-top: 64px; padding: 26px 30px; border-radius: 20px; background: #1c1c1e; color: #e8e8ed; font-size: 18px; text-align: center; }
.iso-close a { color: var(--rose-light); font-weight: 600; margin-left: 8px; }

/* ---------- 이런 분께 ---------- */
.fit { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 64px; }
.fit li { padding: 34px 30px; border-radius: 24px; background: var(--white); font-size: 19px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.45; }
.fit li::before { content: ""; display: block; width: 28px; height: 28px; margin-bottom: 22px; border-radius: 50%; background: var(--rose) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 14px no-repeat; }
.fit-note { margin-top: 36px; color: var(--mid); text-align: center; }

/* ---------- 요금 ---------- */
.price { max-width: 760px; margin: 64px auto 0; display: grid; grid-template-columns: 1fr 1fr; border-radius: 30px; background: var(--paper); overflow: hidden; }
.price div { padding: 52px 40px; text-align: center; }
.price div + div { border-left: 1px solid var(--line); }
.price span { display: block; font-size: 15px; color: var(--mid); margin-bottom: 10px; }
.price b { font-size: clamp(40px, 5vw, 60px); font-weight: 800; letter-spacing: -0.05em; }
.price small { font-size: 20px; font-weight: 600; margin-left: 4px; }
.price-note { margin-top: 24px; text-align: center; color: var(--mid); font-size: 15px; }

/* ---------- FAQ · 상세 기능 (펼치기) ---------- */
.acc { max-width: 880px; margin: 56px auto 0; border-top: 1px solid var(--line); }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 26px 4px; font-size: 19px; font-weight: 600; letter-spacing: -0.02em; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "+"; flex-shrink: 0; font-size: 26px; font-weight: 300; color: var(--rose); transition: transform .3s var(--ease); }
.acc details[open] summary::after { transform: rotate(45deg); }
.acc .acc__body { padding: 0 4px 28px; color: var(--mid); line-height: 1.7; }
.spec { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 28px; }
.spec li { position: relative; padding-left: 14px; }
.spec li span { display: block; margin-top: 2px; color: var(--mid); font-size: 13px; }
.spec li::before { content: ""; position: absolute; left: 0; top: .7em; width: 5px; height: 5px; border-radius: 50%; background: var(--rose); }

/* ---------- 업데이트 3건 ---------- */
.news--compact { margin-top: 48px; }

/* ---------- 보청기노트 전용 ---------- */
.customer { width: 100%; max-width: 560px; border-radius: 22px; background: #fff; box-shadow: 0 30px 80px rgba(17,17,17,.12); padding: 22px; font-size: 13px; }
.hncard__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.hncard__top a { font-size: 12px; color: var(--mid); }
.hncard__name { font-size: 28px; font-weight: 800; letter-spacing: -0.04em; }
.hncard__name em { margin-left: 8px; padding: 3px 10px; border-radius: 99px; background: #f1f1f4; color: var(--mid); font-style: normal; font-size: 13px; font-weight: 600; vertical-align: 4px; }
.hncard__meta { display: grid; gap: 8px; margin: 16px 0; padding-bottom: 14px; border-bottom: 1px solid #f0ece8; }
.hncard__meta div { display: flex; gap: 16px; }
.hncard__meta span { width: 48px; color: var(--mid); }
.hnband--card { margin: 4px 0 10px; border-radius: 12px; }
.hngrid--card { margin: 0; }
.hngrid--card div { background: #f7f6f8; }
.customer__head { display: flex; align-items: center; gap: 14px; padding-bottom: 18px; border-bottom: 1px solid #f0ece8; }
.customer__avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--rose-grad); color: #fff; display: grid; place-items: center; font-weight: 700; }
.customer__head b { font-size: 18px; display: block; }
.customer__head span { color: var(--mid); font-size: 12px; }
.customer__save { margin-left: auto; font-size: 11px; color: #5c7a62; background: #EEF1EE; padding: 4px 10px; border-radius: 99px; opacity: 0; transition: opacity .6s 1.4s; }
.reveal.is-in .customer__save { opacity: 1; }
.customer__tabs { display: flex; gap: 6px; margin: 16px 0; flex-wrap: wrap; }
.customer__tabs span { padding: 6px 12px; border-radius: 99px; background: #f4f1ee; color: var(--mid); font-size: 12px; }
.customer__tabs .is-on { background: var(--ink); color: #fff; }
.customer__rows div { display: flex; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid #f4f1ee; }
.customer__rows span { color: var(--mid); }
.ag-big { max-width: 640px; margin: 64px auto 0; }
.ag-big .sheet { width: auto; max-width: none; transform: none; border-radius: 22px; padding: 26px 28px 22px; }
.reveal.is-in .ag-line--r { stroke-dashoffset: 0; transition-delay: .4s; }
.reveal.is-in .ag-line--l { opacity: 1; }
.reveal.is-in .ag-r circle { opacity: 1; }
.grid4 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 64px; }
.grid4 article { padding: 44px 40px; border-radius: 28px; background: var(--paper); min-height: 240px; }
.grid4 .ic { width: 44px; height: 44px; border-radius: 14px; background: var(--white); display: grid; place-items: center; margin-bottom: 28px; color: var(--rose); font-size: 20px; }
.grid4 h3 { font-size: 26px; font-weight: 700; letter-spacing: -0.03em; margin-bottom: 8px; }
.grid4 p { color: var(--mid); }
.noti-stage { width: 260px; max-width: 100%; min-width: 0; flex: 0 0 auto; aspect-ratio: 9 / 19; border-radius: 36px; overflow: hidden; box-shadow: 0 40px 100px rgba(168,119,100,.2); background: #fff; }
.noti-stage .noti { transform: none; width: 100%; height: 100%; min-width: 0; border-left: 0; }
.noti-stage .noti__log { min-width: 0; overflow-x: hidden; overflow-y: auto; }
.noti-stage .msg { max-width: 88%; min-width: 0; font-size: 13px; overflow-wrap: break-word; word-break: keep-all; }
.skins { display: flex; gap: 12px; margin-top: 18px; }
.skins i { width: 28px; height: 28px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.zoom { display: flex; gap: 6px; margin-top: 18px; font-family: var(--mono); font-size: 12px; }
.zoom span { padding: 6px 10px; border-radius: 8px; background: var(--white); color: var(--mid); }
.zoom .is-on { background: var(--ink); color: #fff; }
.settings { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 64px; }
.settings article { padding: 40px 34px; border-radius: 26px; background: var(--white); }
.settings h3 { font-size: 22px; font-weight: 700; letter-spacing: -0.03em; margin-bottom: 8px; }
.settings p { color: var(--mid); font-size: 15px; }
.beta-note { display: inline-block; margin-top: 28px; padding: 10px 16px; border-radius: 99px; background: #F3ECE8; color: var(--rose); font-size: 14px; font-weight: 600; }

/* ---------- 반응형 ---------- */
@media (max-width: 860px) {
  .subnav a:not(.btn):not(.subnav__name) { display: none; }
  .s-hero { padding-top: 88px; }
  .s-hero__visual .phone { width: 130px; left: 2%; bottom: -24px; }
  .flow { grid-template-columns: 1fr 1fr; }
  .flow__item::after { display: none; }
  .split { grid-template-columns: 1fr; gap: 48px; }
  .split--rev .split__text { order: 0; }
  .ai-cards, .fit, .settings, .grid4 { grid-template-columns: 1fr; }
  .iso { grid-template-columns: 1fr 1fr; }
  .iso-points, .iso-points--4 { grid-template-columns: 1fr; gap: 24px; }
  .devices { height: auto; display: flex; flex-direction: column; align-items: center; gap: 28px; }
  .devices__lap, .devices__tab, .devices .phone { position: relative; left: auto; right: auto; bottom: auto; width: min(100%, 420px); transform: none; }
  .devices .phone { width: 200px; }
  .phones .phone { width: 160px; }
  .phones .phone:nth-child(2) { margin-top: 36px; }
  .price { grid-template-columns: 1fr; }
  .price div + div { border-left: 0; border-top: 1px solid var(--line); }
  .spec { grid-template-columns: 1fr; }
  .docs { height: 340px; }
}
