/* JAR 3D — unslop design system. Ink neutrals, one accent, IBM Plex. */

:root {
  --bg: #f2f1ed;
  --surface: #fbfaf7;
  --surface-2: #eae8e2;
  --surface-3: #ddd9d1;
  --ink: #15181b;
  --text: #242a2e;
  --muted: #6a6f71;
  --line: rgba(21, 24, 27, .10);
  --line-strong: rgba(21, 24, 27, .18);
  --accent: #5b21b6;
  --accent-hover: #4a1a96;
  --accent-soft: #f0eaf9;
  --success: #1f6f4a;
  --success-soft: #e6f2ea;
  --danger: #a5342a;
  --danger-soft: #f8ecea;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow: 0 1px 2px rgba(21, 24, 27, .05);
  --shadow-lg: 0 12px 32px rgba(21, 24, 27, .08);
  --max: 1200px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  margin: 0;
  font-family: "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
main { flex: 1 0 auto; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 {
  margin: 0 0 12px;
  color: var(--ink);
  font-weight: 500;
  line-height: 1.15;
}
h1 { font-size: clamp(38px, 5vw, 60px); letter-spacing: -.025em; line-height: 1.05; }
h2 { font-size: clamp(26px, 3vw, 38px); letter-spacing: -.015em; }
h3 { font-size: 18px; letter-spacing: 0; }
h4 { font-size: 14px; letter-spacing: 0; }
p { margin: 0 0 16px; }
b, strong { font-weight: 500; }
code, .mono, .currency, .sku, .product-price, .price, .step-num, .product-sku {
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}
code { font-size: .92em; background: var(--surface-2); border-radius: 4px; padding: 1px 5px; }
::selection { background: var(--accent-soft); color: var(--ink); }
.container { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; }
.small { font-size: 13px; }
.muted { color: var(--muted); }
.center { text-align: center; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; }
.skip-link:focus { top: 12px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--surface); border-bottom: 1px solid var(--line); }
.header-inner { min-height: 64px; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; flex: 0 0 auto; }
.brand-mark { width: 27px; height: 27px; flex: 0 0 auto; color: var(--ink); }
.brand-mark svg { display: block; width: 100%; height: 100%; }
.brand-mark-accent { stroke: var(--accent); }
.brand-text { display: flex; flex-direction: column; gap: 1px; }
.brand-name { color: var(--ink); font-size: 18px; font-weight: 600; letter-spacing: 0; line-height: 1.1; }
.brand-name b { color: inherit; font-weight: 600; }
.brand-tag { color: var(--muted); font: 10.5px/1.3 "IBM Plex Mono", monospace; letter-spacing: 0; }
.site-nav { display: flex; align-items: center; gap: 14px; margin-left: 2px; }
.site-nav a { position: relative; color: var(--muted); font-size: 13.5px; font-weight: 400; padding: 20px 0; white-space: nowrap; }
.site-nav a:hover { color: var(--ink); }
.site-nav a.is-active { color: var(--ink); }
.site-nav a.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: 12px; height: 2px; background: var(--accent); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.cart-link, .account-link { display: inline-flex; align-items: center; gap: 7px; color: var(--ink); font-size: 14px; padding: 8px 10px; border-radius: 8px; }
.cart-link:hover, .account-link:hover { background: var(--surface-2); }
.cart-count { color: var(--accent); font: 12px "IBM Plex Mono", monospace; }
.account-avatar { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: 11px; font-weight: 600; }
.nav-toggle { display: none; width: 38px; height: 38px; border: 1px solid var(--line); background: var(--surface); border-radius: 8px; padding: 9px; flex-direction: column; justify-content: space-between; }
.nav-toggle-bar { display: block; height: 1.5px; background: var(--ink); border-radius: 2px; }
@media (max-width: 900px) {
  .site-nav { position: absolute; top: 64px; left: 24px; right: 24px; display: none; flex-direction: column; align-items: stretch; gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 8px; }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 11px 12px; border-radius: 8px; }
  .site-nav a.is-active { background: var(--surface-2); }
  .site-nav a.is-active::after { display: none; }
  .nav-toggle { display: flex; }
}
@media (max-width: 620px) {
  .container { width: calc(100% - 32px); }
  .cart-link-label, .account-link-label { display: none; }
  .header-inner { gap: 12px; }
  .brand-name { font-size: 16px; }
  .brand-tag { display: none; }
}

/* Buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px;
  border: 1px solid transparent; border-radius: 10px;
  background: var(--accent); color: #fff;
  font: 500 14px/1 "IBM Plex Sans", sans-serif;
  cursor: pointer; text-align: center;
  transition: background-color .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease), opacity .15s var(--ease);
}
.button:hover { background: var(--accent-hover); box-shadow: none; transform: none; }
.button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.button:disabled { opacity: .5; cursor: not-allowed; }
.button-ghost { background: transparent; border-color: var(--line-strong); color: var(--ink); }
.button-ghost:hover { background: var(--surface-2); color: var(--ink); }
.button-dark { background: var(--ink); color: #fff; }
.button-dark:hover { background: #1d2a35; }
.button-light { background: #fff; color: var(--ink); }
.button-light:hover { background: #eceff3; color: var(--ink); }
.button-outline-light { background: transparent; border-color: rgba(255,255,255,.28); color: #fff; }
.button-outline-light:hover { background: rgba(255,255,255,.08); color: #fff; }
.button-sm { min-height: 36px; padding: 0 12px; font-size: 13px; border-radius: 8px; }
.button-lg { min-height: 48px; padding: 0 22px; font-size: 15px; }
.button-block { width: 100%; }
.button-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* Messages and notices */
.messages { padding-top: 16px; }
.message { border: 1px solid var(--line); border-radius: 10px; background: var(--surface); padding: 11px 14px; margin-bottom: 8px; font-size: 14px; }
.message.success { background: var(--success-soft); border-color: #cde6d9; color: var(--success); }
.message.error { background: var(--danger-soft); border-color: #f2cfcb; color: var(--danger); }
.message.info { background: var(--accent-soft); border-color: #ddd0f3; color: var(--accent); }
.notice { border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); padding: 12px 14px; font-size: 14px; }
.notice-danger { background: var(--danger-soft); border-color: #f2cfcb; color: var(--danger); }

/* Type helpers */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font: 500 12px/1.4 "IBM Plex Mono", monospace; letter-spacing: 0; }
.eyebrow-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.layer-mark { position: relative; display: inline-block; flex: 0 0 auto; width: 16px; height: 9px; border-top: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; color: var(--accent); }
.layer-mark::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; transform: translateY(-50%); background: currentColor; }
.layer-mark-light { color: #fff; }
.section-link { color: var(--accent); font-size: 13px; font-weight: 500; }
.section-link:hover { color: var(--accent-hover); }
.card-link { color: var(--accent); font-size: 13px; font-weight: 500; margin-top: auto; padding-top: 20px; }
.card-link:hover { color: var(--accent-hover); }

/* Hero */
.hero { padding: 64px 0 56px; background: var(--bg); border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(380px, .95fr); gap: 64px; align-items: center; }
.hero-copy h1 { max-width: 700px; margin: 18px 0 18px; }
.hero-lead { max-width: 560px; color: var(--muted); font-size: 17px; line-height: 1.65; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 28px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font: 12px "IBM Plex Mono", monospace; }
.hero-visual { min-width: 0; }
.hero-media { position: relative; height: 430px; background: #3e4857; border-radius: 16px 16px 0 0; overflow: hidden; }
.hero-media img { width: 100%; height: 100%; object-fit: contain; }
.hero-media-label { position: absolute; left: 16px; top: 14px; color: rgba(255,255,255,.55); font: 11px "IBM Plex Mono", monospace; }
.hero-quote { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--surface); border: 1px solid var(--line); border-top: 0; border-radius: 0 0 16px 16px; }
.hero-quote > div { padding: 12px 14px; border-right: 1px solid var(--line); min-width: 0; }
.hero-quote > div:last-child { border-right: 0; }
.hero-quote span { display: block; color: var(--muted); font: 10px "IBM Plex Mono", monospace; margin-bottom: 3px; }
.hero-quote b { display: block; color: var(--ink); font: 500 13px "IBM Plex Mono", monospace; white-space: nowrap; }
@media (max-width: 1040px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) 400px; gap: 40px; }
  .hero-copy h1 { max-width: 760px; }
  .hero-visual { max-width: 400px; }
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { max-width: 520px; }
}
@media (max-width: 620px) {
  .hero { padding: 48px 0 44px; }
  .hero-grid { gap: 28px; }
  .hero-media { height: 340px; }
  .hero-quote { grid-template-columns: repeat(2, 1fr); }
  .hero-quote > div:nth-child(2) { border-right: 0; }
  .hero-quote > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .hero-facts { gap: 12px; }
}

