@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url(/fonts/inter.woff2) format("woff2-variations");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/fonts/jetbrains-mono.woff2) format("woff2");
}

:root {
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --radius: 10px;
  --wrap: 1120px;
}

:root[data-theme="light"] {
  --bg: #F6F2E9;
  --bg-soft: #F1ECE0;
  --surface: #FFFDF7;
  --surface-2: #F4EFE3;
  --ink: #19180F;
  --ink-2: #4E4A3D;
  --ink-3: #716A59;
  --line: #DDD5C2;
  --line-strong: #C3B9A1;
  --accent: #1D46C4;
  --accent-ink: #FFFFFF;
  --accent-soft: #E8ECFA;
  --ok: #1F6B45;
  --warn: #8A4B12;
  --dot: rgba(25, 24, 15, .11);
  --shadow: 0 1px 2px rgba(25, 24, 15, .05), 0 18px 40px -30px rgba(25, 24, 15, .5);
  --card-shadow: 0 1px 2px rgba(25, 24, 15, .06), 0 24px 48px -34px rgba(25, 24, 15, .45);
}

:root[data-theme="dark"] {
  --bg: #131311;
  --bg-soft: #191917;
  --surface: #1B1B18;
  --surface-2: #232320;
  --ink: #F2EEE1;
  --ink-2: #C0BAAB;
  --ink-3: #8C8676;
  --line: #312F29;
  --line-strong: #48453C;
  --accent: #93A8FF;
  --accent-ink: #12120F;
  --accent-soft: #232740;
  --ok: #7FD1A4;
  --warn: #E0B075;
  --dot: rgba(242, 238, 225, .07);
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 18px 40px -30px rgba(0, 0, 0, .9);
  --card-shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 24px 48px -30px rgba(0, 0, 0, .9);
}

*, *::before, *::after { box-sizing: border-box; }

#studio, #why, #faq, #main { scroll-margin-top: 78px; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

html[lang="ko"] body {
  font-family: "Pretendard Variable", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.62;
}
html[lang="ko"] .mono, html[lang="ko"] code, html[lang="ko"] .mono-label { font-family: var(--mono); }

::selection { background: var(--accent); color: var(--accent-ink); }

a { color: inherit; }

h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.022em; line-height: 1.12; }

p { margin: 0; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--bg); padding: 10px 16px;
  border-radius: 6px; text-decoration: none; font-size: 14px;
}
.skip-link:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }

.mono { font-family: var(--mono); font-variant-ligatures: none; }

.mono-label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 16px;
}
.eyebrow::before {
  content: "";
  width: 7px; height: 7px;
  background: var(--accent);
  display: inline-block;
}

.label {
  display: block;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 7px;
}

.hint {
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--ink-3);
  margin-top: 8px;
  max-width: 52ch;
}

.text-link {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
  font-size: 14px;
}
.text-link:hover { color: var(--ink); border-color: var(--ink); }

