/* ==========================================================================
   ColdChain.ai — shared stylesheet
   System fonts only (no Google Fonts / CDN) — fast & reliable in mainland China.
   ========================================================================== */

:root {
  --navy: #0D47A1;
  --navy-deep: #082e6b;
  --blue: #1976D2;
  --teal: #26C6DA;
  --ink: #10202f;
  --body: #3c4a58;
  --muted: #6b7a89;
  --line: #e2e8ef;
  --surface: #ffffff;
  --surface-alt: #f4f8fb;
  --surface-deep: #0a2242;
  --danger: #d64545;
  --ok: #1f9d63;

  --grad: linear-gradient(135deg, var(--navy) 0%, var(--blue) 55%, var(--teal) 100%);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC",
    "Microsoft YaHei", "Helvetica Neue", "Malgun Gothic", "Apple SD Gothic Neo",
    Arial, sans-serif;

  --radius-s: 8px;
  --radius: 14px;
  --radius-l: 18px;
  --shadow-s: 0 1px 3px rgba(13, 40, 74, 0.06), 0 1px 2px rgba(13, 40, 74, 0.04);
  --shadow: 0 8px 28px rgba(13, 40, 74, 0.08);
  --shadow-l: 0 20px 48px rgba(13, 40, 74, 0.12);

  --container: 1180px;
  --header-h: 72px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--body);
  background: var(--surface);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; }
svg { display: block; }

h1, h2, h3, h4 {
  color: var(--ink);
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 .6em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2rem, 4.4vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.25rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 14px;
}

.section {
  padding: 88px 0;
}
.section--alt { background: var(--surface-alt); }
.section--deep {
  background: var(--surface-deep);
  color: #cfe0f2;
}
.section--deep h2, .section--deep h3 { color: #fff; }

.section-head {
  max-width: 640px;
  margin: 0 0 48px;
}
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }

.lede {
  font-size: 1.1rem;
  color: var(--muted);
}

