* { box-sizing: border-box; }

:root {
  --page-bg: #f4f6f8;
  --surface: #ffffff;
  --surface-soft: #e9eef2;
  --ink: #12161d;
  --muted: #5d6876;
  --line: #dce3ea;
  --brand: #0b6b4f;
  --brand-strong: #064b38;
  --brand-soft: #dff4ec;
  --accent: #d97817;
  --accent-soft: #fff1df;
  --up: #d4322f;
  --down: #2869d8;
  --shadow: 0 18px 42px rgba(16, 24, 40, 0.09);
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--page-bg);
  color: var(--ink);
  font-family: "Malgun Gothic", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

body {
  min-width: 320px;
}

a {
  color: var(--brand-strong);
}

.site-shell {
  min-height: 100vh;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.site-nav-inner,
.content-inner,
.hero-inner,
.site-footer-inner {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.site-nav-inner {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--brand-strong);
  font-size: 18px;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.brand img {
  display: block;
  border-radius: 7px;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
}

.nav-links a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  background: var(--brand-soft);
  color: var(--brand-strong);
}

.hero {
  background:
    radial-gradient(circle at 78% 18%, rgba(217, 120, 23, 0.16), transparent 28%),
    linear-gradient(135deg, #073c32 0%, #0d1a22 58%, #17202b 100%);
  color: #fff;
}

.hero-product {
  overflow: hidden;
  background:
    radial-gradient(circle at 80% 20%, rgba(217, 120, 23, 0.13), transparent 26%),
    linear-gradient(135deg, #f7fbf8, #eef4f7);
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  min-height: 680px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.8fr);
  align-items: center;
  gap: 56px;
  padding: 78px 0 72px;
}

.hero-copy {
  max-width: 680px;
}

.eyebrow {
  margin: 0 0 14px;
  color: #aef1d7;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow.dark {
  color: var(--brand);
}

.hero-product .eyebrow {
  color: var(--brand);
}

.hero h1,
.page-head h1 {
  margin: 0;
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.08;
  letter-spacing: 0;
}

.hero-lead,
.page-head p,
.section-lead {
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 17px;
}

.hero-product .hero-lead {
  color: var(--muted);
}

.section-lead,
.page-head p {
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-actions a {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 8px;
  font-weight: 900;
  text-decoration: none;
}

.hero-actions .primary {
  background: #fff;
  color: var(--ink);
}

.hero-actions .secondary {
  border: 1px solid rgba(255, 255, 255, 0.44);
  color: #fff;
}

.hero-product .hero-actions .primary {
  background: var(--brand-strong);
  color: #fff;
}

.hero-product .hero-actions .secondary {
  border-color: var(--line);
  color: var(--brand-strong);
}

.hero-actions.light .primary {
  background: var(--brand-strong);
  color: #fff;
}

.hero-actions.light .secondary {
  border-color: var(--line);
  color: var(--brand-strong);
}

.phone-showcase {
  display: flex;
  justify-content: center;
}

.phone-frame {
  width: min(330px, 100%);
  min-height: 600px;
  padding: 18px;
  border: 10px solid #f8fafc;
  border-radius: 34px;
  background: #f6f8fa;
  color: var(--ink);
  box-shadow: 0 30px 70px rgba(16, 24, 40, 0.18);
  transform: rotate(2deg);
}

.phone-status,
.app-top,
.metric-row,
.sector-card,
.stock-list div,
.tab-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.phone-status {
  color: #7c8795;
  font-size: 11px;
  font-weight: 800;
}

.app-top {
  margin-top: 18px;
  padding: 16px;
  border-radius: 14px;
  background: #0c141b;
  color: #fff;
}

.app-top span {
  color: #9ba9b8;
  font-size: 12px;
}

.metric-row {
  gap: 10px;
  margin-top: 14px;
}

.metric-row div {
  flex: 1;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.metric-row span,
.contact-card span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.metric-row strong {
  display: block;
  margin-top: 4px;
  font-size: 18px;
}

.sector-card {
  margin-top: 14px;
  padding: 18px;
  border-radius: 16px;
  background: var(--brand-soft);
  border: 1px solid #bfe7d7;
}

.sector-card strong {
  display: block;
  margin-top: 6px;
  font-size: 20px;
}

.rank {
  display: inline-flex;
  padding: 3px 8px;
  border-radius: 999px;
  background: #fff;
  color: var(--brand-strong);
  font-size: 11px;
  font-weight: 900;
}

.stock-list {
  margin-top: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.stock-list div {
  min-height: 52px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
}

.stock-list div:last-child {
  border-bottom: 0;
}

.tab-preview {
  margin-top: 18px;
  padding: 8px;
  border-radius: 16px;
  background: #e9eef3;
  gap: 6px;
}

.tab-preview span {
  flex: 1;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: #6d7785;
  font-size: 12px;
  font-weight: 900;
}

.tab-preview .active {
  background: #fff;
  color: var(--brand-strong);
  box-shadow: 0 6px 14px rgba(16, 24, 40, 0.08);
}

.up {
  color: var(--up);
}

.down {
  color: var(--down);
}

.content-band {
  padding: 62px 0;
}

.content-band.compact {
  padding-top: 26px;
}

.content-band.soft {
  background: var(--surface-soft);
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
  gap: 42px;
  align-items: start;
}

.section-title {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.18;
  letter-spacing: 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature-item,
.info-panel,
.policy,
.side-note,
.contact-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.feature-item {
  min-height: 210px;
  padding: 22px;
}

.feature-number {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
}

.feature-item h3,
.info-panel h2,
.side-note h2,
.contact-card strong {
  margin: 16px 0 8px;
  font-size: 21px;
  line-height: 1.25;
}

.feature-item p,
.info-panel p,
.info-panel li,
.side-note p,
.side-note li,
.policy p,
.policy li,
.faq-list p {
  color: var(--muted);
  font-size: 15px;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.78fr);
  gap: 24px;
  align-items: start;
}

.info-panel,
.side-note,
.contact-card {
  padding: 24px;
}

.info-panel h2,
.side-note h2 {
  margin-top: 0;
}

.notice-panel {
  border-color: #f1c27c;
  background: #fffaf3;
}

.check-list {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  margin: 10px 0;
  padding-left: 24px;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--brand);
}

.page-head {
  padding: 76px 0 54px;
  background:
    linear-gradient(135deg, rgba(223, 244, 236, 0.95), rgba(255, 255, 255, 0.92)),
    var(--surface);
  border-bottom: 1px solid var(--line);
}

.page-head h1 {
  max-width: 820px;
  color: var(--ink);
}

.page-head p {
  max-width: 740px;
}

.support-head {
  background:
    radial-gradient(circle at 80% 20%, rgba(217, 120, 23, 0.13), transparent 26%),
    linear-gradient(135deg, #f7fbf8, #eef4f7);
}

.policy-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 28px 0 0;
}

.policy-summary div {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.policy-summary dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.policy-summary dd {
  margin: 6px 0 0;
  font-weight: 900;
}

.policy-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: start;
}

.policy {
  padding: 34px;
}

.policy h2 {
  margin: 34px 0 10px;
  font-size: 22px;
  line-height: 1.25;
}

.policy h2:first-child {
  margin-top: 0;
}

.policy ul,
.side-note ul {
  padding-left: 20px;
}

.side-note {
  position: sticky;
  top: 88px;
}

.contact-card {
  background: #fff;
}

.contact-card strong {
  display: block;
  margin-top: 8px;
  overflow-wrap: anywhere;
}

.support-grid .feature-item {
  min-height: 190px;
}

.faq-list {
  max-width: 880px;
}

.faq-list details {
  border-top: 1px solid var(--line);
  background: #fff;
}

.faq-list details:last-child {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  cursor: pointer;
  padding: 18px 4px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 900;
}

.faq-list p {
  margin: 0;
  padding: 0 4px 18px;
}

/* ── 랜딩: 실제 앱 화면·설치 유도 (2026-11-12) ── */
.nav-links a.nav-install {
  background: var(--brand-strong);
  color: #fff;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.hero-points li::before {
  content: "✓ ";
  color: var(--brand);
}

.shot-phone {
  width: min(320px, 100%);
  margin: 0;
  padding: 10px;
  border-radius: 34px;
  background: #11161d;
  box-shadow: 0 30px 70px rgba(16, 24, 40, 0.22);
  transform: rotate(2deg);
}

.shot-phone img,
.shot-gallery img {
  display: block;
  width: 100%;
  height: auto;
}

.shot-phone img {
  border-radius: 25px;
}

.shot-gallery {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.shot-gallery figure {
  margin: 0;
}

.shot-gallery img {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow);
}

.shot-gallery figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 900;
  text-align: center;
}

.landing-faq {
  margin-top: 24px;
}

.store-band {
  background:
    radial-gradient(circle at 85% 20%, rgba(217, 120, 23, 0.22), transparent 30%),
    linear-gradient(135deg, #073c32 0%, #0d1a22 70%);
  color: #fff;
}

.store-band-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.store-band h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.25;
}

.store-band p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.78);
}

.store-band .hero-actions {
  margin-top: 0;
}

/* ── 기기별 첫 행동 (2026-11-12, index.html 스크립트가 html 에 클래스를 붙인다) ── */
.device-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

/* Android: 설치가 먼저, 웹은 작은 글자 링크 */
.is-android .hero-actions .secondary {
  min-height: 46px;
  padding: 0 8px;
  border: 0;
  background: transparent;
  font-size: 14px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.is-android .hero-product .hero-actions .secondary {
  color: var(--muted);
}

.is-android .store-band .hero-actions .secondary {
  color: rgba(255, 255, 255, 0.78);
}

/* iPhone/iPad: 앱이 없으므로 Play 버튼을 감추고 웹 보기를 주 버튼으로 */
.is-ios a[data-play-link],
.is-ios .nav-install {
  display: none;
}

.is-ios .hero-product .hero-actions .secondary {
  border-color: var(--brand-strong);
  background: var(--brand-strong);
  color: #fff;
}

.is-ios .store-band .hero-actions .secondary {
  border-color: #fff;
  background: #fff;
  color: var(--ink);
}

/* ── 장 마감 브리핑 (/briefing/, tools/publish_close_report.py 가 만든다) ── */
.brief-page {
  max-width: 860px;
  padding: 44px 0 64px;
}

.brief-page h1 {
  margin: 0;
  font-size: clamp(28px, 4.4vw, 40px);
  line-height: 1.2;
}

.brief-lede {
  margin: 14px 0 6px;
  color: var(--brand-strong);
  font-size: 18px;
  font-weight: 900;
}

.brief-page .muted,
.brief-section .muted {
  color: var(--muted);
  font-size: 13px;
}

.brief-section {
  margin-top: 34px;
}

.brief-section h2 {
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--line);
  font-size: 22px;
}

.brief-section h3 {
  margin: 18px 0 8px;
  font-size: 18px;
}

.brief-section p {
  margin: 0 0 10px;
  font-size: 16px;
  line-height: 1.75;
}

.brief-table {
  width: 100%;
  margin: 12px 0;
  border-collapse: collapse;
  font-size: 15px;
}

.brief-table th,
.brief-table td {
  padding: 9px 8px;
  border-bottom: 1px solid var(--line);
  text-align: right;
  white-space: nowrap;
}

.brief-table th:first-child,
.brief-table td:first-child,
.brief-table td:nth-child(2) {
  text-align: left;
}

.brief-table thead th {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.brief-table.compact td,
.brief-table.compact th {
  padding: 6px 8px;
}

.brief-section .up,
.brief-page .up {
  color: var(--up);
  font-weight: 800;
}

.brief-section .down,
.brief-page .down {
  color: var(--down);
  font-weight: 800;
}

.brief-sector {
  margin: 14px 0;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}

.brief-sector h3 {
  margin-top: 0;
}

.brief-badge {
  display: inline-flex;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  vertical-align: middle;
}

.brief-badge.new {
  background: var(--brand-soft);
  color: var(--brand-strong);
}

.brief-issues,
.brief-news,
.brief-timeline {
  margin: 10px 0 0;
  padding-left: 18px;
  font-size: 15px;
  line-height: 1.7;
}

.brief-timeline {
  padding-left: 0;
  list-style: none;
}

.brief-timeline time {
  display: inline-block;
  min-width: 52px;
  color: var(--muted);
  font-weight: 800;
}

.brief-flow {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.brief-flow ol {
  margin: 0;
  padding-left: 20px;
}

.brief-flow li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 4px 0;
  border-bottom: 1px dashed var(--line);
}

.brief-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.brief-chips span {
  padding: 4px 10px;
  border-radius: 999px;
  background: #fdecec;
  color: var(--up);
  font-size: 14px;
  font-weight: 800;
}

.brief-chips small {
  color: var(--muted);
  font-weight: 600;
}

.brief-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 40px 0 18px;
  padding: 18px 20px;
  border-radius: 12px;
  background: var(--brand-soft);
}

.brief-cta div {
  display: flex;
  flex: 1 1 260px;
  flex-direction: column;
}

.brief-cta strong {
  font-size: 17px;
}

.brief-cta span {
  color: var(--muted);
  font-size: 14px;
}

.brief-cta a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 8px;
  font-weight: 900;
  text-decoration: none;
}

