/* Marketing surfaces — proposal + employee intro
   Direction: Innored Ink · enterprise editorial · award-grade restraint */

.page-mkt,
.page-pub {
  --mkt-max: 1180px;
  --mkt-gutter: clamp(20px, 5vw, 56px);
  --mkt-display: clamp(2.85rem, 7.2vw, 5.25rem);
  --mkt-title: clamp(1.65rem, 3.2vw, 2.35rem);
  --mkt-lead: clamp(1.05rem, 1.35vw, 1.2rem);
  background:
    radial-gradient(1200px 520px at 12% -8%, rgba(17, 17, 17, 0.045), transparent 55%),
    radial-gradient(900px 480px at 92% 8%, rgba(14, 116, 144, 0.05), transparent 50%),
    var(--bg);
  color: var(--text);
  overflow-x: clip;
}

.page-mkt::before,
.page-pub::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.page-mkt > *,
.page-pub > * {
  position: relative;
  z-index: 1;
}

/* ——— Top bars ——— */
.mkt-top,
.pub-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px var(--mkt-gutter);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  background: rgba(247, 247, 245, 0.78);
  border-bottom: 1px solid transparent;
  transition: border-color 220ms var(--ease), background 220ms var(--ease);
}

.mkt-top.is-scrolled,
.pub-top.is-scrolled {
  border-bottom-color: var(--border);
  background: rgba(247, 247, 245, 0.92);
}

.mkt-brand,
.pub-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}

.mkt-brand .brand-name,
.pub-brand .brand-name {
  font-size: 14px;
}
.mkt-kicker-brand {
  letter-spacing: normal;
  text-transform: none;
  gap: 0;
}
.mkt-kicker-brand .brand-name {
  font-size: 12px;
}
.mkt-kicker-brand .brand-innored {
  color: var(--text-tertiary);
  letter-spacing: 0.18em;
}
.mkt-kicker-brand .brand-pass {
  color: var(--text);
}

.mkt-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: wrap;
}

.mkt-nav a {
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 650;
  color: var(--text-secondary);
  transition: background 160ms var(--ease), color 160ms var(--ease);
}

.mkt-nav a:hover,
.mkt-nav a.is-active {
  background: var(--bg-ink);
  color: var(--text-inverse);
}

.mkt-nav a.soft:hover,
.mkt-nav a.soft.is-active {
  background: var(--bg-subtle);
  color: var(--text);
}

/* ——— Shared section chrome ——— */
.mkt-shell {
  max-width: var(--mkt-max);
  margin: 0 auto;
  padding-left: var(--mkt-gutter);
  padding-right: var(--mkt-gutter);
}

.mkt-kicker {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.mkt-display {
  margin: 0;
  font-size: var(--mkt-display);
  font-weight: 780;
  letter-spacing: -0.045em;
  line-height: 1.22;
  color: var(--text);
}

.mkt-title {
  margin: 0;
  font-size: var(--mkt-title);
  font-weight: 750;
  letter-spacing: -0.035em;
  line-height: 1.2;
}

.mkt-lead {
  margin: 0;
  max-width: 36rem;
  font-size: var(--mkt-lead);
  line-height: 1.7;
  color: var(--text-secondary);
  font-weight: 450;
}

.mkt-section {
  padding: clamp(72px, 12vh, 128px) 0;
}

.mkt-section + .mkt-section {
  border-top: 1px solid var(--border);
}

.mkt-section-head {
  display: grid;
  gap: 18px;
  margin-bottom: clamp(40px, 6vw, 56px);
  max-width: 40rem;
}

.mkt-scan {
  display: block;
  width: min(220px, 40vw);
  height: 2px;
  margin: 28px 0 0;
  border: 0;
  background: linear-gradient(90deg, var(--bg-ink), rgba(17, 17, 17, 0.15));
  transform-origin: left center;
  animation: mkt-scan 1.1s var(--ease) 0.35s both;
}

@keyframes mkt-scan {
  from { transform: scaleX(0); opacity: 0; }
  to { transform: scaleX(1); opacity: 1; }
}

/* ——— Reveal motion ——— */
.mkt-reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: mkt-rise 900ms var(--ease) both;
}

