/* Medion 홈페이지 — Pretendard 단일 서체(굵기 대비), 딥 틸 + 페일 민트 + 차가운 오프화이트. 실사 사진은 히어로·현장 띠·도입 대상에만. */
:root {
  --ink: #12201D;
  --ink-soft: #4A5A56;
  --teal: #0F5C55;
  --teal-deep: #073531;
  --mint: #DCEFEA;
  --mint-soft: #EEF6F3;
  --paper: #F5F8F7;
  --white: #FFFFFF;
  --hold: #9A6700;
  --hold-bg: #FFF4D6;
  --block: #9B2C2C;
  --block-bg: #FBE3E3;
  --ok: #1F6F4A;
  --ok-bg: #DFF3E7;
  --measure: 34rem;
  --gutter: clamp(1rem, 4vw, 3rem);
  --wide: 76rem;
}
* { box-sizing: border-box; }
html { color-scheme: light; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Pretendard Variable", Pretendard, -apple-system, "Segoe UI", "Malgun Gothic", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-weight: 300; letter-spacing: -0.02em; line-height: 1.15; margin: 0; }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 1.25rem; }
h3 { font-size: 1.25rem; font-weight: 500; margin-bottom: 0.8rem; }
p { margin: 0; }
.lede { font-size: 1.1rem; color: var(--ink-soft); max-width: var(--measure); }

.top {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem var(--gutter);
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: blur(8px);
}
.brand { font-weight: 700; font-size: 1.25rem; letter-spacing: -0.01em; text-decoration: none; color: var(--teal-deep); }
.top nav { display: flex; gap: 1.4rem; align-items: center; flex-wrap: wrap; }
.top nav a { text-decoration: none; color: var(--ink-soft); font-size: 0.95rem; }
.top nav a:hover { color: var(--teal); }

.cta {
  display: inline-block; background: var(--teal); color: var(--white) !important;
  padding: 0.75rem 1.3rem; border-radius: 4px; text-decoration: none; font-weight: 600;
}
.cta:hover { background: var(--teal-deep); }
.quiet { text-decoration: none; color: var(--teal); font-weight: 500; padding: 0.7rem 0.2rem; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }

main > section { padding: clamp(3rem, 8vw, 6rem) max(var(--gutter), calc((100% - var(--wide)) / 2)); }

/* ── 히어로: 마트 진열대 실사 + 딥 틸 오버레이. 판정 화면 카드가 사진 아래 경계를 넘어온다 ── */
.hero {
  position: relative; isolation: isolate;
  padding: clamp(3rem, 8vw, 6rem) max(var(--gutter), calc((100% - var(--wide)) / 2)) 0;
  color: var(--white);
  min-height: 34rem;
}
.hero-photo { position: absolute; inset: 0 0 4rem 0; z-index: -2; margin: 0; overflow: hidden; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.hero::before {
  content: ""; position: absolute; inset: 0 0 4rem 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(7, 53, 49, 0.93) 0%, rgba(7, 53, 49, 0.82) 45%, rgba(7, 53, 49, 0.35) 100%),
    linear-gradient(180deg, rgba(7, 53, 49, 0.2), rgba(7, 53, 49, 0.55));
}
.hero-inner {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem);
  align-items: end; max-width: var(--wide); margin: 0 auto;
}
.hero h1 { font-size: clamp(2.3rem, 5.2vw, 4.2rem); color: var(--white); }
.hero .lede { margin-top: 1.5rem; color: var(--mint); max-width: 32rem; }
.hero-actions { display: flex; gap: 1.2rem; align-items: center; margin: 2rem 0 0; flex-wrap: wrap; }
.hero-copy { padding-bottom: 7.5rem; }
.hero .quiet { color: var(--mint); }
.hero .cta { background: var(--white); color: var(--teal-deep) !important; }
.hero .cta:hover { background: var(--mint); }

