@font-face {
  font-family: "Xiaogou Sans";
  src: url("./assets/xiaogou-sans.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
}
:root {
  --blue: #1769ff;
  --blue-600: #0b5bf0;
  --blue-700: #0848c2;
  --blue-50: #eef4ff;
  --blue-100: #dbe7ff;
  --sky: #38b6ff;
  --ink: #0a1020;
  --ink-2: #364256;
  --ink-3: #5c687d;
  --ink-4: #7a869a;
  --rule: #0a102017;
  --rule-strong: #0a102029;
  --paper: #f4f6fa;
  --paper-2: #eaeef5;
  --white: #fff;
  --navy-950: #050b18;
  --navy-900: #0a1428;
  --navy-800: #12213f;
  --good: #1d8a52;
  --good-bg: #e3f5ea;
  --warn: #9a5a00;
  --warn-bg: #fff2d6;
  --bad: #c0392b;
  --bad-bg: #fde9e7;
  --body: "Xiaogou Sans", "Microsoft YaHei", "PingFang SC", sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, "Xiaogou Sans", monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --header: 72px;
  --gutter: 40px;
  --shadow-sm: 0 1px 2px #0a10200d, 0 6px 18px -10px #0a102026;
  --shadow-md: 0 2px 4px #0a10200a, 0 24px 48px -24px #1a3a7359;
  --shadow-xl: 0 2px 6px #0a10200d, 0 40px 90px -30px #1a3a7366, 0 80px 140px -60px #1769ff38;
  /* Later chapters sit on rounded slabs inset from the page edge. */
  --slab-inset: clamp(8px, 1.4vw, 20px);
  --slab-radius: clamp(18px, 2vw, 24px);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header) + 24px);
  scrollbar-gutter: stable;
  scrollbar-color: #b4c0d4 var(--paper);
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.75 var(--body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}
body.modal-open {
  overflow: hidden;
}
h1,
h2,
h3,
p,
ol,
ul,
dl,
dd,
figure {
  margin: 0;
}
ol,
ul {
  padding: 0;
  list-style: none;
}
h1,
h2,
h3 {
  font-weight: 750;
  text-wrap: balance;
}
p {
  text-wrap: pretty;
}
img,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input {
  font: inherit;
  caret-color: var(--blue);
}
button,
a {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  color: inherit;
  border: 0;
  background: none;
  padding: 0;
}
:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
  border-radius: 6px;
}
::selection {
  background: #1769ff2e;
}
.icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}
.svg-library {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.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-link {
  position: fixed;
  z-index: 100;
  top: -80px;
  left: 20px;
  padding: 12px 20px;
  background: var(--blue);
  color: white;
  border-radius: 10px;
}
.skip-link:focus {
  top: 12px;
}
.keep {
  white-space: nowrap;
}
.anchor-alias {
  position: absolute;
  top: -40px;
}
.container {
  width: min(1240px, calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}
.section {
  position: relative;
  padding-block: 144px;
}

/* Kickers: chapter numbers and labels */
.kicker,
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink-3);
}
.kicker-no {
  padding-right: 12px;
  border-right: 1px solid var(--rule-strong);
  color: var(--blue-600);
  font-weight: 700;
}
.kicker-tag {
  padding: 3px 9px;
  border-radius: 999px;
  background: #0a10200b;
  color: var(--ink-2);
  letter-spacing: 0.02em;
}
.kicker-mark {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--blue);
}
.kicker-sep {
  width: 1px;
  height: 12px;
  background: var(--rule-strong);
}
.kicker.on-dark {
  color: #a9b6cc;
}
.kicker.on-dark .kicker-no {
  color: #7fb1ff;
  border-color: #ffffff2e;
}
.section-head {
  max-width: 900px;
  margin-bottom: 48px;
}
.section-head h2,
.principles-head h2,
.faq-head h2,
.trial-copy h2,
.calc-copy h2,
.hud h2 {
  margin-top: 16px;
  font-size: clamp(30px, 3.2vw, 44px);
  font-weight: 750;
  line-height: 1.25;
  letter-spacing: -0.02em;
  font-feature-settings: "palt";
}
.section-head h2:first-child,
.principles-head h2:first-child,
.faq-head h2:first-child,
.trial-copy h2:first-child,
.calc-copy h2:first-child {
  margin-top: 0;
}
.section-lead {
  margin-top: 26px;
  max-width: 40em;
  font-size: 18px;
  line-height: 1.85;
  color: var(--ink-2);
}
.section-head-split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: start;
  column-gap: 64px;
  max-width: none;
}
.section-aside {
  padding-top: 6px;
}
.section-aside .section-lead {
  margin-top: 0;
  font-size: 16.5px;
}
/* Buttons and links */
.button {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 50px;
  padding: 13px 24px;
  border-radius: 12px;
  background: var(--blue);
  color: white;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  box-shadow: 0 1px 2px #0a102026;
}
.button .icon {
  width: 18px;
  height: 18px;
}
.button-lg {
  min-height: 58px;
  padding: 16px 28px;
  border-radius: 16px;
  font-size: 16px;
}
.button-small {
  min-height: 40px;
  padding: 8px 16px;
  border-radius: 11px;
  font-size: 14px;
  gap: 8px;
}
.button-small .icon {
  width: 16px;
  height: 16px;
}
.button-light {
  background: white;
  color: var(--blue-700);
  box-shadow:
    0 1px 2px #0a102033,
    0 18px 36px -16px #000000aa;
}
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-block: 6px;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  transition: background-size 300ms var(--ease);
}
.link-arrow .icon {
  width: 17px;
  height: 17px;
  transition: transform 300ms var(--ease);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: #f4f6faad;
  backdrop-filter: saturate(1.8) blur(18px);
  -webkit-backdrop-filter: saturate(1.8) blur(18px);
  border-bottom: 1px solid transparent;
  transition:
    border-color 200ms ease,
    background-color 200ms ease;
}
.site-header.is-scrolled {
  background: #f4f6fae6;
  border-bottom-color: var(--rule);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 750;
  letter-spacing: 0.02em;
}
.brand img {
  width: 32px;
  height: 32px;
}
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 14px;
  color: var(--ink-2);
}
.desktop-nav a {
  position: relative;
  padding: 8px 14px;
  border-radius: 999px;
  transition:
    color 160ms ease,
    background-color 160ms ease;
}
.desktop-nav a[aria-current] {
  color: var(--ink);
  font-weight: 600;
}
.desktop-nav a[aria-current]::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 1px;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: var(--blue);
}
.mobile-nav a[aria-current] {
  color: var(--blue-600);
}
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  padding: 12px;
}
.menu-toggle span {
  display: block;
  height: 1.6px;
  background: var(--ink);
  margin: 6px 0;
  transition: transform 200ms var(--ease);
}
.menu-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(3.8px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-3.8px) rotate(-45deg);
}
.mobile-nav {
  display: grid;
  padding-block: 4px 20px;
}
.mobile-nav[hidden] {
  display: none;
}
.mobile-nav a {
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 17px;
}
.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  pointer-events: none;
}
.scroll-progress i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--sky));
  transform-origin: left;
  transform: scaleX(var(--progress, 0));
}