/* Sections */
.section { padding: 80px 0; }
.section-tight { padding: 56px 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.auth-section { min-height: calc(100vh - 64px); display: flex; align-items: center; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.section-head h2 { margin: 8px 0 8px; }
.section-head p { color: var(--muted); max-width: 660px; margin: 0; }
.section-head.center { display: block; text-align: left; }
.section-head.center .eyebrow { justify-content: flex-start; }
@media (max-width: 720px) {
  .section { padding: 56px 0; }
  .section-tight { padding: 40px 0; }
  .section-head { display: block; margin-bottom: 24px; }
  .section-head > .button, .section-head > .section-link { margin-top: 14px; display: inline-flex; }
}

/* Grids and cards */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; box-shadow: none; }
.card-flat { background: var(--surface-2); }
.card-hover:hover { border-color: var(--line-strong); }
.card-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 8px; background: var(--surface-2); color: var(--accent); font-size: 15px; margin-bottom: 16px; }
.card-icon-soft { background: var(--accent-soft); }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 14px; line-height: 1.65; }
.service-card { display: flex; flex-direction: column; min-height: 220px; }
.service-index { color: var(--accent); font: 12px "IBM Plex Mono", monospace; margin-bottom: 26px; }
.service-card p { flex: 1; }
.category-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.category-tile { display: flex; flex-direction: column; gap: 6px; padding: 20px 18px; border-right: 1px solid var(--line); min-height: 104px; justify-content: flex-end; }
.category-tile:last-child { border-right: 0; }
.category-tile b { color: var(--ink); font-size: 15px; font-weight: 500; line-height: 1.3; }
.category-tile span { color: var(--muted); font: 11px "IBM Plex Mono", monospace; }
.category-tile:hover { background: var(--surface-2); }
.process-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line-strong); }
.process-step { padding: 20px 22px 0 0; border-right: 1px solid var(--line); }
.process-step:last-child { border-right: 0; }
.process-step .step-num { display: block; color: var(--accent); font-size: 12px; margin-bottom: 22px; }
.process-step h3 { font-size: 17px; }
.process-step p { color: var(--muted); font-size: 14px; line-height: 1.6; margin: 0; }
.feature-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.feature { display: grid; grid-template-columns: 1fr; gap: 4px; padding: 18px 24px 18px 0; border-bottom: 1px solid var(--line); }
.feature:nth-child(2n) { padding-left: 24px; border-left: 1px solid var(--line); }
.feature b { color: var(--ink); font-weight: 500; font-size: 15px; }
.feature span { color: var(--muted); font-size: 14px; line-height: 1.55; }

