/* =========================================================
   Keelpost — design system
   1. Tokens  2. Base  3. Layout  4. Type  5. Buttons
   6. Cards   7. Hero  8. Sections  9. Pricing 10. Forms
   11. Nav / Footer  12. Utilities  13. Motion
   ========================================================= */

/* 1. Tokens ------------------------------------------------- */
:root {
  --ink: #0B1220;
  --ink-2: #101B2D;
  --ink-3: #16233A;
  --text: #1E293B;
  --muted: #64748B;
  --muted-2: #94A3B8;
  --line: #E3E8EF;
  --line-dark: rgba(255, 255, 255, 0.09);
  --bg: #FFFFFF;
  --bg-soft: #F6F8FB;

  --blue: #2563EB;
  --blue-600: #1D4ED8;
  --blue-100: #DBEAFE;
  --cyan: #22D3EE;
  --cyan-600: #0E7490;
  --green: #10B981;
  --amber: #F59E0B;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow: 0 10px 30px -12px rgba(15, 23, 42, 0.18);
  --shadow-lg: 0 30px 60px -30px rgba(15, 23, 42, 0.35);

  --container: 1160px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas,
    "Liberation Mono", monospace;
}

/* 2. Base --------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

p {
  margin: 0 0 1em;
}

p:last-child {
  margin-bottom: 0;
}

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

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 48px 0;
}

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

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

/* 3. Layout -------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.container--narrow {
  max-width: 820px;
}

.section {
  padding: 84px 0;
}

.section--tight {
  padding: 64px 0;
}

.section--soft {
  background: var(--bg-soft);
}

.section--dark {
  background: #070d18;
  color: #dbe4f0;
}

.section--dark h2,
.section--dark h3,
.section--dark .h2,
.section--dark .h3 {
  color: #fff;
}

.section--line {
  border-top: 1px solid var(--line);
}

.grid {
  display: grid;
  gap: 24px;
}

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

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}

.stack > * + * {
  margin-top: var(--gap, 16px);
}

.cluster {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* 4. Type ---------------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0 0 18px;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

.section--dark .eyebrow,
.hero .eyebrow {
  color: var(--cyan);
}

.display {
  font-size: clamp(2.6rem, 6vw, 4.35rem);
  line-height: 1.02;
  letter-spacing: -0.038em;
  font-weight: 640;
  margin: 0 0 24px;
  color: var(--ink);
}

.section--dark .display,
.hero .display {
  color: #fff;
}

.h1 {
  font-size: clamp(2.2rem, 4.6vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 640;
  margin: 0 0 20px;
  color: var(--ink);
}

.h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  line-height: 1.12;
  letter-spacing: -0.028em;
  font-weight: 630;
  margin: 0 0 18px;
  color: var(--ink);
}

.h3 {
  font-size: 1.22rem;
  line-height: 1.35;
  letter-spacing: -0.012em;
  font-weight: 620;
  margin: 0 0 10px;
  color: var(--ink);
}

.h4 {
  font-size: 1rem;
  font-weight: 640;
  margin: 0 0 8px;
  color: var(--ink);
}

.lede {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--muted);
  max-width: 640px;
  margin: 0 0 28px;
}

.section--dark .lede,
.hero .lede {
  color: #a9b7ca;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 0.875rem;
  line-height: 1.6;
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
}

.section-head {
  max-width: 760px;
  margin-bottom: 44px;
}

.section-head--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-head--center .eyebrow {
  justify-content: center;
}

.section-head--center .lede {
  margin-left: auto;
  margin-right: auto;
}

/* 5. Buttons ------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 22px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease,
    transform 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
  white-space: nowrap;
}

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

.btn--primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 8px 24px -10px rgba(37, 99, 235, 0.7);
}

.btn--primary:hover {
  background: var(--blue-600);
}

.btn--ghost {
  border-color: var(--line);
  color: var(--ink);
  background: #fff;
}

.btn--ghost:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
}

.btn--on-dark {
  border-color: rgba(255, 255, 255, 0.18);
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}

.btn--on-dark:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn--sm {
  padding: 9px 15px;
  font-size: 0.85rem;
}

.btn--block {
  width: 100%;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--blue);
  transition: gap 0.18s ease;
}

.link-arrow::after {
  content: "→";
  transition: transform 0.18s ease;
}

.link-arrow:hover {
  gap: 11px;
}

.section--dark .link-arrow,
.hero .link-arrow {
  color: var(--cyan);
}

/* 6. Cards --------------------------------------------------- */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-sm);
}