.mkt-reveal-d1 { animation-delay: 80ms; }
.mkt-reveal-d2 { animation-delay: 180ms; }
.mkt-reveal-d3 { animation-delay: 280ms; }
.mkt-reveal-d4 { animation-delay: 380ms; }
.mkt-reveal-d5 { animation-delay: 480ms; }

@keyframes mkt-rise {
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .mkt-reveal,
  .mkt-scan,
  .mkt-ink-plane::after {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ——— Proposal hero ——— */
.mkt-hero {
  min-height: min(64vh, 640px);
  display: grid;
  align-items: end;
  padding: clamp(24px, 4vh, 56px) 0 clamp(56px, 9vh, 96px);
  position: relative;
}

.mkt-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.75fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: end;
}

.mkt-hero .mkt-kicker { margin-bottom: 28px; }
.mkt-hero .mkt-display { max-width: 12ch; margin-bottom: 36px; }
.mkt-hero .mkt-lead { margin-bottom: 40px; line-height: 1.8; }

.mkt-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.mkt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 180ms var(--ease), background 180ms var(--ease),
    color 180ms var(--ease), border-color 180ms var(--ease), box-shadow 180ms var(--ease);
}

.mkt-btn:hover { transform: translateY(-1px); }
.mkt-btn:active { transform: translateY(0); }

/* 배포 정보를 아직 못 받았거나 배포본이 없을 때 (a 는 href 가 없으면 비활성) */
.mkt-btn[disabled],
a.mkt-btn:not([href]) {
  opacity: 0.4;
  pointer-events: none;
}

.mkt-btn-ink {
  background: var(--bg-ink);
  color: var(--text-inverse);
  box-shadow: 0 10px 28px rgba(17, 17, 17, 0.18);
}
.mkt-btn-ink:hover { background: #000; color: #fff; }

.mkt-btn-line {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.mkt-btn-line:hover {
  border-color: var(--text);
  background: var(--bg-elevated);
}

.mkt-btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}
.mkt-btn-ghost:hover {
  color: var(--text);
  background: var(--bg-subtle);
}

.mkt-btn-block { width: 100%; }

.mkt-btn-sm {
  min-height: 38px;
  padding: 0 15px;
  font-size: 12.5px;
  gap: 6px;
  box-shadow: none;
}
.mkt-btn-sm svg { width: 14px; height: 14px; }

.mkt-aside-card {
  padding: 28px 26px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(8px);
}

.mkt-aside-card h3 {
  margin: 0 0 24px;
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.mkt-aside-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 18px;
}

.mkt-aside-list li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  align-items: start;
  font-size: 14px;
  line-height: 1.45;
  color: var(--text-secondary);
}

.mkt-aside-list .n {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text);
  padding-top: 2px;
}

.mkt-aside-list strong {
  display: block;
  color: var(--text);
  font-weight: 700;
  margin-bottom: 6px;
}

/* ——— Problem metrics ——— */
.mkt-metric-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
}

.mkt-metric {
  background: var(--bg-elevated);
  padding: 28px 24px;
  min-height: 168px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: background 180ms var(--ease);
}

