/* =========================================================
   겨울신록 스터디 — 앱 소개 · 설치 페이지
   디자인 시스템: shinrokedu.com 과 동일한 토큰 사용
   BI: Glacier Blue #11b2ea / Deep Blue #377495
   ========================================================= */

:root {
  /* Brand (공식 홈페이지와 동일) */
  --glacier: #11b2ea;
  --glacier-600: #0e97c7;
  --glacier-300: #6fd4f4;
  --glacier-100: #d8f2fb;
  --deep: #377495;
  --deep-900: #1f4a61;
  --deep-800: #2a5d78;

  /* Neutrals */
  --ink: #0b1f2a;
  --ink-700: #1d3846;
  --ink-500: #4c6673;
  --ink-400: #7b93a0;
  --ink-300: #a9bcc6;
  --line: #e3ebef;
  --line-soft: #eef3f6;
  --paper: #ffffff;
  --paper-2: #f7fafb;
  --paper-3: #eef6f9;

  /* Dark */
  --night: #061620;
  --night-2: #0b2432;
  --night-3: #103143;

  /* Accents */
  --mint: #3ddc97;
  --amber: #f5a623;
  --coral: #ff6b81;
  --violet: #7c6bff;

  /* Radii */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;

  /* Shadows */
  --sh-sm: 0 1px 2px rgba(11, 31, 42, 0.05), 0 2px 8px rgba(11, 31, 42, 0.04);
  --sh-md: 0 4px 12px rgba(11, 31, 42, 0.07), 0 12px 32px rgba(11, 31, 42, 0.06);
  --sh-lg: 0 18px 48px rgba(11, 31, 42, 0.12);
  --sh-brand: 0 10px 30px rgba(17, 178, 234, 0.25);

  --maxw: 1200px;
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont,
    'Malgun Gothic', '맑은 고딕', system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  font-size: 16px;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  margin: 0;
  line-height: 1.28;
  letter-spacing: -0.035em;
  font-weight: 700;
}

p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; }

::selection { background: var(--glacier); color: #fff; }

/* ---------- Layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}
.wrap-narrow { max-width: 860px; }

.section { padding: 108px 0; }
.section.tight { padding: 76px 0; }
.section.tinted { background: var(--paper-2); }
.section.night { background: var(--night); color: #eaf4f8; }

.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 {
  font-size: clamp(28px, 3.6vw, 44px);
  margin-top: 16px;
  font-weight: 800;
}
.section-head .lead {
  margin-top: 18px;
  font-size: 17px;
  color: var(--ink-500);
  line-height: 1.75;
}
.section.night .section-head h2 { color: #fff; }
.section.night .section-head .lead { color: #a9c6d3; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--deep);
}
.eyebrow::before {
  content: '';
  width: 22px;
  height: 2px;
  background: var(--glacier);
  border-radius: 2px;
}
.eyebrow.on-dark { color: var(--glacier-300); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 52px;
  padding: 0 28px;
  border-radius: 100px;
  font-size: 15.5px;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease),
    background 0.22s var(--ease), color 0.22s var(--ease);
  white-space: nowrap;
  line-height: 1;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn .ico { width: 18px; height: 18px; flex: none; }

.btn-primary {
  background: linear-gradient(135deg, var(--glacier) 0%, var(--glacier-600) 100%);
  color: #fff;
  box-shadow: var(--sh-brand);
}
.btn-primary:hover { box-shadow: 0 14px 36px rgba(17, 178, 234, 0.36); }

.btn-ghost-dark {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: #dcecf4;
}
.btn-ghost-dark:hover { background: rgba(255, 255, 255, 0.14); }

.btn-soft {
  background: var(--paper-3);
  border-color: #cfe7f1;
  color: var(--deep-900);
}
.btn-soft:hover { background: var(--glacier-100); }

.btn-sm { height: 42px; padding: 0 18px; font-size: 14px; }
.btn-lg { height: 58px; padding: 0 34px; font-size: 16.5px; }
.btn-xl {
  height: 66px;
  padding: 0 44px;
  font-size: 18px;
  letter-spacing: -0.02em;
}
.btn-xl .ico { width: 21px; height: 21px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.site-header.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: var(--sh-sm);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  width: 100%;
}
.brand-logo { display: flex; align-items: center; height: 40px; flex-shrink: 0; }
.brand-logo img { height: 34px; width: auto; }

.nav-main {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.nav-main a {
  padding: 9px 14px;
  border-radius: 100px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-700);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.nav-main a:hover { background: var(--paper-3); color: var(--deep-900); }
.nav-actions { flex-shrink: 0; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(165deg, var(--night) 0%, var(--night-2) 52%, #08202c 100%);
  color: #eaf4f8;
  padding: calc(var(--header-h) + 76px) 0 96px;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  inset: -30% -10% auto -10%;
  height: 720px;
  background:
    radial-gradient(560px 380px at 22% 18%, rgba(17, 178, 234, 0.22), transparent 70%),
    radial-gradient(520px 340px at 82% 8%, rgba(111, 212, 244, 0.16), transparent 70%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero-copy h1 {
  font-size: clamp(32px, 4.4vw, 56px);
  font-weight: 800;
  margin-top: 20px;
  color: #fff;
  letter-spacing: -0.045em;
}
.grad {
  background: linear-gradient(100deg, var(--glacier-300), var(--glacier) 55%, #7ce0c4);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.hero-copy .lead {
  margin-top: 22px;
  font-size: 17px;
  line-height: 1.8;
  color: #b3cdda;
  max-width: 34em;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

/* ── 메인 설치 버튼 (가장 강조) ── */
.btn-main {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 420px;
  height: 64px;
  padding: 0 36px;
  border: none;
  border-radius: 100px;
  font-family: inherit;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.025em;
  cursor: pointer;
  color: #04141c;
  background: linear-gradient(135deg, #6fd4f4 0%, var(--glacier) 46%, #0e97c7 100%);
  box-shadow: 0 12px 34px rgba(17, 178, 234, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: transform 0.2s var(--ease), box-shadow 0.24s var(--ease);
  overflow: hidden;
}
.btn-main::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 30%,
    rgba(255, 255, 255, 0.42) 50%, transparent 70%);
  transform: translateX(-120%);
  animation: shine 3.4s var(--ease) infinite;
  pointer-events: none;
}
@keyframes shine {
  0%, 62% { transform: translateX(-120%); }
  88%, 100% { transform: translateX(120%); }
}
.btn-main:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 46px rgba(17, 178, 234, 0.52),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.btn-main:active { transform: translateY(0); }
.btn-main .ico { width: 22px; height: 22px; flex: none; }
.btn-main .btn-label { position: relative; z-index: 1; }

.install-note {
  margin-top: 14px;
  font-size: 13px;
  font-weight: 600;
  color: #7fb4c9;
  display: flex;
  align-items: center;
  gap: 7px;
}
.install-note::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 3px rgba(61, 220, 151, 0.16);
  flex: none;
}

