/* JustFlow V4. 数值以 DESIGN.md 为准。 */

@font-face {
  font-family: "JustFlow Latin";
  src: url("fonts/JustFlowLatin.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "JustFlow Text";
  src: url("fonts/JustFlowText-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "JustFlow Text";
  src: url("fonts/JustFlowText-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "JustFlow Text";
  src: url("fonts/JustFlowText-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "JustFlow Text";
  src: url("fonts/JustFlowText-Heavy.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --color-primary: #9fe870;
  --color-on-primary: #0e0f0c;
  --color-primary-deep: #8ed85f;
  --color-primary-pale: #e2f6d5;
  --color-canvas: #ffffff;
  --color-canvas-soft: #e8ebe6;
  --color-ink: #0e0f0c;
  --color-ink-deep: #163300;
  --color-line: rgba(22, 51, 0, 0.14);
  --font-sans: "JustFlow Latin", "JustFlow Text", ui-sans-serif, system-ui, sans-serif;
  --shadow-card: 0 12px 36px rgba(22, 51, 0, 0.1), 0 3px 10px rgba(22, 51, 0, 0.04);
  --shadow-lift: 0 22px 48px rgba(22, 51, 0, 0.14), 0 8px 18px rgba(22, 51, 0, 0.06);
  --radius-card: 24px;
  --radius-pill: 999px;
  --header-size: 4rem;
  --container: 1320px;
}

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

html {
  scroll-padding-top: var(--header-size);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--color-ink-deep);
  background: var(--color-canvas-soft);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  color: var(--color-ink);
  font-weight: 800;
  letter-spacing: 0;
  text-wrap: balance;
}

h1 {
  font-size: clamp(44px, 6vw, 84px);
  line-height: 1.12;
}

h2 {
  font-size: clamp(36px, 4.6vw, 60px);
  line-height: 1.14;
}

h3 {
  font-size: clamp(24px, 2vw, 30px);
  font-weight: 700;
  line-height: 1.3;
}

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

button, a {
  font: inherit;
}

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

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

::selection {
  background: var(--color-primary);
  color: var(--color-on-primary);
}

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

.skip-link {
  position: absolute;
  left: 16px;
  top: 12px;
  z-index: 80;
  transform: translateY(-160%);
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  background: var(--color-primary);
  color: var(--color-on-primary);
  font-weight: 700;
}

.skip-link:focus {
  transform: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.container {
  box-sizing: border-box;
  width: min(var(--container), calc(100% - clamp(36px, 8vw, 88px)));
  margin-inline: auto;
}

.hero,
.features,
.pricing {
  min-block-size: calc(100vh - var(--header-size));
  min-block-size: calc(100dvh - var(--header-size));
}

.lede {
  max-width: 38rem;
  margin-top: 24px;
  font-size: clamp(17px, 1.3vw, 20px);
  font-weight: 500;
  line-height: 1.6;
  color: var(--color-ink-deep);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  transition: background-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.btn-lg {
  min-height: 56px;
  padding: 14px 28px;
  font-size: 17px;
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-on-primary);
}

.btn-primary:hover {
  background: var(--color-primary-deep);
}

.btn-primary:active {
  background: #b6ef96;
}

.btn-secondary {
  background: var(--color-canvas);
  color: var(--color-ink);
  box-shadow: 0 8px 24px rgba(22, 51, 0, 0.08);
}

.btn-secondary:hover {
  background: var(--color-primary-pale);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--color-canvas-soft);
}

.header-bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-size);
  gap: 24px;
  padding-inline: clamp(20px, 4vw, 56px);
}

.wordmark {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.045em;
  color: var(--color-ink);
  line-height: 1;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-pill);
  color: var(--color-ink);
}

.nav-toggle:hover {
  background: rgba(22, 51, 0, 0.06);
}

.nav-toggle .icon-close {
  display: none;
}

.nav-toggle[aria-expanded="true"] .icon-open {
  display: none;
}

.nav-toggle[aria-expanded="true"] .icon-close {
  display: block;
}

.site-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: absolute;
  top: calc(100% + 1px);
  left: 0;
  right: 0;
  padding: 8px 20px 20px;
  max-height: calc(100dvh - var(--header-size) - 1px);
  overflow-y: auto;
  background: var(--color-canvas-soft);
  border-bottom: 1px solid var(--color-line);
  visibility: hidden;
  opacity: 0;
  translate: 0 -8px;
  pointer-events: none;
  transition: opacity 180ms ease, translate 180ms ease, visibility 180ms ease;
}

