/* Lion Business Services — Phase 1 redesign prototype
   Design language: "engraved certificate". Guilloché linework from banknotes
   and stock certificates, the lion's gold on deep forest green, and a calm
   editorial layout. One hero moment (the dimensional seal); everything else
   stays quiet. */

/* ---------- Tokens ---------- */
:root {
  --font-display: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-body: "Outfit", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius-s: 3px;
  --radius-m: 10px;
  --radius-l: 18px;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.2, .7, .1, 1);
  --nav-h: 76px;
  --bar-h: 0px;

  --font-mono: "DM Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* Original brand palette from lbsprocess.com (Home.jsx :root) */
  --brand-green: #0b3f23;
  --brand-brown: #2d1e05;
  --brand-gradient: linear-gradient(135deg, var(--brand-green) 0%, var(--brand-brown) 100%);
  --gold: #d99a12;      /* --gold */
  --gold-hi: #f0bf43;   /* --gl */
  --gold-pale: #f7e4a0; /* --gp */
  --gold-lo: #a8740b;   /* deeper shade of --gold for metallic shadow */

  /* dark (default) — exact live surfaces */
  --bg: #07130d;        /* --black */
  --bg-2: #0b2115;      /* --s1 */
  --surface: #0b2115;   /* --s1 */
  --surface-2: #122719; /* --s2 */
  --surface-3: #1d2515; /* --s3 */
  --loam: #2d1e05;      /* --s4 / brand brown */
  --text: #ede9df;      /* --white */
  --muted: #c8c4ba;     /* --off */
  --faint: #9a9fb0;     /* --smoke, lifted for AA contrast */
  --line: rgba(217, 154, 18, .2);
  --line-2: rgba(237, 233, 223, .09);
  --gold-ink: #f0bf43;
  --on-gold: #07130d;
  --wa: #25d366;
  --on-wa: #07130d;
  --ok: #2ecc71;
  --ok-bg: rgba(46, 204, 113, .1);
  --warn: #f0bf43;
  --err: #e74c3c;
  --err-bg: rgba(231, 76, 60, .12);
  --info: #3498db;
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, .75);
  --shadow-s: 0 10px 30px -14px rgba(0, 0, 0, .6);
  --metal: linear-gradient(135deg, #f7e4a0 0%, #f0bf43 24%, #d99a12 52%, #a8740b 74%, #f0bf43 100%);
  --hero-glow: radial-gradient(60% 55% at 72% 38%, rgba(217, 154, 18, .16), transparent 70%),
               linear-gradient(135deg, rgba(11, 63, 35, .85) 0%, rgba(45, 30, 5, .85) 100%);
  --band-grad: linear-gradient(135deg, rgba(11, 63, 35, .55), rgba(45, 30, 5, .55));
  color-scheme: dark;
}

:root[data-theme="light"] {
  /* light — the same brand colors on the live site's ivory (--white #EDE9DF) */
  --bg: #f4f1e8;
  --bg-2: #ede9df;      /* --white */
  --surface: #fbf9f3;
  --surface-2: #f4f1e8;
  --surface-3: #e8e2d0;
  --loam: #f7e4a0;      /* --gp */
  --text: #0b2115;      /* --s1 */
  --muted: #2f4a37;     /* brand green, softened */
  --faint: #5b5440;     /* brand brown, softened */
  --line: rgba(45, 30, 5, .2);
  --line-2: rgba(11, 63, 35, .12);
  --gold-ink: #8a5c06;  /* --gold deepened for AA text contrast on ivory */
  --on-gold: #07130d;
  --wa: #25d366;
  --on-wa: #07130d;
  --ok: #157a42;
  --ok-bg: rgba(46, 204, 113, .12);
  --warn: #8a5c06;
  --err: #b8382a;
  --err-bg: rgba(231, 76, 60, .08);
  --info: #1f6aa5;
  --shadow: 0 30px 70px -36px rgba(11, 63, 35, .35);
  --shadow-s: 0 10px 28px -16px rgba(11, 63, 35, .3);
  --hero-glow: radial-gradient(60% 55% at 72% 38%, rgba(240, 191, 67, .28), transparent 70%),
               linear-gradient(135deg, rgba(11, 63, 35, .08), rgba(45, 30, 5, .06));
  --band-grad: linear-gradient(135deg, rgba(11, 63, 35, .06), rgba(217, 154, 18, .08));
  color-scheme: light;
}

:root[lang|="zh"] {
  --font-display: "Cormorant Garamond", "Songti SC", "Noto Serif SC", "Source Han Serif SC", "STSong", serif;
  --font-body: "Outfit", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "DM Mono", "PingFang SC", "Noto Sans SC", "Microsoft YaHei", monospace;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + var(--bar-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.62 var(--font-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background-color .35s var(--ease), color .35s var(--ease);
}
:lang(zh) body, body:lang(zh) { line-height: 1.8; line-break: strict; word-break: normal; overflow-wrap: anywhere; }
img, svg { display: block; max-width: 100%; }
figure, blockquote, dl, dd { margin: 0; }
img { height: auto; }
a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: .2em; }
a:hover { text-decoration-color: currentColor; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; border-radius: 2px; }
::selection { background: rgba(217, 154, 18, .35); }
.sr-only { position: absolute !important; 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: 12px; top: -60px; z-index: 1000; background: var(--gold); color: var(--on-gold); padding: 10px 16px; border-radius: var(--radius-s); font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-narrow { max-width: 860px; }
.section { padding: clamp(64px, 9vw, 120px) 0; position: relative; }
.section-tight { padding: clamp(44px, 6vw, 72px) 0; }
.band { background: var(--band-grad), var(--bg-2); }
.band-loam { background: linear-gradient(180deg, var(--bg-2), color-mix(in srgb, var(--loam) 55%, var(--bg-2))); }

/* ---------- Type ---------- */
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 .74rem/1.5 var(--font-mono);
  text-transform: uppercase; letter-spacing: .16em;
  color: var(--gold-ink);
  margin: 0 0 14px;
}
.kicker::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .7; }
.display {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.1rem, 4.6vw, 3.6rem);
  line-height: 1.04;
  letter-spacing: -.01em;
  text-wrap: balance;
}
.display .line2 { display: block; color: var(--muted); font-style: italic; font-weight: 400; }
:lang(zh) .display { letter-spacing: 0; line-height: 1.25; font-weight: 600; }
:lang(zh) .display .line2 { font-style: normal; }
.h3 { font: 600 1.45rem/1.2 var(--font-display); }
.lede { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--muted); max-width: 62ch; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.fine { font-size: .82rem; color: var(--faint); }
.gold { color: var(--gold-ink); }
.center { text-align: center; margin-left: auto; margin-right: auto; }
.head { margin-bottom: clamp(28px, 4vw, 48px); max-width: 760px; }
.head.center .kicker { justify-content: center; }
.head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(28px, 4vw, 44px); }

