:root {
  --bg: #fbfbfa; --surface: #ffffff; --fg: #19181d; --muted: #5f5e66; --line: #e7e6ea;
  --green: #2a9463; --green-soft: #e3f3eb; --ink: #19181d; --screen: #f1f3f6;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111113; --surface: #1a1a1e; --fg: #ececf0; --muted: #a3a2ab; --line: #2a2a30;
    --green: #47c08a; --green-soft: #173327; --ink: #ececf0; --screen: #23242a;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 16px/1.65 "Pretendard Variable", "Pretendard", system-ui, -apple-system, "Segoe UI", "Noto Sans KR", sans-serif; -webkit-font-smoothing: antialiased; word-break: keep-all; overflow-wrap: break-word; }
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* top bar */
.top { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 12px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.1rem; color: var(--fg); }
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.top nav { margin-left: auto; display: flex; gap: 18px; align-items: center; font-size: .95rem; }
.top nav a { color: var(--muted); }
.lang { border: 1px solid var(--line); background: var(--surface); color: var(--fg); border-radius: 999px; padding: 4px 12px; font: inherit; font-size: .85rem; cursor: pointer; }

/* hero */
.hero { padding: 72px 0 40px; display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 8px; background: var(--green-soft); color: var(--green); font-weight: 600; font-size: .85rem; border-radius: 999px; padding: 6px 14px; }
.pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill.soon { background: color-mix(in srgb, var(--fg) 7%, transparent); color: var(--muted); }
.pill.soon::before { background: var(--muted); }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.15; letter-spacing: -0.02em; margin: 18px 0 16px; }
.hero h1 em { font-style: normal; color: var(--green); }
.hero p.sub { color: var(--muted); font-size: 1.12rem; margin: 0 0 28px; max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; gap: 8px; border-radius: 12px; padding: 12px 20px; font-weight: 600; border: 1px solid var(--line); background: var(--surface); color: var(--fg); }
.btn:hover { text-decoration: none; border-color: var(--green); }
.btn.primary { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn small { font-weight: 500; opacity: .7; }

/* device mock */
.mock { position: relative; aspect-ratio: 4 / 3; }
.tablet { position: absolute; inset: 0 10% 8% 0; background: var(--ink); border-radius: 22px; padding: 12px; box-shadow: 0 30px 60px -25px rgba(0,0,0,.35); }
.desk { width: 100%; height: 100%; border-radius: 12px; background: linear-gradient(135deg, #2a9463 0%, #1f6f86 55%, #2d3f8f 100%); position: relative; overflow: hidden; }
.win { position: absolute; background: #fff; border-radius: 8px; box-shadow: 0 10px 24px rgba(0,0,0,.25); overflow: hidden; }
.win::before { content: ""; display: block; height: 14px; background: #eef0f3; border-bottom: 1px solid #e1e3e8; }
.win.a { left: 8%; top: 10%; width: 52%; height: 52%; }
.win.b { left: 40%; top: 36%; width: 50%; height: 44%; }
.win .l { height: 6px; border-radius: 3px; background: #e6e8ed; margin: 10px 10px 0; }
.win .l.s { width: 55%; }
.win.b .term { background: #19181d; height: calc(100% - 14px); padding: 8px 10px; font: 10px/1.6 ui-monospace, Consolas, monospace; color: #8fe0b5; }
.taskbar { position: absolute; left: 0; right: 0; bottom: 0; height: 9%; background: rgba(255,255,255,.75); display: flex; align-items: center; justify-content: center; gap: 6px; }
.taskbar i { width: 14px; height: 14px; border-radius: 4px; background: #19181d; opacity: .75; }
.taskbar i:first-child { background: #2a9463; opacity: 1; }
.phone { position: absolute; right: 0; bottom: 0; width: 26%; aspect-ratio: 9 / 18; background: var(--ink); border-radius: 18px; padding: 6px; box-shadow: 0 24px 40px -18px rgba(0,0,0,.45); }
.phone .pad { width: 100%; height: 100%; border-radius: 13px; background: var(--screen); display: grid; grid-template-rows: 1fr auto; padding: 8px; gap: 6px; }
.phone .track { border-radius: 10px; background: color-mix(in srgb, var(--fg) 8%, transparent); position: relative; }
.phone .track::after { content: ""; position: absolute; left: 40%; top: 45%; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--green); }
.phone .keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.phone .keys b { height: 14px; border-radius: 4px; background: color-mix(in srgb, var(--fg) 14%, transparent); }

/* sections */
section { padding: 56px 0; }
.eyebrow { color: var(--green); font-weight: 700; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 8px; }
h2.title { font-size: clamp(1.6rem, 3.4vw, 2.2rem); letter-spacing: -0.01em; margin: 0 0 12px; line-height: 1.25; }
p.lead { color: var(--muted); margin: 0 0 32px; max-width: 40em; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.card .ic { width: 40px; height: 40px; border-radius: 12px; background: var(--green-soft); color: var(--green); display: grid; place-items: center; margin-bottom: 14px; }
.card .ic svg { width: 22px; height: 22px; }
.card h3 { margin: 0 0 6px; font-size: 1.05rem; }
.card p { margin: 0; color: var(--muted); font-size: .95rem; }

.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 28px; }
.plan.pro { border-color: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.plan h3 { margin: 0 0 4px; font-size: 1.3rem; }
.plan .note { color: var(--muted); margin: 0 0 18px; }
.plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.plan li { display: flex; gap: 10px; align-items: flex-start; }
.plan li::before { content: "✓"; color: var(--green); font-weight: 700; }

.safe { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.safe .card { background: transparent; }

footer { border-top: 1px solid var(--line); padding: 32px 0 48px; color: var(--muted); font-size: .92rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }
footer .sp { margin-left: auto; }

/* language: Korean by default; English, Japanese or Simplified Chinese when the root says so */
[lang-en], [lang-ja], [lang-zh] { display: none; }
:root[data-lang="en"] [lang-ko], :root[data-lang="ja"] [lang-ko], :root[data-lang="zh"] [lang-ko] { display: none; }
:root[data-lang="en"] [lang-en], :root[data-lang="ja"] [lang-ja], :root[data-lang="zh"] [lang-zh] { display: revert; }
/* pages kept in Korean and English (the policies): ja / zh read the English text under a one-line note */
:root.koen[data-lang="ja"] [lang-en], :root.koen[data-lang="zh"] [lang-en] { display: revert; }
:root.koen[data-lang="ja"] .ko-part, :root.koen[data-lang="zh"] .ko-part { display: none; }
.koen-note { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; color: var(--muted); font-size: .92rem; }
/* Japanese / Chinese: the system's CJK fonts (Pretendard is Korean + Latin), and lines may break between characters */
:root[data-lang="ja"] body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", Meiryo, "Noto Sans JP", "Noto Sans CJK JP", sans-serif; word-break: normal; line-break: strict; }
:root[data-lang="zh"] body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans SC", "Noto Sans CJK SC", sans-serif; word-break: normal; }
/* the language menu: a native select dressed as the pill */
select.lang-menu { -webkit-appearance: none; appearance: none; padding-right: 26px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23888' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; max-width: 9.5em; }

/* policy pages */
main.doc { max-width: 760px; margin: 0 auto; padding: 40px 20px 64px; }
main.doc h1 { font-size: 2rem; margin: 0 0 8px; line-height: 1.25; }
main.doc h2 { font-size: 1.15rem; margin: 32px 0 6px; }
.muted { color: var(--muted); }
hr { border: 0; border-top: 1px solid var(--line); margin: 48px 0; }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; padding-top: 40px; gap: 36px; }
  .plans, .safe { grid-template-columns: 1fr; }
  .top nav a.hide-sm { display: none; }
}

/* real screenshots in the device frames */
.mock.real { aspect-ratio: 1.55; }
.mock.real .tablet { inset: 0 12% 6% 0; padding: 10px; }
.mock.real .phone { width: 27%; aspect-ratio: 9 / 20; padding: 5px; border-radius: 22px; }
.mock .shot { width: 100%; height: 100%; display: block; object-fit: cover; object-position: top left; border-radius: 12px; }
.mock.real .phone .shot { border-radius: 17px; }

/* 베타 tag next to a link or heading (웹 원격, 웹판) */
.beta { display: inline-block; font-size: .68em; font-weight: 700; line-height: 1; padding: 3px 6px; border-radius: 999px; vertical-align: middle; color: var(--green); background: var(--green-soft); letter-spacing: .02em; }
