/* ==========================================================================
   3110110 Auto Toolbox — unified design system
   Four brands, one site. Accent colour is swapped per <body class="brand-*">.
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  --font-sans: "Inter", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-mono: "SFMono-Regular", "Cascadia Code", "Roboto Mono", Consolas, "Liberation Mono", monospace;

  --ink: #0c1424;
  --ink-2: #172238;
  --ink-3: #27344c;
  --muted: #626c80;
  --muted-2: #8a93a4;
  --paper: #f4f2ec;
  --paper-2: #ebe8df;
  --card: #ffffff;
  --line: rgba(12, 20, 36, 0.1);
  --line-strong: rgba(12, 20, 36, 0.18);

  --shadow-xs: 0 1px 2px rgba(12, 20, 36, 0.05);
  --shadow-sm: 0 2px 4px rgba(12, 20, 36, 0.04), 0 14px 34px -22px rgba(12, 20, 36, 0.28);
  --shadow-md: 0 30px 80px -38px rgba(12, 20, 36, 0.46), 0 10px 28px -20px rgba(12, 20, 36, 0.22);

  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;

  --header-h: 76px;
  --container: 1200px;

  /* Default (portal / gold) accent */
  --accent: #b1812f;
  --accent-2: #dfb45f;
  --accent-ink: #5c4112;
  --accent-soft: #f7efde;
  --accent-rgb: 177, 129, 47;
  --accent-contrast: #ffffff;
}

body.brand-cff {
  --accent: #0d9488;
  --accent-2: #2dd4bf;
  --accent-ink: #0b5f57;
  --accent-soft: #e4f6f3;
  --accent-rgb: 13, 148, 136;
}

body.brand-nspin {
  --accent: #d3363b;
  --accent-2: #ff7d70;
  --accent-ink: #7c1418;
  --accent-soft: #fdeceb;
  --accent-rgb: 211, 54, 59;
}

body.brand-jlr {
  --accent: #3c7a4e;
  --accent-2: #7fc28e;
  --accent-ink: #1c4a2a;
  --accent-soft: #eaf5ec;
  --accent-rgb: 60, 122, 78;
}

body.brand-ford {
  --accent: #2454c6;
  --accent-2: #6c96ff;
  --accent-ink: #143b91;
  --accent-soft: #e9efff;
  --accent-rgb: 36, 84, 198;
}

body.brand-car {
  --accent: #c2410c;
  --accent-2: #fb923c;
  --accent-ink: #7c2d12;
  --accent-soft: #fff1e7;
  --accent-rgb: 194, 65, 12;
}

/* ---------- 2. Reset & base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  background: transparent;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

h1, h2, h3, h4, h5, h6, p, ul, ol, figure {
  margin: 0;
}

ul, ol {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

img, svg {
  display: block;
  max-width: 100%;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

::selection {
  background: rgba(var(--accent-rgb), 0.22);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 999;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
}

/* Ambient page background: soft paper, grid, brand glow */
.site-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(900px 540px at 82% -10%, rgba(var(--accent-rgb), 0.13), transparent 68%),
    radial-gradient(760px 520px at -8% 18%, rgba(255, 255, 255, 0.8), transparent 70%),
    linear-gradient(180deg, #f7f5f0 0%, var(--paper) 46%, #f0eee6 100%);
}

.site-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(12, 20, 36, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(12, 20, 36, 0.045) 1px, transparent 1px);
  background-size: 58px 58px;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.72), transparent 66%);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.72), transparent 66%);
}

.site-bg::after {
  content: "";
  position: absolute;
  right: -18vw;
  top: 12vh;
  width: 58vw;
  height: 58vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.09), transparent 64%);
  filter: blur(10px);
}

