/* =========================================================
   Anton Real Estate — Tenant Service Portal
   Design system v2.1 "Paper & Precision" (light)
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  --paper: #f4f6f9;
  --paper-2: #f8fafc;
  --surface: #ffffff;
  --surface-2: #f7fafd;
  --line: #dce3ec;
  --line-strong: #c2cedd;
  --ink: #0f172a;
  --text: #2b3648;
  --text-2: #475569;
  --muted: #5f6f82;
  --accent: #1e4e8c;
  --accent-ink: #1b4479;
  --accent-soft: rgba(30, 78, 140, 0.08);
  --ok: #2f6d4f;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 10px 30px rgba(15, 23, 42, 0.07);
  --shadow-lg: 0 22px 50px rgba(15, 23, 42, 0.09);

  --font-display: "Space Grotesk", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "Inter", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo,
    monospace;

  --wrap: 1240px;
  --gutter: clamp(20px, 4vw, 40px);
  --radius: 3px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  color-scheme: light;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Ambient drafting grid + warm wash */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: linear-gradient(
      to right,
      rgba(15, 23, 42, 0.05) 1px,
      transparent 1px
    ),
    linear-gradient(to bottom, rgba(15, 23, 42, 0.05) 1px, transparent 1px);
  background-size: 92px 92px;
  -webkit-mask-image: radial-gradient(
    120% 65% at 50% 0%,
    #000 0%,
    transparent 60%
  );
  mask-image: radial-gradient(120% 65% at 50% 0%, #000 0%, transparent 60%);
}

body::after {
  content: "";
  position: fixed;
  top: -30vh;
  left: 50%;
  transform: translateX(-50%);
  width: 120vw;
  height: 70vh;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(
    45% 50% at 50% 50%,
    rgba(30, 78, 140, 0.08),
    rgba(30, 78, 140, 0) 70%
  );
}

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

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}

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

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

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

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: #e8edf4;
}
::-webkit-scrollbar-thumb {
  background: #c3cedd;
  border: 2px solid #e8edf4;
}
::-webkit-scrollbar-thumb:hover {
  background: #a9b7c9;
}

/* ---------- Utilities ---------- */
.wrap {
  width: min(var(--wrap), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

.mono {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 12px;
}

.mono .num {
  color: var(--accent-ink);
}

.mono .rule {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--line), transparent);
  min-width: 24px;
}

.nb {
  white-space: nowrap;
}

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

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: top 0.2s var(--ease);
}
.skip:focus {
  top: 16px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(244, 246, 249, 0.86);
  backdrop-filter: blur(14px) saturate(130%);
  -webkit-backdrop-filter: blur(14px) saturate(130%);
  border-bottom: 1px solid var(--line);
}

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

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

.brand-logo {
  width: 128px;
  height: auto;
}

.brand-divider {
  width: 1px;
  height: 26px;
  background: var(--line-strong);
}

.brand-text {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.5;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-links a {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-2);
  padding: 6px 0;
  position: relative;
  transition: color 0.2s;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s var(--ease);
}

.nav-links a:hover {
  color: var(--ink);
}
.nav-links a:hover::after {
  width: 100%;
}

.lang {
  display: flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.6);
}

.lang button {
  padding: 7px 13px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
  border-radius: 2px;
  transition: color 0.2s, background 0.2s;
}

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

.lang button.active {
  background: var(--ink);
  color: #fff;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(52px, 7vw, 92px) 0 clamp(44px, 6vw, 76px);
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.hero .mono {
  margin-bottom: 24px;
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(30, 78, 140, 0.35);
  animation: pulse 3s infinite;
  flex-shrink: 0;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(30, 78, 140, 0.3);
  }
  70% {
    box-shadow: 0 0 0 9px rgba(30, 78, 140, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(30, 78, 140, 0);
  }
}

h1.hero-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(42px, 6.1vw, 82px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  color: var(--ink);
  text-wrap: balance;
}

h1.hero-title .soft {
  color: var(--accent-ink);
}

.hero-lead {
  margin-top: 26px;
  max-width: 44ch;
  font-size: clamp(16.5px, 1.25vw, 18.5px);
  line-height: 1.7;
  color: var(--text-2);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: clamp(36px, 5vw, 54px);
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.hero-stats dt {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-stats dd {
  margin-top: 8px;
  font-size: 15.5px;
  color: var(--text-2);
  line-height: 1.45;
}

/* Hero orbital figure — technical drawing on paper */
.hero-visual {
  display: grid;
  place-items: center;
  min-height: 360px;
  position: relative;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 4% 0;
  background: radial-gradient(
    50% 50% at 50% 50%,
    rgba(30, 78, 140, 0.09),
    transparent 68%
  );
  pointer-events: none;
}

.orb {
  position: relative;
  width: min(100%, 430px);
  aspect-ratio: 1;
}

.orb::before,
.orb::after {
  content: "";
  position: absolute;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(15, 23, 42, 0.16),
    transparent
  );
}
.orb::before {
  left: 50%;
  top: -6%;
  bottom: -6%;
  width: 1px;
}
.orb::after {
  top: 50%;
  left: -6%;
  right: -6%;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(15, 23, 42, 0.16),
    transparent
  );
}

.ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(15, 23, 42, 0.14);
}

