/* ZenAIGC Homepage (/home) — Architectural Stillness & Editorial Cinema */

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

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: #F6F5F0;
  color: #191724;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.zh {
  --bg: #F6F5F0;
  --bg-subtle: #ECE9E1;
  --surface: #FFFFFF;
  --ink: #191724;
  --ink-2: #585566;
  --ink-3: #8B8798;
  --iris: #5B43E6;
  --iris-hover: #4B35CC;
  --iris-soft: rgba(91, 67, 230, 0.09);
  --iris-border: rgba(91, 67, 230, 0.22);
  --obsidian: #191724;
  --obsidian-2: #242134;
  --hairline: rgba(25, 23, 36, 0.085);
  --hairline-strong: rgba(25, 23, 36, 0.16);
  --sage: #E6E1FF;
  --sage-ink: #3C28B4;
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  overflow-x: clip;
}

html[data-theme="dark"] body {
  background: #13121B;
  color: #F5F4F0;
}

html[data-theme="dark"] .zh {
  --bg: #13121B;
  --bg-subtle: #1C1A27;
  --surface: #211E2E;
  --ink: #F5F4F0;
  --ink-2: #B4B0C2;
  --ink-3: #807B92;
  --iris: #8E77FF;
  --iris-hover: #A08BFF;
  --iris-soft: rgba(142, 119, 255, 0.15);
  --iris-border: rgba(142, 119, 255, 0.32);
  --obsidian: #1C1A27;
  --obsidian-2: #252235;
  --hairline: rgba(245, 244, 240, 0.09);
  --hairline-strong: rgba(245, 244, 240, 0.18);
  --sage: rgba(142, 119, 255, 0.18);
  --sage-ink: #D8CFFF;
}

.mono {
  font-family: "SF Mono", "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  font-feature-settings: "tnum" 1;
}

.wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 200;
  background: var(--ink);
  color: var(--bg);
  padding: 8px 16px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 13px;
}
.skip:focus {
  left: 16px;
}

/* Icons */
.ic {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

/* Brand Mark: Chromatic Viewfinder Z (Logo 01 — Dual Wing Light/Dark) */
.zm {
  width: 22px;
  height: 22px;
  display: block;
  fill: currentColor;
  flex-shrink: 0;
}
.zm-sm {
  width: 16px;
  height: 16px;
  display: block;
  fill: currentColor;
  flex-shrink: 0;
}
.zm-wing-ink {
  fill: #191724;
  transition: fill 0.18s ease;
}
.zm-wing-iris {
  fill: #5B43E6;
  transition: fill 0.18s ease;
}
html[data-theme="dark"] .zm-wing-ink {
  fill: #F5F4F0;
}
html[data-theme="dark"] .zm-wing-iris {
  fill: #8E77FF;
}

/* Official Vector Brand Fills */
.cl-coral { fill: #D97757; }
.sd-1 { fill: #3259B4; }
.sd-2 { fill: #3C8CFF; }
.sd-3 { fill: #00C8D2; }
.sd-4 { fill: #78E6DD; }
.ink-fill { fill: var(--ink); }

/* Header — Frameless Architectural Calm */
.hd {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(246, 245, 240, 0.84);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--hairline);
}
html[data-theme="dark"] .hd {
  background: rgba(19, 18, 27, 0.84);
}
.hd-in {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: var(--ink);
}
.wm {
  font-size: 16.5px;
  font-weight: 660;
  letter-spacing: -0.03em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav a {
  color: var(--ink-2);
  text-decoration: none;
  font-size: 14px;
  font-weight: 470;
  letter-spacing: -0.01em;
  transition: color 0.16s ease;
}
.nav a:hover,
.nav a.is-active {
  color: var(--ink);
}
.nav a.is-active {
  font-weight: 580;
}

.hd-r {
  display: flex;
  align-items: center;
  gap: 10px;
}
.lang-btn {
  border: 0;
  background: transparent;
  color: var(--ink-2);
  font-family: inherit;
  font-size: 13px;
  font-weight: 540;
  letter-spacing: 0.01em;
  padding: 6px 8px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.16s ease, background-color 0.16s ease;
}
.lang-btn:hover {
  color: var(--ink);
  background: var(--hairline);
}
.login-link {
  color: var(--ink-2);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 6px 4px;
  transition: color 0.16s ease;
}
.login-link:hover {
  color: var(--iris);
}

/* Header popovers — avatar menu (signed in) and mobile menu share one porcelain panel */
.avatar-menu,
.hd-burger {
  position: relative;
}
.avatar-menu > summary,
.hd-burger > summary {
  list-style: none;
  cursor: pointer;
  user-select: none;
}
.avatar-menu > summary::-webkit-details-marker,
.hd-burger > summary::-webkit-details-marker {
  display: none;
}
.avatar {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, #7A63F0 0%, #5B43E6 100%);
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 620;
  letter-spacing: 0.02em;
  line-height: 1;
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px var(--hairline-strong);
  transition: box-shadow 0.12s ease;
}
html[data-theme="dark"] .avatar {
  background: linear-gradient(135deg, #A08BFF 0%, #6F58F2 100%);
  color: #13121B;
}
summary.avatar:hover,
.avatar-menu[open] > summary.avatar {
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px var(--iris-border);
}
summary.avatar:focus-visible,
.burger-btn:focus-visible {
  outline: 2px solid var(--iris);
  outline-offset: 3px;
}
.avatar-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.avatar-lg {
  width: 36px;
  height: 36px;
  font-size: 14px;
  box-shadow: none;
}
.burger-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  color: var(--ink-2);
  transition: background-color 0.16s ease, color 0.16s ease;
}
.burger-btn .ic {
  width: 18px;
  height: 18px;
}
.burger-btn:hover,
.hd-burger[open] > .burger-btn {
  background: var(--hairline);
  color: var(--ink);
}
.avatar-pop,
.hd-menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: 228px;
  max-width: calc(100vw - 40px);
  z-index: 120;
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  box-shadow: 0 18px 48px rgba(25, 23, 36, 0.12), 0 2px 6px rgba(25, 23, 36, 0.05);
  animation: hm-in 0.16s ease-out;
}
html[data-theme="dark"] .avatar-pop,
html[data-theme="dark"] .hd-menu-panel {
  border-color: var(--hairline-strong);
  box-shadow: 0 22px 56px rgba(0, 0, 0, 0.5);
}
@keyframes hm-in {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: none; }
}
.avatar-id {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 8px 10px;
}
.avatar-id-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.avatar-name,
.avatar-mail {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.avatar-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.avatar-mail {
  font-size: 12px;
  color: var(--ink-3);
}
.hm-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 4px 0;
}
.avatar-id + .hm-group,
.hm-group + .hm-group {
  border-top: 1px solid var(--hairline);
}
.hm-item {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--ink-2);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  text-align: left;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.14s ease, color 0.14s ease;
}
.hm-item:hover,
.hm-item:focus-visible {
  background: var(--bg-subtle);
  color: var(--ink);
  outline: none;
}
.hm-item[aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
}
.hm-lang-xs {
  display: none;
}

/* Footer theme switch — light / system / dark */
.theme-seg {
  display: inline-flex;
  gap: 2px;
  padding: 2px;
  border-radius: 999px;
  border: 1px solid var(--hairline);
}
.theme-seg button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 26px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-3);
  cursor: pointer;
  transition: background-color 0.14s ease, color 0.14s ease;
}
.theme-seg button:hover {
  color: var(--ink);
}
.theme-seg button[aria-checked="true"] {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(25, 23, 36, 0.1);
}
.theme-seg .ic {
  width: 14px;
  height: 14px;
}

/* Minimalist Tactile Pill Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 550;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, opacity 0.16s ease;
}
.btn-sm {
  font-size: 13.5px;
  padding: 7px 16px;
}
.btn-lg {
  font-size: 15px;
  padding: 11px 24px;
}
.btn-ink {
  background: var(--ink);
  color: var(--bg);
}
.btn-ink:hover {
  background: var(--iris);
  color: #FFFFFF;
}
.btn-ink.btn-lg {
  background: var(--iris);
  color: #FFFFFF;
  box-shadow: 0 8px 22px rgba(91, 67, 230, 0.20);
}
.btn-ink.btn-lg:hover {
  background: var(--iris-hover);
  box-shadow: 0 10px 26px rgba(91, 67, 230, 0.28);
}
html[data-theme="dark"] .btn-ink.btn-lg {
  color: #13121B;
  box-shadow: 0 8px 24px rgba(142, 119, 255, 0.24);
}
.btn-stone {
  background: var(--bg-subtle);
  border-color: var(--hairline);
  color: var(--ink);
}
.btn-stone:hover {
  background: var(--surface);
  border-color: var(--hairline-strong);
}
.btn-ivory {
  background: var(--iris);
  color: #FFFFFF;
  font-weight: 580;
  font-size: 14px;
  padding: 9px 19px;
  box-shadow: 0 6px 18px rgba(91, 67, 230, 0.18);
}
.btn-ivory:hover {
  background: var(--iris-hover);
}
html[data-theme="dark"] .btn-ivory {
  color: #13121B;
}
.btn-in {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.btn:disabled {
  opacity: 0.52;
  cursor: not-allowed;
  box-shadow: none;
}
.btn-stone:disabled:hover {
  background: var(--bg-subtle);
  border-color: var(--hairline);
}
.btn-ivory:disabled:hover {
  background: var(--iris);
}

/* 01 HERO — Sculptural Focus & Generous Air */
.hero {
  padding: 68px 0 56px;
}
.hero-intro {
  max-width: 920px;
  margin: 0 auto 44px;
  text-align: center;
}
.eyebrow {
  margin: 0 0 18px;
  font-size: 12.5px;
  font-weight: 560;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--iris);
}
:lang(zh-CN) .eyebrow {
  letter-spacing: 0.06em;
  font-size: 13px;
}