/* Intro: hero + screening sequence. Static by default; scenes.js adds .is-cinematic. */
.intro {
  position: relative;
}
.hero {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: calc(100vh - var(--header));
  min-height: calc(100svh - var(--header));
  padding: 6vh 0 120px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(90deg, var(--paper) 0%, #f4f6fae0 42%, #f4f6fa00 72%);
}
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  align-items: end;
  gap: 56px;
}
.display {
  margin-top: 30px;
  font-size: clamp(60px, 8.6vw, 132px);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.045em;
  font-feature-settings: "palt";
}
.display .line {
  display: block;
  overflow: hidden;
  padding: 0 0.08em 0.05em 0;
  margin-bottom: -0.05em;
}
.display .line > span {
  display: inline-block;
  white-space: nowrap;
}
.display em {
  font-style: normal;
  color: var(--blue);
}
.strike {
  position: relative;
  color: var(--ink-4);
}
.strike-mark {
  position: absolute;
  left: -3%;
  top: 30%;
  width: 106%;
  height: 46%;
  overflow: visible;
  fill: none;
  stroke: var(--blue);
  stroke-width: 4.2;
  stroke-linecap: round;
}
.strike-mark path {
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}
.hero-lead {
  margin-top: 34px;
  max-width: 31em;
  font-size: 20px;
  line-height: 1.75;
  color: var(--ink-2);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 30px;
  margin-top: 40px;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-top: 22px;
  font-size: 13px;
  color: var(--ink-3);
}
.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.hero-meta span::before {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--good-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d8a52' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 10px no-repeat;
}
.prompt-card {
  align-self: end;
  margin-bottom: 18px;
  padding: 18px 18px 14px;
  border-radius: 22px;
  background: #ffffffeb;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow:
    0 0 0 1px var(--rule),
    0 30px 60px -30px #0a20505e;
}
.prompt-head {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}
.prompt-head img {
  width: 28px;
  height: 28px;
}
.prompt-state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  font-size: 12px;
  color: var(--ink-3);
}
.prompt-state i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2fb36c;
  box-shadow: 0 0 0 3px #2fb36c26;
}
.prompt-text {
  min-height: 5.1em;
  margin-top: 14px;
  font-size: 17px;
  line-height: 1.7;
}
.caret {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  margin-left: 2px;
  vertical-align: -0.18em;
  background: var(--blue);
  opacity: 0;
}
.prompt-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--rule);
}
.prompt-steps {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--ink-4);
}
.prompt-steps b {
  font-weight: 600;
  transition: color 300ms ease;
}
.prompt-steps b.is-lit {
  color: var(--blue-600);
}
.prompt-steps i {
  width: 10px;
  height: 1px;
  background: var(--rule-strong);
}
.prompt-send {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: var(--blue);
  color: white;
  box-shadow: 0 8px 16px -8px #1769ffcc;
}
.prompt-send .icon {
  width: 18px;
  height: 18px;
}
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  translate: -50% 0;
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: 0.06em;
}
.scroll-cue i {
  position: relative;
  width: 1px;
  height: 40px;
  background: var(--rule-strong);
  overflow: hidden;
}
.scroll-cue i::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 1px;
  height: 16px;
  background: var(--blue);
}
.intro-anchor {
  display: block;
  position: relative;
  top: -8px;
}
.intro-stage {
  position: relative;
  padding: 40px 0 112px;
}
.field {
  display: none;
}
.hud h2 {
  margin-top: 18px;
}
.hud-count {
  display: none;
}
.hud-progress {
  display: none;
}
.hud-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-top: 40px;
  counter-reset: step;
}
.hud-steps li {
  position: relative;
  display: grid;
  align-content: start;
  gap: 4px;
  padding: 18px 18px 20px;
  border-radius: 18px;
  background: white;
  box-shadow: 0 0 0 1px var(--rule);
  counter-increment: step;
}
.hud-steps li::before {
  content: "0" counter(step);
  font: 600 12px var(--mono);
  color: var(--blue-600);
}
.hud-steps b {
  font-size: 16px;
  font-weight: 700;
}
.hud-steps span {
  font-size: 13px;
  color: var(--ink-3);
}
.hud-steps em {
  margin-top: 8px;
  font: 700 26px/1.1 var(--body);
  font-style: normal;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.hud-steps li:last-child em {
  color: var(--good);
}
.step-dot {
  display: none;
}
.hud-skip {
  display: none;
}
.result {
  width: min(1240px, calc(100% - var(--gutter) * 2));
  margin: 56px auto 0;
}
.result-caption {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 18px;
  margin-top: 28px;
}
.result-caption h3 {
  font-size: 22px;
  letter-spacing: -0.01em;
}
.result-caption p {
  flex: 1 1 320px;
  font-size: 15px;
  color: var(--ink-3);
}
.demo-chip {
  padding: 4px 11px;
  border-radius: 999px;
  background: #0a10200b;
  box-shadow: inset 0 0 0 1px var(--rule);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-2);
  white-space: nowrap;
}

