/* ==========================================================================
   China Pins Factory — B2B Wholesale Custom Lapel Pins
   Design system: CSS custom properties, ink palette pinned to :root.
   Graphite and porcelain palettes are kept as alternates in sections 2 and 3.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens — Skin A: Deep ink & champagne gold (default)
   -------------------------------------------------------------------------- */
:root,
[data-theme="ink"] {
  --ink-900: #06171E;
  --ink-800: #0B2733;
  --ink-700: #123B4B;
  --ink-600: #1C5468;

  --accent-700: #A8863F;
  --accent-600: #C8A45C;
  --accent-500: #D9BC7E;
  --on-accent: #06171E;
  --accent-300: #EAD7A8;
  --accent-tint: #FBF6EA;

  --surface: #FFFFFF;
  --surface-2: #F7F5F0;
  --surface-3: #EDEBE4;

  --text: #12222A;
  --text-2: #4E5F68;
  --text-3: #7E8B92;

  --line: rgba(9, 32, 42, .12);
  --line-2: rgba(9, 32, 42, .22);
  --line-dark: rgba(255, 255, 255, .12);

  --on-dark: #FFFFFF;
  --on-dark-2: rgba(255, 255, 255, .70);
  --on-dark-3: rgba(255, 255, 255, .48);

  --shadow-sm: 0 1px 2px rgba(9, 32, 42, .05);
  --shadow-md: 0 10px 28px rgba(9, 32, 42, .09);
  --shadow-lg: 0 24px 56px rgba(9, 32, 42, .16);
}

/* --------------------------------------------------------------------------
   2. Tokens — Skin B: Graphite & steel blue
   -------------------------------------------------------------------------- */
[data-theme="graphite"] {
  --ink-900: #11151A;
  --ink-800: #1C2126;
  --ink-700: #262E35;
  --ink-600: #35414A;

  --accent-700: #3A6679;
  --accent-600: #4A7C94;
  --accent-500: #6FA3BC;
  --on-accent: #FFFFFF;
  --accent-300: #A9CBDD;
  --accent-tint: #EEF4F7;

  --surface: #FFFFFF;
  --surface-2: #F4F6F7;
  --surface-3: #E7EBEE;

  --text: #191E22;
  --text-2: #4C555C;
  --text-3: #7C858C;

  --line: rgba(17, 21, 26, .12);
  --line-2: rgba(17, 21, 26, .22);
  --line-dark: rgba(255, 255, 255, .12);

  --on-dark: #FFFFFF;
  --on-dark-2: rgba(255, 255, 255, .70);
  --on-dark-3: rgba(255, 255, 255, .48);

  --shadow-sm: 0 1px 2px rgba(17, 21, 26, .05);
  --shadow-md: 0 10px 28px rgba(17, 21, 26, .09);
  --shadow-lg: 0 24px 56px rgba(17, 21, 26, .16);
}

/* --------------------------------------------------------------------------
   3. Tokens — Skin C: Porcelain & copper
   -------------------------------------------------------------------------- */
[data-theme="porcelain"] {
  --ink-900: #1C1411;
  --ink-800: #2A1E1A;
  --ink-700: #3A2A24;
  --ink-600: #52403A;

  --accent-700: #96421F;
  --accent-600: #B4572F;
  --accent-500: #D0794C;
  --on-accent: #FFFFFF;
  --accent-300: #EBB694;
  --accent-tint: #FBF1EA;

  --surface: #FFFFFF;
  --surface-2: #FAF7F3;
  --surface-3: #F1EAE3;

  --text: #231A16;
  --text-2: #5C4C45;
  --text-3: #8B7C74;

  --line: rgba(35, 26, 22, .12);
  --line-2: rgba(35, 26, 22, .22);
  --line-dark: rgba(255, 255, 255, .12);

  --on-dark: #FFFFFF;
  --on-dark-2: rgba(255, 255, 255, .70);
  --on-dark-3: rgba(255, 255, 255, .48);

  --shadow-sm: 0 1px 2px rgba(35, 26, 22, .05);
  --shadow-md: 0 10px 28px rgba(35, 26, 22, .09);
  --shadow-lg: 0 24px 56px rgba(35, 26, 22, .16);
}

/* --------------------------------------------------------------------------
   4. Reset & base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
svg { display: block; }
a { color: inherit; text-decoration: none; transition: color .2s ease, background-color .2s ease, border-color .2s ease, opacity .2s ease, transform .2s ease; }
ul, ol { list-style: none; }
button { font-family: inherit; }
table { border-collapse: collapse; width: 100%; }

::selection { background: var(--accent-600); color: var(--on-accent); }

:focus-visible {
  outline: 2px solid var(--accent-600);
  outline-offset: 3px;
  border-radius: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 2000;
  background: var(--ink-800);
  color: #fff;
  padding: 12px 20px;
  border-radius: 0 0 8px 0;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

.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;
}

/* --------------------------------------------------------------------------
   5. Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5 {
  font-family: 'Manrope', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.02em;
  color: var(--ink-800);
}

h1 { font-size: clamp(2.3rem, 5vw, 3.9rem); }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.6rem); }
h3 { font-size: clamp(1.1rem, 1.5vw, 1.3rem); letter-spacing: -.01em; }
h4 { font-size: 1.02rem; letter-spacing: 0; }

p { color: var(--text-2); }

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Manrope', sans-serif;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent-700);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: '';
  width: 26px;
  height: 1px;
  background: currentColor;
  opacity: .6;
}
.eyebrow--light { color: var(--accent-500); }

.lede {
  font-size: 1.08rem;
  line-height: 1.72;
  color: var(--text-2);
  max-width: 62ch;
}
.lede--light { color: var(--on-dark-2); }

.section { padding: 96px 0; }
.section--tight { padding: 64px 0; }
.section--paper { background: var(--surface-2); }
.section--ink { background: var(--ink-800); color: var(--on-dark); }
.section--ink h2, .section--ink h3, .section--ink h4 { color: var(--on-dark); }
.section--ink p { color: var(--on-dark-2); }

.section-head {
  max-width: 760px;
  margin-bottom: 52px;
}
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head--center .lede { margin: 0 auto; }
.section-head h2 { margin-bottom: 16px; }
.section-head--center .eyebrow::before { display: none; }

.rule {
  height: 1px;
  background: var(--line);
  border: 0;
  margin: 0;
}
.rule--accent { background: linear-gradient(90deg, var(--accent-600), transparent); height: 2px; }

/* --------------------------------------------------------------------------
   6. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: 'Manrope', sans-serif;
  font-size: .94rem;
  font-weight: 700;
  letter-spacing: .01em;
  padding: 14px 26px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  text-align: center;
  line-height: 1.2;
}
.btn--primary { background: var(--accent-600); color: var(--on-accent); box-shadow: 0 6px 18px rgba(200, 164, 92, .28); }
.btn--primary:hover { background: var(--accent-700); color: var(--on-accent); transform: translateY(-2px); box-shadow: 0 10px 26px rgba(200, 164, 92, .36); }
.btn--ink { background: var(--ink-800); color: #fff; }
.btn--ink:hover { background: var(--ink-900); transform: translateY(-2px); }
.btn--outline { background: transparent; border-color: var(--line-2); color: var(--ink-800); }
.btn--outline:hover { border-color: var(--ink-800); background: var(--ink-800); color: #fff; }
/* The outline button is built for light surfaces. On a dark panel the
   ink text disappears into the background, so give it the light
   treatment that .btn--ghost already uses in the same context. */
