/* 오토디앤디 회사 소개 — DNDWorks 앱 "계측 콘솔" 디자인 시스템을 웹으로 옮김.
   차가운 블루그레이 캔버스 + AD 브랜드 블루 단일 액센트. 그라데이션·글로우 없이
   1px 라인과 여백으로 구조를 만들고, 측정값은 온도(주황)·습도(파랑)로 색을 분리. */

:root {
  --brand: #0068b7;
  --brand-dark: #00528f;
  --brand-tint: #e7f1fa;
  --brand-tint-strong: #cfe3f5;
  --accent: #00528f;
  --accent-tint: #e3eef8;
  --ink: #1f2c3b;
  --ink-muted: #667385;
  --ink-faint: #98a4b3;
  --canvas: #fbfcfe;
  --surface: #ffffff;
  --line: #dee3ea;
  --line-strong: #d0d8e1;
  --temp: #d55c15;
  --temp-tint: #fcefe6;
  --humidity: #137e9f;
  --humidity-tint: #e6f4fa;
  --success: #2c8c6c;
  --success-tint: #eaf7f1;
  --warning: #c97a0c;
  --warning-tint: #fbf2e2;
  --slate: #738296;
  --slate-tint: #eef1f6;
  --r-sm: 6px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-xl: 16px;
  --shadow: 0 3px 12px rgba(30, 45, 69, 0.06);
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, "Apple SD Gothic Neo", "Noto Sans KR", "Segoe UI", Roboto, sans-serif;
  --wrap: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  font-weight: 500;
  color: var(--ink);
  background: var(--canvas);
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; line-height: 1.2; }
p { margin: 0; }
.wrap { width: min(var(--wrap), 100% - 48px); margin-inline: auto; }
@media (max-width: 640px) { .wrap { width: calc(100% - 40px); } }

.skip-link {
  position: absolute; left: -9999px; top: 8px; z-index: 100;
  background: var(--ink); color: #fff; padding: 8px 12px; border-radius: var(--r-sm);
}
.skip-link:focus { left: 8px; color: #fff; }

/* ---------- Header ---------- */
header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 252, 254, 0.92);
  backdrop-filter: saturate(160%) blur(8px);
  -webkit-backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; font-size: 15px; letter-spacing: -0.02em; }
.logo img { height: 26px; width: auto; }
.logo .en { color: var(--ink-muted); font-weight: 600; font-size: 12px; letter-spacing: 0.04em; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  color: var(--ink-muted); font-weight: 600; font-size: 14px;
  padding: 8px 12px; border-radius: var(--r-sm);
}
.nav-links a:hover { color: var(--ink); background: var(--slate-tint); }
.nav-links a.active { color: var(--brand); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 16px; border-radius: var(--r-md);
  font-weight: 700; font-size: 14px; letter-spacing: -0.01em;
  transition: transform 110ms ease-out, background-color 120ms ease;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-ghost { background: var(--surface); color: var(--ink); border: 1px solid var(--line-strong); }
.btn-ghost:hover { background: var(--slate-tint); color: var(--ink); }
.btn-lg { height: 50px; padding: 0 22px; font-size: 16px; }
.nav .btn { margin-left: 8px; }
.nav-toggle { display: none; }
@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; left: 0; right: 0; top: 64px;
    background: var(--surface); border-bottom: 1px solid var(--line);
    padding: 12px 20px 16px; gap: 2px; box-shadow: var(--shadow);
  }
  .nav-links.open .btn { margin: 8px 0 0; }
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: var(--r-sm);
    border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink);
    font-size: 18px; cursor: pointer;
  }
}

/* ---------- Typography helpers ---------- */
.overline {
  display: block; font-size: 11px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink-muted); margin-bottom: 10px;
}
.overline.brand { color: var(--brand); }
h2.title { font-size: clamp(22px, 3vw, 28px); font-weight: 700; }
.lead { font-size: 16px; color: var(--ink-muted); max-width: 640px; margin-top: 12px; }
.en { display: block; color: var(--ink-faint); font-size: 12.5px; font-weight: 500; margin-top: 4px; letter-spacing: 0; }

