/* ==========================================================================
   BUY-ANYTHING-INCHINA — design system
   Dark, quiet, high-contrast. Type-first. No dependencies, no webfonts.
   HAND-AUTHORED: build.js never generates or prunes this file.
   ========================================================================== */

:root {
  /* palette */
  --bg: #070a0e;
  --bg-soft: #0b1016;
  --panel: #0f151d;
  --panel-2: #131b25;
  --line: #1e2937;
  --line-soft: #172231;

  --fg: #f2f6fb;
  --fg-dim: #a7b6c8;
  --fg-mute: #74869b;

  --accent: #3ce8ad;
  --accent-ink: #05221a;
  --accent-soft: rgba(60, 232, 173, 0.12);
  --blue: #5aa9ff;
  --amber: #ffbe5c;
  --danger: #ff7a7a;

  /* geometry */
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 22px;
  --wrap: 1140px;
  --gutter: clamp(18px, 4vw, 40px);

  --shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.9);
  --ring: 0 0 0 3px rgba(60, 232, 173, 0.25);

  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

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

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 16.5px;
  line-height: 1.65;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* faint top glow so the page does not read as flat black */
body::before {
  content: "";
  position: fixed;
  inset: -20% 0 auto 0;
  height: 70vh;
  background:
    radial-gradient(60% 60% at 50% 0%, rgba(60, 232, 173, 0.10), transparent 70%),
    radial-gradient(45% 45% at 85% 10%, rgba(90, 169, 255, 0.08), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); position: relative; z-index: 1; }

h1, h2, h3, h4 { line-height: 1.14; letter-spacing: -0.025em; margin: 0; font-weight: 680; }
h1 { font-size: clamp(2.1rem, 6.2vw, 3.9rem); }
h2 { font-size: clamp(1.5rem, 3.6vw, 2.3rem); }
h3 { font-size: clamp(1.05rem, 2vw, 1.22rem); letter-spacing: -0.015em; }
p { margin: 0 0 1em; }

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

code, kbd { font-family: var(--mono); font-size: 0.92em; }

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

.site-header {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(7, 10, 14, 0.78);
  border-bottom: 1px solid var(--line-soft);
}
.site-header .wrap { display: flex; align-items: center; gap: 18px; min-height: 66px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 720; letter-spacing: -0.02em; color: var(--fg); font-size: 15.5px; }
.brand:hover { text-decoration: none; }
/*
 * The mark: B, A, F, C — the initials of "Buy Anything From China" and the letters of the domain.
 *
 * Each letter is coloured from the `--bl` custom property the generator writes inline, so the four
 * colours live in `lib/brand.js` and the stylesheet only decides weight, size and rhythm. That keeps
 * one source of truth for the palette: the favicon, the share card, the header and the footer all
 * read the same four values.
 *
 * The negative letter-spacing pulls the four letters into a single unit rather than four separate
 * glyphs — at this size they have to read as one mark, or the eye parses "B A F C" as a word.
 */
.brand .mark {
  display: inline-flex; align-items: baseline; gap: 0;
  flex: none; font-weight: 850; font-size: 20px; line-height: 1;
  letter-spacing: -0.055em; padding-right: 2px;
}
.brand .mark b, .mark-inline b, .monogram b { color: var(--bl); font-weight: inherit; }
.brand .mark b { text-shadow: 0 0 14px color-mix(in srgb, var(--bl) 45%, transparent); }
.brand small { display: block; font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg-mute); font-weight: 600; }

/* The wordmark: a mark plus the plain name, for places with room for both. */
.wordmark { display: inline-flex; align-items: baseline; gap: 9px; color: inherit; font-weight: 700; }
.wordmark:hover { text-decoration: none; }
.mark-inline { display: inline-flex; letter-spacing: -0.055em; font-weight: 850; }

