/* ============================================================
   ChinaConverters · v3
   Inspired by Linear / Raycast / Anthropic / Vercel
   Warm minimal · refined utility · tool-station precision
   ============================================================ */

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

:root {
  /* Surfaces — warm, not sterile */
  --bg:        #FAF9F6;     /* page background (warm off-white) */
  --paper:     #FFFFFF;     /* cards/converter */
  --surface:   #F4F2EC;     /* subtle inset */
  --rule:      #E7E3DA;
  --rule-strong: #1A1A1A;

  /* Text */
  --ink:       #1A1A1A;
  --ink-soft:  #3D3D3D;
  --muted:     #80807A;
  --faint:     #B3B0A8;

  /* Accent — Claude coral */
  --coral:     #CC785C;
  --coral-d:   #B5634A;
  --coral-l:   rgba(204, 120, 92, 0.10);

  /* Type */
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', 'SF Mono', Menlo, monospace;

  /* Scale */
  --t-xs: 12px;
  --t-sm: 13px;
  --t-base: 15px;
  --t-md: 17px;
  --t-lg: 20px;
  --t-xl: 26px;
  --t-2xl: 34px;
  --t-3xl: 44px;
  --t-4xl: 58px;

  /* 8pt grid */
  --s-1: 8px; --s-2: 16px; --s-3: 24px; --s-4: 32px;
  --s-5: 40px; --s-6: 56px; --s-7: 72px; --s-8: 96px;

  --max: 1200px;
  --radius: 8px;
  --radius-sm: 5px;
  --radius-lg: 14px;

  /* Motion */
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
}

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

body {
  font-family: var(--sans);
  font-size: var(--t-base);
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'kern','liga','calt','ss01','cv11';
}

::selection { background: var(--ink); color: var(--bg); }

a { color: var(--ink); text-decoration: none; transition: color .15s var(--ease); }
a:hover { color: var(--coral); }

button { font-family: inherit; cursor: pointer; }
img { max-width: 100%; display: block; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--s-3); }
.narrow { max-width: 820px; margin: 0 auto; padding: 0 var(--s-3); }

kbd {
  font-family: var(--mono);
  font-size: 11px;
  padding: 2px 6px;
  border: 1px solid var(--rule);
  border-bottom-width: 2px;
  border-radius: 4px;
  background: var(--paper);
  color: var(--ink-soft);
  line-height: 1;
  font-weight: 500;
}

/* ============================================================
   HEADER — compact, command-palette feel
   ============================================================ */
.header {
  border-bottom: 1px solid var(--rule);
  background: rgba(250, 249, 246, 0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  position: sticky; top: 0; z-index: 50;
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px var(--s-3);
  display: flex; align-items: center; gap: var(--s-3);
}

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: var(--t-base);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.brand:hover { color: var(--ink); }
.brand-mark {
  width: 24px; height: 24px;
  border-radius: 6px;
  background: var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--bg);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.search-trigger {
  flex: 1;
  max-width: 360px;
  margin: 0 var(--s-2);
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 12px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: var(--t-sm);
  cursor: pointer;
  transition: border .15s var(--ease);
}
.search-trigger:hover { border-color: var(--rule-strong); color: var(--ink); }
.search-trigger svg { flex-shrink: 0; }
.search-trigger .placeholder { flex: 1; text-align: left; }

.header-nav { display: flex; gap: 4px; align-items: center; margin-left: auto; }
.header-nav a {
  font-size: var(--t-sm);
  color: var(--ink-soft);
  font-weight: 500;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  transition: background .15s var(--ease);
}
.header-nav a:hover { background: var(--surface); color: var(--ink); }
.header-nav a.active { color: var(--ink); }
.header-nav a.active::after {
  content: ''; display: block; height: 2px;
  background: var(--coral); margin: 4px 10px 0;
  border-radius: 1px;
}
.header-nav .soon {
  color: var(--faint);
  cursor: default;
}
.header-nav .soon:hover { background: transparent; color: var(--faint); }
.dot-soon {
  display: inline-block; width: 5px; height: 5px;
  border-radius: 50%; background: var(--faint);
  margin-right: 5px; vertical-align: middle;
}

@media (max-width: 760px) {
  .search-trigger { display: none; }
  .header-nav a { padding: 6px 8px; font-size: 12px; }
  .header-nav .soon { display: none; }
}

@media (max-width: 520px) {
  .header-inner { gap: var(--s-2); }
}

/* ============================================================
   HERO — tool-page (compact, converter-first)
   ============================================================ */
.tool-hero {
  padding: var(--s-5) 0 var(--s-3);
  position: relative;
}
.crumbs {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.02em;
  margin-bottom: var(--s-2);
}
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--ink); }
.crumbs .sep { margin: 0 6px; color: var(--faint); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  padding: 4px 10px;
  background: var(--surface);
  border-radius: 999px;
  margin-bottom: var(--s-2);
}
.eyebrow .pulse {
  display: inline-block; width: 6px; height: 6px;
  background: var(--coral); border-radius: 50%;
  box-shadow: 0 0 0 0 var(--coral);
  animation: pulse 2.2s var(--ease) infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(204,120,92,0.5); }
  70%  { box-shadow: 0 0 0 8px rgba(204,120,92,0); }
  100% { box-shadow: 0 0 0 0 rgba(204,120,92,0); }
}