.h1 {
  margin: 0;
  font-size: clamp(32px, 4.1vw, 54px);
  line-height: 1.12;
  font-weight: 660;
  letter-spacing: -0.036em;
  color: var(--ink);
  text-wrap: balance;
}
:lang(en) .h1 {
  font-size: clamp(36px, 4.7vw, 62px);
  line-height: 1.06;
  font-weight: 620;
  letter-spacing: -0.042em;
  max-width: 14.5em;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  margin-top: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

/* Immersive Fine-Art Landscape Canvas (Cursor-inspired gallery stage) */
.canvas-frame {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  background: #DDD8CC;
  padding: 24px 32px 36px;
  box-shadow: 0 28px 70px rgba(20, 20, 19, 0.08);
}
.canvas-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.92) contrast(0.97);
  pointer-events: none;
}
.canvas-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(246, 245, 240, 0.16) 0%, rgba(20, 20, 19, 0.14) 100%);
  pointer-events: none;
}

.canvas-bar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
}
.canvas-label {
  font-size: 12.5px;
  font-weight: 520;
  color: rgba(20, 20, 19, 0.72);
  background: rgba(250, 249, 245, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 5px 12px;
  border-radius: 999px;
}
.mode-switch {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  background: rgba(250, 249, 245, 0.74);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  gap: 2px;
}
.mode-btn {
  border: 0;
  background: transparent;
  color: rgba(20, 20, 19, 0.65);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 540;
  padding: 5px 13px;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.16s ease, color 0.16s ease;
}
.mode-btn.on {
  background: #191724;
  color: #FAF9F5;
}

/* 3-Beat Visual Composition inside Canvas */
.stage-triptych {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 232px minmax(280px, 380px) 254px;
  align-items: center;
  justify-content: center;
  gap: 26px;
}

/* Real 9:16 Photographic Reels */
.reel-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.reel {
  position: relative;
  aspect-ratio: 9 / 16;
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  background: #1B1B19;
  box-shadow: 0 22px 48px rgba(20, 20, 19, 0.22);
}
.reel-hero {
  box-shadow: 0 28px 64px rgba(20, 20, 19, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.36);
}
.reel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.reel-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(16, 16, 15, 0.34) 0%, transparent 28%, transparent 60%, rgba(16, 16, 15, 0.68) 100%);
  pointer-events: none;
}
.reel-top {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.reel-pill {
  font-size: 11px;
  font-weight: 560;
  letter-spacing: -0.01em;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(20, 20, 19, 0.56);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: rgba(255, 255, 255, 0.94);
}
.reel-pill.is-accent {
  background: rgba(250, 249, 245, 0.92);
  color: #191724;
  font-weight: 620;
}
.reel-time {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.86);
}
.reel-bottom {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.reel-caption {
  margin: 0;
  font-size: 12px;
  font-weight: 560;
  line-height: 1.35;
  color: #FFFFFF;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}
.reel-cuts {
  display: grid;
  grid-template-columns: 2fr 4.5fr 3.5fr;
  gap: 4px;
}
.reel-cuts span {
  height: 3px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.52);
}
.reel-cuts span:first-child {
  background: #FFFFFF;
}
.reel-audio {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.84);
}
.wave {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  height: 10px;
}
.wave i {
  width: 2px;
  height: 7px;
  border-radius: 99px;
  background: #FAF9F5;
  animation: wave-pulse 1.4s ease-in-out infinite;
}
.wave i:nth-child(2) { height: 10px; animation-delay: 0.2s; }
.wave i:nth-child(3) { height: 5px; animation-delay: 0.4s; }
.wave i:nth-child(4) { height: 9px; animation-delay: 0.6s; }