.site-nav.is-open {
  visibility: visible;
  opacity: 1;
  translate: 0 0;
  pointer-events: auto;
}

.site-nav a {
  display: flex;
  align-items: center;
  min-height: 48px;
  font-size: 17px;
  font-weight: 700;
  color: var(--color-ink);
}

.site-nav a:hover,
.site-nav a[aria-current="location"] {
  color: var(--color-ink);
  text-decoration: underline;
  text-decoration-color: var(--color-primary);
  text-decoration-thickness: 3px;
  text-underline-offset: 6px;
}

.site-nav .btn {
  width: 100%;
  margin-top: 8px;
}

body.nav-open {
  overflow: hidden;
}

.hero,
.features,
.pricing-main {
  display: grid;
  align-items: center;
  padding-block: clamp(32px, 6dvh, 72px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(26px, 4.5dvh, 46px) clamp(28px, 5vw, 72px);
  align-items: center;
}

.hero .lede {
  max-width: 35rem;
  text-wrap: balance;
}

.hero-values {
  display: flex;
  grid-column: 1 / -1;
  flex-wrap: wrap;
  gap: 8px clamp(16px, 4vw, 60px);
  padding-top: clamp(12px, 2dvh, 22px);
  border-top: 1px solid var(--color-line);
  font-size: clamp(0.875rem, 1.15vw, 1rem);
  font-weight: 700;
}

.hero-values li {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.hero-values li::before {
  flex: 0 0 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-ink-deep);
  content: "";
}

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

.hero {
  position: relative;
  isolation: isolate;
}

.hero-grid {
  position: relative;
  z-index: 1;
}

.hero-workspace {
  --desk-edge: rgba(72, 98, 67, 0.17);
  --desk-text: #365037;
  --desk-muted: #526750;
  --desk-surface: #e0e9da;
  --desk-paper: #f0f3ed;
  position: absolute;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  color: var(--desk-text);
  background: #e8eee4;
  pointer-events: none;
  user-select: none;
}

.hero-workspace::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(232, 235, 230, 0.92) 0%, rgba(232, 235, 230, 0.92) 26%,
      rgba(232, 235, 230, 0.78) 40%, rgba(232, 235, 230, 0.40) 59%, rgba(232, 235, 230, 0.18) 79%, rgba(232, 235, 230, 0.37) 100%),
    linear-gradient(0deg, #e8ebe6 0%, rgba(232, 235, 230, 0) 24%, rgba(232, 235, 230, 0) 89%, rgba(232, 235, 230, 0.48) 100%);
  content: "";
}

.desk-shell {
  display: grid;
  grid-template-columns: clamp(175px, 17vw, 258px) minmax(0, 1fr) clamp(166px, 15vw, 220px);
  min-height: 100%;
  height: 100%;
  background: #ebf0e7;
  font-size: clamp(12px, 1.025vw, 15px);
  line-height: 1.45;
}

.desk-sidebar,
.desk-inspector {
  min-width: 0;
  padding: clamp(14px, 2.35vw, 36px) clamp(10px, 1.65vw, 26px);
  background: rgba(219, 231, 215, 0.57);
  overflow-wrap: anywhere;
}

.desk-sidebar {
  border-right: 1px solid var(--desk-edge);
}

.desk-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.3em;
  font-weight: 800;
}

.desk-app-mark,
.desk-avatar {
  display: inline-grid;
  flex: 0 0 23px;
  place-items: center;
  width: 23px;
  height: 23px;
  border-radius: 7px;
  background: #cbdcc6;
  color: #496645;
  font-size: .85em;
  font-weight: 800;
}