.card--pad-lg {
  padding: 40px;
}

.card--soft {
  background: var(--bg-soft);
  box-shadow: none;
}

.card--dark {
  background: linear-gradient(180deg, #101b2d 0%, #0a1322 100%);
  border-color: rgba(255, 255, 255, 0.09);
  color: #c7d3e3;
}

.card--dark .h3,
.card--dark .h4 {
  color: #fff;
}

.card--hover {
  transition: transform 0.22s ease, box-shadow 0.22s ease,
    border-color 0.22s ease;
}

.card--hover:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: #cbd5e1;
}

.card__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--blue-100);
  color: var(--blue-600);
  margin-bottom: 20px;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 700;
}

.card--dark .card__icon {
  background: rgba(34, 211, 238, 0.1);
  color: var(--cyan);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border-radius: 6px;
  background: rgba(37, 99, 235, 0.08);
  color: var(--blue-600);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
}

.badge--cyan {
  background: rgba(34, 211, 238, 0.12);
  color: var(--cyan-600);
}

.badge--dark {
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
}

.badge--ok {
  background: rgba(16, 185, 129, 0.1);
  color: #047857;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  background: #fff;
}

.chip--ok {
  color: #047857;
  border-color: rgba(16, 185, 129, 0.3);
  background: rgba(16, 185, 129, 0.06);
}

.chip--warn {
  color: #b45309;
  border-color: rgba(245, 158, 11, 0.32);
  background: rgba(245, 158, 11, 0.07);
}

.chip--dark {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #b6c4d6;
}

/* 7. Hero ---------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  background: #070d18;
  color: #fff;
  padding: 76px 0 72px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -30% -10% auto -10%;
  height: 720px;
  background: radial-gradient(
      52% 60% at 22% 22%,
      rgba(37, 99, 235, 0.32) 0%,
      transparent 68%
    ),
    radial-gradient(
      44% 52% at 78% 12%,
      rgba(34, 211, 238, 0.16) 0%,
      transparent 70%
    );
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
      to right,
      rgba(255, 255, 255, 0.045) 1px,
      transparent 1px
    ),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(70% 60% at 50% 30%, #000 0%, transparent 100%);
  -webkit-mask-image: radial-gradient(
    70% 60% at 50% 30%,
    #000 0%,
    transparent 100%
  );
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 56px;
  align-items: center;
}

.hero__title {
  font-size: clamp(2.7rem, 5.4vw, 4.1rem);
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 640;
  margin: 0 0 22px;
}

.hero__title em {
  font-style: normal;
  background: linear-gradient(92deg, #60a5fa 0%, #22d3ee 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__sub {
  font-size: 1.08rem;
  line-height: 1.7;
  color: #a9b7ca;
  max-width: 520px;
  margin: 0 0 30px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 26px;
}

.status-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.02em;
  color: #7d8ea6;
}

.status-strip span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.status-strip span::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.7);
}

/* Posture panel */
.panel {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 24px;
  backdrop-filter: blur(12px);
  box-shadow: 0 30px 80px -40px rgba(0, 0, 0, 0.9);
}

.panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.panel__title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8fa0b8;
}

.panel__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.07);
  font-size: 0.88rem;
  color: #c3cfdf;
}

.panel__row:last-of-type {
  border-bottom: 0;
}

.panel__row .mono {
  color: #7d8ea6;
  font-size: 0.72rem;
}

.panel__foot {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.75rem;
  color: #6f8098;
}

.spark {
  width: 100%;
  height: 42px;
  margin-top: 6px;
}

/* 8. Sections & components ---------------------------------- */
.route-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 38px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: #fff;
  transition: transform 0.25s ease, box-shadow 0.25s ease,
    border-color 0.25s ease;
  overflow: hidden;
}