/* Prompt Pill under Reference Reel */
.prompt-pill {
  background: rgba(250, 249, 245, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 14px;
  padding: 10px 13px;
  box-shadow: 0 12px 28px rgba(20, 20, 19, 0.12);
}
.prompt-pill p {
  margin: 0;
  font-size: 12.5px;
  font-weight: 540;
  line-height: 1.45;
  color: var(--ink);
}

/* Idea Input Card (Scenario 2 Left) */
.idea-note {
  background: rgba(250, 249, 245, 0.95);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: 20px;
  padding: 22px 20px;
  box-shadow: 0 20px 44px rgba(20, 20, 19, 0.14);
}
.idea-kicker {
  display: block;
  font-size: 11px;
  font-weight: 560;
  color: var(--ink-3);
  margin-bottom: 10px;
  letter-spacing: 0.02em;
}
.idea-note p {
  margin: 0;
  font-size: 15px;
  font-weight: 560;
  line-height: 1.52;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.idea-from {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--hairline);
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 520;
  color: var(--ink-2);
}
.idea-from img {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  display: block;
}

/* Center Agent Plan Sheet — Minimalist SuperOne Card */
.plan-sheet {
  background: rgba(252, 251, 248, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 22px;
  padding: 22px 24px;
  box-shadow: 0 24px 56px rgba(20, 20, 19, 0.16);
}
.ps-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--hairline);
}
.ps-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 620;
  color: var(--ink);
}
.ps-meta {
  font-size: 11.5px;
  color: var(--ink-3);
}

.ps-rows {
  list-style: none;
  margin: 6px 0 18px;
  padding: 0;
}
.ps-rows li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--hairline);
}
.ps-rows li:last-child {
  border-bottom: 0;
}
.ps-step {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
}
.ps-num {
  font-size: 11.5px;
  color: var(--ink-3);
  flex-shrink: 0;
}
.ps-name {
  font-size: 13.5px;
  font-weight: 540;
  color: var(--ink);
}
.ps-dur {
  font-size: 11.5px;
  color: var(--ink-3);
  flex-shrink: 0;
}

.ps-action {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 0;
  border-radius: 12px;
  background: var(--ink);
  color: #FAF9F5;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 560;
  padding: 11px 16px;
  cursor: pointer;
  transition: background-color 0.16s ease;
}
.ps-action:hover {
  background: #2C2B28;
}
.ps-action.is-confirmed {
  background: var(--sage-ink);
  color: var(--sage);
}
.ps-action.is-static {
  cursor: default;
  background: var(--bg-subtle);
  color: var(--ink);
}

/* Whisper-Quiet Client Strip below Hero Canvas (Claude Code inspired) */
.client-bar {
  margin-top: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 26px;
}
.cb-caption {
  font-size: 13px;
  color: var(--ink-3);
}
.cb-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 22px;
}
.cb-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--ink-2);
  font-size: 13.5px;
  font-weight: 500;
  padding: 4px 0;
  transition: color 0.15s ease;
}
.cb-item:hover {
  color: var(--ink);
}
.cb-item img, .cb-item svg {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  display: block;
  object-fit: cover;
}
.rec-tag {
  display: inline-flex;
  align-items: center;
  font-style: normal;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.01em;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--sage);
  color: var(--sage-ink);
  border: 1px solid var(--iris-border);
  white-space: nowrap;
}

/* Editorial Section Rhythm — Generous Negative Space */
.sec {
  padding: 128px 0;
}
.h2 {
  margin: 0;
  font-size: clamp(28px, 3.3vw, 42px);
  line-height: 1.15;
  font-weight: 650;
  letter-spacing: -0.034em;
  color: var(--ink);
  text-wrap: balance;
}
:lang(en) .h2 {
  font-weight: 610;
  letter-spacing: -0.038em;
  line-height: 1.1;
}

/* 02 WHY CHANGE — Asymmetric Editorial Split, Zero Boxes */
.why-layout {
  display: grid;
  grid-template-columns: minmax(0, 4.4fr) minmax(0, 6.6fr);
  gap: 64px;
  align-items: start;
}
.why-thesis {
  margin: 18px 0 0;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 22em;
}
.why-rows {
  border-top: 1px solid var(--hairline-strong);
}
.why-row {
  padding: 30px 0;
  border-bottom: 1px solid var(--hairline);
}
.why-before {
  margin: 0 0 8px;
  font-size: 14px;
  color: var(--ink-3);
}
.why-now {
  margin: 0;
  font-size: clamp(18px, 1.8vw, 22px);
  line-height: 1.38;
  font-weight: 580;
  letter-spacing: -0.02em;
  color: var(--ink);
}
#why .why-now {
  font-size: clamp(20px, 2.05vw, 25px);
  line-height: 1.3;
  font-weight: 640;
  letter-spacing: -0.025em;
}
.why-sub {
  margin: 8px 0 0;
  font-size: 14.5px;
  line-height: 1.62;
  color: var(--ink-2);
  max-width: 44em;
}

