/* =========================================================
   Tonshineway Limited — global stylesheet
   Palette: deep navy + signal blue, light industrial UI
   ========================================================= */

:root {
  --navy: #0b2545;
  --navy-2: #12345c;
  --ink: #101828;
  --muted: #5a6b83;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --bg: #f5f7fa;
  --white: #ffffff;
  --accent: #1466d8;
  --accent-dark: #0f51ac;
  --accent-soft: #e8f1fd;
  --green: #0f8a52;
  --green-soft: #e6f5ee;
  --amber: #a86400;
  --amber-soft: #fdf1dc;
  --red: #b42318;
  --red-soft: #fdeceb;
  --radius: 6px;
  --radius-lg: 10px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 8px 24px rgba(16, 24, 40, .06);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); text-decoration: underline; }

h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.25; color: var(--navy); font-weight: 700; }
h1 { font-size: 30px; letter-spacing: -.02em; }
h2 { font-size: 21px; }
h3 { font-size: 17px; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Grid children must be allowed to shrink so wide tables scroll inside their card */
.search-layout > *, .product-layout > *, .bom-layout > *, .contact-layout > *,
.legal-layout > *, .results, .product-main, .bom-main { min-width: 0; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.hp-field { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff;
  padding: 10px 16px; z-index: 99;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ------------------------------------------------------------ top bar */

.topbar {
  background: var(--navy); color: #c8d6e8; font-size: 12.5px; letter-spacing: .01em;
}
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 34px; }
.topbar a { color: #dbe7f6; }
.topbar a:hover { color: #fff; text-decoration: none; }
.topbar .dot { margin: 0 6px; opacity: .5; }

/* ------------------------------------------------------------ masthead */

.masthead { background: #fff; border-bottom: 1px solid var(--line); }
.masthead-inner {
  display: flex; align-items: center; gap: 28px; padding: 16px 24px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--navy); text-decoration: none; }
.brand:hover { text-decoration: none; color: var(--navy); }
.brand-logo { display: block; height: 41px; width: auto; max-width: 100%; }
.brand:hover .brand-logo { opacity: .92; }
.brand-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 8px;
  background: linear-gradient(135deg, var(--navy), #1d5fae);
  color: #fff; font-weight: 800; font-size: 13px; letter-spacing: .06em;
}
.brand-text strong { display: block; font-size: 16px; letter-spacing: -.01em; }
.brand-text small { display: block; font-size: 11.5px; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }

.head-search { flex: 1 1 auto; display: flex; max-width: 520px; }
.head-search input {
  flex: 1; height: 42px; padding: 0 14px; font-size: 14px;
  border: 1px solid var(--line-strong); border-right: 0;
  border-radius: var(--radius) 0 0 var(--radius); outline: none;
}
.head-search input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(20, 102, 216, .12); }
.head-search button {
  height: 42px; padding: 0 20px; border: 0; cursor: pointer;
  background: var(--accent); color: #fff; font-weight: 600; font-size: 14px;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.head-search button:hover { background: var(--accent-dark); }

.head-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.rfq-pill {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px;
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  color: var(--navy); font-weight: 600; font-size: 13.5px; white-space: nowrap;
}
.rfq-pill:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.rfq-count {
  min-width: 22px; height: 22px; border-radius: 11px; background: var(--accent); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700;
}
.nav-toggle { display: none; border: 1px solid var(--line-strong); background: #fff; border-radius: var(--radius); width: 40px; height: 40px; font-size: 18px; cursor: pointer; }

.mainnav { background: #f8fafc; border-top: 1px solid var(--line); }
.mainnav ul { display: flex; list-style: none; margin: 0; padding: 0; gap: 4px; overflow-x: auto; }
.mainnav a {
  display: block; padding: 11px 14px; color: var(--navy); font-size: 14px; font-weight: 500;
  border-bottom: 2px solid transparent;
}
.mainnav a:hover { text-decoration: none; background: #eef3f9; }
.mainnav a.active { color: var(--accent); border-bottom-color: var(--accent); font-weight: 600; }

/* --------------------------------------------------------------- hero */

.hero {
  background:
    radial-gradient(1200px 380px at 15% -10%, rgba(41, 121, 216, .35), transparent 70%),
    linear-gradient(160deg, #071c35 0%, #0b2545 45%, #103a68 100%);
  color: #fff; padding: 58px 0 46px;
}
.hero h1 { color: #fff; font-size: 38px; max-width: 780px; letter-spacing: -.025em; }
.hero-sub { color: #bdd0e6; max-width: 720px; font-size: 15.5px; }
.hero-search { display: flex; margin: 26px 0 14px; max-width: 760px; }
.hero-search input {
  flex: 1; height: 54px; padding: 0 18px; font-size: 16px;
  border: 0; border-radius: var(--radius) 0 0 var(--radius); outline: none;
}
.hero-search input:focus { box-shadow: inset 0 0 0 3px rgba(20, 102, 216, .25); }
.hero-search button {
  height: 54px; padding: 0 26px; border: 0; border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--accent); color: #fff; font-size: 15px; font-weight: 700; cursor: pointer; white-space: nowrap;
}
.hero-search button:hover { background: var(--accent-dark); }
.hero-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13px; color: #9db3cc; }
.hero-chips a { color: #dce9f7; border: 1px solid rgba(255, 255, 255, .22); padding: 3px 10px; border-radius: 20px; font-size: 12.5px; }
.hero-chips a:hover { background: rgba(255, 255, 255, .1); text-decoration: none; }

/* ------------------------------------------------------------- trust */

.trust-strip { background: #fff; border-bottom: 1px solid var(--line); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.trust-item { padding: 18px 20px; border-left: 1px solid var(--line); }
.trust-item:first-child { border-left: 0; }
.trust-item strong { display: block; color: var(--navy); font-size: 14.5px; }
.trust-item span { display: block; color: var(--muted); font-size: 12.5px; }

/* ----------------------------------------------------------- sections */

.section { padding: 44px 0; }
.section-alt { background: var(--bg); }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 18px; }
.section-head h2 { margin: 0; }
.link-more { font-size: 13.5px; font-weight: 600; }

/* -------------------------------------------------------------- table */

.table-scroll { position: relative; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.ptable { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 680px; }
.ptable thead th {
  background: #f1f5fa; color: var(--navy); text-align: left; font-weight: 600;
  padding: 10px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; font-size: 12.5px;
  letter-spacing: .02em; text-transform: uppercase;
}
.ptable td { padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.ptable tbody tr:last-child td { border-bottom: 0; }
.ptable tbody tr:hover { background: #fafcff; }
.ptable .num { text-align: right; white-space: nowrap; }
.ptable .act { text-align: right; width: 112px; }
.ptable .desc { color: var(--muted); max-width: 250px; }
.ptable .lead { font-size: 12.5px; color: #475569; }
.table-note { font-size: 12px; color: var(--muted); margin: 8px 2px 0; }
.list-actions { display: flex; gap: 16px; align-items: center; }
.list-actions .muted-link { color: var(--muted); font-weight: 500; }
.ptable .act { text-align: right; white-space: nowrap; }
.row-remove { font-size: 12.5px; color: var(--muted); font-weight: 500; }
.row-remove:hover { color: var(--red); text-decoration: none; }
.ptable td:first-child { max-width: 320px; }
.desc-line { display: block; font-weight: 400; color: var(--muted); font-size: 11.5px; line-height: 1.4; margin-top: 3px; }
.ptable .price { font-weight: 600; color: var(--navy); font-variant-numeric: tabular-nums; }
.pn { font-weight: 700; color: var(--navy); letter-spacing: .01em; }
.pn:hover { color: var(--accent); }
.pkg { display: block; font-size: 11.5px; color: var(--muted); font-weight: 400; }
.price-req span { color: var(--muted); font-size: 12.5px; font-style: italic; white-space: nowrap; }

.add-form { display: flex; gap: 6px; justify-content: flex-end; align-items: center; }
.add-form .qty { width: 50px; height: 32px; padding: 0 6px; border: 1px solid var(--line-strong); border-radius: 4px; font-size: 13px; }

/* ------------------------------------------------------------ buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 40px; padding: 0 18px; border-radius: var(--radius); border: 1px solid var(--accent);
  background: var(--accent); color: #fff; font-size: 14px; font-weight: 600; cursor: pointer;
  text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s;
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; text-decoration: none; }
.btn-sm { height: 32px; padding: 0 12px; font-size: 12.5px; }
.btn-block { width: 100%; }
.btn-outline { background: #fff; color: var(--accent); border-color: var(--line-strong); }
.btn-outline:hover { background: var(--accent-soft); color: var(--accent-dark); border-color: var(--accent); }
.btn-light { background: #fff; color: var(--navy); border-color: #fff; }
.btn-light:hover { background: #eaf2fb; color: var(--navy); border-color: #eaf2fb; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); }
.btn-ghost:hover { background: rgba(255, 255, 255, .1); border-color: #fff; color: #fff; }
.link-danger { background: none; border: 0; color: var(--red); font-size: 12.5px; cursor: pointer; padding: 4px; }

/* ---------------------------------------------------------- categories */

.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.cat-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px 20px; }
.cat-title { display: block; font-weight: 700; color: var(--navy); font-size: 15px; margin-bottom: 8px; }
.cat-card ul { list-style: none; margin: 0; padding: 0; }
.cat-card li { padding: 3px 0; font-size: 13.5px; }
.cat-card li a { color: var(--muted); }
.cat-card li a:hover { color: var(--accent); }

.subcat-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 22px; }
.subcat-chip {
  border: 1px solid var(--line-strong); border-radius: 20px; padding: 5px 13px; font-size: 13px; color: var(--navy);
}
.subcat-chip:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }

/* ------------------------------------------------------------- brands */

.brand-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.brand-chip {
  border: 1px solid var(--line); background: #fff; border-radius: 4px; padding: 9px 16px;
  font-size: 13.5px; color: var(--navy); font-weight: 500;
}
.brand-chip:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }

.alpha-nav { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 24px; }
.alpha-nav a {
  width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 4px; font-weight: 700; color: var(--navy); font-size: 13px;
}
.alpha-nav a:hover { background: var(--accent-soft); border-color: var(--accent); text-decoration: none; }
.brand-group { margin-bottom: 26px; }
.brand-group h2 { font-size: 18px; border-bottom: 1px solid var(--line); padding-bottom: 6px; }
.brand-rows { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.brand-row {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; color: var(--ink);
}
.brand-row:hover { border-color: var(--accent); text-decoration: none; }
.brand-row strong { color: var(--navy); font-size: 14px; }
.brand-row span { color: var(--muted); font-size: 12.5px; white-space: nowrap; }

/* ------------------------------------------------------------ BOM band */

.bom-band { background: linear-gradient(120deg, #0b2545, #17457a); color: #fff; padding: 40px 0; }
.bom-band-inner { display: flex; align-items: center; gap: 32px; justify-content: space-between; }
.bom-band h2 { color: #fff; font-size: 22px; margin-bottom: 6px; }
.bom-band p { color: #c3d5e9; margin: 0; max-width: 620px; }
.bom-band-actions { display: flex; gap: 10px; flex-shrink: 0; }

/* ------------------------------------------------------------- values */

.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.value-card { border-top: 3px solid var(--accent); background: #fff; border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.value-card p { color: var(--muted); font-size: 13.5px; margin: 0; }

/* --------------------------------------------------------- page chrome */

.page-head { padding-top: 30px; padding-bottom: 18px; }
.crumbs { font-size: 12.5px; color: var(--muted); margin-bottom: 10px; }
.crumbs a { color: var(--muted); }
.crumbs span { margin: 0 6px; }
.page-head h1 { margin-bottom: 6px; }
.page-head .muted { margin: 0; }

/* ------------------------------------------------------------- product */

.product-layout { display: grid; grid-template-columns: 1fr 320px; gap: 36px; padding-bottom: 40px; }
.product-main h1 { font-size: 27px; }
.h1-brand { display: block; font-size: 14px; font-weight: 500; color: var(--muted); margin-top: 4px; }
.product-lead { color: var(--muted); max-width: 720px; }
.product-visual { display: flex; align-items: center; gap: 22px; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px; background: var(--bg); margin-bottom: 26px; }
.thumb-lg, .product-visual img { width: 132px; height: 132px; object-fit: contain; background: #fff; border-radius: 8px; }
.thumb-ph {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  background: #eef3f9; color: var(--navy); font-weight: 700; font-size: 12px; border-radius: 4px; letter-spacing: .04em;
}
.thumb-lg { font-size: 18px; }
.product-flags { display: flex; flex-wrap: wrap; gap: 8px; }
.badge { display: inline-block; padding: 3px 9px; border-radius: 3px; font-size: 11.5px; font-weight: 600; background: #eef3f9; color: var(--navy); }
.badge-green { background: var(--green-soft); color: var(--green); }
.badge-amber { background: var(--amber-soft); color: var(--amber); }
.badge-grey { background: #f0f2f5; color: var(--muted); }

.spec-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.spec-table th { text-align: left; width: 190px; background: #f7f9fc; color: var(--navy); font-weight: 600; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.spec-table td { padding: 10px 14px; border-bottom: 1px solid var(--line); }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }
.datasheet-link { margin-top: 14px; }
.datasheet-link a { font-weight: 600; }

.quote-card { position: sticky; top: 16px; border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: var(--radius-lg); padding: 20px; background: #fff; box-shadow: var(--shadow); }
.quote-label { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0; }
.quote-price { font-size: 26px; font-weight: 700; color: var(--navy); margin: 2px 0; font-variant-numeric: tabular-nums; }
.quote-price span { font-size: 13px; font-weight: 500; color: var(--muted); margin-left: 4px; }
.quote-on-request { font-size: 21px; letter-spacing: -.01em; }
.quote-note { font-size: 12.5px; line-height: 1.5; color: var(--muted); margin: -4px 0 10px; }
.quote-stock { font-size: 13px; color: var(--green); margin-bottom: 16px; }
.quote-points { list-style: none; margin: 16px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.quote-points li { padding: 3px 0 3px 18px; position: relative; }
.quote-points li::before { content: "✓"; position: absolute; left: 0; color: var(--green); }
.stack-form .field { margin-bottom: 10px; }

/* --------------------------------------------------------------- forms */

.panel-form {
  border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff;
  padding: 24px; box-shadow: var(--shadow);
}
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-size: 12.5px; font-weight: 600; color: var(--navy); margin-bottom: 5px; }
.field input, .field select, .field textarea, .field > input {
  width: 100%; padding: 9px 12px; font-family: var(--font); font-size: 14px;
  border: 1px solid var(--line-strong); border-radius: var(--radius); background: #fff; outline: none;
}
.field textarea { resize: vertical; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(20, 102, 216, .12); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.hint { font-size: 12.5px; color: var(--muted); margin: 10px 0 0; }

.check { display: flex; align-items: center; gap: 8px; font-size: 13.5px; margin-bottom: 16px; }
.check input { width: 16px; height: 16px; }

.filters { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px 18px 20px; background: #fff; align-self: start; position: sticky; top: 16px; }
.filter-title { font-size: 14px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 14px; }
.reset-link { display: block; text-align: center; font-size: 12.5px; margin-top: 10px; color: var(--muted); }
.search-layout { display: grid; grid-template-columns: 244px 1fr; gap: 24px; padding-bottom: 48px; }
.results-footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 16px; flex-wrap: wrap; }

.pager { display: flex; gap: 4px; flex-wrap: wrap; }
.pager a { min-width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 4px; font-size: 13px; color: var(--navy); padding: 0 8px; }
.pager a:hover { border-color: var(--accent); text-decoration: none; }
.pager a.active { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 700; }
.pager .sep { align-self: center; color: var(--muted); }

.sourcing-note { margin-top: 26px; border: 1px dashed var(--line-strong); border-radius: var(--radius-lg); padding: 20px; background: #fbfcfe; }
.sourcing-note h3 { margin-bottom: 6px; }
.sourcing-note p { color: var(--muted); font-size: 13.5px; }

.empty-state { text-align: center; padding: 40px 20px; border: 1px dashed var(--line-strong); border-radius: var(--radius-lg); background: #fbfcfe; }
.empty-state p:first-child { font-size: 16px; font-weight: 600; color: var(--navy); }

/* ---------------------------------------------------------------- BOM */

.bom-layout { display: grid; grid-template-columns: 1fr 320px; gap: 30px; padding-bottom: 50px; }
.bom-side { display: grid; gap: 16px; align-content: start; }
.side-card { border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; padding: 18px; }
.side-card h3 { font-size: 15px; }
.side-card p { font-size: 13.5px; color: var(--muted); }
.code-block { background: #f5f7fa; border: 1px solid var(--line); border-radius: 4px; padding: 12px; font-size: 12.5px; overflow-x: auto; color: var(--navy); }
.steps { margin: 0; padding-left: 18px; font-size: 13.5px; color: var(--muted); }
.steps li { margin-bottom: 7px; }

.upload-box { border: 1px dashed var(--line-strong); border-radius: var(--radius-lg); padding: 18px; background: #fbfcfe; margin-bottom: 8px; }
.upload-box label { display: block; font-weight: 600; color: var(--navy); margin-bottom: 8px; font-size: 13.5px; }
.upload-box input[type=file] { font-size: 13px; }
.or-sep { text-align: center; color: var(--muted); font-size: 12px; margin: 16px 0; }
.or-sep span { background: #fff; padding: 0 10px; }

.rfq-form { margin-top: 26px; }
.rfq-toolbar { display: flex; align-items: center; gap: 10px; margin: 14px 0 4px; flex-wrap: wrap; }
.rfq-total { margin-left: auto; font-size: 14px; color: var(--ink); }
.rfq-total strong { color: var(--navy); font-size: 17px; }
.rfq-total small { display: block; font-weight: 400; color: var(--muted); font-size: 11.5px; }

.success-panel { border: 1px solid #bfe5d1; background: var(--green-soft); border-radius: var(--radius-lg); padding: 24px; margin-bottom: 24px; }
.success-panel h2 { color: var(--green); font-size: 19px; }
.success-panel p { color: #20583f; }
.success-panel .btn { margin-top: 6px; }

/* ----------------------------------------------------------- legal/contact */

.legal-layout { display: grid; grid-template-columns: 1fr 280px; gap: 40px; padding-bottom: 56px; }
.rich-text { font-size: 14.5px; color: #2a3646; }
.rich-text h2 { font-size: 18px; margin-top: 1.8em; }
.rich-text h3 { font-size: 15.5px; margin-top: 1.4em; }
.rich-text p, .rich-text li { line-height: 1.7; }
.rich-text ul, .rich-text ol { padding-left: 20px; margin: 0 0 1em; }
.rich-text table { border-collapse: collapse; width: 100%; margin: 1em 0; font-size: 13.5px; }
.rich-text th, .rich-text td { border: 1px solid var(--line); padding: 9px 12px; text-align: left; }
.rich-text th { background: #f7f9fc; color: var(--navy); }

.legal-nav { align-self: start; position: sticky; top: 16px; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px; background: #fbfcfe; }
.legal-nav h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.legal-nav ul { list-style: none; margin: 0 0 16px; padding: 0; }
.legal-nav li { padding: 6px 0; font-size: 13.5px; border-bottom: 1px solid var(--line); }
.legal-nav li:last-child { border-bottom: 0; }
.legal-nav a.active { font-weight: 700; color: var(--accent); }
.legal-contact { border-top: 1px solid var(--line); padding-top: 14px; font-size: 12.5px; }
.legal-contact p { margin-bottom: 6px; }

.contact-layout { display: grid; grid-template-columns: 1fr 320px; gap: 30px; padding-bottom: 50px; }
.contact-side { display: grid; gap: 16px; align-content: start; }

.notfound { padding: 70px 24px 90px; max-width: 760px; }
.notfound h1 { font-size: 30px; }
.notfound p { color: var(--muted); }
.notfound-links { margin-top: 20px; font-size: 13.5px; }

/* --------------------------------------------------------------- flash */

.flash-wrap { margin-top: 20px; }
.flash { padding: 12px 16px; border-radius: var(--radius); font-size: 13.5px; margin-bottom: 16px; border: 1px solid transparent; }
.flash-success { background: var(--green-soft); border-color: #bfe5d1; color: #1c5a3e; }
.flash-error { background: var(--red-soft); border-color: #f3c2bd; color: var(--red); }
.flash-info { background: var(--accent-soft); border-color: #c7dcf8; color: var(--accent-dark); }

/* -------------------------------------------------------------- footer */

.site-footer { margin-top: 0; background: #0a1f39; color: #b9cade; padding: 46px 0 0; font-size: 13.5px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.1fr; gap: 32px; padding-bottom: 34px; }
.footer-col h3 { color: #fff; font-size: 14px; margin-bottom: 10px; letter-spacing: .02em; }
.footer-col p { color: #a9bed5; font-size: 13px; }
.footer-addr { color: #8ba6c4 !important; font-size: 12.5px !important; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { padding: 4px 0; }
.footer-col a { color: #c8d9ea; }
.footer-col a:hover { color: #fff; }
.footer-contact li { color: #a9bed5; }

.footer-disclaimer { border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 20px; padding-bottom: 26px; }
.footer-disclaimer p { color: #93aac5; font-size: 12px; line-height: 1.65; margin: 0 0 8px; }
.footer-disclaimer strong { color: #d6e3f2; }
.footer-copy { color: #7d94b0 !important; }

/* ------------------------------------------------------- member area */

.auth-layout, .account-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; padding-bottom: 56px; }
.auth-layout > *, .account-layout > * { min-width: 0; }
.auth-side, .account-side { display: flex; flex-direction: column; gap: 18px; }
.check-list { margin: 0; padding-left: 18px; color: var(--muted); }
.check-list li { margin-bottom: 6px; }

.tabs { display: flex; gap: 6px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.tabs a { padding: 9px 14px; font-weight: 600; font-size: 13.5px; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a:hover { color: var(--accent); text-decoration: none; }
.tabs a.on { color: var(--navy); border-bottom-color: var(--accent); }

.kv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 14px; margin-bottom: 16px; }
.kv-grid span { display: block; font-size: 11.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.kv-grid strong { display: block; color: var(--navy); font-size: 14.5px; }

.quote-note-box { border-top: 1px solid var(--line); padding-top: 12px; }
.quote-note-box h3 { margin: 0 0 6px; font-size: 14px; color: var(--navy); }
.quote-note-box p { margin: 0; color: #33445c; }

.member-card { text-align: left; }
.member-avatar {
  width: 46px; height: 46px; border-radius: 50%; background: var(--navy); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 18px; margin-bottom: 10px;
}
.level-badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 700;
  background: var(--accent-soft); color: var(--accent-dark); }
.level-badge.vip { background: #fff5d6; color: #8a5a00; border: 1px solid #f0d79a; }
.account-user { font-size: 12.5px; color: var(--muted); }
.account-user a { color: var(--navy); font-weight: 600; }
.member-chip { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; border: 1px solid var(--line);
  border-radius: var(--radius); font-size: 12.5px; font-weight: 600; color: var(--navy); background: #fff; }
.member-chip:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }

/* --------------------------------------------------- responsive */



@media (max-width: 1024px) {
  .hero h1 { font-size: 32px; }
  .product-layout, .bom-layout, .contact-layout { grid-template-columns: 1fr; }
  .quote-card, .bom-side, .contact-side { position: static; }
  .legal-layout { grid-template-columns: 1fr; }
  .legal-nav { position: static; order: -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .masthead-inner { flex-wrap: wrap; gap: 12px; }
  .head-search { order: 3; flex: 1 1 100%; max-width: none; }
  .head-actions { margin-left: auto; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .mainnav ul { display: none; flex-direction: column; }
  .mainnav.open ul { display: flex; }
  .mainnav a { padding: 12px 6px; border-bottom: 1px solid var(--line); }
  .search-layout { grid-template-columns: 1fr; }
  .filters { position: static; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .trust-item { border-left: 0; border-top: 1px solid var(--line); }
  .value-grid { grid-template-columns: 1fr; }
  .bom-band-inner { flex-direction: column; align-items: flex-start; }
  .form-grid { grid-template-columns: 1fr; }
  .auth-layout, .account-layout { grid-template-columns: 1fr; }
  .auth-side, .account-side { order: -1; }
  .tabs { overflow-x: auto; }
  .topbar .wrap { flex-direction: column; align-items: flex-start; padding: 8px 24px; gap: 2px; }
}

@media (max-width: 600px) {
  .member-chip { display: none; }
  .topbar-note { display: none; }
  .wrap { padding: 0 16px; }
  .brand-logo { height: 34px; }
  .masthead-inner { gap: 10px; }
  .hero { padding: 40px 0 34px; }
  .hero h1 { font-size: 26px; }
  .hero-search { flex-direction: column; }
  .hero-search input { border-radius: var(--radius); }
  .hero-search button { border-radius: var(--radius); height: 48px; margin-top: 8px; }
  .footer-grid { grid-template-columns: 1fr; gap: 22px; }
  h1 { font-size: 24px; }
}

/* =========================================================
   v6 — B2B tool-first layout: photo hero, proof grid, quick quote
   ========================================================= */

:root {
  --font-mono: "JetBrains Mono", "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --bg-soft: #f8fafc;
}

body { background: var(--white); }

h1, h2, h3 { letter-spacing: -.015em; }
h2 { font-size: 22px; }

.mono { font-family: var(--font-mono); font-variant-ligatures: none; letter-spacing: .01em; }
.part-heading { display: flex; flex-direction: column; gap: 2px; margin-bottom: 8px; }
.part-heading .mono { font-size: 30px; }
.part-heading .h1-brand { font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }

/* --- header additions ------------------------------------------- */

.account-btn {
  display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 12px;
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  color: var(--navy); font-size: 13px; font-weight: 600; white-space: nowrap; max-width: 190px;
}
.account-btn:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.account-btn svg { flex: 0 0 auto; }
.account-btn-label { overflow: hidden; text-overflow: ellipsis; }

/* --- photo hero ------------------------------------------------- */

.hero-photo {
  position: relative; overflow: hidden; padding: 76px 0 60px;
  background: #071c35;
}
.hero-bg {
  position: absolute; inset: 0;
  background: url("/assets/img/hero-bg.jpg") center right / cover no-repeat;
  filter: saturate(.7);
}
.hero-photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(6, 20, 38, .96) 0%, rgba(8, 28, 52, .86) 42%, rgba(8, 28, 52, .45) 72%, rgba(8, 28, 52, .2) 100%);
}
.hero-inner { position: relative; z-index: 2; }
.hero-eyebrow {
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: #8fb3d9; margin-bottom: 12px;
}
.hero-photo h1 { font-size: 40px; max-width: 680px; }
.hero-photo .hero-sub { color: #c3d4e8; max-width: 640px; }

.hero-search-wide { gap: 10px; max-width: 820px; }
.hero-search-wide input { border-radius: var(--radius); height: 52px; }
.hero-search-wide .btn-hero {
  display: inline-flex; align-items: center; justify-content: center;
  height: 52px; padding: 0 22px; border-radius: var(--radius);
  font-size: 14.5px; font-weight: 700; white-space: nowrap; border: 0; cursor: pointer;
  background: #1a73e8; color: #fff;
}
.hero-search-wide .btn-hero:hover { background: #0f51ac; text-decoration: none; }
.btn-hero-alt { background: rgba(255, 255, 255, .12) !important; border: 1px solid rgba(255, 255, 255, .38) !important; color: #fff !important; backdrop-filter: blur(2px); }
.btn-hero-alt:hover { background: rgba(255, 255, 255, .22) !important; }

/* --- stat strip ------------------------------------------------- */

.stat-strip { background: var(--navy); border-top: 1px solid rgba(255, 255, 255, .08); }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat-item { padding: 22px 18px; border-left: 1px solid rgba(255, 255, 255, .1); }
.stat-item:first-child { border-left: 0; padding-left: 0; }
.stat-item strong { display: block; color: #fff; font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
.stat-item span { display: block; color: #9fb8d4; font-size: 12.5px; }

/* --- proof / QC imagery ----------------------------------------- */

.section { padding: 64px 0; }
.section-sub { color: var(--muted); max-width: 720px; margin: 6px 0 0; font-size: 14px; }
.section-head-tight { align-items: flex-start; margin-bottom: 24px; }

.proof-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.proof-card { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.proof-card img { display: block; width: 100%; height: 210px; object-fit: cover; }
.proof-card figcaption { padding: 16px 18px 18px; }
.proof-card strong { display: block; color: var(--navy); font-size: 14.5px; margin-bottom: 4px; }
.proof-card span { display: block; color: var(--muted); font-size: 13px; line-height: 1.55; }

.qc-visual { background: var(--bg-soft); padding: 56px 0 40px; border-bottom: 1px solid var(--line); }
.qc-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 26px; }
.qc-step { background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: var(--radius); padding: 18px; }
.qc-num { display: inline-block; font-family: var(--font-mono); font-size: 12px; color: var(--accent); font-weight: 700; margin-bottom: 6px; }
.qc-step strong { display: block; color: var(--navy); font-size: 14px; margin-bottom: 6px; }
.qc-step p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.qc-note { margin: 18px 0 0; color: var(--muted); font-size: 13px; }

/* --- quick quote form (part page) ------------------------------- */

.quick-form { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.quick-form-title { font-size: 15px; margin: 0 0 12px; }
.quick-form .field { margin-bottom: 12px; }
.quick-form-note { font-size: 12px; color: var(--muted); margin: 10px 0 0; line-height: 1.5; }
.field-hint { font-size: 12px; color: #1a73e8; margin: -4px 0 14px; }
.form-alert { background: var(--red-soft); border: 1px solid #f3c8c5; color: #8a1d16; border-radius: var(--radius); padding: 9px 12px; font-size: 13px; margin-bottom: 12px; }
.stack-form-compact { margin-top: 12px; padding-top: 0; border-top: 0; }
.stack-form-line { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 12.5px; color: var(--muted); margin: 0; }
.linklike { background: none; border: 0; padding: 0; color: var(--accent); font-weight: 600; font-size: 12.5px; cursor: pointer; }
.linklike:hover { text-decoration: underline; }

/* --- logistics strip -------------------------------------------- */

.logistics-strip {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px;
  margin-top: 34px; padding: 18px 0 0; border-top: 1px solid var(--line);
}
.logistics-label { font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.logistics-name { font-size: 14px; font-weight: 700; color: var(--navy); letter-spacing: .02em; }
.logistics-note { font-size: 12.5px; color: var(--muted); }

/* --- responsive -------------------------------------------------- */

@media (max-width: 1024px) {
  .proof-grid { grid-template-columns: 1fr 1fr; }
  .qc-steps { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .hero-photo { padding: 56px 0 44px; }
  .hero-photo h1 { font-size: 32px; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .stat-item { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .1); padding: 16px 0; }
  .stat-item:first-child { padding-top: 18px; }
  .account-btn-label { display: none; }
  .section { padding: 48px 0; }
}

@media (max-width: 600px) {
  .hero-photo h1 { font-size: 27px; }
  .hero-photo .hero-sub { font-size: 14px; }
  .hero-search-wide { flex-direction: column; }
  .hero-search-wide input { border-radius: var(--radius); }
  .hero-search-wide .btn-hero { width: 100%; border-radius: var(--radius); }
  .proof-grid, .qc-steps { grid-template-columns: 1fr; }
  .proof-card img { height: 180px; }
  .account-btn { padding: 0 10px; }
}