/* ---------- Buttons ---------- */
.btn {
  --b: var(--line);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 11px 22px;
  border: 1px solid var(--b); border-radius: var(--radius-s);
  background: transparent; color: var(--text);
  font: 600 .95rem/1.2 var(--font-body); letter-spacing: .01em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .25s var(--ease), border-color .25s, background-color .25s, color .25s, box-shadow .25s;
  overflow: hidden; isolation: isolate;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { --b: var(--gold); color: var(--gold-ink); }
.btn:active { transform: translateY(1px); }
.btn-gold { background: var(--metal); background-size: 200% 200%; color: var(--on-gold); border-color: transparent; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), var(--shadow-s); }
.btn-gold::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .45) 50%, transparent 65%); transform: translateX(-120%); transition: transform .8s var(--ease); }
.btn-gold:hover { color: var(--on-gold); background-position: 100% 0; }
.btn-gold:hover::after { transform: translateX(120%); }
.btn-wa { background: var(--wa); border-color: transparent; color: var(--on-wa); }
.btn-wa:hover { color: var(--on-wa); filter: brightness(1.06); }
.btn-quiet { border-color: transparent; padding-left: 0; padding-right: 0; min-height: 0; color: var(--gold-ink); }
.btn-quiet:hover { text-decoration: underline; }
.btn-lg { min-height: 54px; padding: 14px 28px; font-size: 1rem; }
.btn-sm { min-height: 38px; padding: 8px 14px; font-size: .88rem; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn .chev { width: 14px; height: 14px; transition: transform .25s var(--ease); }
.btn:hover .chev, a:hover > .chev { transform: translateX(3px); }
.btn[aria-expanded="true"] .chev-down { transform: rotate(180deg); }

/* ---------- Preview bar ---------- */
.preview-bar {
  position: fixed; inset: 0 0 auto 0; z-index: 70;
  display: flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 34px; padding: 6px 48px 6px 16px;
  background: repeating-linear-gradient(-45deg, #2a1f05 0 12px, #241b04 12px 24px);
  color: #f7e4a0; font-size: .8rem; line-height: 1.35; text-align: center;
  border-bottom: 1px solid rgba(242, 196, 90, .35);
}
.preview-bar b { color: #ffd979; }
.preview-bar .pv-toggle { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: inherit; padding: 6px; cursor: pointer; border-radius: 4px; }
.preview-bar .pv-full { display: inline; }
.preview-bar .pv-short { display: none; }
html.pv-compact .preview-bar .pv-full { display: none; }
html.pv-compact .preview-bar .pv-short { display: inline; }
@media (max-width: 720px) {
  .preview-bar .pv-full { display: none; }
  .preview-bar .pv-short { display: inline; }
}

/* ---------- Header ---------- */
.site-head {
  position: fixed; left: 0; right: 0; top: var(--bar-h); z-index: 60;
  transition: background-color .3s, border-color .3s, backdrop-filter .3s, transform .35s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-head.scrolled, .site-head.solid {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom-color: var(--line-2);
}
.ann { font-size: .78rem; color: var(--muted); text-align: center; padding: 6px var(--gutter); border-bottom: 1px solid var(--line-2); letter-spacing: .02em; }
.ann a { color: var(--gold-ink); text-decoration: none; }
.site-head.scrolled .ann { display: none; }
.nav { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px; height: var(--nav-h); }
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { height: 54px; width: auto; filter: drop-shadow(0 2px 10px rgba(0, 0, 0, .25)); }
:root[data-theme="light"] .brand img { filter: none; }
.nav-links { display: flex; justify-content: center; gap: 4px; list-style: none; }
.nav-links a { display: block; white-space: nowrap; padding: 10px 12px; font-size: .94rem; color: var(--muted); text-decoration: none; border-radius: var(--radius-s); position: relative; }
.nav-links a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-tools { display: flex; align-items: center; gap: 8px; }
.tool {
  display: inline-flex; align-items: center; gap: 6px; height: 40px; min-width: 40px; padding: 0 10px; justify-content: center;
  border: 1px solid var(--line-2); border-radius: var(--radius-s); background: transparent; color: var(--muted); cursor: pointer; font-size: .88rem; text-decoration: none;
  transition: border-color .2s, color .2s;
}
.tool:hover, .tool[aria-expanded="true"] { border-color: var(--gold); color: var(--text); }
.tool svg { width: 18px; height: 18px; }
.nav-portal { white-space: nowrap; }
.menu-btn { display: none; }

.pop { position: relative; }
.pop-panel {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 210px; z-index: 80;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); box-shadow: var(--shadow);
  padding: 6px; display: none;
}
.pop-panel.open { display: block; animation: popIn .22s var(--ease); }
@keyframes popIn { from { opacity: 0; transform: translateY(-6px) scale(.98); } to { opacity: 1; transform: none; } }
.pop-panel a, .pop-panel button {
  display: flex; width: 100%; align-items: center; gap: 10px; padding: 10px 12px; border: 0; background: none; text-align: left; cursor: pointer;
  border-radius: 6px; text-decoration: none; color: var(--text); font-size: .94rem;
}
.pop-panel a:hover, .pop-panel button:hover, .pop-panel [aria-checked="true"], .pop-panel [aria-current="true"] { background: var(--surface-2); }
.pop-panel [aria-checked="true"]::after, .pop-panel [aria-current="true"]::after { content: ""; margin-left: auto; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.pop-panel .lang-code { font-size: .78rem; color: var(--faint); width: 28px; }

.drawer { position: fixed; inset: 0; z-index: 90; display: none; }
.drawer.open { display: block; }
.drawer-scrim { position: absolute; inset: 0; background: rgba(3, 9, 6, .6); backdrop-filter: blur(4px); animation: fade .25s; }
.drawer-panel {
  position: absolute; right: 0; top: 0; bottom: 0; width: min(420px, 100%); background: var(--bg); border-left: 1px solid var(--line);
  padding: 20px 22px calc(28px + env(safe-area-inset-bottom)); overflow-y: auto; display: flex; flex-direction: column; gap: 6px;
  animation: slideIn .35s var(--ease);
}
@keyframes slideIn { from { transform: translateX(100%); } to { transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.drawer-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.drawer-top img { height: 40px; width: auto; }
.drawer a.dl { display: flex; align-items: center; justify-content: space-between; min-height: 54px; font: 500 1.35rem/1.2 var(--font-display); text-decoration: none; border-bottom: 1px solid var(--line-2); }
.drawer a.dl[aria-current="page"] { color: var(--gold-ink); }
.drawer .seg { display: flex; gap: 6px; flex-wrap: wrap; margin: 14px 0 4px; }
.drawer .seg a, .drawer .seg button { flex: 1; min-height: 42px; border: 1px solid var(--line-2); border-radius: var(--radius-s); background: none; cursor: pointer; display: flex; align-items: center; justify-content: center; text-decoration: none; font-size: .9rem; }
.drawer .seg [aria-current="true"], .drawer .seg [aria-checked="true"] { border-color: var(--gold); color: var(--gold-ink); }
.drawer .drawer-cta { margin-top: auto; display: grid; gap: 10px; padding-top: 20px; }
.drawer .seg-label { font-size: .8rem; color: var(--faint); margin-top: 12px; }

main { padding-top: calc(var(--bar-h) + var(--head-h, 110px) + 20px); }
main.flush { padding-top: 0; }

@media (max-width: 1360px) { .nav-order span { display: none; } .nav-tools { gap: 6px; } }
@media (max-width: 1080px) {
  .nav-main-nav, .nav-portal, .nav-book, .nav-order { display: none; }
  .menu-btn { display: inline-flex; }
  .nav { grid-template-columns: 1fr auto; }
}
@media (max-width: 720px) { .ann { display: none; } }
@media (max-width: 560px) {
  .nav-tools .pop-lang, .nav-tools .pop-theme { display: none; }
  .brand img { height: 38px; }
  :root { --nav-h: 66px; }
}

/* ---------- Guilloché ---------- */
.guilloche path { fill: none; stroke: currentColor; vector-effect: non-scaling-stroke; }
.rule-engraved { height: 26px; color: var(--gold); opacity: .28; background: center / auto 26px repeat-x url("../img/rule.svg"); }
:root[data-theme="light"] .rule-engraved { opacity: .38; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: calc(var(--bar-h) + var(--head-h, 110px) + clamp(28px, 5vw, 72px)) 0 clamp(56px, 7vw, 90px); background: var(--hero-glow), var(--bg); }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 90% at 50% -10%, transparent 55%, var(--bg) 100%); pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.hero h1 { font: 500 clamp(2.4rem, 5.2vw, 4.5rem)/1.02 var(--font-display); letter-spacing: -.015em; text-wrap: balance; }
.hero h1 .l2 { display: block; font-style: italic; font-weight: 400; background: var(--metal); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .08em; }
:root[data-theme="light"] .hero h1 .l2 { background: linear-gradient(135deg, #a8740b, #2d1e05 55%, #a8740b); -webkit-background-clip: text; background-clip: text; }
:lang(zh) .hero h1 { line-height: 1.2; letter-spacing: 0; font-weight: 600; }
:lang(zh) .hero h1 .l2 { font-style: normal; font-weight: 600; }
.hero .lede { margin: 26px 0 32px; }
.hero-badge { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 22px; font-size: .86rem; color: var(--muted); }
.hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 0 rgba(217, 154, 18, .6); animation: ping 2.4s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(217, 154, 18, .55); } 80%, 100% { box-shadow: 0 0 0 10px rgba(217, 154, 18, 0); } }
.g-reviews { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; margin-bottom: 26px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-size: .88rem; color: var(--muted); background: color-mix(in srgb, var(--surface) 50%, transparent); }
.g-reviews .stars { color: var(--gold-hi); letter-spacing: 2px; }
:root[data-theme="light"] .g-reviews .stars { color: var(--gold-lo); }
.g-reviews b { color: var(--text); }
.g-reviews:hover { border-color: var(--gold); }
.creds { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); margin-top: clamp(40px, 6vw, 72px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); position: relative; }
.creds > div { padding: 16px 12px; text-align: center; border-right: 1px solid var(--line-2); }
.creds > div:last-child { border-right: 0; }
.creds b { display: block; font: 600 1.45rem/1 var(--font-display); color: var(--gold-ink); }
.creds span { display: block; font-size: .76rem; color: var(--faint); margin-top: 6px; line-height: 1.3; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .creds { grid-template-columns: repeat(3, 1fr); }
  .creds > div:nth-child(3) { border-right: 0; }
  .creds > div:nth-child(-n+3) { border-bottom: 1px solid var(--line-2); }
}

/* The seal: layered guilloché rings that tilt in 3D with the cursor */
.seal-stage { perspective: 1200px; display: grid; place-items: center; }
.seal {
  --rx: 0deg; --ry: 0deg; --s: 0px;
  position: relative; width: min(520px, 88vw); aspect-ratio: 1; transform-style: preserve-3d;
  transform: rotateX(var(--rx)) rotateY(var(--ry)) translateY(var(--s));
  transition: transform .6s var(--ease);
  color: var(--gold);
}
.seal > * { position: absolute; inset: 0; }
.seal .ring { transform: translateZ(var(--z, 0px)); }
.seal .ring svg { width: 100%; height: 100%; overflow: visible; }
.seal .r1 { --z: -40px; opacity: .35; animation: spin 240s linear infinite; }
.seal .r2 { --z: 0px; opacity: .55; animation: spin 180s linear infinite reverse; inset: 9%; }
.seal .r3 { --z: 40px; opacity: .8; inset: 19%; animation: spin 120s linear infinite; }
.seal .r4 { --z: 70px; inset: 29%; opacity: .9; }
.seal .r1 svg path, .seal .r2 svg path, .seal .r3 svg path { stroke-dasharray: 6000; stroke-dashoffset: 6000; animation: draw 2.6s var(--ease) forwards; }
.seal .r2 svg path { animation-delay: .25s; }
.seal .r3 svg path { animation-delay: .5s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes spin { to { rotate: 360deg; } }
.seal .disc {
  inset: 27%; transform: translateZ(90px); border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--surface-3) 90%, #fff 10%), var(--surface) 62%, var(--bg-2));
  box-shadow: inset 0 0 0 1px var(--line), inset 0 0 0 7px color-mix(in srgb, var(--bg) 70%, transparent), inset 0 0 0 8px var(--line), 0 40px 80px -30px rgba(0, 0, 0, .7);
  display: grid; place-items: center; overflow: hidden;
}
:root[data-theme="light"] .seal .disc { background: radial-gradient(circle at 35% 30%, #fffdf6, #f7e4a0 70%, #f0bf43); box-shadow: inset 0 0 0 1px var(--line), inset 0 0 0 7px #fff, inset 0 0 0 8px var(--line), 0 40px 80px -36px rgba(16, 42, 28, .35); }
.seal .disc img { width: 82%; height: auto; transform: translateZ(20px); opacity: 0; animation: logoIn 1.1s .9s var(--ease) forwards; }
@keyframes logoIn { from { opacity: 0; transform: scale(.94); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
.seal .sheen { inset: 27%; border-radius: 50%; transform: translateZ(95px); pointer-events: none; background: radial-gradient(circle at var(--mx, 30%) var(--my, 25%), rgba(255, 240, 200, .22), transparent 45%); mix-blend-mode: soft-light; }
.seal .text-ring { inset: 17%; transform: translateZ(80px); animation: spin 90s linear infinite; }
.seal .text-ring text { fill: var(--gold-ink); font: 600 8.5px var(--font-body); }

/* ---------- Order strip (certificate tiles) ---------- */
.order-strip { position: relative; z-index: 3; margin-top: clamp(-56px, -5vw, -32px); }
.order-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); box-shadow: var(--shadow); padding: clamp(18px, 2.5vw, 28px); }
.order-card .order-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.order-card .order-head h2 { font: 500 clamp(1.3rem, 2vw, 1.65rem)/1.2 var(--font-display); }
.order-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.cert {
  position: relative; display: flex; flex-direction: column; gap: 4px; padding: 18px 18px 16px; text-decoration: none; border-radius: var(--radius-m);
  background: var(--surface-2); border: 1px solid var(--line-2);
  outline: 1px solid transparent; outline-offset: -5px;
  transition: border-color .25s, outline-color .25s, transform .3s var(--ease);
}
.cert::before { content: ""; position: absolute; right: -14px; top: -14px; width: 70px; height: 70px; color: var(--gold); opacity: .18; background: url("../img/rosette.svg") center/contain no-repeat; transition: opacity .3s, transform .6s var(--ease); }
.cert:hover { border-color: var(--gold); outline-color: var(--line); transform: translateY(-2px); }
.cert:hover::before { opacity: .45; transform: rotate(40deg); }
.cert .n { font: 600 1.15rem/1.2 var(--font-display); }
.cert .note { font-size: .84rem; color: var(--faint); }
.cert .price { font: 500 1.7rem/1 var(--font-display); color: var(--gold-ink); margin-top: 10px; }
.cert .go { font-size: .86rem; color: var(--muted); margin-top: 8px; display: inline-flex; align-items: center; gap: 6px; }
.cert:hover .go { color: var(--gold-ink); }
@media (max-width: 960px) { .order-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .order-grid { grid-template-columns: 1fr; } }

/* ---------- Panels / cards ---------- */
.panel { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius-l); padding: clamp(20px, 3vw, 32px); }
.panel-engraved { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); padding: clamp(22px, 3vw, 34px); }
.panel-engraved::after { content: ""; position: absolute; inset: 6px; border: 1px solid var(--line-2); border-radius: calc(var(--radius-l) - 5px); pointer-events: none; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 22px); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 2vw, 22px); }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2vw, 22px); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; } }