.section--ink .btn--outline {
  background: transparent;
  border-color: rgba(255, 255, 255, .3);
  color: #fff;
}
.section--ink .btn--outline:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, .08);
  color: #fff;
}
.btn--light { background: #fff; color: var(--ink-800); }
.btn--light:hover { background: var(--accent-tint); transform: translateY(-2px); }
.btn--ghost { background: transparent; border-color: rgba(255,255,255,.3); color: #fff; }
.btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn--sm { padding: 10px 18px; font-size: .85rem; }
.btn--block { width: 100%; }

/* --------------------------------------------------------------------------
   7. Announcement bar
   -------------------------------------------------------------------------- */
.announce {
  background: var(--ink-900);
  color: var(--on-dark-2);
  font-size: .8rem;
  border-bottom: 1px solid var(--line-dark);
}
.announce__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 44px;
  flex-wrap: nowrap;
}
/* The left group holds six labels. They stay on one line and the contact
   block on the right gives way first, because the email and the phone are
   repeated in the footer of every page and in the mobile action bar. */
.announce__left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: nowrap;
  min-width: 0;
}
.announce__badge {
  display: inline-block;
  background: var(--accent-600);
  color: var(--on-accent);
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 4px;
  flex: none;
}
.announce__left > span:not(.announce__badge) {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}
.announce__left > span:not(.announce__badge)::before {
  content: '';
  flex: none;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--accent-500);
  opacity: .85;
  margin-right: 11px;
}
.announce__right { display: flex; align-items: center; gap: 20px; flex: none; }
.announce a:hover { color: var(--accent-500); }

/* --------------------------------------------------------------------------
   8. Header
   -------------------------------------------------------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 78px;
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand__mark {
  width: 42px; height: 42px;
  border-radius: 9px;
  background: var(--ink-800);
  color: var(--accent-500);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: .95rem;
  letter-spacing: .04em;
  flex-shrink: 0;
}
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 1.14rem;
  letter-spacing: -.02em;
  color: var(--ink-800);
}
.brand__name span { color: var(--accent-700); }
.brand__sub {
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-3);
}

.nav__toggle {
  display: none;
  width: 42px; height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: none;
  cursor: pointer;
  color: var(--ink-800);
  align-items: center;
  justify-content: center;
}
.nav__toggle span { display: block; width: 18px; height: 1.5px; background: currentColor; position: relative; }
.nav__toggle span::before, .nav__toggle span::after {
  content: ''; position: absolute; left: 0; width: 18px; height: 1.5px; background: currentColor;
}
.nav__toggle span::before { top: -5px; }
.nav__toggle span::after { top: 5px; }

.nav__list { display: flex; align-items: center; gap: 26px; }
.nav__list > li { position: relative; }

.nav__link {
  font-size: .92rem;
  font-weight: 600;
  color: var(--text);
  padding: 6px 0;
  position: relative;
  white-space: nowrap;
}
.nav__link::after {
  content: '';
  position: absolute; left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--accent-600);
  transition: width .22s ease;
}
.nav__link:hover, .nav__link[aria-current="page"] { color: var(--ink-800); }
.nav__link:hover::after, .nav__link[aria-current="page"]::after { width: 100%; }

/* A parent entry stays highlighted while one of the pages below it is open,
   so the buyer can see which section of the site they are inside. */
.nav__item.is-active > .nav__link { color: var(--ink-800); }
.nav__item.is-active > .nav__link::after { width: 100%; }

/* The caret opens the submenu on touch screens, where hover does not exist.
   It sits next to the label instead of inside it, because a button inside an
   anchor is invalid markup. On a mouse device the caret is hidden, because
   the pointer opens the menu on its own. */
.nav__caret {
  display: none;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin-left: 1px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--text-3);
  cursor: pointer;
  vertical-align: middle;
  transition: color .18s ease;
}
.nav__caret:hover { color: var(--ink-800); }
.nav__caret-icon {
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translate(-1px, -1px);
  transition: transform .2s ease;
}
.nav__item.is-open > .nav__caret-icon { transform: rotate(-135deg) translate(-1px, -1px); }

/* A device with no pointer cannot hover, so the caret is the only way in. */
@media (hover: none) {
  .nav__caret { display: inline-flex; }
}

.nav__menu {
  margin: 0;
  padding: 8px;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
}
.nav__sublink {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  color: var(--text);
  padding: 9px 12px;
  border-radius: 8px;
  white-space: normal;
}
.nav__sublink:hover { background: var(--surface-2); color: var(--ink-800); }
.nav__sublink[aria-current="page"] { background: var(--accent-tint); color: var(--accent-700); }

/* --------------------------------------------------------------------------
   8.1 Dropdown panel — desktop
   Above 860px the panel floats under its parent label. It opens on hover
   and on keyboard focus, both handled in CSS, so the menu still works
   without the script. The caret adds an explicit open and close on top of
   that, which is what a touch device needs.
   -------------------------------------------------------------------------- */