/* CTA */
.cta-band { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; background: var(--ink); color: #fff; border-radius: var(--radius-lg); padding: 36px; }
.cta-band h2 { color: #fff; margin: 10px 0 8px; }
.cta-band p { color: #b8c0ca; max-width: 620px; margin: 0; }
.cta-copy .eyebrow { color: #c4b5e8; }
.cta-band .button-row { flex: 0 0 auto; }
@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .category-tile { border-bottom: 1px solid var(--line); }
  .process-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process-step:nth-child(2n) { border-right: 0; }
  .cta-band { display: block; padding: 28px; }
  .cta-band .button-row { margin-top: 22px; }
}
@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4, .feature-list, .process-grid { grid-template-columns: 1fr; }
  .feature:nth-child(2n) { padding-left: 0; border-left: 0; }
  .process-step { border-right: 0; padding-right: 0; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
  .process-step:last-child { border-bottom: 0; }
  .category-grid { grid-template-columns: 1fr; }
  .category-tile { border-right: 0; }
}

/* Page head and breadcrumbs */
.page-head { padding: 36px 0 0; background: var(--bg); }
.breadcrumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; color: var(--muted); font: 11px "IBM Plex Mono", monospace; }
.breadcrumbs a:hover { color: var(--ink); }
.breadcrumbs span[aria-hidden="true"] { color: var(--line-strong); }

/* Products */
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.product-card { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color .15s var(--ease); }
.product-card:hover { border-color: var(--line-strong); }
.product-media { position: relative; display: grid; place-items: center; aspect-ratio: 1 / 1; background: var(--surface-2); overflow: hidden; padding: 10px; }
.product-media img { position: absolute; inset: 10px; width: calc(100% - 20px); height: calc(100% - 20px); object-fit: contain; }
.product-media-placeholder { color: var(--muted); font: 12px "IBM Plex Mono", monospace; }
.product-badge { position: absolute; left: 10px; top: 10px; z-index: 1; background: var(--surface); border: 1px solid var(--line); color: var(--accent); border-radius: 5px; padding: 2px 6px; font: 10px "IBM Plex Mono", monospace; }
.product-body { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; flex: 1; }
.product-cat { color: var(--muted); font: 10px "IBM Plex Mono", monospace; }
.product-title { color: var(--ink); font-size: 14px; font-weight: 500; line-height: 1.35; min-height: 38px; }
.product-sku { color: var(--muted); font-size: 10px; }
.product-foot { display: flex; align-items: baseline; justify-content: space-between; margin-top: auto; padding-top: 10px; }
.product-price { color: var(--ink); font-size: 15px; font-weight: 500; white-space: nowrap; }
.product-price small { color: var(--muted); font-size: 12px; text-decoration: line-through; margin-left: 6px; font-weight: 400; }
.product-add { display: none; }
@media (max-width: 1080px) { .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 901px) and (max-width: 960px) { .catalog-layout .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 430px) { .product-grid { grid-template-columns: 1fr; } }

/* Catalog */
.catalog-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 32px; align-items: start; }
.catalog-side { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 24px; }
.catalog-side h2 { font-size: 12px; color: var(--muted); font-family: "IBM Plex Mono", monospace; font-weight: 400; margin-bottom: 10px; }
.category-list { display: flex; flex-direction: column; gap: 1px; }
.category-list a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0 8px 12px; border-left: 2px solid transparent; color: var(--muted); font-size: 14px; }
.category-list a:hover { color: var(--ink); }
.category-list a.active { color: var(--ink); border-left-color: var(--accent); font-weight: 500; }
.cat-count { color: var(--muted); font: 11px "IBM Plex Mono", monospace; }
.catalog-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.search-form { display: flex; align-items: center; gap: 8px; flex: 1; max-width: 520px; }
.search-form .input { flex: 1; }
.search-icon { display: none; }
.catalog-count { color: var(--muted); font: 11px "IBM Plex Mono", monospace; white-space: nowrap; }
@media (max-width: 900px) {
  .catalog-layout { grid-template-columns: 1fr; gap: 24px; }
  .catalog-side { position: static; }
  .category-list { flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .category-list a { border-left: 0; border: 1px solid var(--line); border-radius: 7px; padding: 6px 10px; background: var(--surface); }
  .category-list a.active { border-color: var(--accent); background: var(--accent-soft); }
  .catalog-side .card { display: none; }
  .catalog-toolbar { display: block; }
  .search-form { max-width: none; }
  .catalog-count { display: block; margin-top: 8px; }
}
@media (max-width: 520px) {
  .search-form { flex-wrap: wrap; }
  .search-form .button { width: 100%; }
}

/* Empty states */
.empty { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); padding: 40px; max-width: 720px; }
.empty h2 { margin: 0; }
.empty p { color: var(--muted); margin: 0; max-width: 560px; }
.empty-icon { display: none; }
.empty .button-row { margin-top: 8px; }

