/* nakitbox.com — hand-written, no build step. Brand: NakitBox green (Mobile/src/shared/theme/brand.ts).
   Layout idea: the page sits on a deep green band; content lives on rounded white (or near-black) sheets.
   Theme: follows the system (prefers-color-scheme) unless the toggle saved data-theme="light" | "dark". */

/* ============ TOKENS ============ */
:root {
  color-scheme: light;
  --band: #057A55;
  --band-deep: #046244;
  --band-text: #ffffff;
  --band-muted: rgba(255, 255, 255, 0.84);
  --band-line: rgba(255, 255, 255, 0.22);

  --bg: #ffffff;
  --alt: #f2f7f4;
  --card: #ffffff;
  --card-2: #f7faf8;
  --t1: #0e1c16;
  --t2: #3a4d45;
  --t3: #586b63;
  --border: #dde7e2;
  --border-strong: #c3d2ca;

  --brand: #057A55;
  --brand-hover: #046548;
  --on-brand: #ffffff;
  --brand-bright: #0E9F6E;
  --brand-soft: rgba(5, 122, 85, 0.1);
  --brand-text: #057A55;

  --warn: #8a5300;
  --warn-soft: #fff3dc;
  --err: #b42318;
  --err-soft: #fdecea;
  --off: #5d6670;
  --off-soft: #eef0f2;

  --focus: #0e1c16;
  --shadow: 0 1px 2px rgba(16, 40, 30, 0.06), 0 6px 20px rgba(16, 40, 30, 0.06);
  --shadow-lg: 0 18px 48px rgba(6, 40, 28, 0.18);
  --art-bg: linear-gradient(140deg, #e6f4ed 0%, #f6faf8 70%);
  --art-body: #1f3a30;
  --art-face: #2d5245;

  --radius-sheet: 32px;
  --radius-card: 20px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  --header-h: 64px;
}

/* System fonts only, no web font. Latin and Cyrillic (ru) are covered by the stack above (Segoe UI, Roboto, Noto Sans,
   Arial all carry Cyrillic). Japanese and Korean name their platforms' fonts first, so a CJK page does not fall back
   glyph by glyph to whatever font the browser picks. */
:root:lang(ja) {
  --font: system-ui, -apple-system, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", Meiryo,
    "Noto Sans JP", "Noto Sans CJK JP", "Segoe UI", Roboto, sans-serif;
}
:root:lang(ko) {
  --font: system-ui, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", "Noto Sans CJK KR",
    "Segoe UI", Roboto, sans-serif;
}
/* Korean wraps between words, Japanese by its own line-break rules; no negative letter-spacing on CJK headings. */
:lang(ko) { word-break: keep-all; }
:lang(ja) { line-break: strict; }
:root:lang(ja) h1, :root:lang(ja) h2, :root:lang(ko) h1, :root:lang(ko) h2 { letter-spacing: 0; }

:root[data-theme="dark"] {
  color-scheme: dark;
  --band: #06281d;
  --band-deep: #041c14;
  --band-muted: rgba(255, 255, 255, 0.8);
  --band-line: rgba(255, 255, 255, 0.14);
  --bg: #0c1411;
  --alt: #101b17;
  --card: #14211c;
  --card-2: #182722;
  --t1: #e9f2ee;
  --t2: #b9c9c2;
  --t3: #95a9a1;
  --border: #22352d;
  --border-strong: #31493f;
  --brand: #34d399;
  --brand-hover: #5ee0b0;
  --on-brand: #04281b;
  --brand-bright: #34d399;
  --brand-soft: rgba(52, 211, 153, 0.14);
  --brand-text: #34d399;
  --warn: #f5b656;
  --warn-soft: rgba(245, 182, 86, 0.13);
  --err: #ff8a80;
  --err-soft: rgba(255, 138, 128, 0.12);
  --off: #a9b3bb;
  --off-soft: rgba(169, 179, 187, 0.12);
  --focus: #f3fff9;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 6px 20px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 18px 48px rgba(0, 0, 0, 0.45);
  --art-bg: linear-gradient(140deg, #13271f 0%, #0f1a16 70%);
  --art-body: #2a4a3e;
  --art-face: #3a6555;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --band: #06281d;
    --band-deep: #041c14;
    --band-muted: rgba(255, 255, 255, 0.8);
    --band-line: rgba(255, 255, 255, 0.14);
    --bg: #0c1411;
    --alt: #101b17;
    --card: #14211c;
    --card-2: #182722;
    --t1: #e9f2ee;
    --t2: #b9c9c2;
    --t3: #95a9a1;
    --border: #22352d;
    --border-strong: #31493f;
    --brand: #34d399;
    --brand-hover: #5ee0b0;
    --on-brand: #04281b;
    --brand-bright: #34d399;
    --brand-soft: rgba(52, 211, 153, 0.14);
    --brand-text: #34d399;
    --warn: #f5b656;
    --warn-soft: rgba(245, 182, 86, 0.13);
    --err: #ff8a80;
    --err-soft: rgba(255, 138, 128, 0.12);
    --off: #a9b3bb;
    --off-soft: rgba(169, 179, 187, 0.12);
    --focus: #f3fff9;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 6px 20px rgba(0, 0, 0, 0.25);
    --shadow-lg: 0 18px 48px rgba(0, 0, 0, 0.45);
    --art-bg: linear-gradient(140deg, #13271f 0%, #0f1a16 70%);
    --art-body: #2a4a3e;
    --art-face: #3a6555;
  }
}

/* ============ BASE ============ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--t1);
  background: var(--band);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
main { flex: 1 0 auto; outline: none; }
img, svg { max-width: 100%; }
a { color: var(--brand-text); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { line-height: 1.2; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
code { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 0.95em; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
.site-header, .site-footer { --focus: #ffffff; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--bg); color: var(--t1);
  padding: 10px 16px; border-radius: 10px; font-weight: 600;
  box-shadow: var(--shadow-lg);
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 820px; }

/* ============ HEADER ============ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--band);
  color: var(--band-text);
  border-bottom: 1px solid var(--band-line);
}
.header-bar {
  max-width: 1208px; margin: 0 auto; padding: 0 24px;
  min-height: var(--header-h);
  display: flex; align-items: center; gap: 28px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; flex-shrink: 0; }
.brand-mark { display: block; flex-shrink: 0; }
.brand-mark-bg { fill: #0E9F6E; }
.site-header .brand-mark-bg, .site-footer .brand-mark-bg { fill: rgba(255, 255, 255, 0.16); }
.brand-name { font-size: 21px; font-weight: 700; letter-spacing: -0.02em; }
.brand-name span { color: #a7f3d0; }
.main-nav ul { list-style: none; display: flex; gap: 6px; }
.main-nav a {
  display: block; padding: 8px 12px; border-radius: 999px;
  color: var(--band-muted); text-decoration: none; font-size: 15px; font-weight: 500;
}
.main-nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.1); }
.main-nav a.is-active { color: #fff; background: rgba(255, 255, 255, 0.16); }
.nav-short { display: none; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 42px; height: 42px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--band-line); background: rgba(255, 255, 255, 0.08); color: #fff;
  cursor: pointer; padding: 0;
}
.icon-btn:hover { background: rgba(255, 255, 255, 0.16); }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
}
.cart-link {
  display: inline-flex; align-items: center; gap: 8px;
  height: 42px; padding: 0 16px 0 14px; border-radius: 999px;
  background: #fff; color: #05553c; text-decoration: none; font-weight: 600; font-size: 15px;
}
.cart-link:hover { background: #ecfdf5; }
.cart-count {
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px;
  background: #057A55; color: #fff; font-size: 12.5px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
}
.cart-count[hidden] { display: none; }

/* Language menu: a native <details> (opens without JavaScript); site.js only closes it on Escape / outside click. */
.lang-menu { position: relative; }
.lang-toggle { width: auto; padding: 0 12px 0 10px; gap: 6px; list-style: none; }
.lang-toggle::-webkit-details-marker { display: none; }
.lang-toggle::marker { content: ""; }
.lang-code { font-size: 13px; font-weight: 700; letter-spacing: 0.04em; }
.lang-menu[open] > .lang-toggle { background: rgba(255, 255, 255, 0.2); }
.lang-list {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 60;
  list-style: none; margin: 0; padding: 6px;
  min-width: 180px; max-width: calc(100vw - 32px); max-height: min(70vh, 420px); overflow-y: auto;
  background: var(--card); color: var(--t1);
  border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-lg);
  --focus: var(--t1);
}
.lang-list a {
  display: block; padding: 9px 12px; border-radius: 9px;
  color: var(--t1); text-decoration: none; font-size: 15px; font-weight: 500; white-space: nowrap;
}
.lang-list a:hover { background: var(--brand-soft); }
.lang-list a.is-active { color: var(--brand-text); font-weight: 700; }
.lang-list a.is-active::after { content: " ✓"; }

/* ============ SHEETS AND SECTIONS ============ */
.sheet {
  max-width: 1208px; margin: 24px auto 40px; padding: 48px 0 56px;
  background: var(--bg); border-radius: var(--radius-sheet);
  box-shadow: var(--shadow-lg);
}
.page-home main { padding-bottom: 40px; }
.section { padding: 88px 0; background: var(--bg); max-width: 1208px; margin: 0 auto; }
.section--alt { background: var(--alt); }
.section--top { border-radius: var(--radius-sheet) var(--radius-sheet) 0 0; margin-top: 24px; }
.section--bottom { border-radius: 0 0 var(--radius-sheet) var(--radius-sheet); }
.section-head { max-width: 680px; margin: 0 auto 48px; text-align: center; display: grid; gap: 12px; }
.section-head h2 { font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.35rem); }
.section-head p { color: var(--t2); font-size: 17px; }
.eyebrow { color: var(--brand-text); font-size: 13.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.page-head { display: grid; gap: 10px; margin-bottom: 32px; max-width: 760px; }
.page-head h1 { font-size: clamp(1.8rem, 1.3rem + 1.8vw, 2.6rem); }
.page-lead { color: var(--t2); font-size: 17.5px; }

/* ============ BUTTONS, TAGS ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 12px 26px; border-radius: 999px;
  font-size: 16px; font-weight: 650; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; text-align: center; line-height: 1.25;
}
.btn-primary { background: var(--brand); color: var(--on-brand); box-shadow: 0 6px 18px rgba(5, 122, 85, 0.25); }
.btn-primary:hover { background: var(--brand-hover); }
.btn-ghost { background: var(--card); color: var(--t1); border-color: var(--border-strong); }
.btn-ghost:hover { border-color: var(--t3); }
.btn-block { width: 100%; }
.link-btn {
  background: none; border: 0; padding: 6px 4px; cursor: pointer;
  color: var(--t2); font-size: 14.5px; text-decoration: underline; text-underline-offset: 3px;
}
.link-btn:hover { color: var(--err); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-row--center { justify-content: center; }

.badge, .tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 700; padding: 5px 12px; border-radius: 999px; line-height: 1.3;
}
.badge { background: var(--brand-soft); color: var(--brand-text); font-size: 13.5px; padding: 6px 14px; width: fit-content; }
.tag--ok { background: var(--brand-soft); color: var(--brand-text); }
.tag--soon { background: var(--warn-soft); color: var(--warn); }
.tag--sample { background: #fff; color: #5b3d00; border: 1px solid #f0d49a; }

/* ============ HERO ============ */
.hero { padding: 24px 24px 0; }
.hero-card {
  max-width: 1208px; margin: 0 auto;
  background: var(--bg); border-radius: var(--radius-sheet);
  padding: 56px 64px; box-shadow: var(--shadow-lg);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center; }
.hero-text { display: grid; gap: 24px; justify-items: start; }
.hero h1 { font-size: clamp(2.1rem, 1.3rem + 3.2vw, 3.55rem); line-height: 1.08; letter-spacing: -0.03em; text-wrap: balance; }
.hero h1 .accent { color: var(--brand-text); }
.lead { font-size: 18.5px; color: var(--t2); max-width: 560px; text-wrap: pretty; }
.check-row { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--t3); font-size: 14.5px; }
.check-row li::before { content: "✓"; color: var(--brand-text); font-weight: 800; margin-right: 6px; }
/* Sample label: the app's printed 50 x 30 mm label (QR left, text right), sized from its own width --w so the
   proportions hold at any size. Paper colours in both themes, like the app's LabelPreview: a QR must stay black on
   white to scan. QR = 18 of 30 mm high (label height minus padding); padding 3 % of the width, as the app's 1.5 mm. */