.spot { position: relative; isolation: isolate; }
.spot::before { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1; opacity: 0; transition: opacity .35s; background: radial-gradient(420px circle at var(--px, 50%) var(--py, 50%), rgba(217, 154, 18, .1), transparent 60%); }
.spot:hover::before { opacity: 1; }

.adv { display: flex; flex-direction: column; gap: 14px; }
.adv .icon { width: 44px; height: 44px; color: var(--gold-ink); }
.adv h3 { font: 600 1.5rem/1.15 var(--font-display); }
.adv ul { list-style: none; display: grid; gap: 8px; margin-bottom: 8px; }
.adv li { position: relative; padding-left: 20px; color: var(--muted); font-size: .96rem; }
.adv li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; border: 1px solid var(--gold); transform: rotate(45deg); }
.adv .btn { margin-top: auto; align-self: flex-start; }

/* Consultation list */
.consult { margin-top: clamp(32px, 5vw, 56px); display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 4vw, 56px); }
.consult h3 { font: 500 clamp(1.6rem, 2.6vw, 2.2rem)/1.15 var(--font-display); margin-bottom: 14px; }
.consult dl { margin: 0; display: grid; gap: 0; }
.consult dl > div { padding: 16px 0; border-top: 1px solid var(--line-2); display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 16px; }
.consult dl > div:last-child { border-bottom: 1px solid var(--line-2); }
.consult dt { font: 600 1.15rem/1.3 var(--font-display); }
.consult dt a { text-decoration: none; }
.consult dt a:hover { color: var(--gold-ink); }
.consult dd { margin: 0; color: var(--muted); font-size: .95rem; }
.consult .note { margin-top: 16px; font-size: .9rem; color: var(--faint); }
@media (max-width: 860px) { .consult { grid-template-columns: 1fr; } .consult dl > div { grid-template-columns: 1fr; gap: 4px; } }

