:root {
  --paper: #f5f5f0;
  --sheet: #ffffff;
  --grid: rgba(45, 68, 216, .07);
  --ink: #1f2128;
  --muted: #5d6474;
  --line: #dde2ee;
  --blue: #2d44d8;
  --blue-deep: #1f31a8;
  --blue-soft: #e6eaff;
  --orange: #f0603c;
  --graphite: #6b6f78;
  --radius: 14px;
  --sans: "IBM Plex Sans KR", system-ui, -apple-system, "Apple SD Gothic Neo", sans-serif;
  --hand: "Nanum Pen Script", "IBM Plex Sans KR", cursive;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 28px 28px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.75;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 50; background: #fff; padding: 8px 14px; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(245, 245, 240, .88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); text-decoration: none; font-size: 18px; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav a:hover { color: var(--blue); }

/* Eraser button: blue sleeve, white rubber ends, orange stripe */
.btn {
  --body: var(--blue);
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 44px 0 34px;
  border: 0; border-radius: 10px;
  font: 700 16px/1 var(--sans);
  text-decoration: none; cursor: pointer;
  color: #fff;
  background:
    linear-gradient(90deg, #fbfbf7 0 14px, transparent 14px calc(100% - 14px), #fbfbf7 calc(100% - 14px)),
    linear-gradient(90deg, transparent 0 calc(100% - 26px), var(--orange) calc(100% - 26px) calc(100% - 20px), transparent 0),
    var(--body);
  box-shadow: 0 2px 0 rgba(0,0,0,.08), 0 6px 16px rgba(45,68,216,.22), inset 0 0 0 1px rgba(0,0,0,.06);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px) rotate(-1deg); }
.btn:active { transform: translateY(1px); }
.btn.ghost {
  color: var(--ink); background: var(--sheet);
  box-shadow: inset 0 0 0 1.5px var(--line);
  padding: 0 22px;
}
.btn.small { min-height: 40px; font-size: 14px; padding: 0 38px 0 26px; }
.btn.small.ghost { padding: 0 16px; }

/* Hero */
.hero { padding: 72px 0 56px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.kicker { font-weight: 700; color: var(--blue); letter-spacing: .02em; margin: 0 0 14px; }
.hero h1 { font-size: clamp(42px, 6.4vw, 76px); line-height: 1.12; letter-spacing: -.035em; margin: 0; }
.hero h1 .scribble { position: relative; white-space: nowrap; }
.hero h1 .scribble::after {
  content: ""; position: absolute; left: -4px; right: -4px; bottom: .08em; height: .22em;
  background: var(--orange); border-radius: 4px; z-index: -1; opacity: .9;
}
.hero .lede { font-size: 19px; color: var(--muted); max-width: 30em; margin: 22px 0 32px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.note { font-family: var(--hand); font-size: 24px; color: var(--graphite); margin-top: 18px; transform: rotate(-1.5deg); }

.hero-video { margin: 0; justify-self: center; width: 100%; max-width: 320px; }
.hero-video video {
  display: block; width: 100%; height: auto; object-fit: cover;
  border-radius: 34px; border: 10px solid #1f2128; background: #f4f4ef;
  box-shadow: 14px 16px 0 rgba(45,68,216,.14), 0 24px 48px rgba(31,33,40,.18);
}
.hero-video figcaption { text-align: center; margin-top: 12px; font-size: 14px; color: var(--muted); }

/* Interactive desk */
.desk {
  position: relative;
  background: var(--sheet);
  border: 2px solid var(--blue);
  border-radius: 6px;
  box-shadow: 12px 12px 0 rgba(45,68,216,.10);
  aspect-ratio: 4 / 5;
  max-width: 440px; width: 100%; justify-self: center;
  overflow: hidden;
}
.desk canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: grab; }
.desk canvas:active { cursor: grabbing; }
.desk-label { position: absolute; left: 14px; top: 10px; font-size: 12px; color: #9aa0ad; letter-spacing: .08em; pointer-events: none; }
.desk-status {
  position: absolute; left: 0; right: 0; top: 36px; margin: 0; text-align: center;
  font-family: var(--hand); font-size: 22px; color: var(--graphite); pointer-events: none;
}
.desk-reset {
  position: absolute; right: 10px; top: 8px;
  background: var(--blue-soft); color: var(--blue-deep); border: 0; border-radius: 8px;
  font: 600 13px var(--sans); padding: 6px 10px; cursor: pointer;
}

/* Sections */
section { padding: 72px 0; scroll-margin-top: 64px; }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head .num { font-weight: 700; color: var(--orange); font-size: 15px; letter-spacing: .06em; }
.section-head h2 { font-size: clamp(30px, 4.2vw, 44px); line-height: 1.25; letter-spacing: -.03em; margin: 6px 0 12px; }
.section-head p { color: var(--muted); margin: 0; }

.rules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: rule; }
.rule {
  background: var(--sheet); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px; position: relative;
}
.rule::before {
  counter-increment: rule; content: "0" counter(rule);
  display: block; font-weight: 700; color: var(--orange); font-size: 34px; line-height: 1; margin-bottom: 14px;
}
.rule h3 { margin: 0 0 6px; font-size: 21px; }
.rule p { margin: 0; color: var(--muted); font-size: 16px; }

.split { display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: center; }
.phone {
  border-radius: 28px; overflow: hidden; background: #fff;
  border: 8px solid #1f2128; box-shadow: 0 20px 40px rgba(31,33,40,.16);
  width: 100%; height: auto; max-width: 380px; justify-self: center;
}
.feature-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 22px; }
.feature-list li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; }
.feature-list .ico {
  width: 44px; height: 44px; border-radius: 12px; background: var(--blue-soft); color: var(--blue);
  display: grid; place-items: center;
}
.feature-list h3 { margin: 0; font-size: 19px; }
.feature-list p { margin: 2px 0 0; color: var(--muted); font-size: 16px; }