.tool-hero h1 {
  font-size: clamp(28px, 4.2vw, 42px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.028em;
  color: var(--ink);
  margin-bottom: 12px;
  max-width: 22ch;
}
.tool-hero .lede {
  font-size: var(--t-md);
  color: var(--ink-soft);
  max-width: 60ch;
  line-height: 1.5;
}

/* ============================================================
   CONVERTER — THE hero component
   ============================================================ */
.converter-wrap { padding: var(--s-3) 0 var(--s-5); }

.converter {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow:
    0 1px 0 rgba(0,0,0,0.02),
    0 8px 24px -8px rgba(26,26,26,0.06);
}

.converter-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px var(--s-3);
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}
.converter-bar .label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex; align-items: center; gap: 8px;
}
.converter-bar .label .pulse-dot {
  display: inline-block; width: 6px; height: 6px;
  border-radius: 50%; background: #16A34A;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.15);
}
.converter-bar .tag {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

/* Segmented tabs (Women / Men) */
.seg {
  display: inline-flex;
  padding: 3px;
  background: var(--surface);
  border-radius: var(--radius-sm);
  gap: 2px;
}
.seg button {
  font-family: var(--sans);
  font-size: var(--t-sm);
  font-weight: 500;
  color: var(--muted);
  background: transparent;
  border: none;
  padding: 6px 14px;
  border-radius: 4px;
  transition: all .15s var(--ease);
}
.seg button:hover { color: var(--ink); }
.seg button.is-on {
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}

.converter-body { padding: var(--s-4); }
@media (max-width: 600px) { .converter-body { padding: var(--s-3); } }

.fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-2);
  margin-bottom: var(--s-3);
}
@media (max-width: 600px) { .fields { grid-template-columns: 1fr; } }

.field { display: flex; flex-direction: column; }
.field-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.field-input {
  position: relative;
}
.field select, .field input {
  width: 100%;
  font-family: var(--sans);
  font-size: var(--t-md);
  font-weight: 500;
  color: var(--ink);
  padding: 14px 16px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='none' stroke='%231A1A1A' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' d='M1 1.5l5 5 5-5'/></svg>");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 42px;
  cursor: pointer;
  transition: all .15s var(--ease);
  letter-spacing: -0.005em;
}
.field input { background-image: none; padding-right: 16px; cursor: text; }
.field select:hover { border-color: var(--ink-soft); }
.field select:focus, .field input:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 4px var(--coral-l);
}
.field select:disabled {
  background-color: var(--surface);
  color: var(--muted);
  cursor: not-allowed;
}