.register {
  margin: 0; background: var(--white); color: var(--ink); border-radius: 6px;
  box-shadow: 0 30px 60px -30px rgba(7, 53, 49, 0.6), 0 1px 0 var(--mint);
  overflow: hidden; align-self: end;
}
.register figcaption {
  display: flex; justify-content: space-between; gap: 1rem;
  background: var(--teal-deep); color: var(--mint); font-size: 0.85rem; padding: 0.7rem 1.1rem;
}
.lines { list-style: none; margin: 0; padding: 0.4rem 0; }
.lines li {
  display: grid; grid-template-columns: minmax(0, 1fr) 2.6rem auto; gap: 0.8rem; align-items: center;
  padding: 0.75rem 1.1rem;
}
.lines li + li { border-top: 1px solid var(--mint-soft); }
.lines .name { font-weight: 500; }
.lines .name small { display: block; font-size: 0.8rem; color: var(--ink-soft); font-weight: 400; }
.lines .qty { text-align: right; color: var(--ink-soft); }
.verdict { font-size: 0.82rem; font-weight: 600; padding: 0.3rem 0.6rem; border-radius: 3px; white-space: nowrap; }
.verdict.ok { color: var(--ok); background: var(--ok-bg); }
.verdict.hold { color: var(--hold); background: var(--hold-bg); }
.verdict.block { color: var(--block); background: var(--block-bg); }
.gate {
  display: flex; justify-content: space-between; gap: 1rem; align-items: baseline;
  background: var(--mint); padding: 0.9rem 1.1rem; font-size: 0.9rem; color: var(--teal-deep);
}
.gate strong { font-weight: 600; }

/* ── 현장 띠: 실사 3장, 각 사진이 실제 기능 하나를 설명 ── */
.strip {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem;
  max-width: var(--wide); margin: 0 auto; padding-top: clamp(2rem, 5vw, 4rem);
}
.strip figure { margin: 0; }
.strip img { aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; }
.strip figcaption { margin-top: 0.9rem; color: var(--ink-soft); font-size: 0.98rem; }
.strip figcaption strong { display: block; color: var(--ink); font-weight: 600; margin-bottom: 0.25rem; }

/* 이유 */
.why { background: var(--white); }
.why-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; max-width: var(--wide); }
.why-grid p { color: var(--ink-soft); }

/* 기능: 정의 목록. 좌측 틸 라인이 항목 경계 */
.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem 3rem; max-width: var(--wide); margin: 0; }
.features > div { border-left: 3px solid var(--teal); padding-left: 1.2rem; }
.features dt { font-weight: 600; font-size: 1.15rem; margin-bottom: 0.4rem; }
.features dd { margin: 0; color: var(--ink-soft); max-width: var(--measure); }

/* 규제 대응: 규제 → 동작 두 열 */
.rules { background: var(--teal-deep); color: var(--mint-soft); }
.rules h2 { color: var(--white); }
.rules .lede { color: var(--mint); }
.ruleset { list-style: none; margin: 2rem 0 0; padding: 0; max-width: var(--wide); }
.ruleset li {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 1.5rem;
  padding: 1.1rem 0; border-top: 1px solid rgba(220, 239, 234, 0.25);
}
.ruleset .rule { font-weight: 600; color: var(--white); }
.ruleset .how { color: var(--mint); }

