:root {
  color-scheme: light;
  --bg: #f6f8fb;
  --paper: #ffffff;
  --surface: #eef3f7;
  --ink: #111318;
  --ink-soft: #303642;
  --muted: #657080;
  --line: #dce3ea;
  --line-strong: #c8d2dc;
  --green: #159a68;
  --cyan: #087e9f;
  --amber: #d8831f;
  --rose: #c93e4f;
  --shadow: 0 22px 60px rgba(28, 38, 52, 0.12);
  --max: 1180px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

/* PasteNext product story styles. */
body.pastenext-story {
  --pn-ink: #10141d;
  --pn-muted: #667085;
  --pn-soft: #8793a5;
  --pn-line: rgba(20, 32, 48, 0.12);
  --pn-surface: rgba(255, 255, 255, 0.82);
  --pn-accent: #0a84ff;
  --pn-green: #0eb982;
  color: var(--pn-ink);
  background:
    radial-gradient(circle at 50% -18%, rgba(10, 132, 255, 0.12), transparent 34rem),
    radial-gradient(circle at 78% 10%, rgba(14, 185, 130, 0.1), transparent 30rem),
    linear-gradient(180deg, #ffffff 0%, #f6f8fb 52%, #eef3f7 100%);
}

html:has(body.pastenext-story) {
  scroll-snap-type: y mandatory;
  scroll-padding-top: 72px;
  background: #f6f8fb;
}

html.is-anchor-scrolling:has(body.pastenext-story) {
  scroll-snap-type: none;
  scroll-behavior: auto;
}

html.is-anchor-scrolling .focus-screen:target .pn-hero-copy,
html.is-anchor-scrolling .focus-screen:target .pn-hero-visual,
html.is-anchor-scrolling .focus-screen:target .pn-feature-copy,
html.is-anchor-scrolling .focus-screen:target .pn-demo,
html.is-anchor-scrolling .focus-screen:target .pn-trust-panel,
html.is-anchor-scrolling .focus-screen:target .pn-shot-strip {
  opacity: 1;
  transition-duration: 0ms;
  transform: translateY(0) scale(1);
}

.pastenext-story .story-header {
  border-bottom: 1px solid rgba(20, 32, 48, 0.08);
  background: rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(20px) saturate(160%);
}

.pastenext-story .story-header .brand,
.pastenext-story .story-header .nav-links a {
  color: var(--pn-ink);
}

.pastenext-story .story-header .brand-mark {
  color: #ffffff;
  border-color: transparent;
  background: linear-gradient(135deg, #111827, #2f6fed);
  box-shadow: 0 10px 28px rgba(47, 111, 237, 0.16);
}

.pastenext-story .story-header .nav-links a:hover,
.pastenext-story .story-header .nav-links a:focus-visible,
.pastenext-story .story-header .nav-links a.is-current {
  color: #0a3d91;
  background: rgba(10, 132, 255, 0.08);
}

.pastenext-story .story-header .nav-links a.is-current {
  box-shadow: inset 0 -2px 0 var(--pn-accent);
}

.pastenext-story .story-header .lang-switch {
  border-color: rgba(20, 32, 48, 0.12);
  background: rgba(255, 255, 255, 0.86);
}

.pastenext-story .story-header .lang-switch button {
  color: var(--pn-muted);
}

.pastenext-story .story-header .lang-switch button.is-active {
  color: #ffffff;
  background: #111827;
}

.pn-scroll {
  position: relative;
}

.pn-scroll .focus-screen {
  min-height: calc(100dvh - 72px);
  display: grid;
  align-items: center;
  padding: clamp(44px, 6vh, 76px) 0;
  overflow: hidden;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  isolation: isolate;
}

.pn-scroll .focus-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(246, 248, 251, 0.48) 46%, rgba(238, 243, 247, 0.86)),
    radial-gradient(circle at var(--pn-spot-x, 72%) var(--pn-spot-y, 42%), rgba(10, 132, 255, 0.13), transparent 28rem),
    radial-gradient(circle at calc(var(--pn-spot-x, 72%) - 24%) calc(var(--pn-spot-y, 42%) + 14%), rgba(14, 185, 130, 0.09), transparent 24rem);
}

.pn-scroll .focus-screen::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(20, 32, 48, 0.14), transparent);
}

.pn-scroll .container {
  width: min(100% - 40px, 1360px);
}

.pn-hero {
  --pn-spot-x: 58%;
  --pn-spot-y: 24%;
  padding-top: clamp(34px, 4vh, 54px);
}

.pn-hero-inner {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: clamp(22px, 3.2vh, 34px);
  min-height: min(860px, calc(100dvh - 112px));
}

.pn-hero-copy {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms ease, transform 520ms cubic-bezier(.2, .8, .2, 1);
}

.focus-screen.is-active .pn-hero-copy,
.focus-screen.is-active .pn-feature-copy,
.focus-screen.is-active .pn-demo,
.focus-screen.is-active .pn-trust-panel,
.focus-screen.is-active .pn-shot-strip,
.focus-screen:target .pn-hero-copy,
.focus-screen:target .pn-feature-copy,
.focus-screen:target .pn-demo,
.focus-screen:target .pn-trust-panel,
.focus-screen:target .pn-shot-strip {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.pn-hero-copy h1,
.pn-feature-copy h2 {
  margin: 0;
  color: var(--pn-ink);
  font-weight: 860;
  line-height: 0.95;
  letter-spacing: -0.038em;
}

.pn-hero-copy h1 {
  font-size: clamp(54px, 8.3vw, 124px);
}

html[lang="zh-CN"] .pn-hero-copy h1 {
  font-size: clamp(46px, 6.8vw, 92px);
  line-height: 1.04;
  letter-spacing: -0.02em;
}

.pn-hero-copy p,
.pn-feature-copy p {
  color: var(--pn-muted);
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.58;
}

.pn-hero-copy p {
  max-width: 720px;
  margin: 18px auto 0;
}

.pn-hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.pastenext-story .button {
  min-height: 48px;
  border-color: rgba(20, 32, 48, 0.12);
  color: var(--pn-ink);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 12px 28px rgba(16, 24, 40, 0.08);
}

.pastenext-story .button.primary {
  color: #ffffff;
  border-color: transparent;
  background: linear-gradient(135deg, #111827, #0a84ff);
  box-shadow: 0 16px 42px rgba(10, 132, 255, 0.22);
}

.pn-hero-visual,
.pn-demo,
.pn-trust-panel,
.pn-shot-strip {
  opacity: 0;
  transform: translateY(28px) scale(0.985);
  transition: opacity 620ms ease 100ms, transform 620ms cubic-bezier(.2, .8, .2, 1) 100ms;
  will-change: opacity, transform;
}

.focus-screen.is-active .pn-hero-visual {
  opacity: 1;
  transform:
    perspective(1200px)
    rotateX(var(--tilt-x, 0deg))
    rotateY(var(--tilt-y, 0deg))
    translateY(0)
    scale(1);
}

.pn-hero-visual {
  position: relative;
  margin: 0;
  transform-style: preserve-3d;
}

.pn-hero-visual::before {
  content: "";
  position: absolute;
  inset: 8% 5% -8%;
  z-index: -1;
  border-radius: 8px;
  background:
    radial-gradient(circle at 24% 20%, rgba(10, 132, 255, 0.26), transparent 26rem),
    radial-gradient(circle at 70% 52%, rgba(14, 185, 130, 0.22), transparent 28rem);
  filter: blur(36px);
}

.pn-mac-frame {
  position: relative;
  overflow: hidden;
  padding: 8px;
  border: 1px solid rgba(20, 32, 48, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(230, 236, 243, 0.98));
  box-shadow:
    0 34px 84px rgba(16, 24, 40, 0.16),
    0 10px 24px rgba(16, 24, 40, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.94);
}

.pn-hero-carousel {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3670 / 2328;
  border: 1px solid rgba(20, 32, 48, 0.1);
  border-radius: 6px;
  background: #eef2f6;
}

.pn-mac-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pn-hero-carousel img + img {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.pn-hero-carousel img:nth-child(2) {
  animation: pnHeroSecond 12s ease-in-out infinite;
}

.pn-hero-carousel img:nth-child(3) {
  animation: pnHeroThird 12s ease-in-out infinite;
}

.pn-proofbar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.pn-proofbar span,
.pn-mini-list span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid rgba(20, 32, 48, 0.11);
  border-radius: 8px;
  color: var(--pn-ink);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 24px rgba(16, 24, 40, 0.06);
  font-size: 12px;
  font-weight: 760;
}

.pn-feature {
  --pn-spot-x: 68%;
  --pn-spot-y: 44%;
}

.pn-pinboard {
  --pn-spot-x: 32%;
  --pn-spot-y: 44%;
}

.pn-feature-grid,
.pn-matrix-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(34px, 5vw, 78px);
  align-items: center;
}

.pn-feature-grid.reverse {
  grid-template-columns: minmax(0, 1.28fr) minmax(300px, 0.72fr);
}

.pn-pinboard .pn-feature-grid {
  grid-template-columns: 1fr;
  gap: clamp(20px, 3.4vw, 42px);
}

.pn-pinboard .pn-feature-copy {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(320px, 0.58fr);
  column-gap: clamp(28px, 5vw, 80px);
  align-items: end;
}

.pn-pinboard .pn-feature-copy .screen-index {
  grid-column: 1 / -1;
}

.pn-pinboard .pn-feature-copy h2 {
  max-width: 980px;
  margin-top: 12px;
  font-size: clamp(34px, 3.8vw, 54px);
}

html[lang="zh-CN"] .pn-pinboard .pn-feature-copy h2 {
  font-size: clamp(30px, 3.4vw, 48px);
}

.pn-pinboard .pn-feature-copy p {
  grid-column: 2;
  grid-row: 2 / span 2;
  margin-top: 0;
}

.pn-pinboard .pn-feature-copy .pn-mini-list {
  grid-column: 1;
}

.pn-search .pn-feature-grid {
  grid-template-columns: 1fr;
  gap: clamp(20px, 3vw, 34px);
}

.pn-feature-copy {
  max-width: 560px;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 560ms ease, transform 560ms cubic-bezier(.2, .8, .2, 1);
}

.pn-feature-copy .screen-index {
  min-height: auto;
  color: var(--pn-accent);
  font-size: 12px;
  font-weight: 820;
  letter-spacing: 0.08em;
}

.pn-feature-copy h2 {
  margin-top: 16px;
  font-size: clamp(44px, 5.4vw, 82px);
}

html[lang="zh-CN"] .pn-feature-copy h2 {
  font-size: clamp(40px, 4.6vw, 68px);
  line-height: 1.06;
  letter-spacing: -0.018em;
}

.pn-feature-copy p {
  margin-top: 22px;
}

.pn-search .pn-feature-copy {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(300px, 0.58fr);
  column-gap: clamp(28px, 5vw, 80px);
  align-items: end;
}

.pn-search .pn-feature-copy .screen-index {
  grid-column: 1 / -1;
}

.pn-search .pn-feature-copy h2 {
  max-width: 980px;
  margin-top: 12px;
  font-size: clamp(34px, 3.8vw, 54px);
}

html[lang="zh-CN"] .pn-search .pn-feature-copy h2 {
  font-size: clamp(30px, 3.4vw, 48px);
}

.pn-search .pn-feature-copy p {
  grid-column: 2;
  grid-row: 2 / span 2;
  margin-top: 0;
}

.pn-search .pn-feature-copy .pn-mini-list {
  grid-column: 1;
}

.pn-mini-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.pn-demo {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(20, 32, 48, 0.12);
  border-radius: 8px;
  background: var(--pn-surface);
  box-shadow:
    0 30px 74px rgba(16, 24, 40, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.94);
  transform-style: preserve-3d;
}

.focus-screen.is-active .pn-demo,
.focus-screen:target .pn-demo {
  transform:
    perspective(1200px)
    rotateX(var(--tilt-x, 0deg))
    rotateY(var(--tilt-y, 0deg))
    translateY(0)
    scale(1);
}

.pn-demo > img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.pn-search-overlay {
  position: absolute;
  top: 9%;
  left: 9%;
  right: 9%;
  min-height: 56px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 18px;
  border: 1px solid rgba(10, 132, 255, 0.18);
  border-radius: 8px;
  color: var(--pn-ink);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 44px rgba(16, 24, 40, 0.14);
  backdrop-filter: blur(16px);
}

.pn-search-dot {
  width: 12px;
  height: 12px;
  border: 2px solid var(--pn-accent);
  border-radius: 50%;
  box-shadow: 10px 10px 0 -4px var(--pn-accent);
}

.pn-typed {
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  font-size: 15px;
  font-weight: 780;
  animation: pnType 5.4s steps(28, end) infinite;
}

.pn-result-stack {
  position: absolute;
  right: 8%;
  bottom: 8%;
  width: min(410px, 52%);
  display: grid;
  gap: 10px;
}

.pn-result {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid rgba(20, 32, 48, 0.11);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 36px rgba(16, 24, 40, 0.12);
  opacity: 0;
  transform: translateY(14px);
  animation: pnResult 6.4s ease-in-out infinite;
}

.pn-result:nth-child(2) {
  animation-delay: 700ms;
}

.pn-result:nth-child(3) {
  animation-delay: 1.4s;
}

.pn-result.is-primary {
  border-color: rgba(14, 185, 130, 0.32);
  box-shadow: 0 18px 42px rgba(14, 185, 130, 0.14);
}

.pn-result strong {
  color: var(--pn-ink);
  font-size: 14px;
  line-height: 1.26;
}

.pn-result span {
  color: var(--pn-muted);
  font-size: 12px;
}

.pn-route {
  position: absolute;
  top: 10%;
  left: 8%;
  right: 8%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
}

.pn-route span,
.pn-clip-flow span {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid rgba(10, 132, 255, 0.16);
  border-radius: 8px;
  color: var(--pn-ink);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 14px 32px rgba(16, 24, 40, 0.12);
  font-size: 12px;
  font-weight: 780;
  backdrop-filter: blur(14px);
}

.pn-route i {
  height: 2px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(20, 32, 48, 0.16);
}

.pn-route i::after {
  content: "";
  display: block;
  width: 30%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, transparent, var(--pn-accent), transparent);
  animation: pnRoute 2.7s ease-in-out infinite;
}

.pn-clip-flow {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 9%;
  min-height: 120px;
}

.pn-clip-flow span {
  position: absolute;
  animation: pnClip 6s ease-in-out infinite;
}

.pn-clip-flow span:nth-child(1) {
  left: 0;
  top: 16px;
}

.pn-clip-flow span:nth-child(2) {
  left: 28%;
  top: 64px;
  animation-delay: 820ms;
}

.pn-clip-flow span:nth-child(3) {
  left: 56%;
  top: 28px;
  animation-delay: 1.64s;
}

.pn-pin-lab {
  min-height: auto;
  padding: 18px;
  color: #101827;
  background:
    radial-gradient(circle at 16% 4%, rgba(48, 151, 226, 0.16), transparent 22rem),
    radial-gradient(circle at 92% 20%, rgba(245, 154, 24, 0.13), transparent 20rem),
    linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
}

.pn-pin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.pn-pin-header span {
  color: #f59a18;
  font-size: 12px;
  font-weight: 820;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pn-pin-header strong {
  color: #111827;
  font-size: 14px;
}

.pn-pin-stage {
  position: relative;
  height: clamp(430px, 42vw, 680px);
  overflow: hidden;
  border: 1px solid rgba(91, 111, 139, 0.16);
  border-radius: 10px;
  background:
    linear-gradient(rgba(21, 101, 192, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21, 101, 192, 0.04) 1px, transparent 1px),
    #ffffff;
  background-size: 34px 34px, 34px 34px, auto;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 28px 70px rgba(31, 38, 52, 0.11);
}

.pn-pin-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 48%, rgba(255, 255, 255, 0.14)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.36), transparent 16%, transparent 84%, rgba(255, 255, 255, 0.28));
}

.pn-pin-shot {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  margin: 0;
  opacity: 0;
  transform: translate3d(18px, 0, 0) scale(0.985);
  animation: pnPinShowcase 24s ease-in-out infinite;
  animation-delay: calc(var(--case) * 8s);
  will-change: transform, opacity;
}

.pn-pin-shot img {
  width: 100%;
  height: 100%;
  min-height: 0;
  display: block;
  object-fit: contain;
  object-position: center center;
  background:
    linear-gradient(180deg, rgba(248, 251, 255, 0.96), rgba(255, 255, 255, 0.94));
  filter: saturate(0.96) contrast(1.02);
}

.pn-pin-shot figcaption {
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  border-top: 1px solid rgba(91, 111, 139, 0.12);
  color: #3f5068;
  background: rgba(255, 255, 255, 0.94);
}

.pn-pin-shot figcaption span {
  color: #f59a18;
  font-size: 11px;
  font-weight: 850;
}

.pn-pin-shot figcaption strong {
  overflow: hidden;
  color: #111827;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pn-pin-progress {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.pn-pin-progress span {
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(91, 111, 139, 0.14);
}

.pn-pin-progress span::before {
  content: "";
  width: 100%;
  height: 100%;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, #f59a18, #0b84d8);
  transform: translateX(-105%);
  animation: pnPinProgress 24s linear infinite;
  animation-delay: calc(var(--case) * 8s);
}

.pn-trust-panel {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(20, 32, 48, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(244, 248, 252, 0.78));
  box-shadow:
    0 30px 74px rgba(16, 24, 40, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.pn-trust-row {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 18px;
  border: 1px solid rgba(20, 32, 48, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--pn-muted);
  animation: pnTrust 6.4s ease-in-out infinite;
}

.pn-trust-row:nth-child(2) {
  animation-delay: 800ms;
}

.pn-trust-row:nth-child(3) {
  animation-delay: 1.6s;
}

.pn-trust-row:nth-child(4) {
  animation-delay: 2.4s;
}

.pn-trust-row span {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
}

.pn-trust-row strong {
  color: var(--pn-ink);
  font-size: 14px;
}

.pn-matrix-grid {
  grid-template-columns: minmax(300px, 0.58fr) minmax(0, 1.42fr);
}

.pn-shot-strip {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr 1fr;
  gap: 14px;
  align-items: center;
}

.pn-shot-strip img {
  display: block;
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(20, 32, 48, 0.12);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 22px 54px rgba(16, 24, 40, 0.14);
}

.pn-shot-strip img:nth-child(2) {
  transform: translateY(32px);
}

@keyframes pnType {
  0%, 13% {
    width: 0;
  }
  44%, 76% {
    width: 100%;
  }
  100% {
    width: 0;
  }
}

@keyframes pnHeroSecond {
  0%, 28% {
    opacity: 0;
  }
  34%, 56% {
    opacity: 1;
  }
  64%, 100% {
    opacity: 0;
  }
}

@keyframes pnHeroThird {
  0%, 62% {
    opacity: 0;
  }
  68%, 90% {
    opacity: 1;
  }
  98%, 100% {
    opacity: 0;
  }
}

@keyframes pnResult {
  0%, 18% {
    opacity: 0;
    transform: translateY(14px);
  }
  34%, 72% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(-6px);
  }
}

@keyframes pnRoute {
  0% {
    transform: translateX(-120%);
  }
  100% {
    transform: translateX(340%);
  }
}

@keyframes pnClip {
  0%, 18% {
    opacity: 0.72;
    transform: translate3d(0, 0, 0) scale(1);
  }
  48%, 68% {
    opacity: 1;
    transform: translate3d(110px, -44px, 0) scale(1.04);
  }
  100% {
    opacity: 0.72;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes pnPinShowcase {
  0%, 28% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
  33.333%, 100% {
    opacity: 0;
    transform: translate3d(-18px, 0, 0) scale(0.99);
  }
}

@keyframes pnPinProgress {
  0% {
    transform: translateX(-105%);
  }
  28% {
    transform: translateX(0);
  }
  33.333%, 100% {
    transform: translateX(105%);
  }
}

@keyframes pnTrust {
  0%, 100% {
    opacity: 0.62;
    transform: translateX(14px);
  }
  34%, 58% {
    opacity: 1;
    transform: translateX(0);
    border-color: rgba(14, 185, 130, 0.26);
  }
}

@media (max-width: 980px) {
  html:has(body.pastenext-story) {
    scroll-snap-type: y proximity;
  }

  .pn-scroll .focus-screen {
    min-height: auto;
    padding: 70px 0;
  }

  .pn-hero-inner {
    min-height: auto;
  }

  .pn-feature-grid,
  .pn-feature-grid.reverse,
  .pn-matrix-grid {
    grid-template-columns: 1fr;
  }

  .pn-feature-copy {
    max-width: 760px;
  }

  .pn-pinboard .pn-feature-copy {
    grid-template-columns: 1fr;
  }

  .pn-pinboard .pn-feature-copy p,
  .pn-pinboard .pn-feature-copy .pn-mini-list {
    grid-column: auto;
    grid-row: auto;
  }

  .pn-pinboard .pn-feature-copy p {
    max-width: 760px;
    margin-top: 18px;
  }

  .pn-pin-stage {
    height: clamp(390px, 60vw, 620px);
  }

  .pn-shot-strip {
    grid-template-columns: 1fr;
  }

  .pn-shot-strip img:nth-child(2) {
    transform: none;
  }
}

@media (max-width: 680px) {
  html:has(body.pastenext-story) {
    scroll-snap-type: none;
  }

  .pn-scroll .container {
    width: min(100% - 28px, 1360px);
  }

  .pn-hero-copy h1 {
    font-size: 48px;
    letter-spacing: -0.026em;
  }

  .pn-feature-copy h2 {
    font-size: 42px;
    letter-spacing: -0.026em;
  }

  .pn-hero-actions {
    justify-content: stretch;
  }

  .pn-hero-actions .button,
  .story-actions .button {
    width: 100%;
    justify-content: center;
  }

  .pn-search-overlay,
  .pn-result-stack,
  .pn-route,
  .pn-clip-flow {
    position: static;
    width: auto;
    margin: 10px;
  }

  .pn-result-stack {
    display: grid;
  }

  .pn-route {
    grid-template-columns: 1fr;
  }

  .pn-route i {
    display: none;
  }

  .pn-clip-flow {
    display: grid;
    gap: 8px;
    min-height: auto;
  }

  .pn-clip-flow span {
    position: static;
    animation: none;
  }

  .pn-pin-lab {
    padding: 12px;
  }

  .pn-pin-header,
  .pn-pin-shot figcaption {
    align-items: flex-start;
    flex-direction: column;
  }

  .pn-pin-stage {
    height: clamp(340px, 86vw, 520px);
  }

  .pn-pin-shot img {
    object-fit: contain;
  }

  .pn-pin-shot figcaption {
    gap: 6px;
    padding: 9px 11px;
  }

  .pn-pin-shot figcaption strong {
    white-space: normal;
  }

  .pn-trust-row {
    min-height: auto;
    align-items: flex-start;
    flex-direction: column;
    padding: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pn-typed,
  .pn-hero-carousel img + img,
  .pn-result,
  .pn-route i::after,
  .pn-clip-flow span,
  .pn-pin-shot,
  .pn-pin-progress span::before,
  .pn-trust-row {
    animation: none;
  }

  .pn-pin-shot:first-child {
    opacity: 1;
    transform: none;
  }

  .pn-pin-progress span:first-child::before {
    transform: none;
  }

  .pn-hero-visual,
  .pn-demo,
  .pn-trust-panel,
  .pn-shot-strip,
  .pn-hero-copy,
  .pn-feature-copy {
    transition: none;
    transform: none;
    opacity: 1;
  }
}

html[lang="zh-CN"] [data-lang]:not([data-lang="zh-CN"]),
html[lang="en"] [data-lang]:not([data-lang="en"]),
html[lang="ja"] [data-lang]:not([data-lang="ja"]),
html[lang="ko"] [data-lang]:not([data-lang="ko"]) {
  display: none !important;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
}

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

img {
  display: block;
  width: 100%;
  height: auto;
}

p,
h1,
h2,
h3,
h4 {
  margin: 0;
}

.container {
  width: min(100% - 40px, var(--max));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(220, 227, 234, 0.86);
  background: rgba(246, 248, 251, 0.9);
  backdrop-filter: blur(18px) saturate(140%);
}

.nav {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  font-weight: 780;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--paper);
  background: var(--ink);
  font-size: 14px;
  font-weight: 860;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 680;
}

.nav-links a,
.footer-links a {
  border-radius: 8px;
}

.nav-links a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--ink);
  background: rgba(17, 19, 24, 0.06);
  outline: none;
}

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

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 46px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 16px 36px rgba(31, 38, 52, 0.08);
  backdrop-filter: blur(18px) saturate(150%);
}

