/* AIVION 스마트 안전방송 — 2026-10-26 개편
   방향: 회사 홈페이지답게 평범하고 읽기 쉽게. 사진과 글이 주인공, 장식은 줄인다.
   색: 남색(글자·버튼) 하나, 앰버는 전광판 견본에만 아주 조금. */
:root {
  --ink: #10243e;
  --body: #2b3744;
  --muted: #5d6a78;
  --line: #dde3ea;
  --gray: #f4f6f8;
  --navy: #10243e;
  --navy-hover: #1b3a5c;
  --accent: #f5820a;
  --led: #ff3b2f;
  --window: #0e1114;
  --danger: #c8322c;
  --font: "Pretendard Variable", Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  --wrap: 1160px;
  --pad: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--body); font-family: var(--font); font-size: 16px; line-height: 1.7; word-break: keep-all; overflow-wrap: break-word; }
img { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
h1, h2, h3 { margin: 0; color: var(--ink); letter-spacing: -0.02em; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; }
.skip:focus { top: 8px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.small { margin-top: 20px; font-size: 14px; color: var(--muted); }

.notice { margin: 0; background: var(--gray); color: var(--muted); font-size: 13px; text-align: center; padding: 6px 16px; border-bottom: 1px solid var(--line); }

/* 버튼 */
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px; border: 1px solid var(--navy); border-radius: 6px; background: var(--navy); color: #fff; font: inherit; font-size: 15px; font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap; }
.button:hover { background: var(--navy-hover); border-color: var(--navy-hover); }
.button-lg { min-height: 52px; padding: 0 26px; font-size: 16px; }
.button-sm { min-height: 36px; padding: 0 14px; font-size: 14px; }
.button-line { background: #fff; color: var(--navy); border-color: #b9c4d0; }
.button-line:hover { background: var(--gray); border-color: var(--navy); color: var(--navy); }

/* 머리말 */
.header { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); }
.header-in { height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo img { width: 124px; }
.nav { display: flex; align-items: center; gap: 28px; font-size: 15px; }
.nav a:not(.button) { text-decoration: none; color: var(--body); font-weight: 500; }
.nav a:not(.button):hover { color: var(--ink); text-decoration: underline; text-underline-offset: 6px; }
.nav .nav-tel { font-weight: 700; color: var(--ink); }
.menu-btn { display: none; }

/* 첫 화면 */
.hero { padding: 64px 0 0; }
.hero-in { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
.kicker { font-size: 15px; font-weight: 600; color: var(--muted); margin-bottom: 14px; }
.hero h1 { font-size: 44px; line-height: 1.3; font-weight: 700; }
.lead { margin-top: 22px; font-size: 18px; line-height: 1.75; color: var(--body); max-width: 32em; }
.hero-actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 10px; }
.hero-photo { margin: 0; }
.hero-photo img { width: 100%; }
.hero-photo figcaption { margin-top: 6px; font-size: 13px; color: var(--muted); text-align: right; }
.points { list-style: none; margin: 48px 0 0; padding: 26px 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.points li { padding: 0 28px; }
.points li:first-child { padding-left: 0; }
.points li + li { border-left: 1px solid var(--line); }
.points b { display: block; font-size: 17px; color: var(--ink); }
.points span { font-size: 15px; color: var(--muted); }

/* 섹션 공통 */
.section { padding: 96px 0; }
.section-gray { background: var(--gray); }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head h2 { font-size: 32px; line-height: 1.35; font-weight: 700; }
.section-head p { margin-top: 12px; font-size: 17px; color: var(--muted); }

/* 활용 상황 */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.tabs button { font: inherit; font-size: 15px; font-weight: 500; color: var(--body); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 9px 18px; cursor: pointer; }
.tabs button:hover { border-color: #b9c4d0; }
.tabs button[aria-selected="true"] { background: var(--navy); border-color: var(--navy); color: #fff; font-weight: 600; }
.use-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; border: 1px solid var(--line); border-radius: 10px; padding: 32px; }
.sign { background: #e3e8ed; border-radius: 8px; padding: 14px 16px 18px; }
.sign-label { display: block; font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 8px; }
.sign-text { background-color: var(--window); border-radius: 4px; aspect-ratio: 287 / 95; display: grid; place-items: center; font-size: clamp(30px, 4vw, 52px); font-weight: 800; letter-spacing: .08em; line-height: 1; color: var(--led); text-shadow: 0 0 10px rgba(255, 59, 47, .45); }
.use-label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.voice { font-size: 21px; line-height: 1.55; font-weight: 600; color: var(--ink); margin-bottom: 14px; }
.note { margin-top: 10px; font-size: 14px; color: #7a3e00; }

/* 운영 방식 */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; counter-reset: step; }
.steps li { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 22px 20px; counter-increment: step; }
.steps li::before { content: counter(step); display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 14px; font-weight: 700; margin-bottom: 14px; }
.steps b { display: block; font-size: 17px; color: var(--ink); margin-bottom: 6px; }
.steps p { font-size: 15px; color: var(--body); line-height: 1.65; }

/* 방송 기능 */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 48px; }
.features article { border-top: 2px solid var(--ink); padding-top: 18px; }
.features h3 { font-size: 19px; margin-bottom: 8px; }
.features p { font-size: 15.5px; color: var(--body); }

/* 설치 예시 */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 30%; border-radius: 8px; }
.gallery figcaption { margin-top: 14px; font-size: 15px; color: var(--body); }
.gallery figcaption b { display: block; font-size: 17px; color: var(--ink); margin-bottom: 2px; }

/* 제품 구성 */
.spec { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.spec h3 { font-size: 19px; margin-bottom: 8px; }
.spec dl { margin: 0; border-top: 2px solid var(--ink); }
.spec dl > div { display: grid; grid-template-columns: 170px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.spec dt { font-weight: 600; color: var(--ink); }
.spec dd { margin: 0; color: var(--body); }
.table-title { margin-top: 64px; font-size: 19px; margin-bottom: 14px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; min-width: 600px; border-collapse: collapse; font-size: 15.5px; border-top: 2px solid var(--ink); }
th, td { text-align: left; padding: 15px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--gray); color: var(--ink); font-weight: 600; }
tbody th { color: var(--ink); font-weight: 600; width: 130px; }
tbody td:last-child, thead th:last-child { color: var(--ink); font-weight: 600; }
thead th:last-child { background: #e6edf5; }
tbody td:last-child { background: #f7f9fc; }

/* 자주 묻는 질문 */
.faq { display: grid; grid-template-columns: 300px 1fr; gap: 48px; align-items: start; }
.faq h2 { font-size: 32px; line-height: 1.35; }
.faq-list { border-top: 2px solid var(--ink); }
.faq-list details { border-bottom: 1px solid var(--line); background: transparent; }
.faq-list summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 4px; font-size: 17px; font-weight: 600; color: var(--ink); }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; flex: none; font-size: 24px; font-weight: 300; color: var(--muted); line-height: 1; }
.faq-list details[open] summary::after { content: "\2212"; }
.faq-list details p { padding: 0 4px 22px; color: var(--body); max-width: 62ch; }

/* 상담 요청 */
.contact { display: grid; grid-template-columns: 1fr 1.25fr; gap: 64px; align-items: start; }
.contact-text h2 { font-size: 32px; line-height: 1.35; }
.contact-text > p { margin-top: 14px; font-size: 17px; color: var(--body); }
.tel-box { margin-top: 32px; padding: 22px 24px; background: var(--gray); border-radius: 10px; }
.tel-box span { display: block; font-size: 14px; color: var(--muted); }
.tel-box a { font-size: 32px; font-weight: 700; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.test-note { margin-top: 18px; font-size: 14px; color: #7a3e00; }
.inquiry-online .offline-only { display: none; }
.submit:disabled { opacity: .6; cursor: wait; }
.form { display: grid; gap: 18px; border: 1px solid var(--line); border-radius: 12px; padding: 32px; background: #fff; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 6px; border: 0; margin: 0; padding: 0; min-width: 0; }
.field label, .field legend { font-size: 14px; font-weight: 600; color: var(--ink); padding: 0; }
.field em { font-style: normal; font-size: 12px; font-weight: 600; color: var(--danger); margin-left: 4px; }
.count { float: right; font-weight: 400; color: var(--muted); }
input:not([type="checkbox"]), select, textarea { width: 100%; min-height: 46px; padding: 10px 14px; font: inherit; font-size: 16px; color: var(--ink); background: #fff; border: 1px solid #c7d0da; border-radius: 6px; }
textarea { resize: vertical; min-height: 110px; }
::placeholder { color: #8a95a2; opacity: 1; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(16, 36, 62, .12); }
[aria-invalid="true"] { border-color: var(--danger) !important; }
.err { font-size: 13px; font-weight: 500; color: var(--danger); }
.err:empty { display: none; }
.checks { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.checks label { display: inline-flex; align-items: center; gap: 7px; font-weight: 400; color: var(--body); font-size: 15px; cursor: pointer; min-height: 32px; }
input[type="checkbox"] { width: 18px; height: 18px; margin: 0; accent-color: var(--navy); flex: none; }
.agree-box { background: var(--gray); border-radius: 8px; padding: 14px 16px; }
.agree { display: flex !important; align-items: center; gap: 8px; cursor: pointer; }
.agree-note { font-size: 13px; color: var(--muted); line-height: 1.6; }
.submit { width: 100%; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.result { border: 1px solid var(--line); border-radius: 8px; padding: 18px; background: var(--gray); }
.result:focus { outline: none; }
.result-status { font-weight: 700; color: var(--ink); }
.result pre { margin: 10px 0 14px; white-space: pre-wrap; font-family: var(--font); font-size: 14px; background: #fff; padding: 12px 14px; border-radius: 6px; border: 1px solid var(--line); }
#copy-status { margin-left: 10px; font-size: 14px; color: var(--muted); }

/* 메뉴: 지금 보고 있는 제품 */
.nav a[aria-current="page"] { color: var(--ink); font-weight: 700; text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }

/* 첫 화면 */
.home-hero { padding: 80px 0 72px; border-bottom: 1px solid var(--line); }
.home-hero h1 { font-size: 44px; line-height: 1.3; font-weight: 700; }
.lineup { display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 40px; align-items: start; }
.lineup-group h3 { font-size: 15px; font-weight: 600; color: var(--muted); padding-bottom: 12px; border-bottom: 2px solid var(--ink); }
.lineup-item { display: block; padding: 18px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.lineup-item b { display: block; font-size: 18px; color: var(--ink); }
.lineup-item b::after { content: " \2192"; font-weight: 400; color: var(--muted); }
.lineup-item span { display: block; margin-top: 4px; font-size: 15px; color: var(--body); }
.lineup-item:hover b { text-decoration: underline; text-underline-offset: 5px; }
.lineup-more { display: inline-block; margin-top: 16px; font-size: 15px; font-weight: 600; color: var(--ink); }

/* 제품 페이지 */
.product-hero .points { margin-top: 48px; }
.product-hero:not(.home-hero) { padding-bottom: 72px; border-bottom: 1px solid var(--line); }
.hero-photo-tall { max-width: 460px; justify-self: end; }
.hero-photo-tall img { aspect-ratio: 4 / 5; object-fit: cover; border-radius: 8px; }
.spec-one { grid-template-columns: 1fr; max-width: 760px; }
.notes { margin: 0; padding-left: 20px; max-width: 760px; }
.notes li + li { margin-top: 8px; }
table.cmp tbody td:last-child, table.cmp thead th:last-child { background: none; font-weight: 400; color: var(--body); }
table.cmp thead th:last-child { background: var(--gray); font-weight: 600; color: var(--ink); }
table.cmp tbody th { width: 230px; }
table.cmp tbody th a { color: var(--ink); }

/* 제품 페이지 아래 상담 띠 */
.strip { background: var(--gray); padding: 56px 0; }
.strip-in { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.strip h2 { font-size: 26px; }
.strip p { margin-top: 6px; color: var(--muted); }
.strip-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.footer-links { margin-top: 10px; }
.footer-links a { color: #c9d6e3 !important; font-weight: 400; }

/* 개인정보처리방침 */
.policy { max-width: 820px; padding-top: 56px; padding-bottom: 96px; }
.policy h1 { font-size: 32px; line-height: 1.35; }
.policy-lead { margin-top: 16px; color: var(--muted); }
.policy h2 { margin-top: 40px; margin-bottom: 10px; font-size: 19px; }
.policy p + p { margin-top: 10px; }
.policy ul { margin: 8px 0 0; padding-left: 20px; }
.policy li + li { margin-top: 4px; }
.policy table { min-width: 0; margin-top: 8px; }
.policy thead th:last-child { background: var(--gray); }
.policy tbody td:last-child { background: none; font-weight: 400; color: var(--body); }
.policy-dl { margin: 0; border-top: 2px solid var(--ink); }
.policy-dl > div { display: grid; grid-template-columns: 100px 1fr; padding: 12px 0; border-bottom: 1px solid var(--line); }
.policy-dl dt { font-weight: 600; color: var(--ink); }
.policy-dl dd { margin: 0; }
.footer-info a.policy-link { font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.agree-note a { color: var(--ink); }

/* 바닥글 */
.footer { background: var(--ink); color: #c9d6e3; padding: 48px 0 40px; font-size: 14px; }
.footer-in { display: grid; grid-template-columns: auto 1fr auto; gap: 48px; align-items: start; }
.footer img { width: 110px; }
.footer-info p + p { margin-top: 4px; }
.footer-info b { color: #fff; margin-right: 6px; }
.footer a { color: #fff; text-decoration: none; }
.footer-small { color: #9fb1c4; }
.copy { color: #9fb1c4; }

/* 태블릿 */
@media (max-width: 1080px) {
  .nav { gap: 18px; }
  .nav a[href="#spec"], .nav a[href="#faq"] { display: none; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .faq { grid-template-columns: 1fr; gap: 24px; }
  .contact { grid-template-columns: 1fr; gap: 36px; }
  .lineup { grid-template-columns: 1fr 1fr; }
  .lineup-group:last-child { grid-column: 1 / -1; }
}

/* 휴대폰 */
@media (max-width: 760px) {
  :root { --pad: 18px; }
  .header-in { height: 60px; }
  .logo img { width: 100px; }
  .menu-btn { display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 6px; background: #fff; font: inherit; font-size: 14px; font-weight: 600; color: var(--ink); cursor: pointer; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 4px var(--pad) 18px; }
  .nav.open { display: flex; }
  .nav a:not(.button), .nav a[href="#spec"], .nav a[href="#faq"] { display: block; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
  .nav .button { margin-top: 14px; }

  .hero { padding-top: 36px; }
  .home-hero { padding: 40px 0 44px; }
  .home-hero h1 { font-size: 30px; }
  .lineup { grid-template-columns: 1fr; gap: 32px; }
  .strip-actions .button { flex: 1 1 100%; }
  .hero-in { grid-template-columns: 1fr; gap: 28px; }
  .hero-photo-tall { justify-self: stretch; max-width: none; }
  .hero h1 { font-size: 30px; }
  .lead { font-size: 16px; margin-top: 16px; }
  .hero-actions .button { flex: 1 1 100%; }
  .points { grid-template-columns: 1fr; margin-top: 32px; padding: 6px 0; }
  .points li, .points li:first-child { padding: 14px 0; }
  .points li + li { border-left: 0; border-top: 1px solid var(--line); }

  .section { padding: 64px 0; }
  .section-head { margin-bottom: 28px; }
  .section-head h2, .faq h2, .contact-text h2 { font-size: 25px; }
  .section-head p { font-size: 16px; }

  .tabs { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(-1 * var(--pad)) 16px; padding: 0 var(--pad) 4px; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs button { flex: none; }
  .use-panel { grid-template-columns: 1fr; gap: 22px; padding: 20px; }
  .voice { font-size: 18px; }

  .steps { grid-template-columns: 1fr; gap: 10px; }
  .steps li { display: grid; grid-template-columns: 28px 1fr; column-gap: 14px; padding: 18px; }
  .steps li::before { grid-row: span 2; margin: 0; }
  .features { grid-template-columns: 1fr; gap: 28px; }
  .gallery { grid-template-columns: 1fr; gap: 28px; }
  .gallery img { aspect-ratio: 4 / 3; }
  .spec { grid-template-columns: 1fr; gap: 36px; }
  .spec dl > div { grid-template-columns: 1fr; gap: 2px; }
  .table-title { margin-top: 48px; }

  .form { padding: 20px; }
  .row { grid-template-columns: 1fr; }
  .tel-box a { font-size: 28px; }
  .footer-in { grid-template-columns: 1fr; gap: 20px; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