/* ---------------------------------- Buttons ---------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 6px 18px rgba(25, 118, 210, .28);
}
.btn--primary:hover { background: var(--navy); box-shadow: 0 8px 22px rgba(13, 71, 161, .32); }

.btn--ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--line);
}
.btn--ghost:hover { border-color: var(--blue); color: var(--blue); }

.btn--on-dark {
  background: rgba(255,255,255,.08);
  color: #fff;
  border-color: rgba(255,255,255,.35);
}
.btn--on-dark:hover { background: rgba(255,255,255,.16); border-color: #fff; }

.btn--block { width: 100%; }
.btn--sm { padding: 9px 18px; font-size: .85rem; }

/* ---------------------------------- Header ---------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--ink);
  flex-shrink: 0;
}
.brand img { width: 30px; height: 30px; }
.brand .dot { color: var(--teal); }

.nav-primary {
  display: flex;
  align-items: center;
  gap: 30px;
  flex: 1;
}
.nav-primary a {
  font-size: .95rem;
  font-weight: 600;
  color: var(--body);
  padding: 8px 0;
  border-bottom: 2px solid transparent;
}
.nav-primary a:hover,
.nav-primary a[aria-current="page"] {
  color: var(--navy);
  border-bottom-color: var(--blue);
}

.nav-side {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.lang-switch { position: relative; }
.lang-switch__btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: .82rem;
  font-weight: 700;
  color: var(--body);
  cursor: pointer;
}
.lang-switch__btn:hover { border-color: var(--blue); color: var(--blue); }
.lang-switch__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  box-shadow: var(--shadow);
  min-width: 140px;
  padding: 6px;
  display: none;
}
.lang-switch.is-open .lang-switch__menu { display: block; }
.lang-switch__menu a {
  display: block;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: .88rem;
  font-weight: 600;
}
.lang-switch__menu a:hover { background: var(--surface-alt); }
.lang-switch__menu a[aria-current="true"] { color: var(--blue); }

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  background: #fff;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  position: relative;
  transition: transform .2s ease, opacity .2s ease;
}
.menu-toggle span::before { position: absolute; top: -6px; }
.menu-toggle span::after { position: absolute; top: 6px; }

/* Mobile nav drawer */
.nav-mobile {
  display: none;
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: #fff;
  z-index: 99;
  overflow-y: auto;
  padding: 20px 24px 40px;
}
.nav-mobile a.nav-mobile__link {
  display: block;
  padding: 14px 4px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.nav-mobile__langs {
  display: flex;
  gap: 8px;
  margin: 20px 0;
}
.nav-mobile__langs a {
  flex: 1;
  text-align: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  font-weight: 700;
  font-size: .85rem;
}
.nav-mobile__langs a[aria-current="true"] { border-color: var(--blue); color: var(--blue); }
.nav-mobile__ctas { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }

body.nav-open .nav-mobile { display: block; }
body.nav-open { overflow: hidden; }

/* ---------------------------------- Hero ---------------------------------- */

.hero {
  position: relative;
  padding: 76px 0 90px;
  background: var(--surface-deep);
  color: #dce7f4;
  overflow: hidden;
}
.hero--photo {
  background-image: url('/assets/img/hero-concept.jpg');
  background-size: cover;
  background-position: center;
}
.hero--photo::before {
  background:
    linear-gradient(100deg, rgba(6,20,42,.92) 0%, rgba(6,20,42,.72) 45%, rgba(6,20,42,.4) 100%),
    radial-gradient(680px 420px at 82% -10%, rgba(38,198,218,.22), transparent 60%);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(680px 420px at 82% -10%, rgba(38,198,218,.28), transparent 60%),
    radial-gradient(600px 380px at 100% 100%, rgba(25,118,210,.32), transparent 60%);
  pointer-events: none;
}
.hero .container {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 48px;
  align-items: center;
}
.hero-eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #9fd8e6;
  border: 1px solid rgba(159, 216, 230, .35);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 22px;
}
.hero h1 { color: #fff; margin-bottom: .5em; }
.hero .headline-blue { color: #7fd6e6; }
.hero p.lede { color: #b7c9dc; font-size: 1.12rem; max-width: 46ch; }
.hero .cta-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.hero .tagline-strip {
  margin-top: 34px;
  font-size: .92rem;
  color: #8fa5bd;
  letter-spacing: .02em;
}
.hero .postech {
  margin-top: 40px;
  font-size: .78rem;
  color: #6f8399;
  letter-spacing: .05em;
}

.hero-visual { display: flex; justify-content: center; }
.chain-diagram { width: 100%; max-width: 360px; }
.chain-diagram .node-label {
  font-size: 12px;
  font-weight: 700;
  fill: #dce7f4;
}
.chain-diagram .node-sub {
  font-size: 9.5px;
  fill: #8fa5bd;
}

/* ---------------------------------- Problem / Why cards ---------------------------------- */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: var(--shadow-s);
}
.card h3 { margin-bottom: .5em; font-size: 1.1rem; }
.card p { color: var(--muted); margin: 0; font-size: .95rem; }
.card .card-icon {
  width: 44px; height: 44px;
  margin-bottom: 18px;
}

.problem-card { border-top: 3px solid var(--blue); }
.closer-message {
  margin-top: 40px;
  text-align: center;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--ink);
}

/* ---------------------------------- How it works ---------------------------------- */

.workflow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  counter-reset: step;
}
.workflow-step {
  position: relative;
  padding: 30px 22px;
  border-top: 3px solid var(--line);
  text-align: left;
}
.workflow-step.is-active,
.workflow-step { border-top-color: var(--blue); }
.workflow-step .step-no {
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  color: var(--teal);
  margin-bottom: 10px;
}
.workflow-step .step-icon { width: 40px; height: 40px; margin-bottom: 16px; }
.workflow-step h3 { margin-bottom: .3em; }
.workflow-step p { color: var(--muted); font-size: .92rem; margin: 0; }
.workflow-arrow {
  display: none;
}

/* ---------------------------------- Footer ---------------------------------- */