/* 03 WAYS TO START — Pure Gallery Triptych, Zero Card Soup */
.sec-ways {
  padding-top: 40px;
}
.sec-head {
  margin-bottom: 48px;
  max-width: 760px;
}
.sec-lead {
  margin: 14px 0 0;
  font-size: 17px;
  color: var(--ink-2);
}

.ways-triptych {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}
.way-item {
  display: flex;
  flex-direction: column;
}
.way-plate {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 20px;
  overflow: hidden;
  background: var(--bg-subtle);
  margin-bottom: 20px;
}

/* Plate 1: Split Reference -> Yours */
.plate-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: #FAF9F5;
}
.plate-split img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.split-badge {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(250, 249, 245, 0.94);
  color: #191724;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  box-shadow: 0 6px 18px rgba(20, 20, 19, 0.16);
}

/* Plate 2: Idea Cinema Frame */
.plate-idea img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.plate-overlay-pill {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  background: rgba(20, 20, 19, 0.66);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: rgba(255, 255, 255, 0.94);
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

/* Plate 3: Minimalist Architectural Contact Sheet (Soon) */
.plate-soon {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: linear-gradient(180deg, #EBE8DF 0%, #E1DDD2 100%);
}
.storyboard-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.sb-frame {
  aspect-ratio: 9 / 14.5;
  border-radius: 12px;
  background: rgba(252, 251, 248, 0.92);
  border: 1px solid rgba(20, 20, 19, 0.08);
  box-shadow: 0 10px 24px rgba(20, 20, 19, 0.05);
  padding: 9px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 7px;
}
.sb-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sb-top span {
  font-size: 10px;
  font-weight: 600;
  color: var(--ink-2);
}
.sb-top i {
  font-style: normal;
  font-size: 9.5px;
  color: var(--ink-3);
}
.sb-shot {
  flex: 1;
  border-radius: 7px;
  display: block;
}
.sb-shot-1 {
  background: linear-gradient(145deg, #DED9CC 0%, #CBC3B2 100%);
}
.sb-shot-2 {
  background: linear-gradient(145deg, #D5DCCD 0%, #BFC9B4 100%);
}
.sb-shot-3 {
  background: linear-gradient(145deg, #E2DDD2 0%, #CFC8B8 100%);
}
.sb-frame em {
  font-style: normal;
  font-size: 11px;
  font-weight: 560;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.way-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.way-item h3 {
  margin: 0;
  font-size: 19px;
  font-weight: 620;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.soon-tag {
  font-size: 11.5px;
  font-weight: 540;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--bg-subtle);
  color: var(--ink-2);
}
.way-item p {
  margin: 0;
  font-size: 15px;
  line-height: 1.58;
  color: var(--ink-2);
}

/* 04 ECOSYSTEM, ONE-LINE SETUP & MODELS — Warm Limestone & Porcelain Console (No Black Patch) */
.cmd-console {
  background: var(--bg-subtle);
  color: var(--ink);
  border: 1px solid var(--hairline-strong);
  border-radius: 22px;
  padding: 28px 32px;
  margin-bottom: 56px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}
html[data-theme="dark"] .cmd-console {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.cc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 18px;
}
.cc-title {
  margin: 0;
  font-size: 14.5px;
  font-weight: 540;
  color: var(--ink-2);
}
.cc-flow {
  list-style: none;
  margin: -6px 0 16px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  font-size: 13px;
  color: var(--ink-2);
}
.cc-flow li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.cc-flow li + li::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--hairline-strong);
  margin-right: 3px;
}
.cc-flow-num {
  font-size: 11px;
  font-weight: 600;
  color: var(--iris);
}

.cc-well {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: 18px 22px;
  box-shadow: 0 8px 24px rgba(25, 23, 36, 0.04);
}
html[data-theme="dark"] .cc-well {
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}
.gl-tx {
  margin: 0;
  font-size: 15px;
  line-height: 1.68;
  color: var(--ink);
  word-break: break-word;
}
.gl-tx .url {
  color: var(--iris);
  background: var(--iris-soft);
  padding: 2px 7px;
  border-radius: 6px;
  font-family: "SF Mono", "JetBrains Mono", ui-monospace, Menlo, monospace;
  font-size: 13.5px;
  font-weight: 560;
}
.code {
  margin: 0;
  font-size: 14.5px;
  color: var(--ink);
}
.code .pr {
  color: var(--iris);
  margin-right: 10px;
  font-weight: 600;
  user-select: none;
}

.cc-foot {
  margin-top: 18px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
}
.cc-guide {
  color: var(--ink-2);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 520;
  transition: color 0.15s ease;
}
.cc-guide:hover {
  color: var(--iris);
}
.copy-msg {
  margin: 0;
  font-size: 13px;
  font-weight: 540;
  color: var(--iris);
}

/* Hairline Ecosystem Directory — Clean & Quiet */
.eco-ledger {
  border-top: 1px solid var(--hairline-strong);
}
.eco-row {
  display: grid;
  grid-template-columns: 164px minmax(0, 1fr);
  gap: 24px;
  padding: 32px 0;
  border-bottom: 1px solid var(--hairline);
  align-items: center;
}
.eco-label h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}
.eco-label p {
  margin: 3px 0 0;
  font-size: 12.5px;
  color: var(--ink-3);
}

.pill-cloud {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.brand-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px 8px 10px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 11px;
  font-size: 13.5px;
  font-weight: 540;
  color: var(--ink);
}
.brand-pill.is-featured {
  border-color: var(--iris-border);
  box-shadow: 0 4px 14px var(--iris-soft);
}
.brand-pill img, .brand-pill svg {
  width: 19px;
  height: 19px;
  border-radius: 5px;
  display: block;
  object-fit: cover;
  flex-shrink: 0;
}
.pill-note {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--ink-2);
}
.brand-pill.is-more {
  background: transparent;
  border-style: dashed;
  color: var(--ink-3);
  font-weight: 480;
  padding: 0;
}
.pill-more-link {
  display: inline-flex;
  align-items: center;
  padding: 8px 13px;
  color: var(--ink-2);
  text-decoration: none;
  transition: color 0.15s ease;
}
.pill-more-link:hover {
  color: var(--ink);
}

/* ==========================================================================
   SUBPAGES (/showcase · /models · /pricing · /docs)
   Shared Architectural Rhythm, Editorial Typography & Tactile Surfaces
   ========================================================================== */

.sub-hero {
  padding: 68px 0 40px;
}
.sub-h1 {
  margin: 0;
  font-size: clamp(32px, 3.8vw, 50px);
  line-height: 1.12;
  font-weight: 660;
  letter-spacing: -0.036em;
  color: var(--ink);
  max-width: 18em;
  text-wrap: balance;
}
:lang(en) .sub-h1 {
  font-size: clamp(34px, 4.3vw, 56px);
  line-height: 1.07;
  font-weight: 620;
  letter-spacing: -0.04em;
  max-width: 15.5em;
}
.sub-lead {
  margin: 18px 0 0;
  font-size: 17px;
  line-height: 1.62;
  color: var(--ink-2);
  max-width: 40em;
}

.filter-bar {
  margin-top: 34px;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 4px;
  border-radius: 999px;
  background: var(--bg-subtle);
}
.filter-pill {
  border: 0;
  background: transparent;
  color: var(--ink-2);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 530;
  padding: 7px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.16s ease, color 0.16s ease;
}
.filter-pill:hover {
  color: var(--ink);
}
.filter-pill.on {
  background: var(--ink);
  color: #FAF9F5;
}

.sub-sec {
  padding: 52px 0 72px;
}
.sub-sec + .sub-sec {
  border-top: 1px solid var(--hairline);
}

.kicker-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 560;
  letter-spacing: 0.02em;
  color: var(--ink-3);
  margin-bottom: 10px;
}

.text-arrow {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 560;
  font-family: inherit;
  background: none;
  border: 0;
  padding: 0;
  text-decoration: none;
  transition: opacity 0.15s ease;
}
.text-arrow:hover {
  opacity: 0.72;
}
.text-arrow:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

/* Section Category Header (Models / Pricing / Docs) */
.cat-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-bottom: 36px;
}
.cat-head > div {
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.cat-num {
  font-size: 12.5px;
  color: var(--ink-3);
}
.cat-h2 {
  margin: 0;
  font-size: clamp(22px, 2.3vw, 28px);
  font-weight: 640;
  letter-spacing: -0.028em;
  color: var(--ink);
}
.cat-note {
  margin: 0;
  font-size: 14px;
  color: var(--ink-3);
}

/* --- SHOWCASE (/showcase) --- */
.case-feature {
  display: grid;
  grid-template-columns: minmax(0, 5.4fr) minmax(0, 5.6fr);
  gap: 56px;
  align-items: center;
}
.cf-stage {
  background: var(--bg-subtle);
  border-radius: 24px;
  padding: 28px;
}
.cf-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: center;
}
.cf-h2 {
  margin: 0 0 18px;
  font-size: clamp(24px, 2.6vw, 32px);
  line-height: 1.2;
  font-weight: 640;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-wrap: balance;
}
.case-quote {
  margin: 0 0 24px;
  padding: 14px 18px;
  border-left: 2px solid var(--ink);
  background: rgba(255, 255, 255, 0.56);
  border-radius: 0 12px 12px 0;
  font-size: 15px;
  font-weight: 530;
  color: var(--ink);
}

