/* NEXT-only layout; colors and typography inherit the ZAS design tokens. */
html { scrollbar-gutter: stable; scrollbar-color: var(--muted) var(--canvas); }
@media (forced-colors: active) { html { scrollbar-color: auto; } }
.next-landing { --next-space: clamp(4rem, 8vw, 7rem); }
.next-landing [hidden] { display: none !important; }
.next-landing h1, .next-landing h2, .next-landing h3, .next-landing h4 { font-family: var(--serif); font-weight: 400; }
.next-landing h2 { margin: .75rem 0 1.4rem; font-size: clamp(2.25rem, 4.3vw, 3.5rem); line-height: 1.13; letter-spacing: -.035em; text-wrap: balance; }
.next-landing p { color: var(--ink-soft); }
.next-landing button { font-family: var(--sans); cursor: pointer; }
.next-landing button:focus-visible { outline: 3px solid var(--sage); outline-offset: 4px; }
.next-landing button:active, .next-landing .button:active { transform: translateY(1px); }
.next-opening { display: grid; gap: 3rem; align-items: center; padding-block: var(--next-space); }
.next-opening h1 { margin: 1rem 0 1.5rem; max-width: 650px; font-size: clamp(3rem, 4.5vw, 3.7rem); line-height: 1.04; letter-spacing: -.045em; text-wrap: balance; }
.next-opening h1 > span { display: block; }
.next-heading-accent { color: var(--terracotta); }
.next-opening-copy { max-width: 620px; }
.next-intro { font-size: 1.12rem; line-height: 1.8; }
.next-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.4rem; margin-top: 2rem; }
.next-small { font-size: .8rem; line-height: 1.6; }
.next-phone-figure { margin: 0; text-align: center; }
.next-phone { width: min(240px, 100%); margin-inline: auto; padding: 7px; background: var(--ink); border: 1px solid var(--ink-soft); border-radius: 34px; box-shadow: 12px 20px 0 var(--surface-deep), var(--shadow-soft); }
.next-phone img { width: 100%; height: auto; display: block; border-radius: 27px; }
.next-phone-figure figcaption { max-width: 290px; margin: 2rem auto 0; color: var(--sage); font: italic 1.2rem/1.5 var(--serif); }
.next-band { background: var(--surface-soft); padding-block: var(--next-space); }
.next-reading { width: min(730px, calc(100% - 3rem)); margin-inline: auto; }
.next-struggle-body { margin-block: 2rem; }
.next-familiar { font: italic 1.8rem var(--serif); }
.next-section { padding-block: var(--next-space); }
.next-section-heading { max-width: 760px; margin: 0 auto 3rem; text-align: center; }
.next-process { display: grid; gap: 3rem; align-items: center; }
.next-four-steps { list-style: none; margin: 0; padding: 0; }
.next-four-steps li { display: flex; gap: 1.2rem; padding-block: 1.7rem; border-bottom: 1px solid var(--line); }
.next-four-steps li:first-child { padding-top: 0; }
.next-step-number { color: var(--terracotta); font: italic 1.5rem/1.4 var(--serif); }
.next-four-steps h3 { font-size: 1.6rem; margin: 0 0 .65rem; line-height: 1.2; }
.next-four-steps p { margin: 0; }
.next-demo { margin: 0; text-align: center; }
.next-video-frame { max-width: 310px; margin-inline: auto; border-radius: 26px; overflow: hidden; background: var(--surface-card); border: 1px solid var(--line); }
.next-video-frame video { width: 100%; height: auto; aspect-ratio: 390 / 844; object-fit: contain; display: block; }
.next-demo figcaption h3 { font-size: 1.4rem; margin: 1.4rem 0 .4rem; }
.next-demo figcaption p { font-size: .85rem; margin-top: 0; }
.next-video-speed { display: flex; justify-content: center; align-items: center; gap: .65rem; margin-top: .8rem; font-size: .8rem; color: var(--ink-soft); }
.next-video-speed select { min-height: 44px; padding: .4rem .65rem; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); font: inherit; cursor: pointer; }
.next-video-speed select:focus-visible { outline: 3px solid var(--sage); outline-offset: 4px; }
.next-gallery { margin-top: 4rem; border-block: 1px solid var(--line); }
.next-gallery > h3 { margin: 0; padding-block: 1.5rem; font-size: 1.65rem; }
.next-gallery-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 1rem; padding-block: 1.5rem 2.5rem; }
.next-gallery-grid figure { margin: 0; min-width: 0; }
.next-gallery-grid img { width: 100%; height: auto; display: block; border: 1px solid var(--line); border-radius: 18px; }
.next-gallery-grid a { display: block; border-radius: 18px; }
.next-gallery-grid a:hover { box-shadow: var(--shadow-soft); outline: 2px solid var(--sage); }
.next-gallery-grid figcaption { margin-top: 1rem; }
.next-gallery-grid .micro-label { text-transform: none; }
.next-gallery-grid h4 { margin: .5rem 0; font-size: 1.35rem; }
.next-gallery-grid p { font-size: .85rem; margin: 0; }
.next-lightbox { width: min(900px, calc(100% - 1rem)); max-height: calc(100dvh - 1rem); border: 1px solid var(--line); border-radius: 24px; padding: 1rem; background: var(--canvas); color: var(--ink); overscroll-behavior: contain; }
.next-lightbox::backdrop { background: rgb(32 26 24 / 75%); }
.next-lightbox-bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.next-lightbox-bar h3 { margin: 0; font-size: 1.4rem; }
.next-lightbox button { min-width: 44px; min-height: 44px; padding: .5rem .8rem; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); }
.next-lightbox button:hover { background: var(--surface-deep); }
.next-lightbox-stage { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center; gap: .5rem; margin-top: 1rem; }
.next-lightbox-stage img { display: block; width: auto; height: min(62dvh, 700px); max-width: 100%; object-fit: contain; justify-self: center; touch-action: pan-y pinch-zoom; }
.next-lightbox [data-gallery-count] { text-align: center; margin: .6rem 0; font-size: .8rem; }
.next-lightbox-thumbs { display: flex; justify-content: center; gap: .5rem; }
.next-lightbox-thumbs button { display: flex; flex-direction: column; align-items: center; gap: .3rem; flex: 1; max-width: 150px; font-size: .65rem; }
.next-lightbox-thumbs img { width: auto; height: 48px; object-fit: contain; }
.next-lightbox-thumbs button[aria-pressed="true"] { border-color: var(--sage); background: var(--sage-soft); }
html.next-gallery-open { overflow: hidden; scrollbar-gutter: stable; }
.next-split { display: grid; gap: 3rem; align-items: center; }
.next-feature-copy { max-width: 580px; }
.next-feature-note { font: italic 1.3rem/1.5 var(--serif); }
.next-feature-screen { margin: 0; justify-self: center; width: min(300px, 80%); }
.next-feature-screen img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 26px; box-shadow: var(--shadow-soft); }
.next-luffy-demo { text-align: center; background: var(--surface-card); border-radius: 32px; padding: 2rem 1rem 1rem; }
.next-luffy-stage { height: 390px; display: flex; justify-content: center; align-items: flex-end; padding-bottom: 1rem; }
.next-luffy-stage img { width: 240px; height: auto; max-height: 370px; object-fit: contain; }
.next-luffy-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 1rem; }
.next-luffy-actions .text-link { background: transparent; border: 0; min-height: 44px; padding: .5rem; font-size: .8rem; }
.next-luffy-actions .text-link:hover { color: var(--terracotta); }
.next-luffy-demo [data-luffy-status] { min-height: 2.6em; margin-bottom: 0; }
.next-purchase { background: var(--surface-card); }
.next-purchase-grid { display: grid; gap: 3rem; align-items: start; }
.next-offer { background: var(--canvas); border: 1px solid var(--line); border-radius: 28px; padding: clamp(1.5rem, 4vw, 3rem); }
.next-offer h2 { font-size: clamp(2rem, 3vw, 2.6rem); margin-top: 0; }
.next-price { margin: 1rem 0 0; font: 3.6rem/1.1 var(--serif); }
.next-price span { font: .85rem var(--sans); }
.next-offer h3 { font-size: 1.5rem; margin: 2rem 0 1rem; }
.next-offer ul { list-style: none; padding: 0; margin: 0 0 2rem; }
.next-offer li { display: flex; gap: .7rem; margin-block: .85rem; color: var(--ink-soft); font-size: .9rem; }
.next-offer li .inline-icon { color: var(--sage); flex-shrink: 0; margin-top: .2rem; }
.next-offer .button { width: 100%; }
.next-offer .next-small { text-align: center; }
.next-faq > h3 { font-size: 1.9rem; margin: .5rem 0 1.5rem; line-height: 1.2; }
.next-faq details { border-bottom: 1px solid var(--line); }
.next-faq summary { display: flex; justify-content: space-between; gap: 1rem; padding-block: 1.3rem; cursor: pointer; font-size: .95rem; font-weight: 600; }
.next-faq summary:hover { color: var(--terracotta); }
.next-faq details[open] summary span { transform: rotate(45deg); }
.next-faq details p { margin: 0 0 1.5rem; font-size: .9rem; }
.next-final { text-align: center; padding-top: var(--next-space); }
.next-final h3 { font-size: clamp(1.6rem, 4vw, 2.5rem); margin: 0; }
.next-final p { font: 1.25rem/1.65 var(--serif); margin-block: 1rem 1.6rem; }
@media (min-width: 800px) {
  .next-opening { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 4rem; }
  .next-phone { width: 290px; }
  .next-process, .next-split { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(3rem, 7vw, 6rem); }
  .next-gallery-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; }
  .next-purchase-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4rem; }
}
@media (max-width: 420px) {
  .next-actions { flex-direction: column; align-items: stretch; gap: 1rem; }
  .next-actions .text-link { justify-content: center; min-height: 44px; }
  .next-luffy-stage { height: 350px; }
  .next-luffy-stage img { width: 215px; max-height: 330px; }
  .next-lightbox { padding: .75rem; }
  .next-lightbox-thumbs button { padding: .4rem .15rem; }
}
@media (prefers-reduced-motion: reduce) {
  .next-landing *, .next-landing *::before, .next-landing *::after { animation: none !important; transition: none !important; }
  .next-landing .button:hover, .next-landing button:active { transform: none; }
}