.route-card::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  opacity: 0;
  transition: opacity 0.25s ease;
}

.route-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: #cbd5e1;
}

.route-card:hover::after {
  opacity: 1;
}

.route-card__kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.route-card__title {
  font-size: 1.65rem;
  letter-spacing: -0.02em;
  font-weight: 620;
  color: var(--ink);
  margin: 0;
}

.route-card__quote {
  font-size: 1rem;
  color: var(--muted);
  margin: 0;
}

.route-card__list {
  display: grid;
  gap: 9px;
  padding-top: 4px;
  border-top: 1px solid var(--line);
}

.route-card__list li {
  position: relative;
  padding-left: 22px;
  font-size: 0.92rem;
  color: var(--text);
}

.route-card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 10px;
  height: 1px;
  background: var(--blue);
}

.checklist {
  display: grid;
  gap: 11px;
}

.checklist li {
  position: relative;
  padding-left: 27px;
  font-size: 0.95rem;
  line-height: 1.55;
}

.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--blue);
  font-weight: 700;
  font-size: 0.9rem;
}

.section--dark .checklist li::before {
  color: var(--cyan);
}

.checklist--muted li::before {
  content: "—";
  color: var(--muted-2);
}

.symptom {
  display: flex;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.symptom:first-child {
  border-top: 1px solid var(--line);
}

.symptom__num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted-2);
  padding-top: 3px;
  flex: 0 0 28px;
}

.symptom__text {
  font-size: 1.02rem;
  color: var(--ink);
  margin: 0;
}

.symptom__text span {
  display: block;
  font-size: 0.84rem;
  color: var(--muted);
  margin-top: 3px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  position: relative;
}

.step__num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--cyan);
  margin-bottom: 14px;
}

.step__line {
  height: 1px;
  background: linear-gradient(90deg, rgba(34, 211, 238, 0.55), rgba(34, 211, 238, 0.05));
  margin-bottom: 20px;
}

.step h3 {
  font-size: 1.05rem;
  color: #fff;
  margin-bottom: 8px;
}

.step p {
  font-size: 0.88rem;
  color: #93a4ba;
  margin: 0;
}

.step__out {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: #6f8098;
}

.stat {
  padding: 24px 0;
}

.stat__value {
  font-size: clamp(2rem, 3.4vw, 2.9rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.stat__label {
  margin-top: 10px;
  font-size: 0.86rem;
  color: var(--muted);
}

.section--dark .stat__value {
  color: #fff;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  min-width: 560px;
}

.table th,
.table td {
  text-align: left;
  padding: 15px 20px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.table th {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  background: var(--bg-soft);
}

.table tr:last-child td {
  border-bottom: 0;
}

.table td strong {
  color: var(--ink);
}

.faq {
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--ink);
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--muted);
  transition: transform 0.2s ease;
  flex: 0 0 auto;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq .faq__body {
  padding: 0 0 24px;
  color: var(--muted);
  max-width: 720px;
}

.callout {
  border-left: 3px solid var(--blue);
  background: var(--bg-soft);
  padding: 20px 24px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.94rem;
}

.callout--dark {
  background: rgba(255, 255, 255, 0.04);
  border-left-color: var(--cyan);
  color: #b6c4d6;
}

.note {
  font-size: 0.82rem;
  color: var(--muted);
}

.divider {
  height: 1px;
  background: var(--line);
  border: 0;
  margin: 0;
}

.cta-panel {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  padding: 64px;
  background: radial-gradient(
      70% 120% at 12% 0%,
      rgba(37, 99, 235, 0.35) 0%,
      transparent 60%
    ),
    radial-gradient(60% 100% at 95% 100%, rgba(34, 211, 238, 0.18) 0%, transparent 60%),
    #070d18;
  color: #fff;
}

.cta-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
      to right,
      rgba(255, 255, 255, 0.05) 1px,
      transparent 1px
    ),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(90deg, transparent, #000);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000);
  pointer-events: none;
}

.cta-panel > * {
  position: relative;
  z-index: 1;
}

.cta-panel .h2 {
  color: #fff;
  max-width: 620px;
}

.cta-panel .lede {
  color: #a9b7ca;
}

/* 9. Pricing ------------------------------------------------- */
.plan {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 34px;
  position: relative;
}

.plan--featured {
  border-color: rgba(37, 99, 235, 0.45);
  box-shadow: 0 24px 60px -30px rgba(37, 99, 235, 0.45);
}

.plan--featured::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
}