/* header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 62px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: var(--ink);
  flex: none;
}
.brand-mark { width: 24px; height: 24px; }
.brand-name { font-weight: 600; letter-spacing: -0.02em; }
.brand-tool {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .12em;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 4px;
  padding: 1px 5px;
  margin-left: 2px;
}
.site-nav { display: flex; gap: 22px; margin-left: auto; }
.site-nav a {
  font-size: 13.5px;
  color: var(--ink-2);
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
}
.site-nav a:hover { color: var(--ink); border-color: var(--line-strong); }

.header-tools { display: flex; align-items: center; gap: 4px; flex: none; }
.lang-field { display: inline-flex; align-items: center; gap: 5px; color: var(--ink-3); }
.lang-globe { width: 15px; height: 15px; }
.lang-field select {
  appearance: none;
  background: transparent;
  border: 0;
  color: var(--ink-2);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .04em;
  padding: 6px 4px;
  cursor: pointer;
}
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 7px;
  color: var(--ink-2);
  cursor: pointer;
}
.icon-btn:hover { border-color: var(--line); color: var(--ink); }
.icon-btn svg { width: 17px; height: 17px; }
:root[data-theme="light"] .ico-sun { display: none; }
:root[data-theme="dark"] .ico-moon { display: none; }

/* hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: 56px;
  align-items: center;
  padding-top: 66px;
  padding-bottom: 54px;
  border-bottom: 1px solid var(--line);
}
.hero h1 {
  font-size: clamp(2.1rem, 4.2vw, 3.4rem);
  letter-spacing: -0.035em;
  line-height: 1.04;
  max-width: 16ch;
  text-wrap: balance;
}
.hero-lede {
  margin-top: 20px;
  font-size: 16.5px;
  line-height: 1.62;
  color: var(--ink-2);
  max-width: 48ch;
}
.hero-actions { display: flex; align-items: center; gap: 16px; margin-top: 26px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--ink);
  color: var(--bg);
  border: 1px solid var(--ink);
  border-radius: 7px;
  padding: 11px 20px;
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.hero-note {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--ink-3);
  text-transform: uppercase;
}
.facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 38px 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.facts dt {
  font-family: var(--mono);
  font-size: 17px;
  letter-spacing: -.01em;
  color: var(--ink);
}
.facts dd {
  margin: 4px 0 0;
  font-size: 11.5px;
  line-height: 1.4;
  color: var(--ink-3);
}

.hero-sheet {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
  box-shadow: var(--card-shadow);
  background-image: radial-gradient(var(--dot) 1.1px, transparent 1.1px);
  background-size: 15px 15px;
  background-position: 0 0;
}
.sample-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.sample {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 8px 10px;
}
.sample-qr { width: 100%; max-width: 112px; height: auto; image-rendering: pixelated; border-radius: 2px; }
.sample-label {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
  text-align: center;
}
.hero-sheet figcaption {
  margin-top: 16px;
  font-size: 12px;
  line-height: 1.55;
  color: var(--ink-3);
  text-align: center;
}

/* studio */
.studio { padding-top: 56px; }
.section-head { max-width: 720px; margin-bottom: 26px; }
.section-head h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  letter-spacing: -0.028em;
}
.section-lede {
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 54ch;
  text-wrap: pretty;
}

.workbench {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(330px, .78fr);
  gap: 16px;
  align-items: stretch;
}