/* 안드로이드 설치 불가 시 (iOS/PC) 안내 톤 */
.install-note.alt { color: #93aebb; }
.install-note.alt::before { background: var(--amber); box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.16); }
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.hero-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  font-weight: 600;
  color: #8faebd;
}
.hero-meta-item svg {
  width: 16px;
  height: 16px;
  color: var(--glacier-300);
  flex: none;
}

/* Hero phone */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 12px 0;
}
.phone {
  position: relative;
  width: 100%;
  max-width: 300px;
  filter: drop-shadow(0 40px 70px rgba(0, 0, 0, 0.5));
}
.phone-frame {
  position: relative;
  border-radius: 38px;
  padding: 9px;
  background: linear-gradient(160deg, #2b4351, #12212b);
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.phone-frame::after {
  content: '';
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 74px;
  height: 20px;
  border-radius: 100px;
  background: #0a1620;
  z-index: 2;
}
.phone-frame img {
  border-radius: 30px;
  width: 100%;
  height: auto;
  display: block;
}
.float-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 15px;
  border-radius: 100px;
  background: rgba(10, 28, 40, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
  font-size: 12.5px;
  color: #b9d4e0;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  white-space: nowrap;
}
.float-chip strong { color: #fff; font-weight: 700; }
.chip-1 { top: 16%; left: -6%; animation: floaty 6s ease-in-out infinite; }
.chip-2 { bottom: 14%; right: -4%; animation: floaty 7s ease-in-out infinite 0.8s; }
.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.dot-mint { background: var(--mint); box-shadow: 0 0 0 4px rgba(61, 220, 151, 0.18); }
.dot-amber { background: var(--amber); box-shadow: 0 0 0 4px rgba(245, 166, 35, 0.18); }

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ---------- Value strip ---------- */
.value-strip { padding: 0; background: var(--paper); }
.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-bottom: 1px solid var(--line);
}
.value-cell {
  padding: 46px 34px;
  border-left: 1px solid var(--line);
}
.value-cell:first-child { border-left: none; padding-left: 0; }
.value-cell:last-child { padding-right: 0; }
.value-num {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--glacier);
  margin-bottom: 12px;
}
.value-cell h3 { font-size: 19px; font-weight: 800; color: var(--ink); }
.value-cell p {
  margin-top: 10px;
  font-size: 14.5px;
  color: var(--ink-500);
  line-height: 1.75;
}

/* ---------- Feature grid ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 30px 28px 28px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
    border-color 0.3s var(--ease);
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-md);
  border-color: #cfe4ee;
}
.f-ico {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}
.f-ico svg { width: 23px; height: 23px; }
.ic-cyan { background: rgba(17, 178, 234, 0.12); color: var(--glacier-600); }
.ic-violet { background: rgba(124, 107, 255, 0.13); color: #5f4ee0; }
.ic-amber { background: rgba(245, 166, 35, 0.14); color: #c47f0d; }
.ic-mint { background: rgba(61, 220, 151, 0.15); color: #17936a; }
.ic-coral { background: rgba(255, 107, 129, 0.14); color: #d9435c; }
.ic-deep { background: rgba(55, 116, 149, 0.13); color: var(--deep); }

.feature-card h3 { font-size: 19.5px; font-weight: 800; }
.feature-card > p {
  margin-top: 10px;
  font-size: 14.5px;
  color: var(--ink-500);
  line-height: 1.78;
}
.f-list { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line); }
.f-list li {
  position: relative;
  padding-left: 17px;
  font-size: 13.5px;
  color: var(--ink-700);
  line-height: 1.95;
}
.f-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.82em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--glacier);
}

/* ---------- Screenshot rail ---------- */
.shot-rail {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  padding: 6px 4px 26px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.22) transparent;
}
.shot-rail::-webkit-scrollbar { height: 6px; }
.shot-rail::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.22);
  border-radius: 100px;
}
.shot {
  flex: 0 0 auto;
  width: 232px;
  margin: 0;
  scroll-snap-align: center;
}
.shot img {
  width: 100%;
  height: auto;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.42);
  transition: transform 0.35s var(--ease);
}
.shot:hover img { transform: translateY(-6px); }
.shot figcaption {
  margin-top: 14px;
  text-align: center;
  font-size: 12.5px;
  font-weight: 600;
  color: #8faebd;
  letter-spacing: -0.01em;
}
.rail-hint {
  text-align: center;
  font-size: 12.5px;
  color: #6d8b9b;
  margin-top: 4px;
}