.ring-1 {
  inset: 0;
}
.ring-2 {
  inset: 13%;
  border-color: rgba(15, 23, 42, 0.1);
}
.ring-3 {
  inset: 28%;
  border-color: rgba(15, 23, 42, 0.08);
}

.ring-1::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  border: 1px solid transparent;
  border-top-color: rgba(30, 78, 140, 0.85);
  border-right-color: rgba(30, 78, 140, 0.22);
  animation: spin 26s linear infinite;
}

.ring-2::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  border: 1px dashed rgba(15, 23, 42, 0.12);
  animation: spin 60s linear infinite reverse;
}

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

.orb-core {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 9px;
  height: 9px;
  margin: -4.5px 0 0 -4.5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(30, 78, 140, 0.12),
    0 0 24px rgba(30, 78, 140, 0.35);
}

.orb-label {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.orb-label::before {
  content: "";
  position: absolute;
  width: 14px;
  height: 1px;
  background: var(--line-strong);
  top: 50%;
}

.lbl-top {
  top: 3%;
  left: 50%;
  transform: translateX(-50%);
}
.lbl-top::before {
  left: 50%;
  top: -14px;
  transform: translateX(-50%);
  width: 1px;
  height: 10px;
}
.lbl-right {
  top: 50%;
  right: 0;
  transform: translate(46%, -50%);
}
.lbl-right::before {
  left: -22px;
}
.lbl-bottom {
  bottom: 1%;
  left: 50%;
  transform: translateX(-50%);
}
.lbl-bottom::before {
  display: none;
}
.lbl-left {
  top: 50%;
  left: 0;
  transform: translate(-46%, -50%);
}
.lbl-left::before {
  right: -22px;
  left: auto;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: background 0.25s var(--ease), color 0.25s var(--ease),
    border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.btn svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  transition: transform 0.3s var(--ease);
}

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

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

.btn-primary:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

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

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

.btn-small {
  min-height: 44px;
  padding: 0 18px;
  font-size: 11.5px;
}

/* ---------- Sections ---------- */
.section {
  padding: clamp(56px, 7vw, 96px) 0;
  position: relative;
}

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

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  margin-bottom: clamp(30px, 4vw, 44px);
  max-width: 780px;
}

.section-head h2,
.page-head h1,
.aside-card h2,
.fallback h2,
.launch-body h2,
.video-head h2 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.section-head h2 {
  font-size: clamp(28px, 3.6vw, 46px);
  line-height: 1.08;
}

.section-head p {
  color: var(--text-2);
  font-size: 16.5px;
  line-height: 1.65;
  max-width: 56ch;
}

/* ---------- Service matrix ---------- */
.matrix {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 228px;
  padding: 24px 26px 22px;
  background: var(--surface);
  transition: background 0.35s var(--ease);
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    120% 100% at 0% 0%,
    rgba(30, 78, 140, 0.07),
    transparent 55%
  );
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
}

.service-card:hover,
.service-card:focus-visible {
  background: var(--surface-2);
}

.service-card:hover::before,
.service-card:focus-visible::before {
  opacity: 1;
}

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 6px;
}

.card-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--accent-ink);
  background: var(--paper-2);
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.service-card:hover .card-icon {
  border-color: rgba(30, 78, 140, 0.35);
  background: var(--accent-soft);
}

.card-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card-index {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.25;
  color: var(--ink);
}

.service-card p {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--text-2);
  max-width: 34ch;
}