.mkt-metric:hover { background: #fff; }

.mkt-metric .label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.mkt-metric .value {
  margin: 22px 0 12px;
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
  font-weight: 780;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.mkt-metric .meta {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.45;
}

/* ——— Compare ——— */
.mkt-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 22px;
  overflow: hidden;
  background: var(--bg-elevated);
}

.mkt-compare-col {
  padding: clamp(28px, 4vw, 40px);
}

.mkt-compare-col + .mkt-compare-col {
  border-left: 1px solid var(--border);
  background: linear-gradient(180deg, #fff 0%, var(--bg) 100%);
}

.mkt-compare-col h3 {
  margin: 0 0 28px;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.mkt-compare-col.is-after h3 { color: var(--text); }

.mkt-compare-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.mkt-compare-col li {
  position: relative;
  padding-left: 18px;
  font-size: 15.5px;
  line-height: 1.45;
  color: var(--text-secondary);
}

.mkt-compare-col li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 1px;
  background: var(--border-strong);
}

.mkt-compare-col.is-after li {
  color: var(--text);
  font-weight: 550;
}

.mkt-compare-col.is-after li::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  top: 0.5em;
  background: var(--bg-ink);
}

/* ——— Product triad ——— */
.mkt-triad {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.mkt-triad article {
  padding: 28px 24px 26px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  min-height: 220px;
  display: flex;
  flex-direction: column;
  transition: border-color 180ms var(--ease), transform 180ms var(--ease), box-shadow 180ms var(--ease);
}

.mkt-triad article:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.mkt-triad .n {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
  margin-bottom: 28px;
}

.mkt-triad h3 {
  margin: 0 0 14px;
  font-size: 1.25rem;
  font-weight: 750;
  letter-spacing: -0.025em;
}

.mkt-triad p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--text-secondary);
  margin-top: auto;
}

/* ——— Client screenshot grid (live embed) ——— */
.mkt-shot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.5vw, 28px);
  align-items: start;
}

.mkt-shot {
  display: block;
  color: inherit;
}

.mkt-shot-viewport {
  --s: 0.75;
  display: block;
  position: relative;
  width: 100%;
  height: calc(720px * var(--s));
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  box-shadow:
    0 1px 2px rgba(17, 17, 17, 0.04),
    0 18px 40px rgba(17, 17, 17, 0.08);
  transition: transform 200ms var(--ease), box-shadow 200ms var(--ease), border-color 200ms var(--ease);
}

.mkt-shot:hover .mkt-shot-viewport {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow:
    0 2px 4px rgba(17, 17, 17, 0.05),
    0 24px 48px rgba(17, 17, 17, 0.12);
}

.mkt-shot-viewport iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 420px;
  height: 720px;
  border: 0;
  transform: scale(var(--s));
  transform-origin: top left;
  pointer-events: none;
  background: var(--bg);
}

.mkt-shot-hit {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.mkt-shot-meta {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 18px 4px 0;
  color: inherit;
  text-decoration: none;
}

.mkt-shot-meta:hover h3 { text-decoration: underline; text-underline-offset: 3px; }

.mkt-shot-meta .n {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-tertiary);
  padding-top: 3px;
}

.mkt-shot-meta h3 {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.mkt-shot-meta p {
  margin: 0;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.45;
}

/* ——— Closing band ——— */
.mkt-close {
  padding: clamp(80px, 14vh, 140px) 0;
  background: var(--bg-ink);
  color: var(--text-inverse);
  position: relative;
  overflow: hidden;
}

.mkt-close::after {
  content: "";
  position: absolute;
  inset: auto -10% -40% 40%;
  height: 70%;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.08), transparent 60%);
  pointer-events: none;
}

.mkt-close .mkt-shell { position: relative; z-index: 1; }

.mkt-close .mkt-kicker { color: rgba(255, 255, 255, 0.45); }
.mkt-close .mkt-title { color: #fff; max-width: 16ch; margin: 20px 0 24px; }
.mkt-close .mkt-lead { color: rgba(255, 255, 255, 0.62); margin-bottom: 40px; }

.mkt-close .mkt-btn-line {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
}
.mkt-close .mkt-btn-line:hover {
  background: #fff;
  color: #111;
  border-color: #fff;
}
.mkt-close .mkt-btn-ghost {
  color: rgba(255, 255, 255, 0.65);
}
.mkt-close .mkt-btn-ghost:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.mkt-foot {
  padding: 22px var(--mkt-gutter) 36px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--text-tertiary);
  border-top: 1px solid var(--border);
  background: var(--bg);
}

/* ========== Public / employee ========== */
.page-pub .pub-top { padding-top: 16px; padding-bottom: 16px; }

.pub-hero {
  padding: clamp(48px, 9vh, 100px) 0 clamp(40px, 7vh, 72px);
}