/* Why / expertise */
.why { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.why .quote p { color: var(--muted); font-size: 1.04rem; }
.why .quote p:first-of-type::first-letter { float: left; font: 500 4.2rem/.8 var(--font-display); color: var(--gold-ink); margin: .08em .12em 0 0; }
:lang(zh) .why .quote p:first-of-type::first-letter { float: none; font: inherit; margin: 0; color: inherit; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: var(--radius-l); overflow: hidden; }
.tiles > div { padding: 24px 22px; border-right: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); background: var(--surface); }
.tiles > div:nth-child(2n) { border-right: 0; }
.tiles > div:nth-child(n+3) { border-bottom: 0; }
.tiles svg { width: 30px; height: 30px; color: var(--gold-ink); margin-bottom: 12px; }
.tiles h3 { font: 600 1.2rem/1.2 var(--font-display); margin-bottom: 6px; }
.tiles p { font-size: .92rem; color: var(--muted); }
@media (max-width: 900px) { .why { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .tiles { grid-template-columns: 1fr; } .tiles > div { border-right: 0; border-bottom: 1px solid var(--line-2) !important; } .tiles > div:last-child { border-bottom: 0 !important; } }

/* Service ledger */
.ledger { list-style: none; border-top: 1px solid var(--line); }
.ledger li { border-bottom: 1px solid var(--line); }
.ledger a {
  display: grid; grid-template-columns: minmax(180px, .9fr) minmax(0, 1.6fr) auto 22px; gap: clamp(14px, 3vw, 36px); align-items: center;
  padding: 22px 6px; text-decoration: none; position: relative; border-radius: 6px;
  transition: background-color .25s, padding .35s var(--ease);
}
.ledger a::before { content: ""; position: absolute; left: 0; top: -1px; height: 1px; width: 100%; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.ledger a:hover { background: color-mix(in srgb, var(--surface) 70%, transparent); padding-left: 16px; padding-right: 12px; }
.ledger a:hover::before { transform: scaleX(1); }
.ledger .nm { font: 600 1.35rem/1.2 var(--font-display); }
.ledger .ds { color: var(--muted); font-size: .95rem; }
.ledger .tg { font-size: .8rem; color: var(--faint); white-space: nowrap; border: 1px solid var(--line-2); border-radius: 999px; padding: 4px 10px; }
.ledger .ar { color: var(--gold-ink); width: 18px; transition: transform .3s var(--ease); }
.ledger a:hover .ar { transform: translateX(4px); }
@media (max-width: 860px) {
  .ledger a { grid-template-columns: 1fr 22px; gap: 6px 14px; }
  .ledger .nm { grid-column: 1; }
  .ledger .ds, .ledger .tg { grid-column: 1; }
  .ledger .tg { justify-self: start; }
  .ledger .ar { grid-row: 1; grid-column: 2; }
}

/* Testimonials */
.testi-wrap { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 22px); }
.testi { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 28px 26px 24px; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius-l); }
.testi::before { content: "\201C"; position: absolute; right: 18px; top: -6px; font: 400 6rem/1 var(--font-display); color: var(--gold); opacity: .22; }
.testi .stars { color: var(--gold-hi); letter-spacing: 3px; font-size: .9rem; }
:root[data-theme="light"] .testi .stars { color: var(--gold-lo); }
.testi blockquote { margin: 0; font: 400 1.18rem/1.5 var(--font-display); }
.testi figcaption { margin-top: auto; font-size: .9rem; color: var(--muted); }
.testi .orig { font-size: .74rem; color: var(--faint); }
@media (max-width: 960px) { .testi-wrap { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .testi-wrap { grid-template-columns: 1fr; } }

/* FAQ accordion */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 18px; align-items: center; padding: 20px 4px; font: 600 1.2rem/1.35 var(--font-display); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { position: relative; flex: none; width: 22px; height: 22px; border: 1px solid var(--line); border-radius: 50%; }
.faq summary .pm::before, .faq summary .pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 9px; height: 1px; background: var(--gold-ink); transform: translate(-50%, -50%); transition: transform .3s var(--ease); }
.faq summary .pm::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq details[open] summary .pm::after { transform: translate(-50%, -50%) rotate(0); }
.faq summary:hover { color: var(--gold-ink); }
.faq .ans { padding: 0 4px 22px; color: var(--muted); max-width: 72ch; }
.faq details[open] .ans { animation: ans .35s var(--ease); }
@keyframes ans { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* CTA band */
.cta-band { position: relative; overflow: hidden; text-align: center; padding: clamp(64px, 9vw, 110px) 0; background: radial-gradient(70% 90% at 50% 120%, rgba(217, 154, 18, .16), transparent 70%), var(--bg-2); border-top: 1px solid var(--line-2); }
.cta-band .bg-seal { position: absolute; width: 640px; height: 640px; left: 50%; top: 50%; transform: translate(-50%, -50%); color: var(--gold); opacity: .07; pointer-events: none; }
.cta-band .display { max-width: 820px; margin: 0 auto 16px; }
.cta-band p { max-width: 560px; margin: 0 auto 30px; color: var(--muted); }
.cta-band .btn-row { justify-content: center; }

/* Consultation popover */
.consult-pop { position: relative; display: inline-block; }
.consult-menu { position: absolute; left: 50%; top: calc(100% + 10px); transform: translateX(-50%); width: min(360px, calc(100vw - 32px)); z-index: 50; display: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); box-shadow: var(--shadow); overflow: hidden; text-align: left; }
.consult-menu.open { display: block; animation: popIn .22s var(--ease); }
.consult-menu.up { top: auto; bottom: calc(100% + 10px); }
.consult-menu .mh { padding: 12px 16px; font-size: .8rem; color: var(--faint); border-bottom: 1px solid var(--line-2); }
.consult-menu .mf { padding: 10px 16px; font-size: .78rem; color: var(--faint); border-top: 1px solid var(--line-2); background: var(--surface-2); }
.consult-opt { display: grid; grid-template-columns: 30px 1fr auto; gap: 12px; align-items: center; padding: 14px 16px; text-decoration: none; border-bottom: 1px solid var(--line-2); }
.consult-opt:last-of-type { border-bottom: 0; }
.consult-opt:hover, .consult-opt:focus-visible { background: var(--surface-2); }
.consult-opt svg { width: 22px; height: 22px; color: var(--gold-ink); }
.consult-opt b { display: block; font-size: .93rem; }
.consult-opt small { display: block; color: var(--faint); font-size: .8rem; }
.pill { display: inline-flex; align-items: center; font-size: .72rem; font-weight: 600; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line); color: var(--gold-ink); background: color-mix(in srgb, var(--gold) 8%, transparent); white-space: nowrap; }
.pill.free { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 40%, transparent); background: var(--ok-bg); }
.pill.mute { color: var(--muted); border-color: var(--line-2); background: transparent; }

/* Page hero (inner pages) */
.page-hero { position: relative; padding: clamp(28px, 5vw, 60px) 0 clamp(40px, 6vw, 72px); overflow: hidden; }
.page-hero .bg-lines { position: absolute; right: -180px; top: -140px; width: 560px; height: 560px; color: var(--gold); opacity: .08; pointer-events: none; }
.page-hero .display { font-size: clamp(2.2rem, 5vw, 4rem); max-width: 18ch; }
:lang(zh) .page-hero .display { max-width: 22ch; }
.page-hero .lede { margin-top: 20px; }
.page-hero .btn-row { margin-top: 28px; }
.crumbs { font-size: .86rem; color: var(--faint); margin-bottom: 18px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.crumbs li + li::before { content: "/"; margin-right: 8px; opacity: .5; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--gold-ink); }

