/* ==========================================================================
   ReOn Solution — site design system
   Plain CSS, no build step. Hosted on Cloudflare Pages (reonsol.com).
   Font: Pretendard (loaded per page via <link> from jsDelivr), system fallback.
   Per-app accent: <body class="theme-hyogo|theme-hyoword|theme-kegel">
   (or set --app-accent / --app-accent-ink inline on <body>).
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  color-scheme: light dark;

  --font-sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
    system-ui, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "D2Coding", monospace;

  /* surfaces + text (light) */
  --bg: #f8f9fb;
  --surface: #ffffff;
  --surface-2: #f1f3f7;
  --surface-3: #e8ebf2;
  --text: #14161b;
  --text-muted: #525a68;
  --text-subtle: #6b7383;
  --border: #e1e5ec;
  --border-strong: #c9cfda;

  /* company brand */
  --brand: #3451d1;
  --brand-ink: #2c45b8;
  --brand-on: #ffffff;
  --brand-soft: #eef1fd;

  /* status */
  --info: #2563eb;  --info-soft: #eaf1fe;
  --ok: #157347;    --ok-soft: #e7f5ee;
  --warn: #9a5b00;  --warn-soft: #fff5e1;
  --danger: #b42318; --danger-soft: #fdeceb;

  /* per-app accent (defaults to brand) */
  --app-accent: var(--brand);        /* decorative: bars, borders, dots */
  --app-accent-ink: var(--brand-ink); /* text / button backgrounds (AA on surface) */
  --app-on-accent: var(--brand-on);   /* text on --app-accent-ink */

  /* shape + depth */
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .06);
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 6px 20px -6px rgba(16, 24, 40, .12);
  --shadow-lg: 0 2px 4px rgba(16, 24, 40, .05), 0 22px 48px -16px rgba(16, 24, 40, .22);

  /* layout */
  --gutter: 16px;
  --container: 1120px;
  --container-narrow: 780px;
  --header-h: 64px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

@media (min-width: 640px) { :root { --gutter: 24px; } }
@media (min-width: 1024px) { :root { --gutter: 32px; } }

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1014;
    --surface: #161920;
    --surface-2: #1c2029;
    --surface-3: #252a35;
    --text: #eceef3;
    --text-muted: #a9b0bd;
    --text-subtle: #8a92a1;
    --border: #2a2f3a;
    --border-strong: #3a4150;

    --brand: #8ea2ff;
    --brand-ink: #9fb0ff;
    --brand-on: #0e1230;
    --brand-soft: #1b2142;

    --info: #8ab4ff;  --info-soft: #15233d;
    --ok: #6fd3a0;    --ok-soft: #12291f;
    --warn: #f3c36b;  --warn-soft: #2d2412;
    --danger: #ff9b91; --danger-soft: #331816;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 8px 24px -8px rgba(0, 0, 0, .55);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, .35), 0 24px 56px -16px rgba(0, 0, 0, .7);
  }
}