.sheet {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.builder {
  display: grid;
  grid-template-columns: 176px minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  gap: 0;
  overflow: hidden;
}
.preset-rail {
  border-right: 1px solid var(--line);
  background: var(--bg-soft);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.preset {
  display: flex;
  align-items: baseline;
  gap: 10px;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 9px 10px;
  font-family: inherit;
  font-size: 13.5px;
  color: var(--ink-2);
  cursor: pointer;
}
.preset:hover { background: var(--surface); color: var(--ink); }
.preset[aria-selected="true"] {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
  font-weight: 600;
  box-shadow: inset 2px 0 0 var(--accent);
}
.preset-num {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .08em;
  color: var(--ink-3);
}
.preset[aria-selected="true"] .preset-num { color: var(--accent); }

.fields {
  padding: 20px 22px 22px;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.field-panel {
  min-width: 0;
  width: 100%;
}
.field-panel[hidden] { display: none; }
.field-panel > * + * { margin-top: 14px; }
.field-panel > .hint { margin-top: 12px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field-row > * + * { margin-top: 0; }

.field { display: block; }
.field input[type="text"],
.field input[type="tel"],
.field input[type="email"],
.field select,
.field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 9px 11px;
  line-height: 1.4;
  appearance: none;
}
.field textarea { resize: vertical; min-height: 72px; }
.field select {
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%), linear-gradient(135deg, var(--ink-3) 50%, transparent 50%);
  background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 30px;
}
.field input::placeholder,
.field textarea::placeholder { color: var(--ink-3); opacity: .95; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
  background: var(--surface);
}
.check {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13.5px;
  color: var(--ink-2);
  cursor: pointer;
}
.check input { width: 15px; height: 15px; accent-color: var(--accent); }

.payload-line {
  grid-column: 1 / -1;
  border-top: 1px dashed var(--line);
  padding: 12px 22px 14px;
  display: flex;
  align-items: baseline;
  gap: 12px;
  min-height: 48px;
}
.payload-text {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
}
.payload-text:empty::before {
  content: "—";
  color: var(--line-strong);
}

/* preview */
.preview-panel {
  position: sticky;
  top: 78px;
  align-self: start;
  padding: 18px 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.preview-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.preview-meta { font-size: 10.5px; color: var(--ink-3); letter-spacing: .02em; }
.qr-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 288px;
  padding: 12px;
  border-radius: 8px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  background-image:
    linear-gradient(45deg, var(--dot) 25%, transparent 25%, transparent 75%, var(--dot) 75%),
    linear-gradient(45deg, var(--dot) 25%, transparent 25%, transparent 75%, var(--dot) 75%);
  background-size: 16px 16px;
  background-position: 0 0, 8px 8px;
}
#qrCanvas {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 3px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .14), 0 10px 24px -18px rgba(0, 0, 0, .5);
}
#qrCanvas[hidden] { display: none; }
.qr-empty {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  font-size: 12.5px;
  color: var(--ink-3);
}
.qr-empty[hidden] { display: none; }

.status {
  font-size: 12px;
  line-height: 1.5;
  min-height: 18px;
  color: var(--ink-3);
}
.warn-note {
  font-size: 12px;
  line-height: 1.5;
  color: var(--warn);
  background: color-mix(in srgb, var(--warn) 10%, transparent);
  border-left: 2px solid var(--warn);
  padding: 7px 10px;
  border-radius: 0 4px 4px 0;
}
.warn-note[hidden] { display: none; }
#exportCustom { margin-top: 10px; display: inline-block; }
#exportCustom[hidden] { display: none; }
.status.is-ok { color: var(--ok); }
.status.is-warn { color: var(--warn); }

.exports { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.export {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 9px 11px;
  font-family: inherit;
  color: var(--ink);
  cursor: pointer;
}
.export:hover { border-color: var(--accent); background: var(--accent-soft); }
.export:active { transform: translateY(1px); }
.export-wide { grid-column: 1 / -1; flex-direction: row; align-items: baseline; gap: 10px; }
.export-name { font-size: 13.5px; font-weight: 600; letter-spacing: -.01em; }
.export-sub {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* design */
.design { margin-top: 16px; padding: 20px 22px 22px; }
.design-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.design-head h3 { font-size: 15px; letter-spacing: -.01em; }
.link-btn {
  background: none;
  border: 0;
  padding: 0;
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
  border-bottom: 1px solid var(--line-strong);
}
.link-btn:hover { color: var(--ink); }

.design-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 26px;
}
.design-group { min-width: 0; }
.design-group .label { margin-bottom: 9px; }

.palette { display: flex; gap: 7px; margin-bottom: 11px; }
.chip {
  width: 26px; height: 26px;
  border-radius: 6px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(135deg, var(--c1) 0 50%, var(--c2) 50% 100%);
  cursor: pointer;
  padding: 0;
}
.chip:hover { border-color: var(--ink-3); }
.chip[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--surface), 0 0 0 3.5px var(--accent); }

.color-row { display: flex; gap: 14px; flex-wrap: wrap; }
.color-field { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; }
.color-field input[type="color"] {
  width: 26px; height: 26px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: none;
  cursor: pointer;
}
.color-field input[type="color"]::-webkit-color-swatch-wrapper { padding: 2px; }
.color-field input[type="color"]::-webkit-color-swatch { border: 0; border-radius: 4px; }
.color-field input[type="color"]::-moz-color-swatch { border: 0; border-radius: 4px; }
.color-label { font-size: 12.5px; color: var(--ink-2); }
.color-value { font-size: 10px; color: var(--ink-3); letter-spacing: .02em; }

.segmented {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 7px;
  overflow: hidden;
  background: var(--surface-2);
}
.segmented label { flex: 1; position: relative; cursor: pointer; }
.segmented input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.segmented span {
  display: block;
  text-align: center;
  padding: 7px 0;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-2);
}
.segmented input:checked + span { background: var(--ink); color: var(--bg); }
.segmented input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: -3px; }

.range-row { display: flex; align-items: center; gap: 10px; }
.range-row input[type="range"] {
  flex: 1;
  min-width: 0;
  accent-color: var(--accent);
  height: 22px;
}
.range-row output {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-2);
  min-width: 26px;
  text-align: right;
}

/* why */
.why { padding-top: 72px; padding-bottom: 8px; }
.why-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; }
.why-card { border-top: 1px solid var(--ink); padding-top: 16px; }
.why-card h3 { font-size: 17px; letter-spacing: -.015em; }
.why-card p { margin-top: 10px; font-size: 14px; line-height: 1.65; color: var(--ink-2); }