/* Product detail */
.product-detail { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(360px, .9fr); gap: 48px; align-items: start; }
.product-gallery { position: sticky; top: 88px; }
.product-gallery .product-media { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); aspect-ratio: 1 / 1; }
.product-gallery .product-media img { inset: 12px; width: calc(100% - 24px); height: calc(100% - 24px); padding: 0; }
.product-info h1 { font-size: clamp(32px, 4vw, 46px); margin-bottom: 14px; }
.product-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; color: var(--muted); font-size: 12px; }
.badge { display: inline-flex; align-items: center; border-radius: 5px; padding: 2px 7px; background: var(--surface-2); color: var(--muted); font: 10px "IBM Plex Mono", monospace; }
.badge-success { background: var(--success-soft); color: var(--success); }
.product-price-row { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 18px 0 6px; }
.price { color: var(--ink); font-size: 32px; font-weight: 500; letter-spacing: -.02em; }
.price-old { color: var(--muted); font: 14px "IBM Plex Mono", monospace; text-decoration: line-through; }
.save { color: var(--success); font: 12px "IBM Plex Mono", monospace; }
.product-buy { margin: 22px 0; }
.buy-row { display: flex; gap: 10px; align-items: stretch; }
.buy-row .button { flex: 1; }
.qty-input { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 8px; overflow: hidden; background: var(--surface); }
.qty-input button { width: 38px; height: 44px; border: 0; background: transparent; color: var(--ink); font-size: 18px; cursor: pointer; }
.qty-input button:hover { background: var(--surface-2); }
.qty-input input { width: 44px; height: 44px; border: 0; border-left: 1px solid var(--line); border-right: 1px solid var(--line); text-align: center; font: 14px "IBM Plex Mono", monospace; background: var(--surface); color: var(--ink); }
.perks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 16px 0; margin: 22px 0; }
.perk { color: var(--muted); font-size: 12px; line-height: 1.45; }
.perk b { display: block; color: var(--ink); font-weight: 500; font-size: 13px; margin-bottom: 2px; }
.perk-icon { display: none; }
.product-desc { color: var(--text); font-size: 15px; line-height: 1.7; max-width: 68ch; }
.prose p { margin-bottom: 12px; }
.prose ul { padding-left: 18px; }
.spec-list { list-style: none; padding: 0; margin: 24px 0 0; border-top: 1px solid var(--line); }
.spec-list li { display: flex; justify-content: space-between; gap: 20px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.spec-list li span:first-child { color: var(--muted); }
.spec-list li span:last-child { color: var(--ink); text-align: right; }
@media (max-width: 960px) {
  .product-detail { grid-template-columns: 1fr; gap: 28px; }
  .product-gallery { position: static; }
  .product-gallery .product-media { aspect-ratio: 4 / 3; }
  .product-gallery .product-media img { inset: 12px; width: calc(100% - 24px); height: calc(100% - 24px); }
}
@media (max-width: 560px) {
  .buy-row { flex-wrap: wrap; }
  .buy-row .button { width: 100%; flex: none; }
  .perks { grid-template-columns: 1fr; gap: 12px; }
  .price { font-size: 28px; }
}

/* Two-column layouts */
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; align-items: start; }
.summary { position: sticky; top: 88px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px; }
.summary h3 { margin-bottom: 14px; }
.summary-line { display: flex; justify-content: space-between; gap: 14px; padding: 5px 0; color: var(--muted); font-size: 14px; }
.summary-line span:last-child { color: var(--ink); font-family: "IBM Plex Mono", monospace; font-size: 13px; text-align: right; }
.summary-line.discount span:last-child { color: var(--success); }
.summary-promo { color: var(--accent); font-size: 12px; margin: 4px 0; }
.summary-total { display: flex; justify-content: space-between; gap: 14px; border-top: 1px solid var(--line-strong); margin-top: 12px; padding-top: 14px; color: var(--ink); font-size: 18px; font-weight: 500; }
.summary-total span:last-child { font-family: "IBM Plex Mono", monospace; font-size: 18px; }
.summary-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.trust-line { display: flex; flex-direction: column; gap: 4px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } .summary { position: static; } }