.devices { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  background: var(--sheet); border: 1.5px solid var(--line); border-radius: 999px;
  padding: 8px 16px; font-weight: 600; font-size: 15px;
}
.chip b { color: var(--orange); margin-right: 6px; font-weight: 700; }

.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 36px; }
.stat { border-top: 3px solid var(--blue); padding-top: 14px; }
.stat strong { display: block; font-size: 44px; line-height: 1.1; letter-spacing: -.03em; color: var(--blue); }
.stat span { color: var(--muted); font-size: 15px; }

.gallery {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(340px, 78vw); gap: 22px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 22px;
}
.gallery figure { margin: 0; scroll-snap-align: start; }
.gallery img { width: 100%; height: auto; border-radius: 22px; border: 6px solid #1f2128; background: #fff; box-shadow: 0 14px 30px rgba(31,33,40,.14); }
.gallery figcaption { margin-top: 10px; font-weight: 600; font-size: 15px; color: var(--muted); text-align: center; }

.closing {
  background: var(--blue); color: #fff; border-radius: 24px; padding: 56px 40px; text-align: center;
  background-image:
    linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 28px 28px;
}
.closing h2 { font-size: clamp(28px, 4vw, 42px); margin: 0 0 10px; letter-spacing: -.03em; line-height: 1.3; }
.closing p { margin: 0 auto 28px; opacity: .85; max-width: 34em; }
.closing .cta { justify-content: center; }
.closing .btn { --body: var(--orange); }
.closing .btn.ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.5); }

