:root {
  /* Design System v2 Tokens */
  --pm-brand-primary: #E7C85F;
  --pm-brand-primary-hover: #D9B94F;
  --pm-brand-primary-soft: #F6E7A8;
  --pm-brand-primary-muted: #F3EBCB;
  --pm-brand-ink: #2A2418;
  
  /* Neutral */
  --pm-bg-canvas: #F4F1EA;
  --pm-bg-panel: #FBF9F5;
  --pm-bg-panel-elevated: #FFFFFF;
  --pm-fg-primary: rgba(31, 27, 22, 0.92);
  --pm-fg-secondary: rgba(95, 88, 78, 0.9);
  --pm-fg-tertiary: rgba(142, 133, 117, 0.78);
  
  /* Border */
  --pm-border-soft: rgba(53, 42, 24, 0.10);
  --pm-border-regular: rgba(53, 42, 24, 0.16);
  --pm-border-strong: rgba(53, 42, 24, 0.24);
  
  /* Note Theme */
  --pm-note-yellow: #F8E9A6;
  --pm-note-blue: #D9E8F8;
  --pm-note-pink: #F6DEE6;
  --pm-note-green: #DDEFD9;
  --pm-note-purple: #E6DFF4;
  --pm-note-gray: #E5E1DA;
  --pm-note-white: #FAF8F4;

  /* Shadows - Unified warm brown base rgba(26, 21, 14, ...) */
  --pm-shadow-soft: 0 4px 12px rgba(26, 21, 14, 0.08);
  --pm-shadow-card: 0 10px 24px rgba(26, 21, 14, 0.10);
  --pm-shadow-float: 0 16px 36px rgba(26, 21, 14, 0.14);
  --pm-shadow-note: 0 14px 32px rgba(26, 21, 14, 0.16);
  
  /* Radius */
  --pm-radius-xs: 6px;
  --pm-radius-sm: 10px;
  --pm-radius-md: 14px;
  --pm-radius-lg: 18px;
  --pm-radius-note: 20px;
  --pm-radius-xl: 24px;
  
  /* Typography */
  --pm-font-display: "SF Pro Display", -apple-system, BlinkMacSystemFont, sans-serif;
  --pm-font-accent: "Marker Felt", "Noteworthy", cursive;
  --pm-font-mono: "SF Mono", Monaco, Consolas, monospace;
  
  --pm-navbar-height: 64px;
}

html { scroll-behavior: smooth; }

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

body {
  margin: 0;
  padding: 0;
  background-color: var(--pm-bg-canvas);
  color: var(--pm-fg-primary);
  font-family: var(--pm-font-display);
  -webkit-font-smoothing: antialiased;
  /* 纸张微纹理 */
  background-image: radial-gradient(var(--pm-fg-primary) 0.5px, transparent 0.5px);
  background-size: 32px 32px;
  background-attachment: fixed;
  opacity: 0.98;
}

/* 顶部导航：毛玻璃效果 */
.navbar {
  position: fixed;
  top: 0; width: 100%; height: var(--pm-navbar-height);
  background: rgba(244, 241, 234, 0.75);
  backdrop-filter: blur(25px); -webkit-backdrop-filter: blur(25px);
  z-index: 1000;
  border-bottom: 1px solid var(--pm-border-soft);
}

.navbar-content {
  max-width: 1100px; margin: 0 auto; height: 100%;
  display: flex; justify-content: space-between; align-items: center; padding: 0 24px;
}

.logo-text { font-weight: 800; font-size: 20px; color: var(--pm-brand-ink); }

.navbar-logo {
  width: 28px;
  height: 28px;
  border-radius: var(--pm-radius-xs);
  margin-right: 10px;
  box-shadow: var(--pm-shadow-soft);
}

.logo-section { display: flex; align-items: center; text-decoration: none; color: inherit; }

.logo-section a { display: flex; align-items: center; text-decoration: none; color: inherit; }

.nav-links a {
  text-decoration: none; color: var(--pm-fg-secondary);
  font-size: 14px; font-weight: 600; margin-left: 32px;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--pm-brand-ink); }

.nav-links a.active { color: var(--pm-brand-ink); }

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--pm-brand-primary);
  outline-offset: 2px;
  border-radius: 8px;
}