/* ---------- 3. Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(247, 245, 240, 0.76);
  border-bottom: 1px solid transparent;
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  background: rgba(250, 249, 245, 0.9);
  border-color: var(--line);
  box-shadow: 0 14px 40px -30px rgba(12, 20, 36, 0.5);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 28px;
  height: var(--header-h);
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-glyph {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background:
    radial-gradient(120% 120% at 20% 0%, rgba(var(--accent-rgb), 0.85), transparent 45%),
    linear-gradient(150deg, #18243b, #0b1220 70%);
  box-shadow: 0 10px 24px -14px rgba(var(--accent-rgb), 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.16);
  color: #fff;
  overflow: hidden;
}

.brand-glyph::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 13px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  pointer-events: none;
}

.brand-glyph svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-text strong {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.055em;
  color: var(--ink);
}

.brand-text small {
  margin-top: 5px;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--muted);
  text-transform: uppercase;
  white-space: nowrap;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: 8px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  flex-shrink: 0;
}

.lang-switch button {
  border: 0;
  border-radius: 999px;
  padding: 4px 8px;
  background: transparent;
  color: var(--muted-2);
  font: inherit;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.1;
  cursor: pointer;
}

.lang-switch button:hover {
  color: var(--ink);
}

.lang-switch button.is-active {
  background: var(--accent-soft);
  color: var(--accent-ink);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}

.nav-link {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 46px;
  padding: 7px 12px;
  border-radius: 11px;
  color: var(--ink-3);
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.15;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-link span {
  margin-top: 4px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.11em;
  color: var(--muted-2);
  text-transform: uppercase;
}

.nav-link:hover {
  background: rgba(12, 20, 36, 0.045);
  color: var(--ink);
}

.nav-link.is-active {
  color: var(--accent-ink);
  background: var(--accent-soft);
}

.nav-link.is-active span {
  color: var(--accent-ink);
  opacity: 0.7;
}

.nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 3px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
}

.header-call {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.52);
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.header-call:hover {
  border-color: var(--line-strong);
  background: #fff;
  transform: translateY(-1px);
}

.header-call svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
}

.header-call small {
  display: block;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--muted-2);
  text-transform: uppercase;
  line-height: 1;
}

.header-call strong {
  display: block;
  margin-top: 4px;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.015em;
  color: var(--ink);
}

.nav-toggle {
  display: none;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-left: auto;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.6);
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 17px;
  height: 1.8px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.nav-toggle span {
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle span::before {
  top: -6px;
}

.nav-toggle span::after {
  top: 6px;
}

.nav-toggle[aria-expanded="true"] span {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] span::before {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span::after {
  transform: translateY(-6px) rotate(-45deg);
}

/* ---------- 4. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 50px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 13px;
  font-size: 13.5px;
  font-weight: 750;
  letter-spacing: 0.015em;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease,
    border-color 0.2s ease, color 0.2s ease;
}

.btn svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.btn:hover svg {
  transform: translateX(2px);
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 18px 34px -20px rgba(12, 20, 36, 0.7);
}

.btn-primary:hover {
  background: #081020;
  transform: translateY(-1px);
  box-shadow: 0 22px 40px -20px rgba(12, 20, 36, 0.75);
}

.btn-accent {
  background: var(--accent);
  color: var(--accent-contrast);
  box-shadow: 0 18px 34px -20px rgba(var(--accent-rgb), 0.9);
}

.btn-accent:hover {
  filter: brightness(0.95);
  transform: translateY(-1px);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.5);
  border-color: var(--line-strong);
  color: var(--ink);
}

.btn-ghost:hover {
  background: #fff;
  border-color: rgba(12, 20, 36, 0.32);
  transform: translateY(-1px);
}

.btn-light {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 18px 34px -22px rgba(0, 0, 0, 0.6);
}

.btn-light:hover {
  transform: translateY(-1px);
  background: #f5f4ef;
}

.btn-outline-light {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.24);
  color: #fff;
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-block {
  width: 100%;
}

.btn-sm {
  height: 40px;
  padding: 0 14px;
  border-radius: 10px;
  font-size: 12px;
}

.btn-icon {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 12px;
}

/* ---------- 5. Hero ---------- */
.hero {
  position: relative;
  padding: clamp(44px, 5.5vw, 82px) 0 clamp(34px, 4vw, 52px);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(380px, 0.98fr);
  gap: clamp(38px, 6vw, 88px);
  align-items: center;
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 12px;
  border: 1px solid rgba(var(--accent-rgb), 0.18);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1.2;
  text-transform: uppercase;
}

.eyebrow-dot {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.14);
}

.eyebrow-dark {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.82);
}

.eyebrow-dark .eyebrow-dot {
  background: var(--accent-2);
  box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.22);
}

.hero-title {
  margin: 22px 0 20px;
  font-size: clamp(2.65rem, 5.15vw, 4.55rem);
  font-weight: 850;
  line-height: 1.03;
  letter-spacing: -0.045em;
  color: var(--ink);
  text-wrap: balance;
}

.hero-title em {
  position: relative;
  font-style: normal;
  color: var(--accent);
  white-space: nowrap;
}

.hero-title em::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.05em;
  height: 0.1em;
  border-radius: 99px;
  background: var(--accent);
  opacity: 0.16;
}

.hero-lead {
  max-width: 37em;
  color: var(--muted);
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.78;
  text-wrap: pretty;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 18px;
  margin-top: 25px;
}

.hero-points li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ink-3);
  font-size: 12.5px;
  font-weight: 600;
}

.hero-points svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  color: var(--accent);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin-top: 30px;
}

