/* ============================================================
   Zhaohua — global styles
   Front-of-house: English. Admin: Chinese.
   ============================================================ */

:root {
  --ink: #121a1c;
  --ink-2: #1e2b2e;
  --ink-3: #46585c;
  --paper: #f3f2ed;
  --paper-2: #fdfcf8;
  --line: #dcd9cf;
  --line-2: #eae7dd;
  --teal: #0b6157;
  --teal-dark: #074740;
  --teal-soft: #e0eeea;
  --amber: #b05f1b;
  --amber-soft: #f7e9da;
  --muted: #6d7c7f;
  --danger: #a5342a;
  --danger-soft: #fae7e4;
  --steel: #37505a;
  --blueprint: #0e2024;
  --shadow-sm: 0 1px 2px rgba(18, 26, 28, .07), 0 2px 8px rgba(18, 26, 28, .05);
  --shadow-md: 0 10px 26px rgba(18, 26, 28, .09), 0 2px 6px rgba(18, 26, 28, .05);
  --shadow-lg: 0 26px 64px rgba(18, 26, 28, .13);
  --radius: 10px;
  --radius-sm: 6px;
  --font: "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  --max: 1160px;
}

* { box-sizing: border-box; }

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

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

h1, h2, h3, h4, h5 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

p { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }

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

::selection { background: var(--teal); color: #fff; }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--max); margin-left: auto; margin-right: auto; padding: 0 28px; }
@media (max-width: 640px) { .wrap { padding: 0 18px; } }

.section { padding: 96px 0; }
.section--tight { padding: 64px 0; }
@media (max-width: 820px) { .section { padding: 64px 0; } .section--tight { padding: 48px 0; } }

/* ---------- typography helpers ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--teal);
}
.eyebrow::before {
  content: "";
  width: 22px; height: 2px;
  background: var(--teal);
  display: block;
}

.lead { font-size: 18px; line-height: 1.65; color: var(--ink-3); }
.small { font-size: 13.5px; color: var(--muted); }
.mono { font-family: var(--mono); letter-spacing: .02em; }

.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 42px); margin: 14px 0 16px; }
.section-head p { color: var(--ink-3); font-size: 17px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--teal); color: #fff; box-shadow: 0 6px 18px rgba(12, 124, 107, .22); }
.btn--primary:hover { background: var(--teal-dark); box-shadow: 0 10px 22px rgba(12, 124, 107, .26); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink-3); background: #fff; }
.btn--light { background: #fff; color: var(--ink); border-color: #fff; }
.btn--sm { height: 38px; padding: 0 16px; font-size: 13.5px; }
.btn--block { width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }

.arrow { width: 15px; height: 15px; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 244, 239, .86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background .25s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); background: rgba(246, 244, 239, .95); }

.nav {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand__mark {
  width: 34px; height: 34px;
  border-radius: 9px;
  background: var(--ink);
  color: #fff;
  display: grid; place-items: center;
  font-weight: 800; font-size: 15px;
  letter-spacing: -0.03em;
}
.brand__name { font-weight: 800; letter-spacing: -0.03em; font-size: 18px; }
.brand__name span { color: var(--teal); }

.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links a { font-size: 14.5px; font-weight: 500; color: var(--ink-3); transition: color .18s ease; white-space: nowrap; }
.nav__links a:hover { color: var(--ink); }
.nav__actions { display: flex; align-items: center; gap: 12px; }

.lang-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--ink-3);
  background: #fff;
  white-space: nowrap;
}

.nav__toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--line); background: #fff; border-radius: 10px; cursor: pointer; align-items: center; justify-content: center; }
.nav__toggle span, .nav__toggle span::before, .nav__toggle span::after {
  display: block; width: 18px; height: 2px; background: var(--ink); position: relative; content: "";
}
.nav__toggle span::before { position: absolute; top: -6px; }
.nav__toggle span::after { position: absolute; top: 6px; }

@media (max-width: 1060px) {
  .nav__links, .lang-pill { display: none; }
  .nav__toggle { display: flex; }
  .nav__actions .btn { display: none; }
}

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 92px 0 84px; }
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(700px 420px at 82% 8%, rgba(12, 124, 107, .11), transparent 65%),
    radial-gradient(560px 380px at 6% 92%, rgba(193, 112, 31, .09), transparent 70%);
  pointer-events: none;
}
.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 980px) { .hero__grid { grid-template-columns: 1fr; gap: 44px; } .hero { padding: 56px 0 60px; } }

.hero h1 {
  font-size: clamp(34px, 4.2vw, 54px);
  letter-spacing: -0.035em;
  line-height: 1.06;
  margin: 22px 0 24px;
}
.hero h1 em { font-style: normal; color: var(--teal); position: relative; }
.hero h1 em::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 8px;
  background: rgba(12, 124, 107, .14); border-radius: 4px; z-index: -1;
}
.hero__sub { max-width: 520px; font-size: 18px; color: var(--ink-3); line-height: 1.62; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 38px; padding-top: 26px; border-top: 1px solid var(--line); }
.hero__meta div { font-size: 13px; color: var(--muted); }
.hero__meta b { display: block; font-size: 22px; color: var(--ink); letter-spacing: -0.02em; margin-bottom: 2px; }
@media (max-width: 560px) {
  .hero__meta { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
  .hero__meta b { font-size: 19px; }
}

/* hero card */
.hero__card {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: rotate(.4deg);
}
.card__bar {
  display: flex; align-items: center; gap: 8px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line-2);
  background: #fbfaf6;
  font-size: 12px; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; font-weight: 600;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: #c7c1b3; }
.dot--live { background: var(--teal); box-shadow: 0 0 0 3px rgba(12, 124, 107, .16); }
.card__body { padding: 22px 22px 24px; }
.card__row { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; margin-bottom: 14px; }
.card__tag {
  font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--teal); background: var(--teal-soft);
  padding: 5px 10px; border-radius: 999px;
}
.card__ref { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.card__title { font-size: 19px; font-weight: 700; line-height: 1.35; margin-bottom: 8px; letter-spacing: -0.015em; }
.card__desc { font-size: 14px; color: var(--ink-3); line-height: 1.6; }
.card__specs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 18px; background: var(--line-2); border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; }
.card__specs div { background: #fff; padding: 11px 12px; }
.card__specs span { display: block; font-size: 10.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; }
.card__specs b { font-size: 13.5px; font-weight: 600; }
.card__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line); font-size: 13px; color: var(--muted); }
.card__quote { font-weight: 700; color: var(--ink); font-size: 16px; }
.card__quote small { font-weight: 400; color: var(--muted); font-size: 12px; }

