/* Panelize Landing — Studio Grid */

/* Primitives */
.lp .wrap {
  width: min(var(--container), 100% - 2 * var(--gutter));
  margin-inline: auto;
}
.lp-wrap-wide {
  width: min(var(--container-wide), 100% - 2 * var(--gutter));
  margin-inline: auto;
}
.lp-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
}
.lp-section {
  padding-block: var(--section-y);
  position: relative;
}
.lp-section--recessed {
  background: var(--paper-2);
}

.lp-mark {
  display: block;
  flex: none;
}

/* Section head */
.lp-head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
  row-gap: 20px;
  border-top: 1px solid var(--line-strong);
  padding-top: 20px;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.lp-head--compact {
  margin-bottom: 32px;
}
.lp-label {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font: 500 var(--fs-label)/1.2 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
:lang(zh-CN) .lp-label {
  letter-spacing: 0.04em;
}
.lp-label__num {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.lp-label__num::after {
  content: "—";
  margin-left: 10px;
  color: var(--ink-4);
}
.lp-h2 {
  grid-column: 1 / span 7;
  margin: 0;
  font-size: var(--fs-h2);
  font-weight: 640;
  line-height: 1.02;
  letter-spacing: -0.032em;
  color: var(--ink);
}
:lang(zh-CN) .lp-h2 {
  font-size: calc(var(--fs-h2) * 0.9);
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: 0;
}
.lp-h2--sm {
  font-size: var(--fs-h2-sm);
  line-height: 1.08;
  letter-spacing: -0.026em;
}
:lang(zh-CN) .lp-h2--sm {
  font-size: calc(var(--fs-h2-sm) * 0.92);
  line-height: 1.3;
  letter-spacing: 0;
}
.lp-head__sub {
  grid-column: 9 / -1;
  align-self: end;
  margin: 0;
  color: var(--ink-3);
  font-size: var(--fs-body-lg);
  line-height: 1.55;
}
:lang(zh-CN) .lp-head__sub {
  line-height: 1.8;
}

/* Panel grid grammar */
.lp-panels {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  isolation: isolate;
}
.lp-panels > * {
  background: var(--surface);
  min-width: 0;
}

/* Links & inline icons */
.lp-link {
  color: var(--blue-ink);
  font-weight: 560;
  text-decoration: none;
  display: inline-flex;
  gap: 6px;
  align-items: center;
}
.lp-link:hover {
  color: var(--blue-ink-hover);
}
.lp-link:hover span {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.lp-link svg {
  width: 16px;
  height: 16px;
  flex: none;
}
@media (prefers-reduced-motion: no-preference) {
  .lp-link .i-arrow {
    transition: transform var(--dur-1) var(--ease-out);
  }
  .lp-link:hover .i-arrow {
    transform: translateX(2px);
  }
}

/* Inline code tags in landing copy */
.lp-tag {
  display: inline-block;
  font: 450 0.8125rem/1.35 var(--font-mono);
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 1px 7px;
  white-space: nowrap;
}

/* Spec list */
.lp-specs {
  margin: 28px 0 0;
  border-top: 1px solid var(--line-strong);
}
.lp-specs > div {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.lp-specs dt {
  font: 500 var(--fs-label)/1.5 var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding-top: 3px;
}
:lang(zh-CN) .lp-specs dt {
  letter-spacing: 0.02em;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 560;
}
.lp-specs dd {
  margin: 0;
  color: var(--ink-2);
  line-height: 1.6;
}
:lang(zh-CN) .lp-specs dd {
  line-height: 1.85;
}
.lp-specs dd strong {
  color: var(--ink);
  font-weight: 600;
}

/* Figure + placard caption */
.lp-figure {
  margin: 0;
}
.lp-caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 14px;
  font: 450 var(--fs-label)/1.5 var(--font-mono);
  letter-spacing: 0.02em;
  color: var(--ink-3);
}
.lp-caption b {
  font-weight: 500;
  color: var(--ink);
  margin-right: 8px;
}
:lang(zh-CN) .lp-caption {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  letter-spacing: 0.01em;
}

/* Hero */
.lp-hero {
  position: relative;
  padding: clamp(48px, 3rem + 4vw, 112px) 0 clamp(64px, 4rem + 3vw, 120px);
  overflow: clip;
}
.lp-hero__rules {
  position: absolute;
  inset: 0 0 auto;
  height: 78%;
  width: min(var(--container), 100% - 2 * var(--gutter));
  margin-inline: auto;
  pointer-events: none;
  background-image:
    linear-gradient(to right, var(--line-faint) 1px, transparent 1px),
    linear-gradient(to left, var(--line-faint) 1px, transparent 1px);
  background-size: 25% 100%, 100% 100%;
  background-repeat: repeat-x, no-repeat;
  -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 30%, transparent 100%);
}
.lp-hero > .wrap,
.lp-hero > .lp-wrap-wide {
  position: relative;
}

.lp-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 34px;
  padding: 0 12px 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  background: var(--surface);
  color: var(--ink-2);
  text-decoration: none;
  font-size: var(--fs-small);
  box-shadow: var(--shadow-1);
  transition: border-color var(--dur-1) ease, color var(--dur-1) ease;
}
.lp-pill:hover {
  border-color: var(--ink-4);
  color: var(--ink);
}
.lp-pill__tag {
  font: 500 var(--fs-label)/1 var(--font-mono);
  color: var(--ink);
  padding-right: 10px;
  border-right: 1px solid var(--line-strong);
}
.lp-pill .i-arrow {
  width: 14px;
  height: 14px;
  color: var(--ink-3);
}
@media (prefers-reduced-motion: no-preference) {
  .lp-pill .i-arrow {
    transition: transform var(--dur-1) var(--ease-out);
  }
  .lp-pill:hover .i-arrow {
    transform: translateX(2px);
  }
}

.lp-display {
  margin: 28px 0 0;
  font-size: var(--fs-display);
  font-weight: 660;
  line-height: 0.98;
  letter-spacing: -0.042em;
  color: var(--ink);
  max-width: 15.5em;
}
.lp-display > span {
  display: block;
  text-wrap: balance;
}
.lp-display__2 {
  color: var(--ink-3);
}
:lang(zh-CN) .lp-display {
  font-size: calc(var(--fs-display) * 0.88);
  font-weight: 650;
  line-height: 1.14;
  letter-spacing: 0;
}

.lp-hero__row {
  margin-top: clamp(28px, 2rem + 1.5vw, 48px);
  row-gap: 32px;
  align-items: end;
}
.lp-hero__copy {
  grid-column: 1 / span 6;
}
.lp-lead {
  margin: 0;
  font-size: var(--fs-lead);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 34em;
  text-wrap: pretty;
}
:lang(zh-CN) .lp-lead {
  line-height: 1.8;
}
.lp-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.lp-index {
  grid-column: 8 / -1;
  margin: 0;
  border-top: 1px solid var(--line-strong);
  font-size: var(--fs-small);
}
.lp-index > div {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 16px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}
.lp-index dt {
  font: 500 var(--fs-label)/1.6 var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.lp-index dd {
  margin: 0;
  color: var(--ink);
  line-height: 1.5;
}
:lang(zh-CN) .lp-index dt {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
}

/* Stage */
.lp-stage {
  margin-top: clamp(48px, 3rem + 3vw, 88px);
}
.lp-stage__frame {
  position: relative;
}
.lp-stage__frame::before {
  content: "";
  position: absolute;
  inset: -18px;
  pointer-events: none;
  --c: var(--ink-4);
  --l: 12px;
  background:
    linear-gradient(var(--c), var(--c)) left top / var(--l) 1px no-repeat,
    linear-gradient(var(--c), var(--c)) left top / 1px var(--l) no-repeat,
    linear-gradient(var(--c), var(--c)) right top / var(--l) 1px no-repeat,
    linear-gradient(var(--c), var(--c)) right top / 1px var(--l) no-repeat,
    linear-gradient(var(--c), var(--c)) left bottom / var(--l) 1px no-repeat,
    linear-gradient(var(--c), var(--c)) left bottom / 1px var(--l) no-repeat,
    linear-gradient(var(--c), var(--c)) right bottom / var(--l) 1px no-repeat,
    linear-gradient(var(--c), var(--c)) right bottom / 1px var(--l) no-repeat;
}
.lp-stage__bezel {
  position: relative;
  padding: 8px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-2);
}
.lp-stage__bezel video {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  background: var(--paper-2);
}
.lp-stage__bezel::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 14px;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(26, 26, 26, 0.08);
}