.host-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-top: 26px;
  color: var(--muted-2);
  font-size: 11.5px;
  line-height: 1.5;
}

.host-note .status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #1f9d6b;
  box-shadow: 0 0 0 3px rgba(31, 157, 107, 0.13);
}

.host-note strong {
  color: var(--ink-3);
  font-weight: 750;
  letter-spacing: 0.01em;
}

.host-note .sep {
  color: var(--line-strong);
}

/* Tool card / hero panel */
.hero-panel {
  position: relative;
  z-index: 1;
}

.hero-panel::before {
  content: "";
  position: absolute;
  z-index: -1;
  right: -34px;
  top: -42px;
  width: 190px;
  height: 190px;
  border: 1px dashed rgba(var(--accent-rgb), 0.28);
  border-radius: 50%;
  animation: orbit 46s linear infinite;
}

.hero-panel::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: -56px;
  bottom: -54px;
  width: 230px;
  height: 230px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.13), transparent 66%);
  filter: blur(6px);
}

.hero-panel-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 14px;
  color: var(--muted-2);
  font-size: 10.5px;
  letter-spacing: 0.02em;
}

.hero-panel-note svg {
  width: 13px;
  height: 13px;
  color: var(--accent);
}

.hero-panel-note a {
  color: var(--accent-ink);
  font-weight: 750;
  border-bottom: 1px solid rgba(var(--accent-rgb), 0.28);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.hero-panel-note a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.hero-panel-note .sep {
  color: var(--line-strong);
}

.tool-card {
  position: relative;
  padding: clamp(22px, 2.7vw, 32px);
  border: 1px solid rgba(12, 20, 36, 0.09);
  border-radius: var(--radius-xl);
  background: var(--card);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.tool-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2) 46%, rgba(var(--accent-rgb), 0));
}

.tool-card::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -150px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.14), transparent 66%);
  pointer-events: none;
}

.tool-card-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 23px;
}

.tool-index {
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  height: 26px;
  padding: 0 7px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.tool-card-head h2 {
  font-size: clamp(19px, 2vw, 22px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.tool-card-head p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.live-dot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  margin-left: auto;
  padding: 5px 8px;
  border-radius: 999px;
  background: #ebf8f1;
  color: #17724c;
  font-size: 9.5px;
  font-weight: 750;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.live-dot::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22a06b;
  box-shadow: 0 0 0 3px rgba(34, 160, 107, 0.14);
}

.tool-card-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 14px;
  margin-top: 21px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 10.5px;
}

.tool-card-foot span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.tool-card-foot svg {
  width: 13px;
  height: 13px;
  color: var(--accent);
}

/* ---------- 6. Forms ---------- */
.tool-form {
  position: relative;
  z-index: 1;
}

.field {
  display: block;
  margin-bottom: 15px;
}

.field:last-of-type {
  margin-bottom: 18px;
}

.field-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  color: var(--ink-3);
  font-size: 11.5px;
  font-weight: 750;
  letter-spacing: 0.02em;
}

.field-label > span {
  color: var(--muted-2);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.input-wrap > svg {
  position: absolute;
  left: 14px;
  width: 17px;
  height: 17px;
  color: var(--muted-2);
  pointer-events: none;
  transition: color 0.2s ease;
}

.input-wrap input,
.input-wrap select {
  width: 100%;
  height: 52px;
  padding: 0 14px 0 41px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #fbfaf7;
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.015em;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.input-wrap input::placeholder {
  color: #9aa2b1;
  font-weight: 500;
  letter-spacing: 0;
}

.input-wrap input:hover,
.input-wrap select:hover {
  border-color: rgba(12, 20, 36, 0.26);
}

.input-wrap input:focus,
.input-wrap select:focus {
  outline: none;
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.11);
}

.input-wrap:focus-within > svg {
  color: var(--accent);
}

.select-wrap select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  cursor: pointer;
}

.select-wrap::after {
  content: "";
  position: absolute;
  right: 17px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

.field-hint {
  display: block;
  margin-top: 7px;
  color: var(--muted-2);
  font-size: 10px;
  line-height: 1.55;
}

.field-error {
  display: none;
  margin-top: 7px;
  color: #c02d2d;
  font-size: 10.5px;
  font-weight: 650;
  line-height: 1.5;
}

.field.is-invalid input,
.field.is-invalid select {
  border-color: #d84a4a;
  background: #fff8f7;
  box-shadow: 0 0 0 4px rgba(216, 74, 74, 0.1);
}

.field.is-invalid .field-error {
  display: block;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
}

.form-note {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin-top: 13px;
  color: var(--muted-2);
  font-size: 10px;
  line-height: 1.5;
}

.form-note svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  margin-top: 1px;
  color: var(--accent);
}