.pub-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.95fr);
  gap: clamp(36px, 6vw, 72px);
  align-items: center;
}

.pub-hero .mkt-kicker { margin-bottom: 28px; }
.pub-hero .mkt-display {
  max-width: 11ch;
  margin-bottom: 36px;
}
.pub-hero .mkt-lead { margin-bottom: 36px; line-height: 1.8; }

.pub-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  width: fit-content;
  max-width: 100%;
  font-size: 13px;
  color: var(--text-secondary);
}

.pub-meta strong {
  color: var(--text);
  font-weight: 750;
}

.pub-meta .sep {
  width: 1px;
  height: 14px;
  background: var(--border-strong);
}

.pub-dl-panel {
  padding: 32px;
  border-radius: 24px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  box-shadow: 0 20px 60px rgba(17, 17, 17, 0.08);
}

.pub-dl-panel > h2 {
  margin: 0 0 10px;
  font-size: 1.15rem;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.pub-dl-panel > p {
  margin: 0 0 28px;
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.55;
}

.pub-dl-stack {
  display: grid;
  gap: 14px;
}

.pub-dl-card {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--bg);
  transition: border-color 180ms var(--ease), transform 180ms var(--ease), box-shadow 180ms var(--ease);
}

.pub-dl-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.pub-dl-card .os-mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--bg-ink);
  color: #fff;
  display: grid;
  place-items: center;
}

.pub-dl-card .os-mark svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pub-dl-card h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 750;
}

.pub-dl-card .meta {
  margin: 3px 0 0;
  font-size: 12px;
  color: var(--text-tertiary);
}

.pub-dl-card .mkt-btn {
  min-height: 40px;
  padding: 0 16px;
  font-size: 13px;
}

.pub-dl-note {
  margin: 28px 0 0;
  padding-top: 4px;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--text-tertiary);
}

/* How */
.pub-how {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.pub-how article {
  padding: 36px 28px 36px 0;
  position: relative;
}

.pub-how article + article {
  padding-left: 28px;
  border-left: 1px solid var(--border);
}

.pub-how .n {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
  margin-bottom: 24px;
}

.pub-how h3 {
  margin: 0 0 14px;
  font-size: 1.2rem;
  font-weight: 750;
  letter-spacing: -0.025em;
}

.pub-how p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 28ch;
}

/* Scope */
.pub-scope {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.pub-scope-cell {
  padding: 22px 18px;
  border-radius: 18px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  min-height: 140px;
}

.pub-scope-cell .mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--primary-soft);
  color: var(--text);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}

.pub-scope-cell .mark svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pub-scope-cell .name {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 750;
}

.pub-scope-cell .hint {
  margin: 0;
  font-size: 13px;
  color: var(--text-secondary);
}

.pub-scope-foot {
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--bg-subtle);
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-secondary);
}

.pub-scope-foot svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  flex-shrink: 0;
}

/* FAQ */
.pub-faq {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--border);
}

.pub-faq details {
  border-bottom: 1px solid var(--border);
}

.pub-faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 4px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.pub-faq summary::-webkit-details-marker { display: none; }

.pub-faq summary .chev {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: transform 200ms var(--ease), background 160ms var(--ease), color 160ms var(--ease);
}

.pub-faq summary .chev svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.pub-faq details[open] summary .chev {
  transform: rotate(45deg);
  background: var(--bg-ink);
  color: #fff;
  border-color: var(--bg-ink);
}

.pub-faq details p {
  margin: 0 0 28px;
  max-width: 40rem;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
  padding: 2px 2px 0;
}

.pub-foot {
  padding: 28px var(--mkt-gutter) 48px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
  border-top: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--text-tertiary);
}

.pub-foot a {
  color: var(--text-secondary);
  font-weight: 700;
}
.pub-foot a:hover { color: var(--text); }