/* ---------- logo strip ---------- */
.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fbfaf6; padding: 22px 0; }
.strip__inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.strip__label { font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.strip__items { display: flex; gap: 40px; flex-wrap: wrap; }
.strip__items span { font-size: 14px; font-weight: 700; letter-spacing: -0.01em; color: var(--ink-3); opacity: .72; }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 8px; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

.step {
  position: relative;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px 28px;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #d5cfc1; }
.step__num {
  font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: .08em;
  color: var(--teal); margin-bottom: 18px; display: flex; align-items: center; gap: 10px;
}
.step__num::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.step h3 { font-size: 18px; margin-bottom: 10px; }
.step p { font-size: 14px; color: var(--ink-3); line-height: 1.62; }
.step__time { margin-top: 16px; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--amber); }

/* ---------- capabilities ---------- */
.caps { background: var(--ink); color: #fff; }
.caps .eyebrow { color: #6fd3bf; }
.caps .eyebrow::before { background: #6fd3bf; }
.caps .section-head h2 { color: #fff; }
.caps .section-head p { color: rgba(255, 255, 255, .62); }
.caps .lead { color: rgba(255,255,255,.6); }

.cap-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .1); border-radius: 16px; overflow: hidden; }
@media (max-width: 900px) { .cap-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cap-grid { grid-template-columns: 1fr; } }

.cap { background: #142c35; padding: 26px 22px 28px; transition: background .25s ease; min-height: 168px; }
.cap:hover { background: #19343e; }
.cap__icon { width: 34px; height: 34px; margin-bottom: 16px; color: #6fd3bf; }
.cap__flag { display: inline-block; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; margin-bottom: 10px; background: rgba(111,211,191,.14); color: #8fe0cd; }
.cap__flag--build { background: rgba(255,255,255,.08); color: rgba(255,255,255,.55); }
.cap h3 { font-size: 15.5px; margin-bottom: 7px; letter-spacing: -0.01em; }
.cap p { font-size: 13px; line-height: 1.55; color: rgba(255, 255, 255, .55); }

.cap--cta { background: #0f222a; display: flex; flex-direction: column; justify-content: center; }
.cap--cta:hover { background: #122932; }
.cap--cta h3 { font-size: 17px; margin-bottom: 9px; }
.cap--cta p { color: rgba(255, 255, 255, .62); font-size: 13px; }
.cap__link { margin-top: 16px; display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700; color: #6fd3bf; }
.cap__link span { transition: transform .2s ease; }
.cap--cta:hover .cap__link span { transform: translateX(3px); }

/* ---------- open requests board ---------- */
.board-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 32px; }
.board { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .board { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .board { grid-template-columns: 1fr; } }

.req-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 22px 20px; display: flex; flex-direction: column; gap: 12px;
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}
.req-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #d8d2c4; }
.req-card__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.req-card__cat { font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--teal); }
.req-card__ref { font-family: var(--mono); font-size: 11px; color: #9aa8ad; }
.req-card h3 { font-size: 16.5px; line-height: 1.4; letter-spacing: -0.01em; }
.req-card__desc { font-size: 13.5px; color: var(--ink-3); line-height: 1.6; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.req-card__meta { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 14px; border-top: 1px dashed var(--line); font-size: 12px; color: var(--muted); }
.req-card__meta span { background: #f4f2ec; padding: 3px 9px; border-radius: 6px; }
.req-card__link { font-size: 13px; font-weight: 600; color: var(--teal); display: inline-flex; align-items: center; gap: 5px; }

/* ---------- why us ---------- */
.why { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
@media (max-width: 900px) { .why { grid-template-columns: 1fr; gap: 36px; } }
.why__list { display: grid; gap: 14px; }
.why__item { display: flex; gap: 16px; padding: 22px 24px; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); }
.why__item .num { font-family: var(--mono); font-size: 12px; font-weight: 700; color: var(--amber); padding-top: 3px; }
.why__item h3 { font-size: 16.5px; margin-bottom: 6px; }
.why__item p { font-size: 13.5px; color: var(--ink-3); line-height: 1.6; }

.why__panel {
  position: sticky; top: 100px;
  background: var(--ink); color: #fff; border-radius: 18px; padding: 34px 32px;
  box-shadow: var(--shadow-lg);
}
.why__panel h3 { font-size: 22px; color: #fff; margin-bottom: 8px; }
.why__panel p { color: rgba(255,255,255,.62); font-size: 14px; line-height: 1.6; }
.why__panel .metric { display: flex; justify-content: space-between; align-items: baseline; padding: 13px 0; border-bottom: 1px solid rgba(255,255,255,.12); font-size: 13.5px; color: rgba(255,255,255,.7); }
.why__panel .metric b { font-size: 21px; color: #fff; letter-spacing: -0.02em; }
.why__panel .metric:last-of-type { border-bottom: 0; }
.why__panel .btn { margin-top: 26px; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 0; border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__btn {
  width: 100%; background: none; border: 0; padding: 24px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  cursor: pointer; text-align: left;
}
.faq__btn h3 { font-size: 16.5px; font-weight: 600; letter-spacing: -0.01em; }
.faq__icon { width: 20px; height: 20px; flex: none; position: relative; }
.faq__icon::before, .faq__icon::after {
  content: ""; position: absolute; background: var(--teal); border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}
.faq__icon::before { left: 0; right: 0; top: 9px; height: 2px; }
.faq__icon::after { top: 0; bottom: 0; left: 9px; width: 2px; }
.faq__item.is-open .faq__icon::after { transform: scaleY(0); opacity: 0; }
.faq__panel { max-height: 0; overflow: hidden; transition: max-height .32s ease; }
.faq__panel p { padding: 0 0 24px; color: var(--ink-3); font-size: 14.5px; line-height: 1.68; max-width: 760px; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--teal); color: #fff; border-radius: 22px; padding: 56px 56px; position: relative; overflow: hidden; }
@media (max-width: 700px) { .cta-band { padding: 38px 26px; } }
.cta-band::after {
  content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px;
  border-radius: 50%; border: 1px solid rgba(255, 255, 255, .18);
  box-shadow: 0 0 0 40px rgba(255, 255, 255, .05), 0 0 0 90px rgba(255, 255, 255, .04);
}
.cta-band__inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.cta-band h2 { font-size: clamp(26px, 3.2vw, 38px); color: #fff; max-width: 560px; }
.cta-band p { color: rgba(255, 255, 255, .8); margin-top: 12px; font-size: 15.5px; }

/* ---------- footer ---------- */
.site-footer { background: #0d1d24; color: rgba(255, 255, 255, .6); padding: 60px 0 32px; margin-top: 96px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
.footer__brand .brand__mark { background: #fff; color: var(--ink); }
.footer__brand .brand__name { color: #fff; }
.footer__brand p { font-size: 13.5px; line-height: 1.65; margin-top: 16px; max-width: 290px; }
.footer__col h4 { font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .42); margin-bottom: 16px; font-weight: 700; }
.footer__col a, .footer__col p { display: block; font-size: 13.5px; margin-bottom: 9px; color: rgba(255, 255, 255, .68); }
.footer__col a:hover { color: #fff; }
.footer__bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 12.5px; }

/* ============================================================
   Inner pages shared
   ============================================================ */
.page-head { padding: 64px 0 40px; border-bottom: 1px solid var(--line); background: #fbfaf6; }
.page-head h1 { font-size: clamp(30px, 4vw, 46px); margin: 14px 0 14px; letter-spacing: -0.03em; }
.page-head p { max-width: 640px; color: var(--ink-3); font-size: 16.5px; }

.breadcrumb { display: flex; gap: 8px; align-items: center; font-size: 12.5px; color: var(--muted); }
.breadcrumb a:hover { color: var(--teal); }

/* ---------- form ---------- */
.form-shell { display: grid; grid-template-columns: 268px 1fr; gap: 56px; padding: 56px 0 40px; align-items: start; }
@media (max-width: 940px) { .form-shell { grid-template-columns: 1fr; gap: 22px; } .form-aside { order: 2; } #form-card { order: 1; } .form-aside__steps { display: none; } }

.form-aside { position: sticky; top: 100px; }
@media (max-width: 940px) { .form-aside { position: static; } }
.form-aside__steps { display: flex; flex-direction: column; gap: 4px; margin-top: 22px; }
.aside-step { display: flex; gap: 14px; padding: 14px 0; border-left: 2px solid var(--line); padding-left: 18px; }
.aside-step.is-active { border-left-color: var(--teal); }
.aside-step.is-done { border-left-color: #b7cfc9; }
.aside-step .n { font-family: var(--mono); font-size: 11.5px; font-weight: 700; color: var(--muted); width: 18px; }
.aside-step h4 { font-size: 13.5px; font-weight: 600; margin-bottom: 2px; }
.aside-step p { font-size: 12px; color: var(--muted); }
.aside-step.is-active .n, .aside-step.is-active h4 { color: var(--teal); }
.aside-note { margin-top: 30px; background: var(--paper-2); border: 1px solid var(--line); border-radius: 12px; padding: 18px; font-size: 12.5px; color: var(--ink-3); line-height: 1.6; }

.card { background: var(--paper-2); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-sm); }
.card__inner { padding: 34px 36px 38px; }
@media (max-width: 640px) { .card__inner { padding: 24px 20px 28px; } }

.step-panel { display: none; }
.step-panel.is-active { display: block; animation: fadeUp .35s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.form-step-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.form-step-head h2 { font-size: 22px; }
.form-step-head span { font-family: var(--mono); font-size: 12px; color: var(--muted); }

.field { margin-bottom: 22px; }
.field--half { margin-bottom: 0; }
.field label { display: block; font-size: 13px; font-weight: 600; letter-spacing: .01em; margin-bottom: 8px; }
.field label .req { color: var(--amber); margin-left: 3px; }
.field .hint { font-size: 12.5px; color: var(--muted); margin-top: 6px; line-height: 1.55; }

.input, .textarea, .select {
  width: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 15px;
  transition: border-color .18s ease, box-shadow .18s ease;
  outline: none;
}
.input:focus, .textarea:focus, .select:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(12, 124, 107, .12); }
.input.has-error, .textarea.has-error, .select.has-error { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(176, 58, 46, .1); }
.textarea { min-height: 148px; resize: vertical; line-height: 1.6; }
.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 1l5 5 5-5' stroke='%236a7c83' 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; }

.field-error { display: none; font-size: 12.5px; color: var(--danger); margin-top: 6px; }
.field-error.is-visible { display: block; }

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

/* category picker */
.cat-picker { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (max-width: 620px) { .cat-picker { grid-template-columns: 1fr; } }
.cat-option {
  position: relative; display: flex; gap: 12px; align-items: flex-start;
  border: 1px solid var(--line); background: #fff; border-radius: 12px;
  padding: 14px 16px; cursor: pointer; text-align: left;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.cat-option:hover { border-color: #cfc8b8; }
.cat-option.is-selected { border-color: var(--teal); background: var(--teal-soft); box-shadow: 0 0 0 3px rgba(12, 124, 107, .08); }
.cat-option__dot { width: 15px; height: 15px; border-radius: 50%; border: 1.5px solid #c9c2b2; flex: none; margin-top: 2px; position: relative; }
.cat-option.is-selected .cat-option__dot { border-color: var(--teal); background: var(--teal); }
.cat-option.is-selected .cat-option__dot::after { content: ""; position: absolute; inset: 3.5px; background: #fff; border-radius: 50%; }
.cat-option h4 { font-size: 14px; margin-bottom: 2px; font-weight: 600; }
.cat-option p { font-size: 12px; color: var(--muted); line-height: 1.45; }

/* file drop */
.drop {
  border: 1.5px dashed #d3ccbc; border-radius: 12px; background: #fcfbf8;
  padding: 26px 20px; text-align: center; cursor: pointer; transition: border-color .2s ease, background .2s ease;
}
.drop:hover, .drop.is-over { border-color: var(--teal); background: var(--teal-soft); }
.drop__icon { width: 26px; height: 26px; margin: 0 auto 10px; color: var(--teal); }
.drop strong { font-size: 14px; display: block; margin-bottom: 4px; }
.drop span { font-size: 12.5px; color: var(--muted); }
.drop input { display: none; }

.file-list { display: grid; gap: 8px; margin-top: 12px; }
.file-item { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line-2); border-radius: 8px; padding: 9px 12px; font-size: 13px; }
.file-item .name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-item .size { color: var(--muted); font-size: 12px; font-family: var(--mono); }
.file-item .remove { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 16px; line-height: 1; padding: 2px 4px; }
.file-item .remove:hover { color: var(--danger); }

/* checkbox */
.check { display: flex; gap: 11px; align-items: flex-start; font-size: 13px; color: var(--ink-3); line-height: 1.55; cursor: pointer; }
.check input { width: 17px; height: 17px; margin-top: 2px; accent-color: var(--teal); flex: none; }
.check--box { background: #fbfaf6; border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; }

.form-nav { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line-2); }
.form-nav .back { background: none; border: 0; color: var(--muted); font-size: 13.5px; cursor: pointer; padding: 8px 0; font-weight: 500; }
.form-nav .back:hover { color: var(--ink); }

/* review */
.review { display: grid; gap: 1px; background: var(--line-2); border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden; }
.review__row { background: #fff; padding: 13px 16px; display: grid; grid-template-columns: 150px 1fr; gap: 16px; font-size: 13.5px; }
@media (max-width: 620px) { .review__row { grid-template-columns: 1fr; gap: 4px; } }
.review__row span { color: var(--muted); font-size: 12px; letter-spacing: .03em; text-transform: uppercase; }
.review__row b { font-weight: 500; word-break: break-word; }
.review__row pre { margin: 0; white-space: pre-wrap; font-family: inherit; font-weight: 400; }

/* success */
.success { text-align: center; padding: 26px 0 8px; }
.success__icon { width: 62px; height: 62px; border-radius: 50%; background: var(--teal-soft); color: var(--teal); display: grid; place-items: center; margin: 0 auto 22px; }
.success h2 { font-size: 26px; margin-bottom: 10px; }
.success p { color: var(--ink-3); max-width: 480px; margin: 0 auto; font-size: 15px; }
.ref-box { display: inline-flex; align-items: center; gap: 14px; margin: 26px auto 8px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; }
.ref-box small { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); display: block; }
.ref-box b { font-family: var(--mono); font-size: 19px; letter-spacing: .02em; }
.copy-btn { background: var(--teal-soft); color: var(--teal); border: 0; border-radius: 8px; padding: 7px 12px; font-size: 12px; font-weight: 700; cursor: pointer; }
.success__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }

/* ============================================================
   Track
   ============================================================ */
.block-label { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }

.status-path { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 6px; margin-top: 14px; max-width: 320px; }
.status-path__step { font-size: 10.5px; letter-spacing: .04em; text-transform: uppercase; color: #a4b0b4; white-space: nowrap; }
.status-path__step.done { color: #8fb3ad; }
.status-path__step.current { color: var(--teal); font-weight: 700; }
.status-path__line { width: 8px; height: 1px; background: #d8d3c6; }

.track-shell { padding: 48px 0 24px; max-width: 860px; margin: 0 auto; }
.lookup-card { padding: 30px 32px; }
.lookup-card h2 { font-size: 19px; margin-bottom: 6px; }
.lookup-card p { font-size: 13.5px; color: var(--muted); margin-bottom: 20px; }
.lookup-row { display: flex; gap: 12px; }
@media (max-width: 560px) { .lookup-row { flex-direction: column; } }
.lookup-row .input { flex: 1; }
.lookup-hint { font-size: 12.5px; color: var(--muted); margin-top: 14px; }
.lookup-error { display: none; margin-top: 14px; background: var(--danger-soft); color: var(--danger); border-radius: 9px; padding: 11px 14px; font-size: 13px; }
.lookup-error.is-visible { display: block; }

.result { margin-top: 26px; display: none; }
.result.is-visible { display: block; animation: fadeUp .35s ease; }

.ticket { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.ticket__head { padding: 24px 28px 22px; border-bottom: 1px solid var(--line-2); display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; align-items: flex-start; }
.ticket__head h2 { font-size: 20px; margin: 6px 0 8px; }
.ticket__head .cat { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--teal); }
.ticket__body { padding: 24px 28px 28px; display: grid; gap: 26px; }

.status-chip { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; padding: 6px 12px; border-radius: 999px; white-space: nowrap; }
.status-chip .dot2 { width: 6px; height: 6px; border-radius: 50%; }
.st-new { background: #eef1f2; color: #53666d; }
.st-new .dot2 { background: #6a7c83; }
.st-quoted { background: var(--amber-soft); color: #96551a; }
.st-quoted .dot2 { background: #c1701f; }
.st-accepted { background: var(--teal-soft); color: var(--teal-dark); }
.st-accepted .dot2 { background: var(--teal); }
.st-in_progress { background: #e6eefb; color: #2c5b9e; }
.st-in_progress .dot2 { background: #3a70b8; }
.st-delivered { background: #e8f3e9; color: #2a7040; }
.st-delivered .dot2 { background: #3f8c58; }
.st-closed { background: #f0eeec; color: #7a6f66; }
.st-closed .dot2 { background: #9a9088; }

.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-2); border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; }
@media (max-width: 620px) { .info-grid { grid-template-columns: repeat(2, 1fr); } }
.info-grid div { background: #fff; padding: 12px 14px; }
.info-grid span { display: block; font-size: 10.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; }
.info-grid b { font-size: 13.5px; font-weight: 600; }

.quote-box { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.quote-box__head { background: #fbfaf6; padding: 12px 18px; font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line-2); }
.quote-box__body { padding: 20px 18px; }
.quote-amount { display: flex; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.quote-amount b { font-size: 30px; letter-spacing: -0.03em; }
.quote-amount span { font-size: 13px; color: var(--muted); }
.quote-note { font-size: 13.5px; color: var(--ink-3); line-height: 1.6; margin-top: 10px; }
.quote-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }

.timeline { display: grid; gap: 0; }
.tl-item { position: relative; padding: 0 0 22px 30px; border-left: 1px solid var(--line); }
.tl-item:last-child { border-left-color: transparent; padding-bottom: 0; }
.tl-item::before { content: ""; position: absolute; left: -5px; top: 4px; width: 9px; height: 9px; border-radius: 50%; background: var(--paper); border: 2px solid var(--teal); }
.tl-item__date { font-size: 11.5px; color: var(--muted); font-family: var(--mono); margin-bottom: 3px; }
.tl-item__text { font-size: 13.5px; line-height: 1.55; }

.thread { display: grid; gap: 10px; }
.msg { max-width: 82%; background: #f4f2ec; border-radius: 12px; padding: 11px 14px; font-size: 13px; line-height: 1.55; }
.msg--me { margin-left: auto; background: var(--teal-soft); }
.msg__meta { font-size: 10.5px; color: var(--muted); margin-bottom: 3px; letter-spacing: .03em; text-transform: uppercase; }
.thread-form { display: flex; gap: 10px; margin-top: 14px; }
.thread-form .input { flex: 1; }

/* ============================================================
   Admin (Chinese UI)
   ============================================================ */
.admin-body { background: #eef0f1; }
.admin-top { background: #10222a; color: #fff; padding: 0; position: sticky; top: 0; z-index: 40; }
.admin-top__inner { height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.admin-top .brand__mark { background: #fff; color: var(--ink); }
.admin-top .brand__name { color: #fff; }
.admin-top__right { display: flex; align-items: center; gap: 16px; font-size: 13px; color: rgba(255,255,255,.62); }
.admin-top__right a:hover { color: #fff; }
.admin-top__right .link-light { color: #6fd3bf; font-weight: 600; }

.login-wrap { min-height: calc(100vh - 66px); display: grid; place-items: center; padding: 40px 20px; }
.login-card { background: #fff; border-radius: 16px; box-shadow: var(--shadow-lg); padding: 38px 36px; width: 100%; max-width: 400px; }
.login-card h1 { font-size: 22px; margin-bottom: 6px; }
.login-card p { font-size: 13px; color: var(--muted); margin-bottom: 26px; }
.login-card .field { margin-bottom: 16px; }
.login-err { display: none; background: var(--danger-soft); color: var(--danger); font-size: 13px; padding: 10px 12px; border-radius: 8px; margin-bottom: 16px; }
.login-err.is-visible { display: block; }

.admin-main { padding: 28px 0 60px; display: none; }
.admin-main.is-visible { display: block; }

.stat-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-bottom: 24px; }
@media (max-width: 900px) { .stat-row { grid-template-columns: repeat(2, 1fr); } }
.stat { background: #fff; border-radius: 12px; padding: 18px 20px; border: 1px solid #e3e6e7; }
.stat span { font-size: 12px; color: #6a7c83; display: block; margin-bottom: 6px; }
.stat b { font-size: 26px; letter-spacing: -0.03em; }
.stat.is-accent b { color: var(--teal); }

.toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; background: #fff; border: 1px solid #e3e6e7; border-radius: 12px; padding: 12px 14px; margin-bottom: 18px; }
.toolbar .input { border-color: #e3e6e7; height: 38px; padding: 0 12px; font-size: 13.5px; }
.toolbar .select { height: 38px; padding: 0 34px 0 12px; font-size: 13.5px; border-color: #e3e6e7; width: auto; }
.toolbar .search { flex: 1; min-width: 180px; }

.table-wrap { background: #fff; border: 1px solid #e3e6e7; border-radius: 12px; overflow: hidden; }
.table-scroll { overflow-x: auto; }
table.admin-table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 880px; }
.admin-table thead th { background: #f7f8f8; text-align: left; font-size: 12px; font-weight: 600; color: #6a7c83; padding: 11px 16px; border-bottom: 1px solid #e3e6e7; white-space: nowrap; }
.admin-table tbody tr { border-bottom: 1px solid #f0f2f2; cursor: pointer; transition: background .15s ease; }
.admin-table tbody tr:hover { background: #f7fbfa; }
.admin-table tbody tr:last-child { border-bottom: 0; }
.admin-table td { padding: 13px 16px; vertical-align: middle; }
.admin-table td .t-title { font-weight: 600; display: block; margin-bottom: 2px; }
.admin-table td .t-sub { font-size: 11.5px; color: #8b979c; }
.admin-table .ref { font-family: var(--mono); font-size: 12px; color: #6a7c83; white-space: nowrap; }
.admin-table .amount { font-weight: 600; white-space: nowrap; }
.empty-row { padding: 48px 20px; text-align: center; color: #8b979c; font-size: 13.5px; }

/* drawer */
.drawer-mask { position: fixed; inset: 0; background: rgba(16,34,42,.42); opacity: 0; pointer-events: none; transition: opacity .25s ease; z-index: 60; }
.drawer-mask.is-open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: 560px; max-width: 94vw;
  background: #fff; box-shadow: -20px 0 50px rgba(16,34,42,.16);
  transform: translateX(100%); transition: transform .3s cubic-bezier(.4,0,.2,1);
  z-index: 70; display: flex; flex-direction: column;
}
.drawer.is-open { transform: none; }
.drawer__head { padding: 20px 24px 18px; border-bottom: 1px solid #eef0f1; display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.drawer__head .ref { font-family: var(--mono); font-size: 12px; color: #8b979c; }
.drawer__head h2 { font-size: 18px; margin: 5px 0 0; }
.drawer__close { background: #f4f5f5; border: 0; width: 32px; height: 32px; border-radius: 8px; cursor: pointer; font-size: 18px; color: #6a7c83; line-height: 1; flex: none; }
.drawer__close:hover { background: #e9ebeb; color: var(--ink); }
.drawer__body { padding: 22px 24px 40px; overflow-y: auto; flex: 1; }
.drawer__foot { padding: 14px 24px; border-top: 1px solid #eef0f1; display: flex; gap: 10px; justify-content: flex-end; background: #fbfcfc; }

.d-section { margin-bottom: 26px; }
.d-section h3 { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: #6a7c83; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid #eef0f1; }
.d-row { display: grid; grid-template-columns: 96px 1fr; gap: 12px; font-size: 13.5px; padding: 6px 0; }
.d-row span { color: #8b979c; font-size: 12.5px; }
.d-row b { font-weight: 500; word-break: break-word; }
.d-desc { background: #f8f9f9; border-radius: 10px; padding: 14px; font-size: 13.5px; line-height: 1.65; white-space: pre-wrap; color: #2a3d45; }
.d-files { display: grid; gap: 6px; }
.d-files div { display: flex; justify-content: space-between; font-size: 13px; background: #f8f9f9; border-radius: 8px; padding: 9px 12px; }

.admin-form { display: grid; gap: 14px; }
.admin-form .grid-2 { gap: 12px; }
.admin-form .field { margin: 0; }
.admin-form label { font-size: 12.5px; }
.admin-form .input, .admin-form .textarea, .admin-form .select { font-size: 13.5px; padding: 10px 12px; border-color: #e3e6e7; }
.admin-form .textarea { min-height: 84px; }

.status-select-row { display: flex; gap: 8px; flex-wrap: wrap; }
.status-btn { border: 1px solid #e3e6e7; background: #fff; border-radius: 8px; padding: 7px 12px; font-size: 12.5px; cursor: pointer; color: #53666d; }
.status-btn:hover { border-color: #b9c4c7; }
.status-btn.is-active { background: var(--teal); border-color: var(--teal); color: #fff; }

.callout { border-radius: 10px; padding: 12px 14px; font-size: 12.5px; line-height: 1.6; }
.callout--info { background: #eef4f8; color: #33566b; }
.callout--warn { background: var(--amber-soft); color: #8a5119; }

/* toast */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 14px);
  background: #10222a; color: #fff; padding: 12px 20px; border-radius: 999px;
  font-size: 13.5px; box-shadow: var(--shadow-md); opacity: 0; pointer-events: none;
  transition: opacity .25s ease, transform .25s ease; z-index: 120; max-width: 90vw;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* reveal */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .step:hover, .req-card:hover { transform: none; }
}

/* mobile menu */
.mobile-menu {
  position: fixed; inset: 76px 0 auto 0; background: rgba(246,244,239,.98);
  border-bottom: 1px solid var(--line); padding: 16px 0 22px; display: none; z-index: 49;
  backdrop-filter: blur(12px);
}
.mobile-menu.is-open { display: block; }
.mobile-menu .wrap { display: grid; gap: 2px; }
.mobile-menu a { padding: 12px 0; font-size: 15px; font-weight: 500; color: var(--ink-2); border-bottom: 1px solid var(--line-2); }
.mobile-menu .btn { margin-top: 16px; }

/* quote decision states */.quote-compare { margin-top: 10px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; font-size: 13px; color: var(--ink-3); }
.quote-compare b { color: var(--ink); font-weight: 600; }
.quote-compare__delta { font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: #eef1ee; color: var(--muted); }
.quote-box--declined { border-color: #e3c9c4; }
.quote-box--declined .quote-box__head { background: #fdf4f2; color: #9b4b3f; border-bottom-color: #e3c9c4; }
.quote-box--declined .quote-amount b { color: #9b4b3f; text-decoration: line-through; text-decoration-thickness: 1px; }

/* not-taking band */
.nocap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 52px; align-items: start; }
.nocap__head h2 { font-size: 30px; margin: 12px 0; letter-spacing: -0.02em; }
.nocap__head .lead { font-size: 14.5px; color: var(--ink-3); line-height: 1.7; }
.nocap__list { display: grid; gap: 0; }
.nocap__item { padding: 16px 0; border-bottom: 1px solid var(--line-2); }
.nocap__item b { display: block; font-size: 15px; margin-bottom: 6px; }
.nocap__item span { font-size: 13.5px; color: var(--ink-3); line-height: 1.65; }
.nocap__close { grid-column: 1 / -1; margin-top: 18px; font-size: 13.5px; color: var(--ink-3); }
@media (max-width: 860px) { .nocap { grid-template-columns: minmax(0, 1fr); gap: 26px; } }

/* admin cost calculation */
.calc { border: 1px solid var(--line); border-radius: 10px; padding: 14px 14px 16px; margin-bottom: 16px; background: #fbfaf6; }
.calc__title { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.calc .grid-2 { gap: 10px; }
.calc .field { margin-bottom: 10px; }
.calc .input { font-size: 13px; padding: 8px 10px; }
.calc__out { margin-top: 12px; font-size: 13px; }
.calc__row { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; border-bottom: 1px dashed var(--line-2); }
.calc__row b { font-weight: 600; }
.calc__verdict { margin-top: 10px; padding: 8px 10px; border-radius: 8px; font-size: 13px; font-weight: 600; background: #eef1ee; color: var(--muted); }
.calc__verdict.ok { background: #eaf4ee; color: #2f6a48; }
.calc__verdict.warn { background: #fdf3e3; color: #8a5a12; }
.calc__verdict.bad { background: #fbeceb; color: #9b4b3f; }
.calc-hint { font-size: 13px; color: var(--ink-3); margin-bottom: 12px; }
.calc-hint b { color: var(--ink); }
.calc-hint span { display: block; font-size: 12px; color: var(--muted); margin-top: 3px; }
.decide-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.decide-row .btn.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* print */
@media print { .site-header, .site-footer, .drawer__foot, .toolbar { display: none; } }

/* ============================================================
   Theme layer — toolroom / drawing-sheet look
   Applied after base styles on purpose: keeps layout rules,
   restyles surfaces, rules and small labels only.
   ============================================================ */

/* blueprint grid on dark surfaces */
.caps, .site-footer, .cta-band, .admin-top {
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 34px 34px, 34px 34px;
  background-position: -1px -1px, -1px -1px;
}
.caps { background-color: var(--blueprint); }
.site-footer { background-color: #0c1a1d; }
.cta-band { background-color: #0f2126; }
.admin-top { background-color: #0e262b; }

/* capability cells tuned to the new dark ground */
.cap { background: #13262b; }
.cap:hover { background: #173037; }
.cap--cta { background: #0f1f24; }
.cap--cta:hover { background: #132931; }
.caps .eyebrow, .cap__link, .cap__icon { color: #82d4c0; }
.caps .eyebrow::before { background: #82d4c0; }
.cap__flag { background: rgba(130,212,192,.13); color: #93e0cd; border-radius: 3px; }
.cap__flag--build { background: rgba(255,255,255,.07); color: rgba(255,255,255,.5); }

/* eyebrow reads as a drawing label */
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .16em;
  font-weight: 600;
  text-transform: uppercase;
}
.eyebrow::before { width: 24px; height: 1px; }

/* headings: tighter, more mechanical */
h1 { letter-spacing: -0.035em; }
.section-head h2 { letter-spacing: -0.03em; }

/* cards get a hairline frame and a machined top rule */
.card, .hero__card, .aside-note, .calc {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.hero__card { position: relative; }
.hero__card::after {
  content: "";
  position: absolute; inset: 8px;
  border: 1px solid rgba(18, 26, 28, .06);
  border-radius: 4px;
  pointer-events: none;
}

/* buttons: squarer, mono label on secondary */
.btn { border-radius: var(--radius-sm); letter-spacing: -0.005em; }
.btn--primary { background: var(--teal); }
.btn--primary:hover { background: var(--teal-dark); }
.btn--ghost { border-color: var(--line); }
.btn--ghost:hover { border-color: var(--steel); }

/* stats in hero: mono figures */
.hero__meta b { font-family: var(--mono); font-weight: 600; letter-spacing: 0; }

/* capability cards: mono label under the title */
.cap h3 { letter-spacing: -0.005em; }

/* steps: number in a small technical frame */
.step__num { font-family: var(--mono); }

/* section rules: thin machined divider */
.section + .section { border-top: 1px solid var(--line-2); }

/* inputs: flatter, drawing-sheet fields */
.input, .textarea, .select { background: var(--paper-2); border-color: var(--line); border-radius: 4px; }
.input:focus, .textarea:focus, .select:focus { border-color: var(--teal); }

/* footer mono small print */
.site-footer .small, .footer__grid p { letter-spacing: .01em; }

/* paper carries a barely-there grid, like a drawing sheet */
body {
  background-image:
    linear-gradient(rgba(18,26,28,.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18,26,28,.028) 1px, transparent 1px);
  background-size: 28px 28px, 28px 28px;
  background-attachment: fixed;
}
.card, .hero__card, .drawer, .panel, .aside-note {
  background-image: none;
}

/* primary CTA reads as a machine label */
.btn--primary {
  font-family: var(--mono);
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: .07em;
  font-weight: 600;
  padding-top: 15px; padding-bottom: 15px;
}
.btn--primary.btn--sm { font-size: 11.5px; padding-top: 10px; padding-bottom: 10px; }

/* headline gets a thin measure line under the first line */
.hero h1 { position: relative; }
