/* ==========================================================================
   boolint.com v2 — 디자인 시스템 + 컴포넌트 (2026-10 재설계)
   - 토큰은 :root 한 곳. 옛 global.css/components.css 와 독립이다
   - 모바일 퍼스트. 브레이크포인트 640 / 900 / 1100
   - 스크린샷 PNG 는 이미 기기 베젤이 박혀 있고 모서리가 투명하다
     → CSS 프레임을 덧씌우지 않고 drop-shadow 만 준다 (box-shadow 는 네모로 보인다)
   ========================================================================== */

:root {
  /* 색 */
  --bg: #ffffff;
  --bg-soft: #f4f6fa;
  --ink: #0b1220;
  --ink-2: #2b3445;
  --muted: #5f6b7d;
  --line: #e4e8ef;
  --brand: #2563eb;
  --brand-600: #1d4ed8;
  --brand-soft: #e8efff;
  --navy: #0b1220;
  --navy-2: #121d3a;
  --on-dark: #ffffff;
  --on-dark-muted: rgba(255, 255, 255, .72);
  --on-dark-faint: rgba(255, 255, 255, .12);

  /* 카테고리 틴트 (아이콘 없는 앱의 첫 글자 바탕) */
  --tint-weather-bg: #e6f1ff; --tint-weather-fg: #1d4ed8;
  --tint-estate-bg: #fff3e0;  --tint-estate-fg: #b45309;
  --tint-tool-bg: #efeaff;    --tint-tool-fg: #6d28d9;
  --tint-learn-bg: #e3f8ec;   --tint-learn-fg: #15803d;

  /* 타이포 */
  --font: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, system-ui,
    'Apple SD Gothic Neo', 'Segoe UI', Roboto, sans-serif;
  --fs-display: clamp(2.375rem, 1.6rem + 3.4vw, 4rem);
  --fs-h1: clamp(2.125rem, 1.5rem + 2.6vw, 3.25rem);
  --fs-h2: clamp(1.625rem, 1.25rem + 1.6vw, 2.375rem);
  --fs-lead: clamp(1.0625rem, 1rem + .35vw, 1.25rem);
  --fs-body: 1rem;
  --fs-sm: .9375rem;
  --fs-xs: .8125rem;

  /* 모양 */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(11, 18, 32, .06), 0 1px 1px rgba(11, 18, 32, .04);
  --shadow-md: 0 8px 24px -8px rgba(11, 18, 32, .18), 0 2px 6px rgba(11, 18, 32, .06);
  --shot-shadow: drop-shadow(0 30px 40px rgba(0, 0, 0, .35)) drop-shadow(0 6px 10px rgba(0, 0, 0, .15));
  --shot-shadow-dark: drop-shadow(0 40px 50px rgba(0, 0, 0, .6)) drop-shadow(0 8px 12px rgba(0, 0, 0, .3));

  /* 치수 */
  --wrap: 1152px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 64px;
  --section-y: clamp(64px, 9vw, 120px);
}

/* 리셋 ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -.02em; font-weight: 700; }
button { font: inherit; }
.main { flex: 1; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

/* 타이포 유틸 ------------------------------------------------------------ */
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: .06em;
  color: var(--brand); margin-bottom: .875rem;
}
.eyebrow::before { content: ""; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }
.lead { font-size: var(--fs-lead); line-height: 1.65; color: var(--ink-2); }

.section { padding-block: var(--section-y); }
.section--soft { background: var(--bg-soft); }
.section__head { max-width: 680px; margin-bottom: clamp(32px, 5vw, 56px); }
.section__head h2 { font-size: var(--fs-h2); margin-bottom: .75rem; }
.section__head p { color: var(--muted); font-size: var(--fs-lead); }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head--center .eyebrow::before { display: none; }
.section__row {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap; margin-bottom: clamp(32px, 5vw, 56px);
}
.section__row .section__head { margin-bottom: 0; }
.link-more {
  display: inline-flex; align-items: center; gap: .25rem;
  font-weight: 600; font-size: var(--fs-sm); color: var(--brand); margin-bottom: 6px;
}
.link-more:hover { color: var(--brand-600); }

