/* ===========================================================================
   AI 전화 페이지 전용 (business/aiphone.html 만 싣는다) — 2026-10-06 리디자인
   - 공통 CSS(style.css · business.css · common-header.css)는 고치지 않고 여기서 덮는다.
   - 토큰·버튼·히어로·체크 박스·영상 틀·폼·고정 상담 버튼은 하이오더·서빙로봇·기가아이즈(highorder.css ·
     robot.css · cctv.css)와 같은 값을 **복사**했다. ⛔ 그 파일들을 불러오지 말 것 — 공통화는 docs/보류항목.md.
   - 본문은 전부 .ap 범위 안이다. 범위 밖에 쓰는 것은 아래 「페이지 전역」 블록뿐이다.
   - 빨강은 사이트 톤 #E60012. 글꼴은 이 페이지가 싣는 static 'Pretendard'.
   =========================================================================== */
.ap {
  --ap-red: #E60012;      --ap-red-hover: #C00010;   --ap-red-on-dark: #FF4D5A;
  --ap-red-tint: #FDE8E9; --ap-red-tint-2: #FFF6F6;
  --ap-ink: #111;         --ap-body: #555;           --ap-body-2: #444;
  --ap-muted: #888;       --ap-faint: #AAA;
  --ap-bg-gray: #F6F6F6;  --ap-chip: #F4F4F4;        --ap-line: #EEE;  --ap-line-2: #E8E8E8;
  --ap-dark: #111;        --ap-dark-card: #1E1E1E;   --ap-dark-line: #333;
  --ap-photo-bg: #F2F3F5;
  font-family: Pretendard, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Malgun Gothic', sans-serif;
  color: var(--ap-ink);
  line-height: 1.6;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
.ap [hidden] { display: none !important; }
.ap img { display: block; max-width: 100%; }
.ap h1, .ap h2 { text-wrap: balance; }
.ap p { text-wrap: pretty; }

/* ---- 공통 틀 ---- */
.ap-wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.ap-sec { padding: 96px 0; }
.ap-sec--gray { background: var(--ap-bg-gray); }
.ap-sec--dark { background: var(--ap-dark); color: #fff; }
.ap-stack { display: flex; flex-direction: column; gap: 48px; }
.ap-head { display: flex; flex-direction: column; gap: 12px; }
.ap-head--center { align-items: center; text-align: center; }
.ap-eyebrow { font-size: 14px; font-weight: 700; color: var(--ap-red); }
.ap-sec--dark .ap-eyebrow { color: var(--ap-red-on-dark); }
.ap-h2 { margin: 0; font-size: clamp(30px, 4vw, 44px); line-height: 1.2; letter-spacing: -.03em; font-weight: 800; }
.ap-h2--sm { font-size: clamp(26px, 3.4vw, 36px); line-height: 1.25; }
.ap-grid { display: grid; gap: 20px; }
.ap-num { font-size: 13px; font-weight: 800; color: var(--ap-red); }
/* 컨테이너 안쪽 회색 박스(②·⑥) */
.ap-box { background: var(--ap-bg-gray); border-radius: 28px; padding: clamp(28px, 5vw, 56px); }

/* ---- 버튼 ---- */
.ap-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 14px 28px; border-radius: 12px; border: 0;
  font-family: inherit; font-size: 16px; font-weight: 700; line-height: 1.3;
  cursor: pointer; text-decoration: none; transition: background-color .15s, color .15s;
}
.ap-btn--red { background: var(--ap-red); color: #fff; }
.ap-btn--red:hover { background: var(--ap-red-hover); color: #fff; }
.ap-btn--gray { background: var(--ap-chip); color: var(--ap-ink); }
.ap-btn--gray:hover { background: #E9E9E9; color: var(--ap-ink); }
.ap-btn:focus-visible { outline: 3px solid var(--ap-ink); outline-offset: 2px; }
.ap-btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* ① 히어로 */
.ap-hero { padding: 72px 0 56px; }
.ap-hero-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 48px; align-items: center; }
.ap-hero-text { display: flex; flex-direction: column; gap: 24px; }
.ap-chip-outline { align-self: flex-start; font-size: 13px; font-weight: 700; color: var(--ap-red); border: 1px solid var(--ap-red); padding: 6px 12px; border-radius: 999px; line-height: 1.3; }
.ap-h1 { margin: 0; font-size: clamp(34px, 6vw, 68px); line-height: 1.08; letter-spacing: -.04em; font-weight: 800; }
.ap-h1 em { color: var(--ap-red); font-style: normal; }
.ap-lead { margin: 0; font-size: 18px; line-height: 1.6; color: var(--ap-body-2); max-width: 440px; }
.ap-hero-media { aspect-ratio: 4 / 3.4; border-radius: 28px; overflow: hidden; background: var(--ap-photo-bg); }
.ap-hero-media img { width: 100%; height: 100%; object-fit: cover; }

/* ② 이런 사장님께 추천해요 — 히어로 바로 아래 회색 박스 */
.ap-rec { padding: 0 0 24px; }
.ap-rec-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 32px 48px; align-items: center; }
.ap-checkbox { background: #fff; border-radius: 14px; padding: 24px 28px; margin: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; }
.ap-checkbox li { position: relative; padding-left: 30px; font-size: 16px; line-height: 1.5; color: var(--ap-body-2); }
.ap-checkbox li::before { content: ''; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%; background: var(--ap-red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.2l2.6 2.6L13 6.4' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat; }

/* ③ 주요 기능 */
.ap-head-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; }
.ap-head-row .ap-head { max-width: 640px; }
.ap-head-sub { margin: 0; font-size: 16px; line-height: 1.6; color: var(--ap-body); max-width: 400px; }
.ap-feat-cards { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); margin: 0; padding: 0; list-style: none; }
.ap-feat { background: #fff; border: 1px solid var(--ap-line-2); border-radius: 20px; padding: 28px; display: flex; flex-direction: column; gap: 8px; }
.ap-feat h3 { margin: 0; font-size: 20px; font-weight: 800; letter-spacing: -.02em; line-height: 1.35; }
.ap-feat p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--ap-body); }

/* ④ 후기(기본 숨김) + 활용 팁 — 어두운 배경 */
.ap-voice-wrap { display: flex; flex-direction: column; gap: 40px; }
.ap-voice-h2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.25; }
.ap-voice-cards { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.ap-voice { background: var(--ap-dark-card); border-radius: 20px; padding: 28px; min-height: 220px; display: flex; flex-direction: column; justify-content: space-between; gap: 20px; margin: 0; }
.ap-voice blockquote { margin: 0; font-size: 21px; font-weight: 700; line-height: 1.45; letter-spacing: -.02em; color: #fff; }
.ap-voice figcaption { font-size: 14px; color: #9A9A9A; }
.ap-tips { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px 32px; margin: 0; padding: 32px 0 0; border-top: 1px solid var(--ap-dark-line); list-style: none; }
.ap-tips-label { font-size: 15px; font-weight: 700; color: var(--ap-red-on-dark); }
.ap-tips li { font-size: 15px; line-height: 1.6; color: #CFCFCF; }
/* 후기가 숨겨진 동안: 팁 줄 위 경계선·여백을 뺀다(섹션에 팁만 남는다) */
.ap-voice-wrap[hidden] + .ap-tips { border-top: 0; padding-top: 0; }
.ap-voice-sec { padding: 72px 0; }

/* ⑤ V링고 */
.ap-vr-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 32px 48px; align-items: center; }
.ap-tint-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ap-tint-chips li { font-size: 14px; font-weight: 700; color: var(--ap-red); background: var(--ap-red-tint); padding: 8px 14px; border-radius: 999px; }
.ap-video-col { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ap-video { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 24px; overflow: hidden; background: #111; }
.ap-video-btn { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: #111; cursor: pointer; display: block; }
/* 썸네일 사진 없음 — 단색 바탕(#111) 위 재생 버튼만 */
.ap-video-play { position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%; background: var(--ap-red); box-shadow: 0 8px 28px rgba(0,0,0,.3); display: flex; align-items: center; justify-content: center; transition: transform .15s, background-color .15s; }
.ap-video-btn:hover .ap-video-play { transform: scale(1.06); background: var(--ap-red-hover); }
.ap-video-btn:focus-visible { outline: 3px solid var(--ap-red); outline-offset: -3px; }
.ap-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ap-video-credit { margin: 0; font-size: 13px; color: var(--ap-muted); text-align: right; }
.ap-price-cards { grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); margin: 0; padding: 0; list-style: none; }
.ap-price { border: 2px solid var(--ap-line-2); border-radius: 20px; padding: 24px; display: flex; flex-direction: column; gap: 6px; background: #fff; }
.ap-price--hl { border-color: var(--ap-red); }
.ap-price-group { font-size: 13px; color: var(--ap-muted); font-weight: 600; }
.ap-price-name { margin: 0; font-size: 19px; font-weight: 800; letter-spacing: -.02em; line-height: 1.3; }
.ap-price-fee { font-size: 15px; color: var(--ap-body-2); }
.ap-price-fee b { font-size: 28px; font-weight: 800; color: var(--ap-red); letter-spacing: -.03em; }
.ap-vat { display: block; font-size: 12px; color: var(--ap-muted); }
.ap-price-desc { margin: 6px 0 0; padding: 12px 0 0; border-top: 1px solid var(--ap-line); font-size: 14px; line-height: 1.55; color: var(--ap-body); }
.ap-note { margin: 0; font-size: 13px; line-height: 1.6; color: var(--ap-muted); }

/* ⑥ 가게정보 알림 메시지 */
.ap-alarm-sec { padding: 0 0 96px; }
.ap-alarm { display: flex; flex-direction: column; gap: 32px; }
.ap-alarm-fee { margin: 0; font-size: 16px; color: var(--ap-body-2); line-height: 1.4; }
.ap-alarm-fee b { font-size: 32px; font-weight: 800; color: var(--ap-ink); letter-spacing: -.03em; }
.ap-alarm-cards { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); margin: 0; padding: 0; list-style: none; }
.ap-alarm-card { background: #fff; border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 6px; }
.ap-alarm-card h3 { margin: 0; font-size: 18px; font-weight: 800; letter-spacing: -.02em; line-height: 1.35; }
.ap-alarm-card p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--ap-body); }
.ap-alarm-notes { display: flex; flex-direction: column; gap: 4px; }

/* ⑦ 상담 신청 — 마크업·name·전송 스크립트는 그대로, 겉모습만 */
.ap-consult { position: relative; }
.ap-anchor { position: absolute; top: 0; left: 0; width: 1px; height: 1px; }
.ap-consult-inner { max-width: 880px; margin: 0 auto; display: flex; flex-direction: column; gap: 32px; }
.ap-consult-inner .ap-head p { margin: 0; font-size: 16px; color: var(--ap-body); }
/* 상담 신청서 — 공통 /css/biz-form.css 로 옮김(2026-10-09 · 8개 페이지 같은 규칙이었다) */
/* 연락 카드 3개 */
.ap-contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 12px; }
.ap-contact-card { background: #fff; border-radius: 20px; padding: 24px; display: flex; flex-direction: column; gap: 6px; color: var(--ap-ink); text-decoration: none; }
a.ap-contact-card:hover { color: var(--ap-ink); box-shadow: 0 8px 24px rgba(0,0,0,.06); }
.ap-contact-label { font-size: 14px; color: #666; font-weight: 600; }
.ap-contact-tel { font-size: 22px; font-weight: 800; color: var(--ap-red); }
.ap-contact-go { font-size: 20px; font-weight: 800; }
.ap-contact-addr { font-size: 15px; font-weight: 700; line-height: 1.5; }

/* ---- 고정 상담: 데스크톱 카드·접힌 버튼·플로팅 버튼 자리는 공통 css/biz-float.css(이 파일 뒤에 싣는다) · 여기는 1024px 미만 하단 바만 ---- */
.ap-mbar { display: none; }
.ap-mbar-spacer { display: none; }

/* ---- 페이지 전역 (이 파일은 이 페이지에만 실린다) ---- */
html { scroll-padding-top: 16px; }

@media (max-width: 767.98px) {
  .ap-sec { padding: 64px 0; }
  .ap-voice-sec { padding: 56px 0; }
  .ap-alarm-sec { padding-bottom: 64px; }
  .ap-wrap { padding: 0 20px; }
  .ap-hero { padding: 40px 0 40px; }
  .ap-hero-grid { gap: 32px; }
  .ap-lead { font-size: 17px; }
  .ap-btns .ap-btn { flex: 1 1 auto; }
  .ap-checkbox { padding: 20px; }
  .ap-checkbox li { font-size: 15px; }
  .ap-feat, .ap-voice, .ap-price, .ap-alarm-card { padding: 24px; }
  .ap-video { border-radius: 20px; }
}
/* 고정 상담 버튼: 1024px 미만(폰·태블릿)은 하단 바 — 하이오더 페이지와 같은 기준(대표 승인 2026-10-06) */
@media (max-width: 1023.98px) {
  .ap-mbar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 890; gap: 8px;
    background: #fff; border-top: 1px solid var(--ap-line); box-shadow: 0 -6px 20px rgba(0,0,0,.08);
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  }
  .ap-mbar a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 52px; border-radius: 12px; text-decoration: none; line-height: 1.25; }
  .ap-mbar-tel { background: #111; color: #fff; }
  .ap-mbar-tel:hover { color: #fff; }
  .ap-mbar-tel span { font-size: 12px; opacity: .8; }
  .ap-mbar-tel strong { font-size: 16px; font-weight: 800; }
  .ap-mbar-consult { background: var(--ap-red); color: #fff; font-size: 17px; font-weight: 800; }
  .ap-mbar-consult:hover { color: #fff; }
  .ap-mbar-spacer { display: block; height: 84px; }
}
@media (prefers-reduced-motion: reduce) {
  .ap-btn, .ap-video-play { transition: none; }
}
