/* POCT landing — clinical B2B. Light theme only (medical brochure context). */
:root {
  --ink: #0f1c2e;
  --ink-2: #3b4a5e;
  --ink-3: #66758a;
  --line: #dfe5ec;
  --bg: #f6f8fa;
  --card: #ffffff;
  --brand: #0b5c78;
  --brand-ink: #ffffff;
  --brand-soft: #e5f1f5;
  --accent: #0e8a7a;
  --warn-bg: #fff6e0;
  --warn-ink: #7a5300;
  --err: #b42318;
  --ok: #067647;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(15, 28, 46, 0.06), 0 4px 16px rgba(15, 28, 46, 0.05);
  --max: 1120px;
  font-family: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', 'Noto Sans KR', sans-serif;
  color: var(--ink);
  -webkit-text-size-adjust: 100%;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); line-height: 1.65; font-size: 16px; word-break: keep-all; overflow-wrap: anywhere; }
a { color: var(--brand); }
img { max-width: 100%; height: auto; }
h1, h2, h3 { line-height: 1.3; letter-spacing: -0.01em; margin: 0 0 0.5em; }
h1 { font-size: clamp(1.7rem, 4vw, 2.6rem); }
h2 { font-size: clamp(1.3rem, 2.6vw, 1.75rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.muted { color: var(--ink-3); }
.small { font-size: 0.875rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid #f0b429; outline-offset: 2px; }

/* header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,0.96); border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.4) blur(6px); }
.site-header .wrap { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.logo { font-weight: 800; color: var(--ink); text-decoration: none; font-size: 1.05rem; white-space: nowrap; }
.logo span { color: var(--brand); }
.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav a { color: var(--ink-2); text-decoration: none; padding: 8px 10px; border-radius: 8px; font-weight: 600; font-size: 0.95rem; }
.nav a:hover, .nav a[aria-current='page'] { background: var(--brand-soft); color: var(--brand); }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font: inherit; font-weight: 700; color: var(--ink); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; border-radius: 10px; padding: 12px 18px; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; min-height: 44px; }
.btn-primary { background: var(--brand); color: var(--brand-ink); }
.btn-primary:hover { background: #094b62; }
.btn-ghost { background: #fff; color: var(--brand); border: 1px solid var(--brand); }
.btn-sm { padding: 8px 12px; min-height: 36px; font-size: 0.9rem; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }
.nav .btn { color: var(--brand-ink); margin-left: 6px; }
.nav .btn:hover { color: var(--brand-ink); background: #094b62; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-block; }
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: #fff; border-bottom: 1px solid var(--line); padding: 8px 16px 16px; box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav a { padding: 12px; }
  .nav .btn { margin: 8px 0 0; }
}

/* banner */
.notice-banner { background: var(--brand); color: #fff; font-size: 0.92rem; }
.notice-banner .wrap { padding-top: 8px; padding-bottom: 8px; }
.notice-banner a { color: #fff; }

/* sections */
.hero { background: linear-gradient(160deg, #ffffff 0%, var(--brand-soft) 100%); border-bottom: 1px solid var(--line); }
.hero .wrap { padding-top: 56px; padding-bottom: 56px; display: grid; gap: 32px; grid-template-columns: 1.2fr 1fr; align-items: center; }
.hero p.lead { font-size: 1.12rem; color: var(--ink-2); max-width: 36em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.hero-figure { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
@media (max-width: 800px) { .hero .wrap { grid-template-columns: 1fr; padding-top: 36px; padding-bottom: 36px; } }
section.block { padding: 48px 0; }
section.block.alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { margin-bottom: 20px; }
.eyebrow { font-size: 0.8rem; font-weight: 800; letter-spacing: 0.08em; color: var(--accent); text-transform: uppercase; margin-bottom: 6px; }

.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 900px) { .grid-3, .grid-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .grid-2, .grid-3, .grid-5 { grid-template-columns: 1fr; } }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { color: var(--brand); }
.card.main { border-top: 4px solid var(--brand); }
.tag { display: inline-block; font-size: 0.75rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); margin-bottom: 8px; }
.tag.alt { background: #e8f5f2; color: var(--accent); }
.card .more { font-weight: 700; text-decoration: none; }
.dept-link { display: block; text-align: center; padding: 18px 12px; font-weight: 700; text-decoration: none; color: var(--ink); }
.dept-link:hover { color: var(--brand); border-color: var(--brand); }

/* notices */
.notice { border-radius: 10px; padding: 14px 16px; background: var(--warn-bg); color: var(--warn-ink); font-size: 0.93rem; border: 1px solid #f1d58d; }
.notice.info { background: var(--brand-soft); color: #08465c; border-color: #bcdbe5; }
.notice.error { background: #fdecea; color: var(--err); border-color: #f5c2bd; }
.notice.ok { background: #e7f6ec; color: var(--ok); border-color: #b5e3c4; }
.notice p:last-child { margin-bottom: 0; }

/* product page */
.facts h3 { margin-top: 24px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.facts ul { padding-left: 1.1em; margin: 8px 0 0; }
.facts li { margin-bottom: 8px; }
.src { font-size: 0.8rem; color: var(--ink-3); white-space: nowrap; }
.src a { color: var(--ink-3); }
.photo-placeholder { aspect-ratio: 4 / 3; display: grid; place-items: center; background: repeating-linear-gradient(45deg, #f1f4f7, #f1f4f7 10px, #eaeef2 10px, #eaeef2 20px); border-radius: 10px; color: var(--ink-3); font-size: 0.9rem; text-align: center; padding: 16px; }

/* forms */
form .field { margin-bottom: 16px; }
label, .label { display: block; font-weight: 700; margin-bottom: 6px; font-size: 0.95rem; }
.req { color: var(--err); margin-left: 2px; }
.opt { color: var(--ink-3); font-weight: 500; font-size: 0.85rem; margin-left: 4px; }
input[type='text'], input[type='tel'], input[type='password'], input[type='number'], input[type='url'], select, textarea {
  width: 100%; font: inherit; padding: 11px 12px; border: 1px solid #c6d0db; border-radius: 10px; background: #fff; color: var(--ink); min-height: 44px;
}
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px rgba(11, 92, 120, 0.15); }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.check { display: inline-flex; align-items: center; gap: 8px; border: 1px solid #c6d0db; border-radius: 10px; padding: 10px 12px; background: #fff; font-weight: 600; cursor: pointer; min-height: 44px; }
.check input { width: 18px; height: 18px; margin: 0; }
.field-error { color: var(--err); font-size: 0.875rem; margin-top: 6px; }
.invalid { border-color: var(--err) !important; }
.consent-box { border: 1px solid var(--line); border-radius: 10px; padding: 14px; background: #fafbfc; font-size: 0.9rem; max-height: 220px; overflow: auto; }
.consent-box table { border-collapse: collapse; width: 100%; }
.consent-box th, .consent-box td { border: 1px solid var(--line); padding: 6px 8px; text-align: left; vertical-align: top; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* tables */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.data { width: 100%; border-collapse: collapse; background: #fff; font-size: 0.92rem; }
table.data th, table.data td { border-bottom: 1px solid var(--line); padding: 10px 8px; text-align: left; vertical-align: top; }
table.data th { background: #f2f5f8; font-weight: 700; white-space: nowrap; }
table.data td.num, table.data th.num { text-align: right; white-space: nowrap; }

/* calculator */
.calc-result { display: grid; gap: 12px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; }
.kpi .k { font-size: 0.85rem; color: var(--ink-3); font-weight: 700; }
.kpi .v { font-size: 1.5rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.kpi.scenario { border-style: dashed; border-color: #b9a26a; background: #fffcf3; }
.formula { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.85rem; background: #f2f5f8; padding: 10px 12px; border-radius: 8px; overflow-x: auto; }

/* chat */
.chat-box { display: flex; flex-direction: column; gap: 12px; }
.chat-log { min-height: 240px; max-height: 60vh; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding: 12px; background: #f2f5f8; border-radius: 10px; }
.msg { max-width: 85%; padding: 10px 14px; border-radius: 12px; white-space: pre-wrap; }
.msg.user { align-self: flex-end; background: var(--brand); color: #fff; }
.msg.bot { align-self: flex-start; background: #fff; border: 1px solid var(--line); }
.msg .srcs { margin-top: 8px; font-size: 0.8rem; color: var(--ink-3); }
.chat-form { display: flex; gap: 8px; }
.chat-form input { flex: 1; }
@media (max-width: 600px) { .msg { max-width: 95%; } }

/* footer */
.site-footer { background: #0f1c2e; color: #c8d2de; padding: 32px 0; font-size: 0.9rem; margin-top: 48px; }
.site-footer a { color: #fff; }
.site-footer .cols { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; }
.site-footer .disclaimer { margin-top: 16px; font-size: 0.8rem; color: #93a1b3; }

/* admin */
.admin-shell { display: grid; grid-template-columns: 220px 1fr; min-height: 100vh; }
.admin-nav { background: #0f1c2e; color: #fff; padding: 16px 12px; }
.admin-nav a { display: block; color: #c8d2de; text-decoration: none; padding: 9px 12px; border-radius: 8px; font-weight: 600; }
.admin-nav a.active, .admin-nav a:hover { background: #1d3049; color: #fff; }
.admin-main { padding: 20px; min-width: 0; }
.admin-main .toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.admin-main .toolbar input, .admin-main .toolbar select { width: auto; min-width: 160px; }
.badge { display: inline-block; font-size: 0.75rem; padding: 2px 8px; border-radius: 999px; background: #eef1f4; color: var(--ink-2); font-weight: 700; white-space: nowrap; }
.badge.ok { background: #e7f6ec; color: var(--ok); }
.badge.bad { background: #fdecea; color: var(--err); }
.badge.warn { background: var(--warn-bg); color: var(--warn-ink); }
.diff { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.diff pre { white-space: pre-wrap; background: #f6f8fa; border: 1px solid var(--line); border-radius: 8px; padding: 10px; font-size: 0.8rem; max-height: 360px; overflow: auto; margin: 0; }
@media (max-width: 800px) {
  .admin-shell { grid-template-columns: 1fr; }
  .admin-nav { display: flex; overflow-x: auto; gap: 4px; padding: 8px; }
  .admin-nav a { white-space: nowrap; }
  .admin-nav .brand { display: none; }
  .diff { grid-template-columns: 1fr; }
}

/* home — layout patterns (hero, dept band, situations, steps, closing CTA) */
.hero-dark { background: radial-gradient(1200px 500px at 85% 10%, #13789a 0%, transparent 60%), linear-gradient(160deg, #0a3d52 0%, #0b5c78 100%); color: #fff; border-bottom: 0; }
.hero-dark .wrap { padding-top: 72px; padding-bottom: 72px; }
.hero-dark h1 { color: #fff; }
.hero-dark p.lead { color: #d7ecf3; }
.hero-dark .eyebrow { color: #8fe0d1; }
.hero-dark .hero-figure { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.18); box-shadow: none; color: #fff; }
.hero-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.hero-list li { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; padding: 14px 16px; background: rgba(255,255,255,0.08); border-radius: 10px; }
.hero-list strong { font-size: 1.1rem; }
.hero-list span { font-size: 0.9rem; opacity: 0.85; text-align: right; }
.btn-light { background: #fff; color: var(--brand); }
.btn-light:hover { background: #e9f4f8; }
.btn-outline-light { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.6); }
.btn-outline-light:hover { background: rgba(255,255,255,0.1); }
.dept-band { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 28px; border-radius: 16px; background: #0e8a7a; color: #fff; text-decoration: none; box-shadow: var(--shadow); }
.dept-band h2 { color: #fff; margin: 8px 0 12px; }
.dept-band .tag { background: rgba(255,255,255,0.18); color: #fff; }
.dept-band .arrow { flex: none; width: 52px; height: 52px; border-radius: 50%; background: #fff; color: #0e8a7a; display: grid; place-items: center; font-size: 1.5rem; font-weight: 800; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-block; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,0.16); color: #fff; text-decoration: none; font-weight: 600; font-size: 0.9rem; }
.dept-band .chip:hover { background: rgba(255,255,255,0.3); }
.situation { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; }
.situation:hover { border-color: var(--brand); }
.situation .more { margin-top: auto; color: var(--brand); }
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 44px 1fr; grid-template-rows: auto auto; column-gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.steps li::before { content: '0' counter(step); grid-row: 1 / 3; color: var(--accent); font-weight: 800; font-size: 0.9rem; padding-top: 3px; }
.steps span { color: var(--ink-3); font-size: 0.92rem; }
.cta-final { background: #0f1c2e; color: #fff; padding: 48px 0; margin-top: 24px; }
.cta-final .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-final h2 { color: #fff; margin: 0; }
.cta-final .eyebrow { color: #8fe0d1; }
.site-footer { margin-top: 0; }
@media (max-width: 600px) { .dept-band { padding: 20px; } .dept-band .arrow { display: none; } .hero-dark .wrap { padding-top: 40px; padding-bottom: 40px; } }
.dept-band h2 a { color: #fff; text-decoration: none; }
.dept-band h2 a:hover { text-decoration: underline; }
.dept-band .arrow { text-decoration: none; }

/* ───────────── theme v2 — visual language aligned with the UX reference ───────────── */
:root {
  --ink: #111d1a;
  --ink-2: #33433f;
  --ink-3: #6a7a76;
  --line: #e2e8e5;
  --bg: #f7f9f8;
  --brand: #0f6b57;
  --brand-soft: #e5f4ee;
  --accent: #14a37f;
  --mint: #8de6c2;
  --mint-ink: #0b3b30;
  --deep: #0c3a31;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(10, 40, 33, 0.05), 0 8px 24px rgba(10, 40, 33, 0.06);
}
body { background: #fff; }
h1, h2, h3 { letter-spacing: -0.025em; }
.btn { border-radius: 999px; padding: 13px 22px; }
.btn-primary { background: var(--brand); }
.btn-primary:hover { background: #0b5646; }
.btn-ghost { border-radius: 999px; }
.btn-mint { background: var(--mint); color: var(--mint-ink); }
.btn-mint:hover { background: #a6efd1; }
.btn-ghost-light { background: rgba(255,255,255,0.08); color: #fff; border: 1px solid rgba(255,255,255,0.45); }
.btn-ghost-light:hover { background: rgba(255,255,255,0.16); }
.tag { background: var(--brand-soft); color: var(--brand); }
.tag.alt { background: #eef3f1; color: var(--ink-2); }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); font-size: 0.8rem; font-weight: 700; }
.pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* header */
.site-header { background: rgba(255,255,255,0.97); border-bottom: 1px solid var(--line); }
.site-header .wrap { min-height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; letter-spacing: -0.02em; }
.logo-mark { width: 22px; height: 22px; border-radius: 7px; background: linear-gradient(135deg, var(--accent), var(--brand)); box-shadow: inset 0 0 0 5px rgba(255,255,255,0.0); }
.nav a { border-radius: 999px; font-size: 0.92rem; padding: 7px 12px; }
.nav a[aria-current='page'] { background: var(--brand-soft); color: var(--brand); }
.nav a[aria-current='page']::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-right: 6px; vertical-align: middle; }
.nav-cta { margin-left: 8px; border: 1px solid currentColor; color: var(--brand) !important; font-weight: 700 !important; }
.nav-cta:hover { background: var(--brand) !important; color: #fff !important; }
body.home .site-header { position: fixed; left: 0; right: 0; background: transparent; border-bottom-color: transparent; transition: background .2s, border-color .2s; }
body.home .site-header:not(.scrolled) .logo, body.home .site-header:not(.scrolled) .nav a, body.home .site-header:not(.scrolled) .nav-toggle { color: #fff; }
body.home .site-header:not(.scrolled) .nav a[aria-current='page'] { background: rgba(141,230,194,0.22); color: #fff; }
body.home .site-header:not(.scrolled) .nav-cta { color: #fff !important; border-color: rgba(255,255,255,0.6); }
body.home .site-header:not(.scrolled) .nav-toggle { border-color: rgba(255,255,255,0.5); background: transparent; }
body.home .site-header.scrolled { background: rgba(255,255,255,0.97); border-bottom-color: var(--line); }
@media (max-width: 900px) {
  body.home .site-header:not(.scrolled) .nav.open a { color: var(--ink-2); }
  body.home .site-header:not(.scrolled) .nav.open .nav-cta { color: var(--brand) !important; border-color: var(--brand); }
  .nav-cta { margin: 8px 0 0; justify-content: center; }
}

/* photo hero */
.hero-photo { position: relative; min-height: min(92vh, 760px); display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: var(--deep); }
.hero-photo .hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6,28,23,0.86) 0%, rgba(6,28,23,0.55) 50%, rgba(6,28,23,0.25) 100%), linear-gradient(0deg, rgba(6,28,23,0.6) 0%, transparent 45%); }
.hero-photo .wrap { position: relative; z-index: 1; width: 100%; padding-top: 140px; padding-bottom: 72px; }
.hero-photo h1 { color: #fff; font-size: clamp(2rem, 5.2vw, 3.6rem); font-weight: 800; max-width: 13em; margin-bottom: 18px; }
.hero-photo .lead { color: rgba(255,255,255,0.86); font-size: clamp(1rem, 1.6vw, 1.2rem); max-width: 34em; }
.hero-photo .hero-actions { margin-top: 28px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.22); max-width: 640px; font-size: 0.9rem; color: rgba(255,255,255,0.75); font-weight: 600; }

/* makers strip */
.makers { border-bottom: 1px solid var(--line); }
.makers .wrap { display: flex; align-items: center; gap: 28px; padding-top: 26px; padding-bottom: 26px; flex-wrap: wrap; }
.makers strong { color: var(--brand); font-size: 1.05rem; white-space: nowrap; }
.makers ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 40px; flex: 1; justify-content: space-around; }
.makers li { font-weight: 800; font-size: 1.15rem; color: #9aa8a4; letter-spacing: 0.02em; }

/* numbered section heads */
.sec-num { font-size: 0.85rem; font-weight: 800; color: var(--brand); letter-spacing: 0.04em; margin-bottom: 8px; }
.sec-num.light { color: var(--mint); }
.sec-title { font-size: clamp(1.6rem, 3.4vw, 2.5rem); font-weight: 800; margin-bottom: 24px; }
.sec-title .g, .two-tone span { color: var(--accent); }
.sub-title { margin: 36px 0 14px; font-size: 1.2rem; }
section.block { padding: 64px 0; }
section.block.alt { background: var(--bg); border: 0; }

/* department band */
.dept-band { background: linear-gradient(120deg, #0c4a3d, #0f6b57); border-radius: 22px; padding: 30px 32px; }
.dept-band .pill { background: rgba(141,230,194,0.18); color: var(--mint); }
.dept-band .pill::before { background: var(--mint); }
.dept-band h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); }
.dept-band .arrow { background: var(--mint); color: var(--mint-ink); width: 60px; height: 60px; }
.chip { background: rgba(255,255,255,0.12); }

/* photo cards (situations) */
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .grid-4 { grid-template-columns: 1fr; } }
.photo-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; }
.photo-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(10,40,33,0.12); }
.photo-card > img { width: 100%; aspect-ratio: 4 / 3.3; object-fit: cover; }
.photo-card > div:last-child { position: relative; padding: 18px 60px 20px 20px; }
.photo-card h3 { margin: 0 0 4px; font-size: 1.15rem; }
.photo-card p { margin: 0; color: var(--ink-3); font-size: 0.9rem; }
.arrow-btn { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); color: var(--brand); font-weight: 800; background: #fff; }
.photo-card:hover .arrow-btn, .pcard:hover .arrow-btn, .feature-card:hover .arrow-btn { background: var(--brand); color: #fff; border-color: var(--brand); }
.photo-card.tiles .tile-grid { aspect-ratio: 4 / 3.3; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px; background: var(--bg); }
.tile-grid span { background: #fff; border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 6px; min-height: 0; }
.tile-grid .tile-img { max-height: 70%; max-width: 80%; object-fit: contain; }
.tile-grid b { font-size: 0.78rem; }

/* product cards */
.pcard { position: relative; display: grid; grid-template-columns: 42% 1fr; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; }
.pcard:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(10,40,33,0.12); }
.pcard.main { border-top: 0; }
.pcard-media { background: linear-gradient(160deg, #f1f6f4, #e4eeea); display: grid; place-items: center; padding: 18px; min-height: 220px; }
.pcard-media .pimg { max-height: 220px; width: auto; max-width: 100%; object-fit: contain; filter: drop-shadow(0 10px 18px rgba(0,0,0,0.12)); }
.pimg-empty { width: 100%; height: 160px; border-radius: 12px; border: 1px dashed #b9c8c3; display: grid; place-items: center; color: var(--ink-3); font-weight: 800; }
.pcard-body { position: relative; padding: 22px 60px 22px 22px; }
.pcard-body h3 { font-size: 1.5rem; margin: 4px 0 4px; }
.pcard-body .arrow-btn { top: auto; bottom: 18px; transform: none; }
.grid-3 .pcard { grid-template-columns: 1fr; }
.grid-3 .pcard-media { min-height: 200px; }
.grid-3 .pcard-media .pimg { max-height: 180px; }
@media (max-width: 600px) { .pcard { grid-template-columns: 1fr; } }

/* process */
.process .grid-2 { align-items: center; gap: 48px; }
.process-media { position: relative; border-radius: 22px; overflow: hidden; }
.process-media img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; display: block; }
.process-media .big-num { position: absolute; left: 20px; bottom: 6px; font-size: 6rem; font-weight: 900; color: rgba(255,255,255,0.85); line-height: 1; letter-spacing: -0.05em; }
.steps li::before { color: var(--accent); }
.text-link { display: inline-block; margin-top: 18px; font-weight: 800; color: var(--brand); text-decoration: none; border-bottom: 2px solid var(--mint); padding-bottom: 2px; }

/* feature cards */
.feature-card { position: relative; display: block; padding: 28px 70px 28px 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); box-shadow: var(--shadow); }
.feature-card h3 { font-size: 1.35rem; margin: 12px 0 8px; }
.feature-card p { margin: 0; color: var(--ink-3); font-size: 0.95rem; }

/* closing CTA + footer */
.cta-final { background: linear-gradient(120deg, #0a2f28, #0f5a4a); padding: 64px 0; margin-top: 0; }
.cta-final h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
.site-footer { background: #0a1f1b; }

/* product detail photo */
.product-photo { background: linear-gradient(160deg, #f1f6f4, #e4eeea); border-radius: 22px; padding: 28px; text-align: center; }
.product-photo img { max-height: 380px; width: auto; object-fit: contain; filter: drop-shadow(0 14px 24px rgba(0,0,0,0.14)); }
.product-photo .credit { margin: 12px 0 0; font-size: 0.78rem; color: var(--ink-3); }
.product-photo .credit a { color: var(--ink-3); }
.notice.info { background: var(--brand-soft); color: #0b4c3e; border-color: #bfe3d4; }
.kpi .v { color: var(--ink); }
.logo span { color: inherit; }
.logo [data-content] { color: inherit; }
@media (max-width: 600px) {
  .photo-card > img, .photo-card.tiles .tile-grid { aspect-ratio: 16 / 9; }
  .photo-card.tiles .tile-grid { grid-template-columns: repeat(4, 1fr); aspect-ratio: auto; }
  .makers .wrap { gap: 10px; }
  .makers ul { justify-content: flex-start; gap: 6px 18px; }
  .makers li { font-size: 0.95rem; }
  .hero-photo { min-height: 600px; }
  .hero-photo .wrap { padding-top: 110px; padding-bottom: 48px; }
  .process-media .big-num { font-size: 4rem; }
  section.block { padding: 48px 0; }
}

/* ───────────── motion ───────────── */
html.motion [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .7s cubic-bezier(.2,.7,.2,1) var(--reveal-delay, 0ms), transform .7s cubic-bezier(.2,.7,.2,1) var(--reveal-delay, 0ms); animation: reveal-fallback 0s 2.5s forwards; }
html.motion [data-reveal].in { opacity: 1; transform: none; animation: none; }
@keyframes reveal-fallback { to { opacity: 1; transform: none; } }

/* hero: slow zoom + light streaks + staged text */
.hero-photo .hero-bg { animation: kenburns 22s ease-in-out infinite alternate; transform-origin: 60% 40%; }
@keyframes kenburns { from { transform: scale(1.12); } to { transform: scale(1); } }
.hero-streaks { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; mix-blend-mode: screen; }
.hero-photo::after { z-index: 0; }
.hero-photo .wrap { z-index: 2; }
html.motion .hero-photo h1, html.motion .hero-photo .lead, html.motion .hero-photo .hero-actions, html.motion .hero-photo .hero-meta { animation: rise .9s cubic-bezier(.2,.7,.2,1) both; }
html.motion .hero-photo .lead { animation-delay: .12s; }
html.motion .hero-photo .hero-actions { animation-delay: .24s; }
html.motion .hero-photo .hero-meta { animation-delay: .36s; }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
.hero-meta span { position: relative; padding-left: 14px; }
.hero-meta span::before { content: ''; position: absolute; left: 0; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--mint); animation: blink 2.4s ease-in-out infinite; }
.hero-meta span:nth-child(2)::before { animation-delay: .4s; } .hero-meta span:nth-child(3)::before { animation-delay: .8s; } .hero-meta span:nth-child(4)::before { animation-delay: 1.2s; } .hero-meta span:nth-child(5)::before { animation-delay: 1.6s; }
@keyframes blink { 0%, 100% { opacity: .35; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.25); box-shadow: 0 0 10px var(--mint); } }

/* department band: shine sweep + pulsing arrow */
.dept-band { position: relative; overflow: hidden; }
.dept-band::after { content: ''; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%; background: linear-gradient(100deg, transparent, rgba(255,255,255,0.16), transparent); animation: shine 4.5s ease-in-out infinite; pointer-events: none; }
@keyframes shine { 0% { left: -60%; } 55%, 100% { left: 130%; } }
.dept-band .arrow { position: relative; animation: pulse 2.2s ease-in-out infinite; }
.dept-band .arrow::before { content: ''; position: absolute; inset: -8px; border-radius: 50%; border: 2px dashed rgba(141,230,194,0.55); animation: spin 8s linear infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(141,230,194,0.55); } 50% { box-shadow: 0 0 0 14px rgba(141,230,194,0); } }
@keyframes spin { to { transform: rotate(360deg); } }
.chips .chip { transition: transform .2s, background .2s; }
.chips .chip:hover { transform: translateY(-2px); background: rgba(255,255,255,0.28); }

/* card hover lift + floating product shots */
.pcard-media .pimg { transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.pcard:hover .pcard-media .pimg { transform: translateY(-8px) scale(1.04); }
.photo-card > img { transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.photo-card:hover > img { transform: scale(1.06); }
.photo-card { isolation: isolate; }

/* ───────────── department recommendation board ───────────── */
.reco { position: relative; overflow: hidden; color: #fff; background: #07231d; padding: 120px 0 72px; }
body:not(.home) .reco { padding-top: 64px; }
.reco-bg { position: absolute; inset: 0; background:
  radial-gradient(600px 380px at 15% 10%, rgba(20,163,127,0.45), transparent 70%),
  radial-gradient(700px 420px at 90% 30%, rgba(60,170,220,0.25), transparent 70%),
  radial-gradient(800px 500px at 50% 110%, rgba(141,230,194,0.18), transparent 70%);
  animation: drift 16s ease-in-out infinite alternate; }
.reco-bg::after { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px); background-size: 44px 44px; mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%); }
@keyframes drift { from { transform: translate3d(-2%, -1%, 0) scale(1.05); } to { transform: translate3d(2%, 1%, 0) scale(1); } }
.reco .wrap { position: relative; }
.reco-head h2 { color: #fff; font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 800; margin: 12px 0 28px; }
.reco-head h2 span { color: var(--mint); }
.reco .pill { background: rgba(141,230,194,0.16); color: var(--mint); }
.reco .pill::before { background: var(--mint); }
.reco-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.reco-tab { appearance: none; cursor: pointer; font: inherit; color: #d6ebe4; text-decoration: none; display: inline-flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px 18px; border-radius: 16px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14); transition: all .25s; min-width: 120px; }
.reco-tab .t-name { font-weight: 800; font-size: 1.05rem; }
.reco-tab .t-count { font-size: 0.8rem; opacity: .7; }
.reco-tab:hover { background: rgba(255,255,255,0.12); transform: translateY(-2px); }
.reco-tab.active { background: var(--mint); color: var(--mint-ink); border-color: var(--mint); box-shadow: 0 10px 30px rgba(141,230,194,0.35); }
.reco-stage { position: relative; display: grid; gap: 64px; }
.reco-beams { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.reco-beams .beam { fill: none; stroke: url(#beamg); stroke-width: 2.4; filter: drop-shadow(0 0 6px rgba(141,230,194,0.8)); }
.reco-beams .beam.pair { stroke-dasharray: none; }
.reco-beams .beam.extra { stroke-width: 1.6; opacity: .8; }
.reco-beams .beam-dot { fill: #fff; filter: drop-shadow(0 0 6px #8de6c2); }
.reco-hub { justify-self: center; position: relative; width: 168px; height: 168px; border-radius: 50%; display: grid; place-content: center; text-align: center; background: radial-gradient(circle at 35% 30%, #1d8f73, #0b4a3c 70%); box-shadow: 0 0 0 1px rgba(141,230,194,0.4), 0 0 60px rgba(141,230,194,0.35); z-index: 1; }
.reco-hub strong { font-size: 1.25rem; font-weight: 800; }
.reco-hub small { font-size: 0.85rem; color: #cdeee2; }
.reco-hub small b { color: var(--mint); font-size: 1.15rem; }
.hub-ring { position: absolute; inset: -14px; border-radius: 50%; border: 2px solid transparent; border-top-color: var(--mint); border-right-color: rgba(141,230,194,0.35); animation: spin 3.2s linear infinite; }
.hub-ring.r2 { inset: -28px; border-top-color: rgba(120,210,255,0.7); border-right-color: transparent; border-left-color: rgba(120,210,255,0.25); animation-duration: 6s; animation-direction: reverse; }
.reco-hub.pop { animation: pop .5s cubic-bezier(.2,1.6,.4,1); }
@keyframes pop { 0% { transform: scale(.88); } 100% { transform: scale(1); } }
.reco-devices { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; position: relative; z-index: 1; }
.reco-dev { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 20px 14px 18px; border-radius: 20px; text-decoration: none; color: #fff; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); transition: transform .5s cubic-bezier(.2,.7,.2,1) var(--stagger, 0ms), opacity .5s var(--stagger, 0ms), filter .5s var(--stagger, 0ms), background .5s, box-shadow .5s; overflow: hidden; isolation: isolate; }
.dev-glow { position: absolute; inset: -40%; z-index: -1; opacity: 0; background: conic-gradient(from 0deg, transparent 0deg, rgba(141,230,194,0.9) 40deg, transparent 90deg, transparent 180deg, rgba(120,210,255,0.7) 220deg, transparent 270deg); animation: spin 4s linear infinite; transition: opacity .5s; }
.reco-dev::after { content: ''; position: absolute; inset: 2px; border-radius: 18px; background: #0b2f27; z-index: -1; }
.dev-media { height: 120px; display: grid; place-items: center; }
.dev-img { max-height: 116px; max-width: 100%; object-fit: contain; filter: drop-shadow(0 10px 16px rgba(0,0,0,0.45)); transition: transform .5s; }
.dev-name { font-weight: 800; font-size: 1.1rem; }
.dev-short { font-size: 0.82rem; color: #b9d8ce; }
.role-badge { margin-top: 6px; font-size: 0.78rem; font-weight: 800; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,0.12); color: #e6f4ef; }
.reco-dev[data-role='core'] .role-badge { background: var(--mint); color: var(--mint-ink); }
.reco-dev[data-role='pair'] .role-badge { background: #7fd3f5; color: #06303f; }
.reco-dev[data-role='extra'] .role-badge { background: #f5d77f; color: #3d2f00; }
.reco-dev[data-role='core'] .role-badge::before, .reco-dev[data-role='pair'] .role-badge::before, .reco-dev[data-role='extra'] .role-badge::before { content: '✓ '; }
.reco-dev:not([data-role='none']) { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(0,0,0,0.35), 0 0 30px rgba(141,230,194,0.18); }
.reco-dev:not([data-role='none']) .dev-glow { opacity: 1; }
.reco-dev[data-role='core'] .dev-img { animation: float 4s ease-in-out infinite; }
.reco-dev[data-role='none'] { opacity: .32; filter: grayscale(1); transform: scale(.95); }
.reco-dev[data-role='none']:hover { opacity: .6; }
.reco-dev:not([data-role='none']):hover .dev-img { transform: scale(1.06); }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
.reco-legend { list-style: none; padding: 0; margin: 36px 0 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 0.86rem; color: #cfe6de; }
.reco-legend .lg { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
.lg.core { background: var(--mint); } .lg.pair { background: #7fd3f5; } .lg.extra { background: #f5d77f; } .lg.none { background: #5b6d68; }
.reco-cta { margin-top: 28px; }
.reco-note { margin-top: 16px; font-size: 0.8rem; color: #93b3a9; max-width: 60em; }
@media (max-width: 1000px) { .reco-devices { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px) {
  .reco { padding: 96px 0 56px; }
  .reco-stage { gap: 28px; }
  .reco-hub { width: 132px; height: 132px; }
  .reco-devices { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .reco-tab { min-width: 0; flex: 1 1 calc(50% - 10px); }
  .dev-media { height: 92px; }
  .dev-img { max-height: 88px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html.motion [data-reveal] { opacity: 1; transform: none; }
}
body:not(.home) .reco { padding-top: 88px; }
@media (max-width: 720px) {
  body:not(.home) .reco { padding-top: 44px; }
  .reco-head h2 { margin-bottom: 18px; }
  .reco-tabs { flex-wrap: nowrap; overflow-x: auto; gap: 8px; margin: 0 calc(-1 * max(16px, env(safe-area-inset-left, 0px))) 24px; padding: 4px max(16px, env(safe-area-inset-left, 0px)) 10px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .reco-tabs::-webkit-scrollbar { display: none; }
  .reco-tab { flex: 0 0 auto; min-width: 0; padding: 10px 14px; border-radius: 999px; flex-direction: row; align-items: baseline; gap: 6px; }
  .reco-tab .t-name { font-size: 0.95rem; }
}
@media (max-width: 720px) { .reco-devices .reco-dev:last-child:nth-child(odd) { grid-column: 1 / -1; } }