.lp-caption__ctl {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: none;
}
.lp-play {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  transition: border-color var(--dur-1) ease, background-color var(--dur-1) ease;
}
.lp-play:hover {
  border-color: var(--ink-4);
}
.lp-play svg {
  width: 12px;
  height: 12px;
}
.lp-play .i-play {
  display: none;
}
.lp-play[data-state="paused"] .i-pause {
  display: none;
}
.lp-play[data-state="paused"] .i-play {
  display: block;
  fill: currentColor;
}
.lp-play::before {
  content: "";
  position: absolute;
  inset: -8px;
}

/* Section 01 — Ecosystem */
.lp-tier {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font: 500 var(--fs-label)/1 var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.lp-tier:not(:first-of-type) {
  margin-top: 40px;
}
:lang(zh-CN) .lp-tier {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
}
.lp-tier__key {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-xs);
  color: var(--ink);
  font-family: var(--font-mono);
}

.lp-providers {
  grid-template-columns: repeat(8, minmax(0, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}
.lp-providers li {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 116px;
  padding: 16px 16px 14px;
}
.lp-providers li::after {
  content: "";
  position: absolute;
  top: 18px;
  right: 16px;
  width: 6px;
  height: 6px;
  border-radius: 1px;
  background: var(--ink);
}
.lp-providers li:last-child {
  grid-column: span 3;
}
.lp-providers li:last-child::after {
  background: var(--blue);
}
.lp-prov__num {
  font: 500 var(--fs-label)/1 var(--font-mono);
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}
.lp-prov__name {
  margin-top: auto;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1.25;
}
.lp-prov__by {
  margin-top: 2px;
  font-size: 0.8125rem;
  color: var(--ink-3);
}

.lp-byo {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.lp-byo__cell {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 24px;
  color: inherit;
  text-decoration: none;
  transition: background-color var(--dur-1) ease;
}
.lp-byo__cell:hover {
  background: #fbfaf8;
  color: inherit;
}
.lp-byo__cell:focus-visible {
  outline-offset: -4px;
}
.lp-byo__title {
  font-size: var(--fs-h3);
  font-weight: 620;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.lp-byo__text {
  color: var(--ink-3);
}
.lp-field {
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: 14px;
  height: 40px;
  padding: 0 6px 0 12px;
  max-width: 420px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--paper);
  font: 450 0.8125rem/1 var(--font-mono);
  color: var(--ink);
  overflow: hidden;
  white-space: nowrap;
}
.lp-field__dim {
  color: var(--ink-3);
}
.lp-field__tag {
  margin-left: auto;
  padding: 5px 8px;
  border-radius: var(--r-xs);
  background: var(--blue-tint);
  color: var(--blue-ink);
  font: 500 var(--fs-micro)/1 var(--font-mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
:lang(zh-CN) .lp-field__tag {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0;
}

.lp-providers-note {
  margin: 28px 0 0;
  color: var(--ink-3);
}

/* Deep-dives (02 Custom AI, 04 Share) */
.lp-dive {
  row-gap: 40px;
  align-items: start;
}
.lp-dive__text {
  grid-column: 1 / span 5;
}
.lp-dive__fig {
  grid-column: 6 / -1;
}
.lp-dive__intro {
  margin: 18px 0 0;
  font-size: var(--fs-body-lg);
  color: var(--ink-2);
  line-height: 1.6;
}
:lang(zh-CN) .lp-dive__intro {
  line-height: 1.85;
}
.lp-dive__more {
  margin: 24px 0 0;
}

.lp-dive--flip .lp-dive__fig {
  grid-column: 1 / span 7;
  grid-row: 1;
}
.lp-dive--flip .lp-dive__text {
  grid-column: 9 / -1;
  grid-row: 1;
  align-self: center;
}

.lp-plate {
  padding: clamp(14px, 2.2vw, 28px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.lp-section--recessed .lp-plate {
  background: var(--surface);
}

/* Exact CSS crops removing baked-in blue backgrounds */
.lp-crop {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow: var(--shadow-2), 0 0 0 1px var(--line);
}
.lp-crop > img {
  display: block;
  max-width: none;
  height: auto;
}
.lp-crop--hybrid {
  aspect-ratio: 1484 / 881;
}
.lp-crop--hybrid > img {
  width: 107.8167%;
  margin-left: -3.9084%;
  margin-top: -3.0997%;
}
.lp-crop--panel {
  aspect-ratio: 1480 / 854;
}
.lp-crop--panel > img {
  width: 108.1081%;
  margin-left: -4.0541%;
  margin-top: -4.0541%;
}

/* Share printed sheet stack */
.lp-sheets {
  position: relative;
  isolation: isolate;
  margin: 0 20px 20px 0;
}
.lp-sheets::before,
.lp-sheets::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--line);
}
.lp-sheets::before {
  transform: translate(10px, 10px);
}
.lp-sheets::after {
  transform: translate(20px, 20px);
  z-index: -2;
  box-shadow: var(--shadow-2);
}
.lp-sheets img {
  width: 100%;
  height: auto;
  border-radius: var(--r-md);
  box-shadow: 0 0 0 1px var(--line-strong), var(--shadow-1);
}

/* Section 03 — Feature Bento */
.lp-ico {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--paper);
  color: var(--ink);
  flex: none;
}
.lp-ico svg {
  width: 22px;
  height: 22px;
}

.lp-bento {
  grid-template-columns: repeat(12, minmax(0, 1fr));
}
.lp-cell {
  grid-column: span 4;
  display: flex;
  flex-direction: column;
  padding: clamp(22px, 2.4vw, 32px);
  min-height: 280px;
  transition: background-color var(--dur-2) ease;
}
.lp-cell--ask {
  grid-column: span 7;
}
.lp-cell--layouts {
  grid-column: span 5;
}
.lp-bento > .lp-cell--ink {
  grid-column: 1 / -1;
  min-height: 0;
  background: #faf8f4;
  color: var(--ink);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  column-gap: 28px;
}
.lp-cell__title {
  margin: 20px 0 8px;
  font-size: var(--fs-h3);
  font-weight: 620;
  letter-spacing: -0.015em;
  line-height: 1.25;
  color: var(--ink);
}
.lp-cell--ask .lp-cell__title,
.lp-cell--layouts .lp-cell__title {
  font-size: var(--fs-h3-lg);
}
.lp-cell__text {
  margin: 0;
  color: var(--ink-3);
  line-height: 1.55;
  max-width: 38em;
}
:lang(zh-CN) .lp-cell__text {
  line-height: 1.8;
}
.lp-mini {
  margin-top: auto;
  padding-top: 24px;
}

/* Vignette: Ask once */
.lp-mini__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 4px 4px 4px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--paper);
  font-size: 0.8125rem;
  color: var(--ink-2);
}
.lp-mini__input {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lp-mini__send {
  flex: none;
  height: 30px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  border-radius: 4px;
  background: var(--ink);
  color: var(--on-ink);
  font-size: 0.75rem;
  font-weight: 600;
}
.lp-mini__cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin-top: 8px;
}
.lp-mini__cols > span {
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: 92px;
  padding: 10px 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 2px solid var(--blue);
  border-radius: 4px;
}
@media (prefers-reduced-motion: no-preference) {
  .lp-mini__cols > span {
    transition: border-top-color var(--dur-2) var(--ease-out);
    transition-delay: calc(var(--i) * 110ms + 280ms);
  }
}
.lp-mini__cols b {
  font-size: var(--fs-micro);
  font-weight: 600;
  color: var(--ink-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lp-mini__cols i {
  display: block;
  height: 5px;
  border-radius: 3px;
  background: var(--paper-2);
}
.lp-mini__cols i:nth-of-type(2) { width: 78%; }
.lp-mini__cols i:nth-of-type(3) { width: 88%; }
.reveal-ready .lp-cell--ask:not(.is-in) .lp-mini__cols > span {
  border-top-color: var(--line-strong);
}

/* Vignette: Layouts */
.lp-mini--layouts {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.lp-seg {
  display: inline-flex;
  align-self: flex-start;
  padding: 3px;
  gap: 2px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  background: var(--paper);
}
.lp-seg button {
  min-width: 40px;
  height: 30px;
  padding: 0 10px;
  border: 0;
  border-radius: var(--r-pill);
  background: transparent;
  font: 500 0.8125rem/1 var(--font-mono);
  color: var(--ink-3);
  cursor: pointer;
  transition: color var(--dur-1) ease, background-color var(--dur-1) ease;
}
.lp-seg button:hover { color: var(--ink); }
.lp-seg button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--on-ink);
}
.lp-layout {
  display: grid;
  gap: 4px;
  height: 128px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--paper);
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 1fr;
}
.lp-layout i {
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 2px solid var(--blue);
  border-radius: 3px;
}
.lp-layout i:nth-child(n+5) { display: none; }
.lp-layout[data-layout-view="2"] { grid-template-columns: repeat(2, 1fr); }
.lp-layout[data-layout-view="2"] i:nth-child(n+3) { display: none; }
.lp-layout[data-layout-view="6"] { grid-template-columns: repeat(3, 1fr); grid-template-rows: 1fr 1fr; }
.lp-layout[data-layout-view="6"] i:nth-child(-n+6) { display: block; }
.lp-layout[data-layout-view="12"] { grid-template-columns: repeat(6, 1fr); grid-template-rows: 1fr 1fr; }
.lp-layout[data-layout-view="12"] i { display: block; }
@media (prefers-reduced-motion: no-preference) {
  .lp-layout.is-switching i {
    animation: lp-pop var(--dur-2) var(--ease-out) both;
    animation-delay: calc(var(--n, 0) * 18ms);
  }
}
@keyframes lp-pop {
  from { opacity: 0.25; transform: scale(0.94); }
  to { opacity: 1; transform: none; }
}

/* Vignette: Key rows */
.lp-mini--rows {
  list-style: none;
  margin-block: auto 0;
  padding-left: 0;
  border-top: 1px solid var(--line);
}
.lp-mini--rows li {
  display: grid;
  grid-template-columns: 1fr auto 16px;
  gap: 10px;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.8125rem;
}
.lp-mini--rows span { color: var(--ink); font-weight: 550; }
.lp-mini--rows em { font-style: normal; color: var(--ink-3); }
.lp-mini--rows .i-check { width: 16px; height: 16px; color: var(--blue-ink); }

/* Vignette: Template */
.lp-mini--tpl {
  margin-top: auto;
  padding: 14px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--paper);
  font: 450 0.8125rem/1.7 var(--font-mono);
  color: var(--ink-2);
}
:lang(zh-CN) .lp-mini--tpl { font-family: var(--font-sans); }
.lp-var {
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--blue-tint);
  color: var(--blue-ink);
  font-weight: 500;
}