/* ---------- 7. Stats ---------- */
.stat-rail {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(36px, 5vw, 64px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 17px 20px;
  border-left: 1px solid var(--line);
}

.stat:first-child {
  border-left: 0;
  padding-left: 0;
}

.stat strong {
  color: var(--ink);
  font-size: 19px;
  font-weight: 850;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.stat span {
  color: var(--muted-2);
  font-size: 9.5px;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ---------- 8. Sections & cards ---------- */
.section {
  padding: clamp(48px, 6.6vw, 90px) 0;
}

.section-tight {
  padding-top: clamp(26px, 3vw, 42px);
  padding-bottom: clamp(38px, 4.5vw, 62px);
}

.section-last {
  padding-bottom: clamp(54px, 7vw, 96px);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 30px;
}

.section-kicker {
  margin-bottom: 10px;
  color: var(--accent-ink);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section-head h2 {
  max-width: 17em;
  color: var(--ink);
  font-size: clamp(1.75rem, 3vw, 2.55rem);
  font-weight: 850;
  letter-spacing: -0.038em;
  line-height: 1.1;
  text-wrap: balance;
}

.section-head p {
  max-width: 36em;
  margin-top: 9px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

.section-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  padding-bottom: 3px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
}

.section-link svg {
  width: 14px;
  height: 14px;
  transition: transform 0.2s ease;
}

.section-link:hover svg {
  transform: translateX(2px);
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 13px;
}

.tool-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 208px;
  padding: 21px;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: rgba(255, 255, 255, 0.58);
  overflow: hidden;
  transition: transform 0.24s ease, background 0.24s ease, border-color 0.24s ease,
    box-shadow 0.24s ease;
}

.tool-tile::after {
  content: "";
  position: absolute;
  right: -50px;
  bottom: -70px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--tile-rgb), 0.12), transparent 68%);
  opacity: 0;
  transition: opacity 0.24s ease;
}

.tool-tile:hover {
  transform: translateY(-3px);
  border-color: rgba(var(--tile-rgb), 0.34);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.tool-tile:hover::after {
  opacity: 1;
}

.tool-tile.is-current {
  background: #fff;
  border-color: rgba(var(--tile-rgb), 0.3);
  box-shadow: var(--shadow-sm);
}

.tool-tile.is-current::before {
  content: "当前工具";
  position: absolute;
  top: 15px;
  right: 15px;
  padding: 3px 7px;
  border-radius: 999px;
  background: var(--tile-soft);
  color: var(--tile-ink);
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.tile-mark {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--tile-soft);
  color: var(--tile-ink);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.tool-tile h3 {
  position: relative;
  z-index: 1;
  margin-top: 20px;
  color: var(--ink);
  font-size: 15.5px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.tool-tile p {
  position: relative;
  z-index: 1;
  margin-top: 6px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.6;
}

.tile-arrow {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 20px;
  color: var(--tile-ink);
  font-size: 10.5px;
  font-weight: 750;
}

.tile-arrow svg {
  width: 13px;
  height: 13px;
  transition: transform 0.2s ease;
}

.tool-tile:hover .tile-arrow svg {
  transform: translateX(2px);
}

.tile-cff {
  --tile: #0d9488;
  --tile-rgb: 13, 148, 136;
  --tile-ink: #0b5f57;
  --tile-soft: #e4f6f3;
}

.tile-nspin {
  --tile: #d3363b;
  --tile-rgb: 211, 54, 59;
  --tile-ink: #7c1418;
  --tile-soft: #fdeceb;
}

.tile-jlr {
  --tile: #3c7a4e;
  --tile-rgb: 60, 122, 78;
  --tile-ink: #1c4a2a;
  --tile-soft: #eaf5ec;
}

.tile-ford {
  --tile: #2454c6;
  --tile-rgb: 36, 84, 198;
  --tile-ink: #143b91;
  --tile-soft: #e9efff;
}

.tile-car {
  --tile: #c2410c;
  --tile-rgb: 194, 65, 12;
  --tile-ink: #7c2d12;
  --tile-soft: #fff1e7;
}

/* CAR toolbox */
.car-select-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.car-textarea {
  width: 100%;
  min-height: 96px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f7f5f0;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.7;
  resize: vertical;
}

.car-textarea:disabled {
  color: var(--muted);
  opacity: 0.85;
}

.car-result-code {
  margin: 0;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-all;
}

.car-shot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.car-shot {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.car-shot img {
  display: block;
  width: 100%;
  height: auto;
}

.car-shot figcaption {
  padding: 12px 14px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 13px;
}

.feature {
  position: relative;
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: rgba(255, 255, 255, 0.46);
  overflow: hidden;
}

.feature::before {
  content: "";
  position: absolute;
  left: 25px;
  top: 0;
  width: 46px;
  height: 2px;
  border-radius: 0 0 2px 2px;
  background: var(--accent);
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--accent-soft);
  color: var(--accent-ink);
}

.feature-icon svg {
  width: 19px;
  height: 19px;
}

.feature h3 {
  margin-top: 17px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.015em;
}

.feature p {
  margin-top: 7px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.7;
}

/* ---------- 9. Tool pages ---------- */
.page-head {
  padding: clamp(32px, 4.4vw, 58px) 0 clamp(14px, 2vw, 22px);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-bottom: 20px;
  color: var(--muted-2);
  font-size: 10.5px;
}

.breadcrumbs a {
  color: var(--muted-2);
  transition: color 0.2s ease;
}

.breadcrumbs a:hover {
  color: var(--accent);
}

.breadcrumbs svg {
  width: 11px;
  height: 11px;
  opacity: 0.65;
}

.page-head h1 {
  max-width: 16em;
  margin-top: 17px;
  color: var(--ink);
  font-size: clamp(2.05rem, 4.2vw, 3.55rem);
  font-weight: 850;
  letter-spacing: -0.045em;
  line-height: 1.04;
  text-wrap: balance;
}

.page-head .lead {
  max-width: 42em;
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.page-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 18px;
}

.chip {
  padding: 5px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  color: var(--ink-3);
  font-size: 10px;
  font-weight: 650;
}

.tool-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(280px, 0.72fr);
  gap: 16px;
  align-items: start;
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: var(--shadow-sm);
}

.panel-lg {
  padding: clamp(22px, 3vw, 34px);
}

.panel-head {
  margin-bottom: 22px;
}

.panel-head h2 {
  color: var(--ink);
  font-size: clamp(20px, 2.2vw, 24px);
  font-weight: 850;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.panel-head p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.side-stack {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.side-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.54);
}

.side-card h3 {
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.side-card p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.7;
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 15px;
}

.steps li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 10px;
  align-items: start;
}

.steps .step-no {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 800;
}

.steps strong {
  display: block;
  color: var(--ink-3);
  font-size: 11.5px;
  font-weight: 750;
  line-height: 1.4;
}

.steps span {
  display: block;
  margin-top: 2px;
  color: var(--muted-2);
  font-size: 10.5px;
  line-height: 1.5;
}

.side-card-accent {
  border-color: rgba(var(--accent-rgb), 0.2);
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(var(--accent-rgb), 0.12), transparent 62%),
    rgba(255, 255, 255, 0.64);
}