.card-cta {
  margin-top: auto;
  padding-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.25s, gap 0.25s var(--ease);
}

.card-cta svg {
  width: 13px;
  height: 13px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.4;
}

.service-card:hover .card-cta {
  color: var(--accent-ink);
  gap: 12px;
}

/* ---------- Payment band ---------- */
.pay-band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(
    90deg,
    rgba(30, 78, 140, 0.08),
    rgba(30, 78, 140, 0) 55%
  );
}

.pay-band .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 30px 0;
  flex-wrap: wrap;
}

.pay-band h3 {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 500;
  letter-spacing: -0.015em;
  margin-top: 10px;
  color: var(--ink);
}

.pay-band p {
  color: var(--text-2);
  font-size: 15.5px;
  line-height: 1.6;
  margin-top: 6px;
  max-width: 62ch;
}

/* ---------- Support ---------- */
.support-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}

.support-intro h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-top: 16px;
  color: var(--ink);
}

.support-intro p.support-copy {
  color: var(--text-2);
  font-size: 16px;
  line-height: 1.65;
  margin-top: 16px;
  max-width: 40ch;
}

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

.support-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  padding: 22px 4px;
  border-bottom: 1px solid var(--line);
  transition: padding 0.3s var(--ease), background 0.3s;
}

.support-row:hover {
  padding-left: 12px;
  background: rgba(30, 78, 140, 0.045);
}

.support-row .title {
  display: block;
  font-size: 17.5px;
  font-weight: 500;
  color: var(--ink);
  transition: color 0.25s;
}

.support-row .sub {
  display: block;
  font-size: 14.5px;
  color: var(--muted);
  margin-top: 3px;
}

.support-row:hover .title {
  color: var(--accent-ink);
}

.support-row svg {
  width: 16px;
  height: 16px;
  stroke: var(--muted);
  fill: none;
  stroke-width: 1.4;
  transition: transform 0.3s var(--ease), stroke 0.25s;
}

.support-row:hover svg {
  transform: translate(3px, -3px);
  stroke: var(--accent-ink);
}

/* ---------- Page shell ---------- */
.page {
  padding: clamp(28px, 4vw, 44px) 0 clamp(56px, 7vw, 90px);
  position: relative;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.breadcrumb a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: color 0.2s;
}

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

.breadcrumb svg {
  width: 12px;
  height: 12px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
}

.breadcrumb .sep {
  opacity: 0.5;
}

.page-head {
  max-width: 860px;
}

.page-head h1 {
  font-size: clamp(36px, 5.2vw, 62px);
  line-height: 1.04;
  margin-top: 16px;
  text-wrap: balance;
}

.page-head .lead {
  margin-top: 18px;
  font-size: clamp(16.5px, 1.35vw, 19px);
  line-height: 1.7;
  color: var(--text-2);
  max-width: 62ch;
}

.service-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 296px;
  gap: clamp(28px, 4vw, 52px);
  align-items: start;
  margin-top: clamp(30px, 4vw, 44px);
}

.service-main {
  min-width: 0;
}

.service-aside {
  position: sticky;
  top: 100px;
  display: grid;
  gap: 14px;
}

.aside-card {
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 22px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.aside-card h2 {
  font-size: 17px;
  margin-top: 10px;
  line-height: 1.3;
}

.aside-links {
  margin-top: 14px;
  display: grid;
  gap: 2px;
}

.aside-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  font-size: 15px;
  color: var(--text-2);
  border-bottom: 1px solid rgba(15, 23, 42, 0.07);
  transition: color 0.2s, padding 0.2s;
}

.aside-links a svg,
.video-link svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}

.aside-links a:last-child {
  border-bottom: 0;
}

.aside-links a:hover {
  color: var(--accent-ink);
  padding-left: 4px;
}

.aside-note {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

.aside-card .contact-strong {
  display: block;
  font-family: var(--font-display);
  font-size: 19px;
  letter-spacing: -0.01em;
  margin-top: 6px;
  color: var(--ink);
}

.aside-card .contact-strong:hover {
  color: var(--accent-ink);
}

/* ---------- Notice ---------- */
.notice {
  position: relative;
  border: 1px solid var(--line);
  border-left: 2px solid var(--accent);
  background: #edf3fb;
  padding: 26px 28px;
  border-radius: var(--radius);
}

.notice h2 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
  color: var(--ink);
}