/* Cinematic mode: the stage pins while the tiles tell the story. */
.intro.is-cinematic .hero {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
}
.intro.is-cinematic .intro-anchor {
  position: absolute;
  top: var(--anchor-top, 100vh);
  top: var(--anchor-top, 100svh);
}
.intro.is-cinematic .intro-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  padding: 0;
  overflow: hidden;
}
.intro.is-cinematic .hud,
.intro.is-cinematic .result,
.intro.is-cinematic .app-toast,
.intro.is-cinematic .result-window [data-row] {
  /* Moved every frame by scenes.js: keep them on their own layers so they are rasterized once. */
  will-change: transform, opacity;
}
.intro.is-cinematic .field {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.intro.is-cinematic .hud {
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  top: calc(var(--header) + 5vh);
  top: calc(var(--header) + 5svh);
  opacity: 0;
  pointer-events: none;
  isolation: isolate;
}
.intro.is-cinematic .hud::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -80px;
  bottom: -80px;
  left: -100vw;
  right: calc(100% - 470px);
  background: linear-gradient(90deg, var(--paper) calc(100% - 110px), #f4f6fa00);
  pointer-events: none;
}
.intro.is-cinematic .hud > * {
  max-width: 380px;
}
.intro.is-cinematic .hud h2 {
  font-size: clamp(30px, 2.8vw, 42px);
}
.intro.is-cinematic .hud-count {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 26px;
}
.odometer {
  display: inline-flex;
  font-size: clamp(64px, 6vw, 92px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.odometer .digit {
  position: relative;
  display: inline-block;
  height: 1em;
  overflow: hidden;
  /* Width snaps: animating it re-laid out the page on every frame. The reel still rolls. */
  transition: opacity 400ms ease;
}
.odometer .digit-reel {
  display: flex;
  flex-direction: column;
  will-change: transform;
  transition: transform 700ms var(--ease);
}
.odometer .digit-reel span {
  height: 1em;
  line-height: 1;
}
.odometer.is-final {
  color: var(--good);
}
.hud-unit {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink-3);
}
.intro.is-cinematic .hud-steps {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  margin-top: 26px;
}
.intro.is-cinematic .hud-steps li {
  grid-template-columns: 22px minmax(0, 1fr) auto;
  column-gap: 12px;
  row-gap: 0;
  padding: 11px 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  border-top: 1px solid var(--rule);
  opacity: 0.42;
  transition: opacity 300ms ease;
}
.intro.is-cinematic .hud-steps li::before {
  display: none;
}
.intro.is-cinematic .hud-steps li.is-current,
.intro.is-cinematic .hud-steps li.is-done {
  opacity: 1;
}
.intro.is-cinematic .step-dot {
  display: grid;
  place-items: center;
  grid-column: 1;
  grid-row: 1 / span 2;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px var(--rule-strong);
  transition:
    background-color 300ms ease,
    box-shadow 300ms ease;
}
.intro.is-cinematic .is-current .step-dot {
  box-shadow:
    inset 0 0 0 5px var(--blue),
    0 0 0 5px #1769ff22;
}
.intro.is-cinematic .is-done .step-dot {
  background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 12px no-repeat;
  box-shadow: none;
}
.intro.is-cinematic .hud-steps b {
  grid-column: 2;
  grid-row: 1;
  font-size: 15px;
}
.intro.is-cinematic .hud-steps span {
  grid-column: 2;
  grid-row: 2;
  font-size: 12.5px;
}
.intro.is-cinematic .hud-steps em {
  grid-column: 3;
  grid-row: 1 / span 2;
  align-self: center;
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-3);
  opacity: 0;
  transform: translateX(-6px);
  transition:
    opacity 300ms ease,
    transform 300ms var(--ease);
}
.intro.is-cinematic .hud-steps .is-done em {
  opacity: 1;
  transform: none;
}
.intro.is-cinematic .hud-skip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  font-size: 13px;
  color: var(--ink-3);
}
.intro.is-cinematic .hud.is-visible .hud-skip {
  pointer-events: auto;
}
.intro.is-cinematic .hud-skip .icon {
  width: 15px;
  height: 15px;
}
.intro.is-cinematic .result {
  position: absolute;
  left: 0;
  right: 0;
  /* Centred in the space below the header, so the stage does not end in a tall empty band. */
  top: calc(var(--header) + 22px);
  bottom: 22px;
  display: flex;
  flex-direction: column;
  margin: 0 auto;
  width: min(1100px, calc(100% - var(--gutter) * 2));
  opacity: 0;
  transform-origin: 50% 40%;
}
.intro.is-cinematic .result-window {
  margin-top: auto;
}
.intro.is-cinematic .result-caption {
  margin-bottom: auto;
}
.intro.is-cinematic .result-window .app-body {
  height: clamp(360px, calc(100vh - var(--header) - 240px), 560px);
  height: clamp(360px, calc(100svh - var(--header) - 240px), 560px);
}
.intro.is-cinematic .result-caption {
  justify-content: center;
  text-align: center;
  margin-top: 22px;
}
.intro.is-cinematic .result-caption p {
  flex: 0 1 auto;
}