.nav-links a:focus-visible,
.download-btn-small:focus-visible,
.btn-primary:focus-visible,
.btn-secondary:focus-visible,
.lang-switch a:focus-visible {
  box-shadow: 0 0 0 3px rgba(231, 200, 95, 0.35);
}

.logo-section a { text-decoration: none; color: inherit; }

.lang-switch {
  margin-left: 20px;
  font-size: 12px;
  color: var(--pm-fg-secondary);
  white-space: nowrap;
}

.lang-switch a {
  color: inherit;
  text-decoration: none;
  margin: 0 4px;
}

.lang-switch .current {
  color: var(--pm-brand-ink);
  font-weight: 700;
}

.download-btn-small {
  background: var(--pm-brand-ink); color: #fff !important;
  padding: 8px 20px; border-radius: 99px;
}

/* Hero Section: 场景叙事起点 */
.hero {
  padding: 160px 24px 100px;
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 60px;
  align-items: center;
}

.hero-title {
  font-size: 68px; line-height: 1.05; font-weight: 800;
  /* em-based so the tightening scales down on smaller screens instead of
     collapsing word spaces at mobile sizes. */
  letter-spacing: -0.04em; color: var(--pm-brand-ink);
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: 22px; line-height: 1.5; color: var(--pm-fg-secondary);
  margin-bottom: 40px; max-width: 500px;
}

/* Keep the tagline's tail on one line to avoid orphan words/characters. */
.hero-subtitle .nobr {
  white-space: nowrap;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-proof {
  margin: 14px 0 0;
  font-size: 14px;
  color: var(--pm-fg-tertiary);
}

/* Edge Docking Mockup Animation */
.dock-demo {
  position: absolute;
  right: -20px;
  top: 50%;
  transform: translateY(-50%);
  width: 240px;
  height: 180px;
  background: var(--pm-note-pink);
  border-radius: var(--pm-radius-note) 0 0 var(--pm-radius-note);
  box-shadow: var(--pm-shadow-note);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 20px;
  cursor: pointer;
  z-index: 10;
}

.dock-demo-blue {
  background: var(--pm-note-blue);
}

/* Scenario 4 docked note: hidden off-screen, slides in on container hover */
.dock-demo-slide {
  position: absolute;
  right: -210px;
  top: 50%;
  transform: translateY(-50%);
  transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.dock-demo:hover {
  transform: translateY(-50%) translateX(-200px);
}

.dock-indicator {
  position: absolute;
  left: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 40px;
  background: rgba(42, 36, 24, 0.2);
  border-radius: 2px;
}

.dock-container-mock {
  position: relative;
  width: 320px;
  height: 240px;
  background: #fcfcfc;
  border: 1px solid #eee;
  border-radius: 12px;
  overflow: hidden;
  margin: 0 auto;
}

/* Caption at the bottom of the mock: the note sliver covers the right edge,
   so the hint lives on the empty canvas instead of behind it. */
.dock-hover-zone {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--pm-fg-tertiary);
  letter-spacing: 0.3px;
  z-index: 5;
  pointer-events: none;
}

.dock-container-mock:hover .dock-demo {
  right: 0 !important;
}



.note-head { font-size: 13px; font-weight: 700; letter-spacing: 0.2px; margin-bottom: 10px; color: rgba(42, 36, 24, 0.72); }

/* 场景章节通用样式 */
.scenario-section {
  padding: 120px 24px; max-width: 1100px; margin: 0 auto;
}

.scenario-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
  margin-bottom: 100px;
}

.scenario-content h2 {
  font-size: 42px; font-weight: 800; color: var(--pm-brand-ink);
  margin-bottom: 20px; letter-spacing: -1.5px;
}

.scenario-content p {
  font-size: 18px; line-height: 1.7; color: var(--pm-fg-secondary);
}

.visual-mockup {
  background: var(--pm-bg-panel); border-radius: 24px;
  padding: 40px; border: 1px solid var(--pm-border-soft);
  box-shadow: var(--pm-shadow-soft);
}

.mock-arrange-board {
  position: relative;
  min-height: 270px;
  padding: 24px;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(145deg, #dce8ef, #f5efe3 72%);
  box-shadow: inset 0 0 0 1px rgba(42, 36, 24, 0.08);
}

.arrange-menu {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 2;
  padding: 9px 13px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(42, 36, 24, 0.1);
  box-shadow: var(--pm-shadow-card);
  font-size: 12px;
  font-weight: 700;
  color: var(--pm-brand-ink);
  backdrop-filter: blur(10px);
}

.arrange-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 52px auto 0;
  max-width: 310px;
}