@media (min-width: 861px) {
  .nav__menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 230px;
    max-width: min(290px, calc(100vw - 32px));
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
    z-index: 40;
  }
  /* Bridges the gap between the label and the panel, so the pointer can
     travel down from the header into the submenu without it closing. */
  .nav__menu::before {
    content: '';
    position: absolute;
    left: 0; right: 0; top: -10px;
    height: 10px;
  }
  .nav__item--group:hover > .nav__menu,
  .nav__item--group:focus-within > .nav__menu,
  .nav__item--group.is-open > .nav__menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  /* A click on the caret closes a panel the pointer is still hovering over,
     so the closed state has to outrank the hover and focus states. It is
     declared last and repeats those selectors to win on specificity. */
  .nav__item--group.is-closed > .nav__menu,
  .nav__item--group.is-closed:hover > .nav__menu,
  .nav__item--group.is-closed:focus-within > .nav__menu {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
  }
  .nav__item--edge > .nav__menu { left: auto; right: 0; }
}

.header__cta { display: flex; align-items: center; gap: 12px; }

/* --------------------------------------------------------------------------
   9. Breadcrumbs
   -------------------------------------------------------------------------- */
.crumbs {
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  font-size: .82rem;
}
.crumbs ol { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 12px 0; }
.crumbs li + li::before { content: '/'; color: var(--text-3); margin-right: 8px; }
.crumbs a { color: var(--text-2); }
.crumbs a:hover { color: var(--accent-700); }
.crumbs [aria-current] { color: var(--text-3); }

/* --------------------------------------------------------------------------
   10. Hero — split layout: copy on the left, full-height image wall on the right
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  background: var(--ink-800);
  color: var(--on-dark);
  overflow: hidden;
  padding: 84px 0 92px;
  isolation: isolate;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 38%, transparent 64%);
  mask-image: linear-gradient(90deg, #000 0%, #000 38%, transparent 64%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  top: -34%; left: -14%;
  width: 820px; height: 820px;
  background: radial-gradient(circle, rgba(255, 255, 255, .07), transparent 62%);
  pointer-events: none;
  z-index: 1;
}

.hero__inner { position: relative; z-index: 2; }
.hero__copy { max-width: min(620px, 45vw); }
.hero h1 {
  color: #fff;
  margin-bottom: 22px;
  font-size: clamp(2.15rem, 3.2vw, 3rem);
  text-wrap: balance;
}
.hero h1 .hl {
  color: var(--accent-500);
  position: relative;
}
.hero__lede {
  font-size: 1.08rem;
  line-height: 1.75;
  color: var(--on-dark-2);
  max-width: 56ch;
  margin-bottom: 32px;
}

.hero__specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line-dark);
  border: 1px solid var(--line-dark);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 34px;
}
.hero__spec { background: rgba(255, 255, 255, .035); padding: 16px 18px; }
.hero__spec dt {
  font-family: 'Manrope', sans-serif;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent-500);
  margin-bottom: 5px;
}
.hero__spec dd { font-size: .92rem; color: var(--on-dark); font-weight: 500; line-height: 1.45; }

.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

.hero__pills { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 38px; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--on-dark-2);
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  padding: 7px 15px;
}
.pill:hover { border-color: var(--accent-600); color: var(--accent-500); }

/* Image wall — edge to edge on the right, faded into the page on the left */
.hero__media {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 48%;
  z-index: 0;
  overflow: hidden;
}
.hero__media picture {
  display: block;
  width: 100%;
  height: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 140px);
  mask-image: linear-gradient(90deg, transparent 0, #000 140px);
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}
.hero__badge {
  position: absolute;
  left: 152px;
  bottom: 38px;
  z-index: 2;
  background: var(--surface);
  color: var(--text);
  border-radius: 12px;
  padding: 18px 22px;
  box-shadow: var(--shadow-lg);
  border-left: 3px solid var(--accent-600);
  min-width: 230px;
}
.hero__badge strong {
  display: block;
  font-family: 'Manrope', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--ink-800);
  line-height: 1.1;
  letter-spacing: -.02em;
}
.hero__badge span { font-size: .82rem; color: var(--text-2); }

/* --------------------------------------------------------------------------
   11. Stats strip
   -------------------------------------------------------------------------- */
/* Dividers are drawn with an inset shadow on each cell rather than with a
   1px gap over a tinted container. When the column count does not divide the
   item count (5 items in 3 columns on a tablet, for example) the leftover
   grid area then matches the cells instead of showing up as a grey block. */
.stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.stat {
  background: var(--surface);
  padding: 30px 24px;
  text-align: center;
  box-shadow: inset -1px -1px 0 var(--line);
}
.stat__num {
  font-family: 'Manrope', sans-serif;
  font-size: clamp(1.7rem, 2.6vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--ink-800);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  margin-bottom: 8px;
}
.stat__label {
  font-size: .82rem;
  color: var(--text-2);
  line-height: 1.4;
}

/* --------------------------------------------------------------------------
   12. Cards
   -------------------------------------------------------------------------- */
/* Grid and flex children default to min-width:auto, which lets wide content
   (notably the 640px-min tables inside .table-wrap) push the whole page
   sideways on narrow screens. Zero the minimum so the scroll container works. */
.grid > *, .split > *, .article__layout > *, .rows__item > *,
.form__grid > *, .builder > *, .footer__grid > *, .stats > * { min-width: 0; }

.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--5 { grid-template-columns: repeat(5, 1fr); }

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.card:hover {
  border-color: var(--accent-600);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--surface-3);
}
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card__media img { transform: scale(1.04); }
.card__idx {
  position: absolute;
  top: 12px; left: 14px;
  font-family: 'Manrope', sans-serif;
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .1em;
  color: #fff;
  background: rgba(6, 23, 30, .72);
  backdrop-filter: blur(6px);
  padding: 5px 10px;
  border-radius: 4px;
}
.card__tag {
  position: absolute;
  right: 12px; bottom: 12px;
  font-size: .72rem;
  font-weight: 700;
  color: var(--ink-800);
  background: var(--accent-500);
  padding: 4px 10px;
  border-radius: 4px;
}
.card__body { padding: 26px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.card__title { font-size: 1.16rem; margin-bottom: 10px; }
.card__text { font-size: .92rem; line-height: 1.68; margin-bottom: 18px; }
.card__foot { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); }