/* Features */
/* The pinned stage already leaves room below the result window, so the workbench starts close to it. */
.section.features {
  padding-top: 48px;
}
.modules {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 20px;
}
.module {
  --px: 50%;
  --py: 0%;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 30px 30px 24px;
  border-radius: 28px;
  background: white;
  box-shadow:
    0 0 0 1px var(--rule),
    var(--shadow-sm);
  overflow: hidden;
  transition:
    transform 400ms var(--ease),
    box-shadow 400ms var(--ease);
}
.module-a {
  grid-column: span 7;
}
.module-b {
  grid-column: span 5;
}
.module-c {
  grid-column: span 5;
}
.module-d {
  grid-column: span 7;
}
.module-head {
  display: flex;
  align-items: center;
  gap: 12px;
}
/* Flat icon tiles in the logo's blue. */
.module-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--blue);
  color: white;
}
.module-icon .icon {
  width: 24px;
  height: 24px;
  stroke-width: 1.8;
}
.module-icon-dog {
  overflow: hidden;
  background: none;
}
.module-icon-dog img {
  width: 100%;
  height: 100%;
}
.module-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-2);
}
.module h3 {
  margin-top: 20px;
  font-size: clamp(21px, 1.8vw, 25px);
  line-height: 1.3;
  letter-spacing: -0.02em;
}
.module > p {
  margin-top: 10px;
  max-width: 34em;
  font-size: 15.5px;
  color: var(--ink-3);
}
.module-note {
  order: 1;
  margin-top: 12px;
  font-size: 13px;
  color: var(--ink-4);
}
/* Smaller capabilities share one white panel; 1px gaps over a rule-coloured ground draw the dividers. */
.specs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 56px;
  border-radius: 24px;
  background: var(--rule);
  box-shadow:
    0 0 0 1px var(--rule),
    var(--shadow-sm);
  overflow: hidden;
}
.specs li {
  position: relative;
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 26px 26px 28px;
  background: white;
}
.principle-list li::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--rule-strong);
  transform-origin: left;
}
.specs .icon {
  box-sizing: content-box;
  width: 20px;
  height: 20px;
  margin-bottom: 10px;
  padding: 10px;
  border-radius: 12px;
  background: var(--blue-50);
  color: var(--blue-600);
}
.specs b {
  font-size: 16.5px;
  font-weight: 700;
}
.specs span {
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-3);
}

/* Calculator */
.calculator-section {
  position: relative;
  margin-inline: var(--slab-inset);
  padding-block: 144px;
  border-radius: var(--slab-radius);
  background: var(--navy-950);
  color: white;
  overflow: clip;
}
.calc-layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 500px);
  align-items: center;
  gap: 96px;
}
.calc-lead {
  margin-top: 24px;
  max-width: 32em;
  font-size: 17px;
  line-height: 1.85;
  color: #a9b6cc;
}
.calc-controls {
  margin-top: 44px;
  padding: 26px 28px;
  border-radius: 24px;
  background: #ffffff0a;
  box-shadow: inset 0 0 0 1px #ffffff17;
}
.cost-control + .cost-control {
  margin-top: 22px;
}
.cost-control label {
  display: flex;
  justify-content: space-between;
  font-size: 15px;
  color: #dbe5f5;
}
.cost-control output {
  font-weight: 650;
  color: #8fbcff;
  font-variant-numeric: tabular-nums;
}
input[type="range"] {
  --range-fill: 50%;
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  height: 28px;
  margin: 10px 0 0;
  background: transparent;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--blue) 0, var(--sky) var(--range-fill), #ffffff21 var(--range-fill));
}
input[type="range"]::-moz-range-track {
  height: 6px;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--blue) 0, var(--sky) var(--range-fill), #ffffff21 var(--range-fill));
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  margin-top: -8px;
  border-radius: 50%;
  background: white;
  box-shadow:
    0 0 0 5px #1769ff59,
    0 4px 10px #00000066;
  transition: box-shadow 160ms ease;
}
input[type="range"]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 50%;
  background: white;
  box-shadow:
    0 0 0 5px #1769ff59,
    0 4px 10px #00000066;
}
input[type="range"]:hover::-webkit-slider-thumb,
input[type="range"]:focus-visible::-webkit-slider-thumb {
  box-shadow:
    0 0 0 8px #1769ff66,
    0 4px 10px #00000066;
}
.range-limits {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #8693aa;
  font-variant-numeric: tabular-nums;
}
.calc-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid #ffffff17;
}
.fixed-cost {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-size: 14px;
  color: #c7d2e5;
}
.fixed-cost b {
  color: white;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}
.fixed-cost small {
  font-size: 12px;
  color: #8693aa;
}
.calculator-reset {
  padding: 8px 14px;
  border-radius: 10px;
  background: #ffffff10;
  box-shadow: inset 0 0 0 1px #ffffff21;
  font-size: 13px;
  color: #dbe5f5;
  transition: background-color 160ms ease;
}
.receipt-wrap {
  perspective: 1400px;
}
.receipt {
  position: relative;
  padding: 30px 32px 30px;
  border-radius: 8px 8px 0 0;
  background: #fbfaf7;
  color: var(--ink);
  box-shadow: 0 40px 80px -40px #000000b3;
  font-variant-numeric: tabular-nums;
}
.receipt::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 12px;
  background:
    linear-gradient(-45deg, transparent 6px, #fbfaf7 6.5px) 0 0 / 12px 12px repeat-x,
    linear-gradient(45deg, transparent 6px, #fbfaf7 6.5px) 0 0 / 12px 12px repeat-x;
}
.receipt-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 18px;
  border-bottom: 1px dashed #c3cad6;
}
.receipt-head img {
  width: 34px;
  height: 34px;
}
.receipt-head strong {
  display: block;
  font-size: 17px;
  font-weight: 750;
}
.receipt-head small {
  font-size: 12.5px;
  color: var(--ink-3);
}
.receipt-unit {
  margin-left: auto;
  font: 600 12px var(--mono);
  color: var(--ink-4);
}
.receipt-lines {
  padding: 8px 0 10px;
}
.receipt-lines div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 9px 0;
  font-size: 15px;
}
.receipt-lines dt {
  color: var(--ink-2);
}
.receipt-lines dd {
  font: 600 16px var(--mono);
}
.receipt-total {
  --result: var(--good);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 4px 16px;
  padding-top: 18px;
  border-top: 2px solid var(--ink);
}
.receipt-total.is-negative {
  --result: var(--bad);
}
.receipt-total.is-balanced {
  --result: var(--ink-3);
}
#profit-label {
  grid-column: 1 / -1;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
}
#profit-amount {
  font-size: clamp(52px, 5vw, 72px);
  font-weight: 750;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--result);
  font-variant-numeric: tabular-nums;
  transition: color 240ms ease;
}
#profit-amount small {
  margin-right: 4px;
  font-size: 0.32em;
  letter-spacing: 0;
  color: var(--ink-3);
}
.profit-margin {
  margin-bottom: 6px;
  padding: 4px 11px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--result) 12%, transparent);
  color: var(--result);
  font-size: 13px;
  font-weight: 650;
  white-space: nowrap;
}
.cost-breakdown {
  margin-top: 24px;
}
.breakdown-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12.5px;
  color: var(--ink-3);
}
.cost-bar {
  display: flex;
  gap: 3px;
  height: 12px;
  margin-top: 10px;
}
.cost-segment {
  flex: var(--share) 1 0;
  border-radius: 3px;
}
.cost-segment[hidden] {
  display: none;
}
.segment-purchase {
  background: var(--blue);
}
.segment-shipping {
  background: #74a7ff;
}
.segment-fees {
  background: #a3aec2;
}
.segment-profit {
  background: #2fb36c;
}
.cost-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: 10px;
  font-size: 12px;
  color: var(--ink-3);
}
.cost-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.cost-legend span[hidden] {
  display: none;
}
.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 2px;
}
.break-even {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dashed #c3cad6;
  font-size: 13.5px;
  color: var(--ink-2);
}
.break-even strong {
  font: 700 16px var(--mono);
}
.calculator-note {
  margin-top: 12px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--ink-3);
}