.lang-switch button {
  min-width: 62px;
  min-height: 38px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-size: 14px;
  font-weight: 820;
  cursor: pointer;
  transition: color 160ms ease, background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.lang-switch button.is-active {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.96);
  box-shadow:
    inset 0 0 0 1px rgba(31, 38, 52, 0.12),
    0 8px 18px rgba(31, 38, 52, 0.08);
}

.lang-switch button:hover,
.lang-switch button:focus-visible {
  color: var(--ink);
  outline: none;
}

.lang-switch button:focus-visible {
  box-shadow:
    inset 0 0 0 1px rgba(31, 38, 52, 0.16),
    0 0 0 3px rgba(10, 132, 255, 0.16);
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--ink);
  background: var(--paper);
  font-weight: 800;
  box-shadow: 0 12px 30px rgba(30, 39, 50, 0.08);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  border-color: var(--cyan);
  box-shadow: 0 18px 38px rgba(30, 39, 50, 0.13);
  outline: 3px solid rgba(8, 126, 159, 0.15);
  outline-offset: 2px;
}

.button.primary {
  color: var(--paper);
  border-color: var(--ink);
  background: var(--ink);
}

.button.ghost {
  background: transparent;
  box-shadow: none;
}

.button.disabled {
  cursor: not-allowed;
  opacity: 0.72;
}

.button.disabled:hover,
.button.disabled:focus-visible {
  transform: none;
  border-color: var(--line-strong);
  box-shadow: 0 12px 30px rgba(30, 39, 50, 0.08);
  outline: none;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(70px, 9vw, 118px) 0 clamp(54px, 7vw, 86px);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.92), rgba(238, 243, 247, 0.74) 58%, rgba(234, 241, 244, 0.42)),
    repeating-linear-gradient(90deg, rgba(17, 19, 24, 0.035) 0, rgba(17, 19, 24, 0.035) 1px, transparent 1px, transparent 76px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: clamp(34px, 6vw, 72px);
  align-items: center;
}

.hero-copy {
  max-width: 650px;
}

.kicker {
  color: var(--cyan);
  font-size: 14px;
  font-weight: 820;
}

h1 {
  margin-top: 16px;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.02;
  font-weight: 860;
}

.product-title {
  font-size: clamp(46px, 6.4vw, 82px);
}

.lead {
  margin-top: 24px;
  max-width: 620px;
  color: var(--ink-soft);
  font-size: clamp(18px, 2.2vw, 23px);
  line-height: 1.48;
}

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

.hero-note {
  margin-top: 20px;
  color: var(--muted);
  font-size: 14px;
}

.matrix-board,
.product-visual {
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
}

.matrix-board {
  padding: 14px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 14px;
}

.product-card,
.future-card,
.info-card,
.legal-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.product-card {
  min-height: 372px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
}

.product-card.featured {
  color: var(--paper);
  border-color: rgba(17, 19, 24, 0.72);
  background: #111318;
}

.product-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.product-card h2,
.future-card h3,
.info-card h3,
.legal-card h2,
.legal-card h3 {
  font-size: 24px;
  line-height: 1.18;
}

.product-card p,
.future-card p,
.info-card p,
.legal-card p,
.legal-card li {
  color: var(--muted);
}

.product-card.featured p {
  color: rgba(255, 255, 255, 0.74);
}

.status {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid currentColor;
  border-radius: 8px;
  color: var(--green);
  font-size: 12px;
  font-weight: 820;
  text-transform: uppercase;
}

.product-card.featured .status {
  color: #7be0b6;
}

.product-slot {
  display: grid;
  gap: 14px;
}

.future-card {
  min-height: 179px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.slot-number {
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
}

.section {
  padding: clamp(66px, 8vw, 104px) 0;
}

.section.band {
  background: var(--surface);
}

.section.dark {
  color: var(--paper);
  background: var(--ink);
}

.section.dark .section-copy p,
.section.dark .feature-list li,
.section.dark .fine-print {
  color: rgba(255, 255, 255, 0.72);
}

.section.dark .info-card {
  color: var(--ink);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(260px, 0.62fr);
  gap: 28px;
  align-items: end;
  margin-bottom: 34px;
}

.section-head h2,
.section-copy h2,
.legal-title h1 {
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1;
  font-weight: 840;
}

.section-head p,
.section-copy p {
  color: var(--ink-soft);
  font-size: 18px;
}

.product-grid,
.info-grid,
.legal-grid {
  display: grid;
  gap: 16px;
}

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

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

.info-card {
  min-height: 210px;
  padding: 20px;
}

.info-card h3 {
  margin-bottom: 12px;
}

.feature-section {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(360px, 1.12fr);
  gap: clamp(34px, 6vw, 78px);
  align-items: center;
}

.feature-section.reverse {
  grid-template-columns: minmax(360px, 1.12fr) minmax(0, 0.88fr);
}

.section-copy {
  max-width: 610px;
}

.section-copy h2 {
  margin-top: 14px;
}

.section-copy p {
  margin-top: 18px;
}

.feature-list {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 10px;
  color: var(--ink-soft);
}

.check {
  width: 26px;
  height: 26px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  color: var(--paper);
  background: var(--green);
  font-size: 14px;
  font-weight: 900;
}

.product-visual {
  overflow: hidden;
  padding: 10px;
  transform: perspective(1200px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transition: transform 260ms ease, box-shadow 260ms ease;
  will-change: transform;
}

.product-visual img {
  border-radius: 6px;
}

.visual-caption {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 4px 2px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 680;
}

.mac-window {
  min-height: 440px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: clamp(18px, 2.6vw, 28px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(circle at 82% 18%, rgba(21, 154, 104, 0.13), transparent 30%),
    radial-gradient(circle at 12% 88%, rgba(8, 126, 159, 0.12), transparent 32%),
    #fbfcfd;
}

.window-bar {
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid rgba(200, 210, 220, 0.78);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 24px rgba(28, 38, 52, 0.07);
}

.window-bar span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.window-bar span:nth-child(1) {
  background: #ff6159;
}

.window-bar span:nth-child(2) {
  background: #ffbd2e;
}

.window-bar span:nth-child(3) {
  background: #28c840;
}

.window-bar strong {
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
  font-weight: 820;
}

.demo-search,
.large-search-line {
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 18px;
  border: 1px solid rgba(17, 19, 24, 0.08);
  border-radius: 8px;
  color: var(--paper);
  background: #111318;
  box-shadow: 0 20px 38px rgba(17, 19, 24, 0.18);
}

.search-icon {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  border: 2px solid currentColor;
  border-radius: 999px;
  opacity: 0.82;
  position: relative;
}

.search-icon::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 2px;
  right: -6px;
  bottom: -3px;
  border-radius: 999px;
  background: currentColor;
  transform: rotate(45deg);
}

.query-rotator {
  position: relative;
  min-height: 24px;
  flex: 1;
  overflow: hidden;
  font-size: 15px;
  font-weight: 760;
}

.query-rotator span {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(16px);
  animation: querySwap 9s ease-in-out infinite;
  white-space: nowrap;
}

html[lang="zh-CN"] .query-rotator span:nth-of-type(1),
html[lang="en"] .query-rotator span:nth-of-type(4) {
  animation-delay: 0s;
}

html[lang="zh-CN"] .query-rotator span:nth-of-type(2),
html[lang="en"] .query-rotator span:nth-of-type(5) {
  animation-delay: 3s;
}

html[lang="zh-CN"] .query-rotator span:nth-of-type(3),
html[lang="en"] .query-rotator span:nth-of-type(6) {
  animation-delay: 6s;
}

.typing-caret {
  width: 2px;
  height: 23px;
  border-radius: 999px;
  background: #7be0b6;
  animation: caretBlink 900ms steps(2, end) infinite;
}

.hero-demo-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(150px, 0.65fr);
  gap: 16px;
  flex: 1;
}

.demo-results,
.pin-stack,
.ranked-results,
.pinboard-canvas {
  display: grid;
  gap: 12px;
}

.result-row,
.pin-card,
.ranked-card,
.board-column,
.clip-chip {
  border: 1px solid rgba(200, 210, 220, 0.72);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 28px rgba(28, 38, 52, 0.08);
}

.result-row {
  display: grid;
  gap: 6px;
  padding: 14px;
  animation: resultLift 6s ease-in-out infinite;
}

.result-row:nth-child(2) {
  animation-delay: 700ms;
}

.result-row:nth-child(3) {
  animation-delay: 1400ms;
}

.result-row.is-hot {
  border-color: rgba(21, 154, 104, 0.42);
  background: linear-gradient(135deg, #ffffff, #effbf6);
}

.result-row strong,
.pin-card strong,
.ranked-card strong {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.28;
}

.result-row small,
.pin-card span,
.ranked-card small,
.decision-line,
.demo-status {
  color: var(--muted);
  font-size: 12px;
  font-weight: 680;
}

.result-kind {
  width: fit-content;
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  border-radius: 7px;
  color: #0e7652;
  background: #dff6ed;
  font-size: 11px;
  font-weight: 840;
}

.pin-card {
  min-height: 112px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 14px;
}

.pin-card.active {
  color: var(--paper);
  border-color: #111318;
  background: #111318;
  animation: pinGlow 3.6s ease-in-out infinite;
}

.pin-card.active strong {
  color: var(--paper);
}

.demo-status,
.decision-line {
  min-height: 34px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pulse-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(21, 154, 104, 0.4);
  animation: pulseDot 1.8s ease-out infinite;
}

.search-demo-panel,
.pinboard-demo-panel {
  min-height: 500px;
}

.semantic-orbit {
  min-height: 74px;
  position: relative;
}

.semantic-orbit span {
  position: absolute;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink-soft);
  background: var(--paper);
  font-size: 12px;
  font-weight: 820;
  animation: floatChip 4.8s ease-in-out infinite;
}

.semantic-orbit span:nth-child(1) {
  left: 0;
  top: 18px;
}

.semantic-orbit span:nth-child(2) {
  left: 27%;
  top: 0;
  animation-delay: 500ms;
}

.semantic-orbit span:nth-child(3) {
  right: 24%;
  top: 24px;
  animation-delay: 1s;
}

.semantic-orbit span:nth-child(4) {
  right: 0;
  top: 4px;
  animation-delay: 1.5s;
}

.large-search-line {
  min-height: 64px;
}

.large-search-line strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15px;
}

.ranked-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 4px 12px;
  padding: 16px;
  transform-origin: center;
  animation: rankFocus 7.2s ease-in-out infinite;
}

.ranked-card span {
  grid-row: span 2;
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  color: var(--paper);
  background: var(--ink);
  font-size: 12px;
  font-weight: 840;
}

.ranked-card.second {
  animation-delay: 2.4s;
}

.ranked-card.third {
  animation-delay: 4.8s;
}

.pinboard-canvas {
  min-height: 380px;
  grid-template-columns: 0.88fr 1.06fr 0.88fr;
  align-items: stretch;
  position: relative;
}

.board-column {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
}

.board-column h3 {
  color: var(--ink);
  font-size: 15px;
}

.active-board {
  border-color: rgba(21, 154, 104, 0.42);
  background: linear-gradient(180deg, #ffffff, #ecfbf5);
}

.board-glow {
  position: absolute;
  inset: 44px 18px auto;
  height: 120px;
  border-radius: 8px;
  background: rgba(21, 154, 104, 0.1);
  animation: boardScan 3s ease-in-out infinite;
}

.clip-chip {
  position: relative;
  z-index: 1;
  min-height: 42px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 780;
}

.clip-chip.moving {
  animation: fileClip 6s ease-in-out infinite;
}

.clip-chip.moving.two {
  animation-delay: 1.4s;
}

.clip-chip.moving.three {
  animation-delay: 2.8s;
}

@keyframes querySwap {
  0%, 7% {
    opacity: 0;
    transform: translateY(16px);
  }
  13%, 28% {
    opacity: 1;
    transform: translateY(0);
  }
  35%, 100% {
    opacity: 0;
    transform: translateY(-16px);
  }
}

@keyframes caretBlink {
  0%, 48% {
    opacity: 1;
  }
  49%, 100% {
    opacity: 0;
  }
}

@keyframes resultLift {
  0%, 100% {
    transform: translateY(0);
  }
  38% {
    transform: translateY(-4px);
  }
}

@keyframes pinGlow {
  0%, 100% {
    box-shadow: 0 18px 34px rgba(17, 19, 24, 0.16);
  }
  50% {
    box-shadow: 0 24px 46px rgba(21, 154, 104, 0.24);
  }
}

@keyframes pulseDot {
  0% {
    box-shadow: 0 0 0 0 rgba(21, 154, 104, 0.42);
  }
  70%, 100% {
    box-shadow: 0 0 0 12px rgba(21, 154, 104, 0);
  }
}

@keyframes floatChip {
  0%, 100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, -8px, 0);
  }
}

@keyframes rankFocus {
  0%, 100% {
    transform: scale(1);
    border-color: rgba(200, 210, 220, 0.72);
  }
  22%, 34% {
    transform: scale(1.025);
    border-color: rgba(21, 154, 104, 0.52);
  }
}

@keyframes boardScan {
  0%, 100% {
    transform: translateY(0);
    opacity: 0.42;
  }
  50% {
    transform: translateY(116px);
    opacity: 0.18;
  }
}

@keyframes fileClip {
  0%, 16% {
    transform: translateX(0);
    opacity: 1;
  }
  38%, 54% {
    transform: translateX(122%);
    opacity: 0.92;
  }
  74%, 100% {
    transform: translateX(0);
    opacity: 1;
  }
}

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.screenshot-slot {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--paper);
}

.screenshot-slot figcaption {
  padding: 14px 16px 16px;
  color: var(--muted);
  font-size: 14px;
}

.legal-page {
  padding: clamp(50px, 7vw, 82px) 0 clamp(72px, 8vw, 112px);
}

.legal-title {
  max-width: 850px;
}

.legal-title p {
  margin-top: 18px;
  color: var(--ink-soft);
  font-size: 18px;
}

.legal-grid {
  margin-top: 34px;
  grid-template-columns: 0.34fr 0.66fr;
  align-items: start;
}

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

.legal-meta,
.legal-card {
  padding: 22px;
}

.legal-meta {
  position: sticky;
  top: 98px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.legal-meta p {
  color: var(--muted);
}

.legal-card {
  display: grid;
  gap: 24px;
}

.legal-card section {
  display: grid;
  gap: 10px;
}

.legal-card ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
}