/* Vignette: Toggle */
.lp-mini--toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--paper);
  font-size: 0.8125rem;
}
.lp-mini--toggle span:first-child { color: var(--ink); font-weight: 550; }
.lp-mini--toggle em { font-style: normal; color: var(--ink-3); margin-right: auto; }
.lp-switch {
  position: relative;
  width: 34px;
  height: 20px;
  border-radius: 999px;
  background: var(--ink);
  flex: none;
}
.lp-switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 17px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--on-ink);
}

/* Trust summary strip cell */
.lp-cell--ink .lp-ico {
  background: var(--surface);
  border-color: var(--line-strong);
  color: var(--ink);
}
.lp-cell--ink .lp-cell__title { margin-top: 0; color: var(--ink); }
.lp-cell--ink .lp-cell__text { color: var(--ink-3); }
.lp-facts {
  display: flex;
  margin: 0;
  border-left: 1px solid var(--line);
}
.lp-facts > div {
  padding: 2px 20px;
  border-right: 1px solid var(--line);
}
.lp-facts dt {
  font: 500 var(--fs-label)/1.4 var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
}
:lang(zh-CN) .lp-facts dt {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
}
.lp-facts dd {
  margin: 4px 0 0;
  font-weight: 600;
  color: var(--ink);
}
.lp-link--on-ink { color: var(--blue-ink); }
.lp-link--on-ink:hover { color: var(--blue-ink-hover); }