/* ---------- Install ---------- */
.install-cta { text-align: center; margin-bottom: 56px; }
.install-cta-note {
  margin-top: 16px;
  font-size: 13.5px;
  color: var(--ink-400);
}

.install-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.install-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 30px 28px 28px;
  display: flex;
  flex-direction: column;
}
.ic-badge {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.03em;
}
.install-card h3 { font-size: 18.5px; font-weight: 800; }
.steps {
  margin-top: 14px;
  flex: 1;
  counter-reset: st;
}
.steps li {
  position: relative;
  padding-left: 28px;
  font-size: 14px;
  color: var(--ink-500);
  line-height: 1.72;
  margin-bottom: 10px;
  counter-increment: st;
}
.steps li::before {
  content: counter(st);
  position: absolute;
  left: 0;
  top: 2px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: var(--paper-3);
  color: var(--deep-900);
  font-size: 11px;
  font-weight: 800;
  display: grid;
  place-items: center;
  line-height: 1;
}
.steps li b { color: var(--ink); }
.steps a { color: var(--glacier-600); font-weight: 700; text-decoration: underline; }
.install-card .btn { margin-top: 18px; align-self: flex-start; }

.qr-block {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-top: 26px;
  padding: 26px 30px;
  background: var(--paper-3);
  border: 1px solid #d7eaf3;
  border-radius: var(--r-lg);
}
.qr-block img {
  width: 128px;
  height: 128px;
  border-radius: 14px;
  background: #fff;
  padding: 8px;
  flex: none;
  border: 1px solid #d7eaf3;
}
.qr-block h4 { font-size: 17px; font-weight: 800; }
.qr-block p {
  margin-top: 7px;
  font-size: 14px;
  color: var(--ink-500);
  line-height: 1.7;
}

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 0 22px;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.faq details[open] {
  border-color: #cfe4ee;
  box-shadow: var(--sh-sm);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 30px 20px 0;
  position: relative;
  font-size: 15.5px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.6;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '';
  position: absolute;
  right: 2px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--ink-400);
  border-bottom: 2px solid var(--ink-400);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.25s var(--ease);
}
.faq details[open] summary::after {
  transform: translateY(-20%) rotate(225deg);
}
.faq details p {
  padding: 0 0 22px;
  font-size: 14.5px;
  color: var(--ink-500);
  line-height: 1.82;
}
.faq details p b { color: var(--ink); }