.contact-box {
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.fine-print {
  margin-top: 24px;
  color: var(--muted);
  font-size: 14px;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.footer-inner {
  min-height: 112px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
  font-size: 14px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.footer-links a {
  padding: 8px 10px;
}

@media (max-width: 960px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px 0;
  }

  .nav-links {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .nav-actions {
    width: 100%;
    justify-content: space-between;
  }

  .hero-grid,
  .feature-section,
  .feature-section.reverse,
  .section-head,
  .legal-grid {
    grid-template-columns: 1fr;
  }

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

  .legal-meta {
    position: static;
  }

  .hero-demo-grid,
  .pinboard-canvas {
    grid-template-columns: 1fr;
  }

  .mac-window {
    min-height: auto;
  }

  .clip-chip.moving {
    animation-name: resultLift;
  }
}

@media (max-width: 680px) {
  .container {
    width: min(100% - 28px, var(--max));
  }

  .hero {
    padding-top: 52px;
  }

  h1,
  .product-title {
    font-size: 48px;
  }

  .lead {
    font-size: 18px;
  }

  .matrix-board,
  .product-grid,
  .info-grid,
  .screenshot-grid {
    grid-template-columns: 1fr;
  }

  .product-card {
    min-height: 300px;
  }

  .future-card {
    min-height: 150px;
  }

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

  .button {
    width: 100%;
  }

  .visual-caption {
    flex-direction: column;
    gap: 4px;
  }

  .semantic-orbit {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    min-height: auto;
  }

  .semantic-orbit span {
    position: static;
  }

  .large-search-line strong,
  .query-rotator span {
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .product-visual {
    transform: none !important;
    will-change: auto;
  }
}

html:has(body.pastenext-story) {
  scroll-padding-top: 74px;
  scroll-snap-type: y mandatory;
  background: #05070d;
}

.pastenext-story {
  --story-bg: #05070d;
  --story-ink: #f8fbff;
  --story-soft: #aeb8c8;
  --story-dim: #6f7d93;
  --story-line: rgba(183, 207, 255, 0.16);
  --story-panel: rgba(13, 18, 30, 0.72);
  --story-accent: #67f7c0;
  --story-cyan: #73d9ff;
  --story-violet: #9f8cff;
  color: var(--story-ink);
  background:
    radial-gradient(circle at 50% -10%, rgba(103, 247, 192, 0.16), transparent 34rem),
    radial-gradient(circle at 78% 18%, rgba(115, 217, 255, 0.12), transparent 30rem),
    var(--story-bg);
}

.pastenext-story .container {
  width: min(100% - 44px, 1240px);
}

.story-header {
  border-bottom-color: rgba(183, 207, 255, 0.12);
  background: rgba(5, 7, 13, 0.72);
  backdrop-filter: blur(22px) saturate(150%);
}

.story-header .brand,
.story-header .nav-links a {
  color: var(--story-ink);
}

.story-header .brand-mark {
  border-color: rgba(103, 247, 192, 0.36);
  color: #06110d;
  background: linear-gradient(135deg, var(--story-accent), var(--story-cyan));
  box-shadow: 0 0 34px rgba(103, 247, 192, 0.22);
}

.story-header .nav-links {
  color: var(--story-soft);
}

.story-header .nav-links a:hover,
.story-header .nav-links a:focus-visible,
.story-header .nav-links a.is-current {
  color: var(--story-ink);
  background: rgba(255, 255, 255, 0.08);
}

.story-header .nav-links a.is-current {
  box-shadow: inset 0 -2px 0 var(--story-accent);
}

.story-header .lang-switch {
  border-color: rgba(183, 207, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
}

.story-header .lang-switch button {
  color: var(--story-soft);
}

.story-header .lang-switch button.is-active {
  color: #06110d;
  background: var(--story-accent);
}

.story-scroll {
  position: relative;
}

.focus-screen {
  position: relative;
  min-height: calc(100dvh - 74px);
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: clamp(62px, 8vh, 92px) 0;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  isolation: isolate;
}

.focus-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent 34%),
    radial-gradient(circle at var(--spot-x, 74%) var(--spot-y, 42%), rgba(103, 247, 192, 0.13), transparent 28rem);
  opacity: 0.84;
}

.focus-screen::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(183, 207, 255, 0.24), transparent);
}

.hero-screen {
  --spot-x: 76%;
  --spot-y: 36%;
}

.smart-screen {
  --spot-x: 68%;
  --spot-y: 48%;
}

.pin-screen {
  --spot-x: 28%;
  --spot-y: 42%;
}

.privacy-screen {
  --spot-x: 76%;
  --spot-y: 50%;
}

.gallery-screen {
  --spot-x: 50%;
  --spot-y: 34%;
}

.story-bg-grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.56;
  background-image:
    linear-gradient(rgba(183, 207, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(183, 207, 255, 0.08) 1px, transparent 1px);
  background-size: 84px 84px;
  mask-image: radial-gradient(circle at 54% 42%, #000 0, transparent 72%);
}

.focus-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(460px, 1.18fr);
  gap: clamp(38px, 6vw, 82px);
  align-items: center;
}

.focus-layout.reverse {
  grid-template-columns: minmax(460px, 1.18fr) minmax(0, 0.82fr);
}

.focus-copy {
  max-width: 610px;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 620ms ease, transform 620ms cubic-bezier(.2, .8, .2, 1);
}

.focus-screen.is-active .focus-copy {
  opacity: 1;
  transform: translateY(0);
}

.screen-index {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  color: var(--story-accent);
  font-size: 12px;
  font-weight: 860;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.focus-copy h1,
.focus-copy h2 {
  margin-top: 14px;
  color: var(--story-ink);
  font-size: clamp(48px, 6.8vw, 92px);
  font-weight: 880;
  line-height: 0.96;
  letter-spacing: -0.035em;
}

.focus-copy h2 {
  font-size: clamp(42px, 5vw, 74px);
}

.focus-copy p {
  margin-top: 24px;
  color: var(--story-soft);
  font-size: clamp(17px, 1.55vw, 21px);
  line-height: 1.62;
}

.focus-copy.compact {
  max-width: 760px;
}

.story-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.pastenext-story .button {
  min-height: 48px;
  border-color: rgba(183, 207, 255, 0.18);
  color: var(--story-ink);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: none;
}

.pastenext-story .button.primary {
  color: #06110d;
  border-color: transparent;
  background: linear-gradient(135deg, var(--story-accent), var(--story-cyan));
  box-shadow: 0 18px 48px rgba(103, 247, 192, 0.2);
}

.pastenext-story .button.disabled {
  color: var(--story-soft);
}

.hero-device,
.feature-stage,
.privacy-console {
  opacity: 0;
  transform: translateY(34px) scale(0.98);
  transition: opacity 720ms ease 120ms, transform 720ms cubic-bezier(.2, .8, .2, 1) 120ms;
  will-change: transform, opacity;
}

.focus-screen.is-active .hero-device,
.focus-screen.is-active .feature-stage,
.focus-screen.is-active .privacy-console {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.hero-device {
  position: relative;
  transform-style: preserve-3d;
}

.device-glow {
  position: absolute;
  inset: 10% 8%;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(103, 247, 192, 0.34), rgba(115, 217, 255, 0.18));
  filter: blur(52px);
}

.glass-device,
.screenshot-shell,
.pin-screenshot,
.privacy-console,
.gallery-strip img {
  border: 1px solid var(--story-line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.035));
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.glass-device {
  position: relative;
  overflow: hidden;
  padding: 12px;
}

.glass-device img,
.screenshot-shell img,
.pin-screenshot img {
  border-radius: 6px;
}

.live-command {
  position: absolute;
  left: 28px;
  bottom: 28px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border: 1px solid rgba(103, 247, 192, 0.28);
  border-radius: 8px;
  color: var(--story-ink);
  background: rgba(5, 7, 13, 0.72);
  backdrop-filter: blur(14px);
  font-size: 13px;
  font-weight: 780;
}

.feature-stage {
  position: relative;
  transform-style: preserve-3d;
}

.type-wall {
  position: absolute;
  inset: -10% -6% auto;
  z-index: -1;
  display: grid;
  gap: 8px;
  color: rgba(103, 247, 192, 0.08);
  font-size: clamp(74px, 13vw, 172px);
  font-weight: 900;
  line-height: 0.75;
  letter-spacing: -0.08em;
  pointer-events: none;
}

.type-wall span {
  animation: typeWallPulse 4.8s ease-in-out infinite;
}

.type-wall span:nth-child(2) {
  animation-delay: 600ms;
}

.type-wall span:nth-child(3) {
  animation-delay: 1.2s;
}

.type-wall span:nth-child(4) {
  animation-delay: 1.8s;
}

.screenshot-shell {
  position: relative;
  overflow: hidden;
  padding: 12px;
}

.search-beam {
  position: absolute;
  inset: 12px;
  border-radius: 6px;
  background: linear-gradient(100deg, transparent 0%, rgba(103, 247, 192, 0.2) 45%, transparent 68%);
  transform: translateX(-105%);
  animation: searchBeam 4.6s ease-in-out infinite;
  mix-blend-mode: screen;
}

.typed-query {
  position: absolute;
  top: 8.8%;
  left: 10%;
  right: 10%;
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 18px;
  border: 1px solid rgba(103, 247, 192, 0.28);
  border-radius: 8px;
  color: var(--story-ink);
  background: rgba(5, 7, 13, 0.8);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(16px);
}

.typed-text {
  max-width: 100%;
  overflow: hidden;
  border-right: 0;
  white-space: nowrap;
  font-size: 15px;
  font-weight: 820;
  animation: typeReveal 4.2s steps(24, end) infinite;
}

.real-results {
  position: absolute;
  right: 7%;
  bottom: 8%;
  width: min(420px, 56%);
  display: grid;
  gap: 10px;
}

.real-result {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid rgba(183, 207, 255, 0.16);
  border-radius: 8px;
  background: rgba(5, 7, 13, 0.78);
  backdrop-filter: blur(14px);
  transform: translateY(18px);
  opacity: 0;
  animation: resultReveal 6s ease-in-out infinite;
}

.real-result:nth-child(2) {
  animation-delay: 750ms;
}

.real-result:nth-child(3) {
  animation-delay: 1.5s;
}

.real-result.primary {
  border-color: rgba(103, 247, 192, 0.38);
  box-shadow: 0 0 34px rgba(103, 247, 192, 0.13);
}

.real-result strong {
  color: var(--story-ink);
  font-size: 14px;
  line-height: 1.25;
}

.real-result small {
  color: var(--story-soft);
  font-size: 12px;
}

.pin-stage {
  min-height: 560px;
}

.pin-screenshot {
  overflow: hidden;
  padding: 12px;
  transform: rotateY(4deg) rotateX(2deg);
}

.auto-route {
  position: absolute;
  inset: 12% 6% auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
}

.route-node {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 1px solid rgba(103, 247, 192, 0.28);
  border-radius: 8px;
  color: var(--story-ink);
  background: rgba(5, 7, 13, 0.78);
  backdrop-filter: blur(14px);
  font-size: 13px;
  font-weight: 820;
}

.route-line {
  height: 2px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(183, 207, 255, 0.18);
}

.route-line::after {
  content: "";
  display: block;
  width: 36%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, transparent, var(--story-accent), transparent);
  animation: routeFlow 2.4s ease-in-out infinite;
}

.floating-clips {
  position: absolute;
  inset: auto 8% 10%;
  min-height: 180px;
}

.clip-token {
  position: absolute;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 13px;
  border: 1px solid rgba(183, 207, 255, 0.16);
  border-radius: 8px;
  color: var(--story-ink);
  background: rgba(5, 7, 13, 0.82);
  backdrop-filter: blur(14px);
  font-size: 12px;
  font-weight: 800;
  animation: clipDock 5.8s ease-in-out infinite;
}

.clip-token.one {
  left: 0;
  top: 34px;
}

.clip-token.two {
  left: 24%;
  top: 92px;
  animation-delay: 900ms;
}

.clip-token.three {
  left: 54%;
  top: 18px;
  animation-delay: 1.8s;
}

.privacy-console {
  display: grid;
  gap: 12px;
  padding: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025)),
    rgba(5, 7, 13, 0.72);
}