.notice ul {
  display: grid;
  gap: 10px;
}

.notice li {
  position: relative;
  padding-left: 18px;
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--text-2);
}

.notice li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 7px;
  height: 1px;
  background: var(--accent);
}

/* ---------- Video ---------- */
.video-block {
  margin-top: 20px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius);
  padding: clamp(20px, 2.4vw, 28px);
  box-shadow: var(--shadow-sm);
}

.video-head h2 {
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.18;
  margin-top: 12px;
}

.video-head p {
  color: var(--text-2);
  font-size: 15.5px;
  line-height: 1.6;
  margin-top: 8px;
  max-width: 60ch;
}

.video-frame {
  position: relative;
  margin-top: 20px;
  aspect-ratio: 16 / 9;
  background: #111;
  border: 1px solid var(--line);
  overflow: hidden;
  border-radius: 2px;
}

.video-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  transform: scale(1);
  transition: opacity 0.5s var(--ease), transform 0.9s var(--ease);
}

.video-frame:hover img {
  transform: scale(1.03);
}

.video-trigger {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: radial-gradient(
    60% 60% at 50% 50%,
    rgba(0, 0, 0, 0.12),
    rgba(0, 0, 0, 0.42)
  );
  width: 100%;
  height: 100%;
}

.play-btn {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  border: 1px solid rgba(15, 23, 42, 0.2);
  background: #ffffff;
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.22), 0 14px 36px rgba(0, 0, 0, 0.35);
  transition: background 0.3s var(--ease), border-color 0.3s, transform 0.3s;
}

.play-btn svg {
  width: 20px;
  height: 20px;
  fill: var(--ink);
  margin-left: 3px;
  transition: fill 0.3s;
}

.video-frame:hover .play-btn {
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.06);
}

.video-frame:hover .play-btn svg {
  fill: #fff;
}

.video-source {
  position: absolute;
  right: 14px;
  bottom: 14px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.video-source svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  opacity: 0.9;
}

.video-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.video-foot .video-title {
  font-size: 14.5px;
  color: var(--muted);
}

.video-link {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-2);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}

.video-link:hover {
  color: var(--accent-ink);
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- Form launcher ---------- */
.launch {
  margin-top: 20px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.launch-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 20px;
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.launch-bar .status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-2);
}

.launch-bar .status::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ok);
}

.launch-body {
  padding: clamp(24px, 3vw, 34px);
}

.launch-body h2 {
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.18;
  margin-top: 12px;
}

.launch-body > p {
  color: var(--text-2);
  font-size: 16px;
  line-height: 1.68;
  margin-top: 12px;
  max-width: 60ch;
}

.launch-body .fine {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 62ch;
}

/* ---------- Fallback / contact panel ---------- */
.fallback {
  margin-top: 20px;
  border: 1px solid var(--line);
  background: var(--surface);
  padding: clamp(24px, 3vw, 34px);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.fallback h2 {
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.18;
  margin-top: 12px;
}

.fallback > p {
  color: var(--text-2);
  font-size: 16px;
  line-height: 1.68;
  margin-top: 12px;
  max-width: 62ch;
}

.steps {
  counter-reset: step;
  display: grid;
  gap: 14px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  font-size: 15.5px;
  line-height: 1.66;
  color: var(--text-2);
}

.steps li::before {
  content: "0" counter(step);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--accent-ink);
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  height: 24px;
  display: grid;
  place-items: center;
  margin-top: 1px;
}

.steps strong {
  color: var(--ink);
  font-weight: 600;
}

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

/* ---------- Payment list ---------- */
.pay-list {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: clamp(28px, 4vw, 40px);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.pay-item + .pay-item {
  border-top: 1px solid var(--line);
}

.pay-item summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 22px;
  align-items: center;
  gap: 18px;
  padding: 22px 24px;
  cursor: pointer;
  list-style: none;
  transition: background 0.25s;
}

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

.pay-item summary:hover {
  background: var(--paper-2);
}

.pay-item[open] summary {
  background: var(--paper-2);
}

