/*
 * 케이누리(K-Nuri) 홍보 사이트
 *
 * 색 — 스마트 & 모던
 *   Primary   로열 인디고   #4338CA  (흰 글자 대비 7.9:1)
 *   Secondary 틸 민트      #2DD4BF  면(fill) 전용 · 글자에는 #0F766E (흰 바탕 5.5:1)
 *   Accent    코랄 오렌지   #FF7A59  면 전용 · 그 위 글자는 #111827 (7.0:1) · 글자색은 #C2410C (5.2:1)
 *   배경 #F9FAFB · 텍스트 #111827
 *
 * 톤 — 젊고 트렌디한 IT 에 보수적인 면: 넉넉한 여백, 단정한 격자, 움직임은 부드럽고 짧게.
 * 움직임을 줄이도록 설정한 사용자에게는 애니메이션을 끈다(맨 아래).
 */
@import url("../fonts/pretendard.css");

:root {
  --indigo: #4338CA;
  --indigo-700: #3730A3;
  --indigo-900: #1E1B4B;
  --indigo-50: #EEF0FF;
  --indigo-100: #E0E3FF;
  --mint: #2DD4BF;
  --mint-ink: #0F766E;
  --mint-50: #E6FBF7;
  --coral: #FF7A59;
  --coral-ink: #C2410C;
  --coral-50: #FFF1EC;
  --bg: #F9FAFB;
  --ink: #111827;
  --ink-2: #374151;
  --muted: #5B6474;
  --line: #E5E7EB;
  --white: #FFFFFF;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(17, 24, 39, .06), 0 1px 3px rgba(17, 24, 39, .08);
  --shadow: 0 10px 30px -10px rgba(30, 27, 75, .25), 0 4px 10px -4px rgba(30, 27, 75, .12);
  --shadow-lg: 0 40px 80px -30px rgba(30, 27, 75, .45), 0 18px 36px -18px rgba(30, 27, 75, .35);
  --container: 1180px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; font-size: 16px; line-height: 1.7; word-break: keep-all; overflow-wrap: anywhere; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--indigo); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; letter-spacing: -0.02em; color: var(--ink); }
p { margin: 0; }

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

.container { width: min(var(--container), calc(100% - 40px)); margin: 0 auto; }
.section { padding: 112px 0; position: relative; }
.section.tight { padding: 80px 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--indigo); background: var(--indigo-50); border: 1px solid var(--indigo-100);
  padding: 6px 12px; border-radius: 999px;
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--coral); }
.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; margin: 18px 0 16px; }
.section-head p { font-size: 18px; color: var(--muted); }
.grad-text {
  background: linear-gradient(100deg, var(--indigo) 0%, #6D5CF6 45%, var(--mint-ink) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ── 버튼 ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 12px; font-weight: 700; font-size: 16px;
  border: 1px solid transparent; cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s;
  text-decoration: none !important; white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--indigo); color: #fff; box-shadow: 0 10px 24px -10px rgba(67, 56, 202, .8); }
.btn-primary:hover { background: var(--indigo-700); }
.btn-accent { background: var(--coral); color: var(--ink); box-shadow: 0 10px 24px -10px rgba(255, 122, 89, .9); }
.btn-accent:hover { background: #FF6A45; }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: #C7CBD4; }
.btn-on-dark { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .3); }
.btn svg { width: 18px; height: 18px; }

/* ── 머리 ── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(249, 250, 251, .78); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 20px -16px rgba(17, 24, 39, .4); }
.nav { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 800; font-size: 20px; letter-spacing: -0.02em; }
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; }
.brand small { font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: .04em; margin-left: 2px; }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { color: var(--ink-2); font-weight: 600; font-size: 15px; }
.nav-links a:hover { color: var(--indigo); text-decoration: none; }
.nav .btn { min-height: 42px; padding: 0 18px; font-size: 15px; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 10px; width: 44px; height: 44px; cursor: pointer; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 18px; height: 2px; background: var(--ink); margin: 0 auto; position: relative; content: ""; }
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

figure.shot { margin: 0; }
.section-head.flush { margin-bottom: 0; }
.section.no-top { padding-top: 0; }
.section.faq-section { padding-top: 40px; }
ol.steps { list-style: none; padding: 0; margin: 0; }
.cta-copy { position: relative; z-index: 1; }

/* ── 첫 화면 ── */
.hero { position: relative; overflow: hidden; padding: 72px 0 120px; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto -10%; height: 900px; z-index: -1;
  background:
    radial-gradient(600px 380px at 78% 30%, rgba(67, 56, 202, .18), transparent 70%),
    radial-gradient(520px 340px at 92% 70%, rgba(45, 212, 191, .18), transparent 70%),
    radial-gradient(480px 300px at 12% 10%, rgba(255, 122, 89, .12), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: 1.02fr 1.18fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(36px, 4.9vw, 60px); font-weight: 850; letter-spacing: -0.035em; margin: 22px 0 22px; }
.hero h1 .ln { display: block; }
.hero .lead { font-size: 19px; color: var(--ink-2); max-width: 540px; }
.hero-cta { display: flex; gap: 12px; margin: 34px 0 30px; flex-wrap: wrap; }
.trust-chips { display: flex; flex-wrap: wrap; gap: 8px 10px; list-style: none; margin: 0; padding: 0; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--ink-2); box-shadow: var(--shadow-sm); }
.chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); flex: none; }
.chip:nth-child(2) i { background: var(--coral); }
.chip:nth-child(3) i { background: var(--indigo); }