/* Free range and purchase */
.price { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.price-card { background: var(--sheet); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px; }
.price-card p { margin: 0; color: var(--muted); font-size: 16px; }
.price-card .price-range { font-weight: 700; color: var(--orange); font-size: 15px; }
.price-card .price-value { margin: 4px 0 12px; font-weight: 700; color: var(--ink); font-size: clamp(26px, 3vw, 34px); line-height: 1.25; letter-spacing: -.03em; }
.price-card.is-pick { border: 2px solid var(--blue); box-shadow: 8px 8px 0 rgba(45,68,216,.10); }
.price-card.is-pick .price-value { color: var(--blue); }

/* Help */
.faq { background: var(--sheet); border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 26px; max-width: 800px; }
.faq details + details { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 18px 0; font-weight: 600; font-size: 18px; }
.faq details p { margin: 0 0 20px; color: var(--muted); font-size: 16px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0 48px; margin-top: 40px; font-size: 14px; color: var(--muted); background: rgba(245,245,240,.9); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer a { color: var(--ink); text-decoration: none; font-weight: 600; }
.site-footer a:hover { color: var(--blue); }
.site-footer .biz { margin: 6px 0 0; line-height: 1.7; }

/* Legal pages */
.legal { padding: 48px 0 24px; }
.legal article {
  background: var(--sheet); border: 1px solid var(--line); border-top: 6px solid var(--blue);
  border-radius: 10px; padding: 48px clamp(20px, 5vw, 56px) 56px; max-width: 860px; margin-inline: auto;
}
.legal .eyebrow { color: var(--blue); font-weight: 700; font-size: 14px; letter-spacing: .06em; margin: 0; }
.legal h1 { font-size: clamp(28px, 4.4vw, 38px); letter-spacing: -.02em; line-height: 1.3; margin: 10px 0 18px; }
.legal .meta { background: var(--paper); border-radius: 10px; padding: 16px 20px; font-size: 15px; color: var(--muted); }
.legal .meta p { margin: 0; }
.legal .toc { margin: 28px 0 8px; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px 8px; }
.legal .toc a { display: inline-block; font-size: 14px; padding: 4px 10px; border-radius: 999px; background: var(--blue-soft); color: var(--blue-deep); text-decoration: none; }
.legal h2 { font-size: 21px; margin: 40px 0 10px; scroll-margin-top: 84px; }
.legal p, .legal li { font-size: 16px; }
.legal ol, .legal ul { padding-left: 1.3em; }
.legal li { margin: 4px 0; }
.legal .switch { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line); }
.legal h2.doc-title { font-size: clamp(28px, 4.4vw, 38px); letter-spacing: -.02em; line-height: 1.3; margin: 10px 0 18px; }
.legal h3 { font-size: 21px; margin: 40px 0 10px; }
.legal article { scroll-margin-top: 84px; }
.legal article + article { margin-top: 24px; }
.site-header .home-link { margin-left: auto; }
.lang-nav { display: flex; flex-wrap: wrap; gap: 8px; max-width: 860px; margin-bottom: 18px; }
.lang-nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
  background: var(--sheet); border: 1.5px solid var(--line); border-radius: 999px;
  color: var(--ink); font-size: 15px; font-weight: 600; text-decoration: none;
}
.lang-nav a:hover { border-color: var(--blue); color: var(--blue); }
.lang-nav a[aria-current] { background: var(--blue); border-color: var(--blue); color: #fff; }
.crumbs {
  display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px;
  width: min(860px, 100% - 32px); margin: 0 auto 12px; font-size: 14px; color: var(--muted);
}
.crumbs a { color: var(--muted); }
.legal-lang:lang(ja), .legal-lang:lang(zh-Hans), .legal-lang:lang(zh-Hant), .lang-nav a:lang(ja), .lang-nav a:lang(zh-Hans), .lang-nav a:lang(zh-Hant) { word-break: normal; }
.legal-lang:lang(ja), .lang-nav a:lang(ja) { font-family: system-ui, -apple-system, "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif; }
.legal-lang:lang(zh-Hans), .lang-nav a:lang(zh-Hans) { font-family: system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif; }
.legal-lang:lang(zh-Hant), .lang-nav a:lang(zh-Hant) { font-family: system-ui, -apple-system, "PingFang TC", "Microsoft JhengHei", "Noto Sans TC", sans-serif; }

@media (max-width: 900px) {
  .hero .wrap, .split { grid-template-columns: 1fr; }
  .hero { padding-top: 44px; }
  .desk { max-width: 400px; }
  .hero-video { max-width: 280px; }
  .rules, .price { grid-template-columns: 1fr; }
  .split .phone { order: 2; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav { display: none; }
  .site-header .btn { margin-left: auto; }
  section { padding: 52px 0; }
  .stat-row { grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
  .stat strong { font-size: 32px; }
  .closing { padding: 44px 20px; border-radius: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .btn:hover { transition: none; transform: none; }
}
