/* ═══════════════════════════════════════════════════════════
   ManageLessons 홍보 사이트 공통 스타일 (리디자인 2026-07)
   디자인 정본: website-redesign-mockup.html (사용자 최종 승인)
   토큰은 앱 디자인 시스템(#482d19 포인트)과 동기화.
   ═══════════════════════════════════════════════════════════ */

/* ─── Pretendard 폰트 (서브셋) ─── */
@font-face { font-family: 'Pretendard'; font-weight: 400; font-display: swap; src: url('../fonts/Pretendard-Regular.subset.woff2') format('woff2'); }
@font-face { font-family: 'Pretendard'; font-weight: 500; font-display: swap; src: url('../fonts/Pretendard-Medium.subset.woff2') format('woff2'); }
@font-face { font-family: 'Pretendard'; font-weight: 600; font-display: swap; src: url('../fonts/Pretendard-SemiBold.subset.woff2') format('woff2'); }
@font-face { font-family: 'Pretendard'; font-weight: 700; font-display: swap; src: url('../fonts/Pretendard-Bold.subset.woff2') format('woff2'); }

/* ═══════════════ 토큰 ═══════════════ */
:root {
	--primary:       #482d19;
	--primary-light: #e8d5c5;
	--primary-mid:   #8c6045;
	--primary-dark:  #2b1a0e;
	--bg:            #f5f5f7;
	--surface:       #ffffff;
	--surface2:      #fafafc;
	--section:       #f8f5f3;
	--hairline:      rgba(0,0,0,0.06);
	--border:        #e0e0e0;
	--divider:       #f0f0f0;
	--ink:           #1d1d1f;
	--ink-sub:       #7a7a7a;
	/* 별칭 — 목업 인라인 표기(var(--text))와 iOS 버튼 파랑 버그 방지용 */
	--text:          #1d1d1f;
	--text-sub:      #7a7a7a;
	--cream:         #fdf6f0;
	--cream-border:  #f0dfd0;
	--success:       #2d7a4f;
	--error:         #c0392b;
	--shadow-float:  2px 4px 8px rgba(0,0,0,0.10);   /* 앱 그림자 문법 {2,4}/0.10/8 */
	--shadow-card:   0 2px 12px rgba(72,45,25,0.05);
	--radius-card:   20px;
	--radius-hero:   32px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
	font-family: 'Pretendard', 'Apple SD Gothic Neo', -apple-system, BlinkMacSystemFont, 'SF Pro KR', 'Helvetica Neue', sans-serif;
	background: var(--bg);
	color: var(--ink);
	line-height: 1.6;
	word-break: keep-all;
	overflow-wrap: break-word;
	-webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img { max-width: 100%; }

/* ═══════════════ 다이나믹 아일랜드 글래스 내비 ═══════════════ */
.island {
	position: fixed;
	top: calc(env(safe-area-inset-top, 0px) + 10px);
	left: 50%;
	transform: translateX(-50%);
	width: min(calc(100% - 24px), 760px);
	z-index: 1000;
	border-radius: 28px;
	background: rgba(255,255,255,0.30);
	-webkit-backdrop-filter: blur(24px) saturate(180%);
	backdrop-filter: blur(24px) saturate(180%);
	border: 1px solid var(--hairline);
	box-shadow: var(--shadow-float);
	overflow: hidden;
	transition: width 0.32s cubic-bezier(0.32,0.72,0,1), border-radius 0.32s cubic-bezier(0.32,0.72,0,1), background 0.25s ease;
}
/* 스크롤 시 살짝 축소 — Safari 주소창 축소 감각 */
.island.scrolled { width: min(calc(100% - 48px), 680px); background: rgba(255,255,255,0.40); }

.island-bar {
	display: flex;
	align-items: center;
	gap: 8px;
	height: 56px;
	padding: 0 8px 0 18px;
	transition: height 0.25s ease;
}
.island.scrolled .island-bar { height: 50px; }

.island-logo {
	display: flex; align-items: center; gap: 8px;
	font-weight: 800; font-size: 15px; letter-spacing: -0.3px; color: var(--ink);
	flex-shrink: 0;
}
.island-logo .mark-img { width: 26px; height: 26px; border-radius: 8px; object-fit: cover; display: block; }
.island-links {
	display: none;              /* 모바일 숨김 */
	flex: 1;
	justify-content: center;
	gap: 2px;
}
.island-links a {
	padding: 8px 14px; border-radius: 999px;
	font-size: 13.5px; font-weight: 600; color: var(--ink-sub);
	letter-spacing: -0.2px;
	transition: background 0.15s, color 0.15s;
}
.island-links a:hover { background: rgba(72,45,25,0.06); color: var(--primary); }

.island-cta {
	margin-left: auto;
	display: inline-flex; align-items: center; justify-content: center;
	height: 44px; padding: 0 18px;
	border-radius: 999px;
	background: var(--primary); color: #fff;
	font-size: 13.5px; font-weight: 700; letter-spacing: -0.2px;
	box-shadow: 0 2px 8px rgba(72,45,25,0.25);
	transition: background 0.15s, transform 0.1s;
	flex-shrink: 0;
}
.island-cta:active { transform: scale(0.96); }
.island-cta:hover { background: var(--primary-dark); }

.island-burger {
	width: 44px; height: 44px; flex-shrink: 0;
	border: none; background: transparent; border-radius: 999px;
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
	transition: background 0.15s;
}
.island-burger:hover { background: rgba(72,45,25,0.06); }
.island-burger span {
	display: block; width: 16px; height: 2px; border-radius: 2px;
	background: var(--ink);
	transition: transform 0.25s ease, opacity 0.2s ease;
}
.island.open .island-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.island.open .island-burger span:nth-child(2) { opacity: 0; }
.island.open .island-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* 모바일 확장 메뉴 — 아일랜드가 아래로 늘어나는 모션 */
.island-menu {
	display: grid;
	grid-template-rows: 0fr;
	transition: grid-template-rows 0.32s cubic-bezier(0.32,0.72,0,1);
}
.island.open .island-menu { grid-template-rows: 1fr; }
.island-menu > div { overflow: hidden; }
.island-menu nav { padding: 4px 10px 12px; display: flex; flex-direction: column; }
.island-menu a {
	display: flex; align-items: center; gap: 12px;
	min-height: 48px; padding: 0 12px;
	border-radius: 14px;
	font-size: 15px; font-weight: 600; color: var(--ink); letter-spacing: -0.2px;
	transition: background 0.15s;
}
.island-menu a:hover { background: rgba(72,45,25,0.06); }
.island-menu a .ic {
	width: 30px; height: 30px; border-radius: 9px; flex-shrink: 0;
	background: var(--cream); border: 1px solid var(--cream-border);
	display: flex; align-items: center; justify-content: center; font-size: 15px;
}

@media (min-width: 768px) {
	.island-links { display: flex; }
	.island-burger { display: none; }
	.island-menu { display: none; }
}

/* ═══════════════ 레이아웃 공통 ═══════════════ */
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
section { padding: 34px 0; }
@media (min-width: 768px) { section { padding: 52px 0; } }

.eyebrow {
	display: inline-block;
	font-size: 12px; font-weight: 700; letter-spacing: 0.4px;
	color: var(--primary-mid); text-transform: uppercase;
	margin-bottom: 10px;
}
.sec-title {
	font-size: 26px; font-weight: 800; letter-spacing: -0.6px;
	line-height: 1.3; color: var(--ink);
}
.sec-sub { font-size: 15px; color: var(--ink-sub); margin-top: 10px; line-height: 1.7; }
.sec-head { text-align: center; margin-bottom: 26px; }
@media (min-width: 768px) {
	.sec-title { font-size: 36px; }
	.sec-head { margin-bottom: 38px; }
}

.card {
	background: var(--surface);
	border: 1px solid var(--hairline);
	border-radius: var(--radius-card);
	box-shadow: var(--shadow-card);
}

/* ═══════════════ 히어로 ═══════════════ */
.hero { padding: 108px 0 30px; text-align: center; }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 30px; align-items: center; }
.hero h1 {
	font-size: 34px; font-weight: 800; letter-spacing: -1.2px;
	line-height: 1.22; color: var(--ink);
}
.hero h1 .accent { color: var(--primary); }
.hero .tagline {
	margin-top: 14px; font-size: 16px; font-weight: 600;
	color: var(--primary-mid); letter-spacing: -0.3px;
}
.hero .desc {
	margin: 12px auto 0; max-width: 560px;
	font-size: 15px; color: var(--ink-sub); line-height: 1.75;
}
@media (min-width: 768px) {
	.hero { padding: 150px 0 44px; }
	.hero h1 { font-size: 48px; letter-spacing: -1.6px; }
	.hero .tagline { font-size: 18px; }
	.hero .desc { font-size: 16px; }
}
/* PC: 텍스트 좌 · 큰 비주얼 우 */
@media (min-width: 900px) {
	.hero { text-align: left; }
	.hero-grid { grid-template-columns: 1.05fr 0.95fr; gap: 44px; }
	.hero .desc { margin-left: 0; }
	.hero .store-badges { justify-content: flex-start; }
}