.plan__name {
  font-size: 1.05rem;
  font-weight: 640;
  color: var(--ink);
  margin: 0;
}

.plan__desc {
  font-size: 0.86rem;
  color: var(--muted);
  margin: 6px 0 22px;
  min-height: 2.6em;
}

.plan__price {
  font-size: 2.9rem;
  font-weight: 600;
  letter-spacing: -0.04em;
  color: var(--ink);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.plan__period {
  font-size: 0.85rem;
  color: var(--muted);
  margin-left: 4px;
  font-weight: 400;
  letter-spacing: 0;
}

.plan__setup {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  margin: 10px 0 22px;
}

.plan__list {
  display: grid;
  gap: 10px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  margin-bottom: 24px;
  flex: 1;
}

.plan__list li {
  position: relative;
  padding-left: 24px;
  font-size: 0.9rem;
  line-height: 1.5;
}

.plan__list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--blue);
  font-weight: 700;
  font-size: 0.85rem;
}

.plan__list li.off {
  color: var(--muted-2);
}

.plan__list li.off::before {
  content: "—";
  color: var(--muted-2);
}

.billing-toggle {
  display: inline-flex;
  padding: 4px;
  border-radius: 10px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  gap: 4px;
}

.billing-toggle button {
  border: 0;
  background: transparent;
  padding: 8px 16px;
  border-radius: 7px;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}

.billing-toggle button[aria-pressed="true"] {
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

/* 10. Forms -------------------------------------------------- */
.form {
  display: grid;
  gap: 18px;
}

.field {
  display: grid;
  gap: 7px;
}

.field label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
}

.field .hint {
  font-size: 0.76rem;
  color: var(--muted);
  font-weight: 400;
}

.input,
.select,
.textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  font: inherit;
  font-size: 0.95rem;
  color: var(--text);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.input:focus,