.spec { font-size: .86rem; }
.spec li { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; border-bottom: 1px dashed var(--line); }
.spec li:last-child { border-bottom: 0; }
.spec span { color: var(--text-2); }
.spec strong { color: var(--ink-800); font-weight: 700; text-align: right; }

/* Feature list on dark */
.checks li { display: flex; gap: 12px; padding: 9px 0; font-size: .95rem; color: var(--on-dark-2); }
.checks li::before {
  content: '';
  width: 18px; height: 18px;
  flex-shrink: 0;
  margin-top: 3px;
  border-radius: 50%;
  background: var(--accent-600);
  position: relative;
}
.checks li::after {
  content: '';
  position: absolute;
  margin-left: -11px; margin-top: 6px;
  width: 9px; height: 5px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
}
.checks { margin-top: 6px; }

/* --------------------------------------------------------------------------
   13. Steps
   -------------------------------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.step {
  position: relative;
  padding: 26px 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
.step__n {
  font-family: 'Manrope', sans-serif;
  font-size: .78rem;
  font-weight: 800;
  color: var(--accent-700);
  letter-spacing: .1em;
  margin-bottom: 12px;
  display: flex; align-items: center; gap: 9px;
}
.step__n::after { content: ''; flex: 1; height: 1px; background: var(--line-2); }
.step__title { font-size: 1rem; margin-bottom: 8px; }
.step__text { font-size: .87rem; line-height: 1.62; }

/* --------------------------------------------------------------------------
   14. Tables
   -------------------------------------------------------------------------- */
.table-wrap {
  overflow-x: auto;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
.tbl { font-size: .9rem; min-width: 640px; }
.tbl th, .tbl td { padding: 15px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl thead th {
  background: var(--ink-800);
  color: #fff;
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: .84rem;
  letter-spacing: .01em;
  white-space: nowrap;
}
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover { background: var(--accent-tint); }
.tbl td strong { color: var(--ink-800); }
.tbl td:first-child { font-weight: 600; color: var(--ink-800); }
.tbl .yes { color: var(--accent-700); font-weight: 700; }
.tbl .no { color: var(--text-3); }

/* --------------------------------------------------------------------------
   15. Spec builder (replaces the price calculator)
   -------------------------------------------------------------------------- */
.builder {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-md);
}
.builder__form { padding: 40px; }
.builder__out {
  background: var(--ink-800);
  color: var(--on-dark);
  padding: 40px;
  display: flex;
  flex-direction: column;
}
.builder__label {
  font-family: 'Manrope', sans-serif;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 10px;
  display: block;
}
.builder__label + .builder__label { margin-top: 26px; }
.builder__field { flex: 0 0 auto; }
.builder__field + .builder__field { margin-top: 26px; }

/* 两栏布局时右栏深色面板更高，左栏用 space-between 把四组选项撑满，避免底部留白 */
@media (min-width: 1101px) {
  .builder__form {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-family: 'Manrope', sans-serif;
  font-size: .85rem;
  font-weight: 600;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 9px 14px;
  cursor: pointer;
  transition: all .2s ease;
}
.chip:hover { border-color: var(--accent-600); }
.chip[aria-pressed="true"] {
  background: var(--ink-800);
  border-color: var(--ink-800);
  color: #fff;
}
.chip[aria-pressed="true"]::before { content: '✓ '; color: var(--accent-500); }

.input, .select, .textarea {
  width: 100%;
  font-family: inherit;
  font-size: .95rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: 8px;
  padding: 12px 14px;
}
.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%237E8B92' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--accent-600);
  box-shadow: 0 0 0 3px var(--accent-tint);
}
.textarea { resize: vertical; min-height: 110px; }

.builder__headline {
  font-family: 'Manrope', sans-serif;
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -.02em;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 8px;
}
.builder__meta {
  font-size: .88rem;
  color: var(--accent-500);
  font-weight: 600;
  margin-bottom: 26px;
}
.builder__list { border-top: 1px solid var(--line-dark); margin-bottom: 26px; }
.builder__row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line-dark);
  font-size: .88rem;
}
.builder__row dt { color: var(--on-dark-3); }
.builder__row dd { color: var(--on-dark); font-weight: 600; text-align: right; }
.builder__note {
  font-size: .82rem;
  color: var(--on-dark-3);
  line-height: 1.6;
  margin-top: 18px;
}
/* 说明文字落在深色输出面板底部，把面板撑满不留空 */
.builder__out .builder__note { margin-top: auto; padding-top: 22px; }

/* Spec builder 内嵌的询价表单：横跨整个 builder 卡片底部 */
.builder__send {
  grid-column: 1 / -1;
  background: var(--surface-2);
  border-top: 1px solid var(--line);
  padding: 26px 40px 30px;
}
.builder__send-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 16px;
  align-items: end;
}
.builder__send-action { display: flex; }
.builder__send-action .btn { white-space: nowrap; }
.builder__send .form__success,
.builder__send .form__error { margin-top: 18px; }
.builder__alt {
  font-size: .82rem;
  color: var(--text-3);
  line-height: 1.6;
  margin-top: 16px;
}
.builder__alt a {
  color: var(--ink-800);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.builder__alt a:hover { color: var(--accent-700); }

/* --------------------------------------------------------------------------
   16. FAQ
   -------------------------------------------------------------------------- */
.faq { display: grid; gap: 12px; max-width: 860px; margin: 0 auto; }
.faq__item {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  overflow: hidden;
}
.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  text-align: left;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 20px 22px;
  font-family: 'Manrope', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink-800);
}
.faq__q:hover { background: var(--accent-tint); }
.faq__icon {
  flex-shrink: 0;
  width: 22px; height: 22px;
  position: relative;
  color: var(--accent-700);
}
.faq__icon::before, .faq__icon::after {
  content: '';
  position: absolute;
  background: currentColor;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
}
.faq__icon::before { width: 13px; height: 1.8px; }
.faq__icon::after { width: 1.8px; height: 13px; transition: transform .25s ease; }
.faq__item.open .faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq__a {
  display: none;
  padding: 0 22px 22px;
  font-size: .94rem;
  line-height: 1.72;
  color: var(--text-2);
}
.faq__item.open .faq__a { display: block; }