/* limits */
.limits {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .85fr);
  gap: 56px;
  align-items: start;
  padding-top: 64px;
  padding-bottom: 8px;
}
.limits-copy h2 { font-size: clamp(1.4rem, 2.4vw, 1.85rem); }
.limits-table { width: 100%; border-collapse: collapse; }
.limits-table th {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 400;
  text-align: left;
  padding: 0 0 9px;
  border-bottom: 1px solid var(--ink);
}
.limits-table td {
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.limits-table td.mono { font-size: 12.5px; color: var(--ink-2); }
.limits-table th:not(:first-child), .limits-table td:not(:first-child) { text-align: right; }

/* privacy strip */
.priv-strip { padding-top: 64px; }
.priv-inner {
  background: var(--ink);
  color: var(--bg);
  border-radius: 12px;
  padding: 36px 38px;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 32px;
  align-items: start;
}
.priv-inner h2 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); color: var(--bg); }
.priv-inner p { font-size: 14px; line-height: 1.65; color: color-mix(in srgb, var(--bg) 78%, transparent); }
.priv-inner .text-link { color: var(--bg); margin-top: 14px; display: inline-block; }
.priv-inner > a { grid-column: 1; }

/* faq */
.faq { padding-top: 72px; }
.faq-list { max-width: 820px; border-top: 1px solid var(--line); }
.qa { border-bottom: 1px solid var(--line); }
.qa summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 34px 16px 0;
  position: relative;
  font-size: 15.5px;
  font-weight: 500;
  letter-spacing: -.01em;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 13px;
  font-family: var(--mono);
  font-size: 17px;
  color: var(--ink-3);
}
.qa[open] summary::after { content: "−"; color: var(--accent); }
.qa summary:hover { color: var(--accent); }
.qa p {
  padding: 0 34px 18px 0;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--ink-2);
  max-width: 68ch;
}

/* document pages */
.narrow { max-width: 780px; }
.doc { padding-top: 56px; }
.doc h1 { font-size: clamp(1.9rem, 3.4vw, 2.5rem); letter-spacing: -.032em; }
.updated {
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.lede-doc {
  margin-top: 18px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 58ch;
}
.doc h2 {
  margin-top: 38px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 18px;
  letter-spacing: -.015em;
}
.doc p { margin-top: 12px; font-size: 15px; line-height: 1.72; color: var(--ink-2); }
.doc p a, .doc li a { color: var(--accent); text-decoration: none; border-bottom: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); }
.doc p a:hover, .doc li a:hover { border-color: var(--accent); }
.doc ul { margin: 12px 0 0; padding-left: 18px; display: grid; gap: 8px; font-size: 14.5px; line-height: 1.6; color: var(--ink-2); }
.doc b, .doc strong { color: var(--ink); font-weight: 600; }

/* footer */
.site-footer { margin-top: 80px; border-top: 1px solid var(--line); padding: 44px 0 30px; }
.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, .8fr) minmax(0, .8fr);
  gap: 32px;
}
.footer-brand p { margin-top: 12px; font-size: 13px; line-height: 1.6; color: var(--ink-3); max-width: 34ch; }
.footer-links h3 {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 400;
  margin-bottom: 12px;
}
.footer-links ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.footer-links a { font-size: 13px; color: var(--ink-2); text-decoration: none; }
.footer-links a:hover { color: var(--ink); border-bottom: 1px solid var(--line-strong); }
.footer-note {
  grid-column: 1 / -1;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 10.5px;
  letter-spacing: .06em;
  color: var(--ink-3);
}

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* print sheet */
.print-sheet { display: none; }

@media print {
  @page { size: A4 portrait; margin: 14mm; }
  html, body { background: #fff !important; color: #000 !important; }
  body > *:not(.print-sheet) { display: none !important; }
  .print-sheet {
    display: block;
    font-family: var(--sans);
  }
  .print-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    border-bottom: 1px solid #999;
    padding-bottom: 4mm;
    margin-bottom: 6mm;
    font-size: 9pt;
  }
  .print-head strong { font-size: 11pt; font-weight: 600; }
  .print-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5mm;
  }
  .print-item {
    border: 1px dashed #bbb;
    padding: 3mm;
    text-align: center;
    break-inside: avoid;
  }
  .print-item img { width: 49mm; height: 49mm; display: block; margin: 0 auto; }
  .print-item figcaption {
    margin-top: 2mm;
    font-size: 7.5pt;
    color: #444;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* responsive */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; gap: 34px; padding-top: 44px; }
  .hero h1 { max-width: 22ch; }
  .hero-sheet { max-width: 520px; }
  .workbench { grid-template-columns: 1fr; }
  .preview-panel { position: static; }
  .qr-stage { min-height: 260px; }
  .design-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .limits { grid-template-columns: 1fr; gap: 28px; }
  .priv-inner { grid-template-columns: 1fr; gap: 18px; }
  .why-grid { grid-template-columns: 1fr; gap: 22px; }
  .site-nav { display: none; }
}