.select:focus,
.textarea:focus {
  outline: 0;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.textarea {
  min-height: 120px;
  resize: vertical;
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form__note {
  font-size: 0.78rem;
  color: var(--muted);
}

.form__status {
  display: none;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: #047857;
  font-size: 0.9rem;
}

.form__status.is-visible {
  display: block;
}

/* 11. Nav / Footer ------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(7, 13, 24, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

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

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 640;
  letter-spacing: -0.02em;
  font-size: 1.02rem;
}

.logo svg {
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
}

.logo span {
  color: #fff;
}

.logo .logo__dot {
  color: var(--cyan);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav__links a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.68);
  transition: color 0.18s ease;
  position: relative;
}

.nav__links a:hover {
  color: #fff;
}

.nav__links a[aria-current="page"] {
  color: #fff;
}

.nav__links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 1px;
  background: var(--cyan);
}

.nav__cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav__toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font-size: 1rem;
}

.footer {
  background: #070d18;
  color: #8fa0b8;
  padding: 72px 0 34px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer h4 {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 16px;
  font-weight: 600;
}

.footer a {
  display: block;
  color: #8fa0b8;
  font-size: 0.88rem;
  padding: 5px 0;
  transition: color 0.18s ease;
}

.footer a:hover {
  color: #fff;
}

.footer__desc {
  font-size: 0.9rem;
  line-height: 1.65;
  max-width: 300px;
  margin: 16px 0 0;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  justify-content: space-between;
  padding-top: 26px;
  font-size: 0.78rem;
  color: #64748b;
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer__preview {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #475569;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  padding: 2px 6px;
}

/* 12. Utilities ---------------------------------------------- */
.mb-0 { margin-bottom: 0 !important; }
.mt-8 { margin-top: 8px !important; }
.mt-16 { margin-top: 16px !important; }
.mt-24 { margin-top: 24px !important; }
.mt-32 { margin-top: 32px !important; }
.mt-48 { margin-top: 48px !important; }
.mt-64 { margin-top: 64px !important; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.full { width: 100%; }
.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;
}

/* 13. Motion ------------------------------------------------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.js [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* 14. Responsive --------------------------------------------- */
@media (max-width: 1024px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 44px;
  }
  .split {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 24px;
  }
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

@media (max-width: 780px) {
  .section {
    padding: 68px 0;
  }
  .section--tight {
    padding: 48px 0;
  }
  .hero {
    padding: 56px 0 56px;
  }
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
  .steps {
    grid-template-columns: 1fr;
  }
  .nav__links {
    position: absolute;
    left: 0;
    right: 0;
    top: 68px;
    max-height: calc(100vh - 68px);
    overflow-y: auto;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 12px 24px 20px;
    background: #070d18;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .nav__links a {
    display: block;
    width: 100%;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 1rem;
  }
  .nav--open .nav__links {
    display: flex;
  }
  .nav__toggle {
    display: inline-grid;
    place-items: center;
  }
  .nav__cta .btn {
    display: none;
  }
  .cta-panel {
    padding: 40px 28px;
  }
  .form__row {
    grid-template-columns: 1fr;
  }
  .display {
    font-size: clamp(2.2rem, 9vw, 2.9rem);
  }
  .hero__title {
    font-size: clamp(2.4rem, 10vw, 3.1rem);
  }
  .card,
  .route-card,
  .plan {
    padding: 26px;
  }
}

/* 15. Page head (inner pages) -------------------------------- */
.page-head {
  position: relative;
  overflow: hidden;
  background: #070d18;
  color: #fff;
  padding: 64px 0 58px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.page-head::before {
  content: "";
  position: absolute;
  inset: -40% 40% auto -10%;
  height: 520px;
  background: radial-gradient(
    50% 60% at 30% 30%,
    rgba(37, 99, 235, 0.26) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.page-head::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
      to right,
      rgba(255, 255, 255, 0.04) 1px,
      transparent 1px
    ),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(90deg, #000, transparent 75%);
  -webkit-mask-image: linear-gradient(90deg, #000, transparent 75%);
  pointer-events: none;
}

.page-head > .container {
  position: relative;
  z-index: 1;
}

.page-head .h1 {
  color: #fff;
  max-width: 18ch;
}

.page-head .lede {
  color: #a9b7ca;
  margin-bottom: 0;
}

.page-head__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

/* 16. Prose (legal / long-form) ------------------------------ */
.prose {
  max-width: 65ch;
}

.prose h2 {
  font-size: 1.75rem;
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 44px 0 14px;
  color: var(--ink);
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  font-size: 1.08rem;
  margin: 28px 0 10px;
  color: var(--ink);
}

.prose p,
.prose li {
  color: var(--text);
  font-size: 1.0625rem;
  line-height: 1.7;
}

.prose ul,
.prose ol {
  list-style: disc;
  padding-left: 22px;
  margin: 0 0 1.2em;
}

.prose ol {
  list-style: decimal;
}

.prose li {
  margin-bottom: 0.5em;
  line-height: 1.65;
}

.prose a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.prose strong {
  color: var(--text);
}

.prose blockquote {
  margin: 24px 0;
  padding: 18px 22px;
  border-left: 3px solid var(--blue);
  background: var(--bg-soft);
  color: var(--text);
}

/* 17. Skip link --------------------------------------------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: #fff;
  color: var(--ink);
  padding: 12px 18px;
  border-radius: 0 0 10px 0;
  font-weight: 600;
}

.skip-link:focus {
  left: 0;
}

/* 18. Sample report mock ------------------------------------ */
.doc {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.doc__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: #fafbfd;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.doc__body {
  padding: 22px;
}

.doc__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 0.85rem;
}

.doc__row:last-child {
  border-bottom: 0;
}

.sev {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  padding: 3px 7px;
  border-radius: 4px;
  text-transform: uppercase;
  flex: 0 0 auto;
}

.sev--high {
  background: rgba(239, 68, 68, 0.1);
  color: #b91c1c;
}

.sev--med {
  background: rgba(245, 158, 11, 0.12);
  color: #b45309;
}

.sev--low {
  background: rgba(37, 99, 235, 0.09);
  color: var(--blue-600);
}


/* 19. Typographic polish ------------------------------------ */
.display,
.h1,
.h2,
.hero__title,
.route-card__title {
  text-wrap: balance;
}

p,
.lede,
.symptom__text {
  text-wrap: pretty;
}

/* 20. Fixes ------------------------------------------------ */
.plan .badge {
  align-self: flex-start;
}

.footer a.logo {
  display: inline-flex;
  padding: 0;
}

.footer a.logo span {
  color: #fff;
}

.cta-panel .eyebrow {
  color: var(--cyan);
}

.card--col {
  display: flex;
  flex-direction: column;
}

.card--col .link-arrow {
  margin-top: auto;
  padding-top: 24px;
}

.card--col > .badge {
  align-self: flex-start;
}

.route-card .link-arrow {
  margin-top: auto;
  padding-top: 18px;
}

.doc {
  width: 100%;
}

.card--col > .push-bottom {
  margin-top: auto;
  padding-top: 24px;
}

/* 21. Language switcher ------------------------------------- */
.lang {
  position: relative;
}

.lang__btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.lang__btn:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.05);
}

.lang__chev {
  font-size: 0.7em;
  opacity: 0.7;
}

.lang__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 168px;
  padding: 6px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #0c1524;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
  z-index: 80;
}

.lang__menu[hidden] {
  display: none;
}

.lang__menu a {
  display: block;
  padding: 8px 10px;
  border-radius: 6px;
  color: #c7d3e3;
  font-size: 0.85rem;
  line-height: 1.3;
  white-space: nowrap;
  transition: background 0.16s ease, color 0.16s ease;
}

.lang__menu a:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}