.stage { position: relative; perspective: 1800px; min-height: 520px; }
.browser {
  position: relative; border-radius: 16px; background: #fff; overflow: hidden;
  box-shadow: var(--shadow-lg); border: 1px solid rgba(17, 24, 39, .08);
  transform: rotateY(-14deg) rotateX(6deg) rotateZ(1deg); transform-origin: 30% 50%;
  transition: transform .5s var(--ease);
}
.stage:hover .browser { transform: rotateY(-8deg) rotateX(3deg) rotateZ(.5deg); }
.browser-bar { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; background: #F3F4F6; border-bottom: 1px solid var(--line); }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: #E5E7EB; }
.browser-bar i:nth-child(1) { background: #FF7A59; }
.browser-bar i:nth-child(2) { background: #FBBF24; }
.browser-bar i:nth-child(3) { background: #2DD4BF; }
.browser-bar span { margin-left: 12px; flex: 1; height: 20px; border-radius: 6px; background: #fff; border: 1px solid var(--line); font-size: 11px; color: var(--muted); display: flex; align-items: center; padding: 0 10px; }
.slides { position: relative; aspect-ratio: 16 / 10; background: #EEF1F7; }
.slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top left; opacity: 0; transform: scale(1.03); transition: opacity .9s var(--ease), transform 6s linear; }
.slides img.on { opacity: 1; transform: scale(1); }
.slide-dots { position: absolute; left: 50%; bottom: -36px; transform: translateX(-50%); display: flex; gap: 8px; }
.slide-dots button { width: 28px; height: 6px; border-radius: 6px; border: 0; background: #D7DAE3; cursor: pointer; padding: 0; transition: background .3s, width .3s; }
.slide-dots button[aria-current="true"] { background: var(--indigo); width: 46px; }

.float { position: absolute; background: #fff; border-radius: 14px; box-shadow: var(--shadow); border: 1px solid rgba(17, 24, 39, .06); padding: 12px 14px; font-size: 13px; animation: bob 6s ease-in-out infinite; }
.float .k { color: var(--muted); font-weight: 600; font-size: 12px; }
.float .v { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.float.f1 { left: -28px; top: 54px; }
.float.f1 .v { color: var(--mint-ink); }
.float.f2 { left: 36px; bottom: -34px; animation-delay: -2s; }
.float.f2 .v { color: var(--coral-ink); }
.float .bar { height: 6px; border-radius: 4px; background: var(--mint-50); margin-top: 6px; overflow: hidden; width: 140px; }
.float .bar b { display: block; height: 100%; width: 96%; background: linear-gradient(90deg, var(--mint), var(--indigo)); border-radius: 4px; }
.phone {
  position: absolute; right: -34px; top: 96px; width: 172px; border-radius: 30px; padding: 7px; background: #0F172A;
  box-shadow: var(--shadow-lg); transform: rotate(6deg); animation: bob 7s ease-in-out infinite; animation-delay: -1s;
}
.phone img { border-radius: 24px; }
.demo-note { margin-top: 56px; font-size: 13px; color: var(--muted); text-align: center; }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }

/* ── 대상 기관 띠 ── */
.audience { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.audience .container { display: flex; align-items: center; gap: 28px; padding: 24px 0; flex-wrap: wrap; justify-content: center; }
.audience p { font-weight: 700; color: var(--muted); font-size: 14px; }
.audience ul { display: flex; gap: 10px 28px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; justify-content: center; }
.audience li { font-weight: 700; color: var(--ink-2); display: flex; align-items: center; gap: 8px; }
.audience li::before { content: ""; width: 6px; height: 6px; border-radius: 2px; background: var(--indigo); opacity: .6; }

/* ── 문제 → 해결 ── */
.pains { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pain { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-sm); position: relative; overflow: hidden; }
.pain .before { color: var(--muted); font-size: 15px; display: flex; gap: 10px; align-items: flex-start; }
.pain .before s { text-decoration-color: rgba(194, 65, 12, .55); text-decoration-thickness: 2px; }
.pain .arrow { margin: 18px 0; height: 1px; background: linear-gradient(90deg, var(--line), var(--indigo-100), var(--line)); position: relative; }
.pain .arrow::after { content: "→"; position: absolute; left: 0; top: -14px; background: var(--indigo); color: #fff; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; }
.pain h3 { font-size: 20px; font-weight: 800; margin-bottom: 8px; }
.pain p { color: var(--ink-2); }

/* ── 기능 보기 (탭) ── */
.features { background: linear-gradient(180deg, #fff 0%, var(--bg) 100%); }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 34px; }
.tab {
  position: relative; overflow: hidden; border: 1px solid var(--line); background: #fff; color: var(--ink-2);
  padding: 10px 16px; min-height: 44px; border-radius: 12px; font: inherit; font-weight: 700; font-size: 15px; cursor: pointer;
  transition: border-color .2s, color .2s, background .2s;
}
.tab:hover { border-color: #C7CBD4; }
.tab[aria-selected="true"] { color: var(--indigo); border-color: var(--indigo); background: var(--indigo-50); }
.tab .progress { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--coral); }
.tab[aria-selected="true"] .progress { animation: fill var(--dur, 7s) linear forwards; }
.features.paused .tab .progress { animation-play-state: paused; }
@keyframes fill { to { width: 100%; } }

.panel { display: grid; grid-template-columns: .82fr 1.18fr; gap: 54px; align-items: center; }
.panel[hidden] { display: none; }
.panel h3 { font-size: clamp(24px, 3vw, 32px); font-weight: 800; margin-bottom: 14px; }
.panel .desc { color: var(--ink-2); font-size: 17px; margin-bottom: 22px; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-2); }
.checks li::before {
  content: ""; flex: none; width: 22px; height: 22px; border-radius: 7px; margin-top: 2px;
  background: var(--mint-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3L15 6.5' fill='none' stroke='%230F766E' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
}
.shot {
  position: relative; border-radius: 16px; overflow: hidden; background: #fff; border: 1px solid rgba(17, 24, 39, .08);
  box-shadow: var(--shadow-lg); transform: perspective(1600px) rotateY(-7deg) rotateX(3deg);
  transition: transform .5s var(--ease);
}
.shot:hover { transform: perspective(1600px) rotateY(-2deg) rotateX(1deg) translateY(-4px); }
.shot img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; }
.panel.enter .shot { animation: rise .7s var(--ease) both; }
.panel.enter .copy { animation: fadeUp .6s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: perspective(1600px) rotateY(-16deg) rotateX(6deg) translateY(30px) scale(.97); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } }
.tag-note { display: inline-block; margin-top: 18px; font-size: 13px; color: var(--muted); }

/* ── 포털 ── */
.portal { background: var(--indigo-900); color: #E9EAFB; overflow: hidden; }
.portal::before { content: ""; position: absolute; inset: 0; background: radial-gradient(700px 400px at 85% 20%, rgba(45, 212, 191, .2), transparent 70%), radial-gradient(600px 400px at 10% 90%, rgba(255, 122, 89, .16), transparent 70%); }
.portal .container { position: relative; }
.portal h2, .portal h3 { color: #fff; }
.portal .section-head p { color: #C7C9F2; }
.portal .eyebrow { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .18); color: #fff; }
.portal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.phones { position: relative; height: 560px; }
.phones .phone { position: absolute; width: 250px; animation: none; transform: none; }
.phones .p1 { left: 8%; top: 20px; transform: rotate(-6deg); animation: bob 7s ease-in-out infinite; }
.phones .p2 { left: 46%; top: 70px; transform: rotate(5deg); animation: bob 7s ease-in-out infinite -3s; }
.langs { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0; }
.lang { padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .22); color: #fff; font-weight: 600; background: rgba(255, 255, 255, .06); }
.portal .checks li { color: #E3E4FA; }
.portal .checks li::before { background-color: rgba(45, 212, 191, .18); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3L15 6.5' fill='none' stroke='%232DD4BF' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.mini-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 30px; }
.mini { border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .05); border-radius: 16px; padding: 18px; }
.mini h4 { color: #fff; font-size: 16px; margin-bottom: 6px; }
.mini p { color: #C7C9F2; font-size: 14px; }

/* ── 학칙 설정 ── */
.rules { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.rule-table { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
.rule-table header { padding: 16px 22px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 10px; font-weight: 800; }
.rule-table header i { width: 10px; height: 10px; border-radius: 3px; background: var(--indigo); }
.rule-row { display: grid; grid-template-columns: 1.4fr 1fr; gap: 12px; padding: 14px 22px; border-bottom: 1px solid #F1F2F5; align-items: center; }
.rule-row:last-child { border-bottom: 0; }
.rule-row span { color: var(--ink-2); font-size: 15px; }
.rule-row b { justify-self: end; font-variant-numeric: tabular-nums; background: var(--indigo-50); color: var(--indigo); padding: 4px 10px; border-radius: 8px; font-size: 14px; }
.rule-row b.alt { background: var(--coral-50); color: var(--coral-ink); }
.rule-row b.mint { background: var(--mint-50); color: var(--mint-ink); }

/* ── 신뢰 (보안·운영) ── */
.trust { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.trust-item { padding: 30px 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; transition: background .2s; }
.trust-item:nth-child(3n) { border-right: 0; }
.trust-item:nth-last-child(-n+3) { border-bottom: 0; }
.trust-item:hover { background: #FBFBFE; }
.icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 18px; background: var(--indigo-50); color: var(--indigo); }
.icon svg { width: 22px; height: 22px; }
.trust-item:nth-child(3n+2) .icon { background: var(--mint-50); color: var(--mint-ink); }
.trust-item:nth-child(3n+3) .icon { background: var(--coral-50); color: var(--coral-ink); }
.trust-item h3 { font-size: 18px; font-weight: 800; margin-bottom: 8px; }
.trust-item p { color: var(--muted); font-size: 15px; }

/* ── 에디션 ── */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); position: relative; }
.plan.featured { border: 2px solid var(--indigo); box-shadow: var(--shadow); }
.plan .badge { position: absolute; top: -13px; left: 28px; background: var(--coral); color: var(--ink); font-weight: 800; font-size: 12px; padding: 4px 10px; border-radius: 999px; }
.plan h3 { font-size: 22px; font-weight: 800; }
.plan .bill { color: var(--muted); font-weight: 600; margin: 4px 0 18px; font-size: 15px; }
.plan .for { color: var(--ink-2); font-size: 15px; padding-bottom: 18px; border-bottom: 1px dashed var(--line); margin-bottom: 18px; }
.plan .checks { gap: 10px; font-size: 15px; margin-bottom: 26px; }
.plan .btn { margin-top: auto; }
.packs { margin-top: 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px 26px; display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.packs strong { font-size: 16px; }
.packs ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 10px; flex-wrap: wrap; }
.packs li { padding: 7px 14px; border-radius: 10px; background: var(--indigo-50); color: var(--indigo); font-weight: 700; font-size: 14px; }
.packs p { color: var(--muted); font-size: 14px; flex-basis: 100%; }

/* ── 도입 절차 ── */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; }
.step::before { counter-increment: step; content: "0" counter(step); display: block; font-size: 32px; font-weight: 850; letter-spacing: -0.04em; color: transparent; -webkit-text-stroke: 1.4px var(--indigo); margin-bottom: 14px; }
.step h3 { font-size: 18px; font-weight: 800; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15px; }
.step:not(:last-child)::after { content: ""; position: absolute; right: -14px; top: 46px; width: 10px; height: 10px; border-top: 2px solid var(--indigo-100); border-right: 2px solid var(--indigo-100); transform: rotate(45deg); }

/* ── 묻고 답하기 ── */
.faq { max-width: 860px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 0 24px; transition: box-shadow .2s, border-color .2s; }
.faq details[open] { border-color: var(--indigo-100); box-shadow: var(--shadow-sm); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 0; font-weight: 700; font-size: 17px; display: flex; justify-content: space-between; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--indigo); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; color: var(--ink-2); }

/* ── 마지막 권유 ── */
.cta-band { padding: 0 0 112px; }
.cta-box {
  position: relative; overflow: hidden; border-radius: 28px; padding: 64px 56px; color: #fff;
  background: linear-gradient(120deg, var(--indigo-900) 0%, var(--indigo) 60%, #5B4FE0 100%);
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center;
}
.cta-box::after { content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(45, 212, 191, .55), transparent 65%); }
.cta-box::before { content: ""; position: absolute; left: 30%; bottom: -120px; width: 300px; height: 300px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 122, 89, .45), transparent 65%); }
.cta-box h2 { color: #fff; font-size: clamp(28px, 3.6vw, 40px); font-weight: 850; margin-bottom: 14px; }
.cta-box p { color: #DCDDFB; font-size: 17px; }
.cta-box .actions { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.contact-card { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .2); border-radius: 18px; padding: 22px 24px; width: 100%; }
.contact-card dl { margin: 0; display: grid; grid-template-columns: 70px 1fr; gap: 8px 12px; font-size: 15px; }
.contact-card dt { color: #C7C9F2; }
.contact-card dd { margin: 0; color: #fff; font-weight: 600; }
.contact-card a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* ── 바닥 ── */
.site-footer { background: #0B0F1A; color: #A3A9B8; padding: 56px 0 40px; font-size: 14px; }
.site-footer .row { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.site-footer .brand { color: #fff; }
.site-footer .brand small { color: #A3A9B8; }
.site-footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
.site-footer a { color: #D1D5DB; }
.site-footer .legal { margin-top: 34px; padding-top: 22px; border-top: 1px solid #1F2433; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ── 스크롤 등장 ── */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }

/* ── 좁은 화면 ── */
@media (max-width: 1080px) {
  .hero-grid, .panel, .portal-grid, .rules, .cta-box { grid-template-columns: 1fr; }
  .stage { margin-top: 20px; }
  .phone { right: 0; }
  .float.f1 { left: 0; }
  .plans, .pains { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .trust-item:nth-child(3n) { border-right: 1px solid var(--line); }
  .trust-item:nth-child(2n) { border-right: 0; }
  .trust-item:nth-last-child(-n+3) { border-bottom: 1px solid var(--line); }
  .trust-item:nth-last-child(-n+2) { border-bottom: 0; }
  .steps { grid-template-columns: 1fr 1fr; }
  .step::after { display: none; }
  .phones { height: 520px; max-width: 520px; margin: 0 auto; width: 100%; }
}
@media (max-width: 820px) {
  .nav-links, .nav .btn { display: none; }
  .nav-toggle { display: block; }
  .site-header.open .nav-links {
    display: flex; flex-direction: column; position: absolute; left: 0; right: 0; top: 72px; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 8px 20px 16px;
  }
  .site-header.open .nav-links a { padding: 12px 0; border-bottom: 1px solid #F1F2F5; }
  .section { padding: 80px 0; }
  .hero { padding-top: 40px; }
  .phone { width: 120px; top: 40px; right: -6px; }
  .float.f2 { right: 10px; bottom: -30px; }
  .trust-grid { grid-template-columns: 1fr; }
  .trust-item { border-right: 0 !important; border-bottom: 1px solid var(--line) !important; }
  .trust-item:last-child { border-bottom: 0 !important; }
  .steps { grid-template-columns: 1fr; }
  .cta-box { padding: 40px 26px; }
  .phones { height: 440px; }
  .phones .phone { width: 190px; }
  .mini-cards { grid-template-columns: 1fr; }
  .stage { min-height: 0; }
}

/* 움직임을 줄이도록 설정한 사용자 — 기울임·떠다님·자동 전환을 끈다 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .browser, .shot, .phone, .phones .phone { transform: none !important; }
  .reveal { opacity: 1; transform: none; }
}