/* Cart */
.cart-stack { display: flex; flex-direction: column; gap: 16px; }
.cart-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.cart-row { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 16px; border-bottom: 1px solid var(--line); }
.cart-row:last-child { border-bottom: 0; }
.cart-thumb { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 8px; background: var(--surface-2); overflow: hidden; color: var(--muted); font: 11px "IBM Plex Mono", monospace; }
.cart-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 3px; }
.cart-title { color: var(--ink); font-size: 14px; font-weight: 500; }
.cart-meta, .cart-params, .cart-unit { color: var(--muted); font-size: 12px; margin-top: 3px; }
.cart-error { color: var(--danger); font-size: 12px; margin-top: 4px; }
.cart-line-right { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.cart-line-total { color: var(--ink); font: 500 15px "IBM Plex Mono", monospace; }
.qty { display: inline-flex; align-items: center; gap: 0; border: 1px solid var(--line); border-radius: 7px; overflow: hidden; }
.qty button { min-width: 30px; height: 30px; border: 0; background: transparent; color: var(--ink); cursor: pointer; font-size: 14px; }
.qty button:hover { background: var(--surface-2); }
.qty span { min-width: 26px; text-align: center; font: 12px "IBM Plex Mono", monospace; }
.qty-remove { color: var(--muted) !important; font-size: 11px !important; padding: 0 8px; }
.qty-remove:hover { color: var(--danger) !important; }
@media (max-width: 560px) {
  .cart-row { grid-template-columns: 56px minmax(0, 1fr); }
  .cart-thumb { width: 56px; height: 56px; }
  .cart-line-right { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; padding-left: 72px; }
}

/* Forms */
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; max-width: 720px; }
.form-row { margin-bottom: 16px; }
.form-row:last-child { margin-bottom: 0; }
.form-row label { display: block; margin-bottom: 6px; color: var(--ink); font-size: 13px; font-weight: 500; }
.input, select, textarea,
input[type="text"], input[type="email"], input[type="tel"], input[type="password"],
input[type="number"], input[type="search"], input[type="url"], input:not([type]) {
  width: 100%; min-height: 44px; border: 1px solid var(--line-strong); border-radius: 8px;
  background: var(--surface); color: var(--ink); padding: 10px 12px;
  font: 14px "IBM Plex Sans", sans-serif; outline: none;
}
.input:focus, select:focus, textarea:focus,
input[type="text"]:focus, input[type="email"]:focus, input[type="tel"]:focus,
input[type="password"]:focus, input[type="number"]:focus, input[type="search"]:focus,
input[type="url"]:focus, input:not([type]):focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: .8; }
input[type="file"] { width: 100%; border: 1px dashed var(--line-strong); border-radius: 8px; background: var(--surface-2); color: var(--muted); padding: 10px 12px; font: 13px "IBM Plex Sans", sans-serif; }
input[type="file"]::file-selector-button { margin-right: 12px; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--surface); color: var(--ink); padding: 7px 12px; font: 500 13px "IBM Plex Sans", sans-serif; cursor: pointer; }
.help { color: var(--muted); font-size: 12px; line-height: 1.5; margin-top: 5px; }
.errorlist { color: var(--danger); font-size: 12px; padding-left: 16px; margin: 5px 0; }
.checkbox { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); font-size: 13px; line-height: 1.5; }
.checkbox input { width: 17px; height: 17px; margin-top: 2px; accent-color: var(--accent); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.req { color: var(--danger); }
.param-hint { margin-top: 6px; color: var(--muted); font-size: 12px; }
.param-hint summary { cursor: pointer; color: var(--accent); font-weight: 500; }
.param-hint div { margin-top: 6px; line-height: 1.55; white-space: normal; }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } .form-grid .full { grid-column: auto; } .form-card { padding: 18px; } }

