/* 홈노트 웹 (앱과 같은 파랑·둥근 글꼴) */
:root {
  --bg: #f6f7fa;
  --surface: #ffffff;
  --fg: #1a1a1a;
  --muted: #5d6470;
  --line: #e1e5ec;
  --accent: #2563eb;
  --accent-deep: #1d4ed8;
  --accent-soft: #e6eeff;
  --display: 'Jua', 'Apple SD Gothic Neo', 'Malgun Gothic', system-ui, sans-serif;
  --body:
    system-ui, -apple-system, 'Apple SD Gothic Neo', 'Malgun Gothic', 'Noto Sans KR', sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121418;
    --surface: #1b1e24;
    --fg: #eceef2;
    --muted: #a3aab6;
    --line: #2e333c;
    --accent: #7aa2ff;
    --accent-deep: #5b8bff;
    --accent-soft: #1f2a45;
    color-scheme: dark;
  }
}
* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.7 var(--body);
  word-break: keep-all;
  overflow-wrap: anywhere;
}
a {
  color: var(--accent);
}
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
img {
  max-width: 100%;
}

.top,
main,
.foot {
  max-width: 980px;
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left));
  padding-right: max(20px, env(safe-area-inset-right));
}
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 18px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 22px var(--display);
  color: var(--fg);
  text-decoration: none;
}
.brand img {
  border-radius: 8px;
}
.foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  padding-block: 36px 48px;
  margin-top: 48px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}
.foot a {
  color: var(--muted);
  text-decoration: none;
}
.foot a:hover {
  color: var(--fg);
}
.foot .biz {
  flex-basis: 100%;
  color: var(--muted);
  font-size: 13px;
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.3;
  text-wrap: balance;
}

/* ---------- 첫 화면 ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  padding-block: 40px 24px;
}
.hero h1 {
  font-size: clamp(36px, 6vw, 56px);
  margin: 16px 0 12px;
  letter-spacing: -0.01em;
}
.hero p {
  font-size: 18px;
  color: var(--muted);
  margin: 0 0 24px;
  max-width: 34ch;
}
.app-icon {
  width: 88px;
  height: 88px;
  border-radius: 22.4%;
  box-shadow: 0 10px 28px rgba(37, 99, 235, 0.28);
}
.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.store {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 20px;
  border-radius: 14px;
  background: var(--fg);
  color: var(--bg);
  text-decoration: none;
  font-weight: 700;
}
.store[aria-disabled='true'] {
  opacity: 0.55;
  pointer-events: none;
}
.store small {
  display: block;
  font-weight: 400;
  font-size: 12px;
  opacity: 0.8;
  line-height: 1.2;
}
.phones {
  display: flex;
  gap: 14px;
  justify-content: center;
}
.phone {
  width: 46%;
  max-width: 220px;
  border-radius: 26px;
  border: 6px solid var(--surface);
  box-shadow: 0 14px 40px rgba(20, 30, 60, 0.18);
  background: var(--surface);
}
.phone:nth-child(2) {
  transform: translateY(36px);
}

.section {
  padding-block: 56px 8px;
}
.section > h2 {
  font-size: clamp(26px, 4vw, 34px);
  margin: 0 0 8px;
}
.section > p.lead {
  color: var(--muted);
  margin: 0 0 28px;
  max-width: 60ch;
}
.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.feature {
  background: var(--surface);
  border-radius: 20px;
  padding: 22px;
  border: 1px solid var(--line);
}
.feature .emoji {
  font-size: 30px;
}
.feature h3 {
  font-size: 21px;
  margin: 6px 0 4px;
}
.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}
.gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.gallery figure {
  margin: 0;
  display: grid;
  gap: 8px;
}
.gallery img {
  border-radius: 20px;
  border: 1px solid var(--line);
}
.gallery figcaption {
  font-size: 14px;
  color: var(--muted);
  text-align: center;
}

.price {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.price th,
.price td {
  padding: 14px 16px;
  text-align: center;
  border-bottom: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
}
.price th:first-child,
.price td:first-child {
  text-align: left;
  color: var(--muted);
}
.price thead th {
  font-family: var(--display);
  font-weight: 400;
  font-size: 19px;
}
.price .best {
  color: var(--accent);
  font-weight: 700;
}
.price-note {
  color: var(--muted);
  font-size: 14px;
}

/* ---------- 문서·안내 페이지 ---------- */
.doc main {
  max-width: 760px;
}
.legal h1,
.page h1 {
  font-size: clamp(30px, 5vw, 40px);
  margin: 16px 0 8px;
}
.legal h2,
.page h2 {
  font-size: 22px;
  margin: 36px 0 8px;
  scroll-margin-top: 16px;
}
.legal p,
.legal li,
.page p,
.page li {
  max-width: 68ch;
}
.legal ol,
.legal ul {
  padding-left: 1.3em;
}
.legal code {
  font-size: 0.9em;
  background: var(--accent-soft);
  padding: 1px 5px;
  border-radius: 4px;
}
.table {
  overflow-x: auto;
  margin: 12px 0;
}
.table table {
  border-collapse: collapse;
  min-width: 560px;
  font-size: 14px;
}
.table th,
.table td {
  border: 1px solid var(--line);
  padding: 8px 10px;
  vertical-align: top;
  text-align: left;
}
.table th {
  background: var(--accent-soft);
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px 22px;
  margin: 16px 0;
}
.steps {
  counter-reset: s;
  list-style: none;
  padding: 0;
  display: grid;
  gap: 10px;
}
.steps li {
  counter-increment: s;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  align-items: start;
}
.steps li::before {
  content: counter(s);
  font: 18px var(--display);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
}
details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 4px 18px;
  margin: 10px 0;
}
summary {
  cursor: pointer;
  padding: 12px 0;
  font-weight: 700;
}
details[open] summary {
  border-bottom: 1px solid var(--line);
  margin-bottom: 8px;
}
.copy {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.code {
  font: 28px var(--display);
  letter-spacing: 0.08em;
  padding: 10px 18px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--fg);
  user-select: all;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--fg);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}
.btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.muted {
  color: var(--muted);
}
.mail {
  font-weight: 700;
  user-select: all;
}

@media (max-width: 760px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 16px;
  }
  .phones {
    order: 2;
  }
  .features {
    grid-template-columns: 1fr;
  }
  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (prefers-reduced-motion: no-preference) {
  .feature,
  .store,
  .btn {
    transition: transform 0.15s ease;
  }
  .store:hover,
  .btn:hover {
    transform: translateY(-1px);
  }
}