/* 버튼 ------------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: 0 1.375rem; border-radius: 999px;
  font-weight: 600; font-size: var(--fs-sm); line-height: 1; white-space: nowrap;
  border: 1px solid transparent;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--brand); color: #fff; box-shadow: 0 8px 20px -8px rgba(37, 99, 235, .6); }
.btn--primary:hover { background: var(--brand-600); }
.btn--light { background: #fff; color: var(--navy); }
.btn--light:hover { background: #eef2ff; }
.btn--ghost { border-color: rgba(255, 255, 255, .28); color: #fff; }
.btn--ghost:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .5); }
.btn__arrow { transition: transform .15s; }
.btn:hover .btn__arrow { transform: translateX(3px); }

/* 스토어 배지 ------------------------------------------------------------ */
.badges { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }
.badges a { display: inline-flex; border-radius: 8px; transition: transform .15s, opacity .15s; }
.badges a:hover { transform: translateY(-1px); opacity: .92; }
.badge--appstore img { height: 44px; width: auto; }
/* 구글 배지 PNG 는 위아래 투명 여백이 그림의 23% 다 → 52px 로 두면 눈에 보이는 높이가 Apple 40px 과 맞는다 */
.badge--play img { height: 52px; width: auto; margin: -4px; }

/* 헤더 ------------------------------------------------------------------ */
.header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(255, 255, 255, .84);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.header__logo {
  display: inline-flex; align-items: center; gap: .625rem;
  font-weight: 800; font-size: 1.0625rem; letter-spacing: -.01em; color: var(--ink);
}
.header__logo img { width: 28px; height: 28px; border-radius: 8px; }
.header__nav { display: flex; align-items: center; gap: .25rem; }
.header__link { padding: .5rem .875rem; border-radius: 999px; font-size: var(--fs-sm); font-weight: 500; color: var(--ink-2); }
.header__link:hover { background: var(--bg-soft); color: var(--ink); }
.header__lang {
  margin-left: .5rem; padding: .375rem .75rem; border: 1px solid var(--line); border-radius: 999px;
  font-size: var(--fs-xs); font-weight: 600; color: var(--ink-2);
}
.header__lang:hover { border-color: var(--ink); color: var(--ink); }
@media (max-width: 639px) { .header__link { display: none; } }