.pay-title {
  display: block;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.pay-copy {
  display: block;
  font-size: 14.5px;
  color: var(--muted);
  margin-top: 4px;
  line-height: 1.5;
}

.amount-pill {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: var(--accent-ink);
  border: 1px solid rgba(30, 78, 140, 0.35);
  background: rgba(30, 78, 140, 0.07);
  padding: 7px 11px;
  border-radius: 2px;
  white-space: nowrap;
}

.chev {
  position: relative;
  width: 12px;
  height: 12px;
  justify-self: end;
}

.chev::before,
.chev::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 12px;
  height: 1.5px;
  background: var(--text-2);
  transition: transform 0.3s var(--ease);
}

.chev::after {
  transform: rotate(90deg);
}

.pay-item[open] .chev::after {
  transform: rotate(0deg);
}

.pay-detail {
  padding: 0 24px 24px;
}

.pay-detail ul {
  display: grid;
  gap: 8px;
  padding-top: 4px;
}

.pay-detail li {
  position: relative;
  padding-left: 16px;
  font-size: 15.5px;
  line-height: 1.66;
  color: var(--text-2);
}

.pay-detail li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 6px;
  height: 1px;
  background: var(--accent);
}

.pay-detail .actions {
  margin-top: 18px;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: #0b1626;
  color: rgba(255, 255, 255, 0.72);
  padding: clamp(44px, 6vw, 68px) 0 26px;
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  padding-bottom: 40px;
}

.footer-brand img {
  width: 138px;
  height: auto;
  opacity: 0.95;
}

.footer-brand p {
  margin-top: 18px;
  font-size: 14.5px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.6);
  max-width: 30ch;
}

.footer-col h3 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 400;
  margin-bottom: 16px;
}

.footer-col a,
.footer-col span {
  display: block;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.9;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: #9dc0ea;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom .version {
  color: rgba(255, 255, 255, 0.32);
}

/* ---------- Reveal ---------- */
.reveal {
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.js .reveal {
  opacity: 0;
  transform: translateY(16px);
}

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

/* ---------- Chinese typography ---------- */
html[lang="zh-Hans"] .mono,
html[lang="zh-Hans"] .brand-text,
html[lang="zh-Hans"] .footer-col h3,
html[lang="zh-Hans"] .card-cta,
html[lang="zh-Hans"] .btn,
html[lang="zh-Hans"] .breadcrumb,
html[lang="zh-Hans"] .launch-bar,
html[lang="zh-Hans"] .footer-bottom {
  letter-spacing: 0.08em;
}

html[lang="zh-Hans"] .hero-title,
html[lang="zh-Hans"] .page-head h1 {
  letter-spacing: -0.01em;
}

html[lang="zh-Hans"] .notice li,
html[lang="zh-Hans"] .pay-detail li,
html[lang="zh-Hans"] .steps li {
  line-height: 1.8;
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .matrix {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-layout {
    grid-template-columns: minmax(0, 1fr) 264px;
  }
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    display: none;
  }

  .support-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .service-layout {
    grid-template-columns: 1fr;
  }

  .service-aside {
    position: static;
    grid-template-columns: 1fr 1fr;
  }

  .nav-links {
    display: none;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .nav {
    height: 64px;
  }

  .brand-logo {
    width: 104px;
  }

  .brand-divider,
  .brand-text {
    display: none;
  }

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

  .service-card {
    min-height: 0;
    padding: 22px 20px 20px;
  }

  .service-card p {
    max-width: none;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn,
  .actions .btn {
    width: 100%;
  }

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

  .hero-stats > div:last-child {
    display: none;
  }

  .service-aside {
    grid-template-columns: 1fr;
  }

  .pay-item summary {
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 18px;
  }

  .chev {
    display: none;
  }

  .pay-detail {
    padding: 0 18px 20px;
  }

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

  .video-foot {
    flex-direction: column;
    align-items: flex-start;
  }

  .play-btn {
    width: 62px;
    height: 62px;
  }
}

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

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

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

/* =========================================================
   Typography v3 — humanist, sentence case
   ========================================================= */
:root {
  --font-display: "IBM Plex Sans", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo,
    monospace;
}

body {
  font-size: 17px;
  line-height: 1.7;
  letter-spacing: 0.004em;
}

.mono {
  font-size: 11.5px;
  letter-spacing: 0.1em;
}

.brand-text {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: none;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.005em;
  text-transform: none;
}

.lang button {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
}

.btn {
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.005em;
  text-transform: none;
}

.btn-small {
  font-size: 13.5px;
}

.card-cta {
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.005em;
  text-transform: none;
}

.card-index {
  font-size: 11.5px;
  letter-spacing: 0.08em;
}

.hero-stats dt {
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: none;
}

.breadcrumb {
  font-family: var(--font-body);
  font-size: 12.5px;
  letter-spacing: 0.01em;
  text-transform: none;
}

.launch-bar {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.01em;
  text-transform: none;
}

.video-link {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.005em;
  text-transform: none;
}

.video-source {
  font-family: var(--font-body);
  font-size: 10.5px;
  letter-spacing: 0.04em;
}

.footer-col h3 {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
}

.footer-bottom {
  font-family: var(--font-body);
  font-size: 11.5px;
  letter-spacing: 0.03em;
  text-transform: none;
}

.amount-pill {
  font-family: var(--font-mono);
  font-size: 13px;
}

h1.hero-title {
  font-weight: 600;
  letter-spacing: -0.025em;
}

.section-head h2,
.page-head h1,
.aside-card h2,
.fallback h2,
.launch-body h2,
.video-head h2,
.notice h2 {
  font-weight: 600;
  letter-spacing: -0.018em;
}

.service-card h3 {
  font-weight: 600;
  letter-spacing: -0.008em;
}

.pay-title,
.support-row .title {
  font-weight: 600;
}

.pay-copy {
  font-size: 15px;
}

.hero-lead,
.page-head .lead,
.section-head p,
.service-card p,
.notice li,
.pay-detail li,
.steps li,
.launch-body > p,
.fallback > p,
.support-intro p.support-copy {
  letter-spacing: 0.004em;
}

html[lang="zh-Hans"] body {
  letter-spacing: 0;
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }
}

/* ---------- Service guide ---------- */
.guide {
  margin-top: 20px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius);
  padding: clamp(22px, 2.8vw, 34px);
  box-shadow: var(--shadow-sm);
}

.guide h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.8vw, 32px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-top: 12px;
  color: var(--ink);
}