.lp-cell:not(.lp-cell--ink):hover {
  background: #fdfcfa;
}

/* Section 05 — Why compare */
#why .lp-figure { margin-bottom: 1px; }
.lp-uses {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  list-style: none;
  padding: 0;
  margin: 40px 0 0;
}
.lp-uses li { padding: 24px 24px 28px; }
.lp-uses__key {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-xs);
  font: 500 var(--fs-label)/1 var(--font-mono);
  color: var(--ink);
}
.lp-uses h3 {
  margin: 16px 0 6px;
  font-size: var(--fs-h3);
  font-weight: 620;
  letter-spacing: -0.015em;
}
.lp-uses p { margin: 0; color: var(--ink-3); }

/* Section 06 — Quick start */
.lp-steps {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  list-style: none;
  padding: 0;
  margin: 0;
}
.lp-steps li {
  position: relative;
  padding: 28px 28px 32px;
}
.lp-steps li::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: var(--ink);
}
.lp-steps li:nth-child(2)::before { background: var(--red); }
.lp-steps li:nth-child(3)::before { background: var(--blue); }
.lp-steps__num {
  display: block;
  font: 500 0.875rem/1 var(--font-mono);
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}
.lp-steps h3 {
  margin: 28px 0 8px;
  font-size: 1.375rem;
  font-weight: 630;
  letter-spacing: -0.02em;
}
.lp-steps p {
  margin: 0;
  color: var(--ink-2);
  line-height: 1.7;
}
:lang(zh-CN) .lp-steps p { line-height: 1.9; }