/* Checkout */
.checkout-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; align-items: start; }
.form-section { padding: 24px 0; border-top: 1px solid var(--line); }
.form-section:first-child { padding-top: 0; border-top: 0; }
.form-section-title { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.form-section-title h2 { margin: 0; font-size: 18px; }
.fs-num { display: grid; place-items: center; width: 24px; height: 24px; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--muted); font: 11px "IBM Plex Mono", monospace; }
.choice-grid { display: grid; grid-template-columns: 1fr; gap: 8px; }
.choice-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; cursor: pointer; background: var(--surface); }
.choice-card:hover { border-color: var(--line-strong); }
.choice-card:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.choice-card input { position: absolute; opacity: 0; pointer-events: none; }
.choice-card-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.choice-card-body b { color: var(--ink); font-size: 14px; font-weight: 500; }
.choice-card-body span { color: var(--muted); font-size: 12px; }
.choice-price { color: var(--ink); font: 12px "IBM Plex Mono", monospace; white-space: nowrap; }
.payment-note { margin-top: 10px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.checkout-summary { position: sticky; top: 88px; }
.checkout-items { display: flex; flex-direction: column; gap: 8px; padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.checkout-item { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 12px; }
.checkout-item b { color: var(--ink); font-family: "IBM Plex Mono", monospace; font-weight: 500; white-space: nowrap; }
@media (max-width: 900px) { .checkout-layout { grid-template-columns: 1fr; } .checkout-summary { position: static; } }

/* Account */
.account-grid { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 40px; align-items: start; }
.account-nav { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 1px; border-left: 1px solid var(--line); }
.account-nav a { padding: 8px 0 8px 16px; color: var(--muted); font-size: 14px; border-left: 2px solid transparent; margin-left: -2px; }
.account-nav a:hover { color: var(--ink); }
.account-nav a.active { color: var(--ink); border-left-color: var(--accent); font-weight: 500; }
.account-content { min-width: 0; }
.account-content .card { margin-bottom: 16px; }
.order-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px; margin-bottom: 12px; }
.order-card h1 { font-size: clamp(24px, 3vw, 32px); }
.order-head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.order-status { color: var(--ink); font-weight: 500; }
.order-items { list-style: none; padding: 0; margin: 0; color: var(--muted); font-size: 13px; display: flex; flex-direction: column; gap: 6px; }
.order-items li { display: flex; justify-content: space-between; gap: 16px; }
.order-items li span:last-child { color: var(--ink); font-family: "IBM Plex Mono", monospace; font-size: 12px; text-align: right; }
.order-summary { display: flex; flex-direction: column; gap: 4px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); }
.status-history { display: flex; flex-direction: column; gap: 14px; margin: 14px 0; }
.status-event { display: flex; gap: 10px; align-items: flex-start; }
.status-dot { flex: 0 0 auto; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-top: 6px; }
.status-event b { color: var(--ink); font-weight: 500; }
.status-pill { display: inline-flex; border-radius: 5px; padding: 2px 7px; background: var(--surface-2); color: var(--muted); font: 10px "IBM Plex Mono", monospace; }
@media (max-width: 800px) {
  .account-grid { grid-template-columns: 1fr; gap: 24px; }
  .account-nav { position: static; flex-direction: row; flex-wrap: wrap; border-left: 0; gap: 6px; }
  .account-nav a { border: 1px solid var(--line); border-radius: 7px; padding: 6px 10px; margin: 0; }
  .account-nav a.active { border-color: var(--accent); background: var(--accent-soft); }
}

/* Info and contacts */
.info-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.info-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.info-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.info-label { display: block; color: var(--muted); font: 10px "IBM Plex Mono", monospace; margin-bottom: 14px; }
.info-card h3 { font-size: 17px; margin-bottom: 6px; }
.info-card p { color: var(--muted); font-size: 13px; line-height: 1.6; margin: 0; }
.info-card a { color: var(--accent); }
.contact-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.contact-list li b { color: var(--ink); font-weight: 500; }
@media (max-width: 800px) { .info-grid, .contact-layout { grid-template-columns: 1fr; } }

/* FAQ and legal */
.faq-list { display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; color: var(--ink); font-weight: 500; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; flex: 0 0 auto; color: var(--accent); font: 500 16px "IBM Plex Mono", monospace; }
.faq-item[open] summary::after { content: "−"; }
.faq-answer { color: var(--muted); font-size: 14px; line-height: 1.7; padding-top: 10px; max-width: 75ch; }
.legal { max-width: 820px; color: var(--text); font-size: 15px; line-height: 1.7; }
.legal h2 { margin-top: 28px; font-size: 22px; }
.legal-note { color: var(--muted); font-size: 13px; }