.guide-intro {
  margin-top: 12px;
  font-size: 16px;
  line-height: 1.68;
  color: var(--text-2);
  max-width: 64ch;
}

.guide-table-wrap {
  margin-top: 22px;
  border: 1px solid var(--line);
  border-radius: 2px;
  overflow: hidden;
}

.guide-table {
  width: 100%;
  border-collapse: collapse;
}

.guide-table th {
  text-align: left;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  background: var(--paper-2);
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}

.guide-table th:last-child {
  width: 220px;
}

.guide-table td {
  padding: 13px 16px;
  font-size: 15.5px;
  line-height: 1.5;
  color: var(--text);
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

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

.guide-table td:last-child {
  color: var(--accent-ink);
  font-weight: 600;
  font-size: 14.5px;
}

.guide-table tbody tr:nth-child(even) td {
  background: #fbfcfe;
}

.guide-note {
  margin-top: 12px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 70ch;
}

.guide h3 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-top: 28px;
  color: var(--ink);
}

.guide-list {
  margin-top: 12px;
  display: grid;
  gap: 9px;
}

.guide-list li {
  position: relative;
  padding-left: 18px;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--text-2);
}

.guide-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.66em;
  width: 7px;
  height: 1px;
  background: var(--accent);
}

.guide-steps {
  margin-top: 14px;
  display: grid;
  gap: 12px;
}

.guide-steps li {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--text-2);
}

.guide-steps .step-num {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--accent-ink);
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  height: 24px;
  display: grid;
  place-items: center;
  margin-top: 2px;
}

.guide-withdraw {
  margin-top: 24px;
  padding: 14px 16px;
  background: var(--paper-2);
  border-left: 2px solid var(--line-strong);
  font-size: 14.5px;
  line-height: 1.62;
  color: var(--text-2);
}

.guide-source {
  margin-top: 18px;
}

.guide-source a {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-ink);
  border-bottom: 1px solid rgba(30, 78, 140, 0.35);
  padding-bottom: 2px;
}

.guide-source a:hover {
  border-bottom-color: var(--accent);
}

@media (max-width: 640px) {
  .guide-table thead {
    display: none;
  }

  .guide-table,
  .guide-table tbody,
  .guide-table tr,
  .guide-table td {
    display: block;
    width: 100%;
  }

  .guide-table tr {
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
  }

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

  .guide-table tbody tr:nth-child(even) {
    background: #fbfcfe;
  }

  .guide-table td {
    padding: 0;
    border: 0;
    background: transparent !important;
  }

  .guide-table td:last-child {
    margin-top: 4px;
    font-size: 14px;
  }
}