/* Result display — Linear/Stripe stats style */
.result-head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin: var(--s-2) 0 12px;
}
.result-head .l {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.result-head .r {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--faint);
}

.result {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  background: var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
}
.result-item {
  padding: 18px var(--s-2);
  border-right: 1px solid rgba(255,255,255,0.08);
  background: var(--ink);
  color: var(--bg);
}
.result-item:last-child { border-right: none; }
.result-item .lbl {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(250,249,246,0.55);
  margin-bottom: 8px;
}
.result-item .val {
  font-family: var(--sans);
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
  color: #FAF9F6;
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum';
}
.result-item .val .unit {
  font-size: 14px;
  font-weight: 400;
  color: rgba(250,249,246,0.5);
  margin-left: 4px;
  letter-spacing: 0;
}

.actions {
  display: flex; gap: 10px; flex-wrap: wrap;
  margin-top: var(--s-3);
  padding-top: var(--s-3);
  border-top: 1px solid var(--rule);
}
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--sans);
  font-size: var(--t-sm);
  font-weight: 500;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  text-decoration: none;
  transition: all .15s var(--ease);
  letter-spacing: -0.005em;
}
.btn-primary {
  background: var(--ink); color: var(--bg);
  border-color: var(--ink);
}
.btn-primary:hover { background: var(--coral); border-color: var(--coral); color: white; }
.btn-ghost {
  background: var(--paper); color: var(--ink);
  border-color: var(--rule);
}
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-icon { padding: 10px; }

/* ============================================================
   TRUST META (under hero)
   ============================================================ */
.trust-meta {
  display: flex; gap: var(--s-3); flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  margin-top: var(--s-3);
  letter-spacing: 0.02em;
}
.trust-meta .meta-item { display: inline-flex; align-items: center; gap: 6px; }
.trust-meta svg { color: var(--muted); flex-shrink: 0; }

/* ============================================================
   IN-PAGE TOC (sticky)
   ============================================================ */
.toc {
  display: flex; gap: var(--s-3); align-items: center;
  padding: 14px var(--s-3);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  margin-bottom: var(--s-4);
  overflow-x: auto;
}
.toc .toc-l {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  flex-shrink: 0;
}
.toc a {
  font-size: var(--t-sm);
  color: var(--ink-soft);
  font-weight: 500;
  white-space: nowrap;
}
.toc a:hover { color: var(--coral); }

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: var(--s-5) 0; }
.section-title {
  display: flex; align-items: baseline; gap: 14px;
  font-size: var(--t-xl);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: var(--s-3);
  line-height: 1.2;
}
.section-title .num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--faint);
  font-weight: 500;
  letter-spacing: 0.04em;
}

/* ============================================================
   TABLE
   ============================================================ */
.table-wrap {
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
  overflow-x: auto;
  background: var(--paper);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--sans);
  font-size: var(--t-sm);
  font-variant-numeric: tabular-nums;
}
th, td {
  padding: 12px 18px;
  text-align: left;
  border-bottom: 1px solid var(--rule);
}
th {
  background: var(--surface);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 1px solid var(--rule);
}
tbody tr:last-child td { border-bottom: none; }
tbody tr { transition: background .12s var(--ease); }
tbody tr:hover { background: var(--surface); }
tbody td:first-child { font-weight: 600; color: var(--ink); }

/* ============================================================
   PROSE
   ============================================================ */
.prose { max-width: 68ch; }
.prose p {
  margin-bottom: var(--s-2);
  color: var(--ink-soft);
  font-size: var(--t-md);
  line-height: 1.7;
}
.prose ul, .prose ol { margin: 0 0 var(--s-2) 22px; }
.prose li { margin-bottom: 6px; color: var(--ink-soft); font-size: var(--t-md); line-height: 1.7; }
.prose h3 {
  font-size: var(--t-lg);
  font-weight: 600;
  color: var(--ink);
  margin: var(--s-3) 0 10px;
  letter-spacing: -0.015em;
}
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--ink); border-bottom: 1px solid var(--coral); }
.prose a:hover { color: var(--coral); }