.desk-new,
.desk-nav,
.desk-move,
.desk-file-pill,
.desk-picker [data-desk-target],
.desk-move-menu [data-desk-target] {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  padding: 7px 9px;
  border-radius: 8px;
}

.desk-new {
  margin-top: 24px;
  border: 1px solid var(--desk-edge);
  background: rgba(239, 245, 235, .52);
  font-weight: 700;
}

.desk-sidebar-section {
  margin-top: 23px;
}

.desk-sidebar-section p,
.desk-inspector-label,
.desk-thread-date,
.desk-chat-head p,
.desk-picker p,
.desk-move-menu p {
  color: var(--desk-muted);
  font-size: .82em;
  font-weight: 600;
}

.desk-sidebar-section p {
  margin: 0 0 5px 8px;
}

.desk-nav-icon {
  flex: none;
  font-size: 1.1em;
}

.hero-workspace:not([data-phase="idle"]) .desk-chat-item,
.hero-workspace[data-phase="project"] .desk-project-item {
  background: #cfdec9;
  font-weight: 700;
}

.desk-main {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-width: 0;
}

.desk-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 49px;
  padding: 7px clamp(12px, 3vw, 50px);
  border-bottom: 1px solid var(--desk-edge);
  color: var(--desk-muted);
  font-weight: 700;
}

.desk-topbar p span {
  margin-inline: 3px;
  color: #798773;
}

.desk-chat {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-width: 0;
  inline-size: min(calc(100% - 24px), max(435px, min(48vw, 640px)));
  margin-block: clamp(16px, 4dvh, 46px) clamp(102px, 23dvh, 214px);
  margin-inline: auto clamp(12px, 4vw, 70px);
}

.desk-chat-head {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  padding-bottom: 11px;
  border-bottom: 1px solid var(--desk-edge);
}

.desk-chat-head strong {
  font-size: clamp(16px, 1.8vw, 25px);
  line-height: 1.25;
}

.desk-move {
  flex-shrink: 0;
  border: 1px solid var(--desk-edge);
  background: rgba(231, 237, 225, .82);
  font-weight: 700;
  font-size: .9em;
}

.desk-thread {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: clamp(10px, 2dvh, 19px);
  min-height: 0;
  padding-top: 12px;
  overflow: hidden;
}

.desk-thread-date {
  align-self: center;
}

.desk-message {
  align-self: flex-end;
  width: fit-content;
  max-width: 90%;
  padding: 10px 13px;
  border-radius: 13px 13px 3px 13px;
  background: #d8e5d3;
}