/* 주 CTA(베타 신청 이동) */
.hero-cta {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	margin-top: 26px;
	height: 54px; padding: 0 32px;
	border-radius: 999px;
	background: var(--primary); color: #fff;
	font-size: 16px; font-weight: 700; letter-spacing: -0.3px;
	box-shadow: 0 2px 8px rgba(72,45,25,0.25);
	transition: background 0.15s, transform 0.1s;
}
.hero-cta:hover { background: var(--primary-dark); }
.hero-cta:active { transform: scale(0.97); }
.hero-cta .arr { font-size: 14px; opacity: 0.8; }

.store-badges { display: flex; gap: 10px; flex-wrap: nowrap; justify-content: center; margin-top: 16px; }
.store-badge {
	display: inline-flex; align-items: center; justify-content: center; gap: 11px;
	flex: 1 1 0; min-width: 0; max-width: 220px;
	padding: 10px 12px; min-height: 52px;
	border-radius: 14px;
	background: var(--ink); color: #fff;
	transition: background 0.18s, transform 0.1s;
}
.store-badge:hover { background: #3a3a3c; }
.store-badge:active { transform: scale(0.97); }
.store-badge .icon { flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.store-badge .icon svg { width: 22px; height: 22px; fill: #fff; display: block; }
/* 라벨 컬럼 — 위 문구 너비 기준 가운데 정렬 */
.store-badge .txt { text-align: center; }
.store-badge .sub { display: block; font-size: 10px; opacity: 0.72; }
.store-badge .name { display: block; font-size: 14px; font-weight: 700; letter-spacing: -0.2px; }

/* 히어로 비주얼 */
.hero-visual { display: flex; justify-content: center; }
.hero-img {
	width: 100%;
	max-width: 720px;
	height: clamp(220px, 58vw, 320px); /* 명시적 높이 — aspect-ratio 미적용 렌더에서도 확정 */
	object-fit: cover;
	object-position: 60% 80%; /* 전경 바이올리니스트 중심 */
	border-radius: var(--radius-hero);
	border: 1px solid var(--hairline);
	box-shadow: 0 18px 40px rgba(72,45,25,0.18);
	display: block;
}
@media (min-width: 900px) { .hero-img { height: 460px; max-width: none; } }

/* ═══════════════ 베타 배너(메인) / 베타 히어로(신청 페이지) ═══════════════ */
.beta-hero {
	background: linear-gradient(160deg, var(--cream) 0%, #fff 70%);
	border: 1px solid var(--cream-border);
	border-radius: var(--radius-card);
	padding: 32px 20px 28px;
	text-align: center;
	margin-bottom: 18px;
}
.beta-badge {
	display: inline-flex; align-items: center; gap: 6px;
	background: var(--primary); color: #fff;
	border-radius: 999px; padding: 6px 15px;
	font-size: 12px; font-weight: 700; margin-bottom: 14px;
}
.beta-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: #7fd89a; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.35} }
.beta-hero h3 { font-size: 24px; font-weight: 800; letter-spacing: -0.6px; line-height: 1.35; }
.beta-hero .sub { font-size: 14px; color: var(--ink-sub); margin-top: 10px; line-height: 1.7; }
@media (min-width: 768px) { .beta-hero h3 { font-size: 30px; } }
.beta-perks { display: flex; gap: 8px; margin: 20px auto 0; max-width: 560px; }
.beta-perk {
	flex: 1; background: #fff; border: 1px solid var(--cream-border);
	border-radius: 14px; padding: 14px 8px;
}
.beta-perk .ico { font-size: 22px; }
.beta-perk .tt { font-size: 11.5px; font-weight: 700; color: var(--primary); margin-top: 6px; line-height: 1.4; }

/* 신청/서브 페이지 뒤로가기 */
.back-link {
	display: inline-flex; align-items: center; gap: 6px;
	min-height: 44px; padding: 0 6px;
	font-size: 14px; font-weight: 700; color: var(--primary-mid);
}
.back-link:hover { color: var(--primary); }

/* ═══════════════ 베타 신청 폼 ═══════════════ */
.beta-card { max-width: 640px; margin: 0 auto; padding: 26px 20px; }
@media (min-width: 768px) { .beta-card { padding: 32px 30px; } }
.bfield { margin-bottom: 18px; }
.bfield .fl { display: block; font-size: 13.5px; font-weight: 700; margin-bottom: 8px; letter-spacing: -0.1px; }
.bfield .fl .opt { font-weight: 400; color: var(--ink-sub); font-size: 12px; }
.bfield .hint { font-size: 12px; color: var(--ink-sub); margin-top: 6px; }
.bfield input[type="text"], .bfield input[type="email"], .bfield textarea,
.cfield input, .cfield textarea {
	width: 100%; padding: 13px 16px;
	border: 1.5px solid var(--border); border-radius: 12px;
	font-size: 15px; font-family: inherit; background: #fff; color: var(--ink);
	outline: none; transition: border-color 0.15s, box-shadow 0.15s;
}
.bfield input:focus, .bfield textarea:focus,
.cfield input:focus, .cfield textarea:focus {
	border-color: var(--primary); box-shadow: 0 0 0 3px rgba(72,45,25,0.10);
}
.bfield textarea, .cfield textarea { resize: vertical; min-height: 80px; }

.seg { display: flex; background: var(--bg); border-radius: 12px; padding: 4px; gap: 4px; }
.seg button {
	flex: 1; border: none; background: transparent; border-radius: 9px;
	padding: 11px 4px; min-height: 44px;
	font-size: 13.5px; font-weight: 600; color: var(--ink-sub);
	transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}
.seg button.on { background: #fff; color: var(--primary); font-weight: 700; box-shadow: 0 1px 4px rgba(0,0,0,0.10); }

.android-note {
	display: none; margin-top: 10px;
	background: var(--cream); border: 1px solid var(--cream-border);
	border-left: 3px solid var(--primary);
	border-radius: 0 12px 12px 0; padding: 12px 14px;
	font-size: 13px; color: var(--primary-dark); line-height: 1.6;
}
.android-note.show { display: block; animation: fadeIn 0.2s ease; }
.android-note b { color: var(--primary); }
@keyframes fadeIn { from{opacity:0; transform:translateY(-4px)} to{opacity:1; transform:none} }

.consent {
	display: flex; align-items: flex-start; gap: 10px;
	background: var(--surface2); border: 1px solid var(--divider);
	border-radius: 12px; padding: 13px 14px; margin-bottom: 8px; cursor: pointer;
}
.consent input[type="checkbox"] { position: absolute; opacity: 0; width: 1px; height: 1px; }
.consent .box {
	width: 22px; height: 22px; flex-shrink: 0; margin-top: 1px;
	border: 2px solid var(--border); border-radius: 7px; background: #fff;
	display: flex; align-items: center; justify-content: center;
	font-size: 13px; color: transparent; transition: all 0.12s;
}
.consent input:checked ~ .box { background: var(--primary); border-color: var(--primary); color: #fff; }
.consent input:focus-visible ~ .box { box-shadow: 0 0 0 2px var(--primary); }
.consent .txt { font-size: 13px; line-height: 1.55; }
.consent .txt .req { color: var(--primary); font-weight: 700; }
.consent .txt .aux { display: block; color: var(--ink-sub); font-size: 12px; margin-top: 4px; }
.consent-toggle {
	background: none; border: none; color: var(--primary);
	font-weight: 600; font-size: 13px; padding: 0;
	text-decoration: underline;
}
.consent-detail {
	display: none; background: var(--bg); border: 1px solid var(--divider);
	border-radius: 10px; padding: 10px 12px; margin-top: 8px;
	font-size: 12.5px; color: var(--ink-sub); line-height: 1.65;
}
.consent-detail.open { display: block; }
.consent-detail dt { font-weight: 700; color: var(--ink); margin-top: 6px; }
.consent-detail dt:first-child { margin-top: 0; }
.consent-detail dd { margin: 0 0 2px; }
/* 동의 상세를 label 밖 형제 요소로 (접근성 — 디자이너 검수 반영 구조 유지) */
.consent-group { flex-wrap: wrap; gap: 0; cursor: default; }
.consent-group .consent-row { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.consent-group .consent-toggle { margin-left: 6px; line-height: 1.55; }
.consent-group .consent-detail { flex-basis: 100%; margin-left: 32px; }
.consent-hint { font-size: 12px; color: var(--ink-sub); text-align: center; margin: 0 0 10px; }

/* ═══════════════ Turnstile (flexible) — 모바일 잘림 방지 ═══════════════
   컨테이너 폭 100% 추종 · 최소 300px. 부모 카드에 overflow:hidden/고정폭/transform 금지.
   320px 뷰포트: 아래 미디어쿼리로 카드·랩 padding 축소 → 위젯이 카드 배경 안에 머묾. */
.cf-turnstile {
	width: 100%; min-width: 0;
	display: flex; justify-content: center;
	overflow: visible;
	margin: 16px 0;
	min-height: 66px; /* 로드 전 레이아웃 점프 방지 */
}
/* flexible 위젯 iframe을 컨테이너(=제출 버튼) 폭에 맞춤 */
.cf-turnstile > * { flex: 1 1 auto; width: 100% !important; min-width: 0; }
@media (max-width: 359px) {
	.form-wrap { padding-left: 6px; padding-right: 6px; }
	.beta-card, .contact-card { padding-left: 8px; padding-right: 8px; }
}

.btn-primary {
	display: block; width: 100%;
	border: none; border-radius: 14px; height: 52px;
	background: var(--primary); color: #fff;
	font-size: 15.5px; font-weight: 700; letter-spacing: -0.2px;
	box-shadow: 0 2px 8px rgba(72,45,25,0.25);
	transition: background 0.15s, transform 0.1s;
}
.btn-primary:hover:not(:disabled) { background: var(--primary-dark); }
.btn-primary:active:not(:disabled) { transform: scale(0.985); }
.btn-primary:disabled { background: #b9aca2; box-shadow: none; cursor: not-allowed; }

.form-feedback { display: none; font-size: 13px; margin-top: 12px; text-align: center; }

/* 제출 완료 / 마감 */
.beta-done { text-align: center; padding: 8px 4px 4px; }
.beta-done .big { font-size: 44px; line-height: 1; }
.beta-done h4 { font-size: 18px; font-weight: 800; margin-top: 14px; }
.beta-done p { font-size: 14px; color: var(--ink-sub); margin-top: 10px; line-height: 1.7; }
.beta-done .steps {
	text-align: left; background: var(--surface2); border: 1px solid var(--divider);
	border-radius: 12px; padding: 14px 16px; margin-top: 18px; list-style: none;
}
.beta-done .steps li {
	font-size: 13px; color: var(--ink-sub);
	padding-left: 24px; position: relative; margin-bottom: 6px; line-height: 1.6;
}
.beta-done .steps li:last-child { margin-bottom: 0; }
.beta-done .steps li::before {
	content: attr(data-n); position: absolute; left: 0; top: 3px;
	width: 16px; height: 16px; border-radius: 50%;
	background: var(--primary-light); color: var(--primary);
	font-size: 10px; font-weight: 700;
	display: flex; align-items: center; justify-content: center;
}
.beta-done .next-hint {
	background: var(--cream); border: 1px solid var(--cream-border);
	border-radius: 12px; padding: 12px 14px; margin-top: 12px;
	font-size: 12.5px; color: var(--primary-dark); line-height: 1.65; text-align: left;
}
.beta-done .next-hint b { color: var(--primary); }
.beta-closed { text-align: center; padding: 6px 4px 4px; }
.beta-closed .chip {
	display: inline-block; background: var(--bg); color: var(--ink-sub);
	border-radius: 999px; padding: 5px 14px; font-size: 12px; font-weight: 700; margin-bottom: 12px;
}
.beta-closed h4 { font-size: 18px; font-weight: 800; }
.beta-closed p { font-size: 14px; color: var(--ink-sub); margin: 10px 0 18px; line-height: 1.7; }

/* ═══════════════ 설치 방법 4단계 ═══════════════ */
.install-guide { max-width: 640px; margin: 22px auto 0; }
.install-head { text-align: center; margin-bottom: 16px; }
.install-head h3 { font-size: 20px; font-weight: 800; letter-spacing: -0.4px; }
.install-head p { font-size: 13.5px; color: var(--ink-sub); margin-top: 8px; line-height: 1.7; }
.ig-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
.ig-step {
	display: flex; align-items: flex-start; gap: 14px;
	padding: 18px 18px;
}
.ig-step .n {
	width: 32px; height: 32px; flex-shrink: 0; border-radius: 999px;
	background: var(--primary-light); color: var(--primary);
	font-size: 14px; font-weight: 800;
	display: flex; align-items: center; justify-content: center;
}
.ig-step .tx h4 { font-size: 15px; font-weight: 700; letter-spacing: -0.2px; line-height: 1.4; margin-top: 4px; }
.ig-step .tx h4 .em { font-size: 15px; margin-right: 4px; }
.ig-step .tx p { font-size: 13px; color: var(--ink-sub); line-height: 1.7; margin-top: 4px; }
.ig-step .tx p b { color: var(--primary); font-weight: 700; }
@media (min-width: 900px) {
	.install-guide { max-width: 1048px; }
	.ig-grid { grid-template-columns: repeat(4, 1fr); gap: 14px; }
	.ig-step { flex-direction: column; gap: 10px; padding: 20px 18px; }
}

/* ═══════════════ 왜 ManageLessons ═══════════════ */
.why-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 768px) { .why-grid { grid-template-columns: 1fr 1fr; gap: 16px; } }
.why-card { padding: 24px 22px; }
.why-card .ic {
	width: 44px; height: 44px; border-radius: 13px;
	background: var(--cream); border: 1px solid var(--cream-border);
	display: flex; align-items: center; justify-content: center;
	font-size: 22px; margin-bottom: 14px;
}
.why-card h3 { font-size: 17px; font-weight: 700; letter-spacing: -0.3px; }
.why-card p { font-size: 14px; color: var(--ink-sub); margin-top: 8px; line-height: 1.75; }

/* ═══════════════ 기능 상세 ═══════════════ */
.role-toggle {
	display: flex; background: #ffffff; border: 1px solid var(--hairline);
	border-radius: 999px; padding: 4px;
	max-width: 420px; margin: 0 auto 22px;
	box-shadow: var(--shadow-card);
}
.role-toggle button {
	flex: 1; border: none; background: transparent; border-radius: 999px;
	padding: 12px 4px; min-height: 46px;
	font-size: 13.5px; font-weight: 700; color: var(--ink-sub);
	transition: background 0.18s, color 0.18s;
}
.role-toggle button.on { background: var(--primary); color: #fff; box-shadow: 0 2px 8px rgba(72,45,25,0.25); }

.role-pane { display: none; }
.role-pane.on { display: grid; grid-template-columns: 1fr; gap: 14px; animation: fadeIn 0.2s ease; }
@media (min-width: 768px) { .role-pane.on { grid-template-columns: 1fr 1fr; gap: 18px; } }
.feat-card { overflow: hidden; display: flex; flex-direction: column; }
.feat-shot { background: var(--bg); border-bottom: 1px solid var(--divider); padding: 18px 16px; display: flex; justify-content: center; }
/* 실기기 캡처(베젤 포함) — 프레임 없이 radius + 그림자만 */
.feat-shot img.scr {
	width: 172px; display: block;
	border-radius: 16px;
	box-shadow: 0 8px 20px rgba(0,0,0,0.14);
	height: auto;
}
.feat-body { padding: 18px; }
.feat-body h4 { font-size: 16px; font-weight: 700; letter-spacing: -0.2px; display: flex; align-items: center; gap: 8px; }
.feat-body h4 .fi {
	width: 30px; height: 30px; border-radius: 9px; flex-shrink: 0;
	background: var(--cream); border: 1px solid var(--cream-border);
	display: flex; align-items: center; justify-content: center; font-size: 15px;
}
.feat-body p { font-size: 13.5px; color: var(--ink-sub); line-height: 1.7; margin-top: 10px; }
.tags { margin-top: 12px; }
.app-tag {
	display: inline-block;
	background: var(--primary-light); color: var(--primary);
	border-radius: 999px; padding: 4px 13px;
	font-size: 11.5px; font-weight: 600; letter-spacing: -0.1px;
	margin: 0 4px 6px 0;
}

/* ═══════════════ 누구를 위한 앱 ═══════════════ */
.who-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 640px) { .who-grid { grid-template-columns: 1fr 1fr; gap: 16px; } }
@media (min-width: 980px) { .who-grid { grid-template-columns: 1fr 1fr 1fr; } }
.who-card { padding: 22px 20px; }
.who-card h3 { font-size: 16px; font-weight: 700; letter-spacing: -0.3px; }
.who-card p { font-size: 13.5px; color: var(--ink-sub); margin-top: 8px; line-height: 1.75; }
.who-card .tags { margin-top: 12px; }

/* ═══════════════ 후기 ═══════════════ */
.review-grid { display: grid; grid-template-columns: 1fr; gap: 12px; max-width: 780px; margin: 0 auto; }
@media (min-width: 768px) { .review-grid { grid-template-columns: 1fr 1fr; gap: 16px; } }
.review-card { padding: 22px 22px 18px; }
.review-card .q { font-size: 14.5px; color: #4a4a4c; line-height: 1.75; }
.review-card .q::before { content: '\201C'; color: var(--primary-mid); font-size: 22px; font-weight: 800; margin-right: 2px; }
.review-card .q::after { content: '\201D'; color: var(--primary-mid); font-size: 22px; font-weight: 800; margin-left: 2px; line-height: 0; vertical-align: -0.18em; }
.review-author { font-weight: 700; color: var(--primary); font-size: 12.5px; margin-top: 12px; letter-spacing: -0.1px; }

/* ═══════════════ FAQ ═══════════════ */
.faq-wrap { max-width: 720px; margin: 0 auto; }
.faq-item { margin-bottom: 10px; overflow: hidden; }
.faq-q {
	width: 100%; display: flex; align-items: center; gap: 12px;
	padding: 15px 16px; min-height: 48px;
	background: none; border: none; text-align: left;
	color: var(--text); /* 필수 — iOS Safari 버튼 기본 파랑 방지 */
	font-family: inherit; cursor: pointer;
}
.faq-q .qmark {
	flex-shrink: 0; width: 26px; height: 26px; border-radius: 8px;
	background: var(--primary-light); color: var(--primary);
	font-size: 13px; font-weight: 800;
	display: flex; align-items: center; justify-content: center;
}
.faq-q .qt { flex: 1; font-size: 14px; font-weight: 700; line-height: 1.5; }
.faq-q .arr { flex-shrink: 0; color: var(--ink-sub); font-size: 11px; transition: transform 0.2s ease; }
.faq-item.open .arr { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; }
.faq-item.open .faq-a { max-height: 480px; }
.faq-a .inner { padding: 0 16px 16px 54px; font-size: 13.5px; color: var(--ink-sub); line-height: 1.75; }
.faq-item.open { border-color: var(--primary-mid); }

/* ═══════════════ 광고 (작게, AD 라벨) ═══════════════ */
.ad-card {
	max-width: 728px; margin: 0 auto;
	display: flex; align-items: center; justify-content: center; gap: 10px;
	padding: 14px 16px;
	flex-wrap: wrap;
}
.ad-label {
	flex-shrink: 0;
	font-size: 10px; font-weight: 800; color: #b0b0b6;
	border: 1px solid #d5d5da; border-radius: 6px; padding: 2px 6px;
	letter-spacing: 0.5px;
}
.ad-slot { min-height: 250px; display: flex; align-items: center; justify-content: center; }
@media (min-width: 737px) { .ad-slot { min-height: 90px; } }

/* ═══════════════ 다운로드 CTA ═══════════════ */
.dl-card {
	background: linear-gradient(160deg, var(--cream) 0%, #fff 70%);
	border: 1px solid var(--cream-border);
	border-radius: var(--radius-hero);
	padding: 44px 24px;
	text-align: center;
}
.dl-card h2 { font-size: 24px; font-weight: 800; letter-spacing: -0.6px; }
.dl-card p { font-size: 14.5px; color: var(--ink-sub); margin-top: 12px; line-height: 1.75; }
@media (min-width: 768px) { .dl-card h2 { font-size: 32px; } .dl-card { padding: 60px 24px; } }

/* ═══════════════ 문의 ═══════════════ */
.contact-card { max-width: 640px; margin: 0 auto; padding: 26px 20px; }
@media (min-width: 768px) { .contact-card { padding: 32px 30px; } }
.cfield { margin-bottom: 14px; }
.cfield label { display: block; font-size: 13.5px; font-weight: 700; margin-bottom: 8px; }
.contact-sns { text-align: center; margin-top: 18px; font-size: 13.5px; color: var(--ink-sub); }
.contact-sns a { font-weight: 700; }
@media (min-width: 640px) {
	.cfield-row { display: flex; gap: 12px; }
	.cfield-row .cfield { flex: 1; }
}

/* ═══════════════ 푸터 ═══════════════ */
footer.site-footer { border-top: 1px solid var(--hairline); padding: 32px 16px calc(40px + env(safe-area-inset-bottom, 0px)); text-align: center; }
footer.site-footer .flogo { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 14px; color: var(--ink); }
footer.site-footer .flogo .mark-img { width: 22px; height: 22px; border-radius: 7px; object-fit: cover; display: block; }
footer.site-footer p { font-size: 12px; color: var(--ink-sub); margin-top: 12px; line-height: 1.7; }
footer.site-footer nav { margin-top: 10px; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
footer.site-footer nav a { font-size: 12px; color: var(--ink-sub); }

/* ═══════════════ Android 출시 예정 팝업 ═══════════════ */
.ml-modal-backdrop {
	display: none; position: fixed; inset: 0; z-index: 2000;
	align-items: center; justify-content: center; padding: 24px;
	background: rgba(0,0,0,0.45);
}
.ml-modal-backdrop.open { display: flex; }
.ml-modal { max-width: 400px; width: 100%; padding: 28px 24px; text-align: center; border-radius: 24px; }
.ml-modal .m-ico { font-size: 40px; margin-bottom: 10px; }
.ml-modal h4 { margin: 0 0 8px; font-size: 18px; font-weight: 800; }
.ml-modal .m-body { margin: 0 0 16px; color: var(--ink-sub); font-size: 14px; line-height: 1.7; }
.ml-modal form { display: flex; gap: 8px; }
.ml-modal input[type="email"] {
	flex: 1; min-width: 0; padding: 12px 14px;
	border: 1px solid var(--border); border-radius: 12px; font-size: 14px; font-family: inherit;
	outline: none;
}
.ml-modal input[type="email"]:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(72,45,25,0.10); }
.ml-modal .m-submit {
	padding: 12px 16px; border: none; border-radius: 12px;
	background: var(--primary); color: #fff; font-weight: 600; font-size: 14px;
}
.ml-modal .m-submit:disabled { background: #b9aca2; cursor: not-allowed; }
.ml-modal .m-error { display: none; margin: 8px 0 0; color: var(--error); font-size: 12.5px; }
.ml-modal .m-done { display: none; margin: 0; color: var(--primary); font-weight: 600; font-size: 14px; }
.ml-modal .m-close { margin-top: 14px; background: none; border: none; color: var(--ink-sub); font-size: 13px; }

/* ═══════════════ 업데이트 소식 ═══════════════ */
.rel-card { max-width: 720px; margin: 0 auto 12px; padding: 20px 20px 16px; }
.rel-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rel-head .ver { font-size: 15px; font-weight: 800; letter-spacing: -0.2px; }
.rel-head .latest { background: var(--primary); color: #fff; border-radius: 999px; padding: 2px 10px; font-size: 10.5px; font-weight: 700; }
/* 적용 예정 — 빌드됐지만 외부에 아직 안 열린 예정 버전. 중립 회색 배경 + 포인트 텍스트(정보, 경고 아님) */
.rel-head .pending { background: var(--section); color: var(--primary-mid); border: 1px solid var(--cream-border); border-radius: 999px; padding: 2px 10px; font-size: 10.5px; font-weight: 700; }
.rel-head .date { margin-left: auto; font-size: 12px; color: var(--ink-sub); }
.rel-items { list-style: none; margin-top: 12px; }
.rel-items li { display: flex; align-items: flex-start; gap: 8px; font-size: 13.5px; color: var(--ink-sub); line-height: 1.65; padding: 5px 0; }
.cat { flex-shrink: 0; border-radius: 999px; padding: 2px 10px; font-size: 11px; font-weight: 700; margin-top: 1px; }
.cat-feature { background: var(--primary-light); color: var(--primary); }  /* 기능·디자인 — 브라운 */
.cat-fix { background: #fdeaea; color: var(--error); }                     /* 버그수정 — 레드 */
.cat-ops { background: #e8f2ea; color: var(--success); }                   /* 정책·성능 — 그린 */

/* 로딩/빈/에러 상태 (기존 로직 유지) */
.status-box {
	max-width: 720px; margin: 0 auto;
	text-align: center; padding: 48px 16px; border: 1px dashed var(--border);
	border-radius: var(--radius-card); background: var(--surface2);
	font-size: 14px; color: var(--ink-sub); line-height: 1.7;
}
.status-box .ico { font-size: 30px; margin-bottom: 10px; }
.status-box.error { border-color: #ecc0ba; background: #fdf6f5; }
.spinner {
	width: 26px; height: 26px; margin: 0 auto 12px;
	border: 3px solid var(--divider); border-top-color: var(--primary);
	border-radius: 50%; animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.retry-btn {
	margin-top: 14px; display: inline-block;
	background: var(--primary); color: #fff; border: none; cursor: pointer;
	border-radius: 999px; padding: 9px 22px; font-size: 13px; font-weight: 600; font-family: inherit;
}
.retry-btn:hover { background: var(--primary-dark); }

/* ═══════════════ 모션 최소화 ═══════════════ */
/* 초소형 화면(≤339px): 아일랜드 바 오버플로 방지 — 로고 텍스트 숨김(아이콘만) */
@media (max-width: 339px) {
	.island-logo { font-size: 0; gap: 0; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.island, .island-bar, .island-menu, .island-burger span,
	.faq-a, .faq-q .arr, .role-toggle button, .seg button,
	.hero-cta, .island-cta, .store-badge, .btn-primary { transition: none; }
	.beta-badge .dot, .android-note.show, .role-pane.on, .spinner { animation: none; }
}