.side-contact {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 13px;
}

.side-contact a {
  color: var(--accent-ink);
  font-size: 15px;
  font-weight: 850;
  letter-spacing: -0.01em;
}

.side-contact small {
  color: var(--muted-2);
  font-size: 10px;
}

.product-card {
  overflow: hidden;
  padding: 0;
}

.product-card img {
  width: 100%;
  height: 148px;
  object-fit: cover;
  object-position: center 39%;
  border-bottom: 1px solid var(--line);
}

.product-card-body {
  padding: 16px 18px 18px;
}

.product-card-body h3 {
  font-size: 12.5px;
}

.product-card-body p {
  font-size: 10.5px;
}

/* Full-width hardware / service promotion below the tool layout */
.promo-banner {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.promo-media {
  min-height: 220px;
  background: #0b1220;
}

.promo-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 39%;
}

.promo-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
  padding: clamp(22px, 3vw, 30px);
  background:
    radial-gradient(120% 150% at 100% 0%, rgba(var(--accent-rgb), 0.1), transparent 60%),
    #fff;
}

.promo-kicker {
  color: var(--accent-ink);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.promo-copy h3 {
  color: var(--ink);
  font-size: 20px;
  font-weight: 850;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.promo-copy p {
  max-width: 58em;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.75;
}

.promo-copy .btn {
  margin-top: 10px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 10px;
  color: var(--accent-ink);
  font-size: 10.5px;
  font-weight: 750;
}

.text-link svg {
  width: 12px;
  height: 12px;
}

.side-card > .text-link {
  display: flex;
}

/* ---------- 10. Results ---------- */
.result-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(280px, 0.82fr);
  gap: 16px;
  align-items: start;
}

.result-card {
  padding: clamp(24px, 3.4vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: var(--shadow-sm);
}

.result-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.result-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.result-badge.is-success {
  background: #ebf8f1;
  color: #17724c;
}

.result-badge.is-success::before {
  background: #22a06b;
}

.result-title {
  margin-top: 16px;
  color: var(--ink);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 850;
  letter-spacing: -0.035em;
  line-height: 1.12;
}

.result-sub {
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.result-hero {
  margin-top: 25px;
  padding: 23px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background:
    radial-gradient(120% 150% at 100% 0%, rgba(var(--accent-rgb), 0.09), transparent 60%),
    #fbfaf7;
  text-align: center;
}

.result-hero .result-label,
.result-tile .result-label {
  display: block;
  color: var(--muted-2);
  font-size: 9.5px;
  font-weight: 750;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.result-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 25px;
}

.result-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 210px;
  padding: 22px 16px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #fbfaf7;
  text-align: center;
}

.result-tile.is-new {
  background:
    radial-gradient(120% 150% at 100% 0%, rgba(var(--accent-rgb), 0.09), transparent 60%),
    #fbfaf7;
}

.result-tile .result-code {
  font-size: clamp(1.8rem, 4.4vw, 3rem);
}

.result-tile .copy-btn {
  margin-top: 14px;
}

.result-code {
  margin-top: 8px;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: clamp(2rem, 5.4vw, 3.4rem);
  font-weight: 800;
  letter-spacing: 0.1em;
  line-height: 1.15;
  word-break: break-all;
}

.result-code.is-long {
  font-size: clamp(1.35rem, 3.1vw, 2.15rem);
  letter-spacing: 0.06em;
  line-height: 1.35;
  word-break: break-all;
}

.result-hero .copy-btn {
  margin-top: 13px;
}

.result-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbfaf7;
}

.result-row + .result-row {
  margin-top: 9px;
}

.result-row .label {
  display: block;
  color: var(--muted-2);
  font-size: 9.5px;
  font-weight: 750;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.result-row .value {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: clamp(18px, 2.4vw, 25px);
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.2;
  word-break: break-all;
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  height: 34px;
  padding: 0 11px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: #fff;
  color: var(--ink-3);
  font-size: 10.5px;
  font-weight: 700;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.copy-btn svg {
  width: 13px;
  height: 13px;
}

.copy-btn:hover {
  border-color: var(--accent);
  color: var(--accent-ink);
  background: var(--accent-soft);
}

.copy-btn.is-copied {
  border-color: #22a06b;
  background: #ebf8f1;
  color: #17724c;
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 20px;
}

.result-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.result-toolbar .count {
  color: var(--muted);
  font-size: 11.5px;
}

.result-toolbar .count strong {
  color: var(--ink);
  font-size: 14px;
}

.file-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.file-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.file-row:hover {
  border-color: rgba(var(--accent-rgb), 0.34);
  box-shadow: var(--shadow-xs);
  transform: translateY(-1px);
}

.file-index {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 9px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 800;
}

.file-main {
  min-width: 0;
  flex: 1;
}

.file-main h3 {
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: -0.01em;
  word-break: break-all;
}

.file-main p {
  margin-top: 3px;
  color: var(--muted-2);
  font-size: 10px;
}

.empty-state {
  padding: 52px 24px;
  border: 1px dashed var(--line-strong);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.4);
  text-align: center;
}

.empty-state .empty-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin: 0 auto 15px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent-ink);
}