.site-footer {
  background: var(--surface-deep);
  color: #9db2c9;
  padding: 64px 0 32px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.1rem; color: #fff; margin-bottom: 10px; }
.footer-brand img { width: 26px; height: 26px; }
.footer-tagline { font-size: .86rem; color: #7f95ac; }
.footer-col h4 {
  color: #fff; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-col a, .footer-col p { display: block; font-size: .9rem; color: #9db2c9; margin-bottom: 10px; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  font-size: .8rem;
  color: #6f8399;
}
.footer-bottom a { color: #9db2c9; }
.footer-bottom a:hover { color: #fff; }

/* ---------------------------------- Certified page ---------------------------------- */

.cert-hero {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 56px;
  align-items: center;
}
.cert-badge-wrap { text-align: center; }
.cert-badge-wrap img { max-width: 300px; margin: 0 auto; }

.cert-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cert-title-row h1 { margin-bottom: 0; }
.cert-title-badges { display: flex; align-items: center; gap: 20px; }
.cert-title-badges img { width: 160px; height: 160px; }
@media (max-width: 640px) {
  .cert-title-badges img { width: 96px; height: 96px; }
}

/* ---------------------------------- Applications flow ---------------------------------- */

.app-flow {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 620px;
  margin: 0 auto;
}
.app-flow__node {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-s);
}
.app-flow__node.is-final {
  background: var(--grad);
  border: none;
  color: #fff;
}
.app-flow__node.is-final .app-flow__icon { background: rgba(255,255,255,.18); }
.app-flow__node.is-final .app-flow__text small { color: rgba(255,255,255,.8); }
.app-flow__icon {
  flex-shrink: 0;
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--surface-alt);
  display: flex; align-items: center; justify-content: center;
}
.app-flow__icon svg { width: 24px; height: 24px; }
.app-flow__text strong { display: block; font-size: 1rem; }
.app-flow__text small { color: var(--muted); font-size: .84rem; }
.app-flow__connector {
  width: 2px;
  height: 26px;
  background: var(--line);
  margin-left: 41px;
}

/* ---------------------------------- Partners ---------------------------------- */

.partner-columns {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 22px;
}

.partner-card {
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  text-align: left;
  transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.partner-card .icon { width: 38px; height: 38px; margin-bottom: 16px; color: var(--blue); }
.partner-card h3 { font-size: 1.02rem; margin-bottom: 0; }

.partner-card--logo { text-align: center; }
.partner-card-media {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 96px;
  margin-bottom: 16px;
  overflow: hidden;
}
.partner-card-media img { max-height: 100%; min-height: 0; width: auto; max-width: 100%; object-fit: contain; }

.partner-card--link {
  cursor: pointer;
  border-color: var(--line);
}
.partner-card--link:hover,
.partner-card--link:focus-visible {
  background: var(--surface-alt);
  border-color: var(--blue);
  box-shadow: var(--shadow-s);
  transform: translateY(-2px);
}

.partner-card--placeholder { text-align: left; }

.cta-band {
  text-align: center;
  background: var(--surface-deep);
  color: #fff;
  border-radius: var(--radius-l);
  padding: 56px 32px;
  margin-top: 64px;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #b7c9dc; }

/* ---------------------------------- Solution: hardware ---------------------------------- */

.hw-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.hw-card {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  background-size: cover;
  background-position: center;
  overflow: hidden;
  box-shadow: var(--shadow-s);
}
.hw-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(8,25,50,.88) 0%, rgba(8,25,50,.15) 55%, transparent 100%);
}
.hw-card__label {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 1;
  padding: 18px 20px;
  color: #fff;
}
.hw-card__label strong { display: block; font-size: 1.02rem; margin-bottom: 4px; }
.hw-card__label small { color: #cfe0f2; font-size: .82rem; }

/* ---------------------------------- Certified: product shot ---------------------------------- */

.cert-product-shot {
  display: flex;
  align-items: center;
  justify-content: center;
}
.cert-product-shot img {
  max-width: 100%;
  max-height: 560px;
  width: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
/* Whole image, uncropped, centered — no aspect-ratio frame, no object-fit cropping.
   The source file itself is pre-scaled (see scripts/) so this just centers it. */
.cert-product-shot--centered img {
  max-height: none;
  margin: 0 auto;
}

/* ---------------------------------- Company ---------------------------------- */

.founder {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 42px;
  align-items: start;
}
.founder img {
  width: 100%;
  height: auto;
  aspect-ratio: 480 / 641;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.founder .name { font-size: 1.4rem; font-weight: 800; color: var(--ink); margin-bottom: 4px; }
.founder .title { color: var(--blue); font-weight: 700; font-size: .92rem; margin-bottom: 4px; }
.founder .sub { color: var(--muted); font-size: .88rem; margin-bottom: 18px; }
.badge-line {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8rem; font-weight: 700; color: var(--navy);
  background: var(--surface-alt);
  border: 1px solid var(--line);
  padding: 8px 14px; border-radius: 999px;
  margin-top: 22px;
}

/* ---------------------------------- WSS landing ---------------------------------- */

.wss-hero {
  background: var(--surface-deep);
  color: #fff;
  position: relative;
  overflow: hidden;
  padding: 90px 0 70px;
  text-align: center;
}
.wss-hero::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(700px 420px at 50% -10%, rgba(38,198,218,.3), transparent 60%);
}
.wss-hero .container { position: relative; }
.wss-hero .badge-row {
  display: flex; justify-content: center; gap: 10px; margin-bottom: 22px; flex-wrap: wrap;
}
.wss-tag {
  font-size: .76rem; font-weight: 800; letter-spacing: .06em;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.25);
  padding: 6px 14px; border-radius: 999px; color: #cfe6ee;
}
.wss-hero h1 { color: #fff; margin: 0 auto .4em; max-width: 20ch; }
.wss-hero .lede { color: #b7c9dc; max-width: 56ch; margin: 0 auto 30px; }
.wss-hero .cta-row { justify-content: center; }

.wss-mini-flow {
  display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap;
  margin-top: 34px;
}
.wss-mini-flow span {
  font-size: .82rem; font-weight: 700; color: #cfe6ee;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16);
  padding: 8px 14px; border-radius: 999px;
}
.wss-mini-flow .arrow { color: #5b7794; font-weight: 700; }

.wss-partner-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.wss-partner-grid .partner-card { text-align: center; }
.wss-partner-grid .partner-card .icon { margin: 0 auto 14px; }

/* ---------------------------------- Forms ---------------------------------- */

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .85rem; font-weight: 700; color: var(--ink); }
.field input,
.field select,
.field textarea {
  font-family: var(--font);
  font-size: .95rem;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  background: #fff;
  color: var(--ink);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(25,118,210,.12);
}
.field textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: .82rem; color: var(--muted); margin-top: 6px; }
.form-status {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: var(--radius-s);
  font-size: .9rem;
  display: none;
}
.form-status.is-visible { display: block; }
.form-status.ok { background: rgba(31,157,99,.1); color: var(--ok); }
.form-status.err { background: rgba(214,69,69,.1); color: var(--danger); }

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 48px;
}
.contact-info .item { margin-bottom: 22px; }
.contact-info .item .k { font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--blue); margin-bottom: 6px; }
.contact-info .item .v { font-size: .98rem; color: var(--ink); }
.contact-info address { font-style: normal; }
.cert-lookup-result { max-width: 640px; margin: 0 auto; }
.cert-photo-wrap { max-width: 768px; margin: 32px auto 0; } /* 아래 차트/지도와 동일 너비 */
.cert-photo-wrap .k { font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--blue); margin-bottom: 10px; }
.cert-photo-frame { position: relative; }
.cert-photo {
  width: 100%;
  display: block;
  border-radius: var(--radius-s);
  border: 1px solid var(--line);
  background: var(--surface-alt);
}
.cert-photo-zoom {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 999px;
  background: rgba(10, 34, 66, .65);
  color: #fff;
  cursor: pointer;
}
.cert-photo-zoom:hover { background: rgba(10, 34, 66, .85); }
.cert-photo-zoom svg { width: 20px; height: 20px; display: block; }

/* 촬영 이미지 확대 뷰어 — 지도처럼 전체화면에서 확대(휠/핀치)·이동(드래그).
   z-index는 Leaflet 기본 컨트롤(.leaflet-top/.leaflet-bottom, z-index:1000)보다
   높아야 한다 — 안 그러면 아래 인라인 지도의 확대(+)/축소(-) 버튼이 이 전체화면
   위로 비쳐 보인다(차트 확대 뷰를 열었을 때 우측 상단에 지도 버튼이 겹쳐 보이던 원인). */
.cert-photo-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  touch-action: none;
}
.cert-photo-lightbox[hidden] { display: none; }
.cert-photo-lightbox__img {
  /* scale=1(기본 배율)일 때 이미지가 뷰포트에 딱 맞게 축소되어야 한다 — 여기서부터
     transform:scale()로 확대해 나간다. 이 규칙이 없으면 원본 픽셀 크기(예:
     3840x2160)로 그대로 렌더링되어 열자마자 이미 "확대된" 상태처럼 보이고, 그 결과
     scale이 여전히 1이라 드래그가 비활성화되며, 축소해도 시각적으로 거의 안 줄어든다. */
  max-width: 100vw;
  max-height: 100vh;
  width: auto;
  height: auto;
  will-change: transform;
  user-select: none;
  -webkit-user-drag: none;
}
.cert-photo-lightbox__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, .15);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}
.cert-photo-lightbox__close:hover { background: rgba(255, 255, 255, .28); }
.cert-photo-lightbox__hint {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  font-size: .8rem;
  color: rgba(255, 255, 255, .8);
  background: rgba(0, 0, 0, .45);
  padding: 6px 14px;
  border-radius: 999px;
  pointer-events: none;
  white-space: nowrap;
}
.cert-charts-wrap { max-width: 768px; margin: 32px auto 0; } /* 아래 지도(.cert-map-wrap)와 동일 너비 */
.cert-charts-wrap .k { font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--blue); margin-bottom: 10px; }
.cert-chart-card + .cert-chart-card { margin-top: 20px; }
.cert-chart-card__title { font-size: .84rem; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.cert-chart-rows { display: grid; grid-template-columns: 1fr; gap: 16px; }
.cert-chart {
  position: relative; /* 우측 하단 확대 버튼(.cert-photo-zoom 재사용) 기준점 */
  width: 100%;
  aspect-ratio: 3 / 1;
  border-radius: var(--radius-s);
  border: 1px solid var(--line);
  background: var(--surface-alt);
}
.cert-chart svg { width: 100%; height: 100%; display: block; }
.cert-chart-label { font-size: .68rem; fill: var(--muted); }
.cert-chart-line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.cert-chart-dot { stroke: var(--surface-alt); stroke-width: 1; }
.cert-chart-axis { stroke: var(--line); stroke-width: 1; }
.cert-chart-grid { stroke: var(--line); stroke-width: .5; opacity: .7; }
.cert-chart-safe { fill: var(--ok); opacity: .12; }
.cert-chart-title { font-size: .7rem; font-weight: 700; fill: var(--ink); }
.cert-chart-bg { fill: var(--surface-alt); }

/* 차트 확대 뷰어 캔버스 — 사진 라이트박스(.cert-photo-lightbox)와 같은 틀을 재사용한다.
   사진과 달리 여기서는 SVG를 뷰포트에 맞춰 축소하지 않는다(그러면 30분 단위로
   늘려놓은 라벨의 글자가 뷰포트 비율만큼 도로 줄어들어 안 보이게 된다) — width/height
   속성 그대로(native 크기) 렌더링해 뷰포트보다 넓은 채로 두고, 드래그로 옮겨가며 본다.
   scale=1에서도 항상 이동 가능해야 하므로 createZoomPan에 alwaysPannable을 넘긴다. */
.cert-chart-lightbox__canvas { will-change: transform; cursor: grab; }
.cert-chart-lightbox__canvas svg { display: block; }
.cert-map-wrap { max-width: 768px; margin: 32px auto 0; } /* 640px 결과 패널의 1.2배 */
.cert-map-wrap .k { font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--blue); margin-bottom: 6px; }
.cert-map-frame { position: relative; } /* 우측 하단 확대 버튼(.cert-photo-zoom 재사용) 기준점 */
.cert-map {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-s);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface-alt);
}
.cert-map-note { font-size: .82rem; color: var(--muted); margin: 8px 0 0; }
.cert-map-link { display: inline-block; margin-top: 4px; font-size: .82rem; color: var(--blue); }
.cert-map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-top: 8px;
}
.cert-map-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .82rem;
  color: var(--body);
}
.cert-map-legend-icon { height: 18px; width: auto; display: block; }