.arrange-note {
  min-height: 70px;
  padding: 10px;
  border-radius: 10px;
  box-shadow: 0 7px 16px rgba(42, 36, 24, 0.14);
  font-size: 10px;
  line-height: 1.35;
  font-weight: 700;
  color: rgba(42, 36, 24, 0.72);
}

.arrange-note:nth-child(1), .arrange-note:nth-child(5) { background: var(--pm-note-yellow); }

.arrange-note:nth-child(2) { background: var(--pm-note-blue); }

.arrange-note:nth-child(3) { background: var(--pm-note-pink); }

.arrange-note:nth-child(4) { background: var(--pm-note-green); }

.arrange-note:nth-child(6) { background: var(--pm-note-purple); }

.mock-mermaid {
  padding: 18px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--pm-border-soft);
}

.mermaid-static-diagram {
  display: block;
  width: 100%;
  height: auto;
  margin: 10px auto 16px;
}

.scenario-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

.scenario-links a { color: var(--pm-brand-ink); font-weight: 750; text-decoration-thickness: 1px; text-underline-offset: 4px; }

.guide-topic-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 24px 0 34px;
}

.guide-topic-card {
  display: block;
  padding: 18px;
  border: 1px solid var(--manual-border);
  border-radius: 12px;
  color: inherit;
  text-decoration: none;
  background: color-mix(in srgb, var(--manual-bg) 92%, var(--pm-brand-primary) 8%);
}

.guide-topic-card:hover { border-color: var(--pm-brand-primary); transform: translateY(-1px); }

.guide-topic-card strong { display: block; margin-bottom: 5px; }

.guide-topic-card span { color: var(--manual-accent); font-size: 14px; line-height: 1.45; }

.tech-page .guide-content h1 { max-width: 720px; }

.tech-lead { font-size: 19px; line-height: 1.7; color: var(--manual-accent); }

.tech-callout { margin: 24px 0; padding: 18px; border-left: 4px solid var(--pm-brand-primary); background: var(--manual-key-bg); border-radius: 8px; }

.tech-command { overflow-x: auto; white-space: pre; padding: 16px; border-radius: 10px; background: #211f1b; color: #f7f1dc; font-family: var(--pm-font-mono); font-size: 13px; }

.mock-ghost-overlay {
  font-size: 14px;
  color: rgba(42, 36, 24, 0.72);
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(42, 36, 24, 0.2);
  background: rgba(255, 255, 255, 0.68);
}

/* Refined Mockup Styles */
.mock-ghost-container {
  width: 320px;
  height: 240px;
  background: #fdfdfd;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
  margin: 0 auto;
  border: 1px solid rgba(0,0,0,0.05);
}

.mock-ghost-canvas {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(#ddd 1px, transparent 1px);
  background-size: 16px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.canvas-ui-box {
  width: 140px;
  background: #fff;
  border: 1px solid #eee;
  padding: 16px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}

.canvas-ui-line {
  height: 8px;
  background: #f0f0f0;
  border-radius: 4px;
  margin-bottom: 12px;
}

.mock-ghost-overlay {
  position: absolute;
  top: 40px;
  right: 30px;
  width: 140px;
  height: 120px;
  background: rgba(231, 200, 95, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(2px);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 10;
}

.ghost-status {
  position: absolute;
  top: -12px;
  left: 10px;
  background: var(--pm-brand-primary);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}

.ghost-content {
  font-family: var(--pm-font-accent);
  color: rgba(0,0,0,0.6);
  font-size: 14px;
}

.mock-ghost-cursor {
  position: absolute;
  width: 20px;
  height: 20px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 3l7.07 16.97 2.51-7.39 7.39-2.51L3 3z'%3E%3C/path%3E%3Cpath d='M13 13l6 6'%3E%3C/path%3E%3C/svg%3E");
  background-size: cover;
  z-index: 20;
  animation: ghost-click 4s infinite cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.canvas-click-ripple {
  position: absolute;
  width: 30px;
  height: 30px;
  border: 2px solid var(--pm-brand-primary);
  border-radius: 50%;
  opacity: 0;
  z-index: 5;
  animation: ripple 4s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes ghost-click {
  0% { transform: translate(250px, 200px); }
  20% { transform: translate(180px, 90px); }
  30% { transform: translate(180px, 90px) scale(0.9); }
  40% { transform: translate(180px, 90px); }
  100% { transform: translate(250px, 200px); }
}

@keyframes ripple {
  0%, 25% { transform: translate(165px, 75px) scale(0.5); opacity: 0; }
  30% { transform: translate(165px, 75px) scale(1); opacity: 1; }
  50%, 100% { transform: translate(165px, 75px) scale(2); opacity: 0; }
}

/* Checklist Mockup */
.mock-checklist {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mock-checklist li {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 14px;
}

.mock-checklist li::before {
  content: "☐";
  color: var(--pm-fg-tertiary);
}

.mock-checklist li.done::before {
  content: "☑";
  color: var(--pm-brand-primary);
}

/* Audience Section: 目标受众引导 */
.audience-section {
  padding: 80px 24px 0;
  max-width: 1100px;
  margin: 0 auto;
}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.audience-card {
  padding: 24px;
  border-radius: var(--pm-radius-md);
  box-shadow: var(--pm-shadow-soft);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(0,0,0,0.03);
  display: flex;
  flex-direction: column;
}

.audience-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--pm-shadow-card);
}

.audience-icon {
  font-size: 28px;
  margin-bottom: 16px;
}

.audience-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--pm-brand-ink);
}

.audience-card p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--pm-fg-secondary);
  margin-bottom: 20px;
  flex-grow: 1;
}

.audience-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.audience-tags span {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.4);
  color: var(--pm-fg-primary);
  border: 1px solid rgba(0,0,0,0.05);
}