/* The monogram tile, for places with no room for the name. */
.monogram {
  display: inline-flex; align-items: baseline; justify-content: center;
  background: linear-gradient(145deg, #0d1620, #16232f);
  border-radius: 9px; font-weight: 850; letter-spacing: -0.05em;
}
.monogram-sm { padding: 3px 7px; font-size: 13px; }
.monogram-md { padding: 5px 10px; font-size: 17px; }
.monogram-lg { padding: 8px 14px; font-size: 24px; }
.nav { display: flex; gap: 22px; margin-left: auto; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.nav a { color: var(--fg-dim); font-size: 14.5px; font-weight: 500; }
.nav a:hover { color: var(--fg); text-decoration: none; }
@media (max-width: 860px) { .nav .nav-hide { display: none; } }
/* On a phone the wordmark, language switcher and CTA are the only things that
   matter; the tagline underneath is the first thing to go. */
@media (max-width: 620px) {
  .site-header .wrap { min-height: 60px; gap: 12px; }
  .brand small { display: none; }
  .nav { margin-left: auto; gap: 10px; flex-wrap: nowrap; }
  .nav .btn-sm { padding: 8px 13px; font-size: 13px; }
}
@media (max-width: 360px) {
  .brand > span:last-child { display: none; }
}

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

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 22px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--panel-2); color: var(--fg);
  font: inherit; font-weight: 620; font-size: 15px; cursor: pointer;
  transition: transform 0.14s ease, border-color 0.14s ease, background 0.14s ease;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { text-decoration: none; border-color: #2c3d52; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: var(--accent); color: var(--accent-ink); border-color: transparent;
  box-shadow: 0 14px 34px -18px rgba(60, 232, 173, 0.8);
}
.btn-primary:hover { background: #4ff0b8; border-color: transparent; }
.btn-ghost { background: transparent; }
.btn-lg { padding: 16px 30px; font-size: 16.5px; }
.btn-sm { padding: 9px 16px; font-size: 13.5px; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; transform: none; }

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

.hero { padding: clamp(56px, 10vw, 118px) 0 clamp(40px, 6vw, 72px); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 6px 14px 6px 8px; border-radius: 999px;
  background: var(--accent-soft); border: 1px solid rgba(60, 232, 173, 0.22);
  color: #9df3d4; font-size: 12.5px; font-weight: 600; letter-spacing: 0.04em;
  margin-bottom: 26px;
}
.eyebrow b { background: var(--accent); color: var(--accent-ink); border-radius: 999px; padding: 2px 9px; font-size: 11.5px; letter-spacing: 0.08em; }
.hero h1 { max-width: 17ch; }
.hero h1 .hl { color: var(--accent); }
.hero .lede { font-size: clamp(1.02rem, 2.1vw, 1.24rem); color: var(--fg-dim); max-width: 62ch; margin: 24px 0 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-note { margin-top: 22px; color: var(--fg-mute); font-size: 14px; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.hero-note span { display: inline-flex; align-items: center; gap: 7px; }
.tick { color: var(--accent); font-weight: 700; }

.hero-grid { display: grid; gap: 48px; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); align-items: start; }
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; gap: 34px; } }

/* capability card */
.cap-card {
  background: linear-gradient(180deg, var(--panel), var(--bg-soft));
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 24px; box-shadow: var(--shadow);
}
.cap-card h3 { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg-mute); font-weight: 700; }
.cap-list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 3px; }
.cap-list li {
  display: flex; align-items: baseline; gap: 12px;
  padding: 11px 0; border-bottom: 1px dashed var(--line-soft);
  font-size: 14.6px; color: var(--fg-dim);
}
.cap-list li:last-child { border-bottom: none; }
.cap-list b { color: var(--fg); font-weight: 620; }
.cap-list .n { font-family: var(--mono); font-size: 11.5px; color: var(--fg-mute); min-width: 20px; }
.cap-foot { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line-soft); font-size: 13.5px; color: var(--fg-mute); }

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

section { position: relative; z-index: 1; }
.band { padding: clamp(56px, 8vw, 92px) 0; border-top: 1px solid var(--line-soft); }
.band-head { max-width: 66ch; margin-bottom: 44px; }
.band-head p { color: var(--fg-dim); margin-top: 14px; font-size: 16.5px; }
.kicker { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); font-weight: 700; margin-bottom: 14px; }