/* ——— Responsive ——— */
@media (max-width: 960px) {
  .mkt-hero-grid,
  .pub-hero-inner {
    grid-template-columns: 1fr;
  }

  /* 좁은 화면에서는 히어로 문구(무엇을 하는 서비스인지)가 먼저 보여야 한다.
     order:-1 로 '구성' 카드를 위로 끌어올리면, 들어오자마자 01·02·03 목록부터
     만나고 제목은 스크롤해야 나온다. DOM 순서 그대로 둔다. */
  .mkt-aside-card { max-width: 420px; }

  .mkt-metric-row,
  .mkt-triad,
  .pub-how,
  .pub-scope {
    grid-template-columns: 1fr 1fr;
  }

  .mkt-shot-grid {
    grid-template-columns: 1fr;
    max-width: 380px;
    margin: 0 auto;
  }

  .pub-how article + article {
    border-left: 0;
    padding-left: 0;
    border-top: 1px solid var(--border);
    padding-top: 28px;
  }
}

@media (max-width: 640px) {
  .mkt-nav { display: none; }

  .mkt-metric-row,
  .mkt-triad,
  .mkt-compare,
  .pub-how,
  .pub-scope {
    grid-template-columns: 1fr;
  }

  .mkt-compare-col + .mkt-compare-col {
    border-left: 0;
    border-top: 1px solid var(--border);
  }

  .pub-dl-card {
    grid-template-columns: 44px 1fr;
  }

  .pub-dl-card .mkt-btn {
    grid-column: 1 / -1;
    width: 100%;
  }

  .mkt-hero .mkt-display,
  .pub-hero .mkt-display {
    max-width: none;
  }
}

/* ——— 설치 안내 레이어 ——— */
.pub-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(12px, 4vw, 28px);
}

.pub-modal-backdrop {
  position: absolute;
  inset: 0;
  background: var(--bg-overlay);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.pub-modal-panel {
  --modal-pad: clamp(22px, 4vw, 30px);
  position: relative;
  /* 설치 안내 레이어는 Windows 보안 경고창·macOS 시스템설정 화면을 그대로
     재현해 보여준다. 580px 에서는 그 그림들이 좁아 실제 화면과 달라 보인다. */
  width: min(760px, 100%);
  max-height: calc(100vh - 2 * clamp(12px, 4vw, 28px));
  overflow-y: auto;
  padding: var(--modal-pad);
  border-radius: 22px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-xl);
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: pub-modal-in 260ms var(--ease) both;
}

@keyframes pub-modal-in {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .pub-modal-panel { animation: none; }
}

/* 레이어가 길어 스크롤해도 다운로드·닫기가 늘 보이도록 상단에 고정한다.
   음수 마진으로 패널 패딩까지 덮어 스크롤될 때 내용이 비쳐 보이지 않게 한다. */
.pub-modal-head {
  position: sticky;
  top: 0;
  z-index: 2;
  margin: calc(-1 * var(--modal-pad)) calc(-1 * var(--modal-pad)) 0;
  padding: var(--modal-pad) var(--modal-pad) 14px;
  background: var(--bg-elevated);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.pub-modal-title { min-width: 0; }
.pub-modal-head .mkt-kicker { margin-bottom: 6px; }
.pub-modal-head h2 {
  margin: 0;
  font-size: 21px;
  font-weight: 780;
  letter-spacing: -0.03em;
}

.pub-modal-actions {
  flex: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pub-modal-x {
  flex: none;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
}
.pub-modal-x:hover { background: var(--bg-subtle); color: var(--text); }
.pub-modal-x svg { width: 15px; height: 15px; stroke: currentColor; stroke-width: 2; fill: none; }

.pub-modal-lead {
  margin: 0;
  font-size: 13.5px;
  font-weight: 650;
  color: var(--text);
}

.pub-code {
  font-family: var(--font-mono);
  font-size: 11.5px;
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--bg-subtle);
  color: var(--text);
  word-break: break-all;
}

/* 안내 노트 */
.pub-note {
  padding: 18px 20px;
  border-radius: 14px;
  background: var(--bg-subtle);
}
.pub-note h3 {
  margin: 0 0 8px;
  font-size: 13.5px;
  font-weight: 750;
  letter-spacing: -0.01em;
}
.pub-note p {
  margin: 0 0 8px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-secondary);
}
.pub-note p:last-child { margin-bottom: 0; }
.pub-note strong { color: var(--text); font-weight: 700; }

