/* glonest.kr — glonest Design System v1.0 토큰 기반 */
:root {
  --gn-green-50: #EDF7F1; --gn-green-100: #D5EEDF; --gn-green-200: #ABDDC0;
  --gn-green-400: #57B884; --gn-green-500: #3BA36B; --gn-green-600: #2E8D5B;
  --gn-green-700: #1F7A4D; --gn-green-800: #175E3C; --gn-green-900: #10422B;
  --gn-amber-100: #FCEEDA; --gn-amber-500: #F0A84B; --gn-amber-700: #C97F1E;

  --bg: #FAF8F3; --surface: #FFFFFF; --sand: #F3EFE6; --border: #E8E4DA;
  --text: #2B3A33; --text-2: #5C6B62; --mute: #8A968D;
  --accent: #3BA36B; --accent-deep: #1F7A4D; --tint: #EDF7F1; --tint-2: #D5EEDF;
  --amber: #F0A84B; --amber-tint: #FCEEDA; --amber-ink: #8A5A12;

  --font: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --r-sm: 8px; --r-md: 12px; --r-lg: 16px; --r-xl: 24px; --r-pill: 999px;
  --sh-sm: 0 2px 8px rgba(43,58,51,.06); --sh-md: 0 6px 20px rgba(43,58,51,.08);
  --sh-lg: 0 12px 32px rgba(43,58,51,.12); --sh-glow: 0 4px 16px rgba(59,163,107,.25);
  --ease: cubic-bezier(.22,1,.36,1);
  --wrap: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14201A; --surface: #1C2B23; --sand: #24362C; --border: #32453A;
    --text: #EDF3EE; --text-2: #A3B5A9; --mute: #7E9286;
    --accent: #57B884; --accent-deep: #7FCBA0; --tint: #1F3328; --tint-2: #284235;
    --amber-tint: #3A2F1E; --amber-ink: #F6C98B;
    --sh-sm: 0 2px 8px rgba(0,0,0,.25); --sh-md: 0 6px 20px rgba(0,0,0,.3);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 16px; line-height: 1.65;
  word-break: keep-all; overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-deep); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--tint-2); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3, h4 { line-height: 1.25; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 12px; background: var(--surface); padding: 8px 14px; border-radius: var(--r-pill); z-index: 10; }

