@font-face {
  font-family: Pretendard;
  src: url("./fonts/PretendardVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

/* The same tokens as the desktop app (design-variants/docs-oneq/app.css) */
:root {
  --bg: #f5f6f8;
  --band: #eef1f6;
  --surface: #ffffff;
  --ink: #1c2030;
  --muted: #5e6678;
  --faint: #8b93a3;
  --line: #e4e7ee;
  --line-strong: #d5dae4;
  --blue: #2f5bff;
  --blue-press: #2448d6;
  --blue-soft: #eef2ff;
  --blue-ink: #1e3fa8;
  --green: #157a45;
  --green-bg: #e7f6ee;
  --amber: #8a5a12;
  --amber-bg: #fff6e4;
  --shadow: 0 24px 60px rgba(22, 28, 45, 0.12);
  --font: Pretendard, "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #10141c; --band: #141a25; --surface: #1a2030; --ink: #f3f5f8; --muted: #b4bccb; --faint: #8e97a8;
    --line: #2c3446; --line-strong: #3a4458; --blue: #4c73ff; --blue-press: #3a5fe0; --blue-soft: #243056; --blue-ink: #d6e0ff;
    --green: #8ee0b0; --green-bg: #173524; --amber: #f3d7a1; --amber-bg: #3a301c; --shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #10141c; --band: #141a25; --surface: #1a2030; --ink: #f3f5f8; --muted: #b4bccb; --faint: #8e97a8;
  --line: #2c3446; --line-strong: #3a4458; --blue: #4c73ff; --blue-press: #3a5fe0; --blue-soft: #243056; --blue-ink: #d6e0ff;
  --green: #8ee0b0; --green-bg: #173524; --amber: #f3d7a1; --amber-bg: #3a301c; --shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 16px; line-height: 1.65; word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
section[id] { scroll-margin-top: 72px; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.wrap {
  width: 100%; max-width: 1160px; margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
h1, h2, h3 { text-wrap: balance; letter-spacing: -0.03em; margin: 0; }
p { margin: 0; }

/* header */
.top {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 17px; letter-spacing: -0.02em; }
.brand img { width: 30px; height: 30px; border-radius: 22%; }
.top nav { display: flex; gap: 22px; margin-left: auto; font-size: 14.5px; color: var(--muted); }
.top nav a { text-decoration: none; }
.top nav a:hover { color: var(--ink); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: 12px; font-weight: 650; font-size: 15px;
  text-decoration: none; border: 1px solid transparent; white-space: nowrap;
}
.btn.primary { background: var(--blue); color: #fff; }
.btn.primary:hover { background: var(--blue-press); }
.btn.ghost { background: var(--surface); border-color: var(--line-strong); color: var(--ink); }
.btn.ghost:hover { border-color: var(--faint); }
.btn.small { height: 38px; padding: 0 14px; font-size: 14px; border-radius: 10px; }

/* hero */
.hero { padding-block: 72px 0; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  height: 30px; padding: 0 12px; border-radius: 999px;
  background: var(--blue-soft); color: var(--blue-ink); font-size: 13px; font-weight: 650;
}
.hero h1 { margin-top: 20px; font-size: clamp(32px, 5.2vw, 54px); line-height: 1.2; font-weight: 750; }
.hero .lede { margin: 18px auto 0; max-width: 620px; color: var(--muted); font-size: clamp(16px, 2vw, 18.5px); }
.cta { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }
.hero-formats { display: flex; justify-content: center; gap: 14px; margin-top: 30px; flex-wrap: wrap; color: var(--faint); font-size: 13px; align-items: center; }
.hero-formats img { width: 26px; height: 26px; }
.shot {
  margin: 52px auto 0; max-width: 1100px;
  border-radius: 18px; border: 1px solid var(--line); background: var(--surface);
  box-shadow: var(--shadow); overflow: hidden;
}
.shot .bar { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; border-bottom: 1px solid var(--line); background: var(--surface); }
.shot .bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.shot .bar span { margin-left: 10px; font-size: 12px; color: var(--faint); }

/* sections */
section.block { padding-block: 96px; }
section.band { background: var(--band); border-block: 1px solid var(--line); }
.head { max-width: 640px; }
.head .kicker { font-size: 13px; font-weight: 700; color: var(--blue); letter-spacing: 0.04em; }
.head h2 { margin-top: 8px; font-size: clamp(26px, 3.4vw, 36px); line-height: 1.3; font-weight: 720; }
.head p { margin-top: 12px; color: var(--muted); }

.formats { margin-top: 40px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.format { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px 18px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.format img { width: 44px; height: 44px; }
.format b { font-size: 16px; }
.format p { color: var(--muted); font-size: 14px; line-height: 1.55; }
.tag { align-self: flex-start; height: 24px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 650; display: inline-flex; align-items: center; }
.tag.edit { background: var(--green-bg); color: var(--green); }
.tag.read { background: var(--amber-bg); color: var(--amber); }

.steps { margin-top: 44px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.step .txt { padding: 22px 22px 20px; }
.step .n { width: 28px; height: 28px; border-radius: 50%; background: var(--blue-soft); color: var(--blue-ink); display: grid; place-items: center; font-size: 13px; font-weight: 750; }
.step h3 { margin-top: 14px; font-size: 19px; }
.step p { margin-top: 8px; color: var(--muted); font-size: 15px; }
.step .pic { margin-top: auto; border-top: 1px solid var(--line); background: var(--bg); aspect-ratio: 16 / 10; overflow: hidden; }
.step .pic img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }

.safety { margin-top: 40px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.safe { padding: 22px 20px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); min-width: 0; }
.safe svg { color: var(--blue); }
.safe b { display: block; margin-top: 12px; font-size: 16px; }
.safe p { margin-top: 6px; color: var(--muted); font-size: 14.5px; }

.trial { margin-top: 0; }
.trial .box {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 36px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 44px;
}
.trial h2 { font-size: clamp(24px, 3vw, 32px); line-height: 1.3; }
.trial p { margin-top: 12px; color: var(--muted); }
.trial ul { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 15px; }
.trial li { display: flex; gap: 8px; align-items: flex-start; }
.trial li svg { flex: 0 0 auto; margin-top: 4px; color: var(--green); }
.trial .cta { justify-content: flex-start; }
.trial .pic { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }

footer { padding-block: 40px 56px; color: var(--faint); font-size: 13.5px; }
footer .wrap { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
footer .brand { font-size: 15px; color: var(--muted); }
footer .brand img { width: 24px; height: 24px; }

@media (max-width: 980px) {
  .formats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .steps { grid-template-columns: 1fr; }
  .safety { grid-template-columns: 1fr 1fr; }
  .trial .box { grid-template-columns: 1fr; padding: 28px; }
}
@media (max-width: 640px) {
  .top nav { display: none; }
  .top .btn { margin-left: auto; }
  .hero { padding-block: 48px 0; }
  .formats { grid-template-columns: 1fr 1fr; }
  .safety { grid-template-columns: 1fr; }
  section.block { padding-block: 64px; }
  .shot .bar span { display: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.nowrap { white-space: nowrap; }