/* ---------- Branch chooser ---------- */
.branch {
  margin-top: 20px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius);
  padding: clamp(22px, 2.8vw, 32px);
  box-shadow: var(--shadow-sm);
}

.branch h2 {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.5vw, 28px);
  font-weight: 600;
  letter-spacing: -0.018em;
  line-height: 1.15;
  margin-top: 10px;
  color: var(--ink);
}

.branch-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 18px;
}

.branch-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--paper-2);
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}

.branch-card.primary {
  background: #f5f9fe;
  border-color: rgba(30, 78, 140, 0.35);
}

.branch-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--accent);
}

.branch-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.branch-card h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.branch-card p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-2);
}

.branch-cta {
  margin-top: auto;
  padding-top: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-ink);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.branch-cta svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
}

@media (max-width: 760px) {
  .branch-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Maintenance guide ---------- */
.urgent {
  margin-top: 24px;
  padding: 24px 26px;
  background: #fff9f2;
  border: 1px solid #f0dcc6;
  border-left: 3px solid #c4761f;
  border-radius: 2px;
}

.urgent-head {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: #8a4b12;
}

.urgent .live-dot {
  background: #c4761f;
  box-shadow: none;
}

.urgent ul {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 28px;
}

.urgent li {
  position: relative;
  padding-left: 15px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-2);
}

.urgent li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #c4761f;
}

.urgent-note {
  margin-top: 16px;
  font-size: 14.5px;
  line-height: 1.6;
  font-weight: 500;
  color: #8a4b12;
}

.fix-list {
  margin-top: 26px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--surface);
  overflow: hidden;
}

.fix-item {
  border-bottom: 1px solid var(--line);
}

.fix-item:last-child {
  border-bottom: 0;
}

.fix-summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  cursor: pointer;
  list-style: none;
  transition: background 0.2s;
}

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

.fix-summary:hover {
  background: var(--paper-2);
}

.fix-num {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--muted);
  min-width: 20px;
}

.fix-title {
  flex: 1;
  font-family: var(--font-display);
  font-size: 17.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1.35;
}

.fix-tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8a4b12;
  background: #fdf1e4;
  border: 1px solid #f0dcc6;
  padding: 3px 7px;
  border-radius: 2px;
}

.fix-chev {
  width: 8px;
  height: 8px;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 0.25s;
  flex: none;
  margin-right: 2px;
}

.fix-item[open] .fix-chev {
  transform: rotate(-135deg);
}

.fix-body {
  padding: 0 22px 22px 56px;
}

.fix-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

.fix-steps {
  display: grid;
  gap: 9px;
  margin-bottom: 16px;
  counter-reset: fixstep;
}

.fix-steps li {
  position: relative;
  padding-left: 24px;
  font-size: 15.5px;
  line-height: 1.62;
  color: var(--text-2);
  counter-increment: fixstep;
}

.fix-steps li::before {
  content: counter(fixstep);
  position: absolute;
  left: 0;
  top: 2px;
  width: 17px;
  height: 17px;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--accent-ink);
  border: 1px solid var(--line-strong);
  border-radius: 50%;
}

.fix-report {
  padding: 12px 15px;
  background: var(--paper-2);
  border-left: 2px solid var(--accent);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
}

.fix-report span {
  font-weight: 600;
  color: var(--accent-ink);
  margin-right: 7px;
}

.maint-cta {
  margin-top: 26px;
  padding: clamp(22px, 2.8vw, 34px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.maint-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ink);
}

.maint-cta p {
  margin-top: 10px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-2);
  max-width: 62ch;
}