/* Principles */
.principles {
  margin: var(--slab-inset) var(--slab-inset) 0;
  border-radius: var(--slab-radius);
  background: white;
  box-shadow:
    0 0 0 1px var(--rule),
    var(--shadow-sm);
}
.principles-layout,
.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 96px;
  align-items: start;
}
.principles-head,
.faq-head {
  position: sticky;
  top: calc(var(--header) + 48px);
}
.principles-head > p:not(.kicker),
.faq-head > p:not(.kicker) {
  margin-top: 22px;
  font-size: 17px;
  color: var(--ink-3);
}
.principle-list {
  border-bottom: 1px solid var(--rule-strong);
}
/* Each boundary reads like a numbered note in a report: oversized outline numeral, then the rule. */
.principle-list li {
  position: relative;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  column-gap: 8px;
  padding: 34px 0 38px;
}
.principle-no {
  grid-row: span 2;
  align-self: start;
  padding-top: 3px;
  font: 600 15px var(--mono);
  color: var(--blue-600);
}
.principle-list h3 {
  font-size: 24px;
  letter-spacing: -0.015em;
}
.principle-list p {
  margin-top: 10px;
  max-width: 34em;
  font-size: 15.5px;
  line-height: 1.85;
  color: var(--ink-3);
}

/* FAQ */
.faq-head .link-arrow {
  margin-top: 26px;
  color: var(--blue-600);
}
.faq-help {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  max-width: 400px;
  margin-top: 40px;
  padding: 18px 20px;
  border-radius: 20px;
  background: white;
  box-shadow:
    0 0 0 1px var(--rule),
    var(--shadow-sm);
}
.faq-help img {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
}
.faq-help strong {
  display: block;
  font-size: 15px;
}
.faq-help p {
  margin-top: 2px;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--ink-3);
}
.faq-help .link-arrow {
  margin-top: 8px;
  font-size: 14px;
  color: var(--blue-600);
}
.faq-list {
  interpolate-size: allow-keywords;
}
/* The open answer becomes a white card; every row keeps the same inset so nothing shifts. */
.faq-list details {
  position: relative;
  border-radius: 18px;
  transition:
    background-color 300ms ease,
    box-shadow 300ms ease;
}
.faq-list details + details::before {
  content: "";
  position: absolute;
  top: 0;
  left: 20px;
  right: 20px;
  height: 1px;
  background: var(--rule-strong);
  transition: opacity 300ms ease;
}
.faq-list details[open] {
  background: white;
  box-shadow:
    0 0 0 1px var(--rule),
    var(--shadow-md);
}
.faq-list details[open]::before,
.faq-list details[open] + details::before {
  opacity: 0;
}
.faq-list summary {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 26px 20px;
  font-size: 18px;
  font-weight: 650;
  cursor: pointer;
  list-style: none;
  border-radius: 18px;
  transition: color 200ms ease;
}
.faq-list summary::-webkit-details-marker {
  display: none;
}
.faq-no {
  font: 600 13px var(--mono);
  color: var(--ink-4);
}
.faq-list summary .icon {
  box-sizing: content-box;
  width: 16px;
  height: 16px;
  padding: 7px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px var(--rule-strong);
  color: var(--ink-2);
}
.faq-list details[open] summary {
  color: var(--blue-700);
}
.faq-list details[open] .faq-no {
  color: var(--blue-600);
}
.faq-list details[open] summary .icon {
  transform: rotate(45deg);
  background: var(--blue);
  box-shadow: none;
  color: white;
}
.faq-list details p {
  padding: 0 76px 30px 76px;
  font-size: 15.5px;
  line-height: 1.9;
  color: var(--ink-3);
}