.card-blue { background-color: var(--pm-note-blue); }

.card-pink { background-color: var(--pm-note-pink); }

.card-yellow { background-color: var(--pm-note-yellow); }

.card-green { background-color: var(--pm-note-green); }

.audience-footer {
  margin-top: 60px;
  text-align: center;
}

.comparison-result {
  text-align: center;
  margin-top: 30px;
  font-size: 16px;
  color: var(--pm-fg-secondary);
}

/* Trust Bar */
.trust-bar {
  display: flex;
  justify-content: center;
  gap: 60px;
  padding: 40px 24px;
  border-top: 1px solid var(--pm-border-soft);
  border-bottom: 1px solid var(--pm-border-soft);
  margin: 60px 0;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--pm-fg-secondary);
}

.trust-icon {
  font-size: 20px;
}

/* 按钮：墨水黑风格 */
.btn-primary {
  background: var(--pm-brand-ink); color: #fff;
  padding: 16px 32px; border-radius: var(--pm-radius-md);
  font-size: 16px; font-weight: 700; text-decoration: none;
  display: inline-block; transition: all 0.2s ease;
  box-sizing: border-box;
  box-shadow: var(--pm-shadow-soft);
}

.btn-primary:hover { 
  transform: translateY(-2px); 
  box-shadow: var(--pm-shadow-card);
  opacity: 0.92;
}

.btn-secondary {
  display: inline-block;
  box-sizing: border-box;
  color: var(--pm-brand-ink);
  border: 1px solid var(--pm-border-regular);
  background: var(--pm-bg-panel-elevated);
  border-radius: var(--pm-radius-md);
  padding: 16px 32px;
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
  transition: all 0.2s ease;
  box-shadow: var(--pm-shadow-soft);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: var(--pm-shadow-card);
  border-color: var(--pm-border-strong);
}

/* Plans */
.plans {
  padding: 20px 24px 90px;
}

/* The inner .scenario-section adds its own 120px top padding; trim it so the gap
   above "Free vs Pro" matches the rhythm of the other section transitions. */
.plans .scenario-section {
  padding-top: 40px;
}

.plans-title {
  text-align: center;
  margin-bottom: 14px;
}

.plans-subtitle {
  text-align: center;
  margin: 0 auto 42px;
  max-width: 700px;
  color: var(--pm-fg-secondary);
  font-size: 17px;
  line-height: 1.7;
}

.plan-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr 1fr;
}

.plan-card {
  background: var(--pm-bg-panel-elevated);
  border: 1px solid var(--pm-border-soft);
  border-radius: var(--pm-radius-xl);
  padding: 40px;
  box-shadow: var(--pm-shadow-card);
  transition: transform 0.3s ease;
}

.plan-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--pm-shadow-float);
}