/* --------------------------------------------------------------------------
   17. Forms
   -------------------------------------------------------------------------- */
.form__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-family: 'Manrope', sans-serif;
  font-size: .8rem;
  font-weight: 700;
  color: var(--ink-800);
  letter-spacing: .01em;
}
.field label .req { color: var(--accent-700); }
.field__hint { font-size: .78rem; color: var(--text-3); }
.form__foot {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 6px;
}
.form__note { font-size: .8rem; color: var(--text-3); max-width: 44ch; }
.form__success {
  display: none;
  grid-column: 1 / -1;
  background: #E8F6F1;
  border: 1px solid #1D9E75;
  color: #0B4A3A;
  padding: 14px 16px;
  border-radius: 8px;
  font-size: .9rem;
  font-weight: 600;
}
.form__success.is-visible { display: block; }
.form__error {
  display: none;
  grid-column: 1 / -1;
  background: #FDF1EC;
  border: 1px solid #D06A3C;
  color: #8A3512;
  padding: 14px 16px;
  border-radius: 8px;
  font-size: .9rem;
  font-weight: 600;
}
.form__error.is-visible { display: block; }
.form__error a { text-decoration: underline; }

/* 表单提交中的按钮状态 */
.btn[disabled] { opacity: .65; cursor: progress; }
.btn.is-loading { position: relative; }

/* Web3Forms 蜜罐字段：机器人填了就静默丢弃 */
.hidden { display: none !important; }

/* --------------------------------------------------------------------------
   18. Industry / application chips band
   -------------------------------------------------------------------------- */
.industries {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.industry {
  font-size: .88rem;
  font-weight: 600;
  color: var(--on-dark-2);
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  padding: 9px 17px;
}
.industry:hover { border-color: var(--accent-600); color: var(--accent-500); }

/* --------------------------------------------------------------------------
   19. Post cards (blog)
   -------------------------------------------------------------------------- */
.post-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.post-card:hover { border-color: var(--accent-600); transform: translateY(-4px); box-shadow: var(--shadow-md); }
.post-card__media { aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-3); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.post-card:hover .post-card__media img { transform: scale(1.04); }
.post-card__body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.post-card__meta {
  display: flex; align-items: center; gap: 10px;
  font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent-700); margin-bottom: 10px;
}
.post-card__title { font-size: 1.1rem; margin-bottom: 10px; }
.post-card__excerpt { font-size: .89rem; line-height: 1.66; margin-bottom: 16px; }
.post-card__more {
  margin-top: auto;
  font-family: 'Manrope', sans-serif;
  font-size: .86rem;
  font-weight: 700;
  color: var(--ink-800);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.post-card__more span { transition: transform .22s ease; }
.post-card:hover .post-card__more span { transform: translateX(4px); }

/* The blog index leads with the newest article as a full-width card, then
   runs the rest in a four-column grid. Four cards fit the 1280px
   container exactly, so the row never leaves a gap on the right. A fifth
   article becomes the headline instead of stranding a lone card on a
   second row. */
.post-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 30px;
}
.post-grid > * { min-width: 0; }

.post-card--lead {
  display: grid;
  grid-template-columns: 42% minmax(0, 1fr);
  align-items: stretch;
}
.post-card--lead .post-card__media {
  aspect-ratio: auto;
  height: 100%;
  min-height: 260px;
}
.post-card--lead .post-card__body {
  padding: 34px 38px;
  justify-content: center;
}
.post-card--lead .post-card__title {
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  margin-bottom: 12px;
}
.post-card--lead .post-card__excerpt {
  font-size: .95rem;
  line-height: 1.68;
  max-width: 62ch;
}
/* In a four-column row each card body is about 246px wide, which is not
   enough room for the full meta line. The reading time is dropped there
   and the date keeps a shortened month, so the line stays on one row
   instead of wrapping the date into a stack of fragments. */
.post-grid .post-card__meta {
  flex-wrap: wrap;
  gap: 4px 8px;
  font-size: .66rem;
  letter-spacing: .06em;
}
.post-grid .post-card__meta > span[aria-hidden="true"] { display: none; }
.post-grid .post-card__meta > span:last-child { display: none; }
/* the full date is kept for the machine readable datetime attribute and
   for assistive technology, but the short form is what gets painted */
.post-grid .post-card__meta > time {
  font-size: 0;
}
.post-grid .post-card__meta > time::after {
  content: attr(data-short);
  font-size: .66rem;
}

.post-card__flag {
  display: inline-block;
  align-self: flex-start;
  margin-bottom: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-tint);
  color: var(--accent-700);
  font-family: 'Manrope', sans-serif;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}


/* --------------------------------------------------------------------------
   20. Footer
   -------------------------------------------------------------------------- */