.sample-label { margin: 0; width: 100%; display: grid; justify-items: center; gap: 18px; --w: 300px; }
@supports (container-type: inline-size) {
  .sample-label { container-type: inline-size; --w: min(100cqw, 440px); }
}
.paper-label {
  width: var(--w); aspect-ratio: 5 / 3; flex: none;
  display: flex; align-items: center; gap: calc(var(--w) * 0.03); padding: calc(var(--w) * 0.03);
  background: #ffffff; color: #000000; border-radius: calc(var(--w) * 0.04);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.07), 0 12px 32px rgba(6, 40, 28, 0.18);
}
.paper-qr { display: block; flex: none; width: calc(var(--w) * 0.54); height: calc(var(--w) * 0.54); }
.paper-info { display: grid; gap: calc(var(--w) * 0.012); min-width: 0; line-height: 1.15; hyphens: auto; overflow-wrap: anywhere; }
.paper-business { font-size: calc(var(--w) * 0.036); font-weight: 700; }
.paper-name { font-size: calc(var(--w) * 0.054); font-weight: 700; }
.paper-code { font-family: ui-monospace, "Cascadia Mono", Consolas, Menlo, monospace; font-size: calc(var(--w) * 0.036); letter-spacing: 0.04em; }
.paper-price { font-size: calc(var(--w) * 0.068); font-weight: 800; white-space: nowrap; margin-top: calc(var(--w) * 0.012); }
.sample-caption { display: grid; gap: 4px; justify-items: center; text-align: center; max-width: 440px; color: var(--t2); font-size: 15px; text-wrap: pretty; }
.sample-caption b { color: var(--t1); font-size: 17px; }
.sample-caption .link { margin-top: 4px; }