.beat-rows {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  border-top: 1px solid var(--hairline-strong);
}
.beat-rows li {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: baseline;
  padding: 11px 0;
  border-bottom: 1px solid var(--hairline);
  font-size: 13.5px;
  color: var(--ink);
}
.beat-rows li > span:first-child,
.beat-rows li > i {
  font-style: normal;
  font-size: 11.5px;
  color: var(--ink-3);
}

.spec-dl {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.spec-dl dt {
  font-size: 11.5px;
  color: var(--ink-3);
  margin-bottom: 3px;
}
.spec-dl dd {
  margin: 0;
  font-size: 13px;
  font-weight: 560;
  color: var(--ink);
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 56px 48px;
}
.case-card {
  display: grid;
  grid-template-columns: 196px minmax(0, 1fr);
  gap: 26px;
  align-items: center;
}
.case-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.case-h3 {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.28;
  font-weight: 630;
  letter-spacing: -0.024em;
  color: var(--ink);
}
.case-prompt {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.56;
  color: var(--ink-2);
}
.mini-beats {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  border-top: 1px solid var(--hairline);
}
.mini-beats li {
  padding: 7px 0;
  border-bottom: 1px solid var(--hairline);
  font-size: 12.5px;
  color: var(--ink-2);
}
.case-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  color: var(--ink-3);
}
.case-meta span:last-child {
  color: var(--ink);
  font-weight: 580;
}

/* --- MODELS (/models) --- */
.model-ledger {
  border-top: 1px solid var(--hairline-strong);
}
.model-row {
  display: grid;
  grid-template-columns: minmax(210px, 2.7fr) minmax(0, 4.9fr) minmax(190px, 2.4fr);
  gap: 28px;
  padding: 28px 0;
  border-bottom: 1px solid var(--hairline);
  align-items: start;
}
.model-row.is-upcoming {
  opacity: 0.78;
}
.mr-brand {
  display: flex;
  align-items: flex-start;
  gap: 13px;
}
.mr-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #FFFFFF;
  border: 1px solid var(--hairline);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.mr-icon img,