.empty-state h3 {
  color: var(--ink);
  font-size: 16px;
  font-weight: 800;
}

.empty-state p {
  max-width: 32em;
  margin: 7px auto 18px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

/* ---------- 11. Alert / tabs / dropzone ---------- */
.alert {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-bottom: 16px;
  padding: 11px 13px;
  border: 1px solid #edd6ad;
  border-radius: 11px;
  background: #fff7e9;
  color: #765113;
  font-size: 11.5px;
  line-height: 1.6;
}

.alert svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 1px;
}

.alert.is-error {
  border-color: #efc6c1;
  background: #fff2f0;
  color: #932c25;
}

.tab-nav {
  display: inline-flex;
  gap: 4px;
  margin-bottom: 18px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.56);
}

.tab-link {
  padding: 8px 13px;
  border-radius: 9px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}

.tab-link:hover {
  color: var(--ink);
  background: rgba(12, 20, 36, 0.04);
}

.tab-link.is-active {
  background: var(--ink);
  color: #fff;
}

.dropzone {
  position: relative;
  padding: 25px 18px;
  border: 1.5px dashed var(--line-strong);
  border-radius: 15px;
  background: #fbfaf7;
  text-align: center;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.dropzone:hover,
.dropzone.is-drag {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.dropzone input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.dz-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin: 0 auto 10px;
  border-radius: 12px;
  background: #fff;
  color: var(--accent);
  box-shadow: var(--shadow-xs);
}

.dz-icon svg {
  width: 20px;
  height: 20px;
}

.dz-title {
  display: block;
  color: var(--ink-3);
  font-size: 12px;
  font-weight: 750;
}

.dz-title strong {
  color: var(--accent-ink);
}

.dz-hint {
  display: block;
  margin-top: 4px;
  color: var(--muted-2);
  font-size: 10px;
}

.dz-name {
  display: none;
  margin-top: 8px;
  color: var(--accent-ink);
  font-size: 10.5px;
  font-weight: 750;
  word-break: break-all;
}

.dz-name.is-visible {
  display: block;
}

.download-card {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 16px;
  padding: 14px;
  border: 1px solid rgba(var(--accent-rgb), 0.24);
  border-radius: 13px;
  background: var(--accent-soft);
}

.download-card .dl-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 10px;
  background: #fff;
  color: var(--accent-ink);
}