/* Trial */
.trial {
  margin: 0 var(--slab-inset) var(--slab-inset);
  border-radius: var(--slab-radius);
  background: var(--paper-2);
  overflow: clip;
}
.trial-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 520px);
  align-items: center;
  gap: 80px;
}
.trial-lead {
  margin-top: 24px;
  max-width: 30em;
  font-size: 17px;
  line-height: 1.85;
  color: var(--ink-2);
}
.trial-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 40px;
  counter-reset: trial;
}
.trial-steps li {
  position: relative;
  display: grid;
  gap: 2px;
  padding-top: 16px;
  border-top: 2px solid var(--rule-strong);
  counter-increment: trial;
}
.trial-steps li::after {
  content: "";
  position: absolute;
  top: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--blue);
}
.trial-steps li::before {
  content: "0" counter(trial);
  font: 700 12px var(--mono);
  color: var(--blue-600);
}
.trial-steps b {
  margin-top: 6px;
  font-size: 17px;
}
.trial-steps span {
  font-size: 13.5px;
  color: var(--ink-3);
}
.trial-action {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
  margin-top: 44px;
}
.trial-action > span {
  font-size: 13px;
  color: var(--ink-3);
}
.ticket-wrap {
  position: relative;
  padding: 20px 0;
}
.ticket {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px;
  border-radius: 26px;
  background: var(--blue);
  color: white;
  box-shadow: 0 30px 60px -36px #0a2f80b3;
  -webkit-mask:
    radial-gradient(circle at calc(100% - 96px) 0, transparent 15px, black 15.5px) top / 100% 51% no-repeat,
    radial-gradient(circle at calc(100% - 96px) 100%, transparent 15px, black 15.5px) bottom / 100% 51% no-repeat;
  mask:
    radial-gradient(circle at calc(100% - 96px) 0, transparent 15px, black 15.5px) top / 100% 51% no-repeat,
    radial-gradient(circle at calc(100% - 96px) 100%, transparent 15px, black 15.5px) bottom / 100% 51% no-repeat;
}
.ticket-main {
  padding: 32px 30px 30px 34px;
}
.ticket-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #d8e7ff;
}
.ticket-kicker img {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: white;
}
.ticket-big {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  margin-top: 18px;
}
.ticket-big b {
  font-size: 128px;
  font-weight: 800;
  line-height: 0.82;
  letter-spacing: -0.06em;
}
.ticket-big span {
  padding-bottom: 4px;
  font-size: 18px;
  font-weight: 650;
  line-height: 1.35;
}
.ticket-list {
  display: grid;
  gap: 8px;
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid #ffffff38;
}
.ticket-list div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-size: 14px;
}
.ticket-list dt {
  color: #cfe2ff;
}
.ticket-list dd {
  font-weight: 700;
  text-align: right;
}
.ticket-list dd small {
  display: block;
  font-size: 11.5px;
  font-weight: 500;
  color: #cfe2ff;
}
.ticket-note {
  margin-top: 18px;
  font-size: 12.5px;
  color: #d8e7ff;
}
.ticket-stub {
  display: grid;
  place-items: center;
  border-left: 2px dashed #ffffff5c;
}
.ticket-stub span {
  writing-mode: vertical-rl;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: #eaf2ff;
}
/* Footer */
.site-footer {
  position: relative;
  margin: 0 var(--slab-inset) var(--slab-inset);
  padding-bottom: 36px;
  border-radius: var(--slab-radius);
  background: var(--navy-950);
  color: #a9b6cc;
  overflow: clip;
}
.partner-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 72px 0;
  border-bottom: 1px solid #ffffff14;
}
.partner-band-copy {
  display: grid;
  gap: 6px;
}
.partner-band small {
  font: 600 13px var(--mono);
  letter-spacing: 0.08em;
  color: #7fb1ff;
}
.partner-band strong {
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 750;
  letter-spacing: -0.01em;
  color: white;
  font-feature-settings: "palt";
}
.partner-band em {
  font-style: normal;
  font-size: 15px;
  color: #8693aa;
}
.partner-band > i {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: white;
  color: var(--ink);
  transition:
    transform 400ms var(--ease),
    background-color 300ms ease,
    color 300ms ease;
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  padding: 56px 0 24px;
}
.footer-brand .brand {
  color: white;
}
.footer-brand p {
  margin-top: 14px;
  font-size: 14px;
  color: #8693aa;
}
.footer-links {
  display: flex;
  gap: 88px;
}
.footer-links div {
  display: grid;
  align-content: start;
  gap: 10px;
  font-size: 14px;
}
.footer-links strong {
  margin-bottom: 4px;
  font-size: 13px;
  font-weight: 650;
  color: white;
}
.footer-links a {
  transition: color 160ms ease;
}
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 24px;
  border-top: 1px solid #ffffff14;
  font-size: 13px;
  color: #8693aa;
}
.footer-beian {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
}
.footer-beian a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.footer-bottom .link-arrow {
  font-size: 13px;
  color: #8fbcff;
}