.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 950px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px;
}
.card h3 { margin-bottom: 10px; }
.card p { color: var(--fg-dim); font-size: 15px; margin: 0; }
.card .icon {
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  background: var(--panel-2); border: 1px solid var(--line); margin-bottom: 16px;
  font-size: 18px;
}

/* steps */
.steps { display: grid; gap: 0; counter-reset: step; }
.step {
  display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 20px;
  padding: 22px 0; border-top: 1px solid var(--line-soft);
}
.step:last-child { border-bottom: 1px solid var(--line-soft); }
.step .num {
  counter-increment: step; font-family: var(--mono); font-size: 12px; font-weight: 700;
  color: var(--accent); letter-spacing: 0.06em; padding-top: 5px;
}
.step .num::before { content: counter(step, decimal-leading-zero); }
.step h3 { font-size: 17px; margin-bottom: 6px; }
.step p { color: var(--fg-dim); font-size: 15px; margin: 0; max-width: 78ch; }
.step .tag { display: inline-block; margin-left: 10px; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-mute); border: 1px solid var(--line); border-radius: 999px; padding: 2px 9px; vertical-align: 2px; }

/* split compare table */
.compare { width: 100%; border-collapse: collapse; font-size: 15px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.compare th, .compare td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.compare th { background: var(--panel-2); font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-mute); font-weight: 700; }
.compare tr:last-child td { border-bottom: none; }
.compare td:first-child { color: var(--fg-mute); }
.compare .yes { color: var(--accent); font-weight: 600; }
.compare .no { color: var(--fg-mute); }

/* faq */
details.faq { border-top: 1px solid var(--line-soft); padding: 4px 0; }
details.faq:last-of-type { border-bottom: 1px solid var(--line-soft); }
details.faq summary {
  cursor: pointer; padding: 18px 40px 18px 0; font-weight: 620; font-size: 16.5px;
  list-style: none; position: relative; color: var(--fg);
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  color: var(--accent); font-size: 22px; font-weight: 400; line-height: 1;
}
details.faq[open] summary::after { content: "–"; }
details.faq .answer { padding: 0 40px 22px 0; color: var(--fg-dim); font-size: 15.5px; max-width: 84ch; }
details.faq .answer p:last-child { margin-bottom: 0; }

/* ---------------------------------------------------------------- form */

.form-shell {
  background: linear-gradient(180deg, var(--panel), var(--bg-soft));
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(22px, 4vw, 40px); box-shadow: var(--shadow);
}
.form-head { display: flex; flex-wrap: wrap; gap: 16px; align-items: baseline; justify-content: space-between; margin-bottom: 8px; }
.form-progress { font-size: 12.5px; color: var(--fg-mute); font-family: var(--mono); }
.bar { height: 3px; border-radius: 999px; background: var(--line-soft); overflow: hidden; margin: 18px 0 30px; }
.bar > i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--blue)); transition: width 0.3s ease; }

fieldset { border: none; margin: 0 0 30px; padding: 0; }
fieldset[hidden] { display: none; }
legend { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg-mute); font-weight: 700; padding: 0 0 16px; }