.desk-file-pill {
  width: fit-content;
  max-width: 100%;
  padding: 3px 7px;
  background: #e7eee2;
  color: #425b3f;
  font-size: .83em;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.desk-message p {
  margin-top: 5px;
  overflow-wrap: anywhere;
}

.desk-reply {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.desk-reply-body {
  display: grid;
  min-width: 0;
  padding-top: 2px;
}

.desk-thinking,
.desk-answer {
  grid-area: 1 / 1;
}

.desk-thinking {
  color: var(--desk-muted);
  font-size: .93em;
}

.desk-thinking span {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 3px;
  border-radius: 50%;
  background: #72936b;
}

.desk-answer ul {
  display: grid;
  gap: 2px;
  margin-top: 5px;
  padding-left: 1.05em;
  list-style: disc;
}

.desk-answer li {
  opacity: 0;
  transform: translateY(3px);
  transition: opacity 220ms ease, transform 220ms ease;
}

.hero-workspace[data-lines="1"] .desk-answer li:first-child,
.hero-workspace[data-lines="2"] .desk-answer li:nth-child(-n+2),
.hero-workspace[data-lines="3"] .desk-answer li,
.hero-workspace:not([data-lines]) .desk-answer li {
  opacity: 1;
  transform: none;
}

.desk-composer {
  position: relative;
  z-index: 1;
  padding: 9px 12px;
  border: 1px solid rgba(69, 94, 66, .28);
  border-radius: 14px;
  background: #f2f5ef;
  box-shadow: 0 5px 20px rgba(44, 73, 37, .07);
}

.desk-draft {
  min-height: 2.9em;
  color: var(--desk-muted);
  overflow-wrap: anywhere;
}

.hero-workspace[data-phase="typing"] .desk-composer {
  border-color: rgba(69, 94, 66, .45);
}

.hero-workspace[data-phase="typing"] .desk-draft {
  color: var(--desk-text);
}

.hero-workspace[data-phase="typing"] .desk-draft::after {
  display: inline-block;
  width: 1px;
  height: 1em;
  margin-left: 2px;
  background: #668260;
  vertical-align: -.08em;
  content: "";
}

.desk-attached {
  position: relative;
  overflow: hidden;
}

.hero-workspace[data-uploading] .desk-attached::after {
  position: absolute;
  inset: auto 0 0;
  height: 2px;
  transform: scaleX(var(--upload-progress, 0));
  transform-origin: left;
  background: #7d9d75;
  content: "";
}

.desk-tools {
  display: flex;
  align-items: center;
  gap: 6px;
}

.desk-attach,
.desk-send {
  flex: none;
  color: #4b6747;
  font-size: .85em;
  font-weight: 700;
}

.desk-attach {
  padding: 5px 3px;
}

.desk-send {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  margin-left: auto;
  border-radius: 9px;
  background: #cbdcc5;
  font-size: 1.15em;
}

.desk-picker,
.desk-move-menu {
  position: absolute;
  z-index: 2;
  min-width: min(152px, 95%);
  padding: 7px;
  border: 1px solid var(--desk-edge);
  border-radius: 10px;
  background: #f2f6ef;
  box-shadow: 0 8px 22px rgba(29, 54, 25, .16);
}

.desk-picker {
  bottom: calc(100% + 7px);
  left: 0;
}

.desk-move-menu {
  top: calc(100% - 4px);
  right: 0;
}

.desk-picker p,
.desk-move-menu p {
  margin: 0 0 3px 8px;
}

.desk-picker [data-desk-target],
.desk-move-menu [data-desk-target] {
  background: #e5eee1;
  font-weight: 700;
}

.desk-toast {
  position: absolute;
  z-index: 3;
  top: 66px;
  right: 0;
  padding: 6px 9px;
  border: 1px solid var(--desk-edge);
  border-radius: 8px;
  background: #e0ebdb;
  font-size: .9em;
  font-weight: 700;
}

.desk-message,
.desk-reply,
.desk-thinking,
.desk-answer,
.desk-attached,
.desk-picker,
.desk-move-menu,
.desk-toast,
.desk-inspector-file,
.desk-inspector-done {
  visibility: hidden;
  opacity: 0;
}

.desk-message,
.desk-reply,
.desk-picker,
.desk-move-menu,
.desk-toast {
  translate: 0 4px;
  transition: opacity 200ms ease, translate 200ms ease, visibility 200ms;
}

.hero-workspace:is([data-phase="sent"], [data-phase="thinking"], [data-phase="answer"], [data-phase="organize"], [data-phase="project"]) .desk-message,
.hero-workspace:is([data-phase="thinking"], [data-phase="answer"], [data-phase="organize"], [data-phase="project"]) .desk-reply,
.hero-workspace[data-phase="thinking"] .desk-thinking,
.hero-workspace:is([data-phase="answer"], [data-phase="organize"], [data-phase="project"]) .desk-answer,
.hero-workspace[data-phase="picker"] .desk-picker,
.hero-workspace[data-phase="attached"] .desk-attached,
.hero-workspace[data-phase="organize"] .desk-move-menu,
.hero-workspace[data-phase="project"] :is(.desk-toast, .desk-inspector-done),
.hero-workspace:is([data-phase="attached"], [data-phase="sent"], [data-phase="thinking"], [data-phase="answer"], [data-phase="organize"], [data-phase="project"]) .desk-inspector-file {
  visibility: visible;
  opacity: 1;
  translate: 0;
}

.desk-inspector {
  border-left: 1px solid var(--desk-edge);
}

.desk-inspector-title {
  padding-bottom: 15px;
  border-bottom: 1px solid var(--desk-edge);
  font-size: 1.16em;
  font-weight: 800;
}

.desk-inspector-label {
  margin-block: 17px 7px;
}

.desk-inspector-file,
.desk-inspector-row {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px;
  border-radius: 8px;
  background: #eaf0e6;
}

.desk-inspector-file p,
.desk-inspector-row {
  font-size: .84em;
}

.desk-inspector-row {
  justify-content: space-between;
  flex-wrap: wrap;
}

.desk-cursor,
.desk-click-ring {
  position: absolute;
  z-index: 3;
  top: 0;
  left: 0;
  opacity: 0;
  will-change: transform;
}

.desk-cursor {
  width: 18px;
  height: 21px;
  clip-path: polygon(0 0, 94% 58%, 58% 62%, 78% 91%, 57% 100%, 37% 70%, 16% 94%);
  background: #3f6240;
}

.desk-click-ring {
  width: 28px;
  height: 28px;
  border: 1px solid #6e9663;
  border-radius: 50%;
  background: rgba(155, 188, 144, .24);
}

.hero-motion-toggle {
  position: absolute;
  z-index: 2;
  right: clamp(11px, 2vw, 30px);
  bottom: clamp(8px, 2dvh, 22px);
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid rgba(66, 90, 60, .20);
  border-radius: 50%;
  background: rgba(239, 243, 235, .85);
  color: #4a6545;
}

.hero-motion-toggle[hidden] {
  display: none;
}

.hero-motion-toggle::before {
  width: 9px;
  height: 10px;
  border-inline: 2px solid currentColor;
  content: "";
}

.hero-motion-toggle[aria-pressed="true"]::before {
  width: 0;
  height: 0;
  margin-left: 2px;
  border: 5px solid transparent;
  border-left: 8px solid currentColor;
  border-right: 0;
}

@media (max-width: 1050px) {
  .desk-shell {
    grid-template-columns: clamp(140px, 18vw, 190px) minmax(0, 1fr);
  }

  .desk-inspector {
    display: none;
  }
}

@media (max-width: 879px) {
  .hero {
    align-items: stretch;
  }

  .hero-grid {
    grid-template-rows: minmax(min-content, 1fr) auto;
    align-items: start;
  }

  .hero-workspace::after {
    background:
      linear-gradient(180deg, rgba(232, 235, 230, .89), rgba(232, 235, 230, .92) 34%,
        rgba(232, 235, 230, .28) 54%, rgba(232, 235, 230, .20) 72%, #e8ebe6 100%),
      linear-gradient(90deg, rgba(232, 235, 230, .26), transparent 72%);
  }

  .desk-chat {
    inline-size: min(calc(100% - 20px), 550px);
    margin-block-start: clamp(155px, 30dvh, 280px);
    margin-block-end: 75px;
  }
}

@media (max-width: 600px) {
  .desk-shell {
    grid-template-columns: minmax(77px, 23vw) minmax(0, 1fr);
  }

  .desk-sidebar {
    padding-inline: 6px;
    font-size: 10px;
  }

  .desk-sidebar-brand {
    font-size: 10px;
    gap: 4px;
  }

  .desk-sidebar-brand .desk-app-mark {
    flex-basis: 16px;
    width: 16px;
    height: 16px;
  }

  .desk-new,
  .desk-nav {
    gap: 3px;
    padding-inline: 4px;
  }

  .desk-nav-icon {
    font-size: .9em;
  }

  .desk-sidebar-section {
    margin-top: 15px;
  }

  .desk-chat {
    margin-inline-end: 10px;
    margin-block-start: clamp(202px, 33dvh, 286px);
    margin-block-end: 68px;
  }

  .desk-thread {
    padding-top: 7px;
  }

  .desk-message {
    padding: 6px 9px;
  }

  .desk-move {
    padding: 5px 6px;
  }

  .desk-toast {
    top: 51px;
  }

  .hero-values {
    padding-inline-end: 28px;
  }
}

@media (max-width: 600px) and (max-height: 680px) {
  .desk-chat {
    margin-block-start: 27dvh;
    margin-block-end: 60px;
  }
}

.stage-head,
.tier-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 12px;
}

.play-toggle {
  min-height: 2.75rem;
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 700;
}

.play-toggle:hover {
  background: var(--color-primary-pale);
}

.features {
  background: var(--color-primary);
  color: var(--color-ink);
}

.features-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
}

.feature-lead {
  display: grid;
  gap: clamp(16px, 3dvh, 28px);
  margin-top: clamp(22px, 4dvh, 36px);
}

.feature-lead h3 {
  font-size: clamp(1.25rem, 2vw, 1.75rem);
}

.feature-lead p,
.feature-support p {
  max-width: 36rem;
  margin-top: 6px;
  font-weight: 500;
  line-height: 1.6;
  text-wrap: pretty;
}

.feature-support {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px clamp(28px, 5vw, 72px);
  margin-top: clamp(28px, 5dvh, 48px);
  padding-top: clamp(18px, 3dvh, 28px);
  border-top: 1px solid rgba(14, 15, 12, 0.22);
}

.feature-support h3 {
  font-size: clamp(1.125rem, 1.7vw, 1.375rem);
}

.feature-support p {
  font-size: 1rem;
}

.stage-card {
  min-width: 0;
  padding: clamp(16px, 2.5vw, 32px);
  border: 1px solid transparent;
  border-radius: var(--radius-card);
  background:
    linear-gradient(155deg, #f5fbea 5%, #e4f2d8 100%) padding-box,
    linear-gradient(145deg, #fff 4%, #c8e2b4 46%, #7bbb53 100%) border-box;
  box-shadow: 0 24px 48px -24px rgba(22, 51, 0, 0.48),
              0 5px 14px rgba(22, 51, 0, 0.1),
              inset 0 1px rgba(255, 255, 255, 0.7);
}

.stage-head {
  min-block-size: 2.75rem;
}

.stage-title {
  font-size: clamp(1.25rem, 2.35vw, 2rem);
}

.route-graph {
  margin-top: 12px;
  border: 1px solid rgba(22, 51, 0, 0.15);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.42);
  box-shadow: inset 0 1px 4px rgba(22, 51, 0, 0.045);
}

.route-network {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(min(9.75rem, 57%), 40%);
  min-block-size: clamp(14rem, 19vw, 16rem);
  padding: 12px clamp(9px, 1.3vw, 18px);
}

.route-lines {
  position: relative;
  min-width: 0;
}

.route-lines svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.route-rails path,
.route-packets path {
  fill: none;
  vector-effect: non-scaling-stroke;
}

.route-rails path {
  stroke: #b5caaa;
  stroke-width: 1px;
}

.route-rails path.is-routing {
  stroke: #69954d;
  stroke-width: 1.25px;
}

.route-packets {
  visibility: hidden;
}

.stage-card[data-flow-ready] .route-packets {
  visibility: visible;
}

.route-packets path {
  opacity: 0;
  stroke: #367520;
  stroke-width: 5.5px;
  stroke-linecap: round;
}

.route-door {
  position: absolute;
  top: 50%;
  left: 20.9375%;
  display: flex;
  width: clamp(33px, 3.4vw, 47px);
  aspect-ratio: 0.86;
  padding: 3px;
  transform: translate(-50%, -50%);
  perspective: 118px;
  border: 1px solid #467733;
  border-radius: 10px 10px 4px 4px;
  background: #305b28;
  box-shadow: 0 4px 10px rgba(22, 51, 0, 0.2), inset 0 0 6px rgba(14, 32, 8, 0.32);
}

.route-door-panel {
  display: grid;
  flex: 1 0 0;
  place-items: center;
  border: 1px solid rgba(47, 94, 28, 0.26);
  background: linear-gradient(145deg, #f1fbe7, #badf9e);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.65);
  color: var(--color-ink-deep);
  font-size: clamp(0.62rem, 1vw, 0.9rem);
  font-weight: 800;
  line-height: 1;
}

.route-door-panel-left {
  transform: rotateY(calc(0deg - var(--door-turn, 0deg)));
  transform-origin: left center;
  border-radius: 6px 1px 1px 2px;
}

.route-door-panel-right {
  transform: rotateY(var(--door-turn, 0deg));
  transform-origin: right center;
  border-radius: 1px 6px 2px 1px;
}

.route-paths {
  display: grid;
  grid-template-rows: repeat(5, minmax(0, 1fr));
  align-items: center;
  min-width: 0;
}

.route-paths li {
  position: relative;
  min-width: 0;
  padding: 5px 8px 5px 10px;
  border: 1px solid rgba(22, 51, 0, 0.14);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--color-ink);
  font-size: clamp(0.75rem, 1.2vw, 0.875rem);
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
  transition: background-color 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.route-paths li::before {
  position: absolute;
  top: 50%;
  left: -1px;
  width: 6px;
  height: 6px;
  transform: translate(-50%, -50%);
  border: 1px solid var(--color-canvas);
  border-radius: 50%;
  background: #619748;
  content: "";
}

.route-paths li.is-arriving {
  border-color: #77a957;
  background: #d8edc7;
  box-shadow: 0 0 0 2px rgba(112, 171, 78, 0.14);
}

.pricing {
  display: flex;
  flex-direction: column;
}

.pricing-main {
  flex: 1 0 auto;
  padding-block: clamp(22px, 2.65dvh, 40px);
}

.pricing .lede {
  margin-top: 12px;
}

.tier-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  margin-top: clamp(18px, 3dvh, 30px);
}

.tier {
  display: grid;
  align-content: start;
  gap: 12px;
  min-width: 0;
  padding: clamp(16px, 2vw, 28px);
  border-radius: var(--radius-card);
  background: var(--color-canvas);
  box-shadow: var(--shadow-card);
  transition: box-shadow 240ms ease;
}

.tier:hover {
  box-shadow: var(--shadow-lift);
}

.tier-featured {
  background: var(--color-primary-pale);
  box-shadow: var(--shadow-lift);
}

.tier-name {
  font-size: 1.375rem;
  line-height: 1.3;
}

.tier-badge {
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: var(--color-primary);
  color: var(--color-ink);
  font-size: 0.875rem;
  font-weight: 700;
}

.tier-expiry {
  width: fit-content;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: var(--color-primary-pale);
  color: var(--color-ink-deep);
  font-size: 0.9375rem;
  font-weight: 800;
  line-height: 1.45;
}

.tier-featured .tier-expiry {
  background: var(--color-canvas);
}

.tier-fit {
  margin-top: 4px;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.55;
  text-wrap: pretty;
}

.tier-price,
.tier-details {
  font-variant-numeric: tabular-nums;
}

.tier-price {
  color: var(--color-ink);
  font-size: clamp(2.75rem, 4.35vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.12;
}

.tier-details {
  font-size: 0.9375rem;
  line-height: 1.45;
}

.tier-details > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 2px 8px;
  padding: 4px 0;
}

.tier-details dd {
  text-align: end;
  overflow-wrap: anywhere;
}

.tier-details .tier-total {
  border-top: 1px solid var(--color-line);
  margin-top: 5px;
  padding-top: 9px;
  color: var(--color-ink);
  font-weight: 700;
}

.tier-total strong {
  font-size: 1.25rem;
  font-weight: 800;
}

.tier-comparison {
  font-size: 0.9375rem;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
}

.tier-comparison dl {
  display: grid;
  gap: 4px;
  border-top: 1px solid var(--color-line);
  padding-top: 9px;
}

.tier-comparison dl + dl {
  margin-top: 9px;
}

.tier-comparison dl > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 8px;
}

.tier-comparison dd {
  color: var(--color-ink);
  text-align: end;
  font-weight: 700;
}

.tier .btn {
  width: 100%;
  min-width: 0;
}

.tier-featured .btn-primary {
  background: var(--color-ink-deep);
  color: var(--color-primary);
}

.tier-featured .btn-primary:hover,
.tier-featured .btn-primary:active {
  background: #0c2400;
  color: var(--color-primary);
}

.pricing-note {
  margin-top: 18px;
  font-size: 0.9375rem;
  font-weight: 500;
}

.pricing-note p + p {
  margin-top: 4px;
}

.site-footer {
  background: var(--color-primary-pale);
  padding-block: clamp(16px, 1.85dvh, 24px);
}

.footer-bar {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px clamp(14px, 5vw, 64px);
}

.footer-about {
  grid-column: 1 / -1;
}

.footer-brand {
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--color-ink);
  line-height: 1.25;
}

