/* appbee — shared styles. Mobile first. No external fonts or CDNs. */
:root {
  --bg: #FAFAF8; --surface: #FFFFFF; --ink: #16181D; --muted: #5B6070; --line: #E6E5E0;
  --accent: #18233A; --accent-ink: #FFFFFF; --chip-bg: #EEEDE8; --chip-ink: #3A3F4B;
  --radius: 22px; --max: 1080px;
  --font: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard", "Noto Sans KR", "Noto Sans JP", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
.theme-silent { --bg: #F2F1EC; --surface: #FBFAF7; --ink: #18233A; --muted: #4E5869; --line: #DEDCD3;
  --accent: #5E8576; --accent-strong: #34564A; --chip-bg: #DCE5E0; --chip-ink: #34564A; }
.theme-stamp { --bg: #0B0C0E; --surface: #15171B; --ink: #F4F5F0; --muted: #A6ABB3; --line: #26292F;
  --accent: #C8FF00; --accent-strong: #C8FF00; --chip-bg: #1E2410; --chip-ink: #C8FF00; color-scheme: dark; }

/* language toggle */
html[lang="ko"] [data-lang="en"], html[lang="en"] [data-lang="ko"] { display: none !important; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); background: var(--bg); color: var(--ink);
  line-height: 1.6; -webkit-font-smoothing: antialiased; word-break: keep-all; overflow-wrap: anywhere; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.25; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* header */
.site-header { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 18px; letter-spacing: -0.02em; }
.brand img { width: 40px; height: 40px; object-fit: contain; }
.header-right { display: flex; align-items: center; gap: 14px; }
.crumb { font-size: 14px; color: var(--muted); text-decoration: none; display: none; }
.crumb:hover { color: var(--ink); }
.lang-toggle { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--chip-bg); }
.lang-toggle button { font: inherit; font-size: 13px; font-weight: 700; border: 0; cursor: pointer; padding: 6px 12px; min-width: 44px; min-height: 32px;
  border-radius: 999px; background: transparent; color: var(--muted); }
.lang-toggle button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.theme-stamp .lang-toggle { background: #1C1F24; }
.theme-stamp .lang-toggle button[aria-pressed="true"] { background: var(--accent); color: #0B0C0E; }

/* home */
.home-hero { padding: 56px 0 28px; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.home-hero h1 { font-size: clamp(30px, 7.4vw, 52px); font-weight: 800; max-width: 18em; }
.home-hero p { margin-top: 14px; color: var(--muted); font-size: 17px; max-width: 34em; }
.app-grid { display: grid; grid-template-columns: 1fr; gap: 18px; padding: 12px 0 64px; }
.app-card { position: relative; display: flex; flex-direction: column; gap: 18px; padding: 26px; border-radius: 28px; text-decoration: none;
  background: var(--card-bg); color: var(--card-ink); min-height: 260px; overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease; box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.06); }
.app-card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(0,0,0,.06), 0 18px 40px rgba(0,0,0,.12); }
.app-card::after { content: ""; position: absolute; right: -60px; bottom: -60px; width: 220px; height: 220px; border-radius: 50%;
  border: 28px solid var(--card-accent); opacity: .16; pointer-events: none; }
.app-card .icon { width: 76px; height: 76px; border-radius: 18px; box-shadow: 0 4px 14px rgba(0,0,0,.18); }
.app-card h2 { font-size: 26px; font-weight: 800; }
.app-card .sub { font-size: 14px; opacity: .78; margin-top: 2px; }
.app-card .desc { font-size: 16px; opacity: .9; max-width: 26em; }
.app-card .meta { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.app-card .more { white-space: nowrap; margin-left: auto; font-weight: 700; font-size: 15px; display: inline-flex; align-items: center; gap: 6px; }
.app-card .more svg { transition: transform .2s ease; }
.app-card:hover .more svg { transform: translateX(3px); }

.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; padding: 5px 11px; border-radius: 999px;
  background: var(--chip-bg); color: var(--chip-ink); white-space: nowrap; }
.app-card .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.app-card .chip.soon { background: transparent; color: inherit; opacity: .78; box-shadow: inset 0 0 0 1px currentColor; }
.app-card .chip { background: var(--card-chip-bg); color: var(--card-chip-ink); }

/* app page hero */
.app-hero { padding: 40px 0 36px; }
.app-hero .wrap { display: grid; gap: 22px; }
.app-hero .icon { width: 104px; height: 104px; border-radius: 24px; box-shadow: 0 8px 28px rgba(0,0,0,.16); }
.theme-stamp .app-hero .icon { box-shadow: 0 0 0 1px #2a2e35, 0 10px 40px rgba(200,255,0,.12); }
.app-hero h1 { font-size: clamp(32px, 8vw, 54px); font-weight: 800; }
.app-hero .alt-name { font-size: 15px; color: var(--muted); margin-top: 6px; }
.app-hero .lead { font-size: clamp(17px, 4.4vw, 21px); color: var(--ink); max-width: 30em; margin-top: 14px; }
.app-hero .lead strong { color: var(--accent-strong, var(--accent)); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 22px; }

/* App Store button (custom drawn — not Apple's badge artwork) */
.store-btn { display: inline-flex; align-items: center; gap: 12px; padding: 11px 22px 11px 18px; min-height: 56px; border-radius: 14px;
  background: #000; color: #fff; text-decoration: none; border: 1px solid #000; transition: transform .15s ease, box-shadow .15s ease; }
.store-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(0,0,0,.22); }
.store-btn svg { flex: none; }
.store-btn .small { display: block; font-size: 11.5px; line-height: 1.2; opacity: .82; }
.store-btn .big { display: block; font-size: 18px; font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; }
.theme-stamp .store-btn { border-color: #3a3f47; }
.store-btn.is-soon { background: #16181C; color: #D8DCE2; border: 1px dashed #4A4F58; cursor: default; }
.store-btn.is-soon:hover { transform: none; box-shadow: none; }

/* sections */
.section { padding: 44px 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { margin-bottom: 24px; }
.section-head h2 { font-size: clamp(24px, 5.6vw, 34px); font-weight: 800; }
.section-head p { color: var(--muted); margin-top: 8px; font-size: 16px; }
.accent { color: var(--accent-strong, var(--accent)); }

.features { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 12px; }
.features li { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px 18px 18px 60px; position: relative; }
.features li::before { content: ""; position: absolute; left: 18px; top: 20px; width: 26px; height: 26px; border-radius: 50%;
  background: var(--chip-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%2334564A' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }
.theme-stamp .features li::before { background-color: var(--accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%230B0C0E' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.features h3 { font-size: 17px; font-weight: 700; }
.features p { color: var(--muted); font-size: 15px; margin-top: 4px; }

/* new / spotlight */
.spot { display: grid; gap: 16px; }
.spot-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.spot-card figure { margin: 0; background: #E9E8E2; }
.spot-card .txt { padding: 18px 20px 22px; }
.spot-card h3 { font-size: 19px; font-weight: 800; }
.spot-card p { color: var(--muted); font-size: 15px; margin-top: 6px; }
.spot-pair { display: grid; grid-template-columns: 1fr; gap: 16px; }
.spot-pair figure { background: #10141c; }
.spot-pair figure img { width: 100%; aspect-ratio: 700 / 501; object-fit: cover; }

/* screenshot gallery: horizontal scroll with snap */
.gallery { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 20px 18px; margin: 0 -20px;
  scrollbar-width: thin; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.gallery li { list-style: none; flex: 0 0 auto; width: 62vw; max-width: 236px; scroll-snap-align: start; scroll-margin-left: 20px; }
.gallery img { width: 100%; aspect-ratio: 640 / 1391; object-fit: cover; border-radius: 20px; background: var(--chip-bg);
  box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 10px 26px rgba(24,35,58,.10); }
.theme-stamp .gallery img { aspect-ratio: 640 / 1385; border-radius: 26px; box-shadow: 0 0 0 1px #24272d; }
.gallery figcaption { font-size: 13.5px; color: var(--muted); margin-top: 10px; text-align: center; }
.scroll-hint { font-size: 13px; color: var(--muted); margin-top: 4px; }

/* pricing (해냈샷) */
.plans { display: grid; gap: 12px; }
.plan { border: 1px solid var(--line); border-radius: 18px; padding: 20px; background: var(--surface); }
.plan.hl { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.plan .k { font-size: 13px; font-weight: 700; color: var(--accent); letter-spacing: .04em; text-transform: uppercase; }
.plan h3 { font-size: 18px; margin-top: 6px; }
.plan p { color: var(--muted); font-size: 15px; margin-top: 6px; }

/* support */
.support { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px; }
.support a.mail { font-weight: 700; font-size: 18px; color: var(--accent-strong, var(--accent)); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.support .links { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 15px; }
.support .links a { color: var(--muted); }

/* privacy */
.doc { padding: 40px 0 64px; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(28px, 6.6vw, 40px); font-weight: 800; }
.doc .doc-meta { color: var(--muted); margin-top: 10px; font-size: 15px; }
.doc nav.toc { margin: 26px 0 8px; padding: 18px 20px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.doc nav.toc ol { margin: 8px 0 0; padding-left: 20px; }
.doc nav.toc a { color: var(--muted); text-decoration: none; }
.doc nav.toc a:hover { color: var(--ink); text-decoration: underline; }
.doc section { margin-top: 34px; scroll-margin-top: 80px; }
.doc h2 { font-size: 20px; font-weight: 800; margin-bottom: 10px; }
.doc p + p { margin-top: 10px; }
.todo { border: 1.5px dashed var(--accent); border-radius: 12px; padding: 12px 14px; color: var(--muted); background: color-mix(in srgb, var(--chip-bg) 45%, transparent); }
.back { display: inline-flex; gap: 6px; align-items: center; color: var(--muted); text-decoration: none; font-size: 15px; margin-bottom: 18px; }
.back:hover { color: var(--ink); }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: flex; flex-direction: column; gap: 10px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; }

@media (min-width: 720px) {
  .wrap { padding: 0 32px; }
  .crumb { display: inline; }
  .home-hero { padding: 88px 0 36px; }
  .app-grid { grid-template-columns: 1fr 1fr; gap: 22px; }
  .app-card { padding: 32px; min-height: 320px; }
  .app-hero { padding: 64px 0 48px; }
  .app-hero .wrap { grid-template-columns: auto 1fr; align-items: center; gap: 36px; }
  .app-hero .icon { width: 148px; height: 148px; border-radius: 34px; }
  .features { grid-template-columns: 1fr 1fr; gap: 14px; }
  .section { padding: 64px 0; }
  .gallery { padding: 4px 32px 20px; margin: 0 -32px; gap: 18px; }
  .gallery li { width: 220px; max-width: none; scroll-margin-left: 32px; }
  .spot { grid-template-columns: 1fr 1fr; }
  .spot .spot-card.wide { grid-column: 1 / -1; }
  .spot-pair { grid-template-columns: 1fr 1fr; }
  .plans { grid-template-columns: repeat(3, 1fr); }
  .site-footer .wrap { flex-direction: row; justify-content: space-between; align-items: center; }
}
@media (min-width: 1080px) {
  .gallery { margin: 0; padding: 4px 0 20px; }
  .features { grid-template-columns: repeat(3, 1fr); }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