.plan-card h3 {
  margin: 12px 0 16px;
  font-size: 28px;
  font-weight: 800;
  color: var(--pm-brand-ink);
}

.plan-card-pro {
  background: linear-gradient(165deg, var(--pm-paper-warm), #fff);
  border: 2px solid var(--pm-brand-primary-soft);
}

.plan-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--pm-radius-xs);
  background: var(--pm-brand-primary-muted);
  font-size: 11px;
  color: var(--pm-brand-ink);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.plan-list {
  margin: 0 0 24px;
  padding-left: 20px;
  color: var(--pm-fg-secondary);
  line-height: 1.7;
}

.plan-price-note {
  margin: 10px 0 0;
  font-size: 12px;
  color: var(--pm-fg-tertiary);
}

.plan-intro {
  margin: 0 0 14px;
  font-weight: 700;
  color: var(--pm-brand-ink);
}

.plan-list-pro {
  list-style: none;
  padding-left: 0;
}

.plan-list-pro li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 6px;
}

.plan-list-pro li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: -1px;
  color: #5F8C56;
  font-weight: 800;
}

/* Hero takeover: centered copy + full-width screenshot carousel */
.hero-centered {
  display: block;
  text-align: center;
  padding: 150px 24px 80px;
}

.hero-centered .hero-content {
  max-width: 760px;
  margin: 0 auto;
}

.hero-centered .hero-subtitle {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-centered .hero-actions {
  justify-content: center;
}

.hero-centered .hero-proof {
  text-align: center;
}

/* Carousel */
.hero-carousel {
  max-width: 1100px;
  margin: 56px auto 0;
}

.carousel-frame {
  position: relative;
  background: var(--pm-bg-panel-elevated);
  border: 1px solid var(--pm-border-regular);
  border-radius: var(--pm-radius-lg);
  box-shadow: var(--pm-shadow-float);
  overflow: hidden;
}

.carousel-bar {
  display: flex;
  gap: 7px;
  align-items: center;
  padding: 12px 16px;
  background: var(--pm-bg-panel);
  border-bottom: 1px solid var(--pm-border-soft);
}

.carousel-bar span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--pm-border-strong);
}

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

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

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

.carousel-viewport {
  overflow: hidden;
}

.carousel-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.carousel-slide {
  flex: 0 0 100%;
  min-width: 0;
}

.carousel-slide img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  background: #6b6b6b;
}

.carousel-arrow {
  position: absolute;
  top: calc(50% + 18px);
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--pm-border-soft);
  background: rgba(251, 249, 245, 0.86);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--pm-brand-ink);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--pm-shadow-soft);
  transition: background 0.2s ease, transform 0.2s ease;
  z-index: 4;
}

.carousel-arrow:hover {
  background: var(--pm-bg-panel-elevated);
  transform: translateY(-50%) scale(1.06);
}

.carousel-prev { left: 16px; }

.carousel-next { right: 16px; }

.carousel-footer {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.carousel-caption {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--pm-fg-secondary);
  min-height: 26px;
}

.carousel-dots {
  display: flex;
  gap: 10px;
}

.carousel-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--pm-border-strong);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, width 0.3s ease;
}

.carousel-dot:hover { background: var(--pm-fg-tertiary); }

.carousel-dot.is-active {
  width: 26px;
  border-radius: 999px;
  background: var(--pm-brand-primary);
}

/* === v1.3.0 scenario mockups === */

/* Photo wall */
.mock-photo-wall {
  position: relative;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wall-photo {
  position: relative;
  width: 122px;
  background: var(--pm-bg-panel-elevated);
  box-shadow: 0 10px 22px rgba(26, 21, 14, 0.18);
}

.wall-photo-image {
  width: 100%;
  height: 122px;
  background-size: cover;
  background-position: center;
}

/* Wood frame */
.wall-photo-framed {
  transform: rotate(-7deg) translateY(26px);
  padding: 7px;
  border: 7px solid #c9a978;
  background: #e8d9bd;
  z-index: 1;
  margin-right: -14px;
}

/* Pushpin (bare photo, micro-floating) */
.wall-photo-pinned {
  transform: rotate(3deg) translateY(-20px);
  padding: 0;
  z-index: 2;
  box-shadow: 0 14px 26px rgba(26, 21, 14, 0.22);
}

.wall-photo-pinned .wall-photo-image { height: 150px; }

.wall-pin {
  position: absolute;
  top: -9px;
  left: 50%;
  width: 18px;
  height: 18px;
  margin-left: -9px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #e08a73 0%, #c86b56 55%, #a8503d 100%);
  box-shadow: 0 4px 5px rgba(26, 21, 14, 0.3);
  z-index: 4;
}

.wall-pin::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 5px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
}