.maint-cta .actions {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.maint-disclaimer {
  margin-top: 16px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 72ch;
}

@media (max-width: 700px) {
  .urgent ul {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .fix-body {
    padding-left: 22px;
  }

  .fix-title {
    font-size: 16.5px;
  }

  .fix-summary {
    padding: 16px 18px;
    gap: 10px;
  }

  .maint-cta .actions .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ---------- Header navigation ---------- */
.nav-links {
  gap: 24px;
}

.nav-item {
  position: relative;
}

.nav-trigger {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-2);
  transition: color 0.2s;
}

.nav-trigger:hover,
.nav-item.is-open .nav-trigger {
  color: var(--ink);
}

.caret {
  width: 6px;
  height: 6px;
  border-right: 1.4px solid currentColor;
  border-bottom: 1.4px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.25s var(--ease);
}

.nav-item.is-open .caret {
  transform: rotate(-135deg) translateY(-2px);
}

.nav-menu {
  position: absolute;
  top: calc(100% + 16px);
  left: -20px;
  width: 648px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: 0 32px 64px -32px rgba(12, 26, 51, 0.38), 0 2px 8px rgba(12, 26, 51, 0.05);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  z-index: 60;
}

.nav-item.is-open .nav-menu {
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
}

.menu-eyebrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 8px 12px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.menu-count {
  color: var(--line-strong);
  letter-spacing: 0.1em;
}

.menu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  padding-top: 10px;
}

.nav-links .menu-item {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 11px 8px;
  border-radius: 2px;
  font-family: var(--font-body);
  font-size: 15px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
  transition: background 0.18s;
}

.nav-links .menu-item::after {
  display: none;
}

.nav-links .menu-item:hover {
  background: var(--paper-2);
}

.menu-num {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--muted);
  padding-top: 4px;
}

.menu-body {
  display: block;
  min-width: 0;
}

.menu-title {
  display: block;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-transform: none;
}

.menu-copy {
  display: block;
  margin-top: 3px;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--muted);
  text-transform: none;
}

.menu-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: 10px;
  padding: 14px 8px 2px;
  border-top: 1px solid var(--line);
}

.nav-links .menu-foot-link {
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--accent-ink);
  padding: 0;
}

.nav-links .menu-foot-link::after {
  display: none;
}

.menu-foot-phone {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink);
  padding: 0;
}

.nav-links .menu-foot-phone::after {
  display: none;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.6);
}

.nav-toggle span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.25s var(--ease), opacity 0.2s;
}

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

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

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

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 35;
  padding: 96px 0 44px;
  background: var(--paper);
  overflow-y: auto;
  border-top: 1px solid var(--line);
}

.mobile-menu[hidden] {
  display: none;
}

body.nav-open {
  overflow: hidden;
}

.mobile-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.mobile-services .menu-item {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 12px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

.mobile-services .menu-num {
  padding-top: 3px;
}

.mobile-services .menu-title {
  font-size: 17px;
}

.mobile-services .menu-copy {
  font-size: 13.5px;
  margin-top: 2px;
}

.mobile-links {
  display: grid;
  margin-top: 18px;
}

.mobile-links a {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15.5px;
  color: var(--text);
}

.mobile-links a:last-child {
  border-bottom: 0;
}

.mobile-contact {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.mobile-contact .btn {
  justify-content: center;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
  }
}

@media (max-width: 640px) {
  .mobile-menu {
    padding-top: 80px;
  }
}

/* Dropdown anchored to the nav cluster so it never overflows the viewport */
.nav-links {
  position: relative;
}

.nav-item {
  position: static;
}

.nav-menu {
  left: auto;
  right: 0;
  top: calc(100% + 14px);
  width: min(648px, calc(100vw - 40px));
}

.nav-menu {
  top: calc(100% + 22px);
}

.menu-count {
  color: var(--muted);
  opacity: 0.55;
}

/* ---------- Service detail blocks ---------- */
.detail {
  margin-top: 26px;
  padding: clamp(22px, 3vw, 34px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.detail h2 {
  margin-top: 12px;
  font-family: var(--font-display);
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ink);
}

.detail-intro {
  margin-top: 10px;
  max-width: 66ch;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-2);
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin-top: 22px;
  background: var(--line);
  border: 1px solid var(--line);
}

.detail-card {
  padding: 20px 22px 22px;
  background: var(--surface);
}

.detail-card.is-key {
  background: #eef3fa;
  box-shadow: inset 3px 0 0 var(--accent);
}

.detail-num {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.detail-card h3 {
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: var(--ink);
}

.detail-card p {
  margin-top: 7px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-2);
}

.detail-foot {
  margin-top: 18px;
  padding: 14px 16px;
  background: var(--paper-2);
  border-left: 2px solid var(--accent);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
}

.detail-foot strong {
  color: var(--accent-ink);
  margin-right: 4px;
}

.detail-note {
  margin-top: 14px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 70ch;
}

@media (max-width: 700px) {
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .detail-card {
    padding: 18px 18px 20px;
  }
}