.pub-modal-foot { display: grid; gap: 10px; }
.pub-modal-foot .pub-dl-note { margin: 0; text-align: center; }

/* ——— Windows 보안 경고 창 재현 (설명용) ——— */
.win-dlg {
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
  font-size: 12px;
  line-height: 1.5;
  color: #1A1A1A;
  box-shadow: var(--shadow-sm);
}

.win-dlg-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 12px;
  border-bottom: 1px solid #EDEDEA;
  font-size: 11.5px;
  font-weight: 600;
  color: #3A3A3A;
}
.win-dlg-x { width: 13px; height: 13px; stroke: #6A6A6A; stroke-width: 2; fill: none; flex: none; }

.win-dlg-body { padding: 14px; }

.win-dlg-q {
  margin: 0 0 14px;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.5;
}

.win-dlg-main {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
}

.win-dlg-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid #E2E2DE;
  border-radius: 4px;
  background: #FAFAF8;
  color: #6A6A6A;
}
.win-dlg-icon svg { width: 18px; height: 18px; }

.win-dlg-rows {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 5px 10px;
  margin: 0;
  font-size: 11.5px;
}
.win-dlg-rows dt { color: #5C5C5C; white-space: nowrap; }
.win-dlg-rows dd { margin: 0; word-break: break-all; }
.win-dlg-rows dd strong { font-weight: 700; }

.win-dlg-btns {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
}
.win-btn {
  min-width: 96px;
  padding: 6px 12px;
  text-align: center;
  font-size: 11.5px;
  border: 1px solid #C8C8C4;
  border-radius: 4px;
  background: #FCFCFA;
}
/* 눌러야 할 버튼을 강조 */
.win-btn.is-primary {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent) inset;
  font-weight: 700;
}

.win-dlg-check {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 14px 0 0;
  font-size: 11.5px;
  color: #3A3A3A;
}
.win-check {
  width: 14px;
  height: 14px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 3px;
  background: var(--accent);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
}

.win-dlg-foot {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  padding: 12px 14px;
  border-top: 1px solid #EDEDEA;
  background: #FAFAF8;
}
.win-dlg-foot p { margin: 0; font-size: 11.5px; line-height: 1.6; color: #3A3A3A; }
.win-dlg-shield { color: var(--danger); }
.win-dlg-shield svg { width: 22px; height: 22px; }
.win-dlg-link {
  display: inline;
  color: var(--accent);
  text-decoration: underline;
}

@media (max-width: 480px) {
  .win-dlg-main { grid-template-columns: 1fr; }
  .win-dlg-icon { display: none; }
  .win-btn { min-width: 78px; }
}

/* ——— macOS 설치 안내 ——— */
.mac-step { display: grid; gap: 8px; }
.mac-step-t {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  font-size: 14px;
  font-weight: 750;
  letter-spacing: -0.01em;
}
.mac-step-t .step-num { width: 24px; height: 24px; font-size: 11px; }
.mac-step-d {
  margin: 0 0 2px;
  padding-left: 33px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-secondary);
}
.mac-step-d strong { color: var(--text); font-weight: 700; }

.mac-warn {
  margin: 0;
  padding: 10px 13px;
  border-radius: 10px;
  background: var(--danger-soft);
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--text);
}
.mac-warn strong { font-weight: 750; }

.mac-tip {
  margin: 0;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1px dashed var(--border-strong);
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--text-secondary);
}
.mac-tip strong { color: var(--text); font-weight: 700; }