/* ── Header ─────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.2) blur(10px); -webkit-backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .25s var(--ease);
}
.site-header.scrolled { border-bottom-color: var(--border); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand img { width: 34px; height: 34px; }
.brand b { font-size: 21px; font-weight: 800; letter-spacing: -0.02em; }
.brand small { font-size: 13px; color: var(--text-2); font-weight: 500; }
.menu { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.menu a {
  display: inline-block; padding: 8px 14px; border-radius: var(--r-pill);
  color: var(--text-2); text-decoration: none; font-weight: 600; font-size: 15px;
}
.menu a:hover { color: var(--text); background: var(--sand); }
.menu a[aria-current="page"] { color: var(--accent-deep); background: var(--tint); }
.menu-btn {
  display: none; border: 1px solid var(--border); background: var(--surface); color: var(--text);
  border-radius: var(--r-pill); padding: 8px 14px; font: 600 14px var(--font); cursor: pointer;
}

/* ── Buttons & badges ────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border-radius: var(--r-pill); font-weight: 700; font-size: 16px;
  text-decoration: none; border: 1.5px solid transparent; cursor: pointer;
  transition: box-shadow .25s var(--ease), background .25s var(--ease);
}
.btn-primary { background: var(--gn-green-500); color: #fff; }
.btn-primary:hover { background: var(--gn-green-700); color: #fff; box-shadow: var(--sh-glow); }
.btn-secondary { border-color: var(--accent); color: var(--accent-deep); background: transparent; }
.btn-secondary:hover { background: var(--tint); color: var(--accent-deep); }
.btn-ghost { color: var(--text-2); }
.btn-ghost:hover { background: var(--sand); color: var(--text); }
.btn[aria-disabled="true"] { cursor: default; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px;
  border-radius: var(--r-pill); font-size: 13px; font-weight: 600;
  background: var(--tint); color: var(--accent-deep);
}
.badge.amber { background: var(--amber-tint); color: var(--amber-ink); }
.badge.neutral { background: var(--sand); color: var(--text-2); }
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

.eyebrow { font-size: 14px; font-weight: 700; color: var(--accent-deep); letter-spacing: .02em; }

/* ── Sections ────────────────────────────── */
section { padding: 72px 0; }
.section-head { max-width: 640px; margin-bottom: 36px; }
.section-head h2 { font-size: 32px; font-weight: 800; margin: 8px 0 12px; }
.section-head p { color: var(--text-2); font-size: 17px; }
.band { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* ── Hero ────────────────────────────────── */
.hero { padding: 64px 0 56px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero h1 { font-size: 52px; font-weight: 900; margin: 16px 0 20px; }
.hero h1 em { font-style: normal; color: var(--accent-deep); position: relative; }
.hero .lead { font-size: 18px; color: var(--text-2); max-width: 520px; margin-bottom: 32px; }
.hero-art { position: relative; aspect-ratio: 1 / 1; max-width: 440px; justify-self: center; width: 100%; }
.hero-art svg { width: 100%; height: 100%; }

/* ── Cards ───────────────────────────────── */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  box-shadow: var(--sh-sm); transition: box-shadow .25s var(--ease);
}
.card:hover { box-shadow: var(--sh-md); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

.what { padding: 28px; }
.what .ico {
  width: 48px; height: 48px; border-radius: var(--r-md); background: var(--tint);
  display: grid; place-items: center; margin-bottom: 18px; color: var(--accent-deep);
}
.what h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.what p { color: var(--text-2); }

.product { display: flex; flex-direction: column; overflow: hidden; }
.product .shot { aspect-ratio: 16 / 10; overflow: hidden; border-bottom: 1px solid var(--border); position: relative; }
.product .shot img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.product .body { padding: 28px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.product .meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.product h3 { font-size: 24px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.product h3 img { width: 36px; height: 36px; border-radius: 9px; }
.product p { color: var(--text-2); }
.product .btn-row { margin-top: auto; padding-top: 8px; }

/* TimeKeeper 카드 그림: 크림 무대 + 보리 */
.tk-stage { background: linear-gradient(180deg, var(--tint) 0%, var(--bg) 100%); display: flex; align-items: flex-end; justify-content: center; gap: 18px; padding: 24px 24px 0; }
.tk-stage .phone { width: 34%; max-width: 170px; border-radius: 18px 18px 0 0; border: 6px solid #2B3A33; border-bottom: 0; overflow: hidden; background: #F6F4EE; }
.tk-stage .phone img { aspect-ratio: auto; height: auto; }
.tk-stage .bori { width: 26%; max-width: 130px; align-self: center; }
.cq-stage { background: #F4EFE4; }

.principle { padding: 28px; }
.principle .num { font-size: 13px; font-weight: 800; color: var(--accent-deep); background: var(--tint); width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 16px; }
.principle h3 { font-size: 20px; margin-bottom: 8px; }
.principle p { color: var(--text-2); }

/* Contact */
.contact { padding: 40px; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; background: var(--tint); border-color: var(--tint-2); box-shadow: none; }
.contact:hover { box-shadow: none; }
.contact h2 { font-size: 28px; font-weight: 800; margin-bottom: 8px; }
.contact p { color: var(--text-2); }
.mail-ph { font-weight: 700; color: var(--text); font-size: 18px; letter-spacing: .01em; }

/* ── Product pages ───────────────────────── */
.page-hero { padding: 56px 0 40px; }
.page-hero .hero-grid { grid-template-columns: 1fr .8fr; }
.page-hero h1 { font-size: 44px; font-weight: 900; margin: 14px 0 16px; }
.page-hero .lead { font-size: 18px; color: var(--text-2); max-width: 560px; margin-bottom: 28px; }

.store-badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 9px 18px 9px 14px;
  border-radius: var(--r-md); background: #2B3A33; color: #FAF8F3; text-decoration: none;
  line-height: 1.15; opacity: .92; cursor: default; user-select: none;
}
.store-badge svg { width: 24px; height: 24px; }
.store-badge small { display: block; font-size: 11px; opacity: .8; }
.store-badge b { font-size: 16px; }
.store-badge .soon { margin-left: 6px; background: var(--amber); color: #2B3A33; font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: var(--r-pill); }
@media (prefers-color-scheme: dark) { .store-badge { background: #EDF3EE; color: #14201A; } }

.phones { display: flex; gap: 16px; justify-content: center; align-items: flex-start; position: relative; }
.phone-frame { width: 46%; max-width: 230px; border-radius: 30px; border: 8px solid #2B3A33; overflow: hidden; background: #F6F4EE; box-shadow: var(--sh-lg); }
.phone-frame.offset { margin-top: 48px; }
.phone-frame img { width: 100%; }
.cap { text-align: center; font-size: 13px; color: var(--mute); margin-top: 14px; }

.feature { padding: 26px; }
.feature h3 { font-size: 19px; margin-bottom: 8px; display: flex; gap: 10px; align-items: center; }
.feature h3 .k { font-size: 12px; font-weight: 800; color: var(--accent-deep); background: var(--tint); padding: 2px 9px; border-radius: var(--r-pill); }
.feature p { color: var(--text-2); }

.loop { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; list-style: none; padding: 0; margin: 0; }
.loop li { background: var(--surface); border: 1px solid var(--border); padding: 8px 16px; border-radius: var(--r-pill); font-weight: 600; font-size: 15px; }
.loop li.arrow { background: none; border: 0; padding: 0 2px; color: var(--mute); }

.status { padding: 28px; }
.status dl { display: grid; grid-template-columns: max-content 1fr; gap: 10px 24px; margin: 0; }
.status dt { font-weight: 700; }
.status dd { margin: 0; color: var(--text-2); }

.wide-shot { border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--sh-lg); background: #F4EFE4; }
.wide-shot .bar { display: flex; gap: 6px; padding: 10px 14px; background: var(--sand); border-bottom: 1px solid var(--border); }
.wide-shot .bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }

.note { font-size: 14px; color: var(--mute); }

/* ── Placeholder pages ───────────────────── */
.doc { padding: 56px 0 80px; }
.doc .card { padding: 40px; max-width: 760px; }
.doc h1 { font-size: 40px; font-weight: 800; margin: 12px 0 16px; }
.doc h2 { font-size: 20px; margin: 28px 0 8px; }
.doc p, .doc li { color: var(--text-2); }
.doc ul { padding-left: 20px; margin: 8px 0 0; }
.notice { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: var(--r-md); background: var(--amber-tint); color: var(--text); margin: 20px 0 8px; }
.notice img { width: 56px; flex: none; }
.notice b { display: block; margin-bottom: 2px; }

.nf { min-height: min(62vh, 620px); display: grid; place-items: center; text-align: center; padding: 64px 0; }
.nf img { width: 150px; margin: 0 auto 20px; }
.nf h1 { font-size: 36px; font-weight: 800; margin-bottom: 10px; }
.nf p { color: var(--text-2); margin-bottom: 28px; }

/* ── Footer ──────────────────────────────── */
.site-footer { border-top: 1px solid var(--border); padding: 40px 0 48px; color: var(--text-2); font-size: 14px; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px 40px; }
.foot .brand b { font-size: 18px; }
.foot .brand img { width: 28px; height: 28px; }
.foot p { margin-top: 10px; max-width: 360px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot a { color: var(--text-2); text-decoration: none; }
.foot a:hover { color: var(--accent-deep); text-decoration: underline; }
.copy { margin-top: 28px; color: var(--mute); font-size: 13px; }

/* ── Motion ──────────────────────────────── */
.float { animation: float 6s var(--ease) infinite alternate; transform-origin: center; }
@keyframes float { from { transform: translateY(0); } to { transform: translateY(-8px); } }
.glow-pulse { animation: glow 4.5s ease-in-out infinite alternate; }
@keyframes glow { from { opacity: .55; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .float, .glow-pulse { animation: none; }
  html { scroll-behavior: auto; }
}

/* ── Responsive ──────────────────────────── */
@media (max-width: 960px) {
  .hero-grid, .page-hero .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-art { max-width: 340px; order: -1; }
  .hero h1 { font-size: 44px; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .menu-btn { display: inline-flex; }
  .menu {
    display: none; position: absolute; left: 0; right: 0; top: 68px; flex-direction: column; align-items: stretch;
    background: var(--bg); border-bottom: 1px solid var(--border); padding: 8px 16px 16px; gap: 2px;
  }
  .menu.open { display: flex; }
  .menu a { padding: 12px 14px; font-size: 16px; }
  .brand small { display: none; }
  section { padding: 56px 0; }
  .hero { padding: 36px 0 40px; }
  .hero h1 { font-size: 36px; }
  .hero .lead, .page-hero .lead { font-size: 17px; }
  .hero-art { max-width: 260px; }
  .page-hero h1 { font-size: 34px; }
  .section-head h2 { font-size: 26px; }
  .grid-3 { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; padding: 28px; }
  .doc .card { padding: 28px 22px; }
  .doc h1 { font-size: 32px; }
  .status dl { grid-template-columns: 1fr; gap: 2px; }
  .status dd { margin-bottom: 10px; }
  .wrap { padding: 0 20px; }
  .btn { padding: 12px 20px; }
}

/* ── Generated media (Grok) ──────────────── */
.media { position: relative; }
.media video, .media img.poster { width: 100%; height: 100%; object-fit: cover; display: block; }
.media img.poster { display: none; }
.media.blend video, .media.blend img { mix-blend-mode: multiply; }
.hero-media { aspect-ratio: 1 / 1; max-width: 480px; width: 100%; justify-self: center; border-radius: 50%; overflow: hidden;
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 58%, transparent 71%); mask-image: radial-gradient(circle at 50% 50%, #000 58%, transparent 71%); }
.wide-media { aspect-ratio: 16 / 9; border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--sh-md); background: #FBF1DE; }
.principle .pic { width: 88px; height: 88px; border-radius: 50%; overflow: hidden; margin-bottom: 16px; background: #FAF0DD; }
.principle .pic img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.35); }
.product .shot.art img { object-position: center; }
@media (prefers-color-scheme: dark) {
  .media.blend video, .media.blend img { mix-blend-mode: normal; }
}
@media (prefers-reduced-motion: reduce) {
  .media video { display: none; }
  .media img.poster { display: block; }
}
@media (max-width: 960px) { .hero-media { max-width: 360px; order: -1; } }
@media (max-width: 720px) { .hero-media { max-width: 280px; } .principle .pic { width: 72px; height: 72px; } }
.hero-grid.split { grid-template-columns: 1fr 1fr; }
.phone-frame { max-width: 250px; margin: 0; }
.phone-frame.offset { margin-top: 48px; }
@media (max-width: 960px) { .hero-grid.split { grid-template-columns: 1fr; } }

/* TimeKeeper 처리방침·지원(원문 = TimeKeeper docs/privacy/*-ko.md, tools/policy-html.mjs가 옮김) */
.notice.draft { border: 1px solid var(--amber); }
.doc-meta { font-size: 14px; margin: 4px 0 8px; }
.doc h3 { font-size: 16px; margin: 18px 0 4px; }
.doc .quote { border-left: 3px solid var(--border); padding-left: 12px; }
.doc .table-wrap { overflow-x: auto; margin: 12px 0; }
.doc table { border-collapse: collapse; width: 100%; font-size: 14px; line-height: 1.55; }
.doc th, .doc td { border: 1px solid var(--border); padding: 8px 10px; text-align: left; vertical-align: top; word-break: keep-all; color: var(--text-2); }
.doc th { color: var(--text); background: var(--sand); font-weight: 700; }
@media (max-width: 640px) { .doc table { min-width: 560px; } }
