/* 기억하뇌 홈페이지 공통 스타일 (2026-10-13)
   기본 글자 18px(112.5%), [가 글자 크게]를 누르면 html에 .big → 1.25배 */
:root {
  --bg: #f4f7f6; --paper: #ffffff; --ink: #1c2530; --ink-2: #45525e; --muted: #5c6873; --faint: #8a96a0;
  --line: #dde5e3; --line-2: #c9d4d1;
  --accent: #e2582a; --accent-ink: #9a3412; --accent-soft: #fde7dc;
  --teal: #1f6f6a; --teal-dark: #164f4b; --teal-soft: #dff2ee; --teal-bright: #3aa597;
  --yellow-soft: #fff3c4; --violet-soft: #e6e0ff; --blue-soft: #dcecff; --pink-soft: #ffe0ee;
  --c-mem: #b3f1ff; --c-lang: #ffd3c6; --c-ori: #c9f7b8; --c-att: #ffe9a3;
  --c-per: #e2d6ff; --c-think: #c4dcff; --c-seq: #ffd0e5; --c-life: #cdeee0;
  --head: "IBM Plex Sans KR", "Noto Sans KR", "Apple SD Gothic Neo", sans-serif;
  --body: "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --wrap: 1200px;
}
* { box-sizing: border-box; }
html { font-size: 112.5%; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.big { font-size: 140%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 1rem; line-height: 1.7; word-break: keep-all; overflow-wrap: break-word; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); }
a:hover { color: var(--teal-dark); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--head); margin: 0; text-wrap: balance; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- 머리 영역 ---------- */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.site-header .bar { max-width: var(--wrap); margin: 0 auto; padding: 10px 24px; display: flex; align-items: center; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex: 0 0 auto; }
.brand img { height: 50px; width: auto; }
.brand span { font-family: var(--head); font-weight: 700; font-size: 1.2rem; letter-spacing: -0.01em; }
.main-nav { flex: 1 1 auto; display: flex; flex-wrap: wrap; gap: 4px 22px; font-size: 0.94rem; font-weight: 500; }
.main-nav a { color: var(--ink); text-decoration: none; padding: 8px 0; min-height: 44px; display: inline-flex; align-items: center; border-bottom: 3px solid transparent; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--accent); border-bottom-color: var(--accent); }
.head-actions { display: flex; gap: 10px; align-items: center; flex: 0 0 auto; }
.btn-text { min-height: 44px; padding: 0 14px; border: 1px solid var(--line-2); background: var(--paper); border-radius: 10px; font: inherit; font-size: 0.89rem; color: var(--ink); cursor: pointer; white-space: nowrap; }
.btn-text[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-start { min-height: 44px; display: inline-flex; align-items: center; padding: 0 18px; background: var(--accent); color: #fff; border-radius: 10px; font-weight: 700; font-size: 0.89rem; text-decoration: none; white-space: nowrap; }
.btn-start:hover { color: #fff; background: #c94a20; }
.menu-btn { display: none; min-height: 44px; min-width: 44px; border: 1px solid var(--line-2); background: var(--paper); border-radius: 10px; font: inherit; font-size: 0.89rem; font-weight: 700; color: var(--ink); cursor: pointer; padding: 0 12px; }

@media (max-width: 1080px) {
  .site-header .bar { flex-wrap: wrap; padding: 8px 16px; gap: 8px 12px; }
  .site-header { position: relative; }
  .brand img { height: 44px; }
  .menu-btn { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; }
  .head-actions { order: 3; width: 100%; justify-content: stretch; padding-bottom: 6px; }
  .head-actions > * { flex: 1 1 0; justify-content: center; }
  .main-nav { order: 4; display: none; width: 100%; flex-direction: column; gap: 0; padding: 4px 0 10px; border-top: 1px solid var(--line); }
  .main-nav a { border-bottom: 1px solid var(--line); font-size: 1rem; padding: 10px 4px; }
  .site-header.open .main-nav { display: flex; }
}

/* ---------- 공통 조각 ---------- */
section { scroll-margin-top: 90px; }
.sec { padding-top: 88px; padding-bottom: 88px; }
.sec-white { background: var(--paper); }
.sec-dark { background: var(--ink); color: #fff; }
.eyebrow { color: var(--accent); font-weight: 700; font-size: 0.89rem; letter-spacing: 0.04em; margin-bottom: 8px; }
.sec-dark .eyebrow { color: #ffb59a; }
.h1 { font-size: 3.1rem; line-height: 1.22; font-weight: 700; letter-spacing: -0.02em; }
.h2 { font-size: 2.2rem; line-height: 1.3; font-weight: 700; letter-spacing: -0.01em; }
.h3 { font-size: 1.35rem; line-height: 1.4; font-weight: 700; }
.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 34em; }
.sec-dark .lead, .sec-dark .soft { color: #c9d2d9; }
.soft { color: var(--ink-2); }
.note { font-size: 0.8rem; color: var(--muted); }
.mt-s { margin-top: 12px; } .mt-m { margin-top: 24px; } .mt-l { margin-top: 40px; }
.mb-m { margin-bottom: 24px; } .mb-l { margin-bottom: 36px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.chip { font-size: 0.84rem; font-weight: 700; padding: 4px 12px; border-radius: 999px; }
.chip.or { background: var(--accent-soft); color: var(--accent-ink); }
.chip.tl { background: var(--teal-soft); color: var(--teal-dark); }
.chip.ye { background: var(--yellow-soft); color: #854d0e; }
.chip.vi { background: var(--violet-soft); color: #4c1d95; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { min-height: 56px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 0 26px; border-radius: 12px; font-weight: 700; font-size: 1.05rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; font-family: inherit; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: #c94a20; color: #fff; }
.btn-line { background: var(--paper); color: var(--ink); border-color: var(--ink); }
.btn-line:hover { color: var(--ink); background: var(--bg); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { color: #fff; background: #2c3846; }
.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { color: var(--ink); background: #f0f0f0; }
.btn svg { flex: 0 0 auto; }
.grid { display: grid; gap: 20px; }
.g-2 { grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr)); }
.g-3 { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.g-4 { grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); }
.split { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.split > * { flex: 1 1 420px; min-width: 0; }
.card { background: var(--paper); border-radius: 20px; padding: 30px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.card p { color: var(--ink-2); }
.card .more { font-weight: 700; font-size: 0.94rem; margin-top: auto; padding-top: 6px; }
.icon-box { width: 52px; height: 52px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; }
.lift { transition: transform .25s ease, box-shadow .25s ease; }
.lift:hover { transform: translateY(-6px); box-shadow: 0 18px 36px rgba(28,37,48,.12); }
.photo { width: 100%; border-radius: 20px; object-fit: cover; }

/* 애니메이션 */
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes bob { 0%,100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-14px) rotate(2deg); } }
@keyframes fadein { from { opacity: 0; transform: scale(1.03); } to { opacity: 1; transform: none; } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(226,88,42,.5); } 50% { box-shadow: 0 0 0 14px rgba(226,88,42,0); } }
@keyframes wave { 0%,100% { transform: scaleY(.35); } 50% { transform: scaleY(1); } }
@keyframes ring { 0% { transform: scale(.8); opacity: .7; } 100% { transform: scale(1.5); opacity: 0; } }
.rise { animation: rise .9s cubic-bezier(.2,.7,.2,1) both; }
.d1 { animation-delay: .12s; } .d2 { animation-delay: .24s; } .d3 { animation-delay: .36s; } .d4 { animation-delay: .48s; }
.bob { animation: bob 3.6s ease-in-out infinite; }
.pulse { animation: pulse 2.2s ease-in-out infinite; }
.wave { display: inline-block; transform-origin: center; animation: wave 1s ease-in-out infinite; }
.fade-in { animation: fadein .8s ease both; }

/* ---------- 첫 화면(히어로) ---------- */
.hero { background: var(--paper); }
.hero .split { padding-top: 64px; padding-bottom: 76px; }
.hero-text { display: flex; flex-direction: column; gap: 22px; flex: 1 1 520px !important; }
.hero-sub { font-size: 0.84rem; color: var(--muted); }
.hero-visual { position: relative; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.device { width: 100%; max-width: 480px; background: var(--ink); border-radius: 34px; padding: 16px; box-shadow: 0 30px 60px rgba(28,37,48,.18); }
.device-screen { background: #fff; border-radius: 20px; overflow: hidden; position: relative; aspect-ratio: 4 / 3.4; }
.slide { position: absolute; inset: 0; display: flex; flex-direction: column; opacity: 0; visibility: hidden; transition: opacity .7s ease, visibility .7s; }
.slide.on { opacity: 1; visibility: visible; }
.slide-bar { color: #fff; padding: 10px 16px; font-size: 0.86rem; font-weight: 700; display: flex; justify-content: space-between; gap: 12px; }
.slide img { flex: 1 1 auto; min-height: 0; width: 100%; height: 100%; object-fit: cover; }
.slide img.contain { object-fit: contain; background: #f7faf9; }
.slide img.pad { object-fit: contain; background: #fff7e8; padding: 18px; }
.dots { display: flex; gap: 8px; }
.dots button { width: 44px; height: 44px; border: 0; padding: 0; background: transparent; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.dots button::before { content: ""; display: block; width: 14px; height: 14px; border-radius: 999px; background: var(--line-2); transition: width .3s ease, background .3s ease; }
.dots button[aria-selected="true"]::before, .dots button[aria-pressed="true"]::before { width: 34px; background: var(--accent); }
.hero-tiger { position: absolute; left: -16px; bottom: 50px; width: 140px; pointer-events: none; }

/* 숫자 띠 */
.stats { background: var(--ink); color: #fff; }
.stats .grid { padding-top: 40px; padding-bottom: 40px; gap: 24px; }
.stat-num { font-family: var(--head); font-size: 2.65rem; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat-label { font-size: 0.94rem; }
.stat-src { font-size: 0.75rem; color: #aab6c0; }

/* 8개 영역 카드 */
.area { border-radius: 18px; padding: 22px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.area strong { font-size: 1.15rem; }
.area p { font-size: 0.89rem; }
.area .cnt { font-family: var(--head); font-size: 0.8rem; font-weight: 700; background: rgba(255,255,255,.7); padding: 2px 10px; border-radius: 999px; white-space: nowrap; }
.area .rep { margin-top: auto; padding-top: 10px; border-top: 1px dashed rgba(28,37,48,.25); font-size: 0.84rem; font-weight: 700; }
.a-mem { background: var(--c-mem); } .a-lang { background: var(--c-lang); } .a-ori { background: var(--c-ori); } .a-att { background: var(--c-att); }
.a-per { background: var(--c-per); } .a-think { background: var(--c-think); } .a-seq { background: var(--c-seq); } .a-life { background: var(--c-life); }

/* 단계 */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 20px; list-style: none; margin: 0; padding: 0; }
.steps li { display: flex; gap: 16px; align-items: flex-start; }
.num { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; }
.steps strong { font-size: 1.1rem; }
.steps p { font-size: 0.89rem; color: var(--ink-2); margin-top: 4px; }

/* 후기 */
.quote-box { position: relative; min-height: 190px; }
.quote { margin: 0; padding: 26px 28px; background: var(--bg); border-radius: 18px; font-size: 1.15rem; display: none; }
.quote.on { display: block; animation: rise .6s ease both; }
.quote footer { margin-top: 10px; font-size: 0.84rem; color: var(--muted); }

/* 흐르는 띠 */
.band { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; padding: 22px 0; }
.marquee { display: flex; gap: 14px; width: max-content; animation: marquee 36s linear infinite; list-style: none; margin: 0; padding: 0; font-size: 0.94rem; font-weight: 700; }
.band:hover .marquee { animation-play-state: paused; }
.marquee li { white-space: nowrap; padding: 10px 20px; border-radius: 999px; }
.t1 { background: var(--accent-soft); } .t2 { background: var(--teal-soft); } .t3 { background: var(--yellow-soft); } .t4 { background: var(--violet-soft); } .t5 { background: var(--blue-soft); } .t6 { background: var(--pink-soft); }

/* 수상·인증 목록 */
.cert-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 12px; font-size: 0.94rem; }
.cert-list li { background: var(--paper); border-radius: 14px; padding: 18px 20px; display: flex; gap: 14px; align-items: center; min-width: 0; }
.cert-list li > div { min-width: 0; }
.cert-list .kind { display: block; color: var(--muted); font-size: 0.8rem; }
.cert-list img { width: 56px; height: 56px; object-fit: contain; flex: 0 0 auto; }
.cert-list .mark { width: 48px; height: 48px; border-radius: 12px; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; font-weight: 900; font-family: var(--head); }
.sec-dark .cert-list li { background: #27313d; }
.sec-dark .cert-list .kind { color: #aab6c0; }

/* 가격 카드 */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 16px; }
.plan { position: relative; text-align: left; font: inherit; color: var(--ink); background: var(--paper); border: 3px solid var(--line); border-radius: 18px; padding: 26px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
button.plan { cursor: pointer; transition: border-color .25s ease, background .25s ease, transform .25s ease, box-shadow .25s ease; }
.plan[aria-checked="true"] { border-color: var(--accent); background: #fff6f1; box-shadow: 0 18px 36px rgba(226,88,42,.16); transform: translateY(-4px); }
.plan.best { border-color: var(--accent); }
.plan strong { font-size: 1.15rem; }
.plan .list { color: var(--faint); text-decoration: line-through; font-size: 0.84rem; }
.plan .price { font-family: var(--head); font-size: 1.95rem; font-weight: 700; line-height: 1.2; }
.plan .sub { font-size: 0.84rem; color: var(--muted); }
.plan .tag { position: absolute; top: -14px; left: 20px; background: var(--accent); color: #fff; font-size: 0.75rem; font-weight: 700; padding: 3px 12px; border-radius: 999px; }
.plan-detail { margin-top: 20px; background: var(--paper); border-radius: 20px; padding: 28px 32px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 20px; }
.plan-detail .k { font-size: 0.84rem; color: var(--muted); }
.plan-detail .v { font-size: 1.4rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.plan-detail .v.or { color: var(--accent); }

/* 표 */
.table-box { overflow-x: auto; background: var(--paper); border-radius: 20px; }
.table-box table { width: 100%; border-collapse: collapse; font-size: 1rem; min-width: 520px; }
.table-box th, .table-box td { text-align: left; padding: 16px 22px; border-bottom: 1px solid #e3eae8; vertical-align: top; }
.table-box thead th { background: var(--ink); color: #fff; }
.table-box tr:last-child th, .table-box tr:last-child td { border-bottom: 0; }

/* 아코디언 (자주 묻는 질문·공지) */
.acc { display: flex; flex-direction: column; gap: 12px; }
.acc-item { background: var(--paper); border-radius: 16px; box-shadow: 0 0 0 1px var(--line); transition: box-shadow .25s ease; }
.acc-item.open { box-shadow: 0 0 0 2px var(--teal); }
.acc-q { width: 100%; min-height: 64px; display: flex; align-items: center; gap: 14px; padding: 16px 22px; background: transparent; border: 0; font: inherit; color: var(--ink); cursor: pointer; text-align: left; }
.acc-q .q { flex: 0 0 auto; font-family: var(--head); font-size: 1.2rem; font-weight: 700; color: var(--accent); }
.acc-q .t { flex: 1 1 auto; min-width: 0; font-size: 1.05rem; font-weight: 700; }
.acc-q .cat { flex: 0 0 auto; font-size: 0.78rem; color: var(--muted); background: var(--bg); padding: 2px 10px; border-radius: 999px; }
.acc-q .arrow { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%; background: var(--bg); display: inline-flex; align-items: center; justify-content: center; transition: transform .3s ease, background .3s; }
.acc-item.open .arrow { transform: rotate(180deg); background: var(--teal); color: #fff; }
.acc-a { display: none; gap: 14px; padding: 0 22px 22px; }
.acc-item.open .acc-a { display: flex; animation: rise .4s ease both; }
.acc-a .a { flex: 0 0 auto; font-family: var(--head); font-size: 1.2rem; font-weight: 700; color: var(--teal); }
.acc-a p { color: #2c3a46; white-space: pre-line; max-width: 46em; }
.tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.tabs button { min-height: 48px; padding: 0 18px; border-radius: 999px; font: inherit; font-size: 0.94rem; font-weight: 700; cursor: pointer; border: 2px solid var(--line-2); background: var(--paper); color: var(--ink); }
.tabs button[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: #fff; }
.tabs button span { opacity: .7; font-size: 0.8rem; margin-left: 4px; }
.notice-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.notice-list > li { border-bottom: 1px solid var(--line); }
.notice-list .acc-q { padding: 16px 6px; flex-wrap: wrap; gap: 6px 16px; }
.notice-list .date { font-size: 0.89rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.notice-list .acc-a { padding: 0 6px 24px; }
.notice-list li.open .acc-a { display: block; }
.badge { background: var(--accent); color: #fff; font-size: 0.72rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; }

/* 영상 */
.video { position: relative; aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; background: #000 center / cover no-repeat; }
.video button { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; cursor: pointer; background: linear-gradient(0deg, rgba(0,0,0,.55), rgba(0,0,0,.05) 55%); color: #fff; font: inherit; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; }
.video .play { width: 84px; height: 84px; border-radius: 50%; background: var(--accent); display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 10px 30px rgba(0,0,0,.3); }
.video .cap { font-weight: 700; font-size: 1.05rem; text-shadow: 0 1px 6px rgba(0,0,0,.6); padding: 0 16px; text-align: center; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* 행동 띠 */
.cta { background: var(--accent); color: #fff; }
.cta .wrap { padding-top: 64px; padding-bottom: 64px; display: flex; flex-wrap: wrap; gap: 28px; align-items: center; justify-content: space-between; }
.cta .wrap > div:first-child { flex: 1 1 460px; min-width: 0; }
.cta p { font-size: 1.05rem; margin-top: 8px; }

/* 바닥 영역 */
.site-footer { background: var(--ink); color: #c9d2d9; font-size: 0.84rem; }
.site-footer .wrap { padding-top: 48px; padding-bottom: 48px; display: flex; flex-wrap: wrap; gap: 28px 40px; justify-content: space-between; }
.site-footer .tel { color: #fff; font-size: 1.45rem; font-weight: 700; text-decoration: none; font-family: var(--head); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 4px 18px; align-items: flex-start; max-width: 560px; }
.site-footer nav a { color: #fff; min-height: 44px; display: inline-flex; align-items: center; }
.site-footer .legal { flex: 1 1 100%; font-size: 0.75rem; color: #9aa7b2; border-top: 1px solid #344250; padding-top: 18px; }

/* 폰 아래 고정 띠 */
.mobile-bar { display: none; }
@media (max-width: 760px) {
  .mobile-bar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; gap: 8px; padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px)); background: rgba(255,255,255,.96); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(28,37,48,.08); }
  .mobile-bar a { flex: 1 1 0; min-height: 50px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; font-weight: 700; text-decoration: none; font-size: 1rem; }
  .mobile-bar .m-dl { background: var(--accent); color: #fff; }
  .mobile-bar .m-tel { background: var(--ink); color: #fff; }
  body { padding-bottom: 74px; }
}

/* 전화 카드(고객센터) */
.phone-card { background: var(--ink); color: #fff; border-radius: 28px; padding: 34px; display: flex; flex-direction: column; gap: 16px; }
.phone-card .big-tel { font-family: var(--head); font-size: 3rem; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; color: #fff; text-decoration: none; }
.phone-card .soft { color: #c9d2d9; }
.btn-ghost { background: transparent; color: #fff; border-color: #4a5866; }
.btn-ghost:hover { color: #fff; background: #26323f; }

/* QR */
.qr-box { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; background: var(--bg); border-radius: 18px; padding: 20px 24px; }
.qr-box figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.qr-box img { width: 132px; height: 132px; image-rendering: pixelated; background: #fff; border-radius: 10px; padding: 6px; border: 1px solid var(--line); }
.qr-box figcaption { font-size: 0.84rem; font-weight: 700; }
.qr-box p { flex: 1 1 180px; min-width: 0; font-size: 0.89rem; color: var(--ink-2); }
@media (max-width: 900px), (pointer: coarse) { .qr-box { display: none; } }

/* 32칸 회차 그림 */
.round { background: var(--bg); border-radius: 24px; padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.round .heads, .round .cells { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 8px; }
.round .heads { font-size: 0.72rem; font-weight: 700; text-align: center; color: var(--ink-2); }
.round .cells span { aspect-ratio: 1; border-radius: 8px; background: #e3e9e7; transform: scale(.82); transition: background .3s ease, transform .3s ease; }
.round .cells span.on { transform: none; box-shadow: inset 0 0 0 1px rgba(28,37,48,.12); }
.round .total { display: flex; justify-content: space-between; align-items: baseline; }
.round .total b { font-family: var(--head); font-size: 1.7rem; font-variant-numeric: tabular-nums; }

/* 난이도 별 */
.levels { background: var(--paper); border-radius: 24px; padding: 26px; display: flex; flex-direction: column; gap: 6px; }
.level { display: flex; align-items: center; gap: 14px; padding: 8px 12px; border-radius: 14px; transition: background .3s ease; flex-wrap: wrap; }
.level.cur { background: #fff7d6; }
.level .name { flex: 0 0 7em; font-weight: 700; }
.level .stars { display: inline-flex; gap: 6px; }
.level svg path { fill: #eef2f1; }
.level svg.f path { fill: #ffe9a3; }
.level.cur svg.f path { fill: #ffc93c; }

/* 연구 자료 */
.paper { display: flex; gap: 20px; align-items: flex-start; background: var(--paper); border-radius: 20px; padding: 24px; min-width: 0; }
.paper img { width: 110px; flex: 0 0 auto; border-radius: 6px; box-shadow: 0 6px 18px rgba(28,37,48,.12); }
.paper > div { min-width: 0; }
.paper .kind { font-size: 0.8rem; font-weight: 700; color: var(--accent); }
.paper h3 { font-size: 1.1rem; line-height: 1.45; margin: 4px 0 8px; }
.paper p { font-size: 0.89rem; color: var(--muted); }
.photos { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 14px; margin: 0; }
.photos figure { margin: 0; }
.photos img { width: 100%; aspect-ratio: 16 / 11; object-fit: cover; border-radius: 14px; }
.photos figcaption { font-size: 0.8rem; color: var(--muted); margin-top: 6px; }
.in-nav { display: flex; flex-wrap: wrap; gap: 10px; }
.in-nav a { min-height: 44px; display: inline-flex; align-items: center; padding: 0 18px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--ink); text-decoration: none; background: var(--paper); font-size: 0.94rem; }
.in-nav a:hover { border-color: var(--accent); color: var(--accent); }
.sense { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.sense div { background: var(--bg); border-radius: 18px; padding: 20px; text-align: center; }
.sense .full { grid-column: 1 / -1; background: var(--accent-soft); position: relative; overflow: hidden; }
.sense small { display: block; font-size: 0.84rem; color: var(--muted); }
.sense b { font-size: 1.25rem; }
.sense .full small { color: var(--accent-ink); }
.dot-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.dot-list li { display: flex; gap: 12px; align-items: baseline; }
.dot-list li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); flex: 0 0 auto; transform: translateY(-2px); }

/* 설치 단계 (앱 받기) */
.howto { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.howto button { width: 100%; display: flex; gap: 18px; align-items: flex-start; text-align: left; font: inherit; color: var(--ink); cursor: pointer; padding: 18px 20px; border-radius: 18px; border: 2px solid transparent; background: transparent; transition: background .3s ease, border-color .3s ease; }
.howto button[aria-current="step"] { border-color: var(--accent); background: var(--paper); box-shadow: 0 14px 30px rgba(28,37,48,.08); }
.howto .num { width: 48px; height: 48px; font-size: 1.1rem; }
.howto button[aria-current="step"] .num { background: var(--accent); }
.howto strong { font-size: 1.15rem; display: block; }
.howto span.t { font-size: 0.89rem; color: var(--ink-2); display: block; }
.howto .prog { display: block; height: 4px; background: #e3eae8; border-radius: 999px; overflow: hidden; margin-top: 8px; }
.howto .prog i { display: block; height: 100%; width: 0; background: var(--accent); }
.phone-mock { width: 100%; max-width: 300px; aspect-ratio: 9 / 17; background: var(--ink); border-radius: 40px; padding: 14px; box-shadow: 0 30px 60px rgba(28,37,48,.18); margin: 0 auto; }
.phone-mock .scr { width: 100%; height: 100%; background: #f7faf9; border-radius: 28px; overflow: hidden; display: flex; flex-direction: column; }
.phone-mock .top { color: #fff; padding: 14px 18px; font-size: 0.84rem; font-weight: 700; }
.phone-mock .body { flex: 1 1 auto; padding: 18px; display: flex; flex-direction: column; gap: 12px; align-items: center; justify-content: center; text-align: center; }
.phone-mock .body img { width: 72px; }
.phone-mock .body strong { font-size: 1.1rem; line-height: 1.4; white-space: pre-line; }
.phone-mock .body span { font-size: 0.84rem; color: var(--ink-2); }
.phone-mock .body em { font-style: normal; min-height: 46px; display: inline-flex; align-items: center; padding: 0 20px; color: #fff; border-radius: 12px; font-weight: 700; font-size: 0.89rem; }

@media (max-width: 760px) {
  .wrap { padding-left: 18px; padding-right: 18px; }
  .sec { padding-top: 60px; padding-bottom: 60px; }
  .h1 { font-size: 2.15rem; }
  .h2 { font-size: 1.6rem; }
  .lead { font-size: 1.02rem; }
  .hero .split { padding-top: 36px; padding-bottom: 48px; gap: 32px; }
  .hero-tiger { width: 96px; left: -6px; bottom: 56px; }
  .split { gap: 32px; }
  .card { padding: 24px; }
  .stat-num { font-size: 2rem; }
  .stats .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
  .btn { width: 100%; }
  .btns .btn { flex: 1 1 100%; }
  .phone-card { padding: 26px 22px; }
  .phone-mock { max-width: 230px; }
  .phone-card .big-tel { font-size: 2.1rem; }
  .paper { flex-direction: column; }
  .acc-q { padding: 14px 16px; }
  .acc-q .cat { display: none; }
  .acc-a { padding: 0 16px 18px; }
  .level .name { flex-basis: 100%; }
  .site-footer .tel { font-size: 1.3rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rise, .bob, .pulse, .wave, .fade-in, .marquee, .quote.on, .acc-item.open .acc-a { animation: none !important; }
  .lift, .lift:hover { transition: none; transform: none; }
  .slide { transition: none; }
  .marquee { flex-wrap: wrap; width: auto; justify-content: center; }
  .marquee li[aria-hidden="true"] { display: none; }
}

/* ===== 2026-10-17 개편: 실제 앱 화면 ===== */
/* 폰 틀 */
.phone { background: var(--ink); border-radius: 30px; padding: 9px; box-shadow: 0 24px 50px rgba(28,37,48,.20); }
.phone img { display: block; width: 100%; height: auto; border-radius: 22px; aspect-ratio: 720 / 1561; object-fit: cover; object-position: top; background: #fdf8e8; }
/* 첫 화면: 폰 세 대 겹치기 */
.hero-phones { position: relative; width: 100%; max-width: 520px; aspect-ratio: 520 / 560; margin: 0 auto; }
.hero-phones .phone { position: absolute; width: 44%; }
.hero-phones .p-main { left: 28%; top: 0; z-index: 3; width: 46%; }
.hero-phones .p-left { left: 0; top: 12%; z-index: 2; transform: rotate(-6deg); }
.hero-phones .p-right { right: 0; top: 12%; z-index: 1; transform: rotate(6deg); }
.hero-phones .phone img { max-height: none; }
.hero-phones .tag { position: absolute; z-index: 4; background: var(--paper); border-radius: 14px; padding: 8px 14px; font-size: 0.84rem; font-weight: 700; box-shadow: 0 10px 24px rgba(28,37,48,.14); white-space: nowrap; }
.hero-phones .tag-1 { left: -4px; bottom: 16%; }
.hero-phones .tag-2 { right: -4px; bottom: 30%; }
.hero-phones .tag b { color: var(--accent); }
.hero-visual .hero-tiger { left: auto; right: -10px; bottom: -14px; width: 120px; z-index: 5; }
/* 실제 화면 모음(옆으로 넘기기) */
.shots { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 230px); gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 4px 18px; -webkit-overflow-scrolling: touch; }
.shots figure { margin: 0; scroll-snap-align: start; display: flex; flex-direction: column; gap: 10px; }
.shots figcaption { display: flex; flex-direction: column; gap: 2px; }
.shots figcaption strong { font-size: 0.95rem; }
.shots figcaption span { font-size: 0.82rem; color: var(--muted); }
.shots-head { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: flex-end; justify-content: space-between; }
.shots-nav { display: flex; gap: 8px; }
.shots-nav button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--paper); font-size: 1.2rem; cursor: pointer; color: var(--ink); }
.shots-nav button:hover { background: var(--bg); }
/* 공감 카드 */
.worry { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 16px; }
.worry li { list-style: none; background: var(--paper); border-radius: 18px; padding: 22px 24px; display: flex; flex-direction: column; gap: 6px; border: 1px solid var(--line); }
.worry li strong { font-size: 1.05rem; }
.worry li span { color: var(--ink-2); font-size: 0.92rem; }
.worry-answer { margin-top: 26px; background: var(--teal-soft); color: var(--teal-dark); border-radius: 18px; padding: 20px 24px; font-weight: 700; display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; justify-content: space-between; }
/* 연혁 */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-left: 3px solid var(--line-2); }
.timeline li { position: relative; padding: 0 0 18px 24px; display: flex; flex-wrap: wrap; gap: 4px 16px; }
.timeline li::before { content: ""; position: absolute; left: -9px; top: 6px; width: 15px; height: 15px; border-radius: 50%; background: var(--paper); border: 3px solid var(--teal-bright); }
.timeline time { flex: 0 0 5.5em; font-weight: 700; color: var(--teal-dark); font-variant-numeric: tabular-nums; }
.timeline span { flex: 1 1 260px; min-width: 0; }
/* 두 앱 비교 */
.compare { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 18px; }
.compare article { background: var(--paper); border-radius: 22px; padding: 28px; display: flex; flex-direction: column; gap: 12px; border: 2px solid var(--line); }
.compare article.me { border-color: var(--accent); }
.compare .tagline { font-size: 0.84rem; font-weight: 700; color: var(--muted); }
.compare ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; color: var(--ink-2); }
.compare .more { margin-top: auto; font-weight: 700; }
/* 작은 사진 묶음(원본이 작아 늘리지 않음) */
.photos.small { grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 248px)); justify-content: start; }
.photos.small img { aspect-ratio: auto; height: auto; max-width: 100%; }
.disclaimer { font-size: 0.8rem; color: #9aa6b0; margin-top: 8px; }
.cta .qr-box { background: rgba(255,255,255,.12); }
.cta .qr-box figcaption, .cta .qr-box p { color: #fff; }
@media (max-width: 760px) {
  .hero-phones { max-width: 380px; }
  .hero-phones .tag { font-size: 0.76rem; padding: 6px 10px; }
  .shots { grid-auto-columns: minmax(170px, 62vw); }
}

/* ===== 2026-10-17 2차: 문의 양식·호돌이·꼬리말 ===== */
.inq-card { flex: 1 1 440px; background: var(--paper); border: 1px solid var(--line); border-radius: 24px; padding: 28px; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 20px 44px rgba(28,37,48,.08); scroll-margin-top: 90px; }
.inq-card label { display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: 0.92rem; }
.inq-card input, .inq-card select, .inq-card textarea { font: inherit; font-weight: 400; font-size: 1rem; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 12px; background: #fff; color: var(--ink); min-height: 48px; width: 100%; box-sizing: border-box; }
.inq-card textarea { resize: vertical; }
.inq-card input:focus, .inq-card select:focus, .inq-card textarea:focus { outline: 3px solid var(--accent-soft); border-color: var(--accent); }
.inq-card .agree { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 400; font-size: 0.86rem; color: var(--ink-2); }
.inq-card .agree input { width: 22px; height: 22px; min-height: 0; margin-top: 2px; flex: 0 0 auto; }
.inq-card .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.inq-card .msg { border-radius: 12px; padding: 12px 14px; font-weight: 700; font-size: 0.92rem; }
.inq-card .msg.ok { background: var(--teal-soft); color: var(--teal-dark); }
.inq-card .msg.err { background: var(--accent-soft); color: var(--accent-ink); }
.inq-card button[disabled] { opacity: .6; cursor: wait; }
.hodori { width: 180px; height: auto; align-self: flex-start; }
.foot-brand { display: flex; flex-direction: column; gap: 10px; max-width: 360px; }
.foot-brand .brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 700; font-size: 1.2rem; }
.foot-brand .brand img { width: 40px; height: auto; background: #fff; border-radius: 10px; padding: 3px; }
.foot-brand p { font-size: 0.86rem; color: #c9d2d9; }
.foot-brand a { color: #fff; }
/* 인증 띠(친고령혁신제품 인증 강조) */
.cert-hero { display: flex; flex-wrap: wrap; align-items: center; gap: 28px 40px; background: var(--paper); border: 1px solid var(--line); border-radius: 28px; padding: 32px 36px; }
.cert-hero img.mark { width: 168px; height: 168px; flex: 0 0 auto; }
.cert-hero .txt { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.cert-hero .txt .kicker { font-weight: 700; color: var(--teal-dark); font-size: 0.92rem; }
.cert-hero .others { flex: 1 1 100%; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 12px; padding-top: 18px; border-top: 1px dashed var(--line-2); }
.cert-hero .others div { display: flex; flex-direction: column; gap: 2px; }
.cert-hero .others strong { font-size: 0.98rem; }
.cert-hero .others span { font-size: 0.82rem; color: var(--muted); }
/* 스마트폰·태블릿 */
.devices { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 18px; }
.devices article { background: var(--paper); border-radius: 22px; padding: 26px; display: flex; flex-direction: column; gap: 10px; border: 1px solid var(--line); }
.devices .big { font-family: var(--head); font-size: 1.5rem; font-weight: 700; }
.devices ul { margin: 0; padding-left: 20px; color: var(--ink-2); display: grid; gap: 4px; }
/* 두뇌 건강 이야기 */
.story-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 20px; list-style: none; margin: 0; padding: 0; }
.story-list a { display: flex; flex-direction: column; background: var(--paper); border-radius: 22px; overflow: hidden; text-decoration: none; color: var(--ink); border: 1px solid var(--line); height: 100%; }
.story-list img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--bg); }
.story-list .body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; }
.story-list .meta { font-size: 0.8rem; color: var(--muted); }
.story-list strong { font-size: 1.15rem; line-height: 1.4; }
.story-list p { color: var(--ink-2); font-size: 0.92rem; }
.article { max-width: 760px; margin: 0 auto; }
.article .thumb { width: 100%; border-radius: 22px; aspect-ratio: 16 / 10; object-fit: cover; margin: 18px 0 8px; }
.article .body p { margin: 0 0 18px; font-size: 1.08rem; line-height: 1.85; }
.article .body h2 { font-size: 1.3rem; margin: 30px 0 12px; }
.article .body ol { margin: 0 0 18px; padding-left: 24px; display: grid; gap: 6px; font-size: 1.05rem; }
.article .src { font-size: 0.82rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 14px; margin-top: 30px; }
.agency-steps { counter-reset: s; }
/* 소개 첫 화면: 8개 인지영역 판(2026-10-17, 첫 화면의 폰 그림과 겹치지 않게) */
.area-board { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; width: 100%; max-width: 480px; margin: 0 auto; }
.area-board .area { padding: 16px 18px; border-radius: 18px; }
.area-board .area strong { font-size: 1.05rem; }
.area-board .area p { font-size: 0.84rem; }
.hero { overflow-x: clip; }   /* 첫 화면 장식(호돌이)이 휴대폰에서 옆으로 넘치지 않게 */
/* 머리말: 메뉴 오른쪽 정렬(2026-10-17 사용자) — 로고와 메뉴 사이를 띄움, PC만(휴대폰은 접는 메뉴 그대로) */
@media (min-width: 1081px) {
  .site-header .bar { gap: 28px; }
  .main-nav { justify-content: flex-end; gap: 4px 26px; }
}
/* 완료 안내 창 */
.modal-back { position: fixed; inset: 0; z-index: 1000; background: rgba(28,37,48,.55); display: flex; align-items: center; justify-content: center; padding: 20px; animation: fadein .2s ease; }
.modal { background: var(--paper); border-radius: 24px; padding: 30px 28px 26px; width: min(420px, 100%); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; box-shadow: 0 30px 60px rgba(0,0,0,.25); }
.modal img { width: 120px; height: 120px; }
.modal h2 { font-size: 1.4rem; margin: 0; }
.modal p { color: var(--ink-2); margin: 0; }
.modal .btn { width: 100%; margin-top: 8px; }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
/* 현장 사진 자동 넘김(기관 도입 첫 화면, 2026-10-17) — 원본 사진이 작아 너무 크게 늘리지 않음 */
.photo-slider { width: 100%; max-width: 520px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.photo-slider .frame { position: relative; width: 100%; aspect-ratio: 16 / 11; border-radius: 22px; overflow: hidden; background: var(--ink); box-shadow: 0 24px 50px rgba(28,37,48,.18); }
.photo-slider .slide { margin: 0; }
.photo-slider .slide img { width: 100%; height: 100%; object-fit: cover; }
.photo-slider figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 18px 12px; color: #fff; font-weight: 700; font-size: 0.92rem; background: linear-gradient(transparent, rgba(0,0,0,.6)); }
/* 이용권 결제(/buy/) */
.buy-goods { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.buy-goods .plan { text-align: left; }
.buy-notes { margin: 0; padding-left: 20px; display: grid; gap: 8px; color: var(--ink-2); }
.buy-total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--line); padding-top: 14px; }
.buy-total b { font-family: var(--head); font-size: 1.6rem; color: var(--accent); font-variant-numeric: tabular-nums; }