/* ---------- Final CTA ---------- */
.final-cta {
  background: linear-gradient(165deg, var(--night) 0%, var(--night-2) 100%);
  text-align: center;
}
.center-copy { display: flex; flex-direction: column; align-items: center; }
.center-copy h2 {
  font-size: clamp(27px, 3.4vw, 40px);
  margin-top: 18px;
  color: #fff;
  font-weight: 800;
}
.center-copy .lead {
  margin-top: 16px;
  font-size: 16.5px;
  color: #a9c6d3;
  margin-bottom: 34px;
}
.contact-line {
  margin-top: 26px;
  font-size: 13.5px;
  color: #7b9caa;
}
.contact-line a {
  color: var(--glacier-300);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--night);
  color: #93aebb;
  padding: 64px 0 40px;
  font-size: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-logo { height: 30px; width: auto; margin-bottom: 16px; }
.footer-brand p { font-size: 13.5px; line-height: 1.8; color: #7f9dab; }
.footer-col h4 {
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: #cfe2ea;
  margin-bottom: 14px;
}
.footer-col a {
  display: block;
  font-size: 13.5px;
  color: #8fa9b6;
  padding: 4px 0;
  transition: color 0.2s var(--ease);
}
.footer-col a:hover { color: var(--glacier-300); }
.footer-contact strong {
  display: block;
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.footer-contact span {
  display: block;
  font-size: 13px;
  line-height: 1.75;
  color: #7f9dab;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-top: 28px;
  font-size: 12px;
  color: #6d8b9b;
  line-height: 1.8;
}

/* =========================================================
   설치 모달
   ========================================================= */
.modal[hidden] { display: none; }
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 16, 24, 0.62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: fadeIn 0.22s var(--ease);
}
.modal-panel {
  position: relative;
  width: 100%;
  max-width: 420px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  background: #fff;
  border-radius: 24px;
  padding: 26px 24px 20px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.42);
  animation: popIn 0.26s var(--ease);
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes popIn {
  from { opacity: 0; transform: translateY(14px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-x {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--paper-2);
  color: var(--ink-500);
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
  transition: background 0.2s var(--ease);
}
.modal-x:hover { background: var(--line-soft); }
.modal-x svg { width: 16px; height: 16px; }

.modal-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line-soft);
}
.modal-app-icon {
  width: 56px;
  height: 56px;
  border-radius: 15px;
  flex: none;
  box-shadow: var(--sh-sm);
}
.modal-head h3 { font-size: 17.5px; font-weight: 800; letter-spacing: -0.03em; }
.modal-sub { font-size: 12.5px; color: var(--ink-400); margin-top: 3px; }

.modal-body { padding: 20px 0 4px; }

/* 모달 내부 공통 요소 */
.m-lead {
  font-size: 14.5px;
  color: var(--ink-500);
  line-height: 1.72;
  margin-bottom: 18px;
}
.m-lead b { color: var(--ink); }

.m-note-sm {
  font-size: 12.5px;
  color: var(--ink-400);
  line-height: 1.7;
  margin-bottom: 16px;
}

.m-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  height: 56px;
  border-radius: 16px;
  border: none;
  cursor: pointer;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--glacier), var(--glacier-600));
  color: #fff;
  box-shadow: var(--sh-brand);
  text-decoration: none;
  transition: transform 0.18s var(--ease), box-shadow 0.22s var(--ease),
    background 0.2s var(--ease);
}
.m-btn:hover { transform: translateY(-2px); }
.m-btn:active { transform: none; }
.m-btn svg { width: 19px; height: 19px; flex: none; }
.m-btn.ghost {
  background: var(--paper-2);
  border: 1px solid var(--line);
  color: var(--ink-700);
  box-shadow: none;
}
.m-btn.ghost:hover { background: var(--paper-3); }

.m-steps {
  counter-reset: ms;
  margin-bottom: 18px;
}
/* 버튼 바로 뒤에 오는 단계 목록은 간격을 확보한다 */
.m-btn + .m-steps,
.m-btn + .m-tip { margin-top: 20px; }
.m-steps li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 13px;
  font-size: 14px;
  color: var(--ink-500);
  line-height: 1.68;
  counter-increment: ms;
}
.m-steps li:last-child { margin-bottom: 0; }
.m-steps li::before {
  content: counter(ms);
  position: absolute;
  left: 0;
  top: 1px;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: var(--glacier-100);
  color: var(--glacier-600);
  font-size: 11.5px;
  font-weight: 800;
  display: grid;
  place-items: center;
  line-height: 1;
}
.m-steps li b { color: var(--ink); }