/* ── 개발 현황: 좌측 흐름도, 우측 동작 목록, 아래 단계 ── */
.build { background: var(--white); }
.build-grid {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(2rem, 4vw, 4rem);
  max-width: var(--wide); margin-top: 2.5rem; align-items: start;
}
.flow { margin: 0; background: var(--paper); border-radius: 6px; padding: 1rem; }
.flow svg { width: 100%; height: auto; font-family: inherit; }
.flow .node rect { fill: var(--white); stroke: var(--teal); stroke-width: 1.5; }
.flow .node text { text-anchor: middle; font-size: 15px; font-weight: 600; fill: var(--ink); }
.flow .node text.sub { font-size: 11.5px; font-weight: 400; fill: var(--ink-soft); }
.flow .edges path { fill: none; stroke: var(--teal); stroke-width: 2; marker-end: url(#arr); }
.flow text.note { text-anchor: middle; font-size: 12.5px; fill: var(--ink-soft); }
.progress ul { list-style: none; margin: 0; padding: 0; }
.progress li { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: 1rem; padding: 0.7rem 0; border-top: 1px solid var(--mint); }
.progress li span:first-child { font-weight: 600; }
.progress li span:last-child { color: var(--ink-soft); }
.progress .tests { margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid var(--mint); color: var(--ink-soft); }
.progress .tests strong { color: var(--teal-deep); font-weight: 600; }

.roadmap {
  list-style: none; margin: 3rem 0 0; padding: 0; max-width: var(--wide);
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.2rem;
}
.roadmap li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.8rem; align-items: start; padding-top: 1rem; border-top: 3px solid var(--mint); }
.roadmap li.done { border-top-color: var(--teal); }
.roadmap li.now { border-top-color: var(--hold); }
.roadmap .step {
  width: 1.9rem; height: 1.9rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--mint); color: var(--teal-deep); font-weight: 600; font-size: 0.9rem;
}
.roadmap li.done .step { background: var(--teal); color: var(--white); }
.roadmap li.now .step { background: var(--hold-bg); color: var(--hold); }
.roadmap strong { display: block; font-weight: 600; margin-bottom: 0.2rem; }
.roadmap div > span { color: var(--ink-soft); font-size: 0.95rem; }

/* 개발 일지: 날짜 → 한 일 */
.journal { max-width: var(--wide); margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--mint); }
.journal dl { margin: 0; }
.journal dl > div { display: grid; grid-template-columns: 6rem minmax(0, 1fr); gap: 1rem; padding: 0.8rem 0; border-top: 1px solid var(--mint-soft); }
.journal dt { font-weight: 600; color: var(--teal-deep); }
.journal dd { margin: 0; color: var(--ink-soft); max-width: 52rem; }

/* 도입 대상: 글 + 세로 실사 */
.who-inner { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); max-width: var(--wide); align-items: center; }
.who-list { margin: 0; padding-left: 1.2rem; max-width: var(--measure); }
.who-list li { margin-bottom: 0.5rem; }
.who .note { margin-top: 1.5rem; color: var(--ink-soft); max-width: var(--measure); }
.who-inner img { aspect-ratio: 3 / 4; object-fit: cover; border-radius: 4px; max-height: 28rem; justify-self: end; }

/* 문의 */
.contact { background: var(--mint-soft); }
.contact p { max-width: var(--measure); margin-bottom: 1.5rem; color: var(--ink-soft); }

footer {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding: 2rem var(--gutter); font-size: 0.9rem; color: var(--ink-soft);
}
footer a { color: var(--teal); }

@media (max-width: 1100px) {
  .roadmap { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .hero { padding-top: 2.5rem; min-height: 0; }
  .hero-photo, .hero::before { inset: 0 0 10rem 0; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-copy { padding-bottom: 2.5rem; }
  .register { margin-top: 0; }
  .strip, .why-grid, .features, .build-grid, .who-inner { grid-template-columns: 1fr; }
  .who-inner img { justify-self: start; max-height: 22rem; }
  .ruleset li { grid-template-columns: 1fr; gap: 0.4rem; }
  .roadmap { grid-template-columns: 1fr 1fr; }
  .progress li { grid-template-columns: 1fr; gap: 0.2rem; }
  .journal dl > div { grid-template-columns: 1fr; gap: 0.2rem; }
  .top nav { gap: 1rem; }
}
@media (max-width: 520px) {
  .top nav a:not(.cta) { display: none; }   /* 좁은 화면: 브랜드 + 문의 버튼만 */
  .roadmap { grid-template-columns: 1fr; }
  .lines li { grid-template-columns: minmax(0, 1fr) auto; }
  .lines .qty { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