/* "이 위치에서 재검색" 버튼 — Leaflet 컨트롤로 지도 우측 상단에 얹힌다(인라인
   소형 지도·확대 라이트박스 지도 공통, renderLeafletMap에서 추가). */
.cert-map-search-btn {
  padding: 7px 14px;
  border: none;
  border-radius: 999px;
  background: rgba(10, 34, 66, .88);
  color: #fff;
  font-size: .78rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .25);
  white-space: nowrap;
}
.cert-map-search-btn:hover { background: rgba(10, 34, 66, 1); }
.cert-map-search-btn:disabled { opacity: .7; cursor: default; }

/* 지도 확대 뷰어 — 사진/차트와 달리 지도는 Leaflet이 자체적으로 드래그 이동과
   휠/핀치 확대·축소를 처리하므로 createZoomPan을 쓰지 않고, 전체화면 컨테이너에
   별도 Leaflet 지도 인스턴스를 새로 띄우기만 한다. z-index는 다른 라이트박스와
   같은 이유로 Leaflet 컨트롤(z-index:1000)보다 높게 잡는다 — 이 라이트박스 자체도
   내부에 새 지도 컨트롤을 띄우므로 아래 인라인 지도 컨트롤이 비쳐 보이지 않게 한다. */
.cert-map-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: #000;
}
.cert-map-lightbox[hidden] { display: none; }
.cert-map-lightbox__canvas { position: absolute; inset: 0; }
.cert-map-legend--overlay {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 1;
  max-width: calc(100% - 32px);
  padding: 8px 12px;
  border-radius: var(--radius-s);
  background: rgba(255, 255, 255, .92);
}