.mr-icon svg {
  width: 21px;
  height: 21px;
  border-radius: 4px;
  display: block;
  object-fit: cover;
}
.mr-icon-line .ic {
  width: 19px;
  height: 19px;
  color: var(--ink);
}
.mr-brand h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.25;
  font-weight: 630;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.mr-sub {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--ink-3);
}
.mr-body p {
  margin: 0 0 12px;
  font-size: 14.5px;
  line-height: 1.58;
  color: var(--ink-2);
}
.param-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.param-tags span {
  font-size: 11.5px;
  padding: 3px 9px;
  border-radius: 6px;
  background: var(--bg-subtle);
  color: var(--ink-2);
}
.mr-price {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mr-price strong {
  font-size: 15px;
  font-weight: 620;
  color: var(--ink);
}
.mr-price span {
  font-size: 12px;
  color: var(--ink-3);
}

/* --- PRICING (/pricing) --- */
.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}
.plan-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 22px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 26px;
}
.plan-card.is-featured {
  background: var(--surface);
  color: var(--ink);
  border: 1.5px solid var(--iris-border);
  box-shadow: 0 24px 56px rgba(91, 67, 230, 0.10);
}
html[data-theme="dark"] .plan-card.is-featured {
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.36);
}
.pc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.pc-head h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 640;
  letter-spacing: -0.02em;
}
.pop-pill {
  font-size: 11.5px;
  font-weight: 580;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--iris-soft);
  color: var(--iris);
}
.pc-for {
  margin: 8px 0 24px;
  font-size: 13.5px;
  color: var(--ink-2);
  min-height: 2.8em;
}
.plan-card.is-featured .pc-for {
  color: var(--ink-2);
}
.pc-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.pc-price strong {
  font-size: clamp(36px, 3.6vw, 46px);
  line-height: 1;
  font-weight: 650;
  letter-spacing: -0.04em;
}
.pc-price span {
  font-size: 13.5px;
  color: var(--ink-3);
}
.plan-card.is-featured .pc-price span {
  color: var(--ink-3);
}
.pc-credits {
  margin: 12px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--hairline);
  font-size: 14px;
  font-weight: 580;
  color: var(--ink);
}
.plan-card.is-featured .pc-credits {
  border-top-color: var(--iris-border);
  color: var(--iris);
}
.pc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pc-list li {
  position: relative;
  padding-left: 16px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-2);
}
.pc-list li::before {
  content: "·";
  position: absolute;
  left: 2px;
  top: 0;
  font-weight: 700;
  color: var(--ink);
}
.plan-card.is-featured .pc-list li {
  color: var(--ink-2);
}
.plan-card.is-featured .pc-list li::before {
  color: var(--iris);
}
.pc-btn {
  width: 100%;
  padding: 11px 18px;
  font-size: 14px;
}
.plan-footnote {
  margin: 20px 0 0;
  font-size: 13px;
  color: var(--ink-3);
}

/* Credit Packs */
.pack-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.pack-item {
  background: var(--bg-subtle);
  border-radius: 18px;
  padding: 24px 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
}
.pack-tag {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 540;
  color: var(--ink-3);
  margin-bottom: 6px;
}
.pack-item h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 640;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.pack-foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--hairline);
}
.pack-foot strong {
  font-size: 20px;
  font-weight: 630;
  color: var(--ink);
}

/* 3-Column Hairline Rules / Onboarding Steps */
.rule-triptych {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px;
  border-top: 1px solid var(--hairline-strong);
  padding-top: 28px;
}
.rule-item > span {
  display: block;
  font-size: 12px;
  color: var(--ink-3);
  margin-bottom: 10px;
}
.rule-item h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 620;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.rule-item p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-2);
}
.step-link {
  margin-top: 14px;
}

/* FAQ Accordion */
.faq-sec {
  border-top: 1px solid var(--hairline);
}
.faq-list {
  border-top: 1px solid var(--hairline-strong);
}
.faq-item {
  border-bottom: 1px solid var(--hairline);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 16.5px;
  font-weight: 580;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::after {
  content: "+";
  font-size: 20px;
  font-weight: 400;
  color: var(--ink-3);
  flex-shrink: 0;
}
.faq-item[open] summary::after {
  content: "−";
}
.faq-item p {
  margin: 0;
  padding: 0 28px 24px 0;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--ink-2);
}

/* --- DOCS (/docs) --- */
.docs-console {
  margin-top: 36px;
  margin-bottom: 0;
}
.client-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}
.client-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  background: var(--surface);
  color: var(--ink-2);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 540;
  cursor: pointer;
  transition: border-color 0.16s ease, background-color 0.16s ease, color 0.16s ease;
}
.client-tab img,
.client-tab svg {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  display: block;
  object-fit: cover;
}
.client-tab:hover {
  color: var(--ink);
  border-color: var(--hairline-strong);
}
.client-tab.on {
  background: var(--iris);
  border-color: var(--iris);
  color: #FFFFFF;
}
html[data-theme="dark"] .client-tab.on {
  color: #13121B;
}

.client-pane {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 5fr);
  gap: 36px;
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 22px;
  padding: 32px;
}
.cp-steps h3 {
  margin: 0 0 14px;
  font-size: 21px;
  font-weight: 640;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.cp-steps ol {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-2);
}
.cp-path {
  margin: 16px 0 0;
  font-size: 12px;
  color: var(--ink-3);
  word-break: break-all;
}
.cfg-pre {
  margin: 0;
  background: var(--bg-subtle);
  color: var(--ink);
  border: 1px solid var(--hairline-strong);
  border-radius: 16px;
  padding: 20px 22px;
  font-size: 13px;
  line-height: 1.62;
  overflow-x: auto;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}
html[data-theme="dark"] .cfg-pre {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.cp-steps h3 .rec-tag {
  vertical-align: 4px;
  margin-left: 6px;
}
.cp-manual,
.dev-manual-box {
  border: 1px solid var(--hairline);
  border-radius: 16px;
  background: var(--bg-subtle);
}
.cp-manual > summary,
.dev-manual-box > summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  font-size: 13.5px;
  font-weight: 560;
  color: var(--ink-2);
  cursor: pointer;
  border-radius: 16px;
  transition: color 0.15s ease;
}
.cp-manual > summary::-webkit-details-marker,
.dev-manual-box > summary::-webkit-details-marker {
  display: none;
}
.cp-manual > summary::after,
.dev-manual-box > summary::after {
  content: "+";
  font-size: 16px;
  font-weight: 400;
  color: var(--ink-3);
}
.cp-manual[open] > summary::after,
.dev-manual-box[open] > summary::after {
  content: "−";
}
.cp-manual > summary:hover,
.dev-manual-box > summary:hover {
  color: var(--ink);
}
.cp-manual-body,
.dev-manual-body {
  padding: 0 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 13.5px;
  line-height: 1.62;
  color: var(--ink-2);
}
.cp-manual-body p,
.dev-manual-body p {
  margin: 0;
}
.cp-manual-body .cp-path {
  margin: 0;
}
.cp-manual .cfg-pre,
.dev-manual-box .cfg-pre {
  background: var(--surface);
}
.dev-manual-box {
  margin-top: 28px;
  background: transparent;
}
.client-pane.has-shots {
  grid-template-columns: minmax(0, 4.4fr) minmax(0, 5.6fr);
}
.cp-main {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.cp-shots {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cp-shot {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--hairline-strong);
  background: var(--bg-subtle);
}
.cp-shot img {
  display: block;
  width: 100%;
  height: auto;
}
.cp-shot figcaption {
  padding: 10px 14px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink-2);
  border-top: 1px solid var(--hairline);
  background: var(--surface);
}