@media (max-width: 640px) {
  .wrap { padding: 0 18px; }
  .preview-head { flex-direction: column; align-items: flex-start; gap: 3px; }
  .preview-meta { font-size: 10px; }
  .header-inner { height: 56px; gap: 12px; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .builder { grid-template-columns: 1fr; }
  .preset-rail {
    flex-direction: row;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 8px;
    gap: 4px;
    scrollbar-width: none;
  }
  .preset-rail::-webkit-scrollbar { display: none; }
  .preset { width: auto; white-space: nowrap; padding: 7px 10px; }
  .preset[aria-selected="true"] { box-shadow: inset 0 -2px 0 var(--accent); }
  .fields { padding: 16px 16px 18px; min-height: 0; }
  .field-row { grid-template-columns: 1fr; }
  .payload-line { padding: 10px 16px 13px; flex-direction: column; gap: 4px; }
  .design { padding: 16px; }
  .design-grid { grid-template-columns: 1fr; gap: 20px; }
  .exports { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .priv-inner { padding: 26px 22px; }
  .hero { padding-bottom: 40px; }
  .studio { padding-top: 40px; }
  .why, .limits, .faq { padding-top: 52px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

/* ---------- Pikkola Icon: additions on top of the shared sheet ---------- */

.btn-quiet {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-strong);
  font-weight: 500;
}
.btn-quiet:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn-block { width: 100%; }

/* hero shelf */
.icon-shelf { display: flex; flex-direction: column; justify-content: space-between; gap: 20px; }
.shelf-row { display: flex; align-items: flex-end; gap: 12px; min-height: 132px; }
.shelf-item { display: flex; flex-direction: column; align-items: center; gap: 7px; }
.shelf-tile {
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #FFFDF7;
  border-radius: 23%;
  font-weight: 600;
  letter-spacing: -.03em;
  line-height: 1;
  box-shadow: 0 1px 2px rgba(25,24,15,.12), 0 8px 18px -14px rgba(25,24,15,.5);
}
.shelf-512 { width: 84px; height: 84px; font-size: 38px; }
.shelf-180 { width: 60px; height: 60px; font-size: 27px; }
.shelf-48 { width: 36px; height: 36px; font-size: 17px; border-radius: 9px; }
.shelf-32 { width: 28px; height: 28px; font-size: 13px; border-radius: 8px; }
.shelf-16 { width: 20px; height: 20px; font-size: 9px; border-radius: 6px; }
.shelf-label { font-size: 9.5px; color: var(--ink-3); letter-spacing: .1em; }

.shelf-tabs { display: flex; align-items: flex-end; gap: 0; border-top: 1px solid var(--line); padding-top: 14px; }
.shelf-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  padding: 8px 10px;
  font-size: 12px;
  color: var(--ink-2);
  max-width: 230px;
}
.shelf-tab-add { border-radius: 8px 8px 0 0; color: var(--ink-3); font-size: 15px; padding: 6px 12px; }
.shelf-fav { width: 16px; height: 16px; display: grid; place-items: center; background: var(--accent); color: #FFFDF7; border-radius: 3px; font-size: 9px; font-weight: 600; }
.shelf-tab-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shelf-tab-x { margin-left: auto; color: var(--ink-3); }

/* dropzone */
.dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  padding: 30px 20px;
  border: 1px dashed var(--line-strong);
  border-radius: 9px;
  background: var(--surface-2);
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.dropzone:hover, .dropzone:focus-visible { border-color: var(--accent); background: var(--surface); }
.dropzone.is-over { border-color: var(--accent); border-style: solid; background: var(--accent-soft); }
.drop-icon { width: 30px; height: 30px; color: var(--ink-3); }
.drop-title { font-size: 14.5px; font-weight: 500; color: var(--ink); }
.drop-hint { font-size: 12px; line-height: 1.5; color: var(--ink-3); max-width: 34ch; }
.dropzone .btn { margin-top: 4px; padding: 8px 16px; font-size: 13.5px; }

.file-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-2);
}
.file-line[hidden] { display: none; }
.file-dims { font-size: 10.5px; color: var(--accent); letter-spacing: .04em; flex: none; }
.file-name { font-size: 13px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; min-width: 0; }

.glyph-presets { display: flex; flex-wrap: wrap; gap: 7px; }
.chip-btn {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  font-family: inherit;
  font-size: 17px;
  color: var(--ink);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}
.chip-btn:hover { border-color: var(--accent); background: var(--surface); }
.chip-btn[aria-pressed="true"] { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }

.check.compact { font-size: 12.5px; gap: 6px; }

/* preview stage */
.stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 268px;
  padding: 16px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background-color: var(--bg-soft);
  background-image:
    linear-gradient(45deg, var(--dot) 25%, transparent 25%, transparent 75%, var(--dot) 75%),
    linear-gradient(45deg, var(--dot) 25%, transparent 25%, transparent 75%, var(--dot) 75%);
  background-size: 16px 16px;
  background-position: 0 0, 8px 8px;
}
#previewCanvas {
  display: block;
  width: 216px;
  height: 216px;
  max-width: 100%;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.14));
}
#previewCanvas[hidden] { display: none; }
.stage-empty {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 28px;
  font-size: 12.5px;
  color: var(--ink-3);
}
.stage-empty[hidden] { display: none; }