.field { display: grid; gap: 7px; margin-bottom: 18px; }
.field > label { font-size: 13.5px; font-weight: 620; color: var(--fg); display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.field .req { color: var(--accent); }
.field .hint { font-size: 12.5px; color: var(--fg-mute); font-weight: 450; }
.field-row { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 640px) { .field-row { grid-template-columns: 1fr; } }

input[type="text"], input[type="email"], input[type="tel"], input[type="url"],
input[type="date"], input[type="number"], select, textarea {
  width: 100%; padding: 12px 14px; font: inherit; font-size: 15.5px;
  color: var(--fg); background: #0a0f15;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  transition: border-color 0.14s ease, box-shadow 0.14s ease;
  appearance: none;
}
select {
  background-image: linear-gradient(45deg, transparent 50%, var(--fg-mute) 50%), linear-gradient(135deg, var(--fg-mute) 50%, transparent 50%);
  background-position: calc(100% - 19px) 50%, calc(100% - 14px) 50%;
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat;
  padding-right: 38px;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: rgba(60, 232, 173, 0.6); box-shadow: var(--ring); }
input::placeholder, textarea::placeholder { color: #56677c; }
textarea { resize: vertical; min-height: 104px; line-height: 1.6; }
input[type="date"] { color-scheme: dark; }

/* choice chips */
.choices { display: flex; flex-wrap: wrap; gap: 9px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--panel-2); font-size: 14.5px; color: var(--fg-dim); cursor: pointer;
  transition: all 0.14s ease; white-space: nowrap;
}
.choice span:hover { border-color: #2c3d52; color: var(--fg); }
.choice input:checked + span { background: var(--accent-soft); border-color: rgba(60, 232, 173, 0.55); color: #b6f7dd; font-weight: 600; }
.choice input:focus-visible + span { box-shadow: var(--ring); }

/* dropzone */
.dropzone {
  border: 1.5px dashed #2a3a4d; border-radius: var(--radius); padding: 28px 22px;
  text-align: center; cursor: pointer; background: #0a0f15;
  transition: border-color 0.16s ease, background 0.16s ease;
}
.dropzone:hover, .dropzone.is-over { border-color: var(--accent); background: rgba(60, 232, 173, 0.05); }
.dropzone .dz-icon { font-size: 26px; margin-bottom: 10px; opacity: 0.9; }
.dropzone b { display: block; font-size: 15.5px; margin-bottom: 4px; }
.dropzone p { color: var(--fg-mute); font-size: 13px; margin: 0; }
#fileList { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
#fileList li {
  display: flex; align-items: center; gap: 12px;
  background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 10px 13px; font-size: 14px;
}
#fileList .fname { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#fileList .fsize { color: var(--fg-mute); font-size: 12.5px; font-family: var(--mono); flex: none; }
#fileList .fdrop { background: none; border: none; color: var(--fg-mute); cursor: pointer; font-size: 18px; line-height: 1; padding: 2px 6px; border-radius: 6px; }
#fileList .fdrop:hover { color: var(--danger); background: rgba(255, 122, 122, 0.1); }

/* checkbox */
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; color: var(--fg-dim); cursor: pointer; }
.check input { width: 19px; height: 19px; margin-top: 3px; accent-color: var(--accent); flex: none; }

/* submit row */
.form-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; padding-top: 8px; border-top: 1px solid var(--line-soft); margin-top: 6px; }
.form-actions .note { color: var(--fg-mute); font-size: 13px; flex: 1; min-width: 200px; }