.download-card .dl-icon svg {
  width: 18px;
  height: 18px;
}

.download-card .dl-main {
  min-width: 0;
  flex: 1;
}

.download-card .dl-main strong {
  display: block;
  color: var(--ink);
  font-size: 11.5px;
  font-weight: 800;
  word-break: break-all;
}

.download-card .dl-main small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 9.5px;
}

/* ---------- 12. Contact & footer ---------- */
.contact-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  padding: clamp(28px, 4.2vw, 50px);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(700px 340px at 92% 0%, rgba(var(--accent-rgb), 0.32), transparent 66%),
    linear-gradient(135deg, #0b1220 0%, #121d31 56%, #1a2943 100%);
  color: #fff;
  overflow: hidden;
  box-shadow: 0 36px 80px -46px rgba(12, 20, 36, 0.8);
}

.contact-panel::before {
  content: "";
  position: absolute;
  right: -30px;
  bottom: -110px;
  width: 330px;
  height: 330px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  box-shadow: 0 0 0 34px rgba(255, 255, 255, 0.025), 0 0 0 70px rgba(255, 255, 255, 0.018);
  pointer-events: none;
}

.contact-panel h2 {
  max-width: 13em;
  margin-top: 17px;
  color: #fff;
  font-size: clamp(1.75rem, 3.2vw, 2.7rem);
  font-weight: 850;
  letter-spacing: -0.04em;
  line-height: 1.08;
  text-wrap: balance;
}

.contact-panel p {
  max-width: 32em;
  margin-top: 11px;
  color: rgba(255, 255, 255, 0.64);
  font-size: 12.5px;
  line-height: 1.75;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 23px;
}

.contact-meta {
  display: flex;
  flex-direction: column;
  gap: 13px;
  padding-left: clamp(0px, 2vw, 24px);
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.contact-meta div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.contact-meta span {
  color: rgba(255, 255, 255, 0.45);
  font-size: 9.5px;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-meta strong {
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.site-footer {
  margin-top: clamp(38px, 5vw, 62px);
  background: #0a111d;
  color: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) 0.8fr 1.2fr;
  gap: clamp(24px, 4vw, 54px);
  padding: clamp(38px, 5vw, 58px) 0 34px;
}

.footer-brand .brand-text strong {
  color: #fff;
}

.footer-brand .brand-text small {
  color: rgba(255, 255, 255, 0.44);
}

.footer-brand p {
  max-width: 25em;
  margin-top: 15px;
  color: rgba(255, 255, 255, 0.54);
  font-size: 11.5px;
  line-height: 1.75;
}

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}

.footer-badges span {
  padding: 4px 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.03em;
}

.footer-col h4 {
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.footer-col a,
.footer-col p {
  display: block;
  padding: 4px 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 11.5px;
  line-height: 1.65;
}

.footer-col a {
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--accent-2);
}

.footer-col p {
  color: rgba(255, 255, 255, 0.54);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding: 17px 0 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  color: rgba(255, 255, 255, 0.36);
  font-size: 9.5px;
  line-height: 1.5;
}

/* ---------- 13. Portal picker ---------- */
.tool-picker {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.picker-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbfaf7;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.picker-row:hover {
  border-color: rgba(var(--tile-rgb), 0.38);
  background: #fff;
  transform: translateX(2px);
}

.picker-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 10px;
  background: var(--tile-soft);
  color: var(--tile-ink);
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 800;
}

.picker-main {
  min-width: 0;
  flex: 1;
}

.picker-main strong {
  display: block;
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 800;
  line-height: 1.3;
}

.picker-main small {
  display: block;
  margin-top: 2px;
  color: var(--muted-2);
  font-size: 9.5px;
  letter-spacing: 0.03em;
}

.picker-arrow {
  flex-shrink: 0;
  color: var(--muted-2);
}

.picker-arrow svg {
  width: 15px;
  height: 15px;
}

.picker-row:hover .picker-arrow {
  color: var(--tile-ink);
}

/* ---------- 14. Motion & utilities ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.62s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.62s cubic-bezier(0.22, 1, 0.36, 1);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

.js .reveal-delay-1 {
  transition-delay: 0.08s;
}

.js .reveal-delay-2 {
  transition-delay: 0.16s;
}

@keyframes orbit {
  to {
    transform: rotate(360deg);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

.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;
}

/* ---------- 15. Responsive ---------- */
@media (max-width: 1120px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(340px, 0.9fr);
    gap: 40px;
  }

  .nav-link {
    padding-inline: 9px;
    font-size: 12.5px;
  }

  .header-inner {
    gap: 18px;
  }

  .tool-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tool-tile {
    min-height: 190px;
  }
}