/* 05 CLOSING — Pure Sculptural Negative Space */
.sec-close {
  padding: 132px 0 140px;
  text-align: center;
  border-top: 1px solid var(--hairline);
}
.close-in {
  max-width: 680px;
  margin: 0 auto;
}
.close-h2 {
  margin: 0 0 28px;
  font-size: clamp(30px, 3.8vw, 48px);
  line-height: 1.13;
  font-weight: 660;
  letter-spacing: -0.036em;
  color: var(--ink);
  text-wrap: balance;
}
:lang(en) .close-h2 {
  font-weight: 610;
  letter-spacing: -0.04em;
}
.close-sub {
  display: inline-block;
  margin-top: 18px;
  font-size: 14px;
  color: var(--ink-2);
  text-decoration: none;
}
.close-sub:hover {
  color: var(--ink);
  text-decoration: underline;
}

/* Minimalist Footer */
.ft {
  padding: 36px 0 44px;
  border-top: 1px solid var(--hairline);
}
.ft-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px 32px;
}
.ft-left {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 16px;
}
.ft-copy {
  font-size: 12.5px;
  color: var(--ink-3);
}
.ft-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 22px;
}
.ft-links a {
  color: var(--ink-2);
  text-decoration: none;
  font-size: 13.5px;
}
.ft-links a:hover {
  color: var(--ink);
}

/* Subtle Keyframes */
@keyframes wave-pulse {
  0%, 100% { transform: scaleY(0.55); opacity: 0.7; }
  50% { transform: scaleY(1.1); opacity: 1; }
}

/* Responsive Breakpoints */
@media (max-width: 1100px) {
  .stage-triptych {
    grid-template-columns: 188px minmax(240px, 1fr) 204px;
    gap: 16px;
  }
  .ways-triptych {
    gap: 18px;
  }
  .case-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }
  .case-card {
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 32px;
  }
}