section { padding: 88px 0; }
section + section { border-top: 1px solid var(--line); }
@media (max-width: 640px) { section { padding: 64px 0; } }

/* ---------- Hero ---------- */
.hero { padding: 96px 0 80px; }
.hero .grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }
.hero .grid > *, .service .grid > *, .biz > * { min-width: 0; }
.hero h1 { word-break: keep-all; overflow-wrap: anywhere; }
.hero h1 { font-size: clamp(30px, 4.6vw, 46px); font-weight: 700; line-height: 1.16; letter-spacing: -0.03em; }
.hero h1 .accent { color: var(--brand); }
.hero .lead { font-size: 17px; margin-top: 20px; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.hero .meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 36px; }
.hero .meta div { font-size: 13px; color: var(--ink-muted); }
.hero .meta b { display: block; font-size: 15px; color: var(--ink); font-weight: 700; margin-bottom: 2px; font-variant-numeric: tabular-nums; }
@media (max-width: 860px) {
  .hero .grid { grid-template-columns: 1fr; gap: 40px; }
}

/* 앱 화면을 CSS로 재구성한 모형 — 앱 홈 탭의 계측 카드 톤 */
.phone {
  justify-self: center; width: 300px; max-width: 100%;
  background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: 28px; padding: 18px 16px 20px; box-shadow: var(--shadow);
}
.phone .bar { display: flex; justify-content: space-between; align-items: center; font-size: 11px; color: var(--ink-faint); font-weight: 600; padding: 0 6px 14px; }
.phone .bar img { height: 18px; }
.phone .ttl { font-size: 17px; font-weight: 700; padding: 0 6px; }
.phone .sub { font-size: 12px; color: var(--ink-muted); padding: 2px 6px 14px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 14px; box-shadow: var(--shadow);
}
.card + .card { margin-top: 10px; }
.card .row { display: flex; justify-content: space-between; align-items: center; }
.card .place { font-size: 13px; font-weight: 600; }
.card .time { font-size: 11px; color: var(--ink-faint); font-variant-numeric: tabular-nums; }
.readouts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.readout { border-radius: var(--r-md); padding: 10px 12px; }
.readout .k { font-size: 10.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.readout .v { font-size: 24px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; margin-top: 6px; font-variant-numeric: tabular-nums; }
.readout .v small { font-size: 12px; font-weight: 600; margin-left: 2px; letter-spacing: 0; }
.readout.t { background: var(--temp-tint); color: var(--temp); }
.readout.h { background: var(--humidity-tint); color: var(--humidity); }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; padding: 4px 8px; border-radius: 999px; }
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip.ok { color: var(--success); background: var(--success-tint); }
.chip.wait { color: var(--warning); background: var(--warning-tint); }
.phone .fab { margin-top: 14px; height: 44px; border-radius: var(--r-md); background: var(--brand); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; }

/* ---------- Business ---------- */
.biz { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 36px; }
.biz .item {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 26px 24px 28px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 12px;
}
.biz .item .idx { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; color: var(--brand); text-transform: uppercase; }
.biz .item h3 { font-size: 18px; font-weight: 700; }
.biz .item p { color: var(--ink-muted); font-size: 14.5px; }
.biz .item .tag { margin-top: auto; padding-top: 10px; font-size: 12.5px; color: var(--ink-faint); border-top: 1px solid var(--line); }
@media (max-width: 860px) { .biz { grid-template-columns: 1fr; } }