/* Dialog */
.contact-dialog {
  position: fixed;
  padding: 32px 34px 26px;
  border: 0;
  border-radius: 24px;
  width: 440px;
  max-width: calc(100vw - 28px);
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  text-align: center;
  color: var(--ink);
  background: white;
  box-shadow: 0 40px 100px -30px #0b1a3a80;
}
.contact-dialog::backdrop {
  background: #050b18b3;
  backdrop-filter: blur(6px);
}
.dialog-close {
  position: absolute;
  right: 14px;
  top: 14px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink-2);
}
.dialog-logo {
  margin: 0 auto 14px;
  width: 46px;
  height: 46px;
}
.contact-dialog h2 {
  font-size: 23px;
}
.contact-dialog > p {
  margin-top: 10px;
  font-size: 14px;
  color: var(--ink-3);
  line-height: 1.7;
}
.contact-dialog .contact-plan {
  color: var(--blue-700);
  background: var(--blue-50);
  padding: 10px;
  border-radius: 10px;
  margin-block: 14px;
  font-size: 13px;
  font-weight: 600;
}
.qr-box {
  display: grid;
  place-items: center;
  min-height: 245px;
  margin: 16px auto 0;
  max-width: 245px;
}
.qr-box > img {
  width: 245px;
  height: 245px;
  background: white;
  object-fit: contain;
}
.qr-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 245px;
  background: var(--paper);
  border-radius: 14px;
  padding: 20px;
  font-size: 13px;
}
.qr-placeholder[hidden] {
  display: none;
}
.qr-placeholder .icon {
  width: 34px;
  height: 34px;
  color: var(--blue);
}
.qr-placeholder span {
  color: var(--ink-3);
}
.save-qr {
  display: inline-flex;
  margin-top: 12px;
  min-height: 38px;
  align-items: center;
  color: var(--blue-600);
  font-size: 13px;
  text-decoration: underline;
}
.save-qr[hidden],
.wechat-id-row[hidden],
.trial-instructions[hidden] {
  display: none;
}
.wechat-id-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 12px;
  font-size: 13px;
}
.wechat-id-row button {
  background: var(--blue-50);
  color: var(--blue-700);
  border-radius: 8px;
  padding: 6px 10px;
}
.trial-instructions {
  margin-top: 13px;
  padding-top: 13px;
  border-top: 1px solid var(--rule);
  font-size: 13px;
}
.trial-instructions small {
  display: block;
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 5px;
}
.contact-dialog .dialog-footnote {
  font-size: 12px;
}
.contact-dialog .contact-feedback:empty {
  display: none;
}
.noscript-notice {
  padding: 18px;
  text-align: center;
  font-size: 14px;
}
.noscript-notice a {
  text-decoration: underline;
}
.mobile-trial {
  position: fixed;
  bottom: 0;
  inset-inline: 0;
  z-index: 25;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px calc(12px + env(safe-area-inset-bottom));
  background: #ffffffeb;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 -8px 30px -18px #19345c66;
}
.mobile-trial[hidden] {
  display: none;
}
.mobile-trial > div {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.mobile-trial strong {
  font-size: 15px;
  font-weight: 650;
}
.mobile-trial span {
  font-size: 12px;
  color: var(--ink-3);
}
.mobile-trial .button {
  min-height: 44px;
  font-size: 14px;
  padding: 10px 16px;
  gap: 10px;
}

/* Pointer refinements */
@media (hover: hover) and (pointer: fine) {
  .button:hover {
    background: var(--blue-600);
  }
  .button-light:hover {
    box-shadow:
      0 2px 4px #0a102033,
      0 24px 44px -16px #000000cc;
  }
  .link-arrow:hover {
    background-size: 100% 1px;
  }
  .link-arrow:hover .icon {
    transform: translate(3px, 0);
  }
  .link-arrow[href="#workflow"]:hover .icon,
  .hud-skip:hover .icon {
    transform: translate(0, 3px);
  }
  .desktop-nav a:hover {
    color: var(--ink);
    background: #0a10200a;
  }
  .module:hover {
    transform: translateY(-4px);
    box-shadow:
      0 0 0 1px #c9d6ee,
      var(--shadow-md);
  }
  .module:hover::before {
    opacity: 1;
  }
  .calculator-reset:hover {
    background: #ffffff1f;
  }
  .faq-list summary:hover {
    color: var(--blue-700);
  }
  .faq-list details:not([open]):hover {
    background: #0a102007;
  }
  .partner-band:hover > i {
    transform: rotate(-45deg);
    background: var(--blue);
    color: white;
  }
  .footer-links a:hover {
    color: white;
  }
  .dialog-close:hover {
    background: var(--blue-50);
    color: var(--blue-600);
  }
}

/* Responsive */
@media (max-width: 1199px) {
  :root {
    --gutter: 32px;
  }
  .hero-inner {
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 40px;
  }
  .calc-layout,
  .trial-layout {
    gap: 64px;
  }
  .principles-layout,
  .faq-layout {
    gap: 64px;
  }
}
@media (max-width: 1023px) {
  .header-trial {
    display: none;
  }
  .section,
  .calculator-section {
    padding-block: 120px;
  }
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }
  .prompt-card {
    max-width: 520px;
    margin-bottom: 0;
  }
  .hero::before {
    background: linear-gradient(180deg, #f4f6faf2 0%, #f4f6fad9 60%, #f4f6fa66 100%);
  }
  .hud-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .module-a,
  .module-b,
  .module-c,
  .module-d {
    grid-column: span 12;
  }
  .specs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .calc-layout,
  .trial-layout,
  .principles-layout,
  .faq-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .principles-head,
  .faq-head {
    position: static;
  }
  .section-head-split {
    grid-template-columns: minmax(0, 1fr);
  }
  .section-aside {
    margin-top: 26px;
    padding-bottom: 0;
  }
  .faq-help {
    margin-top: 28px;
  }
  .receipt-wrap {
    max-width: 520px;
  }
  .ticket-wrap {
    max-width: 520px;
  }
  .intro.is-cinematic .hud > * {
    max-width: none;
  }
  .intro.is-cinematic .hud {
    top: calc(var(--header) + 14px);
  }
  .intro.is-cinematic .hud::before {
    top: -100px;
    bottom: -18px;
    left: -100vw;
    right: -100vw;
    background: linear-gradient(180deg, var(--paper) calc(100% - 26px), #f4f6fa00);
  }
  .intro.is-cinematic .hud .kicker {
    font-size: 12px;
  }
  .intro.is-cinematic .hud h2 {
    margin-top: 10px;
    font-size: 24px;
  }
  .intro.is-cinematic .hud-count {
    margin-top: 10px;
  }
  .intro.is-cinematic .odometer {
    font-size: 56px;
  }
  .intro.is-cinematic .hud-progress {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
    margin-top: 14px;
  }
  .hud-progress i {
    height: 3px;
    border-radius: 3px;
    background: var(--rule-strong);
    transition: background-color 300ms ease;
  }
  .hud-progress i.is-done,
  .hud-progress i.is-current {
    background: var(--blue);
  }
  .intro.is-cinematic .hud-steps {
    margin-top: 8px;
  }
  .intro.is-cinematic .hud-steps li {
    display: none;
    border-top: 0;
    padding: 4px 0 0;
  }
  .intro.is-cinematic .hud-steps li.is-current {
    display: grid;
  }
  .intro.is-cinematic .hud-steps em,
  .intro.is-cinematic .hud-skip {
    display: none;
  }
}
@media (max-width: 760px) {
  :root {
    --header: 64px;
    --gutter: 18px;
  }
  body {
    font-size: 15px;
  }
  .section,
  .calculator-section {
    padding-block: 96px;
  }
  .desktop-nav {
    display: none;
  }
  .menu-toggle {
    display: block;
  }
  .brand {
    font-size: 16px;
  }
  .hero {
    padding: 36px 0 110px;
  }
  .display {
    margin-top: 22px;
    font-size: min(17.5vw, 76px);
    line-height: 1.08;
  }
  .hero-kicker {
    font-size: 11.5px;
    gap: 8px;
  }
  .hero-lead {
    margin-top: 24px;
    font-size: 16.5px;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    margin-top: 30px;
  }
  .hero-actions .link-arrow {
    justify-content: center;
  }
  .hero-meta {
    font-size: 12px;
    gap: 6px 12px;
  }
  .prompt-text {
    min-height: 0;
    font-size: 15.5px;
  }
  .scroll-cue {
    display: none;
  }
  .section-head {
    margin-bottom: 48px;
  }
  .section-head h2,
  .principles-head h2,
  .faq-head h2,
  .trial-copy h2,
  .calc-copy h2 {
    font-size: min(7.6vw, 30px);
  }
  .section-lead {
    font-size: 16px;
  }
  .hud-steps {
    grid-template-columns: minmax(0, 1fr);
  }
  .module {
    padding: 24px 20px 20px;
    border-radius: 24px;
  }
  .specs {
    grid-template-columns: minmax(0, 1fr);
    margin-top: 40px;
    border-radius: 20px;
  }
  .specs li {
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 14px;
    padding: 20px;
  }
  .specs .icon {
    grid-row: span 2;
    margin-bottom: 0;
  }
  .calc-controls {
    padding: 20px;
  }
  .receipt {
    padding: 24px 22px;
    transform: none;
  }
  .principle-list li {
    grid-template-columns: 40px minmax(0, 1fr);
    padding: 26px 0 30px;
  }
  .principle-list h3 {
    font-size: 20px;
  }
  .principle-list p {
    font-size: 14.5px;
  }
  .faq-list details {
    border-radius: 14px;
  }
  .faq-list details + details::before {
    left: 14px;
    right: 14px;
  }
  .faq-list summary {
    grid-template-columns: 30px minmax(0, 1fr) auto;
    padding: 20px 14px;
    font-size: 16px;
    border-radius: 14px;
  }
  .faq-list details p {
    padding: 0 14px 24px 56px;
    font-size: 14.5px;
  }
  .trial-steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }
  .trial-action .button {
    width: 100%;
  }
  .ticket-wrap {
    padding: 24px 0 40px;
  }
  .ticket {
    grid-template-columns: minmax(0, 1fr) 64px;
    -webkit-mask:
      radial-gradient(circle at calc(100% - 64px) 0, transparent 13px, black 13.5px) top / 100% 51% no-repeat,
      radial-gradient(circle at calc(100% - 64px) 100%, transparent 13px, black 13.5px) bottom / 100% 51% no-repeat;
    mask:
      radial-gradient(circle at calc(100% - 64px) 0, transparent 13px, black 13.5px) top / 100% 51% no-repeat,
      radial-gradient(circle at calc(100% - 64px) 100%, transparent 13px, black 13.5px) bottom / 100% 51% no-repeat;
  }
  .ticket-main {
    padding: 26px 20px 24px 24px;
  }
  .ticket-big b {
    font-size: 96px;
  }
  .ticket-wrap {
    padding-bottom: 56px;
  }
  .partner-band {
    padding: 56px 0;
  }
  .partner-band > i {
    width: 52px;
    height: 52px;
  }
  .footer-grid {
    flex-direction: column;
    padding-top: 40px;
  }
  .footer-links {
    gap: 56px;
  }
  .footer-bottom {
    flex-wrap: wrap;
    padding-bottom: 72px;
  }
  .intro.is-cinematic .result {
    top: calc(var(--header) + 12px);
  }
  .intro.is-cinematic .result-window .app-body {
    height: clamp(300px, calc(100vh - var(--header) - 250px), 470px);
    height: clamp(300px, calc(100svh - var(--header) - 250px), 470px);
  }
  .intro.is-cinematic .result-caption {
    margin-top: 16px;
    gap: 6px 12px;
  }
  .intro.is-cinematic .result-caption h3 {
    font-size: 19px;
  }
  .intro.is-cinematic .result-caption p {
    font-size: 13.5px;
  }
}
@media (max-width: 359px) {
  :root {
    --gutter: 14px;
  }
  .display {
    font-size: 17vw;
  }
  .hero-kicker .kicker-sep,
  .hero-kicker .kicker-alt {
    display: none;
  }
}

/* Footer: four link columns and the operator line required for payment review. */
.footer-links {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 24px 64px;
}
/* Operator details sit under the filing numbers in one quiet line (still published on every
   page, as Alipay checks it). #6e7a90 is the faintest grey that keeps 4.5:1 on navy-950. */
@media (min-width: 761px) and (max-width: 1199px) {
  /* Too narrow for one line: wrap whole items and space them, so no line starts with a dot. */
  .footer-bottom .footer-company {
    gap: 2px 20px;
  }
  .footer-bottom .footer-company span + span::before {
    content: none;
  }
}
@media (min-width: 761px) {
  /* Row 1 keeps © | filing numbers | back to top; row 2 is the operator line, full width. */
  .footer-bottom {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    row-gap: 10px;
  }
  .footer-bottom .link-arrow {
    justify-self: end;
  }
  .footer-legal {
    display: contents;
  }
  .footer-company {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}
.footer-company {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 12px;
  line-height: 1.6;
  color: #6e7a90;
}
.footer-company span {
  white-space: nowrap;
}
.footer-company span + span::before {
  content: "·";
  margin: 0 8px;
}
.footer-company a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: #6e7a9066;
  text-underline-offset: 2px;
}
@media (max-width: 1023px) {
  .footer-links {
    grid-template-columns: repeat(2, auto);
    justify-content: start;
  }
}
@media (max-width: 760px) {
  .footer-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 24px;
    width: 100%;
  }
  .footer-legal {
    display: grid;
    gap: 6px;
  }
  .footer-company {
    justify-content: start;
    flex-direction: column;
    gap: 2px;
  }
  .footer-company span + span::before {
    content: none;
  }
}
.faq-list details p a {
  color: var(--blue-600);
  font-weight: 600;
}