.callout {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--coral);
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  margin: var(--s-3) 0;
  font-size: var(--t-sm);
  color: var(--ink-soft);
  line-height: 1.6;
}
.callout strong { color: var(--ink); font-weight: 600; }

/* ============================================================
   FAQ — accordion
   ============================================================ */
.faq {
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper);
}
.faq details {
  border-bottom: 1px solid var(--rule);
}
.faq details:last-child { border-bottom: none; }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px var(--s-3);
  font-size: var(--t-md);
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  letter-spacing: -0.01em;
  transition: background .12s var(--ease);
}
.faq summary:hover { background: var(--surface); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '';
  width: 14px; height: 14px;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'><path fill='none' stroke='%2380807A' stroke-width='1.5' stroke-linecap='round' d='M1 4l6 6 6-6'/></svg>");
  background-repeat: no-repeat;
  transition: transform .2s var(--ease);
}
.faq details[open] summary::after { transform: rotate(180deg); }
.faq details[open] summary { background: var(--surface); }
.faq .answer {
  padding: 0 var(--s-3) 18px;
  color: var(--ink-soft);
  font-size: var(--t-md);
  line-height: 1.7;
}

/* ============================================================
   RELATED TOOLS
   ============================================================ */
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}
.related-card {
  display: flex; flex-direction: column;
  padding: var(--s-3);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--ink);
  transition: all .2s var(--ease);
  position: relative;
}
.related-card:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
  color: var(--ink);
}
.related-card:hover .arrow { transform: translateX(3px); color: var(--coral); }
.related-card .r-cat {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.related-card .r-title {
  font-size: var(--t-md);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.related-card .arrow {
  position: absolute; bottom: var(--s-3); right: var(--s-3);
  font-family: var(--mono);
  color: var(--faint);
  transition: all .2s var(--ease);
}

/* ============================================================
   HOMEPAGE
   ============================================================ */
.home-hero {
  padding: var(--s-5) 0 var(--s-3);
  position: relative;
  overflow: hidden;
}
.home-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(26,26,26,0.07) 1px, transparent 0);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black, transparent 80%);
  pointer-events: none;
}
.home-hero-inner { position: relative; max-width: 960px; margin: 0 auto; text-align: center; padding: 0 var(--s-3); }
.home-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  padding: 6px 14px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 999px;
  margin-bottom: var(--s-3);
}
.home-eyebrow .pulse { width: 6px; height: 6px; border-radius: 50%; background: var(--coral); }

.home-hero h1 {
  font-size: 44px;
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: 0;
  color: var(--ink);
  margin-bottom: 12px;
  white-space: nowrap;
}
.home-hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--coral) 0%, #D89071 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.home-hero p {
  font-size: var(--t-md);
  color: var(--ink-soft);
  max-width: 52ch;
  margin: 0 auto var(--s-2);
  line-height: 1.5;
}

.chip-row {
  display: flex; gap: 8px; justify-content: center; flex-wrap: wrap;
  margin-top: var(--s-2);
}
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-size: var(--t-sm);
  color: var(--ink);
  font-weight: 500;
  transition: all .15s var(--ease);
}
.chip:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip.disabled { color: var(--faint); cursor: default; }
.chip.disabled:hover { background: var(--paper); color: var(--faint); border-color: var(--rule); }

