:root {
  /* Matches dapercorp.com: ink #0a0a0a, paper #f7f6f2, monochrome, pill buttons */
  --bg: #ffffff;
  --bg-alt: #f7f6f2;
  --text: #0a0a0a;
  --muted: #525252;
  --line: #e5e5e5;
  --accent: #0a0a0a;
  --accent-ink: #ffffff;
  --card: #ffffff;
  --shadow: 0 18px 50px rgba(10, 10, 10, 0.12);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0a0a; --bg-alt: #171717; --text: #fafafa; --muted: #a3a3a3; --line: #262626;
    --accent: #fafafa; --accent-ink: #0a0a0a; --card: #171717; --shadow: 0 18px 50px rgba(0, 0, 0, 0.6); color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.65 "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, Roboto, "Helvetica Neue", "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
a { color: var(--text); text-decoration: none; }
::selection { background: var(--text); color: var(--bg); }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

/* header */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top-row { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: var(--text); }
.brand:hover { text-decoration: none; }
.logo { display: inline-block; width: 26px; height: 27px; background: var(--text);
  -webkit-mask: url(assets/daper-mark.png) center / contain no-repeat; mask: url(assets/daper-mark.png) center / contain no-repeat; }
nav { display: flex; align-items: center; gap: 20px; font-size: 15px; }
nav a { color: var(--muted); }
nav a:hover { color: var(--text); text-decoration: none; }
.lang { border: 1px solid var(--line); background: var(--card); color: var(--text) !important; border-radius: 999px; padding: 4px 10px; font: inherit; font-size: 13px; cursor: pointer; }

/* hero */
.hero { padding: 64px 0 56px; background: var(--bg-alt); }
.hero-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 48px; align-items: center; }
.badge { display: inline-block; font-size: 13px; font-weight: 600; color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); padding: 3px 10px; border-radius: 99px; }
h1 { font-size: clamp(32px, 5vw, 48px); line-height: 1.15; letter-spacing: -0.04em; font-weight: 800; margin: 14px 0 14px; }
.lead { font-size: 18px; color: var(--muted); margin: 0 0 28px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn { display: inline-flex; flex-direction: column; justify-content: center; border-radius: 999px; padding: 12px 28px; font-weight: 600; min-height: 52px; }
.btn:hover { text-decoration: none; }
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { opacity: .85; }
.btn.primary small { font-weight: 400; opacity: .85; font-size: 13px; }
.btn.ghost { border: 1px solid var(--text); color: var(--text); background: var(--card); }
.fine { font-size: 13px; color: var(--muted); margin-top: 12px; min-height: 1em; }
.shot { margin: 0; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); background: var(--card); }

/* sections */
.section { padding: 72px 0; }
.alt { background: var(--bg-alt); }
h2 { font-size: 28px; letter-spacing: -0.03em; font-weight: 800; margin: 0 0 24px; }
h3 { font-size: 17px; margin: 0 0 6px; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.features article, .install article, .platform { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 22px; }
.features p, .install p { margin: 0 0 8px; color: var(--muted); font-size: 15px; }

.platforms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 8px 0 16px; }
.platform.current { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.platform ul { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.platform li a { display: flex; justify-content: space-between; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; color: var(--text); font-size: 14px; }
.platform li a:hover { border-color: var(--accent); text-decoration: none; }
.platform li a span:last-child { color: var(--muted); white-space: nowrap; }
.platform li.placeholder { color: var(--muted); font-size: 14px; }

.install { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
pre { background: var(--bg-alt); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; overflow-x: auto; font-size: 13px; margin: 8px 0 0; }

.foot { padding: 32px 0 48px; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; }
.foot p { margin: 4px 0; }

@media (max-width: 860px) {
  .hero { padding: 40px 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .features, .platforms, .install { grid-template-columns: 1fr; }
  .top-row { height: auto; min-height: 60px; padding: 8px 0; flex-wrap: wrap; }
  nav { gap: 6px 14px; flex-wrap: wrap; justify-content: flex-end; font-size: 14px; }
  .gallery { grid-template-columns: 1fr; }
  .section { padding: 52px 0; }
}

/* accessibility */
:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: 12px; top: -48px; z-index: 50; background: var(--text); color: var(--bg); padding: 8px 14px; border-radius: 999px; }
.skip:focus { top: 8px; text-decoration: none; }

/* hero badges */
.badges { margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.badge[hidden] { display: none; }
.badge.free { background: var(--text); color: var(--bg); }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.gallery figure { margin: 0; }
.gallery img { border-radius: 14px; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--card); width: 100%; }
.gallery figcaption { margin-top: 10px; font-size: 14px; color: var(--muted); }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 820px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 0 20px; }
.faq summary { cursor: pointer; font-weight: 600; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; font-size: 20px; line-height: 1.2; color: var(--muted); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 0 0 18px; color: var(--muted); }

/* language banner */
.banner { background: var(--text); color: var(--bg); text-align: center; padding: 8px 16px; font-size: 14px; }
.banner a { color: inherit; text-decoration: underline; margin-left: 8px; }
.banner button { background: none; border: 0; color: inherit; font: inherit; cursor: pointer; margin-left: 12px; opacity: .7; }

/* legal pages */
.legal { padding: 40px 0 64px; max-width: 760px; }
.legal h1 { font-size: 34px; margin: 8px 0 4px; }
.legal h2 { font-size: 20px; margin: 32px 0 8px; }
.legal p { color: var(--muted); }
.legal .links { padding-left: 20px; }
.legal a { text-decoration: underline; }
.foot a { text-decoration: underline; text-underline-offset: 3px; }

/* 404 */
.nf { min-height: 70vh; display: grid; place-content: center; text-align: center; gap: 10px; padding: 24px; }
.nf h1 { margin: 0; font-size: 64px; }