/* Service detail */
.svc-top { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(280px, .6fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.svc-top .display { max-width: 22ch; }
.price-card { position: sticky; top: calc(var(--nav-h) + var(--bar-h) + 20px); }
.price-card .amt { font: 500 clamp(2.2rem, 4vw, 3rem)/1 var(--font-display); color: var(--gold-ink); }
.price-card .amt.word { font-size: 1.5rem; }
.price-card .pn { font-size: .9rem; color: var(--muted); margin: 12px 0 18px; }
.price-card .btn { width: 100%; }
.price-card .stack { display: grid; gap: 10px; }
.price-card .meta { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line-2); font-size: .84rem; color: var(--faint); }
@media (max-width: 900px) { .svc-top { grid-template-columns: 1fr; } .price-card { position: static; } }
.list-check { list-style: none; display: grid; gap: 12px; }
.list-check li { position: relative; padding-left: 30px; }
.list-check li::before { content: ""; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--line); background: color-mix(in srgb, var(--gold) 12%, transparent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d99a12' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center/11px no-repeat; }
.list-dot { list-style: none; display: grid; gap: 10px; color: var(--muted); }
.list-dot li { position: relative; padding-left: 20px; }
.list-dot li::before { content: ""; position: absolute; left: 2px; top: .7em; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.steps { list-style: none; counter-reset: s; display: grid; gap: 0; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 52px 1fr; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line-2); align-items: baseline; }
.steps li::before { content: counter(s, upper-roman); font: 500 1.4rem/1 var(--font-display); color: var(--gold-ink); }
.steps li:first-child { border-top: 0; }
.es-box { border-left: 2px solid var(--gold); padding: 22px 26px; background: var(--surface); border-radius: 0 var(--radius-m) var(--radius-m) 0; }
.es-box h2 { font: 600 1.45rem/1.2 var(--font-display); margin-bottom: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-size: .92rem; color: var(--text); background: transparent; cursor: pointer; }
.chip:hover { border-color: var(--gold); color: var(--gold-ink); }

/* Products / checkout */
.prod { display: flex; flex-direction: column; gap: 10px; }
.prod.featured { border-color: var(--line); box-shadow: inset 0 2px 0 var(--gold); }
.prod .top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.prod .cat { font-size: .8rem; color: var(--faint); }
.prod h3 { font: 600 1.45rem/1.15 var(--font-display); }
.prod .desc { color: var(--muted); font-size: .94rem; }
.prod .price { font: 500 2.6rem/1 var(--font-display); color: var(--gold-ink); margin: 6px 0; }
.prod ul { list-style: none; display: grid; gap: 6px; font-size: .9rem; color: var(--muted); margin-bottom: 6px; }
.prod ul li { padding-left: 18px; position: relative; }
.prod ul li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; border: 1px solid var(--gold); transform: rotate(45deg); }
.prod .deliv { font-size: .85rem; color: var(--ok); background: var(--ok-bg); border-radius: var(--radius-s); padding: 10px 12px; margin-top: auto; }
.prod .acts { display: grid; gap: 8px; margin-top: 6px; }

/* Quiz */
.quiz-q { padding: 18px 0; border-top: 1px solid var(--line-2); }
.quiz-q .qt { font-weight: 600; }
.quiz-q .qs { font-size: .88rem; color: var(--faint); margin: 2px 0 10px; }
.seg-btns { display: inline-flex; border: 1px solid var(--line); border-radius: var(--radius-s); overflow: hidden; }
.seg-btns button { min-height: 40px; padding: 6px 16px; border: 0; background: transparent; cursor: pointer; font-size: .9rem; border-right: 1px solid var(--line-2); color: var(--muted); }
.seg-btns button:last-child { border-right: 0; }
.seg-btns button[aria-pressed="true"] { background: var(--gold); color: var(--on-gold); font-weight: 600; }
.quiz-result { margin-top: 20px; padding: 22px; border-radius: var(--radius-m); border: 1px solid var(--line); background: var(--surface-2); animation: ans .4s var(--ease); }
.quiz-result .ttl { font: 600 1.5rem/1.2 var(--font-display); margin: 4px 0 8px; }
.quiz-result.err { border-color: color-mix(in srgb, var(--err) 50%, transparent); background: var(--err-bg); }

/* Foreign packages */
.alarm { display: grid; grid-template-columns: auto 1fr; gap: 26px; align-items: center; padding: 22px 26px; border: 1px solid color-mix(in srgb, var(--err) 35%, transparent); border-radius: var(--radius-m); background: var(--err-bg); margin: 28px 0; }
.alarm .fig { font: 500 2.6rem/1 var(--font-display); color: var(--err); }
.alarm .fig span { display: block; font: 400 .78rem/1.3 var(--font-body); color: var(--faint); margin-top: 6px; }
@media (max-width: 640px) { .alarm { grid-template-columns: 1fr; } }
.tier { position: relative; display: flex; flex-direction: column; gap: 10px; }
.tier .roman { font: 500 3.4rem/1 var(--font-display); color: var(--gold-ink); opacity: .7; }
.tier h3 { font: 600 1.5rem/1.15 var(--font-display); }
.tier .who { color: var(--muted); font-size: .94rem; }
.tier .price { font: 500 2.8rem/1 var(--font-display); color: var(--gold-ink); }
.tier .pn { font-size: .82rem; color: var(--faint); }
.tier .save { font-size: .86rem; color: var(--ok); }
.tier.top { border-color: var(--gold); }
.tier .flag { position: absolute; top: -12px; right: 20px; }
.compare-wrap { overflow-x: auto; border: 1px solid var(--line-2); border-radius: var(--radius-m); }
table.compare { width: 100%; border-collapse: collapse; min-width: 560px; font-size: .92rem; }
.compare th, .compare td { padding: 12px 14px; border-bottom: 1px solid var(--line-2); text-align: center; }
.compare th:first-child, .compare td:first-child { text-align: left; }
.compare thead th { font-weight: 600; background: var(--surface-2); position: sticky; top: 0; }
.compare thead th small { display: block; font-weight: 400; color: var(--gold-ink); }
.compare .yes { color: var(--gold-ink); }
.compare .no { color: var(--faint); }
.statebar { padding: 18px 22px; border-radius: var(--radius-m); background: var(--surface-2); color: var(--muted); font-size: .94rem; margin: 26px 0; }
.statebar b { color: var(--text); }
details.terms { border: 1px solid var(--line-2); border-radius: var(--radius-m); padding: 0 20px; margin-top: 26px; }
details.terms summary { cursor: pointer; padding: 16px 0; font-weight: 600; color: var(--gold-ink); }
details.terms .tb { padding-bottom: 18px; display: grid; gap: 12px; color: var(--muted); font-size: .93rem; }
details.terms .tb b { color: var(--text); }

/* About */
.about-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.portrait { position: relative; border-radius: var(--radius-l); overflow: hidden; border: 1px solid var(--line); }
.portrait img { width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: center 18%; }
.portrait figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 20px 18px; background: linear-gradient(transparent, rgba(4, 12, 8, .9)); color: #efe8d8; }
.portrait figcaption b { display: block; font: 600 1.3rem/1.2 var(--font-display); }
.portrait figcaption span { font-size: .86rem; opacity: .8; }
.cred-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.cred-box { display: grid; grid-template-columns: 42px 1fr; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line-2); }
.cred-box svg { width: 30px; height: 30px; color: var(--gold-ink); }
.cred-box b { display: block; margin-bottom: 4px; }
.cred-box p { font-size: .94rem; color: var(--muted); }
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius-m); margin-top: 26px; }
.stats-row > div { padding: 18px 10px; text-align: center; border-right: 1px solid var(--line-2); }
.stats-row > div:last-child { border-right: 0; }
.stats-row b { display: block; font: 500 2rem/1 var(--font-display); color: var(--gold-ink); }
.stats-row span { font-size: .78rem; color: var(--faint); }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } .portrait { max-width: 440px; } }
@media (max-width: 520px) { .stats-row { grid-template-columns: 1fr 1fr; } .stats-row > div:nth-child(2) { border-right: 0; } .stats-row > div:nth-child(-n+2) { border-bottom: 1px solid var(--line-2); } }
.team { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2vw, 22px); }
.member img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line); margin-bottom: 16px; }
.member h3 { font: 600 1.3rem/1.2 var(--font-display); }
.member .role { font-size: .86rem; color: var(--gold-ink); margin: 4px 0 10px; }
.member p { font-size: .92rem; color: var(--muted); }
@media (max-width: 1000px) { .team { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .team { grid-template-columns: 1fr; } }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.info-list { display: grid; gap: 0; margin-bottom: 20px; }
.info { display: grid; grid-template-columns: 40px 1fr; gap: 14px; padding: 16px 0; border-top: 1px solid var(--line-2); }
.info svg { width: 22px; height: 22px; color: var(--gold-ink); margin-top: 3px; }
.info .l { font-size: .82rem; color: var(--faint); }
.info .v { font-weight: 500; }
.info a.v { color: var(--gold-ink); text-decoration: none; }
.info .s { font-size: .86rem; color: var(--muted); }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

/* Forms */
.form { display: grid; gap: 18px; }
.fgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
.fgrid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fgrid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .fgrid, .fgrid.three { grid-template-columns: 1fr; } }
.field { display: grid; gap: 7px; }
.field label, .field .lbl { font-size: .9rem; font-weight: 500; }
.field .req { color: var(--gold-ink); margin-left: 2px; }
.field .hint { font-size: .82rem; color: var(--faint); }
.input, select.input, textarea.input {
  width: 100%; min-height: 48px; padding: 11px 14px; border-radius: var(--radius-s);
  border: 1px solid color-mix(in srgb, var(--text) 18%, transparent); background: var(--surface-2); color: var(--text);
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
textarea.input { min-height: 120px; resize: vertical; line-height: 1.5; }
select.input { appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d99a12' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; }
.input:hover { border-color: color-mix(in srgb, var(--text) 30%, transparent); }
.input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(217, 154, 18, .2); }
.field.invalid .input { border-color: var(--err); box-shadow: 0 0 0 3px var(--err-bg); }
.field .err { display: none; font-size: .82rem; color: var(--err); }
.field.invalid .err { display: block; }
.input::placeholder { color: var(--faint); opacity: .8; }
.check { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-size: .92rem; color: var(--muted); }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--gold); }
.check b { color: var(--text); }
.check.invalid { color: var(--err); }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.checks label { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 14px; border: 1px solid var(--line-2); border-radius: 999px; cursor: pointer; font-size: .9rem; }
.checks input { accent-color: var(--gold); }
.checks label:has(input:checked) { border-color: var(--gold); background: color-mix(in srgb, var(--gold) 10%, transparent); }
.form-status { display: none; border-radius: var(--radius-m); padding: 18px 20px; }
.form-status.show { display: block; animation: ans .4s var(--ease); }
.form-status.err { background: var(--err-bg); color: var(--err); border: 1px solid color-mix(in srgb, var(--err) 35%, transparent); }
.form-status.demo { background: color-mix(in srgb, var(--gold) 9%, var(--surface)); border: 1px dashed var(--gold); }
.form-status.demo b { display: block; font: 600 1.2rem/1.3 var(--font-display); margin-bottom: 6px; color: var(--gold-ink); }
.form-status.demo p { color: var(--muted); font-size: .93rem; margin-bottom: 12px; }
.fsec { padding: clamp(18px, 3vw, 28px); border: 1px solid var(--line-2); border-radius: var(--radius-l); background: var(--surface); }
.fsec-h { display: flex; gap: 14px; align-items: baseline; margin-bottom: 18px; }
.fsec-h .no { font: 500 1.6rem/1 var(--font-display); color: var(--gold-ink); }
.fsec-h h2, .fsec-h h3 { font: 600 1.3rem/1.2 var(--font-display); }
.fsec-h p { font-size: .88rem; color: var(--faint); margin-top: 2px; }
.choice-grid { display: grid; grid-template-columns: repeat(var(--c, 2), minmax(0, 1fr)); gap: 10px; }
@media (max-width: 640px) { .choice-grid { grid-template-columns: 1fr 1fr; } }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span { display: flex; align-items: center; min-height: 52px; padding: 10px 14px; border: 1px solid var(--line-2); border-radius: var(--radius-m); font-size: .92rem; transition: border-color .2s, background-color .2s; }
.choice input:checked + span { border-color: var(--gold); background: color-mix(in srgb, var(--gold) 10%, transparent); }
.choice input:focus-visible + span { outline: 2px solid var(--gold-hi); outline-offset: 2px; }
.range { width: 100%; accent-color: var(--gold); }
.range-labels { display: flex; justify-content: space-between; font-size: .82rem; color: var(--faint); }
.progress { height: 4px; border-radius: 4px; background: var(--line-2); overflow: hidden; }
.progress > span { display: block; height: 100%; width: 0; background: var(--metal); transition: width .5s var(--ease); }
.svc-select { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.svc-select label { position: relative; display: block; cursor: pointer; }
.svc-select input { position: absolute; opacity: 0; }
.svc-select .box { display: grid; gap: 4px; padding: 20px; border: 1px solid var(--line-2); border-radius: var(--radius-l); transition: border-color .2s, background-color .2s; }
.svc-select input:checked + .box { border-color: var(--gold); background: color-mix(in srgb, var(--gold) 8%, transparent); }
.svc-select input:focus-visible + .box { outline: 2px solid var(--gold-hi); outline-offset: 2px; }
.svc-select b { font: 600 1.25rem/1.2 var(--font-display); }
.svc-select .p { color: var(--gold-ink); font-size: .92rem; }
.svc-select small { color: var(--faint); }
@media (max-width: 560px) { .svc-select { grid-template-columns: 1fr; } }
.file-slot { position: relative; display: grid; gap: 4px; padding: 18px; border: 1px dashed var(--line); border-radius: var(--radius-m); cursor: pointer; }
.file-slot input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.file-slot:focus-within { outline: 2px solid var(--gold-hi); outline-offset: 2px; }
.file-slot b { font-size: .95rem; }
.file-slot small { color: var(--faint); }
.file-slot .sel { color: var(--ok); font-size: .85rem; }
.notice { padding: 16px 18px; border-radius: var(--radius-m); background: var(--surface-2); border: 1px solid var(--line-2); font-size: .9rem; color: var(--muted); }
.notice b { color: var(--text); }

/* Dialog */
dialog { border: 1px solid var(--line); border-radius: var(--radius-l); padding: 0; background: var(--surface); color: var(--text); box-shadow: var(--shadow); width: min(560px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); }
dialog.wide { width: min(760px, calc(100vw - 24px)); }
dialog::backdrop { background: rgba(3, 9, 6, .62); backdrop-filter: blur(4px); }
dialog[open] { animation: popIn .25s var(--ease); }
.dlg-h { display: flex; justify-content: space-between; align-items: start; gap: 14px; padding: 22px 24px 8px; }
.dlg-h h2 { font: 600 1.45rem/1.2 var(--font-display); }
.dlg-b { padding: 6px 24px 22px; display: grid; gap: 14px; overflow-y: auto; }
.dlg-f { padding: 14px 24px 22px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; border-top: 1px solid var(--line-2); }
.x { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); background: none; cursor: pointer; display: grid; place-items: center; flex: none; color: var(--muted); }
.x:hover { border-color: var(--gold); color: var(--text); }
.x svg { width: 18px; height: 18px; }
.code-pill { font-family: ui-monospace, Menlo, monospace; font-size: .95rem; padding: 10px 12px; border-radius: var(--radius-s); background: var(--surface-2); border: 1px solid var(--line-2); word-break: break-all; }