/* ============ BARCODE / QR PATHS ============ */
.path-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.path-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-card);
  padding: 28px; display: grid; gap: 10px; align-content: start; box-shadow: var(--shadow);
}
.path-card h3 { font-size: 20px; }
.path-card p { color: var(--t2); }
.path-card .path-note { font-size: 14.5px; }
.path-icon { color: var(--brand-text); margin-bottom: 6px; max-width: 100%; }
.path-bg { fill: var(--brand-soft); }
@media (max-width: 760px) { .path-grid { grid-template-columns: 1fr; } .path-card { padding: 22px; } }

/* ============ FEATURES ============ */
.feature-grid { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-card);
  padding: 28px; display: grid; gap: 10px; align-content: start; box-shadow: var(--shadow);
}
.feature h3 { font-size: 19px; }
.feature p { color: var(--t2); }
.feature-title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.feature-icon {
  width: 48px; height: 48px; border-radius: 14px; margin-bottom: 6px;
  background: var(--brand-soft); color: var(--brand-text);
  display: flex; align-items: center; justify-content: center;
}

/* ============ OFFLINE / ONLINE ============ */
.mode-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.mode-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-card);
  padding: 32px; display: grid; gap: 18px; align-content: start; box-shadow: var(--shadow);
}
.mode-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.mode-head h3 { font-size: 22px; }
.mode-note { color: var(--t2); font-size: 14.5px; background: var(--warn-soft); padding: 12px 14px; border-radius: 12px; }
.tick-list { list-style: none; display: grid; gap: 10px; }
.tick-list li { position: relative; padding-left: 28px; color: var(--t2); }
.tick-list li::before {
  content: ""; position: absolute; left: 0; top: 0.3em; width: 18px; height: 18px; border-radius: 999px;
  background: var(--brand-soft);
}
.tick-list li::after {
  content: ""; position: absolute; left: 6px; top: calc(0.3em + 4px); width: 5px; height: 9px;
  border: solid var(--brand-text); border-width: 0 2px 2px 0; transform: rotate(45deg);
}