.footer-about p {
  margin-top: 4px;
  font-size: 0.9375rem;
}

.footer-about .footer-meta {
  margin-top: 9px;
  font-size: 0.875rem;
}

.footer-nav {
  display: grid;
  justify-items: start;
  align-content: start;
  min-width: 0;
}

.footer-nav h3 {
  margin-bottom: 2px;
  font-size: 1rem;
}

.footer-nav :is(a, button) {
  display: flex;
  align-items: center;
  min-height: 32px;
  padding: 3px 0;
  text-align: start;
  font-size: 0.9375rem;
  line-height: 1.45;
}

.footer-nav :is(a, button):hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.notice {
  width: min(440px, calc(100% - 36px));
  max-height: calc(100% - 36px);
  margin: auto;
  padding: 0;
  overflow: auto;
  border: 0;
  border-radius: var(--radius-card);
  color: var(--color-ink-deep);
  background: var(--color-canvas);
  box-shadow: var(--shadow-lift);
}

.notice::backdrop {
  background: rgba(22, 51, 0, 0.28);
}

.notice-card {
  padding: clamp(18px, 4vw, 28px);
}

.notice-card h2 {
  font-size: 32px;
  line-height: 1.2;
}

.notice-card p {
  margin-top: 12px;
  font-size: 17px;
  line-height: 1.6;
}