/* Footer */
.foot { background: var(--brand-gradient); border-top: 1px solid var(--line); padding: clamp(48px, 6vw, 80px) 0 28px; font-size: .92rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: clamp(24px, 4vw, 48px); }
.foot img.logo { height: 64px; width: auto; margin-bottom: 16px; }
.foot h2 { font: 600 1.15rem/1.2 var(--font-display); margin-bottom: 14px; color: var(--gold-ink); }
.foot ul { list-style: none; display: grid; gap: 8px; }
.foot a { text-decoration: none; color: var(--muted); }
.foot a:hover { color: var(--text); text-decoration: underline; }
.foot .sub-h { margin-top: 18px; font-size: .82rem; color: var(--faint); }
.foot-bottom { display: grid; gap: 10px; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line-2); color: var(--faint); font-size: .82rem; }
.foot-bottom .row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
@media (max-width: 960px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .foot-grid { grid-template-columns: 1fr; } }

/* Floating actions */
.fab { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 55; display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
.fab button, .fab a { width: 56px; height: 56px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow-s); transition: transform .25s var(--ease); }
.fab button:hover, .fab a:hover { transform: scale(1.06); }
.fab .fab-chat { background: var(--metal); color: var(--on-gold); }
.fab .fab-wa { background: var(--wa); color: var(--on-wa); width: 48px; height: 48px; }
.fab svg { width: 24px; height: 24px; }