.lang__menu a[aria-current="true"] {
  color: var(--cyan);
}

.lang__menu a[aria-current="true"]::after {
  content: " ·";
  opacity: 0.6;
}

.footer__grid--compact {
  grid-template-columns: 1.6fr 1fr 1fr;
}

@media (max-width: 780px) {
  .footer__grid--compact {
    grid-template-columns: 1fr;
  }
  .lang__menu {
    right: -44px;
  }
}

/* 22. CJK typography ---------------------------------------- */
html[lang="zh-Hans"] .page-head .h1,
html[lang="ja"] .page-head .h1 {
  max-width: 16em;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

html[lang="zh-Hans"] .h2,
html[lang="zh-Hans"] .h3,
html[lang="ja"] .h2,
html[lang="ja"] .h3 {
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.footer__grid--compact {
  grid-template-columns: 2fr 1fr 1fr;
}

/* 23. Translated headlines ---------------------------------- */
html:not([lang="en"]) .hero__title {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  text-wrap: balance;
}

/* 24. Review fixes — contrast --------------------------------- */
:root {
  --muted: #5b6b80;
}

.chip {
  color: #475569;
}

.plan__list li.off,
.symptom__num {
  color: var(--muted);
}

.page-head .eyebrow {
  color: var(--cyan);
}

.panel .chip--ok {
  color: #34d399;
}

.footer__bottom {
  color: #94a3b8;
}

.footer__preview {
  color: #94a3b8;
  border-color: rgba(255, 255, 255, 0.16);
}

:focus-visible {
  outline: 2px solid #0e7490;
  outline-offset: 3px;
}

.nav :focus-visible,
.hero :focus-visible,
.section--dark :focus-visible,
.cta-panel :focus-visible,
.footer :focus-visible {
  outline-color: var(--cyan);
}

.input:focus,
.select:focus,
.textarea:focus {
  outline: 2px solid var(--blue);
  outline-offset: 1px;
}

/* 25. Review fixes — navigation ------------------------------- */
.nav__links a {
  white-space: nowrap;
}

.nav__menu-cta {
  display: none;
}

@media (max-width: 960px) {
  .nav__inner {
    gap: 12px;
  }
  .nav__cta {
    order: 1;
    margin-left: auto;
    gap: 8px;
  }
  .nav__toggle {
    display: inline-grid;
    place-items: center;
    order: 2;
  }
  .nav__links {
    position: absolute;
    left: 0;
    right: 0;
    top: 68px;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 12px 24px 20px;
    background: #070d18;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .nav__links a {
    display: block;
    width: 100%;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 1rem;
  }
  .nav--open .nav__links {
    display: flex;
  }
  .nav__cta .btn {
    display: none;
  }
  .nav__menu-cta {
    display: inline-flex;
    width: 100%;
    margin-top: 16px;
    border-bottom: 0;
    padding: 12px 16px;
    justify-content: center;
  }
  .nav__links .nav__menu-cta {
    border-bottom: 0;
  }
}

/* 26. Review fixes — mobile tables ---------------------------- */
@media (max-width: 780px) {
  .table-wrap {
    overflow: visible;
    border: 0;
    background: transparent;
  }
  .table {
    min-width: 0;
    display: block;
  }
  .table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  .table tbody,
  .table tr,
  .table td {
    display: block;
    width: 100%;
  }
  .table tr {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    margin-bottom: 12px;
    padding: 6px 16px;
  }
  .table td {
    border: 0;
    padding: 8px 0;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    text-align: right;
    font-size: 0.9rem;
  }
  .table td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 0.78rem;
    text-align: left;
    flex: 0 0 40%;
  }
  .table td:first-child {
    font-weight: 600;
    text-align: left;
  }
  .table td:first-child::before {
    display: none;
  }
  .grid-4 .checklist {
    display: none;
  }
}

/* 27. Review fixes — hero price rail -------------------------- */
.hero__rail {
  margin: -6px 0 22px;
  color: #93a4ba;
  font-size: 0.875rem;
}

@media (max-width: 780px) {
  .table td:first-child {
    display: block;
    text-align: left;
    padding-bottom: 2px;
  }
  .table td:first-child br {
    display: none;
  }
  .table td:first-child span {
    display: block;
    margin-top: 4px;
    font-weight: 400;
  }
}

@media (max-width: 780px) {
  .table .nowrap {
    white-space: normal;
  }
}

/* 28. SEO — breadcrumbs and long-form furniture ---------------- */
.breadcrumbs {
  background: #070d18;
  padding: 18px 0 0;
  font-size: 0.8rem;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
  color: rgba(255, 255, 255, 0.62);
}

.breadcrumbs li {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.breadcrumbs li + li::before {
  content: "/";
  margin: 0 8px;
  color: rgba(255, 255, 255, 0.3);
}

.breadcrumbs a {
  color: rgba(255, 255, 255, 0.76);
}

.breadcrumbs a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.breadcrumbs [aria-current="page"] {
  color: rgba(255, 255, 255, 0.64);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 46ch;
}

.section .prose {
  margin-left: 0;
  margin-right: auto;
}

.prose .callout {
  margin: 0 0 30px;
}

.prose .callout p:last-child {
  margin-bottom: 0;
}

.prose .table-wrap {
  margin: 26px 0 30px;
}

.prose .table-wrap + h2 {
  margin-top: 38px;
}

/* Guide cards on the hub reuse .card; keep the title from wrapping oddly. */
.guide-card .h3 {
  margin: 0;
}

.guide-card .mono {
  margin-top: 14px;
}

@media (max-width: 780px) {
  .breadcrumbs {
    padding-top: 14px;
    font-size: 0.76rem;
  }

  .breadcrumbs [aria-current="page"] {
    white-space: normal;
    max-width: 100%;
  }
}


/* 28. Contact form states ------------------------------------ */
.hpot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form__status.is-error {
  background: #fef2f2;
  border-color: #fecaca;
  color: #991b1b;
}

.form button[type="submit"][disabled] {
  opacity: 0.6;
  cursor: progress;
}

/* 29. Overflow guards — long tokens, long translations ------ */
.grid > *,
.split > *,
.hero__inner > *,
.steps > *,
.footer__grid > * {
  min-width: 0;
}

.prose,
.lede,
.checklist li {
  overflow-wrap: break-word;
}

code,
.mono {
  overflow-wrap: anywhere;
}

/* Buttons never wrap by default; on narrow screens a long label must. */
.btn {
  max-width: 100%;
}

@media (max-width: 780px) {
  .btn {
    white-space: normal;
    text-align: center;
  }
}


/* 29. Review fixes — dark chips, nav width ------------------- */
.chip.chip--dark {
  color: #b6c4d6;
}


/* 30. Review fixes — form borders, footer contact ------------ */
.input,
.select,
.textarea {
  border-color: #8a94a6;
}

.footer p a {
  display: inline;
}


/* 31. Pricing jump nav --------------------------------------- */
.jump-wrap {
  padding: 24px 0 0;
}

.jump {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.jump a {
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.875rem;
  color: var(--ink);
}

.jump a:hover {
  border-color: var(--blue);
  color: var(--blue);
}

section[id] {
  scroll-margin-top: 96px;
}


/* 32. Review fixes — footer headings, prose ---------------- */
.footer__title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #94a3b8;
  margin: 0 0 14px;
}

/* 30. Visit badge — fixed, non-interactive, never blocks a tap ------ */
.visit-badge {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(9, 16, 28, 0.86);
  border: 1px solid rgba(34, 211, 238, 0.32);
  box-shadow: 0 8px 24px rgba(2, 6, 23, 0.35);
  backdrop-filter: blur(6px);
  color: #e2e8f0;
  font-family: var(--font-mono);
  line-height: 1;
  pointer-events: none;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.visit-badge.is-visible {
  opacity: 1;
  transform: none;
}

.visit-badge[hidden] {
  display: none;
}

.visit-badge__num {
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #fff;
  max-width: 48px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.visit-badge__label {
  margin-top: 4px;
  font-size: 0.5rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(148, 197, 214, 0.85);
}

@media (max-width: 780px) {
  .visit-badge {
    width: 50px;
    height: 50px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  }

  .visit-badge__num {
    font-size: 0.84rem;
    max-width: 42px;
  }

  .visit-badge__label {
    font-size: 0.46rem;
    margin-top: 3px;
  }
}

@media print {
  .visit-badge {
    display: none;
  }
}


/* 33. Floating contact --------------------------------------- */
.cfloat {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
}

.cfloat__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(2, 6, 23, 0.45);
}

.cfloat__btn:hover {
  background: #1d4ed8;
}

.cfloat__menu {
  position: absolute;
  right: 0;
  bottom: calc(100% + 10px);
  width: 260px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  background: #0b1220;
  box-shadow: 0 20px 50px rgba(2, 6, 23, 0.55);
}

.cfloat__menu a {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 10px;
  color: #e2e8f0;
}

.cfloat__menu a:hover {
  background: rgba(255, 255, 255, 0.06);
}

.cfloat__k {
  font-size: 0.9rem;
  font-weight: 600;
}

.cfloat__v {
  font-size: 0.78rem;
  color: #93a4ba;
}

@media (max-width: 640px) {
  .cfloat {
    right: 16px;
    bottom: 16px;
  }
  .cfloat__btn span {
    display: none;
  }
  .cfloat__btn {
    padding: 13px;
  }
  .cfloat__menu {
    width: 240px;
  }
  .footer {
    padding-bottom: 84px;
  }
}

@media print {
  .cfloat {
    display: none;
  }
}

/* 34. WeChat QR (Chinese pages, only when asset exists) ------- */
.cfloat__item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #e2e8f0;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.cfloat__item:hover {
  background: rgba(255, 255, 255, 0.06);
}

.cfloat__modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(2, 6, 23, 0.72);
}

.cfloat__modal[hidden] {
  display: none;
}

.cfloat__modal-card {
  position: relative;
  width: 100%;
  max-width: 300px;
  padding: 24px;
  border-radius: 16px;
  background: #fff;
  color: #0b1220;
  text-align: center;
}

.cfloat__modal-card img {
  display: block;
  width: 220px;
  height: 220px;
  margin: 0 auto 12px;
  border-radius: 8px;
}

.cfloat__modal-card p {
  margin: 0;
  font-size: 0.9rem;
  color: #334155;
}

.cfloat__modal-close {
  position: absolute;
  top: 6px;
  right: 10px;
  border: 0;
  background: transparent;
  color: #64748b;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