/* ---------- 2. Per-app themes ---------- */
.theme-hyogo   { --app-accent: #d4af37; --app-accent-ink: #7a5a00; --app-on-accent: #ffffff; }
.theme-hyoword { --app-accent: #ff6b9d; --app-accent-ink: #b0204f; --app-on-accent: #ffffff; }
.theme-kegel   { --app-accent: #1f6f64; --app-accent-ink: #1a6157; --app-on-accent: #ffffff; }

@media (prefers-color-scheme: dark) {
  .theme-hyogo   { --app-accent: #d4af37; --app-accent-ink: #e8c75c; --app-on-accent: #1d1600; }
  .theme-hyoword { --app-accent: #ff6b9d; --app-accent-ink: #ff94b8; --app-on-accent: #2a0612; }
  .theme-kegel   { --app-accent: #3aa595; --app-accent-ink: #6fd0c1; --app-on-accent: #04201c; }
}

/* soft tint derived from the accent */
:root, body, [class*="theme-"] {
  --app-accent-soft: color-mix(in srgb, var(--app-accent) 12%, var(--surface));
  --app-accent-line: color-mix(in srgb, var(--app-accent) 38%, var(--border));
}

/* ---------- 3. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: -0.005em;
  word-break: keep-all;
  overflow-wrap: anywhere;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
main { flex: 1 0 auto; display: block; }

img, svg, video { max-width: 100%; height: auto; display: block; }
img { border-style: none; }

h1, h2, h3, h4 { line-height: 1.3; letter-spacing: -0.02em; margin: 0 0 .6em; font-weight: 750; }
h1 { font-size: clamp(1.9rem, 1.2rem + 3vw, 3rem); }
h2 { font-size: clamp(1.45rem, 1.1rem + 1.4vw, 2rem); }
h3 { font-size: 1.18rem; }
h4 { font-size: 1.02rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.4em; }
li + li { margin-top: .3em; }
strong, b { font-weight: 700; }
small { font-size: .875em; }
hr { border: 0; border-top: 1px solid var(--border); margin: 2.5rem 0; }

a { color: var(--app-accent-ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--app-accent-ink); outline-offset: 2px; border-radius: 4px; }

code, kbd, samp { font-family: var(--font-mono); font-size: .9em; }
code { background: var(--surface-2); border: 1px solid var(--border); padding: .08em .4em; border-radius: 6px; word-break: break-all; }
kbd { background: var(--surface); border: 1px solid var(--border-strong); border-bottom-width: 2px; padding: .05em .4em; border-radius: 6px; }

::selection { background: color-mix(in srgb, var(--app-accent) 30%, transparent); }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: var(--gutter); top: -100px; z-index: 100;
  background: var(--text); color: var(--bg); padding: .6em 1em; border-radius: var(--radius-sm);
  text-decoration: none; font-weight: 700;
}
.skip-link:focus { top: 12px; }

/* ---------- 4. Layout ---------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: calc(var(--container-narrow) + var(--gutter) * 2); }

.section { padding-block: clamp(56px, 8vw, 104px); }
.section--alt { background: var(--surface); border-block: 1px solid var(--border); }
.section--tight { padding-block: clamp(36px, 5vw, 64px); }
.section__head { max-width: 680px; margin-bottom: clamp(28px, 4vw, 48px); }
.section__head--center { margin-inline: auto; text-align: center; }
.section__title { margin-bottom: .35em; }
.section__lead { color: var(--text-muted); font-size: 1.08rem; margin: 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5em;
  font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--app-accent-ink); margin-bottom: .9em;
}
.eyebrow::before { content: ""; width: 18px; height: 2px; background: var(--app-accent); border-radius: 2px; }

.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }

.stack > * + * { margin-top: 1rem; }
.muted { color: var(--text-muted); }
.subtle { color: var(--text-subtle); font-size: .92rem; }
.center { text-align: center; }

/* ---------- 5. Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; letter-spacing: -0.02em; font-size: 1.08rem; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand__mark {
  display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 9px;
  background: linear-gradient(135deg, #4a66ea, #2a3fb0); color: #fff; font-weight: 800; font-size: 1rem;
  box-shadow: inset 0 -2px 0 rgba(0,0,0,.15);
}
.brand__name span { color: var(--brand); }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; margin-right: -8px; padding: 0;
  border: 0; background: transparent; color: var(--text); border-radius: 10px; cursor: pointer;
}
.nav-toggle:hover { background: var(--surface-2); }
.nav-toggle__bar, .nav-toggle__bar::before, .nav-toggle__bar::after {
  content: ""; display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px;
  position: relative; transition: transform .2s var(--ease), background-color .2s;
}
.nav-toggle__bar::before { position: absolute; top: -6px; }
.nav-toggle__bar::after  { position: absolute; top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::after  { transform: translateY(-6px) rotate(-45deg); }

.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav li + li { margin-top: 0; }
.site-nav a {
  display: block; color: var(--text-muted); text-decoration: none; font-weight: 600;
  padding: 10px 14px; border-radius: 10px; font-size: .97rem;
}
.site-nav a:hover { color: var(--text); background: var(--surface-2); }
.site-nav a[aria-current="page"], .site-nav a.is-active { color: var(--text); background: var(--surface-2); }

/* mobile: dropdown panel (hidden unless .is-open, set by main.js). No-JS fallback: always visible */
@media (max-width: 767.98px) {
  .js .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--surface); border-bottom: 1px solid var(--border); box-shadow: var(--shadow);
    padding: 8px var(--gutter) 16px;
    display: none;
  }
  .js .site-nav.is-open { display: block; }
  .site-nav a { padding: 12px 14px; font-size: 1.02rem; }
  html:not(.js) .nav-toggle { display: none; }
  html:not(.js) .site-header__inner { flex-wrap: wrap; }
  html:not(.js) .site-nav ul { display: flex; flex-wrap: wrap; }
}
@media (min-width: 768px) {
  .nav-toggle { display: none; }
  .site-nav ul { display: flex; align-items: center; gap: 4px; }
}

/* ---------- 6. Buttons & badges ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 46px; padding: .7em 1.25em; border-radius: 12px;
  font: inherit; font-weight: 700; font-size: .98rem; line-height: 1.2;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: transform .15s var(--ease), box-shadow .15s var(--ease), background-color .15s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--app-accent-ink); color: var(--app-on-accent); box-shadow: var(--shadow-sm); }
.btn--primary:hover { box-shadow: var(--shadow); }
.btn--ghost { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.btn--ghost:hover { background: var(--surface-2); }
.btn--sm { min-height: 38px; padding: .45em .9em; font-size: .9rem; border-radius: 10px; }
.btn svg { width: 1.15em; height: 1.15em; flex: none; }

/* Google Play style download button */
.btn-play {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 56px; padding: 8px 18px 8px 14px; border-radius: 12px;
  background: #0b0d12; color: #fff; text-decoration: none; border: 1px solid #3a3f4b;
  box-shadow: var(--shadow-sm); transition: transform .15s var(--ease), box-shadow .15s var(--ease);
}
.btn-play:hover { text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-play__icon { width: 26px; height: 26px; flex: none; }
.btn-play__text { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.btn-play__small { font-size: .72rem; opacity: .82; font-weight: 500; letter-spacing: .01em; }
.btn-play__big { font-size: 1.05rem; font-weight: 700; letter-spacing: -0.01em; }
.btn-play .badge { margin-left: 4px; }
/* Before launch the button is a non-link: <span class="btn-play" aria-disabled="true"> */
.btn-play[aria-disabled="true"] { cursor: default; opacity: .88; }
.btn-play[aria-disabled="true"]:hover { transform: none; box-shadow: var(--shadow-sm); }
@media (prefers-color-scheme: dark) { .btn-play { background: #000; border-color: #4a5060; } }

.badge {
  display: inline-flex; align-items: center; gap: .35em;
  padding: .2em .6em; border-radius: var(--radius-pill);
  font-size: .75rem; font-weight: 700; line-height: 1.5; white-space: nowrap;
  background: var(--surface-2); color: var(--text-muted); border: 1px solid var(--border);
}
.badge--soon { background: var(--warn-soft); color: var(--warn); border-color: color-mix(in srgb, var(--warn) 25%, transparent); }
.badge--soon::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge--accent { background: var(--app-accent-soft); color: var(--app-accent-ink); border-color: var(--app-accent-line); }
.badge--ok { background: var(--ok-soft); color: var(--ok); border-color: color-mix(in srgb, var(--ok) 25%, transparent); }

.tag-list { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0; }
.tag-list li { margin: 0; }
.tag {
  display: inline-block; padding: .2em .65em; border-radius: var(--radius-pill);
  background: var(--surface-2); color: var(--text-muted); font-size: .8rem; font-weight: 600;
}

/* ---------- 7. Hero ---------- */
.hero { position: relative; padding-block: clamp(56px, 10vw, 120px) clamp(48px, 8vw, 96px); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -40% -20% auto -20%; height: 120%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40% 50% at 18% 30%, color-mix(in srgb, var(--brand) 16%, transparent), transparent 70%),
    radial-gradient(35% 45% at 82% 20%, color-mix(in srgb, #ff6b9d 12%, transparent), transparent 70%),
    radial-gradient(35% 45% at 70% 80%, color-mix(in srgb, #1f6f64 12%, transparent), transparent 70%);
}
.hero__inner { max-width: 820px; }
.hero__title { font-size: clamp(2.1rem, 1.3rem + 3.8vw, 3.6rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1.18; margin-bottom: .45em; }
.hero__title em { font-style: normal; color: var(--brand); }
.hero__lead { font-size: clamp(1.05rem, 1rem + .4vw, 1.25rem); color: var(--text-muted); max-width: 640px; margin-bottom: 1.8em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: clamp(40px, 6vw, 64px); }
@media (min-width: 768px) { .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.fact { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 18px 16px; }
.fact__num { order: -1; margin: 0; display: block; font-size: clamp(1.4rem, 1.1rem + 1.2vw, 1.9rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.2; }
.fact__label { display: block; color: var(--text-muted); font-size: .88rem; margin-top: 4px; }

/* App detail hero (apps/<key>/index.html) */
.app-hero { padding-block: clamp(40px, 7vw, 88px) clamp(32px, 5vw, 64px); background: linear-gradient(180deg, var(--app-accent-soft), transparent); }
.app-hero__grid { display: grid; gap: clamp(28px, 5vw, 56px); align-items: center; }
@media (min-width: 900px) { .app-hero__grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); } }
.app-hero__head { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; }
.app-hero__icon { width: 88px; height: 88px; border-radius: 22px; box-shadow: var(--shadow); flex: none; background: var(--surface); }
.app-hero__title { margin: 0; font-size: clamp(1.7rem, 1.2rem + 2.4vw, 2.6rem); }
.app-hero__subtitle { margin: 2px 0 0; color: var(--text-muted); font-weight: 600; }
.app-hero__tagline { font-size: clamp(1.08rem, 1rem + .5vw, 1.3rem); font-weight: 600; margin-bottom: .8em; }
.app-hero__desc { color: var(--text-muted); }
.app-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 24px; }
.app-hero__meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 18px; color: var(--text-subtle); font-size: .88rem; list-style: none; padding: 0; }
.app-hero__meta li { margin: 0; }
.app-hero__visual { display: flex; justify-content: center; }

/* Per-app sub navigation (소개 / 개인정보처리방침 / 이용약관 / 계정·데이터 삭제) */
.app-subnav { border-bottom: 1px solid var(--border); background: var(--surface); }
.app-subnav__inner { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.app-subnav__inner::-webkit-scrollbar { display: none; }
.app-subnav a {
  flex: none; display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 12px; color: var(--text-muted); text-decoration: none; font-weight: 600; font-size: .94rem;
  border-bottom: 2px solid transparent; white-space: nowrap;
}
.app-subnav a:hover { color: var(--text); }
.app-subnav a[aria-current="page"] { color: var(--text); border-bottom-color: var(--app-accent); }
.app-subnav__app { font-weight: 800 !important; color: var(--text) !important; }
.app-subnav__app img { width: 22px; height: 22px; border-radius: 6px; }

/* Breadcrumb */
.breadcrumb { font-size: .88rem; color: var(--text-subtle); margin-bottom: 18px; }
.breadcrumb ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.breadcrumb li { margin: 0; }
.breadcrumb li + li::before { content: "/"; margin: 0 6px 0 2px; opacity: .6; }
.breadcrumb a { color: inherit; text-decoration: none; }
.breadcrumb a:hover { color: var(--text); text-decoration: underline; }

/* ---------- 8. Cards ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(20px, 3vw, 28px); box-shadow: var(--shadow-sm); }

.app-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 310px), 1fr)); }
.app-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 24px; box-shadow: var(--shadow-sm); overflow: hidden;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s;
}
.app-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--app-accent); }
.app-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--app-accent-line); }
.app-card__top { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.app-card__icon { width: 64px; height: 64px; border-radius: 16px; box-shadow: var(--shadow-sm); flex: none; background: var(--surface-2); }
.app-card__name { font-size: 1.2rem; margin: 0; line-height: 1.3; }
.app-card__name a { color: var(--text); text-decoration: none; }
.app-card__name a::after { content: ""; position: absolute; inset: 0; z-index: 1; } /* whole-card link */
.app-card__name a:focus-visible { outline: none; }
.app-card:has(.app-card__name a:focus-visible) { outline: 3px solid var(--app-accent-ink); outline-offset: 3px; }
.app-card__meta { margin: 2px 0 0; color: var(--text-subtle); font-size: .86rem; font-weight: 600; }
.app-card__tagline { font-weight: 600; margin-bottom: .6em; }
.app-card__desc { color: var(--text-muted); font-size: .95rem; }
.app-card__tags { margin: 4px 0 18px; }
.app-card__footer { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.app-card__links { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .86rem; position: relative; z-index: 2; }
.app-card__links a { color: var(--text-muted); text-decoration: none; }
.app-card__links a:hover { color: var(--text); text-decoration: underline; }
.app-card__play { color: var(--text-subtle); }
.app-card__more { font-weight: 700; color: var(--app-accent-ink); font-size: .92rem; }

/* Value cards */
.value-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; }
.value-card__icon {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  background: var(--brand-soft); color: var(--brand-ink); margin-bottom: 14px;
}
.value-card__icon svg { width: 22px; height: 22px; }
.value-card h3 { margin-bottom: .4em; }
.value-card p { color: var(--text-muted); margin: 0; font-size: .96rem; }

/* ---------- 9. Feature list ---------- */
.feature-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.feature-list li { margin: 0; }
.feature {
  display: flex; gap: 14px; height: 100%;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px;
}
.feature__icon {
  flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px;
  background: var(--app-accent-soft); color: var(--app-accent-ink); font-weight: 800; font-size: .95rem;
}
.feature__icon svg { width: 20px; height: 20px; }
.feature__title { font-size: 1.04rem; margin: 2px 0 .3em; }
.feature__text { color: var(--text-muted); font-size: .94rem; margin: 0; }

/* Check list (simple bullets with checkmarks) */
.check-list { list-style: none; padding: 0; }
.check-list li { position: relative; padding-left: 1.8em; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .35em; width: 1.1em; height: 1.1em; border-radius: 50%;
  background: var(--app-accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23888' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 10.5l3.2 3L15 7'/%3E%3C/svg%3E") center / 70% no-repeat;
  border: 1px solid var(--app-accent-line);
}

/* ---------- 10. Screenshots gallery ---------- */
.screens {
  display: flex; gap: 16px; overflow-x: auto; padding: 4px var(--gutter) 18px; margin-inline: calc(var(--gutter) * -1);
  scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); -webkit-overflow-scrolling: touch;
  list-style: none;
}
.screens > li, .screens > figure { flex: none; margin: 0; scroll-snap-align: start; }
.screen { width: min(62vw, 240px); margin: 0; }
.screen img {
  width: 100%; border-radius: 22px; border: 1px solid var(--border); box-shadow: var(--shadow);
  background: var(--surface-2); height: auto; aspect-ratio: auto; /* box follows each image's width/height attributes (hyoword 9:22, kegel 9:19) */
}
.screen figcaption { margin-top: 10px; font-size: .86rem; color: var(--text-muted); text-align: center; }
.phone { width: min(70vw, 280px); }
.phone img { width: 100%; border-radius: 28px; border: 6px solid #0b0d12; box-shadow: var(--shadow-lg); }

/* ---------- 11. Callouts ---------- */
.callout {
  --c: var(--info); --c-soft: var(--info-soft);
  position: relative; margin: 1.5em 0; padding: 16px 18px 16px 20px;
  background: var(--c-soft); border: 1px solid color-mix(in srgb, var(--c) 22%, transparent);
  border-left: 4px solid var(--c); border-radius: var(--radius);
}
.callout > :last-child { margin-bottom: 0; }
.callout__title { display: block; font-weight: 750; color: var(--c); margin-bottom: .3em; font-size: 1rem; }
.callout--info { --c: var(--info); --c-soft: var(--info-soft); }
.callout--ok { --c: var(--ok); --c-soft: var(--ok-soft); }
.callout--warn { --c: var(--warn); --c-soft: var(--warn-soft); }
.callout--danger { --c: var(--danger); --c-soft: var(--danger-soft); }
.callout--accent { --c: var(--app-accent-ink); --c-soft: var(--app-accent-soft); }

/* ---------- 12. Legal documents ---------- */
.legal { padding-block: clamp(36px, 6vw, 72px) clamp(56px, 8vw, 96px); }
.legal__header { margin-bottom: 28px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.legal__title { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.4rem); margin-bottom: .35em; }
.legal__lead { color: var(--text-muted); font-size: 1.05rem; }
.legal__meta { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; padding: 0; margin: 14px 0 0; color: var(--text-subtle); font-size: .88rem; }
.legal__meta li { margin: 0; }
.legal__meta strong { color: var(--text-muted); font-weight: 600; }

/* Separator before the English version: <section id="en" class="legal-lang-split" lang="en"> */
.legal-lang-split { margin-top: 64px; padding-top: 40px; border-top: 1px solid var(--border); }

/* Table of contents */
.toc { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; margin: 0 0 36px; }
.toc__title { font-size: .95rem; font-weight: 750; margin: 0 0 10px; }
.toc ol { margin: 0; padding-left: 1.6em; columns: 1; column-gap: 32px; font-size: .94rem; }
@media (min-width: 720px) { .toc ol { columns: 2; } }
.toc li { break-inside: avoid; margin: 0 0 .35em; }
.toc a { color: var(--text-muted); text-decoration: none; }
.toc a:hover { color: var(--app-accent-ink); text-decoration: underline; }

/* Document body: <div class="legal-body"> with <section id="..."><h2>…</h2>…</section>
   h2 are auto-numbered "1." "2." … — do NOT hand-number headings. */
.legal-body { counter-reset: legal-h2; }
.legal-body > section { padding-top: 8px; margin-bottom: 40px; }
.legal-body h2 {
  counter-increment: legal-h2; counter-reset: legal-h3;
  font-size: clamp(1.2rem, 1.05rem + .6vw, 1.45rem);
  margin: 0 0 .8em; padding-bottom: .45em; border-bottom: 1px solid var(--border);
  display: flex; gap: .5em; align-items: baseline;
}
.legal-body h2::before { content: counter(legal-h2) "."; color: var(--app-accent-ink); font-variant-numeric: tabular-nums; flex: none; }
.legal-body h3 { counter-increment: legal-h3; font-size: 1.06rem; margin: 1.6em 0 .6em; }
.legal-body h3::before { content: counter(legal-h2) "." counter(legal-h3) " "; color: var(--text-subtle); font-weight: 600; }
.legal-body h4 { margin: 1.3em 0 .5em; }
.legal-body p, .legal-body li { color: var(--text); }
.legal-body ul, .legal-body ol { padding-left: 1.4em; }
.legal-body li::marker { color: var(--text-subtle); }
.legal-body .no-num::before { content: none; }
/* "제n조" style numbering variant: <div class="legal-body legal-body--articles"> (terms of service) */
.legal-body--articles h2::before { content: "제" counter(legal-h2) "조"; }
.legal-body--articles h3::before { content: "(" counter(legal-h3) ") "; }

/* Tables */
.table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 1.2em 0 1.6em; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.table-wrap table { margin: 0; border: 0; }
table { width: 100%; border-collapse: collapse; font-size: .93rem; line-height: 1.55; }
caption { caption-side: top; text-align: left; padding: 12px 16px 0; font-weight: 700; color: var(--text-muted); font-size: .88rem; }
th, td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
thead th { background: var(--surface-2); font-weight: 700; font-size: .86rem; color: var(--text-muted); white-space: nowrap; }
tbody tr:last-child > * { border-bottom: 0; }
tbody th { font-weight: 700; background: color-mix(in srgb, var(--surface-2) 45%, transparent); min-width: 120px; }
td code { white-space: nowrap; }
.table--compact th, .table--compact td { padding: 9px 12px; }
.table-wrap table { min-width: 560px; }

/* Definition list (key / value) */
.kv { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; margin: 1em 0 1.5em; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.kv > div { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px 16px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.kv > div:last-child { border-bottom: 0; }
.kv dt { font-weight: 700; color: var(--text-muted); font-size: .88rem; }
.kv dd { margin: 0; }
@media (min-width: 640px) { .kv > div { grid-template-columns: 180px minmax(0, 1fr); } }

/* Numbered steps (deletion guide etc.) */
.steps { list-style: none; padding: 0; margin: 1.2em 0 1.6em; counter-reset: step; }
.steps > li { counter-increment: step; position: relative; padding: 0 0 22px 52px; margin: 0; }
.steps > li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--app-accent-ink); color: var(--app-on-accent); font-weight: 800; font-size: .95rem;
}
.steps > li::after { content: ""; position: absolute; left: 16px; top: 40px; bottom: 6px; width: 2px; background: var(--border); }
.steps > li:last-child { padding-bottom: 0; }
.steps > li:last-child::after { content: none; }
.step__title { display: block; font-weight: 750; margin: 4px 0 .3em; }
.steps p { color: var(--text-muted); margin-bottom: .5em; }

/* Path breadcrumbs for device settings, e.g. 설정 › 앱 › … */
.path { display: inline; font-weight: 600; background: var(--surface-2); border: 1px solid var(--border); border-radius: 6px; padding: .05em .45em; font-size: .93em; }

/* ---------- 13. Contact block ---------- */
.contact-card { display: grid; gap: 24px; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow-sm); }
@media (min-width: 820px) { .contact-card { grid-template-columns: minmax(0, 1fr) auto; } }
.contact-card h2 { margin-bottom: .3em; }
.contact-card p { color: var(--text-muted); margin: 0; }
.contact-card__mail { font-weight: 800; font-size: clamp(1.1rem, 1rem + .6vw, 1.4rem); color: var(--text); text-decoration: none; word-break: break-all; }

/* ---------- 14. Footer ---------- */
.site-footer { margin-top: auto; background: var(--surface); border-top: 1px solid var(--border); padding-block: 48px 28px; font-size: .92rem; color: var(--text-muted); }
.site-footer__grid { display: grid; gap: 32px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .site-footer__grid { grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); } }
.site-footer__company .brand { margin-bottom: 12px; }
.site-footer__company p { margin: 0 0 .4em; }
.site-footer__company a { color: var(--text-muted); }
.site-footer__heading { font-size: .92rem; font-weight: 750; color: var(--text); margin: 0 0 10px; display: flex; align-items: center; gap: 8px; letter-spacing: -0.01em; }
.site-footer__heading img { width: 20px; height: 20px; border-radius: 5px; }
.site-footer__links { list-style: none; padding: 0; margin: 0; }
.site-footer__links li { margin: 0 0 .35em; }
.site-footer__links a { color: var(--text-muted); text-decoration: none; }
.site-footer__links a:hover { color: var(--text); text-decoration: underline; }
.site-footer__bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; font-size: .85rem; color: var(--text-subtle); }
.site-footer__bottom a { color: inherit; }

/* ---------- 15. 404 ---------- */
.not-found { text-align: center; padding-block: clamp(72px, 14vw, 160px); }
.not-found__code { font-size: clamp(4rem, 3rem + 6vw, 7rem); font-weight: 800; letter-spacing: -0.05em; line-height: 1; color: var(--brand); margin-bottom: 12px; }
.not-found .hero__actions { justify-content: center; }

/* ---------- 16. Print (legal docs) ---------- */
@media print {
  .site-header, .site-footer, .app-subnav, .nav-toggle, .skip-link, .toc, .hero__actions, .app-hero__actions { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  a { color: #000; }
  .legal-body > section { break-inside: auto; }
  .table-wrap { overflow: visible; border: 0; }
  .table-wrap table { min-width: 0; }
  th, td { border: 1px solid #999; }
}