/* errors + status */
.field-error { color: var(--danger); font-size: 13px; display: none; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: rgba(255, 122, 122, 0.65); }
.field.has-error .field-error { display: block; }
.form-status { margin-top: 18px; padding: 14px 16px; border-radius: var(--radius-sm); font-size: 14.5px; display: none; }
.form-status.show { display: block; }
.form-status.err { background: rgba(255, 122, 122, 0.1); border: 1px solid rgba(255, 122, 122, 0.35); color: #ffc7c7; }
.form-status.ok { background: rgba(60, 232, 173, 0.1); border: 1px solid rgba(60, 232, 173, 0.35); color: #b6f7dd; }

/* steps nav */
.mini-steps { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 24px; }
.mini-steps button {
  flex: 1; min-width: 118px; text-align: left; padding: 10px 12px;
  background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius-sm);
  color: var(--fg-mute); font: inherit; font-size: 12.5px; cursor: pointer;
  transition: all 0.15s ease;
}
.mini-steps button b { display: block; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em; color: inherit; opacity: 0.75; margin-bottom: 3px; }
.mini-steps button[aria-current="true"] { border-color: rgba(60, 232, 173, 0.5); background: var(--accent-soft); color: #b6f7dd; }
.mini-steps button.done { color: var(--fg-dim); }
.mini-steps button:hover { color: var(--fg); }
@media (max-width: 720px) { .mini-steps { display: none; } .form-progress { display: block; } }

/* ---------------------------------------------------------------- misc blocks */

.trust { display: grid; gap: 18px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 950px) { .trust { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .trust { grid-template-columns: 1fr; } }
.trust div { padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.trust b { display: block; font-size: 15.5px; margin-bottom: 5px; }
.trust span { color: var(--fg-dim); font-size: 14px; }

.quote { border-left: 2px solid var(--accent); padding: 4px 0 4px 22px; margin: 34px 0; }
.quote p { font-size: clamp(1.05rem, 2.2vw, 1.32rem); color: var(--fg); font-style: normal; max-width: 74ch; }
.quote cite { color: var(--fg-mute); font-size: 14px; font-style: normal; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.chips span { font-size: 13px; color: var(--fg-dim); background: var(--panel-2); border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; }
.chips span:hover { border-color: #2c3d52; color: var(--fg); }

.cta-band {
  border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(28px, 5vw, 52px);
  background:
    radial-gradient(90% 140% at 12% 0%, rgba(60, 232, 173, 0.13), transparent 60%),
    linear-gradient(180deg, var(--panel), var(--bg-soft));
  display: flex; flex-wrap: wrap; gap: 28px; align-items: center; justify-content: space-between;
}
.cta-band h2 { max-width: 24ch; }
.cta-band p { color: var(--fg-dim); margin: 12px 0 0; max-width: 52ch; }

/* prose (legal + guide pages) */
.prose { max-width: 78ch; }
.prose h2 { margin: 44px 0 14px; font-size: 1.35rem; }
.prose h3 { margin: 28px 0 10px; }
.prose ul, .prose ol { color: var(--fg-dim); padding-left: 22px; margin: 0 0 1.1em; }
.prose li { margin-bottom: 7px; }
.prose p, .prose li { color: var(--fg-dim); }
.prose strong { color: var(--fg); }
.prose table { margin: 22px 0; }
.prose .lead { font-size: 1.1rem; color: var(--fg); }
.prose .meta { color: var(--fg-mute); font-size: 13.5px; margin-bottom: 34px; }

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

.site-footer { border-top: 1px solid var(--line-soft); padding: 56px 0 40px; margin-top: 60px; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 34px; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .foot-grid { grid-template-columns: 1fr; } }
.site-footer h4 { font-size: 11.5px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--fg-mute); margin-bottom: 14px; font-weight: 700; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.site-footer ul a { color: var(--fg-dim); font-size: 14.5px; }
.site-footer ul a:hover { color: var(--fg); }
.site-footer .about p { color: var(--fg-mute); font-size: 14px; max-width: 40ch; }
.foot-bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line-soft); display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; color: var(--fg-mute); font-size: 13px; }

/* ---------------------------------------------------------------- thank-you */

.thanks { padding: clamp(50px, 9vw, 100px) 0; }
.ticket {
  border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--panel);
  padding: clamp(26px, 5vw, 46px); box-shadow: var(--shadow); max-width: 760px;
}
.ticket .id {
  font-family: var(--mono); font-size: clamp(1.4rem, 4vw, 2rem); font-weight: 700;
  letter-spacing: 0.02em; color: var(--accent); margin: 6px 0 20px; word-break: break-all;
}
.ticket dl { display: grid; grid-template-columns: 190px 1fr; gap: 10px 20px; margin: 22px 0 0; font-size: 15px; }
.ticket dt { color: var(--fg-mute); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; padding-top: 3px; }
.ticket dd { margin: 0; color: var(--fg); }
@media (max-width: 620px) { .ticket dl { grid-template-columns: 1fr; gap: 4px 0; } .ticket dt:not(:first-of-type) { margin-top: 12px; } }

.big-tick { width: 54px; height: 54px; border-radius: 50%; background: var(--accent-soft); border: 1px solid rgba(60, 232, 173, 0.4); display: grid; place-items: center; color: var(--accent); font-size: 26px; margin-bottom: 22px; }

/* tracking form */
.track { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.track input { flex: 1; min-width: 190px; }
.timeline { list-style: none; margin: 22px 0 0; padding: 0; }
.timeline li { padding: 10px 0 10px 22px; border-left: 1px solid var(--line); position: relative; font-size: 14.5px; color: var(--fg-dim); }
.timeline li::before { content: ""; position: absolute; left: -4.5px; top: 17px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.timeline li time { display: block; font-family: var(--mono); font-size: 11.5px; color: var(--fg-mute); }

/*
 * The seven-step progress pills shown in the tracking result.
 *
 * Deliberately separate from `.steps`, which is the intake form's vertical numbered grid — the
 * widget initially reused that class and inherited the wrong layout.
 */
.track-steps { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.track-steps li { font-size: 12px; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--fg-mute); }
.track-steps li.done { border-color: var(--ok-line, #1d4a33); color: var(--ok, #3ecf8e); }
.track-steps li.current { border-color: var(--accent); color: var(--fg); background: var(--panel2, rgba(77,163,255,.12)); font-weight: 600; }

.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; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--accent); color: var(--accent-ink); padding: 10px 16px; border-radius: 0 0 10px 0; z-index: 100; }
.skip-link:focus { left: 0; }

/* ---------------------------------------------------------- language switcher */

.lang-switch { position: relative; }
.lang-switch > summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--panel-2); color: var(--fg-dim); font-size: 13.5px; font-weight: 550;
  white-space: nowrap; transition: border-color 0.14s ease, color 0.14s ease;
}
.lang-switch > summary::-webkit-details-marker { display: none; }
.lang-switch > summary:hover { border-color: #2c3d52; color: var(--fg); }
.lang-switch[open] > summary { border-color: rgba(60, 232, 173, 0.5); color: var(--fg); }
.lang-switch .globe { font-size: 14px; line-height: 1; }
.lang-menu {
  position: absolute; top: calc(100% + 8px); inset-inline-end: 0; z-index: 60;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 10px; width: min(680px, calc(100vw - 28px));
  max-height: min(72vh, 560px); overflow-y: auto;
}
.lang-group + .lang-group { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line-soft); }
.lang-group-label {
  display: block; font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--fg-mute); font-weight: 700; margin-bottom: 8px; padding-inline-start: 2px;
}
.lang-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; }
.lang-menu a {
  display: block; padding: 7px 10px; border-radius: 8px; font-size: 13.5px;
  color: var(--fg-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.lang-menu a:hover { background: var(--panel-2); color: var(--fg); text-decoration: none; }
.lang-menu a.is-current { color: var(--accent); font-weight: 700; background: var(--accent-soft); }
.lang-index-link {
  display: block; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line-soft);
  color: var(--accent) !important; font-size: 13px; font-weight: 600;
}
@media (max-width: 760px) { .lang-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) {
  .lang-current { display: none; }
  .lang-menu { inset-inline-end: auto; inset-inline-start: 0; width: min(420px, calc(100vw - 28px)); }
}

/* notice shown on translated pages that points at the English long-form guides */
.lang-notice {
  border-bottom: 1px solid var(--line-soft);
  background: var(--panel);
  color: var(--fg-dim); font-size: 14px;
  padding: 12px var(--gutter);
  text-align: center;
  position: relative; z-index: 2;
}
.lang-notice a { white-space: nowrap; }

/* language index page */
.lang-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.lang-table th, .lang-table td { padding: 10px 14px; text-align: start; border-bottom: 1px solid var(--line-soft); }
.lang-table th { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-mute); }
.lang-table td a { font-weight: 550; }
.lang-table .native { color: var(--fg-mute); font-size: 13.5px; }
.lang-tier-head { margin: 40px 0 6px; }
.lang-tier-head p { color: var(--fg-dim); max-width: 74ch; }
.tier-pill {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line);
  color: var(--fg-mute); margin-inline-start: 10px; vertical-align: 3px;
}