.home-quick {
  padding: var(--s-2) 0 var(--s-5);
}
.home-quick-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  gap: var(--s-4);
  align-items: center;
}
.quick-copy {
  padding: var(--s-3) 0;
}
.quick-kicker {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 10px;
}
.quick-copy h2 {
  font-size: var(--t-2xl);
  line-height: 1.12;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 12px;
}
.quick-copy p {
  color: var(--ink-soft);
  font-size: var(--t-md);
  line-height: 1.6;
  max-width: 44ch;
}
.quick-points {
  display: grid;
  gap: 8px;
  margin-top: var(--s-3);
  color: var(--ink-soft);
  font-size: var(--t-sm);
}
.quick-points span {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 8px;
  align-items: baseline;
}
.quick-points span::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--coral);
  margin-top: 8px;
}
.home-converter .converter-body {
  padding: var(--s-3);
}
.home-converter .result-item .val {
  font-size: 26px;
}
.home-intent-title {
  margin-top: var(--s-3);
}
.intent-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.intent-link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 88px;
  padding: 14px 16px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  color: var(--ink);
  transition: border .15s var(--ease), transform .15s var(--ease);
}
.intent-link:hover {
  border-color: var(--ink);
  transform: translateY(-1px);
  color: var(--ink);
}
.intent-link span {
  font-weight: 600;
  font-size: var(--t-sm);
  line-height: 1.3;
}
.intent-link small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}
.home-metrics {
  margin-top: var(--s-4);
}

/* Tool grid */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}
.tool-card {
  display: flex; flex-direction: column;
  padding: var(--s-3);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--ink);
  transition: all .2s var(--ease);
  position: relative;
  min-height: 130px;
}
.tool-card:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px -12px rgba(26,26,26,0.15);
  color: var(--ink);
}
.tool-card:hover .arrow { transform: translateX(3px); color: var(--coral); }
.tool-card .top {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 10px;
}
.tool-card .cat {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--coral);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
}
.tool-card .cat.soon { color: var(--faint); }
.tool-card .status {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.tool-card .status::before {
  content: '';
  width: 6px; height: 6px; border-radius: 50%;
  background: #16A34A;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.15);
}
.tool-card .status.soon::before { background: var(--faint); box-shadow: none; }
.tool-card h3 {
  font-size: var(--t-md);
  font-weight: 600;
  letter-spacing: -0.018em;
  color: var(--ink);
  margin-bottom: 6px;
  line-height: 1.25;
}
.tool-card p {
  font-size: var(--t-sm);
  color: var(--muted);
  line-height: 1.5;
}
.tool-card .arrow {
  position: absolute; bottom: var(--s-3); right: var(--s-3);
  color: var(--faint);
  transition: all .2s var(--ease);
  font-family: var(--mono);
}
.tool-card.disabled { cursor: default; }
.tool-card.disabled:hover { transform: none; border-color: var(--rule); box-shadow: none; }
.tool-card.disabled .arrow { display: none; }

.cat-divider {
  display: flex; align-items: baseline; gap: var(--s-2);
  margin: var(--s-6) 0 var(--s-3);
}
.cat-divider h2 {
  font-size: var(--t-xl);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.cat-divider .line { flex: 1; height: 1px; background: var(--rule); }
.cat-divider .count {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* ============================================================
   SEARCH
   ============================================================ */
.search-panel {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 9vh var(--s-3) 0;
}
.search-panel.is-open { display: flex; }
.search-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 26, 26, 0.32);
  backdrop-filter: blur(4px);
}
.search-box {
  position: relative;
  z-index: 1;
  width: min(640px, 100%);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 70px -24px rgba(26,26,26,0.35);
  overflow: hidden;
}
.search-input-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--rule);
}
.search-input-row svg { color: var(--muted); }
.search-input-row input {
  border: 0;
  outline: 0;
  font: 500 var(--t-md)/1.4 var(--sans);
  color: var(--ink);
  background: transparent;
  min-width: 0;
}
.search-input-row button {
  border: 1px solid var(--rule);
  background: var(--surface);
  color: var(--muted);
  border-radius: 4px;
  padding: 4px 8px;
  font-family: var(--mono);
  font-size: 11px;
}
.search-results {
  max-height: min(62vh, 520px);
  overflow: auto;
  padding: 8px;
}
.search-result {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 3px 14px;
  padding: 13px 14px;
  border-radius: var(--radius-sm);
  color: var(--ink);
}
.search-result:hover {
  background: var(--surface);
  color: var(--ink);
}
.search-result .search-cat {
  grid-row: span 2;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--coral);
  padding-top: 3px;
}
.search-result strong {
  font-size: var(--t-sm);
  font-weight: 600;
  line-height: 1.25;
}
.search-result span:last-child {
  color: var(--muted);
  font-size: var(--t-sm);
  line-height: 1.4;
}