@media (max-width: 980px) {
  .header-call {
    display: none;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .hero-copy {
    max-width: 720px;
  }

  .hero-panel {
    max-width: 620px;
  }

  .tool-layout,
  .result-layout {
    grid-template-columns: 1fr;
  }

  .side-stack {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .contact-panel {
    grid-template-columns: 1fr;
  }

  .contact-meta {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 18px 32px;
    padding-left: 0;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    border-left: 0;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-col:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 860px) {
  :root {
    --header-h: 68px;
  }

  .container {
    width: min(var(--container), calc(100% - 34px));
  }

  .nav-toggle {
    display: grid;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    margin: 0;
    padding: 7px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: #fcfbf7;
    box-shadow: 0 28px 60px -30px rgba(12, 20, 36, 0.5);
  }

  .site-nav.is-open {
    display: flex;
  }

  .nav-link {
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
    min-height: 44px;
    padding: 10px 12px;
  }

  .nav-link span {
    margin-top: 0;
  }

  .nav-link.is-active::after {
    display: none;
  }

  .header-inner {
    gap: 12px;
  }

  .brand-text small {
    display: none;
  }

  .brand-glyph {
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }

  .hero {
    padding-top: 34px;
  }

  .hero-title {
    margin-top: 18px;
  }

  .hero-actions .btn {
    height: 46px;
  }

  .stat-rail {
    grid-template-columns: 1fr 1fr;
    margin-top: 32px;
  }

  .stat {
    padding: 14px 14px;
  }

  .stat:nth-child(odd) {
    border-left: 0;
    padding-left: 0;
  }

  .stat:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .section-head h2 {
    max-width: 20em;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .side-stack {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-col:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 860px) {
  .promo-banner {
    grid-template-columns: 1fr;
  }

  .promo-media {
    min-height: 0;
    height: 180px;
  }
}

@media (max-width: 620px) {
  .container {
    width: min(var(--container), calc(100% - 28px));
  }

  .hero {
    padding-top: 28px;
  }

  .hero-title {
    font-size: clamp(2.2rem, 10vw, 3.1rem);
    letter-spacing: -0.04em;
  }

  .hero-lead {
    font-size: 14.5px;
  }

  .hero-points {
    gap: 8px 13px;
    margin-top: 20px;
  }

  .hero-points li {
    font-size: 11.5px;
  }

  .hero-actions {
    margin-top: 24px;
  }

  .hero-actions .btn {
    flex: 1 1 auto;
  }

  .brand-text strong {
    font-size: 15.5px;
  }

  .tool-card {
    border-radius: 22px;
    padding: 20px;
  }

  .tool-card-head {
    flex-wrap: wrap;
  }

  .live-dot {
    display: none;
  }

  .input-wrap input,
  .input-wrap select {
    height: 50px;
    font-size: 16px; /* prevents iOS zoom */
  }

  .stat-rail {
    margin-top: 28px;
  }

  .stat strong {
    font-size: 17px;
  }

  .stat span {
    font-size: 8.5px;
  }

  .section {
    padding: 46px 0;
  }

  .tool-grid {
    grid-template-columns: 1fr;
  }

  .tool-tile {
    min-height: 168px;
  }

  .page-head h1 {
    font-size: clamp(1.95rem, 8vw, 2.75rem);
  }

  .result-row {
    flex-wrap: wrap;
  }

  .result-pair {
    grid-template-columns: 1fr;
  }

  .result-row .copy-btn {
    width: 100%;
  }

  .file-row {
    flex-wrap: wrap;
  }

  .file-row .btn {
    width: 100%;
  }

  .file-main {
    flex-basis: calc(100% - 50px);
  }

  .contact-actions .btn {
    flex: 1 1 auto;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .tab-nav {
    display: flex;
    width: 100%;
    overflow-x: auto;
  }

  .tab-link {
    flex: 1 0 auto;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