.m-tip {
  background: var(--paper-3);
  border: 1px solid #d7eaf3;
  border-radius: 13px;
  padding: 13px 15px;
  font-size: 12.5px;
  color: var(--deep-900);
  line-height: 1.72;
  margin-top: 16px;
}
.m-tip b { color: var(--ink); }
.m-tip.warn {
  background: #fdf6e9;
  border-color: #f3dcae;
  color: #8a5b0d;
}
.m-tip.warn b { color: #6d4708; }

.m-status {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13.5px;
  font-weight: 700;
  padding: 12px 15px;
  border-radius: 12px;
  background: rgba(61, 220, 151, 0.12);
  color: #12805c;
  margin-bottom: 16px;
}
.m-status .dot-mint { background: #12805c; box-shadow: none; width: 7px; height: 7px; }
.m-status.busy {
  background: var(--paper-3);
  color: var(--ink-500);
}
.m-status.busy .dot-mint { background: var(--ink-300); }

.spinner {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  animation: spin 0.7s linear infinite;
  flex: none;
}
@keyframes spin { to { transform: rotate(360deg); } }

.modal-foot {
  text-align: center;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
}
.modal-alt-link {
  font-size: 12.5px;
  color: var(--ink-400);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.modal-alt-link:hover { color: var(--deep); }

body.modal-open { overflow: hidden; }

/* =========================================================
   하단 토스트 (설치 진행 안내)
   ========================================================= */
.gs-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 24px);
  z-index: 1200;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  max-width: min(440px, calc(100vw - 32px));
  padding: 15px 16px;
  border-radius: 16px;
  background: rgba(8, 26, 36, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: #dcecf4;
  font-size: 13.5px;
  line-height: 1.7;
  letter-spacing: -0.015em;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.26s var(--ease), transform 0.26s var(--ease);
}
.gs-toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
}
.gs-toast-body { flex: 1; }
.gs-toast-body b { color: #fff; }
.gs-toast-x {
  flex: none;
  width: 24px;
  height: 24px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #a9c6d3;
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
  margin-top: 1px;
}
.gs-toast-x:hover { background: rgba(255, 255, 255, 0.18); color: #fff; }

/* ---------- iOS 공유 아이콘 데모 ---------- */
.share-demo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--glacier-100);
  color: var(--glacier-600);
  vertical-align: -5px;
  margin: 0 2px;
}
.share-demo svg { width: 14px; height: 14px; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-visual { order: -1; }
  .phone { max-width: 260px; }
  .chip-1 { left: 2%; }
  .chip-2 { right: 0; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .install-cards { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .value-grid { grid-template-columns: 1fr; }
  .value-cell {
    border-left: none;
    border-top: 1px solid var(--line);
    padding: 28px 0;
  }
  .value-cell:first-child { border-top: none; padding-top: 0; }
  .value-cell:last-child { padding-bottom: 0; }
  .nav-main { display: none; }
}

@media (max-width: 700px) {
  :root { --header-h: 62px; }
  .wrap { padding: 0 18px; }
  .section { padding: 72px 0; }
  .section.tight { padding: 52px 0; }
  .section-head { margin-bottom: 36px; }
  /* 모바일에서는 목업이 헤더를 가리지 않도록 숨긴다 */
  .hero-visual { display: none; }
  .float-chip { display: none; }
  .hero { padding: calc(var(--header-h) + 40px) 0 56px; }
  .hero-copy .lead { font-size: 15.5px; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }
  .hero-meta { gap: 12px 18px; }
  .feature-grid { grid-template-columns: 1fr; gap: 14px; }
  .feature-card { padding: 24px 22px; }
  .install-cards { gap: 14px; }
  .install-card { padding: 24px 22px; }
  .qr-block { flex-direction: column; text-align: center; padding: 24px 20px; gap: 16px; }
  .qr-block img { width: 116px; height: 116px; }
  .shot { width: 178px; }
  .btn-xl { height: 60px; padding: 0 30px; font-size: 16.5px; }
  .brand-logo img { height: 28px; }
  .nav-actions .btn { height: 40px; padding: 0 16px; font-size: 13.5px; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 10px; }
  .modal-panel { padding: 22px 18px 16px; border-radius: 20px; max-height: calc(100vh - 24px); }
  .modal { padding: 12px; align-items: flex-end; }
  .final-cta .btn-xl { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  html { scroll-behavior: auto; }
}