/* Chat */
.chat { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: calc(max(16px, env(safe-area-inset-bottom)) + 72px); z-index: 85; width: min(400px, calc(100vw - 24px)); height: min(620px, calc(100dvh - 120px)); display: none; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); box-shadow: var(--shadow); overflow: hidden; }
.chat.open { display: flex; animation: chatIn .35s var(--ease); }
@keyframes chatIn { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
@media (max-width: 560px) { .chat { right: 0; left: 0; bottom: 0; width: 100%; height: min(86dvh, 680px); border-radius: var(--radius-l) var(--radius-l) 0 0; } }
.chat-h { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line-2); background: linear-gradient(180deg, var(--surface-2), var(--surface)); }
.chat-h .av { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--metal); color: var(--on-gold); flex: none; }
.chat-h .av svg { width: 22px; height: 22px; }
.chat-h b { display: block; font: 600 1.15rem/1.1 var(--font-display); }
.chat-h small { color: var(--faint); font-size: .76rem; }
.chat-h .x { margin-left: auto; }
.chat-disc { font-size: .76rem; color: var(--faint); padding: 8px 16px; background: var(--surface-2); border-bottom: 1px solid var(--line-2); }
.chat-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; scroll-behavior: smooth; }
.msg { max-width: 86%; padding: 11px 14px; border-radius: 14px; font-size: .93rem; line-height: 1.5; animation: ans .3s var(--ease); }
.msg.bot { background: var(--surface-2); border: 1px solid var(--line-2); border-bottom-left-radius: 4px; align-self: flex-start; }
.msg.me { background: var(--gold); color: var(--on-gold); border-bottom-right-radius: 4px; align-self: flex-end; }
.msg a { color: var(--gold-ink); font-weight: 600; }
.msg .mini { margin-top: 8px; display: grid; gap: 6px; padding: 10px; border-radius: 10px; background: var(--surface); border: 1px dashed var(--line); font-size: .85rem; }
.typing { display: inline-flex; gap: 4px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--faint); animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.chat-chips { display: flex; gap: 6px; overflow-x: auto; padding: 8px 12px; border-top: 1px solid var(--line-2); scrollbar-width: thin; }
.chat-chips button { flex: none; min-height: 34px; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--line); background: none; cursor: pointer; font-size: .84rem; color: var(--muted); }
.chat-chips button:hover { border-color: var(--gold); color: var(--text); }
.chat-f { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line-2); }
.chat-f input { flex: 1; min-height: 44px; border-radius: 999px; padding: 0 16px; border: 1px solid var(--line-2); background: var(--surface-2); }
.chat-f input:focus { outline: none; border-color: var(--gold); }
.chat-f button { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--gold); color: var(--on-gold); cursor: pointer; display: grid; place-items: center; }
.chat-f button svg { width: 18px; height: 18px; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* Standalone sub-brand pages (courses, mentorship, partner) */
.subbar { display: flex; justify-content: center; padding: 8px var(--gutter); font-size: .76rem; letter-spacing: .04em; color: var(--muted); border-bottom: 1px solid var(--line-2); text-align: center; }
.lvl { display: flex; flex-direction: column; gap: 10px; }
.lvl .tag { font-size: .84rem; color: var(--gold-ink); }
.lvl .price { font: 500 3rem/1 var(--font-display); color: var(--gold-ink); }
.lvl h3 { font: 600 1.45rem/1.2 var(--font-display); }
.lvl .dur { font-size: .86rem; color: var(--faint); }
.lvl.flag { border-color: var(--gold); }
.proof { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--line); border-radius: var(--radius-l); overflow: hidden; }
.proof > div { padding: 22px; border-right: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); background: var(--surface); }
.proof > div:nth-child(2n) { border-right: 0; }
.proof > div:nth-child(n+3) { border-bottom: 0; }
.proof b { display: block; font: 500 1.8rem/1 var(--font-display); color: var(--gold-ink); margin-bottom: 6px; }
.proof span { color: var(--muted); font-size: .92rem; }
.paths { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.path-btn { text-align: left; cursor: pointer; display: grid; gap: 10px; color: var(--text); }
.path-btn .k { font-size: .84rem; color: var(--gold-ink); }
.path-btn .t { font: 600 1.6rem/1.15 var(--font-display); }
.path-btn .d { color: var(--muted); font-size: .95rem; }
.path-btn .go { color: var(--gold-ink); font-weight: 600; font-size: .92rem; display: inline-flex; gap: 6px; align-items: center; }
.path-btn:hover { border-color: var(--gold); }
@media (max-width: 760px) { .paths { grid-template-columns: 1fr; } }
[hidden] { display: none !important; }

/* Portal + admin */
.app-shell { min-height: 100dvh; display: grid; grid-template-columns: 260px minmax(0, 1fr); padding-top: var(--bar-h); }
.app-side { position: sticky; top: var(--bar-h); height: calc(100dvh - var(--bar-h)); border-right: 1px solid var(--line-2); background: var(--bg-2); padding: 20px 14px; display: flex; flex-direction: column; gap: 4px; overflow-y: auto; }
.app-side .brand img { height: 40px; margin: 0 6px 18px; }
.app-side button.tab { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 8px 12px; border: 0; border-radius: var(--radius-s); background: none; cursor: pointer; color: var(--muted); text-align: left; font-size: .94rem; }
.app-side button.tab svg { width: 18px; height: 18px; }
.app-side button.tab:hover { background: var(--surface); color: var(--text); }
.app-side button.tab[aria-selected="true"] { background: var(--surface); color: var(--text); box-shadow: inset 2px 0 0 var(--gold); }
.app-side .side-foot { margin-top: auto; display: grid; gap: 8px; padding-top: 16px; }
.app-main { padding: clamp(18px, 3vw, 36px); display: grid; gap: 20px; align-content: start; min-width: 0; }
.app-top { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.app-top h1 { font: 600 clamp(1.6rem, 3vw, 2.2rem)/1.1 var(--font-display); }
.demo-flag { display: flex; gap: 10px; align-items: center; padding: 10px 14px; border: 1px dashed var(--gold); border-radius: var(--radius-m); font-size: .86rem; color: var(--muted); background: color-mix(in srgb, var(--gold) 6%, transparent); }
.demo-flag svg { width: 18px; height: 18px; color: var(--gold-ink); flex: none; }
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.stat { padding: 18px; border: 1px solid var(--line-2); border-radius: var(--radius-m); background: var(--surface); }
.stat b { display: block; font: 500 2.1rem/1 var(--font-display); color: var(--gold-ink); }
.stat span { font-size: .84rem; color: var(--muted); }
.stat small { display: block; font-size: .76rem; color: var(--faint); }
@media (max-width: 900px) { .stat-grid { grid-template-columns: 1fr 1fr; } }
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line-2); border-radius: var(--radius-m); }
table.tbl { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 640px; }
.tbl th, .tbl td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.tbl th { font-weight: 600; font-size: .8rem; color: var(--faint); background: var(--surface-2); }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover { background: var(--surface-2); }
.tbl .sub { font-size: .8rem; color: var(--faint); }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line-2); white-space: nowrap; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--warn); }
.status.ok::before { background: var(--ok); }
.status.info::before { background: var(--info); }
.bar { height: 6px; border-radius: 6px; background: var(--line-2); overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--metal); border-radius: 6px; transform-origin: left; animation: grow 1s var(--ease); }
@keyframes grow { from { transform: scaleX(0); } }
.row-item { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line-2); }
.row-item:first-child { border-top: 0; }
.tile-btns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tile-btns button { display: grid; gap: 4px; padding: 16px; text-align: left; border: 1px solid var(--line-2); border-radius: var(--radius-m); background: var(--surface-2); cursor: pointer; }
.tile-btns button:hover { border-color: var(--gold); }
.tile-btns svg { width: 22px; height: 22px; color: var(--gold-ink); margin-bottom: 4px; }
.tile-btns b { font-size: .95rem; }
.tile-btns small { color: var(--faint); font-size: .8rem; }
@media (max-width: 640px) { .tile-btns { grid-template-columns: 1fr; } }
.timeline { list-style: none; display: grid; gap: 0; }
.timeline li { position: relative; padding: 0 0 16px 22px; border-left: 1px solid var(--line); margin-left: 6px; }
.timeline li::before { content: ""; position: absolute; left: -5px; top: 4px; width: 9px; height: 9px; border-radius: 50%; background: var(--surface); border: 1px solid var(--gold); }
.timeline li.done::before { background: var(--gold); }
.timeline small { display: block; color: var(--faint); font-size: .78rem; }
.app-mobile-tabs { display: none; }
@media (max-width: 900px) {
  .app-shell { grid-template-columns: 1fr; }
  .app-side { display: none; }
  .app-mobile-tabs { display: flex; gap: 6px; overflow-x: auto; position: sticky; top: var(--bar-h); z-index: 20; background: var(--bg); padding: 10px 14px; border-bottom: 1px solid var(--line-2); }
  .app-mobile-tabs button { flex: none; min-height: 38px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: none; color: var(--muted); cursor: pointer; font-size: .88rem; }
  .app-mobile-tabs button[aria-selected="true"] { border-color: var(--gold); color: var(--text); background: var(--surface); }
}
.auth { min-height: 100dvh; display: grid; grid-template-columns: 1.05fr .95fr; padding-top: var(--bar-h); }
.auth-hero { position: relative; overflow: hidden; padding: clamp(28px, 5vw, 64px); background: var(--hero-glow), var(--bg-2); display: flex; flex-direction: column; justify-content: space-between; gap: 32px; border-right: 1px solid var(--line-2); }
.auth-hero .bg-lines { position: absolute; right: -200px; bottom: -200px; width: 620px; height: 620px; color: var(--gold); opacity: .1; }
.auth-hero img.logo { height: 56px; width: auto; }
.auth-hero h1 { font: 500 clamp(2rem, 4vw, 3.2rem)/1.08 var(--font-display); max-width: 16ch; margin: 18px 0 14px; }
:lang(zh) .auth-hero h1 { line-height: 1.3; }
.feat { display: grid; grid-template-columns: 34px 1fr; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line-2); }
.feat svg { width: 22px; height: 22px; color: var(--gold-ink); }
.feat b { display: block; }
.feat span { color: var(--muted); font-size: .9rem; }
.auth-form { padding: clamp(28px, 5vw, 64px); display: flex; flex-direction: column; justify-content: center; gap: 16px; max-width: 560px; width: 100%; margin: 0 auto; }
.auth-form h2 { font: 600 clamp(2rem, 4vw, 2.8rem)/1.1 var(--font-display); }
.otp { display: flex; gap: 8px; }
.otp input { width: 100%; max-width: 54px; height: 60px; text-align: center; font: 600 1.5rem/1 var(--font-display); border-radius: var(--radius-s); border: 1px solid color-mix(in srgb, var(--text) 18%, transparent); background: var(--surface-2); }
.otp input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(217, 154, 18, .2); }
.concept { border: 1px dashed var(--line); border-radius: var(--radius-l); padding: 20px; display: grid; gap: 12px; }
.concept .ci { display: grid; grid-template-columns: 30px 1fr; gap: 12px; }
.concept .ci svg { width: 22px; height: 22px; color: var(--gold-ink); }
.concept .ci b { display: block; font-size: .95rem; }
.concept .ci span { color: var(--muted); font-size: .86rem; }
@media (max-width: 900px) { .auth { grid-template-columns: 1fr; } .auth-hero { border-right: 0; border-bottom: 1px solid var(--line-2); } }