/* Section 07 — FAQ */
.lp-faq {
  border-top: 1px solid var(--line-strong);
  padding-top: 20px;
  row-gap: 32px;
}
.lp-faq__aside {
  grid-column: 1 / span 4;
  align-self: start;
  position: sticky;
  top: calc(var(--header-h) + 32px);
}
.lp-faq__aside .lp-h2 { margin-top: 20px; }
.lp-faq__contact {
  margin: 20px 0 0;
  color: var(--ink-3);
  max-width: 22em;
}
.lp-faq__list {
  grid-column: 6 / -1;
  border-top: 1px solid var(--line);
}
.lp-qa {
  border-bottom: 1px solid var(--line);
}
.lp-qa summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  cursor: pointer;
  list-style: none;
  font-size: 1.125rem;
  font-weight: 560;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--ink);
  transition: color var(--dur-1) ease;
}
.lp-qa summary::-webkit-details-marker { display: none; }
.lp-qa summary::marker { content: ""; }
.lp-qa summary:hover { color: var(--ink-2); }
.lp-qa summary:focus-visible { outline-offset: 4px; border-radius: var(--r-xs); }
.lp-qa__icon {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  color: var(--ink-3);
  transition: color var(--dur-1) ease;
}
@media (prefers-reduced-motion: no-preference) {
  .lp-qa__icon {
    transition: transform var(--dur-2) var(--ease-out), color var(--dur-1) ease;
  }
}
.lp-qa[open] .lp-qa__icon {
  transform: rotate(45deg);
  color: var(--ink);
}
.lp-qa__body {
  padding: 0 48px 24px 0;
  color: var(--ink-2);
  line-height: 1.7;
}
.lp-qa__body p { margin: 0; max-width: 62ch; }
:lang(zh-CN) .lp-qa summary { font-weight: 600; letter-spacing: 0; line-height: 1.55; }
:lang(zh-CN) .lp-qa__body { line-height: 1.9; }