.transparency-note {
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--ink-3);
  border-left: 2px solid var(--line-strong);
  padding-left: 9px;
}
.transparency-note[hidden] { display: none; }

.sizes-strip { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.size-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 7px 3px 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-2);
}
.size-tile canvas {
  width: 30px;
  height: 30px;
  image-rendering: pixelated;
  display: block;
}
.size-tile .mono { font-size: 9px; color: var(--ink-3); letter-spacing: .02em; }

.design-wide { grid-column: 1 / -1; display: flex; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.design-wide .field { flex: 1 1 280px; max-width: 420px; }
.design-wide .check { padding-bottom: 9px; }

/* mockups */
.mockups { margin-top: 16px; padding: 20px 22px 22px; }
.mock-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.mock { min-width: 0; }
.mock-label { font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px; }

.safari-bar, .chrome-bar, .mock-urlbar {
  display: flex;
  align-items: flex-end;
  gap: 0;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  padding: 8px 8px 0;
  min-height: 40px;
}
.chrome-bar { align-items: center; padding: 7px 8px; gap: 8px; }
.safari-tab, .chrome-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 7px 7px 0 0;
  padding: 6px 9px;
  font-size: 11.5px;
  color: var(--ink-2);
  max-width: 100%;
  min-width: 0;
}
.chrome-tab { border-radius: 6px; border-bottom: 1px solid var(--line); padding: 5px 8px; }
.chrome-tab.active { background: var(--surface); }
.chrome-tab:not(.active) { background: transparent; border-color: transparent; color: var(--ink-3); }
.chrome-tab img { width: 16px; height: 16px; border-radius: 2px; }
.safari-tab img { width: 16px; height: 16px; border-radius: 2px; }
.safari-title, .chrome-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.safari-x { color: var(--ink-3); margin-left: 4px; }
.safari-plus { color: var(--ink-3); padding: 0 10px 6px; font-size: 15px; }
.chrome-dots { display: inline-flex; gap: 4px; padding-right: 4px; }
.chrome-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--line-strong); display: block; }
.chrome-fav-empty { width: 11px; height: 11px; border-radius: 2px; border: 1px solid var(--line-strong); display: inline-block; }
.mock-urlbar {
  border-radius: 0 0 8px 8px;
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  padding: 7px 10px;
  align-items: center;
}
.mock-url { font-size: 10.5px; color: var(--ink-3); letter-spacing: .01em; }