/* ------------------------------------------------------------------ RTL pass */

[dir="rtl"] body { letter-spacing: 0; }
[dir="rtl"] .quote { border-left: none; border-right: 2px solid var(--accent); padding: 4px 22px 4px 0; }
[dir="rtl"] .timeline li { border-left: none; border-right: 1px solid var(--line); padding: 10px 22px 10px 0; }
[dir="rtl"] .timeline li::before { left: auto; right: -4.5px; }
[dir="rtl"] details.faq summary { padding: 18px 0 18px 40px; }
[dir="rtl"] details.faq summary::after { right: auto; left: 6px; }
[dir="rtl"] details.faq .answer { padding: 0 0 22px 40px; }
[dir="rtl"] .prose ul, [dir="rtl"] .prose ol { padding-left: 0; padding-right: 22px; }
[dir="rtl"] #fileList .fname { direction: ltr; text-align: right; }
[dir="rtl"] .skip-link { left: auto; right: -9999px; }
[dir="rtl"] .skip-link:focus { right: 0; left: auto; }

/* ------------------------------------------------------------------ Q&A */

.wrap-narrow { max-width: 880px; }
.qa-crumbs { margin-bottom: 22px; }
.qa-crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--fg-mute); }
.qa-crumbs li + li::before { content: "/"; margin-inline-end: 8px; color: var(--line); }
.qa-crumbs a { color: var(--fg-mute); }
.qa-crumbs a:hover { color: var(--fg); }
.qa-crumbs [aria-current] { color: var(--fg-dim); }