/* Progressive smooth disclosure (modern-web-guidance: accordion + animate-to-intrinsic-sizes) */
@supports selector(::details-content) {
  .lp-qa::details-content {
    interpolate-size: allow-keywords;
    overflow-y: clip;
    contain: layout;
  }
  .lp-qa:not([open])::details-content {
    block-size: 0;
  }
  .lp-qa[open]::details-content {
    block-size: auto;
  }
  @media (prefers-reduced-motion: no-preference) {
    .lp-qa::details-content {
      transition: block-size, content-visibility, display;
      transition-duration: var(--dur-2);
      transition-timing-function: var(--ease-in-out);
      transition-behavior: allow-discrete;
    }
  }
}

/* Final CTA band */
.lp-final {
  padding-block: clamp(80px, 4.5rem + 3vw, 128px);
  background: var(--paper-2);
  border-top: 1px solid var(--line-strong);
  color: var(--ink);
}
.lp-final__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 48px;
}
.lp-final h2 {
  margin: 0;
  font-size: var(--fs-h2);
  font-weight: 640;
  line-height: 1.02;
  letter-spacing: -0.032em;
  color: var(--ink);
  text-wrap: balance;
}
:lang(zh-CN) .lp-final h2 {
  font-size: calc(var(--fs-h2) * 0.9);
  line-height: 1.22;
  letter-spacing: 0;
}
.lp-final__copy > p {
  margin: 16px 0 0;
  font-size: var(--fs-lead);
  color: var(--ink-2);
}
.lp-final .lp-cta { margin-top: 32px; }
.lp-final .lp-final__copy > p.lp-final__note {
  margin: 36px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  max-width: 36em;
  font-size: var(--fs-small);
  color: var(--ink-3);
}
.lp-final__note a {
  color: var(--blue-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.lp-final__note a:hover { color: var(--blue-ink-hover); }
.lp-final__mark {
  width: clamp(148px, 15vw, 212px);
  height: auto;
}

/* Landing footer */
.lp-footer {
  padding: 72px 0 28px;
  border-top: 1px solid var(--line);
  background: var(--paper);
  font-size: var(--fs-small);
  color: var(--ink-3);
}
.lp-footer .wrap { display: block; }
.lp-footer__top {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 48px;
}
.lp-footer__brand p {
  margin: 14px 0 20px;
  max-width: 22em;
  color: var(--ink-3);
}
.lp-footer__cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
}
.lp-footer__h {
  margin: 0 0 14px;
  font: 500 var(--fs-label)/1.2 var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
}
:lang(zh-CN) .lp-footer__h {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
}
.lp-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.lp-footer a:not(.brand):not(.footer-badge) {
  color: var(--ink-2);
  text-decoration: none;
}
.lp-footer a:not(.brand):not(.footer-badge):hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.lp-footer__base {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 56px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

/* Progressive reveals & JS-only controls */
html:not(.js) [data-js-only] {
  visibility: hidden;
}

@media (prefers-reduced-motion: no-preference) {
  .reveal-ready [data-reveal] {
    transition: opacity var(--dur-3) var(--ease-out), transform var(--dur-3) var(--ease-out), background-color var(--dur-2) ease;
    transition-delay: calc(min(var(--i, 0), 6) * 60ms);
  }
  .reveal-ready [data-reveal]:not(.is-in) {
    opacity: 0;
    transform: translateY(12px);
  }
}

@media print {
  .reveal-ready [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Responsive */
@media (max-width: 1100px) {
  .lp-providers { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lp-dive .lp-specs > div { grid-template-columns: 1fr; gap: 4px; }
  .lp-dive--flip .lp-dive__fig { grid-column: 1 / span 6; }
  .lp-dive--flip .lp-dive__text { grid-column: 8 / -1; }
  .lp-bento > .lp-cell--ink {
    grid-template-columns: auto minmax(0, 1fr);
    row-gap: 20px;
  }
  .lp-facts { grid-column: 1 / -1; }
  .lp-cell--ink .lp-link { grid-column: 1 / -1; }
  .lp-footer__top { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .lp-grid, .lp-head { column-gap: 16px; }
  .lp-head .lp-h2, .lp-head__sub { grid-column: 1 / -1; }
  .lp-hero__copy, .lp-index { grid-column: 1 / -1; }
  .lp-byo { grid-template-columns: 1fr; }
  .lp-dive__text,
  .lp-dive__fig,
  .lp-dive--flip .lp-dive__text,
  .lp-dive--flip .lp-dive__fig {
    grid-column: 1 / -1;
    grid-row: auto;
  }
  .lp-dive--flip .lp-dive__text { order: -1; }
  .lp-stage__frame::before { display: none; }
  .lp-hero__rules { background-size: 50% 100%, 100% 100%; }
  .lp-cell, .lp-cell--ask, .lp-cell--layouts {
    grid-column: 1 / -1;
    min-height: 0;
  }
  .lp-bento > .lp-cell:nth-child(3),
  .lp-bento > .lp-cell:nth-child(4) {
    grid-column: span 6;
  }
  .lp-uses { grid-template-columns: 1fr; }
  .lp-steps { grid-template-columns: 1fr; }
  .lp-steps h3 { margin-top: 16px; }
  .lp-faq__aside { grid-column: 1 / -1; position: static; }
  .lp-faq__list { grid-column: 1 / -1; }
  .lp-qa__body { padding-right: 0; }
  .lp-final__inner { grid-template-columns: 1fr; }
  .lp-final__mark { display: none; }
}

@media (max-width: 560px) {
  .lp-cta .btn { flex: 1 1 100%; }
  .lp-index > div { grid-template-columns: 84px 1fr; gap: 12px; }
  .lp-stage__bezel { padding: 4px; border-radius: 14px; }
  .lp-stage__bezel video, .lp-stage__bezel::after { border-radius: 10px; }
  .lp-stage__bezel::after { inset: 4px; }
  .lp-caption { flex-direction: column; align-items: flex-start; gap: 10px; }
  .lp-providers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-providers li { min-height: 96px; padding: 14px; }
  .lp-providers li:last-child { grid-column: span 1; }
  .lp-specs > div { grid-template-columns: 1fr; gap: 6px; }
  .lp-plate { padding: 10px; }
  .lp-sheets { margin: 0 12px 12px 0; }
  .lp-sheets::before { transform: translate(6px, 6px); }
  .lp-sheets::after { transform: translate(12px, 12px); }
  .lp-bento > .lp-cell:nth-child(n) { grid-column: 1 / -1; }
  .lp-bento > .lp-cell--ink { grid-template-columns: 1fr; }
  .lp-facts { flex-wrap: wrap; border-left: 0; }
  .lp-facts > div {
    flex: 1 1 50%;
    padding: 10px 0;
    border-right: 0;
    border-top: 1px solid var(--line);
  }
  .lp-mini__cols > span:nth-child(4) { display: none; }
  .lp-mini__cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lp-qa summary { font-size: 1.0625rem; padding: 18px 0; }
  .lp-footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
}