.footer {
  background: var(--ink-900);
  color: var(--on-dark-2);
  padding: 72px 0 28px;
  font-size: .9rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: 44px;
  padding-bottom: 48px;
}
.footer__title {
  color: #fff;
  font-size: .92rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.footer__brand .brand__name { color: #fff; }
.footer__brand .brand__name span { color: var(--accent-500); }
.footer__brand p { color: var(--on-dark-3); font-size: .88rem; line-height: 1.7; margin: 16px 0 20px; }
.footer li { margin-bottom: 10px; }
.footer li a { color: var(--on-dark-2); font-size: .88rem; }
.footer li a:hover { color: var(--accent-500); }
.footer__contact li { display: flex; gap: 10px; align-items: flex-start; color: var(--on-dark-2); }
.footer__contact li span { color: var(--accent-500); font-weight: 700; }
.footer__bottom {
  border-top: 1px solid var(--line-dark);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  font-size: .82rem;
  color: var(--on-dark-3);
}
.footer__legal { display: flex; gap: 20px; flex-wrap: wrap; }
.footer__legal a { color: var(--on-dark-3); }
.footer__legal a:hover { color: var(--accent-500); }
.footer__social {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}
.footer__social a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  color: var(--on-dark-2);
  font-size: .82rem;
  line-height: 1;
  white-space: nowrap;
  transition: border-color .2s ease, color .2s ease, background .2s ease;
}
.footer__social a:hover {
  color: var(--accent-500);
  border-color: var(--accent-500);
  background: rgba(200, 164, 92, .08);
}
.footer__social svg { width: 15px; height: 15px; flex: none; }

/* --------------------------------------------------------------------------
   21. Floating actions & mobile bar
   -------------------------------------------------------------------------- */
.float-cta {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 800;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.float-cta a {
  width: 50px; height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ink-800);
  color: #fff;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line-dark);
}
.float-cta a:hover { background: var(--accent-700); color: var(--on-accent); transform: translateY(-3px); }
.float-cta a.is-wa { background: #25D366; border-color: #25D366; color: #fff; }

.mobile-bar {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 850;
  background: rgba(255, 255, 255, .97);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
}
.mobile-bar__row { display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: 8px; }
.mobile-bar a {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--text);
  padding: 8px 4px;
  border-radius: 8px;
  border: 1px solid var(--line);
}
.mobile-bar a.is-wa { background: #25D366; border-color: #25D366; color: #fff; }
.mobile-bar a.is-primary { background: var(--accent-600); border-color: var(--accent-600); color: var(--on-accent); }

/* --------------------------------------------------------------------------
   22. Sub-page hero (category, guide, article, legal pages)
   -------------------------------------------------------------------------- */
.page-hero {
  background:
    radial-gradient(120% 120% at 50% 0%, rgba(201, 164, 92, .16), transparent 62%),
    var(--ink-800);
  color: var(--on-dark);
  padding: 76px 0 72px;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(90% 90% at 50% 36%, #000, transparent);
  -webkit-mask-image: radial-gradient(90% 90% at 50% 36%, #000, transparent);
  pointer-events: none;
}
/* Single centred column. A sub-page header is one statement, so it reads as
   one centred masthead rather than a left-aligned block with a dead right
   half. The measure is wide enough that short titles stay on one line, and
   text-wrap:balance keeps the long ones from leaving a stranded last word. */
.page-hero .container {
  position: relative;
  z-index: 1;
  text-align: center;
}
.page-hero h1 {
  color: var(--on-dark);
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  line-height: 1.12;
  letter-spacing: -.025em;
  max-width: 25ch;
  margin: 0 auto 20px;
  text-wrap: balance;
}
.page-hero .lede {
  max-width: 68ch;
  margin: 0 auto;
  text-wrap: pretty;
}
.page-hero .stats { margin-top: 44px; }
.page-hero .hero__actions { margin-top: 36px; justify-content: center; }
.page-hero .post-meta { justify-content: center; }

/* Dark-surface stat strip used inside page heroes */
.stats--dark {
  background: transparent;
  border-color: var(--line-dark);
}
.stats--dark .stat { background: transparent; box-shadow: inset -1px -1px 0 var(--line-dark); }
.stats--dark .stat__num { color: var(--accent-500); }
.stats--dark .stat__label { color: var(--on-dark-3); }

/* --------------------------------------------------------------------------
   23. Editorial / long-form article layout
   -------------------------------------------------------------------------- */
.article { padding: 68px 0 84px; }
.article__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 56px;
  align-items: start;
}
.article__body { max-width: 74ch; }
.article__body h2 {
  font-size: clamp(1.42rem, 2.2vw, 1.78rem);
  line-height: 1.28;
  letter-spacing: -.018em;
  margin: 52px 0 18px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.article__body h2:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.article__body h3 {
  font-size: 1.16rem;
  margin: 34px 0 12px;
  color: var(--ink-800);
}
.article__body p { font-size: 1rem; line-height: 1.82; margin-bottom: 20px; }
.article__body ul, .article__body ol { margin: 0 0 24px; padding-left: 22px; }
.article__body li { font-size: 1rem; line-height: 1.78; color: var(--text-2); margin-bottom: 10px; }
.article__body li strong { color: var(--ink-800); }
.article__body a { color: var(--accent-700); font-weight: 600; }
.article__body a:hover { color: var(--accent-600); text-decoration: underline; }
.article__body figure { margin: 34px 0; }
.article__body figure img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  border: 1px solid var(--line);
}
.article__body figcaption {
  font-size: .84rem;
  color: var(--text-3);
  margin-top: 12px;
  line-height: 1.6;
}
.article__body blockquote {
  margin: 30px 0;
  padding: 22px 26px;
  background: var(--accent-tint);
  border-left: 3px solid var(--accent-600);
  border-radius: 0 10px 10px 0;
}
.article__body blockquote p {
  font-size: 1rem;
  line-height: 1.76;
  color: var(--ink-800);
  margin: 0;
}
.article__body .table-wrap { margin: 30px 0; }
.article__body h3 + .table-wrap, .article__body p + .table-wrap { margin-top: 22px; }

/* Table of contents rail */
.toc {
  position: sticky;
  top: 96px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px 24px;
}
.toc__title {
  font-family: 'Manrope', sans-serif;
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 14px;
}
.toc ol { list-style: none; padding: 0; margin: 0; counter-reset: toc; }
.toc li { counter-increment: toc; margin-bottom: 10px; }
.toc li:last-child { margin-bottom: 0; }
.toc a {
  font-size: .88rem;
  line-height: 1.5;
  color: var(--text-2);
  display: block;
}
.toc a::before {
  content: counter(toc, decimal-leading-zero) ' ';
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  color: var(--accent-700);
  font-size: .8rem;
}
.toc a:hover { color: var(--ink-800); }


/* Side rail: contents, related articles, order card */
.rail {
  position: sticky;
  top: 80px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-height: calc(100vh - 96px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--line-2) transparent;
  padding-right: 4px;
}
.rail::-webkit-scrollbar { width: 6px; }
.rail::-webkit-scrollbar-track { background: transparent; }
.rail::-webkit-scrollbar-thumb {
  background: var(--line-2);
  border-radius: 3px;
}
.rail .toc { position: static; padding: 18px 20px; }
.rail .toc li { margin-bottom: 5px; }
.rail .toc ol { padding-left: 0; }
.rail .toc a { font-size: .86rem; }
.rail__card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 20px;
}
.rail__title {
  font-family: 'Manrope', sans-serif;
  font-size: .73rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 12px;
}
.rail__related { list-style: none; padding: 0; margin: 0; }
.rail__related li {
  padding: 7px 0;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
}
.rail__related li:first-child { padding-top: 0; border-top: 0; }
.rail__related li:last-child { padding-bottom: 0; }
.rail__related a {
  font-size: .87rem;
  line-height: 1.4;
  font-weight: 600;
  color: var(--ink-800);
}
.rail__related a:hover { color: var(--accent-700); }
.rail__related span {
  flex: 0 0 auto;
  font-size: .72rem;
  font-weight: 500;
  color: var(--text-3);
  white-space: nowrap;
}
.rail__cta {
  background: var(--ink-800);
  border-color: var(--ink-800);
  color: var(--on-dark);
}
.rail__cta .rail__title { color: var(--accent-500); }
.rail__cta p {
  font-size: .8rem;
  line-height: 1.6;
  color: var(--on-dark-2);
  margin: 0 0 12px;
}
.rail__cta .btn { width: 100%; }
.rail__cta__link {
  display: block;
  text-align: center;
  margin-top: 10px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--on-dark-2);
}
.rail__cta__link:hover { color: var(--accent-500); }
/* Article meta header */
.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 20px;
  font-size: .8rem;
  color: var(--text-3);
  margin-bottom: 18px;
}
.post-meta strong { color: var(--ink-800); font-weight: 700; }