.qa-head { margin-bottom: 26px; }
.qa-head h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
.qa-answer { margin: 0 0 30px; }
.qa-answer p { font-size: 1.06rem; color: var(--fg); max-width: 74ch; }
.qa-lead { font-size: 1.05rem; color: var(--fg-dim); max-width: 76ch; }
.qa-answer .qa-lead { color: var(--fg-mute); font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 8px; }

.qa-confidence { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: var(--fg-mute); font-size: 13px; margin: 10px 0 0; }
.qa-badge {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line);
}
.qa-badge-5 { color: #b6f7dd; background: var(--accent-soft); border-color: rgba(60,232,173,0.4); }
.qa-badge-4 { color: #b6f7dd; background: var(--accent-soft); border-color: rgba(60,232,173,0.28); }
.qa-badge-3 { color: var(--amber); background: rgba(255,190,92,0.1); border-color: rgba(255,190,92,0.3); }
.qa-badge-2 { color: var(--danger); background: rgba(255,122,122,0.1); border-color: rgba(255,122,122,0.3); }

.qa-block { margin: 40px 0; }
.qa-block h2 { font-size: 1.2rem; margin-bottom: 16px; }
.qa-sources { margin: 34px 0; padding-top: 20px; border-top: 1px solid var(--line-soft); }
.qa-sources h3 { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-mute); margin-bottom: 12px; }
.qa-sources ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.qa-sources li { font-size: 14px; color: var(--fg-mute); }
.qa-sources a { color: var(--fg-dim); }

.qa-pitfalls { color: var(--fg-dim); padding-left: 22px; }
.qa-pitfalls li { margin-bottom: 9px; max-width: 80ch; }

.qa-related { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.qa-related li { font-size: 15px; }
.qa-related-lg { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 760px) { .qa-related-lg { grid-template-columns: 1fr; } }
.qa-meta { color: var(--fg-mute); font-size: 12.5px; margin-inline-start: 6px; }

.qa-table td:first-child { width: 34%; color: var(--fg-mute); }
.qa-table-links td:first-child { width: 100%; color: var(--fg); }
.qa-cluster { margin-bottom: 28px; }
.qa-cluster h3 { font-size: 15px; margin-bottom: 12px; }
/* consumer signpost on the home page — keeps the B2B hero intact while giving an
   individual buyer an obvious route in */
.ce-signpost {
  display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between;
  border: 1px solid var(--line); border-left: 3px solid var(--accent);
  border-radius: var(--radius); padding: clamp(20px, 3vw, 28px);
  background: linear-gradient(180deg, var(--panel), var(--bg-soft));
}
.ce-signpost h2 { font-size: clamp(1.05rem, 2.4vw, 1.35rem); max-width: 26ch; }
.ce-signpost p { color: var(--fg-dim); font-size: 15px; margin: 10px 0 0; max-width: 62ch; }
@media (max-width: 620px) { .ce-signpost { gap: 16px; } .ce-signpost .btn { width: 100%; } }
[dir="rtl"] .ce-signpost { border-left: 1px solid var(--line); border-right: 3px solid var(--accent); }
/* ------------------------------------------------------- audience switcher */

/*
 * The audience switch is the single most important control on the site: a consumer
 * who lands on the manufacturing pages and cannot see the way out simply leaves.
 * So it is a floating card with real contrast rather than a quiet nav chip — it
 * should read as a door, not as another menu item.
 */
.mode-switch {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 9px 15px; border-radius: 999px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  color: var(--fg);
  font-size: 13.5px; font-weight: 620; white-space: nowrap;
  box-shadow: 0 6px 18px -10px rgba(0, 0, 0, 0.7);
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.mode-switch:hover {
  text-decoration: none; transform: translateY(-1px);
  border-color: rgba(60, 232, 173, 0.55);
  box-shadow: 0 10px 26px -12px rgba(60, 232, 173, 0.55);
}
.mode-switch .mode-current { color: var(--fg-mute); font-weight: 500; }
.mode-switch .mode-target { color: var(--accent); font-weight: 700; }

@media (max-width: 1080px) { .mode-switch .mode-current { display: none; } }
@media (max-width: 640px) {
  .mode-switch { padding: 9px 12px; font-size: 12.5px; }
  .mode-switch .mode-target { font-size: 0; }
  .mode-switch .mode-target::before { content: "\21C4"; font-size: 16px; }
}

.site-header[data-mode="c"] { border-bottom-color: rgba(18, 163, 122, 0.35); }

/* ------------------------------------------------- floating audience card */

/*
 * Shown once, at the bottom of a landing page, to a visitor who has not chosen a
 * side yet. A link shared into a chat app lands someone on the business home; this
 * tells them the consumer side exists without them having to hunt for it.
 */
.mode-card {
  position: fixed; inset-inline-end: 20px; bottom: 20px; z-index: 55;
  width: min(340px, calc(100vw - 32px));
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 24px 60px -26px rgba(0, 0, 0, 0.85);
  padding: 18px;
}
.mode-card h3 { font-size: 15px; margin-bottom: 6px; }
.mode-card p { font-size: 13.5px; color: var(--fg-dim); margin: 0 0 14px; line-height: 1.5; }
.mode-card .row { display: flex; gap: 8px; flex-wrap: wrap; }
.mode-card .row .btn { flex: 1; min-width: 0; font-size: 13px; padding: 10px 12px; }
.mode-card .dismiss {
  position: absolute; inset-inline-end: 10px; top: 8px;
  background: none; border: none; color: var(--fg-mute); cursor: pointer;
  font-size: 18px; line-height: 1; padding: 4px 7px; border-radius: 7px;
}
.mode-card .dismiss:hover { color: var(--fg); background: var(--panel-2); }
@media (max-width: 640px) {
  .mode-card { inset-inline: 12px; bottom: 12px; width: auto; }
}

/* --------------------------------------------------------- phone / share */

/*
 * The site gets shared as links into chat apps, so it has to look right in a
 * phone-width browser and inside an in-app webview with no browser chrome.
 */
@media (max-width: 480px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  h1 { font-size: clamp(1.75rem, 8.5vw, 2.4rem); }
  h2 { font-size: clamp(1.3rem, 6vw, 1.7rem); }
  .hero { padding-top: 34px; }
  .band { padding: 46px 0; }
  .band-head { margin-bottom: 30px; }
  .form-shell { padding: 20px 16px; }
  .card { padding: 18px; }
  .hero-actions { gap: 10px; }
  .hero-actions .btn { width: 100%; }
  .btn-lg { padding: 14px 22px; font-size: 15.5px; }
  .mode-card .row .btn { width: auto; }
  .lang-menu { width: calc(100vw - 24px); }
}

/* In-app webviews (WhatsApp, Messenger, WeChat, Line) and iOS safe areas. */
@supports (padding: max(0px)) {
  .site-header .wrap {
    padding-inline: max(var(--gutter), env(safe-area-inset-left), env(safe-area-inset-right));
  }
  .site-footer { padding-bottom: max(40px, env(safe-area-inset-bottom)); }
  .mode-card { bottom: max(20px, env(safe-area-inset-bottom)); }
}

/* Decorative radial glows are the first thing to drop on a metered connection. */
@media (prefers-reduced-data: reduce) {
  body::before { display: none; }
}

@media print {
  body { background: #fff; color: #000; }
  .site-header, .site-footer, .hero-actions, .lang-switch, .lang-notice { display: none; }
}