.phone {
  position: relative;
  margin: 0 auto;
  width: 100%;
  max-width: 190px;
  padding: 18px 14px 22px;
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  background:
    radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 60%),
    var(--bg-soft);
}
.phone-icons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 8px; }
.phone-app { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.phone-app img { width: 46px; height: 46px; border-radius: 11px; display: block; }
.phone-blank { width: 46px; height: 46px; border-radius: 11px; background: color-mix(in srgb, var(--ink) 8%, transparent); border: 1px solid var(--line); display: block; }
.phone-name { font-size: 9px; color: var(--ink-2); max-width: 52px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.phone-app.muted { opacity: .45; }
.phone-safe {
  position: absolute;
  left: 50%;
  bottom: 4px;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .1em;
  color: var(--ink-3);
  text-transform: uppercase;
  white-space: nowrap;
}

/* bundle */
.bundle { padding-top: 64px; }
.bundle-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .75fr); gap: 16px; align-items: start; }
.bundle-table { padding: 6px 4px 4px; overflow: hidden; }
.file-table { width: 100%; border-collapse: collapse; }
.file-table th {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 400;
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}
.file-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; font-size: 13px; }
.file-table tr:last-child td { border-bottom: 0; }
.file-table .fname { font-family: var(--mono); font-size: 11.5px; color: var(--ink); white-space: nowrap; }
.file-table .fdesc { font-size: 12.5px; color: var(--ink-3); line-height: 1.45; }
.file-table .col-size { text-align: right; white-space: nowrap; }
.file-table .col-size, .file-table td.col-size { font-family: var(--mono); font-size: 10.5px; color: var(--ink-3); }
.file-table .col-get { width: 44px; text-align: right; }
.get-btn {
  width: 30px; height: 30px;
  display: inline-grid; place-items: center;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink-2);
  cursor: pointer;
  padding: 0;
}
.get-btn:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.get-btn svg { width: 14px; height: 14px; }

.bundle-side { display: grid; gap: 12px; }
.zip-card { padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.zip-size { font-family: var(--mono); font-size: 13px; color: var(--ink-2); }
.snippet-card { padding: 16px 18px 18px; }
.snippet-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.snippet {
  margin: 0;
  font-family: var(--mono);
  font-size: 10.5px;
  line-height: 1.7;
  color: var(--ink-2);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 11px 12px;
  overflow-x: auto;
  white-space: pre;
  tab-size: 2;
}

@media (max-width: 980px) {
  .mock-grid { grid-template-columns: 1fr; gap: 24px; }
  .bundle-grid { grid-template-columns: 1fr; }
  .sizes-strip { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .shelf-row { min-height: 104px; gap: 9px; }
  .shelf-512 { width: 62px; height: 62px; font-size: 28px; }
  .shelf-180 { width: 46px; height: 46px; font-size: 20px; }
  .shelf-48 { width: 30px; height: 30px; font-size: 14px; }
  .stage { min-height: 224px; }
  #previewCanvas { width: 176px; height: 176px; }
  .file-table .fdesc { display: none; }
  .design-wide { gap: 14px; }
  .mockups { padding: 16px; }
}

/* five design groups read better as three across */
@media (min-width: 981px) {
  .design .design-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.design .segmented span { font-size: 11.5px; padding: 7px 3px; }

/* skeletons under the mock tab, so a tab reads as a window */
.mock-page {
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 8px 8px;
  background: var(--surface);
  padding: 12px 14px 16px;
  display: grid;
  gap: 7px;
}
.mock-line { height: 5px; border-radius: 3px; background: var(--line); display: block; }

.phone { padding: 20px 14px 26px; }
.phone-icons { gap: 14px 8px; }
.phone-app img { width: 50px; height: 50px; border-radius: 12px; }
.phone-blank { width: 50px; height: 50px; border-radius: 12px; }
.phone-safe { bottom: 7px; font-size: 7.5px; }

@media (max-width: 640px) {
  .bundle-table { overflow-x: auto; }
  .file-table th, .file-table td { padding: 8px 8px; }
  .file-table .fname { white-space: normal; overflow-wrap: anywhere; font-size: 10.5px; }
  .file-table .col-size { font-size: 9.5px; }
}

.bundle-grid > * { min-width: 0; }

@media (max-width: 640px) {
  .file-table { table-layout: fixed; }
  .file-table th:nth-child(2),
  .file-table td:nth-child(2) { display: none; }
  .file-table .col-size { width: 64px; }
  .file-table .col-get { width: 40px; }
}

.bundle-side > * { min-width: 0; }
.snippet { min-width: 0; }

/* Korean headings break at spaces, not inside a word */
html[lang="ko"] h1,
html[lang="ko"] h2,
html[lang="ko"] h3,
html[lang="ko"] .hero-lede,
html[lang="ko"] .section-lede,
html[lang="ko"] .hero h1 { word-break: keep-all; }