.brief-cta .primary {
  background: var(--brand-strong);
  color: #fff;
}

.brief-cta .secondary {
  border: 1px solid var(--brand-strong);
  color: var(--brand-strong);
}

.brief-disclaimer {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.brief-pager {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 26px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-weight: 800;
}

.brief-archive {
  margin: 0;
  padding: 0;
  list-style: none;
}

.brief-archive a {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  padding: 12px 4px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
}

.brief-archive a:hover {
  background: var(--surface-soft);
}

.brief-archive time {
  min-width: 170px;
  color: var(--brand-strong);
  font-weight: 900;
}

.brief-latest {
  display: inline-block;
  margin: 8px 0;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--brand-soft);
  font-weight: 900;
  text-decoration: none;
}

.brief-promo {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brief-promo h2 {
  margin: 0 0 6px;
}

.brief-promo .primary {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 8px;
  background: var(--brand-strong);
  color: #fff;
  font-weight: 900;
  text-decoration: none;
}

@media (max-width: 640px) {
  .brief-flow {
    grid-template-columns: 1fr;
  }

  .brief-table {
    font-size: 14px;
  }

  .brief-table th:nth-child(5),
  .brief-table td:nth-child(5) {
    display: none;
  }

  .brief-table td:nth-child(2) {
    white-space: normal;
  }
}

.not-found {
  padding: 90px 0;
  text-align: center;
}

.not-found .hero-actions {
  justify-content: center;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #fff;
}

.site-footer-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 900px) {
  .site-nav-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 12px 0;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .hero-inner,
  .intro-grid,
  .split-layout,
  .policy-layout {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    min-height: auto;
    padding: 56px 0 60px;
  }

  .phone-frame,
  .shot-phone {
    transform: none;
  }

  .shot-gallery {
    grid-template-columns: repeat(5, 62%);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 10px;
  }

  .shot-gallery figure {
    scroll-snap-align: start;
  }

  .feature-grid,
  .policy-summary {
    grid-template-columns: 1fr;
  }

  .side-note {
    position: static;
  }
}

@media (max-width: 520px) {
  .site-nav-inner,
  .content-inner,
  .hero-inner,
  .site-footer-inner {
    width: min(100% - 28px, 1120px);
  }

  .nav-links a {
    padding: 0 8px;
    font-size: 13px;
  }

  .hero h1,
  .page-head h1 {
    font-size: 34px;
  }

  .hero-lead,
  .page-head p,
  .section-lead {
    font-size: 16px;
  }

  .phone-frame {
    min-height: 560px;
    border-width: 8px;
  }

  .content-band {
    padding: 46px 0;
  }

  .feature-item,
  .info-panel,
  .policy,
  .side-note,
  .contact-card {
    padding: 20px;
  }

  .site-footer-inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
  }
}
