/* NOPECUBE app guide — ruby for OPEN, graphite for NOPE, brass for Plus. */
.nopecube-app-guide {
  display:grid;
  grid-template-columns:minmax(0,.86fr) minmax(0,1.14fr);
  align-items:start;
  gap:clamp(34px,6vw,92px);
  margin-bottom:clamp(52px,8vw,116px);
  padding-block:0 clamp(48px,7vw,100px);
  border-bottom:1px solid var(--rule);
}

.document-page.nopecube-app-page {
  --app-ruby:#a3303d;
  --app-ruby-dark:#712530;
  --app-gold:#c7a66c;
  --app-graphite:#252521;
  --app-cream:#f1ece3;
  padding-top:clamp(30px,3.4vw,64px);
}
.nopecube-app-guide .document-header { min-width:0; margin:0; }
.nopecube-guide-brand { display:contents; }
.nopecube-app-guide .back-link { display:inline-flex; align-items:center; min-height:44px; margin-bottom:clamp(16px,2vw,28px); }
.nopecube-app-mark {
  width:clamp(56px,5.8vw,70px);
  height:auto;
  margin-bottom:clamp(18px,2vw,24px);
  border:1px solid color-mix(in srgb,var(--app-gold) 50%,transparent);
  border-radius:20%;
  box-shadow:0 8px 22px var(--shadow);
}
.nopecube-app-guide .document-eyebrow { margin:0 0 16px; color:var(--app-ruby); }
.nopecube-app-guide h1 {
  max-width:10ch;
  font-size:clamp(3.2rem,6.1vw,5.45rem);
  line-height:.94;
  letter-spacing:-.065em;
}
.nopecube-app-guide .document-header>p:not(.document-eyebrow) {
  max-width:40ch;
  margin-top:24px;
  color:var(--ink-soft);
  font-size:clamp(1.0625rem,1.45vw,1.25rem);
  line-height:1.55;
}
.nopecube-app-guide .document-header>p.nopecube-app-availability {
  max-width:42ch;
  margin-top:14px;
  padding-inline-start:12px;
  border-inline-start:2px solid var(--app-ruby);
  color:var(--ink-soft);
  font-size:.875rem;
  line-height:1.5;
}
.nopecube-guide-actions { display:flex; flex-wrap:wrap; align-items:center; gap:8px 18px; margin-top:26px; }
.nopecube-guide-actions a { display:inline-flex; align-items:center; min-height:46px; }
.nopecube-guide-how-link {
  padding:.62rem .95rem;
  border-bottom:2px solid var(--app-gold);
  border-radius:3px;
  background:var(--app-graphite);
  color:#f1ece3;
  font-size:.875rem;
  font-weight:600;
  line-height:1.35;
  text-decoration:none;
  transition:background-color 180ms ease;
}
.nopecube-guide-how-link:hover { background:var(--app-ruby-dark); }
.nopecube-guide-actions .text-link { font-size:.875rem; }