/* Polaroid */
.wall-photo-polaroid {
  transform: rotate(8deg) translateY(14px);
  padding: 8px 8px 0;
  z-index: 3;
  margin-left: -14px;
}

.wall-photo-cap {
  font-family: var(--pm-font-accent);
  text-align: center;
  font-size: 15px;
  color: var(--pm-fg-secondary);
  padding: 8px 0 10px;
}

/* Markdown note mockup extras */
.mock-md-code {
  font-family: var(--pm-font-mono);
  font-size: 13px;
  background: rgba(42, 36, 24, 0.06);
  border-radius: 6px;
  padding: 8px 10px;
  margin: 10px 0;
  color: var(--pm-brand-ink);
}

/* Terminal + integrations mockup */
.mock-terminal {
  background: #1f1b16;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--pm-shadow-card);
}

.term-bar {
  display: flex;
  gap: 7px;
  padding: 11px 14px;
  background: rgba(255, 255, 255, 0.06);
}

.term-bar span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
}

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

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

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

.term-body {
  font-family: var(--pm-font-mono);
  font-size: 13px;
  line-height: 2;
  padding: 16px 18px;
  color: #f3ead0;
  word-break: break-word;
}

.term-prompt { color: #9bbf7e; font-weight: 700; margin-right: 8px; }

.term-out { color: rgba(243, 234, 208, 0.6); }

.mock-integrations {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 20px;
}

.integ-chip {
  background: var(--pm-bg-panel-elevated);
  border: 1px solid var(--pm-border-soft);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--pm-brand-ink);
  box-shadow: var(--pm-shadow-soft);
}

/* Scenario sub-block (CLI / AI) */
.scenario-subblock {
  margin: 22px 0;
  padding: 16px 18px;
  border-left: 3px solid var(--pm-brand-primary);
  background: var(--pm-brand-primary-muted);
  border-radius: 0 12px 12px 0;
}

.scenario-subblock .subblock-tag {
  display: block;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--pm-brand-ink);
  margin-bottom: 6px;
}

.scenario-subblock p {
  font-size: 15px;
  margin: 0;
}

.scenario-subblock code {
  font-family: var(--pm-font-mono);
  background: rgba(42, 36, 24, 0.08);
  padding: 1px 6px;
  border-radius: 4px;
}

.faq-title {
  text-align: center;
  margin-bottom: 48px;
}

/* Ownership & privacy — flat section with white cards, same language as
   plan-card / faq-item, between plans and FAQ. */
.ownership {
  padding: 0 24px 100px;
}

.ownership .scenario-section {
  padding-top: 0;
  padding-bottom: 0;
}

.ownership-panel {
  max-width: 1080px;
  margin: 0 auto;
}

.ownership-title {
  max-width: 720px;
  margin: 0 auto 14px;
  line-height: 1.08;
}

.ownership-lead {
  max-width: 700px;
  margin: 0 auto;
  color: var(--pm-fg-secondary);
  font-size: 17px;
  line-height: 1.65;
  text-align: center;
}

.ownership-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 42px;
}

.ownership-proof {
  background: var(--pm-bg-panel-elevated);
  border: 1px solid var(--pm-border-soft);
  border-radius: var(--pm-radius-note);
  padding: 28px 30px 32px;
  box-shadow: var(--pm-shadow-soft);
}

.ownership-proof h3 {
  margin: 0 0 10px;
  color: var(--pm-brand-ink);
  font-size: 18px;
  line-height: 1.3;
}

.ownership-proof p {
  margin: 0;
  color: var(--pm-fg-secondary);
  font-size: 15px;
  line-height: 1.65;
}

/* FAQ & Footer */
.faq { background: var(--pm-bg-panel); padding: 80px 24px 100px; border-top: 1px solid rgba(0,0,0,0.05); }

.faq .scenario-section { padding-top: 0; padding-bottom: 0; }

.faq-grid { max-width: 900px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }

/* :where() keeps this base rule at zero specificity so modifier classes
   (.plans-title / .ownership-title / .faq-title) win regardless of order. */
:where(.section-title) { font-size: 40px; font-weight: 800; color: var(--pm-brand-ink); letter-spacing: -1px; margin: 0; text-align: center; }

.faq-item { background: #fff; border: 1px solid var(--pm-border-soft); border-radius: 20px; padding: 24px 26px; box-shadow: var(--pm-shadow-soft); }

.faq-item h3 { margin: 0 0 12px; font-size: 19px; color: var(--pm-brand-ink); }

.faq-item p { margin: 0; color: var(--pm-fg-secondary); line-height: 1.65; }

.footer { padding: 80px 24px; text-align: center; color: var(--pm-fg-tertiary); font-size: 14px; }

.footer-content { max-width: 880px; margin: 0 auto; }

.footer-brand { font-size: 18px; font-weight: 800; color: var(--pm-brand-ink); margin-bottom: 10px; }

.footer-links { margin-top: 14px; display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; }

.footer-links a { color: var(--pm-fg-secondary); text-decoration: none; font-size: 13px; }

.footer-links a:hover { color: var(--pm-brand-ink); }

/* Content pages */
.content-page {
  max-width: 860px;
  margin: 0 auto;
  padding: calc(var(--pm-navbar-height) + 32px) 24px 64px;
  line-height: 1.75;
}

.content-page h1 {
  margin: 0 0 18px;
  font-size: 40px;
  line-height: 1.15;
  letter-spacing: -1.2px;
  color: var(--pm-brand-ink);
}

.content-page h2 {
  margin: 34px 0 10px;
  font-size: 24px;
  line-height: 1.35;
  color: var(--pm-brand-ink);
}

.content-page h3 {
  margin: 20px 0 8px;
  font-size: 19px;
  line-height: 1.45;
  color: var(--pm-brand-ink);
}

.content-page p,
.content-page li {
  color: var(--pm-fg-secondary);
  font-size: 16px;
}

.back-home {
  display: inline-block;
  margin-bottom: 22px;
  color: var(--pm-brand-ink);
  text-decoration: none;
  font-weight: 600;
}

.back-home:hover { opacity: 0.78; }

/* Guide page */
.guide-page {
  --manual-bg: #ffffff;
  --manual-text: #1d1d1f;
  --manual-accent: #007aff;
  --manual-border: #f5f5f7;
  --manual-key-bg: #fdfdfd;
  --manual-key-shadow: rgba(0, 0, 0, 0.1);
}

.guide-page .guide-container {
  max-width: 800px;
  margin: 0 auto 40px;
  padding: calc(var(--pm-navbar-height) + 40px) 20px 0;
  color: var(--manual-text);
}

.guide-page .guide-content {
  background: var(--manual-bg);
  padding: 40px;
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  line-height: 1.6;
}

.guide-page .guide-content h1 {
  font-size: 32px;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 24px;
  border-bottom: 2px solid var(--manual-border);
  padding-bottom: 16px;
}

.guide-page .guide-content h2 {
  font-size: 20px;
  font-weight: 600;
  margin-top: 32px;
  margin-bottom: 16px;
  color: var(--manual-accent);
  display: flex;
  align-items: center;
}

.guide-page .guide-content h2::before {
  content: "";
  width: 4px;
  height: 20px;
  background: var(--manual-accent);
  margin-right: 12px;
  border-radius: 2px;
}

.guide-page .guide-content h3 {
  font-size: 17px;
  font-weight: 600;
  margin-top: 24px;
  margin-bottom: 12px;
}

.guide-page .guide-content ul {
  padding-left: 20px;
  margin-bottom: 16px;
}

.guide-page .guide-content li {
  margin-bottom: 10px;
}

.guide-page .guide-content code {
  background: var(--manual-border);
  padding: 3px 6px;
  border-radius: 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 85%;
}

.guide-page .shortcut {
  background: var(--manual-key-bg);
  border: 1px solid var(--manual-border);
  border-bottom: 2px solid var(--manual-border);
  padding: 2px 6px;
  border-radius: 5px;
  font-size: 0.85em;
  margin: 0 2px;
  box-shadow: 0 1px 1px var(--manual-key-shadow);
  display: inline-block;
  line-height: 1;
}

.guide-page .pro-badge {
  background: #ff9500;
  color: white;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  vertical-align: middle;
  margin-left: 6px;
  text-transform: uppercase;
}

.guide-page .back-home {
  color: var(--manual-accent);
}

@media (prefers-color-scheme: dark) {
  .guide-page {
    --manual-bg: #1e1e1e;
    --manual-text: #f5f5f7;
    --manual-accent: #a1a1a6;
    --manual-border: #2c2c2e;
    --manual-key-bg: #3a3a3c;
    --manual-key-shadow: rgba(0, 0, 0, 0.3);
  }
}

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

@media (max-width: 900px) {
  .navbar { height: auto; min-height: var(--pm-navbar-height); padding: 8px 0; }
  .navbar-content { height: auto; display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; row-gap: 8px; align-items: center; }
  .logo-section { grid-column: 1; grid-row: 1; }
  .lang-switch { grid-column: 2; grid-row: 1; margin-left: 0; font-size: 11px; }
  .nav-links { grid-column: 1 / -1; grid-row: 2; display: flex; align-items: center; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
  .nav-links a { margin-left: 0; white-space: nowrap; font-size: 13px; padding: 8px 10px; border: 1px solid var(--pm-border-soft); border-radius: 999px; background: #fff; }
  .nav-links a.download-btn-small { padding: 8px 14px; background: var(--pm-brand-ink); border-color: var(--pm-brand-ink); }
  .hero { padding-top: 220px; }
  .hero, .scenario-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-centered { padding-top: 200px; }
  .hero-title { font-size: 42px; }
  .hero-carousel { margin-top: 40px; }
  .carousel-arrow { width: 36px; height: 36px; font-size: 20px; }
  .carousel-prev { left: 10px; }
  .carousel-next { right: 10px; }
  .carousel-caption { font-size: 14px; }
  .hero-actions { justify-content: center; flex-direction: column; align-items: center; gap: 12px; }
  .hero-actions .btn-primary, .hero-actions .btn-secondary { width: 100%; max-width: 320px; }
  .hero-proof { text-align: center; }
  .scenario-content { order: 2; }
  .visual-mockup { order: 1; margin-bottom: 20px; }
  .audience-grid { grid-template-columns: 1fr; gap: 16px; }
  .guide-topic-grid { grid-template-columns: 1fr; }
  .audience-section { padding: 40px 18px 0; }
  .trust-bar { gap: 30px; margin: 40px 0; }
  .mock-photo-wall { height: 230px; }
  .mock-photo-wall .wall-photo { width: 72px; }
  .mock-photo-wall .wall-photo-image { height: 72px; }
  .mock-photo-wall .wall-photo-pinned .wall-photo-image { height: 92px; }
  .mock-photo-wall .wall-photo-polaroid .wall-photo-image { height: 72px; }
  .dock-container-mock, .mock-ghost-container { width: 100%; max-width: 320px; }
  /* No hover on touch: show the docked note in place instead of off-screen */ .dock-container-mock { height: auto; }
  .dock-hover-zone { display: none; }
  .dock-demo-slide, .dock-demo-slide:hover { position: static; transform: none; width: 100%; border-radius: var(--pm-radius-note); }
  .plan-grid { grid-template-columns: 1fr; }
  .plans-subtitle { font-size: 16px; margin-bottom: 30px; }
  .ownership { padding: 0 18px 72px; }
  .ownership-title { font-size: 32px; }
  .ownership-lead { font-size: 16px; }
  .ownership-grid { grid-template-columns: 1fr; gap: 16px; margin-top: 30px; }
  .ownership-proof { padding: 22px; }
  .ownership-proof p { font-size: 15px; }
  .faq { padding: 72px 18px 84px; }
  .faq-title { margin-bottom: 36px; }
  .faq-grid { grid-template-columns: 1fr; }
  .content-page { padding: calc(var(--pm-navbar-height) + 90px) 18px 52px; }
  .content-page h1 { font-size: 32px; }
  :where(.section-title) { font-size: 34px; }
  .guide-page .guide-content { padding: 24px 18px; }
  .guide-page .guide-container { padding: calc(var(--pm-navbar-height) + 90px) 12px 0; }
  .navbar-content { padding: 0 16px; }
}

@media (max-width: 600px) {
  .hero-title { font-size: 36px; }
  .trust-bar { justify-content: space-around; gap: 20px; }
  .trust-item span:not(.trust-icon) { font-size: 12px; }
}