/* ============ PRINTER TEASER ============ */
.teaser { max-width: 760px; }
.teaser-text { display: grid; gap: 18px; justify-items: start; }
.teaser-text h2 { font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.35rem); }
.teaser-text > p { color: var(--t2); font-size: 17px; }

/* ============ PRICING ============ */
.pricing { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: center; }
.pricing-text { display: grid; gap: 12px; }
.pricing-text h2 { font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.35rem); }
.pricing-text > p:last-child { color: var(--t2); font-size: 17.5px; }
.pricing-points { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.pricing-points li {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-card);
  padding: 22px 18px; display: grid; gap: 6px; box-shadow: var(--shadow);
}
.pricing-points b { font-size: 22px; color: var(--brand-text); letter-spacing: -0.01em; }
.pricing-points span { color: var(--t2); font-size: 15px; }

/* ============ DOWNLOAD ============ */
.download { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.download > div:first-child { display: grid; gap: 10px; max-width: 620px; }
.download h2 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem); }
.download p { color: var(--t2); }
.store-pills { display: flex; flex-wrap: wrap; gap: 12px; }
.store-pill {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 10px 22px; border-radius: 999px;
  background: var(--t1); color: var(--bg); text-decoration: none; font-weight: 650;
}
.store-pill.is-disabled {
  background: transparent; color: var(--t2); border: 1.5px dashed var(--border-strong); cursor: default;
}