/* ============================================================
   UNIT LANDING + NOTES
   ============================================================ */
.section-lead {
  max-width: 68ch;
  color: var(--ink-soft);
  font-size: var(--t-md);
  line-height: 1.6;
  margin-bottom: var(--s-3);
}
.metric-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--paper);
  overflow: hidden;
  margin-top: var(--s-4);
}
.metric {
  padding: var(--s-3);
  border-right: 1px solid var(--rule);
}
.metric:last-child { border-right: 0; }
.metric .k {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.metric .v {
  display: block;
  font-size: var(--t-lg);
  line-height: 1.2;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.015em;
}
.note-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}
.note-card {
  padding: var(--s-3);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}
.note-card h3 {
  font-size: var(--t-md);
  margin-bottom: 8px;
  letter-spacing: -0.015em;
}
.note-card p {
  color: var(--ink-soft);
  font-size: var(--t-sm);
  line-height: 1.6;
}

@media (max-width: 760px) {
  .metric-strip { grid-template-columns: 1fr 1fr; }
  .metric:nth-child(2) { border-right: 0; }
  .metric:nth-child(-n+2) { border-bottom: 1px solid var(--rule); }
  .search-result { grid-template-columns: 1fr; }
  .search-result .search-cat { grid-row: auto; }
  .home-hero-inner { max-width: 620px; }
  .home-hero h1 { white-space: normal; }
  .home-quick-grid { grid-template-columns: 1fr; }
  .home-converter { order: -1; }
  .quick-copy { padding: var(--s-2) 0 0; }
  .intent-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 520px) {
  .brand { font-size: 14px; }
  .header-inner { padding: 12px var(--s-2); }
  .header-nav a { padding: 6px 6px; }
  .home-hero { padding: var(--s-4) 0 var(--s-3); }
  .home-hero h1 {
    font-size: 34px;
    line-height: 1.08;
    letter-spacing: 0;
  }
  .home-hero p {
    font-size: var(--t-base);
    max-width: 31ch;
  }
  .home-eyebrow {
    max-width: calc(100vw - 32px);
    white-space: normal;
    justify-content: center;
  }
  .chip-row {
    padding: 0 4px;
  }
  .chip {
    padding: 7px 12px;
  }
  .intent-grid { grid-template-columns: 1fr; }
  .quick-copy h2 { font-size: var(--t-xl); }
  .home-converter .result-item .val { font-size: 24px; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid var(--rule);
  padding: var(--s-6) 0 var(--s-3);
  margin-top: var(--s-7);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(4, minmax(0, 1fr));
  gap: var(--s-4);
  margin-bottom: var(--s-5);
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

.footer h4 {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--s-2);
}
.footer a {
  font-size: var(--t-sm);
  color: var(--ink-soft);
  display: block;
  padding: 4px 0;
}
.footer a:hover { color: var(--coral); }
.footer .f-brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: var(--t-md);
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.footer .f-tag {
  font-size: var(--t-sm);
  color: var(--muted);
  max-width: 32ch;
  line-height: 1.5;
}

.footer-bottom {
  border-top: 1px solid var(--rule);
  padding-top: var(--s-3);
  display: flex; justify-content: space-between;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.footer-bottom a {
  display: inline;
  padding: 0;
  color: var(--muted);
  font-size: inherit;
}
.footer-bottom a:hover { color: var(--coral); }
@media (max-width: 600px) { .footer-bottom { flex-direction: column; gap: 8px; } }