.notice-card .btn {
  margin-top: 24px;
}

body.notice-open {
  overflow: hidden;
}

.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 600ms ease, transform 600ms ease, box-shadow 240ms ease;
}

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

@media (min-width: 700px) {
  .feature-support {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .footer-about {
    grid-column: auto;
  }
}

@media (min-width: 880px) {
  :root {
    --header-size: 5rem;
  }

  .nav-toggle {
    display: none;
  }

  .header-bar {
    padding-inline-end: clamp(52px, 6vw, 104px);
  }

  .hero {
    --hero-peek: clamp(24px, 4dvh, 38px);
    min-block-size: calc(100vh - var(--header-size) - var(--hero-peek));
    min-block-size: calc(100dvh - var(--header-size) - var(--hero-peek));
    padding-block: clamp(26px, 5dvh, 56px) clamp(20px, 3.6dvh, 42px);
  }

  .site-nav {
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 28px;
    width: auto;
    max-height: none;
    overflow: visible;
    padding: 0;
    border: 0;
    background: transparent;
    visibility: visible;
    opacity: 1;
    translate: none;
    pointer-events: auto;
  }

  .site-nav a {
    font-size: 17px;
  }

  .site-nav .btn {
    width: auto;
    margin: 0 0 0 8px;
  }

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

  .hero-copy {
    display: grid;
    align-content: center;
    min-block-size: clamp(365px, 46dvh, 420px);
  }

  .features-main {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  }
}

@media (min-width: 980px) {
  .tier-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px 22px;
  }

  /* 套餐共享所有内容行的高度，按钮即使在文案换行时也保持对齐。 */
  .tier {
    grid-row: span 6;
    grid-template-rows: subgrid;
    gap: inherit;
  }
}

@media (max-width: 879px) {
  .wordmark {
    font-size: 26px;
  }

  .hero {
    --hero-peek: clamp(14px, 3dvh, 24px);
    min-block-size: calc(100dvh - var(--header-size) - var(--hero-peek));
  }
}

@media (max-width: 600px) {
  .hero {
    padding-block: clamp(22px, 3.2dvh, 30px) 18px;
  }

  .hero-grid {
    row-gap: 20px;
  }

  .hero .lede {
    margin-top: 18px;
  }

  .hero-actions {
    margin-top: 22px;
  }

}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  .stage-card[data-flow-ready] .route-packets,
  .desk-cursor,
  .desk-click-ring {
    visibility: hidden;
  }

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

@media (forced-colors: active) {
  .btn,
  .tier,
  .stage-card,
  .notice {
    border: 1px solid ButtonText;
  }
}