/* ============ FAQ ============ */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--card); border: 1px solid var(--border); border-radius: 16px; }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 56px 18px 22px; font-weight: 650; font-size: 17px;
  position: relative; border-radius: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 24px; top: 50%; width: 9px; height: 9px;
  border: solid var(--t2); border-width: 0 2px 2px 0; transform: translateY(-70%) rotate(45deg);
  transition: transform 0.15s ease;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { padding: 0 22px 20px; color: var(--t2); }

/* ============ FOOTER ============ */
.site-footer { color: var(--band-text); padding: 32px 0 28px; }
.footer-inner {
  max-width: 1208px; margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: 1.2fr 2fr; gap: 40px;
}
.footer-brand { display: grid; gap: 12px; align-content: start; }
.footer-brand p { color: var(--band-muted); max-width: 320px; }
.footer-nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer-nav h2 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--band-muted); margin-bottom: 12px; }
.footer-nav ul { list-style: none; display: grid; gap: 8px; }
.footer-nav a { color: #fff; text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; }
.footer-bottom {
  max-width: 1208px; margin: 28px auto 0; padding: 20px 24px 0; border-top: 1px solid var(--band-line);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  color: var(--band-muted); font-size: 14px;
}

/* ============ NOTICES ============ */
.notice { border-radius: 16px; padding: 16px 18px; margin-bottom: 24px; border: 1px solid var(--border); background: var(--card-2); }
.notice h2 { font-size: 16px; margin-bottom: 6px; }
.notice p { color: var(--t2); }
.notice--info { background: var(--alt); }
.notice--brand { background: var(--brand-soft); border-color: transparent; margin: 0; }
.notice--warn { background: var(--warn-soft); border-color: transparent; }
.notice--warn p { color: var(--t1); }
.empty { text-align: center; display: grid; gap: 12px; justify-items: center; padding: 48px 16px; background: var(--alt); border-radius: var(--radius-card); }
.empty h2 { font-size: 22px; }
.empty p { color: var(--t2); }
.hint { color: var(--t3); font-size: 14px; }

/* ============ SHOP ============ */
.filter ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.chip {
  display: inline-flex; align-items: center; min-height: 40px; padding: 8px 16px; border-radius: 999px;
  border: 1px solid var(--border-strong); color: var(--t1); text-decoration: none; font-weight: 600; font-size: 15px;
  background: var(--card);
}
.chip:hover { border-color: var(--brand-text); }
.chip.is-active { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.product-grid { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.product-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-card);
  overflow: hidden; box-shadow: var(--shadow); transition: transform 0.15s ease, border-color 0.15s ease;
}
.product-card:hover { transform: translateY(-2px); border-color: var(--border-strong); }
.product-card-link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.product-card-link:focus-visible { outline-offset: -3px; border-radius: var(--radius-card); }
.product-art { position: relative; background: var(--art-bg); display: flex; align-items: center; justify-content: center; }
.product-card .product-art { aspect-ratio: 4 / 3; padding: 28px 16px 12px; }
.product-card .art { width: 78%; }
.product-art .tag--sample { position: absolute; left: 12px; top: 12px; }
.art { width: 100%; height: auto; max-height: 100%; display: block; }
.art-shadow { fill: rgba(0, 0, 0, 0.12); }
.art-paper { fill: #ffffff; stroke: #cfdad4; stroke-width: 1.5; }
.art-paper-fill { fill: #ffffff; }
.art-ink { fill: #15241e; }
.art-body { fill: var(--art-body); }
.art-face { fill: var(--art-face); }
.art-slot { fill: #0b1712; }
.art-accent { fill: #0E9F6E; }
.art-led { fill: #6ee7b7; }
.art-gap { fill: #cfdad4; }
.art-ring { fill: none; stroke: #dfe7e3; stroke-width: 2; }
.art-ring--inner { stroke-dasharray: 4 5; }
.art-core { fill: #ffffff; }
.art-strap { stroke: var(--art-body); }
.product-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-cat { font-size: 13px; color: var(--t3); font-weight: 600; }
.product-name { font-size: 18px; }
.product-summary { color: var(--t2); font-size: 15px; }
.product-foot { margin-top: auto; padding-top: 12px; display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; justify-content: space-between; }
.price { font-weight: 800; font-size: 18px; }
.price--ask { font-weight: 600; font-size: 14px; color: var(--brand-text); }
.price--big { font-size: 30px; letter-spacing: -0.02em; }
.price-note { color: var(--t3); font-size: 14px; margin-left: 8px; }
.stock { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 650; }
.stock::before { content: ""; width: 8px; height: 8px; border-radius: 999px; background: currentColor; }
.stock--ok { color: var(--brand-text); }
.stock--warn { color: var(--warn); }
.stock--off { color: var(--off); }
.howto { margin-top: 48px; background: var(--alt); border-radius: var(--radius-card); padding: 28px; }
.howto h2 { font-size: 20px; margin-bottom: 14px; }
.howto ol { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; list-style: none; counter-reset: step; }
.howto li { counter-increment: step; position: relative; padding-left: 44px; color: var(--t2); }
.howto li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 30px; height: 30px; border-radius: 999px; background: var(--brand); color: var(--on-brand);
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px;
}
.howto b { color: var(--t1); display: block; }

/* Product page */
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; color: var(--t3); margin-bottom: 24px; }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: var(--border-strong); }
.breadcrumb a { color: var(--t2); }
.product-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.gallery { display: grid; gap: 10px; }
.gallery-main { aspect-ratio: 1 / 1; border-radius: 24px; padding: 40px; }
.gallery-note { color: var(--t3); font-size: 13.5px; text-align: center; }
.product-info { display: grid; gap: 18px; }
.product-info h1 { font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.4rem); }
.product-lead { color: var(--t2); font-size: 17.5px; }
.buy-box { background: var(--card-2); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 22px; display: grid; gap: 14px; }
.buy-price { display: flex; align-items: baseline; flex-wrap: wrap; }
.add-form { display: grid; gap: 14px; }
.qty-field { display: grid; gap: 6px; }
.qty-field label { font-weight: 600; }
.stepper { display: inline-flex; align-items: stretch; border: 1px solid var(--border-strong); border-radius: 14px; overflow: hidden; background: var(--card); width: fit-content; }
.stepper-btn {
  width: 48px; min-height: 48px; border: 0; background: transparent; cursor: pointer;
  font-size: 22px; font-weight: 600; color: var(--t1);
}
.stepper-btn:hover:not(:disabled) { background: var(--brand-soft); }
.stepper-btn:disabled { color: var(--border-strong); cursor: default; }
.stepper input {
  width: 64px; border: 0; border-left: 1px solid var(--border); border-right: 1px solid var(--border);
  text-align: center; font-size: 17px; font-weight: 700; background: transparent; -moz-appearance: textfield; appearance: textfield;
}
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper input:focus-visible { outline-offset: -3px; border-radius: 0; }
.stepper--small .stepper-btn { width: 40px; min-height: 40px; font-size: 19px; }
.stepper--small input { width: 52px; font-size: 16px; }
.add-status { min-height: 1.6em; font-weight: 600; color: var(--brand-text); }
.add-status:empty { min-height: 0; }
.product-details { margin-top: 56px; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.product-details h2 { font-size: 22px; margin-bottom: 14px; }
.product-details p + p { margin-top: 12px; }
.product-details p { color: var(--t2); }
.specs { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
.specs th, .specs td { text-align: left; vertical-align: top; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.specs tr:last-child th, .specs tr:last-child td { border-bottom: 0; }
.specs th { width: 38%; font-weight: 600; color: var(--t2); background: var(--card-2); }

/* Cart */
.cart-layout { display: grid; grid-template-columns: 1fr 340px; gap: 28px; align-items: start; }
.cart-layout[hidden], .empty[hidden] { display: none; }
.cart-list { list-style: none; display: grid; gap: 14px; }
.cart-row {
  display: grid; grid-template-columns: 88px 1fr auto; gap: 16px; align-items: center;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 14px;
}
.cart-thumb { width: 88px; height: 88px; border-radius: 14px; background: var(--art-bg); display: flex; align-items: center; justify-content: center; padding: 8px; }
.cart-thumb > span { display: block; width: 100%; }
.cart-main { display: grid; gap: 6px; min-width: 0; }
.cart-name { font-weight: 700; font-size: 16.5px; color: var(--t1); text-decoration: none; }
.cart-name:hover { text-decoration: underline; }
.cart-meta { color: var(--t2); font-size: 14px; display: flex; flex-wrap: wrap; gap: 4px 12px; }
.cart-controls { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.cart-line { font-weight: 800; font-size: 17px; text-align: right; white-space: nowrap; align-self: start; padding-top: 2px; }
.cart-line[hidden] { display: none; }
.cart-summary, .order-summary {
  position: sticky; top: calc(var(--header-h) + 16px);
  background: var(--card-2); border: 1px solid var(--border); border-radius: var(--radius-card);
  padding: 22px; display: grid; gap: 16px;
}
.cart-summary h2, .order-summary h2 { font-size: 19px; }
.cart-summary dl, .summary-totals { margin: 0; display: grid; gap: 10px; }
.cart-summary dl > div, .summary-totals > div { display: flex; justify-content: space-between; gap: 12px; }
.cart-summary dt, .summary-totals dt { color: var(--t2); }
.cart-summary dd, .summary-totals dd { margin: 0; font-weight: 700; text-align: right; }
.cart-summary dl > div[hidden] { display: none; }
.cart-total { border-top: 1px solid var(--border); padding-top: 12px; }
.cart-total dt { color: var(--t1) !important; font-weight: 700; }
.cart-total dd { font-size: 18px; }

/* Order form */
.order-layout { display: grid; grid-template-columns: 1fr 360px; gap: 32px; align-items: start; }
.order-form { display: grid; gap: 22px; min-width: 0; }
.form-section { border: 1px solid var(--border); border-radius: var(--radius-card); padding: 22px; margin: 0; display: grid; gap: 18px; min-width: 0; background: var(--card); }
/* Floated, the legend is an ordinary first row inside the box instead of sitting on its border. */
.form-section legend { float: left; width: 100%; font-weight: 750; font-size: 18px; padding: 0; margin: 0; }
.field { display: grid; gap: 6px; min-width: 0; }
.field > label, .field > .label { font-weight: 600; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.optional { color: var(--t3); font-weight: 400; }
input[type="text"], input[type="tel"], input[type="email"], select, textarea {
  width: 100%; min-height: 48px; padding: 11px 14px; border-radius: 12px;
  border: 1px solid var(--border-strong); background: var(--bg); color: var(--t1); font-size: 16px;
}
textarea { resize: vertical; min-height: 96px; line-height: 1.5; }
select { appearance: none; padding-right: 34px; background-image: linear-gradient(45deg, transparent 50%, var(--t2) 50%), linear-gradient(135deg, var(--t2) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--brand-soft); outline-offset: 0; border-color: var(--brand); border-radius: 12px; }
[aria-invalid="true"] { border-color: var(--err) !important; }
.field-error { color: var(--err); font-size: 14.5px; font-weight: 600; }
.field-hint { color: var(--t3); font-size: 14px; }
.phone-field { display: grid; grid-template-columns: minmax(0, 190px) minmax(0, 1fr); gap: 8px; }
.field--check { grid-template-columns: 24px 1fr; align-items: start; column-gap: 12px; }
.field--check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--brand); }
.field--check label { font-weight: 500; color: var(--t2); }
.field--check .field-error { grid-column: 2; }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.error-summary {
  border: 2px solid var(--err); background: var(--err-soft); border-radius: 16px;
  padding: 18px 20px; margin-bottom: 28px; outline: none;
}
.error-summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.error-summary h2 { font-size: 18px; margin-bottom: 8px; color: var(--err); }
.error-summary ul { padding-left: 20px; display: grid; gap: 4px; }
.error-summary a { color: var(--t1); font-weight: 600; }
.summary-lines { list-style: none; display: grid; gap: 12px; }
.summary-lines li { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.summary-lines li:last-child { border-bottom: 0; padding-bottom: 0; }
.summary-lines li > div { display: grid; gap: 2px; min-width: 0; }
.summary-lines span { color: var(--t2); font-size: 14px; }
.summary-amount { font-weight: 700; white-space: nowrap; color: var(--t1) !important; font-size: 15px !important; }
.link { font-weight: 600; }

/* Done, label, error, contact */
.done, .label-page, .error-page { text-align: center; display: grid; gap: 18px; justify-items: center; padding: 16px 0; }
.done h1, .label-page h1, .error-page h1 { font-size: clamp(1.8rem, 1.3rem + 1.8vw, 2.5rem); }
.done-icon, .label-badge {
  width: 72px; height: 72px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-text);
  display: flex; align-items: center; justify-content: center;
}
.reference {
  display: grid; gap: 4px; background: var(--card-2); border: 1.5px dashed var(--border-strong);
  border-radius: 16px; padding: 16px 28px;
}
.reference span { color: var(--t3); font-size: 14px; }
.reference strong { font-size: 28px; letter-spacing: 0.08em; font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; }
.label-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; text-align: left; width: 100%; margin: 8px 0; }
.info-card { background: var(--card-2); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 22px; display: grid; gap: 10px; align-content: start; }
.info-card h2 { font-size: 18px; }
.info-card p { color: var(--t2); }
.info-card--wide { margin-top: 28px; justify-items: start; }
.info-card--steps { width: 100%; text-align: left; justify-items: start; }
.code-line { font-size: 14.5px; }
.code-line code { background: var(--alt); border: 1px solid var(--border); padding: 2px 8px; border-radius: 8px; color: var(--t1); overflow-wrap: anywhere; }
.error-code { font-size: 72px; font-weight: 800; line-height: 1; color: var(--brand-text); opacity: 0.85; letter-spacing: -0.04em; }
.contact-list { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.contact-item { background: var(--card-2); border: 1px solid var(--border); border-radius: 16px; padding: 16px 18px; display: grid; gap: 4px; min-width: 0; }
.contact-label { color: var(--t3); font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; }
.contact-value { font-size: 17px; font-weight: 650; color: var(--t1); overflow-wrap: anywhere; }
.contact-value--small { font-size: 15.5px; font-weight: 500; }

/* Long texts (legal, help) */
.prose { display: grid; gap: 14px; max-width: 72ch; }
.prose h2 { font-size: 21px; margin-top: 18px; }
.prose p, .prose li { color: var(--t2); }
.prose .meta { color: var(--t3); font-size: 14.5px; }
.prose .notice { margin: 4px 0; }
.steps { padding-left: 22px; display: grid; gap: 8px; }
.steps li::marker { color: var(--brand-text); font-weight: 800; }
/* The data controller box at the end of a legal document. */
.prose .legal-contact { display: grid; gap: 12px; margin-top: 18px; }
.prose .legal-contact h2 { font-size: 18px; margin-top: 0; }
.legal-contact .contact-value { font-size: 15.5px; }

/* ============ RESPONSIVE ============ */
@media (max-width: 960px) {
  .hero-card { padding: 44px 32px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-text { justify-items: center; text-align: center; }
  .check-row { justify-content: center; }
  .cta-row { justify-content: center; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .pricing { grid-template-columns: 1fr; gap: 32px; }
  .product-layout, .product-details { grid-template-columns: 1fr; gap: 32px; }
  .cart-layout, .order-layout { grid-template-columns: 1fr; }
  .cart-summary, .order-summary { position: static; }
  .order-summary { order: -1; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .howto ol { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  :root { --header-h: 108px; }
  .header-bar { flex-wrap: wrap; gap: 0 12px; padding: 10px 16px 0; min-height: 0; }
  .main-nav { order: 3; width: 100%; margin: 6px -16px 0; padding: 0 10px 6px; overflow-x: auto; scrollbar-width: none; }
  .main-nav ul { gap: 2px; width: max-content; }
  .main-nav a { padding: 8px 10px; font-size: 14.5px; }
  .nav-long { display: none; }
  .nav-short { display: inline; }
  .header-actions { gap: 6px; }
  .mode-grid, .label-cards, .contact-list, .pricing-points { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .hero { padding: 16px 12px 0; }
  .hero-card { padding: 32px 18px 36px; border-radius: 26px; }
  .lead { font-size: 17px; }
  .cta-row .btn { width: 100%; }
  .sheet { margin: 12px 8px 24px; padding: 32px 0 40px; border-radius: 26px; }
  .section { padding: 60px 0; }
  .section--top { margin: 16px 8px 0; border-radius: 26px 26px 0 0; }
  .section, .section--alt, .section--bottom { margin-left: 8px; margin-right: 8px; }
  .section--bottom { border-radius: 0 0 26px 26px; }
  .section-head { margin-bottom: 32px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature, .mode-card { padding: 22px; }
  .field-row { grid-template-columns: 1fr; }
  .gallery-main { aspect-ratio: 4 / 3; padding: 24px; }
  .phone-field { grid-template-columns: minmax(0, 150px) minmax(0, 1fr); }
  .form-section { padding: 18px 16px; }
  .cart-row { grid-template-columns: 64px 1fr; gap: 12px; }
  .cart-thumb { width: 64px; height: 64px; }
  .cart-line { grid-column: 2; text-align: left; padding-top: 0; }
  .footer-nav { grid-template-columns: 1fr 1fr; }
  .download .store-pills { width: 100%; }
  .store-pill { flex: 1 1 220px; justify-content: center; }
  .brand-name { font-size: 19px; }
  .cart-link { padding: 0 12px; }
}

@media (max-width: 380px) {
  .lang-toggle { padding: 0 8px; gap: 4px; }
  .cart-link span:not(.cart-count):not(.visually-hidden) { display: none; }
  .cart-link { width: 42px; padding: 0; justify-content: center; position: relative; }
  .cart-count { position: absolute; top: -4px; right: -6px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .product-card, .faq summary::after { transition: none; }
}