.nopecube-preview {
  position:relative;
  min-width:0;
  padding:clamp(18px,3vw,42px) clamp(13px,2.5vw,34px) 24px;
  overflow:hidden;
  border:1px solid #736044;
  border-radius:5px;
  background:
    radial-gradient(ellipse at 76% 9%,#6b2732 0,transparent 44%),
    radial-gradient(ellipse at 13% 81%,#4a4030 0,transparent 45%),
    linear-gradient(145deg,#302f2a,#1d1e1b 72%);
  color:#f3eadb;
  box-shadow:0 28px 70px -40px var(--shadow),inset 0 1px #fff2;
}
.nopecube-preview::after {
  position:absolute;
  inset:auto 0 0;
  height:3px;
  background:linear-gradient(90deg,#7d2631,#bd4650 32%,#c9a56c 72%,#81633f);
  content:"";
}
.nopecube-phones {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  align-items:start;
  gap:clamp(9px,2vw,27px);
  max-width:500px;
  margin-inline:auto;
}
.nopecube-phones li,.nopecube-phones figure { min-width:0; }
.nopecube-phones figure { display:grid; grid-template-rows:1fr auto; height:100%; }
.nopecube-phone {
  min-width:0;
  padding:5px;
  overflow:hidden;
  border:1px solid #8e7c5b;
  border-radius:clamp(15px,2.2vw,25px);
  background:#11110f;
  box-shadow:0 18px 32px #0009,inset 0 1px #fff4;
}
.nopecube-phone img { width:100%; border-radius:clamp(11px,1.8vw,20px); }
.nopecube-phones figcaption {
  display:flex;
  flex-wrap:wrap;
  justify-content:space-between;
  align-items:baseline;
  gap:4px 9px;
  margin-top:12px;
  padding-inline:3px;
  color:#ded4c3;
  font-size:.75rem;
  line-height:1.35;
}
.nopecube-phones strong { color:#edcf9b; font:600 .8rem/1.3 var(--engraved); letter-spacing:.08em; }
.nopecube-preview-caption { margin-top:17px; color:#ded4c3; text-align:center; font-size:.75rem; line-height:1.45; }

.nopecube-app-body { max-width:1080px; }
.nopecube-app-body .document-section {
  margin:0;
  padding:clamp(35px,5vw,68px) 0;
  border-top:1px solid var(--rule);
}
.nopecube-app-body .document-section h2 {
  max-width:17ch;
  margin-bottom:18px;
  font-size:clamp(2.2rem,4vw,3.5rem);
  line-height:1.02;
  letter-spacing:-.055em;
}
.nopecube-app-body .document-section p { max-width:68ch; }
.nopecube-app-body .document-section p+p { margin-top:13px; }
.nopecube-flow {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
  margin:28px 0 36px;
  counter-reset:nopecube-step;
}
.nopecube-app-body .nopecube-flow { padding:0; list-style:none; }
.nopecube-app-body .nopecube-flow>li+li { margin-top:0; }
.nopecube-flow li {
  position:relative;
  display:flex;
  flex-direction:column;
  min-width:0;
  min-height:148px;
  padding:17px 16px 18px;
  border:1px solid var(--rule);
  border-top:2px solid var(--app-ruby);
  background:linear-gradient(155deg,var(--desk-raised),var(--desk));
  color:var(--ink-soft);
  font-size:.875rem;
  line-height:1.45;
  counter-increment:nopecube-step;
}
.nopecube-flow li::after {
  position:absolute;
  top:16px;
  inset-inline-end:13px;
  color:var(--ink-soft);
  content:"0" counter(nopecube-step);
  font-size:.625rem;
  letter-spacing:.08em;
  opacity:.72;
}
.nopecube-flow-state {
  display:block;
  margin-bottom:14px;
  color:var(--app-ruby-dark);
  font:600 .8125rem/1.2 var(--engraved);
  letter-spacing:.12em;
}
.nopecube-flow li:nth-child(3) .nopecube-flow-state { color:var(--app-ruby); }
.nopecube-flow li:nth-child(4) .nopecube-flow-state { color:var(--brass-ink); }

/* Scroll scenes keep their measured anchors still; only inner content drifts. */
@supports (translate:0 calc(1 * 1px)) {
  .nopecube-phones>li[data-scroll-scene] figure { translate:0 calc(var(--scroll-phase,0) * 12px); }
  .nopecube-settings-screen[data-scroll-scene] .nopecube-settings-device,
  .nopecube-settings-screen[data-scroll-scene] figcaption,
  .nopecube-plus-preview[data-scroll-scene]>.device,
  .nopecube-plus-preview[data-scroll-scene]>.nopecube-preview-caption {
    translate:0 calc(var(--scroll-phase,0) * 16px);
  }
  .nopecube-flow[data-scroll-scene]>li:nth-child(1) { translate:0 calc(var(--scroll-phase,0) * 11px); }
  .nopecube-flow[data-scroll-scene]>li:nth-child(2) { translate:0 calc(var(--scroll-phase,0) * 17px); }
  .nopecube-flow[data-scroll-scene]>li:nth-child(3) { translate:0 calc(var(--scroll-phase,0) * 13px); }
  .nopecube-flow[data-scroll-scene]>li:nth-child(4) { translate:0 calc(var(--scroll-phase,0) * 20px); }
}

.nopecube-scenarios {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:0 28px;
  margin:20px 0 0;
  border-top:1px solid var(--rule);
}
.nopecube-scenarios>div {
  padding:18px 2px 19px;
  border-bottom:1px solid var(--rule);
}
.nopecube-scenarios dt { color:var(--ink); font-weight:600; }
.nopecube-scenarios dd { margin:3px 0 0; color:var(--ink-soft); font-size:.9375rem; }

.nopecube-plus-section {
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(190px,270px);
  align-items:center;
  gap:clamp(28px,6vw,84px);
}
.nopecube-plus-section h2 { display:flex; align-items:center; gap:13px; }
.nopecube-plus-section h2::after {
  display:inline-grid;
  place-items:center;
  width:34px;
  height:34px;
  flex:none;
  border:1px solid #a98955;
  border-radius:50%;
  color:#795c30;
  content:"N";
  font:600 .75rem/1 var(--engraved);
  letter-spacing:0;
}
.nopecube-settings-section {
  display:grid;
  grid-template-columns:minmax(0,1.2fr) minmax(300px,.8fr);
  align-items:center;
  gap:clamp(28px,5.5vw,78px);
}
.nopecube-settings-copy { min-width:0; }
.nopecube-settings-gallery {
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  align-items:center;
  gap:clamp(14px,2.5vw,30px);
  min-width:0;
  padding:clamp(18px,3vw,34px);
  border:1px solid #736044;
  border-radius:5px;
  background:
    radial-gradient(ellipse at 75% 10%,#6b2732 0,transparent 44%),
    linear-gradient(145deg,#302f2a,#1d1e1b 72%);
  box-shadow:0 22px 54px -38px var(--shadow),inset 0 1px #fff2;
}
.nopecube-settings-screen {
  display:grid;
  justify-items:center;
  gap:11px;
  width:clamp(135px,17vw,190px);
  min-width:0;
  color:#ded4c3;
  text-align:center;
}
.nopecube-settings-screen--watch { width:clamp(108px,14vw,155px); }
.nopecube-settings-device {
  width:100%;
  padding:5px;
  overflow:hidden;
  border:1px solid #8e7c5b;
  border-radius:clamp(19px,3vw,31px);
  background:#11110f;
  box-shadow:0 18px 32px #0009,inset 0 1px #fff4;
}
.nopecube-settings-screen--watch .nopecube-settings-device { border-radius:35%; }
.nopecube-settings-device img {
  width:100%;
  border-radius:clamp(14px,2.3vw,25px);
}
.nopecube-settings-screen--watch .nopecube-settings-device img { border-radius:30%; }
.nopecube-settings-screen figcaption { display:grid; gap:3px; font-size:.75rem; line-height:1.4; }
.nopecube-settings-screen figcaption strong { color:#edcf9b; font:600 .8rem/1.3 var(--engraved); letter-spacing:.08em; }
.nopecube-settings-screen figcaption span { max-width:34ch; }
.nopecube-plus-section ul { margin-top:21px; padding-left:1.15rem; list-style:disc; }
.nopecube-plus-section li { padding-left:.2rem; }
.nopecube-plus-section li+li { margin-top:7px; }
.nopecube-plus-preview { width:100%; max-width:270px; justify-self:center; padding:15px 15px 17px; }
.nopecube-plus-preview .nopecube-phone { max-width:210px; margin-inline:auto; }
.nopecube-plus-preview .nopecube-preview-caption { font-size:.6875rem; }
.nopecube-app-body>.document-links {
  display:flex;
  flex-wrap:wrap;
  gap:10px 23px;
  padding:27px 0 10px;
  border-top:1px solid var(--rule);
  font-size:.875rem;
}
.nopecube-app-guide :focus-visible {
  outline:3px solid var(--app-ruby-dark);
  outline-offset:4px;
}

:root[data-desk="night"] .nopecube-app-guide :focus-visible { outline-color:var(--app-gold); }
:root[data-desk="night"] .nopecube-app-guide .document-eyebrow { color:#ef9aa3; }
:root[data-desk="night"] .nopecube-app-availability { border-color:#ef9aa3; }
:root[data-desk="night"] .nopecube-flow-state { color:#ef9aa3; }
:root[data-desk="night"] .nopecube-flow li:nth-child(3) .nopecube-flow-state { color:#f19aa3; }
:root[data-desk="night"] .nopecube-flow li:nth-child(4) .nopecube-flow-state { color:#d2b780; }
:root[data-desk="night"] .nopecube-plus-section h2::after { color:#e0c78f; }

@media (max-width:900px) {
  .nopecube-app-guide { grid-template-columns:1fr; gap:35px; align-items:start; }
  .nopecube-app-guide .document-header { max-width:660px; }
  .nopecube-preview { width:100%; max-width:650px; justify-self:center; }
  .nopecube-phones { max-width:480px; }
}

@media (max-width:700px) {
  .nopecube-flow { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .nopecube-flow li { min-height:132px; }
  .nopecube-plus-section { grid-template-columns:1fr; }
  .nopecube-plus-preview { max-width:300px; }
  .nopecube-plus-preview .nopecube-phone { max-width:225px; }
  .nopecube-settings-section { grid-template-columns:1fr; gap:24px; }
  .nopecube-settings-gallery { justify-self:center; width:100%; max-width:540px; }
}

@media (max-width:480px) {
  .nopecube-app-guide { gap:22px; }
  .document-page.nopecube-app-page { padding-top:20px; }
  .nopecube-guide-brand { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:14px; }
  .nopecube-app-guide .back-link,.nopecube-app-guide .nopecube-app-mark { margin-bottom:0; }
  .nopecube-app-mark { width:44px; }
  .nopecube-app-guide .document-eyebrow { margin-bottom:12px; }
  .nopecube-app-guide h1 { max-width:14ch; font-size:clamp(2.85rem,12vw,4rem); }
  .nopecube-app-guide .document-header>p:not(.document-eyebrow,.nopecube-app-availability) { margin-top:15px; font-size:1.0625rem; }
  .nopecube-guide-actions { gap:6px 12px; margin-top:15px; }
  .nopecube-preview { padding:14px 9px 19px; }
  .nopecube-phones { gap:8px; }
  .nopecube-phone { padding:3px; border-radius:15px; }
  .nopecube-phone img { border-radius:12px; }
  .nopecube-phones figcaption { display:grid; gap:3px; margin-top:8px; font-size:.75rem; }
  .nopecube-phones strong { font-size:.75rem; }
  .nopecube-preview-caption { margin-top:12px; font-size:.75rem; }
  .nopecube-flow { gap:8px; margin-block:22px 29px; }
  .nopecube-flow li { min-height:145px; padding:14px 12px; font-size:1rem; }
  .nopecube-flow li::after { top:12px; inset-inline-end:10px; }
  .nopecube-flow-state { margin-bottom:13px; }
  .nopecube-scenarios { grid-template-columns:1fr; }
  .nopecube-settings-gallery { gap:12px; padding:14px 10px; }
  .nopecube-settings-gallery { gap:8px; }
  .nopecube-settings-screen { width:clamp(128px,38vw,160px); }
  .nopecube-settings-screen--watch { width:clamp(100px,31vw,132px); }
  .nopecube-app-body>.document-links { display:grid; gap:6px; }
}

@media (prefers-reduced-motion:reduce) {
  .nopecube-guide-how-link { transition:none; }
  .nopecube-phones>li[data-scroll-scene] figure,
  .nopecube-settings-screen[data-scroll-scene] .nopecube-settings-device,
  .nopecube-settings-screen[data-scroll-scene] figcaption,
  .nopecube-plus-preview[data-scroll-scene]>.device,
  .nopecube-plus-preview[data-scroll-scene]>.nopecube-preview-caption,
  .nopecube-flow[data-scroll-scene]>li { translate:none!important; }
}
html[data-project-motion-paused="true"] .nopecube-phones>li[data-scroll-scene] figure,
html[data-project-motion-paused="true"] .nopecube-settings-screen[data-scroll-scene] .nopecube-settings-device,
html[data-project-motion-paused="true"] .nopecube-settings-screen[data-scroll-scene] figcaption,
html[data-project-motion-paused="true"] .nopecube-plus-preview[data-scroll-scene]>.device,
html[data-project-motion-paused="true"] .nopecube-plus-preview[data-scroll-scene]>.nopecube-preview-caption,
html[data-project-motion-paused="true"] .nopecube-flow[data-scroll-scene]>li { translate:none!important; }