.console-row {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 0 20px;
  border: 1px solid rgba(183, 207, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  transform: translateX(18px);
  opacity: 0.54;
  animation: consoleFocus 5.6s ease-in-out infinite;
}

.console-row:nth-child(2) {
  animation-delay: 900ms;
}

.console-row:nth-child(3) {
  animation-delay: 1.8s;
}

.console-row:nth-child(4) {
  animation-delay: 2.7s;
}

.console-row span {
  color: var(--story-soft);
  font-size: 13px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.console-row strong {
  color: var(--story-ink);
  font-size: 14px;
}

.gallery-layout {
  display: grid;
  gap: 34px;
}

.gallery-strip {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 1fr;
  gap: 16px;
  align-items: center;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 700ms ease 120ms, transform 700ms cubic-bezier(.2, .8, .2, 1) 120ms;
}

.gallery-screen.is-active .gallery-strip {
  opacity: 1;
  transform: translateY(0);
}

.gallery-strip img {
  padding: 8px;
  object-fit: cover;
}

.gallery-strip img:nth-child(2) {
  transform: translateY(36px);
}

.story-footer {
  color: var(--story-soft);
  border-top-color: rgba(183, 207, 255, 0.12);
  background: #05070d;
}

.story-footer a {
  color: var(--story-soft);
}

@keyframes typeWallPulse {
  0%, 100% {
    opacity: 0.36;
    transform: translateX(0);
  }
  50% {
    opacity: 0.92;
    transform: translateX(10px);
  }
}

@keyframes searchBeam {
  0%, 28% {
    transform: translateX(-105%);
  }
  62%, 100% {
    transform: translateX(105%);
  }
}

@keyframes typeReveal {
  0%, 14% {
    width: 0;
  }
  45%, 76% {
    width: 100%;
  }
  100% {
    width: 0;
  }
}

@keyframes resultReveal {
  0%, 16% {
    opacity: 0;
    transform: translateY(18px);
  }
  30%, 72% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(-8px);
  }
}

@keyframes routeFlow {
  0% {
    transform: translateX(-120%);
  }
  100% {
    transform: translateX(320%);
  }
}

@keyframes clipDock {
  0%, 18% {
    opacity: 0.72;
    transform: translate3d(0, 0, 0) scale(1);
  }
  48%, 68% {
    opacity: 1;
    transform: translate3d(120px, -46px, 0) scale(1.04);
  }
  100% {
    opacity: 0.72;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes consoleFocus {
  0%, 100% {
    opacity: 0.54;
    transform: translateX(18px);
    border-color: rgba(49, 72, 98, 0.12);
  }
  38%, 58% {
    opacity: 1;
    transform: translateX(0);
    border-color: rgba(19, 185, 129, 0.34);
  }
}

/* PasteNext light precision-tech revision: denser, brighter, less empty. */
html:has(body.pastenext-story) {
  background: #f6f9fc;
}

.pastenext-story {
  --story-bg: #f6f9fc;
  --story-ink: #10151f;
  --story-soft: #4d5b6f;
  --story-dim: #7c8a9e;
  --story-line: rgba(49, 72, 98, 0.14);
  --story-panel: rgba(255, 255, 255, 0.78);
  --story-accent: #13b981;
  --story-cyan: #0c8fb8;
  --story-violet: #5568d6;
  background:
    radial-gradient(circle at 50% -12%, rgba(19, 185, 129, 0.18), transparent 34rem),
    radial-gradient(circle at 78% 18%, rgba(12, 143, 184, 0.14), transparent 30rem),
    linear-gradient(180deg, #ffffff 0%, #f6f9fc 36%, #eef4f8 100%);
}

.story-header {
  border-bottom-color: rgba(49, 72, 98, 0.12);
  background: rgba(255, 255, 255, 0.78);
}

.story-header .brand-mark {
  border-color: rgba(19, 185, 129, 0.32);
  color: #ffffff;
  background: linear-gradient(135deg, #111827, #1f3d53);
  box-shadow: 0 14px 34px rgba(17, 24, 39, 0.14);
}

.story-header .nav-links a:hover,
.story-header .nav-links a:focus-visible,
.story-header .nav-links a.is-current {
  background: rgba(12, 143, 184, 0.08);
}

.story-header .lang-switch {
  border-color: rgba(49, 72, 98, 0.14);
  background: rgba(255, 255, 255, 0.82);
}

.story-header .lang-switch button.is-active {
  color: #ffffff;
  background: #111827;
}

.focus-screen {
  min-height: calc(92dvh - 32px);
  padding: clamp(46px, 6vh, 72px) 0;
}

.focus-screen::before {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), transparent 42%),
    radial-gradient(circle at var(--spot-x, 74%) var(--spot-y, 42%), rgba(19, 185, 129, 0.12), transparent 27rem);
}

.focus-screen::after {
  background: linear-gradient(90deg, transparent, rgba(49, 72, 98, 0.16), transparent);
}

.story-bg-grid {
  opacity: 0.52;
  background-image:
    linear-gradient(rgba(49, 72, 98, 0.065) 1px, transparent 1px),
    linear-gradient(90deg, rgba(49, 72, 98, 0.065) 1px, transparent 1px);
  background-size: 72px 72px;
}

.focus-layout {
  grid-template-columns: minmax(0, 0.74fr) minmax(500px, 1.26fr);
  gap: clamp(28px, 4.5vw, 64px);
}

.focus-layout.reverse {
  grid-template-columns: minmax(500px, 1.26fr) minmax(0, 0.74fr);
}

.screen-index {
  color: var(--story-cyan);
}

.focus-copy h1,
.focus-copy h2 {
  font-size: clamp(44px, 5.8vw, 78px);
  line-height: 0.98;
  letter-spacing: -0.028em;
}

.focus-copy h2 {
  font-size: clamp(38px, 4.35vw, 62px);
}

.focus-copy p {
  margin-top: 20px;
  font-size: clamp(16px, 1.28vw, 19px);
  line-height: 1.58;
}

.focus-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.focus-facts span {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 0 11px;
  border: 1px solid rgba(49, 72, 98, 0.14);
  border-radius: 8px;
  color: var(--story-ink);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 8px 24px rgba(30, 47, 66, 0.06);
  font-size: 12px;
  font-weight: 820;
}

.pastenext-story .button {
  border-color: rgba(49, 72, 98, 0.16);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 14px 34px rgba(30, 47, 66, 0.08);
}

.pastenext-story .button.primary {
  color: #ffffff;
  background: linear-gradient(135deg, #111827, #0c8fb8);
  box-shadow: 0 18px 44px rgba(12, 143, 184, 0.22);
}

.device-glow {
  background: linear-gradient(135deg, rgba(19, 185, 129, 0.24), rgba(12, 143, 184, 0.16));
}

.glass-device,
.screenshot-shell,
.pin-screenshot,
.privacy-console,
.gallery-strip img {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(245, 249, 252, 0.72));
  box-shadow:
    0 28px 74px rgba(42, 62, 82, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.live-command,
.typed-query,
.route-node,
.clip-token {
  border-color: rgba(12, 143, 184, 0.18);
  color: var(--story-ink);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 46px rgba(42, 62, 82, 0.14);
}

.type-wall {
  color: rgba(12, 143, 184, 0.08);
  font-size: clamp(64px, 11vw, 144px);
}

.search-beam {
  background: linear-gradient(100deg, transparent 0%, rgba(19, 185, 129, 0.18) 45%, transparent 68%);
  mix-blend-mode: multiply;
}

.real-result {
  border-color: rgba(49, 72, 98, 0.13);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 30px rgba(42, 62, 82, 0.1);
}

.real-result.primary {
  border-color: rgba(19, 185, 129, 0.32);
  box-shadow: 0 18px 42px rgba(19, 185, 129, 0.13);
}

.route-line {
  background: rgba(49, 72, 98, 0.16);
}

.privacy-console {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(245, 249, 252, 0.78)),
    rgba(255, 255, 255, 0.72);
}

.console-row {
  min-height: 62px;
  border-color: rgba(49, 72, 98, 0.12);
  background: rgba(255, 255, 255, 0.62);
}

.story-footer {
  border-top-color: rgba(49, 72, 98, 0.12);
  background: #ffffff;
}

.hero-screen {
  min-height: calc(100dvh - 74px);
  padding: clamp(22px, 3.5vh, 40px) 0;
}

.hero-screen::before {
  background:
    radial-gradient(circle at 76% 58%, rgba(12, 143, 184, 0.12), transparent 28rem),
    radial-gradient(circle at 65% 42%, rgba(19, 185, 129, 0.1), transparent 22rem),
    linear-gradient(180deg, #ffffff 0%, #f7fafc 100%);
}

.hero-showcase {
  min-height: min(760px, calc(100dvh - 110px));
  display: grid;
  grid-template-columns: minmax(280px, 0.48fr) minmax(0, 1.52fr);
  gap: clamp(22px, 3vw, 44px);
  align-items: center;
  padding: clamp(24px, 4vw, 44px);
  border: 1px solid rgba(49, 72, 98, 0.1);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.78) 34%, rgba(226, 249, 250, 0.54)),
    linear-gradient(rgba(49, 72, 98, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(49, 72, 98, 0.045) 1px, transparent 1px);
  background-size: auto, 72px 72px, 72px 72px;
  overflow: hidden;
  box-shadow: 0 30px 90px rgba(42, 62, 82, 0.12);
}

body.pastenext-story .hero-showcase.container {
  width: min(100% - 28px, 1480px);
}

.hero-showcase .focus-copy {
  position: relative;
  z-index: 3;
  max-width: 430px;
}

.hero-showcase .focus-copy h1 {
  font-size: clamp(42px, 4.4vw, 64px);
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.hero-showcase .focus-copy p {
  max-width: 410px;
  margin-top: 18px;
  color: #5b6b7f;
}

.hero-product-preview {
  align-self: center;
  justify-self: end;
  min-width: 0;
  width: min(100%, 1060px);
  margin-right: clamp(-28px, -2.5vw, 0px);
}

.hero-product-preview .device-glow {
  inset: 12% 0% 0%;
  opacity: 0.64;
  filter: blur(52px);
}

.hero-product-preview .glass-device {
  padding: 12px;
  border-color: rgba(49, 72, 98, 0.14);
  background: rgba(255, 255, 255, 0.86);
  box-shadow:
    0 30px 88px rgba(37, 57, 78, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.94);
}

.hero-product-preview .mac-device {
  overflow: visible;
  padding: 10px 10px 40px;
  border-color: rgba(35, 53, 72, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(235, 241, 247, 0.96));
  box-shadow:
    0 28px 80px rgba(39, 67, 90, 0.18),
    0 8px 22px rgba(42, 57, 74, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

.hero-product-preview .mac-device::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 50%;
  z-index: 2;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(42, 53, 67, 0.42);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.58);
  transform: translateX(-50%);
}

.hero-product-preview .mac-bezel {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3670 / 2328;
  border: 1px solid rgba(21, 29, 39, 0.12);
  border-radius: 6px;
  background: #111722;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.2),
    inset 0 -18px 36px rgba(18, 28, 40, 0.18);
}

.hero-product-preview .glass-device img {
  min-height: 300px;
  object-fit: cover;
  object-position: 62% center;
}

.hero-product-preview .mac-bezel img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  border-radius: 0;
  object-fit: cover;
  object-position: 62% center;
}

.hero-product-preview .mac-chin {
  position: absolute;
  left: 50%;
  bottom: 13px;
  width: 28%;
  height: 10px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(159, 173, 187, 0.22), rgba(255, 255, 255, 0.82), rgba(147, 162, 176, 0.28));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    0 1px 2px rgba(39, 57, 76, 0.12);
  transform: translateX(-50%);
}

@media (max-width: 980px) {
  .hero-showcase {
    min-height: auto;
    grid-template-columns: 1fr;
    padding: 34px;
  }

  .hero-showcase .focus-copy {
    max-width: 680px;
  }

  .hero-product-preview {
    width: 100%;
    margin-right: 0;
  }
}

@media (max-width: 680px) {
  .hero-screen {
    padding: 16px 0 42px;
  }

  .hero-showcase {
    padding: 24px;
  }

  .hero-showcase .focus-copy h1 {
    font-size: 43px;
  }
}

@media (max-width: 980px) {
  html:has(body.pastenext-story) {
    scroll-snap-type: y proximity;
  }

  .focus-layout,
  .focus-layout.reverse {
    grid-template-columns: 1fr;
  }

  .focus-screen {
    min-height: auto;
    padding: 74px 0;
  }

  .focus-copy h1,
  .focus-copy h2 {
    max-width: 820px;
  }

  .pin-stage {
    min-height: auto;
  }

  .pin-screenshot {
    transform: none;
  }

  .gallery-strip {
    grid-template-columns: 1fr;
  }

  .gallery-strip img:nth-child(2) {
    transform: none;
  }
}

@media (max-width: 680px) {
  html:has(body.pastenext-story) {
    scroll-snap-type: none;
  }

  .pastenext-story .container {
    width: min(100% - 28px, 1240px);
  }

  .focus-copy h1,
  .focus-copy h2 {
    font-size: 42px;
    letter-spacing: -0.025em;
  }

  .real-results,
  .typed-query,
  .auto-route,
  .floating-clips {
    position: static;
    width: auto;
    margin-top: 12px;
  }

  .typed-query {
    min-height: 52px;
  }

  .typed-text {
    white-space: normal;
    animation: none;
  }

  .auto-route {
    grid-template-columns: 1fr;
  }

  .route-line {
    display: none;
  }

  .floating-clips {
    display: grid;
    gap: 10px;
    min-height: auto;
  }

  .clip-token {
    position: static;
    animation: none;
  }

  .console-row {
    min-height: auto;
    align-items: flex-start;
    flex-direction: column;
    padding: 16px;
  }
}

/* PasteNext final cascade guard. Keep this at the end of the file. */
body.pastenext-story {
  color: var(--pn-ink);
  background:
    radial-gradient(circle at 50% -18%, rgba(10, 132, 255, 0.12), transparent 34rem),
    radial-gradient(circle at 78% 10%, rgba(14, 185, 130, 0.1), transparent 30rem),
    linear-gradient(180deg, #ffffff 0%, #f6f8fb 52%, #eef3f7 100%);
}

html:has(body.pastenext-story) {
  scroll-padding-top: 72px;
  scroll-snap-type: y mandatory;
  background: #f6f8fb;
}

.pn-scroll .container {
  width: min(100% - 40px, 1360px);
}

.pastenext-story .story-header {
  border-bottom: 1px solid rgba(20, 32, 48, 0.08);
  background: rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(20px) saturate(160%);
}

.pastenext-story .story-header .brand,
.pastenext-story .story-header .nav-links a {
  color: var(--pn-ink);
}

.pastenext-story .story-header .brand-mark {
  color: #ffffff;
  border-color: transparent;
  background: linear-gradient(135deg, #111827, #2f6fed);
  box-shadow: 0 10px 28px rgba(47, 111, 237, 0.16);
}

.pastenext-story .story-header .nav-links a:hover,
.pastenext-story .story-header .nav-links a:focus-visible,
.pastenext-story .story-header .nav-links a.is-current {
  color: #0a3d91;
  background: rgba(10, 132, 255, 0.08);
}

.pastenext-story .story-header .nav-links a.is-current {
  box-shadow: inset 0 -2px 0 var(--pn-accent);
}

.pastenext-story .story-header .lang-switch {
  border-color: rgba(20, 32, 48, 0.12);
  background: rgba(255, 255, 255, 0.86);
}

.pastenext-story .story-header .lang-switch button {
  color: var(--pn-muted);
}

.pastenext-story .story-header .lang-switch button.is-active {
  color: #ffffff;
  background: #111827;
}

.pastenext-story .button {
  min-height: 48px;
  border-color: rgba(20, 32, 48, 0.12);
  color: var(--pn-ink);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 12px 28px rgba(16, 24, 40, 0.08);
}

.pastenext-story .button.primary {
  color: #ffffff;
  border-color: transparent;
  background: linear-gradient(135deg, #111827, #0a84ff);
  box-shadow: 0 16px 42px rgba(10, 132, 255, 0.22);
}

@media (max-width: 680px) {
  .pn-scroll .container {
    width: min(100% - 28px, 1360px);
  }
}

/* PasteNext plain professional pass. */
body.pastenext-story {
  background: linear-gradient(180deg, #ffffff 0%, #f7f9fb 58%, #f1f5f8 100%);
}

.pn-scroll .focus-screen {
  min-height: calc(90dvh - 72px);
  padding: clamp(30px, 4vh, 50px) 0;
}

.pn-scroll .focus-screen::before {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(247, 249, 251, 0.72) 52%, rgba(241, 245, 248, 0.9)),
    radial-gradient(circle at var(--pn-spot-x, 72%) var(--pn-spot-y, 42%), rgba(10, 132, 255, 0.07), transparent 24rem);
}

.pn-hero-inner {
  gap: clamp(14px, 2vh, 22px);
  min-height: min(700px, calc(100dvh - 132px));
}

.pn-hero-copy {
  max-width: 820px;
}

.pn-hero-copy h1 {
  font-size: clamp(38px, 4.8vw, 66px);
  font-weight: 780;
  letter-spacing: 0;
}

html[lang="zh-CN"] .pn-hero-copy h1 {
  font-size: clamp(34px, 4.2vw, 58px);
  line-height: 1.1;
  letter-spacing: 0;
}

.pn-hero-copy p,
.pn-feature-copy p {
  color: #5f6b7c;
}

.pn-hero-visual::before {
  opacity: 0.42;
  filter: blur(28px);
}

.pn-mac-frame,
.pn-demo,
.pn-trust-panel {
  box-shadow:
    0 18px 46px rgba(16, 24, 40, 0.11),
    0 4px 14px rgba(16, 24, 40, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.pn-feature-grid,
.pn-feature-grid.reverse {
  gap: clamp(30px, 4.6vw, 64px);
}

.pn-feature-copy h2 {
  font-size: clamp(34px, 3.6vw, 52px);
  font-weight: 760;
  letter-spacing: 0;
}

html[lang="zh-CN"] .pn-feature-copy h2 {
  font-size: clamp(30px, 3.3vw, 46px);
  line-height: 1.12;
  letter-spacing: 0;
}

.pn-proofbar span,
.pn-mini-list span {
  box-shadow: none;
}

.pn-result,
.pn-route span,
.pn-clip-flow span,
.pn-search-overlay,
.pn-trust-row {
  box-shadow: 0 10px 26px rgba(16, 24, 40, 0.08);
}

.pn-content-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 14px;
}

.pn-content-card {
  min-height: 132px;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 18px;
  border: 1px solid rgba(20, 32, 48, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
}

.pn-content-card span {
  width: fit-content;
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border: 1px solid rgba(10, 132, 255, 0.16);
  border-radius: 8px;
  color: #0a4d9c;
  background: rgba(10, 132, 255, 0.06);
  font-size: 11px;
  font-weight: 760;
}

.pn-content-card strong {
  color: var(--pn-ink);
  font-size: 16px;
  line-height: 1.3;
}

.pn-content-card small,
.pn-content-card code {
  color: var(--pn-muted);
  font-size: 13px;
  line-height: 1.45;
}

.pn-content-card code {
  overflow: hidden;
  padding: 9px 10px;
  border: 1px solid rgba(20, 32, 48, 0.09);
  border-radius: 8px;
  background: rgba(244, 247, 250, 0.9);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.pn-content-card.image::after {
  content: "";
  display: block;
  height: 38px;
  margin-top: 2px;
  border: 1px solid rgba(20, 32, 48, 0.08);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(10, 132, 255, 0.18), rgba(14, 185, 130, 0.16)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.5), transparent);
}

.pn-content .pn-feature-grid {
  grid-template-columns: 1fr;
  gap: clamp(18px, 3vw, 34px);
}

.pn-content .pn-feature-copy {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(300px, 0.58fr);
  column-gap: clamp(28px, 5vw, 80px);
  align-items: end;
}

.pn-content .pn-feature-copy .screen-index {
  grid-column: 1 / -1;
}

.pn-content .pn-feature-copy h2 {
  max-width: 860px;
  margin-top: 12px;
  font-size: clamp(34px, 3.8vw, 54px);
}

html[lang="zh-CN"] .pn-content .pn-feature-copy h2 {
  font-size: clamp(30px, 3.4vw, 48px);
}

.pn-content .pn-feature-copy p {
  grid-column: 2;
  grid-row: 2 / span 2;
  margin-top: 0;
}

.pn-content .pn-feature-copy .pn-mini-list {
  grid-column: 1;
}

.pn-content-showcase {
  display: grid;
  gap: 14px;
  padding: 14px;
  background:
    radial-gradient(circle at 12% 0%, rgba(48, 151, 226, 0.14), transparent 20rem),
    radial-gradient(circle at 92% 24%, rgba(245, 154, 24, 0.12), transparent 18rem),
    linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
}

.pn-content-types-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.pn-content-shot,
.pn-content-preview {
  min-width: 0;
  overflow: hidden;
  margin: 0;
  border: 1px solid rgba(91, 111, 139, 0.14);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 16px 34px rgba(31, 38, 52, 0.09);
}

.pn-content-shot {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
}

.pn-content-shot img {
  width: 100%;
  height: clamp(96px, 11vw, 158px);
  min-height: 0;
  display: block;
  object-fit: contain;
  object-position: center center;
  background:
    linear-gradient(180deg, rgba(248, 251, 255, 0.96), rgba(255, 255, 255, 0.94));
}

.pn-content-shot figcaption,
.pn-content-preview figcaption {
  display: grid;
  gap: 5px;
  padding: 9px 11px;
  border-top: 1px solid rgba(91, 111, 139, 0.12);
  background: rgba(255, 255, 255, 0.94);
}

.pn-content-shot figcaption span,
.pn-content-preview figcaption span {
  width: fit-content;
  color: #f59a18;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pn-content-shot figcaption strong,
.pn-content-preview figcaption strong {
  color: #111827;
  font-size: 12px;
  line-height: 1.28;
}

.pn-content-preview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.34fr);
  align-items: stretch;
}

.pn-content-preview img {
  width: 100%;
  height: clamp(210px, 22vw, 330px);
  min-height: 0;
  display: block;
  object-fit: contain;
  object-position: center center;
  background:
    linear-gradient(180deg, rgba(248, 251, 255, 0.96), rgba(255, 255, 255, 0.94));
}

.pn-content-preview figcaption {
  border-top: 0;
  border-left: 1px solid rgba(91, 111, 139, 0.12);
  align-content: center;
  padding: 16px;
}

.pn-content-preview figcaption strong {
  font-size: 18px;
}

.pn-content-preview figcaption small {
  color: var(--pn-muted);
  font-size: 13px;
  line-height: 1.55;
}

@media (max-width: 980px) {
  .pn-content .pn-feature-grid {
    grid-template-columns: 1fr;
  }

  .pn-content .pn-feature-copy {
    grid-template-columns: 1fr;
  }

  .pn-content .pn-feature-copy p,
  .pn-content .pn-feature-copy .pn-mini-list {
    grid-column: auto;
    grid-row: auto;
  }

  .pn-content .pn-feature-copy p {
    max-width: 760px;
    margin-top: 18px;
  }

  .pn-content-preview {
    grid-template-columns: 1fr;
  }

  .pn-content-preview figcaption {
    border-top: 1px solid rgba(91, 111, 139, 0.12);
    border-left: 0;
  }
}

@media (max-width: 680px) {
  .pn-content-showcase {
    padding: 12px;
  }

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

  .pn-content-shot img {
    height: 112px;
  }

  .pn-content-preview img {
    height: 230px;
  }
}

.pn-nowrap {
  white-space: nowrap;
}

html[lang="zh-CN"] .pn-hero-copy h1,
html[lang="zh-CN"] .pn-feature-copy h2 {
  text-wrap: balance;
}

@media (max-width: 680px) {
  .pn-scroll .focus-screen {
    padding: 56px 0;
  }

  .pn-hero-copy h1,
  html[lang="zh-CN"] .pn-hero-copy h1 {
    font-size: 36px;
  }

  .pn-feature-copy h2,
  html[lang="zh-CN"] .pn-feature-copy h2 {
    font-size: 34px;
  }

  .pn-content-panel {
    grid-template-columns: 1fr;
  }
}

/* SmartSearch real-case showcase. */
.pn-search-showcase {
  min-height: min(620px, 52vw);
  padding: 16px;
  border-color: rgba(13, 20, 33, 0.12);
  color: #101827;
  background:
    radial-gradient(circle at 18% 0%, rgba(48, 151, 226, 0.16), transparent 22rem),
    radial-gradient(circle at 88% 24%, rgba(245, 154, 24, 0.13), transparent 20rem),
    linear-gradient(180deg, #ffffff 0%, #f6fbff 100%);
}

.pn-search-showcase::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), transparent 34%),
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.72), transparent);
}

@media (max-width: 380px) {
  .pn-hero-copy h1,
  html[lang="zh-CN"] .pn-hero-copy h1 {
    font-size: 32px;
  }
}

/* PasteNext app icon palette. */
.brand-logo {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: block;
  border-radius: 11px;
  object-fit: cover;
  background: #ffa21a;
  box-shadow:
    0 13px 30px rgba(244, 128, 12, 0.2),
    0 2px 8px rgba(31, 38, 52, 0.08);
}

body.pastenext-story,
body.pastenext-legal {
  --pn-ink: #171923;
  --pn-muted: #626b78;
  --pn-soft: #87909d;
  --pn-line: rgba(31, 38, 52, 0.12);
  --pn-surface: rgba(255, 255, 255, 0.9);
  --pn-accent: #f59a18;
  --pn-accent-strong: #9b4700;
  --pn-accent-soft: rgba(245, 154, 24, 0.08);
  --pn-cool: #4a6fdc;
  --pn-glow: #fff3dc;
  --pn-wash: #f8fafc;
  color: var(--pn-ink);
}

body.pastenext-story {
  background: #f8fafc;
}

body.pastenext-legal {
  --bg: #f8fafc;
  --paper: #ffffff;
  --surface: #f2f5f8;
  --ink: #171923;
  --ink-soft: #3e4858;
  --muted: #657080;
  --line: #e4e9ef;
  --line-strong: #d8dce4;
  --cyan: #9b4700;
  --green: #248f67;
  background: #f8fafc;
}

html:has(body.pastenext-story),
html:has(body.pastenext-legal) {
  background: #f8fafc;
}

body.pastenext-story .story-header,
body.pastenext-legal .site-header {
  border-bottom-color: rgba(31, 38, 52, 0.08);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(18px) saturate(140%);
}

body.pastenext-story .story-header .brand,
body.pastenext-story .story-header .nav-links a,
body.pastenext-legal .brand,
body.pastenext-legal .nav-links a {
  color: var(--pn-ink);
}

body.pastenext-story .story-header .nav-links a:hover,
body.pastenext-story .story-header .nav-links a:focus-visible,
body.pastenext-story .story-header .nav-links a.is-current,
body.pastenext-legal .nav-links a:hover,
body.pastenext-legal .nav-links a:focus-visible {
  color: #7a3800;
  background: rgba(245, 154, 24, 0.1);
}

body.pastenext-story .story-header .nav-links a.is-current {
  box-shadow: inset 0 -2px 0 var(--pn-accent);
}

body.pastenext-story .story-header .lang-switch,
body.pastenext-legal .lang-switch {
  border-color: rgba(31, 38, 52, 0.1);
  background: rgba(255, 255, 255, 0.78);
}

body.pastenext-story .story-header .lang-switch button.is-active,
body.pastenext-legal .lang-switch button.is-active {
  color: #171923;
  background: rgba(255, 255, 255, 0.96);
}

body.pastenext-story .button:hover,
body.pastenext-story .button:focus-visible,
body.pastenext-legal .button:hover,
body.pastenext-legal .button:focus-visible {
  border-color: rgba(245, 154, 24, 0.5);
  outline-color: rgba(245, 154, 24, 0.18);
}

body.pastenext-story .button.primary,
body.pastenext-legal .button.primary {
  color: #ffffff;
  border-color: #d8790f;
  background: #f59a18;
  box-shadow:
    0 16px 34px rgba(245, 154, 24, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

body.pastenext-story .pn-scroll .focus-screen::before {
  background: transparent;
}

body.pastenext-story .story-footer {
  scroll-snap-align: end;
  scroll-snap-stop: always;
}

body.pastenext-story .pn-hero-visual::before {
  background: rgba(245, 154, 24, 0.08);
}

body.pastenext-story .pn-mac-frame,
body.pastenext-story .pn-demo,
body.pastenext-story .pn-trust-panel,
body.pastenext-legal .legal-card {
  border-color: rgba(31, 38, 52, 0.1);
  background: rgba(255, 255, 255, 0.92);
}

body.pastenext-story .pn-search-overlay,
body.pastenext-story .pn-route span,
body.pastenext-story .pn-clip-flow span,
body.pastenext-story .pn-content-card span {
  border-color: rgba(245, 154, 24, 0.2);
}

body.pastenext-story .pn-search-dot {
  border-color: var(--pn-accent);
  box-shadow: 10px 10px 0 -4px var(--pn-accent);
}

body.pastenext-story .pn-result.is-primary {
  border-color: rgba(245, 154, 24, 0.4);
  box-shadow: 0 18px 42px rgba(245, 154, 24, 0.14);
}

body.pastenext-story .pn-content-card span {
  color: #7a3800;
  background: rgba(245, 154, 24, 0.08);
}

body.pastenext-story .pn-content-card.image::after {
  background: rgba(245, 154, 24, 0.1);
}

body.pastenext-legal .kicker,
body.pastenext-legal a {
  color: #7a3800;
}

body.pastenext-legal .legal-meta,
body.pastenext-legal .contact-box {
  background: rgba(255, 255, 255, 0.78);
}

body.pastenext-legal .legal-card,
body.pastenext-legal .legal-meta {
  box-shadow: 0 18px 48px rgba(31, 38, 52, 0.08);
}

body.pastenext-support {
  background:
    linear-gradient(135deg, #eef6ff 0%, #fbfbfd 42%, #f6f2ff 100%);
}

body.snapscene-page,
body.snapscene-legal {
  --ss-ink: #10141d;
  --ss-muted: #5f6a78;
  --ss-soft: #8a95a3;
  --ss-line: rgba(24, 32, 44, 0.12);
  --ss-panel: rgba(255, 255, 255, 0.88);
  --ss-blue: #1e3a5f;
  --ss-action: #2563eb;
  --ss-gold: #a16207;
  --ss-wash: #f8fafc;
  color: var(--ss-ink);
  background:
    linear-gradient(180deg, #f8fafc 0%, #ffffff 42%, #eef3f7 100%);
}

body.snapscene-page .site-header,
body.snapscene-legal .site-header {
  border-bottom-color: rgba(24, 32, 44, 0.08);
  background: rgba(255, 255, 255, 0.86);
}

body.snapscene-page .brand,
body.snapscene-page .nav-links a,
body.snapscene-legal .brand,
body.snapscene-legal .nav-links a {
  color: var(--ss-ink);
}

body.snapscene-page .nav-links a:hover,
body.snapscene-page .nav-links a:focus-visible,
body.snapscene-legal .nav-links a:hover,
body.snapscene-legal .nav-links a:focus-visible,
body.snapscene-legal .nav-links a[aria-current="page"] {
  color: var(--ss-blue);
  background: rgba(37, 99, 235, 0.08);
}

body.snapscene-page .lang-switch,
body.snapscene-legal .lang-switch {
  border-color: rgba(24, 32, 44, 0.1);
  background: rgba(255, 255, 255, 0.8);
}

body.snapscene-page .button.primary,
body.snapscene-legal .button.primary {
  color: #ffffff;
  border-color: var(--ss-blue);
  background: var(--ss-blue);
}

body.snapscene-page .button:hover,
body.snapscene-page .button:focus-visible,
body.snapscene-legal .button:hover,
body.snapscene-legal .button:focus-visible {
  border-color: rgba(37, 99, 235, 0.45);
  outline-color: rgba(37, 99, 235, 0.16);
}

.snapscene-hero {
  padding: clamp(74px, 9vw, 124px) 0 clamp(48px, 6vw, 84px);
  border-bottom: 1px solid var(--ss-line);
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.96), rgba(232, 239, 248, 0.78)),
    repeating-linear-gradient(90deg, rgba(16, 20, 29, 0.035) 0, rgba(16, 20, 29, 0.035) 1px, transparent 1px, transparent 84px);
}

.snapscene-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(380px, 1.1fr);
  gap: clamp(34px, 6vw, 76px);
  align-items: center;
}

.snapscene-copy {
  max-width: 660px;
}

.snapscene-copy h1 {
  font-size: clamp(44px, 6.4vw, 82px);
}

.snapscene-copy .lead {
  max-width: 640px;
}

.snapscene-app-mark {
  width: 72px;
  height: 72px;
  margin-bottom: 22px;
  border-radius: 18px;
  box-shadow: 0 18px 42px rgba(30, 58, 95, 0.18);
}

.snapscene-visual {
  overflow: hidden;
  padding: 10px;
  border: 1px solid var(--ss-line);
  border-radius: 8px;
  background: var(--ss-panel);
  box-shadow: 0 28px 78px rgba(24, 32, 44, 0.14);
}

.snapscene-visual img {
  border-radius: 6px;
  background: #e8edf3;
}

.snapscene-preview-strip {
  display: grid;
  gap: 10px;
}

.snapscene-preview-strip img:first-child {
  aspect-ratio: 1920 / 360;
  object-fit: cover;
}

.snapscene-before-after {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.snapscene-before-after figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(24, 32, 44, 0.1);
  border-radius: 6px;
  background: #eef3f7;
}

.snapscene-before-after img {
  aspect-ratio: 3670 / 2336;
  object-fit: cover;
}

.snapscene-before-after figcaption {
  padding: 10px 12px;
  color: var(--ss-muted);
  font-size: 13px;
  font-weight: 780;
}

.snapscene-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.snapscene-pill-row span,
.snapscene-pill-row a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid rgba(37, 99, 235, 0.16);
  border-radius: 999px;
  color: var(--ss-blue);
  background: rgba(255, 255, 255, 0.74);
  font-size: 13px;
  font-weight: 780;
}

.snapscene-section {
  padding: clamp(62px, 8vw, 104px) 0;
}

.snapscene-section.band {
  background: #eef3f7;
}

.snapscene-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.snapscene-feature-card {
  min-height: 250px;
  padding: 22px;
  border: 1px solid var(--ss-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 44px rgba(24, 32, 44, 0.07);
}

.snapscene-feature-card h3 {
  margin-bottom: 12px;
  font-size: 24px;
  line-height: 1.16;
}

.snapscene-feature-card p,
.snapscene-feature-card li {
  color: var(--ss-muted);
  line-height: 1.56;
}

.snapscene-feature-card ul {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding-left: 18px;
}

.snapscene-legal .kicker,
.snapscene-legal a {
  color: var(--ss-blue);
}

.snapscene-legal .legal-card,
.snapscene-legal .legal-meta {
  border-color: var(--ss-line);
  box-shadow: 0 18px 48px rgba(24, 32, 44, 0.08);
}

@media (prefers-reduced-motion: reduce) {
  .snapscene-visual,
  .snapscene-feature-card {
    transition: none;
  }
}

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

  .snapscene-before-after {
    grid-template-columns: 1fr;
  }
}

/* Product home refresh for EF Tools, PasteNext, and SnapScene. */
body.matrix-refresh,
body.product-refresh {
  --refresh-ink: #10141d;
  --refresh-muted: #5e6878;
  --refresh-line: rgba(22, 29, 42, 0.12);
  --refresh-panel: rgba(255, 255, 255, 0.9);
  --refresh-primary: #1e3a5f;
  --refresh-secondary: #2563eb;
  --refresh-accent: #a16207;
  color: var(--refresh-ink);
  background:
    linear-gradient(180deg, #f9fbff 0%, #ffffff 46%, #eef3f7 100%),
    repeating-linear-gradient(90deg, rgba(16, 20, 29, 0.035) 0, rgba(16, 20, 29, 0.035) 1px, transparent 1px, transparent 80px);
}

body.product-pastenext {
  --refresh-primary: #9b4700;
  --refresh-secondary: #f59a18;
  --refresh-accent: #2563eb;
  background:
    linear-gradient(180deg, #fffaf2 0%, #ffffff 45%, #f7f1e8 100%),
    repeating-linear-gradient(90deg, rgba(155, 71, 0, 0.04) 0, rgba(155, 71, 0, 0.04) 1px, transparent 1px, transparent 80px);
}

body.product-snapscene {
  --refresh-primary: #1e3a5f;
  --refresh-secondary: #2563eb;
  --refresh-accent: #a16207;
}

.refresh-nav-wrap {
  position: sticky;
  top: 0;
  z-index: 30;
  padding: 14px 0 0;
}

.refresh-nav {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 10px 8px 12px;
  border: 1px solid var(--refresh-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 44px rgba(22, 29, 42, 0.08);
  backdrop-filter: blur(18px) saturate(150%);
}

.refresh-brand {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 17px;
  font-weight: 860;
}

.refresh-brand img,
.refresh-product-top img {
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(22, 29, 42, 0.12);
}

.refresh-brand img {
  width: 38px;
  height: 38px;
}

.refresh-brand-mark {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  color: #ffffff;
  background: var(--refresh-primary);
  font-size: 13px;
  font-weight: 900;
}

.refresh-nav-links,
.refresh-nav-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.refresh-nav-links a,
.refresh-nav-actions a,
.lang-switch-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  color: var(--refresh-muted);
  background: transparent;
  font-size: 14px;
  font-weight: 780;
  font-family: inherit;
  cursor: pointer;
}

.refresh-nav-links a:hover,
.refresh-nav-links a:focus-visible,
.refresh-nav-actions a:hover,
.refresh-nav-actions a:focus-visible,
.lang-switch-button:hover,
.lang-switch-button:focus-visible,
.lang-switch-button.is-active {
  color: var(--refresh-primary);
  background: color-mix(in srgb, var(--refresh-secondary) 10%, transparent);
  outline: none;
}

.refresh-nav-actions .refresh-cta,
.refresh-button.primary {
  color: #ffffff;
  background: var(--refresh-primary);
}

.refresh-hero {
  padding: clamp(58px, 8vw, 102px) 0 clamp(46px, 7vw, 82px);
}

.refresh-center {
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
}

.refresh-badge {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid color-mix(in srgb, var(--refresh-secondary) 24%, transparent);
  border-radius: 999px;
  color: var(--refresh-primary);
  background: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 820;
}

.refresh-title {
  margin-top: 18px;
  font-size: clamp(48px, 8.5vw, 116px);
  line-height: 0.95;
  font-weight: 900;
}

.refresh-title span {
  color: var(--refresh-secondary);
}

.refresh-subtitle {
  max-width: 780px;
  margin: 22px auto 0;
  color: var(--refresh-muted);
  font-size: clamp(18px, 2.1vw, 24px);
  line-height: 1.52;
}

.refresh-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.refresh-button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 18px;
  border: 1px solid var(--refresh-line);
  border-radius: 8px;
  color: var(--refresh-ink);
  background: rgba(255, 255, 255, 0.82);
  font-weight: 860;
  box-shadow: 0 14px 34px rgba(22, 29, 42, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.refresh-button:hover,
.refresh-button:focus-visible {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--refresh-secondary) 42%, var(--refresh-line));
  box-shadow: 0 18px 42px rgba(22, 29, 42, 0.12);
  outline: 3px solid color-mix(in srgb, var(--refresh-secondary) 16%, transparent);
  outline-offset: 2px;
}

.refresh-showcase {
  margin-top: clamp(34px, 6vw, 62px);
  overflow: hidden;
  padding: 10px;
  border: 1px solid var(--refresh-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 28px 80px rgba(22, 29, 42, 0.14);
}

.refresh-window-bar {
  height: 32px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 8px;
}

.refresh-window-bar span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #d8dee8;
}

.refresh-window-bar span:first-child {
  background: #ff5f57;
}

.refresh-window-bar span:nth-child(2) {
  background: #febc2e;
}

.refresh-window-bar span:nth-child(3) {
  background: #28c840;
}

.refresh-showcase img,
.refresh-screenshot-grid img {
  border-radius: 6px;
  background: #edf2f7;
}

.refresh-marquee {
  overflow: hidden;
  border-top: 1px solid var(--refresh-line);
  border-bottom: 1px solid var(--refresh-line);
  background: rgba(255, 255, 255, 0.52);
}

.refresh-marquee-track {
  width: max-content;
  display: flex;
  gap: 12px;
  padding: 18px 0;
  animation: refreshMarquee 32s linear infinite;
}

.refresh-marquee:hover .refresh-marquee-track {
  animation-play-state: paused;
}

.refresh-pill {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border: 1px solid color-mix(in srgb, var(--refresh-secondary) 22%, var(--refresh-line));
  border-radius: 999px;
  color: var(--refresh-primary);
  background: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  font-weight: 820;
  white-space: nowrap;
}

.refresh-section {
  padding: clamp(58px, 8vw, 96px) 0;
}

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

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

.refresh-section-head h2 {
  margin-top: 12px;
  font-size: clamp(34px, 5.2vw, 64px);
  line-height: 1;
  font-weight: 900;
}

.refresh-section-head p {
  margin-top: 16px;
  color: var(--refresh-muted);
  font-size: 18px;
  line-height: 1.58;
}

.refresh-feature-grid,
.refresh-matrix-grid,
.refresh-shortcut-grid {
  display: grid;
  gap: 16px;
}

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

.refresh-card {
  min-height: 238px;
  padding: 22px;
  border: 1px solid var(--refresh-line);
  border-radius: 8px;
  background: var(--refresh-panel);
  box-shadow: 0 16px 40px rgba(22, 29, 42, 0.07);
}

.refresh-card h3 {
  margin-top: 14px;
  font-size: 24px;
  line-height: 1.14;
}

.refresh-card p {
  margin-top: 12px;
  color: var(--refresh-muted);
  line-height: 1.58;
}

.refresh-icon {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  color: #ffffff;
  background: var(--refresh-primary);
  font-weight: 900;
}

.refresh-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.refresh-tool {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid var(--refresh-line);
  border-radius: 8px;
  color: var(--refresh-muted);
  background: rgba(255, 255, 255, 0.68);
  font-size: 13px;
  font-weight: 760;
}

.refresh-screenshot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.refresh-shot {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--refresh-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 18px 44px rgba(22, 29, 42, 0.08);
}

.refresh-shot img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.refresh-shot figcaption {
  padding: 13px 14px 14px;
  color: var(--refresh-muted);
  font-size: 14px;
  font-weight: 760;
}

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

.refresh-support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.refresh-support-card {
  min-height: 246px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 22px;
  border: 1px solid var(--refresh-line);
  border-radius: 8px;
  color: var(--refresh-ink);
  background: var(--refresh-panel);
  box-shadow: 0 16px 40px rgba(22, 29, 42, 0.07);
}

.refresh-support-card h3 {
  margin-top: 14px;
  font-size: 24px;
  line-height: 1.14;
}

.refresh-support-card p {
  margin-top: 12px;
  color: var(--refresh-muted);
  line-height: 1.58;
}

.refresh-support-link {
  margin-top: auto;
  padding-top: 18px;
  color: var(--refresh-primary);
  font-weight: 860;
}

.refresh-faq-list {
  max-width: 920px;
  display: grid;
  gap: 14px;
  margin: 0 auto;
}

.refresh-faq-list details {
  overflow: hidden;
  border: 1px solid var(--refresh-line);
  border-radius: 8px;
  background: var(--refresh-panel);
  box-shadow: 0 14px 34px rgba(22, 29, 42, 0.06);
}

.refresh-faq-list summary {
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 22px;
  color: var(--refresh-ink);
  font-size: 18px;
  font-weight: 820;
  cursor: pointer;
  list-style: none;
}

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

.refresh-faq-list summary::before {
  content: "";
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-right: 2px solid var(--refresh-secondary);
  border-bottom: 2px solid var(--refresh-secondary);
  transform: rotate(45deg) translateY(-2px);
  transition: transform 160ms ease;
}

.refresh-faq-list details[open] summary::before {
  transform: rotate(225deg) translate(-2px, -1px);
}

.refresh-faq-list p {
  padding: 0 22px 22px 44px;
  color: var(--refresh-muted);
  font-size: 16px;
  line-height: 1.62;
}

.refresh-shortcut {
  min-height: 130px;
  padding: 18px;
  border: 1px solid var(--refresh-line);
  border-radius: 8px;
  background: #10141d;
  color: #ffffff;
}

.refresh-shortcut span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  font-weight: 760;
}

.refresh-keys {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 18px;
}

.refresh-keys kbd {
  min-width: 34px;
  min-height: 32px;
  display: inline-grid;
  place-items: center;
  padding: 0 9px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font: 800 14px/1 -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
}

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

.refresh-product-card {
  min-height: 470px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--refresh-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 20px 58px rgba(22, 29, 42, 0.09);
}

.refresh-product-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.refresh-product-top img {
  width: 54px;
  height: 54px;
}

.refresh-product-card h3 {
  font-size: 32px;
}

.refresh-product-card p {
  color: var(--refresh-muted);
  line-height: 1.58;
}

.refresh-product-card .refresh-showcase {
  margin-top: 0;
  box-shadow: none;
}

.refresh-footer {
  padding: 34px 0 44px;
  border-top: 1px solid var(--refresh-line);
}

.refresh-footer .footer-inner {
  align-items: center;
}

@keyframes refreshMarquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .refresh-marquee-track {
    animation: none;
  }

  .refresh-button {
    transition: none;
  }

  .refresh-button:hover,
  .refresh-button:focus-visible {
    transform: none;
  }
}

@media (max-width: 960px) {
  .refresh-nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .refresh-nav-links,
  .refresh-nav-actions {
    flex-wrap: wrap;
  }

  .refresh-feature-grid,
  .refresh-screenshot-grid,
  .refresh-matrix-grid,
  .refresh-support-grid,
  .refresh-shortcut-grid {
    grid-template-columns: 1fr;
  }

  .refresh-title {
    font-size: clamp(42px, 14vw, 72px);
  }
}

.support-page {
  min-height: 100dvh;
  padding: clamp(34px, 5vw, 64px) 0 clamp(58px, 7vw, 96px);
}

.support-hero {
  padding: clamp(14px, 3vw, 36px) 0 clamp(30px, 4.5vw, 56px);
  text-align: center;
}

.support-hero-inner {
  display: grid;
  justify-items: center;
}

.support-app-icon {
  width: 78px;
  height: 78px;
  border-radius: 18px;
  box-shadow:
    0 22px 50px rgba(244, 128, 12, 0.24),
    0 2px 10px rgba(31, 38, 52, 0.08);
}

.support-hero h1 {
  max-width: 760px;
  margin-top: 24px;
  color: var(--pn-ink);
  font-size: clamp(34px, 4.4vw, 56px);
  line-height: 1.06;
  font-weight: 830;
  letter-spacing: 0;
}

.support-hero p {
  max-width: 620px;
  margin-top: 16px;
  color: var(--pn-muted);
  font-size: clamp(16px, 1.5vw, 20px);
  line-height: 1.58;
}

.support-actions {
  margin-top: -10px;
}

.support-action-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}