/* Author note box */
.author-box {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px 24px;
  margin-top: 44px;
}
.author-box__mark {
  flex-shrink: 0;
  width: 48px; height: 48px;
  border-radius: 10px;
  background: var(--ink-800);
  color: var(--accent-500);
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: .92rem;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: .02em;
}
.author-box p { font-size: .89rem; line-height: 1.7; margin: 0; color: var(--text-2); }
.author-box strong { color: var(--ink-800); }

/* --------------------------------------------------------------------------
   24. Numbered / stacked feature list
   -------------------------------------------------------------------------- */
.rows { border-top: 1px solid var(--line); }
.rows__item {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) 260px;
  gap: 32px;
  align-items: center;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}
.rows__item h3 { font-size: 1.14rem; margin-bottom: 10px; }
.rows__item p { font-size: .94rem; line-height: 1.7; margin: 0; }
.rows__media {
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface-3);
}
.rows__media img { width: 100%; height: 100%; object-fit: cover; }

/* two column variant: a number column and the text, no media column */
.rows--lines .rows__item {
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 26px;
  align-items: start;
}
.rows--lines .rows__num {
  font-family: var(--font-display);
  font-size: .95rem;
  font-weight: 800;
  color: var(--accent-700);
  letter-spacing: .04em;
  padding-top: 2px;
}

/* Process timeline for guide pages */
.timeline { border-left: 2px solid var(--line); padding-left: 30px; }
.timeline__item { position: relative; padding-bottom: 30px; }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__item::before {
  content: '';
  position: absolute;
  left: -37px; top: 6px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--accent-600);
  border: 3px solid var(--surface);
  box-shadow: 0 0 0 1px var(--line-2);
}
.timeline__item h3 { font-size: 1.06rem; margin-bottom: 8px; }
.timeline__item p { font-size: .94rem; line-height: 1.72; margin: 0; }
.timeline__tag {
  display: inline-block;
  font-family: 'Manrope', sans-serif;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent-700);
  margin-bottom: 8px;
}

/* Callout box */
.callout {
  background: var(--accent-tint);
  border: 1px solid rgba(200, 164, 92, .5);
  border-radius: 12px;
  padding: 26px 28px;
}
.callout h3 { font-size: 1.06rem; margin-bottom: 12px; }
.callout p { font-size: .94rem; line-height: 1.74; margin-bottom: 14px; }
.callout p:last-child { margin-bottom: 0; }
.callout ul { margin: 0; padding-left: 20px; list-style: disc; }
.callout li { font-size: .93rem; line-height: 1.7; color: var(--text-2); margin-bottom: 8px; }
.callout li:last-child { margin-bottom: 0; }

/* Plain bullet list on light surfaces */
.bullets { list-style: none; padding: 0; margin: 0; }
.bullets li {
  position: relative;
  padding-left: 26px;
  font-size: .95rem;
  line-height: 1.72;
  color: var(--text-2);
  margin-bottom: 11px;
}
.bullets li::before {
  content: '';
  position: absolute;
  left: 0; top: 9px;
  width: 8px; height: 8px;
  border-radius: 2px;
  background: var(--accent-600);
  transform: rotate(45deg);
}
.bullets li strong { color: var(--ink-800); }

/* Two-column split with sticky media */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}
.split--reverse > *:first-child { order: 2; }
.split__media {
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface-3);
  aspect-ratio: 4 / 3;
}
.split__media img { width: 100%; height: 100%; object-fit: cover; }

/* Detail list with a definition grid */
.deflist { display: grid; gap: 0; }
.deflist__row {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 24px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}
.deflist__row:last-child { border-bottom: 0; }
.deflist__row dt { font-weight: 700; color: var(--ink-800); font-size: .92rem; }
.deflist__row dd { margin: 0; font-size: .92rem; line-height: 1.68; color: var(--text-2); }

/* Related-links band */
.linkband {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.linkband a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .88rem;
  font-weight: 600;
  color: var(--ink-800);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 9px 18px;
  transition: border-color .2s ease, color .2s ease;
}
.linkband a:hover { border-color: var(--accent-600); color: var(--accent-700); }

/* --------------------------------------------------------------------------
   25. Responsive — new components
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .article__layout { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .toc { position: static; }
  .rail { position: static; max-height: none; overflow: visible; padding-right: 0; }
  /* stacked under the body, the cards must not stretch the full measure
     of the article column */
  .rail > * { max-width: 460px; }
  .rail .toc { width: 100%; }
  .rows__item { grid-template-columns: 72px minmax(0, 1fr); gap: 22px; }
  .rows--lines .rows__item { grid-template-columns: 48px minmax(0, 1fr); gap: 18px; }
  .rows__media { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
}