/* ---------- Service (DNDWorks) ---------- */
.service .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.service .app-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.service .app-head img { width: 56px; height: 56px; border-radius: 14px; border: 1px solid var(--line); }
.service .app-head b { display: block; font-size: 18px; font-weight: 700; }
.service .app-head span { font-size: 13px; color: var(--ink-muted); }
.steps { list-style: none; margin: 28px 0 0; padding: 0; border-top: 1px solid var(--line); }
.steps li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.steps .n { font-size: 12px; font-weight: 700; color: var(--brand); letter-spacing: 0.06em; padding-top: 3px; font-variant-numeric: tabular-nums; }
.steps b { display: block; font-size: 15px; font-weight: 700; margin-bottom: 3px; }
.steps p { font-size: 14px; color: var(--ink-muted); }
.status-line { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13px; color: var(--ink-muted); }
@media (max-width: 860px) { .service .grid { grid-template-columns: 1fr; gap: 36px; } }

/* ---------- Company table ---------- */
table.info { width: 100%; border-collapse: collapse; margin-top: 32px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); }
table.info th, table.info td { text-align: left; vertical-align: top; padding: 15px 20px; border-top: 1px solid var(--line); font-size: 14.5px; }
table.info tr:first-child th, table.info tr:first-child td { border-top: 0; }
table.info th { width: 168px; color: var(--ink-muted); font-weight: 600; background: var(--slate-tint); }
table.info td { font-weight: 600; font-variant-numeric: tabular-nums; }
table.info td .en { font-weight: 500; }
@media (max-width: 640px) {
  table.info th, table.info td { display: block; width: auto; padding: 12px 16px; }
  table.info th { border-top: 1px solid var(--line); padding-bottom: 4px; background: transparent; font-size: 12px; }
  table.info td { border-top: 0; padding-top: 0; }
  table.info tr:first-child th { border-top: 0; }
}

/* ---------- Contact ---------- */
.contact-box { margin-top: 32px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.contact-box .cell { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px 22px 24px; box-shadow: var(--shadow); }
.contact-box .label { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); }
.contact-box .value { margin-top: 8px; font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; word-break: keep-all; }
.contact-box .value a { color: var(--ink); }
.contact-box .value a:hover { color: var(--brand); }
.contact-box .note { margin-top: 6px; font-size: 13px; color: var(--ink-muted); }
@media (max-width: 860px) { .contact-box { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line); padding: 40px 0 48px; background: var(--surface); color: var(--ink-muted); font-size: 13px; }
footer .top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; align-items: center; margin-bottom: 20px; }
footer nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
footer nav a { color: var(--ink-muted); font-weight: 600; }
footer nav a:hover { color: var(--ink); }
footer .lines div { margin-top: 4px; }
footer .foot-name { color: var(--ink); font-weight: 700; font-size: 14px; }

/* ---------- Document pages (privacy, support) ---------- */
.doc { padding: 72px 0 96px; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(26px, 3.4vw, 34px); font-weight: 700; }
.doc .meta { margin-top: 12px; color: var(--ink-muted); font-size: 14px; }
.doc h2 { font-size: 19px; font-weight: 700; margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line); }
.doc h3 { font-size: 15.5px; font-weight: 700; margin-top: 22px; }
.doc p { margin-top: 12px; color: var(--ink); }
.doc ul, .doc ol { margin: 10px 0 0; padding-left: 20px; }
.doc li { margin-top: 6px; }
.doc li::marker { color: var(--ink-faint); }
.doc table { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 11px 14px; border-top: 1px solid var(--line); }
.doc tr:first-child th { border-top: 0; }
.doc th { background: var(--slate-tint); color: var(--ink-muted); font-weight: 600; font-size: 13px; }
.doc .callout { margin-top: 18px; border: 1px solid var(--brand-tint-strong); background: var(--brand-tint); border-radius: var(--r-md); padding: 14px 16px; font-size: 14px; }
.doc .callout b { color: var(--brand-dark); }
.doc .table-wrap { overflow-x: auto; }
.faq { margin-top: 8px; }
.faq details { border-top: 1px solid var(--line); padding: 4px 0; }
.faq details:first-child { border-top: 0; }
.faq summary { cursor: pointer; font-weight: 700; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--ink-faint); font-weight: 600; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 16px; color: var(--ink-muted); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity 420ms ease, transform 420ms ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