/* ---------------------------------- Modals (멤버십신청 / 조회하기) ---------------------------------- */

body.modal-open { overflow: hidden; }

.modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal[hidden] { display: none; }
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 34, 66, .55);
}
.modal__dialog {
  position: relative;
  background: var(--surface);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-l);
  padding: 36px 32px 32px;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
}
.modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  border-radius: 999px;
}
.modal__close:hover { background: var(--surface-alt); color: var(--ink); }
.modal__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 20px;
}
.modal__col { display: flex; flex-direction: column; gap: 12px; }

/* ---------------------------------- Page hero (secondary pages) ---------------------------------- */

.page-hero {
  padding: 60px 0 20px;
  background: var(--surface-alt);
  border-bottom: 1px solid var(--line);
}
.page-hero .eyebrow { margin-bottom: 10px; }
.page-hero p.lede { max-width: 60ch; }

.breadcrumb {
  font-size: .8rem;
  color: var(--muted);
  margin-bottom: 16px;
}
.breadcrumb a { color: var(--blue); }

/* ---------------------------------- Utilities ---------------------------------- */

.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--navy); color: #fff;
  padding: 10px 16px; z-index: 200; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1024px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 280px; margin: 0 auto 20px; }
  .hero--photo::before {
    background: linear-gradient(180deg, rgba(6,20,42,.55) 0%, rgba(6,20,42,.9) 45%, rgba(6,20,42,.97) 100%);
  }
  .cert-hero { grid-template-columns: 1fr; }
  .cert-badge-wrap { order: -1; }
  .founder { grid-template-columns: 160px 1fr; }
  .wss-partner-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .nav-primary { display: none; }
  .nav-side .btn--ghost, .nav-side .btn--primary { display: none; }
  .menu-toggle { display: flex; }
  .grid-3, .grid-4, .hw-grid { grid-template-columns: repeat(2, 1fr); }
  .workflow { grid-template-columns: 1fr; }
  .workflow-step { border-top: none; border-left: 3px solid var(--blue); padding-left: 20px; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .contact-layout { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .modal__grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .section { padding: 56px 0; }
  .grid-3, .grid-4, .grid-2, .partner-columns, .wss-partner-grid, .hw-grid { grid-template-columns: 1fr; }
  .hw-card { aspect-ratio: 16 / 10; }
  .cta-row .btn { flex: 1; }
  .founder { grid-template-columns: 1fr; text-align: left; }
  .founder img { width: 140px; }
  .hero { padding: 52px 0 60px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