/* macOS 경고창 재현 (설명용) */
.mac-alert {
  position: relative;
  width: min(310px, 100%);
  margin: 2px auto 0;
  padding: 20px 18px 16px;
  border-radius: 16px;
  background: #2C2C2E;
  color: #F2F2F5;
  box-shadow: var(--shadow-lg);
}
.mac-help {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #48484A;
  color: #E8E8EA;
  font-size: 12px;
  font-weight: 700;
}
.mac-icon { display: block; width: 54px; height: 54px; margin-bottom: 14px; }
.mac-icon svg { width: 100%; height: 100%; }
.mac-alert-t {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.45;
  letter-spacing: -0.01em;
  word-break: break-all;
}
.mac-alert-b {
  margin: 0 0 16px;
  font-size: 12.5px;
  line-height: 1.55;
  color: #C7C7CC;
  word-break: break-word;
}
.mac-btns { display: grid; gap: 8px; }
.mac-btn {
  display: block;
  padding: 9px 12px;
  border-radius: 9px;
  background: #48484A;
  color: #F2F2F5;
  font-size: 13px;
  font-weight: 650;
  text-align: center;
}
/* Apple 기본 버튼 — 실제 화면에서 파란색이라 그대로 둔다 (누르면 앱이 삭제됨) */
.mac-btn.is-blue { background: #0A66FF; color: #fff; }
/* 눌러야 할 버튼 강조 */
.mac-btn.is-pick {
  background: #3A3A3C;
  box-shadow: 0 0 0 2px var(--accent);
}
.mac-btn.is-inline {
  display: inline-block;
  padding: 6px 12px;
  font-size: 12px;
  flex: none;
}

/* 시스템 설정 · 보안 영역 재현 (설명용) */
.mac-pane {
  width: 100%;
  margin-top: 2px;
  padding: 14px;
  border-radius: 14px;
  background: #1E1E20;
  color: #F2F2F5;
  box-shadow: var(--shadow-lg);
}
.mac-pane-h {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 750;
}
.mac-pane-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 13px;
  border-radius: 9px;
  background: #2C2C2E;
  font-size: 12.5px;
  margin-bottom: 8px;
}
.mac-pane-val { color: #C7C7CC; text-align: right; }
.mac-pane-card {
  padding: 13px;
  border-radius: 9px;
  background: #2C2C2E;
}
.mac-pane-block {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.mac-pane-block p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.5;
  word-break: break-word;
}
.mac-pane-sub {
  margin: 10px 0 0;
  font-size: 11.5px;
  line-height: 1.55;
  color: #A1A1A6;
  word-break: break-word;
}

/* 접히는 보조 안내 */
.pub-acc {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg-elevated);
  overflow: hidden;
}
.pub-acc > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 17px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.pub-acc > summary::-webkit-details-marker { display: none; }
.pub-acc > summary .chev {
  flex: none;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  transition: transform 200ms var(--ease);
}
.pub-acc > summary .chev svg { width: 13px; height: 13px; stroke: var(--text); stroke-width: 2; fill: none; }
.pub-acc[open] > summary .chev { transform: rotate(45deg); }
.pub-acc-body { padding: 0 17px 17px; }

/* 터미널 명령 */
.pub-cmd {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 12px 12px 12px 14px;
  border-radius: 10px;
  background: var(--bg-ink);
}
.pub-cmd code {
  flex: 1;
  min-width: 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.5;
  color: #F2F2F5;
  word-break: break-all;
}
.pub-cmd-copy {
  flex: none;
  align-self: flex-start;
  padding: 6px 11px;
  border-radius: 7px;
  border: 1px solid #4A4A4A;
  background: transparent;
  color: #F2F2F5;
  font-size: 11.5px;
  font-weight: 650;
  cursor: pointer;
}
.pub-cmd-copy:hover { background: #2A2A2A; }

/* 좁은 화면에서는 상단 다운로드 버튼의 글자를 빼고 아이콘만 남긴다 */
@media (max-width: 460px) {
  .pub-modal-head h2 { font-size: 18px; }
  .pub-modal-actions .mkt-btn-sm {
    padding: 0;
    width: 38px;
    font-size: 0;
    gap: 0;
  }
  .pub-modal-actions .mkt-btn-sm svg { width: 16px; height: 16px; }
}