/* Footer */
.site-footer { background: var(--ink); color: #b9c2cc; padding: 56px 0 24px; margin-top: 0; }
.brand-footer .brand-mark { color: #fff; }
.brand-footer .brand-mark-accent { stroke: #b79df0; }
.brand-footer .brand-name { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; }
.footer-brand p { color: #aab4bf; font-size: 13px; line-height: 1.6; max-width: 320px; margin: 14px 0 16px; }
.footer-telegram { color: #d9e0e8; font: 12px "IBM Plex Mono", monospace; }
.footer-telegram:hover { color: #fff; }
.site-footer h4 { color: #fff; font-size: 13px; font-weight: 500; margin: 4px 0 12px; text-transform: none; letter-spacing: 0; }
.site-footer a { display: block; color: #aab4bf; font-size: 13px; margin-bottom: 8px; }
.site-footer a:hover { color: #fff; }
.brand-footer { color: #fff; margin-bottom: 0; }
.brand-footer .brand-tag { color: #8d97a3; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.12); margin-top: 36px; padding-top: 18px; color: #8d97a3; font-size: 12px; }
.footer-note { color: #8d97a3; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } .site-footer { padding-top: 40px; } }

/* Print quote and viewers */
.print-viewer { position: relative; width: 100%; height: 440px; border-radius: var(--radius); overflow: hidden; background: var(--surface-2); border: 1px solid var(--line); }
.print-viewer canvas { display: block; width: 100%; height: 100%; }
.gcode-viewer { position: relative; height: 360px; border-radius: var(--radius); overflow: hidden; background: #111820; border: 1px solid var(--line); }
.gcode-viewer canvas { display: block; width: 100%; height: 100%; }
.gcode-note { color: var(--muted); font-size: 12px; margin-top: 8px; }
.success-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 36px; max-width: 760px; }
.success-icon { display: none; }
.success-items { list-style: none; padding: 0; margin: 18px 0; border-top: 1px solid var(--line); }
.success-items li, .success-items .item { padding: 10px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; font-size: 13px; }
.success-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; margin: 18px 0; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.success-meta span { display: block; font: 10px "IBM Plex Mono", monospace; color: var(--muted); margin-bottom: 2px; }
.success-meta b { color: var(--ink); font-weight: 500; }
@media (max-width: 560px) { .success-meta { grid-template-columns: 1fr; } }
.success-next { margin-top: 18px; }

/* Misc */
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: 10px; border-bottom: 1px solid var(--line); }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.hidden { display: none !important; }

/* Contact panel, delivery advantages, login code */
.contact-panel { background: var(--ink); color: #fff; border-radius: var(--radius-lg); padding: 28px; }
.contact-panel h2, .contact-panel h3 { color: #fff; }
.contact-panel p { color: #b8c0ca; }
.contact-panel .contact-list li { color: #b8c0ca; border-bottom-color: rgba(255,255,255,.12); }
.contact-panel .contact-list li b { color: #fff; }
.contact-panel .button-ghost { color: #fff; border-color: rgba(255,255,255,.22); }
.contact-panel .button-ghost:hover { background: rgba(255,255,255,.08); }
.big { color: var(--ink); font-size: 18px; font-weight: 500; }
.contact-panel .big { color: #fff; }
.advantage { display: flex; flex-direction: column; gap: 6px; padding: 18px 0; border-top: 1px solid var(--line); }
.advantage b { display: block; color: var(--ink); font-weight: 500; font-size: 15px; margin-bottom: 2px; }
.advantage span { color: var(--muted); font-size: 14px; line-height: 1.6; }
.advantage-icon { display: none; }
.login-code { display: flex; align-items: center; justify-content: center; min-height: 96px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); font: 500 38px/1 "IBM Plex Mono", monospace; letter-spacing: .3em; padding-left: .3em; }