/* 다크 면 공통 (홈 히어로·앱 히어로·CTA) ---------------------------------- */
.dark {
  position: relative; background: var(--navy); color: var(--on-dark);
  overflow: hidden; isolation: isolate;
}
.dark::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(55% 60% at 12% 0%, rgba(37, 99, 235, .42), transparent 62%),
    radial-gradient(40% 45% at 90% 15%, rgba(13, 148, 136, .28), transparent 60%),
    linear-gradient(180deg, var(--navy-2), var(--navy) 70%);
}
.dark::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(70% 70% at 50% 30%, #000 30%, transparent 100%);
  mask-image: radial-gradient(70% 70% at 50% 30%, #000 30%, transparent 100%);
}
.dark h1, .dark h2 { color: #fff; }
.dark .lead { color: var(--on-dark-muted); }
.dark .eyebrow { color: #9db8ff; }
/* 본문 속 링크 (다크 면·카드) — 밑줄로 링크임을 드러낸다 */
.dark .lead a, .card a { text-decoration: underline; text-underline-offset: 2px; }
.dark .lead a:hover { color: #fff; }
.card a { color: var(--brand); }

.pill {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .375rem .875rem .375rem .625rem; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .06);
  font-size: var(--fs-xs); font-weight: 600; color: var(--on-dark-muted); margin-bottom: 1.5rem;
}
.pill__dot { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 4px rgba(52, 211, 153, .2); }

/* 홈 히어로 ------------------------------------------------------------- */
.hero { padding-top: clamp(56px, 8vw, 104px); }
.hero__grid { display: grid; gap: clamp(32px, 5vw, 56px); align-items: center; }
@media (min-width: 900px) { .hero__grid { grid-template-columns: 1.05fr 1fr; } }
.hero__title {
  font-size: var(--fs-display); font-weight: 800; letter-spacing: -.035em; line-height: 1.08;
  margin-bottom: 1.25rem;
}
.hero__lead { max-width: 34rem; margin-bottom: 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: clamp(32px, 4vw, 48px); }
.hero__stats {
  display: flex; flex-wrap: wrap; gap: clamp(20px, 3vw, 40px);
  padding-top: 1.5rem; border-top: 1px solid var(--on-dark-faint);
  padding-bottom: clamp(24px, 6vw, 80px);
}
.stat__num { display: block; font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.stat__label { display: block; font-size: var(--fs-xs); color: var(--on-dark-muted); margin-top: .25rem; }

/* 히어로 폰 팬 — 하단이 잘리며 떠오르는 구도 */
.hero__visual { position: relative; height: clamp(280px, 84vw, 500px); align-self: end; }
.phones { position: absolute; inset: 0; }
.phone { position: absolute; bottom: -14%; filter: var(--shot-shadow-dark); transform-origin: 50% 100%; }
/* 폰 폭 × 2.13 이 이미지 높이다. 비주얼 높이의 86% 안에 들어와야 위 글을 침범하지 않는다 */
.phone--c { width: min(42%, 200px); left: 50%; margin-left: min(-21%, -100px); z-index: 2; }
.phone--l { width: min(34%, 160px); left: 0; bottom: -26%; transform: rotate(-9deg); z-index: 1; }
.phone--r { width: min(34%, 160px); right: 0; bottom: -28%; transform: rotate(9deg); z-index: 1; }
@media (min-width: 900px) {
  .hero__visual { height: 560px; }
  .phone--c { width: 46%; left: 27%; margin-left: 0; }
  .phone--l, .phone--r { width: 38%; }
}

/* 대표 앱 벤토 그리드 ----------------------------------------------------- */
.bento { display: grid; gap: clamp(14px, 2vw, 20px); grid-template-columns: 1fr; }
@media (min-width: 640px) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .bento { grid-template-columns: repeat(4, 1fr); } }

.tile {
  position: relative; display: flex; flex-direction: column;
  min-height: 400px; padding: clamp(22px, 3vw, 32px);
  border-radius: var(--r-lg); overflow: hidden;
  background: var(--tile-bg, var(--bg-soft)); color: var(--tile-fg, var(--ink));
  border: 1px solid rgba(11, 18, 32, .05);
  transition: transform .25s ease, box-shadow .25s ease;
}
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.tile--large { min-height: 420px; }
@media (min-width: 640px) { .tile--large { grid-column: span 2; } }
.tile__head { display: flex; align-items: center; gap: .875rem; margin-bottom: 1rem; }
.tile__icon { width: 52px; height: 52px; border-radius: 14px; box-shadow: var(--shadow-sm); flex-shrink: 0; background: #fff; overflow: hidden; }
.tile__icon img { width: 100%; height: 100%; object-fit: cover; }
.tile__icon--ph { display: grid; place-items: center; font-weight: 800; font-size: 1.25rem; color: var(--tile-accent, var(--brand)); }
.tile__cat { font-size: var(--fs-xs); font-weight: 600; opacity: .7; }
.tile__name { font-size: 1.375rem; font-weight: 800; letter-spacing: -.02em; }
.tile__desc { max-width: 26ch; opacity: .78; font-size: var(--fs-sm); line-height: 1.6; }
.tile__cta {
  position: relative; z-index: 2; margin-top: auto;
  display: inline-flex; align-items: center; gap: .375rem;
  font-size: var(--fs-sm); font-weight: 600; opacity: .9;
}
.tile__shot { position: absolute; filter: var(--shot-shadow); transition: transform .35s ease; }
.tile--large .tile__text { max-width: 52%; }
.tile--large .tile__shot { right: clamp(16px, 5%, 48px); top: 11%; width: min(40%, 250px); }
.tile--large:hover .tile__shot { transform: translateY(-10px); }
.tile:not(.tile--large) .tile__shot { left: 50%; top: 56%; width: min(66%, 220px); transform: translateX(-50%); }
.tile:not(.tile--large):hover .tile__shot { transform: translate(-50%, -10px); }
/* 4열(≥1100)의 작은 타일은 이름 칸이 좁다 → 아이콘을 위로 올려 이름이 타일 폭을 다 쓰게 한다
   (영문 이름 "UniverseDaily" 가 단어 중간에서 끊기던 문제) */
@media (min-width: 1100px) {
  .tile:not(.tile--large) .tile__head { flex-direction: column; align-items: flex-start; gap: .75rem; }
  /* 머리가 높아진 만큼 타일을 늘리고, 설명은 2줄까지만 (스크린샷과 겹치지 않게) */
  .tile:not(.tile--large) { min-height: 440px; }
  .tile:not(.tile--large) .tile__desc {
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden;
  }
}
@media (max-width: 639px) {
  .tile--large .tile__text { max-width: none; }
  .tile--large .tile__shot { left: 50%; right: auto; top: 56%; width: min(66%, 220px); transform: translateX(-50%); }
  .tile--large:hover .tile__shot { transform: translate(-50%, -10px); }
  .tile--large .tile__cta { display: none; }
}
/* 타일 틴트 */
.tile--navy { --tile-bg: linear-gradient(160deg, #182a52, #0b1220); --tile-fg: #fff; border-color: rgba(255, 255, 255, .08); }
.tile--navy .tile__shot { filter: var(--shot-shadow-dark); }
.tile--sky { --tile-bg: #e6f1ff; --tile-accent: #1d4ed8; }
.tile--mint { --tile-bg: #e2f7f3; --tile-accent: #0f766e; }
.tile--amber { --tile-bg: #fff1dc; --tile-accent: #b45309; }
.tile--sand { --tile-bg: #f5eee3; --tile-accent: #92400e; }
.tile--rose { --tile-bg: #feeaea; --tile-accent: #be123c; }
.tile--violet { --tile-bg: #efeaff; --tile-accent: #6d28d9; }
/* 벤토의 빈 칸을 채우는 "전체 앱 보기" 타일 (영어 홈) */
.tile--more {
  align-items: center; justify-content: center; text-align: center;
  background: var(--bg-soft); border: 1px solid var(--line);
  font-weight: 700; font-size: 1.125rem; color: var(--ink-2);
}
.tile--more:hover { color: var(--brand); }
@media (max-width: 639px) { .tile--more { min-height: 120px; } }

/* 전체 앱 목록 ------------------------------------------------------------ */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: clamp(8px, 2vw, 16px); }
.chip {
  padding: .5rem 1rem; border-radius: 999px; border: 1px solid var(--line); background: #fff;
  font-size: var(--fs-sm); font-weight: 600; color: var(--ink-2);
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.cat { padding-top: clamp(28px, 4vw, 40px); scroll-margin-top: calc(var(--header-h) + 16px); }
.cat + .cat { margin-top: clamp(28px, 4vw, 48px); border-top: 1px solid var(--line); }
.cat__head { display: flex; align-items: baseline; gap: .75rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.cat__title { font-size: 1.375rem; font-weight: 800; letter-spacing: -.02em; }
.cat__count { font-size: var(--fs-xs); font-weight: 700; color: var(--muted); background: #fff; border: 1px solid var(--line); padding: .125rem .5rem; border-radius: 999px; }
.cat__desc { width: 100%; color: var(--muted); font-size: var(--fs-sm); margin-top: -.25rem; }

.app-list { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .app-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .app-list { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .app-list { grid-template-columns: repeat(4, 1fr); } }
.app-item {
  display: flex; align-items: center; gap: .875rem; padding: .875rem 1rem;
  border: 1px solid var(--line); border-radius: var(--r-md); background: #fff;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.app-item:hover { border-color: rgba(37, 99, 235, .5); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.app-item__icon { width: 48px; height: 48px; border-radius: 13px; flex-shrink: 0; overflow: hidden; box-shadow: var(--shadow-sm); }
.app-item__icon img { width: 100%; height: 100%; object-fit: cover; }
.app-item__icon--ph {
  display: grid; place-items: center; font-weight: 800; font-size: 1.125rem;
  background: var(--ph-bg, var(--brand-soft)); color: var(--ph-fg, var(--brand));
}
.app-item__body { min-width: 0; }
.app-item__name { display: block; font-weight: 700; font-size: var(--fs-sm); letter-spacing: -.01em; }
.app-item__desc { display: block; font-size: var(--fs-xs); color: var(--muted); line-height: 1.45; margin-top: .125rem; }
.app-item__meta { display: block; font-size: .6875rem; color: var(--muted); margin-top: .25rem; letter-spacing: .02em; opacity: .8; }
[data-cat="weather-road"] { --ph-bg: var(--tint-weather-bg); --ph-fg: var(--tint-weather-fg); }
[data-cat="realestate"] { --ph-bg: var(--tint-estate-bg); --ph-fg: var(--tint-estate-fg); }
[data-cat="daily-tool"] { --ph-bg: var(--tint-tool-bg); --ph-fg: var(--tint-tool-fg); }
[data-cat="learning"] { --ph-bg: var(--tint-learn-bg); --ph-fg: var(--tint-learn-fg); }

/* 3단 카드 (만드는 방식·신뢰·비교) ---------------------------------------- */
.cards3 { display: grid; gap: 16px; }
@media (min-width: 768px) { .cards3 { grid-template-columns: repeat(3, 1fr); } }
.card {
  padding: clamp(22px, 3vw, 30px); border-radius: var(--r-lg);
  background: #fff; border: 1px solid var(--line);
}
.card__icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand); margin-bottom: 1.125rem;
}
.card__icon svg { width: 22px; height: 22px; }
.card__vs { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .06em; color: var(--muted); margin-bottom: .5rem; }
.card h3 { font-size: 1.125rem; margin-bottom: .5rem; }
.card p { color: var(--muted); font-size: var(--fs-sm); }
.card ul li { font-size: var(--fs-sm); color: var(--muted); padding-left: 1rem; position: relative; margin-bottom: .375rem; }
.card ul li::before { content: ""; position: absolute; left: 0; top: .7em; width: 5px; height: 5px; border-radius: 50%; background: #c7d2fe; }

/* 푸터 ------------------------------------------------------------------ */
.footer { border-top: 1px solid var(--line); background: var(--bg-soft); padding: clamp(40px, 6vw, 64px) 0 32px; }
.footer__grid { display: grid; gap: 32px; }
@media (min-width: 768px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer__brand { display: inline-flex; align-items: center; gap: .625rem; font-weight: 800; margin-bottom: .75rem; }
.footer__brand img { width: 28px; height: 28px; border-radius: 8px; }
.footer__tag { color: var(--muted); font-size: var(--fs-sm); max-width: 30ch; }
.footer__title { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .06em; color: var(--muted); margin-bottom: .875rem; }
.footer__links li { margin-bottom: .5rem; }
.footer__links a { font-size: var(--fs-sm); color: var(--ink-2); }
.footer__links a:hover { color: var(--brand); }
.footer__bottom {
  margin-top: clamp(32px, 5vw, 48px); padding-top: 20px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem;
  font-size: var(--fs-xs); color: var(--muted);
}

/* 앱 페이지 — 히어로 ------------------------------------------------------- */
.app-hero { padding-top: clamp(32px, 5vw, 56px); }
.app-hero__grid { display: grid; gap: clamp(32px, 5vw, 56px); align-items: center; }
@media (min-width: 900px) { .app-hero__grid { grid-template-columns: 1.1fr .9fr; } }
.back {
  display: inline-flex; align-items: center; gap: .375rem;
  font-size: var(--fs-xs); font-weight: 600; color: var(--on-dark-muted);
  margin-bottom: clamp(24px, 4vw, 40px);
}
.back:hover { color: #fff; }
.app-hero__id { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.25rem; }
.app-hero__icon { width: 72px; height: 72px; border-radius: 20px; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .6); }
.app-hero__meta { display: flex; flex-wrap: wrap; gap: .5rem; }
.tag {
  display: inline-flex; align-items: center; padding: .3rem .7rem; border-radius: 999px;
  font-size: var(--fs-xs); font-weight: 600;
  border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .06); color: var(--on-dark-muted);
}
.tag--brand { background: rgba(37, 99, 235, .25); border-color: rgba(99, 145, 255, .4); color: #cfe0ff; }
.app-hero__title { font-size: var(--fs-h1); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; margin-bottom: 1rem; }
.app-hero__lead { max-width: 32rem; margin-bottom: 1.75rem; }
.app-hero__facts {
  display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin-top: 1.5rem;
  font-size: var(--fs-xs); color: var(--on-dark-muted); padding-bottom: clamp(32px, 7vw, 88px);
}
.app-hero__facts li { display: inline-flex; align-items: center; gap: .4rem; }
.app-hero__facts li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #34d399; }
.app-hero__visual { position: relative; height: clamp(300px, 96vw, 540px); align-self: end; }
.app-hero__visual .phone--c { width: min(50%, 240px); left: 8%; margin-left: 0; bottom: -10%; }
.app-hero__visual .phone--r { width: min(42%, 200px); right: 0; bottom: -30%; transform: rotate(8deg); }
@media (min-width: 900px) {
  .app-hero__visual { height: 600px; }
  .app-hero__visual .phone--c { width: 54%; left: 10%; }
  .app-hero__visual .phone--r { width: 46%; }
}

/* 스크린샷 없는 앱(stub) — 1열, 비주얼 없음 */
.app-hero--plain { padding-bottom: clamp(48px, 7vw, 88px); }
.app-hero--plain .app-hero__grid { grid-template-columns: 1fr; }
.app-hero--plain .app-hero__grid > div { max-width: 40rem; }
.app-hero--plain .app-hero__facts { padding-bottom: 0; }

/* 숫자 띠 — 히어로 아래 겹쳐 올라온다 */
.facts { position: relative; z-index: 2; margin-top: -40px; }
.facts__grid { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .facts__grid { grid-template-columns: repeat(4, 1fr); } }
.fact { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 1.125rem 1.25rem; box-shadow: var(--shadow-md); }
.fact__num { display: block; font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; color: var(--brand); line-height: 1.15; }
.fact__label { display: block; font-size: var(--fs-xs); color: var(--muted); margin-top: .25rem; }

/* 기능 행 — 글 | 스크린샷 교차 */
.feat { padding-block: clamp(48px, 7vw, 96px); }
.feat--soft { background: var(--bg-soft); }
.feat__grid { display: grid; gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (min-width: 900px) {
  .feat__grid { grid-template-columns: 1fr 1fr; }
  .feat--flip .feat__text { order: 2; }
}
.feat__text h2 { font-size: var(--fs-h2); margin-bottom: 1rem; }
.feat__text > p { color: var(--ink-2); margin-bottom: 1.25rem; }
.feat__media { display: flex; justify-content: center; align-items: flex-end; gap: 16px; }
.shot { width: min(100%, 300px); filter: var(--shot-shadow); }
.feat__media--duo .shot { width: min(46%, 240px); }
.feat__media--duo .shot:last-child { margin-bottom: 8%; }
.checks li { position: relative; padding-left: 1.75rem; margin-bottom: .625rem; color: var(--ink-2); }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 10px no-repeat;
}
.checks strong { color: var(--ink); font-weight: 700; }

/* 계산 사례 (계산기 앱) — 옛 .case-box 를 토큰만 바꿔 이식. 숫자는 옛 페이지 그대로 옮긴다 */
.case {
  margin-top: 1.5rem; padding: 1.125rem 1.25rem;
  background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--brand);
  border-radius: 0 var(--r-md) var(--r-md) 0;
}
.case__title { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .04em; color: var(--brand); margin-bottom: .375rem; }
.case h3 { font-size: 1.0625rem; line-height: 1.4; margin-bottom: .625rem; }
.case__note { font-size: var(--fs-xs); color: var(--muted); margin-bottom: .625rem; }
.case li { position: relative; padding-left: 1rem; margin-bottom: .375rem; font-size: var(--fs-sm); color: var(--ink-2); }
.case li::before { content: ""; position: absolute; left: 0; top: .7em; width: 5px; height: 5px; border-radius: 50%; background: #c7d2fe; }
.case strong { color: var(--ink); }
.case__result { margin-top: .75rem; padding-top: .75rem; border-top: 1px solid var(--line); font-size: var(--fs-sm); color: var(--ink-2); }
.case__result strong { color: var(--brand-600); }

/* 접힌 전체 기능 */
.more { border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; overflow: hidden; }
.more summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.25rem clamp(18px, 3vw, 28px); font-weight: 700;
}
.more summary::-webkit-details-marker { display: none; }
.more summary::after {
  content: ""; width: 10px; height: 10px; margin-right: 4px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg); transition: transform .2s;
}
.more[open] summary::after { transform: rotate(-135deg); }
.more summary small { font-weight: 500; color: var(--muted); font-size: var(--fs-xs); margin-left: .5rem; }
@media (max-width: 639px) { .more summary small { display: none; } }
.more__body {
  display: grid; gap: clamp(20px, 3vw, 32px);
  padding: clamp(18px, 3vw, 28px); border-top: 1px solid var(--line);
}
@media (min-width: 768px) { .more__body { grid-template-columns: repeat(2, 1fr); } }
.more__body h4 { font-size: var(--fs-sm); font-weight: 700; margin-bottom: .5rem; }
.more__body li { font-size: var(--fs-sm); color: var(--muted); padding-left: 1rem; position: relative; margin-bottom: .375rem; }
.more__body li::before { content: ""; position: absolute; left: 0; top: .7em; width: 5px; height: 5px; border-radius: 50%; background: #c7d2fe; }

/* 마지막 CTA 띠 */
.cta { text-align: center; padding-block: clamp(64px, 9vw, 112px); }
.cta__icon { width: 80px; height: 80px; border-radius: 22px; margin: 0 auto 1.5rem; box-shadow: 0 20px 40px -16px rgba(0, 0, 0, .6); }
.cta h2 { font-size: var(--fs-h2); margin-bottom: .75rem; }
.cta .lead { max-width: 30rem; margin: 0 auto 2rem; }
.cta .badges { justify-content: center; margin-bottom: 1.5rem; }
.cta__note { font-size: var(--fs-xs); color: var(--on-dark-muted); }

/* 본문 페이지 (개인정보처리방침·404 등) ------------------------------------ */
.prose { max-width: 760px; margin-inline: auto; padding: clamp(40px, 6vw, 72px) var(--gutter); color: var(--ink-2); }
.prose h1 { font-size: var(--fs-h1); color: var(--ink); margin-bottom: 1.25rem; }
.prose h2 { font-size: 1.375rem; color: var(--ink); margin: 2.5rem 0 .75rem; }
.prose h3 { font-size: 1.125rem; color: var(--ink); margin: 1.75rem 0 .5rem; }
.prose p { margin-bottom: 1rem; }
.prose ul, .prose ol { margin: 0 0 1rem 1.25rem; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: .375rem; }
.prose a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }
.prose table { width: 100%; border-collapse: collapse; margin-bottom: 1rem; font-size: var(--fs-sm); }
.prose th, .prose td { border: 1px solid var(--line); padding: .5rem .75rem; text-align: left; vertical-align: top; }
.prose th { background: var(--bg-soft); color: var(--ink); }
/* 본문 속 스크린샷·도움말 목록 (옛 페이지 마크업을 그대로 받는다) */
.prose img.app-screenshot { width: min(100%, 300px); margin: 1.5rem 0; filter: var(--shot-shadow); }
.prose .help-list { list-style: none; margin: 1.5rem 0 0; display: grid; gap: 12px; }
.prose .help-list a {
  display: block; padding: 1rem 1.25rem; border: 1px solid var(--line); border-radius: var(--r-md);
  text-decoration: none; color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
.prose .help-list a:hover { border-color: rgba(37, 99, 235, .5); box-shadow: var(--shadow-md); }
.prose .help-list strong { display: block; font-size: 1.0625rem; }
.prose .help-list p { margin: .25rem 0 0; color: var(--muted); font-size: var(--fs-sm); }

/* 문서형 레이아웃 (AgeMap 도움말) — 왼쪽 목차 + 본문 ---------------------- */
.doc-layout { display: grid; gap: clamp(20px, 4vw, 48px); padding-block: clamp(32px, 5vw, 64px); }
@media (min-width: 900px) { .doc-layout { grid-template-columns: 220px 1fr; align-items: start; } }
.doc-body { padding: 0; margin: 0; max-width: 760px; }
.doc-aside {
  border: 1px solid var(--line); border-radius: var(--r-md); padding: 1rem 1.125rem; background: var(--bg-soft);
}
@media (min-width: 900px) { .doc-aside { position: sticky; top: calc(var(--header-h) + 24px); } }
.doc-aside__back { display: inline-block; font-size: var(--fs-xs); font-weight: 600; color: var(--brand); margin-bottom: .75rem; }
.doc-aside__title { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .06em; color: var(--muted); margin-bottom: .5rem; }
.doc-aside__list a {
  display: block; padding: .375rem .625rem; margin: 0 -.625rem; border-radius: var(--r-sm);
  font-size: var(--fs-sm); color: var(--ink-2);
}
.doc-aside__list a:hover { background: #fff; color: var(--ink); }
.doc-aside__list a.is-active { background: #fff; color: var(--brand); font-weight: 700; box-shadow: var(--shadow-sm); }
@media (max-width: 899px) {
  /* 좁은 화면은 목차를 가로로 흘리는 칩 줄로 */
  .doc-aside__list { display: flex; flex-wrap: wrap; gap: .375rem; }
  .doc-aside__list a { margin: 0; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: .3rem .75rem; font-size: var(--fs-xs); }
}