@media (max-width: 860px) {
  .split { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .split--reverse > *:first-child { order: 0; }
  .deflist__row { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .page-hero { padding: 56px 0 54px; }
  .page-hero .stats { margin-top: 32px; }
}

@media (max-width: 640px) {
  .article { padding: 44px 0 60px; }
  .article__body p { font-size: .97rem; }
  .rows__item { grid-template-columns: minmax(0, 1fr); }
  .rows--lines .rows__item { grid-template-columns: 40px minmax(0, 1fr); gap: 14px; }
  .author-box { flex-direction: column; }
  .rail > * { max-width: none; }
}

@media (max-width: 1240px) {
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .post-card--lead { grid-template-columns: minmax(0, 1fr); }
  .post-card--lead .post-card__media {
    aspect-ratio: 16 / 9;
    height: auto;
    min-height: 0;
  }
  .post-card--lead .post-card__body { padding: 26px 24px; }
}

@media (max-width: 640px) {
  .post-grid { grid-template-columns: minmax(0, 1fr); }
}


/* --------------------------------------------------------------------------
   26. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1150px) {
  /* Six labels need about 700px. Once the contact block would eat into that,
     the contacts step aside first: the same email and phone sit in the footer
     of every page and in the mobile action bar. */
  .announce__right { display: none; }
}

@media (max-width: 900px) {
  /* Below this the six labels no longer fit on one line. Rather than stack
     them into three rows and push the whole page down, the strip scrolls
     sideways and the bar keeps its 44px height. */
  .announce__left {
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    mask-image: linear-gradient(90deg, #000 88%, transparent);
    -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent);
    padding-right: 24px;
  }
  .announce__left::-webkit-scrollbar { display: none; }
}

@media (max-width: 1100px) {
  .hero {
    display: flex;
    flex-direction: column;
    padding: 0 0 72px;
  }
  .hero::before {
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 26%);
    mask-image: linear-gradient(180deg, transparent 0%, #000 26%);
  }
  .hero::after { top: 32%; }
  .hero__media {
    position: relative;
    width: 100%;
    height: min(56vh, 430px);
    order: -1;
  }
  .hero__media picture {
    -webkit-mask-image: none;
    mask-image: none;
  }
  .hero__media img { object-position: 50% 52%; }
  .hero__badge { left: 20px; bottom: 20px; }
  .hero__inner { padding-top: 52px; }
  .hero__copy { max-width: none; }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .grid--4, .grid--5 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .builder { grid-template-columns: minmax(0, 1fr); }
  .builder__send { padding: 26px 32px 30px; }
  .builder__send-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .builder__send-action { grid-column: 1 / -1; }
  .builder__send-action .btn { width: 100%; }
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
}

/* The desktop navigation carries four top-level entries and the header button
   is the single quote entry point, so the two are no longer duplicates.

   Measured from 1440px down to 861px: with all three carets showing (a touch
   pointer, where hover does not exist) the wordmark, the nav and the button
   still fit side by side without overlapping down to 871px. Below 880px the
   button is hidden, but it keeps its space.

   Keeping the space matters. If the button leaves the layout entirely, the
   nav is pushed against the right edge of the viewport, and the Guides
   dropdown, which is 230px wide, then ends 1px outside the screen and the
   page scrolls sideways. The mobile action bar carries the quote button
   below 860px, so nothing is lost. */
@media (max-width: 880px) {
  .header__cta { visibility: hidden; }
}

@media (max-width: 1024px) {
  .nav__list { gap: 16px; }
  .nav__list > li > a { font-size: .85rem; }
}

@media (max-width: 860px) {
  .nav__toggle { display: flex; }
  .nav {
    position: absolute;
    top: 78px; left: 0; right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    display: none;
    padding: 18px 24px 22px;
  }
  .nav.is-open { display: block; }
  .nav__list { flex-direction: column; align-items: flex-start; gap: 0; }
  .nav__list > li { width: 100%; border-bottom: 1px solid var(--line); }
  .nav__list > li > a { display: block; padding: 13px 0; }

  /* Below 860px the nav is a vertical drawer, so a hover dropdown is
     impossible. Each group becomes an accordion: the parent row shows the
     label and the caret, tapping the caret expands the pages underneath.
     The parent label stays a real link to the directory hub, so the pages
     are still reachable when the script does not run. */
  .nav__item--group { display: flex; flex-wrap: wrap; align-items: center; }
  .nav__item--group > .nav__link--parent { flex: 1 1 auto; }
  .nav__caret {
    display: inline-flex;
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    margin: 0 -10px 0 0;
  }
  .nav__menu {
    width: 100%;
    min-width: 0;
    max-width: none;
    margin: 0;
    padding: 0 0 10px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: none;
    display: none;
  }
  .nav__item--group.is-open > .nav__menu { display: block; }
  .nav__sublink { padding: 9px 0 9px 16px; font-size: .85rem; }
  .nav__sublink:hover { background: none; }

  .header__cta .btn--primary { display: none; }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 68px 0; }
  /* Five stat cells below 860px squeeze the value onto two lines and push the
     label out of alignment with its neighbours. Three columns keep them even. */
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .container { padding: 0 18px; }
  .hero { padding: 0 0 58px; }
  .hero__media { height: 64vw; min-height: 210px; }
  .hero__inner { padding-top: 40px; }
  .hero__specs { grid-template-columns: minmax(0, 1fr); }
  .hero__badge {
    left: 14px; bottom: 14px;
    min-width: 0;
    padding: 13px 16px;
    border-radius: 10px;
  }
  .hero__badge strong { font-size: 1.2rem; }
  .hero__badge span { font-size: .74rem; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* Two columns on a phone leaves little room inside each cell, so trim the
     padding and keep every value on one line. */
  .stat { padding: 24px 14px; }
  .grid--2, .grid--3, .grid--4, .grid--5, .steps { grid-template-columns: minmax(0, 1fr); }
  .form__grid { grid-template-columns: minmax(0, 1fr); }
  .builder__form, .builder__out { padding: 26px 22px; }
  .builder__send { padding: 22px 22px 26px; }
  .builder__send-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .footer__grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .float-cta { display: none; }
  .mobile-bar { display: block; }
  body { padding-bottom: 66px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