.support-action-card,
.support-info-card,
.support-panel-inner {
  border: 1px solid rgba(31, 38, 52, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 22px 60px rgba(31, 38, 52, 0.09);
}

.support-action-card {
  min-height: 286px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 16px;
  padding: 34px 28px;
  text-align: center;
}

.support-action-card[href] {
  color: inherit;
  text-decoration: none;
}

.support-action-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
}

.support-action-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.support-icon-blue {
  color: #3d72d8;
}

.support-icon-red {
  color: #c74545;
}

.support-icon-gold {
  color: #a66a00;
}

.support-action-card h2 {
  color: var(--pn-ink);
  font-size: 22px;
  line-height: 1.16;
  font-weight: 830;
}

.support-action-card p {
  max-width: 250px;
  color: var(--pn-muted);
  font-size: 16px;
  line-height: 1.52;
}

.support-pill {
  min-width: 168px;
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 28px;
  border: 1px solid rgba(31, 38, 52, 0.16);
  border-radius: 999px;
  color: var(--pn-ink);
  background: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  font-weight: 850;
  letter-spacing: 0;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    0 12px 28px rgba(31, 38, 52, 0.05);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.support-pill:hover,
.support-pill:focus-visible,
.support-action-card[href]:hover .support-pill,
.support-action-card[href]:focus-visible .support-pill,
.support-related-links a:hover,
.support-related-links a:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(31, 38, 52, 0.24);
  background: rgba(255, 255, 255, 0.96);
  outline: 3px solid rgba(245, 154, 24, 0.12);
  outline-offset: 2px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    0 16px 34px rgba(31, 38, 52, 0.1);
}

.support-panel,
.support-info-grid {
  margin-top: clamp(44px, 7vw, 88px);
}

.support-panel-inner {
  max-width: 900px;
  padding: clamp(28px, 5vw, 60px);
}

.support-panel-inner h2,
.support-info-card h2 {
  color: var(--pn-ink);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.12;
  font-weight: 820;
  letter-spacing: 0;
}

.support-panel-inner > h2 {
  text-align: center;
}

.support-faq-list {
  display: grid;
  gap: 16px;
  margin-top: 36px;
}

.support-faq-list details {
  border: 1px solid rgba(31, 38, 52, 0.09);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  overflow: hidden;
}

.support-faq-list summary {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 28px;
  color: var(--pn-ink);
  font-size: 18px;
  font-weight: 760;
  cursor: pointer;
  list-style: none;
}

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

.support-faq-list summary::before {
  content: "";
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-right: 2px solid #7654c8;
  border-bottom: 2px solid #7654c8;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 160ms ease;
}

.support-faq-list details[open] summary::before {
  transform: rotate(225deg) translate(-2px, -1px);
}

.support-faq-list p {
  padding: 0 28px 24px 54px;
  color: var(--pn-muted);
  font-size: 16px;
  line-height: 1.6;
}

.support-info-inner {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
}

.support-info-card {
  padding: clamp(26px, 4vw, 42px);
}

.support-info-card ul,
.support-info-card ol {
  display: grid;
  gap: 16px;
  margin: 26px 0 0;
  padding-left: 22px;
  color: var(--pn-muted);
  font-size: 17px;
  line-height: 1.58;
}

.support-info-card strong {
  color: var(--pn-ink);
}

.support-template-panel .support-panel-inner {
  max-width: 980px;
  text-align: left;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.8));
}

.support-template-panel .support-panel-inner > h2 {
  max-width: 680px;
  text-align: left;
}

.support-template-panel p {
  margin: 26px 0 0;
  padding: 18px 20px;
  border: 1px solid rgba(31, 38, 52, 0.08);
  border-left: 3px solid rgba(245, 154, 24, 0.7);
  border-radius: 8px;
  color: var(--pn-muted);
  background: rgba(245, 154, 24, 0.06);
  font-size: 16px;
  line-height: 1.6;
}

.support-check-grid {
  counter-reset: support-check-item;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 30px;
}

.support-check-grid > span {
  counter-increment: support-check-item;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid rgba(31, 38, 52, 0.1);
  border-radius: 8px;
  color: var(--pn-ink);
  background: rgba(255, 255, 255, 0.78);
  font-size: 17px;
  font-weight: 780;
  box-shadow: 0 12px 26px rgba(31, 38, 52, 0.06);
}

.support-check-grid > span::before {
  content: counter(support-check-item, decimal-leading-zero);
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #7a3800;
  background: rgba(245, 154, 24, 0.12);
  font-size: 12px;
  font-weight: 850;
}

.support-links-inner {
  align-items: stretch;
}

.support-related-links {
  display: grid;
  gap: 12px;
  margin-top: 26px;
}

.support-related-links a {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  border: 1px solid rgba(31, 38, 52, 0.1);
  border-radius: 8px;
  color: var(--pn-ink);
  background: rgba(255, 255, 255, 0.72);
  font-weight: 780;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.support-related-links a::after {
  content: "\2197";
  color: var(--pn-accent-strong);
}

@media (max-width: 960px) {
  .support-action-grid,
  .support-info-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .support-page {
    padding-top: 34px;
  }

  .support-hero h1 {
    font-size: clamp(32px, 9vw, 38px);
  }

  .support-app-icon {
    width: 64px;
    height: 64px;
    border-radius: 15px;
  }

  .support-action-card {
    min-height: auto;
    padding: 28px 20px;
  }

  .support-panel-inner,
  .support-info-card {
    padding: 24px 18px;
  }

  .support-faq-list summary {
    min-height: 64px;
    padding: 0 18px;
    font-size: 16px;
  }

  .support-faq-list p {
    padding: 0 18px 20px 44px;
  }

  .support-check-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .brand-logo {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
    border-radius: 10px;
  }
}

/* SmartSearch Lab: typed query and focused result flow. */
body.pastenext-story .pn-search-lab {
  min-height: auto;
  padding: 18px;
  border-color: rgba(13, 20, 33, 0.12);
  color: #101827;
  background:
    radial-gradient(circle at 18% 0%, rgba(48, 151, 226, 0.17), transparent 22rem),
    radial-gradient(circle at 88% 26%, rgba(245, 154, 24, 0.13), transparent 20rem),
    linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
}

.pn-lab-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.pn-lab-header span {
  color: #0b84d8;
  font-size: 12px;
  font-weight: 780;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pn-lab-header strong {
  color: #111827;
  font-size: 14px;
}

.pn-flow-stage {
  position: relative;
  min-height: auto;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto auto auto;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(157, 174, 203, 0.16);
  border-radius: 10px;
  background:
    linear-gradient(rgba(21, 101, 192, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21, 101, 192, 0.045) 1px, transparent 1px),
    radial-gradient(circle at 28% 8%, rgba(48, 151, 226, 0.13), transparent 24rem),
    radial-gradient(circle at 84% 70%, rgba(245, 154, 24, 0.1), transparent 20rem),
    rgba(255, 255, 255, 0.78);
  background-size: 34px 34px, 34px 34px, auto, auto, auto;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 28px 70px rgba(31, 38, 52, 0.11);
}

.pn-flow-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.7), transparent 18%, transparent 82%, rgba(255, 255, 255, 0.55));
}