@media (max-width: 980px) {
  .nav {
    display: none;
  }
  .burger-btn {
    display: inline-flex;
  }
  .login-link {
    display: none;
  }
  .case-feature {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .cf-pair {
    max-width: 520px;
    margin: 0 auto;
  }
  .plan-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .pc-for {
    min-height: 0;
  }
  .client-pane,
  .client-pane.has-shots {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 860px) {
  .stage-triptych {
    grid-template-columns: 1fr 1.15fr;
    gap: 18px;
  }
  .reel-col-ref {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    justify-content: center;
  }
  .reel-col-ref .reel {
    max-width: 170px;
  }
  .reel-col-ref .prompt-pill {
    max-width: 280px;
  }
  .why-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .ways-triptych {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .eco-row {
    grid-template-columns: 1fr;
    gap: 16px;
    align-items: start;
  }
  .model-row {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .mr-price {
    text-align: left;
  }
  .pack-grid,
  .rule-triptych {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 680px) {
  .wrap {
    padding: 0 20px;
  }
  .hide-xs {
    display: none;
  }
  .hero,
  .sub-hero {
    padding: 44px 0 32px;
  }
  .sub-sec {
    padding: 40px 0 56px;
  }
  .hero-intro {
    margin-bottom: 32px;
  }
  :lang(zh-CN) .h1 {
    max-width: 8.35em;
    text-wrap: wrap;
    margin-left: auto;
    margin-right: auto;
  }
  .canvas-frame,
  .cf-stage,
  .client-pane {
    padding: 18px;
    border-radius: 20px;
  }
  .cf-pair {
    gap: 12px;
  }
  .case-card {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .case-reel-wrap {
    max-width: 224px;
  }
  .spec-dl {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .canvas-bar {
    flex-direction: column;
    align-items: flex-start;
  }
  .stage-triptych {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .reel-col-ref {
    flex-direction: column;
    align-items: stretch;
  }
  .reel-col-ref .reel,
  .reel-col-out .reel {
    max-width: 224px;
    margin: 0 auto;
  }
  .reel-col-ref .prompt-pill {
    max-width: none;
  }
  .sec {
    padding: 84px 0;
  }
  .sec-ways {
    padding-top: 16px;
  }
  .cmd-console {
    padding: 22px 18px;
  }
  .sec-close {
    padding: 92px 0 96px;
  }
}

@media (max-width: 380px) {
  .hd-lang {
    display: none;
  }
  .hm-lang-xs {
    display: flex;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hd-menu-panel,
  .avatar-pop {
    animation: none;
    transition: none;
  }
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* --- DARK MODE SURFACE HARMONY --- */
html[data-theme="dark"] .prompt-pill,
html[data-theme="dark"] .idea-note,
html[data-theme="dark"] .plan-sheet {
  background: rgba(28, 26, 39, 0.94);
  border: 1px solid rgba(245, 244, 240, 0.11);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.42);
}
html[data-theme="dark"] .ps-action {
  background: var(--iris);
  color: #13121B;
}
html[data-theme="dark"] .ps-action:hover {
  background: var(--iris-hover);
}
html[data-theme="dark"] .plate-soon {
  background: linear-gradient(180deg, #211E30 0%, #191726 100%);
}
html[data-theme="dark"] .sb-frame {
  background: rgba(36, 33, 52, 0.94);
  border-color: rgba(245, 244, 240, 0.10);
}
html[data-theme="dark"] .filter-pill,
html[data-theme="dark"] .cycle-btn {
  color: var(--ink-2);
}
html[data-theme="dark"] .filter-pill.on,
html[data-theme="dark"] .cycle-btn.on {
  background: var(--surface);
  color: var(--ink);
}
html[data-theme="dark"] .cf-stage,
html[data-theme="dark"] .case-card {
  border-color: var(--hairline);
}

/* --- FROSTED IN-PAGE AUTH MODAL & STANDALONE /login --- */
.auth-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 240;
  background: rgba(25, 23, 36, 0.44);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
html[data-theme="dark"] .auth-modal-backdrop {
  background: rgba(9, 8, 15, 0.66);
}
.auth-card {
  position: relative;
  width: 100%;
  max-width: 424px;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--hairline-strong);
  border-radius: 24px;
  padding: 34px 32px 28px;
  box-shadow: 0 32px 84px rgba(25, 23, 36, 0.24);
}
html[data-theme="dark"] .auth-card {
  box-shadow: 0 32px 84px rgba(0, 0, 0, 0.55);
}
.auth-card.is-inline {
  max-width: 440px;
  margin: 0 auto;
  box-shadow: 0 24px 64px rgba(25, 23, 36, 0.08);
}
.auth-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--hairline);
  background: var(--bg-subtle);
  color: var(--ink-2);
  font-size: 19px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.auth-close:hover {
  background: var(--hairline-strong);
  color: var(--ink);
}
.auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
}
.auth-badge {
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.auth-title {
  margin: 0 0 6px;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 660;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.auth-sub {
  margin: 0 0 22px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-2);
}
.auth-google-btn {
  width: 100%;
  height: 46px;
  border-radius: 12px;
  border: 1px solid var(--hairline-strong);
  background: var(--bg);
  color: var(--ink);
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 590;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(25, 23, 36, 0.05);
  transition: border-color 0.16s ease, background-color 0.16s ease, transform 0.12s ease;
}
.auth-google-btn:hover {
  background: var(--bg-subtle);
  border-color: var(--iris-border);
}
.auth-google-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  display: block;
}
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  color: var(--ink-3);
  font-size: 12px;
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--hairline);
}
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.auth-label {
  font-size: 12.5px;
  font-weight: 560;
  color: var(--ink-2);
}
.auth-input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid var(--hairline-strong);
  background: var(--bg);
  color: var(--ink);
  font-family: inherit;
  font-size: 14.5px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
.auth-input:focus {
  outline: none;
  background: var(--surface);
  border-color: var(--iris);
  box-shadow: 0 0 0 3px var(--iris-soft);
}
.auth-code-input {
  text-align: center;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.32em;
}
.auth-submit {
  width: 100%;
  height: 45px;
  margin-top: 4px;
  border-radius: 12px;
  background: var(--iris);
  color: #FFFFFF;
  font-size: 14.5px;
  font-weight: 590;
  box-shadow: 0 8px 20px rgba(91, 67, 230, 0.20);
}
.auth-submit:hover {
  background: var(--iris-hover);
}
html[data-theme="dark"] .auth-submit {
  color: #13121B;
}
.auth-back-btn {
  width: 100%;
  height: 38px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink-2);
  font-family: inherit;
  font-size: 13px;
  font-weight: 520;
  cursor: pointer;
}
.auth-back-btn:hover {
  color: var(--ink);
  background: var(--bg-subtle);
}
.auth-status {
  margin: 14px 0 0;
  padding: 10px 13px;
  border-radius: 11px;
  font-size: 13px;
  line-height: 1.5;
  background: var(--bg-subtle);
  color: var(--ink-2);
  border: 1px solid var(--hairline);
}
.auth-status.is-info {
  background: var(--iris-soft);
  border-color: var(--iris-border);
  color: var(--iris);
}
.auth-status.is-error {
  background: rgba(208, 62, 62, 0.09);
  border-color: rgba(208, 62, 62, 0.24);
  color: #C43232;
}
html[data-theme="dark"] .auth-status.is-error {
  color: #FF8E8E;
}
.auth-legal {
  margin: 18px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--hairline);
  font-size: 12px;
  line-height: 1.55;
  color: var(--ink-3);
  text-align: center;
}
.auth-legal a {
  color: var(--ink-2);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.auth-legal a:hover {
  color: var(--iris);
}

/* Standalone /login Split Editorial Landing Page */
.login-main {
  padding: 52px 0 84px;
}
.login-split {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(360px, 440px);
  gap: 48px;
  align-items: center;
}
.login-poster {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  min-height: 540px;
  padding: 38px 38px 34px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #FAF9F5;
  background: #1C1A27;
  box-shadow: 0 28px 68px rgba(25, 23, 36, 0.14);
}
.login-poster-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.78;
}
.login-poster-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(22, 19, 36, 0.86) 0%, rgba(25, 21, 44, 0.56) 52%, rgba(19, 17, 30, 0.88) 100%);
}
.login-poster-top,
.login-poster-stage {
  position: relative;
  z-index: 1;
}
.login-poster-kicker {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 560;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #C4B6FF;
}
.login-poster-h1 {
  margin: 0 0 14px;
  font-size: clamp(28px, 3.1vw, 40px);
  line-height: 1.16;
  font-weight: 660;
  letter-spacing: -0.03em;
  color: #FAF9F5;
  max-width: 15em;
}
.login-poster-sub {
  margin: 0;
  font-size: 15px;
  line-height: 1.62;
  color: rgba(250, 249, 245, 0.80);
  max-width: 34em;
}
.login-poster-stage {
  margin-top: 28px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}
.login-mini-reel {
  position: relative;
  width: 132px;
  aspect-ratio: 9 / 15.5;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  flex-shrink: 0;
}
.login-mini-reel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.login-mini-tag {
  position: absolute;
  left: 8px;
  bottom: 8px;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 10px;
  background: rgba(19, 18, 27, 0.72);
  color: #FAF9F5;
}
.login-poster-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.login-feature-pill {
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 530;
  background: rgba(250, 249, 245, 0.13);
  border: 1px solid rgba(250, 249, 245, 0.20);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #FAF9F5;
}

@media (max-width: 920px) {
  .login-split {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .login-panel {
    order: -1;
  }
  .login-poster {
    min-height: 0;
    padding: 28px 24px;
  }
  .login-mini-reel {
    display: none;
  }
}

/* Chinese-only clients retain their existing deep links and tab IDs. */
html:not([lang="en"]) :is(.client-ui-tag, .client-ui-note) {
  display: none;
}
html[lang="en"] :is(.cb-item[href*="client=doubao"], .cb-item[href*="client=workbuddy"],
  .client-tab[data-client-btn="doubao"], .client-tab[data-client-btn="workbuddy"]) {
  order: 1;
}
.client-ui-note {
  font-size: 0.875rem;
  color: var(--ink-2);
}
