/* ==========================================================================
   NexaForm — design system
   Palette: ink / bone paper / cobalt / laser lime
   Type:    Archivo (display), Inter (body), JetBrains Mono (data)
   ========================================================================== */

@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('/assets/fonts/archivo-latin.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 300 600; font-display: swap; src: url('/assets/fonts/inter-normal-300600-latin.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/jetbrains-mono-normal-400-latin.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('/assets/fonts/jetbrains-mono-normal-500-latin.woff2') format('woff2'); }

:root {
  --ink: #0a0c0e;
  --ink-2: #12171b;
  --ink-3: #1b2329;
  --paper: #f7f5ef;
  --paper-2: #efebe2;
  --white: #fff;
  --line: #dcd7cb;
  --line-soft: #e8e4da;
  --text: #12181c;
  --muted: #5b656c;
  --muted-dark: #98a3ab;
  --accent: #2443e6;
  --accent-deep: #1a32b8;
  --lime: #d4ff5c;
  --ok: #17845b;
  --warn: #b4511b;
  --display: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;
  --max: 1240px;
  --gutter: 26px;
  --radius: 3px;
  --shadow: 0 18px 48px -24px rgba(10, 12, 14, .28);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0; background: var(--paper); color: var(--text);
  font-family: var(--body); font-size: 15.5px; line-height: 1.62;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg, canvas { max-width: 100%; }
img { display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--accent); color: #fff; }
h1, h2, h3, h4, h5 { margin: 0; font-weight: 500; }
p { margin: 0 0 1.05em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.2em; }
li { margin-bottom: .35em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 0; }

.wrap { width: min(var(--max), calc(100% - var(--gutter) * 2)); margin-inline: auto; }
.wrap--narrow { width: min(820px, calc(100% - var(--gutter) * 2)); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 14px; top: 14px; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 300; border-radius: var(--radius); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- type ---------- */
.display { font-family: var(--display); font-weight: 600; letter-spacing: -.035em; line-height: .96; }
h1.display { font-size: clamp(2.7rem, 5.4vw, 4.6rem); }
.h2 { font-family: var(--display); font-weight: 600; letter-spacing: -.028em; line-height: 1.03; font-size: clamp(1.85rem, 3.2vw, 2.9rem); }
.h3 { font-family: var(--display); font-weight: 600; letter-spacing: -.02em; line-height: 1.1; font-size: clamp(1.25rem, 1.8vw, 1.6rem); }
.h4 { font-family: var(--display); font-weight: 600; font-size: 1.05rem; letter-spacing: -.01em; line-height: 1.25; }
.lede { font-size: clamp(1.02rem, 1.3vw, 1.18rem); line-height: 1.58; color: #34404a; max-width: 60ch; }
.mono { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.small { font-size: 13px; color: var(--muted); line-height: 1.55; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted);
}
.eyebrow::before { content: ''; width: 22px; height: 1px; background: var(--accent); }
.eyebrow b { color: var(--accent); font-weight: 500; }
.eyebrow--light { color: var(--muted-dark); }
.eyebrow--light::before { background: var(--lime); }
.eyebrow--light b { color: var(--lime); }
.accent { color: var(--accent); }
.underline { border-bottom: 2px solid var(--accent); }

/* ---------- buttons ---------- */
.btn {
  --btn-bg: var(--accent); --btn-fg: #fff; --btn-bd: var(--accent);
  display: inline-flex; align-items: center; justify-content: center; gap: .65em;
  padding: 15px 22px; border: 1px solid var(--btn-bd); background: var(--btn-bg); color: var(--btn-fg);
  font-family: var(--display); font-size: 13.5px; font-weight: 600; letter-spacing: .01em;
  border-radius: var(--radius); cursor: pointer; text-align: center;
  transition: background .16s, color .16s, border-color .16s, transform .16s;
}
.btn:hover { background: var(--accent-deep); border-color: var(--accent-deep); transform: translateY(-1px); }
.btn svg { width: 15px; height: 15px; flex: none; }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: #c8c3b6; }
.btn--ghost:hover { --btn-bg: var(--ink); --btn-fg: #fff; --btn-bd: var(--ink); }
.btn--light { --btn-bg: transparent; --btn-fg: #fff; --btn-bd: rgba(255,255,255,.3); }
.btn--light:hover { --btn-bg: #fff; --btn-fg: var(--ink); --btn-bd: #fff; }
.btn--lime { --btn-bg: var(--lime); --btn-fg: var(--ink); --btn-bd: var(--lime); }
.btn--lime:hover { --btn-bg: #c2f03f; --btn-bd: #c2f03f; }
.btn--sm { padding: 10px 15px; font-size: 12.5px; }
.btn--lg { padding: 18px 28px; font-size: 14.5px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--display); font-weight: 600; font-size: 13px; border-bottom: 1px solid rgba(36,67,230,.35); padding-bottom: 2px; color: var(--accent); }
.link-arrow:hover { border-color: var(--accent); }
.link-arrow svg { width: 13px; height: 13px; }

/* ---------- header ---------- */
.topbar { background: var(--ink); color: #8d98a2; border-bottom: 1px solid rgba(255,255,255,.07); }
.topbar__in { display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 36px; font-family: var(--mono); font-size: 10px; letter-spacing: .11em; text-transform: uppercase; }
.topbar__l, .topbar__r { display: flex; align-items: center; gap: 18px; }
.topbar a:hover { color: #fff; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--lime); display: inline-block; box-shadow: 0 0 0 3px rgba(212,255,92,.12); }

.header { background: var(--ink); color: #fff; position: sticky; top: 0; z-index: 80; border-bottom: 1px solid rgba(255,255,255,.1); }
.header__in { display: flex; align-items: center; gap: 28px; min-height: 70px; }
.brand { display: flex; align-items: center; gap: 11px; flex: none; }
.brand__mark { width: 32px; height: 32px; }
.brand__name { font-family: var(--display); font-size: 20px; font-weight: 700; letter-spacing: .1em; line-height: 1; }
.brand__sub { font-family: var(--mono); font-size: 7.5px; letter-spacing: .24em; color: #8d98a2; margin-top: 4px; }
.nav { display: flex; align-items: center; gap: 24px; margin-left: auto; font-size: 13.5px; }
.nav a { color: #d7dde2; padding: 6px 0; border-bottom: 1px solid transparent; }
.nav a:hover, .nav a[aria-current='page'] { color: #fff; border-color: var(--lime); }
.header .btn--sm { margin-left: 4px; }
.navtoggle { display: none; background: none; border: 1px solid rgba(255,255,255,.24); border-radius: var(--radius); width: 42px; height: 38px; color: #fff; align-items: center; justify-content: center; cursor: pointer; }
.navtoggle svg { width: 18px; height: 18px; }
.mobilenav { display: none; background: var(--ink-2); border-bottom: 1px solid rgba(255,255,255,.1); }
.mobilenav.is-open { display: block; }
.mobilenav a { display: block; padding: 13px 0; border-bottom: 1px solid rgba(255,255,255,.07); color: #d7dde2; font-size: 15px; }
.mobilenav .btn { margin: 16px 0 20px; }

/* ---------- hero ---------- */
.hero { background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 72px 72px; mask-image: radial-gradient(120% 90% at 20% 10%, #000 30%, transparent 78%);
}
.hero::after {
  content: ''; position: absolute; width: 720px; height: 720px; right: -160px; top: -240px; border-radius: 50%;
  background: radial-gradient(circle, rgba(36,67,230,.38), transparent 62%); filter: blur(10px);
}
.hero__in { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 54px; align-items: center; padding: 74px 0 66px; }
.hero__copy { max-width: 620px; }
.hero h1 { margin: 22px 0 22px; }
.hero h1 em { font-style: normal; color: var(--lime); }
.hero__lede { color: #b9c2c9; font-size: clamp(1rem, 1.2vw, 1.12rem); line-height: 1.6; max-width: 50ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 26px; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 8px 22px; font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: #8d98a2; }
.hero__facts span { display: inline-flex; align-items: center; gap: 7px; }
.hero__facts span::before { content: ''; width: 4px; height: 4px; background: var(--lime); }
.hero__visual { position: relative; aspect-ratio: 1 / 1.02; min-height: 420px; border: 1px solid rgba(255,255,255,.14); background: radial-gradient(120% 90% at 50% 12%, rgba(255,255,255,.08), transparent 60%), #0d1114; border-radius: 4px; overflow: hidden; }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__tag { position: absolute; left: 18px; top: 18px; display: inline-flex; align-items: center; gap: 8px; padding: 7px 11px; background: rgba(10,12,14,.72); border: 1px solid rgba(255,255,255,.16); border-radius: 99px; font-family: var(--mono); font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; backdrop-filter: blur(6px); }
.hero__tag i { width: 6px; height: 6px; border-radius: 50%; background: var(--lime); }
.hero__price { position: absolute; right: 16px; bottom: 16px; background: rgba(247,245,239,.97); color: var(--ink); padding: 13px 16px 12px; border-radius: 3px; box-shadow: var(--shadow); min-width: 172px; }
.hero__price .k { font-family: var(--mono); font-size: 8.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.hero__price .v { font-family: var(--display); font-size: 24px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; margin-top: 2px; }
.hero__price .d { font-family: var(--mono); font-size: 9px; color: var(--muted); margin-top: 3px; }
.hero__hint { position: absolute; left: 18px; bottom: 18px; font-family: var(--mono); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; color: #7c8790; }
.hero__scroll { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 0; border-top: 1px solid rgba(255,255,255,.12); position: relative; z-index: 1; }
.hero__scroll span { font-family: var(--mono); font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: #7c8790; }

/* ---------- sections ---------- */
.section { padding: 82px 0; }
.section--tight { padding: 58px 0; }
.section--dark { background: var(--ink); color: #fff; }
.section--paper2 { background: var(--paper-2); }
.section--line { border-top: 1px solid var(--line); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-bottom: 42px; }
.section-head__copy { max-width: 660px; }
.section-head h2 { margin: 16px 0 14px; }
.section-head .lede { margin-bottom: 0; }
.section--dark .lede { color: #b3bcc3; }
.section--dark .h2 { color: #fff; }
.section-foot { margin-top: 34px; display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }

/* ---------- process cards ---------- */
.process-grid { display: grid; grid-template-columns: repeat(5, 1fr); border: 1px solid var(--line); background: var(--white); }
.process-card { padding: 24px 22px 22px; border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 260px; transition: background .18s; }
.process-card:last-child { border-right: 0; }
.process-card:hover { background: #fbfaf6; }
.process-card .pid { font-family: var(--mono); font-size: 9.5px; letter-spacing: .14em; color: var(--muted); }
.process-card h3 { font-family: var(--display); font-size: 30px; font-weight: 600; letter-spacing: -.03em; margin: 14px 0 4px; }
.process-card .full { font-size: 12px; color: var(--muted); min-height: 34px; }
.process-card .blurb { font-size: 13px; line-height: 1.5; color: #404b52; margin: 10px 0 18px; }
.process-card .from { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line-soft); display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.process-card .from b { font-family: var(--display); font-size: 19px; font-weight: 600; }
.process-card .from span { font-family: var(--mono); font-size: 8.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

/* ---------- material grid ---------- */
.mat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.mat-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 16px; display: flex; flex-direction: column; gap: 12px; transition: border-color .16s, transform .16s; }
.mat-card:hover { border-color: #b9b3a5; transform: translateY(-2px); }
.mat-card__top { display: flex; align-items: center; gap: 12px; }
.swatch { width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(0,0,0,.12); flex: none; box-shadow: inset 0 -6px 10px rgba(0,0,0,.12), inset 0 5px 8px rgba(255,255,255,.5); }
.mat-card h3 { font-family: var(--display); font-size: 14.5px; font-weight: 600; letter-spacing: -.01em; }
.mat-card .cat { font-family: var(--mono); font-size: 8.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.mat-card__specs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px; font-family: var(--mono); font-size: 9.5px; color: var(--muted); }
.mat-card__specs b { display: block; font-family: var(--body); font-size: 11.5px; font-weight: 500; color: var(--text); letter-spacing: 0; }
.mat-card__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; padding-top: 10px; border-top: 1px solid var(--line-soft); font-size: 11.5px; }
.mat-card__foot b { font-family: var(--display); font-size: 15px; }

/* ---------- generic cards ---------- */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card--dark { background: var(--ink-2); border-color: rgba(255,255,255,.12); color: #fff; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

.stat { border-top: 2px solid var(--ink); padding-top: 14px; }
.stat b { display: block; font-family: var(--display); font-size: clamp(1.7rem, 2.6vw, 2.4rem); font-weight: 600; letter-spacing: -.03em; line-height: 1; }
.stat span { display: block; margin-top: 7px; font-size: 12.5px; color: var(--muted); }
.section--dark .stat { border-color: var(--lime); }
.section--dark .stat span { color: #98a3ab; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); }
.step { padding: 26px 22px 4px; border-right: 1px solid var(--line); }
.step:last-child { border-right: 0; }
.step .n { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; color: var(--accent); }
.step h3 { font-family: var(--display); font-size: 18px; font-weight: 600; margin: 12px 0 8px; }
.step p { font-size: 13px; color: var(--muted); line-height: 1.55; }

.industry-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.industry { position: relative; display: block; padding: 26px 24px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); min-height: 190px; transition: background .18s, color .18s, border-color .18s; }
.industry:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.industry .mono { color: var(--muted); }
.industry:hover .mono { color: var(--lime); }
.industry h3 { font-family: var(--display); font-size: 19px; font-weight: 600; margin: 16px 0 10px; letter-spacing: -.015em; }
.industry p { font-size: 13px; color: var(--muted); line-height: 1.55; margin: 0; }
.industry:hover p { color: #b3bcc3; }
.industry .arrow { position: absolute; right: 22px; top: 24px; opacity: .35; }
.industry:hover .arrow { opacity: 1; color: var(--lime); }

.callout { background: var(--ink); color: #fff; padding: 40px 44px; display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; border-radius: 4px; }
.callout h2 { margin: 14px 0 12px; color: #fff; }
.callout p { color: #b3bcc3; margin: 0; }
.callout__actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); background: var(--white); }
table.spec { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 640px; }
table.spec th, table.spec td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
table.spec th { font-family: var(--mono); font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 500; background: #fbfaf6; border-bottom: 1px solid var(--line); }
table.spec tr:last-child td { border-bottom: 0; }
table.spec td.num, table.spec th.num { text-align: right; font-variant-numeric: tabular-nums; }
table.spec td b { font-weight: 600; }
table.spec .nowrap { white-space: nowrap; }

/* ---------- forms ---------- */
.field { display: block; margin-bottom: 14px; }
.field__label { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-family: var(--mono); font-size: 9.5px; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); margin-bottom: 7px; }
.input, .select, .textarea {
  width: 100%; padding: 11px 13px; background: var(--white); border: 1px solid #cfc9bc; border-radius: var(--radius);
  font-size: 14px; color: var(--text); transition: border-color .15s, box-shadow .15s;
}
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(36,67,230,.12); }
.textarea { min-height: 120px; resize: vertical; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%235b656c' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 13px center; padding-right: 34px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: #3d474e; line-height: 1.45; cursor: pointer; }
.check input { margin: 3px 0 0; accent-color: var(--accent); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }

/* ---------- footer ---------- */
.footer { background: var(--ink); color: #9aa5ad; padding: 62px 0 26px; font-size: 13.5px; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 44px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer h4 { color: #fff; font-family: var(--mono); font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 16px; font-weight: 500; }
.footer a { color: #b3bcc3; display: inline-block; padding: 4px 0; }
.footer a:hover { color: #fff; }
.footer__brand p { color: #8d98a2; max-width: 34ch; margin-top: 16px; font-size: 13px; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-top: 22px; font-family: var(--mono); font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: #6f7a82; }
.footer__bottom a { color: #8d98a2; }
.paymarks { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.paymark { border: 1px solid rgba(255,255,255,.18); border-radius: 2px; padding: 5px 8px; font-family: var(--mono); font-size: 8.5px; letter-spacing: .1em; color: #c3ccd3; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative; font-family: var(--display); font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 17px; font-family: var(--mono); font-size: 18px; color: var(--accent); transition: transform .2s; }
.faq details[open] summary::after { content: '–'; }
.faq .a { padding: 0 60px 22px 0; color: #404b52; font-size: 14px; line-height: 1.6; }
.faq .a p:last-child { margin-bottom: 0; }

/* ---------- prose ---------- */
.prose { font-size: 15.5px; line-height: 1.72; color: #2c363d; max-width: 72ch; }
.prose h2 { font-family: var(--display); font-weight: 600; font-size: 1.6rem; letter-spacing: -.02em; margin: 2.2em 0 .6em; color: var(--ink); }
.prose h3 { font-family: var(--display); font-weight: 600; font-size: 1.15rem; margin: 1.8em 0 .5em; color: var(--ink); }
.prose p, .prose ul, .prose ol { margin-bottom: 1.1em; }
.prose a { color: var(--accent); border-bottom: 1px solid rgba(36,67,230,.35); }
.prose code { font-family: var(--mono); font-size: .88em; background: #eeeae0; padding: 1px 5px; border-radius: 2px; }
.prose img { margin: 1.6em 0; }
.prose hr { margin: 2.4em 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: 13.5px; margin: 1.4em 0; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.prose th { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

/* ==========================================================================
   Quote application
   ========================================================================== */

.quote-head { background: var(--ink); color: #fff; padding: 34px 0 30px; border-bottom: 1px solid rgba(255,255,255,.1); }
.quote-head__in { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.quote-head h1 { font-family: var(--display); font-weight: 600; font-size: clamp(1.9rem, 3vw, 2.7rem); letter-spacing: -.03em; line-height: 1.02; margin: 12px 0 8px; }
.quote-head p { color: #a9b3bb; font-size: 13.5px; margin: 0; max-width: 56ch; }
.quote-head__meta { display: flex; gap: 26px; font-family: var(--mono); font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: #8d98a2; }
.quote-head__meta b { display: block; color: #fff; font-size: 13px; letter-spacing: 0; font-family: var(--body); font-weight: 500; margin-top: 4px; }

.quote-app { padding: 34px 0 70px; }
.quote-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 34px; align-items: start; }
.quote-main { min-width: 0; }
.quote-steps { display: grid; gap: 26px; }

.qcard { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.qcard__head { display: flex; align-items: flex-start; gap: 14px; padding: 20px 22px 0; }
.qcard__num { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; color: var(--accent); border: 1px solid rgba(36,67,230,.3); border-radius: 99px; width: 26px; height: 26px; display: grid; place-items: center; flex: none; margin-top: 2px; }
.qcard__head h2 { font-family: var(--display); font-size: 17px; font-weight: 600; letter-spacing: -.01em; margin: 0 0 3px; }
.qcard__head p { font-size: 12.5px; color: var(--muted); margin: 0; }
.qcard__body { padding: 18px 22px 22px; }
.qcard__body--flush { padding: 14px 0 0; }

/* dropzone */
.drop { border: 1.5px dashed #c6c0b2; background: #fbfaf6; border-radius: 4px; padding: 30px 24px; text-align: center; transition: border-color .15s, background .15s; cursor: pointer; position: relative; }
.drop:hover, .drop.is-over { border-color: var(--accent); background: #f2f4ff; }
.drop input[type='file'] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop__icon { width: 44px; height: 44px; margin: 0 auto 12px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: #fff; }
.drop__icon svg { width: 20px; height: 20px; color: var(--accent); }
.drop h3 { font-family: var(--display); font-size: 16px; font-weight: 600; margin: 0 0 4px; }
.drop p { font-size: 12px; color: var(--muted); margin: 0; }
.drop__formats { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
.chip { font-family: var(--mono); font-size: 8.5px; letter-spacing: .08em; text-transform: uppercase; border: 1px solid var(--line); background: #fff; color: var(--muted); padding: 3px 7px; border-radius: 2px; }
.drop--compact { padding: 18px; }

.model { display: grid; grid-template-columns: 180px 1fr; gap: 18px; margin-top: 16px; align-items: stretch; }
.model__view { background: #10151a; border-radius: 3px; position: relative; min-height: 150px; overflow: hidden; }
.model__view canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.model__view .tag { position: absolute; left: 8px; bottom: 7px; font-family: var(--mono); font-size: 7.5px; letter-spacing: .12em; text-transform: uppercase; color: #8d98a2; }
.model__facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 12px; align-content: start; }
.fact { border-top: 1px solid var(--line); padding-top: 7px; }
.fact .k { font-family: var(--mono); font-size: 8px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.fact .v { font-family: var(--display); font-size: 15px; font-weight: 600; letter-spacing: -.01em; margin-top: 2px; }
.fact .v small { font-family: var(--body); font-size: 10px; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.model__name { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 2px; }
.model__name b { font-size: 13px; font-weight: 600; word-break: break-all; }
.model__name span { font-family: var(--mono); font-size: 9px; color: var(--muted); letter-spacing: .06em; white-space: nowrap; }
.warning { display: flex; gap: 9px; margin-top: 12px; padding: 10px 12px; background: #fdf4e7; border-left: 2px solid #d08a2c; font-size: 12px; line-height: 1.45; color: #6b4a1f; }
.warning svg { width: 14px; height: 14px; flex: none; margin-top: 1px; }

/* option grids */
.opt-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.opt-grid--4 { grid-template-columns: repeat(4, 1fr); }
.opt-grid--2 { grid-template-columns: repeat(2, 1fr); }
.opt { position: relative; border: 1px solid var(--line); background: #fff; border-radius: 3px; padding: 12px 13px; cursor: pointer; transition: border-color .14s, background .14s, box-shadow .14s; display: block; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt:hover { border-color: #b5afa0; }
.opt.is-on { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); background: #f6f7ff; }
.opt__t { font-family: var(--display); font-size: 13px; font-weight: 600; letter-spacing: -.005em; display: flex; justify-content: space-between; gap: 8px; }
.opt__s { font-size: 10.5px; color: var(--muted); margin-top: 3px; line-height: 1.4; }
.opt__p { font-family: var(--mono); font-size: 9px; color: var(--accent); letter-spacing: .06em; margin-top: 6px; }
.opt--wide { padding: 14px; }
.opt--row { display: flex; align-items: center; gap: 12px; }
.opt--row .swatch { width: 26px; height: 26px; }
.opt--row .body { flex: 1; min-width: 0; }

.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 3px; overflow: hidden; background: #fff; }
.seg button { border: 0; background: none; padding: 8px 14px; font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); cursor: pointer; border-right: 1px solid var(--line); }
.seg button:last-child { border-right: 0; }
.seg button.is-on { background: var(--ink); color: #fff; }

.qty { display: inline-flex; align-items: center; border: 1px solid #cfc9bc; border-radius: 3px; background: #fff; overflow: hidden; }
.qty button { width: 38px; height: 40px; border: 0; background: none; cursor: pointer; color: var(--muted); font-size: 16px; }
.qty button:hover { background: #f1efe7; color: var(--ink); }
.qty input { width: 56px; height: 40px; border: 0; border-left: 1px solid var(--line); border-right: 1px solid var(--line); text-align: center; font-family: var(--mono); font-size: 13px; background: #fff; }
.qty input:focus { outline: none; }

/* summary */
.summary { position: sticky; top: 92px; background: var(--white); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; box-shadow: 0 20px 46px -34px rgba(10,12,14,.4); }
.summary__head { padding: 17px 20px; background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.summary__head h2 { font-family: var(--display); font-size: 14px; font-weight: 600; letter-spacing: .02em; margin: 0; }
.summary__head span { font-family: var(--mono); font-size: 8.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--lime); }
.summary__body { padding: 16px 20px 8px; }
.line { display: flex; justify-content: space-between; gap: 14px; padding: 6px 0; font-size: 12.5px; color: #3d474e; }
.line .l { color: var(--muted); }
.line .v { font-variant-numeric: tabular-nums; white-space: nowrap; }
.line--sub { border-top: 1px solid var(--line-soft); margin-top: 6px; padding-top: 10px; font-weight: 600; color: var(--ink); }
.line--disc .v { color: var(--ok); }
.summary__total { padding: 14px 20px 16px; border-top: 1px solid var(--line); background: #fbfaf6; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.summary__total .k { font-family: var(--mono); font-size: 8.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.summary__total .v { font-family: var(--display); font-size: 32px; font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.summary__meta { padding: 0 20px 16px; font-size: 11px; color: var(--muted); display: grid; gap: 4px; }
.summary__cta { padding: 0 20px 18px; display: grid; gap: 8px; }
.summary__note { padding: 12px 20px 16px; border-top: 1px solid var(--line-soft); font-size: 10.5px; color: var(--muted); line-height: 1.5; display: flex; gap: 8px; }
.summary__note svg { width: 13px; height: 13px; flex: none; margin-top: 2px; color: var(--ok); }

.paylist { display: grid; gap: 8px; }
.pay { display: flex; align-items: center; gap: 11px; border: 1px solid var(--line); border-radius: 3px; padding: 11px 13px; cursor: pointer; background: #fff; }
.pay input { accent-color: var(--accent); margin: 0; }
.pay b { font-size: 13px; font-weight: 600; display: block; }
.pay span { font-size: 10.5px; color: var(--muted); display: block; margin-top: 1px; }
.pay__marks { margin-left: auto; display: flex; gap: 4px; }
.pay__marks i { font-style: normal; font-family: var(--mono); font-size: 7.5px; letter-spacing: .04em; border: 1px solid var(--line); border-radius: 2px; padding: 2px 4px; color: var(--muted); }

.checkout { margin-top: 26px; }
.checkout__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.notice { background: #eef3ff; border: 1px solid #c9d6ff; border-left: 3px solid var(--accent); padding: 13px 15px; font-size: 12.5px; color: #22315c; line-height: 1.5; border-radius: 2px; }
.success { text-align: center; padding: 54px 24px; }
.success__mark { width: 62px; height: 62px; border-radius: 50%; background: #e8f6ef; color: var(--ok); display: grid; place-items: center; margin: 0 auto 20px; }
.success h2 { font-family: var(--display); font-size: 30px; letter-spacing: -.025em; margin-bottom: 8px; }
.success .orderno { font-family: var(--mono); font-size: 13px; letter-spacing: .12em; color: var(--accent); margin: 14px 0 22px; }
.success__actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* quote sheet (print-friendly) */
.sheet { background: #fff; border: 1px solid var(--line); padding: 30px; border-radius: 3px; }
.sheet__head { display: flex; justify-content: space-between; gap: 20px; padding-bottom: 18px; border-bottom: 2px solid var(--ink); }
.sheet__brand { font-family: var(--display); font-weight: 700; letter-spacing: .1em; font-size: 18px; }
.sheet__meta { text-align: right; font-family: var(--mono); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); line-height: 1.7; }
.sheet h3 { font-family: var(--mono); font-size: 9px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 22px 0 8px; font-weight: 500; }
.sheet table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.sheet td { padding: 7px 0; border-bottom: 1px solid var(--line-soft); }
.sheet td:last-child { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sheet .total td { border-top: 2px solid var(--ink); border-bottom: 0; font-weight: 700; font-size: 15px; padding-top: 11px; }
.sheet__foot { margin-top: 22px; font-size: 10px; color: var(--muted); line-height: 1.55; }

/* ---------- mobile quote bar ---------- */
.mobilebar { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; background: var(--ink); color: #fff; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid rgba(255,255,255,.14); }
.mobilebar .k { font-family: var(--mono); font-size: 8px; letter-spacing: .12em; text-transform: uppercase; color: #8d98a2; }
.mobilebar .v { font-family: var(--display); font-size: 21px; font-weight: 700; line-height: 1.1; }

/* ---------- responsive ---------- */
@media (max-width: 1120px) {
  .hero__in { grid-template-columns: 1fr; gap: 38px; padding: 54px 0 46px; }
  .hero__visual { max-width: 560px; min-height: 380px; aspect-ratio: 1 / .9; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .process-card { border-bottom: 1px solid var(--line); }
  .process-card:nth-child(2n) { border-right: 0; }
  .quote-grid { grid-template-columns: 1fr; }
  .summary { position: static; }
  .mat-grid { grid-template-columns: repeat(3, 1fr); }
  .footer__top { grid-template-columns: 1.3fr 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .nav { display: none; }
  .navtoggle { display: inline-flex; margin-left: auto; }
  .header .btn--sm { display: none; }
  .section { padding: 62px 0; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 20px; }
  .grid-3, .grid-4, .industry-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .step { border-bottom: 1px solid var(--line); padding-bottom: 20px; }
  .step:nth-child(2n) { border-right: 0; }
  .callout { grid-template-columns: 1fr; padding: 32px; }
  .callout__actions { justify-content: flex-start; }
  .mat-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .model { grid-template-columns: 1fr; }
  .model__view { min-height: 200px; }
  .opt-grid { grid-template-columns: 1fr 1fr; }
  .opt-grid--4 { grid-template-columns: 1fr 1fr; }
  .checkout__grid { grid-template-columns: 1fr; }
  .quote-head__meta { display: none; }
  .mobilebar { display: flex; }
  body.has-mobilebar { padding-bottom: 68px; }
}
@media (max-width: 640px) {
  :root { --gutter: 18px; }
  .topbar__l { display: none; }
  .topbar__in { justify-content: center; }
  .hero h1 { font-size: clamp(2.2rem, 9vw, 3rem); }
  .hero__visual { min-height: 330px; }
  .hero__price { right: 10px; bottom: 10px; min-width: 150px; padding: 10px 12px; }
  .hero__hint { display: none; }
  .process-grid { grid-template-columns: 1fr; }
  .process-card { border-right: 0; min-height: 0; }
  .mat-grid { grid-template-columns: 1fr; }
  .grid-2, .grid-3, .grid-4, .industry-grid, .steps { grid-template-columns: 1fr; }
  .step { border-right: 0; }
  .form-grid { grid-template-columns: 1fr; }
  .opt-grid, .opt-grid--4 { grid-template-columns: 1fr; }
  .summary__total .v { font-size: 27px; }
  .footer__top { grid-template-columns: 1fr; gap: 28px; }
  .callout { padding: 26px; }
  .sheet { padding: 18px; }
  .model__facts { grid-template-columns: 1fr 1fr; }
  .quote-head { padding: 26px 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ---------- print: quote sheet only ---------- */
@media print {
  .topbar, .header, .mobilenav, .footer, .mobilebar, .quote-head, .quote-steps, .summary, .no-print, .hero__visual { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .quote-app { padding: 0; }
  .print-area { display: block !important; }
  .sheet { border: 0; padding: 0; }
  a { text-decoration: none; color: #000; }
  @page { margin: 16mm; }
}
.print-area { display: none; }

/* ---------- additions: home components ---------- */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 18px 0 0; font-family: var(--mono); font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.crumbs a:hover { color: var(--accent); }
.crumbs i { font-style: normal; color: #b6b0a3; }
.crumbs [aria-current] { color: var(--ink); }
.section-head__action { flex: none; padding-bottom: 6px; }

.ticklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 15px; }
.ticklist li { position: relative; padding-left: 32px; font-size: 14px; line-height: 1.55; color: #37424a; }
.ticklist li::before {
  content: ''; position: absolute; left: 0; top: 2px; width: 19px; height: 19px; border-radius: 50%;
  background: rgba(36,67,230,.1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='11' viewBox='0 0 20 20'%3E%3Cpath d='m4 10.5 4 4 8-9' fill='none' stroke='%232443e6' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center no-repeat;
}
.ticklist b { color: var(--ink); font-weight: 600; }

.quote-preview { background: #fff; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; box-shadow: 0 26px 60px -42px rgba(10,12,14,.5); }
.quote-preview__head { background: var(--ink); color: #fff; padding: 13px 18px; display: flex; justify-content: space-between; align-items: center; gap: 10px; font-family: var(--mono); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; }
.quote-preview__status { color: var(--lime); }
.quote-preview__body { padding: 18px 18px 16px; }
.qp-item { padding-bottom: 14px; margin-bottom: 6px; border-bottom: 1px solid var(--line); }
.qp-item b { display: block; font-family: var(--display); font-size: 16.5px; letter-spacing: -.01em; }
.qp-item span { font-size: 11.5px; color: var(--muted); }
.quote-preview__meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-family: var(--mono); font-size: 8.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-top: 12px; padding-top: 11px; border-top: 1px dashed var(--line); }

.steps--light { border-color: rgba(255,255,255,.16); }
.steps--light .step { border-color: rgba(255,255,255,.16); }
.steps--light .step .n { color: var(--lime); }
.steps--light .step h3 { color: #fff; }
.steps--light .step p { color: #98a3ab; }

.pay--static { cursor: default; }
.pay__tick { width: 22px; height: 22px; border-radius: 50%; background: rgba(36,67,230,.1); color: var(--accent); display: grid; place-items: center; flex: none; }
.pay__tick svg { width: 12px; height: 12px; }
.pay b { font-size: 13px; }
.pay span span { font-size: 11px; color: var(--muted); display: block; margin-top: 2px; line-height: 1.4; }

@media (max-width: 900px) {
  .section-head__action { padding-bottom: 0; }
}

/* ---------- fixes after first visual pass ---------- */
.brand__name { display: block; }
.brand__sub { display: block; }
.process-card .pid { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero__price { min-width: 196px; }
.hero__price .d { white-space: nowrap; }
.table-wrap--tight table.spec { font-size: 12.5px; min-width: 0; }
.table-wrap--tight th, .table-wrap--tight td { padding: 10px 12px; }
.table-wrap--tight { width: 100%; }

/* ---------- quote configurator ---------- */
[hidden] { display: none !important; }
.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.row--between { justify-content: space-between; }
.muted { color: var(--muted); font-weight: 400; text-transform: none; letter-spacing: 0; }
.opt-grid--5 { grid-template-columns: repeat(5, 1fr); }
.opt--process { padding: 12px 11px 11px; text-align: left; }
.opt--process .opt__t { font-size: 17px; letter-spacing: -.02em; }
.opt--process .opt__s { min-height: 28px; }
.opt--process .opt__p { margin-top: 7px; font-size: 8.5px; }

.pick-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 20px 0 8px; }
.matpick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.matopt { display: flex; gap: 11px; align-items: center; padding: 10px 11px; }
.matopt .swatch { width: 28px; height: 28px; }
.matopt .body { flex: 1; min-width: 0; }
.matopt__price { font-family: var(--mono); font-size: 8.5px; color: var(--accent); background: #eef1ff; padding: 2px 5px; border-radius: 2px; white-space: nowrap; }

.seg--wide { display: flex; width: 100%; }
.seg--wide button { flex: 1; padding: 10px 8px; font-size: 9px; }
.spec-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 18px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.spec-strip__item { padding: 10px 12px 10px 0; border-right: 1px solid var(--line-soft); }
.spec-strip__item:last-child { border-right: 0; }
.spec-strip__item span { display: block; font-family: var(--mono); font-size: 8px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.spec-strip__item b { display: block; font-size: 11.5px; font-weight: 500; margin-top: 3px; line-height: 1.3; }

.qty-row { display: flex; align-items: flex-end; gap: 18px; flex-wrap: wrap; margin-top: 18px; }
.qty-presets { display: flex; gap: 6px; flex-wrap: wrap; }
.chip--btn { cursor: pointer; background: #fff; padding: 7px 10px; font-size: 9px; }
.chip--btn:hover { border-color: var(--accent); color: var(--accent); }
.check--box { flex: 1; min-width: 220px; padding-left: 4px; }
.check--box input { margin-top: 3px; }
.check--box b { font-size: 13px; }

.manual { border: 1px solid var(--line); background: #fbfaf6; padding: 14px; border-radius: 3px; }
.manual__head { display: flex; flex-direction: column; gap: 3px; margin-bottom: 12px; }
.manual__head b { font-size: 13.5px; }
.manual__head span { font-size: 11.5px; color: var(--muted); }
.manual__fields { display: grid; grid-template-columns: repeat(3, 1fr) auto; gap: 10px; align-items: end; }
.manual__fields .field { margin: 0; }
.manual__apply { height: 42px; }
.unit-toggle { border-radius: 3px; }
.unit-toggle button { padding: 7px 10px; }

.ship-facts { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 14px; padding: 12px; background: #fbfaf6; border: 1px solid var(--line-soft); border-radius: 3px; }
.ship-fact span { display: block; font-family: var(--mono); font-size: 8px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.ship-fact b { display: block; font-size: 13px; margin-top: 3px; font-variant-numeric: tabular-nums; }
.ship-facts > span { font-size: 12px; color: var(--muted); }

.warning--error { background: #fbeceb; border-left-color: #b03a2e; color: #6b211a; }
.warning--warn { background: #fdf4e7; border-left-color: #c98a2b; color: #6b4a1f; }
.input--error { border-color: #b03a2e; box-shadow: 0 0 0 3px rgba(176,58,46,.1); }

.checkout__actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.success__meta { margin-top: 14px; font-family: var(--mono); font-size: 10px; letter-spacing: .08em; color: var(--muted); }
.summary__meta span { display: block; }

@media (max-width: 900px) {
  .opt-grid--5 { grid-template-columns: 1fr 1fr; }
  .matpick { grid-template-columns: 1fr; }
  .spec-strip { grid-template-columns: 1fr 1fr; }
  .ship-facts { grid-template-columns: 1fr 1fr 1fr; }
  .manual__fields { grid-template-columns: 1fr 1fr; }
}

/* ---------- quote polish ---------- */
.drop { display: block; }
.opt { text-align: left; }
.opt__s, .opt__p { display: block; }
.opt__t { align-items: baseline; }
.matopt .opt__t { font-size: 13px; }
.matopt .opt__s { font-size: 10px; margin-top: 4px; }
.opt--process .opt__s { font-size: 10px; }
.summary__total .v { font-size: 30px; }
.pay span b, .pay span > span { text-align: left; }

/* ---------- quote layout fixes ---------- */
.footer__top > div > a { display: block; }
.footer__top .brand { display: flex; }
.layer-single { display: inline-block; font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 9px 12px; border: 1px solid var(--line); background: #fbfaf6; border-radius: 3px; }
.layer-single b { color: var(--ink); font-weight: 500; }

/* ---------- content pages ---------- */
.pagehead { padding: 26px 0 40px; border-bottom: 1px solid var(--line); }
.pagehead .display { font-size: clamp(2.3rem, 4.2vw, 3.5rem); margin: 16px 0 18px; max-width: 20ch; }
.pagehead .lede { max-width: 66ch; }
.pagehead__meta { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 26px; }
.pagehead__meta div { border-left: 2px solid var(--accent); padding-left: 12px; }
.pagehead__meta span { display: block; font-family: var(--mono); font-size: 8.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.pagehead__meta b { font-family: var(--display); font-size: 14.5px; font-weight: 600; }
.pagehead__actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }

.rule-grid { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.rule { padding: 22px 26px 22px 0; border-bottom: 1px solid var(--line); }
.rule:nth-child(odd) { border-right: 1px solid var(--line); padding-right: 34px; }

.pill-row { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { display: inline-block; border: 1px solid var(--line); background: #fff; padding: 6px 10px; border-radius: 99px; font-family: var(--mono); font-size: 9px; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.filters button { border: 1px solid #cfc9bc; background: #fff; border-radius: 99px; padding: 7px 13px; font-family: var(--mono); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); cursor: pointer; }
.filters button:hover { border-color: var(--accent); color: var(--accent); }
.filters button.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }

.contact-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 36px; align-items: start; }
.form-card { background: #fff; border: 1px solid var(--line); padding: 28px; border-radius: 3px; }
.form-state { margin-top: 14px; padding: 12px 14px; background: #e8f6ef; border-left: 3px solid var(--ok); font-size: 12.5px; color: #14532d; }
.form-state--error { background: #fbeceb; border-left-color: #b03a2e; color: #6b211a; }

.ticklist li::before { background-color: rgba(36,67,230,.1); }

@media (max-width: 900px) {
  .rule-grid { grid-template-columns: 1fr; }
  .rule:nth-child(odd) { border-right: 0; padding-right: 0; }
  .contact-grid { grid-template-columns: 1fr; }
}

/* ---------- quote sheet ---------- */
.sheet__to { margin-top: 16px; display: grid; gap: 3px; font-size: 12px; color: #3d474e; }
.sheet__to span:first-child { font-family: var(--mono); font-size: 8px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.sheet__to b { font-family: var(--display); font-size: 14px; font-weight: 600; }
@media print {
  .sheet { font-size: 10.5pt; }
  .sheet td { padding: 6px 0; }
  .sheet h3 { margin: 16px 0 6px; }
}

@media (min-width: 1121px) {
  .model { grid-template-columns: 220px 1fr; }
}
.model__view { background: #141a20; }

/* ---------- knowledge base ---------- */
.article-head { padding: 30px 0 34px; border-bottom: 1px solid var(--line); }
.article-head__meta { display: flex; flex-wrap: wrap; gap: 8px 18px; font-family: var(--mono); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.article-head__meta a { color: var(--accent); }
.article-head h1 { font-size: clamp(2.2rem, 3.9vw, 3.2rem); margin: 16px 0 16px; max-width: 24ch; }
.article-head .lede { max-width: 68ch; }
.article-byline { display: flex; align-items: center; gap: 12px; margin-top: 22px; font-size: 12px; color: var(--muted); }
.article-byline .authorbox__avatar { margin: 0; }

.article-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px; padding: 44px 0 60px; align-items: start; }
.toc { position: sticky; top: 96px; border-left: 1px solid var(--line); padding-left: 18px; }
.toc__title { font-family: var(--mono); font-size: 8.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.toc ol { list-style: none; margin: 14px 0 0; padding: 0; counter-reset: toc; }
.toc li { counter-increment: toc; margin: 0 0 9px; }
.toc li a { display: block; font-size: 12.5px; line-height: 1.4; color: #46525a; padding-left: 18px; position: relative; }
.toc li a::before { content: counter(toc) "."; position: absolute; left: 0; font-family: var(--mono); font-size: 9px; color: #a8b0b6; }
.toc li a:hover { color: var(--accent); }
.article-body { max-width: 74ch; }
.article-body > p:first-of-type { font-size: 1.06rem; }

.takeaways { background: var(--paper-2); border-left: 3px solid var(--accent); padding: 20px 22px; margin-bottom: 30px; }
.takeaways .eyebrow { font-size: 9px; }
.takeaways ul { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; }
.takeaways li { position: relative; padding-left: 20px; font-size: 13.5px; line-height: 1.5; margin: 0; }
.takeaways li::before { content: '→'; position: absolute; left: 0; color: var(--accent); font-family: var(--mono); font-size: 11px; }

.authorbox { display: flex; gap: 16px; margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line); }
.authorbox__avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--ink); color: var(--lime); display: grid; place-items: center; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; flex: none; }
.authorbox__avatar--sm { width: 26px; height: 26px; font-size: 8.5px; }
.authorbox b { display: block; font-family: var(--display); font-size: 14.5px; margin-bottom: 4px; }
.authorbox p { font-size: 12.5px; color: var(--muted); margin-bottom: 6px; line-height: 1.5; }
.authorbox .small { font-family: var(--mono); font-size: 9px; letter-spacing: .06em; text-transform: uppercase; }
.article-body .faq { margin-top: 8px; }

.article-card { display: flex; flex-direction: column; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 3px; padding: 22px; transition: transform .16s, border-color .16s, box-shadow .16s; }
.article-card:hover { transform: translateY(-2px); border-color: #b9b3a5; box-shadow: 0 18px 36px -30px rgba(10,12,14,.5); }
.article-card__cat { font-family: var(--mono); font-size: 8.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.article-card h3 { font-family: var(--display); font-size: 18px; font-weight: 600; letter-spacing: -.015em; line-height: 1.2; margin: 0; }
.article-card p { font-size: 12.5px; color: var(--muted); line-height: 1.5; margin: 0; }
.article-card__foot { margin-top: auto; padding-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; font-family: var(--mono); font-size: 8.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.article-card__foot .link-arrow { border: 0; font-size: 10px; }

.kbcats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.kbcat { background: #fff; border: 1px solid var(--line); border-radius: 3px; padding: 26px; display: flex; flex-direction: column; gap: 10px; transition: border-color .16s, transform .16s; }
.kbcat:hover { border-color: var(--accent); transform: translateY(-2px); }
.kbcat .mono { color: var(--muted); font-size: 8.5px; }
.kbcat h2 { margin: 0; }
.kbcat p { font-size: 13px; color: var(--muted); line-height: 1.5; margin: 0; }
.kbcat .link-arrow { margin-top: auto; }

@media (max-width: 900px) {
  .article-layout { grid-template-columns: 1fr; gap: 28px; padding: 30px 0 40px; }
  .toc { position: static; border-left: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 16px 0; }
  .toc ol { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 18px; }
  .kbcats { grid-template-columns: 1fr; }
}

/* article tables: fit the reading column instead of scrolling */
.article-body .table-wrap { margin: 1.4em 0; }
.article-body .table-wrap table.spec { min-width: 0; font-size: 12.5px; }
.article-body .table-wrap th, .article-body .table-wrap td { padding: 9px 10px; }
.article-body .table-wrap td:first-child { width: 34%; }

@media (max-width: 900px) {
  .toc ol { grid-template-columns: 1fr; gap: 6px; }
  .toc li { min-width: 0; }
  .toc li a { overflow-wrap: anywhere; }
}

.article-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 28px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.article-links .mono { font-size: 8.5px; color: var(--muted); margin-right: 4px; }
.article-links a { display: inline-block; border: 1px solid var(--line); border-radius: 99px; padding: 5px 11px; font-family: var(--mono); font-size: 9px; letter-spacing: .06em; text-transform: uppercase; color: #3d474e; }
.article-links a:hover { border-color: var(--accent); color: var(--accent); }

/* upload area: explicit button + fallback messaging */
.drop { position: relative; }
.drop input[type='file'] { position: absolute; width: 1px; height: 1px; padding: 0; opacity: 0; pointer-events: none; }
.drop__browse { display: block; margin-top: 16px; }
.drop__hint { display: block; margin-top: 10px; font-size: 11px; line-height: 1.45; color: var(--muted); max-width: 46ch; margin-left: auto; margin-right: auto; }
.drop__hint a { color: var(--accent); border-bottom: 1px solid rgba(36,67,230,.35); }
.drop:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.tool-fallback { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; margin-bottom: 16px; background: #fdf4e7; border-left: 3px solid #c98a2b; font-size: 12.5px; line-height: 1.5; color: #6b4a1f; }
.tool-fallback b { font-size: 13px; }
.tool-fallback a { color: #8a4a12; text-decoration: underline; }
.tool-fallback.is-error { background: #fbeceb; border-left-color: #b03a2e; color: #6b211a; }

.warning span { display: block; }
.warning span + span { margin-top: 6px; }

[data-file-status] { flex: 1 1 160px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.statusline { min-height: 16px; margin-top: 8px; }
.statusline:empty { display: none; }

/* ---------- multi-part quote list ---------- */
.partlist { display: grid; gap: 8px; }
.partrow { display: grid; grid-template-columns: 30px minmax(0, 1.4fr) minmax(0, 1fr) auto auto 24px; gap: 12px; align-items: center; border: 1px solid var(--line); border-radius: 3px; background: #fff; padding: 10px 12px; cursor: pointer; }
.partrow:hover { border-color: #b9b3a5; }
.partrow.is-active { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); background: #f6f7ff; }
.partrow__idx { font-family: var(--mono); font-size: 9px; color: var(--muted); }
.partrow__name b, .partrow__config b { display: block; font-size: 12.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.partrow__name small, .partrow__config small { display: block; font-size: 10.5px; color: var(--muted); margin-top: 2px; }
.partrow__qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 3px; overflow: hidden; background: #fff; }
.partrow__qty button { width: 26px; height: 28px; border: 0; background: none; color: var(--muted); font-size: 15px; line-height: 1; cursor: pointer; }
.partrow__qty button:hover { background: #f1efe7; color: var(--ink); }
.partrow__qty input { width: 42px; height: 28px; border: 0; border-left: 1px solid var(--line-soft); border-right: 1px solid var(--line-soft); background: #fff; text-align: center; font-family: var(--mono); font-size: 11px; -moz-appearance: textfield; }
.partrow__qty input::-webkit-outer-spin-button, .partrow__qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.partrow__price { font-family: var(--display); font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.partrow__x { width: 24px; height: 24px; border: 0; border-radius: 50%; background: none; color: #9aa3a9; font-size: 16px; line-height: 1; cursor: pointer; }
.partrow__x:hover { background: #fbeceb; color: #b03a2e; }
[data-editing] { font-size: 12.5px; color: var(--muted); }

@media (max-width: 640px) {
  .partrow { grid-template-columns: 24px minmax(0, 1fr) auto 22px; row-gap: 8px; }
  .partrow__name { grid-column: 2; grid-row: 1; }
  .partrow__config { display: none; }
  .partrow__qty { grid-column: 2; grid-row: 2; justify-self: start; }
  .partrow__price { grid-column: 3; grid-row: 1 / span 2; align-self: center; }
  .partrow__x { grid-column: 4; grid-row: 1 / span 2; }
}

/* unit note: small inline hint, not an alert */
.unit-note {
  display: inline-flex; align-items: flex-start; gap: 9px; max-width: 100%;
  margin-top: 8px; padding: 8px 13px;
  background: #f5f3ec; border: 1px solid var(--line-soft); border-radius: 4px;
  font-size: 12px; line-height: 1.45; color: #4d5961;
  animation: unitnote-in .18s ease-out;
}
.unit-note::before {
  content: 'i'; flex: none;
  width: 16px; height: 16px; margin-top: 1px; border-radius: 50%;
  background: var(--ink); color: var(--lime);
  font-family: var(--mono); font-size: 10px; font-weight: 500;
  display: grid; place-items: center;
}
@keyframes unitnote-in { from { opacity: 0; transform: translateY(-2px); } to { opacity: 1; transform: none; } }


.fact .v { font-size: 14px; white-space: nowrap; }

.drop__multi { display: block; margin-top: 4px; font-family: var(--mono); font-size: 9px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }


/* mobile: let the model action row wrap instead of widening the card */
@media (max-width: 640px) {
  .qcard, .quote-steps, .quote-main { min-width: 0; }
  .statusline { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
  .statusline .seg, .statusline .btn { flex: none; }
  .model__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact .v { white-space: normal; }
}

/* ---------- language switch ---------- */
.langswitch { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 3px; overflow: hidden; margin-right: 12px; }
.langswitch a { padding: 6px 9px; font-family: var(--mono); font-size: 9.5px; letter-spacing: .04em; color: var(--muted); text-decoration: none; }
.langswitch a.is-on { background: var(--ink); color: var(--lime); }
.langswitch a:hover { color: var(--ink); }
.langswitch a.is-on:hover { color: var(--lime); }
.langswitch--mobile { margin: 14px 0 0; border-color: rgba(255,255,255,.2); }
@media (max-width: 1120px) { .langswitch { display: none; } }
@media print { .langswitch { display: none !important; } }

/* ---------- Chinese overview pages ---------- */
.zh-page .pagehead { padding-bottom: 26px; }
.zh-page .zh-body { padding: 8px 0 56px; }
.zh-page .zh-body section { padding: 30px 0; border-top: 1px solid var(--line); }
.zh-page .zh-body section:first-child { border-top: 0; }
.zh-page .zh-body h2 { font-family: var(--display); font-size: 1.35rem; font-weight: 600; letter-spacing: -.01em; margin-bottom: 10px; }
.zh-page .zh-body p { max-width: 70ch; color: #3d474e; line-height: 1.7; margin-bottom: 12px; }
.zh-page .zh-body ul { max-width: 70ch; margin: 0 0 14px; padding-left: 18px; color: #3d474e; line-height: 1.75; }
.zh-page .zh-body li { margin-bottom: 6px; }
.zh-page .zh-body .en-note { font-size: 11px; color: var(--muted); }
.zh-page .zh-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }

.zh-page .display { font-size: clamp(2rem, 3.2vw, 2.9rem); max-width: 20ch; line-height: 1.15; }

.zh-page .display { max-width: none; }