/* Theme switch transition helper */
html.theme-anim, html.theme-anim *, html.theme-anim *::before, html.theme-anim *::after { transition: background-color .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease), fill .4s, stroke .4s !important; }

/* View transitions between pages */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .35s; animation-timing-function: var(--ease); }
.site-head { view-transition-name: site-head; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .seal { transform: none !important; }
  .seal .ring svg path { stroke-dashoffset: 0 !important; }
  .seal .disc img { opacity: 1 !important; }
  .reveal { opacity: 1; transform: none; }
  @view-transition { navigation: none; }
}
html.motion-off *, html.motion-off *::before, html.motion-off *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
html.motion-off .seal { transform: none !important; }
html.motion-off .seal .ring svg path { stroke-dashoffset: 0 !important; }
html.motion-off .seal .disc img { opacity: 1 !important; }
html.motion-off .reveal { opacity: 1; transform: none; }

@media print {
  .preview-bar, .site-head, .fab, .chat, .foot, .cta-band { display: none !important; }
  main { padding-top: 0; }
  body { background: #fff; color: #000; }
}

/* icon sizing inside text links */
.chev { width: 14px; height: 14px; flex: none; display: inline-block; vertical-align: -2px; }
.cert .go svg, .chip svg { width: 14px; height: 14px; }
.tool { white-space: nowrap; }
.hero-badge { display: block; }
.hero-badge .dot { display: inline-block; vertical-align: middle; margin-right: 8px; }
@media (max-width: 520px) {
  .hero .btn-row > *, .page-hero .btn-row > *, .cta-band .btn-row > * { flex: 1 1 100%; }
  .hero .btn-row .consult-pop .btn, .cta-band .consult-pop .btn, .page-hero .consult-pop .btn { width: 100%; }
  .hero-copy .btn-row .btn { width: 100%; }
}
.compare-wrap, .tbl-wrap { position: relative; }
.app-shell > div, .app-main, .app-main > * { min-width: 0; }

/* Original DM Mono label roles (eyebrows, tags, credential labels) */
.pill, .status, .creds span, .stats-row span, .ann, .subbar, .ledger .tg, .crumbs, .cert .note, .prod .cat, .stat small, .preview-bar, .chat-h small, .consult-menu .mh, .consult-menu .mf, .lvl .tag, .path-btn .k, .tier .pn, .demo-flag { font-family: var(--font-mono); letter-spacing: .04em; }
.pill { font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; }
.creds span { text-transform: uppercase; letter-spacing: .1em; font-size: .66rem; }
.ann { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; }
:lang(zh) .kicker, :lang(zh) .pill, :lang(zh) .ann, :lang(zh) .creds span { letter-spacing: .04em; text-transform: none; }
/* Metallic, dimensional treatment of the original logo (file unchanged) */
.brand img, .foot img.logo, .drawer-top img, .auth-hero img.logo { filter: drop-shadow(0 1px 0 rgba(247, 228, 160, .25)) drop-shadow(0 6px 16px rgba(0, 0, 0, .35)); }
:root[data-theme="light"] .brand img, :root[data-theme="light"] .foot img.logo { filter: drop-shadow(0 4px 10px rgba(45, 30, 5, .18)); }
:root[data-theme="light"] .foot { color: #ede9df; }
:root[data-theme="light"] .foot a, :root[data-theme="light"] .foot .muted { color: #c8c4ba; }
:root[data-theme="light"] .foot h2 { color: #f0bf43; }
:root[data-theme="light"] .foot .fine, :root[data-theme="light"] .foot-bottom { color: #b9b4a6; }
:root[data-theme="light"] .foot .pill.mute { color: #ede9df; border-color: rgba(237,233,223,.25); }
.app-side { background: var(--band-grad), var(--bg-2); }
.auth-hero { background: var(--hero-glow), var(--bg-2); }
.brand img { max-width: none; flex: none; }
.nav-tools > *, .tool svg, .btn svg { flex: none; }
.nav { grid-template-columns: auto minmax(0, 1fr) auto; }
@media (max-width: 1500px) { .nav-order { display: none; } }
:root[data-theme="light"] .foot .sub-h { color: #b9b4a6; }
.foot .sub-h { color: var(--muted); }
body { overflow-wrap: break-word; }
@media (max-width: 900px) { .auth { grid-template-columns: minmax(0, 1fr); } .auth-hero { overflow: hidden; } }
@media (max-width: 640px) { .grid-3, .grid-2, .grid-4 { grid-template-columns: minmax(0, 1fr); } }
.auth-form > *, .concept > * { min-width: 0; }
.concept .ci { grid-template-columns: 30px minmax(0, 1fr); }
.concept .pill, .dlg-h .pill { white-space: normal; }
.page-hero { background: var(--hero-glow), var(--bg); }