.pn-flow-command,
.pn-flow-result-stack,
.pn-flow-progress {
  position: relative;
  z-index: 1;
}

.pn-flow-command {
  min-height: 56px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 0 15px;
  border: 1px solid rgba(91, 111, 139, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 16px 34px rgba(31, 38, 52, 0.08);
}

.pn-flow-command-label {
  color: #f59a18;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pn-flow-type {
  position: relative;
  min-width: 0;
  min-height: 24px;
  overflow: hidden;
  color: #101827;
  font-size: 16px;
  font-weight: 780;
}

.pn-flow-type::before {
  content: "";
  width: 13px;
  height: 13px;
  display: inline-block;
  margin-right: 11px;
  border: 2px solid #9db7ff;
  border-radius: 50%;
  box-shadow: 8px 8px 0 -5px #9db7ff;
  transform: translateY(1px);
}

.pn-flow-type-line,
.pn-flow-result,
.pn-flow-progress span {
  --case: var(--case-en);
}

html[lang="zh-CN"] .pn-flow-type-line,
html[lang="zh-CN"] .pn-flow-result,
html[lang="zh-CN"] .pn-flow-progress span {
  --case: var(--case-zh);
}

html[lang="en"] .pn-flow-type-line,
html[lang="en"] .pn-flow-result,
html[lang="en"] .pn-flow-progress span {
  --case: var(--case-en);
}

.pn-flow-type-line {
  position: absolute;
  top: 0;
  left: 26px;
  width: 0;
  max-width: calc(100% - 30px);
  overflow: hidden;
  opacity: 0;
  border-right: 2px solid #0b84d8;
  white-space: nowrap;
  animation: pnTypeLine 42s steps(var(--chars)) infinite;
  animation-delay: calc(var(--case) * 7s);
}

.pn-flow-result-stack {
  display: grid;
  height: auto;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(91, 111, 139, 0.16);
  border-radius: 10px;
  background: #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 26px 54px rgba(31, 38, 52, 0.14);
}

.pn-flow-status {
  position: absolute;
  z-index: 8;
  top: 13px;
  right: 13px;
  padding: 7px 10px;
  border: 1px solid rgba(91, 111, 139, 0.16);
  border-radius: 999px;
  color: #3f5068;
  background: rgba(255, 255, 255, 0.78);
  font-size: 11px;
  font-weight: 780;
  backdrop-filter: blur(14px);
}

.pn-flow-result {
  position: relative;
  grid-area: 1 / 1;
  display: block;
  margin: 0;
  opacity: 0;
  transform: translate3d(0, 18px, 0) scale(0.985);
  animation: pnResultFocus 42s ease-in-out infinite;
  animation-delay: calc(var(--case) * 7s);
  will-change: transform, opacity;
}

.pn-flow-result::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(100deg, transparent 0 43%, rgba(255, 255, 255, 0.45) 50%, transparent 57% 100%),
    radial-gradient(circle at 28% 28%, transparent 0 11rem, rgba(255, 255, 255, 0.16) 19rem);
  opacity: 0;
  transform: translateX(-130%);
  animation: pnResultScan 42s ease-in-out infinite;
  animation-delay: calc(var(--case) * 7s);
}

.pn-flow-result img {
  width: 100%;
  height: auto;
  min-height: 0;
  display: block;
  aspect-ratio: 3672 / 712;
  object-fit: cover;
  object-position: var(--x) var(--y);
  background:
    linear-gradient(180deg, rgba(248, 251, 255, 0.96), rgba(255, 255, 255, 0.94));
}

.pn-flow-result figcaption {
  position: static;
  max-width: calc(100% - 28px);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border-top: 1px solid rgba(91, 111, 139, 0.12);
  border-radius: 0;
  color: #3f5068;
  background: rgba(255, 255, 255, 0.94);
}

.pn-flow-result figcaption span {
  color: #f59a18;
  font-size: 11px;
  font-weight: 850;
}

.pn-flow-result figcaption strong {
  overflow: hidden;
  color: #111827;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pn-flow-progress {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.pn-flow-progress span {
  height: 4px;
  overflow: hidden;
  order: var(--case);
  border-radius: 999px;
  background: rgba(91, 111, 139, 0.14);
}

.pn-flow-progress span::before {
  content: "";
  width: 100%;
  height: 100%;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, #f59a18, #0b84d8);
  transform: translateX(-105%);
  animation: pnFlowProgress 42s linear infinite;
  animation-delay: calc(var(--case) * 7s);
}

.pn-search-lab.is-resequencing .pn-flow-type-line,
.pn-search-lab.is-resequencing .pn-flow-result,
.pn-search-lab.is-resequencing .pn-flow-result::after,
.pn-search-lab.is-resequencing .pn-flow-progress span::before {
  animation-name: none !important;
}

@keyframes pnTypeLine {
  0% {
    width: 0;
    opacity: 0;
    border-color: transparent;
  }
  0.7%, 1.2% {
    width: 0;
    opacity: 1;
    border-color: #0b84d8;
  }
  3.4%, 15.6% {
    width: var(--typing-width);
    opacity: 1;
    border-color: #0b84d8;
  }
  16.4%, 100% {
    width: var(--typing-width);
    opacity: 0;
    border-color: transparent;
  }
}

@keyframes pnResultFocus {
  0%, 3.4% {
    opacity: 0;
    transform: translate3d(0, 18px, 0) scale(0.985);
  }
  4.4%, 15.7% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
  16.4%, 100% {
    opacity: 0;
    transform: translate3d(0, -10px, 0) scale(0.992);
  }
}

@keyframes pnResultScan {
  0%, 4.4% {
    opacity: 0;
    transform: translateX(-130%);
  }
  7.8% {
    opacity: 0.78;
  }
  13.6%, 100% {
    opacity: 0;
    transform: translateX(130%);
  }
}

@keyframes pnFlowProgress {
  0% {
    transform: translateX(-105%);
  }
  15.7% {
    transform: translateX(0);
  }
  16.4%, 100% {
    transform: translateX(105%);
  }
}

@media (max-width: 980px) {
  .pn-search .pn-feature-copy {
    grid-template-columns: 1fr;
  }

  .pn-search .pn-feature-copy p,
  .pn-search .pn-feature-copy .pn-mini-list {
    grid-column: auto;
    grid-row: auto;
  }

  .pn-search .pn-feature-copy p {
    max-width: 760px;
    margin-top: 18px;
  }

  .pn-flow-stage {
    min-height: auto;
  }
}

@media (max-width: 680px) {
  body.pastenext-story .pn-search-lab {
    min-height: auto;
    padding: 12px;
  }

  .pn-lab-header,
  .pn-flow-result figcaption {
    align-items: flex-start;
    flex-direction: column;
  }

  .pn-flow-stage {
    min-height: auto;
    padding: 12px;
  }

  .pn-flow-command {
    min-height: 74px;
    grid-template-columns: 1fr;
    align-content: center;
    gap: 6px;
    padding: 10px 12px;
  }

  .pn-flow-type {
    font-size: 13px;
  }

  .pn-flow-type-line {
    left: 24px;
  }

  .pn-flow-status {
    display: none;
  }

  .pn-flow-result figcaption {
    max-width: none;
    gap: 6px;
    padding: 8px 10px;
  }

  .pn-flow-result figcaption strong {
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pn-flow-type-line,
  .pn-flow-result,
  .pn-flow-result::after,
  .pn-flow-progress span::before {
    animation: none;
  }

  html[lang="en"] .pn-flow-type-line.is-first-en,
  html[lang="zh-CN"] .pn-flow-type-line.is-first-zh {
    width: auto;
    opacity: 1;
    border-color: transparent;
  }

  html[lang="en"] .pn-flow-result.is-first-en,
  html[lang="zh-CN"] .pn-flow-result.is-first-zh {
    opacity: 1;
    transform: none;
  }

  html[lang="en"] .pn-flow-progress span.is-first-en::before,
  html[lang="zh-CN"] .pn-flow-progress span.is-first-zh::before {
    transform: none;
  }
}

/* Auto Pinboard product proof: keep the real screenshots dominant and anchor-safe. */
.pn-pin-stage {
  height: clamp(360px, 38vw, 620px);
}

.pn-pin-stage::after {
  background: none;
}

.pn-pin-shot {
  animation-timing-function: cubic-bezier(.2, .8, .2, 1);
}

.pn-pin-shot img {
  filter: none;
}

@keyframes pnPinShowcase {
  0%, 31.4% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
  33.333%, 100% {
    opacity: 0;
    transform: translate3d(-14px, 0, 0) scale(0.992);
  }
}

@keyframes pnPinProgress {
  0% {
    transform: translateX(-105%);
  }
  31.4% {
    transform: translateX(0);
  }
  33.333%, 100% {
    transform: translateX(105%);
  }
}

@media (max-width: 980px) {
  html:has(body.pastenext-story) {
    scroll-padding-top: 220px;
  }

  .pn-scroll .focus-screen {
    scroll-margin-top: 220px;
  }

  .pn-pin-stage {
    height: clamp(340px, 64vw, 540px);
  }
}

@media (max-width: 680px) {
  html:has(body.pastenext-story) {
    scroll-padding-top: 220px;
  }

  .pn-scroll .focus-screen {
    scroll-margin-top: 220px;
  }

  .pn-pin-stage {
    height: clamp(320px, 86vw, 460px);
  }
}

/* Product navigation: compact top-level links, ready for future Pricing or release pages. */
.story-header .nav-links {
  overflow: visible;
}

@media (max-width: 960px) {
  .story-header .nav {
    min-height: 72px;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 10px;
    padding: 0;
  }

  .story-header .brand,
  .story-header .nav-links {
    flex: 0 0 auto;
    width: auto;
    padding-bottom: 0;
  }

  .story-header .nav-actions {
    width: auto;
    margin-left: auto;
    justify-content: flex-end;
  }

  html:has(body.pastenext-story) {
    scroll-padding-top: 92px;
  }

  .pn-scroll .focus-screen {
    scroll-margin-top: 92px;
  }
}

@media (max-width: 680px) {
  .story-header .nav {
    min-height: auto;
    flex-wrap: wrap;
    gap: 8px 10px;
    padding: 10px 0;
  }

  .story-header .brand {
    font-size: 16px;
  }

  .story-header .nav-links {
    order: 3;
  }

  .story-header .nav-actions {
    margin-left: auto;
  }

  html:has(body.pastenext-story) {
    scroll-padding-top: 118px;
  }

  .pn-scroll .focus-screen {
    scroll-margin-top: 118px;
  }
}

/* Local First: make import/export backup ownership concrete without turning the page into settings UI. */
body.pastenext-story .pn-local-panel {
  align-content: start;
  gap: 18px;
  padding: clamp(18px, 2.5vw, 28px);
}

body.pastenext-story .pn-local-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(31, 38, 52, 0.12);
}

body.pastenext-story .pn-local-head strong {
  color: var(--pn-ink);
  font-size: clamp(22px, 2.1vw, 30px);
  font-weight: 760;
}

body.pastenext-story .pn-local-icon {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  color: #0a5fd7;
  background: rgba(10, 132, 255, 0.1);
}

body.pastenext-story .pn-local-icon svg,
body.pastenext-story .pn-local-actions svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body.pastenext-story .pn-local-panel p {
  max-width: 680px;
  color: var(--pn-muted);
  font-size: clamp(17px, 1.45vw, 21px);
  line-height: 1.55;
}

body.pastenext-story .pn-backup-flow {
  display: grid;
  gap: 10px;
}

body.pastenext-story .pn-backup-row {
  min-height: 78px;
  display: grid;
  grid-template-columns: minmax(90px, 0.24fr) minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  padding: 14px 16px;
  border: 1px solid rgba(31, 38, 52, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 12px 28px rgba(16, 24, 40, 0.06);
}

body.pastenext-story .pn-backup-row > span:first-child {
  color: #7a3800;
  font-size: 12px;
  font-weight: 820;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.pastenext-story .pn-backup-row > strong {
  color: var(--pn-ink);
  font-size: clamp(15px, 1.15vw, 17px);
  font-weight: 680;
  line-height: 1.38;
}

body.pastenext-story .pn-backup-row.is-primary {
  border-color: rgba(245, 154, 24, 0.32);
  background:
    linear-gradient(90deg, rgba(245, 154, 24, 0.12), rgba(255, 255, 255, 0.78));
}

body.pastenext-story .pn-local-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 4px;
}

body.pastenext-story .pn-local-actions span {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  border: 1px solid rgba(31, 38, 52, 0.12);
  border-radius: 8px;
  color: var(--pn-ink);
  background: rgba(255, 255, 255, 0.82);
  font-size: 15px;
  font-weight: 760;
}

body.pastenext-story .pn-local-actions span:first-child {
  color: #ffffff;
  border-color: #2f7df4;
  background: linear-gradient(135deg, #3c86f6, #256dce);
  box-shadow: 0 14px 30px rgba(47, 125, 244, 0.18);
}

@media (max-width: 680px) {
  body.pastenext-story .pn-backup-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  body.pastenext-story .pn-local-actions span {
    flex: 1 1 150px;
  }
}

/* PasteNext Blog: tutorial pages with replaceable media slots. */
body.pastenext-blog {
  --pn-ink: #171923;
  --pn-muted: #626b78;
  --pn-soft: #87909d;
  --pn-line: rgba(31, 38, 52, 0.12);
  --pn-accent: #f59a18;
  --pn-accent-strong: #9b4700;
  color: var(--pn-ink);
  background:
    radial-gradient(circle at 50% -16%, rgba(245, 154, 24, 0.12), transparent 34rem),
    radial-gradient(circle at 84% 8%, rgba(47, 125, 244, 0.1), transparent 30rem),
    #f8fafc;
}

html:has(body.pastenext-blog) {
  background: #f8fafc;
  scroll-padding-top: 92px;
  scroll-snap-type: none;
}

body.pastenext-blog .site-header {
  border-bottom-color: rgba(31, 38, 52, 0.08);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px) saturate(140%);
}

body.pastenext-blog .brand,
body.pastenext-blog .nav-links a {
  color: var(--pn-ink);
}

body.pastenext-blog .nav-links a:hover,
body.pastenext-blog .nav-links a:focus-visible,
body.pastenext-blog .nav-links a[aria-current="page"],
body.pastenext-legal .nav-links a[aria-current="page"] {
  color: #7a3800;
  background: rgba(245, 154, 24, 0.1);
}

body.pastenext-blog .nav-links a[aria-current="page"],
body.pastenext-legal .nav-links a[aria-current="page"] {
  box-shadow: inset 0 -2px 0 var(--pn-accent);
}

body.pastenext-blog .lang-switch {
  border-color: rgba(31, 38, 52, 0.1);
  background: rgba(255, 255, 255, 0.78);
}

body.pastenext-blog .lang-switch button.is-active {
  color: #171923;
  background: rgba(255, 255, 255, 0.96);
}

.blog-page,
.blog-article-page {
  min-height: 100dvh;
}

.blog-hero {
  padding: clamp(70px, 10vw, 124px) 0 clamp(46px, 7vw, 86px);
}

.blog-page .blog-hero {
  padding: clamp(48px, 7vw, 86px) 0 clamp(18px, 4vw, 34px);
}

.blog-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.72fr);
  gap: clamp(32px, 5vw, 76px);
  align-items: center;
}

.blog-page .blog-hero-grid {
  grid-template-columns: minmax(0, 940px);
}

.blog-hero h1,
.blog-article-hero h1 {
  max-width: 900px;
  margin-top: 14px;
  color: var(--pn-ink);
  font-size: clamp(44px, 6vw, 82px);
  line-height: 0.98;
  font-weight: 820;
  letter-spacing: 0;
}

html[lang="zh-CN"] .blog-hero h1,
html[lang="zh-CN"] .blog-article-hero h1 {
  font-size: clamp(38px, 5vw, 68px);
  line-height: 1.08;
}

.blog-hero p:not(.kicker),
.blog-article-hero p:not(.blog-card-meta) {
  max-width: 780px;
  margin-top: 22px;
  color: var(--pn-muted);
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.55;
}

.blog-index-section {
  padding: 0 0 clamp(36px, 5vw, 64px);
}

.blog-page .blog-index-section {
  padding-top: clamp(12px, 2vw, 24px);
}

body.pastenext-blog .footer-inner {
  min-height: auto;
  padding-block: 24px;
}

.blog-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.blog-section-head h2 {
  color: var(--pn-ink);
  font-size: clamp(30px, 3.5vw, 48px);
  line-height: 1;
}

.blog-section-head p {
  max-width: 460px;
  color: var(--pn-muted);
  font-size: 16px;
  line-height: 1.55;
}

.blog-card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(18px, 2.2vw, 26px);
}

.blog-card a {
  min-height: 100%;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(300px, 0.42fr) minmax(0, 1fr);
  grid-template-areas:
    "cover meta"
    "cover title"
    "cover copy"
    "cover points"
    "cover action";
  align-items: center;
  gap: 13px clamp(20px, 3vw, 34px);
  padding: clamp(14px, 2vw, 20px);
  border: 1px solid rgba(31, 38, 52, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 46px rgba(16, 24, 40, 0.08);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.blog-card a::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, #f59a18, #0a84ff 55%, #14b88a);
  opacity: 0.82;
}

.blog-card a:hover,
.blog-card a:focus-visible {
  border-color: rgba(245, 154, 24, 0.38);
  box-shadow: 0 22px 54px rgba(16, 24, 40, 0.12);
  transform: translateY(-2px);
  outline: none;
}

.blog-card-cover {
  position: relative;
  display: block;
  grid-area: cover;
}

.blog-card img,
.blog-hero-image,
.blog-prose figure img,
.blog-image-grid img {
  border: 1px solid rgba(31, 38, 52, 0.1);
  border-radius: 8px;
  background: #ffffff;
}

.blog-card img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.blog-card-number {
  position: absolute;
  left: 12px;
  bottom: 12px;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  color: #ffffff;
  background: rgba(23, 25, 35, 0.78);
  box-shadow: 0 10px 24px rgba(16, 24, 40, 0.22);
  font-size: 12px;
  font-weight: 820;
}

.blog-card-meta {
  grid-area: meta;
  color: #7a3800;
  font-size: 12px;
  font-weight: 820;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.blog-card h3 {
  grid-area: title;
  color: var(--pn-ink);
  font-size: clamp(25px, 3vw, 42px);
  line-height: 1.12;
}

.blog-card p {
  grid-area: copy;
  max-width: 640px;
  color: var(--pn-muted);
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.55;
}

.blog-card-points {
  grid-area: points;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.blog-card-points span {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid rgba(31, 38, 52, 0.08);
  border-radius: 8px;
  color: #3f4958;
  background: rgba(248, 250, 252, 0.86);
  font-size: 12px;
  font-weight: 760;
}

.blog-read-more {
  grid-area: action;
  min-height: 40px;
  width: fit-content;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
  padding: 0 13px;
  border: 1px solid rgba(31, 38, 52, 0.1);
  border-radius: 8px;
  color: var(--pn-ink);
  background: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  font-weight: 780;
}

.blog-card a:hover .blog-read-more,
.blog-card a:focus-visible .blog-read-more {
  color: #ffffff;
  border-color: #d8790f;
  background: #f59a18;
}

.blog-article {
  padding: clamp(46px, 7vw, 90px) 0 clamp(76px, 10vw, 128px);
}

.blog-back-link {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid rgba(31, 38, 52, 0.1);
  border-radius: 8px;
  color: var(--pn-muted);
  background: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  font-weight: 760;
}

.blog-back-link:hover,
.blog-back-link:focus-visible {
  color: #7a3800;
  background: rgba(245, 154, 24, 0.1);
  outline: none;
}

.blog-article-hero {
  display: grid;
  gap: 18px;
  padding: clamp(18px, 2.8vw, 28px);
  border: 1px solid rgba(31, 38, 52, 0.08);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(248, 250, 252, 0.78)),
    radial-gradient(circle at 82% 20%, rgba(10, 132, 255, 0.1), transparent 26rem),
    radial-gradient(circle at 16% 88%, rgba(245, 154, 24, 0.1), transparent 20rem);
  box-shadow: 0 20px 54px rgba(16, 24, 40, 0.08);
}

.blog-hero-image {
  margin-top: 14px;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  box-shadow: 0 22px 58px rgba(16, 24, 40, 0.12);
}

.blog-article-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 6px;
}

.blog-article-summary > div {
  padding: 16px;
  border: 1px solid rgba(31, 38, 52, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
}

.blog-article-summary strong {
  display: block;
  color: #7a3800;
  font-size: 12px;
  font-weight: 820;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.blog-article-summary span:last-child {
  display: block;
  margin-top: 8px;
  color: #344055;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 680;
}

.blog-article-layout {
  display: grid;
  grid-template-columns: minmax(180px, 0.22fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  margin-top: clamp(38px, 6vw, 76px);
}

.blog-toc {
  position: sticky;
  top: 98px;
  align-self: start;
  display: grid;
  gap: 6px;
}

.blog-toc a {
  min-height: 38px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 8px;
  color: var(--pn-muted);
  font-size: 14px;
  font-weight: 760;
}

.blog-toc a:hover,
.blog-toc a:focus-visible {
  color: #7a3800;
  background: rgba(245, 154, 24, 0.1);
  outline: none;
}

.blog-prose {
  max-width: 920px;
  display: grid;
  gap: clamp(42px, 6vw, 72px);
}

.blog-prose section {
  scroll-margin-top: 104px;
}

.blog-prose h2 {
  color: var(--pn-ink);
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.12;
  letter-spacing: 0;
}

.blog-prose p,
.blog-prose li {
  color: #4f5b6d;
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.72;
}

.blog-prose p,
.blog-prose ul,
.blog-prose figure,
.blog-callout-list,
.blog-note,
.blog-image-grid,
.blog-recipe-grid,
.blog-step-list,
.blog-scenario-grid,
.blog-feature-table,
.blog-checklist {
  margin-top: 18px;
}

.blog-prose ul {
  padding-left: 1.2em;
}

.blog-prose li + li {
  margin-top: 10px;
}

.blog-prose figure img {
  box-shadow: 0 16px 44px rgba(16, 24, 40, 0.1);
}

.blog-prose figcaption {
  margin-top: 10px;
  color: var(--pn-muted);
  font-size: 14px;
  line-height: 1.5;
}

.blog-callout-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.blog-callout-list > div,
.blog-note,
.blog-recipe,
.blog-step-list > li,
.blog-scenario-grid > div,
.blog-checklist > li {
  padding: 18px;
  border: 1px solid rgba(31, 38, 52, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}

.blog-callout-list strong,
.blog-note strong,
.blog-recipe strong,
.blog-step-list strong,
.blog-scenario-grid strong,
.blog-feature-table strong,
.blog-checklist strong {
  display: block;
  color: var(--pn-ink);
  font-size: 16px;
  font-weight: 780;
}

.blog-callout-list p,
.blog-note p,
.blog-recipe p,
.blog-step-list p,
.blog-scenario-grid p,
.blog-checklist p {
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.58;
}

.blog-recipe-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.blog-recipe code {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 12px;
  border: 1px solid rgba(31, 38, 52, 0.08);
  border-radius: 8px;
  color: #1f2937;
  background: #f8fafc;
  font-size: 14px;
  line-height: 1.5;
  white-space: normal;
}

.blog-step-list,
.blog-checklist {
  display: grid;
  gap: 12px;
  padding-left: 0;
  list-style: none;
}

.blog-step-list > li {
  counter-increment: blog-step;
  position: relative;
  padding-left: 58px;
}

.blog-step-list {
  counter-reset: blog-step;
}

.blog-step-list > li::before {
  content: counter(blog-step, decimal-leading-zero);
  position: absolute;
  left: 18px;
  top: 18px;
  color: var(--pn-accent);
  font-size: 13px;
  font-weight: 860;
}

.blog-scenario-grid,
.blog-feature-table {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

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

.blog-feature-table > div {
  padding: 16px;
  border: 1px solid rgba(31, 38, 52, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
}

.blog-checklist > li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
}

.blog-checklist > li::before {
  content: "";
  width: 18px;
  height: 18px;
  margin-top: 4px;
  border: 2px solid #0a84ff;
  border-radius: 50%;
  background: radial-gradient(circle, #0a84ff 0 34%, transparent 36%);
}

.blog-image-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.blog-image-grid img {
  aspect-ratio: 4 / 3;
  object-fit: contain;
}

.blog-next-guides {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: clamp(46px, 7vw, 84px);
}

.blog-next-guides a {
  min-height: 180px;
  display: grid;
  align-content: start;
  gap: 12px;
  padding: clamp(18px, 2.2vw, 24px);
  border: 1px solid rgba(31, 38, 52, 0.1);
  border-radius: 8px;
  color: var(--pn-ink);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(248, 250, 252, 0.78)),
    radial-gradient(circle at 90% 18%, rgba(10, 132, 255, 0.09), transparent 18rem);
  box-shadow: 0 16px 42px rgba(16, 24, 40, 0.08);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.blog-next-guides a:hover,
.blog-next-guides a:focus-visible {
  border-color: rgba(245, 154, 24, 0.36);
  box-shadow: 0 22px 54px rgba(16, 24, 40, 0.12);
  transform: translateY(-2px);
  outline: none;
}

.blog-next-guides strong {
  color: var(--pn-ink);
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.16;
}

.blog-next-guides span:not(.blog-card-meta) {
  color: var(--pn-muted);
  font-size: 15px;
  line-height: 1.58;
}

@media (max-width: 980px) {
  .blog-hero-grid,
  .blog-article-layout {
    grid-template-columns: 1fr;
  }

  .blog-toc {
    position: static;
    display: flex;
    flex-wrap: wrap;
  }

  .blog-callout-list,
  .blog-article-summary,
  .blog-recipe-grid,
  .blog-scenario-grid,
  .blog-feature-table,
  .blog-next-guides {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 960px) {
  body.pastenext-blog .nav {
    min-height: 72px;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 10px;
    padding: 0;
  }

  body.pastenext-blog .brand,
  body.pastenext-blog .nav-links {
    flex: 0 0 auto;
    width: auto;
    padding-bottom: 0;
  }

  body.pastenext-blog .nav-actions {
    width: auto;
    margin-left: auto;
    justify-content: flex-end;
  }
}

@media (max-width: 680px) {
  body.pastenext-blog .nav {
    min-height: auto;
    flex-wrap: wrap;
    gap: 8px 10px;
    padding: 10px 0;
  }

  body.pastenext-blog .brand {
    font-size: 16px;
  }

  body.pastenext-blog .nav-actions {
    margin-left: auto;
  }

  body.pastenext-blog .nav-links {
    order: 3;
  }

  .blog-hero,
  .blog-article {
    padding-top: 36px;
  }

  .blog-section-head {
    align-items: start;
    flex-direction: column;
  }

  .blog-card a {
    grid-template-columns: 1fr;
    grid-template-areas:
      "cover"
      "meta"
      "title"
      "copy"
      "points"
      "action";
    padding: 10px;
  }

  .blog-image-grid {
    grid-template-columns: 1fr;
  }
}

/* PasteNext Tutorial refresh: Chinese guide hub and Markdown-driven articles. */
.tutorial-site {
  --tutorial-panel: rgba(255, 255, 255, 0.9);
  --tutorial-panel-strong: #ffffff;
  --tutorial-blue: #0a84ff;
  --tutorial-green: #14b88a;
  --tutorial-shadow: 0 24px 70px rgba(16, 24, 40, 0.11);
}

.tutorial-hub-hero {
  padding: clamp(54px, 8vw, 108px) 0 clamp(28px, 5vw, 60px);
}

.tutorial-hub-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(360px, 1.12fr);
  gap: clamp(34px, 5vw, 76px);
  align-items: center;
}

.tutorial-hub-copy {
  max-width: 660px;
}

.tutorial-hub-copy h1 {
  color: var(--pn-ink);
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.04;
  letter-spacing: 0;
}

.tutorial-hub-copy p {
  margin-top: 20px;
  color: var(--pn-muted);
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.62;
}

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

.tutorial-hero-stack {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(130px, 0.32fr);
  gap: 12px;
  padding: clamp(12px, 2vw, 18px);
  border: 1px solid rgba(31, 38, 52, 0.1);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(241, 245, 249, 0.72)),
    linear-gradient(90deg, rgba(245, 154, 24, 0.1), rgba(10, 132, 255, 0.1));
  box-shadow: var(--tutorial-shadow);
}

.tutorial-hero-stack img {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(31, 38, 52, 0.1);
  border-radius: 8px;
  background: #ffffff;
  object-fit: cover;
  box-shadow: 0 16px 42px rgba(16, 24, 40, 0.1);
}

.tutorial-hero-stack .tutorial-stack-main {
  grid-row: span 2;
  height: 100%;
  aspect-ratio: 16 / 8;
  object-fit: contain;
}

.tutorial-hero-stack img:not(.tutorial-stack-main) {
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.tutorial-index-section {
  padding-bottom: clamp(64px, 9vw, 112px);
}

.tutorial-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 2.5vw, 28px);
}

.tutorial-card a {
  min-height: 100%;
  display: grid;
  align-content: start;
  gap: 13px;
  padding: clamp(14px, 2vw, 20px);
  border: 1px solid rgba(31, 38, 52, 0.1);
  border-radius: 8px;
  color: var(--pn-ink);
  background: var(--tutorial-panel);
  box-shadow: 0 18px 50px rgba(16, 24, 40, 0.08);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.tutorial-card a:hover,
.tutorial-card a:focus-visible {
  border-color: rgba(10, 132, 255, 0.26);
  box-shadow: var(--tutorial-shadow);
  transform: translateY(-2px);
  outline: none;
}

.tutorial-card-cover {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 8px;
  background: #ffffff;
}

.tutorial-card-cover img {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(31, 38, 52, 0.1);
  border-radius: 8px;
  object-fit: contain;
  background: #ffffff;
}

.tutorial-card h3 {
  color: var(--pn-ink);
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.14;
  letter-spacing: 0;
}

.tutorial-card p {
  color: var(--pn-muted);
  font-size: 16px;
  line-height: 1.62;
}

.tutorial-article {
  padding-top: clamp(32px, 5vw, 64px);
}

.tutorial-article-hero {
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 0.78fr);
  align-items: center;
  gap: clamp(20px, 4vw, 54px);
}

.tutorial-hero-copy {
  min-width: 0;
}

.tutorial-cover-frame {
  margin: 0;
}

.tutorial-cover-frame .blog-hero-image {
  width: 100%;
  max-height: 420px;
  margin-top: 0;
  object-fit: contain;
  background: #ffffff;
}

.tutorial-article-layout {
  grid-template-columns: minmax(176px, 0.24fr) minmax(0, 1fr);
}

.tutorial-toc {
  padding: 10px;
  border: 1px solid rgba(31, 38, 52, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.tutorial-prose {
  max-width: 980px;
}

.tutorial-prose h3 {
  margin-top: 24px;
  color: var(--pn-ink);
  font-size: clamp(21px, 2vw, 27px);
  line-height: 1.24;
  letter-spacing: 0;
}

.tutorial-prose p + h3,
.tutorial-prose ul + h3,
.tutorial-prose ol + h3,
.tutorial-prose figure + h3,
.tutorial-prose .tutorial-table-wrap + h3 {
  margin-top: 34px;
}

.tutorial-prose code {
  border: 1px solid rgba(31, 38, 52, 0.08);
  border-radius: 6px;
  padding: 0.08em 0.38em;
  color: #253044;
  background: rgba(248, 250, 252, 0.96);
  font-size: 0.92em;
}

.tutorial-prose pre {
  overflow: auto;
  margin-top: 16px;
  padding: 16px 18px;
  border: 1px solid rgba(31, 38, 52, 0.1);
  border-radius: 8px;
  color: #111827;
  background: #ffffff;
  box-shadow: 0 12px 34px rgba(16, 24, 40, 0.07);
}

.tutorial-prose pre code {
  display: block;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font-size: 15px;
  line-height: 1.65;
  white-space: pre-wrap;
}

.tutorial-figure {
  overflow: hidden;
  padding: clamp(10px, 1.6vw, 14px);
  border: 1px solid rgba(31, 38, 52, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 16px 46px rgba(16, 24, 40, 0.08);
}

.tutorial-figure img {
  width: 100%;
  max-height: min(680px, 76vh);
  object-fit: contain;
  border-radius: 8px;
  background: #ffffff;
}

.tutorial-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(31, 38, 52, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 34px rgba(16, 24, 40, 0.06);
}

.tutorial-table-wrap table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
}

.tutorial-table-wrap th,
.tutorial-table-wrap td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(31, 38, 52, 0.08);
  text-align: left;
  vertical-align: top;
  color: #435064;
  font-size: 15px;
  line-height: 1.55;
}

.tutorial-table-wrap th {
  color: var(--pn-ink);
  background: rgba(248, 250, 252, 0.9);
  font-weight: 780;
}

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

.tutorial-inline-link {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid rgba(10, 132, 255, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(239, 246, 255, 0.78));
}

.tutorial-inline-link strong {
  color: var(--pn-ink);
  font-size: 16px;
}

.tutorial-inline-link span {
  color: var(--pn-muted);
  font-size: 15px;
  line-height: 1.58;
}

.tutorial-inline-link a {
  width: fit-content;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 8px;
  color: #ffffff;
  background: var(--tutorial-blue);
  font-size: 14px;
  font-weight: 780;
}

.tutorial-next-guides {
  border-top: 1px solid rgba(31, 38, 52, 0.08);
  padding-top: clamp(28px, 5vw, 46px);
}

@media (max-width: 1080px) {
  .tutorial-hub-hero-grid,
  .tutorial-article-hero,
  .tutorial-article-layout {
    grid-template-columns: 1fr;
  }

  .tutorial-cover-frame .blog-hero-image {
    max-height: 560px;
  }

  .tutorial-toc {
    position: static;
  }
}

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

  .tutorial-hero-stack {
    grid-template-columns: 1fr;
  }

  .tutorial-hero-stack .tutorial-stack-main,
  .tutorial-hero-stack img:not(.tutorial-stack-main) {
    aspect-ratio: 16 / 9;
  }

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

  .tutorial-hub-actions .button {
    width: 100%;
    justify-content: center;
  }

  .tutorial-article-hero {
    padding: 16px;
  }

  .tutorial-article-hero .blog-article-summary {
    grid-template-columns: 1fr;
  }

  .tutorial-prose pre code {
    font-size: 14px;
  }
}

/* PasteNext Tutorial polish pass: restrained documentation layout with screenshot-first hierarchy. */
body.pastenext-blog.tutorial-site {
  --pn-ink: #111827;
  --pn-muted: #4b5563;
  --pn-soft: #718096;
  --pn-line: rgba(17, 24, 39, 0.11);
  --pn-accent: #f59e0b;
  --tutorial-blue: #0b74de;
  --tutorial-green: #0c9b73;
  --tutorial-surface: #ffffff;
  --tutorial-wash: #f6f8fb;
  color: var(--pn-ink);
  background:
    linear-gradient(180deg, #f7f9fc 0%, #ffffff 34rem, #f6f8fb 100%);
}

.tutorial-site .site-header {
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(17, 24, 39, 0.08);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.78);
}

.tutorial-site .button {
  min-height: 44px;
  border-radius: 8px;
  box-shadow: none;
}

.tutorial-site .button.primary,
.tutorial-hub-actions .button.primary {
  color: #ffffff;
  background: #111827;
  border-color: #111827;
}

.tutorial-site .button.primary:hover,
.tutorial-hub-actions .button.primary:hover {
  background: #1f2937;
  border-color: #1f2937;
  transform: translateY(-1px);
}

.tutorial-hub-hero {
  min-height: auto;
  padding: 4.8rem 0 3.8rem;
  border-bottom: 1px solid var(--pn-line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.98)),
    linear-gradient(90deg, rgba(11, 116, 222, 0.06), rgba(245, 158, 11, 0.05));
}

.tutorial-hub-hero-grid {
  grid-template-columns: minmax(0, 0.72fr) minmax(520px, 1.18fr);
  align-items: center;
  gap: clamp(2rem, 4vw, 4rem);
}

.tutorial-hub-copy {
  max-width: 620px;
}

.tutorial-hub-copy h1 {
  max-width: 620px;
  font-size: clamp(2.45rem, 4.2vw, 3.7rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.tutorial-hub-copy p {
  max-width: 560px;
  margin-top: 1.05rem;
  color: #475569;
  font-size: clamp(1rem, 1.35vw, 1.16rem);
  line-height: 1.68;
}

.tutorial-hub-actions {
  gap: 0.8rem;
  margin-top: 2rem;
}

.tutorial-hub-actions .button {
  padding-inline: 1.15rem;
  font-weight: 760;
}

.tutorial-hero-stack {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, 0.34fr);
  gap: 0.75rem;
  padding: 0.75rem;
  overflow: hidden;
  background: #101827;
  border: 1px solid rgba(15, 23, 42, 0.8);
  border-radius: 8px;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.22);
}

.tutorial-hero-stack img {
  width: 100%;
  min-height: 0;
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  box-shadow: none;
}

.tutorial-hero-stack .tutorial-stack-main {
  grid-row: span 2;
  aspect-ratio: 16 / 9;
  object-fit: contain;
}

.tutorial-hero-stack img:not(.tutorial-stack-main) {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  opacity: 0.96;
}

.tutorial-index-section {
  padding: 4.4rem 0 6rem;
  background: #ffffff;
}

.tutorial-index-section .section-heading {
  max-width: 780px;
  margin-bottom: 2rem;
}

.tutorial-index-section .section-heading h2 {
  color: var(--pn-ink);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  letter-spacing: 0;
}

.tutorial-index-section .section-heading p {
  color: #64748b;
  font-size: 1.05rem;
}

.tutorial-card-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  max-width: 1120px;
}

.tutorial-card {
  border-radius: 8px;
}

.tutorial-card a {
  display: grid;
  grid-template-columns: minmax(240px, 350px) minmax(0, 1fr) auto;
  grid-template-areas:
    "cover meta action"
    "cover title action"
    "cover copy action"
    "cover points action";
  align-items: center;
  gap: 0.45rem 1.55rem;
  min-height: 196px;
  padding: 0.85rem 1rem 0.85rem 0.85rem;
  background: #ffffff;
  border: 1px solid var(--pn-line);
  border-radius: 8px;
  box-shadow: 0 14px 38px rgba(15, 23, 42, 0.06);
}

.tutorial-card a:hover {
  border-color: rgba(11, 116, 222, 0.28);
  box-shadow: 0 22px 52px rgba(15, 23, 42, 0.1);
  transform: translateY(-2px);
}

.tutorial-card-cover {
  grid-area: cover;
  margin: 0;
  background: #f8fafc;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 7px;
  box-shadow: none;
}

.tutorial-card-cover img {
  aspect-ratio: 16 / 10;
  object-fit: contain;
  padding: 0.45rem;
  background: #f8fafc;
}

.tutorial-card .blog-card-number {
  top: 0.7rem;
  left: 0.7rem;
  width: 2rem;
  height: 2rem;
  color: #ffffff;
  background: rgba(17, 24, 39, 0.88);
  border-radius: 8px;
  font-size: 0.82rem;
}

.tutorial-card .blog-card-meta {
  grid-area: meta;
  margin: 0;
  color: var(--tutorial-blue);
  font-weight: 760;
}

.tutorial-card h3 {
  grid-area: title;
  margin: 0.1rem 0 0;
  color: var(--pn-ink);
  font-size: clamp(1.25rem, 1.8vw, 1.65rem);
  line-height: 1.18;
  letter-spacing: 0;
}

.tutorial-card p {
  grid-area: copy;
  margin: 0.2rem 0 0;
  color: #526070;
  font-size: 1rem;
  line-height: 1.65;
}

.tutorial-card .blog-card-points {
  grid-area: points;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.55rem 0 0;
}

.tutorial-card .blog-card-points li {
  margin: 0;
  padding: 0.32rem 0.58rem;
  color: #475569;
  background: #f8fafc;
  border: 1px solid rgba(17, 24, 39, 0.1);
  border-radius: 8px;
  font-size: 0.82rem;
  line-height: 1.25;
}

.tutorial-card .blog-read-more {
  grid-area: action;
  align-self: center;
  margin: 0;
  padding: 0.55rem 0.78rem;
  color: #111827;
  white-space: nowrap;
  background: #f8fafc;
  border-radius: 8px;
}

.tutorial-card a:hover .blog-read-more {
  color: #ffffff;
  background: #111827;
  transform: none;
}

.tutorial-article-hero {
  padding: 4.8rem 0 3.8rem;
  border-bottom: 1px solid var(--pn-line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 1)),
    linear-gradient(90deg, rgba(11, 116, 222, 0.05), rgba(12, 155, 115, 0.045));
}

.tutorial-article-hero-grid {
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 0.82fr);
  align-items: center;
  gap: clamp(2.4rem, 5vw, 5rem);
}

.tutorial-article-copy h1 {
  max-width: 700px;
  font-size: clamp(2.25rem, 3.8vw, 3.45rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.tutorial-article-copy p {
  max-width: 680px;
  color: #475569;
  font-size: clamp(1rem, 1.35vw, 1.16rem);
  line-height: 1.68;
}

.tutorial-article-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
  margin-top: 1.8rem;
}

.tutorial-article-summary span {
  min-width: 0;
  padding: 0.7rem 0.75rem;
  color: #475569;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(17, 24, 39, 0.1);
  border-radius: 8px;
  font-size: 0.9rem;
  line-height: 1.35;
}

.tutorial-cover-frame {
  background: #ffffff;
  border: 1px solid rgba(17, 24, 39, 0.1);
  border-radius: 8px;
  box-shadow: 0 24px 68px rgba(15, 23, 42, 0.12);
}

.tutorial-cover-frame .blog-hero-image {
  max-height: 390px;
  padding: 0.6rem;
  object-fit: contain;
  background: #f8fafc;
  border-radius: 8px;
}

.tutorial-article-section {
  padding: 4.8rem 0 6.8rem;
  background: #ffffff;
}

.tutorial-article-layout {
  grid-template-columns: minmax(170px, 220px) minmax(0, 850px);
  justify-content: center;
  gap: clamp(2rem, 5vw, 4.5rem);
}

.tutorial-toc {
  top: 6.5rem;
  padding: 0.2rem 0 0.2rem 1rem;
  background: transparent;
  border: 0;
  border-left: 1px solid var(--pn-line);
  border-radius: 0;
  box-shadow: none;
}

.tutorial-toc strong {
  color: #111827;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
}

.tutorial-toc a {
  margin-top: 0.28rem;
  padding: 0.38rem 0.55rem;
  color: #64748b;
  border-radius: 6px;
  font-size: 0.9rem;
}

.tutorial-toc a:hover {
  color: #111827;
  background: #f1f5f9;
}

.tutorial-prose {
  max-width: 850px;
  gap: 0;
}

.tutorial-prose section {
  margin-bottom: 3.5rem;
  padding: 0 0 3.5rem;
  border-bottom: 1px solid rgba(17, 24, 39, 0.09);
}

.tutorial-prose section:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.tutorial-prose h2 {
  max-width: 780px;
  margin-bottom: 1rem;
  color: var(--pn-ink);
  font-size: clamp(1.75rem, 2.6vw, 2.35rem);
  line-height: 1.14;
  letter-spacing: 0;
}

.tutorial-prose h3 {
  margin-top: 2rem;
  color: #172033;
  font-size: 1.34rem;
  line-height: 1.28;
  letter-spacing: 0;
}

.tutorial-prose p,
.tutorial-prose li {
  color: #4b5563;
  font-size: 1.05rem;
  line-height: 1.78;
}

.tutorial-prose ul,
.tutorial-prose ol {
  gap: 0.5rem;
  padding-left: 1.25rem;
}

.tutorial-prose strong {
  color: #111827;
  font-weight: 760;
}

.tutorial-prose code {
  color: #172033;
  background: #f1f5f9;
  border-radius: 6px;
}

.tutorial-figure {
  margin: 2rem 0 2.35rem;
  padding: 0.65rem;
  background: #ffffff;
  border: 1px solid rgba(17, 24, 39, 0.1);
  border-radius: 8px;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
}

.tutorial-figure img {
  max-height: min(620px, 72vh);
  object-fit: contain;
  background: #f8fafc;
  border-radius: 6px;
}

.tutorial-figure figcaption {
  padding: 0.7rem 0.4rem 0.1rem;
  color: #64748b;
  font-size: 0.88rem;
  line-height: 1.5;
}

.tutorial-note {
  color: #334155;
  background: #f5f9ff;
  border-color: rgba(11, 116, 222, 0.18);
  border-radius: 8px;
}

.tutorial-table-wrap {
  border-radius: 8px;
  box-shadow: none;
}

.tutorial-table-wrap th {
  color: #111827;
  background: #f8fafc;
}

.tutorial-table-wrap td {
  color: #4b5563;
}

.tutorial-article-nav a {
  border-radius: 8px;
  box-shadow: none;
}

@media (max-width: 1080px) {
  .tutorial-hub-hero-grid,
  .tutorial-article-hero-grid,
  .tutorial-article-layout {
    grid-template-columns: 1fr;
  }

  .tutorial-article-layout {
    gap: 2.5rem;
  }

  .tutorial-toc {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    padding: 0 0 1.25rem;
    border-bottom: 1px solid var(--pn-line);
    border-left: 0;
  }

  .tutorial-toc strong {
    width: 100%;
  }

  .tutorial-toc a {
    margin-top: 0;
    background: #f8fafc;
    border: 1px solid rgba(17, 24, 39, 0.08);
  }
}

@media (max-width: 900px) {
  .tutorial-card a {
    grid-template-columns: 1fr;
    grid-template-areas:
      "cover"
      "meta"
      "title"
      "copy"
      "points"
      "action";
    align-items: start;
    padding: 0.85rem;
  }

  .tutorial-card .blog-read-more {
    width: fit-content;
    margin-top: 0.45rem;
  }

  .tutorial-article-summary {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .tutorial-hub-hero {
    padding: 5.2rem 0 3.4rem;
  }

  .tutorial-hub-copy h1,
  .tutorial-article-copy h1 {
    font-size: clamp(2.45rem, 12vw, 3.25rem);
  }

  .tutorial-hub-actions {
    align-items: stretch;
  }

  .tutorial-hub-actions .button {
    justify-content: center;
    width: 100%;
  }

  .tutorial-hero-stack {
    grid-template-columns: 1fr;
  }

  .tutorial-hero-stack .tutorial-stack-main,
  .tutorial-hero-stack img:not(.tutorial-stack-main) {
    grid-row: auto;
    aspect-ratio: 16 / 10;
    object-fit: contain;
  }

  .tutorial-index-section,
  .tutorial-article-section {
    padding-block: 3.4rem;
  }

  .tutorial-article-hero {
    padding: 5rem 0 3.4rem;
  }

  .tutorial-prose section {
    margin-bottom: 2.75rem;
    padding-bottom: 2.75rem;
  }

  .tutorial-prose p,
  .tutorial-prose li {
    font-size: 1rem;
  }
}

/* PasteNext Tutorial card cleanup: stable guide numbers and compact mobile lesson list. */
.tutorial-card-grid {
  counter-reset: tutorial-guide;
}

.tutorial-card {
  counter-increment: tutorial-guide;
}

.tutorial-card .blog-card-number {
  display: grid;
  place-items: center;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  font-size: 0;
  line-height: 1;
}

.tutorial-card .blog-card-number::after {
  content: counter(tutorial-guide, decimal-leading-zero);
  color: inherit;
  font-size: 0.86rem;
  font-weight: 840;
  letter-spacing: 0;
}

@media (max-width: 760px) {
  .tutorial-card-grid {
    gap: 0.75rem;
  }

  .tutorial-card a {
    grid-template-columns: 52px minmax(0, 1fr);
    grid-template-areas:
      "cover meta"
      "cover title"
      "cover copy"
      "action action";
    gap: 0.24rem 0.8rem;
    min-height: 0;
    padding: 0.95rem;
  }

  .tutorial-card-cover {
    width: 52px;
    height: 52px;
    align-self: start;
    overflow: visible;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .tutorial-card-cover img {
    display: none;
  }

  .tutorial-card .blog-card-number {
    position: static;
    width: 52px;
    height: 52px;
    color: #ffffff;
    background: #111827;
    border: 1px solid rgba(17, 24, 39, 0.18);
    border-radius: 8px;
    box-shadow: none;
  }

  .tutorial-card .blog-card-number::after {
    font-size: 1rem;
  }

  .tutorial-card .blog-card-meta {
    align-self: end;
    font-size: 0.72rem;
    line-height: 1.2;
  }

  .tutorial-card h3 {
    font-size: 1.22rem;
    line-height: 1.22;
  }

  .tutorial-card p {
    font-size: 0.95rem;
    line-height: 1.58;
  }

  .tutorial-card .blog-card-points {
    display: none;
  }

  .tutorial-card .blog-read-more {
    width: 100%;
    min-height: 38px;
    margin-top: 0.62rem;
  }
}

@media (max-width: 320px) {
  .tutorial-site .container {
    width: min(100% - 20px, var(--max));
    max-width: calc(100vw - 20px);
  }

  .tutorial-site .nav-links {
    gap: 2px;
    justify-content: space-between;
    font-size: 13px;
  }

  .tutorial-site .nav-links a {
    min-height: 36px;
    padding: 0 7px;
  }

  .tutorial-hub-copy h1,
  .tutorial-article-copy h1,
  .tutorial-hero-copy h1 {
    font-size: 1.85rem;
  }

  .tutorial-card a {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 0.22rem 0.68rem;
    padding: 0.8rem;
  }

  .tutorial-card-cover,
  .tutorial-card .blog-card-number {
    width: 44px;
    height: 44px;
  }

  .tutorial-card h3 {
    font-size: 1.06rem;
  }

  .tutorial-card p {
    font-size: 0.9rem;
  }
}

/* PasteNext Tutorial visual QA fixes: remove overflow, reduce empty screenshot frames, and keep figures at useful size. */
.tutorial-site .nav {
  min-width: 0;
}

.tutorial-site .brand,
.tutorial-site .nav-links,
.tutorial-site .nav-actions {
  min-width: 0;
}

.tutorial-hero-stack {
  grid-template-columns: 1fr;
  max-width: 760px;
  margin-left: auto;
}

.tutorial-hero-stack .tutorial-stack-main {
  grid-row: auto;
  aspect-ratio: 16 / 5;
  object-fit: cover;
  object-position: center;
}

.tutorial-hero-stack img:not(.tutorial-stack-main) {
  display: none;
}

.tutorial-card-cover img {
  object-fit: cover;
  object-position: center;
}

.tutorial-card .blog-card-points span {
  margin: 0;
  padding: 0.32rem 0.58rem;
  color: #475569;
  background: #f8fafc;
  border: 1px solid rgba(17, 24, 39, 0.1);
  border-radius: 8px;
  font-size: 0.82rem;
  line-height: 1.25;
}

.tutorial-article {
  padding: clamp(40px, 6vw, 72px) 0 clamp(72px, 9vw, 112px);
}

.tutorial-article-hero {
  padding: 0 0 clamp(36px, 5vw, 64px);
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(17, 24, 39, 0.09);
  border-radius: 0;
  box-shadow: none;
}

.tutorial-hero-copy,
.tutorial-hub-copy {
  width: 100%;
  min-width: 0;
}

.tutorial-hero-copy h1 {
  max-width: 740px;
  font-size: clamp(2.25rem, 3.6vw, 3.2rem);
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.tutorial-article-hero .blog-article-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
  margin-top: 1.8rem;
}

.tutorial-article-hero .blog-article-summary > div {
  min-width: 0;
  padding: 0.85rem;
  background: #ffffff;
  border: 1px solid rgba(17, 24, 39, 0.1);
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.04);
}

.tutorial-cover-frame .blog-hero-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 6;
  max-height: none;
  padding: 0;
  object-fit: cover;
  object-position: center;
  background: #f8fafc;
}

.tutorial-figure {
  display: grid;
  justify-items: center;
}

.tutorial-figure img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

@media (max-width: 1080px) {
  .tutorial-hero-stack {
    max-width: none;
    margin-left: 0;
  }

  .tutorial-article-hero .blog-article-summary {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  body.pastenext-blog.tutorial-site {
    overflow-x: hidden;
  }

  html:has(body.pastenext-blog.tutorial-site) {
    overflow-x: hidden;
  }

  .tutorial-site .container {
    width: min(100% - 28px, var(--max));
    max-width: calc(100vw - 28px);
  }

  .tutorial-site .nav {
    flex-wrap: wrap;
    gap: 8px 10px;
    min-height: auto;
    padding: 10px 0;
  }

  .tutorial-site .brand {
    gap: 8px;
    font-size: 16px;
  }

  .tutorial-site .brand-logo {
    width: 36px;
    height: 36px;
  }

  .tutorial-site .nav-actions {
    margin-left: auto;
  }

  .tutorial-site .lang-switch button {
    min-width: 42px;
  }

  .tutorial-site .nav-links {
    order: 3;
    width: 100%;
    justify-content: center;
  }

  .tutorial-hub-hero-grid,
  .tutorial-card-grid,
  .tutorial-article-hero,
  .tutorial-article-layout,
  .tutorial-prose,
  .tutorial-prose section,
  .tutorial-prose > *,
  .tutorial-toc,
  .tutorial-table-wrap,
  .tutorial-cover-frame {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .tutorial-hub-copy h1 {
    max-width: 100%;
    font-size: clamp(1.9rem, 8.2vw, 2.25rem);
    line-height: 1.08;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .tutorial-hub-copy p {
    font-size: 1rem;
    line-height: 1.68;
  }

  .tutorial-hero-stack .tutorial-stack-main {
    aspect-ratio: 16 / 7;
  }

  .tutorial-article-copy h1,
  .tutorial-hero-copy h1 {
    max-width: 100%;
    font-size: clamp(1.8rem, 7.6vw, 2.12rem);
    line-height: 1.12;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .tutorial-cover-frame .blog-hero-image {
    aspect-ratio: 16 / 8;
  }

  .tutorial-toc {
    overflow-x: auto;
    flex-wrap: nowrap;
    justify-content: flex-start;
    padding-bottom: 0.85rem;
  }

  .tutorial-toc a {
    flex: 0 0 auto;
  }
}

.seo-page .tutorial-article-copy h1 {
  max-width: 820px;
}

.seo-resource-page .tutorial-article-section {
  padding-top: 24px;
}

.seo-resource-page .tutorial-side-note {
  position: sticky;
  top: 112px;
  align-self: start;
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 18px;
  border-color: rgba(255, 153, 26, 0.28);
  background: rgba(255, 250, 244, 0.78);
  color: var(--muted);
}

.seo-resource-page .tutorial-side-note strong {
  color: var(--ink);
  font-size: 0.92rem;
}

.seo-resource-page .tutorial-side-note p {
  margin: 0;
  line-height: 1.62;
}

.seo-resource-page .tutorial-prose section {
  border: 1px solid rgba(17, 24, 39, 0.08);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.06);
}

.seo-resource-page .tutorial-prose ul {
  display: grid;
  gap: 10px;
  padding-left: 20px;
}

/* App Store download and Pricing surfaces. */
.app-store-badge {
  width: 180px;
  height: 60px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 9px;
  color: #ffffff;
  background: url("app-store-badge-en-us.svg") center / contain no-repeat;
  box-shadow: 0 18px 38px rgba(5, 5, 5, 0.2);
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.app-store-badge:hover,
.app-store-badge:focus-visible {
  color: #ffffff;
  box-shadow: 0 22px 46px rgba(5, 5, 5, 0.26);
  filter: brightness(1.04);
  outline: 3px solid rgba(10, 132, 255, 0.18);
  outline-offset: 3px;
  transform: translateY(-1px);
}

.app-store-badge svg {
  display: none;
}

.app-store-badge span {
  display: none;
}

.app-store-badge small {
  color: rgba(255, 255, 255, 0.86);
  font-size: 10px;
  font-weight: 620;
}

.app-store-badge strong {
  color: #ffffff;
  font-size: 19px;
  font-weight: 780;
  letter-spacing: 0;
}

.app-store-badge.is-hero {
  width: 190px;
  height: 64px;
}

.app-store-badge.is-hero svg {
  display: none;
}

.app-store-badge.is-hero strong {
  font-size: 21px;
}

.pn-nav-download {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 13px;
  border: 1px solid rgba(17, 24, 39, 0.88);
  border-radius: 8px;
  color: #ffffff;
  background: #111827;
  font-size: 13px;
  font-weight: 760;
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(17, 24, 39, 0.12);
}

.pn-nav-download:hover,
.pn-nav-download:focus-visible {
  color: #ffffff;
  background: #000000;
  outline: 3px solid rgba(17, 24, 39, 0.12);
  outline-offset: 2px;
}

body.pastenext-story .story-header .pn-nav-download,
body.pastenext-legal .pn-nav-download,
body.pastenext-blog .pn-nav-download {
  color: #ffffff;
}

.pn-launch-note {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  margin-bottom: 16px;
  padding: 0 12px;
  border: 1px solid rgba(17, 24, 39, 0.1);
  border-radius: 8px;
  color: #7a3800;
  background: rgba(255, 247, 237, 0.92);
  font-size: 13px;
  font-weight: 780;
}

.pn-hero-actions.is-download-led {
  display: grid;
  grid-template-columns: max-content;
  align-items: center;
  justify-content: center;
  justify-items: center;
  gap: 8px;
}

.pn-hero-actions.is-download-led .app-store-badge {
  justify-self: center;
}

.pn-hero-actions.is-download-led .button {
  min-width: 132px;
}

.pn-hero-feature-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 14px;
  margin-top: 0;
}

.pn-hero-feature-label {
  color: #9b4700;
  font-size: 13px;
  font-weight: 780;
  line-height: 1.35;
}

.pn-hero-feature-links a {
  color: var(--pn-muted);
  font-size: 14px;
  font-weight: 780;
  line-height: 1.35;
  text-decoration: none;
  transition: color 160ms ease;
}

.pn-hero-feature-links a:hover,
.pn-hero-feature-links a:focus-visible {
  color: var(--pn-ink);
}

.pn-hero-feature-links a:focus-visible {
  border-radius: 6px;
  outline: 3px solid rgba(10, 132, 255, 0.18);
  outline-offset: 4px;
}

html:has(body.pastenext-pricing) {
  background: #f8fafc;
}

body.pastenext-pricing {
  background:
    linear-gradient(180deg, #ffffff 0%, #f8fafc 48%, #eef3f7 100%);
}

.pricing-page {
  min-height: 100dvh;
  color: var(--pn-ink);
}

.pricing-hero {
  padding: clamp(42px, 6vw, 72px) 0 clamp(14px, 2.5vw, 28px);
}

.pricing-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  align-items: center;
  justify-items: center;
}

.pricing-hero-copy {
  max-width: 860px;
  min-width: 0;
  text-align: center;
}

.pricing-hero-copy .kicker {
  color: #9b4700;
  font-size: 0.86rem;
  font-weight: 820;
}

.pricing-hero h1 {
  max-width: 780px;
  margin-right: auto;
  margin-left: auto;
  margin-top: 14px;
  color: var(--pn-ink);
  font-size: clamp(36px, 4.4vw, 58px);
  line-height: 1.08;
  font-weight: 830;
  letter-spacing: 0;
}

html[lang="zh-CN"] .pricing-hero h1 {
  font-size: clamp(32px, 3.8vw, 50px);
  line-height: 1.12;
}

.pricing-hero p:not(.kicker) {
  color: var(--pn-muted);
  font-size: clamp(17px, 1.7vw, 21px);
  line-height: 1.58;
}

.pricing-hero-copy > p:not(.kicker) {
  max-width: 680px;
  margin-right: auto;
  margin-left: auto;
  margin-top: 18px;
}

.pricing-hero-actions {
  display: grid;
  justify-items: center;
  gap: 8px;
  margin-top: 18px;
}

.pricing-hero-actions .app-store-badge {
  justify-self: center;
}

.pricing-support-link {
  color: var(--pn-muted);
  font-size: 14px;
  font-weight: 780;
  line-height: 1.35;
  text-decoration: none;
  transition: color 160ms ease;
}

.pricing-support-link:hover,
.pricing-support-link:focus-visible {
  color: var(--pn-ink);
}

.pricing-support-link:focus-visible {
  border-radius: 6px;
  outline: 3px solid rgba(10, 132, 255, 0.18);
  outline-offset: 4px;
}

.pricing-plan-card {
  border: 1px solid rgba(31, 38, 52, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 22px 58px rgba(31, 38, 52, 0.08);
}

.pricing-plan-label,
.pricing-plan-badge {
  color: #7a3800;
  font-size: 0.78rem;
  font-weight: 820;
  text-transform: uppercase;
}

.pricing-plan-card h2 {
  color: var(--pn-ink);
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1;
  font-weight: 830;
}

.pricing-plan-card h2 small {
  color: var(--pn-muted);
  font-size: 0.42em;
  font-weight: 700;
}

.pricing-plan-card p,
.pricing-plan-card li {
  color: var(--pn-muted);
  line-height: 1.55;
}

.pricing-plans {
  padding: clamp(10px, 2vw, 22px) 0 clamp(34px, 5vw, 58px);
}

.pricing-plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.pricing-plan-card {
  position: relative;
  min-height: 360px;
  display: grid;
  align-content: start;
  gap: 18px;
  padding: clamp(22px, 3vw, 30px);
}

.pricing-plan-card.is-featured {
  border-color: rgba(245, 154, 24, 0.42);
  background:
    linear-gradient(180deg, rgba(255, 250, 244, 0.98), rgba(255, 255, 255, 0.92));
}

.pricing-plan-card ul {
  display: grid;
  gap: 11px;
  margin: 2px 0 0;
  padding: 0;
  list-style: none;
}

.pricing-plan-card li {
  position: relative;
  padding-left: 20px;
}

.pricing-plan-card li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f59a18;
}

.pricing-plan-badge {
  position: absolute;
  top: clamp(22px, 3vw, 30px);
  right: clamp(22px, 3vw, 30px);
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border: 1px solid rgba(245, 154, 24, 0.3);
  border-radius: 8px;
  background: rgba(255, 247, 237, 0.94);
}

@media (max-width: 980px) {
  .pricing-hero-grid,
  .pricing-plan-grid {
    grid-template-columns: 1fr;
  }

  .pricing-plan-card {
    min-height: auto;
  }
}

@media (max-width: 760px) {
  .pn-nav-download {
    min-height: 36px;
    padding: 0 10px;
  }

  .app-store-badge,
  .app-store-badge.is-hero {
    width: min(100%, 232px);
    min-width: 0;
  }

  .pricing-hero {
    padding-top: 42px;
  }
}

@media (max-width: 520px) {
  .pn-hero-actions.is-download-led {
    justify-items: center;
  }

  .pn-hero-actions.is-download-led .button,
  .pn-hero-actions.is-download-led .app-store-badge {
    width: auto;
    max-width: 280px;
    justify-self: center;
  }

  .pn-hero-feature-links {
    max-width: 280px;
  }
}
